@ckeditor/ckeditor5-track-changes 48.0.0-alpha.4 → 48.0.0-alpha.6
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.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +25 -25
package/dist/index.js
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as
|
|
24
|
-
_0x52f4e5(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0xdc4054,_0x539d21){super(),this['id']=_0x539d21['id'],this['type']=_0x539d21['type'],this['subType']=_0x539d21['subType']||null,this['author']=_0x539d21['author'],this['creator']=_0x539d21['creator']||_0x539d21['author'],this['isExternal']=Boolean(_0x539d21['attributes']&&_0x539d21['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x539d21['originalSuggestionId']||null,this['_model']=_0xdc4054,this['_onAccept']=_0x539d21['onAccept'],this['_onDiscard']=_0x539d21['onDiscard'],this['_onAttributesChange']=_0x539d21['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x539d21['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get['head'](){let _0x167f2e=this;for(;_0x167f2e['previous'];)_0x167f2e=_0x167f2e['previous'];return _0x167f2e;}get['hasComments'](){return!!this['commentThread']&&this['commentThread']['length']>0x0;}get['isMultiRange'](){if(0x0==this['_markerNames']['size'])return!0x1;return 0x6==Array['from'](this['_markerNames'])[0x0]['split'](':')['length'];}get['isInContent'](){return null!==this['getFirstMarker']();}['addMarkerName'](_0x24d603){this['_markerNames']['add'](_0x24d603);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x1c97bb=>this['_model']['markers']['get'](_0x1c97bb))['filter'](_0x349c09=>_0x349c09);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x3cf869=>{for(const _0x443342 of this['getMarkers']())_0x3cf869['removeMarker'](_0x443342);}),this['_markerNames']['clear']();}['removeMarker'](_0x43a38a){this['_model']['change'](_0x59df6e=>{_0x59df6e['removeMarker'](_0x43a38a);}),this['_markerNames']['delete'](_0x43a38a);}['addRange'](_0x48793b){const _0x4990f9='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+bt['getMultiRangeId']();this['addMarkerName'](_0x4990f9),this['_model']['change'](_0x17728b=>{_0x17728b['addMarker'](_0x4990f9,{'range':_0x48793b,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x39aa99){for(const _0x13ad8d of this['getRanges']())if(_0x13ad8d['isIntersecting'](_0x39aa99))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x1210bf=>_0x1210bf['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x4a0857,_0x437c1f)=>[..._0x4a0857,..._0x437c1f['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x120a0f=this['getRanges']();if(0x1!=_0x120a0f['length'])return null;const _0x2cc464=_0x120a0f[0x0],_0x2e2111=_0x2cc464['start']['nodeAfter'],_0x60a336=_0x2cc464['end']['nodeBefore'];return _0x2e2111 instanceof _0x106f2f?_0x2e2111!=_0x60a336?null:_0x2e2111: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 _0x4cbb19=[];let _0x30fb45=this['head'];for(;_0x30fb45;)_0x4cbb19['push'](_0x30fb45),_0x30fb45=_0x30fb45['next'];return _0x4cbb19;}['setAttribute'](_0x187934,_0x32a4c7){const _0x21c44c=nt(this['attributes']);it(_0x21c44c,_0x187934,_0x32a4c7),st(_0x21c44c,this['attributes'])||(this['attributes']=_0x21c44c,this['_onAttributesChange'](_0x21c44c));}['removeAttribute'](_0x513878){const _0x2d1787=nt(this['attributes']);rt(_0x2d1787,_0x513878),st(_0x2d1787,this['attributes'])||(this['attributes']=_0x2d1787,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 _0x452c31()['substr'](0x1,0x5);}}function At(_0x7704d,_0xf6a788,_0x1d75b0){const _0x5bb9f3=_0x7704d['t'],t=_0x7704d['t'];switch(_0xf6a788){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',_0x1d75b0);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x1d75b0);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x1d75b0);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x1d75b0);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x1d75b0);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',_0x1d75b0);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x1d75b0);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',_0x1d75b0);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x1d75b0);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x1d75b0);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x1d75b0);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x1d75b0);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x1d75b0);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x1d75b0);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x1d75b0);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x1d75b0);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x1d75b0);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x1d75b0);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x1d75b0);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x1d75b0);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x1d75b0);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x1d75b0);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x1d75b0);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x1d75b0);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x1d75b0);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'},_0x1d75b0);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x1d75b0);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x1d75b0);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x1d75b0);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x1d75b0);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x1d75b0);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x1d75b0);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x1d75b0);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});case'ELEMENT_CAPTION':return t({'string':'caption','id':'ELEMENT_CAPTION'});case'ELEMENT_HORIZONTAL_LINE':return t({'string':'horizontal\x20line','plural':'%0\x20horizontal\x20lines','id':'ELEMENT_HORIZONTAL_LINE'},_0x1d75b0);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x1d75b0);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x1d75b0);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x1d75b0);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x1d75b0);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'},_0x1d75b0);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x1d75b0);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'},_0x1d75b0);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_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'},_0x1d75b0);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x1d75b0);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'},_0x1d75b0);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x1d75b0);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'},_0x1d75b0);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x1d75b0);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x1d75b0);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x1d75b0);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x1d75b0);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x1d75b0);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'},_0x1d75b0);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x1d75b0);case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'EXTERNAL_AVATAR':return _0x5bb9f3({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x1d75b0);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x5bb9f3({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x1d75b0);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x1d75b0);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'},_0x1d75b0);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'},_0x1d75b0);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'},_0x1d75b0);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0xf6a788;}}class kt{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x86518c,_0x52bba6){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x86518c,this['_locale']=_0x52bba6;}['getDescriptions'](_0x236986){const _0x25fb88=[],_0x1342ac=new Set(),_0x23dba5=new Set();for(let _0x3d6fa1=0x0;_0x3d6fa1<_0x236986['length'];_0x3d6fa1++){const _0x4b03fb=_0x236986[_0x3d6fa1];if(!_0x4b03fb['isInContent'])continue;const _0x1679ad=this['_handleCustomCallbackDescription'](_0x4b03fb);if(_0x1679ad){if(null!=_0x4b03fb['subType']){if(_0x1342ac['has'](_0x4b03fb['subType']))continue;_0x1342ac['add'](_0x4b03fb['subType']);}_0x25fb88['push'](_0x1679ad);}else{if('attribute'==_0x4b03fb['type']){const _0x4a6166=_0x4b03fb['data']['key'];if(_0x23dba5['has'](_0x4a6166))continue;_0x23dba5['add'](_0x4b03fb['data']['key']),_0x4a6166==Ke?this['_handleRenameSuggestionDescription'](_0x25fb88,_0x4b03fb):this['_handleAttributeSuggestionDescription'](_0x25fb88,_0x4b03fb);continue;}'insertion'!=_0x4b03fb['type']&&'deletion'!=_0x4b03fb['type']||this['_handleInsertRemoveSuggestionDescription'](_0x25fb88,_0x4b03fb,_0x236986[_0x3d6fa1+0x1]);}}return this['_resolveDescriptionItems'](_0x25fb88);}['registerDescriptionCallback'](_0x59d1e9){this['_customCallbacks']['push'](_0x59d1e9);}['registerElementLabel'](_0x4f54e3,_0x439eb2,_0x3286b2=_0x49557e['normal']){'function'==typeof _0x4f54e3?_0x118bf9(this['_itemLabelsCallbacks'],{'matchingCallback':_0x4f54e3,'label':_0x439eb2,'priority':_0x3286b2}):this['_itemLabels']['set'](_0x4f54e3,_0x439eb2);}['registerAttributeLabel'](_0x2e9435,_0x1d391c){this['_attributeLabels']['set'](_0x2e9435,_0x1d391c);}['getItemLabel'](_0x5a1e9e,_0x1da401=0x1){let _0xc70af8;for(const _0x1ef40d of this['_itemLabelsCallbacks'])if(_0x1ef40d['matchingCallback'](_0x5a1e9e)){_0xc70af8=_0x1ef40d['label'];break;}return _0xc70af8||(_0xc70af8=this['_itemLabels']['get'](_0x5a1e9e['name'])),_0xc70af8?_0xc70af8(_0x1da401):0x1!==_0x1da401?_0x1da401+'\x20'+_0x5a1e9e['name']+'s':''+_0x5a1e9e['name'];}['_addDescriptionItems'](_0x48ccb6,_0x172c9e){const _0x1b1627=_0x172c9e['getFirstRange']()['getWalker'](),_0x17c274='insertion'==_0x172c9e['type']?'add':'remove';for(const _0x521e03 of _0x1b1627){const _0x3161fa=_0x521e03['item'],_0x4df107=_0x48ccb6[_0x48ccb6['length']-0x1];if(_0x3161fa['is']('$textProxy'))_0x4df107&&_0x4df107['type']['indexOf']('Container')>-0x1&&_0x48ccb6['pop'](),_0x4df107&&'text'==_0x4df107['type']?_0x4df107[_0x17c274]+=_0x3161fa['data']:_0x48ccb6['push']({'type':'text','add':'add'==_0x17c274?_0x3161fa['data']:'','remove':'remove'==_0x17c274?_0x3161fa['data']:''});else{if(this['_schema']['isObject'](_0x3161fa)){const _0x2f0424=_0x3161fa;if(_0x4df107&&_0x4df107['type']['indexOf']('Container')>-0x1&&_0x48ccb6['pop'](),'elementEnd'==_0x521e03['type'])continue;_0x4df107&&_0x4df107['type']==_0x17c274+'Object'&&_0x4df107['element']['name']==_0x2f0424['name']?_0x4df107['quantity']++:_0x48ccb6['push']({'type':_0x17c274+'Object','element':_0x2f0424,'quantity':0x1}),_0x1b1627['skip'](_0x489c3f=>!('elementEnd'==_0x489c3f['type']&&_0x489c3f['item']==_0x3161fa));}else{if(this['_schema']['checkChild'](_0x3161fa,'$text')||_0x3161fa['is']('element','softBreak')){const _0xb92c6=_0x3161fa;if('add'==_0x17c274&&'elementStart'==_0x521e03['type']||'remove'==_0x17c274&&'elementEnd'==_0x521e03['type'])continue;if(_0x4df107&&-0x1==_0x4df107['type']['indexOf']('Container')){'text'==_0x4df107['type']&&(_0x4df107[_0x17c274]+='\x0a');continue;}let _0x44fd20;if(_0x44fd20='add'==_0x17c274?_0xb92c6['nextSibling']&&!this['_schema']['isObject'](_0xb92c6['nextSibling'])?_0xb92c6['nextSibling']:null:_0xb92c6['previousSibling']&&!this['_schema']['isObject'](_0xb92c6['previousSibling'])?_0xb92c6['previousSibling']:null,_0xb92c6['isEmpty']||_0x44fd20&&_0x44fd20['isEmpty']){const _0x4618a3=_0x44fd20&&_0x44fd20['isEmpty']?_0x44fd20:_0xb92c6;_0x4df107&&_0x4df107['type']==_0x17c274+'EmptyContainer'&&_0x4df107['element']['name']==_0x4618a3['name']?_0x4df107['quantity']++:_0x48ccb6['push']({'type':_0x17c274+'EmptyContainer','element':_0x4618a3,'quantity':0x1});}else _0x48ccb6['push']({'type':_0x17c274+'Container','element':_0xb92c6});}}}}}['_resolveDescriptionItems'](_0x486c69){const _0x1c91e5=this['_locale'],_0x5872cb=[],_0x54ddb8=[],_0x2f107c=[];for(const _0x4f4261 of _0x486c69)switch(_0x4f4261['type']){case'text':if(_0x4f4261['add']=_0x4f4261['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x4f4261['remove']=_0x4f4261['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x4f4261['add']&&''!=_0x4f4261['remove']){_0x5872cb['push']({'type':'replace','content':At(_0x1c91e5,'REPLACE_TEXT',['\x22'+_0x4f4261['remove']+'\x22','\x22'+_0x4f4261['add']+'\x22'])});continue;}if(null!=_0x4f4261['add']['match'](/^ +$/)){_0x5872cb['push']({'type':'insertion','content':At(_0x1c91e5,'*Insert:*\x20%0',At(_0x1c91e5,'ELEMENT_SPACE',_0x4f4261['add']['length']))});continue;}if(null!=_0x4f4261['remove']['match'](/^ +$/)){_0x5872cb['push']({'type':'deletion','content':At(_0x1c91e5,'*Remove:*\x20%0',At(_0x1c91e5,'ELEMENT_SPACE',_0x4f4261['remove']['length']))});continue;}if(''!=_0x4f4261['add']){_0x5872cb['push']({'type':'insertion','content':At(_0x1c91e5,'*Insert:*\x20%0','\x22'+_0x4f4261['add']+'\x22')});continue;}_0x5872cb['push']({'type':'deletion','content':At(_0x1c91e5,'*Remove:*\x20%0','\x22'+_0x4f4261['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x5872cb['push']({'type':'insertion','content':At(_0x1c91e5,'*Insert:*\x20%0',this['getItemLabel'](_0x4f4261['element'],_0x4f4261['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x5872cb['push']({'type':'deletion','content':At(_0x1c91e5,'*Remove:*\x20%0',this['getItemLabel'](_0x4f4261['element'],_0x4f4261['quantity']))});continue;case'addContainer':_0x5872cb['push']({'type':'insertion','content':At(_0x1c91e5,'*Split:*\x20%0',this['getItemLabel'](_0x4f4261['element'],_0x4f4261['quantity']))});continue;case'removeContainer':_0x5872cb['push']({'type':'deletion','content':At(_0x1c91e5,'*Merge:*\x20%0',this['getItemLabel'](_0x4f4261['element'],_0x4f4261['quantity']))});continue;case'addFormat':_0x54ddb8['push'](_0x4f4261['key']);continue;case'removeFormat':_0x2f107c['push'](_0x4f4261['key']);continue;default:_0x5872cb['push'](_0x4f4261);}if(_0x54ddb8['length']){const _0x19a9f2=_0x54ddb8['map'](_0x3b1df5=>this['_attributeLabels']['has'](_0x3b1df5)?this['_attributeLabels']['get'](_0x3b1df5):_0x3b1df5)['join'](',\x20');_0x5872cb['push']({'type':'format','content':At(this['_locale'],'*Set\x20format:*\x20%0',_0x19a9f2)});}if(_0x2f107c['length']){const _0x39c5bf=_0x2f107c['map'](_0x2b9ba3=>this['_attributeLabels']['has'](_0x2b9ba3)?this['_attributeLabels']['get'](_0x2b9ba3):_0x2b9ba3)['join'](',\x20');_0x5872cb['push']({'type':'format','content':At(this['_locale'],'*Remove\x20format:*\x20%0',_0x39c5bf)});}return _0x5872cb;}['_handleCustomCallbackDescription'](_0x1468c3){for(const _0x4a7484 of this['_customCallbacks']){const _0x14308a=_0x4a7484(_0x1468c3);if(_0x14308a&&'type'in _0x14308a)return _0x14308a;}}['_handleAttributeSuggestionDescription'](_0x516433,_0x54f9d1){const _0x199279=_0x54f9d1['data'],_0x1b199d=void 0x0===_0x199279['newValue']?'removeFormat':'addFormat';_0x516433['push']({'type':_0x1b199d,'key':_0x199279['key']});}['_handleRenameSuggestionDescription'](_0x2ee622,_0x477f66){_0x2ee622['push']({'type':'format','content':At(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x477f66['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x43624d,_0x23137c,_0x593f60){if(this['_addDescriptionItems'](_0x43624d,_0x23137c),_0x593f60&&_0x593f60['getFirstRange']()&&!_0x23137c['getFirstRange']()['end']['isEqual'](_0x593f60['getFirstRange']()['start'])){const _0x10b44f=_0x43624d[_0x43624d['length']-0x1],_0x34bf1d='insertion'==_0x23137c['type']?'add':'remove';_0x10b44f&&'text'==_0x10b44f['type']&&(_0x10b44f[_0x34bf1d]+='\x0a');}}}class Ct extends _0x36cdc7{['afterInit'](){const _0x33362f=this['editor'],_0xbafe1f=_0x33362f['plugins']['get']('TrackChangesEditing');_0x33362f['commands']['get']('showAIAssistant')&&_0xbafe1f['enableCommand']('showAIAssistant');}}class yt extends _0x36cdc7{['afterInit'](){const _0x15a011=this['editor'],_0x59a040=_0x15a011['plugins']['get']('TrackChangesEditing');_0x15a011['commands']['get']('toggleAi')&&_0x59a040['enableCommand']('toggleAi');}}class Nt extends _0x36cdc7{['afterInit'](){const _0x40532b=this['editor'],_0x5b5942=_0x40532b['plugins']['get']('TrackChangesEditing');_0x40532b['commands']['get']('aiQuickAction')&&_0x5b5942['enableCommand']('aiQuickAction');}}class Rt extends _0x36cdc7{['afterInit'](){const _0x1196cd=this['editor'],_0x39cbb1=_0x1196cd['locale'];if(!_0x1196cd['plugins']['has']('AlignmentEditing'))return;const _0x54fa9f=_0x1196cd['plugins']['get']('TrackChangesEditing');_0x54fa9f['enableDefaultAttributesIntegration']('alignment'),_0x54fa9f['descriptionFactory']['registerAttributeLabel']('alignment',At(_0x39cbb1,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x27aaf0=this['editor'],_0xdaa2d5=_0x27aaf0['locale'];_0x27aaf0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xd24c16=>{if('formatBlock'!=_0xd24c16['type'])return;const {data:_0x2e4340}=_0xd24c16;if(_0x2e4340&&'alignment'==_0x2e4340['commandName']){const _0x303f56=_0x2e4340['commandParams'][0x0]['value'];return{'type':'format','content':At(_0xdaa2d5,'*Format:*\x20%0',function(_0x48a66b){switch(_0x48a66b){case'left':return At(_0xdaa2d5,'FORMAT_ALIGN_TO_LEFT');case'right':return At(_0xdaa2d5,'FORMAT_ALIGN_TO_RIGHT');case'center':return At(_0xdaa2d5,'FORMAT_ALIGN_TO_CENTER');case'justify':return At(_0xdaa2d5,'FORMAT_JUSTIFY_TEXT');}}(_0x303f56))};}});}}const St=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class Mt extends _0x36cdc7{['afterInit'](){const _0x1a1e5d=this['editor'],_0x17d410=_0x1a1e5d['plugins']['get']('TrackChangesEditing'),_0x45c055=_0x1a1e5d['locale'];for(const _0x485d9e of St){if(!_0x1a1e5d['plugins']['has'](_0x485d9e))continue;const _0x54367a=_0x485d9e['slice'](0x0,-0x7)['toLowerCase'](),_0x45e3a2='FORMAT_'+_0x54367a['toUpperCase']();_0x17d410['enableDefaultAttributesIntegration'](_0x54367a),_0x17d410['descriptionFactory']['registerAttributeLabel'](_0x54367a,At(_0x45c055,_0x45e3a2));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3551bf=this['editor'],_0x10bc8f=_0x3551bf['locale'],_0x5b8080=_0x3551bf['plugins']['get']('TrackChangesEditing');function _0x36b807(_0x1a56dc,_0x4304a2){_0x5b8080['descriptionFactory']['registerDescriptionCallback'](_0x282b00=>{if('formatInline'!=_0x282b00['type'])return;const {data:_0x4ee817}=_0x282b00;return _0x4ee817&&_0x4ee817['commandName']===_0x1a56dc?_0x4ee817['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x10bc8f,'*Format:*\x20%0',_0x4304a2)}:{'type':'format','content':At(_0x10bc8f,'*Remove\x20format:*\x20%0',_0x4304a2)}:void 0x0;});}_0x36b807('bold',At(_0x10bc8f,'FORMAT_BOLD')),_0x36b807('italic',At(_0x10bc8f,'FORMAT_ITALIC')),_0x36b807('underline',At(_0x10bc8f,'FORMAT_UNDERLINE')),_0x36b807('code',At(_0x10bc8f,'FORMAT_CODE')),_0x36b807('strikethrough',At(_0x10bc8f,'FORMAT_STRIKETHROUGH')),_0x36b807('subscript',At(_0x10bc8f,'FORMAT_SUBSCRIPT')),_0x36b807('superscript',At(_0x10bc8f,'FORMAT_SUPERSCRIPT'));}}class Ot extends _0x36cdc7{['afterInit'](){const _0x182cb4=this['editor'],_0x56c68f=_0x182cb4['locale'];if(!_0x182cb4['plugins']['has']('BlockQuoteEditing'))return;const _0x2c24e3=_0x182cb4['plugins']['get']('TrackChangesEditing'),_0x4655a3=this['editor']['commands']['get']('blockQuote');_0x2c24e3['enableCommand']('blockQuote',(_0x41cd7a,_0xda6c56={})=>{const _0x3a76d6=this['editor']['model']['document']['selection'],_0x3ca351=_0xda6c56&&void 0x0!==_0xda6c56['forceValue']?_0xda6c56['forceValue']:!_0x4655a3['value'];let _0x5d16fe=[];if(_0x3ca351){const _0x417a60=Array['from'](_0x3a76d6['getSelectedBlocks']())['filter'](_0xfe7a16=>wt(_0xfe7a16)||function(_0x360f50,_0x18441f){const _0x5aa58d=_0x18441f['checkChild'](_0x360f50['parent'],'blockQuote'),_0x511879=_0x18441f['checkChild'](['$root','blockQuote'],_0x360f50);return _0x5aa58d&&_0x511879;}(_0xfe7a16,this['editor']['model']['schema']));_0x5d16fe=Tt(_0x417a60,_0x182cb4['model']);}else{const _0x51d103=Array['from'](_0x3a76d6['getSelectedBlocks']())['filter'](_0x2e9e96=>wt(_0x2e9e96));_0x5d16fe=Tt(_0x51d103,_0x182cb4['model']);}_0x182cb4['model']['change'](()=>{for(const _0x2c705c of _0x5d16fe)_0x2c24e3['markBlockFormat'](_0x2c705c,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x3ca351}]});});}),_0x2c24e3['descriptionFactory']['registerDescriptionCallback'](_0x55a7f8=>{const {data:_0x569afd}=_0x55a7f8;if(_0x569afd&&'blockQuote'==_0x569afd['commandName']){const _0x188535=At(_0x56c68f,'ELEMENT_BLOCK_QUOTE');return _0x569afd['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x56c68f,'*Set\x20format:*\x20%0',_0x188535)}:{'type':'format','content':At(_0x56c68f,'*Remove\x20format:*\x20%0',_0x188535)};}});}}function wt(_0x2ca477){return'blockQuote'==_0x2ca477['parent']['name'];}class Bt extends _0x36cdc7{['afterInit'](){const _0x4ed1ea=this['editor'],_0x726790=_0x4ed1ea['locale'],_0x2d41b8=_0x4ed1ea['plugins']['get']('TrackChangesEditing');_0x4ed1ea['plugins']['has']('BookmarkEditing')&&(_0x2d41b8['enableCommand']('insertBookmark'),_0x2d41b8['enableDefaultAttributesIntegration']('updateBookmark'),_0x2d41b8['descriptionFactory']['registerDescriptionCallback'](_0x29a4eb=>{if('insertion'!=_0x29a4eb['type']&&'deletion'!=_0x29a4eb['type']&&'attribute'!=_0x29a4eb['type'])return;const _0x244e27=_0x29a4eb['getContainedElement']();if(null==_0x244e27)return;if(!_0x244e27['is']('element','bookmark'))return;const _0x22f863=_0x244e27['getAttribute']('bookmarkId');if('insertion'==_0x29a4eb['type'])return{'type':'insertion','content':At(_0x726790,'*Insert:*\x20%0','\x22'+_0x22f863+'\x22\x20'+At(_0x726790,'ELEMENT_BOOKMARK'))};if('deletion'==_0x29a4eb['type'])return{'type':'deletion','content':At(_0x726790,'*Remove:*\x20%0','\x22'+_0x22f863+'\x22\x20'+At(_0x726790,'ELEMENT_BOOKMARK'))};const {data:_0x55d620}=_0x29a4eb;if(!_0x55d620||'bookmarkId'!=_0x55d620['key'])return;return{'type':'format','content':At(_0x726790,'*Set\x20bookmark:*\x20%0','\x22'+_0x55d620['newValue']+'\x22')};}));}}class Ft extends _0x36cdc7{['afterInit'](){const _0x3fa6b9=this['editor'];_0x3fa6b9['plugins']['has']('CaseChange')&&(_0x3fa6b9['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x3fa6b9['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x3fa6b9['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class Dt extends _0x36cdc7{['afterInit'](){const _0x6f9ea7=this['editor'];_0x6f9ea7['commands']['get']('ckbox')&&_0x6f9ea7['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class vt extends _0x36cdc7{['afterInit'](){const _0x87658a=this['editor'];if(!_0x87658a['plugins']['has']('CodeBlock'))return;const _0x19cd09=_0x87658a['plugins']['get']('TrackChangesEditing'),_0x50446b=_0x87658a['locale'],_0x520545=_0x87658a['config']['get']('codeBlock')['languages'],_0x4a4f6e=_0x87658a['commands']['get']('codeBlock');_0x19cd09['enableCommand']('indentCodeBlock'),_0x19cd09['enableCommand']('outdentCodeBlock'),_0x19cd09['enableCommand']('codeBlock',(_0x1d784a,_0xee0cf9={})=>{const _0x3294da=_0x87658a['model'],_0x118fe5=_0x87658a['model']['document']['selection'],_0x29db25=_0xee0cf9&&void 0x0!==_0xee0cf9['forceValue']?_0xee0cf9['forceValue']:!_0x4a4f6e['value'];let _0x3ede07;_0xee0cf9['language']||(_0xee0cf9['language']=_0x520545[0x0]['language']),_0x3ede07=_0x29db25?Array['from'](_0x118fe5['getSelectedBlocks']())['filter'](_0x26a3ee=>xt(_0x26a3ee)||function(_0x98cb23,_0x25596b){if(_0x98cb23['is']('rootElement')||_0x25596b['isLimit'](_0x98cb23))return!0x1;return _0x25596b['checkChild'](_0x98cb23['parent'],'codeBlock');}(_0x26a3ee,_0x3294da['schema'])):Array['from'](_0x118fe5['getSelectedBlocks']())['filter'](_0x52f26b=>xt(_0x52f26b));const _0x477143=Tt(_0x3ede07,_0x3294da);_0x3294da['change'](()=>{for(const _0x487df0 of _0x477143)_0x19cd09['markBlockFormat'](_0x487df0,{'commandName':'codeBlock','commandParams':[{..._0xee0cf9,'forceValue':_0x29db25}],'formatGroupId':'blockName'});});}),(_0x19cd09['descriptionFactory']['registerElementLabel']('codeBlock',_0x2a32b7=>At(_0x50446b,'ELEMENT_CODE_BLOCK',_0x2a32b7)),_0x19cd09['descriptionFactory']['registerDescriptionCallback'](_0x26aea8=>{if('formatBlock'!=_0x26aea8['type'])return;const _0x24421a=_0x50446b['t'],{data:_0x177050}=_0x26aea8;if(!_0x177050||'codeBlock'!=_0x177050['commandName'])return;const _0x93f588=_0x177050['commandParams'][0x0]['language'],_0x139f47=_0x24421a(_0x520545['find'](_0x434bbd=>_0x434bbd['language']===_0x93f588)['label'])['toLowerCase']();return _0x177050['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x50446b,'*Set\x20format:*\x20%0',At(_0x50446b,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x139f47+')')}:{'type':'format','content':At(_0x50446b,'*Remove\x20format:*\x20%0',At(_0x50446b,'ELEMENT_CODE_BLOCK',0x1))};}));}}function xt(_0x3cc8c9){return'codeBlock'==_0x3cc8c9['name'];}class Pt extends _0x36cdc7{['afterInit'](){const _0xc7a36a=this['editor'];if(!_0xc7a36a['plugins']['has']('CommentsEditing'))return;_0xc7a36a['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class Ut extends _0x36cdc7{static get['requires'](){return[at];}['init'](){const _0x10d47a=this['editor'],_0x3c8f0b=_0x10d47a['plugins']['get']('TrackChangesEditing');_0x3c8f0b['enableCommand']('delete');const _0x3861d9=_0x10d47a['commands']['get']('deleteForward');_0x3c8f0b['enableCommand']('deleteForward',(_0x12cb08,_0x397e0f={})=>{const _0x434ba2=_0x10d47a['model']['createSelection'](_0x10d47a['model']['document']['selection']);_0x434ba2['isCollapsed']&&_0x10d47a['model']['modifySelection'](_0x434ba2,{'direction':'forward','unit':_0x397e0f['unit']});const _0x5d00d6=_0x434ba2['getFirstRange'](),_0x5450ed=_0xf2eec6['fromRange'](_0x5d00d6);let _0x231a48;_0x12cb08(_0x397e0f),_0x231a48='$graveyard'==_0x5450ed['root']['rootName']?_0x10d47a['model']['createRange'](_0x5d00d6['start']):_0x10d47a['model']['createRange'](_0x5450ed['start'],_0x5450ed['end']),_0x5450ed['detach'](),_0x10d47a['model']['enqueueChange'](_0x3861d9['buffer']['batch'],_0x307f1d=>{_0x3861d9['buffer']['lock'](),_0x307f1d['setSelection'](_0x307f1d['createRange'](_0x231a48['end'])),_0x3861d9['buffer']['unlock']();});});}}class Gt extends _0x36cdc7{['afterInit'](){const _0xe64f0b=this['editor'];if(!_0xe64f0b['plugins']['has']('ListEditing'))return;const _0x5a6bca=_0xe64f0b['locale'],_0xa6b117=_0xe64f0b['plugins']['get']('TrackChangesEditing'),_0x5f1da6=_0xe64f0b['plugins']['has']('TodoListEditing'),_0x293f6d=!!_0xe64f0b['config']['get']('list.multiBlock');function _0x2a9b48(_0x4df2b1){return{'type':'format','content':''+At(_0x5a6bca,'*Set\x20format:*\x20%0',_0x4df2b1)};}function _0x468ba7(_0x55b4b6){return{'type':'format','content':''+At(_0x5a6bca,'*Remove\x20format:*\x20%0',_0x55b4b6)};}_0xa6b117['enableDefaultAttributesIntegration']('numberedList'),_0xa6b117['enableDefaultAttributesIntegration']('bulletedList'),_0xa6b117['enableDefaultAttributesIntegration']('customNumberedList'),_0xa6b117['enableDefaultAttributesIntegration']('customBulletedList'),_0xa6b117['enableDefaultAttributesIntegration']('indentList'),_0xa6b117['enableDefaultAttributesIntegration']('outdentList'),_0xa6b117['enableDefaultAttributesIntegration']('splitListItemAfter'),_0xa6b117['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x293f6d&&(_0xa6b117['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0xa6b117['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x5f1da6&&(_0xa6b117['enableDefaultAttributesIntegration']('todoList'),_0xa6b117['enableDefaultAttributesIntegration']('checkTodoList'),_0xa6b117['descriptionFactory']['registerDescriptionCallback'](_0x1398da=>{const {data:_0x490a5d}=_0x1398da;if(_0x490a5d&&'todoListChecked'==_0x490a5d['key'])return{'type':'format','content':_0x490a5d['newValue']?At(_0x5a6bca,'*Check\x20item*'):At(_0x5a6bca,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x1748f7=>{if(_0x1748f7['batch']['isUndo'])return!0x1;let _0x490639=!0x1;const _0x3fb8eb=_0xa6b117['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4a1465=>'todoListChecked'===_0xa6b117['_getAttributeKey'](_0x4a1465));for(const _0x4f135b of _0x3fb8eb){'todo'!=_0x4f135b['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0xa6b117['_findSuggestions'](_0x4f135b['getFirstRange'](),'attribute')['find'](_0x4e76fc=>'listType'===_0xa6b117['_getAttributeKey'](_0x4e76fc['suggestion']))||(_0x1748f7['removeMarker'](_0x4f135b['getFirstMarker']()),_0x490639=!0x0));}return _0x490639;})),_0xa6b117['descriptionFactory']['registerAttributeLabel']('listIndent',At(_0x5a6bca,'FORMAT_INDENT'));const _0x2c0125={'type':'format','content':''};_0xa6b117['descriptionFactory']['registerDescriptionCallback'](_0x593b1d=>{const {data:_0x1cf8bb}=_0x593b1d;if(!_0x1cf8bb||'listType'!=_0x1cf8bb['key'])return;let _0x372208=_0x593b1d['head'];for(;_0x372208;){if(_0x372208['data']&&(('listStyle'==_0x372208['data']['key']||'listMarkerStyle'==_0x372208['data']['key'])&&(_0x372208['data']['newValue']&&'default'!=_0x372208['data']['newValue']||'default'!=_0x372208['data']['oldValue']&&!_0x1cf8bb['newValue'])||!_0x293f6d&&_0x372208['data']['key']==Ke))return _0x2c0125;_0x372208=_0x372208['next'];}if(null==_0x1cf8bb['newValue'])switch(_0x1cf8bb['oldValue']){case'bulleted':return _0x468ba7(At(_0x5a6bca,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x468ba7(At(_0x5a6bca,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x468ba7(At(_0x5a6bca,'ELEMENT_TODO_LIST'));}switch(_0x1cf8bb['newValue']){case'bulleted':return _0x2a9b48(At(_0x5a6bca,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2a9b48(At(_0x5a6bca,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2a9b48(At(_0x5a6bca,'ELEMENT_TODO_LIST'));}}),_0xa6b117['descriptionFactory']['registerDescriptionCallback'](_0x22fd4f=>{const {data:_0x5f389e}=_0x22fd4f;if(_0x5f389e&&'listIndent'==_0x5f389e['key'])return null==_0x5f389e['newValue']||null==_0x5f389e['oldValue']&&0x0==_0x5f389e['newValue']?_0x2c0125:void 0x0;}),_0xa6b117['descriptionFactory']['registerDescriptionCallback'](_0x51b4a5=>{if('attribute'!=_0x51b4a5['type'])return;const {data:_0xda4423}=_0x51b4a5;if(!_0xda4423||'listItemId'!=_0xda4423['key'])return;const _0x35afca=Ht(_0x51b4a5);return'newValue'==_0x35afca?{'type':'format','content':At(_0x5a6bca,'*Merge:*\x20list\x20item')}:'oldValue'==_0x35afca?{'type':'format','content':At(_0x5a6bca,'*Split:*\x20list\x20item')}:_0x2c0125;}),_0xe64f0b['model']['document']['registerPostFixer'](_0x63f4a1=>this['listItemIdFixer'](_0x63f4a1)),_0xe64f0b['model']['document']['registerPostFixer'](_0x3143fc=>this['noTrackChangesFixer'](_0x3143fc)),_0xe64f0b['model']['document']['on']('change:data',(_0xf0fbd9,_0x30049e)=>{if(_0x30049e['isUndo']||!_0x30049e['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x127a4d){if(_0x127a4d['batch']['isUndo']||!_0x127a4d['batch']['isLocal'])return!0x1;let _0x1f06b7=!0x1;const _0x3f97c9=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xf5a9a8=>_0xf5a9a8['data']&&'listItemId'==_0xf5a9a8['data']['key'])['filter'](_0x737e8e=>_0x737e8e['data']['newValue']&&_0x737e8e['data']['oldValue']);for(const _0x382a03 of _0x3f97c9)Ht(_0x382a03)||(_0x127a4d['removeMarker'](_0x382a03['getFirstMarker']()),_0x1f06b7=!0x0);return _0x1f06b7;}['noTrackChangesFixer'](_0x48f37b){if(_0x48f37b['batch']['isUndo']||!_0x48f37b['batch']['isLocal'])return!0x1;const _0x1dd5d2=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x1dd5d2['trackChangesCommand']['value'])return!0x1;let _0x5cce5c=!0x1;const _0x1959ac=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0xb35101=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x372a0f=>'attribute'==_0x372a0f['type'])['filter'](_0x4f2ae2=>_0x1959ac['includes'](_0x4f2ae2['attributeKey']));if(0x0==_0xb35101['length'])return _0x5cce5c;for(const _0xf789fe of _0xb35101){const _0x56bd21=_0x1dd5d2['_findSuggestions'](_0xf789fe['range'],'attribute')['filter'](_0x175d39=>!_0x175d39['meta']['isNextTo'])['map'](_0x47b66f=>_0x47b66f['suggestion'])['filter'](_0x850628=>{const _0x14d3fb=_0x1dd5d2['_getAttributeKey'](_0x850628);return _0x1959ac['includes'](_0x14d3fb);});if(_0x56bd21['length']){for(const _0x416121 of _0x56bd21)_0x48f37b['removeMarker'](_0x416121['getFirstMarker']());_0x5cce5c=!0x0;}}return _0x5cce5c;}['assureChains'](){const _0x590a6c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1708fe=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x54a372;const _0x3749ba=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x958110=>{if(_0x958110['data']['oldRange']||!_0x958110['data']['newRange'])return null;if(!_0x958110['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x299165}=_0x4f6d6c(_0x958110['name']);if(!_0x590a6c['hasSuggestion'](_0x299165))return null;const _0x219856=_0x590a6c['getSuggestion'](_0x299165);return _0x1708fe['includes'](_0x219856['data']['key']);})['map'](_0x96e5d4=>{const {id:_0x1e85b1}=_0x4f6d6c(_0x96e5d4['name']),_0x7c687a=_0x590a6c['getSuggestion'](_0x1e85b1);return _0x54a372=_0x7c687a['attributes']['groupId'],_0x7c687a['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x3749ba['size'])return;const _0x543ed1=_0x590a6c['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xa7835f=>'attribute'==_0xa7835f['type']&&_0xa7835f['data']&&_0x1708fe['includes'](_0xa7835f['data']['key'])&&_0xa7835f['attributes']['groupId']!=_0x54a372)['map'](_0x465826=>({'listItem':_0x465826['getFirstRange']()['start']['nodeAfter'],'groupId':_0x465826['attributes']['groupId']})),_0x953fd0=new Set();for(const {groupId:_0xa1526d,listItem:_0xeb7872}of _0x543ed1)_0x3749ba['has'](_0xeb7872)&&_0x953fd0['add'](_0xa1526d);for(const _0x2abce9 of _0x590a6c['getSuggestions']())_0x953fd0['has'](_0x2abce9['attributes']['groupId'])&&_0x2abce9['setAttribute']('groupId',_0x54a372);}['_supportLegacySuggestions'](){const _0x30d4b9=this['editor'],_0x441abc=_0x30d4b9['locale'],_0x6c1750=_0x30d4b9['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x6c1750['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x3451e4,_0x1ee01e){const _0x52eaa6=[];for(let _0x2d51ff of _0x3451e4)_0x2d51ff['start']['nodeAfter']===_0x2d51ff['end']['parent']&&(_0x2d51ff=_0x30d4b9['model']['createRange'](_0x30d4b9['model']['createPositionAt'](_0x2d51ff['start']['nodeAfter'],0x0))),_0x52eaa6['push'](_0x2d51ff);_0x30d4b9['model']['change'](_0x56b18a=>{const _0x559f4e=_0x30d4b9['model']['document']['selection'],_0xe53e0a=Array['from'](_0x559f4e['getRanges']())['map'](_0x594a4b=>_0xf2eec6['fromRange'](_0x594a4b));_0x56b18a['setSelection'](_0x52eaa6),_0x30d4b9['commands']['get'](_0x1ee01e['commandName'])['refresh'](),_0x1ee01e['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x30d4b9['execute'](_0x1ee01e['commandName'],..._0x1ee01e['commandParams']),_0x56b18a['setSelection'](_0xe53e0a);for(const _0x5e50e6 of _0xe53e0a)_0x5e50e6['detach']();});}),_0x6c1750['descriptionFactory']['registerElementLabel'](function(_0x48c837){const _0x1f4f57=!_0x30d4b9['model']['schema']['isObject'](_0x48c837),_0x3d0164=_0x48c837['previousSibling'],_0x2bb705=_0x48c837['nextSibling'],_0x5cd578=_0x48c837['getAttribute']('listItemId'),_0x559337=!_0x3d0164||_0x3d0164['getAttribute']('listItemId')!==_0x5cd578,_0x38b15f=!_0x2bb705||_0x2bb705['getAttribute']('listItemId')!==_0x5cd578;return _0x1f4f57&&Boolean(_0x5cd578)&&_0x559337&&_0x38b15f;},_0x4a85de=>At(_0x441abc,'ELEMENT_LIST_ITEM',_0x4a85de));}['_registerLegacyDescription'](){const _0x166432=this['editor'],_0x4c75f4=_0x166432['locale'];function _0x2a5804(_0x413ffc){const _0x219f0d=_0x166432['commands']['get']('bulletedList')['value'],_0x58c87c=_0x166432['commands']['get']('numberedList')['value'];return'numberedList'===_0x413ffc?_0x219f0d:_0x58c87c;}_0x166432['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x20b543){if('formatBlock'!=_0x20b543['type'])return;const {data:_0x12cfa6}=_0x20b543;if(!_0x12cfa6)return;let _0x5c2117,_0x4e8056,_0x9b4ed7,_0x152afd;switch(_0x12cfa6['commandName']){case'bulletedList':_0x9b4ed7=_0x12cfa6['commandParams'][0x0]['forceValue'],_0x152afd=_0x2a5804(_0x12cfa6['commandName']),_0x5c2117=_0x9b4ed7?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x152afd&&_0x166432['config']['get']('list.multiBlock')||(_0x5c2117='*Change\x20to:*\x20%0'),_0x4e8056={'type':'format','content':At(_0x4c75f4,_0x5c2117,At(_0x4c75f4,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x9b4ed7=_0x12cfa6['commandParams'][0x0]['forceValue'],_0x152afd=_0x2a5804(_0x12cfa6['commandName']),_0x5c2117=_0x9b4ed7?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x152afd&&_0x166432['config']['get']('list.multiBlock')||(_0x5c2117='*Change\x20to:*\x20%0'),_0x4e8056={'type':'format','content':At(_0x4c75f4,_0x5c2117,At(_0x4c75f4,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x5c2117='*Indent:*\x20%0',_0x4e8056={'type':'format','content':At(_0x4c75f4,_0x5c2117,At(_0x4c75f4,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x5c2117=function(_0x265837){const _0x327699=_0x265837['getFirstRange']();let _0x1898d8=_0x327699['start']['nodeAfter'];for(;_0x1898d8&&_0x327699['containsItem'](_0x1898d8);){if(_0x1898d8['getAttribute']('listIndent')>0x0)return!0x1;_0x1898d8=_0x1898d8['nextSibling'];}return!0x0;}(_0x20b543)?At(_0x4c75f4,'*Format:*\x20remove\x20from\x20%0',At(_0x4c75f4,function(_0x54318d){return'ELEMENT_'+_0x54318d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x20b543))):At(_0x4c75f4,'*Outdent:*\x20%0',At(_0x4c75f4,'ELEMENT_LIST_ITEM')),_0x4e8056={'type':'format','content':_0x5c2117};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x12cfa6['multipleBlocks']&&(_0x5c2117='*Merge:*\x20%0',_0x4e8056={'type':'deletion','content':At(_0x4c75f4,_0x5c2117,At(_0x4c75f4,'ELEMENT_LIST_ITEM'))});}return _0x4e8056;});}}function Ht(_0x3eab45){let _0xd79dc6=_0x3eab45['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0xd79dc6;){const _0x31fceb=_0xd79dc6['getAttribute']('listItemId');if(!_0x31fceb)return!0x1;if(_0x31fceb==_0x3eab45['data']['newValue'])return'newValue';if(_0x31fceb==_0x3eab45['data']['oldValue'])return'oldValue';_0xd79dc6=_0xd79dc6['previousSibling'];}return!0x1;}class $t extends _0x36cdc7{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x2ee329=this['editor']['config']['get']('list.properties'),_0x16a805=this['editor']['plugins']['get']('TrackChangesEditing');_0x2ee329['styles']&&_0x16a805['enableDefaultAttributesIntegration']('listStyle'),_0x2ee329['reversed']&&_0x16a805['enableDefaultAttributesIntegration']('listReversed'),_0x2ee329['startIndex']&&_0x16a805['enableDefaultAttributesIntegration']('listStart');const _0x100eda={'type':'format','content':''};_0x16a805['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x4c9bbb=this['editor']['locale'];_0x16a805['descriptionFactory']['registerAttributeLabel']('listReversed',At(_0x4c9bbb,'FORMAT_LIST_REVERSED')),_0x16a805['descriptionFactory']['registerDescriptionCallback'](_0x1fa062=>{const {data:_0x52c57b}=_0x1fa062;if(_0x52c57b&&'listReversed'==_0x52c57b['key'])return null==_0x52c57b['newValue']||0x0==_0x52c57b['newValue']&&null==_0x52c57b['oldValue']?_0x100eda:void 0x0;}),_0x16a805['descriptionFactory']['registerAttributeLabel']('listStart',At(_0x4c9bbb,'FORMAT_LIST_START')),_0x16a805['descriptionFactory']['registerDescriptionCallback'](_0x9356d9=>{const {data:_0x394be1}=_0x9356d9;if(_0x394be1&&'listStart'==_0x394be1['key'])return null==_0x394be1['newValue']||0x1==_0x394be1['newValue']&&null==_0x394be1['oldValue']?_0x100eda:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x13c1f=>{if(_0x13c1f['batch']['isUndo'])return!0x1;let _0x2ba5aa=!0x1;const _0x4a5a8c=_0x16a805['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x197f66=>{const _0x562c2f=_0x16a805['_getAttributeKey'](_0x197f66);return'listStart'==_0x562c2f||'listReversed'==_0x562c2f;});for(const _0x1730d8 of _0x4a5a8c){const _0x325a23=_0x1730d8['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x325a23||'customNumbered'==_0x325a23)continue;_0x16a805['_findSuggestions'](_0x1730d8['getFirstRange'](),'attribute')['find'](_0x215017=>'listType'==_0x16a805['_getAttributeKey'](_0x215017['suggestion']))||(_0x13c1f['removeMarker'](_0x1730d8['getFirstMarker']()),_0x2ba5aa=!0x0);}return _0x2ba5aa;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x45c68f){const _0x114abd=this['editor']['locale'],{data:_0x1ce0dd}=_0x45c68f,_0x3b705c={'type':'format','content':''};if(!_0x1ce0dd||'listStyle'!=_0x1ce0dd['key'])return;if(!_0x1ce0dd['oldValue'])return'default'==_0x1ce0dd['newValue']?_0x3b705c:{'type':'format','content':''+At(_0x114abd,'*Set\x20format:*\x20%0',At(_0x114abd,this['_getTranslationKeyForListStyle'](_0x1ce0dd['newValue'])))};if(!_0x1ce0dd['newValue']){if('default'==_0x1ce0dd['oldValue'])return _0x3b705c;let _0x204915=_0x45c68f['head'];for(;_0x204915;){if(_0x204915['data']&&'listType'==_0x204915['data']['key']&&_0x204915['data']['newValue'])return _0x3b705c;_0x204915=_0x204915['next'];}return{'type':'format','content':''+At(_0x114abd,'*Remove\x20format:*\x20%0',At(_0x114abd,this['_getTranslationKeyForListStyle'](_0x1ce0dd['oldValue'])))};}if('default'!=_0x1ce0dd['newValue'])return{'type':'format','content':''+At(_0x114abd,'*Set\x20format:*\x20%0',At(_0x114abd,this['_getTranslationKeyForListStyle'](_0x1ce0dd['newValue'])))};let _0x514f49=_0x45c68f['head'];for(;_0x514f49;){if(_0x514f49['data']&&'listType'==_0x514f49['data']['key']&&_0x514f49['data']['newValue']&&_0x514f49['data']['oldValue'])return _0x3b705c;_0x514f49=_0x514f49['next'];}return{'type':'format','content':At(_0x114abd,'*Set\x20format:*\x20%0',At(_0x114abd,'ELEMENT_'+_0x45c68f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x7359b7=this['editor'],_0x1e90d2=_0x7359b7['locale'];_0x7359b7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2f0617=>{if('formatBlock'!=_0x2f0617['type'])return;const {data:_0x4d1063}=_0x2f0617;if(!_0x4d1063)return;let _0xb272c7,_0x45e650;switch(_0x4d1063['commandName']){case'listStyle':_0xb272c7='*Change\x20to:*\x20%0',_0x45e650={'type':'format','content':At(_0x1e90d2,_0xb272c7,At(_0x1e90d2,this['_getTranslationKeyForListStyle'](_0x4d1063['commandParams'][0x0]['type'])))};break;case'listReversed':_0xb272c7=_0x4d1063['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x45e650={'type':'format','content':At(_0x1e90d2,_0xb272c7)};break;case'listStart':_0xb272c7='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x45e650={'type':'format','content':At(_0x1e90d2,_0xb272c7,_0x4d1063['commandParams'][0x0]['startIndex'])};}return _0x45e650;});}['_getTranslationKeyForListStyle'](_0x5f1a0f){return'ELEMENT_'+function(_0x4c8ad6){if(Wt['includes'](_0x4c8ad6))return'bulleted';if(Vt['includes'](_0x4c8ad6))return'numbered';return null;}(_0x5f1a0f)['toUpperCase']()+'_LIST_'+_0x5f1a0f['toUpperCase']()['replace'](/-/g,'_');}}const Wt=['disc','circle','square'],Vt=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];class jt extends _0x36cdc7{['afterInit'](){const _0x2fe9ca=this['editor'];_0x2fe9ca['commands']['get']('emoji')&&_0x2fe9ca['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class zt extends _0x36cdc7{static get['requires'](){return[lt];}['init'](){const _0x66295d=this['editor'],_0x22fabf=_0x66295d['plugins']['get']('TrackChangesEditing'),_0x2c2315=_0x66295d['commands']['get']('enter');_0x22fabf['enableCommand']('enter',()=>{_0x66295d['model']['change'](_0x5810c1=>{const _0x9ac029=_0x66295d['model']['document']['selection'],_0x407401=_0x9ac029['getFirstPosition'](),_0x12b2eb=_0xf2eec6['fromRange'](_0x9ac029['getFirstRange']());if(_0x2c2315['enterBlock'](_0x5810c1)){const _0x51605b=_0x66295d['model']['createPositionAt'](_0x407401['parent']['nextSibling'],0x0),_0x9132c5=_0x5810c1['createRange'](_0x407401,_0x51605b);_0x22fabf['markInsertion'](_0x9132c5);}else _0x5810c1['setSelection'](_0x5810c1['createRange'](_0x12b2eb['end']));_0x12b2eb['detach'](),_0x2c2315['fire']('afterExecute',{'writer':_0x5810c1});});});}}class Kt extends _0x36cdc7{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x400f98=this['editor']['plugins']['get']('TrackChangesEditing');_0x400f98['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x400f98['enableCommand']('findNext'),_0x400f98['enableCommand']('findPrevious'),_0x400f98['enableCommand']('replace'),_0x400f98['enableCommand']('replaceAll');}['handleFindCommand'](_0x44dd10,_0x59addb,_0x2a815a={}){const _0x486c9a=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x44dd10(_0x2faa7a=>{let _0x4aaed2=('string'==typeof _0x59addb?_0x486c9a['findByTextCallback'](_0x59addb,_0x2a815a):_0x59addb)(_0x2faa7a);Array['isArray'](_0x4aaed2)&&(_0x4aaed2={'results':_0x4aaed2,'searchText':'string'==typeof _0x59addb?_0x59addb:''});const _0x8a2f0e=_0x4aaed2['results']['filter'](_0x2b8558=>!0x1===this['_isInDeletionRange'](_0x2b8558,_0x2faa7a['item']));return{..._0x4aaed2,'results':_0x8a2f0e};},_0x2a815a);}['_isInDeletionRange'](_0x5161bd,_0x3af4cc){const _0x2498a8=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3af4cc,_0x5161bd['start']),this['editor']['model']['createPositionAt'](_0x3af4cc,_0x5161bd['end']));for(const _0xa4e33e of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x2498a8['getIntersection'](_0xa4e33e['getRange']()))return!0x0;return!0x1;}}const Xt=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Yt extends _0x36cdc7{['afterInit'](){const _0x3fc75f=this['editor']['locale'],_0x54f928=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x1ff852,commandName:_0x22ea8b}of Xt)this['editor']['plugins']['has'](_0x1ff852)&&_0x54f928['enableDefaultAttributesIntegration'](_0x22ea8b);_0x54f928['descriptionFactory']['registerAttributeLabel']('fontSize',At(_0x3fc75f,'FORMAT_FONT_SIZE')),_0x54f928['descriptionFactory']['registerAttributeLabel']('fontFamily',At(_0x3fc75f,'FORMAT_FONT_FAMILY')),_0x54f928['descriptionFactory']['registerAttributeLabel']('fontColor',At(_0x3fc75f,'FORMAT_FONT_COLOR')),_0x54f928['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',At(_0x3fc75f,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1cf0cb=this['editor'],_0x596721=_0x1cf0cb['locale'];_0x1cf0cb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xdec2f3=>{const _0x1d4e24=_0x596721['t'];if('formatInline'!=_0xdec2f3['type'])return;const {data:_0x3355df}=_0xdec2f3;if(null!=_0x3355df){if('fontSize'==_0x3355df['commandName']){const _0xaf9118=_0x3355df['commandParams'][0x0]['value'];if(_0xaf9118){const _0x2a0797=_0x1d4e24(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x4d6f7f=>_0x4d6f7f['model']==_0xaf9118)['title'])['toLowerCase']();return{'type':'format','content':At(_0x596721,'*Set\x20font\x20size:*\x20%0',_0x2a0797)};}return{'type':'format','content':At(_0x596721,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x3355df['commandName']){const _0x50cd8e=_0x3355df['commandParams'][0x0]['value'];return _0x50cd8e?{'type':'format','content':At(_0x596721,'*Set\x20font\x20family:*\x20%0',_0x50cd8e)}:{'type':'format','content':At(_0x596721,'*Reset\x20font\x20family*')};}if('fontColor'==_0x3355df['commandName']){const _0x2f9138=_0x3355df['commandParams'][0x0]['value'];if(_0x2f9138){const _0x368018=_0x503ccd(this['editor']['config']['get']('fontColor.colors'))['find'](_0x1e10fc=>_0x1e10fc['model']==_0x2f9138);let _0x136760=_0x2f9138,_0x1ee014='';return _0x368018&&(_0x136760=_0x368018['label'],_0x1ee014=_0x1d4e24(_0x136760)['toLowerCase']()),{'type':'format','content':At(_0x596721,'*Set\x20font\x20color:*\x20%0',_0x1ee014)['trim'](),'color':{'value':_0x2f9138,'title':_0x1ee014||_0x136760}};}return{'type':'format','content':At(_0x596721,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x3355df['commandName']){const _0x45450d=_0x3355df['commandParams'][0x0]['value'];if(_0x45450d){const _0x15826a=_0x503ccd(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x11aca2=>_0x11aca2['model']==_0x45450d);let _0x9165a=_0x45450d,_0x5df99b='';return _0x15826a&&(_0x9165a=_0x15826a['label'],_0x5df99b=_0x1d4e24(_0x9165a)['toLowerCase']()),{'type':'format','content':At(_0x596721,'*Set\x20font\x20background\x20color:*\x20%0',_0x5df99b)['trim'](),'color':{'value':_0x45450d,'title':_0x5df99b||_0x9165a}};}return{'type':'format','content':At(_0x596721,'*Reset\x20font\x20background\x20color*')};}}});}}class qt extends _0x36cdc7{['afterInit'](){const {plugins:_0x1f2087}=this['editor'];_0x1f2087['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x1f2087['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x236b78,plugins:_0x43ffb4,commands:_0x39a89e}=this['editor'],_0x1c8da1=_0x43ffb4['get']('TrackChangesEditing');_0x39a89e['get']('footnotesStyle')&&_0x1c8da1['enableDefaultAttributesIntegration']('footnotesStyle'),_0x39a89e['get']('footnotesStart')&&_0x1c8da1['enableDefaultAttributesIntegration']('footnotesStart'),_0x1c8da1['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',At(_0x236b78,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x1c8da1['descriptionFactory']['registerAttributeLabel']('footnotesListStart',At(_0x236b78,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0xf628dd=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x297adc,commands:_0xb632cb}=this['editor'];_0xb632cb['get']('insertFootnote')&&_0xf628dd['enableCommand']('insertFootnote'),_0xf628dd['descriptionFactory']['registerElementLabel']('footnoteRef',_0x2f3164=>At(_0x297adc,'ELEMENT_FOOTNOTE_REF',_0x2f3164)),_0xf628dd['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x1b6b27=>At(_0x297adc,'ELEMENT_FOOTNOTE_DEFINITION',_0x1b6b27)),_0xf628dd['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x3d4291=>At(_0x297adc,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x3d4291));}}class Qt extends _0x36cdc7{['afterInit'](){const _0x20572d=this['editor'],_0x578f0a=_0x20572d['plugins']['get']('TrackChangesEditing'),_0x4c7df6=_0x20572d['commands']['get']('copyFormat'),_0x363729=_0x20572d['commands']['get']('pasteFormat');_0x4c7df6&&_0x363729&&(_0x578f0a['enableDefaultAttributesIntegration']('pasteFormat'),_0x578f0a['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x59a808=this['editor'],_0x3689bd=_0x59a808['locale'];_0x59a808['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2d0e64=>{if('formatBlock'!=_0x2d0e64['type']&&'formatInline'!=_0x2d0e64['type'])return;const {data:_0x4cb082}=_0x2d0e64;if(_0x4cb082&&'pasteFormat'===_0x4cb082['commandName']){const _0x3cb5f2=[],_0x4a7bcb=_0x4cb082['commandParams'][0x0];for(const [_0x477399,_0x148507]of Object['entries'](_0x4a7bcb))_0x3cb5f2['push'](Zt(_0x59a808,_0x477399,_0x148507));return _0x3cb5f2['length']?{'type':'format','content':At(_0x3689bd,'*Set\x20format\x20to:*\x20%0',_0x3cb5f2['join'](',\x20'))}:{'type':'format','content':At(_0x3689bd,'*Remove\x20all\x20formatting*')};}});}}function Zt(_0x4214fb,_0x2b036f,_0x1b8a7d){const _0x5ed368=_0x4214fb['locale']['t'],_0x178ee5=_0x2b036f['split'](/(?=[A-Z])/)['join']('\x20'),_0x222cfb=_0x5ed368(_0x178ee5['charAt'](0x0)['toUpperCase']()+_0x178ee5['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x1b8a7d)return _0x222cfb;if('fontColor'===_0x2b036f||'fontBackgroundColor'===_0x2b036f){const _0x32ee08=_0x503ccd(_0x4214fb['config']['get']('fontColor.colors'))['find'](_0xceebc4=>_0xceebc4['model']==_0x1b8a7d);return _0x222cfb+'\x20('+(_0x32ee08?_0x5ed368(_0x32ee08['label'])['toLowerCase']():_0x1b8a7d)+')';}if('fontSize'===_0x2b036f&&isNaN(parseFloat(_0x1b8a7d))){const _0x51db82=_0x4214fb['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x4214fb['config']['get']('fontSize.options'))['find'](_0x1dc66c=>_0x1dc66c['model']==_0x1b8a7d);return _0x222cfb+'\x20('+(_0x51db82?_0x5ed368(_0x51db82['title'])['toLowerCase']():_0x1b8a7d)+')';}return _0x222cfb+'\x20('+_0x1b8a7d+')';}class Jt extends _0x36cdc7{['_headingOptions'];['afterInit'](){const _0x403c8a=this['editor'];if(!_0x403c8a['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x403c8a['config']['get']('heading.options');const _0x20cc2f=_0x403c8a['locale'],_0x5f1803=_0x403c8a['plugins']['get']('TrackChangesEditing');_0x5f1803['enableDefaultAttributesIntegration']('heading');for(const _0x5b8194 of this['_headingOptions'])'paragraph'!=_0x5b8194['model']&&_0x5f1803['descriptionFactory']['registerElementLabel'](_0x5b8194['model'],_0x2421d3=>{const _0x4c827e=this['_getHeadingLevel'](_0x5b8194['model']);return null!==_0x4c827e?_0x310b16(_0x2421d3,_0x4c827e):_0x287992(_0x2421d3,_0x5b8194['title']);});function _0x310b16(_0x1f96b0,_0x121525){return At(_0x20cc2f,'ELEMENT_HEADING',[_0x1f96b0,_0x121525]);}function _0x287992(_0x1bbe48,_0x9e5fbe){return At(_0x20cc2f,'ELEMENT_HEADING_CUSTOM',[_0x1bbe48,_0x9e5fbe]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5193bc=this['editor'],_0x53ae7a=_0x5193bc['locale'];function _0x299dfc(_0x52e7cb,_0x34b9e8){return At(_0x53ae7a,'ELEMENT_HEADING_CUSTOM',[_0x52e7cb,_0x34b9e8]);}_0x5193bc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x18f4bc=>{if('formatBlock'!=_0x18f4bc['type'])return;const {data:_0x329400}=_0x18f4bc;if(_0x329400&&'heading'==_0x329400['commandName']){const _0x4777f8=_0x329400['commandParams'][0x0]['value'],_0x54f549=this['_getHeadingLevel'](_0x4777f8);if(null!==_0x54f549)return{'type':'format','content':At(_0x53ae7a,'*Change\x20to:*\x20%0',(_0x26c207=0x1,_0x38114c=_0x54f549,At(_0x53ae7a,'ELEMENT_HEADING',[_0x26c207,_0x38114c])))};const _0x28778d=this['_headingOptions']['find'](_0x1ea937=>_0x1ea937['model']===_0x4777f8)['title'];return{'type':'format','content':At(_0x53ae7a,'*Change\x20to:*\x20%0',_0x299dfc(0x1,_0x28778d))};}var _0x26c207,_0x38114c;});}['_getHeadingLevel'](_0x552e30){const _0x2d92f0=_0x552e30['match'](/^heading(\d+)/);if(_0x2d92f0)return _0x2d92f0[0x1];const _0x2453d3=this['_headingOptions']?.['find'](_0x3d486c=>_0x3d486c['model']==_0x552e30);if(_0x2453d3&&_0x2453d3['view']){const _0x4d810d=_0x2453d3['view'],_0x59a0a9=(_0x4d810d['name']??_0x4d810d)['match'](/^h(\d+)/);if(_0x59a0a9)return _0x59a0a9[0x1];}return null;}}class te extends _0x36cdc7{['afterInit'](){const _0x3e8b5f=this['editor'];if(!_0x3e8b5f['plugins']['has']('HighlightEditing'))return;const _0x5ce50d=_0x3e8b5f['plugins']['get']('TrackChangesEditing'),_0x4833fa=_0x3e8b5f['locale'];_0x5ce50d['enableDefaultAttributesIntegration']('highlight'),_0x5ce50d['descriptionFactory']['registerAttributeLabel']('highlight',At(_0x4833fa,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x134c3e=this['editor'],_0x514a75=_0x134c3e['locale'];_0x134c3e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x319838=>{if('formatInline'!=_0x319838['type'])return;const {data:_0x204224}=_0x319838;if(_0x204224&&'highlight'==_0x204224['commandName']){const _0x51c294=_0x514a75['t'],_0x45f33f=_0x204224['commandParams'][0x0]['value'];if(_0x45f33f){const _0x480512=_0x134c3e['config']['get']('highlight.options')['find'](_0x190ba0=>_0x190ba0['model']==_0x45f33f),_0x4b1e4c=_0x51c294(_0x480512['title'])['toLowerCase']();return{'type':'format','content':At(_0x514a75,'*Set\x20highlight:*\x20%0',_0x4b1e4c),'color':{'value':_0x480512['color'],'title':_0x480512['title']}};}return{'type':'format','content':At(_0x514a75,'*Remove\x20highlight*',At(_0x514a75,'FORMAT_HIGHLIGHT'))};}});}}class ee extends _0x36cdc7{['afterInit'](){const _0x35d806=this['editor'];if(!_0x35d806['plugins']['has']('HorizontalLineEditing'))return;_0x35d806['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x141d57=_0x35d806['plugins']['get']('TrackChangesEditing'),_0x420bbe=_0x35d806['locale'];_0x141d57['descriptionFactory']['registerElementLabel']('horizontalLine',_0x40b9a0=>At(_0x420bbe,'ELEMENT_HORIZONTAL_LINE',_0x40b9a0));}}class ne extends _0x36cdc7{['afterInit'](){const _0x5895ee=this['editor'];if(!_0x5895ee['plugins']['has']('HtmlEmbed'))return;const _0x16cece=_0x5895ee['plugins']['get']('TrackChangesEditing'),_0x302141=_0x5895ee['locale'];_0x16cece['descriptionFactory']['registerElementLabel']('rawHtml',_0x45798a=>At(_0x302141,'ELEMENT_HTML_EMBED',_0x45798a)),_0x16cece['enableDefaultAttributesIntegration']('htmlEmbed'),_0x16cece['descriptionFactory']['registerDescriptionCallback'](_0x2e793e=>{if('attribute'!=_0x2e793e['type'])return;const {data:_0x17434c}=_0x2e793e;if(_0x17434c&&'value'==_0x17434c['key']&&_0x2e793e['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x1d0691=At(_0x302141,'ELEMENT_HTML_EMBED');return{'type':'format','content':At(_0x302141,'*Change\x20%0\x20content*',_0x1d0691)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x18f9cb=this['editor'],_0x12640e=_0x18f9cb['locale'];_0x18f9cb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e3ad5=>{if('formatBlock'!=_0x3e3ad5['type'])return;const {data:_0x38d92f}=_0x3e3ad5;if(_0x38d92f&&'htmlEmbed'==_0x38d92f['commandName']){const _0x9abefe=At(_0x12640e,'ELEMENT_HTML_EMBED');return{'type':'format','content':At(_0x12640e,'*Change\x20%0\x20content*',_0x9abefe)};}});}}class ie extends _0x36cdc7{['afterInit'](){const _0x4ad859=this['editor'];if(!_0x4ad859['plugins']['has']('ImageEditing'))return;const _0x22b9ff=_0x4ad859['plugins']['get']('TrackChangesEditing'),_0x15ea5a=_0x4ad859['plugins']['get']('ImageUtils'),_0x1cecef=_0x4ad859['locale'];_0x22b9ff['enableCommand']('insertImage'),_0x22b9ff['descriptionFactory']['registerElementLabel']('imageBlock',_0x43be08=>At(_0x1cecef,'ELEMENT_IMAGE',_0x43be08)),_0x22b9ff['descriptionFactory']['registerElementLabel']('imageInline',_0x55b3b7=>At(_0x1cecef,'ELEMENT_INLINE_IMAGE',_0x55b3b7)),_0x22b9ff['descriptionFactory']['registerElementLabel']('caption',()=>At(_0x1cecef,'ELEMENT_CAPTION')),_0x4ad859['plugins']['has']('ImageUploadEditing')&&_0x22b9ff['enableCommand']('uploadImage'),_0x4ad859['plugins']['has']('ImageBlockEditing')&&_0x4ad859['plugins']['has']('ImageInlineEditing')&&(_0x22b9ff['enableCommand']('imageTypeInline',(_0x312f10,_0x53127d)=>{const _0x1ee54f=_0x15ea5a['getClosestSelectedImageElement'](_0x4ad859['model']['document']['selection']);_0x4ad859['model']['change'](()=>{_0x22b9ff['markBlockFormat'](_0x1ee54f,{'commandName':'imageTypeInline','commandParams':[_0x53127d]},[],'convertBlockImageToInline');});}),_0x22b9ff['enableCommand']('imageTypeBlock',(_0x5e651a,_0x506485)=>{_0x4ad859['model']['change'](_0x29fe21=>{let _0x2f602b=_0x15ea5a['getClosestSelectedImageElement'](_0x4ad859['model']['document']['selection']),_0x4b6589=_0x29fe21['createRangeOn'](_0x2f602b);const _0x2ecb28=tt['fromPosition'](_0x4b6589['start'],'toPrevious'),_0x5dfaa5=tt['fromPosition'](_0x4b6589['end'],'toNext');_0x22b9ff['forceDefaultExecution'](()=>_0x5e651a(_0x506485)),_0x2f602b=_0x15ea5a['getClosestSelectedImageElement'](_0x4ad859['model']['document']['selection']),_0x4b6589=_0x29fe21['createRangeOn'](_0x2f602b);const _0x460258=_0x29fe21['createRange'](_0x2ecb28,_0x5dfaa5);_0x2ecb28['detach'](),_0x5dfaa5['detach'](),_0x22b9ff['markBlockFormat'](_0x2f602b,{'commandName':'imageTypeInline','commandParams':[_0x506485]},[],'convertInlineImageToBlock'),_0x460258['start']['isBefore'](_0x4b6589['start'])&&_0x22b9ff['markInsertion'](_0x29fe21['createRange'](_0x460258['start'],_0x4b6589['start']),'convertInlineImageToBlock'),_0x4b6589['end']['isBefore'](_0x460258['end'])&&_0x22b9ff['markInsertion'](_0x29fe21['createRange'](_0x4b6589['end'],_0x460258['end']),'convertInlineImageToBlock');});}),_0x22b9ff['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x22b9ff['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x22b9ff['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x22b9ff['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x22b9ff['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x22b9ff['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x439a08])=>{const _0x230acb=_0x22b9ff['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x19a90e=_0x439a08['start'],_0x376bf6=_0x439a08['end'];const _0x5b127a=_0x4ad859['model']['schema']['getNearestSelectionRange'](_0x19a90e,'backward'),_0x8680fd=_0x4ad859['model']['schema']['getNearestSelectionRange'](_0x376bf6,'forward');_0x5b127a['isCollapsed']&&(_0x19a90e=_0x5b127a['start']),_0x8680fd['isCollapsed']&&(_0x376bf6=_0x8680fd['end']),_0x230acb([_0x4ad859['model']['createRange'](_0x19a90e,_0x376bf6)]);}),_0x22b9ff['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x310db1),_0x22b9ff['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x310db1)),_0x4ad859['plugins']['has']('ImageCaptionEditing')&&(_0x22b9ff['enableCommand']('toggleImageCaption',(_0x521ac8,_0x113d0b)=>{const _0x5bd314=_0x4ad859['plugins']['get']('ImageCaptionUtils');let _0x1ed690=_0x15ea5a['getClosestSelectedImageElement'](_0x4ad859['model']['document']['selection']),_0x909700=_0x5bd314['getCaptionFromImageModelElement'](_0x1ed690);_0x4ad859['model']['change'](()=>{if(_0x909700)return void _0x22b9ff['markDeletion'](_0x4ad859['model']['createRangeOn'](_0x909700));const _0x548268=_0x15ea5a['isBlockImage'](_0x1ed690);_0x521ac8(_0x113d0b),_0x1ed690=_0x15ea5a['getClosestSelectedImageElement'](_0x4ad859['model']['document']['selection']),_0x909700=_0x5bd314['getCaptionFromImageModelElement'](_0x1ed690),_0x22b9ff['markInsertion'](_0x4ad859['model']['createRangeOn'](_0x909700),_0x548268?null:'imageCaption');});}),_0x22b9ff['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x310db1));const _0x59bc89=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1e04ce(_0xf852f6,_0x2d02db){const _0x1bf3cd=_0x59bc89['findIndex'](({type:_0x3caab2,subType:_0x237402})=>_0xf852f6['type']==_0x3caab2&&_0xf852f6['subType']==_0x237402),_0x414a83=_0x59bc89['findIndex'](({type:_0x33e7a8,subType:_0x5e5489})=>_0x2d02db['type']==_0x33e7a8&&_0x2d02db['subType']==_0x5e5489);if(_0x1bf3cd<0x0||_0x414a83<0x0)return!0x1;const _0x31cfee=_0xf852f6['getFirstRange'](),_0x2cb1f2=_0x2d02db['getFirstRange']();if((0x0==_0x1bf3cd||0x1==_0x1bf3cd)&&0x2==_0x414a83&&_0x31cfee['isIntersecting'](_0x2cb1f2))return!0x0;if(0x2==_0x1bf3cd&&0x3==_0x414a83){const _0x4973e0=_0x22b9ff['_findSuggestions'](_0x31cfee,'insertion')['filter'](({suggestion:_0x4dfb86,meta:_0x3e7b5f})=>_0x3e7b5f['isOwn']&&'convertInlineImageToBlock'==_0x4dfb86['subType']);if(_0x4973e0['length']>0x1&&_0x2cb1f2['end']['isEqual'](_0x31cfee['start']))return!0x0;if(0x1==_0x4973e0['length']&&(_0x31cfee['start']['isEqual'](_0x2cb1f2['end'])||_0x31cfee['end']['isEqual'](_0x2cb1f2['start'])))return!0x0;}if(0x3==_0x1bf3cd&&0x3==_0x414a83&&_0x31cfee['start']['isBefore'](_0x2cb1f2['start'])){const _0x376736=_0x31cfee['end']['nodeAfter'],_0x17d641=_0x2cb1f2['start']['nodeBefore'];return _0x15ea5a['isBlockImage'](_0x376736)&&_0x376736===_0x17d641;}return!0x1;}function _0x310db1(_0x10de54,_0x41f361){return _0x1e04ce(_0x10de54,_0x41f361)?[_0x10de54,_0x41f361]:_0x1e04ce(_0x41f361,_0x10de54)?[_0x41f361,_0x10de54]:null;}_0x4ad859['plugins']['has']('ImageResize')&&(_0x22b9ff['enableDefaultAttributesIntegration']('resizeImage'),_0x22b9ff['descriptionFactory']['registerAttributeLabel']('resizedWidth',At(_0x1cecef,'FORMAT_IMAGE_SIZE'))),_0x4ad859['plugins']['has']('ImageTextAlternativeEditing')&&_0x22b9ff['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x4ad859['plugins']['has']('PictureEditing')&&_0x22b9ff['descriptionFactory']['registerDescriptionCallback'](_0x3dd234=>{if('attribute'!=_0x3dd234['type'])return;const {data:_0x118a5b}=_0x3dd234;return _0x118a5b&&'sources'==_0x118a5b['key']?{'type':'format','content':''}:void 0x0;}),_0x4ad859['plugins']['has']('ImageSizeAttributes')&&_0x22b9ff['descriptionFactory']['registerDescriptionCallback'](_0x2343d2=>{if('attribute'!=_0x2343d2['type'])return;const {data:_0x3389c0}=_0x2343d2;return!_0x3389c0||'width'!=_0x3389c0['key']&&'height'!=_0x3389c0['key']?void 0x0:{'type':'format','content':''};}),_0x22b9ff['descriptionFactory']['registerDescriptionCallback'](_0x1a295f=>{if(!!_0x59bc89['find'](({type:_0x596467,subType:_0x577e2b})=>_0x1a295f['type']==_0x596467&&_0x1a295f['subType']==_0x577e2b))return _0x1a295f['previous']?{}:void 0x0;}),_0x22b9ff['descriptionFactory']['registerDescriptionCallback'](_0x460f7e=>{if('insertion'==_0x460f7e['type']||'deletion'==_0x460f7e['type']){const _0x338b3f=_0x460f7e['getContainedElement']();if(_0x338b3f&&_0x338b3f['is']('element','caption'))return{'type':'insertion'==_0x460f7e['type']?'addObject':'removeObject','element':_0x338b3f,'quantity':0x1};}}),_0x22b9ff['descriptionFactory']['registerDescriptionCallback'](_0x57df3e=>'formatBlock'==_0x57df3e['type']&&'convertInlineImageToBlock'==_0x57df3e['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x57df3e['type']&&'convertBlockImageToInline'==_0x57df3e['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x22b9ff['descriptionFactory']['registerDescriptionCallback'](_0x29b71c=>{if('attribute'!=_0x29b71c['type'])return;const {data:_0x232554}=_0x29b71c;if(!_0x232554||'alt'!=_0x232554['key'])return;const _0x12bfc1=_0x232554['newValue'];return _0x12bfc1?{'type':'format','content':At(_0x1cecef,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x12bfc1+'\x22')}:{'type':'format','content':At(_0x1cecef,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x73d7a5=this['editor'],_0x2649cb=_0x73d7a5['locale'];_0x73d7a5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4fb3d1=>{if('formatBlock'!=_0x4fb3d1['type']&&'formatInline'!=_0x4fb3d1['type'])return;const {data:_0x5ec3de}=_0x4fb3d1;if(_0x5ec3de){if('imageTextAlternative'==_0x5ec3de['commandName']){const _0x5c2796=_0x5ec3de['commandParams'][0x0]['newValue'];return _0x5c2796?{'type':'format','content':At(_0x2649cb,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5c2796+'\x22')}:{'type':'format','content':At(_0x2649cb,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x5ec3de['commandName']){const _0xba6fa8=_0x5ec3de['commandParams'][0x0]['width'];return _0xba6fa8?{'type':'format','content':At(_0x2649cb,'*Set\x20image\x20width:*\x20%0',_0xba6fa8)}:{'type':'format','content':At(_0x2649cb,'*Reset\x20image\x20width*')};}}});}}class se extends _0x36cdc7{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x3f67d6=this['editor']['locale'],_0x4e9931=this['editor']['plugins']['get']('TrackChangesEditing');_0x4e9931['enableDefaultAttributesIntegration']('replaceImageSource'),_0x4e9931['descriptionFactory']['registerDescriptionCallback'](_0x26bec9=>{if('attribute'!=_0x26bec9['type'])return;const {data:_0x6d474a}=_0x26bec9;return _0x6d474a&&'src'==_0x6d474a['key']?_0x6d474a['newValue']&&_0x6d474a['oldValue']?{'type':'format','content':At(_0x3f67d6,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4f62fa=this['editor']['plugins']['get']('TrackChangesEditing');_0x4f62fa['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x4f62fa['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4f62fa['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x4f62fa['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x12192a=this['editor'],_0x502b42=_0x12192a['locale'];_0x12192a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x281926=>{if('formatBlock'!=_0x281926['type']&&'formatInline'!=_0x281926['type'])return;const {data:_0x4ba59f}=_0x281926;if(!_0x4ba59f||'replaceImageSource'!=_0x4ba59f['commandName'])return;return{'type':'format','content':At(_0x502b42,'*Format:*\x20replace\x20image\x20URL')};});}}class re extends _0x36cdc7{['afterInit'](){const _0x3cc75d=this['editor'];if(!_0x3cc75d['plugins']['has']('ImageStyleEditing'))return;const _0x158ffb=_0x3cc75d['plugins']['get']('TrackChangesEditing'),_0x583c5a=_0x3cc75d['plugins']['get']('ImageUtils'),_0x472f00={};_0x158ffb['enableCommand']('imageStyle',(_0x17a8e7,_0x189ea1)=>{const _0x49d786=_0x3cc75d['plugins']['get']('Users')['me'],_0x411d97=_0x3cc75d['commands']['get']('imageStyle');let _0x10462e=_0x583c5a['getClosestSelectedImageElement'](_0x3cc75d['model']['document']['selection']),_0x594b15=_0x3cc75d['model']['createRangeOn'](_0x10462e),_0xef207=_0x411d97['value'];if(_0xef207==_0x189ea1['value'])return;const _0x20373f={'commandName':'imageStyle','commandParams':[_0x189ea1],'formatGroupId':_0x452c31()};_0x3cc75d['model']['change'](()=>{if(_0x158ffb['getSuggestions']()['filter'](_0x248254=>_0x248254['isInContent']&&_0x49d786==_0x248254['author']&&('formatBlock'==_0x248254['type']||'formatInline'==_0x248254['type'])&&('imageStylePreApply'==_0x248254['subType']||'imageStylePostApply'==_0x248254['subType'])&&_0x248254['getFirstRange']()['isEqual'](_0x594b15))['forEach'](_0x2c2c20=>_0x158ffb['discardSuggestion'](_0x2c2c20['head'])),_0x10462e=_0x583c5a['getClosestSelectedImageElement'](_0x3cc75d['model']['document']['selection']),_0x594b15=_0x3cc75d['model']['createRangeOn'](_0x10462e),_0x411d97['refresh'](),_0x3cc75d['commands']['get']('imageTypeInline')['refresh'](),_0x3cc75d['commands']['get']('imageTypeBlock')['refresh'](),_0xef207=_0x411d97['value'],_0xef207!=_0x189ea1['value'])return _0x583c5a['isInlineImage'](_0x10462e)&&_0x411d97['shouldConvertImageType'](_0x189ea1['value'],_0x10462e)?(_0x17a8e7({..._0x189ea1,'setImageSizes':!0x1}),_0x10462e=_0x583c5a['getClosestSelectedImageElement'](_0x3cc75d['model']['document']['selection']),void _0x158ffb['markBlockFormat'](_0x10462e,{..._0x20373f,'commandReversedParams':[{'value':_0xef207||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x583c5a['isBlockImage'](_0x10462e)?_0x158ffb['markBlockFormat'](_0x10462e,_0x20373f,[],'imageStylePostApply'):_0x158ffb['markInlineFormat'](_0x594b15,_0x20373f,'imageStylePostApply'));});});for(const _0x518771 of _0x3cc75d['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x472f00[_0x518771['name']]=_0x518771['title']['toLowerCase']();_0x158ffb['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x158ffb['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x158ffb['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x158ffb['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0xe8bc5c])=>{_0x583c5a['setImageNaturalSizeAttributes'](_0xe8bc5c['getContainedElement']());}),_0x158ffb['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x52316e,_0x8ff215)=>{_0x158ffb['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x52316e,{'commandName':_0x8ff215['commandName'],'commandParams':_0x8ff215['commandReversedParams']});}),_0x158ffb['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x39789c,_0x14c385){if(_0x498acb(_0x39789c,_0x14c385))return[_0x39789c,_0x14c385];if(_0x498acb(_0x14c385,_0x39789c))return[_0x14c385,_0x39789c];return null;});const _0x415a94=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x498acb(_0x56763f,_0x36ea22){const _0xf90a27=_0x415a94['findIndex'](({type:_0x149c93,subType:_0x1a3465})=>_0x56763f['type']==_0x149c93&&_0x56763f['subType']==_0x1a3465),_0x28bbe9=_0x415a94['findIndex'](({type:_0x580839,subType:_0x227134})=>_0x36ea22['type']==_0x580839&&_0x36ea22['subType']==_0x227134);if(_0xf90a27<0x0||_0x28bbe9<0x0)return!0x1;const _0x173c78=_0x56763f['getFirstRange'](),_0x16f7b7=_0x36ea22['getFirstRange']();if((0x0==_0xf90a27||0x1==_0xf90a27)&&0x2==_0x28bbe9&&_0x173c78['isIntersecting'](_0x16f7b7))return!0x0;if(0x2==_0xf90a27&&0x3==_0x28bbe9){const _0x47ee9e=_0x158ffb['_findSuggestions'](_0x173c78,'insertion')['filter'](({suggestion:_0xcb0438,meta:_0x503465})=>_0x503465['isOwn']&&'convertInlineImageToBlock'==_0xcb0438['subType']);if(_0x47ee9e['length']>0x1&&_0x16f7b7['end']['isEqual'](_0x173c78['start']))return!0x0;if(0x1==_0x47ee9e['length']&&(_0x173c78['start']['isEqual'](_0x16f7b7['end'])||_0x173c78['end']['isEqual'](_0x16f7b7['start'])))return!0x0;}if(0x3==_0xf90a27&&0x3==_0x28bbe9&&_0x173c78['start']['isBefore'](_0x16f7b7['start'])){const _0x3333e8=_0x173c78['end']['nodeAfter'],_0x43e592=_0x16f7b7['start']['nodeBefore'];return _0x583c5a['isBlockImage'](_0x3333e8)&&_0x3333e8===_0x43e592;}return!0x1;}_0x3cc75d['model']['document']['registerPostFixer'](()=>{let _0x2fe5cf=!0x1;const _0x255fe7=Array['from'](_0x3cc75d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2cfc55,data:_0x29f8ad}of _0x255fe7){const {group:_0x4e6328,type:_0x4ad7b4,subType:_0x4b4f8b,id:_0x4cc303}=_0x4f6d6c(_0x2cfc55);if('suggestion'==_0x4e6328&&_0x158ffb['hasSuggestion'](_0x4cc303)){if('formatBlock'==_0x4ad7b4&&('imageStylePreApply'==_0x4b4f8b||'imageStylePostApply'==_0x4b4f8b)){const _0x4bf796=_0x158ffb['getSuggestion'](_0x4cc303);if(_0x29f8ad['newRange']){const _0x40aec9=_0x4bf796['getFirstRange']()['getContainedElement']();if(_0x583c5a['isBlockImage'](_0x40aec9))continue;_0x158ffb['discardSuggestion'](_0x4bf796),_0x2fe5cf=!0x0;}}if('insertion'==_0x4ad7b4&&'imageCaption'==_0x4b4f8b&&!_0x29f8ad['newRange']){const _0x22c16a=_0x158ffb['getSuggestion'](_0x4cc303);_0x22c16a['next']&&_0x22c16a['next']['isInContent']&&(_0x158ffb['discardSuggestion'](_0x22c16a['next']),_0x2fe5cf=!0x0);}}}return _0x2fe5cf;}),this['_registerLegacyDescription'](_0x472f00);}['_registerLegacyDescription'](_0x7b66e7){const _0x576a6b=this['editor'],_0x13a31b=_0x576a6b['locale'];_0x576a6b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x41d91=>{if('formatBlock'!=_0x41d91['type']&&'formatInline'!=_0x41d91['type'])return;const {data:_0x1664f2}=_0x41d91;if(!_0x1664f2||'imageStyle'!=_0x1664f2['commandName'])return;const _0x4502fe=_0x1664f2['commandParams'][0x0]['value'];return _0x5c3f7e('side'===_0x4502fe?At(_0x13a31b,'FORMAT_SIDE_IMAGE'):_0x7b66e7[_0x4502fe]||_0x4502fe);function _0x5c3f7e(_0x3e4444){return{'type':'format','content':At(_0x13a31b,'*Format:*\x20%0',_0x3e4444)};}});}}class oe extends _0x36cdc7{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x125b64){super(_0x125b64),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x18de34=this['editor'],_0x1f72e6=_0x18de34['commands']['get']('importWord'),_0x456822=_0x18de34['commands']['get']('trackChanges');_0x1f72e6&&(_0x1f72e6['on']('execute',(_0x4215e6,[,_0x10bd21])=>{this['_trackChangesValueDuringImport']=_0x456822['value'],_0x10bd21['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x1f72e6,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x1f72e6,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x456822['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x18de34['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x202ab2,_0x4d01e2){const {suggestions:_0x20dd01}=_0x4d01e2,_0x5cd455=this['editor']['commands']['get']('trackChanges'),_0x5ee901=_0x5cd455['value'];this['_trackChangesValueDuringImport']!==_0x5ee901&&(_0x5cd455['execute'](),this['_trackChangesExecuted']=!0x0),_0x20dd01&&_0x20dd01['forEach'](({id:_0x376e42,type:_0x18eda5,author:_0x242807,created_at:_0x1c3a41})=>{const _0x1767c5={'id':_0x376e42,'type':_0x18eda5,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x242807,'createdAt':_0x1c3a41?new Date(_0x1c3a41):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x1767c5);});}}class ae extends _0x36cdc7{['afterInit'](){const _0x393fa2=this['editor'],_0x278b3f=_0x393fa2['plugins']['get']('TrackChangesEditing');if(_0x393fa2['plugins']['has']('IndentEditing')&&(_0x278b3f['enableCommand']('indent'),_0x278b3f['enableCommand']('outdent')),_0x393fa2['plugins']['has']('IndentBlock')){for(const _0x328f53 of['indentBlock','outdentBlock'])_0x278b3f['enableDefaultAttributesIntegration'](_0x328f53);if(_0x393fa2['plugins']['has']('ListEditing')){for(const _0x2ecbd5 of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x278b3f['enableDefaultAttributesIntegration'](_0x2ecbd5);}}const _0x8357b1=_0x393fa2['locale'];_0x278b3f['descriptionFactory']['registerAttributeLabel']('blockIndent',At(_0x8357b1,'FORMAT_INDENT')),_0x278b3f['descriptionFactory']['registerAttributeLabel']('blockIndentList',At(_0x8357b1,'FORMAT_INDENT')),_0x278b3f['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',At(_0x8357b1,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x144008=this['editor'],_0x2076ae=_0x144008['locale'],_0x11d196=_0x144008['plugins']['get']('TrackChangesEditing');_0x11d196['descriptionFactory']['registerDescriptionCallback'](_0x25d516=>{if('formatBlock'!=_0x25d516['type'])return;const {data:_0xd310fe}=_0x25d516;if(!_0xd310fe)return;if('indentBlock'!=_0xd310fe['commandName']&&'outdentBlock'!=_0xd310fe['commandName'])return;const _0x18159d=_0x25d516['getItems']()[0x0],_0x2a3a0f=_0x11d196['descriptionFactory']['getItemLabel'](_0x18159d);return'indentBlock'==_0xd310fe['commandName']?{'type':'format','content':At(_0x2076ae,'*Indent:*\x20%0',_0x2a3a0f)}:'outdentBlock'==_0xd310fe['commandName']?{'type':'format','content':At(_0x2076ae,'*Outdent:*\x20%0',_0x2a3a0f)}:void 0x0;});}}class ce extends _0x36cdc7{static get['requires'](){return[ct];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class le extends _0x36cdc7{['afterInit'](){const _0x2a0809=this['editor'];if(!_0x2a0809['plugins']['has']('LinkEditing'))return;const _0x5bfece=_0x2a0809['plugins']['get']('TrackChangesEditing'),_0x168ae1=_0x2a0809['commands']['get']('link');_0x5bfece['enableDefaultAttributesIntegration']('link'),_0x5bfece['enableDefaultAttributesIntegration']('unlink');for(const _0x56dd06 of _0x168ae1['manualDecorators'])_0x5bfece['descriptionFactory']['registerAttributeLabel'](_0x56dd06['id'],'link\x20('+_0x56dd06['label']['toLowerCase']()+')');_0x5bfece['descriptionFactory']['registerDescriptionCallback'](_0x154dcf=>{if('attribute'!=_0x154dcf['type'])return;const {data:_0x1215c6}=_0x154dcf;if(!_0x1215c6||'linkHref'!=_0x1215c6['key'])return;const _0x1502f9=_0x1215c6['newValue'],_0x593ae7=_0x2a0809['locale'];return{'type':'format','content':null==_0x1502f9?At(_0x593ae7,'*Remove\x20link*'):At(_0x593ae7,'*Set\x20link:*\x20%0','\x22'+_0x1502f9+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x56b9cd=this['editor'],_0x4f84c0=_0x56b9cd['locale'];_0x56b9cd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3716ab=>{if('formatInline'!=_0x3716ab['type'])return;const {data:_0x29fd2f}=_0x3716ab;if(_0x29fd2f){if('link'==_0x29fd2f['commandName']){const _0xe57966=_0x29fd2f['commandParams'][0x0];return{'type':'format','content':At(_0x4f84c0,'*Set\x20link:*\x20%0','\x22'+_0xe57966+'\x22')};}return'unlink'==_0x29fd2f['commandName']?{'type':'format','content':At(_0x4f84c0,'*Remove\x20link*')}:void 0x0;}});}}class ue extends _0x36cdc7{['afterInit'](){const _0x193620=this['editor'],_0x503246=_0x193620['locale'];if(!_0x193620['plugins']['has']('LegacyListEditing'))return;const _0x49f0a2=_0x193620['plugins']['get']('TrackChangesEditing'),_0x31fdc5=_0x193620['plugins']['has']('LegacyTodoListEditing');function _0x48d1da(_0x32c8fd){return()=>{const _0x5d7fa2=_0x193620['model']['document']['selection'],_0x38ae10=_0x193620['commands']['get'](_0x32c8fd);if(_0x38ae10['value'])return void _0x193620['execute']('paragraph',{});const _0x527b79=_0x32c8fd['slice'](0x0,-0x4),_0x428484=function(_0x17bb67,_0x357ea5,_0x135110){let _0x46146c=Array['from'](_0x17bb67)['filter'](_0x36b273=>function(_0x202f50,_0x140233){return _0x140233['checkChild'](_0x202f50['parent'],'listItem')&&!_0x140233['isObject'](_0x202f50);}(_0x36b273,_0x135110));_0x46146c=_0x46146c['filter'](_0x5f3f2b=>!_0x5f3f2b['is']('element','listItem')||_0x5f3f2b['getAttribute']('listType')!=_0x357ea5);const _0x1f876d=new Set();for(const _0x3fc4d4 of _0x46146c)_0x3fc4d4['is']('element','listItem')?_0x1f876d['add'](he(_0x3fc4d4)):_0x1f876d['add'](_0x3fc4d4);return Array['from'](_0x1f876d);}(_0x5d7fa2['getSelectedBlocks'](),_0x527b79,_0x193620['model']['schema']);_0x193620['model']['change'](()=>{for(const _0xe1fce0 of _0x428484)_0x49f0a2['markBlockFormat'](_0xe1fce0,{'commandName':_0x32c8fd,'commandParams':[{'forceValue':!_0x38ae10['value']}],'formatGroupId':'blockName'},de(_0xe1fce0));});};}function _0x42af71(_0x583976){return()=>{const _0x2aeb0c=function(_0x5c16a4){let _0x483b5e=Array['from'](_0x5c16a4);const _0x15a7ad=_0x483b5e['findIndex'](_0x31d346=>'listItem'!=_0x31d346['name']);return _0x15a7ad>-0x1&&(_0x483b5e=_0x483b5e['slice'](0x0,_0x15a7ad)),_0x483b5e;}(_0x193620['model']['document']['selection']['getSelectedBlocks']()),_0x4fe2b8=_0x193620['model']['createRange'](_0x193620['model']['createPositionAt'](_0x2aeb0c[0x0],'before'),_0x193620['model']['createPositionAt'](_0x2aeb0c[_0x2aeb0c['length']-0x1],'end'));_0x193620['model']['change'](()=>{_0x49f0a2['markBlockFormat'](_0x4fe2b8,{'commandName':_0x583976,'commandParams':[],'formatGroupId':'listIndent'},function(_0x19c5fb){const _0x2ca1b1=new Set();for(const _0x99a539 of _0x19c5fb){let _0x9dab7c=_0x99a539['nextSibling'];for(;_0x9dab7c&&_0x9dab7c['getAttribute']('listIndent')>_0x99a539['getAttribute']('listIndent');)_0x2ca1b1['add'](_0x9dab7c),_0x9dab7c=_0x9dab7c['nextSibling'];}return Array['from'](_0x2ca1b1);}(_0x2aeb0c));});};}_0x49f0a2['enableCommand']('numberedList',_0x48d1da('numberedList')),_0x49f0a2['enableCommand']('bulletedList',_0x48d1da('bulletedList')),_0x31fdc5&&_0x49f0a2['enableCommand']('todoList',_0x48d1da('todoList')),_0x49f0a2['enableCommand']('indentList',_0x42af71('indentList')),_0x49f0a2['enableCommand']('outdentList',_0x42af71('outdentList')),_0x31fdc5&&_0x49f0a2['enableCommand']('checkTodoList',()=>{const _0x4f94f0=_0x193620['commands']['get']('checkTodoList'),_0x1c432f=Array['from'](_0x4f94f0['_selectedElements']);_0x1c432f['filter'](_0x24539b=>_0x24539b['getAttribute']('todoListChecked')!=_0x4f94f0['value']),_0x193620['model']['change'](()=>{for(const _0x1738ea of _0x1c432f)_0x49f0a2['markBlockFormat'](_0x1738ea,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x4f94f0['value']}]});});}),_0x49f0a2['descriptionFactory']['registerElementLabel']('listItem',_0x45eafb=>At(_0x503246,'ELEMENT_LIST_ITEM',_0x45eafb)),_0x49f0a2['descriptionFactory']['registerDescriptionCallback'](_0x1e7bdf=>{if('formatBlock'!=_0x1e7bdf['type']&&'formatInline'!=_0x1e7bdf['type'])return;const {data:_0x34cb45}=_0x1e7bdf;if(_0x34cb45){if('numberedList'==_0x34cb45['commandName']||'bulletedList'==_0x34cb45['commandName']||'todoList'==_0x34cb45['commandName'])switch(_0x34cb45['commandName']['replace']('List','')){case'bulleted':return _0x54a9f0(At(_0x503246,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x54a9f0(At(_0x503246,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x54a9f0(At(_0x503246,'ELEMENT_TODO_LIST'));}if('indentList'==_0x34cb45['commandName'])return{'type':'format','content':At(_0x503246,'*Indent:*\x20%0',At(_0x503246,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x34cb45['commandName'])return{'type':'format','content':At(_0x503246,'*Outdent:*\x20%0',At(_0x503246,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x34cb45['commandName'])return _0x34cb45['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x503246,'*Check\x20item*')}:{'type':'format','content':At(_0x503246,'*Uncheck\x20item*')};}function _0x54a9f0(_0x54cf26){return{'type':'format','content':At(_0x503246,'*Change\x20to:*\x20%0',_0x54cf26)};}});}}function he(_0xbab997){const _0x2e1cb2=_0xbab997['getAttribute']('listIndent');if(0x0==_0x2e1cb2)return _0xbab997;let _0x1354db=_0xbab997;for(;_0xbab997['previousSibling']&&_0xbab997['previousSibling']['is']('element','listItem');){const _0x1b48d1=_0xbab997['previousSibling']['getAttribute']('listIndent');if(_0x1b48d1==_0x2e1cb2)_0x1354db=_0xbab997['previousSibling'];else{if(_0x1b48d1<_0x2e1cb2)break;}_0xbab997=_0xbab997['previousSibling'];}return _0x1354db;}function de(_0x158e4b){const _0x458c5c=[];if(_0x158e4b['is']('element','listItem')&&_0x158e4b['getAttribute']('listIndent')>0x0){let _0x321813=_0x158e4b['nextSibling'];for(;_0x321813&&'listItem'==_0x321813['name']&&_0x321813['getAttribute']('listIndent')==_0x158e4b['getAttribute']('listIndent');)_0x458c5c['push'](_0x321813),_0x321813=_0x321813['nextSibling'];}return _0x458c5c;}class fe extends _0x36cdc7{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x1c22fc=this['editor']['config']['get']('list.properties'),_0x5ce303=this['editor']['plugins']['get']('TrackChangesEditing');_0x1c22fc['styles']&&_0x5ce303['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x1c22fc['reversed']&&_0x5ce303['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x1c22fc['startIndex']&&_0x5ce303['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x5ce303['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x46340d,_0xae5a9a={}){const _0x1e6a9b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x37048b=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x1e6a9b['markMultiRangeBlockFormat'](_0x37048b,{'commandName':'listStyle','commandParams':[{'type':_0xae5a9a['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0xaa8b64,_0xc9bbad={}){const _0x34b516=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4c274a=this['_getSuggestionBlocks'](_0x24fe65=>_0x24fe65['is']('element','listItem')&&'numbered'===_0x24fe65['getAttribute']('listType'));if(_0x4c274a['length']<0x1)return;const _0x449bc8=_0x4c274a['map'](_0x3e3742=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3e3742,'before'),this['editor']['model']['createPositionAt'](_0x3e3742,0x0)));this['editor']['model']['change'](()=>{_0x34b516['markMultiRangeBlockFormat'](_0x449bc8,{'commandName':'listReversed','commandParams':[{'reversed':_0xc9bbad['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x534bc0,_0x19d3b2={}){const _0x321086=this['editor']['plugins']['get']('TrackChangesEditing'),_0x51c503=this['_getSuggestionBlocks'](_0x30ad04=>_0x30ad04['is']('element','listItem')&&'numbered'===_0x30ad04['getAttribute']('listType'));if(_0x51c503['length']<0x1)return;const _0x44c8df=_0x51c503['map'](_0x4e1ba9=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4e1ba9,'before'),this['editor']['model']['createPositionAt'](_0x4e1ba9,0x0)));this['editor']['model']['change'](()=>{_0x321086['markMultiRangeBlockFormat'](_0x44c8df,{'commandName':'listStart','commandParams':[{'startIndex':_0x19d3b2['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x100b0f){if('formatBlock'!=_0x100b0f['type']&&'formatInline'!=_0x100b0f['type'])return;const _0x485d73=this['editor']['locale'],{data:_0x1e48a8}=_0x100b0f;if(!_0x1e48a8)return;let _0x47a351,_0x5efb2e;switch(_0x1e48a8['commandName']){case'listStyle':_0x47a351='*Change\x20to:*\x20%0',_0x5efb2e={'type':'format','content':At(_0x485d73,_0x47a351,At(_0x485d73,this['_getTranslationKeyForListStyle'](_0x1e48a8['commandParams'][0x0]['type'])))};break;case'listReversed':_0x47a351=_0x1e48a8['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5efb2e={'type':'format','content':At(_0x485d73,_0x47a351)};break;case'listStart':_0x47a351='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5efb2e={'type':'format','content':At(_0x485d73,_0x47a351,_0x1e48a8['commandParams'][0x0]['startIndex'])};}return _0x5efb2e;}['_getSuggestionBlocksForListStyle'](){const _0x2b2690=this['editor']['plugins']['get']('LegacyListUtils');let _0x33fed4=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x33fed4[0x0]?.['is']('element','listItem')&&_0x33fed4['unshift'](..._0x2b2690['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x33fed4[_0x33fed4['length']-0x1]?.['is']('element','listItem')&&_0x33fed4['push'](..._0x2b2690['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x33fed4=[...new Set(_0x33fed4)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x33fed4=_0x33fed4['filter'](_0x11d15a=>_0x11d15a['is']('element','listItem'))),_0x33fed4;}['_getSuggestionBlocks'](_0x2df372){const _0x261547=this['editor']['plugins']['get']('LegacyListUtils');let _0x28927b=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x2df372)['map'](_0x430177=>{const _0x2cad19=this['editor']['model']['createPositionAt'](_0x430177,0x0);return[..._0x261547['getSiblingNodes'](_0x2cad19,'backward'),..._0x261547['getSiblingNodes'](_0x2cad19,'forward')];})['flat']();return _0x28927b=[...new Set(_0x28927b)],_0x28927b;}['_getTranslationKeyForListStyle'](_0x203208){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x203208)||'default')['toUpperCase']()+'_LIST_'+_0x203208['toUpperCase']()['replace'](/-/g,'_');}}class ge extends _0x36cdc7{['afterInit'](){const _0x4a7da5=this['editor'];if(!_0x4a7da5['plugins']['has']('MediaEmbedEditing'))return;const _0x31e355=_0x4a7da5['plugins']['get']('TrackChangesEditing'),_0x39afa0=_0x4a7da5['locale'];_0x31e355['enableCommand']('mediaEmbed'),_0x31e355['descriptionFactory']['registerElementLabel']('media',_0x4aae65=>At(_0x39afa0,'ELEMENT_MEDIA',_0x4aae65));}}class me extends _0x36cdc7{['afterInit'](){const _0xba44a4=this['editor'];_0xba44a4['plugins']['has']('MentionEditing')&&_0xba44a4['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class Ee extends _0x36cdc7{['afterInit'](){const _0xafce3=this['editor'];if(!_0xafce3['plugins']['has']('MergeFieldsEditing'))return;const _0x4ac382=_0xafce3['plugins']['get']('TrackChangesEditing'),_0x3b93cc=_0xafce3['locale'];_0x4ac382['enableCommand']('insertMergeField'),_0x4ac382['enableCommand']('insertMergeFieldBlock'),_0x4ac382['enableCommand']('insertMergeFieldImage'),_0x4ac382['descriptionFactory']['registerElementLabel']('mergeField',_0x1a3112=>At(_0x3b93cc,'ELEMENT_MERGE_FIELD',_0x1a3112)),_0x4ac382['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x14776f=>At(_0x3b93cc,'ELEMENT_MERGE_FIELD',_0x14776f)),_0x4ac382['descriptionFactory']['registerDescriptionCallback'](_0x24edd4=>{if('insertion'!=_0x24edd4['type']&&'deletion'!=_0x24edd4['type'])return;const _0x8ae36e=_0x24edd4['getContainedElement']();if(null==_0x8ae36e)return;const _0x4543be=_0xafce3['plugins']['get']('MergeFieldsEditing');let _0x1620fb;switch(_0x4543be['getMergeFieldType'](_0x8ae36e)){case null:return;case'image':{const _0x18a22e=_0x4543be['unwrapAffixes'](_0x8ae36e['getAttribute']('src'));_0x1620fb=_0x4543be['getLabel'](_0x18a22e)||_0x18a22e;break;}default:{const _0xa265cd=_0x8ae36e['getAttribute']('id');_0x1620fb=_0x4543be['getLabel'](_0xa265cd)||_0xa265cd;break;}}return'insertion'==_0x24edd4['type']?{'type':'insertion','content':At(_0x3b93cc,'*Insert:*\x20%0','\x22'+_0x1620fb+'\x22\x20'+At(_0x3b93cc,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':At(_0x3b93cc,'*Remove:*\x20%0','\x22'+_0x1620fb+'\x22\x20'+At(_0x3b93cc,'ELEMENT_MERGE_FIELD'))};});}}class Te extends _0x36cdc7{['afterInit'](){const _0x28a64f=this['editor'],_0x1667c2=_0x28a64f['plugins']['get']('TrackChangesEditing');_0x28a64f['plugins']['has']('MultiLevelList')&&(_0x1667c2['enableDefaultAttributesIntegration']('multiLevelList'),_0x1667c2['descriptionFactory']['registerDescriptionCallback'](_0x3dee0f=>this['handleDescriptions'](_0x3dee0f)));}['handleDescriptions'](_0x207f60){const _0x39ee53=this['editor']['locale'],{data:_0x3c712e}=_0x207f60,_0x540094={'type':'format','content':''};if(_0x3c712e&&'listMarkerStyle'==_0x3c712e['key']){if(!_0x3c712e['oldValue'])return{'type':'format','content':At(_0x39ee53,'*Set\x20format:*\x20%0',At(_0x39ee53,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3c712e['newValue']+')'};if(!_0x3c712e['newValue']){let _0x54c675=_0x207f60['head'];for(;_0x54c675;){if(_0x54c675['data']&&'listType'==_0x54c675['data']['key']&&_0x54c675['data']['newValue'])return _0x540094;_0x54c675=_0x54c675['next'];}return{'type':'format','content':At(_0x39ee53,'*Remove\x20format:*\x20%0',At(_0x39ee53,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3c712e['oldValue']+')'};}}}}class _e extends _0x36cdc7{['afterInit'](){const _0x398856=this['editor'];if(!_0x398856['plugins']['has']('PageBreakEditing'))return;_0x398856['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x463d23=_0x398856['plugins']['get']('TrackChangesEditing'),_0x27c626=_0x398856['locale'];_0x463d23['descriptionFactory']['registerElementLabel']('pageBreak',_0x5a427b=>At(_0x27c626,'ELEMENT_PAGE_BREAK',_0x5a427b));}}class pe extends _0x36cdc7{['afterInit'](){const _0x194c3d=this['editor'];if(!_0x194c3d['plugins']['has']('Paragraph'))return;const _0x167ac3=_0x194c3d['locale'],_0x2b2578=_0x194c3d['plugins']['get']('TrackChangesEditing');_0x2b2578['descriptionFactory']['registerElementLabel']('paragraph',_0x1f8de3=>At(_0x167ac3,'ELEMENT_PARAGRAPH',_0x1f8de3)),_0x2b2578['enableDefaultAttributesIntegration']('paragraph'),_0x2b2578['enableCommand']('insertParagraph');const _0x20512e=_0x2b2578['descriptionFactory'];_0x20512e['registerDescriptionCallback'](_0x269155=>{if('insertion'!==_0x269155['type'])return;const {start:_0x5485aa,end:_0x589a39}=_0x269155['getFirstRange']();if(!_0x5485aa['isTouching'](_0x589a39)||!_0x5485aa['nodeAfter'])return;const _0x1eaf3d=_0x194c3d['model']['schema'],_0x19d213=_0x5485aa['nodeAfter'];return _0x1eaf3d['isBlock'](_0x19d213)&&!_0x1eaf3d['isLimit'](_0x19d213)&&_0x1eaf3d['checkChild'](_0x19d213,'$text')?{'type':'insertion','content':At(_0x167ac3,'*Insert:*\x20%0',_0x20512e['getItemLabel'](_0x19d213,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xe5544=this['editor'],_0x1b2a29=_0xe5544['locale'];_0xe5544['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3a651f=>{if('formatBlock'!=_0x3a651f['type'])return;const {data:_0x606067}=_0x3a651f;return _0x606067&&'paragraph'==_0x606067['commandName']?{'type':'format','content':At(_0x1b2a29,'*Change\x20to:*\x20%0',At(_0x1b2a29,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class Le extends _0x36cdc7{['afterInit'](){const _0x1fdd94=this['editor'];_0x1fdd94['commands']['get']('replaceSource')&&_0x1fdd94['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class Ie extends _0x36cdc7{['afterInit'](){const _0x297c6f=this['editor'];if(!_0x297c6f['plugins']['has']('RemoveFormatEditing'))return;_0x297c6f['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5f24be=this['editor'];_0x5f24be['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4211b7=>{if('formatBlock'!=_0x4211b7['type']&&'formatInline'!=_0x4211b7['type'])return;const {data:_0x3c7272}=_0x4211b7;return _0x3c7272&&'removeFormat'==_0x3c7272['commandName']?{'type':'format','content':At(_0x5f24be['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class be extends _0x36cdc7{['afterInit'](){const _0x118d33=this['editor'];if(!_0x118d33['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x596e39=_0x118d33['plugins']['get']('TrackChangesEditing');_0x596e39['enableCommand']('goToPreviousRestrictedEditingException'),_0x596e39['enableCommand']('goToNextRestrictedEditingException');const _0x52a52d=_0x118d33['plugins']['get']('RestrictedEditingModeEditing');_0x52a52d['enableCommand']('trackChanges'),_0x52a52d['enableCommand']('acceptSuggestion'),_0x52a52d['enableCommand']('discardSuggestion'),_0x52a52d['enableCommand']('acceptAllSuggestions'),_0x52a52d['enableCommand']('discardAllSuggestions'),_0x52a52d['enableCommand']('acceptSelectedSuggestions'),_0x52a52d['enableCommand']('discardSelectedSuggestions');}}class Ae extends _0x36cdc7{['afterInit'](){const _0x59386f=this['editor'];if(!_0x59386f['plugins']['has']('ShiftEnter'))return;const _0x2cbd88=_0x59386f['plugins']['get']('TrackChangesEditing');_0x2cbd88['enableCommand']('shiftEnter'),_0x2cbd88['descriptionFactory']['registerElementLabel']('softBreak',_0x37d6a2=>At(_0x59386f['locale'],'ELEMENT_LINE_BREAK',_0x37d6a2));}}function ke(_0x1741ab,_0x30e57e,_0xa62849){const _0x9843dd=[];for(const _0x7ec3d3 of _0x30e57e['getItems']())_0x7ec3d3['hasAttribute'](_0x1741ab)&&_0x9843dd['push'](_0xa62849['createRangeOn'](_0x7ec3d3));return _0x9843dd;}class Ce extends _0x36cdc7{['afterInit'](){const _0x3f3843=this['editor'],_0x1e17f4=_0x3f3843['plugins']['get']('TrackChangesEditing');_0x3f3843['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x1e17f4['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x59375b=this['editor'],_0x2e83d8=_0x59375b['model'],_0x40902e=_0x59375b['locale'],_0x58586d=_0x59375b['plugins']['get']('TrackChangesEditing'),_0x53a4a2='restrictedEditingException',_0x44d648=_0x59375b['commands']['get'](_0x53a4a2);_0x58586d['enableCommand'](_0x53a4a2,(_0x295a60,_0x34c140={})=>{const _0x2d2110=_0x2e83d8['document']['selection'];if(_0x2d2110['isCollapsed'])return void _0x295a60(_0x34c140);const _0x47872b=void 0x0!==_0x34c140['forceValue']?_0x34c140['forceValue']:!_0x44d648['value'];_0x2e83d8['change'](()=>{const _0x5817d5=Array['from'](_0x2d2110['getRanges']());for(const _0x3893ca of _0x5817d5){const _0x10266c=_0x47872b?[_0x3893ca]:ke(_0x53a4a2,_0x3893ca,_0x2e83d8);for(const _0x2ee79d of _0x10266c)_0x58586d['markInlineFormat'](_0x2ee79d,{'commandName':_0x53a4a2,'commandParams':[{'forceValue':_0x47872b}]});}});}),_0x58586d['descriptionFactory']['registerDescriptionCallback'](_0x4cca66=>{if('formatBlock'!=_0x4cca66['type']&&'formatInline'!=_0x4cca66['type'])return;const {data:_0x1258ad}=_0x4cca66;return _0x1258ad&&_0x1258ad['commandName']==_0x53a4a2?_0x1258ad['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x40902e,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':At(_0x40902e,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x404565=this['editor'],_0x31853a=_0x404565['locale'],_0x156f6f=_0x404565['plugins']['get']('TrackChangesEditing'),_0x107d8a='restrictedEditingExceptionBlock',_0x3f0718=this['editor']['commands']['get'](_0x107d8a);_0x156f6f['enableCommand'](_0x107d8a,(_0x2444d6,_0x501de1={})=>{const _0x3a7579=this['editor']['model']['document']['selection'],_0x39e658=_0x501de1&&void 0x0!==_0x501de1['forceValue']?_0x501de1['forceValue']:!_0x3f0718['value'];let _0x462e4d=[];if(_0x39e658){const _0x55fd32=Array['from'](_0x3a7579['getSelectedBlocks']())['filter'](_0x2c5aa9=>function(_0x3a9b57){return!!_0x3a9b57['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x2c5aa9)||function(_0x1be600,_0x3b89b3){const _0x24a649=_0x3b89b3['createContext'](_0x1be600['parent']);if(!_0x3b89b3['checkChild'](_0x24a649,'restrictedEditingException'))return!0x1;if(!_0x3b89b3['checkChild'](_0x24a649['push']('restrictedEditingException'),_0x1be600))return!0x1;return!0x0;}(_0x2c5aa9,this['editor']['model']['schema']));_0x462e4d=Tt(_0x55fd32,_0x404565['model']);}else{const _0x5c38c8=Array['from'](_0x3a7579['getSelectedBlocks']())['map'](_0x33fd44=>function(_0x212c57){let _0x47e9d7=_0x212c57;for(;_0x47e9d7['parent'];){if('restrictedEditingException'==_0x47e9d7['parent']['name'])return _0x47e9d7;_0x47e9d7=_0x47e9d7['parent'];}return null;}(_0x33fd44))['filter'](_0xe27b64=>!!_0xe27b64);_0x462e4d=Tt(_0x5c38c8,_0x404565['model']);}_0x404565['model']['change'](()=>{for(const _0x18b282 of _0x462e4d)_0x156f6f['markBlockFormat'](_0x18b282,{'commandName':_0x107d8a,'commandParams':[{'forceValue':_0x39e658}]});});}),_0x156f6f['descriptionFactory']['registerDescriptionCallback'](_0x576c20=>{const {data:_0x1d6d72}=_0x576c20;if(_0x1d6d72&&_0x1d6d72['commandName']==_0x107d8a)return _0x1d6d72['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x31853a,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':At(_0x31853a,'FORMAT_RESTRICTED_DISABLED')};});}}class ye extends _0x36cdc7{['afterInit'](){const _0x5abc5e=this['editor'];if(!_0x5abc5e['plugins']['has']('Style')||!_0x5abc5e['plugins']['has']('DataSchema'))return;const _0x4edfa2=_0x5abc5e['plugins']['get']('TrackChangesEditing'),_0x53aa25=_0x5abc5e['locale'],_0x3a98c5=_0x5abc5e['config']['get']('style')||{},_0x427dd4=_0x5abc5e['plugins']['get']('GeneralHtmlSupport'),_0x531dc7=_0x5abc5e['plugins']['get']('StyleUtils')['normalizeConfig'](_0x5abc5e['plugins']['get']('DataSchema'),_0x3a98c5['definitions']);_0x4edfa2['enableDefaultAttributesIntegration']('style');const _0x282cbf=new Set();for(const _0x4648c4 of _0x531dc7['block']){const _0x29b70e=_0x427dd4['getGhsAttributeNameForElement'](_0x4648c4['element']);_0x282cbf['add'](_0x29b70e);}const _0x774c44=new Set();for(const _0x306be9 of _0x531dc7['inline']){const _0x5c7c1d=_0x427dd4['getGhsAttributeNameForElement'](_0x306be9['element']);_0x774c44['add'](_0x5c7c1d);for(const _0x574417 of _0x306be9['ghsAttributes'])_0x774c44['add'](_0x574417);}for(const _0x26c646 of _0x282cbf)_0x4edfa2['descriptionFactory']['registerAttributeLabel'](_0x26c646,At(_0x53aa25,'FORMAT_STYLE'));for(const _0x3424c6 of _0x774c44)_0x4edfa2['descriptionFactory']['registerAttributeLabel'](_0x3424c6,At(_0x53aa25,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x666363=this['editor'],_0x48bb5c=_0x666363['locale'];_0x666363['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x46e66d=>{if('formatBlock'!=_0x46e66d['type']&&'formatInline'!=_0x46e66d['type'])return;const {data:_0x460887}=_0x46e66d;return _0x460887&&'style'===_0x460887['commandName']?_0x460887['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x48bb5c,'*Set\x20format:*\x20%0',_0x460887['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':At(_0x48bb5c,'*Remove\x20format:*\x20%0',_0x460887['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ne extends _0x36cdc7{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0xea42a5){super(_0xea42a5),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x38a88e=this['editor'],_0x5bf44e=_0x38a88e['model']['document']['selection'];if(!_0x38a88e['plugins']['has']('TableEditing'))return;const _0x28e97e=_0x38a88e['locale'],_0xd65204=_0x38a88e['plugins']['get']('TrackChangesEditing'),_0xc68a0a=_0x38a88e['plugins']['get']('TableUtils');_0xd65204['descriptionFactory']['registerElementLabel']('table',_0x175cb1=>At(_0x28e97e,'ELEMENT_TABLE',_0x175cb1)),this['_setupColumnsRowsFixing'](),_0xd65204['enableCommand']('insertTable'),_0xd65204['enableCommand']('selectTableRow'),_0xd65204['enableCommand']('selectTableColumn');for(const _0x591b85 of['insertTableRowAbove','insertTableRowBelow']){const _0x21c4bb=_0x38a88e['commands']['get'](_0x591b85);_0xd65204['enableCommand'](_0x591b85,_0x2763a5=>{_0x38a88e['model']['change'](_0x50669e=>{_0x2763a5();const _0x4d6d6a='above'===_0x21c4bb['order'],_0x44f9aa=_0xc68a0a['getSelectionAffectedTableCells'](_0x5bf44e),_0x247037=_0xc68a0a['getRowIndexes'](_0x44f9aa),_0x5363a6=_0x4d6d6a?_0x247037['first']-0x1:_0x247037['last']+0x1,_0xe753f1=_0x44f9aa[0x0]['findAncestor']('table'),_0xf7661=_0xc68a0a['createTableWalker'](_0xe753f1,{'startRow':_0x5363a6,'endRow':_0x5363a6}),_0x55a2bf=Array['from'](_0xf7661)['map'](_0x580e4a=>_0x50669e['createRangeOn'](_0x580e4a['cell']));_0xd65204['markMultiRangeInsertion'](_0x55a2bf,'tableRow');});});}for(const _0x3a53f1 of['insertTableColumnLeft','insertTableColumnRight']){const _0x127ba1=_0x38a88e['commands']['get'](_0x3a53f1);_0xd65204['enableCommand'](_0x3a53f1,_0x966688=>{_0x38a88e['model']['change'](_0x599cf4=>{_0x966688();const _0x3b0ccb='left'===_0x127ba1['order'],_0x319c58=_0xc68a0a['getSelectionAffectedTableCells'](_0x5bf44e),_0x43ad5d=_0xc68a0a['getColumnIndexes'](_0x319c58),_0x1997d7=_0x3b0ccb?_0x43ad5d['first']-0x1:_0x43ad5d['last']+0x1,_0x7d4c46=_0x319c58[0x0]['findAncestor']('table'),_0x5d089a=_0xc68a0a['createTableWalker'](_0x7d4c46,{'startRow':0x0,'column':_0x1997d7,'includeAllSlots':!0x1}),_0x3002bc=Array['from'](_0x5d089a)['map'](_0x3c0b94=>_0x599cf4['createRangeOn'](_0x3c0b94['cell']));_0xd65204['markMultiRangeInsertion'](_0x3002bc,'tableColumn');});});}for(const _0x35cd85 of['removeTableRow','removeTableColumn']){const _0x47cc22=_0x35cd85['substr'](0xb),_0x5096dc=_0x47cc22['toLowerCase'](),_0x4b1af5=_0x5096dc['substr'](0x0,0x3)+'span',_0x218b03='table'+_0x47cc22,_0x10fa9d='min'+_0x47cc22,_0x11e21f='max'+_0x47cc22;_0xd65204['enableCommand'](_0x35cd85,()=>{_0x38a88e['model']['change'](_0x2bf545=>{const _0x57e5ca=_0xc68a0a['getSelectionAffectedTableCells'](_0x5bf44e),_0x48bb96=_0x57e5ca[0x0]['findAncestor']('table');let _0x3a6bb6;if('removeTableRow'==_0x35cd85){const _0x15002f=_0xc68a0a['getRowIndexes'](_0x57e5ca);_0x3a6bb6={'startRow':_0x15002f['first'],'endRow':_0x15002f['last'],'includeAllSlots':!0x0};}else{const _0xe1e557=_0xc68a0a['getColumnIndexes'](_0x57e5ca);_0x3a6bb6={'startColumn':_0xe1e557['first'],'endColumn':_0xe1e557['last'],'includeAllSlots':!0x0};}const _0x347378=_0xc68a0a['createTableWalker'](_0x48bb96,_0x3a6bb6),_0x4135cb=Array['from'](_0x347378)['map'](({cell:_0x18194c})=>_0x18194c),_0x4697e1=Re(_0x4135cb['filter'](_0x46bb54=>_0x46bb54['hasAttribute'](_0x4b1af5))),_0x118d25=Re(_0x4135cb['filter'](_0xc5e9ac=>!_0xc5e9ac['hasAttribute'](_0x4b1af5)))['map'](_0x5d41d2=>_0x2bf545['createRangeOn'](_0x5d41d2)),_0x3b6ec1=_0xd65204['markMultiRangeDeletion'](_0x118d25,_0x218b03);if(_0x3b6ec1&&('tableRow'==_0x3b6ec1['subType']||'tableColumn'==_0x3b6ec1['subType'])){const _0xc39a9f=this['_getSuggestionCoords'](_0x3b6ec1);for(const _0x5a3285 of _0x4697e1){const _0x2a71a8=_0x2bf545['createRangeOn'](_0x5a3285),_0x5b8b4b=_0xc68a0a['getCellLocation'](_0x5a3285),_0x2fa7f1=_0x5a3285['getAttribute'](_0x4b1af5)-0x1,_0x4ae37f=_0xc39a9f[_0x10fa9d],_0x2e4dad=_0xc39a9f[_0x11e21f];_0x4ae37f<=_0x5b8b4b[_0x5096dc]&&_0x5b8b4b[_0x5096dc]+_0x2fa7f1<=_0x2e4dad&&_0x3b6ec1['addRange'](_0x2a71a8);}}});});}function _0x27ecc8(_0x118f73){const _0x4e006b=Array['from'](_0x5bf44e['getRanges']())['map'](_0x4e1561=>_0xf2eec6['fromRange'](_0x4e1561));_0x38a88e['model']['change'](_0x2d93f9=>{const _0x14c8b1=_0x2d93f9['batch'];_0x118f73=_0x118f73['filter'](_0x280d5b=>'$graveyard'!=_0x280d5b['root']['rootName']),_0x2d93f9['setSelection'](_0x118f73),_0x38a88e['commands']['get']('removeTableRow')['refresh'](),_0x38a88e['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x38a88e['model']['enqueueChange'](()=>{_0x38a88e['model']['enqueueChange'](_0x14c8b1,_0x4f67ed=>{const _0x25bd1d=_0x4e006b['filter'](_0x29d089=>'$graveyard'!=_0x29d089['root']['rootName']);_0x25bd1d['length']>0x0&&_0x4f67ed['setSelection'](_0x25bd1d);for(const _0x20c3a3 of _0x4e006b)_0x20c3a3['detach']();});});});}function _0x1e775c(_0x9894b5){_0x38a88e['model']['change'](_0x88fe82=>{const _0x69aa53=Array['from'](_0x5bf44e['getRanges']())['map'](_0x1a91d6=>_0xf2eec6['fromRange'](_0x1a91d6)),_0x260c15=[];for(const _0x5ce708 of _0x9894b5)for(const _0x23e327 of _0x5ce708['getItems']({'shallow':!0x0}))_0x260c15['push'](_0x23e327);for(const _0x3690ff of _0x260c15)'$graveyard'!=_0x3690ff['root']['rootName']&&(_0x88fe82['setSelection'](_0x88fe82['createPositionAt'](_0x3690ff,0x0)),_0x38a88e['commands']['get']('removeTableColumn')['refresh'](),_0x38a88e['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x1cd11f=_0x69aa53['filter'](_0x117429=>'$graveyard'!=_0x117429['root']['rootName']);_0x1cd11f['length']>0x0&&_0x88fe82['setSelection'](_0x1cd11f);for(const _0x4b18c2 of _0x69aa53)_0x4b18c2['detach']();});}function _0x501706(_0x2865f0,_0x5dca51){return _0x5dca51['every'](_0xa7db8e=>_0x2865f0['some'](_0x8dbdde=>_0x8dbdde['end']['isEqual'](_0xa7db8e['start'])||_0xa7db8e['end']['isEqual'](_0x8dbdde['start'])));}function _0x86aeb5(_0x53e480,_0x38127d){return!_0x53e480['some'](_0x7e76ce=>_0x38127d['some'](_0x50cf35=>_0x7e76ce['isIntersecting'](_0x50cf35)))&&_0x53e480['some'](_0x1c680=>_0x38127d['some'](_0x434b3b=>_0x1c680['end']['isTouching'](_0x434b3b['start'])));}_0xd65204['descriptionFactory']['registerDescriptionCallback'](_0x263a80=>{if('insertion'!=_0x263a80['type']&&'deletion'!=_0x263a80['type'])return;const _0xb8a162=_0x263a80['getContainedElement']();if(null!=_0xb8a162&&_0xb8a162['is']('element','table')){if('insertion'==_0x263a80['type']){const _0x55ca1d=_0x263a80['getItems']()['filter'](_0x1e20b5=>_0x1e20b5['is']('$textProxy'))['map'](_0x4a83e3=>_0x4a83e3['data']);if(_0x55ca1d['length'])return{'type':'insertion','content':At(_0x28e97e,'*Insert:*\x20%0',At(_0x28e97e,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x55ca1d['join']('\x20')+'\x22'))};}if('deletion'==_0x263a80['type']){const _0x1a5463=_0x263a80['getItems']()['filter'](_0x3364a0=>_0x3364a0['is']('$textProxy'))['map'](_0xe6ae8d=>_0xe6ae8d['data']);if(_0x1a5463['length'])return{'type':'deletion','content':At(_0x28e97e,'*Remove:*\x20%0',At(_0x28e97e,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1a5463['join']('\x20')+'\x22'))};}}}),_0xd65204['descriptionFactory']['registerDescriptionCallback'](_0x251de1=>{if('tableRow'==_0x251de1['subType']){const _0x1e84fd=_0x251de1['getItems']()['filter'](_0xa16c90=>_0xa16c90['is']('$textProxy'))['map'](_0x318964=>_0x318964['data']),_0x591c4c=this['_getSuggestionCoords'](_0x251de1),_0xa14730=_0x591c4c['maxRow']-_0x591c4c['minRow']+0x1;if('insertion'==_0x251de1['type'])return _0x1e84fd['length']?{'type':'insertion','content':At(_0x28e97e,'*Insert:*\x20%0',At(_0x28e97e,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xa14730,'\x22'+_0x1e84fd['join']('\x20')+'\x22']))}:{'type':'insertion','content':At(_0x28e97e,'*Insert:*\x20%0',At(_0x28e97e,'ELEMENT_TABLE_ROW',_0xa14730))};if('deletion'==_0x251de1['type'])return _0x1e84fd['length']?{'type':'deletion','content':At(_0x28e97e,'*Remove:*\x20%0',At(_0x28e97e,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xa14730,'\x22'+_0x1e84fd['join']('\x20')+'\x22']))}:{'type':'deletion','content':At(_0x28e97e,'*Remove:*\x20%0',At(_0x28e97e,'ELEMENT_TABLE_ROW',_0xa14730))};}if('tableColumn'==_0x251de1['subType']){const _0x4f0c01=_0x251de1['getItems']()['filter'](_0x361b52=>_0x361b52['is']('$textProxy'))['map'](_0x275717=>_0x275717['data']),_0x43da86=this['_getSuggestionCoords'](_0x251de1),_0x202967=_0x43da86['maxColumn']-_0x43da86['minColumn']+0x1;if('insertion'==_0x251de1['type'])return _0x4f0c01['length']?{'type':'insertion','content':At(_0x28e97e,'*Insert:*\x20%0',At(_0x28e97e,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x202967,'\x22'+_0x4f0c01['join']('\x20')+'\x22']))}:{'type':'insertion','content':At(_0x28e97e,'*Insert:*\x20%0',At(_0x28e97e,'ELEMENT_TABLE_COLUMN',_0x202967))};if('deletion'==_0x251de1['type'])return _0x4f0c01['length']?{'type':'deletion','content':At(_0x28e97e,'*Remove:*\x20%0',At(_0x28e97e,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x202967,'\x22'+_0x4f0c01['join']('\x20')+'\x22']))}:{'type':'deletion','content':At(_0x28e97e,'*Remove:*\x20%0',At(_0x28e97e,'ELEMENT_TABLE_COLUMN',_0x202967))};}}),_0xd65204['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x27ecc8),_0xd65204['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x27ecc8),_0xd65204['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x1e775c),_0xd65204['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x1e775c),_0xd65204['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x501706),_0xd65204['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x501706),_0xd65204['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x86aeb5),_0xd65204['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x86aeb5);}['_acceptFormatSuggestionCallbackFactory'](){const _0x3fd2c2=this['editor'],_0x233776=_0x3fd2c2['model']['document']['selection'];return(_0x42252c,_0x5909f8)=>{_0x3fd2c2['model']['change'](_0x3aa5b4=>{const {commandName:_0x4a0c70,commandParams:_0x318af1}=_0x5909f8;let _0x1ba1d5=_0x42252c[0x0]['end']['nodeBefore'];_0x318af1&&_0x318af1[0x0]&&!0x1===_0x318af1[0x0]['forceValue']&&(_0x1ba1d5=_0x42252c[0x0]['start']['nodeAfter']);const _0x2b917c=_0x3aa5b4['createRangeIn'](_0x1ba1d5);if('$graveyard'==_0x2b917c['root']['rootName'])return;const _0x46d2ad=Array['from'](_0x233776['getRanges']())['map'](_0x1a6913=>_0xf2eec6['fromRange'](_0x1a6913));_0x3aa5b4['setSelection'](_0x2b917c),_0x3fd2c2['commands']['get'](_0x4a0c70)['refresh'](),_0x318af1['push']({'forceDefaultExecution':!0x0}),_0x3fd2c2['execute'](_0x4a0c70,..._0x318af1);const _0x2630cb=_0x46d2ad['filter'](_0x576b0d=>'$graveyard'!=_0x576b0d['root']['rootName']);_0x2630cb['length']>0x0&&_0x3aa5b4['setSelection'](_0x2630cb);for(const _0x3ac660 of _0x46d2ad)_0x3ac660['detach']();});};}['_getCoordsForCells'](_0x174778){const _0x9235af=this['editor']['plugins']['get']('TableUtils');let _0x23fd85=Number['MAX_SAFE_INTEGER'],_0x52257f=Number['MIN_SAFE_INTEGER'],_0x128d4d=Number['MAX_SAFE_INTEGER'],_0x520bc1=Number['MIN_SAFE_INTEGER'];for(const _0x4720b0 of _0x174778){if('$graveyard'==_0x4720b0['root']['rootName'])continue;const {row:_0x5081ae,column:_0x12a294}=_0x9235af['getCellLocation'](_0x4720b0),_0x438c2c=_0x4720b0['hasAttribute']('rowspan')?_0x4720b0['getAttribute']('rowspan')-0x1:0x0,_0x5ec88e=_0x4720b0['hasAttribute']('colspan')?_0x4720b0['getAttribute']('colspan')-0x1:0x0;_0x23fd85=_0x5081ae<_0x23fd85?_0x5081ae:_0x23fd85,_0x52257f=_0x5081ae+_0x438c2c>_0x52257f?_0x5081ae+_0x438c2c:_0x52257f,_0x128d4d=_0x12a294<_0x128d4d?_0x12a294:_0x128d4d,_0x520bc1=_0x12a294+_0x5ec88e>_0x520bc1?_0x12a294+_0x5ec88e:_0x520bc1;}return{'minRow':_0x23fd85,'maxRow':_0x52257f,'minColumn':_0x128d4d,'maxColumn':_0x520bc1};}['_setupColumnsRowsFixing'](){const _0x4be882=this['editor'],_0x2ee35c=_0x4be882['plugins']['get']('TrackChangesEditing'),_0x4f91c1=_0x4be882['plugins']['get']('TableUtils');_0x4be882['model']['document']['on']('change:data',()=>{const _0x22f379=Array['from'](_0x4be882['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4210f9,data:_0x214427}of _0x22f379){const {group:_0x58b36d,id:_0x426f70,subType:_0x5ba7cd}=_0x4f6d6c(_0x4210f9);if('suggestion'!=_0x58b36d)continue;if(null!=_0x214427['oldRange'])continue;const _0x445434=_0x2ee35c['getSuggestion'](_0x426f70);this['_tablePostFixingSubtypes']['includes'](_0x5ba7cd)&&this['_tableSuggestions']['add'](_0x445434);}},{'priority':'low'});const _0x375259=(_0x3cc0e3,_0x5b5273)=>{let _0x352ab3=!0x1;const _0x24cba3=_0x5b5273['createRangeOn'](_0x3cc0e3),_0x1b59b6=_0x3cc0e3['findAncestor']('table'),_0x3e0cec=_0x4f91c1['getCellLocation'](_0x3cc0e3);for(const _0x30b0e2 of this['_tableSuggestions']){const _0x261064=_0x30b0e2['subType'],_0x124504=_0x261064['startsWith']('tablePaste'),_0x57c64e=_0x261064['substr'](_0x124504?0xa:0x5),_0x1082c4=_0x57c64e['toLowerCase'](),_0x5eaf93=_0x1082c4['substr'](0x0,0x3)+'span',_0x3e4af5='min'+_0x57c64e,_0x107c39='max'+_0x57c64e;if(!_0x30b0e2['isInContent'])continue;if(_0x1b59b6!=_0x30b0e2['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x30b0e2['isIntersectingWithRange'](_0x24cba3))continue;const _0x1702bb=_0x3cc0e3['hasAttribute'](_0x5eaf93)?_0x3cc0e3['getAttribute'](_0x5eaf93)-0x1:0x0,_0x5b734d=this['_getSuggestionCoords'](_0x30b0e2),_0x2e88f3=_0x5b734d[_0x3e4af5],_0x1ee6bd=_0x5b734d[_0x107c39];_0x2e88f3<=_0x3e0cec[_0x1082c4]&&_0x3e0cec[_0x1082c4]+_0x1702bb<=_0x1ee6bd&&(_0x30b0e2['addRange'](_0x24cba3),_0x352ab3=!0x0);}return _0x352ab3;};_0x4be882['model']['document']['registerPostFixer'](_0x169171=>{let _0x38a373=!0x1;for(const _0x33227b of _0x4be882['model']['document']['differ']['getChanges']())if('insert'==_0x33227b['type']){if('tableRow'==_0x33227b['name']){for(const _0x41d750 of _0x33227b['position']['nodeAfter']['getChildren']())_0x38a373=_0x38a373||_0x375259(_0x41d750,_0x169171);}else'tableCell'==_0x33227b['name']&&(_0x38a373=_0x38a373||_0x375259(_0x33227b['position']['nodeAfter'],_0x169171));}return _0x38a373;});}['_getSuggestionCoords'](_0x403f58){return this['_getCoordsForCells'](_0x403f58['getRanges']()['map'](_0x42b1ae=>_0x42b1ae['start']['nodeAfter']));}}function Re(_0x484b75){return Array['from'](new Set(_0x484b75)['values']());}class Se extends _0x36cdc7{static get['requires'](){return[Ne];}['afterInit'](){const _0x2aed66=this['editor'],_0x4084f9=_0x2aed66['model']['document']['selection'],_0x2c8a6a=_0x2aed66['locale'];if(!_0x2aed66['plugins']['has']('TableEditing'))return;const _0x1aa128=_0x2aed66['plugins']['get']('TrackChangesEditing'),_0x5031ed=_0x2aed66['plugins']['get']('TableUtils'),_0x207cc1=_0x2aed66['plugins']['get'](Ne);_0x207cc1['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x1aa128['enableCommand']('mergeTableCells',()=>{const _0x274afc=_0x5031ed['getSelectionAffectedTableCells'](_0x2aed66['model']['document']['selection']);_0x2aed66['model']['change'](()=>{_0x1aa128['markMultiRangeBlockFormat'](_0x274afc,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x2aed66['commands']['get']('mergeTableCells')['on']('execute',(_0x5940b0,_0x30585b)=>{_0x2aed66['commands']['get']('trackChanges')['value']&&(_0x30585b['length']>0x0&&_0x30585b[_0x30585b['length']-0x1]&&_0x30585b[_0x30585b['length']-0x1]['forceDefaultExecution']||_0x1aa128['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x5940b0['stop']());},{'priority':'highest'});for(const _0x4cc3db of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x467c42=_0x2aed66['commands']['get'](_0x4cc3db);_0x1aa128['enableCommand'](_0x4cc3db,()=>{const _0x532130=_0x2aed66['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1904e4=>_0x1904e4['is']('element','tableCell')),_0x154af8=_0x467c42['value'];_0x2aed66['model']['change'](()=>{_0x1aa128['markMultiRangeBlockFormat']([_0x532130,_0x154af8],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x1b564d of['splitTableCellVertically','splitTableCellHorizontally']){const _0x476838=_0x2aed66['commands']['get'](_0x1b564d);_0x1aa128['enableCommand'](_0x1b564d,()=>{const _0x4a902d=_0x5031ed['getSelectionAffectedTableCells'](_0x2aed66['model']['document']['selection'])[0x0],_0x5e661c=_0x4a902d['findAncestor']('table'),{column:_0x171870,row:_0x44eb05}=_0x5031ed['getCellLocation'](_0x4a902d);let _0x20f13c=[];if('horizontally'==_0x476838['direction']){const _0x39d293=_0x5031ed['createTableWalker'](_0x5e661c,{'startRow':_0x44eb05,'endRow':_0x44eb05,'includeAllSlots':!0x0});_0x20f13c=Array['from'](_0x39d293)['map'](_0x5ce47c=>_0x5ce47c['cell']);}else{const _0x586597=_0x5031ed['createTableWalker'](_0x5e661c,{'column':_0x171870,'includeAllSlots':!0x0});_0x20f13c=Array['from'](_0x586597)['map'](_0x4a057c=>_0x4a057c['cell']);}_0x2aed66['model']['change'](_0xa8e65b=>{_0x1aa128['markBlockFormat'](_0xa8e65b['createRangeOn'](_0x4a902d),{'commandName':_0x1b564d,'commandParams':[]},_0x20f13c,_0x1b564d);});});}_0x1aa128['descriptionFactory']['registerDescriptionCallback'](_0x1ce739=>{if('formatBlock'!=_0x1ce739['type']&&'formatInline'!=_0x1ce739['type'])return;const {data:_0x5378b5}=_0x1ce739;return _0x5378b5&&'mergeTableCells'==_0x5378b5['commandName']?{'type':'format','content':At(_0x2c8a6a,'*Merge\x20cells*')}:void 0x0;}),_0x1aa128['descriptionFactory']['registerDescriptionCallback'](_0x56acae=>{if('formatBlock'!=_0x56acae['type']&&'formatInline'!=_0x56acae['type'])return;const {data:_0x233a01}=_0x56acae;return _0x233a01?'splitTableCellVertically'==_0x233a01['commandName']?{'type':'format','content':At(_0x2c8a6a,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x233a01['commandName']?{'type':'format','content':At(_0x2c8a6a,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x3f09cb=_0x207cc1['_acceptFormatSuggestionCallbackFactory']();for(const _0x1771c9 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x1aa128['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1771c9,'accept',_0x3f09cb);for(const _0x2b1937 of['splitTableCellVertically','splitTableCellHorizontally'])_0x1aa128['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2b1937,'accept',_0x3f09cb);_0x1aa128['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x3fbbf4=>{_0x2aed66['model']['change'](_0x584ec8=>{const _0x39d6d6=Array['from'](_0x4084f9['getRanges']())['map'](_0x41e81f=>_0xf2eec6['fromRange'](_0x41e81f));_0x584ec8['setSelection'](_0x3fbbf4),_0x2aed66['commands']['get']('mergeTableCells')['refresh'](),_0x2aed66['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x4db780=_0x39d6d6['filter'](_0x22603f=>'$graveyard'!=_0x22603f['root']['rootName']);_0x4db780['length']>0x0&&_0x584ec8['setSelection'](_0x4db780);for(const _0x228521 of _0x39d6d6)_0x228521['detach']();});});for(const _0x1bec0b of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x5c4561=_0x2aed66['commands']['get'](_0x1bec0b);_0x5c4561['on']('set:isEnabled',(_0x2b9e90,_0xe665ce,_0x1734ee)=>{if(_0x1734ee){const _0x4baffd=_0x2aed66['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1e5d65=>_0x1e5d65['is']('element','tableCell'));this['_areMergableCells'](_0x5c4561['value'],_0x4baffd)||(_0x2b9e90['return']=!0x1,_0x2b9e90['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x542d93=this['editor']['commands']['get']('mergeTableCells'),_0x35e873=this['editor']['plugins']['get']('TableUtils');if(!_0x542d93['isEnabled'])return!0x1;const _0x5ba155=_0x35e873['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x56b6b2 of _0x5ba155)for(const _0x4fea5d of _0x5ba155)if(_0x56b6b2!=_0x4fea5d&&!this['_areMergableCells'](_0x56b6b2,_0x4fea5d))return!0x1;return!0x0;}['_areMergableCells'](_0x1ddb1e,_0x74c8b3){const _0x25b784=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5464d8=this['editor']['model']['createRangeOn'](_0x1ddb1e),_0x13d935=this['editor']['model']['createRangeOn'](_0x74c8b3),_0x41d642=new Set(),_0x43585d=new Set();for(const _0x252d78 of _0x25b784['getSuggestions']())if(('insertion'==_0x252d78['type']||'deletion'==_0x252d78['type']||'mergeTableCells'==_0x252d78['subType'])&&_0x252d78['isInContent']){for(const _0xeabc47 of _0x252d78['getRanges']())_0xeabc47['containsRange'](_0x5464d8,!0x0)&&_0x41d642['add'](_0x252d78['type']+':'+_0x252d78['author']['id']),_0xeabc47['containsRange'](_0x13d935,!0x0)&&_0x43585d['add'](_0x252d78['type']+':'+_0x252d78['author']['id']);}if(_0x41d642['size']!=_0x43585d['size'])return!0x1;for(const _0x59cbc8 of _0x41d642)if(!_0x43585d['has'](_0x59cbc8))return!0x1;return!0x0;}}class Me extends _0x36cdc7{static get['requires'](){return[Ne];}['afterInit'](){const _0x542a9c=this['editor'];if(!_0x542a9c['plugins']['has']('TableEditing'))return;const _0x576a46=_0x542a9c['locale'],_0x30d74c=_0x542a9c['plugins']['get']('TrackChangesEditing');_0x30d74c['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x30d74c['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x30d74c['descriptionFactory']['registerAttributeLabel']('headingRows',At(_0x576a46,'FORMAT_HEADER_ROW')),_0x30d74c['descriptionFactory']['registerAttributeLabel']('headingColumns',At(_0x576a46,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3e0491=this['editor']['plugins']['get']('TrackChangesEditing'),_0x588906=this['editor']['plugins']['get'](Ne)['_acceptFormatSuggestionCallbackFactory']();_0x3e0491['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x588906),_0x3e0491['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x588906),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x4f489a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x20c08a=this['editor']['plugins']['get']('TableUtils');function _0x47c7d7({showActiveMarker:_0x2533c1=!0x0,setDataAttribute:_0xecff0=!0x0}={}){return(_0x552bf1,_0x5c3374,_0x3f521f)=>{const {type:_0x107365,id:_0x3dd4d9}=_0x4f6d6c(_0x5c3374['markerName']);if(!_0x4f489a['hasSuggestion'](_0x3dd4d9))return;const _0x57550f=_0x4f489a['getSuggestion'](_0x3dd4d9),_0x27f6e9=_0x57550f['data'];if('formatBlock'!=_0x57550f['type']||!_0x27f6e9||'setTableColumnHeader'!=_0x27f6e9['commandName'])return;if(_0x5c3374['item'])return void _0x552bf1['stop']();if(!_0x3f521f['consumable']['consume'](_0x5c3374['markerRange'],_0x552bf1['name']))return;const _0x59df5b=_0x5c3374['markerRange']['start']['nodeAfter'],_0x26aa6f=_0x5c3374['markerRange']['end']['nodeBefore'],_0x53be38=_0x59df5b['parent']['parent'],{column:_0x7ff9f8}=_0x20c08a['getCellLocation'](_0x59df5b),{column:_0x5864b8}=_0x20c08a['getCellLocation'](_0x26aa6f);for(let _0x397ae8=_0x7ff9f8;_0x397ae8<=_0x5864b8;_0x397ae8++){const _0x40026a=_0x20c08a['createTableWalker'](_0x53be38,{'column':_0x397ae8,'includeAllSlots':!0x1});for(const _0x585a27 of _0x40026a){const _0x2a02aa=_0x585a27['cell'],_0x3d2edc=_0x3f521f['mapper']['toViewElement'](_0x2a02aa);_0x3f521f['writer']['addClass']('ck-suggestion-marker-'+_0x107365,_0x3d2edc),_0xecff0&&_0x3f521f['writer']['setAttribute']('data-suggestion',_0x3dd4d9,_0x3d2edc),_0x3f521f['mapper']['bindElementToMarker'](_0x3d2edc,_0x5c3374['markerName']),_0x2533c1&&(_0x4f489a['activeMarkers']['includes'](_0x5c3374['markerName'])?_0x3f521f['writer']['addClass']('ck-suggestion-marker--active',_0x3d2edc):_0x3f521f['writer']['removeClass']('ck-suggestion-marker--active',_0x3d2edc));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x47c7d7(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4eda84,_0x45b69b,_0x18625f)=>{_0x18625f['options']['showSuggestionHighlights']&&_0x47c7d7({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x4eda84,_0x45b69b,_0x18625f);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x24882f,_0x1c066d,_0x3eaa9f)=>{const {type:_0x28502a,id:_0x4e75a4}=_0x4f6d6c(_0x1c066d['markerName']);if(!_0x4f489a['hasSuggestion'](_0x4e75a4))return;const _0x4d2b8b=_0x4f489a['getSuggestion'](_0x4e75a4),_0x269ba8=_0x4d2b8b['data'];if('formatBlock'!=_0x4d2b8b['type']||!_0x269ba8||'setTableColumnHeader'!=_0x269ba8['commandName'])return;const _0x1a9be9=_0x3eaa9f['mapper']['markerNameToElements'](_0x1c066d['markerName']);if(_0x1a9be9){for(const _0x40289e of _0x1a9be9)_0x3eaa9f['writer']['removeClass']('ck-suggestion-marker-'+_0x28502a,_0x40289e),_0x3eaa9f['writer']['removeClass']('ck-suggestion-marker--active',_0x40289e),_0x3eaa9f['writer']['removeAttribute']('data-suggestion',_0x40289e),_0x3eaa9f['mapper']['unbindElementFromMarkerName'](_0x40289e,_0x1c066d['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x3ac9a8=this['editor'],_0xb5405a=_0x3ac9a8['locale'];function _0x344dae(_0x5bc46e){return{'type':'format','content':At(_0xb5405a,'*Format:*\x20%0',_0x5bc46e)};}_0x3ac9a8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1d64bb=>{if('formatBlock'!=_0x1d64bb['type'])return;const {data:_0xc77fb4}=_0x1d64bb;if(_0xc77fb4){if('setTableRowHeader'==_0xc77fb4['commandName']){const _0x537c40=_0xc77fb4['commandParams'][0x0]['forceValue'];return _0x344dae(At(_0xb5405a,_0x537c40?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0xc77fb4['commandName']){const _0x3c5ef2=_0xc77fb4['commandParams'][0x0]['forceValue'];return _0x344dae(At(_0xb5405a,_0x3c5ef2?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Oe extends _0x36cdc7{static get['requires'](){return[Ne];}['afterInit'](){const _0x55c9e0=this['editor'];if(!_0x55c9e0['plugins']['has']('TableEditing')||!_0x55c9e0['config']['get']('table.enableFooters'))return;const _0xd72fd5=_0x55c9e0['locale'],_0x5de447=_0x55c9e0['plugins']['get']('TrackChangesEditing');_0x5de447['enableDefaultAttributesIntegration']('setTableFooterRow'),_0x5de447['descriptionFactory']['registerAttributeLabel']('footerRows',At(_0xd72fd5,'FORMAT_FOOTER_ROW'));}}class we extends _0x36cdc7{['afterInit'](){const _0x577fa4=this['editor'],_0x16103c=_0x577fa4['locale'],_0x431e74=_0x577fa4['plugins']['get']('TrackChangesEditing');function _0x39ba9d(_0x420de1){return{'type':'format','content':''+At(_0x16103c,'*Set\x20table\x20type:*\x20%0',_0x420de1)};}_0x577fa4['plugins']['has']('TableLayout')&&(_0x431e74['enableCommand']('insertTableLayout'),_0x431e74['enableDefaultAttributesIntegration']('tableType'),_0x431e74['descriptionFactory']['registerElementLabel'](_0x3bae3e=>_0x3bae3e['is']('element','table')&&'layout'===_0x3bae3e['getAttribute']('tableType'),_0x31255c=>At(_0x16103c,'ELEMENT_LAYOUT_TABLE',_0x31255c)),_0x431e74['descriptionFactory']['registerDescriptionCallback'](_0xff4b31=>{const {data:_0x15409b}=_0xff4b31;if(_0x15409b&&'tableType'==_0x15409b['key'])switch(_0x15409b['newValue']){case'layout':return _0x39ba9d(At(_0x16103c,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x39ba9d(At(_0x16103c,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Fe=/* #__PURE__ -- @preserve */
|
|
25
|
-
Object['fromEntries'](Be['map'](_0x3ecfc3=>[_0x3ecfc3,null]));class De extends _0x36cdc7{static get['requires'](){return[Ne];}['afterInit'](){const _0x9b11b4=this['editor'];if(!_0x9b11b4['plugins']['has']('TableClipboard'))return;const _0x5ba686=_0x9b11b4['plugins']['get']('TrackChangesEditing'),_0x2e9353=_0x9b11b4['plugins']['get']('TableUtils'),_0x3cb3bf=_0x9b11b4['plugins']['get'](Ne),_0x309a11=_0x9b11b4['plugins']['get']('TableClipboard'),_0x24ee8e=_0x9b11b4['plugins']['get']('TableSelection'),_0x257c0b=_0x9b11b4['plugins']['get'](ut);_0x3cb3bf['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x9b11b4['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x9b11b4['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x2f6c20=null,_0xdf15b1=!0x1;_0x257c0b['on']('contentInsertion',(_0x461340,_0x319d17)=>{_0xdf15b1='paste'===_0x319d17['method'];}),_0x9b11b4['model']['on']('insertContent',(_0x5a2093,_0x1d2c48)=>{if(!_0xdf15b1&&null===_0x24ee8e['getSelectedTableCells']())return;const [_0x160751,_0x4196e5]=_0x1d2c48,_0x3f629c=_0x1d2c48[_0x1d2c48['length']-0x1];_0x3f629c&&_0x3f629c['forceDefaultExecution']||_0x5ba686['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x5db94d,_0x1f20a9,_0x4276c0,_0x2c7e27,_0x557ed7){if(_0x1f20a9&&!_0x1f20a9['is']('documentSelection'))return!0x1;const _0x3b974c=_0x557ed7['getTableIfOnlyTableInContent'](_0x5db94d,_0x4276c0);if(!_0x3b974c||!xe(_0x3b974c,void 0x0,_0x2c7e27))return!0x1;const _0x4fbc49=_0x2c7e27['getSelectionAffectedTableCells'](_0x4276c0['document']['selection']);if(!_0x4fbc49['length'])return!0x1;const _0x16c6e9=_0x4fbc49[0x0]['findAncestor']('table'),_0x8a9b5=_0x2c7e27['getRowIndexes'](_0x4fbc49),_0xcead7c=_0x2c7e27['getColumnIndexes'](_0x4fbc49),_0xc04e45={'startRow':_0x8a9b5['first'],'endRow':_0x8a9b5['last'],'startColumn':_0xcead7c['first'],'endColumn':_0xcead7c['last']};return 0x1==_0x4fbc49['length']&&(_0xc04e45['endRow']+=_0x2c7e27['getRows'](_0x3b974c)-0x1,_0xc04e45['endColumn']+=_0x2c7e27['getColumns'](_0x3b974c)-0x1),xe(_0x16c6e9,_0xc04e45,_0x2c7e27);}(_0x160751,_0x4196e5,_0x9b11b4['model'],_0x2e9353,_0x309a11)&&(_0x5a2093['stop'](),_0x2f6c20={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x9b11b4['model']['change'](()=>{_0x9b11b4['model']['insertContent'](_0x1d2c48[0x0],_0x1d2c48[0x1],_0x1d2c48[0x2],{'forceDefaultExecution':!0x0});const _0x2bc994=_0x452c31(),{rowInsertionRanges:_0x4e7c8d,columnInsertionRanges:_0x12dc71,insertionRanges:_0x558301,deletionRanges:_0x125133,cells:_0x10bd8d}=_0x2f6c20;_0x4e7c8d['length']&&_0x5ba686['markMultiRangeInsertion'](_0x4e7c8d,'tablePasteRow',{'tablePasteChainId':_0x2bc994}),_0x12dc71['length']&&_0x5ba686['markMultiRangeInsertion'](_0x12dc71,'tablePasteColumn',{'tablePasteChainId':_0x2bc994}),_0x558301['length']&&(_0x5ba686['markMultiRangeInsertion'](_0x558301,'tablePaste',{'tablePasteChainId':_0x2bc994,'skipNestingCheck':!0x0}),_0x558301['forEach'](_0x53afe8=>_0x53afe8['detach']?.())),_0x125133['length']&&(_0x5ba686['markMultiRangeDeletion'](_0x125133,'tablePaste',{'tablePasteChainId':_0x2bc994,'skipNestingCheck':!0x0}),_0x125133['forEach'](_0x51b453=>_0x51b453['detach']?.()));const _0x360fb3=_0x5ba686['markMultiRangeBlockFormat'](_0x10bd8d['map'](({element:_0x3816d4})=>_0x3816d4),{'formatGroupId':_0x452c31()},[],'tablePasteCell',{'tablePasteChainId':_0x2bc994});if(_0x360fb3){const _0x5edde7=_0x360fb3['getMarkers'](),_0x2ca693=[];for(const {element:_0x2ba4ad,attributes:_0x21b8c2}of _0x10bd8d){if(!_0x21b8c2)continue;const _0x28b167=_0x9b11b4['model']['createRangeOn'](_0x2ba4ad),_0x4abe8a=_0x5edde7['find'](_0x5808bb=>_0x5808bb['getRange']()['isEqual'](_0x28b167));_0x4abe8a&&_0x2ca693['push']([_0x4abe8a['name'],_0x21b8c2]);}_0x2ca693['length']&&_0x360fb3['setAttribute']('markerAttributes',Object['fromEntries'](_0x2ca693));}_0x2f6c20=null;}));},{'priority':_0x49557e['high']+0xa}),_0x257c0b['on']('contentInsertion',()=>{_0xdf15b1=!0x1;},{'priority':'lowest'}),_0x9b11b4['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x356161,_0x364f8e)=>{const [_0x32b9d0,_0x265a30,,_0xfddddb]=_0x364f8e;if(!_0x2f6c20)return;_0x356161['stop']();const _0xe3f39d=_0x32b9d0['cell'],_0xaa1a1d=_0x265a30,_0x403812=ve(_0xe3f39d),_0x4f5110=ve(_0xaa1a1d);_0x356161['return']=_0xe3f39d;let _0x2f514b=null,_0x425701=null;if(_0x4f5110||_0x403812){if(_0x403812&&!_0x4f5110){_0xfddddb['remove'](_0xe3f39d['getChild'](0x0));for(const _0x2de78a of Array['from'](_0xaa1a1d['getChildren']()))_0xfddddb['insert'](_0x2de78a,_0xe3f39d,'end');const _0xbc45bf=_0x2f6c20['rowInsertionIndexes']['includes'](_0x32b9d0['row']),_0xdd2c21=_0x2f6c20['columnInsertionIndexes']['includes'](_0x32b9d0['column']);_0xbc45bf||_0xdd2c21||(_0x2f514b=_0xf2eec6['fromRange'](_0xfddddb['createRangeIn'](_0xe3f39d)));}else _0x4f5110&&!_0x403812&&(_0x425701=_0xfddddb['createRangeIn'](_0xe3f39d));}else{const _0x3987ed=_0xfddddb['createElement']('tableCellSuggestion'),_0x3a4f7b=_0xfddddb['createElement']('tableCellSuggestion');_0xfddddb['wrap'](_0xfddddb['createRangeIn'](_0xe3f39d),_0x3a4f7b),_0xfddddb['insert'](_0x3987ed,_0xe3f39d,0x0);for(const _0x4c7dcc of Array['from'](_0xaa1a1d['getChildren']()))_0xfddddb['insert'](_0x4c7dcc,_0x3987ed,'end');_0x2f514b=_0xf2eec6['fromRange'](_0xfddddb['createRangeOn'](_0x3987ed)),_0x425701=_0xf2eec6['fromRange'](_0xfddddb['createRangeOn'](_0x3a4f7b));}const _0x13e2ac=Array['from'](_0xaa1a1d['getAttributes']())['filter'](([_0x2af830])=>Be['includes'](_0x2af830));_0x2f6c20['cells']['push']({'element':_0xe3f39d,'attributes':_0x13e2ac['length']?Object['fromEntries'](_0x13e2ac):null}),_0x2f514b&&_0x2f6c20['insertionRanges']['push'](_0x2f514b),_0x425701&&_0x2f6c20['deletionRanges']['push'](_0x425701);},{'priority':'high'}),_0x2e9353['on']('insertColumns',(_0x36c420,_0x1e06d9)=>{const [_0x4dbf04,_0x342491={}]=_0x1e06d9;if(!_0x2f6c20)return;const _0x346645=_0x342491['at']||0x0,_0x4b4374=_0x342491['columns']||0x1;_0x2f6c20['columnInsertionIndexes']=new Array(_0x4b4374)['fill'](_0x346645)['map']((_0x3aea9a,_0x56a98f)=>_0x3aea9a+_0x56a98f);for(const {cell:_0x584a27}of _0x2e9353['createTableWalker'](_0x4dbf04,{'startColumn':_0x346645,'endColumn':_0x346645+_0x4b4374-0x1}))_0x2f6c20['columnInsertionRanges']['push'](_0x9b11b4['model']['createRangeOn'](_0x584a27));},{'priority':'low'}),_0x2e9353['on']('insertRows',(_0xd56df3,_0x3b64a4)=>{const [_0x1c6c21,_0x465556={}]=_0x3b64a4;if(!_0x2f6c20)return;const _0x13914e=_0x465556['at']||0x0,_0xc9cf56=_0x465556['rows']||0x1;_0x2f6c20['rowInsertionIndexes']=new Array(_0xc9cf56)['fill'](_0x13914e)['map']((_0x2280f8,_0x57e723)=>_0x2280f8+_0x57e723);for(const {cell:_0x3cf98a}of _0x2e9353['createTableWalker'](_0x1c6c21,{'startRow':_0x13914e,'endRow':_0x13914e+_0xc9cf56-0x1}))_0x2f6c20['rowInsertionRanges']['push'](_0x9b11b4['model']['createRangeOn'](_0x3cf98a));},{'priority':'low'}),_0x5ba686['descriptionFactory']['registerDescriptionCallback'](_0x11f500=>{if(_0x11f500['subType']&&_0x11f500['subType']['startsWith']('tablePaste'))return _0x11f500['previous']?{}:{'type':'insertion','content':At(_0x9b11b4['locale'],'*Replace\x20table\x20cells*')};});const _0x1eeddb=()=>!0x1;for(const _0x37dfb0 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x5ba686['_suggestionFactory']['registerCustomCallback']('insertion',_0x37dfb0,'join',_0x1eeddb),_0x5ba686['_suggestionFactory']['registerCustomCallback']('deletion',_0x37dfb0,'join',_0x1eeddb),_0x5ba686['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x37dfb0,'join',_0x1eeddb);_0x5ba686['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x1eeddb),_0x5ba686['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x460e2b,_0x265a34,_0x4adf7d)=>{const _0x198db2=_0x460e2b['map'](_0x1f8908=>_0x1f8908['getContainedElement']())['filter'](_0x114276=>_0x114276),_0xaea99d=new Map(_0x198db2['map'](_0xfc449c=>[_0xfc449c,null]));if(_0x2f6c20){for(const {element:_0xe97dda,attributes:_0x490bb0}of _0x2f6c20['cells'])_0x490bb0&&_0xaea99d['set'](_0xe97dda,_0x490bb0);}else{if(_0x4adf7d&&_0x4adf7d['markerAttributes'])for(const [_0xb595f5,_0x3971d7]of Object['entries'](_0x4adf7d['markerAttributes'])){const _0x5ee0f4=_0x9b11b4['model']['markers']['get'](_0xb595f5),_0x3d380e=_0x5ee0f4?_0x5ee0f4['getRange']()['getContainedElement']():null;_0x3d380e&&_0xaea99d['set'](_0x3d380e,_0x3971d7);}}_0x9b11b4['model']['change'](_0x1598ae=>{for(const [_0x258515,_0x515578]of _0xaea99d)_0x1598ae['setAttributes']({...Fe,..._0x515578},_0x258515);});});const _0x3dad32=(_0x3ed2c9,_0x3ce9e8)=>{_0x5ba686['_suggestionFactory']['registerCustomCallback'](_0x3ed2c9,'tablePaste',_0x3ce9e8,(_0x521ddd,_0x272f8f,_0x1f542d)=>{_0x9b11b4['model']['change'](_0x2e7d0b=>{const _0xe43f9d=[];for(const _0x404fc of _0x521ddd){const _0x54fc90=_0x404fc['start']['nodeAfter'];_0x54fc90['is']('element','tableCellSuggestion')&&_0xe43f9d['push'](_0x54fc90);}_0x5ba686['_suggestionFactory']['getSuggestionCallback'](_0x3ed2c9,null,_0x3ce9e8)(_0x521ddd,_0x272f8f,_0x1f542d);for(const _0x259aaf of _0xe43f9d)'$graveyard'!=_0x259aaf['root']['rootName']&&_0x2e7d0b['unwrap'](_0x259aaf);});});};_0x3dad32('insertion','accept'),_0x3dad32('insertion','discard'),_0x3dad32('deletion','accept'),_0x3dad32('deletion','discard'),_0x5ba686['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x3f0683=>{const _0x539878=_0x3f0683['map'](_0x101ddd=>_0x101ddd['getContainedElement']()),_0x2743e1=_0x539878[0x0]['findAncestor']('table'),{minRow:_0x546bbd,maxRow:_0x52c0f5}=_0x3cb3bf['_getCoordsForCells'](_0x539878);_0x2e9353['removeRows'](_0x2743e1,{'at':_0x546bbd,'rows':_0x52c0f5-_0x546bbd+0x1});}),_0x5ba686['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x583253=>{const _0xb1172d=_0x583253['map'](_0x293e6=>_0x293e6['getContainedElement']()),_0x25b36f=_0xb1172d[0x0]['findAncestor']('table'),{minColumn:_0x5198dd,maxColumn:_0x1454f7}=_0x3cb3bf['_getCoordsForCells'](_0xb1172d);_0x2e9353['removeColumns'](_0x25b36f,{'at':_0x5198dd,'columns':_0x1454f7-_0x5198dd+0x1});});const _0x59122d=(_0x67bb42,_0x2d1c09)=>{if(!_0x2d1c09['subType']||!_0x2d1c09['subType']['startsWith']('tablePaste'))return;const _0x1274b6=_0x2d1c09['attributes']['tablePasteChainId'],_0x2dbabc=_0x5ba686['getSuggestions']()['filter'](_0x56b419=>_0x56b419['isInContent']&&_0x56b419['attributes']&&_0x56b419['attributes']['tablePasteChainId']==_0x1274b6);_0x2dbabc['length']&&_0x2d1c09['getAllAdjacentSuggestions']()['length']!=_0x2dbabc['length']&&_0x2dbabc['reduce']((_0x50da9a,_0x3dceab)=>(_0x50da9a['next']=_0x3dceab,_0x3dceab['previous']=_0x50da9a,_0x3dceab));};function _0x174e10(_0x3cbbbc,_0x104a38=!0x0){const {id:_0x246764,authorId:_0x43c470}=_0x4f6d6c(_0x3cbbbc['markerName']),_0x58c5d9=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x1d7edf=_0x5ba686['activeMarkers']['includes'](_0x3cbbbc['markerName']);return _0x1d7edf&&_0x58c5d9['push']('ck-suggestion-marker--active'),{'classes':_0x58c5d9,'attributes':{'data-suggestion':_0x246764,'data-author-id':_0x43c470},'priority':_0x1d7edf&&_0x104a38?0xbc2:0xbb8};}_0x5ba686['on']('suggestionLoaded',_0x59122d,{'priority':'high'}),_0x5ba686['on']('suggestionUnloaded',_0x59122d,{'priority':'high'}),_0x9b11b4['model']['document']['registerPostFixer'](()=>{let _0x519001=!0x1;const _0xf3e1e8=Array['from'](_0x9b11b4['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x13a8ab,data:_0xfe2120}of _0xf3e1e8){const {group:_0x1d18d3,type:_0x143e6c,id:_0x585dea}=_0x4f6d6c(_0x13a8ab);if('suggestion'!=_0x1d18d3||'deletion'!=_0x143e6c||_0xfe2120['oldRange'])continue;if(!_0x5ba686['hasSuggestion'](_0x585dea))continue;const _0x5b0ca8=_0x5ba686['getSuggestion'](_0x585dea)['getRanges'](),_0xd3cbb4=_0x9b11b4['plugins']['get']('Users')['me'];for(const _0x3ebeb6 of _0x5ba686['getSuggestions']()){if(!_0x3ebeb6['isInContent']||_0x3ebeb6['author']!=_0xd3cbb4)continue;if('formatBlock'!=_0x3ebeb6['type']||'tablePasteCell'!=_0x3ebeb6['subType'])continue;if(_0x3ebeb6['getRanges']()['every'](_0x204943=>_0x5b0ca8['some'](_0x3fe682=>_0x3fe682['containsRange'](_0x204943,!0x0)))){for(const _0x2fbb01 of _0x3ebeb6['getAllAdjacentSuggestions']())_0x2fbb01['isInContent']&&(_0x2fbb01['discard'](),_0x519001=!0x0);}}}return _0x519001;}),_0x9b11b4['model']['document']['registerPostFixer'](_0x14722b=>{const _0x4655a4=_0x9b11b4['commands']['get']('redo');if(!_0x4655a4||!_0x4655a4['_createdBatches']['has'](_0x14722b['batch']))return!0x1;let _0x324bac=!0x1;const _0x183181=_0x9b11b4['plugins']['get']('Users')['me'],_0xd51626=_0x9b11b4['model']['document']['differ']['getChanges'](),_0x64f860=Array['from'](_0x9b11b4['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x36d010,data:_0x2e3468})=>{const {group:_0x182b1c,subType:_0x51951e,authorId:_0x28078b}=_0x4f6d6c(_0x36d010);return'suggestion'==_0x182b1c&&'tablePaste'==_0x51951e&&_0x28078b==_0x183181['id']&&!_0x2e3468['oldRange'];});for(const _0x4dc502 of _0xd51626){if('insert'!=_0x4dc502['type']||'tableCellSuggestion'!=_0x4dc502['name']||0x1!=_0x4dc502['length'])continue;const _0x544876=_0x14722b['createRange'](_0x4dc502['position'],_0x4dc502['position']['getShiftedBy'](0x1));if(!_0x64f860['find'](({data:_0x35c5da})=>_0x35c5da['newRange']['isEqual'](_0x544876))){for(const {name:_0x236f62,data:_0x554d03}of _0x64f860)if(_0x544876['containsRange'](_0x554d03['newRange'])){_0x14722b['updateMarker'](_0x236f62,{'range':_0x544876}),_0x324bac=!0x0;break;}}}return _0x324bac;}),_0x9b11b4['model']['document']['registerPostFixer'](_0x4e205f=>{let _0x70643c=!0x1;const _0x54bc42=_0x9b11b4['plugins']['get']('Users')['me'],_0x446943=_0x5ba686['getSuggestions']()['filter'](_0x125f66=>_0x125f66['isInContent']&&_0x125f66['author']==_0x54bc42),_0x363057=new Set(),_0x57d711=new Set();for(const _0x541044 of _0x446943)if('tablePaste'==_0x541044['subType'])for(const _0x59b1a7 of _0x541044['getMarkers']()){const _0xc35f59=_0x59b1a7['getRange']()['getContainedElement']();if(_0xc35f59){if(_0xc35f59['is']('element','tableCellSuggestion')&&ve(_0xc35f59)){_0x541044['removeMarker'](_0x59b1a7['name']),_0x363057['add'](_0xc35f59),_0x70643c=!0x0;const _0x32c07c=_0xc35f59['nextSibling'],_0x1ba5a7=_0xc35f59['previousSibling'],_0x331075=_0x32c07c&&_0x32c07c['is']('element','tableCellSuggestion'),_0xdc54e4=_0x1ba5a7&&_0x1ba5a7['is']('element','tableCellSuggestion');_0x331075&&!_0x363057['has'](_0x32c07c)&&_0x57d711['add'](_0x32c07c),_0xdc54e4&&!_0x363057['has'](_0x1ba5a7)&&_0x57d711['add'](_0x1ba5a7);}else _0xc35f59['is']('element','paragraph')&&_0xc35f59['isEmpty']&&(_0x541044['removeMarker'](_0x59b1a7['name']),_0x70643c=!0x0);}}else{if('tablePasteCell'==_0x541044['subType']){if(!_0x541044['attributes']||!_0x541044['attributes']['tablePasteChainId'])continue;const _0x572254=_0x541044['attributes']['markerAttributes'];if(_0x572254&&Object['keys'](_0x572254)['length'])continue;const _0x2ec33b=_0x541044['attributes']['tablePasteChainId'];let _0x2266d5=!0x0,_0x92c767=!0x0;for(const _0x309690 of _0x446943)if(_0x309690['subType']&&_0x309690['subType']['startsWith']('tablePaste')){if(!_0x309690['attributes']['tablePasteChainId']){_0x92c767=!0x1;break;}if(_0x309690['id']!=_0x541044['id']&&_0x309690['attributes']['tablePasteChainId']==_0x2ec33b){_0x2266d5=!0x1;break;}}_0x92c767&&_0x2266d5&&(_0x541044['removeMarkers'](),_0x70643c=!0x0);}}for(const _0x2b4580 of _0x363057)_0x4e205f['remove'](_0x2b4580);for(const _0x22ee86 of _0x57d711)_0x4e205f['unwrap'](_0x22ee86);return _0x70643c;}),_0x9b11b4['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x5c3b5d=>_0x174e10(_0x5c3b5d),'converterPriority':'high'}),_0x9b11b4['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x30f8cd,_0xe97b69)=>_0xe97b69['options']['showSuggestionHighlights']?_0x174e10(_0x30f8cd,!0x1):null,'converterPriority':'high'});const _0xac309d=_0x9b11b4['editing']['view'];this['listenTo'](_0xac309d['document'],'clipboardOutput',(_0x3e018d,_0x15e07c)=>{const _0x22a4ab=[];for(const _0x3c8a25 of _0xac309d['createRangeIn'](_0x15e07c['content'])['getItems']())_0x3c8a25['is']('element','suggestion-td')&&_0x22a4ab['push'](_0x3c8a25);_0xac309d['change'](_0x48d7d5=>{for(const _0x72d1c4 of _0x22a4ab)_0x48d7d5['move'](_0x48d7d5['createRangeIn'](_0x72d1c4),_0x48d7d5['createPositionBefore'](_0x72d1c4)),_0x48d7d5['remove'](_0x72d1c4);});});}}function ve(_0x7ec702){if(_0x7ec702['isEmpty'])return!0x0;const _0x982adb=_0x7ec702['getChild'](0x0);return _0x982adb['is']('element','paragraph')&&_0x982adb['isEmpty'];}function xe(_0x2d6656,_0x1125c7={},_0x3df672){for(const {isAnchor:_0x36c3fc,cellHeight:_0x1df0a5,cellWidth:_0x3525fd}of _0x3df672['createTableWalker'](_0x2d6656,{'includeAllSlots':!0x0,..._0x1125c7}))if(!_0x36c3fc||0x1!=_0x1df0a5||0x1!=_0x3525fd)return!0x1;return!0x0;}class Pe extends _0x36cdc7{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x18972e=this['editor']['plugins']['get']('TrackChangesEditing');_0x18972e['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x18972e['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x18972e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x18972e['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x18972e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x18972e['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x631210,_0x312bbc){const _0x1dea12=this['editor']['plugins']['get']('TrackChangesEditing'),_0xdc528e=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x2e0410=_0x312bbc['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x33776a=_0xdc528e['getColumnGroupElement'](_0x2e0410);let _0xa72df=_0x33776a?_0xdc528e['getTableColumnsWidths'](_0x33776a):null,_0xaee0ce=_0x2e0410['getAttribute']('tableWidth')||null;const _0x576fbb=_0x312bbc['tableWidth']||_0xaee0ce,_0x55427d=_0x312bbc['columnWidths']||_0xa72df,_0x6d9ed7=this['editor']['plugins']['get']('Users')['me'];for(const _0x9accb1 of _0x1dea12['getSuggestions']()){const _0x2a56c3=_0x9accb1['getContainedElement']();if('resizeTable'===_0x9accb1['subType']&&_0x2a56c3===_0x2e0410){_0x9accb1['author']!==_0x6d9ed7&&_0x9accb1['discard']();const _0x17520a=_0x9accb1['data']['commandParams'];_0xaee0ce=_0x17520a[0x0]['tableWidth'],_0xa72df=_0x17520a[0x0]['columnWidths'];break;}}_0x631210({'table':_0x2e0410,'tableWidth':_0x576fbb,'columnWidths':_0x55427d}),_0x1dea12['markBlockFormat'](_0x2e0410,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0xaee0ce,'columnWidths':_0xa72df}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x4bdc16){if('formatBlock'!=_0x4bdc16['type']&&'formatInline'!=_0x4bdc16['type'])return;const {data:_0xe8b525}=_0x4bdc16;if(_0xe8b525&&'resizeTable'===_0xe8b525['formatGroupId']){const _0x1cdcf3='*Format:*\x20resize\x20table';return{'type':'format','content':At(this['editor']['locale'],_0x1cdcf3)};}}}class Ue extends _0x36cdc7{['afterInit'](){const _0x50508b=this['editor'];_0x50508b['plugins']['has']('Template')&&_0x50508b['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ge extends _0x36cdc7{['afterInit'](){const _0x59c40f=this['editor'];if(!_0x59c40f['commands']['get']('insertTableOfContents'))return;_0x59c40f['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x3f18a5=_0x59c40f['plugins']['get']('TrackChangesEditing'),_0x2e25f1=_0x59c40f['locale'];_0x3f18a5['descriptionFactory']['registerElementLabel']('tableOfContents',_0x2d0ed9=>At(_0x2e25f1,'ELEMENT_TABLE_OF_CONTENTS',_0x2d0ed9));}}class He extends _0x36cdc7{['afterInit'](){const _0x1b5fd2=this['editor'];if(!_0x1b5fd2['plugins']['has']('Title'))return;_0x1b5fd2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>At(_0x1b5fd2['locale'],'ELEMENT_TITLE')),_0x1b5fd2['model']['document']['registerPostFixer'](_0x286043=>{let _0x4a9ddb=!0x1;const _0x41526d=Array['from'](_0x1b5fd2['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xe5ba20,data:_0x11c086}of _0x41526d){const {group:_0x3e29c5}=_0x4f6d6c(_0xe5ba20);if('suggestion'!==_0x3e29c5||!_0x11c086['newRange'])continue;const _0x11e8b7=_0x11c086['newRange'],_0x3ccfa2=_0x11e8b7['end']['nodeBefore'];if(!_0x3ccfa2||!_0x3ccfa2['is']('element','title-content'))continue;if(!_0x11e8b7['start']['isTouching'](_0x11e8b7['end']))continue;const _0x3f54ee=_0x1b5fd2['model']['schema']['getNearestSelectionRange'](_0x11e8b7['end'],'forward');if(_0x3f54ee&&_0x3f54ee['isCollapsed']){const _0x32aeab=_0x286043['createRange'](_0x11e8b7['start'],_0x3f54ee['start']);_0x32aeab['isEqual'](_0x11e8b7)||(_0x286043['updateMarker'](_0xe5ba20,{'range':_0x32aeab}),_0x4a9ddb=!0x0);}_0x4a9ddb||(_0x286043['removeMarker'](_0xe5ba20),_0x4a9ddb=!0x0);}return _0x4a9ddb;});}}class $e extends _0x36cdc7{['afterInit'](){const _0x2eda06=this['editor'],_0x1be169=_0x2eda06['plugins']['get']('TrackChangesEditing');_0x2eda06['plugins']['has']('Uploadcare')&&(_0x1be169['enableCommand']('uploadcare'),_0x2eda06['plugins']['has']('UploadcareImageEdit')&&(_0x1be169['enableCommand']('uploadcareImageEdit'),_0x1be169['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x1be169['descriptionFactory']['registerDescriptionCallback'](_0x37c7db=>{if('attribute'!=_0x37c7db['type'])return;const {data:_0x3a50bf}=_0x37c7db;return _0x3a50bf&&'uploadcareImageId'==_0x3a50bf['key']?{'type':'format','content':''}:void 0x0;})));}}class We extends _0x36cdc7{['afterInit'](){const _0x1c00e5=this['editor'],_0x564524=_0x1c00e5['plugins']['get']('TrackChangesEditing');_0x1c00e5['plugins']['has']('UndoEditing')&&(_0x564524['enableCommand']('undo'),_0x564524['enableCommand']('redo'));}}class Ve extends _0x36cdc7{static get['requires'](){return[Ne];}['afterInit'](){const _0x34f2e7=this['editor'];if(!_0x34f2e7['plugins']['has']('TableCaptionEditing'))return;_0x34f2e7['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class je extends _0x36cdc7{['tableProperties'];['tableCellProperties'];constructor(_0x1a6922){super(_0x1a6922),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 _0x58a247=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x3b7925 of this['tableProperties'])_0x58a247['enableCommand'](_0x3b7925,(_0x3a5f76,_0x382e92)=>{const _0x5bac7e=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x3b7925,[_0x5bac7e],this['tableProperties'],'tableProperties',_0x3a5f76,_0x382e92);});_0x58a247['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x58a247['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x58a247['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x2da1fd,_0x54bad7)=>this['handleDiscardAction'](this['tableProperties'],_0x2da1fd,_0x54bad7)),_0x58a247['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x16daf3 of this['tableCellProperties'])this['editor']['commands']['get'](_0x16daf3)&&_0x58a247['enableCommand'](_0x16daf3,(_0x4653c4,_0x226dd5)=>{const _0x49f808=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x16daf3,_0x49f808,this['tableCellProperties'],'tableCellProperties',_0x4653c4,_0x226dd5);});_0x58a247['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x58a247['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x58a247['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x3b9d4d,_0x408c76)=>this['handleDiscardAction'](this['tableCellProperties'],_0x3b9d4d,_0x408c76)),_0x58a247['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x58a247['descriptionFactory']['registerAttributeLabel']('tableCellType',At(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x58a247['descriptionFactory']['registerDescriptionCallback'](_0xf2d3ab=>this['handleSuggestionDescription'](_0xf2d3ab)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x54a544,_0x4e96c3,_0x1705c8,_0x1bd491,_0x5c33c9,_0x1cf09d){const _0x3b8ee7=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x1cf09d['batch'],()=>{for(const _0x2877ab of _0x4e96c3){if(this['_getSuggestion'](_0x2877ab,_0x1bd491))_0x5c33c9(_0x1cf09d);else{const _0x14c2cb={};for(const _0x498b2c of _0x1705c8){const _0x306e57=_0x2877ab['getAttribute'](_0x498b2c);void 0x0!==_0x306e57&&(_0x14c2cb[_0x498b2c]=_0x306e57);}_0x5c33c9(_0x1cf09d),_0x3b8ee7['markBlockFormat'](_0x2877ab,{'commandParams':[_0x14c2cb]},[],_0x1bd491);}}});}['handleDiscardAction'](_0x412236,_0xbc521a,_0x338847){const _0x7fc666=_0xbc521a[0x0]['start']['nodeAfter'],_0x2d85fb=_0x338847['commandParams'][0x0];this['editor']['model']['change'](_0x412a02=>{for(const _0x1ceee2 of _0x412236)void 0x0!==_0x2d85fb[_0x1ceee2]?_0x412a02['setAttribute'](_0x1ceee2,_0x2d85fb[_0x1ceee2],_0x7fc666):_0x412a02['removeAttribute'](_0x1ceee2,_0x7fc666);});}['handleSuggestionDescription'](_0x9a93b9){if(_0x9a93b9['data'])switch(_0x9a93b9['subType']){case'tableProperties':return{'type':'format','content':At(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':At(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x4eb008,_0xfd1174){const _0x2f8305=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x5e5ef7 of _0x2f8305['getSuggestions']({'skipNotAttached':!0x0})){const _0x28fa04=_0x5e5ef7['getContainedElement']();if(_0x5e5ef7['subType']===_0xfd1174&&_0x28fa04===_0x4eb008)return _0x5e5ef7;}return null;}['_registerTablePropertiesAttributes'](){const _0x46d6d7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x433777=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x5cdc84 of _0x433777){const _0x10f7c9=_0x5cdc84['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x46d6d7['descriptionFactory']['registerAttributeLabel'](_0x5cdc84,At(this['editor']['locale'],'FORMAT_'+_0x10f7c9));}}}class ze extends _0x36cdc7{['afterInit'](){const _0xb32930=this['editor'];if(!_0xb32930['plugins']['has']('LineHeight'))return;const _0x29caeb=_0xb32930['plugins']['get']('TrackChangesEditing'),_0x2d566d=_0xb32930['locale'];_0x29caeb['enableDefaultAttributesIntegration']('lineHeight'),_0x29caeb['descriptionFactory']['registerAttributeLabel']('lineHeight',At(_0x2d566d,'FORMAT_LINE_HEIGHT'));}}const Ke='$elementName';class Xe extends _0x36cdc7{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_suggestionsConversion'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return[_0x29b6a2,_0x4ac64f,_0x286f71,_0x2e911b,_0x4d48c8,Ct,yt,Nt,Rt,Mt,Ot,Bt,Dt,Ft,vt,Pt,Ut,jt,zt,Kt,Yt,qt,Qt,Jt,te,ee,ne,ie,re,se,oe,ae,ce,ue,fe,Te,le,Gt,ze,$t,ge,me,Ee,_e,pe,Le,Ie,be,Ae,Ce,ye,Ne,Se,Me,Oe,we,Ve,De,Pe,Ge,je,Ue,He,$e,We];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1f398){super(_0x1f398),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x2c6ed5,_0x81142a,_0x417137,_0x59a205)=>{this['_model']['change'](()=>{for(const _0x48c91a of[..._0x59a205,..._0x417137])this['_model']['markers']['has'](_0x48c91a)&&_0x1f398['editing']['reconvertMarker'](_0x48c91a);});}),this['descriptionFactory']=new kt(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Ye(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x1f398['plugins']['get'](_0x29b6a2),this['_suggestionsConversion']=_0x1f398['plugins']['get'](_0x4ac64f),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x1f398['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x1f398['config']['get']('trackChanges.trackFormatChanges'),_0x1f398['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x1f398['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new ht(_0x1f398,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x1063c2=this['editor'];_0x1063c2['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x46dbd3,{writer:_0x50b8c6})=>{let _0x281bb1='suggestion:'+_0x46dbd3['getAttribute']('suggestion-type')+':'+_0x46dbd3['getAttribute']('id');return _0x46dbd3['getAttribute']('marker-count')&&(_0x281bb1+=':'+_0x46dbd3['getAttribute']('marker-count')),_0x50b8c6['createElement']('$marker',{'data-name':_0x281bb1});}}),_0x1063c2['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x1063c2['model']['document']['registerPostFixer'](_0x42dbc6=>{let _0x45dc70=!0x1;const _0x5a010f=Array['from'](_0x1063c2['model']['document']['differ']['getChangedMarkers']()),_0x313d52=new Set();for(const {name:_0x3176d1,data:_0x4010fd}of _0x5a010f){const {group:_0x394e53,type:_0x2c6482,subType:_0x3b17b2,id:_0xb4f1f5}=_0x4f6d6c(_0x3176d1);if('suggestion'!==_0x394e53)continue;const _0x6bba5c=_0x3b17b2?'suggestion:'+_0x2c6482+':'+_0x3b17b2+':'+_0xb4f1f5:'suggestion:'+_0x2c6482+':'+_0xb4f1f5,_0x2cb743=_0x1063c2['model']['markers']['getMarkersGroup'](_0x6bba5c),_0x5c3b72=_0x1063c2['model']['markers']['get'](_0x3176d1),_0x235ff7=this['_suggestions']['get'](_0xb4f1f5);if(null!=_0x4010fd['newRange']){'formatInline'==_0x2c6482&&(_0x45dc70=_0x45dc70||Ze(_0x4010fd['newRange'],_0x3176d1,_0x42dbc6,_0x1063c2['model']['schema']));const _0x384d63='attribute'==_0x2c6482&&this['_suggestionsConversion']['isBlockAttribute'](un(_0x3b17b2)),_0xd47600='attribute'==_0x2c6482&&this['_suggestionsConversion']['isInlineAttribute'](un(_0x3b17b2));if(_0x4010fd['newRange']['isCollapsed']||'$graveyard'==_0x4010fd['newRange']['root']['rootName']||'formatBlock'==_0x2c6482&&!tn(_0x4010fd['newRange'])||_0x384d63&&!tn(_0x4010fd['newRange'])||_0xd47600&&en(_0x4010fd['newRange'])||'deletion'==_0x2c6482&&en(_0x4010fd['newRange'])||_0x5c3b72&&nn(_0x5c3b72,_0x2cb743))_0x42dbc6['removeMarker'](_0x3176d1),_0x45dc70=!0x0;else{if(!_0x235ff7||!_0x235ff7['isInContent'])continue;if(_0x4010fd['newRange']&&_0x4010fd['oldRange']&&_0x4010fd['newRange']['isEqual'](_0x4010fd['oldRange']))continue;_0x313d52['add'](_0x235ff7);}}}return _0x313d52['size']>0x0&&(_0x45dc70=!!this['_joinWithAdjacentSuggestions'](_0x313d52)||_0x45dc70),_0x45dc70;}),_0x1063c2['model']['document']['registerPostFixer'](_0x462022=>{let _0x5f3928=!0x1;for(const _0x1dc5c6 of _0x1063c2['model']['document']['differ']['getChanges']())if('insert'==_0x1dc5c6['type'])for(const _0x541f87 of this['_suggestions']['values']()){if(_0x541f87['isMultiRange']||!_0x541f87['isInContent'])continue;const _0x215822='formatBlock'==_0x541f87['type'],_0x15ae9c=this['_getAttributeKey'](_0x541f87),_0x462da8=_0x15ae9c&&this['_suggestionsConversion']['isBlockAttribute'](_0x15ae9c);if(!_0x215822&&!_0x462da8)continue;const _0x43ddbc=_0x541f87['getFirstRange']();if(_0x43ddbc['start']['parent']!=_0x43ddbc['end']['parent']&&!_0x43ddbc['end']['isAtEnd']){const _0x2b05d0=_0x1063c2['model']['createPositionAt'](_0x43ddbc['start']['nodeAfter'],'end'),_0x52afd6=_0x1063c2['model']['createRange'](_0x43ddbc['start'],_0x2b05d0);_0x462022['updateMarker'](_0x541f87['getFirstMarker'](),{'range':_0x52afd6}),_0x5f3928=!0x0;}}return _0x5f3928;}),_0x1063c2['model']['document']['registerPostFixer'](_0xe1b028=>this['_processAttributeChanges'](_0xe1b028)),_0x1063c2['model']['document']['registerPostFixer'](_0x16c55b=>!_0x16c55b['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x16c55b)),_0x1063c2['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x1063c2['model']['document']['on']('change:data',(_0x51f946,_0x418122)=>{if(!_0x418122['isLocal']||_0x418122['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x4d6452=_0x1063c2['model']['document']['differ']['getChanges']();if(0x0==_0x4d6452['length'])return;const _0x31bc68=[],_0x52a6cc=_0x4d6452['filter'](_0xb510d9=>'attribute'==_0xb510d9['type']),_0x15476f=_0x4d6452['filter'](_0x48bfe0=>'insert'==_0x48bfe0['type']&&'$text'!=_0x48bfe0['name']);for(const _0x2e978f of _0x52a6cc)this['_suggestionsConversion']['isRegisteredAttribute'](_0x2e978f['attributeKey'])&&_0x31bc68['push']({'key':_0x2e978f['attributeKey'],'newValue':_0x2e978f['attributeNewValue'],'oldValue':_0x2e978f['attributeOldValue'],'range':sn(_0x2e978f['range'],_0x1063c2['model'])});for(const _0x1906c7 of _0x15476f){if('rename'!=_0x1906c7['action']&&'refresh'!=_0x1906c7['action'])continue;const _0x1703f2=rn(_0x1906c7['position']['nodeAfter'],_0x1063c2['model']),_0x5cbf3d=_0x1906c7['before'];'rename'==_0x1906c7['action']&&_0x31bc68['push']({'key':Ke,'newValue':_0x1906c7['name'],'oldValue':_0x5cbf3d['name'],'range':_0x1703f2});for(const [_0x443bef,_0x28bc9c]of _0x5cbf3d['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x443bef))continue;const _0x214b03=_0x1906c7['attributes']['get'](_0x443bef);_0x28bc9c!==_0x214b03&&_0x31bc68['push']({'key':_0x443bef,'newValue':_0x214b03,'oldValue':_0x28bc9c,'range':_0x1703f2});}for(const [_0x3f8b4a,_0x14f8f0]of _0x1906c7['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x3f8b4a)&&(_0x5cbf3d['attributes']['has'](_0x3f8b4a)||_0x31bc68['push']({'key':_0x3f8b4a,'newValue':_0x14f8f0,'oldValue':null,'range':_0x1703f2}));}0x0!=_0x31bc68['length']&&_0x1063c2['model']['enqueueChange'](_0x418122,_0x2bb4d7=>{const _0x305250=_0x452c31();for(const {range:_0xefffee,key:_0x17afcb,oldValue:_0x87e2ef,newValue:_0x4c175a}of _0x31bc68)this['markAttributeChange'](_0xefffee,_0x17afcb,_0x87e2ef,_0x4c175a,{'groupId':_0x305250});this['_reduceExistingSuggestions'](_0x2bb4d7,_0x31bc68);});},{'priority':'lowest'}),_0x1063c2['model']['markers']['on']('update:suggestion',(_0xdbedbd,_0xbe03fe,_0x30e3f6)=>{if(null==_0x30e3f6){const {id:_0xce6875}=_0x4f6d6c(_0xbe03fe['name']),_0x9ea18f=this['_suggestions']['get'](_0xce6875);_0x9ea18f&&_0x9ea18f['addMarkerName'](_0xbe03fe['name']);}}),_0x1063c2['model']['document']['on']('change:data',()=>{const _0x1be6f6=Array['from'](_0x1063c2['model']['document']['differ']['getChangedMarkers']())['filter'](_0x1264d1=>'suggestion'===_0x4f6d6c(_0x1264d1['name'])['group']);if(0x0===_0x1be6f6['length'])return;_0x1be6f6['sort']((_0x101d1a,_0x1b11ec)=>{const _0x59c44=_0x101d1a['data']['oldRange'],_0x590e46=_0x1b11ec['data']['oldRange'];return null===_0x59c44&&null===_0x590e46?0x0:null===_0x59c44&&null!==_0x590e46?-0x1:null!==_0x59c44&&null===_0x590e46?0x1:_0x59c44['start']['isBefore'](_0x590e46['start'])?-0x1:0x1;});const _0x3fd374=new Set(),_0x266a6c=new Set();for(const {name:_0x60f1ae,data:_0x1abde2}of _0x1be6f6){const {id:_0x502503}=_0x4f6d6c(_0x60f1ae);if(null===_0x1abde2['oldRange']){const _0x527e11=this['_handleNewSuggestionMarker'](_0x60f1ae);_0x266a6c['add'](_0x527e11);}else{const _0xab1e8a=this['_suggestions']['get'](_0x502503);null!==_0x1abde2['newRange']||_0xab1e8a['isInContent']?(_0x3fd374['add'](_0xab1e8a['head']),_0x266a6c['add'](_0xab1e8a)):this['_removeSuggestion'](_0xab1e8a);}}_0x266a6c['size']>0x0&&this['_refreshSuggestionsChain'](_0x266a6c);for(const _0x39959e of _0x3fd374)this['fire']('suggestionChanged',_0x39959e);}),_0x1063c2['model']['on']('applyOperation',(_0x324fc2,_0x193d99)=>{const _0x2aeab8=_0x193d99[0x0];if(!this['_suggestions']['size'])return;if(!_0x2aeab8['isDocumentOperation'])return;if(_0x2aeab8['batch']['isUndo']||!_0x2aeab8['batch']['isLocal'])return;let _0x35a344,_0xd6d43c;switch(_0x2aeab8['type']){case'insert':_0x35a344=_0x1063c2['model']['createPositionAt'](_0x2aeab8['position']),_0xd6d43c=_0x35a344['getShiftedBy'](_0x2aeab8['howMany']);break;case'split':_0x35a344=_0x1063c2['model']['createPositionAt'](_0x2aeab8['splitPosition']),_0xd6d43c=_0x1063c2['model']['createPositionAt'](_0x2aeab8['moveTargetPosition']);break;case'move':_0x35a344=_0x1063c2['model']['createPositionAt'](_0x2aeab8['targetPosition']),_0xd6d43c=_0x35a344['getShiftedBy'](_0x2aeab8['howMany']);break;default:return;}const _0x16cf9d=_0x1063c2['model']['createRange'](_0x35a344,_0xd6d43c);_0x1063c2['model']['change'](()=>{for(const {suggestion:_0xb88073,meta:_0x2b22a9}of this['_findSuggestions'](_0x16cf9d)){if(_0xb88073['isMultiRange'])continue;if('formatInline'==_0xb88073['type'])continue;const _0x2779e6=this['_getAttributeKey'](_0xb88073);if(_0x2779e6&&this['_suggestionsConversion']['isBlockAttribute'](_0x2779e6)&&'split'!=_0x2aeab8['type'])continue;const _0x10393b=_0xb88073['data']&&_0xb88073['data']['multipleBlocks'];('formatBlock'!=_0xb88073['type']||'split'==_0x2aeab8['type']&&!_0x10393b)&&(_0x2b22a9['containsRangeInObject']||'insertion'==_0xb88073['type']&&_0x2b22a9['isOwn']||_0xb88073['getFirstRange']()['containsRange'](_0x16cf9d)&&this['_breakSuggestionMarker'](_0xb88073,_0x35a344,_0xd6d43c));}});},{'priority':'lowest'}),_0x1063c2['model']['on']('deleteContent',(_0x21b3f4,_0x37c9c3)=>{const _0x5af544=_0x37c9c3[0x0],_0x1f8def=_0x37c9c3[0x1];if(_0x1f8def&&_0x1f8def['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x5af544['isCollapsed'])return;const _0x5eba2b=_0x1063c2['model']['schema'],{start:_0x901e47,end:_0xf33fb6}=_0x5af544['getFirstRange'](),_0x1295b8=_0x901e47['nodeAfter']&&_0x5eba2b['isLimit'](_0x901e47['nodeAfter'])?null:_0x5eba2b['getNearestSelectionRange'](_0x901e47,'forward'),_0x48bd02=_0xf33fb6['nodeBefore']&&_0x5eba2b['isLimit'](_0xf33fb6['nodeBefore'])?null:_0x5eba2b['getNearestSelectionRange'](_0xf33fb6,'backward'),_0x1a94e9=_0x1063c2['model']['createRange'](_0x1295b8?_0x1295b8['start']:_0x901e47,_0x48bd02?_0x48bd02['end']:_0xf33fb6);_0x1063c2['model']['change'](_0x1eb6ff=>{this['markDeletion'](_0x1a94e9);const _0x35e519=_0x1063c2['model']['schema']['getNearestSelectionRange'](_0x1a94e9['start']);_0x5af544['is']('documentSelection')?_0x1eb6ff['setSelection'](_0x35e519):_0x5af544['setTo'](_0x35e519);}),_0x21b3f4['stop']();},{'priority':_0x49557e['normal']+0xa}),_0x1063c2['model']['on']('insertContent',(_0x28956a,_0xeb9148)=>{const _0x3f8f91=_0xeb9148[_0xeb9148['length']-0x1];_0x3f8f91&&_0x3f8f91['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x1063c2['model']['change'](()=>{let _0xaabb1d=_0x1063c2['model']['insertContent'](_0xeb9148[0x0],_0xeb9148[0x1],_0xeb9148[0x2],{'forceDefaultExecution':!0x0});if(!_0xaabb1d)return;_0x28956a['return']=_0xaabb1d['clone']();const _0x54409f=_0xaabb1d['end']['nodeBefore'],_0x31226b=_0x1063c2['model']['schema'];_0x54409f&&_0x31226b['isBlock'](_0x54409f)&&!_0x31226b['isObject'](_0x54409f)&&(_0xaabb1d=_0x1063c2['model']['createRange'](_0xaabb1d['start'],_0x1063c2['model']['createPositionAt'](_0x54409f,'end'))),this['markInsertion'](_0xaabb1d);}),_0x28956a['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x5212d6=new dt(_0x1063c2,this['_suggestions']);_0x1063c2['commands']['add']('acceptSuggestion',_0x5212d6),this['enableCommand']('acceptSuggestion');const _0x387641=new ft(_0x1063c2,this['_suggestions']);_0x1063c2['commands']['add']('discardSuggestion',_0x387641),this['enableCommand']('discardSuggestion'),_0x1063c2['commands']['add']('acceptAllSuggestions',new Lt(_0x1063c2,_0x5212d6,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x1063c2['commands']['add']('discardAllSuggestions',new Lt(_0x1063c2,_0x387641,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x1063c2['commands']['add']('acceptSelectedSuggestions',new It(_0x1063c2,_0x5212d6,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x1063c2['commands']['add']('discardSelectedSuggestions',new It(_0x1063c2,_0x387641,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x1f919d=_0x1063c2['plugins']['get'](_0x29b6a2);this['listenTo'](_0x1f919d,'addComment',(_0x5e7680,{threadId:_0x176eaf})=>{const _0x14e8d8=this['_suggestions']['get'](_0x176eaf);_0x14e8d8&&_0x14e8d8['commentThread']&&0x1===_0x14e8d8['commentThread']['length']&&this['_updateSuggestionData'](_0x176eaf,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x1f919d,'removeComment',(_0x4beb77,{threadId:_0x5edfbc})=>{const _0x30a2b3=this['_suggestions']['get'](_0x5edfbc);_0x30a2b3&&_0x30a2b3['commentThread']&&!_0x30a2b3['commentThread']['length']&&this['_updateSuggestionData'](_0x5edfbc,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x220eba){const _0x212a29=_0x3a4ca7([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0xf0b9c5=0x3d8d0df,_0x12789d=0x3df55f7^_0xf0b9c5,_0x1211f7=window[_0x3a4ca7([0x44,0x61,0x74,0x65])][_0x3a4ca7([0x6e,0x6f,0x77])](),_0x24ea40=_0x220eba[_0x3a4ca7([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xc8b356=new window[(_0x3a4ca7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x501b3a=>{_0x24ea40[_0x3a4ca7([0x6f,0x6e,0x63,0x65])](_0x3a4ca7([0x72,0x65,0x61,0x64,0x79]),_0x501b3a);}),_0x57f1ed={[_0x3a4ca7([0x6b,0x74,0x79])]:_0x3a4ca7([0x45,0x43]),[_0x3a4ca7([0x75,0x73,0x65])]:_0x3a4ca7([0x73,0x69,0x67]),[_0x3a4ca7([0x63,0x72,0x76])]:_0x3a4ca7([0x50,0x2d,0x32,0x35,0x36]),[_0x3a4ca7([0x78])]:_0x3a4ca7([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x3a4ca7([0x79])]:_0x3a4ca7([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x3a4ca7([0x61,0x6c,0x67])]:_0x3a4ca7([0x45,0x53,0x32,0x35,0x36])},_0x1144cb=_0x24ea40[_0x3a4ca7([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3a4ca7([0x67,0x65,0x74])](_0x3a4ca7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4502a7(){let _0x42969e,_0x5af486=null,_0x496277=null;try{if(_0x1144cb==_0x3a4ca7([0x47,0x50,0x4c]))return _0x3a4ca7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x42969e=_0x1d57cb(),!_0x42969e)return _0x3a4ca7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x42969e[_0x3a4ca7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x496277=_0x1a07f4(_0x42969e[_0x3a4ca7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x42969e[_0x3a4ca7([0x6a,0x74,0x69])])),await _0x3b044d()?_0x2a5871()?_0x3cdbb3()?_0x3a4ca7([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3142cc()?(_0x42969e[_0x3a4ca7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3a4ca7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5af486=_0x11e8a6(_0x3a4ca7([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0xd45c85()):_0x3a4ca7([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3a4ca7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3a4ca7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3a4ca7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3cdbb3(){const _0x3ff07f=[_0x3a4ca7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3a4ca7([0x74,0x72,0x69,0x61,0x6c])][_0x3a4ca7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42969e[_0x3a4ca7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1211f7/0x3e8:0xe10*_0x12789d;return _0x42969e[_0x3a4ca7([0x65,0x78,0x70])]<_0x3ff07f;}function _0x2a5871(){const _0x5aec17=_0x42969e[_0x3a4ca7([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x5aec17)return!0x1;if(_0x5aec17[_0x3a4ca7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3a4ca7([0x2a])))return!0x0;if(_0x5aec17[_0x3a4ca7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3a4ca7([0x54,0x43])))return!0x0;if(_0x5aec17[_0x3a4ca7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3a4ca7([0x52,0x54,0x43]))){if(_0x2a27d3())return!0x0;if(_0x455fd1()||_0xe0bd7d())return!0x0;}return!0x1;}function _0x3142cc(){const _0xa81abe=_0x42969e[_0x3a4ca7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xa81abe||0x0==_0xa81abe[_0x3a4ca7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x38d1b4}=new URL(window[_0x3a4ca7([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xa81abe[_0x3a4ca7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x38d1b4))return!0x0;const _0x21e944=_0x38d1b4[_0x3a4ca7([0x73,0x70,0x6c,0x69,0x74])](_0x3a4ca7([0x2e]));return _0xa81abe[_0x3a4ca7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2de4a2=>_0x2de4a2[_0x3a4ca7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3a4ca7([0x2a])))[_0x3a4ca7([0x6d,0x61,0x70])](_0x12b026=>_0x12b026[_0x3a4ca7([0x73,0x70,0x6c,0x69,0x74])](_0x3a4ca7([0x2e])))[_0x3a4ca7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2add20=>_0x2add20[_0x3a4ca7([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x21e944[_0x3a4ca7([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3a4ca7([0x6d,0x61,0x70])](_0x5aa708=>Array(_0x21e944[_0x3a4ca7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5aa708[_0x3a4ca7([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3a4ca7([0x66,0x69,0x6c,0x6c])](_0x5aa708[0x0]===_0x3a4ca7([0x2a])?_0x3a4ca7([0x2a]):'')[_0x3a4ca7([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5aa708))[_0x3a4ca7([0x73,0x6f,0x6d,0x65])](_0x4f1e2e=>_0x21e944[_0x3a4ca7([0x65,0x76,0x65,0x72,0x79])]((_0x484634,_0x3d4a73)=>_0x4f1e2e[_0x3d4a73]===_0x484634||_0x4f1e2e[_0x3d4a73]===_0x3a4ca7([0x2a])));}function _0xd45c85(){return _0x5af486&&_0x496277?new window[(_0x3a4ca7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x128433,_0xc1cdd8)=>{_0x5af486[_0x3a4ca7([0x74,0x68,0x65,0x6e])](_0x128433,_0xc1cdd8),_0x496277[_0x3a4ca7([0x74,0x68,0x65,0x6e])](_0x5f2d54=>{_0x5f2d54!=_0x3a4ca7([0x56,0x61,0x6c,0x69,0x64])&&_0x128433(_0x5f2d54);},_0xc1cdd8);}):_0x5af486||_0x496277||_0x3a4ca7([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1a07f4(_0x30ed23,_0xca8c5b){return new window[(_0x3a4ca7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2cab76=>{if(_0x5a4cfb())return _0x2cab76(_0x3a4ca7([0x56,0x61,0x6c,0x69,0x64]));_0x57473e(),_0x24ea40[_0x3a4ca7([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3a4ca7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3438cc=!0x1;const _0x4d7080=_0x452c31();function _0x2633b0(_0x30ac2d){return!!_0x30ac2d&&(typeof _0x30ac2d===_0x3a4ca7([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x30ac2d===_0x3a4ca7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x30ac2d[_0x3a4ca7([0x74,0x68,0x65,0x6e])]===_0x3a4ca7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x30ac2d[_0x3a4ca7([0x63,0x61,0x74,0x63,0x68])]===_0x3a4ca7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x564316(_0x1fc25b){_0x8cc826(_0x1fc25b)[_0x3a4ca7([0x74,0x68,0x65,0x6e])](_0x4ab0a7=>{if(!_0x4ab0a7||_0x4ab0a7[_0x3a4ca7([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3a4ca7([0x6f,0x6b]))return _0x3a4ca7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3dafbe(_0x1be4d4(_0x4d7080+_0xca8c5b))!=_0x4ab0a7[_0x3a4ca7([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3a4ca7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3a4ca7([0x56,0x61,0x6c,0x69,0x64]);})[_0x3a4ca7([0x74,0x68,0x65,0x6e])](_0x781fa2=>(_0x5d65fe(),_0x781fa2),()=>{const _0x926157=_0xdbbb59();return null==_0x926157?(_0x5d65fe(),_0x3a4ca7([0x56,0x61,0x6c,0x69,0x64])):_0x3a4ca7(_0x1211f7-_0x926157>(0x27d454df^_0xf0b9c5)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3a4ca7([0x74,0x68,0x65,0x6e])](_0x2cab76)[_0x3a4ca7([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2cab76(_0x3a4ca7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x581fc7=0x3ee3e5f^_0xf0b9c5;function _0x5d65fe(){const _0x319a5d=_0x3a4ca7([0x6c,0x6c,0x63,0x74,0x2d])+_0x3dafbe(_0x1be4d4(_0x30ed23)),_0x39c9bc=_0x5685d2(_0x3dafbe(window[_0x3a4ca7([0x4d,0x61,0x74,0x68])][_0x3a4ca7([0x63,0x65,0x69,0x6c])](_0x1211f7/_0x581fc7)));window[_0x3a4ca7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3a4ca7([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x319a5d,_0x39c9bc);}function _0xdbbb59(){const _0x2cf485=_0x3a4ca7([0x6c,0x6c,0x63,0x74,0x2d])+_0x3dafbe(_0x1be4d4(_0x30ed23)),_0x16637d=window[_0x3a4ca7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3a4ca7([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2cf485);return _0x16637d?window[_0x3a4ca7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5685d2(_0x16637d),0x10)*_0x581fc7:null;}function _0x8cc826(_0x5e40bc){return new window[(_0x3a4ca7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x58b955,_0x423521)=>{_0x5e40bc[_0x3a4ca7([0x74,0x68,0x65,0x6e])](_0x58b955,_0x423521),window[_0x3a4ca7([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x423521,0x3d9041f^_0xf0b9c5);});}}_0x24ea40[_0x3a4ca7([0x6f,0x6e])](_0x3a4ca7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x44b20f,_0xb1af85)=>{if(_0xb1af85[0x0]!=_0x30ed23)return _0x2cab76(_0x3a4ca7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xb1af85[0x1]={..._0xb1af85[0x1],[_0x3a4ca7([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4d7080};},{[_0x3a4ca7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3a4ca7([0x68,0x69,0x67,0x68])}),_0x24ea40[_0x3a4ca7([0x6f,0x6e])](_0x3a4ca7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x112025=>{_0x2633b0(_0x112025[_0x3a4ca7([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3438cc=!0x0,_0x564316(_0x112025[_0x3a4ca7([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3a4ca7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3a4ca7([0x6c,0x6f,0x77])}),_0xc8b356[_0x3a4ca7([0x74,0x68,0x65,0x6e])](()=>{_0x3438cc||_0x2cab76(_0x3a4ca7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5a4cfb(){return _0x24ea40[_0x3a4ca7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3a4ca7([0x76,0x69,0x65,0x77])][_0x3a4ca7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3a4ca7([0x61,0x75,0x74,0x6f]);}function _0x57473e(){_0x24ea40[_0x3a4ca7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3a4ca7([0x76,0x69,0x65,0x77])][_0x3a4ca7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3a4ca7([0x61,0x75,0x74,0x6f]);}}function _0x11e8a6(_0x3c3bad){const _0x347d8c=[new window[(_0x3a4ca7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xef84c7=>setTimeout(_0xef84c7,0x3d1ee13^_0xf0b9c5)),_0xc8b356[_0x3a4ca7([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3a4ca7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2328ce=>{let _0x43c2a0=0x0;_0x24ea40[_0x3a4ca7([0x6d,0x6f,0x64,0x65,0x6c])][_0x3a4ca7([0x6f,0x6e])](_0x3a4ca7([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x20f8b8,_0xf2882f)=>{_0xf2882f[0x0][_0x3a4ca7([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x43c2a0++,_0x43c2a0==(0x3d8d537^_0xf0b9c5)&&(_0x2328ce(),_0x20f8b8[_0x3a4ca7([0x6f,0x66,0x66])]());});}))];return window[_0x3a4ca7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3a4ca7([0x72,0x61,0x63,0x65])](_0x347d8c)[_0x3a4ca7([0x74,0x68,0x65,0x6e])](()=>_0x3c3bad);}async function _0x115ba6(){await _0xc8b356,_0x24ea40[_0x3a4ca7([0x6d,0x6f,0x64,0x65,0x6c])][_0x3a4ca7([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x24027f,_0x24ea40[_0x3a4ca7([0x6d,0x6f,0x64,0x65,0x6c])][_0x3a4ca7([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x24027f,_0x24ea40[_0x3a4ca7([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3a4ca7([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2a27d3(){return _0x5857ec(_0x3a4ca7([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x5c6918(_0x3a4ca7([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x3a4ca7([0x73,0x74,0x61,0x74,0x65])]==_0x3a4ca7([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x455fd1(){return _0x5857ec(_0x3a4ca7([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0xe0bd7d(){return _0x5857ec(_0x3a4ca7([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x52a774(_0x5ee0b9){const _0x1756f8=_0x2680c8();_0x24ea40[_0x1756f8]=_0x3a4ca7([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5ee0b9,_0x5ee0b9!=_0x3a4ca7([0x56,0x61,0x6c,0x69,0x64])&&_0x115ba6();}function _0x2680c8(){const _0x54e2de=window[_0x3a4ca7([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3a4ca7([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3a4ca7([0x6e,0x6f,0x77])]())[_0x3a4ca7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3a4ca7([0x2e]),'');let _0x1dc3ba=_0x3a4ca7([0x52]);for(let _0x237845=0x0;_0x237845<_0x54e2de[_0x3a4ca7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x237845+=0x2){let _0x4af17b=window[_0x3a4ca7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x54e2de[_0x3a4ca7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x237845,_0x237845+0x2));_0x4af17b>=_0x212a29[_0x3a4ca7([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4af17b-=_0x212a29[_0x3a4ca7([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1dc3ba+=_0x212a29[_0x4af17b];}return _0x1dc3ba;}function _0x1d57cb(){const _0x2471fc=_0x1144cb[_0x3a4ca7([0x73,0x70,0x6c,0x69,0x74])](_0x3a4ca7([0x2e]));if(0x3!=_0x2471fc[_0x3a4ca7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x406dc1(_0x2471fc[0x1]);function _0x406dc1(_0x938807){const _0x3993ee=_0x1d2e82(_0x938807);return _0x3993ee&&_0x36523f()?_0x3993ee:null;function _0x36523f(){const _0x2f2d3b=_0x3993ee[_0x3a4ca7([0x6a,0x74,0x69])],_0x68fbde=window[_0x3a4ca7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2f2d3b[_0x3a4ca7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2f2d3b[_0x3a4ca7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3630f6={..._0x3993ee,[_0x3a4ca7([0x6a,0x74,0x69])]:_0x2f2d3b[_0x3a4ca7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2f2d3b[_0x3a4ca7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3630f6[_0x3a4ca7([0x76,0x63])],_0x1be4d4(_0x3630f6)==_0x68fbde;}}}async function _0x3b044d(){let _0x771a3a=!0x0;try{const _0x438a73=_0x1144cb[_0x3a4ca7([0x73,0x70,0x6c,0x69,0x74])](_0x3a4ca7([0x2e])),[_0x381658,_0x5ec171,_0x11679b]=_0x438a73;return _0x166949(_0x381658),await _0x5510ab(_0x381658,_0x5ec171,_0x11679b),_0x771a3a;}catch{return!0x1;}function _0x166949(_0x1769dd){const _0x24e00f=_0x1d2e82(_0x1769dd);_0x24e00f&&_0x24e00f[_0x3a4ca7([0x61,0x6c,0x67])]==_0x3a4ca7([0x45,0x53,0x32,0x35,0x36])||(_0x771a3a=!0x1);}async function _0x5510ab(_0x501ea1,_0xc8c6ef,_0x12ca21){const _0x3649ba=window[_0x3a4ca7([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3a4ca7([0x66,0x72,0x6f,0x6d])](_0x143416(_0x12ca21),_0x3e6824=>_0x3e6824[_0x3a4ca7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5e61e3=new window[(_0x3a4ca7([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3a4ca7([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x501ea1+_0x3a4ca7([0x2e])+_0xc8c6ef),_0x40f062=window[_0x3a4ca7([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3a4ca7([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x40f062)return;const _0x3be426=await _0x40f062[_0x3a4ca7([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3a4ca7([0x6a,0x77,0x6b]),_0x57f1ed,{[_0x3a4ca7([0x6e,0x61,0x6d,0x65])]:_0x3a4ca7([0x45,0x43,0x44,0x53,0x41]),[_0x3a4ca7([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3a4ca7([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3a4ca7([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x40f062[_0x3a4ca7([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3a4ca7([0x6e,0x61,0x6d,0x65])]:_0x3a4ca7([0x45,0x43,0x44,0x53,0x41]),[_0x3a4ca7([0x68,0x61,0x73,0x68])]:{[_0x3a4ca7([0x6e,0x61,0x6d,0x65])]:_0x3a4ca7([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3be426,_0x3649ba,_0x5e61e3)||(_0x771a3a=!0x1);}}function _0x1d2e82(_0x317104){return _0x317104[_0x3a4ca7([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3a4ca7([0x65,0x79]))?JSON[_0x3a4ca7([0x70,0x61,0x72,0x73,0x65])](_0x143416(_0x317104)):null;}function _0x143416(_0x39c69e){return window[_0x3a4ca7([0x61,0x74,0x6f,0x62])](_0x39c69e[_0x3a4ca7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3a4ca7([0x2b]))[_0x3a4ca7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3a4ca7([0x2f])));}function _0x1be4d4(_0x29ebec){let _0x4889ca=0x1505;function _0x3d0575(_0xc47e04){for(let _0x38a9eb=0x0;_0x38a9eb<_0xc47e04[_0x3a4ca7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x38a9eb++){const _0x37900e=_0xc47e04[_0x3a4ca7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x38a9eb);_0x4889ca=(_0x4889ca<<0x5)+_0x4889ca+_0x37900e,_0x4889ca&=_0x4889ca;}}function _0x2ce90f(_0x3215f2){Array[_0x3a4ca7([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3215f2)?_0x3215f2[_0x3a4ca7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2ce90f):_0x3215f2&&typeof _0x3215f2==_0x3a4ca7([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3a4ca7([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3215f2)[_0x3a4ca7([0x73,0x6f,0x72,0x74])]()[_0x3a4ca7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x349882,_0x3eec02])=>{_0x3d0575(_0x349882),_0x2ce90f(_0x3eec02);}):_0x3d0575(window[_0x3a4ca7([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3215f2));}return _0x2ce90f(_0x29ebec),_0x4889ca>>>0x0;}function _0x3dafbe(_0x14f635){return _0x14f635[_0x3a4ca7([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3a4ca7([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3a4ca7([0x30]));}function _0x5685d2(_0x245577){return _0x245577[_0x3a4ca7([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3a4ca7([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3a4ca7([0x6a,0x6f,0x69,0x6e])]('');}function _0x5857ec(_0x34f9f7){return _0x24ea40[_0x3a4ca7([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3a4ca7([0x68,0x61,0x73])](_0x34f9f7);}function _0x5c6918(_0x121307){return _0x24ea40[_0x3a4ca7([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3a4ca7([0x67,0x65,0x74])](_0x121307);}function _0x24027f(){}function _0x3a4ca7(_0xfca0ab){return _0xfca0ab['map'](_0x128861=>String['fromCharCode'](_0x128861))['join']('');}_0x52a774(await _0x4502a7());}(this);}set['adapter'](_0x316aac){if(this['_adapter'])throw new _0x27828f('track-changes-adapter-already-set',this);this['_adapter']=_0x316aac;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x493766=!0x1,toJSON:_0xd44eae=!0x1}={}){const _0x39b032=[];for(const _0x12b995 of this['_suggestions']['values']())_0x493766&&!_0x12b995['isInContent']||_0x39b032['push'](_0x12b995);return _0xd44eae?_0x39b032['map'](_0x28b422=>_0x28b422['toJSON']()):_0x39b032;}['getSuggestion'](_0xc57a04){const _0x536efa=this['_suggestions']['get'](_0xc57a04);if(!_0x536efa)throw new _0x27828f('track-changes-suggestion-not-found',this);return _0x536efa;}['hasSuggestion'](_0x2e738f){return this['_suggestions']['has'](_0x2e738f);}['addSuggestionData'](_0x3a4028){const {authorId:_0x2aa322,id:_0x3ee157,originalSuggestionId:_0x871fbb,attributes:_0xb03acd}=_0x3a4028,[_0x1f58ba,_0x1bb4c8]=_0x3a4028['type']['split'](':'),_0x238028=this['_suggestions']['get'](_0x3ee157)||this['_createSuggestion'](_0x1f58ba,_0x1bb4c8,_0x3ee157,_0x2aa322,_0xb03acd,_0x871fbb);if(this['_addThreadToSuggestion'](_0x238028),this['_checkSuggestionCorrectness'](_0x238028,_0x1f58ba,_0x1bb4c8||null,_0x2aa322),_0x238028['createdAt']=_0x3a4028['createdAt'],_0x238028['_isDataLoaded']=!0x0,_0xb03acd&&_0xb03acd['@external']){const _0x3eac7d=_0xb03acd['@external'],_0x3e1aab=this['_getExternalAuthor'](_0x3eac7d['authorName']);_0x238028['authoredAt']=_0x3eac7d['createdAt'],_0x238028['author']=_0x3e1aab,_0x238028['isExternal']=!0x0;}else _0x238028['authoredAt']=_0x3a4028['createdAt'];switch(_0x3a4028['data']&&(_0x238028['data']=_0x3a4028['data']),_0x3a4028['attributes']&&(_0x238028['attributes']=_0x3a4028['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x238028['_saved']=!0x0),this['_suggestionState']['get'](_0x238028)){case'notReady':this['_suggestionState']['set'](_0x238028,'dataReady');break;case'markerReady':_0x238028['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x238028])),this['_refreshSuggestionsChain'](new Set([_0x238028])),this['_suggestionState']['set'](_0x238028,'ready'),this['fire']('suggestionLoaded',_0x238028)):this['_suggestionState']['set'](_0x238028,'removed');}return _0x238028;}['acceptSuggestion'](_0x3867e){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5ced7c of _0x3867e['getAllAdjacentSuggestions']())_0x5ced7c['accept']();});});}['discardSuggestion'](_0x239b5b){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x51e892 of _0x239b5b['getAllAdjacentSuggestions']())_0x51e892['discard']();});});}['enableCommand'](_0x5d3254,_0x1bc3b2){const _0x282716=this['editor']['commands']['get'](_0x5d3254);if(!_0x282716)throw new _0x27828f('track-changes-command-not-found',this,{'commandName':_0x5d3254});if(this['_enabledCommands']['has'](_0x282716))throw new _0x27828f('track-changes-enable-command-twice',this,{'commandName':_0x5d3254});this['_enabledCommands']['add'](_0x282716),_0x1bc3b2&&_0x282716['on']('execute',(_0x1a7494,_0x64fcb9)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x64fcb9['length']>0x0&&_0x64fcb9[_0x64fcb9['length']-0x1]&&_0x64fcb9[_0x64fcb9['length']-0x1]['forceDefaultExecution']?_0x64fcb9['pop']():(_0x1a7494['return']=_0x1bc3b2((..._0x39cc4a)=>_0x282716['execute'](..._0x39cc4a,{'forceDefaultExecution':!0x0}),..._0x64fcb9),_0x1a7494['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x1395b0){let _0x515c5f,_0x393e8e;const _0x1d6d23=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x515c5f=_0x1395b0();}catch(_0x4e6887){_0x393e8e=_0x4e6887;}return _0x1d6d23||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x393e8e&&_0x27828f['rethrowUnexpectedError'](_0x393e8e,this),_0x515c5f;}['markInsertion'](_0x2a0b5c,_0x2e600c=null,_0x4a94dc={}){if(_0x2a0b5c['isCollapsed'])return null;const _0x5a27af=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x4a94dc['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x19dd5c,meta:_0x4cf40d}of this['_findSuggestions'](_0x2a0b5c,'insertion'))if(_0x4cf40d['isOwn']){if(!_0x4cf40d['isNextTo']){if(_0x4cf40d['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!cn(_0x19dd5c,_0x4a94dc))continue;return _0x19dd5c;}if(cn(_0x19dd5c,_0x4a94dc))return _0x19dd5c;this['_breakSuggestionMarker'](_0x19dd5c,_0x2a0b5c['start'],_0x2a0b5c['end']);break;}if(_0x2e600c==_0x19dd5c['subType']&&cn(_0x19dd5c,_0x4a94dc)){const _0x552373=_0x19dd5c['getFirstRange']();return _0x552373['start']['isEqual'](_0x2a0b5c['end'])?this['_setSuggestionRange'](_0x19dd5c,this['_model']['createRange'](_0x2a0b5c['start'],_0x552373['end'])):this['_setSuggestionRange'](_0x19dd5c,this['_model']['createRange'](_0x552373['start'],_0x2a0b5c['end'])),_0x19dd5c;}}const _0x83c2c4=_0x452c31(),_0x84755b=_0x5a27af['id'],_0x2d8d3b=_0x2e600c?'insertion:'+_0x2e600c:'insertion',_0x33d9fc=this['_setSuggestionData']({'id':_0x83c2c4,'type':_0x2d8d3b,'createdAt':new Date(),'authorId':_0x84755b,'attributes':_0x4a94dc});return this['_addSuggestionMarker'](_0x2d8d3b,_0x83c2c4,_0x84755b,_0x2a0b5c),_0x33d9fc;}['markMultiRangeInsertion'](_0x1d0d8e,_0x915dff='multi',_0x3ebf6a={}){const _0x663008=this['editor']['plugins']['get']('Users')['me'],_0x3cf7b9=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x915dff,'join');this['_trackingSessionId']&&(_0x3ebf6a['trackingSessionId']=this['_trackingSessionId']);for(const _0x300bd8 of this['getSuggestions']())if(_0x300bd8['author']['id']==_0x663008['id']&&'insertion'==_0x300bd8['type']&&_0x300bd8['subType']==_0x915dff&&cn(_0x300bd8,_0x3ebf6a)&&(_0x3cf7b9(_0x300bd8['getRanges'](),_0x1d0d8e)||_0x3cf7b9(_0x1d0d8e,_0x300bd8['getRanges']()))){for(const _0x79a5e9 of _0x1d0d8e)_0x300bd8['addRange'](_0x79a5e9);return _0x300bd8;}for(const {suggestion:_0x14e1d9,meta:_0x277820}of this['_findSuggestions'](_0x1d0d8e,'insertion')){if(!_0x277820['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x277820['containsRangeInObject'])continue;if(!cn(_0x14e1d9,_0x3ebf6a))continue;let _0x1f50c7=!0x0;for(const _0x4b3b23 of _0x14e1d9['getRanges']())for(const _0x2d2236 of _0x1d0d8e)if(!_0x4b3b23['containsRange'](_0x2d2236)){_0x1f50c7=!0x1;break;}if(_0x1f50c7)return _0x14e1d9;}const _0x3e627c=_0x452c31(),_0xb5330c=_0x663008['id'],_0x38be64='insertion:'+_0x915dff,_0x50c119=this['_setSuggestionData']({'id':_0x3e627c,'type':_0x38be64,'createdAt':new Date(),'authorId':_0xb5330c,'attributes':_0x3ebf6a});for(const _0x4e93a6 of _0x1d0d8e)this['_addSuggestionMarker'](_0x38be64,_0x3e627c,_0xb5330c,_0x4e93a6,bt['getMultiRangeId']());return _0x50c119;}['markInlineFormat'](_0x40bfcd,_0x34e12b,_0x417678=null,_0x437e02={}){if(_0x417678=_0x417678||Je(_0x34e12b),_0x40bfcd['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x437e02['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x55a985=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x417678,'accept');return this['forceDefaultExecution'](()=>_0x55a985([_0x40bfcd],_0x34e12b,_0x437e02)),null;}const _0x19afec=this['editor']['plugins']['get']('Users')['me'],_0x1959b1=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x2d6256,meta:_0x17087d}of this['_findSuggestions'](_0x40bfcd,'insertion'))_0x17087d['isOwn']&&!_0x17087d['isInsideObject']&&_0x1959b1['push'](..._0x2d6256['getRanges']());}const _0x3c0432=function(_0x4c6534,_0x476fee){const _0x410bb1=[];for(const _0x2d0f79 of _0x476fee){const _0x265e57=_0x4c6534['getIntersection'](_0x2d0f79);_0x265e57&&_0x410bb1['push'](_0x265e57);}return _0x410bb1;}(_0x40bfcd,_0x1959b1),_0x588355=function(_0x1cbd47,_0x297a68){const _0x552104=[_0x1cbd47];for(const _0x2fd721 of _0x297a68){let _0x12b64d=0x0;for(;_0x12b64d<_0x552104['length'];){const _0x5ccb42=_0x552104[_0x12b64d]['getDifference'](_0x2fd721);_0x552104['splice'](_0x12b64d,0x1,..._0x5ccb42),_0x12b64d+=_0x5ccb42['length'];}}return _0x552104;}(_0x40bfcd,_0x1959b1);_0x3c0432['length']&&this['_model']['change'](()=>{for(const _0x15f53d of _0x3c0432){const _0x552816=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x417678,'accept');this['forceDefaultExecution'](()=>_0x552816([_0x15f53d],_0x34e12b,_0x437e02));}});for(const _0x92212c of _0x588355){let _0x400a41=null,_0x418085=_0x92212c['start'],_0x25df22=_0x92212c['end'];for(const {suggestion:_0x58515f,meta:_0x20cf61}of this['_findSuggestions'](_0x92212c,'formatInline')){if(!_0x20cf61['isOwn'])continue;if(_0x58515f['subType']!=_0x417678)continue;if(!cn(_0x58515f,_0x437e02))continue;const _0x3c0be3=_0x58515f['getFirstRange']();if(_0x3c0be3['containsRange'](_0x92212c,!0x0))return null;_0x418085=_0x418085['isBefore'](_0x3c0be3['start'])?_0x418085:_0x3c0be3['start'],_0x25df22=_0x25df22['isAfter'](_0x3c0be3['end'])?_0x25df22:_0x3c0be3['end'],_0x400a41?_0x3c0be3['start']['isBefore'](_0x400a41['getFirstRange']()['start'])?(_0x400a41['removeMarkers'](),_0x400a41=_0x58515f):_0x58515f['removeMarkers']():_0x400a41=_0x58515f;}const _0x47bead=this['_model']['createRange'](_0x418085,_0x25df22);if(_0x400a41)this['_setSuggestionRange'](_0x400a41,_0x47bead);else{const _0x28db69=_0x452c31(),_0x5154fc=_0x19afec['id'];this['_setSuggestionData']({'id':_0x28db69,'type':'formatInline:'+_0x417678,'data':_0x34e12b,'createdAt':new Date(),'authorId':_0x5154fc,'attributes':_0x437e02}),this['_addSuggestionMarker']('formatInline:'+_0x417678,_0x28db69,_0x5154fc,_0x47bead);}}return null;}['markBlockFormat'](_0x355f7d,_0x825ef3,_0xe0114b=[],_0x1d436f=null,_0x52cd84={}){_0x825ef3['formatGroupId']||(_0x825ef3['formatGroupId']=_0x825ef3['commandName']),_0x825ef3['multipleBlocks']=_0x355f7d['is']('range'),_0x1d436f=_0x1d436f||Je(_0x825ef3);const _0x292500=_0xe0114b['map'](_0x373acb=>rn(_0x373acb,this['_model'])),_0x46a3d2=_0x355f7d['is']('range')?_0x355f7d:rn(_0x355f7d,this['_model']);if(this['_trackingSessionId']&&(_0x52cd84['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x4a2c45=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1d436f,'accept');return this['forceDefaultExecution'](()=>_0x4a2c45([_0x46a3d2],_0x825ef3,_0x52cd84)),null;}_0x292500['push'](_0x46a3d2);let _0x576ca0=!0x0;for(const _0x5c5b60 of _0x292500)if(!this['_rangeIsInLocalUserInsertion'](_0x5c5b60)){_0x576ca0=!0x1;break;}if(_0x576ca0&&'always'!==this['_trackFormatChanges']){const _0x225c0f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1d436f,'accept');return this['forceDefaultExecution'](()=>_0x225c0f([_0x46a3d2],_0x825ef3,_0x52cd84)),null;}let _0x28e8e9=null,_0x5b55c7=_0x46a3d2['start'],_0x2c6332=_0x46a3d2['end'];for(const {suggestion:_0x4f75bb,meta:_0x158672}of this['_findSuggestions'](_0x46a3d2,'formatBlock')){if(!_0x158672['isOwn'])continue;if(_0x158672['isNextTo']||_0x158672['containsRangeInObject']||_0x158672['isInsideObject'])continue;if(_0x4f75bb['data']['formatGroupId']!=_0x825ef3['formatGroupId'])continue;if(!cn(_0x4f75bb,_0x52cd84))continue;const _0x413363=_0x4f75bb['getFirstRange']();if(_0x4f75bb['subType']==_0x1d436f){if(_0x413363['containsRange'](_0x46a3d2,!0x0))return null;_0x5b55c7=_0x5b55c7['isBefore'](_0x413363['start'])?_0x5b55c7:_0x413363['start'],_0x2c6332=_0x2c6332['isAfter'](_0x413363['end'])?_0x2c6332:_0x413363['end'],_0x28e8e9?_0x413363['start']['isBefore'](_0x28e8e9['getFirstRange']()['start'])?(_0x28e8e9['removeMarkers'](),_0x28e8e9=_0x4f75bb):_0x4f75bb['removeMarkers']():_0x28e8e9=_0x4f75bb;}else{const _0x1a0a2d=_0x46a3d2['getIntersection'](_0x413363);this['_cutOutSuggestionMarker'](_0x4f75bb,_0x1a0a2d);}}const _0x338795=this['editor']['plugins']['get']('Users')['me'],_0x23abc6=_0x452c31(),_0x427a30=_0x338795['id'];if(_0x28e8e9)return this['_setSuggestionRange'](_0x28e8e9,this['_model']['createRange'](_0x5b55c7,_0x2c6332)),_0x28e8e9;{const _0x3426a9=this['_setSuggestionData']({'id':_0x23abc6,'type':'formatBlock:'+_0x1d436f,'data':_0x825ef3,'createdAt':new Date(),'authorId':_0x427a30,'attributes':_0x52cd84});return this['_addSuggestionMarker']('formatBlock:'+_0x1d436f,_0x23abc6,_0x427a30,this['_model']['createRange'](_0x5b55c7,_0x2c6332)),_0x3426a9;}}['markMultiRangeBlockFormat'](_0x28b98e,_0x13ceb0,_0x13df79=[],_0x211d3f=null,_0x785c9b={}){_0x13ceb0['formatGroupId']||(_0x13ceb0['formatGroupId']=_0x13ceb0['commandName']);const _0x460539=_0x28b98e[0x0];_0x13ceb0['multipleBlocks']=_0x460539['is']('range'),_0x211d3f=_0x211d3f||Je(_0x13ceb0);const _0x1518bd=_0x13df79['map'](_0x52c932=>rn(_0x52c932,this['_model'])),_0x3fb255=_0x460539['is']('range')?_0x28b98e:_0x28b98e['map'](_0x1c4ec4=>rn(_0x1c4ec4,this['_model']));if(this['_trackingSessionId']&&(_0x785c9b['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x3e92d6=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x211d3f,'accept');return this['forceDefaultExecution'](()=>_0x3e92d6(_0x3fb255,_0x13ceb0,_0x785c9b)),null;}_0x1518bd['push'](..._0x3fb255);let _0x43d42c=!0x0;for(const _0x4ebf75 of _0x1518bd)if(!this['_rangeIsInLocalUserInsertion'](_0x4ebf75)){_0x43d42c=!0x1;break;}if(_0x43d42c&&'always'!==this['_trackFormatChanges']){const _0xc5b040=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x211d3f,'accept');return this['forceDefaultExecution'](()=>_0xc5b040(_0x3fb255,_0x13ceb0,_0x785c9b)),null;}const _0x249749=this['editor']['plugins']['get']('Users')['me'];for(const _0x4144a9 of this['getSuggestions']()){const _0x2896df=_0x4144a9['data'];if(_0x4144a9['author']['id']!=_0x249749['id'])continue;if('formatBlock'!=_0x4144a9['type']||_0x2896df['formatGroupId']!=_0x13ceb0['formatGroupId'])continue;if(!cn(_0x4144a9,_0x785c9b))continue;const _0x587a2f=_0x4144a9['subType']==_0x211d3f;for(let _0x500637=0x0;_0x500637<_0x3fb255['length'];_0x500637++){const _0x3f1970=_0x3fb255[_0x500637];for(const _0x50827a of _0x4144a9['getMarkers']()){const _0x30a8c=_0x50827a['getRange']();if(_0x3f1970['isEqual'](_0x30a8c)){_0x587a2f?(_0x3fb255['splice'](_0x500637,0x1),_0x500637--):_0x4144a9['removeMarker'](_0x50827a['name']);break;}}}}if(0x0==_0x3fb255['length'])return null;const _0x20657e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x211d3f,'join');for(const _0x31d844 of this['getSuggestions']()){const _0x1102f0=_0x31d844['data'];if(_0x31d844['author']['id']==_0x249749['id']&&('formatBlock'==_0x31d844['type']&&_0x1102f0['formatGroupId']==_0x13ceb0['formatGroupId']&&_0x31d844['subType']==_0x211d3f&&cn(_0x31d844,_0x785c9b)&&(_0x20657e(_0x31d844['getRanges'](),_0x3fb255)||_0x20657e(_0x3fb255,_0x31d844['getRanges']())))){for(const _0x3df8b6 of _0x3fb255)_0x31d844['addRange'](_0x3df8b6);return _0x31d844;}}const _0x5ef653=_0x452c31(),_0x269c65=_0x249749['id'],_0x4abf03='formatBlock:'+_0x211d3f,_0x399701=this['_setSuggestionData']({'id':_0x5ef653,'type':_0x4abf03,'data':_0x13ceb0,'createdAt':new Date(),'authorId':_0x269c65,'attributes':_0x785c9b});for(const _0x3d6a4e of _0x3fb255)this['_addSuggestionMarker'](_0x4abf03,_0x5ef653,_0x269c65,_0x3d6a4e,bt['getMultiRangeId']());return _0x399701;}['markDeletion'](_0x493ef9,_0x411ea5=null,_0x167e70={}){if(_0x493ef9['isCollapsed'])return null;const _0x3f1721=this['editor']['plugins']['get']('Users')['me'],_0x3e9fdd=new _0xf2eec6(_0x493ef9['start'],_0x493ef9['end']);this['_trackingSessionId']&&(_0x167e70['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x16a6f7,meta:_0x474bd9}of this['_findSuggestions'](_0x3e9fdd,'insertion'))if(_0x474bd9['isOwn']&&!_0x474bd9['isNextTo']){if(_0x16a6f7['isMultiRange']){const _0x167314=_0x16a6f7['getRanges']()['filter'](_0x267bb8=>'$graveyard'!=_0x267bb8['root']['rootName']);_0x167314['every'](_0x5c0e95=>_0x3e9fdd['containsRange'](_0x5c0e95,!0x0))&&_0x16a6f7['discard']();if(_0x167314['some'](_0x565635=>_0x565635['containsRange'](_0x3e9fdd,!0x0))){const _0x771b05=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x411ea5,'accept');return this['forceDefaultExecution'](()=>_0x771b05([_0x3e9fdd],null,_0x167e70)),null;}}else{const _0x3ddc34=_0x3e9fdd['getIntersection'](_0x16a6f7['getFirstRange']());null!==_0x3ddc34&&_0x16a6f7['_onDiscard']([_0x3ddc34],null,_0x167e70);}}if(_0x3e9fdd['detach'](),_0x3e9fdd['isCollapsed']||'$graveyard'==_0x3e9fdd['root']['rootName'])return null;let _0x3892a8=null,_0x32d769=_0x3e9fdd['start'],_0x1d6a3c=_0x3e9fdd['end'];const _0x3334ad=this['_findSuggestions'](_0x3e9fdd,'deletion');for(const {suggestion:_0x372309,meta:_0x30af84}of _0x3334ad){const _0x36301b=this['_model']['createRange'](_0x32d769,_0x1d6a3c);if(_0x30af84['isOwn']&&(this['_mergeNestedSuggestions']||!_0x30af84['containsRangeInObject']&&!_0x30af84['isInsideObject'])){if(_0x372309['isMultiRange']){if(!cn(_0x372309,_0x167e70))continue;let _0x1f4a7e=!0x0;for(const _0x10e25e of _0x372309['getRanges']()){if(_0x10e25e['containsRange'](_0x36301b,!0x0))return _0x372309;_0x36301b['containsRange'](_0x10e25e)||(_0x1f4a7e=!0x1);}_0x1f4a7e&&_0x372309['discard']();}else{const _0x1778e8=_0x372309['getFirstRange']();if(_0x1778e8['containsRange'](_0x36301b,!0x0))return _0x372309;if(!cn(_0x372309,_0x167e70)){_0x36301b['containsRange'](_0x1778e8)?_0x372309['removeMarkers']():_0x1778e8['containsPosition'](_0x32d769)?_0x32d769=_0x1778e8['end']:_0x1778e8['containsPosition'](_0x1d6a3c)&&(_0x1d6a3c=_0x1778e8['start']);continue;}_0x32d769=_0x32d769['isBefore'](_0x1778e8['start'])?_0x32d769:_0x1778e8['start'],_0x1d6a3c=_0x1d6a3c['isAfter'](_0x1778e8['end'])?_0x1d6a3c:_0x1778e8['end'],_0x167e70=Object['assign']({},_0x372309['attributes']),_0x3892a8?_0x1778e8['start']['isBefore'](_0x3892a8['getFirstRange']()['start'])?(_0x3892a8['removeMarkers'](),_0x3892a8=_0x372309):_0x372309['removeMarkers']():_0x3892a8=_0x372309;}}}if(_0x3892a8)return this['_setSuggestionRange'](_0x3892a8,this['_model']['createRange'](_0x32d769,_0x1d6a3c)),_0x3892a8;{const _0x4761b6=_0x452c31(),_0x575d51=this['_model']['createRange'](_0x32d769,_0x1d6a3c),_0x2088b2=_0x3f1721['id'],_0x13e111=_0x411ea5?'deletion:'+_0x411ea5:'deletion',_0x49a4e7=this['_setSuggestionData']({'id':_0x4761b6,'type':_0x13e111,'createdAt':new Date(),'authorId':_0x2088b2,'attributes':_0x167e70});return this['_addSuggestionMarker'](_0x13e111,_0x4761b6,_0x2088b2,_0x575d51),_0x49a4e7;}}['markMultiRangeDeletion'](_0x49ab19,_0x2cc4ae='multi',_0x526799={}){const _0x27c050=this['editor']['plugins']['get']('Users')['me'],_0x517e5e=_0x49ab19['map'](_0x566b6a=>new _0xf2eec6(_0x566b6a['start'],_0x566b6a['end'])),_0x53a054=new Set();this['_trackingSessionId']&&(_0x526799['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x14e89b,meta:_0x3ebfef}of this['_findSuggestions'](_0x517e5e,'insertion'))_0x3ebfef['isOwn']&&!_0x3ebfef['isNextTo']&&_0x53a054['add'](_0x14e89b);for(const _0x4b51c5 of _0x53a054)if(_0x4b51c5['isMultiRange']){const _0x508ae3=_0x4b51c5['getRanges']();(!_0x4b51c5['attributes']||!_0x4b51c5['attributes']['skipNestingCheck'])&&(_0x508ae3['every'](_0x6ca931=>_0x517e5e['some'](_0x2ff729=>_0x2ff729['containsRange'](_0x6ca931,!0x0)))&&_0x4b51c5['discard']());if(_0x517e5e['every'](_0x32adb7=>_0x508ae3['some'](_0x5ccd07=>_0x5ccd07['containsRange'](_0x32adb7,!0x0)))){const _0x2e76a1=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2cc4ae,'accept');return this['forceDefaultExecution'](()=>_0x2e76a1(_0x49ab19,null,_0x526799)),null;}}else{const _0x7902cb=_0x4b51c5['getFirstRange']();_0x517e5e['some'](_0x1ba8be=>_0x1ba8be['containsRange'](_0x7902cb,!0x0))&&_0x4b51c5['discard']();if(_0x517e5e['every'](_0x10d065=>_0x7902cb['containsRange'](_0x10d065,!0x0))){const _0x52537d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2cc4ae,'accept');return this['forceDefaultExecution'](()=>_0x52537d(_0x517e5e,null,_0x526799)),null;}}const _0x5a81d9=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2cc4ae,'join');let _0x3a085e=null;for(const _0x1e0c92 of this['getSuggestions']())if(_0x1e0c92['author']['id']==_0x27c050['id']&&_0x1e0c92['isInContent']&&'deletion'==_0x1e0c92['type']&&_0x1e0c92['subType']==_0x2cc4ae&&cn(_0x1e0c92,_0x526799)&&(_0x5a81d9(_0x1e0c92['getRanges'](),_0x517e5e)||_0x5a81d9(_0x517e5e,_0x1e0c92['getRanges']()))){if(_0x3a085e){if(_0x1e0c92['commentThread']&&_0x1e0c92['commentThread']['length'])continue;for(const _0x4e6e22 of _0x1e0c92['getRanges']())_0x3a085e['isIntersectingWithRange'](_0x4e6e22)||_0x3a085e['addRange'](_0x4e6e22);_0x1e0c92['removeMarkers']();}else{_0x3a085e=_0x1e0c92;for(const _0x168832 of _0x517e5e)_0x1e0c92['isIntersectingWithRange'](_0x168832)||_0x1e0c92['addRange'](_0x168832);}}if(_0x3a085e)return _0x3a085e;_0x53a054['clear']();for(const {suggestion:_0x4edcc4,meta:_0x49ee7d}of this['_findSuggestions'](_0x517e5e,'deletion'))_0x49ee7d['isOwn']&&(this['_mergeNestedSuggestions']||!_0x49ee7d['containsRangeInObject']&&!_0x49ee7d['isInsideObject'])&&cn(_0x4edcc4,_0x526799)&&_0x53a054['add'](_0x4edcc4);for(const _0x552c6e of _0x53a054){const _0x284721=_0x552c6e['getRanges']();if(!_0x526799||!_0x526799['skipNestingCheck']){if(_0x517e5e['every'](_0x2e0388=>_0x284721['some'](_0x24216f=>_0x24216f['containsRange'](_0x2e0388,!0x0))))return _0x552c6e;}(!_0x552c6e['attributes']||!_0x552c6e['attributes']['skipNestingCheck'])&&(_0x284721['every'](_0x88a7c=>_0x517e5e['some'](_0x194e7e=>_0x194e7e['containsRange'](_0x88a7c,!0x0)))&&_0x552c6e['discard']());}const _0x36ec03=_0x452c31(),_0x56d773=_0x27c050['id'],_0x2a96bc='deletion:'+_0x2cc4ae,_0x3eaacf=this['_setSuggestionData']({'id':_0x36ec03,'type':_0x2a96bc,'createdAt':new Date(),'authorId':_0x56d773,'attributes':_0x526799});for(const _0x2eff2d of _0x517e5e)_0x2eff2d['detach'](),_0x2eff2d['isCollapsed']||'$graveyard'==_0x2eff2d['root']['rootName']||this['_addSuggestionMarker'](_0x2a96bc,_0x36ec03,_0x56d773,_0x2eff2d,bt['getMultiRangeId']());return _0x3eaacf;}['markAttributeChange'](_0x31116b,_0x184a1b,_0x24394f,_0x3d43be,_0x39cf8d){if(_0x31116b['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x4e23ab=this['editor']['plugins']['get']('Users')['me']['id'],_0xc9ec21=Array['from'](this['_suggestions']['values']())['filter'](_0x514a2f=>'attribute'==_0x514a2f['type']&&_0x514a2f['data']['key']==_0x184a1b&&_0x514a2f['isIntersectingWithRange'](_0x31116b));if(this['_trackingSessionId']&&(_0x39cf8d['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x4b67e9=this['_findSuggestions'](_0x31116b,'insertion')['filter'](({meta:_0x2337fd})=>_0x2337fd['isOwn']&&!_0x2337fd['isInsideObject']&&!_0x2337fd['isNextTo'])['map'](({suggestion:_0x519a24})=>_0x519a24);_0xc9ec21['unshift'](..._0x4b67e9);}const _0x598a9c=new Map([[_0x31116b,_0x24394f]]);for(const _0x189f54 of _0xc9ec21){const _0x412cf8='attribute'==_0x189f54['type']?_0x189f54['data']['oldValue']:void 0x0,_0x319eb1=_0x189f54['getFirstRange'](),_0x93ab11=Array['from'](_0x598a9c['keys']())['find'](_0x117316=>_0x117316['isIntersecting'](_0x319eb1));if(!_0x93ab11)continue;const _0x2b0fd6=_0x93ab11['getDifference'](_0x319eb1);this['_suggestionsConversion']['isBlockAttribute'](_0x184a1b)&&'insertion'==_0x189f54['type']&&0x0!=_0x2b0fd6['length']||(_0x598a9c['delete'](_0x93ab11),_0x2b0fd6['forEach'](_0x55bf6e=>{_0x598a9c['set'](_0x55bf6e,_0x24394f);}),'insertion'!=_0x189f54['type']&&_0x412cf8!=_0x3d43be&&_0x598a9c['set'](_0x93ab11['getIntersection'](_0x319eb1),_0x412cf8));}const _0x368239=[];for(const [_0x2326b3,_0x4054ca]of _0x598a9c){const _0x13d596=_0x452c31(),_0x26abf6={'key':_0x184a1b,'oldValue':_0x4054ca,'newValue':_0x3d43be};_0x184a1b['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':_0x184a1b});const _0x17d5ea=('attribute:'+(_0x184a1b+'|'+Je({'newValue':_0x3d43be})))['substring'](0x0,0x3c),_0x13094b=this['_setSuggestionData']({'id':_0x13d596,'type':_0x17d5ea,'data':_0x26abf6,'createdAt':new Date(),'authorId':_0x4e23ab,'attributes':_0x39cf8d});_0x368239['push'](_0x13094b),this['_addSuggestionMarker'](_0x17d5ea,_0x13d596,_0x4e23ab,_0x2326b3);}return _0x368239;}['enableDefaultAttributesIntegration'](_0x3fc52d){this['enableCommand'](_0x3fc52d,(_0x412653,..._0x9b0b5)=>{this['recordAttributeChanges'](()=>{_0x412653(..._0x9b0b5);});});}['startTrackingSession'](_0x1efffa){return this['_trackingSessionId']=void 0x0!==_0x1efffa?_0x1efffa:_0x452c31(),this['_trackingSessionId'];}['_getAttributeKey'](_0x436baa){return'attribute'==_0x436baa['type']?un(_0x436baa['subType']):null;}['_applyOperationsAsSuggestions'](_0x16efcc){if(0x0==_0x16efcc['length'])return;const _0x53d2be=this['editor'],_0x488e5f=_0x53d2be['plugins']['get'](_0x4d48c8),_0x27d92c=[];_0x53d2be['model']['change'](_0x46b4c4=>{for(let _0x2466ec=0x0;_0x2466ec<_0x16efcc['length'];_0x2466ec++){const _0x5c0479=_0x16efcc[_0x2466ec];if(_0x5c0479['baseVersion']=_0x53d2be['model']['document']['version'],_0x5c0479['isDocumentOperation']=!0x0,_0x488e5f['isMarkedRemoveOperation'](_0x5c0479)){const _0x1d9ebb=_0x5567b3(_0x5c0479['newRange'],_0x53d2be['model']);_0x27d92c['unshift'](_0xf2eec6['fromRange'](_0x1d9ebb));}else switch(_0x5c0479['type']){case'rename':{const _0x4aadc8=_0x5c0479['oldName'],_0x356310=_0x5c0479['newName'];if(_0x4aadc8==_0x356310)break;_0x46b4c4['batch']['addOperation'](_0x5c0479),_0x53d2be['model']['applyOperation'](_0x5c0479);const _0x2c59c7='$elementName',_0x30fdab=_0x5c0479['position'],_0x569fe5=_0x53d2be['model']['createRange'](_0x30fdab,_0x53d2be['model']['createPositionAt'](_0x30fdab['nodeAfter'],'end'));this['markAttributeChange'](_0x569fe5,_0x2c59c7,_0x4aadc8,_0x356310,{'groupId':_0x452c31()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0xdd006d=_0x5c0479['oldValue'],_0x3579b1=_0x5c0479['newValue'];if(_0xdd006d==_0x3579b1)break;_0x46b4c4['batch']['addOperation'](_0x5c0479),_0x53d2be['model']['applyOperation'](_0x5c0479);const _0xcf55da=_0x5c0479['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0xcf55da))break;const _0x4ab96c=_0x5567b3(_0x5c0479['range'],_0x53d2be['model']);this['markAttributeChange'](_0x4ab96c,_0xcf55da,_0xdd006d,_0x3579b1,{'groupId':_0x452c31()});break;}case'insert':{_0x46b4c4['batch']['addOperation'](_0x5c0479),_0x53d2be['model']['applyOperation'](_0x5c0479);if(_0x16efcc[_0x2466ec+0x1]&&'move'==_0x16efcc[_0x2466ec+0x1]['type'])break;const _0x16bf53=_0x5c0479['position'],_0x4b0376=_0x5c0479['howMany'],_0x3469a4=_0x5567b3(_0x53d2be['model']['createRange'](_0x16bf53,_0x16bf53['getShiftedBy'](_0x4b0376)),_0x53d2be['model']);this['markInsertion'](_0x3469a4);break;}case'split':{_0x46b4c4['batch']['addOperation'](_0x5c0479),_0x53d2be['model']['applyOperation'](_0x5c0479);const _0x43b43d=_0x5c0479['splitPosition'],_0x41078e=_0x5c0479['moveTargetPosition'];this['markInsertion'](_0x53d2be['model']['createRange'](_0x43b43d,_0x41078e));break;}case'move':case'remove':_0x46b4c4['batch']['addOperation'](_0x5c0479),_0x53d2be['model']['applyOperation'](_0x5c0479);}}for(const _0x573de0 of _0x27d92c)_0x573de0['detach'](),this['markDeletion'](_0x573de0);});}['_setSuggestionRange'](_0x3686c4,_0x1d6431){const _0x9a70e0=_0x3686c4['getFirstMarker']();this['_model']['change'](_0x470b66=>{_0x470b66['updateMarker'](_0x9a70e0,{'range':_0x1d6431});});}['_addThreadToSuggestion'](_0x45af18){const _0x1a44f3=_0x45af18['id'],_0x57683b=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x1a44f3)||this['_commentsRepository']['addCommentThread']({'channelId':_0x57683b,'threadId':_0x1a44f3,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x5effe0=this['_commentsRepository']['getCommentThread'](_0x1a44f3);_0x5effe0['unbind']('isRemovable'),_0x5effe0['isRemovable']=!0x1,_0x45af18['commentThread']=_0x5effe0;}['_checkSuggestionCorrectness'](_0x4b6cbb,_0x4c6bcd,_0x58980f,_0x1737a5){if(_0x4b6cbb['type']!=_0x4c6bcd||_0x4b6cbb['subType']!=_0x58980f||_0x4b6cbb['creator']['id']!=_0x1737a5)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x27828f('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x5cd055,_0x58259e){const _0x4fe91b=_0x5cd055['getFirstRange']();if(_0x58259e['isEqual'](_0x4fe91b))_0x5cd055['removeMarkers']();else{if(_0x4fe91b['containsRange'](_0x58259e)){const _0x4e9543=this['_model']['createPositionAt'](_0x58259e['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5cd055,this['_model']['createRange'](_0x4fe91b['start'],_0x4e9543));const _0x5dc25d=_0x452c31(),_0xc71349=_0x5cd055['creator']['id'],_0x1b0d3f=_0x5cd055['type']+':'+_0x5cd055['subType'];this['_setSuggestionData']({'id':_0x5dc25d,'type':_0x1b0d3f,'createdAt':new Date(),'authorId':_0xc71349,'data':_0x5cd055['data'],'attributes':_0x5cd055['attributes']});const _0x15b374=this['_model']['createPositionAt'](_0x58259e['end']['parent'],'after'),_0x50b926=this['_model']['createRange'](_0x15b374,_0x4fe91b['end']);this['_addSuggestionMarker'](_0x1b0d3f,_0x5dc25d,_0xc71349,_0x50b926);}else{if(_0x4fe91b['containsPosition'](_0x58259e['start'])){const _0x3ed1ab=this['_model']['createPositionAt'](_0x58259e['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5cd055,this['_model']['createRange'](_0x4fe91b['start'],_0x3ed1ab));}else{const _0x3f003d=this['_model']['createPositionAt'](_0x58259e['end']['parent'],'after');this['_setSuggestionRange'](_0x5cd055,this['_model']['createRange'](_0x3f003d,_0x4fe91b['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x1214a7){for(const {suggestion:_0x5299c4,meta:_0x5d6634}of this['_findSuggestions'](_0x1214a7,'insertion')){if(!_0x5d6634['isOwn'])continue;const _0x13327b=_0x5299c4['getRanges']();for(const _0x273334 of _0x13327b)if(!_0x1214a7['getDifference'](_0x273334)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x57bbf8){return this['editor']['plugins']['get']('Users')['getUser'](_0x57bbf8);}['_getExternalAuthor'](_0x48fb48){const _0x1739aa=this['editor']['plugins']['get']('Users'),_0x3643c0=_0x4ba0b5('external:'+_0x48fb48),_0x37c47d=_0x1739aa['getUser'](_0x3643c0);return _0x37c47d||_0x1739aa['addUser']({'id':_0x3643c0,'name':_0x48fb48});}['_createSuggestion'](_0x4d9e14,_0x5c24ba,_0x3f1119,_0x152c10,_0x2ba5d4,_0x11d16a){const _0x1e87e4=this['_getAuthorFromId'](_0x152c10);if(!_0x1e87e4)throw new _0x27828f('track-changes-user-not-found',this,{'authorId':_0x152c10,'suggestionId':_0x3f1119});const _0x9033e0=this['_suggestionFactory']['buildSuggestion'](_0x4d9e14,_0x5c24ba,_0x3f1119,_0x1e87e4,_0x2ba5d4,_0x5d293c=>{this['_updateSuggestionData'](_0x3f1119,{'attributes':_0x5d293c});const _0x24995a=this['getSuggestion'](_0x3f1119);this['_joinWithAdjacentSuggestions'](new Set([_0x24995a])),this['_refreshSuggestionsChain'](new Set([_0x24995a]));},_0x11d16a);return this['listenTo'](_0x9033e0,'accept',()=>{this['_updateSuggestionData'](_0x3f1119,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x9033e0,'discard',()=>{this['_updateSuggestionData'](_0x3f1119,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x3f1119,_0x9033e0),this['_suggestionState']['set'](_0x9033e0,'notReady'),_0x9033e0;}['_breakSuggestionMarker'](_0x4ca2fd,_0x5772cb,_0x31743a){const _0x3535bf=_0x4ca2fd['getFirstRange'](),_0x46e42e=_0x3535bf['start'],_0x3cb08a=_0x3535bf['end'];this['_setSuggestionRange'](_0x4ca2fd,this['_model']['createRange'](_0x46e42e,_0x5772cb));const _0x11af77=_0x452c31(),_0x2a1edf=_0x4ca2fd['creator']['id'],_0x447520=_0x4ca2fd['type']+(_0x4ca2fd['subType']?':'+_0x4ca2fd['subType']:'');this['_setSuggestionData']({'id':_0x11af77,'type':_0x447520,'createdAt':new Date(),'authorId':_0x2a1edf,'originalSuggestionId':_0x4ca2fd['_originalSuggestionId']||_0x4ca2fd['id'],'attributes':_0x4ca2fd['attributes'],'data':_0x4ca2fd['data']});const _0x3c0e81=this['_getAttributeKey'](_0x4ca2fd);('formatBlock'==_0x4ca2fd['type']||_0x3c0e81&&this['_suggestionsConversion']['isBlockAttribute'](_0x3c0e81))&&(_0x31743a=this['_model']['createPositionBefore'](_0x31743a['parent'])),this['_addSuggestionMarker'](_0x447520,_0x11af77,_0x2a1edf,this['_model']['createRange'](_0x31743a,_0x3cb08a));}['_findSuggestions'](_0x3dce1,_0x3c6698=null){const _0x5b3037=[],_0x34985e=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x3dce1)||(_0x3dce1=[_0x3dce1]);for(const _0x3027a4 of this['getSuggestions']()){if(!_0x3027a4['isInContent'])continue;if(_0x3c6698&&_0x3027a4['type']!=_0x3c6698)continue;let _0x145d1b=!0x1;for(const _0x28950e of _0x3027a4['getRanges']()){for(const _0x215e7d of _0x3dce1){const _0x5cfef8=_0x215e7d['start']['isEqual'](_0x28950e['end'])||_0x215e7d['end']['isEqual'](_0x28950e['start']);if(_0x5cfef8||_0x215e7d['getIntersection'](_0x28950e)){const _0x3a6ff4=_0x215e7d['containsRange'](_0x28950e)&&qe(this['_model']['schema'],_0x28950e['start'],_0x215e7d),_0xc92fd7=_0x28950e['containsRange'](_0x215e7d)&&qe(this['_model']['schema'],_0x215e7d['start'],_0x28950e);_0x5b3037['push']({'suggestion':_0x3027a4,'meta':{'isOwn':_0x34985e==_0x3027a4['author'],'isNextTo':_0x5cfef8,'isInsideObject':_0x3a6ff4,'containsRangeInObject':_0xc92fd7}}),_0x145d1b=!0x0;break;}}if(_0x145d1b)break;}}return _0x5b3037;}['_addSuggestionMarker'](_0xee7bc3,_0x289518,_0x3a8dda,_0x1103a6,_0x41b9a8){this['_model']['change'](_0x441031=>{let _0x301fe2='suggestion:'+_0xee7bc3+':'+_0x289518+':'+_0x3a8dda;_0x41b9a8&&(_0x301fe2=_0x301fe2+':'+_0x41b9a8),_0x441031['addMarker'](_0x301fe2,{'range':_0x1103a6,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x2132f8){const _0x3d3b7c=_0x2132f8['previous'],_0x28b0fc=_0x2132f8['next'];_0x2132f8['previous']=null,_0x2132f8['next']=null,null!=_0x3d3b7c&&_0x3d3b7c['next']==_0x2132f8&&(_0x3d3b7c['next']=_0x28b0fc),null!=_0x28b0fc&&_0x28b0fc['previous']==_0x2132f8&&(_0x28b0fc['previous']=_0x3d3b7c),'ready'==this['_suggestionState']['get'](_0x2132f8)&&(this['_suggestionState']['set'](_0x2132f8,'removed'),this['fire']('suggestionUnloaded',_0x2132f8,_0x3d3b7c,_0x28b0fc));}['_setSuggestionData'](_0x7fdf19){const _0x462d97=_0x7fdf19['id'],_0x26db90=this['addSuggestionData'](_0x7fdf19);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x77df11=this['editor']['plugins']['get']('PendingActions'),_0xa7bd07=_0x26db90['hasComments'],_0x3557d3=_0x26db90['subType']?_0x26db90['type']+':'+_0x26db90['subType']:_0x26db90['type'],_0xbd6e71=this['editor']['locale'],_0x213fcd=_0x77df11['add'](At(_0xbd6e71,'PENDING_ACTION_SUGGESTION')),_0x3082e2={'id':_0x462d97,'type':_0x3557d3,'hasComments':_0xa7bd07,'data':_0x7fdf19['data']||null,'originalSuggestionId':_0x7fdf19['originalSuggestionId']||null,'attributes':_0x26db90['attributes']};this['_adapter']['addSuggestion'](_0x3082e2)['then'](_0x5c03e0=>{_0x26db90['_saved']=!0x0,_0x77df11['remove'](_0x213fcd),_0x5c03e0&&_0x5c03e0['createdAt']&&(this['_suggestions']['get'](_0x462d97)['createdAt']=_0x5c03e0['createdAt']);})['catch'](_0x38611a=>{throw _0x32599a('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x26db90['discard']();}),_0x26db90['stopListening'](),this['_suggestions']['delete'](_0x26db90['id']),this['_suggestionState']['delete'](_0x26db90),_0x38611a;});}return _0x26db90;}['_updateSuggestionData'](_0x4d8d34,_0x2cd450){const _0x2d3b86=this['editor']['plugins']['get']('PendingActions'),_0x4b6077=this['getSuggestion'](_0x4d8d34);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x4b6077['_saved']){const _0x32729d=_0x2d3b86['add'](At(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x4d8d34,_0x2cd450)['then'](()=>{_0x2d3b86['remove'](_0x32729d);});}else _0x4b6077['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x4d8d34,_0x2cd450);});}}['_getSuggestionData'](_0x9235f8){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x27828f('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x9235f8);}['_handleNewSuggestionMarker'](_0x5e37df){const {id:_0x37a45a,type:_0x1bff3d,subType:_0x1fca25,authorId:_0x495b07}=_0x4f6d6c(_0x5e37df),_0x233318=this['_suggestions']['get'](_0x37a45a)||this['_createSuggestion'](_0x1bff3d,_0x1fca25,_0x37a45a,_0x495b07,{});switch(this['_checkSuggestionCorrectness'](_0x233318,_0x1bff3d,_0x1fca25,_0x495b07),this['_suggestionState']['get'](_0x233318)){case'notReady':this['_getSuggestionData'](_0x37a45a)['then'](_0x4ecd87=>{let _0x11223a=Promise['resolve']();_0x4ecd87['hasComments']&&(_0x11223a=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x37a45a})),_0x11223a['then'](()=>{this['addSuggestionData'](_0x4ecd87)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x233318,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x37a45a,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x233318,'ready'),this['fire']('suggestionLoaded',_0x233318);break;case'ready':this['fire']('suggestionChanged',_0x233318);}return _0x233318['addMarkerName'](_0x5e37df),_0x233318;}['_refreshSuggestionsChain'](_0x55269f){const _0x282c6e=Array['from'](_0x55269f),_0x69dac3=_0x282c6e['filter'](_0x18317b=>'attribute'==_0x18317b['type']);this['_refreshAttributeSuggestionsChain'](_0x69dac3);const _0x2dc353=_0x282c6e['filter'](_0x43a337=>!_0x43a337['isMultiRange']&&'attribute'!=_0x43a337['type']),_0x185885=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3546f6=>!_0x3546f6['isMultiRange']&&'attribute'!=_0x3546f6['type']),_0x21e987=_0x185885['filter'](_0x407446=>!_0x55269f['has'](_0x407446)),_0x161214=new Map(_0x185885['map'](_0x38b460=>[_0x38b460,this['_suggestionFactory']['getSuggestionCallback'](_0x38b460['type'],_0x38b460['subType'],'chain')])),_0x4ea871=new Map(_0x185885['map'](_0x2686a3=>[_0x2686a3,_0x2686a3['getFirstRange']()])),_0xda9af6=new Set(),_0x4a994b=new Set();for(let _0x5983d9=0x0;_0x5983d9<_0x2dc353['length'];_0x5983d9++)_0x3978b1(_0x2dc353[_0x5983d9],_0x2dc353,_0x5983d9+0x1);for(let _0x1728bf=0x0;_0x1728bf<_0x2dc353['length'];_0x1728bf++)_0x3978b1(_0x2dc353[_0x1728bf],_0x21e987,0x0);const _0x24431e=new Set();for(let _0x246ff3=0x0;_0x246ff3<_0x2dc353['length'];_0x246ff3++){const _0x166ecd=_0x2dc353[_0x246ff3];!_0x4a994b['has'](_0x166ecd)&&_0x166ecd['previous']&&(_0x24431e['add'](_0x166ecd['previous']),_0x166ecd['previous']['next']===_0x166ecd&&(_0x166ecd['previous']['next']=null),_0x166ecd['previous']=null),!_0xda9af6['has'](_0x166ecd)&&_0x166ecd['next']&&(_0x24431e['add'](_0x166ecd['next']),_0x166ecd['next']['previous']===_0x166ecd&&(_0x166ecd['next']['previous']=null),_0x166ecd['next']=null);}function _0x3978b1(_0x3feb16,_0xeeccc4,_0x4bf8b0){for(let _0x70cf5d=_0x4bf8b0;_0x70cf5d<_0xeeccc4['length'];_0x70cf5d++){const _0x1b8145=_0x36114d(_0x3feb16,_0xeeccc4[_0x70cf5d]);_0x1b8145&&(_0x1b8145[0x0]['next']=_0x1b8145[0x1],_0x1b8145[0x1]['previous']=_0x1b8145[0x0],_0xda9af6['add'](_0x1b8145[0x0]),_0x4a994b['add'](_0x1b8145[0x1]));}}function _0x36114d(_0x3820d3,_0x3fd67f){if(_0x3820d3['author']['id']!==_0x3fd67f['author']['id'])return null;const _0x281a20=_0x161214['get'](_0x3820d3)(_0x3820d3,_0x3fd67f,_0x4ea871['get'](_0x3820d3),_0x4ea871['get'](_0x3fd67f));if(!_0x281a20)return null;return _0x161214['get'](_0x3fd67f)(_0x3820d3,_0x3fd67f,_0x4ea871['get'](_0x3820d3),_0x4ea871['get'](_0x3fd67f))?_0x281a20[0x1]['commentThread']&&_0x281a20[0x1]['commentThread']['length']?null:_0x281a20:null;}_0x24431e['size']&&this['_refreshSuggestionsChain'](_0x24431e);}['_refreshAttributeSuggestionsChain'](_0x4920ea){if(0x0==_0x4920ea['length'])return;const _0x553716=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x405918=>'attribute'==_0x405918['type']&&_0x405918['_isDataLoaded']),_0x581169=[],_0x245680=new Map();for(const _0x409d14 of _0x553716){const _0x5de7c9=_0x4ba0b5(_0x409d14['attributes']);_0x245680['has'](_0x5de7c9)||(_0x245680['set'](_0x5de7c9,_0x581169['length']),_0x581169['push']([]));const _0x1eb616=_0x245680['get'](_0x5de7c9);_0x581169[_0x1eb616]['push'](_0x409d14);}!(function(){_0x581169['sort']((_0x382e68,_0xaa2a9f)=>{const _0x5ed172=_0x382e68[0x0]['createdAt'],_0x18cf09=_0xaa2a9f[0x0]['createdAt'];return _0x5ed172==_0x18cf09?_0x382e68[0x0]['attributes']['groupId']<_0xaa2a9f[0x0]['attributes']['groupId']?-0x1:0x1:_0x5ed172<_0x18cf09?-0x1:0x1;});for(const _0x2399d3 of _0x581169)_0x2399d3['sort']((_0x53e79a,_0x7ac168)=>_0x53e79a['id']<_0x7ac168['id']?-0x1:0x1);}());for(let _0xc7c392=0x0;_0xc7c392<_0x581169['length'];_0xc7c392++){if(0x0==_0x581169[_0xc7c392]['length'])continue;const _0x14c2d2=[];for(let _0x52408c=_0xc7c392+0x1;_0x52408c<_0x581169['length'];_0x52408c++)0x0!=_0x581169[_0x52408c]['length']&&_0xce7cc9(_0x581169[_0xc7c392],_0x581169[_0x52408c])&&_0x14c2d2['push'](_0x52408c);for(const _0x2c4acb of _0x14c2d2)_0x581169[_0xc7c392]=_0x581169[_0xc7c392]['concat'](_0x581169[_0x2c4acb]),_0x581169[_0x2c4acb]=[];}for(const _0x5322df of _0x581169)for(let _0x1c1c00=0x0;_0x1c1c00<_0x5322df['length'];_0x1c1c00++){const _0xb5df7b=_0x5322df[_0x1c1c00+0x1]||null;_0x5322df[_0x1c1c00]['next']!==_0xb5df7b&&(_0x5322df[_0x1c1c00]['next']=_0xb5df7b);}for(const _0x4badfd of _0x581169)for(let _0x54fa68=0x0;_0x54fa68<_0x4badfd['length'];_0x54fa68++){const _0x3e38c0=_0x4badfd[_0x54fa68-0x1]||null;_0x4badfd[_0x54fa68]['previous']!==_0x3e38c0&&(_0x4badfd[_0x54fa68]['previous']=_0x3e38c0);}function _0xce7cc9(_0x348199,_0x45fecf){if(_0x348199[0x0]['attributes']['groupId']!==_0x45fecf[0x0]['attributes']['groupId']&&_0x348199[0x0]['author']!==_0x45fecf[0x0]['author'])return!0x1;if(!function(_0x2c79e8,_0x13cf12){if(!_0x2c79e8['hasComments']&&!_0x13cf12['hasComments'])return!0x0;if(_0x2c79e8['hasComments']&&_0x13cf12['hasComments'])return!0x1;if(_0x2c79e8['hasComments']&&_0x13cf12['createdAt']<_0x2c79e8['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x13cf12['hasComments']&&_0x2c79e8['createdAt']<_0x13cf12['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x348199[0x0],_0x45fecf[0x0]))return!0x1;const _0x5aa201=ot(_0x348199[0x0]['attributes'],['groupId','trackingSessionId']),_0x3d9570=ot(_0x45fecf[0x0]['attributes'],['groupId','trackingSessionId']);if(!st(_0x5aa201,_0x3d9570))return!0x1;if(_0x348199[0x0]['attributes']['groupId']==_0x45fecf[0x0]['attributes']['groupId'])return!0x0;if(_0x348199[0x0]['attributes']['trackingSessionId']!==_0x45fecf[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x348199['every'](_0x4d5f26=>_0x45fecf['some'](_0x69281d=>_0x4d5f26['getFirstRange']()['isEqual'](_0x69281d['getFirstRange']())))&&_0x45fecf['every'](_0x43ee88=>_0x348199['some'](_0x537716=>_0x43ee88['getFirstRange']()['isEqual'](_0x537716['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x3a5647){const _0x186c21=Array['from'](_0x3a5647),_0x4c2325=this['getSuggestions']({'skipNotAttached':!0x0}),_0x407fe9=_0x4c2325['filter'](_0xcbf9c7=>!_0x3a5647['has'](_0xcbf9c7)),_0x172f89=new Map(_0x186c21['map'](_0x2c662d=>[_0x2c662d,this['_suggestionFactory']['getSuggestionCallback'](_0x2c662d['type'],_0x2c662d['subType'],'join')])),_0x4cce69=new Map(_0x4c2325['map'](_0x49fe5a=>[_0x49fe5a,_0x49fe5a['getRanges']()]));for(let _0x43474d=0x0;_0x43474d<_0x186c21['length'];_0x43474d++){if(_0x18a90b(this,_0x186c21[_0x43474d],_0x186c21,_0x43474d+0x1))return!0x0;}for(let _0x1e8831=0x0;_0x1e8831<_0x186c21['length'];_0x1e8831++){if(_0x18a90b(this,_0x186c21[_0x1e8831],_0x407fe9,0x0))return!0x0;}return!0x1;function _0x18a90b(_0x5b78a4,_0x2016ad,_0x1a6f51,_0x83b6c0){for(let _0x32b5b9=_0x83b6c0;_0x32b5b9<_0x1a6f51['length'];_0x32b5b9++){const _0x45d3f8=_0x1a6f51[_0x32b5b9];if(_0x45d3f8['type']!==_0x2016ad['type']||_0x45d3f8['author']['id']!==_0x2016ad['author']['id']||_0x45d3f8['subType']!==_0x2016ad['subType'])continue;if(!an(_0x2016ad,_0x45d3f8))continue;if('attribute'==_0x2016ad['type']&&_0x2016ad['data']['oldValue']!=_0x45d3f8['data']['oldValue'])continue;if('attribute'==_0x2016ad['type']&&_0x5b78a4['_suggestionsConversion']['isBlockAttribute'](_0x2016ad['data']['key']))continue;if('formatBlock'==_0x2016ad['type']){const _0x219731=_0x5b78a4['editor']['model'],_0x422c80=_0x2016ad['getContainedElement']();if(_0x422c80&&(_0x219731['schema']['isObject'](_0x422c80)||_0x219731['schema']['isLimit'](_0x422c80)))continue;}const _0x4c9ee9=_0x172f89['get'](_0x2016ad),_0x3d1cf7=_0x4cce69['get'](_0x2016ad),_0x4daec4=_0x4cce69['get'](_0x45d3f8),_0x5ea452=_0x2016ad['commentThread']&&_0x2016ad['commentThread']['length'],_0x30a76d=_0x45d3f8['commentThread']&&_0x45d3f8['commentThread']['length'];if(!_0x5ea452&&_0x4c9ee9(_0x4daec4,_0x3d1cf7))return _0x5b78a4['_joinSuggestions'](_0x45d3f8,_0x2016ad),_0x4cce69['delete'](_0x2016ad),!0x0;if(!_0x30a76d&&_0x4c9ee9(_0x3d1cf7,_0x4daec4))return _0x5b78a4['_joinSuggestions'](_0x2016ad,_0x45d3f8),_0x4cce69['delete'](_0x45d3f8),!0x0;}return!0x1;}}['_joinSuggestions'](_0x34713f,_0x1782a9){if(_0x34713f['isMultiRange']){for(const _0x569f04 of _0x1782a9['getRanges']())_0x34713f['addRange'](_0x569f04);}else{const _0x443567=_0x1782a9['getFirstRange']()['end'];this['_setSuggestionRange'](_0x34713f,this['_model']['createRange'](_0x34713f['getFirstRange']()['start'],_0x443567));}_0x1782a9['removeMarkers']();}['_getMarkerAnnouncementText'](_0x3cbbca,_0x11750f,_0x8a6729){const _0x51e646=_0x3cbbca['startsWith']('format')||_0x3cbbca['startsWith']('attribute')?'FORMATTING':_0x3cbbca['toUpperCase']();return At(this['editor']['locale'],_0x11750f+'_'+_0x51e646+'_SUGGESTION_ANNOUNCEMENT',_0x8a6729);}['_initAriaMarkerChangeAnnouncements'](){const _0x25fb5e=this['editor'];if(!_0x25fb5e['ui'])return;const {ariaLiveAnnouncer:_0x4e1cc0}=_0x25fb5e['ui'];_0x3d9988(this['_model'],({left:_0x55fea3,entered:_0x5dcb19})=>{for(const _0x14e9b9 of _0x55fea3){const {group:_0x2d18dc,type:_0x2b5318}=_0x4f6d6c(_0x14e9b9['name']);if('suggestion'===_0x2d18dc){_0x4e1cc0['announce'](this['_getMarkerAnnouncementText'](_0x2b5318,'LEAVE'));break;}}for(const _0x159993 of _0x5dcb19){const {group:_0x4b800a,type:_0x3ecbdf}=_0x4f6d6c(_0x159993['name']);if('suggestion'===_0x4b800a){_0x4e1cc0['announce'](this['_getMarkerAnnouncementText'](_0x3ecbdf,'ENTER',_0x52af58(_0x32ea30)));break;}}});}['_processAttributeChanges'](_0x4c4d8b){if(this['_recordAttributeSuggestions'])return!0x1;const _0x3bf71b=this['editor'],_0x268085=_0x3bf71b['model']['document']['differ']['getChanges']();if(0x0==_0x268085['length'])return!0x1;const _0x5c81a9=[],_0x1682bf=_0x268085['filter'](_0x57f629=>'attribute'==_0x57f629['type']),_0x4961f9=_0x268085['filter'](_0x3f176e=>'insert'==_0x3f176e['type']&&'$text'!=_0x3f176e['name']),_0x512704=_0x268085['filter'](_0x1e30e1=>'remove'==_0x1e30e1['type']&&'$text'!=_0x1e30e1['name']);for(const _0x6f565b of _0x1682bf)_0x5c81a9['push']({'key':_0x6f565b['attributeKey'],'newValue':_0x6f565b['attributeNewValue'],'oldValue':_0x6f565b['attributeOldValue'],'range':sn(_0x6f565b['range'],_0x3bf71b['model'])});for(const _0x189a3b of _0x4961f9){const _0x4f1b52=_0x512704['find'](_0x3a15ef=>_0x3a15ef['position']['isEqual'](_0x189a3b['position']));_0x4f1b52&&_0x5c81a9['push']({'key':Ke,'newValue':_0x189a3b['name'],'oldValue':_0x4f1b52['name'],'range':_0x3bf71b['model']['createRangeOn'](_0x189a3b['position']['nodeAfter'])});}return 0x0!=_0x5c81a9['length']&&this['_reduceExistingSuggestions'](_0x4c4d8b,_0x5c81a9);}['_processAttributeSuggestions'](_0x80d2f9){let _0x3ad180=!0x1;const _0x49b433=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x39b52f=>_0x39b52f['data']['newRange']&&_0x39b52f['name']['startsWith']('suggestion:attribute:'));for(const _0x538fdf of _0x49b433){const {subType:_0x1455a8,id:_0x3c2781}=_0x4f6d6c(_0x538fdf['name']),_0x1cd1e1=_0x1455a8['split']('|')[0x0];for(const _0xb4bb03 of this['getSuggestions']({'skipNotAttached':!0x0}))_0xb4bb03['id']!=_0x3c2781&&'attribute'==_0xb4bb03['type']&&_0xb4bb03['data']&&_0xb4bb03['data']['key']==_0x1cd1e1&&_0xb4bb03['getFirstRange']()['isIntersecting'](_0x538fdf['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0xb4bb03,_0x538fdf['data']['newRange'],_0x80d2f9),_0x3ad180=!0x0);}return _0x3ad180;}['recordAttributeChanges'](_0x3e938a){this['_recordAttributeSuggestions']=!0x0,_0x3e938a();}['_reduceExistingSuggestions'](_0x425291,_0x553b85){if(0x0==_0x553b85['length'])return!0x1;let _0x382afd=!0x1;for(const _0x3dd76d of _0x553b85){const _0x412256=this['_findSuggestions'](_0x3dd76d['range'],'attribute')['filter'](_0x53ee93=>!_0x53ee93['meta']['isNextTo'])['map'](_0xe6c683=>_0xe6c683['suggestion']),_0x5bdff1=_0x4ba0b5({'newValue':_0x3dd76d['newValue']});_0x412256['filter'](_0x215e26=>{const [_0x259a50,_0x481671]=_0x215e26['subType']['split']('|');return _0x259a50==_0x3dd76d['key']&&_0x481671!=_0x5bdff1;})['forEach'](_0x2202fa=>{this['_reduceSuggestionAttributeRange'](_0x2202fa,_0x3dd76d['range'],_0x425291),_0x382afd=!0x0;});}return _0x382afd;}['_reduceSuggestionAttributeRange'](_0x3d8206,_0xe1279f,_0x2720da){const _0x5279f1=_0x3d8206['getFirstRange']()['getDifference'](_0xe1279f);0x0!==_0x5279f1['length']?0x1!==_0x5279f1['length']?this['_breakSuggestionMarker'](_0x3d8206,_0xe1279f['start'],_0xe1279f['end']):this['_setSuggestionRange'](_0x3d8206,_0x5279f1[0x0]):_0x2720da['removeMarker'](_0x3d8206['getFirstMarker']());}}class Ye{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x1c8ecb){this['_editor']=_0x1c8ecb,this['_model']=_0x1c8ecb['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x2a583f,_0x4bd9a2,_0x8a883e,_0x1a535b,_0x1123e3,_0x5abd3a,_0x2cfb53){return new bt(this['_model'],{'type':_0x2a583f,'subType':_0x4bd9a2,'id':_0x8a883e,'originalSuggestionId':_0x2cfb53,'author':_0x1a535b,'creator':_0x1a535b,'attributes':_0x1123e3,'onAttributesChange':_0x5abd3a,'onAccept':(..._0x53d754)=>this['getSuggestionCallback'](_0x2a583f,_0x4bd9a2,'accept')(..._0x53d754),'onDiscard':(..._0x10fbb4)=>this['getSuggestionCallback'](_0x2a583f,_0x4bd9a2,'discard')(..._0x10fbb4)});}['registerCustomCallback'](_0x14c7dd,_0x4a1f03,_0x544674,_0xbdbe4c){const _0x17d615=_0x14c7dd+':'+_0x4a1f03+':'+_0x544674;this['_customCallbacks']['set'](_0x17d615,_0xbdbe4c);}['getSuggestionCallback'](_0x4e07f2,_0x268457,_0x500303){const _0x380b2d=_0x4e07f2+':'+_0x268457+':'+_0x500303;return this['_customCallbacks']['get'](_0x380b2d)||this['_defaultCallbacks']['get'](_0x4e07f2+':'+_0x500303);}['_registerDefaultCallbacks'](){const _0x165a94=()=>!0x1,_0x2f67e5=_0x267a05=>{_0x267a05['sort']((_0x2cad4,_0xd860a0)=>_0x2cad4['start']['isBefore'](_0xd860a0['start'])?0x1:-0x1),this['_model']['change'](_0x352c59=>{for(const _0x38b5da of _0x267a05){let _0x25ec09;_0x25ec09=_0x38b5da['end']['isAtEnd']&&_0x38b5da['end']['parent']==_0x38b5da['start']['nodeAfter']?_0x352c59['createSelection'](_0x38b5da['start']['nodeAfter'],'on'):_0x352c59['createSelection'](_0x38b5da),this['_model']['deleteContent'](_0x25ec09,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x50927d=(_0x56205c,_0x5f51a8)=>{_0x5f51a8&&this['_model']['change'](_0x22519c=>{const {commandName:_0x3e76c6,commandParams:_0x442fc6=[]}=_0x5f51a8,_0x4fa180=_0x56205c['map'](_0x8424e0=>(Qe(_0x8424e0)&&(_0x8424e0=this['_model']['createRange'](_0x8424e0['end'])),_0x8424e0))['filter'](_0x55139f=>'$graveyard'!==_0x55139f['root']['rootName']);if(_0x4fa180['length']<0x1)return;const _0x44467b=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x53b5a3=>_0xf2eec6['fromRange'](_0x53b5a3));_0x22519c['setSelection'](_0x4fa180);for(const _0x498518 of this['_editor']['commands']['commands']())_0x498518['refresh']();_0x442fc6['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x3e76c6,..._0x442fc6);const _0x2f4473=_0x44467b['filter'](_0x24cecf=>'$graveyard'!=_0x24cecf['root']['rootName']);_0x2f4473['length']>0x0&&_0x22519c['setSelection'](_0x2f4473);for(const _0x39a8c1 of _0x44467b)_0x39a8c1['detach']();});},_0x26ae5a=(_0x51cc11,_0x1a3285)=>0x1==_0x51cc11['length']&&0x1==_0x1a3285['length']&&_0x51cc11[0x0]['end']['isEqual'](_0x1a3285[0x0]['start']),_0x1a71a1=(_0x31f248,_0x3231c0,_0xa89f,_0x26afb4)=>on(_0x31f248,_0x3231c0,_0xa89f,_0x26afb4)?[_0x31f248,_0x3231c0]:on(_0x3231c0,_0x31f248,_0x26afb4,_0xa89f)?[_0x3231c0,_0x31f248]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x165a94),this['_defaultCallbacks']['set']('insertion:discard',_0x2f67e5),this['_defaultCallbacks']['set']('insertion:join',_0x26ae5a),this['_defaultCallbacks']['set']('insertion:chain',_0x1a71a1),this['_defaultCallbacks']['set']('deletion:accept',_0x2f67e5),this['_defaultCallbacks']['set']('deletion:discard',_0x165a94),this['_defaultCallbacks']['set']('deletion:join',_0x26ae5a),this['_defaultCallbacks']['set']('deletion:chain',_0x1a71a1),this['_defaultCallbacks']['set']('formatInline:accept',_0x50927d),this['_defaultCallbacks']['set']('formatInline:discard',_0x165a94),this['_defaultCallbacks']['set']('formatInline:join',_0x26ae5a),this['_defaultCallbacks']['set']('formatInline:chain',_0x165a94),this['_defaultCallbacks']['set']('formatBlock:accept',_0x50927d),this['_defaultCallbacks']['set']('formatBlock:discard',_0x165a94),this['_defaultCallbacks']['set']('formatBlock:join',_0x26ae5a),this['_defaultCallbacks']['set']('formatBlock:chain',_0x165a94),this['_defaultCallbacks']['set']('attribute:accept',_0x165a94),this['_defaultCallbacks']['set']('attribute:discard',(_0x531f70,_0x524ea9)=>{if(!_0x524ea9)return;const _0x4a77ef=this['_editor']['plugins']['get'](_0x4ac64f);this['_model']['change'](_0x16407d=>{if(_0x524ea9['key']==Ke)for(const _0x37ab04 of _0x531f70){const _0x105422=_0x37ab04['start']['nodeAfter'],_0x4ba70e=_0x524ea9['oldValue'];_0x16407d['rename'](_0x105422,_0x4ba70e);}else{if(_0x4a77ef['isBlockAttribute'](_0x524ea9['key'])){for(const _0x14cbf9 of _0x531f70)void 0x0!==_0x524ea9['oldValue']?_0x16407d['setAttribute'](_0x524ea9['key'],_0x524ea9['oldValue'],_0x14cbf9['start']['nodeAfter']):_0x16407d['removeAttribute'](_0x524ea9['key'],_0x14cbf9['start']['nodeAfter']);}else{for(const _0x3030be of _0x531f70)_0x524ea9['oldValue']?_0x16407d['setAttribute'](_0x524ea9['key'],_0x524ea9['oldValue'],_0x3030be):_0x16407d['removeAttribute'](_0x524ea9['key'],_0x3030be);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x26ae5a);}}function qe(_0x1ef74e,_0x19a623,_0x261e4f){for(const _0x35baa8 of _0x19a623['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x35baa8['root']==_0x35baa8)return!0x1;if(!_0x261e4f['containsItem'](_0x35baa8))return!0x1;if(_0x1ef74e['isObject'](_0x35baa8)||_0x1ef74e['isLimit'](_0x35baa8))return!0x0;}return!0x1;}function Qe(_0x312d28){return _0x312d28['end']['parent']==_0x312d28['start']['nodeAfter']&&_0x312d28['end']['isAtStart'];}function Ze(_0x3bef7f,_0xbace46,_0x10bb64,_0x1bc50a){const _0x5312cb=_0x1484b9=>!_0x1484b9['item']['is']('$textProxy')&&!_0x1bc50a['isObject'](_0x1484b9['item']),_0x21dc2f=_0x3bef7f['start']['getLastMatchingPosition'](_0x5312cb),_0x204a78=_0x3bef7f['end']['getLastMatchingPosition'](_0x5312cb,{'direction':'backward'});return(!_0x3bef7f['start']['isEqual'](_0x21dc2f)||!_0x3bef7f['end']['isEqual'](_0x204a78))&&(_0x21dc2f['isBefore'](_0x204a78)?_0x10bb64['updateMarker'](_0xbace46,{'range':_0x10bb64['createRange'](_0x21dc2f,_0x204a78)}):_0x10bb64['removeMarker'](_0xbace46),!0x0);}function Je(_0x1d1980){return _0x4ba0b5(_0x1d1980);}function tn(_0x121912){const _0x4ab6a6=_0x121912['start']['nodeAfter'];return _0x4ab6a6&&_0x4ab6a6['is']('element');}function en(_0x2aa05e){return Qe(_0x2aa05e)||function(_0x3bb876){return _0x3bb876['start']['parent']==_0x3bb876['end']['nodeBefore']&&_0x3bb876['start']['isAtEnd'];}(_0x2aa05e);}function nn(_0x435125,_0x47360e){try{const _0x31a99c=_0x435125['getRange']();for(const _0x1edeae of _0x47360e)if(_0x435125!==_0x1edeae&&_0x31a99c&&_0x31a99c['isIntersecting'](_0x1edeae['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function sn(_0x6d83d4,_0x36add0){return null==_0x6d83d4['end']['nodeBefore']&&_0x6d83d4['end']['parent']==_0x6d83d4['start']['nodeAfter']?rn(_0x6d83d4['start']['nodeAfter'],_0x36add0):_0x6d83d4;}function rn(_0x4f014d,_0x2751ca){const _0x434596=_0x2751ca['schema']['isObject'](_0x4f014d)||_0x2751ca['schema']['isSelectable'](_0x4f014d);return _0x2751ca['createRange'](_0x2751ca['createPositionAt'](_0x4f014d,'before'),_0x434596?_0x2751ca['createPositionAfter'](_0x4f014d):_0x2751ca['createPositionAt'](_0x4f014d,'end'));}function on(_0x568273,_0x38aede,_0x2c10c8,_0x28ff6e){return!!an(_0x568273,_0x38aede)&&_0x2c10c8['end']['isEqual'](_0x28ff6e['start']);}function an(_0x388d68,_0xa165ed){if(!_0x388d68['_isDataLoaded']||!_0xa165ed['_isDataLoaded'])return!0x1;const _0x3e5a66=new Set(Object['keys'](_0x388d68['attributes'])),_0x3dac35=new Set(Object['keys'](_0xa165ed['attributes']));if(_0x3e5a66['delete']('groupId'),_0x3dac35['delete']('groupId'),0x0==_0x3e5a66['size']&&0x0==_0x3dac35['size'])return!0x0;if(_0x3e5a66['size']!=_0x3dac35['size'])return!0x1;const _0x44cc04={..._0x388d68['attributes']},_0x3a278e={..._0xa165ed['attributes']};return delete _0x44cc04['groupId'],delete _0x3a278e['groupId'],JSON['stringify'](_0x44cc04)==JSON['stringify'](_0x3a278e);}function cn(_0x4b0ba1,_0x5a11bd){const _0x13bba0=ln(_0x4b0ba1['attributes']),_0x2c75bd=ln(_0x5a11bd);if(!_0x4b0ba1['_isDataLoaded'])return!0x1;for(const _0x1e54e7 of Object['keys'](_0x2c75bd))if(!st(_0x13bba0[_0x1e54e7],_0x2c75bd[_0x1e54e7]))return!0x1;return!0x0;}function ln(_0x223dc1){const _0x12427b=Object['assign']({},_0x223dc1);return delete _0x12427b['skipNestingCheck'],delete _0x12427b['tablePasteChainId'],_0x12427b;}function un(_0x576553){return _0x576553['split']('|')[0x0];}class hn extends/* #__PURE__ -- @preserve */
|
|
26
|
-
_0x52f4e5(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x4fdc83,_0x1d2f2c,_0x4321e6,_0x4dc309){super(),this['model']=_0x1d2f2c,this['view']=_0x4321e6,this['commentThreadController']=_0x4dc309,this['_editor']=_0x4fdc83,this['_acceptCommand']=_0x4fdc83['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x4fdc83['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x39c09e,_0xc56c55)=>_0x39c09e||_0xc56c55),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x5651a0=>_0x5651a0&&this['_editor']['model']['canEditAt'](_0x1d2f2c['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x244660=>_0x244660&&this['_editor']['model']['canEditAt'](_0x1d2f2c['getRanges']())),this['_pendingAction']=null,_0x4321e6['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x4321e6,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x4321e6,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x4321e6,'change:isDirty',()=>{_0x4321e6['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 _0x4fd5af=At(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x4fd5af);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class dn extends _0x42abae{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x778616,_0x3cccef,_0x509358,_0x1b738b){super(_0x778616),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x39155b(_0x778616,At(_0x778616,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x3cccef['authoredAt']),this['bind']('authoredAt')['to'](_0x3cccef),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',_0x3cccef,'authoredAt',this,'descriptionParts',(_0x18d5aa,_0x1a2dd7,_0x2ff7fb)=>{const _0x1bb5d4=_0x2ff7fb['map'](_0xb7a03=>gt(_0xb7a03['content']))['join']('.\x20')+'.';return At(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x18d5aa-0x1,_0x3cccef['author']['name'],_0x1a2dd7?_0x1b738b['formatDateTime'](_0x1a2dd7):'',new DOMParser()['parseFromString'](_0x1bb5d4,'text/html')['body']['textContent']]);}),this['focusables']=new _0x61aa1c(),this['focusTracker']=new _0x1cd8a1(),this['keystrokes']=new _0x3bb3d4(),this['focusCycler']=new _0x4b880c({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0xa6d183=>_0xa6d183['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x3cccef,this['_localUser']=_0x509358,this['_config']=_0x1b738b,_0x1b738b['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x37ac83(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x30ee91}=this['_config'];this['commentsListView']=new _0x30ee91(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',_0x2b65c0=>_0x2b65c0+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x1bb7b6,_0x19b83a)=>_0x1bb7b6||!!_0x19b83a);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x51ba82}=this['_config'],_0x25167a=new _0x51ba82(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x2ea4dd=_0x25167a['commentInputView'];return _0x25167a['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x2ea4dd,'value',(_0x3e3be2,_0x480cdd,_0x125078)=>!!_0x125078||_0x3e3be2&&!_0x480cdd),_0x2ea4dd['on']('submit',(_0xea8941,_0x145a9a)=>{this['fire']('addComment',_0x145a9a),_0x2ea4dd['editor']['setData']('');}),_0x2ea4dd['on']('cancel',()=>this['focus']()),_0x2ea4dd['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x25167a;}}class fn extends dn{['suggestionView'];['_descriptionElement'];constructor(_0x37ad2b,_0x3e4733,_0x2c5ed2,_0x3a3a8a){super(_0x37ad2b,_0x3e4733,_0x2c5ed2,_0x3a3a8a),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x17d6b4=>_0x17d6b4&&_0x17d6b4[0x0]?_0x17d6b4[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x5b3154,_0x5123c0)=>{let _0x46bd72='';for(const _0x1dd23a of _0x5b3154)_0x46bd72+='<p>'+gt(_0x1dd23a['content'],_0x1dd23a['color'])+'</p>';return _0x5123c0?_0x46bd72:_0x39f018(_0x46bd72,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x3a3a8a['SuggestionView'](_0x37ad2b,_0x3e4733,{'formatDateTime':_0x3a3a8a['formatDateTime']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x40e3d1=this['bindTemplate'],_0x16312d=[this['suggestionView']];return this['commentsListView']&&_0x16312d['push'](this['commentsListView']),this['commentThreadInputView']&&_0x16312d['push'](this['commentThreadInputView']),_0x16312d['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x40e3d1['if']('isActive','ck-suggestion-wrapper--active'),_0x40e3d1['to']('type',_0x38d809=>'ck-suggestion-'+_0x38d809),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':_0x40e3d1['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x16312d};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class gn extends _0x42abae{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x23a9b5,_0x21aea2,_0x6d1246){super(_0x23a9b5),this['_model']=_0x21aea2,this['_config']=_0x6d1246,this['set']('description',''),this['bind']('authoredAt')['to'](_0x21aea2),this['acceptButton']=this['_createButton'](At(_0x23a9b5,'Accept\x20suggestion'),_0x2405d8,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](At(_0x23a9b5,'Discard\x20suggestion'),_0x3f4210,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x5edcb5(_0x23a9b5,_0x21aea2['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x61aa1c([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x1cd8a1(),this['keystrokes']=new _0x3bb3d4(),this['focusCycler']=new _0x4b880c({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x318586=>_0x318586['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x3cad45=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x3cad45['innerHTML']=this['description'],this['on']('change:description',(_0x34a21f,_0x3f2ee2,_0x1f4005)=>{_0x3cad45['innerHTML']=_0x1f4005;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x1c33bb=this['bindTemplate'],_0xc4f71b=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x1c33bb['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x1c33bb['to']('authoredAt',_0x1bbb20=>this['_config']['formatDateTime'](_0x1bbb20))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];return this['_model']['isExternal']&&_0xc4f71b['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0xc4f71b}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?At(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):At(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?At(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):At(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0xda7efd,_0x5ddb6c,_0xf771ff,_0x2c3aa1,_0x13aa10){const _0x21c79e=new _0x38b9cf(this['locale']);return _0x21c79e['set']({'label':_0xda7efd,'icon':_0x5ddb6c,'tooltip':!0x0,'tooltipPosition':_0x13aa10}),_0x21c79e['extendTemplate']({'attributes':{'class':_0xf771ff}}),_0x21c79e['on']('execute',()=>{this['fire'](_0x2c3aa1,this['_model']['id']);}),_0x21c79e;}['_setupKeyboardNavigation'](){const _0x2bbe6b=this['element'];this['keystrokes']['listenTo'](_0x2bbe6b);for(const _0x364029 of this['focusables'])this['focusTracker']['add'](_0x364029['element']),this['keystrokes']['listenTo'](_0x364029['element']);this['keystrokes']['set']('enter',(_0x29212e,_0x5be440)=>{_0x2bbe6b===_0x29212e['target']&&(this['focusCycler']['focusFirst'](),_0x5be440());}),this['keystrokes']['set']('esc',(_0x32fb23,_0x2b7b80)=>{_0x2bbe6b!==_0x32fb23['target']&&(this['focus'](),_0x2b7b80());});}}class mn extends _0x36cdc7{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[Xe,_0x286f71,_0x29b6a2,_0x37aacb,_0x4d548b];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3d0a72){super(_0x3d0a72),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x205abe=this['editor']['config'];_0x205abe['define']('trackChanges.SuggestionThreadView',fn),_0x205abe['define']('trackChanges.SuggestionView',gn),_0x205abe['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x205abe['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x358d08,_0x5e74bf){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x25b409,_0x4a743e]of this['_handleControllerBuffer']){const _0x4a1ce1=this['_suggestionToController']['has'](_0x25b409);_0x4a1ce1||_0x4a743e?_0x4a1ce1&&_0x4a743e&&this['_destroyController'](_0x25b409):this['_initializeController'](_0x25b409);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0x4d548b)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x358d08,_0x5e74bf);}['init'](){const _0x3bd006=this['editor'],_0x5569c0=_0x3bd006['plugins']['get'](Xe),_0x28fab3=_0x3bd006['plugins']['get'](_0x37aacb),_0x37c743=_0x3bd006['plugins']['get'](_0x4d548b),_0x229616=_0x3bd006['plugins']['get'](_0x29b6a2);this['_addUIComponentsToFactory'](),_0x37c743['addSourceCollector'](()=>{const _0xf49bd5=[];for(const [_0x201cb3,_0x2a8478]of Array['from'](this['_suggestionToController'])){const _0x323a78=_0x201cb3['getAllAdjacentSuggestions'](),_0x2c4ae7=[];for(const _0x407581 of _0x323a78){if(!_0x407581['isInContent'])continue;if(_0x407581['isMultiRange']){_0x2c4ae7['push'](..._0x407581['getRanges']());continue;}const _0x4a0493=_0x407581['getFirstRange']();if(_0x2c4ae7['length']>0x0){const _0x25f2b3=_0x2c4ae7[0x0]['getJoined'](_0x4a0493);if(_0x25f2b3){_0x2c4ae7[0x0]=_0x25f2b3;continue;}}_0x2c4ae7['push'](_0x4a0493);}_0xf49bd5['push']([_0x2a8478['view'],_0x2c4ae7]);}return _0xf49bd5;}),this['listenTo'](_0x5569c0,'suggestionLoaded',(_0x270588,_0x272381)=>{this['listenTo'](_0x272381,'change:previous',(_0x416eaf,_0x1ac9cc,_0x1a5db3,_0x3b5c11)=>{_0x272381['isInContent']&&(null==_0x1a5db3?(this['_updateController'](_0x3b5c11['head']),this['_handleSuggestionControllerDelayed'](_0x272381,!0x1)):(this['_updateController'](_0x1a5db3['head']),null==_0x3b5c11&&this['_handleSuggestionControllerDelayed'](_0x272381,!0x0)));}),null!==_0x272381['previous']?this['_updateController'](_0x272381['head']):this['_handleSuggestionControllerDelayed'](_0x272381,!0x1);}),this['listenTo'](_0x5569c0,'suggestionUnloaded',(_0xb8d037,_0x518397,_0x5ddbc8)=>{this['stopListening'](_0x518397,'change:previous'),this['_handleControllerBuffer']['delete'](_0x518397),this['_suggestionToController']['has'](_0x518397)&&this['_destroyController'](_0x518397),_0x5ddbc8&&this['_updateController'](_0x5ddbc8['head']);}),this['listenTo'](_0x5569c0,'suggestionChanged',(_0x2dd795,_0x407a79)=>{this['_updateController'](_0x407a79);}),this['listenTo'](_0x28fab3,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x229616,'addComment',(_0x4d150b,{threadId:_0x41f509,isFromAdapter:_0x39a3a7})=>{if(_0x39a3a7||!_0x5569c0['hasSuggestion'](_0x41f509))return;const _0x33f310=_0x5569c0['getSuggestion'](_0x41f509);this['_suggestionToController']['get'](_0x33f310)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x26a245=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x186e89;for(const _0x5a75ef in _0x26a245){const _0x35307e=_0x5a75ef,_0x4ac128=_0x26a245[_0x35307e];if('trackChangesLicenseKeyValid'==_0x4ac128||'trackChangesLicenseKeyInvalid'==_0x4ac128||'trackChangesLicenseKeyExpired'==_0x4ac128||'trackChangesLicenseKeyDomainLimit'==_0x4ac128||'trackChangesLicenseKeyNotAllowed'==_0x4ac128||'trackChangesLicenseKeyEvaluationLimit'==_0x4ac128||'trackChangesLicenseKeyUsageLimit'==_0x4ac128){delete _0x26a245[_0x35307e],_0x186e89=_0x4ac128,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x186e89&&_0x26a245['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x186e89&&_0x26a245['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x186e89&&_0x26a245['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x186e89&&_0x26a245['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x186e89&&_0x26a245['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x186e89&&_0x26a245['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x21feb3){const _0x1f3938=this['_suggestionToController']['get'](_0x21feb3);if(!_0x1f3938)return null;return this['editor']['plugins']['get'](_0x37aacb)['getByInnerView'](_0x1f3938['view'])||null;}['getSuggestionForAnnotation'](_0xd9b6f){const _0x27b55e=this['_viewToController']['get'](_0xd9b6f['innerView']);return _0x27b55e?_0x27b55e['model']:null;}['_refreshActiveMarkers'](){const _0x480bb3=this['editor']['plugins']['get'](_0x37aacb),_0x135274=this['editor']['plugins']['get'](Xe),_0x565797=Array['from'](_0x480bb3['activeAnnotations'],_0x4abd78=>_0x4abd78['innerView'])['filter'](_0x44a687=>this['_viewToController']['has'](_0x44a687)),_0x47c74f=[];for(const _0x5313ee of _0x565797){const _0x3c923c=this['_viewToController']['get'](_0x5313ee)['model']['getAllAdjacentSuggestions']();_0x47c74f['push'](..._0x3c923c['reduce']((_0x132d20,_0x47b171)=>[..._0x132d20,..._0x47b171['getMarkerNames']()],[]));}_0x135274['activeMarkers']=_0x47c74f;}['_addUIComponentsToFactory'](){const _0x42b9a0=this['editor'],_0x1f277d=_0x42b9a0['locale'],_0x2d0198=At(_0x1f277d,'Track\x20changes'),_0x197f1c=new _0x127c97([{'type':'switchbutton','model':new _0x267c84({'withText':!0x0,'isToggleable':!0x0,'label':_0x2d0198,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x267c84({'withText':!0x0,'label':At(_0x1f277d,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x267c84({'withText':!0x0,'label':At(_0x1f277d,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x267c84({'withText':!0x0,'label':At(_0x1f277d,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x267c84({'withText':!0x0,'label':At(_0x1f277d,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x42b9a0['plugins']['has']('TrackChangesPreview')&&_0x197f1c['addMany']([{'type':'separator'},{'type':'button','model':new _0x267c84({'withText':!0x0,'label':At(_0x1f277d,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x846aa5 of _0x197f1c)if(En(_0x846aa5)){const _0x21260d=_0x42b9a0['commands']['get'](_0x846aa5['model']['commandName']);_0x846aa5['model']['bind']('isOn','isEnabled')['to'](_0x21260d,'value','isEnabled');}_0x42b9a0['ui']['componentFactory']['add']('trackChanges',_0x5fdd75=>this['_createToolbarButton'](_0x5fdd75,_0x197f1c,_0x2d0198)),_0x42b9a0['ui']['componentFactory']['add']('menuBar:trackChanges',_0x555688=>this['_createMenuBarMenu'](_0x555688,_0x197f1c,_0x2d0198));}['_createToolbarButton'](_0x2c1892,_0x39df9c,_0x339994){const _0x341bd9=_0x124eb0(_0x2c1892,_0x506e40),_0x277472=this['editor']['commands']['get']('trackChanges');_0x341bd9['buttonView']['set']({'tooltip':_0x339994,'label':_0x339994,'icon':_0xb612ee}),_0x341bd9['buttonView']['bind']('isOn')['to'](_0x277472,'value'),_0x341bd9['buttonView']['on']('execute',()=>{_0x277472['execute'](),this['editor']['editing']['view']['focus']();}),_0x4f0d40(_0x341bd9,_0x39df9c,{'role':'menu'});const _0x3fb535=[];for(const _0x2dce98 of _0x39df9c)En(_0x2dce98)&&_0x3fb535['push'](this['editor']['commands']['get'](_0x2dce98['model']['commandName']));const _0x397433=_0x341bd9['buttonView'];return _0x397433['actionView']['unbind']('isEnabled'),_0x397433['arrowView']['unbind']('isEnabled'),_0x397433['actionView']['bind']('isEnabled')['to'](_0x277472,'isEnabled'),_0x397433['arrowView']['bind']('isEnabled')['toMany'](_0x3fb535,'isEnabled',(..._0x22bd42)=>_0x22bd42['some'](_0x3aac89=>_0x3aac89)),_0x341bd9['on']('execute',_0x2ec201=>{this['editor']['execute'](_0x2ec201['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x341bd9;}['_createMenuBarMenu'](_0x288fef,_0x20c723,_0x4c346a){const _0x1b90cb=new _0x5db244(_0x288fef),_0x1e3a70=this['editor']['commands']['get']('trackChanges');_0x1b90cb['buttonView']['set']({'label':_0x4c346a,'icon':_0xb612ee});const _0x5b4ae6=new _0x39efcd(_0x288fef);for(const _0x2928b8 of _0x20c723){if('separator'==_0x2928b8['type']){_0x5b4ae6['items']['add'](new _0x1e6b00(_0x288fef));continue;}const _0x6519e6=new _0x51c91d(_0x288fef,_0x1b90cb),_0x56c725=new _0x1d66cb(_0x288fef),_0x39dd3e=_0x2928b8['model'];_0x56c725['bind'](...Object['keys'](_0x39dd3e))['to'](_0x39dd3e),_0x56c725['delegate']('execute')['to'](_0x1b90cb),_0x56c725['on']('execute',()=>{this['editor']['execute'](_0x39dd3e['commandName']),this['editor']['editing']['view']['focus']();}),_0x6519e6['children']['add'](_0x56c725),_0x5b4ae6['items']['add'](_0x6519e6);}return _0x1b90cb['bind']('isEnabled')['to'](_0x1e3a70,'isEnabled'),_0x1b90cb['panelView']['children']['add'](_0x5b4ae6),_0x1b90cb;}['_initializeController'](_0x4993e1){const _0x62a749=this['editor'],_0x375142=_0x62a749['config'],_0x4dfde7=_0x62a749['plugins']['get'](_0x37aacb),_0x416902=_0x62a749['plugins']['get'](_0x29b6a2),_0x15ada6=_0x62a749['plugins']['get'](_0x4d548b),_0x87c69d=_0x62a749['plugins']['get'](_0x286f71)['me'],_0x293071=_0x375142['get']('trackChanges')['SuggestionThreadView'],_0x241e2c=_0x375142['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x566ea8,CommentThreadInputView:_0x5464fc}=_0x62a749['plugins']['get']('CommentsUI');let _0x1385d7,_0x665b8d,_0x3844c4;this['_annotationViews']['has'](_0x4993e1['id'])?(_0x665b8d=this['_annotationViews']['get'](_0x4993e1['id']),_0x1385d7=_0x665b8d['mainView']):(_0x1385d7=new _0x293071(_0x62a749['locale'],_0x4993e1,_0x87c69d,{'disableComments':this['_disableComments'],'editorConfig':{..._0x375142['get']('comments.editorConfig'),'licenseKey':_0x375142['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x375142['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x375142['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x375142['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x2b795f(_0x375142['get']('locale'),_0x62a749['locale']),'CommentView':_0x375142['get']('comments')['CommentView'],'CommentsListView':_0x566ea8,'CommentThreadInputView':_0x5464fc,'SuggestionView':_0x241e2c}),_0x1385d7['suggestionView']['acceptButton']['on']('execute',()=>{_0x62a749['editing']['view']['focus']();}),_0x1385d7['suggestionView']['discardButton']['on']('execute',()=>{_0x62a749['editing']['view']['focus']();}),_0x665b8d=_0x4dfde7['createAnnotationView'](this['editor']['locale'],_0x1385d7),_0x665b8d['bind']('isDirty')['to'](_0x1385d7,'isDirty'),_0x665b8d['bind']('length')['to'](_0x1385d7),_0x665b8d['bind']('type')['to'](_0x1385d7,'type',_0x534f80=>'suggestion-'+_0x534f80),_0x1385d7['on']('escape',()=>{_0x3844c4['fire']('escape');}),this['_annotationViews']['set'](_0x4993e1['id'],_0x665b8d));const _0x217bb2=_0x416902['createCommentThreadController'](_0x4993e1['commentThread'],_0x1385d7),_0x2c13f4=new hn(_0x62a749,_0x4993e1,_0x1385d7,_0x217bb2),_0x32dcdc=_0x4993e1['getAllAdjacentSuggestions']()['filter'](_0x147a83=>_0x147a83['isInContent']);_0x1385d7['descriptionParts']=_0x62a749['plugins']['get'](Xe)['descriptionFactory']['getDescriptions'](_0x32dcdc),this['_suggestionToController']['set'](_0x4993e1,_0x2c13f4),this['_viewToController']['set'](_0x1385d7,_0x2c13f4);const _0xea0863=()=>{const _0x51f04a=[],_0x52a983=_0x4993e1['getAllAdjacentSuggestions']()['filter'](_0x3ec664=>_0x3ec664['isInContent']);for(const _0x10899c of _0x52a983)_0x51f04a['push'](..._0x10899c['getMarkers']());return _0x42bd04(_0x62a749['editing'],_0x51f04a);};_0x3844c4=_0x4dfde7['createAnnotation']({'view':_0x665b8d,'target':_0xea0863,'type':()=>'suggestion-'+_0x2c13f4['view']['type'],'isVisible':!!_0xea0863()}),_0x416902['_bindAnnotationToEditors'](_0x1385d7,_0x3844c4),_0x4dfde7['add'](_0x3844c4),_0x15ada6['registerAnnotation'](_0x3844c4);}['_destroyController'](_0x4faca4){const _0x1d92cf=this['editor']['plugins']['get'](_0x29b6a2),_0x5d207b=this['editor']['plugins']['get'](_0x37aacb),_0x3d01e5=this['_suggestionToController']['get'](_0x4faca4),_0x508398=_0x3d01e5['view'],_0x2597a4=_0x5d207b['getByInnerView'](_0x508398);_0x1d92cf['_unbindEditors'](_0x508398),_0x2597a4&&_0x5d207b['remove'](_0x2597a4),this['_suggestionToController']['delete'](_0x4faca4),this['_viewToController']['delete'](_0x508398),_0x3d01e5['destroy']();}['_updateController'](_0x2ecfe4){if(!_0x2ecfe4['isInContent']||!this['_suggestionToController']['has'](_0x2ecfe4))return;const _0x108342=this['editor']['plugins']['get'](Xe),_0x40a148=this['_suggestionToController']['get'](_0x2ecfe4),_0x2c9d58=_0x2ecfe4['getAllAdjacentSuggestions']();_0x40a148['view']['descriptionParts']=_0x108342['descriptionFactory']['getDescriptions'](_0x2c9d58);}['destroy'](){for(const _0x2b8974 of this['_suggestionToController']['keys']())this['_destroyController'](_0x2b8974);for(const _0x78666 of this['_annotationViews']['values']())_0x78666['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function En(_0x347080){return'model'in _0x347080;}class Tn extends _0x36cdc7{static get['requires'](){return[Xe,mn,_0x43d6a5];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x11d12b){this['editor']['plugins']['get'](Xe)['adapter']=_0x11d12b;}get['adapter'](){return this['editor']['plugins']['get'](Xe)['adapter'];}['addSuggestion'](_0x385fdf){return this['editor']['plugins']['get'](Xe)['addSuggestionData'](_0x385fdf);}['getSuggestions']({skipNotAttached:_0x52947d=!0x1,toJSON:_0x1d5aff=!0x1}={}){return this['editor']['plugins']['get'](Xe)['getSuggestions']({'skipNotAttached':_0x52947d,'toJSON':_0x1d5aff});}['getSuggestion'](_0x49f022){return this['editor']['plugins']['get'](Xe)['getSuggestion'](_0x49f022);}}const _n=['Pagination'];class pn extends _0x36cdc7{static get['requires'](){return[Xe];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x597088=this['editor'];if(_0x597088['config']['define']('trackChangesData.editorCreator',_0x6d02c9=>{const _0x203f82=_0x597088['model']['document']['getRootNames']()['reduce']((_0x133e36,_0x3b4b97)=>(_0x133e36[_0x3b4b97]='',_0x133e36),{});return _0x597088['constructor']['create'](_0x203f82,_0x6d02c9);}),'function'!=typeof _0x597088['config']['get']('trackChangesData')['editorCreator'])throw new _0x27828f('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x5c3ea8){return bn(this['editor'],!0x0,_0x5c3ea8);}['getDataWithDiscardedSuggestions'](_0x21f759){return bn(this['editor'],!0x1,_0x21f759);}}class Ln extends _0x36cdc7{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x124f98){function _0x66b218(_0x9b235b){return _0x9b235b['map'](_0x51d115=>String['fromCharCode'](_0x51d115))['join']('');}super(_0x124f98),this['result']='end',_0x124f98[_0x66b218([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x66b218([0x76,0x69,0x65,0x77])][_0x66b218([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x66b218([0x61,0x75,0x74,0x6f]),_0x124f98[_0x66b218([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x66b218([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x66b218([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x66b218([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x66b218([0x6f,0x6b])});}['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 In(_0x4eaf50){return void 0x0!==_0x4eaf50['getRootsAttributes'];}async function bn(_0x140a0b,_0x34004a,_0x1d6b09){const _0x4cd06b=_0x192ebe(_0x140a0b,_n);if(_0x4cd06b['plugins']['push'](Xe,Ln),In(_0x140a0b)){_0x4cd06b['roots']=Object['create'](null);for(const _0x4f1405 of _0x140a0b['model']['document']['getRootNames']())_0x4cd06b['roots'][_0x4f1405]={'modelAttributes':_0x140a0b['getRootAttributes'](_0x4f1405)};}const _0xfb4a6d=document['createDocumentFragment'](),_0x49ad8a=_0x140a0b['config']['get']('trackChangesData')['editorCreator'],_0x4565b4=await _0x49ad8a(_0x4cd06b,()=>function(_0x50eb86){const _0x1c3c3a=document['createElement']('div');return _0x50eb86['appendChild'](_0x1c3c3a),_0x1c3c3a;}(_0xfb4a6d));!function(_0x59f30c,_0x27bb11){const _0x2b667d=_0x59f30c['model']['document']['getRootNames']()['reduce']((_0x5d244d,_0x792894)=>(_0x5d244d[_0x792894]=_0x59f30c['data']['get']({'rootName':_0x792894}),_0x5d244d),{}),_0x1de560=_0x59f30c['plugins']['get']('Users')['users']['map'](_0x3707d8=>({'id':_0x3707d8['id'],'name':_0x3707d8['name']})),_0x4f9d00=_0x59f30c['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x29d592=_0x59f30c['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x523ccf=_0x27bb11['plugins']['get']('Users'),_0x9943bf=_0x27bb11['plugins']['get']('TrackChangesEditing'),_0x3e5165=_0x27bb11['plugins']['get']('CommentsRepository');for(const _0x1fac07 of _0x3e5165['getCommentThreads']())_0x1fac07['remove']();for(const _0x4e429c of _0x1de560)_0x523ccf['getUser'](_0x4e429c['id'])||_0x523ccf['addUser'](_0x4e429c);_0x523ccf['me']||_0x523ccf['useAnonymousUser']();for(const _0x48caec of _0x29d592)_0x3e5165['addCommentThread'](_0x48caec);for(const _0x7e8d3d of _0x4f9d00)_0x9943bf['addSuggestionData'](_0x7e8d3d);_0x27bb11['data']['set'](_0x2b667d);}(_0x140a0b,_0x4565b4),_0x4565b4['execute'](_0x34004a?'acceptAllSuggestions':'discardAllSuggestions');const _0x3695c1=In(_0x4565b4)?_0x4565b4['getFullData'](_0x1d6b09):_0x4565b4['data']['get'](_0x1d6b09);return await _0x4565b4['destroy'](),_0x3695c1;}class An extends _0x42abae{['options'];constructor(_0xdce1a9,_0x41a139){super(_0xdce1a9),this['options']=_0x41a139,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'](_0x259380,_0x24cd32){if(!this['element'])return;const _0x1881a8=[];for(const [_0x5c68bc,_0x18eaaf]of _0x259380){const _0x1a75ea=document['createElement']('div');_0x1a75ea['setAttribute']('data-ck-root-name',_0x5c68bc),_0x1a75ea['className']=_0x18eaaf['classes']+'\x20ck-track-changes-preview__root-container',_0x1a75ea['innerHTML']=_0x18eaaf['content'],_0x1881a8['push'](_0x1a75ea);}_0x24cd32(this['element'],_0x1881a8),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class kn extends _0x4e4626{constructor(_0x558342){super(_0x558342),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x2fb79=this['editor'],_0x2d1b5d=_0x2fb79['locale'],_0x954f74=_0x2fb79['plugins']['get']('Dialog');let _0xd1247c;const _0x36f9b6=function(_0x1c5174){const _0xb86eb0={};if('editables'in _0x1c5174['ui']['view']){for(const [_0x4904c9,_0x229a71]of Object['entries'](_0x1c5174['ui']['view']['editables']))_0xb86eb0[_0x4904c9]=_0x229a71['element'];}else _0xb86eb0[_0x1c5174['model']['document']['getRootNames']()[0x0]]=_0x1c5174['ui']['view']['editable']['element'];return _0xb86eb0;}(_0x2fb79),_0x43e3b2=function(_0x221070){let _0x518c70=0x0;for(const _0x24db61 of Object['values'](_0x221070))_0x518c70=Math['max'](_0x518c70,_0x24db61['getBoundingClientRect']()['width']);let _0xef06bb=0x0;for(const _0x21c86b of Object['values'](_0x221070))_0xef06bb+=_0x21c86b['getBoundingClientRect']()['height'];const _0x2f4405=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x14a208=Math['min'](_0xef06bb,_0x2f4405);return{'width':_0x518c70,'height':_0x14a208};}(_0x36f9b6);_0x954f74['show']({'id':'finalContentPreview','title':At(_0x2d1b5d,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new An(_0x2d1b5d,{'dialogRects':_0x43e3b2}),'onHide':()=>{_0xd1247c['detachFromDom']();},'onShow':()=>{_0x2fb79['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x3b58c7=>{const _0x368a10=this['_standarizeRootsData'](_0x3b58c7,_0x2fb79,_0x36f9b6);_0x954f74['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x368a10,_0x2fb79['config']['get']('trackChanges.preview.renderFunction'));}),_0xd1247c=new _0x27da16(_0x2d1b5d,[_0x954f74['view']]),_0xd1247c['attachToDom'](),_0xd1247c['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x2fb79['once']('destroy',()=>{_0xd1247c['detachFromDom']();});const _0x2ca2f5=_0x954f74['view']['headerView']['class'];_0x954f74['view']['headerView']['class']=_0x2ca2f5?_0x2ca2f5+'\x20ck-reset_all':'ck-reset_all',_0x954f74['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x954f74['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x1a20fd=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x51961a=_0x1a20fd['previewMode'],_0x91f45c={};if('$labels'===_0x51961a){for(const _0x1e8ed9 of _0x1a20fd['getMergeFieldsIds']())_0x91f45c[_0x1e8ed9]=_0x1a20fd['getLabel'](_0x1e8ed9)||_0x1e8ed9;}else{const _0xb15529='$defaultValues'===_0x51961a?_0x1a20fd['getDefaultValues']():_0x1a20fd['getDataSetValues'](_0x51961a,!0x0);for(const _0x30944b of Object['entries'](_0xb15529)){const [_0x20453a,_0x52c1dd]=_0x30944b;_0x91f45c[_0x20453a]=null!==_0x52c1dd?_0x52c1dd:_0x1a20fd['getLabel'](_0x20453a)||_0x20453a;}}return{'mergeFieldsData':_0x91f45c};}['_standarizeRootsData'](_0xde003,_0x3bca58,_0x565efe){let _0x5626e3;if('string'==typeof _0xde003){const _0x980a75=_0x3bca58['model']['document']['getRootNames']()[0x0];_0x5626e3={[_0x980a75]:_0xde003};}else _0x5626e3=_0xde003;const _0x11a13f=this['_fixMediaEmbeds'](_0x5626e3,_0x3bca58),_0x382ef6=function(_0x3aaf25,_0x3cbecc){for(const [_0x549bbb,_0x36b128]of _0x3aaf25)_0x36b128['classes']=_0x3cbecc[_0x549bbb]['classList']['value']['replace']('ck-focused','');return _0x3aaf25;}(this['_sortRoots'](_0x3bca58)['reduce']((_0x416135,_0x3ac5ee)=>(_0x416135['push']([_0x3ac5ee,{'content':_0x11a13f[_0x3ac5ee],'classes':''}]),_0x416135),[]),_0x565efe);return _0x382ef6;}['_fixMediaEmbeds'](_0x38e257,_0x563b20){if(!_0x563b20['plugins']['has']('MediaEmbedEditing'))return _0x38e257;const _0xadf9a7=_0x563b20['plugins']['get']('MediaEmbedEditing');for(const [_0x198b19,_0x453001]of Object['entries'](_0x38e257)){const _0x39621e=document['createElement']('div');_0x39621e['innerHTML']=_0x453001,(_0x39621e['querySelectorAll']('figure.media')['forEach'](_0x540c7b=>{const _0x419a6f=_0x540c7b['querySelector']('oembed');if(_0x419a6f){const _0x4e58b6=_0x419a6f['getAttribute']('url');if(_0x4e58b6){const _0x1a8094=_0xadf9a7['registry']['getMediaViewElement'](new et(_0x563b20['editing']['view']['document']),_0x4e58b6,{'elementName':'','renderForEditingView':!0x0}),_0x4eb979=document['createElement']('div');_0x4eb979['classList']['add']('ck-media__wrapper'),_0x1a8094['render'](_0x4eb979,_0x563b20['editing']['view']['domConverter']),_0x419a6f['replaceWith'](_0x4eb979);}}}),_0x38e257[_0x198b19]=_0x39621e['innerHTML']);}return _0x38e257;}['_sortRoots'](_0x567536){if(!function(_0x14e0f5){return void 0x0!==_0x14e0f5['getRootsAttributes'];}(_0x567536))return _0x567536['model']['document']['getRootNames']();const _0x18a5f6=[],_0x3c0dc5=new Map();for(const _0x2d8c91 of _0x567536['model']['document']['getRootNames']()){const _0x1b358a=_0x567536['editing']['view']['getDomRoot'](_0x2d8c91)['getClientRects']()['item'](0x0);_0x18a5f6['push'](_0x2d8c91),_0x3c0dc5['set'](_0x2d8c91,_0x1b358a);}return _0x18a5f6['sort']((_0x53b809,_0x434aac)=>{const _0x490f1c=_0x3c0dc5['get'](_0x53b809),_0x5439d4=_0x3c0dc5['get'](_0x434aac);return _0x490f1c['y']-_0x5439d4['y']||_0x490f1c['x']-_0x5439d4['x'];}),_0x18a5f6;}}class Cn extends _0x36cdc7{static get['requires'](){return[pn,_0x48dc90];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5f3665){super(_0x5f3665),_0x5f3665['commands']['add']('previewFinalContent',new kn(this['editor'])),_0x5f3665['config']['define']('trackChanges.preview.renderFunction',(_0x4b9b9a,_0x1dd29f)=>{for(const _0x2cb4a0 of _0x1dd29f)_0x4b9b9a['appendChild'](_0x2cb4a0);});}}export{dt as AcceptSuggestionCommand,dn as BaseSuggestionThreadView,ft as DiscardSuggestionCommand,Lt as ExecuteOnAllSuggestionsCommand,It as ExecuteOnSelectedSuggestionsCommand,kn as PreviewFinalContentCommand,bt as Suggestion,kt as SuggestionDescriptionFactory,fn as SuggestionThreadView,gn as SuggestionView,Tn as TrackChanges,ht as TrackChangesCommand,pn as TrackChangesData,Ln as TrackChangesDataGetter,Xe as TrackChangesEditing,Cn as TrackChangesPreview,mn as TrackChangesUI};
|
|
23
|
+
import{Command as _0x46bc38,Plugin as _0x195c91,PendingActions as _0x2f023d}from'@ckeditor/ckeditor5-core/dist/index.js';import{CommentsRepository as _0x14f00b,Annotations as _0x3956af,EditorAnnotations as _0xef7442,Comments as _0x26f74a}from'@ckeditor/ckeditor5-comments/dist/index.js';import{CKEditorError as _0x128a03,ObservableMixin as _0x50e653,uid as _0xc55715,priorities as _0x46db92,insertToPriorityArray as _0x14a77,logWarning as _0x1f1d24,getEnvKeystrokeText as _0x3c06ff,FocusTracker as _0x3e2783,KeystrokeHandler as _0x4d8b1e,Collection as _0x1e58e5}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0xf127ba,IconCancel as _0x32f379,IconTrackChanges as _0x1f13ba}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0xd10e0c,View as _0x535f46,ViewCollection as _0x1615c4,FocusCycler as _0x3d0321,UIModel as _0x5f51cc,createDropdown as _0x38df62,SplitButtonView as _0x106bbf,addListToDropdown as _0x4fec1b,MenuBarMenuView as _0x14855f,MenuBarMenuListView as _0x313f07,ListSeparatorView as _0x5e8315,MenuBarMenuListItemView as _0x339c81,MenuBarMenuListItemButtonView as _0x58e9fa,BodyCollection as _0x2135b5,Dialog as _0x17526e}from'@ckeditor/ckeditor5-ui/dist/index.js';import{splitSuggestionMarkerName as _0x4ae9fb,SuggestionsConversion as _0x129e59,Users as _0x517118,DocumentCompare as _0x1f2da9,fixElementSuggestionRange as _0xb158df,hashObject as _0x43c1d5,surroundingMarkersDetector as _0x52029a,FOCUS_ANNOTATION_KEYSTROKE as _0x164e79,AriaDescriptionView as _0x1c782f,setupThreadKeyboardNavigation as _0x489a36,trimHtml as _0x100c1a,UserView as _0xe3a2e2,LateFocusButtonView as _0x4eb237,getDateTimeFormatter as _0x21da00,getAllMarkersDomElementsSorted as _0x49ec9c,sanitizeEditorConfig as _0x109f85}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{ModelElement as _0x5ea2ec,ModelLiveRange as _0x5e7de2,ModelLivePosition as tt,ViewDowncastWriter as et}from'@ckeditor/ckeditor5-engine/dist/index.js';import{cloneDeep as nt,set as it,isEqual as st,unset as rt,omit as ot}from'es-toolkit/compat';import{Delete as at,Input as ct}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as lt}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as ut}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class ht extends _0x46bc38{['_enabledCommands'];constructor(_0x19ddbf,_0x4800fb){super(_0x19ddbf),this['_enabledCommands']=_0x4800fb,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 _0x320fbb of this['editor']['commands']['commands']())_0x320fbb['affectsData']&&!this['_enabledCommands']['has'](_0x320fbb)&&_0x320fbb['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x19d649 of this['editor']['commands']['commands']())_0x19d649['affectsData']&&!this['_enabledCommands']['has'](_0x19d649)&&_0x19d649['clearForceDisabled']('TrackChangesCommand');}}class dt extends _0x46bc38{['_suggestions'];constructor(_0x157a6c,_0x119fb6){super(_0x157a6c),this['_suggestions']=_0x119fb6,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3b72a3){const _0x238366=this['_suggestions']['get'](_0x3b72a3);if(!_0x238366)throw new _0x128a03('track-changes-accept-suggestion-not-found',this);const _0x553f6d=_0x238366['getRanges']();this['editor']['model']['canEditAt'](_0x553f6d)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x238366);}}class ft extends _0x46bc38{['_suggestions'];constructor(_0x2541bc,_0x4175dc){super(_0x2541bc),this['_suggestions']=_0x4175dc,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5d7105){const _0x36f10e=this['_suggestions']['get'](_0x5d7105);if(!_0x36f10e)throw new _0x128a03('track-changes-discard-suggestion-not-found',this);const _0xe5fca6=_0x36f10e['getRanges']();this['editor']['model']['canEditAt'](_0xe5fca6)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x36f10e);}}function gt(_0xd2c004,_0x248bcc){let _0x85c5df='';return _0x85c5df+=_0xd2c004['split']('*')['map']((_0x41027f,_0x2e0378)=>_0x2e0378%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+mt(_0x41027f)+'</span>':mt(_0x41027f))['join'](''),_0x248bcc&&(_0x85c5df+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x248bcc['value']+'\x22\x20title=\x22'+_0x248bcc['title']+'\x22></span>'),_0x85c5df;}function mt(_0x39583f){const _0x188c89=document['createElement']('span');return _0x188c89['innerText']=_0x39583f,_0x188c89['innerHTML'];}function Et(_0x2060cd){return _0x2060cd['sort']((_0xb01f2b,_0x26a2cd)=>'attribute'===_0xb01f2b['type']&&'attribute'!==_0x26a2cd['type']?-0x1:'attribute'!==_0xb01f2b['type']&&'attribute'===_0x26a2cd['type']?0x1:'deletion'==_0xb01f2b['type']&&'deletion'!=_0x26a2cd['type']?-0x1:'deletion'!=_0xb01f2b['type']&&'deletion'==_0x26a2cd['type']?0x1:0x0);}function Tt(_0x2d8934,_0x5d0d04){let _0x17172d,_0x23be67=0x0;const _0x2be1ac=[],_0x904c25=_0x5d0d04['schema'];for(;_0x23be67<_0x2d8934['length'];){const _0x14b0bd=_0x2d8934[_0x23be67],_0x3304a6=_0x2d8934[_0x23be67+0x1];_0x17172d||(_0x17172d=_0x5d0d04['createPositionBefore'](_0x14b0bd)),_t(_0x5d0d04,_0x14b0bd,_0x3304a6)||(_0x2be1ac['push'](_0x5d0d04['createRange'](_0x17172d,_0x904c25['isObject'](_0x14b0bd)?_0x5d0d04['createPositionAfter'](_0x14b0bd):_0x5d0d04['createPositionAt'](_0x14b0bd,'end'))),_0x17172d=null),_0x23be67++;}return _0x2be1ac;}function _t(_0x5153ba,_0x178e8d,_0x19eace){if(!_0x19eace)return!0x1;const _0x31f4d8=_0x5153ba['createPositionAfter'](_0x178e8d),_0x3fc7a0=_0x5153ba['createPositionBefore'](_0x19eace);return _0x31f4d8['isTouching'](_0x3fc7a0);}function pt(_0x2297f9,_0x177569,_0x35beed){for(;_0x35beed['length'];){const _0xa1e24d=_0x35beed['splice'](0x0,0x64);_0x2297f9['change'](()=>{for(const _0x20e8d2 of _0xa1e24d)_0x20e8d2['isInContent']&&_0x177569['execute'](_0x20e8d2['id']);});}}class Lt extends _0x46bc38{['_command'];['_suggestions'];constructor(_0x1d4054,_0x3a6fd4,_0xb3bc29){super(_0x1d4054),this['_command']=_0x3a6fd4,this['_suggestions']=_0xb3bc29,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x24d9a9=Array['from'](this['_suggestions']['values']())['some'](_0x42a1c6=>_0x42a1c6['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x24d9a9;}['execute'](){const _0x582a67=Et(Array['from'](this['_suggestions']['values']()));for(const _0x200207 of _0x582a67){const _0x5d4581=_0x200207['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5d4581))return;}pt(this['editor']['model'],this['_command'],_0x582a67);}}class It extends _0x46bc38{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x11c57a,_0x52d375,_0x295cc8){super(_0x11c57a),this['_command']=_0x52d375,this['_suggestions']=_0x295cc8,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x37c4cb=this['editor']['model']['document']['selection'],_0x5e079a=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x1043b7,_0x36aba3){const _0x27734e=Array['from'](_0x1043b7['getRanges']()),_0x1882a5=new Set();for(const _0x3a9600 of _0x36aba3)if(_0x3a9600['isInContent']){for(const _0x1dce8d of _0x27734e)for(const _0x2c5878 of _0x3a9600['getRanges']())(_0x1dce8d['isIntersecting'](_0x2c5878)||_0x1043b7['isCollapsed']&&!_0x3a9600['isMultiRange']&&_0x3a9600['next']&&_0x2c5878['end']['isTouching'](_0x1dce8d['start']))&&_0x1882a5['add'](_0x3a9600);}return _0x1882a5;}(_0x37c4cb,_0x5e079a),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x13b1d3=Et(Array['from'](this['_selectedSuggestions']));for(const _0x40a62b of _0x13b1d3){const _0x523ec3=_0x40a62b['getRanges']();if(!this['editor']['model']['canEditAt'](_0x523ec3))return;}pt(this['editor']['model'],this['_command'],_0x13b1d3);}}class bt extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x50e653(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x2e4c44,_0x4bbb09){super(),this['id']=_0x4bbb09['id'],this['type']=_0x4bbb09['type'],this['subType']=_0x4bbb09['subType']||null,this['author']=_0x4bbb09['author'],this['creator']=_0x4bbb09['creator']||_0x4bbb09['author'],this['isExternal']=Boolean(_0x4bbb09['attributes']&&_0x4bbb09['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x4bbb09['originalSuggestionId']||null,this['_model']=_0x2e4c44,this['_onAccept']=_0x4bbb09['onAccept'],this['_onDiscard']=_0x4bbb09['onDiscard'],this['_onAttributesChange']=_0x4bbb09['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x4bbb09['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get['head'](){let _0x50f039=this;for(;_0x50f039['previous'];)_0x50f039=_0x50f039['previous'];return _0x50f039;}get['hasComments'](){return!!this['commentThread']&&this['commentThread']['length']>0x0;}get['isMultiRange'](){if(0x0==this['_markerNames']['size'])return!0x1;return 0x6==Array['from'](this['_markerNames'])[0x0]['split'](':')['length'];}get['isInContent'](){return null!==this['getFirstMarker']();}['addMarkerName'](_0x287229){this['_markerNames']['add'](_0x287229);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x2f7182=>this['_model']['markers']['get'](_0x2f7182))['filter'](_0x381670=>_0x381670);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x2de54a=>{for(const _0x227b72 of this['getMarkers']())_0x2de54a['removeMarker'](_0x227b72);}),this['_markerNames']['clear']();}['removeMarker'](_0xdb4024){this['_model']['change'](_0x33c972=>{_0x33c972['removeMarker'](_0xdb4024);}),this['_markerNames']['delete'](_0xdb4024);}['addRange'](_0x398321){const _0x977bc8='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+bt['getMultiRangeId']();this['addMarkerName'](_0x977bc8),this['_model']['change'](_0x2717a1=>{_0x2717a1['addMarker'](_0x977bc8,{'range':_0x398321,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x2c0970){for(const _0x1c5929 of this['getRanges']())if(_0x1c5929['isIntersecting'](_0x2c0970))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x59bbb2=>_0x59bbb2['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x15572b,_0x29cd7e)=>[..._0x15572b,..._0x29cd7e['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x3cb8f1=this['getRanges']();if(0x1!=_0x3cb8f1['length'])return null;const _0x5f0889=_0x3cb8f1[0x0],_0x27abb4=_0x5f0889['start']['nodeAfter'],_0x20dd71=_0x5f0889['end']['nodeBefore'];return _0x27abb4 instanceof _0x5ea2ec?_0x27abb4!=_0x20dd71?null:_0x27abb4: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 _0x4063e1=[];let _0x15600b=this['head'];for(;_0x15600b;)_0x4063e1['push'](_0x15600b),_0x15600b=_0x15600b['next'];return _0x4063e1;}['setAttribute'](_0x3416bd,_0x509ce2){const _0x384d40=nt(this['attributes']);it(_0x384d40,_0x3416bd,_0x509ce2),st(_0x384d40,this['attributes'])||(this['attributes']=_0x384d40,this['_onAttributesChange'](_0x384d40));}['removeAttribute'](_0x529bca){const _0x187b24=nt(this['attributes']);rt(_0x187b24,_0x529bca),st(_0x187b24,this['attributes'])||(this['attributes']=_0x187b24,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 _0xc55715()['substr'](0x1,0x5);}}function At(_0x3c798d,_0x378c8e,_0x2f2f2f){const _0x6b91d3=_0x3c798d['t'],t=_0x3c798d['t'];switch(_0x378c8e){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',_0x2f2f2f);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x2f2f2f);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x2f2f2f);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x2f2f2f);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x2f2f2f);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',_0x2f2f2f);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x2f2f2f);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',_0x2f2f2f);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x2f2f2f);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x2f2f2f);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x2f2f2f);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x2f2f2f);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x2f2f2f);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x2f2f2f);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x2f2f2f);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x2f2f2f);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x2f2f2f);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x2f2f2f);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x2f2f2f);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x2f2f2f);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x2f2f2f);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x2f2f2f);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x2f2f2f);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x2f2f2f);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x2f2f2f);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'},_0x2f2f2f);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x2f2f2f);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x2f2f2f);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x2f2f2f);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x2f2f2f);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x2f2f2f);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x2f2f2f);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x2f2f2f);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});case'ELEMENT_CAPTION':return t({'string':'caption','id':'ELEMENT_CAPTION'});case'ELEMENT_HORIZONTAL_LINE':return t({'string':'horizontal\x20line','plural':'%0\x20horizontal\x20lines','id':'ELEMENT_HORIZONTAL_LINE'},_0x2f2f2f);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x2f2f2f);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x2f2f2f);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x2f2f2f);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x2f2f2f);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'},_0x2f2f2f);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x2f2f2f);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'},_0x2f2f2f);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_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'},_0x2f2f2f);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x2f2f2f);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'},_0x2f2f2f);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x2f2f2f);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'},_0x2f2f2f);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x2f2f2f);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x2f2f2f);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x2f2f2f);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x2f2f2f);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x2f2f2f);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'},_0x2f2f2f);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x2f2f2f);case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'EXTERNAL_AVATAR':return _0x6b91d3({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x2f2f2f);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x6b91d3({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x2f2f2f);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x2f2f2f);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'},_0x2f2f2f);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'},_0x2f2f2f);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'},_0x2f2f2f);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x378c8e;}}class kt{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x22e68d,_0x39c3d3){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x22e68d,this['_locale']=_0x39c3d3;}['getDescriptions'](_0x2210ff){const _0x57ae14=[],_0x1322c5=new Set(),_0x3f9e48=new Set();for(let _0x381e00=0x0;_0x381e00<_0x2210ff['length'];_0x381e00++){const _0x3b7ca2=_0x2210ff[_0x381e00];if(!_0x3b7ca2['isInContent'])continue;const _0x19f967=this['_handleCustomCallbackDescription'](_0x3b7ca2);if(_0x19f967){if(null!=_0x3b7ca2['subType']){if(_0x1322c5['has'](_0x3b7ca2['subType']))continue;_0x1322c5['add'](_0x3b7ca2['subType']);}_0x57ae14['push'](_0x19f967);}else{if('attribute'==_0x3b7ca2['type']){const _0x30cf11=_0x3b7ca2['data']['key'];if(_0x3f9e48['has'](_0x30cf11))continue;_0x3f9e48['add'](_0x3b7ca2['data']['key']),_0x30cf11==Ke?this['_handleRenameSuggestionDescription'](_0x57ae14,_0x3b7ca2):this['_handleAttributeSuggestionDescription'](_0x57ae14,_0x3b7ca2);continue;}'insertion'!=_0x3b7ca2['type']&&'deletion'!=_0x3b7ca2['type']||this['_handleInsertRemoveSuggestionDescription'](_0x57ae14,_0x3b7ca2,_0x2210ff[_0x381e00+0x1]);}}return this['_resolveDescriptionItems'](_0x57ae14);}['registerDescriptionCallback'](_0x17a904){this['_customCallbacks']['push'](_0x17a904);}['registerElementLabel'](_0x26d689,_0x1623cb,_0xd99279=_0x46db92['normal']){'function'==typeof _0x26d689?_0x14a77(this['_itemLabelsCallbacks'],{'matchingCallback':_0x26d689,'label':_0x1623cb,'priority':_0xd99279}):this['_itemLabels']['set'](_0x26d689,_0x1623cb);}['registerAttributeLabel'](_0x28b6c0,_0x59c6ec){this['_attributeLabels']['set'](_0x28b6c0,_0x59c6ec);}['getItemLabel'](_0x34d8e8,_0x4e8d2b=0x1){let _0x3c0fc8;for(const _0x26d214 of this['_itemLabelsCallbacks'])if(_0x26d214['matchingCallback'](_0x34d8e8)){_0x3c0fc8=_0x26d214['label'];break;}return _0x3c0fc8||(_0x3c0fc8=this['_itemLabels']['get'](_0x34d8e8['name'])),_0x3c0fc8?_0x3c0fc8(_0x4e8d2b):0x1!==_0x4e8d2b?_0x4e8d2b+'\x20'+_0x34d8e8['name']+'s':''+_0x34d8e8['name'];}['_addDescriptionItems'](_0x486707,_0x489cbd){const _0x153bcd=_0x489cbd['getFirstRange']()['getWalker'](),_0x30cec5='insertion'==_0x489cbd['type']?'add':'remove';for(const _0x248908 of _0x153bcd){const _0x1c25c8=_0x248908['item'],_0x19d26c=_0x486707[_0x486707['length']-0x1];if(_0x1c25c8['is']('$textProxy'))_0x19d26c&&_0x19d26c['type']['indexOf']('Container')>-0x1&&_0x486707['pop'](),_0x19d26c&&'text'==_0x19d26c['type']?_0x19d26c[_0x30cec5]+=_0x1c25c8['data']:_0x486707['push']({'type':'text','add':'add'==_0x30cec5?_0x1c25c8['data']:'','remove':'remove'==_0x30cec5?_0x1c25c8['data']:''});else{if(this['_schema']['isObject'](_0x1c25c8)){const _0x597a2c=_0x1c25c8;if(_0x19d26c&&_0x19d26c['type']['indexOf']('Container')>-0x1&&_0x486707['pop'](),'elementEnd'==_0x248908['type'])continue;_0x19d26c&&_0x19d26c['type']==_0x30cec5+'Object'&&_0x19d26c['element']['name']==_0x597a2c['name']?_0x19d26c['quantity']++:_0x486707['push']({'type':_0x30cec5+'Object','element':_0x597a2c,'quantity':0x1}),_0x153bcd['skip'](_0x357d5d=>!('elementEnd'==_0x357d5d['type']&&_0x357d5d['item']==_0x1c25c8));}else{if(this['_schema']['checkChild'](_0x1c25c8,'$text')||_0x1c25c8['is']('element','softBreak')){const _0x2b86fa=_0x1c25c8;if('add'==_0x30cec5&&'elementStart'==_0x248908['type']||'remove'==_0x30cec5&&'elementEnd'==_0x248908['type'])continue;if(_0x19d26c&&-0x1==_0x19d26c['type']['indexOf']('Container')){'text'==_0x19d26c['type']&&(_0x19d26c[_0x30cec5]+='\x0a');continue;}let _0x31ddb;if(_0x31ddb='add'==_0x30cec5?_0x2b86fa['nextSibling']&&!this['_schema']['isObject'](_0x2b86fa['nextSibling'])?_0x2b86fa['nextSibling']:null:_0x2b86fa['previousSibling']&&!this['_schema']['isObject'](_0x2b86fa['previousSibling'])?_0x2b86fa['previousSibling']:null,_0x2b86fa['isEmpty']||_0x31ddb&&_0x31ddb['isEmpty']){const _0x3f6a1d=_0x31ddb&&_0x31ddb['isEmpty']?_0x31ddb:_0x2b86fa;_0x19d26c&&_0x19d26c['type']==_0x30cec5+'EmptyContainer'&&_0x19d26c['element']['name']==_0x3f6a1d['name']?_0x19d26c['quantity']++:_0x486707['push']({'type':_0x30cec5+'EmptyContainer','element':_0x3f6a1d,'quantity':0x1});}else _0x486707['push']({'type':_0x30cec5+'Container','element':_0x2b86fa});}}}}}['_resolveDescriptionItems'](_0x122fc5){const _0x2e1a3f=this['_locale'],_0x5603b8=[],_0x10ae35=[],_0x17342c=[];for(const _0x53e824 of _0x122fc5)switch(_0x53e824['type']){case'text':if(_0x53e824['add']=_0x53e824['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x53e824['remove']=_0x53e824['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x53e824['add']&&''!=_0x53e824['remove']){_0x5603b8['push']({'type':'replace','content':At(_0x2e1a3f,'REPLACE_TEXT',['\x22'+_0x53e824['remove']+'\x22','\x22'+_0x53e824['add']+'\x22'])});continue;}if(null!=_0x53e824['add']['match'](/^ +$/)){_0x5603b8['push']({'type':'insertion','content':At(_0x2e1a3f,'*Insert:*\x20%0',At(_0x2e1a3f,'ELEMENT_SPACE',_0x53e824['add']['length']))});continue;}if(null!=_0x53e824['remove']['match'](/^ +$/)){_0x5603b8['push']({'type':'deletion','content':At(_0x2e1a3f,'*Remove:*\x20%0',At(_0x2e1a3f,'ELEMENT_SPACE',_0x53e824['remove']['length']))});continue;}if(''!=_0x53e824['add']){_0x5603b8['push']({'type':'insertion','content':At(_0x2e1a3f,'*Insert:*\x20%0','\x22'+_0x53e824['add']+'\x22')});continue;}_0x5603b8['push']({'type':'deletion','content':At(_0x2e1a3f,'*Remove:*\x20%0','\x22'+_0x53e824['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x5603b8['push']({'type':'insertion','content':At(_0x2e1a3f,'*Insert:*\x20%0',this['getItemLabel'](_0x53e824['element'],_0x53e824['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x5603b8['push']({'type':'deletion','content':At(_0x2e1a3f,'*Remove:*\x20%0',this['getItemLabel'](_0x53e824['element'],_0x53e824['quantity']))});continue;case'addContainer':_0x5603b8['push']({'type':'insertion','content':At(_0x2e1a3f,'*Split:*\x20%0',this['getItemLabel'](_0x53e824['element'],_0x53e824['quantity']))});continue;case'removeContainer':_0x5603b8['push']({'type':'deletion','content':At(_0x2e1a3f,'*Merge:*\x20%0',this['getItemLabel'](_0x53e824['element'],_0x53e824['quantity']))});continue;case'addFormat':_0x10ae35['push'](_0x53e824['key']);continue;case'removeFormat':_0x17342c['push'](_0x53e824['key']);continue;default:_0x5603b8['push'](_0x53e824);}if(_0x10ae35['length']){const _0x3907d3=_0x10ae35['map'](_0x4c1a8e=>this['_attributeLabels']['has'](_0x4c1a8e)?this['_attributeLabels']['get'](_0x4c1a8e):_0x4c1a8e)['join'](',\x20');_0x5603b8['push']({'type':'format','content':At(this['_locale'],'*Set\x20format:*\x20%0',_0x3907d3)});}if(_0x17342c['length']){const _0x434363=_0x17342c['map'](_0x516a59=>this['_attributeLabels']['has'](_0x516a59)?this['_attributeLabels']['get'](_0x516a59):_0x516a59)['join'](',\x20');_0x5603b8['push']({'type':'format','content':At(this['_locale'],'*Remove\x20format:*\x20%0',_0x434363)});}return _0x5603b8;}['_handleCustomCallbackDescription'](_0x4d3048){for(const _0x30d702 of this['_customCallbacks']){const _0x16a668=_0x30d702(_0x4d3048);if(_0x16a668&&'type'in _0x16a668)return _0x16a668;}}['_handleAttributeSuggestionDescription'](_0x35acd4,_0x54fb9f){const _0x3ef965=_0x54fb9f['data'],_0x5147f1=void 0x0===_0x3ef965['newValue']?'removeFormat':'addFormat';_0x35acd4['push']({'type':_0x5147f1,'key':_0x3ef965['key']});}['_handleRenameSuggestionDescription'](_0x5e80d8,_0x3a09a){_0x5e80d8['push']({'type':'format','content':At(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x3a09a['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x267ed2,_0xdc271,_0x5c5192){if(this['_addDescriptionItems'](_0x267ed2,_0xdc271),_0x5c5192&&_0x5c5192['getFirstRange']()&&!_0xdc271['getFirstRange']()['end']['isEqual'](_0x5c5192['getFirstRange']()['start'])){const _0x1cc53e=_0x267ed2[_0x267ed2['length']-0x1],_0x160027='insertion'==_0xdc271['type']?'add':'remove';_0x1cc53e&&'text'==_0x1cc53e['type']&&(_0x1cc53e[_0x160027]+='\x0a');}}}class Ct extends _0x195c91{['afterInit'](){const _0x523938=this['editor'],_0x2c6f9e=_0x523938['plugins']['get']('TrackChangesEditing');_0x523938['commands']['get']('showAIAssistant')&&_0x2c6f9e['enableCommand']('showAIAssistant');}}class yt extends _0x195c91{['afterInit'](){const _0x4746d4=this['editor'],_0x312134=_0x4746d4['plugins']['get']('TrackChangesEditing');_0x4746d4['commands']['get']('toggleAi')&&_0x312134['enableCommand']('toggleAi');}}class Nt extends _0x195c91{['afterInit'](){const _0x54a5aa=this['editor'],_0x1aa352=_0x54a5aa['plugins']['get']('TrackChangesEditing');_0x54a5aa['commands']['get']('aiQuickAction')&&_0x1aa352['enableCommand']('aiQuickAction');}}class Rt extends _0x195c91{['afterInit'](){const _0x33db16=this['editor'],_0x2f53ca=_0x33db16['locale'];if(!_0x33db16['plugins']['has']('AlignmentEditing'))return;const _0x47af44=_0x33db16['plugins']['get']('TrackChangesEditing');_0x47af44['enableDefaultAttributesIntegration']('alignment'),_0x47af44['descriptionFactory']['registerAttributeLabel']('alignment',At(_0x2f53ca,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x392205=this['editor'],_0x405d=_0x392205['locale'];_0x392205['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2309e3=>{if('formatBlock'!=_0x2309e3['type'])return;const {data:_0x35db07}=_0x2309e3;if(_0x35db07&&'alignment'==_0x35db07['commandName']){const _0x649871=_0x35db07['commandParams'][0x0]['value'];return{'type':'format','content':At(_0x405d,'*Format:*\x20%0',function(_0x44217f){switch(_0x44217f){case'left':return At(_0x405d,'FORMAT_ALIGN_TO_LEFT');case'right':return At(_0x405d,'FORMAT_ALIGN_TO_RIGHT');case'center':return At(_0x405d,'FORMAT_ALIGN_TO_CENTER');case'justify':return At(_0x405d,'FORMAT_JUSTIFY_TEXT');}}(_0x649871))};}});}}const St=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class Mt extends _0x195c91{['afterInit'](){const _0x95cd08=this['editor'],_0x3b7d3c=_0x95cd08['plugins']['get']('TrackChangesEditing'),_0xf1bde6=_0x95cd08['locale'];for(const _0x1b8556 of St){if(!_0x95cd08['plugins']['has'](_0x1b8556))continue;const _0x25582c=_0x1b8556['slice'](0x0,-0x7)['toLowerCase'](),_0x4211b4='FORMAT_'+_0x25582c['toUpperCase']();_0x3b7d3c['enableDefaultAttributesIntegration'](_0x25582c),_0x3b7d3c['descriptionFactory']['registerAttributeLabel'](_0x25582c,At(_0xf1bde6,_0x4211b4));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x468046=this['editor'],_0x541beb=_0x468046['locale'],_0x46db73=_0x468046['plugins']['get']('TrackChangesEditing');function _0x532d2f(_0x1e126d,_0x192da6){_0x46db73['descriptionFactory']['registerDescriptionCallback'](_0x17b32a=>{if('formatInline'!=_0x17b32a['type'])return;const {data:_0xf4b903}=_0x17b32a;return _0xf4b903&&_0xf4b903['commandName']===_0x1e126d?_0xf4b903['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x541beb,'*Format:*\x20%0',_0x192da6)}:{'type':'format','content':At(_0x541beb,'*Remove\x20format:*\x20%0',_0x192da6)}:void 0x0;});}_0x532d2f('bold',At(_0x541beb,'FORMAT_BOLD')),_0x532d2f('italic',At(_0x541beb,'FORMAT_ITALIC')),_0x532d2f('underline',At(_0x541beb,'FORMAT_UNDERLINE')),_0x532d2f('code',At(_0x541beb,'FORMAT_CODE')),_0x532d2f('strikethrough',At(_0x541beb,'FORMAT_STRIKETHROUGH')),_0x532d2f('subscript',At(_0x541beb,'FORMAT_SUBSCRIPT')),_0x532d2f('superscript',At(_0x541beb,'FORMAT_SUPERSCRIPT'));}}class Ot extends _0x195c91{['afterInit'](){const _0x3e70a3=this['editor'],_0x4b49da=_0x3e70a3['locale'];if(!_0x3e70a3['plugins']['has']('BlockQuoteEditing'))return;const _0x4343c1=_0x3e70a3['plugins']['get']('TrackChangesEditing'),_0xf5f357=this['editor']['commands']['get']('blockQuote');_0x4343c1['enableCommand']('blockQuote',(_0x41e7ae,_0x28e288={})=>{const _0x48acc3=this['editor']['model']['document']['selection'],_0x423cb1=_0x28e288&&void 0x0!==_0x28e288['forceValue']?_0x28e288['forceValue']:!_0xf5f357['value'];let _0x3ea6f1=[];if(_0x423cb1){const _0xec5e57=Array['from'](_0x48acc3['getSelectedBlocks']())['filter'](_0x57cab4=>wt(_0x57cab4)||function(_0x1124a6,_0x113037){const _0x4869d4=_0x113037['checkChild'](_0x1124a6['parent'],'blockQuote'),_0x164e1a=_0x113037['checkChild'](['$root','blockQuote'],_0x1124a6);return _0x4869d4&&_0x164e1a;}(_0x57cab4,this['editor']['model']['schema']));_0x3ea6f1=Tt(_0xec5e57,_0x3e70a3['model']);}else{const _0x24412c=Array['from'](_0x48acc3['getSelectedBlocks']())['filter'](_0x579ade=>wt(_0x579ade));_0x3ea6f1=Tt(_0x24412c,_0x3e70a3['model']);}_0x3e70a3['model']['change'](()=>{for(const _0x487098 of _0x3ea6f1)_0x4343c1['markBlockFormat'](_0x487098,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x423cb1}]});});}),_0x4343c1['descriptionFactory']['registerDescriptionCallback'](_0xbf38c2=>{const {data:_0x4b2b50}=_0xbf38c2;if(_0x4b2b50&&'blockQuote'==_0x4b2b50['commandName']){const _0x4ab526=At(_0x4b49da,'ELEMENT_BLOCK_QUOTE');return _0x4b2b50['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x4b49da,'*Set\x20format:*\x20%0',_0x4ab526)}:{'type':'format','content':At(_0x4b49da,'*Remove\x20format:*\x20%0',_0x4ab526)};}});}}function wt(_0x1b2132){return'blockQuote'==_0x1b2132['parent']['name'];}class Bt extends _0x195c91{['afterInit'](){const _0x169b44=this['editor'],_0x2ff1e9=_0x169b44['locale'],_0x1bff9b=_0x169b44['plugins']['get']('TrackChangesEditing');_0x169b44['plugins']['has']('BookmarkEditing')&&(_0x1bff9b['enableCommand']('insertBookmark'),_0x1bff9b['enableDefaultAttributesIntegration']('updateBookmark'),_0x1bff9b['descriptionFactory']['registerDescriptionCallback'](_0x51e88a=>{if('insertion'!=_0x51e88a['type']&&'deletion'!=_0x51e88a['type']&&'attribute'!=_0x51e88a['type'])return;const _0x73ebb4=_0x51e88a['getContainedElement']();if(null==_0x73ebb4)return;if(!_0x73ebb4['is']('element','bookmark'))return;const _0x3f3019=_0x73ebb4['getAttribute']('bookmarkId');if('insertion'==_0x51e88a['type'])return{'type':'insertion','content':At(_0x2ff1e9,'*Insert:*\x20%0','\x22'+_0x3f3019+'\x22\x20'+At(_0x2ff1e9,'ELEMENT_BOOKMARK'))};if('deletion'==_0x51e88a['type'])return{'type':'deletion','content':At(_0x2ff1e9,'*Remove:*\x20%0','\x22'+_0x3f3019+'\x22\x20'+At(_0x2ff1e9,'ELEMENT_BOOKMARK'))};const {data:_0x173f22}=_0x51e88a;if(!_0x173f22||'bookmarkId'!=_0x173f22['key'])return;return{'type':'format','content':At(_0x2ff1e9,'*Set\x20bookmark:*\x20%0','\x22'+_0x173f22['newValue']+'\x22')};}));}}class Ft extends _0x195c91{['afterInit'](){const _0x155027=this['editor'];_0x155027['plugins']['has']('CaseChange')&&(_0x155027['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x155027['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x155027['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class Dt extends _0x195c91{['afterInit'](){const _0x51e636=this['editor'];_0x51e636['commands']['get']('ckbox')&&_0x51e636['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class vt extends _0x195c91{['afterInit'](){const _0xefd5c2=this['editor'];if(!_0xefd5c2['plugins']['has']('CodeBlock'))return;const _0x4ccf3b=_0xefd5c2['plugins']['get']('TrackChangesEditing'),_0x29d167=_0xefd5c2['locale'],_0x4035e7=_0xefd5c2['config']['get']('codeBlock')['languages'],_0x185d5c=_0xefd5c2['commands']['get']('codeBlock');_0x4ccf3b['enableCommand']('indentCodeBlock'),_0x4ccf3b['enableCommand']('outdentCodeBlock'),_0x4ccf3b['enableCommand']('codeBlock',(_0x5aa34c,_0x47e523={})=>{const _0x13533c=_0xefd5c2['model'],_0x263399=_0xefd5c2['model']['document']['selection'],_0x3c7b3c=_0x47e523&&void 0x0!==_0x47e523['forceValue']?_0x47e523['forceValue']:!_0x185d5c['value'];let _0xc5eaa1;_0x47e523['language']||(_0x47e523['language']=_0x4035e7[0x0]['language']),_0xc5eaa1=_0x3c7b3c?Array['from'](_0x263399['getSelectedBlocks']())['filter'](_0x48ad46=>xt(_0x48ad46)||function(_0xe7a764,_0x2c17a6){if(_0xe7a764['is']('rootElement')||_0x2c17a6['isLimit'](_0xe7a764))return!0x1;return _0x2c17a6['checkChild'](_0xe7a764['parent'],'codeBlock');}(_0x48ad46,_0x13533c['schema'])):Array['from'](_0x263399['getSelectedBlocks']())['filter'](_0x3e2af5=>xt(_0x3e2af5));const _0x3bbb5f=Tt(_0xc5eaa1,_0x13533c);_0x13533c['change'](()=>{for(const _0x5466ab of _0x3bbb5f)_0x4ccf3b['markBlockFormat'](_0x5466ab,{'commandName':'codeBlock','commandParams':[{..._0x47e523,'forceValue':_0x3c7b3c}],'formatGroupId':'blockName'});});}),(_0x4ccf3b['descriptionFactory']['registerElementLabel']('codeBlock',_0x56ac1b=>At(_0x29d167,'ELEMENT_CODE_BLOCK',_0x56ac1b)),_0x4ccf3b['descriptionFactory']['registerDescriptionCallback'](_0x5e2a68=>{if('formatBlock'!=_0x5e2a68['type'])return;const _0x38d26a=_0x29d167['t'],{data:_0x168367}=_0x5e2a68;if(!_0x168367||'codeBlock'!=_0x168367['commandName'])return;const _0x49e441=_0x168367['commandParams'][0x0]['language'],_0x1cacb9=_0x38d26a(_0x4035e7['find'](_0x5e042e=>_0x5e042e['language']===_0x49e441)['label'])['toLowerCase']();return _0x168367['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x29d167,'*Set\x20format:*\x20%0',At(_0x29d167,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x1cacb9+')')}:{'type':'format','content':At(_0x29d167,'*Remove\x20format:*\x20%0',At(_0x29d167,'ELEMENT_CODE_BLOCK',0x1))};}));}}function xt(_0x13b87f){return'codeBlock'==_0x13b87f['name'];}class Pt extends _0x195c91{['afterInit'](){const _0x227859=this['editor'];if(!_0x227859['plugins']['has']('CommentsEditing'))return;_0x227859['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class Ut extends _0x195c91{static get['requires'](){return[at];}['init'](){const _0x264fcf=this['editor'],_0x558036=_0x264fcf['plugins']['get']('TrackChangesEditing');_0x558036['enableCommand']('delete');const _0x2060df=_0x264fcf['commands']['get']('deleteForward');_0x558036['enableCommand']('deleteForward',(_0x274793,_0x166be9={})=>{const _0x207917=_0x264fcf['model']['createSelection'](_0x264fcf['model']['document']['selection']);_0x207917['isCollapsed']&&_0x264fcf['model']['modifySelection'](_0x207917,{'direction':'forward','unit':_0x166be9['unit']});const _0x317fb0=_0x207917['getFirstRange'](),_0x5a012e=_0x5e7de2['fromRange'](_0x317fb0);let _0x5c3611;_0x274793(_0x166be9),_0x5c3611='$graveyard'==_0x5a012e['root']['rootName']?_0x264fcf['model']['createRange'](_0x317fb0['start']):_0x264fcf['model']['createRange'](_0x5a012e['start'],_0x5a012e['end']),_0x5a012e['detach'](),_0x264fcf['model']['enqueueChange'](_0x2060df['buffer']['batch'],_0xbdc8bd=>{_0x2060df['buffer']['lock'](),_0xbdc8bd['setSelection'](_0xbdc8bd['createRange'](_0x5c3611['end'])),_0x2060df['buffer']['unlock']();});});}}class Gt extends _0x195c91{['afterInit'](){const _0x42d304=this['editor'];if(!_0x42d304['plugins']['has']('ListEditing'))return;const _0x4caea7=_0x42d304['locale'],_0x546f57=_0x42d304['plugins']['get']('TrackChangesEditing'),_0x2b8e59=_0x42d304['plugins']['has']('TodoListEditing'),_0x51dabb=!!_0x42d304['config']['get']('list.multiBlock');function _0x1a6a1b(_0x53b702){return{'type':'format','content':''+At(_0x4caea7,'*Set\x20format:*\x20%0',_0x53b702)};}function _0x1e087f(_0x234284){return{'type':'format','content':''+At(_0x4caea7,'*Remove\x20format:*\x20%0',_0x234284)};}_0x546f57['enableDefaultAttributesIntegration']('numberedList'),_0x546f57['enableDefaultAttributesIntegration']('bulletedList'),_0x546f57['enableDefaultAttributesIntegration']('customNumberedList'),_0x546f57['enableDefaultAttributesIntegration']('customBulletedList'),_0x546f57['enableDefaultAttributesIntegration']('indentList'),_0x546f57['enableDefaultAttributesIntegration']('outdentList'),_0x546f57['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x546f57['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x51dabb&&(_0x546f57['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x546f57['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x2b8e59&&(_0x546f57['enableDefaultAttributesIntegration']('todoList'),_0x546f57['enableDefaultAttributesIntegration']('checkTodoList'),_0x546f57['descriptionFactory']['registerDescriptionCallback'](_0x3f1132=>{const {data:_0x2f3326}=_0x3f1132;if(_0x2f3326&&'todoListChecked'==_0x2f3326['key'])return{'type':'format','content':_0x2f3326['newValue']?At(_0x4caea7,'*Check\x20item*'):At(_0x4caea7,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x2d4176=>{if(_0x2d4176['batch']['isUndo'])return!0x1;let _0x12b464=!0x1;const _0x5adccf=_0x546f57['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x380a23=>'todoListChecked'===_0x546f57['_getAttributeKey'](_0x380a23));for(const _0x5a8377 of _0x5adccf){'todo'!=_0x5a8377['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x546f57['_findSuggestions'](_0x5a8377['getFirstRange'](),'attribute')['find'](_0x3816de=>'listType'===_0x546f57['_getAttributeKey'](_0x3816de['suggestion']))||(_0x2d4176['removeMarker'](_0x5a8377['getFirstMarker']()),_0x12b464=!0x0));}return _0x12b464;})),_0x546f57['descriptionFactory']['registerAttributeLabel']('listIndent',At(_0x4caea7,'FORMAT_INDENT'));const _0x2b9d43={'type':'format','content':''};_0x546f57['descriptionFactory']['registerDescriptionCallback'](_0x4e925c=>{const {data:_0x2145c4}=_0x4e925c;if(!_0x2145c4||'listType'!=_0x2145c4['key'])return;let _0x405241=_0x4e925c['head'];for(;_0x405241;){if(_0x405241['data']&&(('listStyle'==_0x405241['data']['key']||'listMarkerStyle'==_0x405241['data']['key'])&&(_0x405241['data']['newValue']&&'default'!=_0x405241['data']['newValue']||'default'!=_0x405241['data']['oldValue']&&!_0x2145c4['newValue'])||!_0x51dabb&&_0x405241['data']['key']==Ke))return _0x2b9d43;_0x405241=_0x405241['next'];}if(null==_0x2145c4['newValue'])switch(_0x2145c4['oldValue']){case'bulleted':return _0x1e087f(At(_0x4caea7,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1e087f(At(_0x4caea7,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1e087f(At(_0x4caea7,'ELEMENT_TODO_LIST'));}switch(_0x2145c4['newValue']){case'bulleted':return _0x1a6a1b(At(_0x4caea7,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1a6a1b(At(_0x4caea7,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1a6a1b(At(_0x4caea7,'ELEMENT_TODO_LIST'));}}),_0x546f57['descriptionFactory']['registerDescriptionCallback'](_0x1b55a9=>{const {data:_0xcc9b23}=_0x1b55a9;if(_0xcc9b23&&'listIndent'==_0xcc9b23['key'])return null==_0xcc9b23['newValue']||null==_0xcc9b23['oldValue']&&0x0==_0xcc9b23['newValue']?_0x2b9d43:void 0x0;}),_0x546f57['descriptionFactory']['registerDescriptionCallback'](_0xdf6514=>{if('attribute'!=_0xdf6514['type'])return;const {data:_0x2ca256}=_0xdf6514;if(!_0x2ca256||'listItemId'!=_0x2ca256['key'])return;const _0x35b50f=Ht(_0xdf6514);return'newValue'==_0x35b50f?{'type':'format','content':At(_0x4caea7,'*Merge:*\x20list\x20item')}:'oldValue'==_0x35b50f?{'type':'format','content':At(_0x4caea7,'*Split:*\x20list\x20item')}:_0x2b9d43;}),_0x42d304['model']['document']['registerPostFixer'](_0x178328=>this['listItemIdFixer'](_0x178328)),_0x42d304['model']['document']['registerPostFixer'](_0x1de9e2=>this['noTrackChangesFixer'](_0x1de9e2)),_0x42d304['model']['document']['on']('change:data',(_0x4139d9,_0x120291)=>{if(_0x120291['isUndo']||!_0x120291['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x2dbfc7){if(_0x2dbfc7['batch']['isUndo']||!_0x2dbfc7['batch']['isLocal'])return!0x1;let _0x54fe12=!0x1;const _0x40d0e9=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1978ff=>_0x1978ff['data']&&'listItemId'==_0x1978ff['data']['key'])['filter'](_0x4fd0eb=>_0x4fd0eb['data']['newValue']&&_0x4fd0eb['data']['oldValue']);for(const _0x5272f8 of _0x40d0e9)Ht(_0x5272f8)||(_0x2dbfc7['removeMarker'](_0x5272f8['getFirstMarker']()),_0x54fe12=!0x0);return _0x54fe12;}['noTrackChangesFixer'](_0x10fe3e){if(_0x10fe3e['batch']['isUndo']||!_0x10fe3e['batch']['isLocal'])return!0x1;const _0xfb8ce=this['editor']['plugins']['get']('TrackChangesEditing');if(_0xfb8ce['trackChangesCommand']['value'])return!0x1;let _0x46687f=!0x1;const _0x2e4fef=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x325d94=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x4a7e30=>'attribute'==_0x4a7e30['type'])['filter'](_0x129675=>_0x2e4fef['includes'](_0x129675['attributeKey']));if(0x0==_0x325d94['length'])return _0x46687f;for(const _0x377b4e of _0x325d94){const _0x39b1c7=_0xfb8ce['_findSuggestions'](_0x377b4e['range'],'attribute')['filter'](_0xe15f8b=>!_0xe15f8b['meta']['isNextTo'])['map'](_0x1002d2=>_0x1002d2['suggestion'])['filter'](_0x55094a=>{const _0x425cfc=_0xfb8ce['_getAttributeKey'](_0x55094a);return _0x2e4fef['includes'](_0x425cfc);});if(_0x39b1c7['length']){for(const _0x31bc9e of _0x39b1c7)_0x10fe3e['removeMarker'](_0x31bc9e['getFirstMarker']());_0x46687f=!0x0;}}return _0x46687f;}['assureChains'](){const _0x381235=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5aadfa=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x55421b;const _0x19a33b=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x425cc1=>{if(_0x425cc1['data']['oldRange']||!_0x425cc1['data']['newRange'])return null;if(!_0x425cc1['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x198a0c}=_0x4ae9fb(_0x425cc1['name']);if(!_0x381235['hasSuggestion'](_0x198a0c))return null;const _0x5b4138=_0x381235['getSuggestion'](_0x198a0c);return _0x5aadfa['includes'](_0x5b4138['data']['key']);})['map'](_0x4dd51f=>{const {id:_0x4ab803}=_0x4ae9fb(_0x4dd51f['name']),_0x3cd469=_0x381235['getSuggestion'](_0x4ab803);return _0x55421b=_0x3cd469['attributes']['groupId'],_0x3cd469['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x19a33b['size'])return;const _0x316403=_0x381235['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x39c40f=>'attribute'==_0x39c40f['type']&&_0x39c40f['data']&&_0x5aadfa['includes'](_0x39c40f['data']['key'])&&_0x39c40f['attributes']['groupId']!=_0x55421b)['map'](_0x477232=>({'listItem':_0x477232['getFirstRange']()['start']['nodeAfter'],'groupId':_0x477232['attributes']['groupId']})),_0x6f5fbf=new Set();for(const {groupId:_0x334b8e,listItem:_0x525e0f}of _0x316403)_0x19a33b['has'](_0x525e0f)&&_0x6f5fbf['add'](_0x334b8e);for(const _0x2ec3de of _0x381235['getSuggestions']())_0x6f5fbf['has'](_0x2ec3de['attributes']['groupId'])&&_0x2ec3de['setAttribute']('groupId',_0x55421b);}['_supportLegacySuggestions'](){const _0xe4e005=this['editor'],_0x37f590=_0xe4e005['locale'],_0x59e030=_0xe4e005['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x59e030['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x4dd7b6,_0x398096){const _0x2137da=[];for(let _0x4cae85 of _0x4dd7b6)_0x4cae85['start']['nodeAfter']===_0x4cae85['end']['parent']&&(_0x4cae85=_0xe4e005['model']['createRange'](_0xe4e005['model']['createPositionAt'](_0x4cae85['start']['nodeAfter'],0x0))),_0x2137da['push'](_0x4cae85);_0xe4e005['model']['change'](_0xc09d2c=>{const _0x4baf69=_0xe4e005['model']['document']['selection'],_0x25bf9e=Array['from'](_0x4baf69['getRanges']())['map'](_0x31e51c=>_0x5e7de2['fromRange'](_0x31e51c));_0xc09d2c['setSelection'](_0x2137da),_0xe4e005['commands']['get'](_0x398096['commandName'])['refresh'](),_0x398096['commandParams']['push']({'forceDefaultExecution':!0x0}),_0xe4e005['execute'](_0x398096['commandName'],..._0x398096['commandParams']),_0xc09d2c['setSelection'](_0x25bf9e);for(const _0x24f484 of _0x25bf9e)_0x24f484['detach']();});}),_0x59e030['descriptionFactory']['registerElementLabel'](function(_0x2c0603){const _0x2afd1e=!_0xe4e005['model']['schema']['isObject'](_0x2c0603),_0x253b82=_0x2c0603['previousSibling'],_0x469fe3=_0x2c0603['nextSibling'],_0x1394c6=_0x2c0603['getAttribute']('listItemId'),_0x39da3c=!_0x253b82||_0x253b82['getAttribute']('listItemId')!==_0x1394c6,_0x28aab4=!_0x469fe3||_0x469fe3['getAttribute']('listItemId')!==_0x1394c6;return _0x2afd1e&&Boolean(_0x1394c6)&&_0x39da3c&&_0x28aab4;},_0x54e5a1=>At(_0x37f590,'ELEMENT_LIST_ITEM',_0x54e5a1));}['_registerLegacyDescription'](){const _0x142d86=this['editor'],_0x1aa66f=_0x142d86['locale'];function _0x316529(_0x4911a8){const _0x53c2ea=_0x142d86['commands']['get']('bulletedList')['value'],_0x452998=_0x142d86['commands']['get']('numberedList')['value'];return'numberedList'===_0x4911a8?_0x53c2ea:_0x452998;}_0x142d86['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x5d16bc){if('formatBlock'!=_0x5d16bc['type'])return;const {data:_0x12bc45}=_0x5d16bc;if(!_0x12bc45)return;let _0x593036,_0x2a45bf,_0x26908a,_0xf27449;switch(_0x12bc45['commandName']){case'bulletedList':_0x26908a=_0x12bc45['commandParams'][0x0]['forceValue'],_0xf27449=_0x316529(_0x12bc45['commandName']),_0x593036=_0x26908a?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xf27449&&_0x142d86['config']['get']('list.multiBlock')||(_0x593036='*Change\x20to:*\x20%0'),_0x2a45bf={'type':'format','content':At(_0x1aa66f,_0x593036,At(_0x1aa66f,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x26908a=_0x12bc45['commandParams'][0x0]['forceValue'],_0xf27449=_0x316529(_0x12bc45['commandName']),_0x593036=_0x26908a?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xf27449&&_0x142d86['config']['get']('list.multiBlock')||(_0x593036='*Change\x20to:*\x20%0'),_0x2a45bf={'type':'format','content':At(_0x1aa66f,_0x593036,At(_0x1aa66f,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x593036='*Indent:*\x20%0',_0x2a45bf={'type':'format','content':At(_0x1aa66f,_0x593036,At(_0x1aa66f,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x593036=function(_0x4840be){const _0x5ce55b=_0x4840be['getFirstRange']();let _0x84724=_0x5ce55b['start']['nodeAfter'];for(;_0x84724&&_0x5ce55b['containsItem'](_0x84724);){if(_0x84724['getAttribute']('listIndent')>0x0)return!0x1;_0x84724=_0x84724['nextSibling'];}return!0x0;}(_0x5d16bc)?At(_0x1aa66f,'*Format:*\x20remove\x20from\x20%0',At(_0x1aa66f,function(_0x41bcc6){return'ELEMENT_'+_0x41bcc6['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x5d16bc))):At(_0x1aa66f,'*Outdent:*\x20%0',At(_0x1aa66f,'ELEMENT_LIST_ITEM')),_0x2a45bf={'type':'format','content':_0x593036};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x12bc45['multipleBlocks']&&(_0x593036='*Merge:*\x20%0',_0x2a45bf={'type':'deletion','content':At(_0x1aa66f,_0x593036,At(_0x1aa66f,'ELEMENT_LIST_ITEM'))});}return _0x2a45bf;});}}function Ht(_0x5f2c3f){let _0x243ebd=_0x5f2c3f['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x243ebd;){const _0x59aa2b=_0x243ebd['getAttribute']('listItemId');if(!_0x59aa2b)return!0x1;if(_0x59aa2b==_0x5f2c3f['data']['newValue'])return'newValue';if(_0x59aa2b==_0x5f2c3f['data']['oldValue'])return'oldValue';_0x243ebd=_0x243ebd['previousSibling'];}return!0x1;}class $t extends _0x195c91{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0xb85c51=this['editor']['config']['get']('list.properties'),_0x56c48e=this['editor']['plugins']['get']('TrackChangesEditing');_0xb85c51['styles']&&_0x56c48e['enableDefaultAttributesIntegration']('listStyle'),_0xb85c51['reversed']&&_0x56c48e['enableDefaultAttributesIntegration']('listReversed'),_0xb85c51['startIndex']&&_0x56c48e['enableDefaultAttributesIntegration']('listStart');const _0x45642f={'type':'format','content':''};_0x56c48e['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x58e5b3=this['editor']['locale'];_0x56c48e['descriptionFactory']['registerAttributeLabel']('listReversed',At(_0x58e5b3,'FORMAT_LIST_REVERSED')),_0x56c48e['descriptionFactory']['registerDescriptionCallback'](_0x203ab9=>{const {data:_0x318e9d}=_0x203ab9;if(_0x318e9d&&'listReversed'==_0x318e9d['key'])return null==_0x318e9d['newValue']||0x0==_0x318e9d['newValue']&&null==_0x318e9d['oldValue']?_0x45642f:void 0x0;}),_0x56c48e['descriptionFactory']['registerAttributeLabel']('listStart',At(_0x58e5b3,'FORMAT_LIST_START')),_0x56c48e['descriptionFactory']['registerDescriptionCallback'](_0x46f195=>{const {data:_0xadca84}=_0x46f195;if(_0xadca84&&'listStart'==_0xadca84['key'])return null==_0xadca84['newValue']||0x1==_0xadca84['newValue']&&null==_0xadca84['oldValue']?_0x45642f:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x5d3ab2=>{if(_0x5d3ab2['batch']['isUndo'])return!0x1;let _0x2b2c57=!0x1;const _0x1bedec=_0x56c48e['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x477a68=>{const _0x472ed3=_0x56c48e['_getAttributeKey'](_0x477a68);return'listStart'==_0x472ed3||'listReversed'==_0x472ed3;});for(const _0x31319e of _0x1bedec){const _0x36aec2=_0x31319e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x36aec2||'customNumbered'==_0x36aec2)continue;_0x56c48e['_findSuggestions'](_0x31319e['getFirstRange'](),'attribute')['find'](_0x461708=>'listType'==_0x56c48e['_getAttributeKey'](_0x461708['suggestion']))||(_0x5d3ab2['removeMarker'](_0x31319e['getFirstMarker']()),_0x2b2c57=!0x0);}return _0x2b2c57;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x603259){const _0x28aa02=this['editor']['locale'],{data:_0x2ecea9}=_0x603259,_0x396705={'type':'format','content':''};if(!_0x2ecea9||'listStyle'!=_0x2ecea9['key'])return;if(!_0x2ecea9['oldValue'])return'default'==_0x2ecea9['newValue']?_0x396705:{'type':'format','content':''+At(_0x28aa02,'*Set\x20format:*\x20%0',At(_0x28aa02,this['_getTranslationKeyForListStyle'](_0x2ecea9['newValue'])))};if(!_0x2ecea9['newValue']){if('default'==_0x2ecea9['oldValue'])return _0x396705;let _0x3b0a3d=_0x603259['head'];for(;_0x3b0a3d;){if(_0x3b0a3d['data']&&'listType'==_0x3b0a3d['data']['key']&&_0x3b0a3d['data']['newValue'])return _0x396705;_0x3b0a3d=_0x3b0a3d['next'];}return{'type':'format','content':''+At(_0x28aa02,'*Remove\x20format:*\x20%0',At(_0x28aa02,this['_getTranslationKeyForListStyle'](_0x2ecea9['oldValue'])))};}if('default'!=_0x2ecea9['newValue'])return{'type':'format','content':''+At(_0x28aa02,'*Set\x20format:*\x20%0',At(_0x28aa02,this['_getTranslationKeyForListStyle'](_0x2ecea9['newValue'])))};let _0x461da7=_0x603259['head'];for(;_0x461da7;){if(_0x461da7['data']&&'listType'==_0x461da7['data']['key']&&_0x461da7['data']['newValue']&&_0x461da7['data']['oldValue'])return _0x396705;_0x461da7=_0x461da7['next'];}return{'type':'format','content':At(_0x28aa02,'*Set\x20format:*\x20%0',At(_0x28aa02,'ELEMENT_'+_0x603259['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x1b8ce2=this['editor'],_0x30b72e=_0x1b8ce2['locale'];_0x1b8ce2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x12272c=>{if('formatBlock'!=_0x12272c['type'])return;const {data:_0x5bf099}=_0x12272c;if(!_0x5bf099)return;let _0x18d9d8,_0x505aad;switch(_0x5bf099['commandName']){case'listStyle':_0x18d9d8='*Change\x20to:*\x20%0',_0x505aad={'type':'format','content':At(_0x30b72e,_0x18d9d8,At(_0x30b72e,this['_getTranslationKeyForListStyle'](_0x5bf099['commandParams'][0x0]['type'])))};break;case'listReversed':_0x18d9d8=_0x5bf099['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x505aad={'type':'format','content':At(_0x30b72e,_0x18d9d8)};break;case'listStart':_0x18d9d8='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x505aad={'type':'format','content':At(_0x30b72e,_0x18d9d8,_0x5bf099['commandParams'][0x0]['startIndex'])};}return _0x505aad;});}['_getTranslationKeyForListStyle'](_0x36b749){return'ELEMENT_'+function(_0x26f595){if(Wt['includes'](_0x26f595))return'bulleted';if(Vt['includes'](_0x26f595))return'numbered';return null;}(_0x36b749)['toUpperCase']()+'_LIST_'+_0x36b749['toUpperCase']()['replace'](/-/g,'_');}}const Wt=['disc','circle','square'],Vt=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];class jt extends _0x195c91{['afterInit'](){const _0x171d45=this['editor'];_0x171d45['commands']['get']('emoji')&&_0x171d45['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class zt extends _0x195c91{static get['requires'](){return[lt];}['init'](){const _0x4e7746=this['editor'],_0x24feb4=_0x4e7746['plugins']['get']('TrackChangesEditing'),_0x17d93e=_0x4e7746['commands']['get']('enter');_0x24feb4['enableCommand']('enter',()=>{_0x4e7746['model']['change'](_0xa4658f=>{const _0x500015=_0x4e7746['model']['document']['selection'],_0x271d1a=_0x500015['getFirstPosition'](),_0x2d153e=_0x5e7de2['fromRange'](_0x500015['getFirstRange']());if(_0x17d93e['enterBlock'](_0xa4658f)){const _0x329130=_0x4e7746['model']['createPositionAt'](_0x271d1a['parent']['nextSibling'],0x0),_0x2f1954=_0xa4658f['createRange'](_0x271d1a,_0x329130);_0x24feb4['markInsertion'](_0x2f1954);}else _0xa4658f['setSelection'](_0xa4658f['createRange'](_0x2d153e['end']));_0x2d153e['detach'](),_0x17d93e['fire']('afterExecute',{'writer':_0xa4658f});});});}}class Kt extends _0x195c91{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x282163=this['editor']['plugins']['get']('TrackChangesEditing');_0x282163['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x282163['enableCommand']('findNext'),_0x282163['enableCommand']('findPrevious'),_0x282163['enableCommand']('replace'),_0x282163['enableCommand']('replaceAll');}['handleFindCommand'](_0x4cb8b4,_0x144b2e,_0x2d45dd={}){const _0x3a52bf=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x4cb8b4(_0x57515e=>{let _0x593947=('string'==typeof _0x144b2e?_0x3a52bf['findByTextCallback'](_0x144b2e,_0x2d45dd):_0x144b2e)(_0x57515e);Array['isArray'](_0x593947)&&(_0x593947={'results':_0x593947,'searchText':'string'==typeof _0x144b2e?_0x144b2e:''});const _0x94a3be=_0x593947['results']['filter'](_0x5c6a7f=>!0x1===this['_isInDeletionRange'](_0x5c6a7f,_0x57515e['item']));return{..._0x593947,'results':_0x94a3be};},_0x2d45dd);}['_isInDeletionRange'](_0x755445,_0x5b740e){const _0xbb16a4=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5b740e,_0x755445['start']),this['editor']['model']['createPositionAt'](_0x5b740e,_0x755445['end']));for(const _0x215c4d of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0xbb16a4['getIntersection'](_0x215c4d['getRange']()))return!0x0;return!0x1;}}const Xt=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Yt extends _0x195c91{['afterInit'](){const _0x15e1e2=this['editor']['locale'],_0x1bc79a=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0xe326c8,commandName:_0x7d2f90}of Xt)this['editor']['plugins']['has'](_0xe326c8)&&_0x1bc79a['enableDefaultAttributesIntegration'](_0x7d2f90);_0x1bc79a['descriptionFactory']['registerAttributeLabel']('fontSize',At(_0x15e1e2,'FORMAT_FONT_SIZE')),_0x1bc79a['descriptionFactory']['registerAttributeLabel']('fontFamily',At(_0x15e1e2,'FORMAT_FONT_FAMILY')),_0x1bc79a['descriptionFactory']['registerAttributeLabel']('fontColor',At(_0x15e1e2,'FORMAT_FONT_COLOR')),_0x1bc79a['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',At(_0x15e1e2,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1e7df1=this['editor'],_0x28dc49=_0x1e7df1['locale'];_0x1e7df1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1cc713=>{const _0x3b7d0c=_0x28dc49['t'];if('formatInline'!=_0x1cc713['type'])return;const {data:_0x1b1a90}=_0x1cc713;if(null!=_0x1b1a90){if('fontSize'==_0x1b1a90['commandName']){const _0x46affd=_0x1b1a90['commandParams'][0x0]['value'];if(_0x46affd){const _0x47d389=_0x3b7d0c(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x523071=>_0x523071['model']==_0x46affd)['title'])['toLowerCase']();return{'type':'format','content':At(_0x28dc49,'*Set\x20font\x20size:*\x20%0',_0x47d389)};}return{'type':'format','content':At(_0x28dc49,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x1b1a90['commandName']){const _0x313657=_0x1b1a90['commandParams'][0x0]['value'];return _0x313657?{'type':'format','content':At(_0x28dc49,'*Set\x20font\x20family:*\x20%0',_0x313657)}:{'type':'format','content':At(_0x28dc49,'*Reset\x20font\x20family*')};}if('fontColor'==_0x1b1a90['commandName']){const _0x155e85=_0x1b1a90['commandParams'][0x0]['value'];if(_0x155e85){const _0x35b5e8=_0xd10e0c(this['editor']['config']['get']('fontColor.colors'))['find'](_0x3321a8=>_0x3321a8['model']==_0x155e85);let _0x5cde3d=_0x155e85,_0x589e0e='';return _0x35b5e8&&(_0x5cde3d=_0x35b5e8['label'],_0x589e0e=_0x3b7d0c(_0x5cde3d)['toLowerCase']()),{'type':'format','content':At(_0x28dc49,'*Set\x20font\x20color:*\x20%0',_0x589e0e)['trim'](),'color':{'value':_0x155e85,'title':_0x589e0e||_0x5cde3d}};}return{'type':'format','content':At(_0x28dc49,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x1b1a90['commandName']){const _0x2bdfe1=_0x1b1a90['commandParams'][0x0]['value'];if(_0x2bdfe1){const _0x301e47=_0xd10e0c(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x3af397=>_0x3af397['model']==_0x2bdfe1);let _0x14f05f=_0x2bdfe1,_0x22be2d='';return _0x301e47&&(_0x14f05f=_0x301e47['label'],_0x22be2d=_0x3b7d0c(_0x14f05f)['toLowerCase']()),{'type':'format','content':At(_0x28dc49,'*Set\x20font\x20background\x20color:*\x20%0',_0x22be2d)['trim'](),'color':{'value':_0x2bdfe1,'title':_0x22be2d||_0x14f05f}};}return{'type':'format','content':At(_0x28dc49,'*Reset\x20font\x20background\x20color*')};}}});}}class qt extends _0x195c91{['afterInit'](){const {plugins:_0x208a33}=this['editor'];_0x208a33['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x208a33['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x40549f,plugins:_0x31d08d,commands:_0xae3971}=this['editor'],_0x3f943e=_0x31d08d['get']('TrackChangesEditing');_0xae3971['get']('footnotesStyle')&&_0x3f943e['enableDefaultAttributesIntegration']('footnotesStyle'),_0xae3971['get']('footnotesStart')&&_0x3f943e['enableDefaultAttributesIntegration']('footnotesStart'),_0x3f943e['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',At(_0x40549f,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x3f943e['descriptionFactory']['registerAttributeLabel']('footnotesListStart',At(_0x40549f,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x4f3a0b=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x3b6234,commands:_0x3c836b}=this['editor'];_0x3c836b['get']('insertFootnote')&&_0x4f3a0b['enableCommand']('insertFootnote'),_0x4f3a0b['descriptionFactory']['registerElementLabel']('footnoteRef',_0x22fc49=>At(_0x3b6234,'ELEMENT_FOOTNOTE_REF',_0x22fc49)),_0x4f3a0b['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x10debe=>At(_0x3b6234,'ELEMENT_FOOTNOTE_DEFINITION',_0x10debe)),_0x4f3a0b['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x421d3f=>At(_0x3b6234,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x421d3f));}}class Qt extends _0x195c91{['afterInit'](){const _0x5483d8=this['editor'],_0x3a62d2=_0x5483d8['plugins']['get']('TrackChangesEditing'),_0x315f05=_0x5483d8['commands']['get']('copyFormat'),_0x259c7c=_0x5483d8['commands']['get']('pasteFormat');_0x315f05&&_0x259c7c&&(_0x3a62d2['enableDefaultAttributesIntegration']('pasteFormat'),_0x3a62d2['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x41b06b=this['editor'],_0x1816dd=_0x41b06b['locale'];_0x41b06b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2fdb64=>{if('formatBlock'!=_0x2fdb64['type']&&'formatInline'!=_0x2fdb64['type'])return;const {data:_0x53c6e0}=_0x2fdb64;if(_0x53c6e0&&'pasteFormat'===_0x53c6e0['commandName']){const _0x4e7de4=[],_0x571aa5=_0x53c6e0['commandParams'][0x0];for(const [_0x17f60c,_0x514c4c]of Object['entries'](_0x571aa5))_0x4e7de4['push'](Zt(_0x41b06b,_0x17f60c,_0x514c4c));return _0x4e7de4['length']?{'type':'format','content':At(_0x1816dd,'*Set\x20format\x20to:*\x20%0',_0x4e7de4['join'](',\x20'))}:{'type':'format','content':At(_0x1816dd,'*Remove\x20all\x20formatting*')};}});}}function Zt(_0x6b492a,_0x2ab8e9,_0x30e309){const _0x295b7f=_0x6b492a['locale']['t'],_0x1ed92c=_0x2ab8e9['split'](/(?=[A-Z])/)['join']('\x20'),_0x569f32=_0x295b7f(_0x1ed92c['charAt'](0x0)['toUpperCase']()+_0x1ed92c['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x30e309)return _0x569f32;if('fontColor'===_0x2ab8e9||'fontBackgroundColor'===_0x2ab8e9){const _0x49035b=_0xd10e0c(_0x6b492a['config']['get']('fontColor.colors'))['find'](_0x350649=>_0x350649['model']==_0x30e309);return _0x569f32+'\x20('+(_0x49035b?_0x295b7f(_0x49035b['label'])['toLowerCase']():_0x30e309)+')';}if('fontSize'===_0x2ab8e9&&isNaN(parseFloat(_0x30e309))){const _0x5c4be2=_0x6b492a['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x6b492a['config']['get']('fontSize.options'))['find'](_0x3f22d0=>_0x3f22d0['model']==_0x30e309);return _0x569f32+'\x20('+(_0x5c4be2?_0x295b7f(_0x5c4be2['title'])['toLowerCase']():_0x30e309)+')';}return _0x569f32+'\x20('+_0x30e309+')';}class Jt extends _0x195c91{['_headingOptions'];['afterInit'](){const _0x128c3f=this['editor'];if(!_0x128c3f['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x128c3f['config']['get']('heading.options');const _0x3dba42=_0x128c3f['locale'],_0x37ba95=_0x128c3f['plugins']['get']('TrackChangesEditing');_0x37ba95['enableDefaultAttributesIntegration']('heading');for(const _0x25e321 of this['_headingOptions'])'paragraph'!=_0x25e321['model']&&_0x37ba95['descriptionFactory']['registerElementLabel'](_0x25e321['model'],_0x45efa9=>{const _0x5a00dd=this['_getHeadingLevel'](_0x25e321['model']);return null!==_0x5a00dd?_0x5c6610(_0x45efa9,_0x5a00dd):_0x1c9870(_0x45efa9,_0x25e321['title']);});function _0x5c6610(_0x4bb301,_0x58a229){return At(_0x3dba42,'ELEMENT_HEADING',[_0x4bb301,_0x58a229]);}function _0x1c9870(_0xcc84f9,_0x1dc257){return At(_0x3dba42,'ELEMENT_HEADING_CUSTOM',[_0xcc84f9,_0x1dc257]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2d5fe6=this['editor'],_0x44d1a0=_0x2d5fe6['locale'];function _0x10691c(_0x2e079c,_0x175b77){return At(_0x44d1a0,'ELEMENT_HEADING_CUSTOM',[_0x2e079c,_0x175b77]);}_0x2d5fe6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1f1d8a=>{if('formatBlock'!=_0x1f1d8a['type'])return;const {data:_0xe7463c}=_0x1f1d8a;if(_0xe7463c&&'heading'==_0xe7463c['commandName']){const _0x58524f=_0xe7463c['commandParams'][0x0]['value'],_0x3999ca=this['_getHeadingLevel'](_0x58524f);if(null!==_0x3999ca)return{'type':'format','content':At(_0x44d1a0,'*Change\x20to:*\x20%0',(_0x2baafc=0x1,_0x5d73ff=_0x3999ca,At(_0x44d1a0,'ELEMENT_HEADING',[_0x2baafc,_0x5d73ff])))};const _0x56332f=this['_headingOptions']['find'](_0x55a348=>_0x55a348['model']===_0x58524f)['title'];return{'type':'format','content':At(_0x44d1a0,'*Change\x20to:*\x20%0',_0x10691c(0x1,_0x56332f))};}var _0x2baafc,_0x5d73ff;});}['_getHeadingLevel'](_0x6de17f){const _0x3c2c8c=_0x6de17f['match'](/^heading(\d+)/);if(_0x3c2c8c)return _0x3c2c8c[0x1];const _0x18bc51=this['_headingOptions']?.['find'](_0x5c4ea4=>_0x5c4ea4['model']==_0x6de17f);if(_0x18bc51&&_0x18bc51['view']){const _0x54b18c=_0x18bc51['view'],_0xabe503=(_0x54b18c['name']??_0x54b18c)['match'](/^h(\d+)/);if(_0xabe503)return _0xabe503[0x1];}return null;}}class te extends _0x195c91{['afterInit'](){const _0x1b81d5=this['editor'];if(!_0x1b81d5['plugins']['has']('HighlightEditing'))return;const _0x37ca1f=_0x1b81d5['plugins']['get']('TrackChangesEditing'),_0x291bac=_0x1b81d5['locale'];_0x37ca1f['enableDefaultAttributesIntegration']('highlight'),_0x37ca1f['descriptionFactory']['registerAttributeLabel']('highlight',At(_0x291bac,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x12217f=this['editor'],_0x410eae=_0x12217f['locale'];_0x12217f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x405167=>{if('formatInline'!=_0x405167['type'])return;const {data:_0x5ded3b}=_0x405167;if(_0x5ded3b&&'highlight'==_0x5ded3b['commandName']){const _0xae0198=_0x410eae['t'],_0x59e52b=_0x5ded3b['commandParams'][0x0]['value'];if(_0x59e52b){const _0x20d2e1=_0x12217f['config']['get']('highlight.options')['find'](_0x245e86=>_0x245e86['model']==_0x59e52b),_0x3bfe97=_0xae0198(_0x20d2e1['title'])['toLowerCase']();return{'type':'format','content':At(_0x410eae,'*Set\x20highlight:*\x20%0',_0x3bfe97),'color':{'value':_0x20d2e1['color'],'title':_0x20d2e1['title']}};}return{'type':'format','content':At(_0x410eae,'*Remove\x20highlight*',At(_0x410eae,'FORMAT_HIGHLIGHT'))};}});}}class ee extends _0x195c91{['afterInit'](){const _0x5eedc8=this['editor'];if(!_0x5eedc8['plugins']['has']('HorizontalLineEditing'))return;_0x5eedc8['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x9adf1c=_0x5eedc8['plugins']['get']('TrackChangesEditing'),_0x42c3b0=_0x5eedc8['locale'];_0x9adf1c['descriptionFactory']['registerElementLabel']('horizontalLine',_0x14dbe0=>At(_0x42c3b0,'ELEMENT_HORIZONTAL_LINE',_0x14dbe0));}}class ne extends _0x195c91{['afterInit'](){const _0x63f66f=this['editor'];if(!_0x63f66f['plugins']['has']('HtmlEmbed'))return;const _0x1c8457=_0x63f66f['plugins']['get']('TrackChangesEditing'),_0xfafda2=_0x63f66f['locale'];_0x1c8457['descriptionFactory']['registerElementLabel']('rawHtml',_0x577dfa=>At(_0xfafda2,'ELEMENT_HTML_EMBED',_0x577dfa)),_0x1c8457['enableDefaultAttributesIntegration']('htmlEmbed'),_0x1c8457['descriptionFactory']['registerDescriptionCallback'](_0x417880=>{if('attribute'!=_0x417880['type'])return;const {data:_0x32432d}=_0x417880;if(_0x32432d&&'value'==_0x32432d['key']&&_0x417880['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0xc6386b=At(_0xfafda2,'ELEMENT_HTML_EMBED');return{'type':'format','content':At(_0xfafda2,'*Change\x20%0\x20content*',_0xc6386b)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4bc474=this['editor'],_0x540371=_0x4bc474['locale'];_0x4bc474['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3b1251=>{if('formatBlock'!=_0x3b1251['type'])return;const {data:_0x2f6437}=_0x3b1251;if(_0x2f6437&&'htmlEmbed'==_0x2f6437['commandName']){const _0x1ed954=At(_0x540371,'ELEMENT_HTML_EMBED');return{'type':'format','content':At(_0x540371,'*Change\x20%0\x20content*',_0x1ed954)};}});}}class ie extends _0x195c91{['afterInit'](){const _0x10f69e=this['editor'];if(!_0x10f69e['plugins']['has']('ImageEditing'))return;const _0x192283=_0x10f69e['plugins']['get']('TrackChangesEditing'),_0x3afeb4=_0x10f69e['plugins']['get']('ImageUtils'),_0xc74563=_0x10f69e['locale'];_0x192283['enableCommand']('insertImage'),_0x192283['descriptionFactory']['registerElementLabel']('imageBlock',_0x42e912=>At(_0xc74563,'ELEMENT_IMAGE',_0x42e912)),_0x192283['descriptionFactory']['registerElementLabel']('imageInline',_0x1be302=>At(_0xc74563,'ELEMENT_INLINE_IMAGE',_0x1be302)),_0x192283['descriptionFactory']['registerElementLabel']('caption',()=>At(_0xc74563,'ELEMENT_CAPTION')),_0x10f69e['plugins']['has']('ImageUploadEditing')&&_0x192283['enableCommand']('uploadImage'),_0x10f69e['plugins']['has']('ImageBlockEditing')&&_0x10f69e['plugins']['has']('ImageInlineEditing')&&(_0x192283['enableCommand']('imageTypeInline',(_0x42fe97,_0x15a246)=>{const _0x58b49b=_0x3afeb4['getClosestSelectedImageElement'](_0x10f69e['model']['document']['selection']);_0x10f69e['model']['change'](()=>{_0x192283['markBlockFormat'](_0x58b49b,{'commandName':'imageTypeInline','commandParams':[_0x15a246]},[],'convertBlockImageToInline');});}),_0x192283['enableCommand']('imageTypeBlock',(_0x2bb170,_0x2f72ea)=>{_0x10f69e['model']['change'](_0x56fc39=>{let _0x32e97d=_0x3afeb4['getClosestSelectedImageElement'](_0x10f69e['model']['document']['selection']),_0x4ce071=_0x56fc39['createRangeOn'](_0x32e97d);const _0x239183=tt['fromPosition'](_0x4ce071['start'],'toPrevious'),_0x147fe0=tt['fromPosition'](_0x4ce071['end'],'toNext');_0x192283['forceDefaultExecution'](()=>_0x2bb170(_0x2f72ea)),_0x32e97d=_0x3afeb4['getClosestSelectedImageElement'](_0x10f69e['model']['document']['selection']),_0x4ce071=_0x56fc39['createRangeOn'](_0x32e97d);const _0x49451b=_0x56fc39['createRange'](_0x239183,_0x147fe0);_0x239183['detach'](),_0x147fe0['detach'](),_0x192283['markBlockFormat'](_0x32e97d,{'commandName':'imageTypeInline','commandParams':[_0x2f72ea]},[],'convertInlineImageToBlock'),_0x49451b['start']['isBefore'](_0x4ce071['start'])&&_0x192283['markInsertion'](_0x56fc39['createRange'](_0x49451b['start'],_0x4ce071['start']),'convertInlineImageToBlock'),_0x4ce071['end']['isBefore'](_0x49451b['end'])&&_0x192283['markInsertion'](_0x56fc39['createRange'](_0x4ce071['end'],_0x49451b['end']),'convertInlineImageToBlock');});}),_0x192283['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x192283['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x192283['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x192283['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x192283['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x192283['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x5788c1])=>{const _0x40ae80=_0x192283['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x4bbb2c=_0x5788c1['start'],_0x5e0ca8=_0x5788c1['end'];const _0x19a9b6=_0x10f69e['model']['schema']['getNearestSelectionRange'](_0x4bbb2c,'backward'),_0x3d02ee=_0x10f69e['model']['schema']['getNearestSelectionRange'](_0x5e0ca8,'forward');_0x19a9b6['isCollapsed']&&(_0x4bbb2c=_0x19a9b6['start']),_0x3d02ee['isCollapsed']&&(_0x5e0ca8=_0x3d02ee['end']),_0x40ae80([_0x10f69e['model']['createRange'](_0x4bbb2c,_0x5e0ca8)]);}),_0x192283['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x29cfda),_0x192283['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x29cfda)),_0x10f69e['plugins']['has']('ImageCaptionEditing')&&(_0x192283['enableCommand']('toggleImageCaption',(_0x1b1ad7,_0x11c9c1)=>{const _0x39412d=_0x10f69e['plugins']['get']('ImageCaptionUtils');let _0x16238f=_0x3afeb4['getClosestSelectedImageElement'](_0x10f69e['model']['document']['selection']),_0x288e10=_0x39412d['getCaptionFromImageModelElement'](_0x16238f);_0x10f69e['model']['change'](()=>{if(_0x288e10)return void _0x192283['markDeletion'](_0x10f69e['model']['createRangeOn'](_0x288e10));const _0x30ff97=_0x3afeb4['isBlockImage'](_0x16238f);_0x1b1ad7(_0x11c9c1),_0x16238f=_0x3afeb4['getClosestSelectedImageElement'](_0x10f69e['model']['document']['selection']),_0x288e10=_0x39412d['getCaptionFromImageModelElement'](_0x16238f),_0x192283['markInsertion'](_0x10f69e['model']['createRangeOn'](_0x288e10),_0x30ff97?null:'imageCaption');});}),_0x192283['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x29cfda));const _0x423f10=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x36fc28(_0x728237,_0x42fb5b){const _0x17464c=_0x423f10['findIndex'](({type:_0x146d32,subType:_0x48bd1c})=>_0x728237['type']==_0x146d32&&_0x728237['subType']==_0x48bd1c),_0x3c6d97=_0x423f10['findIndex'](({type:_0x1f94ca,subType:_0x1e3264})=>_0x42fb5b['type']==_0x1f94ca&&_0x42fb5b['subType']==_0x1e3264);if(_0x17464c<0x0||_0x3c6d97<0x0)return!0x1;const _0x62f2c4=_0x728237['getFirstRange'](),_0x27ec12=_0x42fb5b['getFirstRange']();if((0x0==_0x17464c||0x1==_0x17464c)&&0x2==_0x3c6d97&&_0x62f2c4['isIntersecting'](_0x27ec12))return!0x0;if(0x2==_0x17464c&&0x3==_0x3c6d97){const _0x16b12f=_0x192283['_findSuggestions'](_0x62f2c4,'insertion')['filter'](({suggestion:_0x434a2a,meta:_0x35c3d1})=>_0x35c3d1['isOwn']&&'convertInlineImageToBlock'==_0x434a2a['subType']);if(_0x16b12f['length']>0x1&&_0x27ec12['end']['isEqual'](_0x62f2c4['start']))return!0x0;if(0x1==_0x16b12f['length']&&(_0x62f2c4['start']['isEqual'](_0x27ec12['end'])||_0x62f2c4['end']['isEqual'](_0x27ec12['start'])))return!0x0;}if(0x3==_0x17464c&&0x3==_0x3c6d97&&_0x62f2c4['start']['isBefore'](_0x27ec12['start'])){const _0x47ce09=_0x62f2c4['end']['nodeAfter'],_0x1b6f8d=_0x27ec12['start']['nodeBefore'];return _0x3afeb4['isBlockImage'](_0x47ce09)&&_0x47ce09===_0x1b6f8d;}return!0x1;}function _0x29cfda(_0x128cb9,_0x449c7b){return _0x36fc28(_0x128cb9,_0x449c7b)?[_0x128cb9,_0x449c7b]:_0x36fc28(_0x449c7b,_0x128cb9)?[_0x449c7b,_0x128cb9]:null;}_0x10f69e['plugins']['has']('ImageResize')&&(_0x192283['enableDefaultAttributesIntegration']('resizeImage'),_0x192283['descriptionFactory']['registerAttributeLabel']('resizedWidth',At(_0xc74563,'FORMAT_IMAGE_SIZE'))),_0x10f69e['plugins']['has']('ImageTextAlternativeEditing')&&_0x192283['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x10f69e['plugins']['has']('PictureEditing')&&_0x192283['descriptionFactory']['registerDescriptionCallback'](_0x542cfb=>{if('attribute'!=_0x542cfb['type'])return;const {data:_0x4d7b16}=_0x542cfb;return _0x4d7b16&&'sources'==_0x4d7b16['key']?{'type':'format','content':''}:void 0x0;}),_0x10f69e['plugins']['has']('ImageSizeAttributes')&&_0x192283['descriptionFactory']['registerDescriptionCallback'](_0x4115cd=>{if('attribute'!=_0x4115cd['type'])return;const {data:_0x5bb841}=_0x4115cd;return!_0x5bb841||'width'!=_0x5bb841['key']&&'height'!=_0x5bb841['key']?void 0x0:{'type':'format','content':''};}),_0x192283['descriptionFactory']['registerDescriptionCallback'](_0x4ad0fb=>{if(!!_0x423f10['find'](({type:_0x5872ce,subType:_0x584f23})=>_0x4ad0fb['type']==_0x5872ce&&_0x4ad0fb['subType']==_0x584f23))return _0x4ad0fb['previous']?{}:void 0x0;}),_0x192283['descriptionFactory']['registerDescriptionCallback'](_0x1580ce=>{if('insertion'==_0x1580ce['type']||'deletion'==_0x1580ce['type']){const _0x566232=_0x1580ce['getContainedElement']();if(_0x566232&&_0x566232['is']('element','caption'))return{'type':'insertion'==_0x1580ce['type']?'addObject':'removeObject','element':_0x566232,'quantity':0x1};}}),_0x192283['descriptionFactory']['registerDescriptionCallback'](_0xd163e7=>'formatBlock'==_0xd163e7['type']&&'convertInlineImageToBlock'==_0xd163e7['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0xd163e7['type']&&'convertBlockImageToInline'==_0xd163e7['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x192283['descriptionFactory']['registerDescriptionCallback'](_0x38b654=>{if('attribute'!=_0x38b654['type'])return;const {data:_0x1a5c87}=_0x38b654;if(!_0x1a5c87||'alt'!=_0x1a5c87['key'])return;const _0x2c3ba0=_0x1a5c87['newValue'];return _0x2c3ba0?{'type':'format','content':At(_0xc74563,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2c3ba0+'\x22')}:{'type':'format','content':At(_0xc74563,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xaae38=this['editor'],_0x2670b1=_0xaae38['locale'];_0xaae38['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1f16bc=>{if('formatBlock'!=_0x1f16bc['type']&&'formatInline'!=_0x1f16bc['type'])return;const {data:_0xe13131}=_0x1f16bc;if(_0xe13131){if('imageTextAlternative'==_0xe13131['commandName']){const _0x5b6e8d=_0xe13131['commandParams'][0x0]['newValue'];return _0x5b6e8d?{'type':'format','content':At(_0x2670b1,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5b6e8d+'\x22')}:{'type':'format','content':At(_0x2670b1,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0xe13131['commandName']){const _0x406b71=_0xe13131['commandParams'][0x0]['width'];return _0x406b71?{'type':'format','content':At(_0x2670b1,'*Set\x20image\x20width:*\x20%0',_0x406b71)}:{'type':'format','content':At(_0x2670b1,'*Reset\x20image\x20width*')};}}});}}class se extends _0x195c91{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x5f41cb=this['editor']['locale'],_0xaaad57=this['editor']['plugins']['get']('TrackChangesEditing');_0xaaad57['enableDefaultAttributesIntegration']('replaceImageSource'),_0xaaad57['descriptionFactory']['registerDescriptionCallback'](_0x201598=>{if('attribute'!=_0x201598['type'])return;const {data:_0x1c1eef}=_0x201598;return _0x1c1eef&&'src'==_0x1c1eef['key']?_0x1c1eef['newValue']&&_0x1c1eef['oldValue']?{'type':'format','content':At(_0x5f41cb,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x259f4=this['editor']['plugins']['get']('TrackChangesEditing');_0x259f4['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x259f4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x259f4['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x259f4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x41be0e=this['editor'],_0x2da8ee=_0x41be0e['locale'];_0x41be0e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4d68cd=>{if('formatBlock'!=_0x4d68cd['type']&&'formatInline'!=_0x4d68cd['type'])return;const {data:_0x1ce6f6}=_0x4d68cd;if(!_0x1ce6f6||'replaceImageSource'!=_0x1ce6f6['commandName'])return;return{'type':'format','content':At(_0x2da8ee,'*Format:*\x20replace\x20image\x20URL')};});}}class re extends _0x195c91{['afterInit'](){const _0x1eaf92=this['editor'];if(!_0x1eaf92['plugins']['has']('ImageStyleEditing'))return;const _0x2a3e2c=_0x1eaf92['plugins']['get']('TrackChangesEditing'),_0x4b3e73=_0x1eaf92['plugins']['get']('ImageUtils'),_0x44ecae={};_0x2a3e2c['enableCommand']('imageStyle',(_0x5428a2,_0x5a094e)=>{const _0x550dc3=_0x1eaf92['plugins']['get']('Users')['me'],_0x565315=_0x1eaf92['commands']['get']('imageStyle');let _0x1632d3=_0x4b3e73['getClosestSelectedImageElement'](_0x1eaf92['model']['document']['selection']),_0x117fcb=_0x1eaf92['model']['createRangeOn'](_0x1632d3),_0x2fbdb9=_0x565315['value'];if(_0x2fbdb9==_0x5a094e['value'])return;const _0x18dfe3={'commandName':'imageStyle','commandParams':[_0x5a094e],'formatGroupId':_0xc55715()};_0x1eaf92['model']['change'](()=>{if(_0x2a3e2c['getSuggestions']()['filter'](_0x4e7821=>_0x4e7821['isInContent']&&_0x550dc3==_0x4e7821['author']&&('formatBlock'==_0x4e7821['type']||'formatInline'==_0x4e7821['type'])&&('imageStylePreApply'==_0x4e7821['subType']||'imageStylePostApply'==_0x4e7821['subType'])&&_0x4e7821['getFirstRange']()['isEqual'](_0x117fcb))['forEach'](_0x156627=>_0x2a3e2c['discardSuggestion'](_0x156627['head'])),_0x1632d3=_0x4b3e73['getClosestSelectedImageElement'](_0x1eaf92['model']['document']['selection']),_0x117fcb=_0x1eaf92['model']['createRangeOn'](_0x1632d3),_0x565315['refresh'](),_0x1eaf92['commands']['get']('imageTypeInline')['refresh'](),_0x1eaf92['commands']['get']('imageTypeBlock')['refresh'](),_0x2fbdb9=_0x565315['value'],_0x2fbdb9!=_0x5a094e['value'])return _0x4b3e73['isInlineImage'](_0x1632d3)&&_0x565315['shouldConvertImageType'](_0x5a094e['value'],_0x1632d3)?(_0x5428a2({..._0x5a094e,'setImageSizes':!0x1}),_0x1632d3=_0x4b3e73['getClosestSelectedImageElement'](_0x1eaf92['model']['document']['selection']),void _0x2a3e2c['markBlockFormat'](_0x1632d3,{..._0x18dfe3,'commandReversedParams':[{'value':_0x2fbdb9||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x4b3e73['isBlockImage'](_0x1632d3)?_0x2a3e2c['markBlockFormat'](_0x1632d3,_0x18dfe3,[],'imageStylePostApply'):_0x2a3e2c['markInlineFormat'](_0x117fcb,_0x18dfe3,'imageStylePostApply'));});});for(const _0x1bdd9c of _0x1eaf92['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x44ecae[_0x1bdd9c['name']]=_0x1bdd9c['title']['toLowerCase']();_0x2a3e2c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x2a3e2c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x2a3e2c['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x2a3e2c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x1fcc8b])=>{_0x4b3e73['setImageNaturalSizeAttributes'](_0x1fcc8b['getContainedElement']());}),_0x2a3e2c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x518e06,_0x6f23c7)=>{_0x2a3e2c['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x518e06,{'commandName':_0x6f23c7['commandName'],'commandParams':_0x6f23c7['commandReversedParams']});}),_0x2a3e2c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x331383,_0x3e965a){if(_0x5daeb8(_0x331383,_0x3e965a))return[_0x331383,_0x3e965a];if(_0x5daeb8(_0x3e965a,_0x331383))return[_0x3e965a,_0x331383];return null;});const _0x361775=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5daeb8(_0x769e47,_0x13e7c7){const _0x16bf1d=_0x361775['findIndex'](({type:_0x17fd7c,subType:_0x1ac6b8})=>_0x769e47['type']==_0x17fd7c&&_0x769e47['subType']==_0x1ac6b8),_0x4a5caf=_0x361775['findIndex'](({type:_0x1f25f6,subType:_0x13d974})=>_0x13e7c7['type']==_0x1f25f6&&_0x13e7c7['subType']==_0x13d974);if(_0x16bf1d<0x0||_0x4a5caf<0x0)return!0x1;const _0x25a395=_0x769e47['getFirstRange'](),_0x328a72=_0x13e7c7['getFirstRange']();if((0x0==_0x16bf1d||0x1==_0x16bf1d)&&0x2==_0x4a5caf&&_0x25a395['isIntersecting'](_0x328a72))return!0x0;if(0x2==_0x16bf1d&&0x3==_0x4a5caf){const _0x597f53=_0x2a3e2c['_findSuggestions'](_0x25a395,'insertion')['filter'](({suggestion:_0x125eb6,meta:_0x3c9151})=>_0x3c9151['isOwn']&&'convertInlineImageToBlock'==_0x125eb6['subType']);if(_0x597f53['length']>0x1&&_0x328a72['end']['isEqual'](_0x25a395['start']))return!0x0;if(0x1==_0x597f53['length']&&(_0x25a395['start']['isEqual'](_0x328a72['end'])||_0x25a395['end']['isEqual'](_0x328a72['start'])))return!0x0;}if(0x3==_0x16bf1d&&0x3==_0x4a5caf&&_0x25a395['start']['isBefore'](_0x328a72['start'])){const _0x331a50=_0x25a395['end']['nodeAfter'],_0x234509=_0x328a72['start']['nodeBefore'];return _0x4b3e73['isBlockImage'](_0x331a50)&&_0x331a50===_0x234509;}return!0x1;}_0x1eaf92['model']['document']['registerPostFixer'](()=>{let _0x4c6760=!0x1;const _0x5d2d2e=Array['from'](_0x1eaf92['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4e7519,data:_0x285569}of _0x5d2d2e){const {group:_0x4cefe2,type:_0x299d57,subType:_0x3c35ec,id:_0x162737}=_0x4ae9fb(_0x4e7519);if('suggestion'==_0x4cefe2&&_0x2a3e2c['hasSuggestion'](_0x162737)){if('formatBlock'==_0x299d57&&('imageStylePreApply'==_0x3c35ec||'imageStylePostApply'==_0x3c35ec)){const _0x56a16b=_0x2a3e2c['getSuggestion'](_0x162737);if(_0x285569['newRange']){const _0x8ccae9=_0x56a16b['getFirstRange']()['getContainedElement']();if(_0x4b3e73['isBlockImage'](_0x8ccae9))continue;_0x2a3e2c['discardSuggestion'](_0x56a16b),_0x4c6760=!0x0;}}if('insertion'==_0x299d57&&'imageCaption'==_0x3c35ec&&!_0x285569['newRange']){const _0x523132=_0x2a3e2c['getSuggestion'](_0x162737);_0x523132['next']&&_0x523132['next']['isInContent']&&(_0x2a3e2c['discardSuggestion'](_0x523132['next']),_0x4c6760=!0x0);}}}return _0x4c6760;}),this['_registerLegacyDescription'](_0x44ecae);}['_registerLegacyDescription'](_0x1d9e1f){const _0x1d814a=this['editor'],_0x49f1c0=_0x1d814a['locale'];_0x1d814a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x39f30b=>{if('formatBlock'!=_0x39f30b['type']&&'formatInline'!=_0x39f30b['type'])return;const {data:_0x3fc3b4}=_0x39f30b;if(!_0x3fc3b4||'imageStyle'!=_0x3fc3b4['commandName'])return;const _0x526b46=_0x3fc3b4['commandParams'][0x0]['value'];return _0x430951('side'===_0x526b46?At(_0x49f1c0,'FORMAT_SIDE_IMAGE'):_0x1d9e1f[_0x526b46]||_0x526b46);function _0x430951(_0x3f7f39){return{'type':'format','content':At(_0x49f1c0,'*Format:*\x20%0',_0x3f7f39)};}});}}class oe extends _0x195c91{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x6cb8){super(_0x6cb8),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x5803f2=this['editor'],_0x68fdd0=_0x5803f2['commands']['get']('importWord'),_0x21a389=_0x5803f2['commands']['get']('trackChanges');_0x68fdd0&&(_0x68fdd0['on']('execute',(_0x1591b9,[,_0x527017])=>{this['_trackChangesValueDuringImport']=_0x21a389['value'],_0x527017['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x68fdd0,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x68fdd0,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x21a389['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x5803f2['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x365672,_0x31b7cd){const {suggestions:_0x3eaf7c}=_0x31b7cd,_0x3ac573=this['editor']['commands']['get']('trackChanges'),_0x4e9110=_0x3ac573['value'];this['_trackChangesValueDuringImport']!==_0x4e9110&&(_0x3ac573['execute'](),this['_trackChangesExecuted']=!0x0),_0x3eaf7c&&_0x3eaf7c['forEach'](({id:_0x6f5206,type:_0x39b099,author:_0x2d0133,created_at:_0x2656e2})=>{const _0x9c69a1={'id':_0x6f5206,'type':_0x39b099,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x2d0133,'createdAt':_0x2656e2?new Date(_0x2656e2):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x9c69a1);});}}class ae extends _0x195c91{['afterInit'](){const _0x30e0a8=this['editor'],_0x5b14c6=_0x30e0a8['plugins']['get']('TrackChangesEditing');if(_0x30e0a8['plugins']['has']('IndentEditing')&&(_0x5b14c6['enableCommand']('indent'),_0x5b14c6['enableCommand']('outdent')),_0x30e0a8['plugins']['has']('IndentBlock')){for(const _0x3ce6ae of['indentBlock','outdentBlock'])_0x5b14c6['enableDefaultAttributesIntegration'](_0x3ce6ae);if(_0x30e0a8['plugins']['has']('ListEditing')){for(const _0x498562 of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x5b14c6['enableDefaultAttributesIntegration'](_0x498562);}}const _0x4cf36a=_0x30e0a8['locale'];_0x5b14c6['descriptionFactory']['registerAttributeLabel']('blockIndent',At(_0x4cf36a,'FORMAT_INDENT')),_0x5b14c6['descriptionFactory']['registerAttributeLabel']('blockIndentList',At(_0x4cf36a,'FORMAT_INDENT')),_0x5b14c6['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',At(_0x4cf36a,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4f5ed5=this['editor'],_0x34da48=_0x4f5ed5['locale'],_0x32ea67=_0x4f5ed5['plugins']['get']('TrackChangesEditing');_0x32ea67['descriptionFactory']['registerDescriptionCallback'](_0x5de574=>{if('formatBlock'!=_0x5de574['type'])return;const {data:_0x4fd333}=_0x5de574;if(!_0x4fd333)return;if('indentBlock'!=_0x4fd333['commandName']&&'outdentBlock'!=_0x4fd333['commandName'])return;const _0x354495=_0x5de574['getItems']()[0x0],_0x57065b=_0x32ea67['descriptionFactory']['getItemLabel'](_0x354495);return'indentBlock'==_0x4fd333['commandName']?{'type':'format','content':At(_0x34da48,'*Indent:*\x20%0',_0x57065b)}:'outdentBlock'==_0x4fd333['commandName']?{'type':'format','content':At(_0x34da48,'*Outdent:*\x20%0',_0x57065b)}:void 0x0;});}}class ce extends _0x195c91{static get['requires'](){return[ct];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class le extends _0x195c91{['afterInit'](){const _0x57b56a=this['editor'];if(!_0x57b56a['plugins']['has']('LinkEditing'))return;const _0x345ed6=_0x57b56a['plugins']['get']('TrackChangesEditing'),_0x1df457=_0x57b56a['commands']['get']('link');_0x345ed6['enableDefaultAttributesIntegration']('link'),_0x345ed6['enableDefaultAttributesIntegration']('unlink');for(const _0x19e6bc of _0x1df457['manualDecorators'])_0x345ed6['descriptionFactory']['registerAttributeLabel'](_0x19e6bc['id'],'link\x20('+_0x19e6bc['label']['toLowerCase']()+')');_0x345ed6['descriptionFactory']['registerDescriptionCallback'](_0xef1fef=>{if('attribute'!=_0xef1fef['type'])return;const {data:_0x108ca3}=_0xef1fef;if(!_0x108ca3||'linkHref'!=_0x108ca3['key'])return;const _0x4fa936=_0x108ca3['newValue'],_0x38afb8=_0x57b56a['locale'];return{'type':'format','content':null==_0x4fa936?At(_0x38afb8,'*Remove\x20link*'):At(_0x38afb8,'*Set\x20link:*\x20%0','\x22'+_0x4fa936+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x57d415=this['editor'],_0x256f30=_0x57d415['locale'];_0x57d415['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x478ac3=>{if('formatInline'!=_0x478ac3['type'])return;const {data:_0x2bc155}=_0x478ac3;if(_0x2bc155){if('link'==_0x2bc155['commandName']){const _0x1385cf=_0x2bc155['commandParams'][0x0];return{'type':'format','content':At(_0x256f30,'*Set\x20link:*\x20%0','\x22'+_0x1385cf+'\x22')};}return'unlink'==_0x2bc155['commandName']?{'type':'format','content':At(_0x256f30,'*Remove\x20link*')}:void 0x0;}});}}class ue extends _0x195c91{['afterInit'](){const _0x3e7767=this['editor'],_0x124a68=_0x3e7767['locale'];if(!_0x3e7767['plugins']['has']('LegacyListEditing'))return;const _0x4b830a=_0x3e7767['plugins']['get']('TrackChangesEditing'),_0x56f72a=_0x3e7767['plugins']['has']('LegacyTodoListEditing');function _0x435c2f(_0x49118d){return()=>{const _0x10923a=_0x3e7767['model']['document']['selection'],_0x18c80e=_0x3e7767['commands']['get'](_0x49118d);if(_0x18c80e['value'])return void _0x3e7767['execute']('paragraph',{});const _0x1a7579=_0x49118d['slice'](0x0,-0x4),_0x57b43c=function(_0x538dbd,_0x1d7a20,_0x296905){let _0x360a44=Array['from'](_0x538dbd)['filter'](_0x5c222c=>function(_0x4a09f9,_0x230dc8){return _0x230dc8['checkChild'](_0x4a09f9['parent'],'listItem')&&!_0x230dc8['isObject'](_0x4a09f9);}(_0x5c222c,_0x296905));_0x360a44=_0x360a44['filter'](_0x415acc=>!_0x415acc['is']('element','listItem')||_0x415acc['getAttribute']('listType')!=_0x1d7a20);const _0x3b7581=new Set();for(const _0x1bf014 of _0x360a44)_0x1bf014['is']('element','listItem')?_0x3b7581['add'](he(_0x1bf014)):_0x3b7581['add'](_0x1bf014);return Array['from'](_0x3b7581);}(_0x10923a['getSelectedBlocks'](),_0x1a7579,_0x3e7767['model']['schema']);_0x3e7767['model']['change'](()=>{for(const _0x5f5476 of _0x57b43c)_0x4b830a['markBlockFormat'](_0x5f5476,{'commandName':_0x49118d,'commandParams':[{'forceValue':!_0x18c80e['value']}],'formatGroupId':'blockName'},de(_0x5f5476));});};}function _0x2f7151(_0x2798af){return()=>{const _0x39d999=function(_0x3fa0fc){let _0x3dfa11=Array['from'](_0x3fa0fc);const _0x25ad49=_0x3dfa11['findIndex'](_0x5f56bc=>'listItem'!=_0x5f56bc['name']);return _0x25ad49>-0x1&&(_0x3dfa11=_0x3dfa11['slice'](0x0,_0x25ad49)),_0x3dfa11;}(_0x3e7767['model']['document']['selection']['getSelectedBlocks']()),_0x38b943=_0x3e7767['model']['createRange'](_0x3e7767['model']['createPositionAt'](_0x39d999[0x0],'before'),_0x3e7767['model']['createPositionAt'](_0x39d999[_0x39d999['length']-0x1],'end'));_0x3e7767['model']['change'](()=>{_0x4b830a['markBlockFormat'](_0x38b943,{'commandName':_0x2798af,'commandParams':[],'formatGroupId':'listIndent'},function(_0x3b549f){const _0x1a58a5=new Set();for(const _0x57932e of _0x3b549f){let _0x48d50b=_0x57932e['nextSibling'];for(;_0x48d50b&&_0x48d50b['getAttribute']('listIndent')>_0x57932e['getAttribute']('listIndent');)_0x1a58a5['add'](_0x48d50b),_0x48d50b=_0x48d50b['nextSibling'];}return Array['from'](_0x1a58a5);}(_0x39d999));});};}_0x4b830a['enableCommand']('numberedList',_0x435c2f('numberedList')),_0x4b830a['enableCommand']('bulletedList',_0x435c2f('bulletedList')),_0x56f72a&&_0x4b830a['enableCommand']('todoList',_0x435c2f('todoList')),_0x4b830a['enableCommand']('indentList',_0x2f7151('indentList')),_0x4b830a['enableCommand']('outdentList',_0x2f7151('outdentList')),_0x56f72a&&_0x4b830a['enableCommand']('checkTodoList',()=>{const _0xfd5101=_0x3e7767['commands']['get']('checkTodoList'),_0x6fb890=Array['from'](_0xfd5101['_selectedElements']);_0x6fb890['filter'](_0x5dfa19=>_0x5dfa19['getAttribute']('todoListChecked')!=_0xfd5101['value']),_0x3e7767['model']['change'](()=>{for(const _0x299347 of _0x6fb890)_0x4b830a['markBlockFormat'](_0x299347,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0xfd5101['value']}]});});}),_0x4b830a['descriptionFactory']['registerElementLabel']('listItem',_0xa821e9=>At(_0x124a68,'ELEMENT_LIST_ITEM',_0xa821e9)),_0x4b830a['descriptionFactory']['registerDescriptionCallback'](_0x17f1ea=>{if('formatBlock'!=_0x17f1ea['type']&&'formatInline'!=_0x17f1ea['type'])return;const {data:_0x24df59}=_0x17f1ea;if(_0x24df59){if('numberedList'==_0x24df59['commandName']||'bulletedList'==_0x24df59['commandName']||'todoList'==_0x24df59['commandName'])switch(_0x24df59['commandName']['replace']('List','')){case'bulleted':return _0x410216(At(_0x124a68,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x410216(At(_0x124a68,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x410216(At(_0x124a68,'ELEMENT_TODO_LIST'));}if('indentList'==_0x24df59['commandName'])return{'type':'format','content':At(_0x124a68,'*Indent:*\x20%0',At(_0x124a68,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x24df59['commandName'])return{'type':'format','content':At(_0x124a68,'*Outdent:*\x20%0',At(_0x124a68,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x24df59['commandName'])return _0x24df59['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x124a68,'*Check\x20item*')}:{'type':'format','content':At(_0x124a68,'*Uncheck\x20item*')};}function _0x410216(_0x581625){return{'type':'format','content':At(_0x124a68,'*Change\x20to:*\x20%0',_0x581625)};}});}}function he(_0x3334ab){const _0x33deca=_0x3334ab['getAttribute']('listIndent');if(0x0==_0x33deca)return _0x3334ab;let _0x3219b2=_0x3334ab;for(;_0x3334ab['previousSibling']&&_0x3334ab['previousSibling']['is']('element','listItem');){const _0x519879=_0x3334ab['previousSibling']['getAttribute']('listIndent');if(_0x519879==_0x33deca)_0x3219b2=_0x3334ab['previousSibling'];else{if(_0x519879<_0x33deca)break;}_0x3334ab=_0x3334ab['previousSibling'];}return _0x3219b2;}function de(_0x40fb5d){const _0x32c1e0=[];if(_0x40fb5d['is']('element','listItem')&&_0x40fb5d['getAttribute']('listIndent')>0x0){let _0x44ff41=_0x40fb5d['nextSibling'];for(;_0x44ff41&&'listItem'==_0x44ff41['name']&&_0x44ff41['getAttribute']('listIndent')==_0x40fb5d['getAttribute']('listIndent');)_0x32c1e0['push'](_0x44ff41),_0x44ff41=_0x44ff41['nextSibling'];}return _0x32c1e0;}class fe extends _0x195c91{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x251790=this['editor']['config']['get']('list.properties'),_0x29b517=this['editor']['plugins']['get']('TrackChangesEditing');_0x251790['styles']&&_0x29b517['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x251790['reversed']&&_0x29b517['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x251790['startIndex']&&_0x29b517['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x29b517['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0xca8f4f,_0x32df5e={}){const _0x1909d9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x349dcc=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x1909d9['markMultiRangeBlockFormat'](_0x349dcc,{'commandName':'listStyle','commandParams':[{'type':_0x32df5e['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0xf38f8f,_0x2f1a5e={}){const _0x3aa377=this['editor']['plugins']['get']('TrackChangesEditing'),_0x297e20=this['_getSuggestionBlocks'](_0x31cdf5=>_0x31cdf5['is']('element','listItem')&&'numbered'===_0x31cdf5['getAttribute']('listType'));if(_0x297e20['length']<0x1)return;const _0x354335=_0x297e20['map'](_0x16633f=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x16633f,'before'),this['editor']['model']['createPositionAt'](_0x16633f,0x0)));this['editor']['model']['change'](()=>{_0x3aa377['markMultiRangeBlockFormat'](_0x354335,{'commandName':'listReversed','commandParams':[{'reversed':_0x2f1a5e['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x15d5f5,_0x79a5fd={}){const _0x175436=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1b7914=this['_getSuggestionBlocks'](_0x4545ca=>_0x4545ca['is']('element','listItem')&&'numbered'===_0x4545ca['getAttribute']('listType'));if(_0x1b7914['length']<0x1)return;const _0x2227bf=_0x1b7914['map'](_0x132f3a=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x132f3a,'before'),this['editor']['model']['createPositionAt'](_0x132f3a,0x0)));this['editor']['model']['change'](()=>{_0x175436['markMultiRangeBlockFormat'](_0x2227bf,{'commandName':'listStart','commandParams':[{'startIndex':_0x79a5fd['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x2a8e83){if('formatBlock'!=_0x2a8e83['type']&&'formatInline'!=_0x2a8e83['type'])return;const _0x5eb0b9=this['editor']['locale'],{data:_0x5a5671}=_0x2a8e83;if(!_0x5a5671)return;let _0x41b2ce,_0x4f4eab;switch(_0x5a5671['commandName']){case'listStyle':_0x41b2ce='*Change\x20to:*\x20%0',_0x4f4eab={'type':'format','content':At(_0x5eb0b9,_0x41b2ce,At(_0x5eb0b9,this['_getTranslationKeyForListStyle'](_0x5a5671['commandParams'][0x0]['type'])))};break;case'listReversed':_0x41b2ce=_0x5a5671['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4f4eab={'type':'format','content':At(_0x5eb0b9,_0x41b2ce)};break;case'listStart':_0x41b2ce='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4f4eab={'type':'format','content':At(_0x5eb0b9,_0x41b2ce,_0x5a5671['commandParams'][0x0]['startIndex'])};}return _0x4f4eab;}['_getSuggestionBlocksForListStyle'](){const _0x704883=this['editor']['plugins']['get']('LegacyListUtils');let _0x42b860=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x42b860[0x0]?.['is']('element','listItem')&&_0x42b860['unshift'](..._0x704883['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x42b860[_0x42b860['length']-0x1]?.['is']('element','listItem')&&_0x42b860['push'](..._0x704883['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x42b860=[...new Set(_0x42b860)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x42b860=_0x42b860['filter'](_0x429155=>_0x429155['is']('element','listItem'))),_0x42b860;}['_getSuggestionBlocks'](_0x37ce60){const _0x422438=this['editor']['plugins']['get']('LegacyListUtils');let _0xb0ab44=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x37ce60)['map'](_0x4b0f90=>{const _0x4e7a23=this['editor']['model']['createPositionAt'](_0x4b0f90,0x0);return[..._0x422438['getSiblingNodes'](_0x4e7a23,'backward'),..._0x422438['getSiblingNodes'](_0x4e7a23,'forward')];})['flat']();return _0xb0ab44=[...new Set(_0xb0ab44)],_0xb0ab44;}['_getTranslationKeyForListStyle'](_0x5cc999){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x5cc999)||'default')['toUpperCase']()+'_LIST_'+_0x5cc999['toUpperCase']()['replace'](/-/g,'_');}}class ge extends _0x195c91{['afterInit'](){const _0x33c265=this['editor'];if(!_0x33c265['plugins']['has']('MediaEmbedEditing'))return;const _0xc2cf34=_0x33c265['plugins']['get']('TrackChangesEditing'),_0x2172b2=_0x33c265['locale'];_0xc2cf34['enableCommand']('mediaEmbed'),_0xc2cf34['descriptionFactory']['registerElementLabel']('media',_0x54de8d=>At(_0x2172b2,'ELEMENT_MEDIA',_0x54de8d));}}class me extends _0x195c91{['afterInit'](){const _0x58ad05=this['editor'];_0x58ad05['plugins']['has']('MentionEditing')&&_0x58ad05['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class Ee extends _0x195c91{['afterInit'](){const _0x3a21be=this['editor'];if(!_0x3a21be['plugins']['has']('MergeFieldsEditing'))return;const _0x1a0c06=_0x3a21be['plugins']['get']('TrackChangesEditing'),_0x4a02bf=_0x3a21be['locale'];_0x1a0c06['enableCommand']('insertMergeField'),_0x1a0c06['enableCommand']('insertMergeFieldBlock'),_0x1a0c06['enableCommand']('insertMergeFieldImage'),_0x1a0c06['descriptionFactory']['registerElementLabel']('mergeField',_0x2e671e=>At(_0x4a02bf,'ELEMENT_MERGE_FIELD',_0x2e671e)),_0x1a0c06['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x59a0bb=>At(_0x4a02bf,'ELEMENT_MERGE_FIELD',_0x59a0bb)),_0x1a0c06['descriptionFactory']['registerDescriptionCallback'](_0x2ccbeb=>{if('insertion'!=_0x2ccbeb['type']&&'deletion'!=_0x2ccbeb['type'])return;const _0x3ea5e1=_0x2ccbeb['getContainedElement']();if(null==_0x3ea5e1)return;const _0x30492a=_0x3a21be['plugins']['get']('MergeFieldsEditing');let _0x427153;switch(_0x30492a['getMergeFieldType'](_0x3ea5e1)){case null:return;case'image':{const _0x3d7db3=_0x30492a['unwrapAffixes'](_0x3ea5e1['getAttribute']('src'));_0x427153=_0x30492a['getLabel'](_0x3d7db3)||_0x3d7db3;break;}default:{const _0x4138d4=_0x3ea5e1['getAttribute']('id');_0x427153=_0x30492a['getLabel'](_0x4138d4)||_0x4138d4;break;}}return'insertion'==_0x2ccbeb['type']?{'type':'insertion','content':At(_0x4a02bf,'*Insert:*\x20%0','\x22'+_0x427153+'\x22\x20'+At(_0x4a02bf,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':At(_0x4a02bf,'*Remove:*\x20%0','\x22'+_0x427153+'\x22\x20'+At(_0x4a02bf,'ELEMENT_MERGE_FIELD'))};});}}class Te extends _0x195c91{['afterInit'](){const _0x3a58da=this['editor'],_0x3e7c66=_0x3a58da['plugins']['get']('TrackChangesEditing');_0x3a58da['plugins']['has']('MultiLevelList')&&(_0x3e7c66['enableDefaultAttributesIntegration']('multiLevelList'),_0x3e7c66['descriptionFactory']['registerDescriptionCallback'](_0x15eeba=>this['handleDescriptions'](_0x15eeba)));}['handleDescriptions'](_0x27d60b){const _0x5bec5a=this['editor']['locale'],{data:_0x129c12}=_0x27d60b,_0x38186b={'type':'format','content':''};if(_0x129c12&&'listMarkerStyle'==_0x129c12['key']){if(!_0x129c12['oldValue'])return{'type':'format','content':At(_0x5bec5a,'*Set\x20format:*\x20%0',At(_0x5bec5a,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x129c12['newValue']+')'};if(!_0x129c12['newValue']){let _0x19343b=_0x27d60b['head'];for(;_0x19343b;){if(_0x19343b['data']&&'listType'==_0x19343b['data']['key']&&_0x19343b['data']['newValue'])return _0x38186b;_0x19343b=_0x19343b['next'];}return{'type':'format','content':At(_0x5bec5a,'*Remove\x20format:*\x20%0',At(_0x5bec5a,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x129c12['oldValue']+')'};}}}}class _e extends _0x195c91{['afterInit'](){const _0x3cba26=this['editor'];if(!_0x3cba26['plugins']['has']('PageBreakEditing'))return;_0x3cba26['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x42323b=_0x3cba26['plugins']['get']('TrackChangesEditing'),_0x2d4f14=_0x3cba26['locale'];_0x42323b['descriptionFactory']['registerElementLabel']('pageBreak',_0x4a5970=>At(_0x2d4f14,'ELEMENT_PAGE_BREAK',_0x4a5970));}}class pe extends _0x195c91{['afterInit'](){const _0x80da70=this['editor'];if(!_0x80da70['plugins']['has']('Paragraph'))return;const _0x33b0da=_0x80da70['locale'],_0x4c275c=_0x80da70['plugins']['get']('TrackChangesEditing');_0x4c275c['descriptionFactory']['registerElementLabel']('paragraph',_0x560e01=>At(_0x33b0da,'ELEMENT_PARAGRAPH',_0x560e01)),_0x4c275c['enableDefaultAttributesIntegration']('paragraph'),_0x4c275c['enableCommand']('insertParagraph');const _0x39ce37=_0x4c275c['descriptionFactory'];_0x39ce37['registerDescriptionCallback'](_0x397da3=>{if('insertion'!==_0x397da3['type'])return;const {start:_0x59b4d0,end:_0x1eb9f1}=_0x397da3['getFirstRange']();if(!_0x59b4d0['isTouching'](_0x1eb9f1)||!_0x59b4d0['nodeAfter'])return;const _0x2d24a0=_0x80da70['model']['schema'],_0x2e75ac=_0x59b4d0['nodeAfter'];return _0x2d24a0['isBlock'](_0x2e75ac)&&!_0x2d24a0['isLimit'](_0x2e75ac)&&_0x2d24a0['checkChild'](_0x2e75ac,'$text')?{'type':'insertion','content':At(_0x33b0da,'*Insert:*\x20%0',_0x39ce37['getItemLabel'](_0x2e75ac,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1c93b2=this['editor'],_0x124b35=_0x1c93b2['locale'];_0x1c93b2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2907ec=>{if('formatBlock'!=_0x2907ec['type'])return;const {data:_0xf89c59}=_0x2907ec;return _0xf89c59&&'paragraph'==_0xf89c59['commandName']?{'type':'format','content':At(_0x124b35,'*Change\x20to:*\x20%0',At(_0x124b35,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class Le extends _0x195c91{['afterInit'](){const _0x2e6026=this['editor'];_0x2e6026['commands']['get']('replaceSource')&&_0x2e6026['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class Ie extends _0x195c91{['afterInit'](){const _0x2e46ac=this['editor'];if(!_0x2e46ac['plugins']['has']('RemoveFormatEditing'))return;_0x2e46ac['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x25b438=this['editor'];_0x25b438['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x35c93f=>{if('formatBlock'!=_0x35c93f['type']&&'formatInline'!=_0x35c93f['type'])return;const {data:_0x5a6dd6}=_0x35c93f;return _0x5a6dd6&&'removeFormat'==_0x5a6dd6['commandName']?{'type':'format','content':At(_0x25b438['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class be extends _0x195c91{['afterInit'](){const _0x153b86=this['editor'];if(!_0x153b86['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x5056c8=_0x153b86['plugins']['get']('TrackChangesEditing');_0x5056c8['enableCommand']('goToPreviousRestrictedEditingException'),_0x5056c8['enableCommand']('goToNextRestrictedEditingException');const _0x3e3e84=_0x153b86['plugins']['get']('RestrictedEditingModeEditing');_0x3e3e84['enableCommand']('trackChanges'),_0x3e3e84['enableCommand']('acceptSuggestion'),_0x3e3e84['enableCommand']('discardSuggestion'),_0x3e3e84['enableCommand']('acceptAllSuggestions'),_0x3e3e84['enableCommand']('discardAllSuggestions'),_0x3e3e84['enableCommand']('acceptSelectedSuggestions'),_0x3e3e84['enableCommand']('discardSelectedSuggestions');}}class Ae extends _0x195c91{['afterInit'](){const _0x2cf81e=this['editor'];if(!_0x2cf81e['plugins']['has']('ShiftEnter'))return;const _0x436049=_0x2cf81e['plugins']['get']('TrackChangesEditing');_0x436049['enableCommand']('shiftEnter'),_0x436049['descriptionFactory']['registerElementLabel']('softBreak',_0x534901=>At(_0x2cf81e['locale'],'ELEMENT_LINE_BREAK',_0x534901));}}function ke(_0x4525ce,_0x43d12f,_0x18b179){const _0x36838d=[];for(const _0x5e784b of _0x43d12f['getItems']())_0x5e784b['hasAttribute'](_0x4525ce)&&_0x36838d['push'](_0x18b179['createRangeOn'](_0x5e784b));return _0x36838d;}class Ce extends _0x195c91{['afterInit'](){const _0x27e844=this['editor'],_0x47d18d=_0x27e844['plugins']['get']('TrackChangesEditing');_0x27e844['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x47d18d['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x166af0=this['editor'],_0xb42e13=_0x166af0['model'],_0x4c27bd=_0x166af0['locale'],_0x5e64e4=_0x166af0['plugins']['get']('TrackChangesEditing'),_0x3f8820='restrictedEditingException',_0x48ec11=_0x166af0['commands']['get'](_0x3f8820);_0x5e64e4['enableCommand'](_0x3f8820,(_0x99ce5f,_0xc60e1f={})=>{const _0x3bd22c=_0xb42e13['document']['selection'];if(_0x3bd22c['isCollapsed'])return void _0x99ce5f(_0xc60e1f);const _0x2df2d6=void 0x0!==_0xc60e1f['forceValue']?_0xc60e1f['forceValue']:!_0x48ec11['value'];_0xb42e13['change'](()=>{const _0x1d6be6=Array['from'](_0x3bd22c['getRanges']());for(const _0x3a7b3e of _0x1d6be6){const _0x1c0374=_0x2df2d6?[_0x3a7b3e]:ke(_0x3f8820,_0x3a7b3e,_0xb42e13);for(const _0x3ebff4 of _0x1c0374)_0x5e64e4['markInlineFormat'](_0x3ebff4,{'commandName':_0x3f8820,'commandParams':[{'forceValue':_0x2df2d6}]});}});}),_0x5e64e4['descriptionFactory']['registerDescriptionCallback'](_0x535da5=>{if('formatBlock'!=_0x535da5['type']&&'formatInline'!=_0x535da5['type'])return;const {data:_0x44115d}=_0x535da5;return _0x44115d&&_0x44115d['commandName']==_0x3f8820?_0x44115d['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x4c27bd,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':At(_0x4c27bd,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x1aa5cf=this['editor'],_0x39830b=_0x1aa5cf['locale'],_0x4d210b=_0x1aa5cf['plugins']['get']('TrackChangesEditing'),_0x5ade6a='restrictedEditingExceptionBlock',_0x200e2e=this['editor']['commands']['get'](_0x5ade6a);_0x4d210b['enableCommand'](_0x5ade6a,(_0x1e73dd,_0x1efa62={})=>{const _0xf3ccb8=this['editor']['model']['document']['selection'],_0x4824c7=_0x1efa62&&void 0x0!==_0x1efa62['forceValue']?_0x1efa62['forceValue']:!_0x200e2e['value'];let _0x323f36=[];if(_0x4824c7){const _0x3a4f51=Array['from'](_0xf3ccb8['getSelectedBlocks']())['filter'](_0x1b93bd=>function(_0x3ecff0){return!!_0x3ecff0['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x1b93bd)||function(_0x551274,_0x592a68){const _0x1d88f5=_0x592a68['createContext'](_0x551274['parent']);if(!_0x592a68['checkChild'](_0x1d88f5,'restrictedEditingException'))return!0x1;if(!_0x592a68['checkChild'](_0x1d88f5['push']('restrictedEditingException'),_0x551274))return!0x1;return!0x0;}(_0x1b93bd,this['editor']['model']['schema']));_0x323f36=Tt(_0x3a4f51,_0x1aa5cf['model']);}else{const _0x505f64=Array['from'](_0xf3ccb8['getSelectedBlocks']())['map'](_0x307ef1=>function(_0x2b6957){let _0x2f2f76=_0x2b6957;for(;_0x2f2f76['parent'];){if('restrictedEditingException'==_0x2f2f76['parent']['name'])return _0x2f2f76;_0x2f2f76=_0x2f2f76['parent'];}return null;}(_0x307ef1))['filter'](_0x15cbc4=>!!_0x15cbc4);_0x323f36=Tt(_0x505f64,_0x1aa5cf['model']);}_0x1aa5cf['model']['change'](()=>{for(const _0x44b703 of _0x323f36)_0x4d210b['markBlockFormat'](_0x44b703,{'commandName':_0x5ade6a,'commandParams':[{'forceValue':_0x4824c7}]});});}),_0x4d210b['descriptionFactory']['registerDescriptionCallback'](_0x3ad13d=>{const {data:_0xb9f84a}=_0x3ad13d;if(_0xb9f84a&&_0xb9f84a['commandName']==_0x5ade6a)return _0xb9f84a['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x39830b,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':At(_0x39830b,'FORMAT_RESTRICTED_DISABLED')};});}}class ye extends _0x195c91{['afterInit'](){const _0x334701=this['editor'];if(!_0x334701['plugins']['has']('Style')||!_0x334701['plugins']['has']('DataSchema'))return;const _0xf0c432=_0x334701['plugins']['get']('TrackChangesEditing'),_0x5b87d7=_0x334701['locale'],_0x2c3614=_0x334701['config']['get']('style')||{},_0x5300a2=_0x334701['plugins']['get']('GeneralHtmlSupport'),_0x5cef8d=_0x334701['plugins']['get']('StyleUtils')['normalizeConfig'](_0x334701['plugins']['get']('DataSchema'),_0x2c3614['definitions']);_0xf0c432['enableDefaultAttributesIntegration']('style');const _0x39ef59=new Set();for(const _0x47e71c of _0x5cef8d['block']){const _0x2fe4d8=_0x5300a2['getGhsAttributeNameForElement'](_0x47e71c['element']);_0x39ef59['add'](_0x2fe4d8);}const _0xff08b6=new Set();for(const _0x42deec of _0x5cef8d['inline']){const _0x33e244=_0x5300a2['getGhsAttributeNameForElement'](_0x42deec['element']);_0xff08b6['add'](_0x33e244);for(const _0x11dd89 of _0x42deec['ghsAttributes'])_0xff08b6['add'](_0x11dd89);}for(const _0x1b2fce of _0x39ef59)_0xf0c432['descriptionFactory']['registerAttributeLabel'](_0x1b2fce,At(_0x5b87d7,'FORMAT_STYLE'));for(const _0x456834 of _0xff08b6)_0xf0c432['descriptionFactory']['registerAttributeLabel'](_0x456834,At(_0x5b87d7,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1a6ebc=this['editor'],_0x48e20f=_0x1a6ebc['locale'];_0x1a6ebc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x52f622=>{if('formatBlock'!=_0x52f622['type']&&'formatInline'!=_0x52f622['type'])return;const {data:_0x497abc}=_0x52f622;return _0x497abc&&'style'===_0x497abc['commandName']?_0x497abc['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x48e20f,'*Set\x20format:*\x20%0',_0x497abc['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':At(_0x48e20f,'*Remove\x20format:*\x20%0',_0x497abc['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ne extends _0x195c91{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x4bf53a){super(_0x4bf53a),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x5a5176=this['editor'],_0x42ec0a=_0x5a5176['model']['document']['selection'];if(!_0x5a5176['plugins']['has']('TableEditing'))return;const _0x5a2993=_0x5a5176['locale'],_0xe0afbf=_0x5a5176['plugins']['get']('TrackChangesEditing'),_0x115ace=_0x5a5176['plugins']['get']('TableUtils');_0xe0afbf['descriptionFactory']['registerElementLabel']('table',_0x3926ad=>At(_0x5a2993,'ELEMENT_TABLE',_0x3926ad)),this['_setupColumnsRowsFixing'](),_0xe0afbf['enableCommand']('insertTable'),_0xe0afbf['enableCommand']('selectTableRow'),_0xe0afbf['enableCommand']('selectTableColumn');for(const _0x5d0ca1 of['insertTableRowAbove','insertTableRowBelow']){const _0x17705a=_0x5a5176['commands']['get'](_0x5d0ca1);_0xe0afbf['enableCommand'](_0x5d0ca1,_0x3318dd=>{_0x5a5176['model']['change'](_0x40d987=>{_0x3318dd();const _0x274809='above'===_0x17705a['order'],_0x555fa1=_0x115ace['getSelectionAffectedTableCells'](_0x42ec0a),_0x1f5e10=_0x115ace['getRowIndexes'](_0x555fa1),_0xff2a46=_0x274809?_0x1f5e10['first']-0x1:_0x1f5e10['last']+0x1,_0x345cb0=_0x555fa1[0x0]['findAncestor']('table'),_0x14bcda=_0x115ace['createTableWalker'](_0x345cb0,{'startRow':_0xff2a46,'endRow':_0xff2a46}),_0x5e1b61=Array['from'](_0x14bcda)['map'](_0x2715fa=>_0x40d987['createRangeOn'](_0x2715fa['cell']));_0xe0afbf['markMultiRangeInsertion'](_0x5e1b61,'tableRow');});});}for(const _0xe307bf of['insertTableColumnLeft','insertTableColumnRight']){const _0x35e676=_0x5a5176['commands']['get'](_0xe307bf);_0xe0afbf['enableCommand'](_0xe307bf,_0x6f17c9=>{_0x5a5176['model']['change'](_0x381547=>{_0x6f17c9();const _0x29a708='left'===_0x35e676['order'],_0x479285=_0x115ace['getSelectionAffectedTableCells'](_0x42ec0a),_0x37054b=_0x115ace['getColumnIndexes'](_0x479285),_0x2016cd=_0x29a708?_0x37054b['first']-0x1:_0x37054b['last']+0x1,_0x45c950=_0x479285[0x0]['findAncestor']('table'),_0x65b100=_0x115ace['createTableWalker'](_0x45c950,{'startRow':0x0,'column':_0x2016cd,'includeAllSlots':!0x1}),_0x44e764=Array['from'](_0x65b100)['map'](_0x4be028=>_0x381547['createRangeOn'](_0x4be028['cell']));_0xe0afbf['markMultiRangeInsertion'](_0x44e764,'tableColumn');});});}for(const _0x5b54e8 of['removeTableRow','removeTableColumn']){const _0x4598ac=_0x5b54e8['substr'](0xb),_0x1120f0=_0x4598ac['toLowerCase'](),_0x4ccfd3=_0x1120f0['substr'](0x0,0x3)+'span',_0x43b955='table'+_0x4598ac,_0x64a8e1='min'+_0x4598ac,_0x1a252c='max'+_0x4598ac;_0xe0afbf['enableCommand'](_0x5b54e8,()=>{_0x5a5176['model']['change'](_0x59f934=>{const _0x21b481=_0x115ace['getSelectionAffectedTableCells'](_0x42ec0a),_0x38b272=_0x21b481[0x0]['findAncestor']('table');let _0x2419f4;if('removeTableRow'==_0x5b54e8){const _0x1d0cfc=_0x115ace['getRowIndexes'](_0x21b481);_0x2419f4={'startRow':_0x1d0cfc['first'],'endRow':_0x1d0cfc['last'],'includeAllSlots':!0x0};}else{const _0x22442b=_0x115ace['getColumnIndexes'](_0x21b481);_0x2419f4={'startColumn':_0x22442b['first'],'endColumn':_0x22442b['last'],'includeAllSlots':!0x0};}const _0x5e1b33=_0x115ace['createTableWalker'](_0x38b272,_0x2419f4),_0x85b231=Array['from'](_0x5e1b33)['map'](({cell:_0x445203})=>_0x445203),_0x1385c9=Re(_0x85b231['filter'](_0x58a1a6=>_0x58a1a6['hasAttribute'](_0x4ccfd3))),_0x3d7f4c=Re(_0x85b231['filter'](_0x255307=>!_0x255307['hasAttribute'](_0x4ccfd3)))['map'](_0x3a3023=>_0x59f934['createRangeOn'](_0x3a3023)),_0x4ef03d=_0xe0afbf['markMultiRangeDeletion'](_0x3d7f4c,_0x43b955);if(_0x4ef03d&&('tableRow'==_0x4ef03d['subType']||'tableColumn'==_0x4ef03d['subType'])){const _0x21a95e=this['_getSuggestionCoords'](_0x4ef03d);for(const _0x1ce3f9 of _0x1385c9){const _0x4ee19e=_0x59f934['createRangeOn'](_0x1ce3f9),_0x437cc9=_0x115ace['getCellLocation'](_0x1ce3f9),_0x3eb429=_0x1ce3f9['getAttribute'](_0x4ccfd3)-0x1,_0x2ff444=_0x21a95e[_0x64a8e1],_0x25f0bc=_0x21a95e[_0x1a252c];_0x2ff444<=_0x437cc9[_0x1120f0]&&_0x437cc9[_0x1120f0]+_0x3eb429<=_0x25f0bc&&_0x4ef03d['addRange'](_0x4ee19e);}}});});}function _0x38c707(_0x1e8b83){const _0x2115e1=Array['from'](_0x42ec0a['getRanges']())['map'](_0x474076=>_0x5e7de2['fromRange'](_0x474076));_0x5a5176['model']['change'](_0x402104=>{const _0x53a6e3=_0x402104['batch'];_0x1e8b83=_0x1e8b83['filter'](_0x1ac5b8=>'$graveyard'!=_0x1ac5b8['root']['rootName']),_0x402104['setSelection'](_0x1e8b83),_0x5a5176['commands']['get']('removeTableRow')['refresh'](),_0x5a5176['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x5a5176['model']['enqueueChange'](()=>{_0x5a5176['model']['enqueueChange'](_0x53a6e3,_0x56ccb7=>{const _0x3cc56=_0x2115e1['filter'](_0x212d2b=>'$graveyard'!=_0x212d2b['root']['rootName']);_0x3cc56['length']>0x0&&_0x56ccb7['setSelection'](_0x3cc56);for(const _0x5a84b6 of _0x2115e1)_0x5a84b6['detach']();});});});}function _0x1d5522(_0x5c3c96){_0x5a5176['model']['change'](_0x18faf6=>{const _0x4b019a=Array['from'](_0x42ec0a['getRanges']())['map'](_0x3b06a7=>_0x5e7de2['fromRange'](_0x3b06a7)),_0x1a61fc=[];for(const _0x57ade1 of _0x5c3c96)for(const _0x468499 of _0x57ade1['getItems']({'shallow':!0x0}))_0x1a61fc['push'](_0x468499);for(const _0x3f802a of _0x1a61fc)'$graveyard'!=_0x3f802a['root']['rootName']&&(_0x18faf6['setSelection'](_0x18faf6['createPositionAt'](_0x3f802a,0x0)),_0x5a5176['commands']['get']('removeTableColumn')['refresh'](),_0x5a5176['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x26aaa3=_0x4b019a['filter'](_0x318f77=>'$graveyard'!=_0x318f77['root']['rootName']);_0x26aaa3['length']>0x0&&_0x18faf6['setSelection'](_0x26aaa3);for(const _0x29bed5 of _0x4b019a)_0x29bed5['detach']();});}function _0x101e9c(_0x223bd1,_0x435f5c){return _0x435f5c['every'](_0x220b71=>_0x223bd1['some'](_0x4a8327=>_0x4a8327['end']['isEqual'](_0x220b71['start'])||_0x220b71['end']['isEqual'](_0x4a8327['start'])));}function _0x517b8c(_0x4b6ef9,_0x457ded){return!_0x4b6ef9['some'](_0x514c06=>_0x457ded['some'](_0x5ea8e8=>_0x514c06['isIntersecting'](_0x5ea8e8)))&&_0x4b6ef9['some'](_0xc02ae8=>_0x457ded['some'](_0x280db8=>_0xc02ae8['end']['isTouching'](_0x280db8['start'])));}_0xe0afbf['descriptionFactory']['registerDescriptionCallback'](_0x576dcc=>{if('insertion'!=_0x576dcc['type']&&'deletion'!=_0x576dcc['type'])return;const _0x4391fb=_0x576dcc['getContainedElement']();if(null!=_0x4391fb&&_0x4391fb['is']('element','table')){if('insertion'==_0x576dcc['type']){const _0x40a62e=_0x576dcc['getItems']()['filter'](_0x380345=>_0x380345['is']('$textProxy'))['map'](_0x3c58cd=>_0x3c58cd['data']);if(_0x40a62e['length'])return{'type':'insertion','content':At(_0x5a2993,'*Insert:*\x20%0',At(_0x5a2993,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x40a62e['join']('\x20')+'\x22'))};}if('deletion'==_0x576dcc['type']){const _0x2d64ca=_0x576dcc['getItems']()['filter'](_0x834764=>_0x834764['is']('$textProxy'))['map'](_0x419f3d=>_0x419f3d['data']);if(_0x2d64ca['length'])return{'type':'deletion','content':At(_0x5a2993,'*Remove:*\x20%0',At(_0x5a2993,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2d64ca['join']('\x20')+'\x22'))};}}}),_0xe0afbf['descriptionFactory']['registerDescriptionCallback'](_0x324cf9=>{if('tableRow'==_0x324cf9['subType']){const _0x4c1aa0=_0x324cf9['getItems']()['filter'](_0x3551f0=>_0x3551f0['is']('$textProxy'))['map'](_0x4f1726=>_0x4f1726['data']),_0x126d55=this['_getSuggestionCoords'](_0x324cf9),_0x22cd3b=_0x126d55['maxRow']-_0x126d55['minRow']+0x1;if('insertion'==_0x324cf9['type'])return _0x4c1aa0['length']?{'type':'insertion','content':At(_0x5a2993,'*Insert:*\x20%0',At(_0x5a2993,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x22cd3b,'\x22'+_0x4c1aa0['join']('\x20')+'\x22']))}:{'type':'insertion','content':At(_0x5a2993,'*Insert:*\x20%0',At(_0x5a2993,'ELEMENT_TABLE_ROW',_0x22cd3b))};if('deletion'==_0x324cf9['type'])return _0x4c1aa0['length']?{'type':'deletion','content':At(_0x5a2993,'*Remove:*\x20%0',At(_0x5a2993,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x22cd3b,'\x22'+_0x4c1aa0['join']('\x20')+'\x22']))}:{'type':'deletion','content':At(_0x5a2993,'*Remove:*\x20%0',At(_0x5a2993,'ELEMENT_TABLE_ROW',_0x22cd3b))};}if('tableColumn'==_0x324cf9['subType']){const _0xd2b9b4=_0x324cf9['getItems']()['filter'](_0x24412e=>_0x24412e['is']('$textProxy'))['map'](_0x3f01f5=>_0x3f01f5['data']),_0x1b4326=this['_getSuggestionCoords'](_0x324cf9),_0x41ebf9=_0x1b4326['maxColumn']-_0x1b4326['minColumn']+0x1;if('insertion'==_0x324cf9['type'])return _0xd2b9b4['length']?{'type':'insertion','content':At(_0x5a2993,'*Insert:*\x20%0',At(_0x5a2993,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x41ebf9,'\x22'+_0xd2b9b4['join']('\x20')+'\x22']))}:{'type':'insertion','content':At(_0x5a2993,'*Insert:*\x20%0',At(_0x5a2993,'ELEMENT_TABLE_COLUMN',_0x41ebf9))};if('deletion'==_0x324cf9['type'])return _0xd2b9b4['length']?{'type':'deletion','content':At(_0x5a2993,'*Remove:*\x20%0',At(_0x5a2993,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x41ebf9,'\x22'+_0xd2b9b4['join']('\x20')+'\x22']))}:{'type':'deletion','content':At(_0x5a2993,'*Remove:*\x20%0',At(_0x5a2993,'ELEMENT_TABLE_COLUMN',_0x41ebf9))};}}),_0xe0afbf['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x38c707),_0xe0afbf['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x38c707),_0xe0afbf['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x1d5522),_0xe0afbf['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x1d5522),_0xe0afbf['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x101e9c),_0xe0afbf['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x101e9c),_0xe0afbf['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x517b8c),_0xe0afbf['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x517b8c);}['_acceptFormatSuggestionCallbackFactory'](){const _0x1d9833=this['editor'],_0x5bae11=_0x1d9833['model']['document']['selection'];return(_0x5be201,_0x37c9f0)=>{_0x1d9833['model']['change'](_0x1d186a=>{const {commandName:_0x355197,commandParams:_0x488f9f}=_0x37c9f0;let _0x18eaa7=_0x5be201[0x0]['end']['nodeBefore'];_0x488f9f&&_0x488f9f[0x0]&&!0x1===_0x488f9f[0x0]['forceValue']&&(_0x18eaa7=_0x5be201[0x0]['start']['nodeAfter']);const _0x1e73f0=_0x1d186a['createRangeIn'](_0x18eaa7);if('$graveyard'==_0x1e73f0['root']['rootName'])return;const _0x3cfb4b=Array['from'](_0x5bae11['getRanges']())['map'](_0x410eb9=>_0x5e7de2['fromRange'](_0x410eb9));_0x1d186a['setSelection'](_0x1e73f0),_0x1d9833['commands']['get'](_0x355197)['refresh'](),_0x488f9f['push']({'forceDefaultExecution':!0x0}),_0x1d9833['execute'](_0x355197,..._0x488f9f);const _0x4e424f=_0x3cfb4b['filter'](_0x28728b=>'$graveyard'!=_0x28728b['root']['rootName']);_0x4e424f['length']>0x0&&_0x1d186a['setSelection'](_0x4e424f);for(const _0x547c54 of _0x3cfb4b)_0x547c54['detach']();});};}['_getCoordsForCells'](_0x2bda57){const _0x2690ba=this['editor']['plugins']['get']('TableUtils');let _0x54278e=Number['MAX_SAFE_INTEGER'],_0x3e638a=Number['MIN_SAFE_INTEGER'],_0x5772af=Number['MAX_SAFE_INTEGER'],_0x14b18a=Number['MIN_SAFE_INTEGER'];for(const _0x2ed37d of _0x2bda57){if('$graveyard'==_0x2ed37d['root']['rootName'])continue;const {row:_0x5ba660,column:_0x54b2ca}=_0x2690ba['getCellLocation'](_0x2ed37d),_0x5c3c1b=_0x2ed37d['hasAttribute']('rowspan')?_0x2ed37d['getAttribute']('rowspan')-0x1:0x0,_0x174db2=_0x2ed37d['hasAttribute']('colspan')?_0x2ed37d['getAttribute']('colspan')-0x1:0x0;_0x54278e=_0x5ba660<_0x54278e?_0x5ba660:_0x54278e,_0x3e638a=_0x5ba660+_0x5c3c1b>_0x3e638a?_0x5ba660+_0x5c3c1b:_0x3e638a,_0x5772af=_0x54b2ca<_0x5772af?_0x54b2ca:_0x5772af,_0x14b18a=_0x54b2ca+_0x174db2>_0x14b18a?_0x54b2ca+_0x174db2:_0x14b18a;}return{'minRow':_0x54278e,'maxRow':_0x3e638a,'minColumn':_0x5772af,'maxColumn':_0x14b18a};}['_setupColumnsRowsFixing'](){const _0x5ad533=this['editor'],_0x556e65=_0x5ad533['plugins']['get']('TrackChangesEditing'),_0x36f97b=_0x5ad533['plugins']['get']('TableUtils');_0x5ad533['model']['document']['on']('change:data',()=>{const _0x24e285=Array['from'](_0x5ad533['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1115aa,data:_0x527091}of _0x24e285){const {group:_0x1ca06d,id:_0x37fcf4,subType:_0x2f8ddc}=_0x4ae9fb(_0x1115aa);if('suggestion'!=_0x1ca06d)continue;if(null!=_0x527091['oldRange'])continue;const _0x5f46d=_0x556e65['getSuggestion'](_0x37fcf4);this['_tablePostFixingSubtypes']['includes'](_0x2f8ddc)&&this['_tableSuggestions']['add'](_0x5f46d);}},{'priority':'low'});const _0x4112f9=(_0x216173,_0x4fc201)=>{let _0x2fb9ab=!0x1;const _0x1c4ddf=_0x4fc201['createRangeOn'](_0x216173),_0x4e73ec=_0x216173['findAncestor']('table'),_0x1fe490=_0x36f97b['getCellLocation'](_0x216173);for(const _0x531730 of this['_tableSuggestions']){const _0x3fa38e=_0x531730['subType'],_0x469066=_0x3fa38e['startsWith']('tablePaste'),_0x4551e6=_0x3fa38e['substr'](_0x469066?0xa:0x5),_0x4e7c7a=_0x4551e6['toLowerCase'](),_0x563178=_0x4e7c7a['substr'](0x0,0x3)+'span',_0x4f89ce='min'+_0x4551e6,_0x2d838a='max'+_0x4551e6;if(!_0x531730['isInContent'])continue;if(_0x4e73ec!=_0x531730['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x531730['isIntersectingWithRange'](_0x1c4ddf))continue;const _0x470cee=_0x216173['hasAttribute'](_0x563178)?_0x216173['getAttribute'](_0x563178)-0x1:0x0,_0x25e1dd=this['_getSuggestionCoords'](_0x531730),_0x47734e=_0x25e1dd[_0x4f89ce],_0x20e7ce=_0x25e1dd[_0x2d838a];_0x47734e<=_0x1fe490[_0x4e7c7a]&&_0x1fe490[_0x4e7c7a]+_0x470cee<=_0x20e7ce&&(_0x531730['addRange'](_0x1c4ddf),_0x2fb9ab=!0x0);}return _0x2fb9ab;};_0x5ad533['model']['document']['registerPostFixer'](_0x458cec=>{let _0x224cfc=!0x1;for(const _0x581223 of _0x5ad533['model']['document']['differ']['getChanges']())if('insert'==_0x581223['type']){if('tableRow'==_0x581223['name']){for(const _0x31d0e8 of _0x581223['position']['nodeAfter']['getChildren']())_0x224cfc=_0x224cfc||_0x4112f9(_0x31d0e8,_0x458cec);}else'tableCell'==_0x581223['name']&&(_0x224cfc=_0x224cfc||_0x4112f9(_0x581223['position']['nodeAfter'],_0x458cec));}return _0x224cfc;});}['_getSuggestionCoords'](_0x3529b1){return this['_getCoordsForCells'](_0x3529b1['getRanges']()['map'](_0x2e9df1=>_0x2e9df1['start']['nodeAfter']));}}function Re(_0x548f2e){return Array['from'](new Set(_0x548f2e)['values']());}class Se extends _0x195c91{static get['requires'](){return[Ne];}['afterInit'](){const _0x4f9d65=this['editor'],_0x2fef12=_0x4f9d65['model']['document']['selection'],_0x4002f0=_0x4f9d65['locale'];if(!_0x4f9d65['plugins']['has']('TableEditing'))return;const _0x46d840=_0x4f9d65['plugins']['get']('TrackChangesEditing'),_0x470c59=_0x4f9d65['plugins']['get']('TableUtils'),_0x376b1d=_0x4f9d65['plugins']['get'](Ne);_0x376b1d['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x46d840['enableCommand']('mergeTableCells',()=>{const _0x5d2f33=_0x470c59['getSelectionAffectedTableCells'](_0x4f9d65['model']['document']['selection']);_0x4f9d65['model']['change'](()=>{_0x46d840['markMultiRangeBlockFormat'](_0x5d2f33,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x4f9d65['commands']['get']('mergeTableCells')['on']('execute',(_0x3f5029,_0x1e5b28)=>{_0x4f9d65['commands']['get']('trackChanges')['value']&&(_0x1e5b28['length']>0x0&&_0x1e5b28[_0x1e5b28['length']-0x1]&&_0x1e5b28[_0x1e5b28['length']-0x1]['forceDefaultExecution']||_0x46d840['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x3f5029['stop']());},{'priority':'highest'});for(const _0x14d4a3 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x26cc7b=_0x4f9d65['commands']['get'](_0x14d4a3);_0x46d840['enableCommand'](_0x14d4a3,()=>{const _0x40f148=_0x4f9d65['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x5f2353=>_0x5f2353['is']('element','tableCell')),_0x4ee7e3=_0x26cc7b['value'];_0x4f9d65['model']['change'](()=>{_0x46d840['markMultiRangeBlockFormat']([_0x40f148,_0x4ee7e3],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0xc01154 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x1782fc=_0x4f9d65['commands']['get'](_0xc01154);_0x46d840['enableCommand'](_0xc01154,()=>{const _0x9a07d=_0x470c59['getSelectionAffectedTableCells'](_0x4f9d65['model']['document']['selection'])[0x0],_0x50e68d=_0x9a07d['findAncestor']('table'),{column:_0x35885f,row:_0x3d0b9b}=_0x470c59['getCellLocation'](_0x9a07d);let _0x43c86f=[];if('horizontally'==_0x1782fc['direction']){const _0x4660fd=_0x470c59['createTableWalker'](_0x50e68d,{'startRow':_0x3d0b9b,'endRow':_0x3d0b9b,'includeAllSlots':!0x0});_0x43c86f=Array['from'](_0x4660fd)['map'](_0x581a40=>_0x581a40['cell']);}else{const _0x45094a=_0x470c59['createTableWalker'](_0x50e68d,{'column':_0x35885f,'includeAllSlots':!0x0});_0x43c86f=Array['from'](_0x45094a)['map'](_0x44e2a3=>_0x44e2a3['cell']);}_0x4f9d65['model']['change'](_0x169e36=>{_0x46d840['markBlockFormat'](_0x169e36['createRangeOn'](_0x9a07d),{'commandName':_0xc01154,'commandParams':[]},_0x43c86f,_0xc01154);});});}_0x46d840['descriptionFactory']['registerDescriptionCallback'](_0x1ff7c1=>{if('formatBlock'!=_0x1ff7c1['type']&&'formatInline'!=_0x1ff7c1['type'])return;const {data:_0x397e93}=_0x1ff7c1;return _0x397e93&&'mergeTableCells'==_0x397e93['commandName']?{'type':'format','content':At(_0x4002f0,'*Merge\x20cells*')}:void 0x0;}),_0x46d840['descriptionFactory']['registerDescriptionCallback'](_0x4076ee=>{if('formatBlock'!=_0x4076ee['type']&&'formatInline'!=_0x4076ee['type'])return;const {data:_0x4589c2}=_0x4076ee;return _0x4589c2?'splitTableCellVertically'==_0x4589c2['commandName']?{'type':'format','content':At(_0x4002f0,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x4589c2['commandName']?{'type':'format','content':At(_0x4002f0,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x206d7d=_0x376b1d['_acceptFormatSuggestionCallbackFactory']();for(const _0x3ff1c9 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x46d840['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3ff1c9,'accept',_0x206d7d);for(const _0x1b5046 of['splitTableCellVertically','splitTableCellHorizontally'])_0x46d840['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1b5046,'accept',_0x206d7d);_0x46d840['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x7fb101=>{_0x4f9d65['model']['change'](_0x4b57d7=>{const _0x2f4de8=Array['from'](_0x2fef12['getRanges']())['map'](_0x59f320=>_0x5e7de2['fromRange'](_0x59f320));_0x4b57d7['setSelection'](_0x7fb101),_0x4f9d65['commands']['get']('mergeTableCells')['refresh'](),_0x4f9d65['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x53a083=_0x2f4de8['filter'](_0x84e177=>'$graveyard'!=_0x84e177['root']['rootName']);_0x53a083['length']>0x0&&_0x4b57d7['setSelection'](_0x53a083);for(const _0x5674fe of _0x2f4de8)_0x5674fe['detach']();});});for(const _0xe4bb13 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x35898a=_0x4f9d65['commands']['get'](_0xe4bb13);_0x35898a['on']('set:isEnabled',(_0x1a0683,_0x1395c2,_0x3f5d9)=>{if(_0x3f5d9){const _0x39e292=_0x4f9d65['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x477200=>_0x477200['is']('element','tableCell'));this['_areMergableCells'](_0x35898a['value'],_0x39e292)||(_0x1a0683['return']=!0x1,_0x1a0683['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x3861b8=this['editor']['commands']['get']('mergeTableCells'),_0x48ee2b=this['editor']['plugins']['get']('TableUtils');if(!_0x3861b8['isEnabled'])return!0x1;const _0x19652a=_0x48ee2b['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x31c9dc of _0x19652a)for(const _0x278308 of _0x19652a)if(_0x31c9dc!=_0x278308&&!this['_areMergableCells'](_0x31c9dc,_0x278308))return!0x1;return!0x0;}['_areMergableCells'](_0x1d7cae,_0x4e6719){const _0x4f4819=this['editor']['plugins']['get']('TrackChangesEditing'),_0x38f3c6=this['editor']['model']['createRangeOn'](_0x1d7cae),_0x426dd2=this['editor']['model']['createRangeOn'](_0x4e6719),_0x22605e=new Set(),_0x317832=new Set();for(const _0x58c433 of _0x4f4819['getSuggestions']())if(('insertion'==_0x58c433['type']||'deletion'==_0x58c433['type']||'mergeTableCells'==_0x58c433['subType'])&&_0x58c433['isInContent']){for(const _0x1af417 of _0x58c433['getRanges']())_0x1af417['containsRange'](_0x38f3c6,!0x0)&&_0x22605e['add'](_0x58c433['type']+':'+_0x58c433['author']['id']),_0x1af417['containsRange'](_0x426dd2,!0x0)&&_0x317832['add'](_0x58c433['type']+':'+_0x58c433['author']['id']);}if(_0x22605e['size']!=_0x317832['size'])return!0x1;for(const _0x36c1f0 of _0x22605e)if(!_0x317832['has'](_0x36c1f0))return!0x1;return!0x0;}}class Me extends _0x195c91{static get['requires'](){return[Ne];}['afterInit'](){const _0x569cfe=this['editor'];if(!_0x569cfe['plugins']['has']('TableEditing'))return;const _0x2d18f7=_0x569cfe['locale'],_0x3a1277=_0x569cfe['plugins']['get']('TrackChangesEditing');_0x3a1277['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x3a1277['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x3a1277['descriptionFactory']['registerAttributeLabel']('headingRows',At(_0x2d18f7,'FORMAT_HEADER_ROW')),_0x3a1277['descriptionFactory']['registerAttributeLabel']('headingColumns',At(_0x2d18f7,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0xb98e3a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1e2d17=this['editor']['plugins']['get'](Ne)['_acceptFormatSuggestionCallbackFactory']();_0xb98e3a['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x1e2d17),_0xb98e3a['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x1e2d17),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x2eeec5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x356f65=this['editor']['plugins']['get']('TableUtils');function _0x5c497a({showActiveMarker:_0x31e556=!0x0,setDataAttribute:_0x5cfd7e=!0x0}={}){return(_0x36690e,_0x4ccdc0,_0x19d960)=>{const {type:_0x188dc0,id:_0x33be0d}=_0x4ae9fb(_0x4ccdc0['markerName']);if(!_0x2eeec5['hasSuggestion'](_0x33be0d))return;const _0x2d1744=_0x2eeec5['getSuggestion'](_0x33be0d),_0x1c11f6=_0x2d1744['data'];if('formatBlock'!=_0x2d1744['type']||!_0x1c11f6||'setTableColumnHeader'!=_0x1c11f6['commandName'])return;if(_0x4ccdc0['item'])return void _0x36690e['stop']();if(!_0x19d960['consumable']['consume'](_0x4ccdc0['markerRange'],_0x36690e['name']))return;const _0x16b548=_0x4ccdc0['markerRange']['start']['nodeAfter'],_0xfda85e=_0x4ccdc0['markerRange']['end']['nodeBefore'],_0x496c88=_0x16b548['parent']['parent'],{column:_0x4bb5d8}=_0x356f65['getCellLocation'](_0x16b548),{column:_0x2b7477}=_0x356f65['getCellLocation'](_0xfda85e);for(let _0x4d73ce=_0x4bb5d8;_0x4d73ce<=_0x2b7477;_0x4d73ce++){const _0x523075=_0x356f65['createTableWalker'](_0x496c88,{'column':_0x4d73ce,'includeAllSlots':!0x1});for(const _0x4373c8 of _0x523075){const _0x3ff3f1=_0x4373c8['cell'],_0x2f764f=_0x19d960['mapper']['toViewElement'](_0x3ff3f1);_0x19d960['writer']['addClass']('ck-suggestion-marker-'+_0x188dc0,_0x2f764f),_0x5cfd7e&&_0x19d960['writer']['setAttribute']('data-suggestion',_0x33be0d,_0x2f764f),_0x19d960['mapper']['bindElementToMarker'](_0x2f764f,_0x4ccdc0['markerName']),_0x31e556&&(_0x2eeec5['activeMarkers']['includes'](_0x4ccdc0['markerName'])?_0x19d960['writer']['addClass']('ck-suggestion-marker--active',_0x2f764f):_0x19d960['writer']['removeClass']('ck-suggestion-marker--active',_0x2f764f));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x5c497a(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2c7edb,_0xde974,_0x3f00a9)=>{_0x3f00a9['options']['showSuggestionHighlights']&&_0x5c497a({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x2c7edb,_0xde974,_0x3f00a9);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x1e99ee,_0x34414f,_0x371735)=>{const {type:_0x2d9b97,id:_0x2f2792}=_0x4ae9fb(_0x34414f['markerName']);if(!_0x2eeec5['hasSuggestion'](_0x2f2792))return;const _0x3282a7=_0x2eeec5['getSuggestion'](_0x2f2792),_0x129ffc=_0x3282a7['data'];if('formatBlock'!=_0x3282a7['type']||!_0x129ffc||'setTableColumnHeader'!=_0x129ffc['commandName'])return;const _0xa44771=_0x371735['mapper']['markerNameToElements'](_0x34414f['markerName']);if(_0xa44771){for(const _0x3fdd18 of _0xa44771)_0x371735['writer']['removeClass']('ck-suggestion-marker-'+_0x2d9b97,_0x3fdd18),_0x371735['writer']['removeClass']('ck-suggestion-marker--active',_0x3fdd18),_0x371735['writer']['removeAttribute']('data-suggestion',_0x3fdd18),_0x371735['mapper']['unbindElementFromMarkerName'](_0x3fdd18,_0x34414f['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x22e3fd=this['editor'],_0x64d199=_0x22e3fd['locale'];function _0x1ed21c(_0x42a1f2){return{'type':'format','content':At(_0x64d199,'*Format:*\x20%0',_0x42a1f2)};}_0x22e3fd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x11da37=>{if('formatBlock'!=_0x11da37['type'])return;const {data:_0x278d25}=_0x11da37;if(_0x278d25){if('setTableRowHeader'==_0x278d25['commandName']){const _0x12123e=_0x278d25['commandParams'][0x0]['forceValue'];return _0x1ed21c(At(_0x64d199,_0x12123e?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x278d25['commandName']){const _0x21946=_0x278d25['commandParams'][0x0]['forceValue'];return _0x1ed21c(At(_0x64d199,_0x21946?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Oe extends _0x195c91{static get['requires'](){return[Ne];}['afterInit'](){const _0x2c7f1f=this['editor'];if(!_0x2c7f1f['plugins']['has']('TableEditing')||!_0x2c7f1f['config']['get']('table.enableFooters'))return;const _0x23a4a3=_0x2c7f1f['locale'],_0x30549f=_0x2c7f1f['plugins']['get']('TrackChangesEditing');_0x30549f['enableDefaultAttributesIntegration']('setTableFooterRow'),_0x30549f['descriptionFactory']['registerAttributeLabel']('footerRows',At(_0x23a4a3,'FORMAT_FOOTER_ROW'));}}class we extends _0x195c91{['afterInit'](){const _0x3338e5=this['editor'],_0x3c6a3b=_0x3338e5['locale'],_0x2b1652=_0x3338e5['plugins']['get']('TrackChangesEditing');function _0x1ba1f8(_0x296eed){return{'type':'format','content':''+At(_0x3c6a3b,'*Set\x20table\x20type:*\x20%0',_0x296eed)};}_0x3338e5['plugins']['has']('TableLayout')&&(_0x2b1652['enableCommand']('insertTableLayout'),_0x2b1652['enableDefaultAttributesIntegration']('tableType'),_0x2b1652['descriptionFactory']['registerElementLabel'](_0xec8dd7=>_0xec8dd7['is']('element','table')&&'layout'===_0xec8dd7['getAttribute']('tableType'),_0x21bbee=>At(_0x3c6a3b,'ELEMENT_LAYOUT_TABLE',_0x21bbee)),_0x2b1652['descriptionFactory']['registerDescriptionCallback'](_0x76e47c=>{const {data:_0xb66b2f}=_0x76e47c;if(_0xb66b2f&&'tableType'==_0xb66b2f['key'])switch(_0xb66b2f['newValue']){case'layout':return _0x1ba1f8(At(_0x3c6a3b,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x1ba1f8(At(_0x3c6a3b,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Fe=/* #__PURE__ -- @preserve */
|
|
25
|
+
Object['fromEntries'](Be['map'](_0x4c653e=>[_0x4c653e,null]));class De extends _0x195c91{static get['requires'](){return[Ne];}['afterInit'](){const _0x397b4f=this['editor'];if(!_0x397b4f['plugins']['has']('TableClipboard'))return;const _0x4e4ae4=_0x397b4f['plugins']['get']('TrackChangesEditing'),_0x4bf390=_0x397b4f['plugins']['get']('TableUtils'),_0x238974=_0x397b4f['plugins']['get'](Ne),_0x4f2ebb=_0x397b4f['plugins']['get']('TableClipboard'),_0x3a0bcb=_0x397b4f['plugins']['get']('TableSelection'),_0x5a2711=_0x397b4f['plugins']['get'](ut);_0x238974['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x397b4f['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x397b4f['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x354a4b=null,_0x190d98=!0x1;_0x5a2711['on']('contentInsertion',(_0x47891e,_0x39be84)=>{_0x190d98='paste'===_0x39be84['method'];}),_0x397b4f['model']['on']('insertContent',(_0x57609e,_0x397e69)=>{if(!_0x190d98&&null===_0x3a0bcb['getSelectedTableCells']())return;const [_0xe92323,_0x324915]=_0x397e69,_0x4b66e9=_0x397e69[_0x397e69['length']-0x1];_0x4b66e9&&_0x4b66e9['forceDefaultExecution']||_0x4e4ae4['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x1b7fe5,_0x47b2dd,_0x413ef0,_0x5bcb2a,_0x2aaaf4){if(_0x47b2dd&&!_0x47b2dd['is']('documentSelection'))return!0x1;const _0xd7771b=_0x2aaaf4['getTableIfOnlyTableInContent'](_0x1b7fe5,_0x413ef0);if(!_0xd7771b||!xe(_0xd7771b,void 0x0,_0x5bcb2a))return!0x1;const _0x13e041=_0x5bcb2a['getSelectionAffectedTableCells'](_0x413ef0['document']['selection']);if(!_0x13e041['length'])return!0x1;const _0x4d1e79=_0x13e041[0x0]['findAncestor']('table'),_0x1f49b8=_0x5bcb2a['getRowIndexes'](_0x13e041),_0x2926ac=_0x5bcb2a['getColumnIndexes'](_0x13e041),_0x394521={'startRow':_0x1f49b8['first'],'endRow':_0x1f49b8['last'],'startColumn':_0x2926ac['first'],'endColumn':_0x2926ac['last']};return 0x1==_0x13e041['length']&&(_0x394521['endRow']+=_0x5bcb2a['getRows'](_0xd7771b)-0x1,_0x394521['endColumn']+=_0x5bcb2a['getColumns'](_0xd7771b)-0x1),xe(_0x4d1e79,_0x394521,_0x5bcb2a);}(_0xe92323,_0x324915,_0x397b4f['model'],_0x4bf390,_0x4f2ebb)&&(_0x57609e['stop'](),_0x354a4b={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x397b4f['model']['change'](()=>{_0x397b4f['model']['insertContent'](_0x397e69[0x0],_0x397e69[0x1],_0x397e69[0x2],{'forceDefaultExecution':!0x0});const _0x2006f9=_0xc55715(),{rowInsertionRanges:_0x93d09,columnInsertionRanges:_0x13e4a7,insertionRanges:_0x3dd792,deletionRanges:_0x40086e,cells:_0x59ca18}=_0x354a4b;_0x93d09['length']&&_0x4e4ae4['markMultiRangeInsertion'](_0x93d09,'tablePasteRow',{'tablePasteChainId':_0x2006f9}),_0x13e4a7['length']&&_0x4e4ae4['markMultiRangeInsertion'](_0x13e4a7,'tablePasteColumn',{'tablePasteChainId':_0x2006f9}),_0x3dd792['length']&&(_0x4e4ae4['markMultiRangeInsertion'](_0x3dd792,'tablePaste',{'tablePasteChainId':_0x2006f9,'skipNestingCheck':!0x0}),_0x3dd792['forEach'](_0x592723=>_0x592723['detach']?.())),_0x40086e['length']&&(_0x4e4ae4['markMultiRangeDeletion'](_0x40086e,'tablePaste',{'tablePasteChainId':_0x2006f9,'skipNestingCheck':!0x0}),_0x40086e['forEach'](_0x4b11ed=>_0x4b11ed['detach']?.()));const _0x2e4814=_0x4e4ae4['markMultiRangeBlockFormat'](_0x59ca18['map'](({element:_0x3bac35})=>_0x3bac35),{'formatGroupId':_0xc55715()},[],'tablePasteCell',{'tablePasteChainId':_0x2006f9});if(_0x2e4814){const _0x489e0f=_0x2e4814['getMarkers'](),_0x259cb7=[];for(const {element:_0x546fe4,attributes:_0x3b38dd}of _0x59ca18){if(!_0x3b38dd)continue;const _0x3ac0dd=_0x397b4f['model']['createRangeOn'](_0x546fe4),_0x180c41=_0x489e0f['find'](_0x4076be=>_0x4076be['getRange']()['isEqual'](_0x3ac0dd));_0x180c41&&_0x259cb7['push']([_0x180c41['name'],_0x3b38dd]);}_0x259cb7['length']&&_0x2e4814['setAttribute']('markerAttributes',Object['fromEntries'](_0x259cb7));}_0x354a4b=null;}));},{'priority':_0x46db92['high']+0xa}),_0x5a2711['on']('contentInsertion',()=>{_0x190d98=!0x1;},{'priority':'lowest'}),_0x397b4f['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x2e111f,_0x28290a)=>{const [_0x7f7446,_0x5a411e,,_0x36cd79]=_0x28290a;if(!_0x354a4b)return;_0x2e111f['stop']();const _0x4f7578=_0x7f7446['cell'],_0x41297f=_0x5a411e,_0x1717f3=ve(_0x4f7578),_0x1fe8c7=ve(_0x41297f);_0x2e111f['return']=_0x4f7578;let _0x3bb555=null,_0x491b1f=null;if(_0x1fe8c7||_0x1717f3){if(_0x1717f3&&!_0x1fe8c7){_0x36cd79['remove'](_0x4f7578['getChild'](0x0));for(const _0x3d36f2 of Array['from'](_0x41297f['getChildren']()))_0x36cd79['insert'](_0x3d36f2,_0x4f7578,'end');const _0x44c6a0=_0x354a4b['rowInsertionIndexes']['includes'](_0x7f7446['row']),_0xce7781=_0x354a4b['columnInsertionIndexes']['includes'](_0x7f7446['column']);_0x44c6a0||_0xce7781||(_0x3bb555=_0x5e7de2['fromRange'](_0x36cd79['createRangeIn'](_0x4f7578)));}else _0x1fe8c7&&!_0x1717f3&&(_0x491b1f=_0x36cd79['createRangeIn'](_0x4f7578));}else{const _0x40bc9d=_0x36cd79['createElement']('tableCellSuggestion'),_0x20ca89=_0x36cd79['createElement']('tableCellSuggestion');_0x36cd79['wrap'](_0x36cd79['createRangeIn'](_0x4f7578),_0x20ca89),_0x36cd79['insert'](_0x40bc9d,_0x4f7578,0x0);for(const _0x57e83b of Array['from'](_0x41297f['getChildren']()))_0x36cd79['insert'](_0x57e83b,_0x40bc9d,'end');_0x3bb555=_0x5e7de2['fromRange'](_0x36cd79['createRangeOn'](_0x40bc9d)),_0x491b1f=_0x5e7de2['fromRange'](_0x36cd79['createRangeOn'](_0x20ca89));}const _0x13748f=Array['from'](_0x41297f['getAttributes']())['filter'](([_0xc4cde3])=>Be['includes'](_0xc4cde3));_0x354a4b['cells']['push']({'element':_0x4f7578,'attributes':_0x13748f['length']?Object['fromEntries'](_0x13748f):null}),_0x3bb555&&_0x354a4b['insertionRanges']['push'](_0x3bb555),_0x491b1f&&_0x354a4b['deletionRanges']['push'](_0x491b1f);},{'priority':'high'}),_0x4bf390['on']('insertColumns',(_0x5a2eaf,_0x5b4078)=>{const [_0x1159a3,_0x23d5d8={}]=_0x5b4078;if(!_0x354a4b)return;const _0x5ca402=_0x23d5d8['at']||0x0,_0x465cce=_0x23d5d8['columns']||0x1;_0x354a4b['columnInsertionIndexes']=new Array(_0x465cce)['fill'](_0x5ca402)['map']((_0x4a0f28,_0x17b71b)=>_0x4a0f28+_0x17b71b);for(const {cell:_0x570632}of _0x4bf390['createTableWalker'](_0x1159a3,{'startColumn':_0x5ca402,'endColumn':_0x5ca402+_0x465cce-0x1}))_0x354a4b['columnInsertionRanges']['push'](_0x397b4f['model']['createRangeOn'](_0x570632));},{'priority':'low'}),_0x4bf390['on']('insertRows',(_0x8dfe74,_0x4a4f8d)=>{const [_0x5b660b,_0x2ed8bd={}]=_0x4a4f8d;if(!_0x354a4b)return;const _0x4ee01c=_0x2ed8bd['at']||0x0,_0x701926=_0x2ed8bd['rows']||0x1;_0x354a4b['rowInsertionIndexes']=new Array(_0x701926)['fill'](_0x4ee01c)['map']((_0x45fd6c,_0x39a79c)=>_0x45fd6c+_0x39a79c);for(const {cell:_0x4631ae}of _0x4bf390['createTableWalker'](_0x5b660b,{'startRow':_0x4ee01c,'endRow':_0x4ee01c+_0x701926-0x1}))_0x354a4b['rowInsertionRanges']['push'](_0x397b4f['model']['createRangeOn'](_0x4631ae));},{'priority':'low'}),_0x4e4ae4['descriptionFactory']['registerDescriptionCallback'](_0x360a77=>{if(_0x360a77['subType']&&_0x360a77['subType']['startsWith']('tablePaste'))return _0x360a77['previous']?{}:{'type':'insertion','content':At(_0x397b4f['locale'],'*Replace\x20table\x20cells*')};});const _0x2406cf=()=>!0x1;for(const _0x48b35d of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x4e4ae4['_suggestionFactory']['registerCustomCallback']('insertion',_0x48b35d,'join',_0x2406cf),_0x4e4ae4['_suggestionFactory']['registerCustomCallback']('deletion',_0x48b35d,'join',_0x2406cf),_0x4e4ae4['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x48b35d,'join',_0x2406cf);_0x4e4ae4['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x2406cf),_0x4e4ae4['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x394723,_0x35dfb9,_0x1d81a0)=>{const _0x37aacb=_0x394723['map'](_0x52b290=>_0x52b290['getContainedElement']())['filter'](_0x4c80ba=>_0x4c80ba),_0x5800eb=new Map(_0x37aacb['map'](_0x1f388c=>[_0x1f388c,null]));if(_0x354a4b){for(const {element:_0x4a8f9c,attributes:_0x54f5f9}of _0x354a4b['cells'])_0x54f5f9&&_0x5800eb['set'](_0x4a8f9c,_0x54f5f9);}else{if(_0x1d81a0&&_0x1d81a0['markerAttributes'])for(const [_0x55a724,_0x196029]of Object['entries'](_0x1d81a0['markerAttributes'])){const _0x30a630=_0x397b4f['model']['markers']['get'](_0x55a724),_0x1de6f8=_0x30a630?_0x30a630['getRange']()['getContainedElement']():null;_0x1de6f8&&_0x5800eb['set'](_0x1de6f8,_0x196029);}}_0x397b4f['model']['change'](_0x54a6d5=>{for(const [_0x58b444,_0xb36425]of _0x5800eb)_0x54a6d5['setAttributes']({...Fe,..._0xb36425},_0x58b444);});});const _0x1df9e4=(_0x132b80,_0x134ac3)=>{_0x4e4ae4['_suggestionFactory']['registerCustomCallback'](_0x132b80,'tablePaste',_0x134ac3,(_0x116a33,_0x52d323,_0xd9d767)=>{_0x397b4f['model']['change'](_0x4b27ce=>{const _0x174b08=[];for(const _0x4bfb97 of _0x116a33){const _0xb631e9=_0x4bfb97['start']['nodeAfter'];_0xb631e9['is']('element','tableCellSuggestion')&&_0x174b08['push'](_0xb631e9);}_0x4e4ae4['_suggestionFactory']['getSuggestionCallback'](_0x132b80,null,_0x134ac3)(_0x116a33,_0x52d323,_0xd9d767);for(const _0x5b42bc of _0x174b08)'$graveyard'!=_0x5b42bc['root']['rootName']&&_0x4b27ce['unwrap'](_0x5b42bc);});});};_0x1df9e4('insertion','accept'),_0x1df9e4('insertion','discard'),_0x1df9e4('deletion','accept'),_0x1df9e4('deletion','discard'),_0x4e4ae4['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x394fbb=>{const _0x1bdc24=_0x394fbb['map'](_0x40a6ce=>_0x40a6ce['getContainedElement']()),_0x965e2f=_0x1bdc24[0x0]['findAncestor']('table'),{minRow:_0x1012c8,maxRow:_0x20a077}=_0x238974['_getCoordsForCells'](_0x1bdc24);_0x4bf390['removeRows'](_0x965e2f,{'at':_0x1012c8,'rows':_0x20a077-_0x1012c8+0x1});}),_0x4e4ae4['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x3f955e=>{const _0x28cc25=_0x3f955e['map'](_0x5cf2ea=>_0x5cf2ea['getContainedElement']()),_0x2eae09=_0x28cc25[0x0]['findAncestor']('table'),{minColumn:_0x39d6f5,maxColumn:_0x44e143}=_0x238974['_getCoordsForCells'](_0x28cc25);_0x4bf390['removeColumns'](_0x2eae09,{'at':_0x39d6f5,'columns':_0x44e143-_0x39d6f5+0x1});});const _0x3833ae=(_0x40124c,_0x161309)=>{if(!_0x161309['subType']||!_0x161309['subType']['startsWith']('tablePaste'))return;const _0x44de28=_0x161309['attributes']['tablePasteChainId'],_0x34cebe=_0x4e4ae4['getSuggestions']()['filter'](_0x3fe7ad=>_0x3fe7ad['isInContent']&&_0x3fe7ad['attributes']&&_0x3fe7ad['attributes']['tablePasteChainId']==_0x44de28);_0x34cebe['length']&&_0x161309['getAllAdjacentSuggestions']()['length']!=_0x34cebe['length']&&_0x34cebe['reduce']((_0x5841fb,_0x5058ca)=>(_0x5841fb['next']=_0x5058ca,_0x5058ca['previous']=_0x5841fb,_0x5058ca));};function _0x182ec4(_0x160bcf,_0x23182c=!0x0){const {id:_0x7f9d64,authorId:_0x3ed5b8}=_0x4ae9fb(_0x160bcf['markerName']),_0x3885f5=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x2c2290=_0x4e4ae4['activeMarkers']['includes'](_0x160bcf['markerName']);return _0x2c2290&&_0x3885f5['push']('ck-suggestion-marker--active'),{'classes':_0x3885f5,'attributes':{'data-suggestion':_0x7f9d64,'data-author-id':_0x3ed5b8},'priority':_0x2c2290&&_0x23182c?0xbc2:0xbb8};}_0x4e4ae4['on']('suggestionLoaded',_0x3833ae,{'priority':'high'}),_0x4e4ae4['on']('suggestionUnloaded',_0x3833ae,{'priority':'high'}),_0x397b4f['model']['document']['registerPostFixer'](()=>{let _0x113123=!0x1;const _0x22d65b=Array['from'](_0x397b4f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3b93fd,data:_0xffb948}of _0x22d65b){const {group:_0x188995,type:_0x5824e2,id:_0x5a66e5}=_0x4ae9fb(_0x3b93fd);if('suggestion'!=_0x188995||'deletion'!=_0x5824e2||_0xffb948['oldRange'])continue;if(!_0x4e4ae4['hasSuggestion'](_0x5a66e5))continue;const _0xd105bd=_0x4e4ae4['getSuggestion'](_0x5a66e5)['getRanges'](),_0x136c4a=_0x397b4f['plugins']['get']('Users')['me'];for(const _0x30907e of _0x4e4ae4['getSuggestions']()){if(!_0x30907e['isInContent']||_0x30907e['author']!=_0x136c4a)continue;if('formatBlock'!=_0x30907e['type']||'tablePasteCell'!=_0x30907e['subType'])continue;if(_0x30907e['getRanges']()['every'](_0x5d07e6=>_0xd105bd['some'](_0x594727=>_0x594727['containsRange'](_0x5d07e6,!0x0)))){for(const _0x4c1dbd of _0x30907e['getAllAdjacentSuggestions']())_0x4c1dbd['isInContent']&&(_0x4c1dbd['discard'](),_0x113123=!0x0);}}}return _0x113123;}),_0x397b4f['model']['document']['registerPostFixer'](_0x316c77=>{const _0x8babad=_0x397b4f['commands']['get']('redo');if(!_0x8babad||!_0x8babad['_createdBatches']['has'](_0x316c77['batch']))return!0x1;let _0x4a95d3=!0x1;const _0x354886=_0x397b4f['plugins']['get']('Users')['me'],_0x4631a3=_0x397b4f['model']['document']['differ']['getChanges'](),_0xd30b7e=Array['from'](_0x397b4f['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x3ef8a5,data:_0x4b7afb})=>{const {group:_0x39fc7c,subType:_0x20e2bf,authorId:_0x582ba4}=_0x4ae9fb(_0x3ef8a5);return'suggestion'==_0x39fc7c&&'tablePaste'==_0x20e2bf&&_0x582ba4==_0x354886['id']&&!_0x4b7afb['oldRange'];});for(const _0x47ebb4 of _0x4631a3){if('insert'!=_0x47ebb4['type']||'tableCellSuggestion'!=_0x47ebb4['name']||0x1!=_0x47ebb4['length'])continue;const _0xb0f48e=_0x316c77['createRange'](_0x47ebb4['position'],_0x47ebb4['position']['getShiftedBy'](0x1));if(!_0xd30b7e['find'](({data:_0x27a74b})=>_0x27a74b['newRange']['isEqual'](_0xb0f48e))){for(const {name:_0x284261,data:_0x1a0472}of _0xd30b7e)if(_0xb0f48e['containsRange'](_0x1a0472['newRange'])){_0x316c77['updateMarker'](_0x284261,{'range':_0xb0f48e}),_0x4a95d3=!0x0;break;}}}return _0x4a95d3;}),_0x397b4f['model']['document']['registerPostFixer'](_0x454745=>{let _0x508672=!0x1;const _0x23faa2=_0x397b4f['plugins']['get']('Users')['me'],_0x365519=_0x4e4ae4['getSuggestions']()['filter'](_0x442773=>_0x442773['isInContent']&&_0x442773['author']==_0x23faa2),_0x1ab3a5=new Set(),_0x566ea5=new Set();for(const _0x5ab78c of _0x365519)if('tablePaste'==_0x5ab78c['subType'])for(const _0x107de6 of _0x5ab78c['getMarkers']()){const _0x16b219=_0x107de6['getRange']()['getContainedElement']();if(_0x16b219){if(_0x16b219['is']('element','tableCellSuggestion')&&ve(_0x16b219)){_0x5ab78c['removeMarker'](_0x107de6['name']),_0x1ab3a5['add'](_0x16b219),_0x508672=!0x0;const _0x338184=_0x16b219['nextSibling'],_0x5372ab=_0x16b219['previousSibling'],_0x54c882=_0x338184&&_0x338184['is']('element','tableCellSuggestion'),_0x8ebf87=_0x5372ab&&_0x5372ab['is']('element','tableCellSuggestion');_0x54c882&&!_0x1ab3a5['has'](_0x338184)&&_0x566ea5['add'](_0x338184),_0x8ebf87&&!_0x1ab3a5['has'](_0x5372ab)&&_0x566ea5['add'](_0x5372ab);}else _0x16b219['is']('element','paragraph')&&_0x16b219['isEmpty']&&(_0x5ab78c['removeMarker'](_0x107de6['name']),_0x508672=!0x0);}}else{if('tablePasteCell'==_0x5ab78c['subType']){if(!_0x5ab78c['attributes']||!_0x5ab78c['attributes']['tablePasteChainId'])continue;const _0x518ace=_0x5ab78c['attributes']['markerAttributes'];if(_0x518ace&&Object['keys'](_0x518ace)['length'])continue;const _0x31cdc0=_0x5ab78c['attributes']['tablePasteChainId'];let _0x5ef1d2=!0x0,_0x1070c9=!0x0;for(const _0x18f61a of _0x365519)if(_0x18f61a['subType']&&_0x18f61a['subType']['startsWith']('tablePaste')){if(!_0x18f61a['attributes']['tablePasteChainId']){_0x1070c9=!0x1;break;}if(_0x18f61a['id']!=_0x5ab78c['id']&&_0x18f61a['attributes']['tablePasteChainId']==_0x31cdc0){_0x5ef1d2=!0x1;break;}}_0x1070c9&&_0x5ef1d2&&(_0x5ab78c['removeMarkers'](),_0x508672=!0x0);}}for(const _0x4b23fe of _0x1ab3a5)_0x454745['remove'](_0x4b23fe);for(const _0x54d883 of _0x566ea5)_0x454745['unwrap'](_0x54d883);return _0x508672;}),_0x397b4f['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x22215a=>_0x182ec4(_0x22215a),'converterPriority':'high'}),_0x397b4f['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x273480,_0xcf9552)=>_0xcf9552['options']['showSuggestionHighlights']?_0x182ec4(_0x273480,!0x1):null,'converterPriority':'high'});const _0x48dfe0=_0x397b4f['editing']['view'];this['listenTo'](_0x48dfe0['document'],'clipboardOutput',(_0x30e1fd,_0x184516)=>{const _0x11611d=[];for(const _0x3a2f30 of _0x48dfe0['createRangeIn'](_0x184516['content'])['getItems']())_0x3a2f30['is']('element','suggestion-td')&&_0x11611d['push'](_0x3a2f30);_0x48dfe0['change'](_0x4fe578=>{for(const _0x20f468 of _0x11611d)_0x4fe578['move'](_0x4fe578['createRangeIn'](_0x20f468),_0x4fe578['createPositionBefore'](_0x20f468)),_0x4fe578['remove'](_0x20f468);});});}}function ve(_0xbed779){if(_0xbed779['isEmpty'])return!0x0;const _0xaf52f7=_0xbed779['getChild'](0x0);return _0xaf52f7['is']('element','paragraph')&&_0xaf52f7['isEmpty'];}function xe(_0x49d91c,_0x2ce9fe={},_0x1d0469){for(const {isAnchor:_0x28f229,cellHeight:_0x5e89d1,cellWidth:_0xd06673}of _0x1d0469['createTableWalker'](_0x49d91c,{'includeAllSlots':!0x0,..._0x2ce9fe}))if(!_0x28f229||0x1!=_0x5e89d1||0x1!=_0xd06673)return!0x1;return!0x0;}class Pe extends _0x195c91{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x4fa0ce=this['editor']['plugins']['get']('TrackChangesEditing');_0x4fa0ce['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x4fa0ce['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x4fa0ce['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4fa0ce['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x4fa0ce['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x4fa0ce['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x3ad998,_0x201bc0){const _0x45cc1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x132b84=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x3c4536=_0x201bc0['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x2a7897=_0x132b84['getColumnGroupElement'](_0x3c4536);let _0x276d14=_0x2a7897?_0x132b84['getTableColumnsWidths'](_0x2a7897):null,_0x326bee=_0x3c4536['getAttribute']('tableWidth')||null;const _0x2bf30a=_0x201bc0['tableWidth']||_0x326bee,_0x218643=_0x201bc0['columnWidths']||_0x276d14,_0x4eea4e=this['editor']['plugins']['get']('Users')['me'];for(const _0x359ec2 of _0x45cc1['getSuggestions']()){const _0x79a799=_0x359ec2['getContainedElement']();if('resizeTable'===_0x359ec2['subType']&&_0x79a799===_0x3c4536){_0x359ec2['author']!==_0x4eea4e&&_0x359ec2['discard']();const _0x3332c8=_0x359ec2['data']['commandParams'];_0x326bee=_0x3332c8[0x0]['tableWidth'],_0x276d14=_0x3332c8[0x0]['columnWidths'];break;}}_0x3ad998({'table':_0x3c4536,'tableWidth':_0x2bf30a,'columnWidths':_0x218643}),_0x45cc1['markBlockFormat'](_0x3c4536,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x326bee,'columnWidths':_0x276d14}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x3f43f2){if('formatBlock'!=_0x3f43f2['type']&&'formatInline'!=_0x3f43f2['type'])return;const {data:_0x1e8e1c}=_0x3f43f2;if(_0x1e8e1c&&'resizeTable'===_0x1e8e1c['formatGroupId']){const _0x56f7a9='*Format:*\x20resize\x20table';return{'type':'format','content':At(this['editor']['locale'],_0x56f7a9)};}}}class Ue extends _0x195c91{['afterInit'](){const _0x18a11f=this['editor'];_0x18a11f['plugins']['has']('Template')&&_0x18a11f['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ge extends _0x195c91{['afterInit'](){const _0x1f0c20=this['editor'];if(!_0x1f0c20['commands']['get']('insertTableOfContents'))return;_0x1f0c20['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x223824=_0x1f0c20['plugins']['get']('TrackChangesEditing'),_0x4d2c4a=_0x1f0c20['locale'];_0x223824['descriptionFactory']['registerElementLabel']('tableOfContents',_0x59b616=>At(_0x4d2c4a,'ELEMENT_TABLE_OF_CONTENTS',_0x59b616));}}class He extends _0x195c91{['afterInit'](){const _0x284966=this['editor'];if(!_0x284966['plugins']['has']('Title'))return;_0x284966['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>At(_0x284966['locale'],'ELEMENT_TITLE')),_0x284966['model']['document']['registerPostFixer'](_0x39ebef=>{let _0x2df751=!0x1;const _0x55909f=Array['from'](_0x284966['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1dc7ef,data:_0xe3dc0}of _0x55909f){const {group:_0x5eb161}=_0x4ae9fb(_0x1dc7ef);if('suggestion'!==_0x5eb161||!_0xe3dc0['newRange'])continue;const _0x5e9aa6=_0xe3dc0['newRange'],_0x1c22a9=_0x5e9aa6['end']['nodeBefore'];if(!_0x1c22a9||!_0x1c22a9['is']('element','title-content'))continue;if(!_0x5e9aa6['start']['isTouching'](_0x5e9aa6['end']))continue;const _0x4eb91e=_0x284966['model']['schema']['getNearestSelectionRange'](_0x5e9aa6['end'],'forward');if(_0x4eb91e&&_0x4eb91e['isCollapsed']){const _0x1e747b=_0x39ebef['createRange'](_0x5e9aa6['start'],_0x4eb91e['start']);_0x1e747b['isEqual'](_0x5e9aa6)||(_0x39ebef['updateMarker'](_0x1dc7ef,{'range':_0x1e747b}),_0x2df751=!0x0);}_0x2df751||(_0x39ebef['removeMarker'](_0x1dc7ef),_0x2df751=!0x0);}return _0x2df751;});}}class $e extends _0x195c91{['afterInit'](){const _0x5f4b37=this['editor'],_0x3c0978=_0x5f4b37['plugins']['get']('TrackChangesEditing');_0x5f4b37['plugins']['has']('Uploadcare')&&(_0x3c0978['enableCommand']('uploadcare'),_0x5f4b37['plugins']['has']('UploadcareImageEdit')&&(_0x3c0978['enableCommand']('uploadcareImageEdit'),_0x3c0978['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x3c0978['descriptionFactory']['registerDescriptionCallback'](_0x42c7d8=>{if('attribute'!=_0x42c7d8['type'])return;const {data:_0x3cc364}=_0x42c7d8;return _0x3cc364&&'uploadcareImageId'==_0x3cc364['key']?{'type':'format','content':''}:void 0x0;})));}}class We extends _0x195c91{['afterInit'](){const _0x483619=this['editor'],_0x81c0f1=_0x483619['plugins']['get']('TrackChangesEditing');_0x483619['plugins']['has']('UndoEditing')&&(_0x81c0f1['enableCommand']('undo'),_0x81c0f1['enableCommand']('redo'));}}class Ve extends _0x195c91{static get['requires'](){return[Ne];}['afterInit'](){const _0x12cfc5=this['editor'];if(!_0x12cfc5['plugins']['has']('TableCaptionEditing'))return;_0x12cfc5['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class je extends _0x195c91{['tableProperties'];['tableCellProperties'];constructor(_0x1fe61a){super(_0x1fe61a),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 _0x4448b7=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0xec91ed of this['tableProperties'])_0x4448b7['enableCommand'](_0xec91ed,(_0x2306bc,_0x58a082)=>{const _0x36dcb9=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0xec91ed,[_0x36dcb9],this['tableProperties'],'tableProperties',_0x2306bc,_0x58a082);});_0x4448b7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x4448b7['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4448b7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x5a1364,_0xc9c281)=>this['handleDiscardAction'](this['tableProperties'],_0x5a1364,_0xc9c281)),_0x4448b7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x2075a6 of this['tableCellProperties'])this['editor']['commands']['get'](_0x2075a6)&&_0x4448b7['enableCommand'](_0x2075a6,(_0x3fa60b,_0x5aaa3e)=>{const _0x129cd2=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x2075a6,_0x129cd2,this['tableCellProperties'],'tableCellProperties',_0x3fa60b,_0x5aaa3e);});_0x4448b7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x4448b7['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4448b7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x1da4f9,_0x144837)=>this['handleDiscardAction'](this['tableCellProperties'],_0x1da4f9,_0x144837)),_0x4448b7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x4448b7['descriptionFactory']['registerAttributeLabel']('tableCellType',At(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x4448b7['descriptionFactory']['registerDescriptionCallback'](_0x386d52=>this['handleSuggestionDescription'](_0x386d52)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x40892a,_0x35d6e8,_0x26afbe,_0xd4b779,_0x499040,_0x196684){const _0x3c37fb=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x196684['batch'],()=>{for(const _0x18a568 of _0x35d6e8){if(this['_getSuggestion'](_0x18a568,_0xd4b779))_0x499040(_0x196684);else{const _0x2f645e={};for(const _0x245e20 of _0x26afbe){const _0x2e43a8=_0x18a568['getAttribute'](_0x245e20);void 0x0!==_0x2e43a8&&(_0x2f645e[_0x245e20]=_0x2e43a8);}_0x499040(_0x196684),_0x3c37fb['markBlockFormat'](_0x18a568,{'commandParams':[_0x2f645e]},[],_0xd4b779);}}});}['handleDiscardAction'](_0x30b04a,_0x123aef,_0x34057c){const _0x1f30eb=_0x123aef[0x0]['start']['nodeAfter'],_0x172cc9=_0x34057c['commandParams'][0x0];this['editor']['model']['change'](_0xaf04b=>{for(const _0x12279b of _0x30b04a)void 0x0!==_0x172cc9[_0x12279b]?_0xaf04b['setAttribute'](_0x12279b,_0x172cc9[_0x12279b],_0x1f30eb):_0xaf04b['removeAttribute'](_0x12279b,_0x1f30eb);});}['handleSuggestionDescription'](_0x641c8f){if(_0x641c8f['data'])switch(_0x641c8f['subType']){case'tableProperties':return{'type':'format','content':At(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':At(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x52abd2,_0x4401c0){const _0x2bd404=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x204279 of _0x2bd404['getSuggestions']({'skipNotAttached':!0x0})){const _0x27c019=_0x204279['getContainedElement']();if(_0x204279['subType']===_0x4401c0&&_0x27c019===_0x52abd2)return _0x204279;}return null;}['_registerTablePropertiesAttributes'](){const _0x21c831=this['editor']['plugins']['get']('TrackChangesEditing'),_0x38e0bf=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x2be1e1 of _0x38e0bf){const _0xc0ef60=_0x2be1e1['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x21c831['descriptionFactory']['registerAttributeLabel'](_0x2be1e1,At(this['editor']['locale'],'FORMAT_'+_0xc0ef60));}}}class ze extends _0x195c91{['afterInit'](){const _0x1c81c7=this['editor'];if(!_0x1c81c7['plugins']['has']('LineHeight'))return;const _0x1c3c3f=_0x1c81c7['plugins']['get']('TrackChangesEditing'),_0x301083=_0x1c81c7['locale'];_0x1c3c3f['enableDefaultAttributesIntegration']('lineHeight'),_0x1c3c3f['descriptionFactory']['registerAttributeLabel']('lineHeight',At(_0x301083,'FORMAT_LINE_HEIGHT'));}}const Ke='$elementName';class Xe extends _0x195c91{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_suggestionsConversion'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return[_0x14f00b,_0x129e59,_0x517118,_0x2f023d,_0x1f2da9,Ct,yt,Nt,Rt,Mt,Ot,Bt,Dt,Ft,vt,Pt,Ut,jt,zt,Kt,Yt,qt,Qt,Jt,te,ee,ne,ie,re,se,oe,ae,ce,ue,fe,Te,le,Gt,ze,$t,ge,me,Ee,_e,pe,Le,Ie,be,Ae,Ce,ye,Ne,Se,Me,Oe,we,Ve,De,Pe,Ge,je,Ue,He,$e,We];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xda15df){super(_0xda15df),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x526ff6,_0x420a9d,_0x356787,_0x431383)=>{this['_model']['change'](()=>{for(const _0x263ec5 of[..._0x431383,..._0x356787])this['_model']['markers']['has'](_0x263ec5)&&_0xda15df['editing']['reconvertMarker'](_0x263ec5);});}),this['descriptionFactory']=new kt(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Ye(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0xda15df['plugins']['get'](_0x14f00b),this['_suggestionsConversion']=_0xda15df['plugins']['get'](_0x129e59),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0xda15df['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0xda15df['config']['get']('trackChanges.trackFormatChanges'),_0xda15df['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0xda15df['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new ht(_0xda15df,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x57a32e=this['editor'];_0x57a32e['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x915435,{writer:_0x32df7d})=>{let _0x541dda='suggestion:'+_0x915435['getAttribute']('suggestion-type')+':'+_0x915435['getAttribute']('id');return _0x915435['getAttribute']('marker-count')&&(_0x541dda+=':'+_0x915435['getAttribute']('marker-count')),_0x32df7d['createElement']('$marker',{'data-name':_0x541dda});}}),_0x57a32e['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x57a32e['model']['document']['registerPostFixer'](_0xc44be1=>{let _0xeebe13=!0x1;const _0x4bb605=Array['from'](_0x57a32e['model']['document']['differ']['getChangedMarkers']()),_0x9e4eb3=new Set();for(const {name:_0x27b633,data:_0x1b2eca}of _0x4bb605){const {group:_0x357645,type:_0x4ca083,subType:_0x5459c5,id:_0x4c65f1}=_0x4ae9fb(_0x27b633);if('suggestion'!==_0x357645)continue;const _0x49f484=_0x5459c5?'suggestion:'+_0x4ca083+':'+_0x5459c5+':'+_0x4c65f1:'suggestion:'+_0x4ca083+':'+_0x4c65f1,_0x21a662=_0x57a32e['model']['markers']['getMarkersGroup'](_0x49f484),_0x54babf=_0x57a32e['model']['markers']['get'](_0x27b633),_0x2c8e37=this['_suggestions']['get'](_0x4c65f1);if(null!=_0x1b2eca['newRange']){'formatInline'==_0x4ca083&&(_0xeebe13=_0xeebe13||Ze(_0x1b2eca['newRange'],_0x27b633,_0xc44be1,_0x57a32e['model']['schema']));const _0x29a509='attribute'==_0x4ca083&&this['_suggestionsConversion']['isBlockAttribute'](un(_0x5459c5)),_0x4ebb9f='attribute'==_0x4ca083&&this['_suggestionsConversion']['isInlineAttribute'](un(_0x5459c5));if(_0x1b2eca['newRange']['isCollapsed']||'$graveyard'==_0x1b2eca['newRange']['root']['rootName']||'formatBlock'==_0x4ca083&&!tn(_0x1b2eca['newRange'])||_0x29a509&&!tn(_0x1b2eca['newRange'])||_0x4ebb9f&&en(_0x1b2eca['newRange'])||'deletion'==_0x4ca083&&en(_0x1b2eca['newRange'])||_0x54babf&&nn(_0x54babf,_0x21a662))_0xc44be1['removeMarker'](_0x27b633),_0xeebe13=!0x0;else{if(!_0x2c8e37||!_0x2c8e37['isInContent'])continue;if(_0x1b2eca['newRange']&&_0x1b2eca['oldRange']&&_0x1b2eca['newRange']['isEqual'](_0x1b2eca['oldRange']))continue;_0x9e4eb3['add'](_0x2c8e37);}}}return _0x9e4eb3['size']>0x0&&(_0xeebe13=!!this['_joinWithAdjacentSuggestions'](_0x9e4eb3)||_0xeebe13),_0xeebe13;}),_0x57a32e['model']['document']['registerPostFixer'](_0x334c0a=>{let _0x842e41=!0x1;for(const _0xb8339d of _0x57a32e['model']['document']['differ']['getChanges']())if('insert'==_0xb8339d['type'])for(const _0x4770e7 of this['_suggestions']['values']()){if(_0x4770e7['isMultiRange']||!_0x4770e7['isInContent'])continue;const _0x4e64b9='formatBlock'==_0x4770e7['type'],_0x55be7b=this['_getAttributeKey'](_0x4770e7),_0x37eb47=_0x55be7b&&this['_suggestionsConversion']['isBlockAttribute'](_0x55be7b);if(!_0x4e64b9&&!_0x37eb47)continue;const _0x478120=_0x4770e7['getFirstRange']();if(_0x478120['start']['parent']!=_0x478120['end']['parent']&&!_0x478120['end']['isAtEnd']){const _0x1acc7d=_0x57a32e['model']['createPositionAt'](_0x478120['start']['nodeAfter'],'end'),_0x25419b=_0x57a32e['model']['createRange'](_0x478120['start'],_0x1acc7d);_0x334c0a['updateMarker'](_0x4770e7['getFirstMarker'](),{'range':_0x25419b}),_0x842e41=!0x0;}}return _0x842e41;}),_0x57a32e['model']['document']['registerPostFixer'](_0xa32ee8=>this['_processAttributeChanges'](_0xa32ee8)),_0x57a32e['model']['document']['registerPostFixer'](_0x41ab43=>!_0x41ab43['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x41ab43)),_0x57a32e['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x57a32e['model']['document']['on']('change:data',(_0x259c48,_0x550882)=>{if(!_0x550882['isLocal']||_0x550882['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x3ce3d8=_0x57a32e['model']['document']['differ']['getChanges']();if(0x0==_0x3ce3d8['length'])return;const _0x264831=[],_0x472c4f=_0x3ce3d8['filter'](_0x2941c4=>'attribute'==_0x2941c4['type']),_0x1d83ec=_0x3ce3d8['filter'](_0xae4e9c=>'insert'==_0xae4e9c['type']&&'$text'!=_0xae4e9c['name']);for(const _0x361b7a of _0x472c4f)this['_suggestionsConversion']['isRegisteredAttribute'](_0x361b7a['attributeKey'])&&_0x264831['push']({'key':_0x361b7a['attributeKey'],'newValue':_0x361b7a['attributeNewValue'],'oldValue':_0x361b7a['attributeOldValue'],'range':sn(_0x361b7a['range'],_0x57a32e['model'])});for(const _0x328401 of _0x1d83ec){if('rename'!=_0x328401['action']&&'refresh'!=_0x328401['action'])continue;const _0x32c4d8=rn(_0x328401['position']['nodeAfter'],_0x57a32e['model']),_0x505932=_0x328401['before'];'rename'==_0x328401['action']&&_0x264831['push']({'key':Ke,'newValue':_0x328401['name'],'oldValue':_0x505932['name'],'range':_0x32c4d8});for(const [_0xc71c86,_0x4d80f2]of _0x505932['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0xc71c86))continue;const _0x24d619=_0x328401['attributes']['get'](_0xc71c86);_0x4d80f2!==_0x24d619&&_0x264831['push']({'key':_0xc71c86,'newValue':_0x24d619,'oldValue':_0x4d80f2,'range':_0x32c4d8});}for(const [_0x37bf00,_0x4eeba5]of _0x328401['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x37bf00)&&(_0x505932['attributes']['has'](_0x37bf00)||_0x264831['push']({'key':_0x37bf00,'newValue':_0x4eeba5,'oldValue':null,'range':_0x32c4d8}));}0x0!=_0x264831['length']&&_0x57a32e['model']['enqueueChange'](_0x550882,_0x32aa5b=>{const _0x2a7e79=_0xc55715();for(const {range:_0x56e7ad,key:_0x52dba5,oldValue:_0x51829d,newValue:_0x46afd7}of _0x264831)this['markAttributeChange'](_0x56e7ad,_0x52dba5,_0x51829d,_0x46afd7,{'groupId':_0x2a7e79});this['_reduceExistingSuggestions'](_0x32aa5b,_0x264831);});},{'priority':'lowest'}),_0x57a32e['model']['markers']['on']('update:suggestion',(_0x505784,_0x4579fe,_0x1463fa)=>{if(null==_0x1463fa){const {id:_0x2e9fd0}=_0x4ae9fb(_0x4579fe['name']),_0x277881=this['_suggestions']['get'](_0x2e9fd0);_0x277881&&_0x277881['addMarkerName'](_0x4579fe['name']);}}),_0x57a32e['model']['document']['on']('change:data',()=>{const _0x33e9d0=Array['from'](_0x57a32e['model']['document']['differ']['getChangedMarkers']())['filter'](_0x5172df=>'suggestion'===_0x4ae9fb(_0x5172df['name'])['group']);if(0x0===_0x33e9d0['length'])return;_0x33e9d0['sort']((_0x31ec8e,_0x1a3132)=>{const _0x561606=_0x31ec8e['data']['oldRange'],_0xca574c=_0x1a3132['data']['oldRange'];return null===_0x561606&&null===_0xca574c?0x0:null===_0x561606&&null!==_0xca574c?-0x1:null!==_0x561606&&null===_0xca574c?0x1:_0x561606['start']['isBefore'](_0xca574c['start'])?-0x1:0x1;});const _0x1c2e25=new Set(),_0x3dbffa=new Set();for(const {name:_0x537077,data:_0x2c854d}of _0x33e9d0){const {id:_0x2c618f}=_0x4ae9fb(_0x537077);if(null===_0x2c854d['oldRange']){const _0x592e51=this['_handleNewSuggestionMarker'](_0x537077);_0x3dbffa['add'](_0x592e51);}else{const _0xd42e9d=this['_suggestions']['get'](_0x2c618f);null!==_0x2c854d['newRange']||_0xd42e9d['isInContent']?(_0x1c2e25['add'](_0xd42e9d['head']),_0x3dbffa['add'](_0xd42e9d)):this['_removeSuggestion'](_0xd42e9d);}}_0x3dbffa['size']>0x0&&this['_refreshSuggestionsChain'](_0x3dbffa);for(const _0x190445 of _0x1c2e25)this['fire']('suggestionChanged',_0x190445);}),_0x57a32e['model']['on']('applyOperation',(_0x477e4c,_0x31b2a9)=>{const _0x117f3a=_0x31b2a9[0x0];if(!this['_suggestions']['size'])return;if(!_0x117f3a['isDocumentOperation'])return;if(_0x117f3a['batch']['isUndo']||!_0x117f3a['batch']['isLocal'])return;let _0x46b0f6,_0x15ae72;switch(_0x117f3a['type']){case'insert':_0x46b0f6=_0x57a32e['model']['createPositionAt'](_0x117f3a['position']),_0x15ae72=_0x46b0f6['getShiftedBy'](_0x117f3a['howMany']);break;case'split':_0x46b0f6=_0x57a32e['model']['createPositionAt'](_0x117f3a['splitPosition']),_0x15ae72=_0x57a32e['model']['createPositionAt'](_0x117f3a['moveTargetPosition']);break;case'move':_0x46b0f6=_0x57a32e['model']['createPositionAt'](_0x117f3a['targetPosition']),_0x15ae72=_0x46b0f6['getShiftedBy'](_0x117f3a['howMany']);break;default:return;}const _0x2b06c9=_0x57a32e['model']['createRange'](_0x46b0f6,_0x15ae72);_0x57a32e['model']['change'](()=>{for(const {suggestion:_0x4c0cf1,meta:_0x42a704}of this['_findSuggestions'](_0x2b06c9)){if(_0x4c0cf1['isMultiRange'])continue;if('formatInline'==_0x4c0cf1['type'])continue;const _0x5ddc90=this['_getAttributeKey'](_0x4c0cf1);if(_0x5ddc90&&this['_suggestionsConversion']['isBlockAttribute'](_0x5ddc90)&&'split'!=_0x117f3a['type'])continue;const _0x5704da=_0x4c0cf1['data']&&_0x4c0cf1['data']['multipleBlocks'];('formatBlock'!=_0x4c0cf1['type']||'split'==_0x117f3a['type']&&!_0x5704da)&&(_0x42a704['containsRangeInObject']||'insertion'==_0x4c0cf1['type']&&_0x42a704['isOwn']||_0x4c0cf1['getFirstRange']()['containsRange'](_0x2b06c9)&&this['_breakSuggestionMarker'](_0x4c0cf1,_0x46b0f6,_0x15ae72));}});},{'priority':'lowest'}),_0x57a32e['model']['on']('deleteContent',(_0x4b0ee4,_0x446e6e)=>{const _0x2878ea=_0x446e6e[0x0],_0x251e02=_0x446e6e[0x1];if(_0x251e02&&_0x251e02['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x2878ea['isCollapsed'])return;const _0x55bba3=_0x57a32e['model']['schema'],{start:_0x3f3487,end:_0x388645}=_0x2878ea['getFirstRange'](),_0x2a0a90=_0x3f3487['nodeAfter']&&_0x55bba3['isLimit'](_0x3f3487['nodeAfter'])?null:_0x55bba3['getNearestSelectionRange'](_0x3f3487,'forward'),_0x3d0a5e=_0x388645['nodeBefore']&&_0x55bba3['isLimit'](_0x388645['nodeBefore'])?null:_0x55bba3['getNearestSelectionRange'](_0x388645,'backward'),_0x47c417=_0x57a32e['model']['createRange'](_0x2a0a90?_0x2a0a90['start']:_0x3f3487,_0x3d0a5e?_0x3d0a5e['end']:_0x388645);_0x57a32e['model']['change'](_0x3a14c9=>{this['markDeletion'](_0x47c417);const _0x341d36=_0x57a32e['model']['schema']['getNearestSelectionRange'](_0x47c417['start']);_0x2878ea['is']('documentSelection')?_0x3a14c9['setSelection'](_0x341d36):_0x2878ea['setTo'](_0x341d36);}),_0x4b0ee4['stop']();},{'priority':_0x46db92['normal']+0xa}),_0x57a32e['model']['on']('insertContent',(_0x12a081,_0x3d0cef)=>{const _0x1276f3=_0x3d0cef[_0x3d0cef['length']-0x1];_0x1276f3&&_0x1276f3['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x57a32e['model']['change'](()=>{let _0xb9db5a=_0x57a32e['model']['insertContent'](_0x3d0cef[0x0],_0x3d0cef[0x1],_0x3d0cef[0x2],{'forceDefaultExecution':!0x0});if(!_0xb9db5a)return;_0x12a081['return']=_0xb9db5a['clone']();const _0x4f009b=_0xb9db5a['end']['nodeBefore'],_0x3abbc3=_0x57a32e['model']['schema'];_0x4f009b&&_0x3abbc3['isBlock'](_0x4f009b)&&!_0x3abbc3['isObject'](_0x4f009b)&&(_0xb9db5a=_0x57a32e['model']['createRange'](_0xb9db5a['start'],_0x57a32e['model']['createPositionAt'](_0x4f009b,'end'))),this['markInsertion'](_0xb9db5a);}),_0x12a081['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x1a28e3=new dt(_0x57a32e,this['_suggestions']);_0x57a32e['commands']['add']('acceptSuggestion',_0x1a28e3),this['enableCommand']('acceptSuggestion');const _0xf0b1ef=new ft(_0x57a32e,this['_suggestions']);_0x57a32e['commands']['add']('discardSuggestion',_0xf0b1ef),this['enableCommand']('discardSuggestion'),_0x57a32e['commands']['add']('acceptAllSuggestions',new Lt(_0x57a32e,_0x1a28e3,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x57a32e['commands']['add']('discardAllSuggestions',new Lt(_0x57a32e,_0xf0b1ef,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x57a32e['commands']['add']('acceptSelectedSuggestions',new It(_0x57a32e,_0x1a28e3,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x57a32e['commands']['add']('discardSelectedSuggestions',new It(_0x57a32e,_0xf0b1ef,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x3cbd37=_0x57a32e['plugins']['get'](_0x14f00b);this['listenTo'](_0x3cbd37,'addComment',(_0x2d5fac,{threadId:_0x2d9227})=>{const _0x27977f=this['_suggestions']['get'](_0x2d9227);_0x27977f&&_0x27977f['commentThread']&&0x1===_0x27977f['commentThread']['length']&&this['_updateSuggestionData'](_0x2d9227,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x3cbd37,'removeComment',(_0x394497,{threadId:_0x16dfad})=>{const _0x3bb634=this['_suggestions']['get'](_0x16dfad);_0x3bb634&&_0x3bb634['commentThread']&&!_0x3bb634['commentThread']['length']&&this['_updateSuggestionData'](_0x16dfad,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x145a3a){const _0x466ea4=_0x3aa6c3([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x544eff=0x3d8d0df,_0x59a5eb=0x3df5587^_0x544eff,_0x3636b7=window[_0x3aa6c3([0x44,0x61,0x74,0x65])][_0x3aa6c3([0x6e,0x6f,0x77])](),_0x2e9b93=_0x145a3a[_0x3aa6c3([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4a41e3=new window[(_0x3aa6c3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1f6f34=>{_0x2e9b93[_0x3aa6c3([0x6f,0x6e,0x63,0x65])](_0x3aa6c3([0x72,0x65,0x61,0x64,0x79]),_0x1f6f34);}),_0x39c4f8={[_0x3aa6c3([0x6b,0x74,0x79])]:_0x3aa6c3([0x45,0x43]),[_0x3aa6c3([0x75,0x73,0x65])]:_0x3aa6c3([0x73,0x69,0x67]),[_0x3aa6c3([0x63,0x72,0x76])]:_0x3aa6c3([0x50,0x2d,0x32,0x35,0x36]),[_0x3aa6c3([0x78])]:_0x3aa6c3([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x3aa6c3([0x79])]:_0x3aa6c3([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x3aa6c3([0x61,0x6c,0x67])]:_0x3aa6c3([0x45,0x53,0x32,0x35,0x36])},_0x347533=_0x2e9b93[_0x3aa6c3([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3aa6c3([0x67,0x65,0x74])](_0x3aa6c3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x15a4ac(){let _0x1d5567,_0x334fca=null,_0x29832f=null;try{if(_0x347533==_0x3aa6c3([0x47,0x50,0x4c]))return _0x3aa6c3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1d5567=_0x513556(),!_0x1d5567)return _0x3aa6c3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1d5567[_0x3aa6c3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x29832f=_0x42d8e6(_0x1d5567[_0x3aa6c3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1d5567[_0x3aa6c3([0x6a,0x74,0x69])])),await _0x2e8d32()?_0x29b223()?_0x207c8d()?_0x3aa6c3([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x407a5f()?(_0x1d5567[_0x3aa6c3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3aa6c3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x334fca=_0xf8cae2(_0x3aa6c3([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1a4a51()):_0x3aa6c3([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3aa6c3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3aa6c3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3aa6c3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x207c8d(){const _0x397114=[_0x3aa6c3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3aa6c3([0x74,0x72,0x69,0x61,0x6c])][_0x3aa6c3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d5567[_0x3aa6c3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3636b7/0x3e8:0xe10*_0x59a5eb;return _0x1d5567[_0x3aa6c3([0x65,0x78,0x70])]<_0x397114;}function _0x29b223(){const _0x43587e=_0x1d5567[_0x3aa6c3([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x43587e)return!0x1;if(_0x43587e[_0x3aa6c3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3aa6c3([0x2a])))return!0x0;if(_0x43587e[_0x3aa6c3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3aa6c3([0x54,0x43])))return!0x0;if(_0x43587e[_0x3aa6c3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3aa6c3([0x52,0x54,0x43]))){if(_0x597945())return!0x0;if(_0x19289a()||_0x44f920())return!0x0;}return!0x1;}function _0x407a5f(){const _0x88083b=_0x1d5567[_0x3aa6c3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x88083b||0x0==_0x88083b[_0x3aa6c3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x47dca7}=new URL(window[_0x3aa6c3([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x88083b[_0x3aa6c3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x47dca7))return!0x0;const _0x26730e=_0x47dca7[_0x3aa6c3([0x73,0x70,0x6c,0x69,0x74])](_0x3aa6c3([0x2e]));return _0x88083b[_0x3aa6c3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5f048b=>_0x5f048b[_0x3aa6c3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3aa6c3([0x2a])))[_0x3aa6c3([0x6d,0x61,0x70])](_0x8b4e7b=>_0x8b4e7b[_0x3aa6c3([0x73,0x70,0x6c,0x69,0x74])](_0x3aa6c3([0x2e])))[_0x3aa6c3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x29a878=>_0x29a878[_0x3aa6c3([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x26730e[_0x3aa6c3([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3aa6c3([0x6d,0x61,0x70])](_0x1c274f=>Array(_0x26730e[_0x3aa6c3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1c274f[_0x3aa6c3([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3aa6c3([0x66,0x69,0x6c,0x6c])](_0x1c274f[0x0]===_0x3aa6c3([0x2a])?_0x3aa6c3([0x2a]):'')[_0x3aa6c3([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1c274f))[_0x3aa6c3([0x73,0x6f,0x6d,0x65])](_0x6c824=>_0x26730e[_0x3aa6c3([0x65,0x76,0x65,0x72,0x79])]((_0x1be74e,_0x47e0fe)=>_0x6c824[_0x47e0fe]===_0x1be74e||_0x6c824[_0x47e0fe]===_0x3aa6c3([0x2a])));}function _0x1a4a51(){return _0x334fca&&_0x29832f?new window[(_0x3aa6c3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4a40e7,_0x56e11e)=>{_0x334fca[_0x3aa6c3([0x74,0x68,0x65,0x6e])](_0x4a40e7,_0x56e11e),_0x29832f[_0x3aa6c3([0x74,0x68,0x65,0x6e])](_0x3c419d=>{_0x3c419d!=_0x3aa6c3([0x56,0x61,0x6c,0x69,0x64])&&_0x4a40e7(_0x3c419d);},_0x56e11e);}):_0x334fca||_0x29832f||_0x3aa6c3([0x56,0x61,0x6c,0x69,0x64]);}}function _0x42d8e6(_0x5e2710,_0x2479da){return new window[(_0x3aa6c3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4b110b=>{if(_0x9f1360())return _0x4b110b(_0x3aa6c3([0x56,0x61,0x6c,0x69,0x64]));_0x418a7c(),_0x2e9b93[_0x3aa6c3([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3aa6c3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x54e426=!0x1;const _0x5d8abb=_0xc55715();function _0x9d6218(_0x460a35){return!!_0x460a35&&(typeof _0x460a35===_0x3aa6c3([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x460a35===_0x3aa6c3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x460a35[_0x3aa6c3([0x74,0x68,0x65,0x6e])]===_0x3aa6c3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x460a35[_0x3aa6c3([0x63,0x61,0x74,0x63,0x68])]===_0x3aa6c3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3c910f(_0x31f874){_0x57eb90(_0x31f874)[_0x3aa6c3([0x74,0x68,0x65,0x6e])](_0x924ed9=>{if(!_0x924ed9||_0x924ed9[_0x3aa6c3([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3aa6c3([0x6f,0x6b]))return _0x3aa6c3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3eecb5(_0xad0214(_0x5d8abb+_0x2479da))!=_0x924ed9[_0x3aa6c3([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3aa6c3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3aa6c3([0x56,0x61,0x6c,0x69,0x64]);})[_0x3aa6c3([0x74,0x68,0x65,0x6e])](_0x138a99=>(_0x44b1f1(),_0x138a99),()=>{const _0x47a336=_0x585169();return null==_0x47a336?(_0x44b1f1(),_0x3aa6c3([0x56,0x61,0x6c,0x69,0x64])):_0x3aa6c3(_0x3636b7-_0x47a336>(0x27d454df^_0x544eff)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3aa6c3([0x74,0x68,0x65,0x6e])](_0x4b110b)[_0x3aa6c3([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4b110b(_0x3aa6c3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3337dc=0x3ee3e5f^_0x544eff;function _0x44b1f1(){const _0x4a1341=_0x3aa6c3([0x6c,0x6c,0x63,0x74,0x2d])+_0x3eecb5(_0xad0214(_0x5e2710)),_0x1af26e=_0x4d9907(_0x3eecb5(window[_0x3aa6c3([0x4d,0x61,0x74,0x68])][_0x3aa6c3([0x63,0x65,0x69,0x6c])](_0x3636b7/_0x3337dc)));window[_0x3aa6c3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3aa6c3([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4a1341,_0x1af26e);}function _0x585169(){const _0x12e7f5=_0x3aa6c3([0x6c,0x6c,0x63,0x74,0x2d])+_0x3eecb5(_0xad0214(_0x5e2710)),_0x4baab2=window[_0x3aa6c3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3aa6c3([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x12e7f5);return _0x4baab2?window[_0x3aa6c3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4d9907(_0x4baab2),0x10)*_0x3337dc:null;}function _0x57eb90(_0x14629d){return new window[(_0x3aa6c3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x55ce95,_0x3d6ccb)=>{_0x14629d[_0x3aa6c3([0x74,0x68,0x65,0x6e])](_0x55ce95,_0x3d6ccb),window[_0x3aa6c3([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3d6ccb,0x3d9041f^_0x544eff);});}}_0x2e9b93[_0x3aa6c3([0x6f,0x6e])](_0x3aa6c3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x400779,_0x4e86cb)=>{if(_0x4e86cb[0x0]!=_0x5e2710)return _0x4b110b(_0x3aa6c3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4e86cb[0x1]={..._0x4e86cb[0x1],[_0x3aa6c3([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5d8abb};},{[_0x3aa6c3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3aa6c3([0x68,0x69,0x67,0x68])}),_0x2e9b93[_0x3aa6c3([0x6f,0x6e])](_0x3aa6c3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x6af201=>{_0x9d6218(_0x6af201[_0x3aa6c3([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x54e426=!0x0,_0x3c910f(_0x6af201[_0x3aa6c3([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3aa6c3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3aa6c3([0x6c,0x6f,0x77])}),_0x4a41e3[_0x3aa6c3([0x74,0x68,0x65,0x6e])](()=>{_0x54e426||_0x4b110b(_0x3aa6c3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x9f1360(){return _0x2e9b93[_0x3aa6c3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3aa6c3([0x76,0x69,0x65,0x77])][_0x3aa6c3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3aa6c3([0x61,0x75,0x74,0x6f]);}function _0x418a7c(){_0x2e9b93[_0x3aa6c3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3aa6c3([0x76,0x69,0x65,0x77])][_0x3aa6c3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3aa6c3([0x61,0x75,0x74,0x6f]);}}function _0xf8cae2(_0x5c47e3){const _0x3a24e8=[new window[(_0x3aa6c3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x57f3a1=>setTimeout(_0x57f3a1,0x3d1ee13^_0x544eff)),_0x4a41e3[_0x3aa6c3([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3aa6c3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x346842=>{let _0x2d3c5f=0x0;_0x2e9b93[_0x3aa6c3([0x6d,0x6f,0x64,0x65,0x6c])][_0x3aa6c3([0x6f,0x6e])](_0x3aa6c3([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x275c96,_0x1feeb4)=>{_0x1feeb4[0x0][_0x3aa6c3([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2d3c5f++,_0x2d3c5f==(0x3d8d537^_0x544eff)&&(_0x346842(),_0x275c96[_0x3aa6c3([0x6f,0x66,0x66])]());});}))];return window[_0x3aa6c3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3aa6c3([0x72,0x61,0x63,0x65])](_0x3a24e8)[_0x3aa6c3([0x74,0x68,0x65,0x6e])](()=>_0x5c47e3);}async function _0x460a4a(){await _0x4a41e3,_0x2e9b93[_0x3aa6c3([0x6d,0x6f,0x64,0x65,0x6c])][_0x3aa6c3([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x19bc08,_0x2e9b93[_0x3aa6c3([0x6d,0x6f,0x64,0x65,0x6c])][_0x3aa6c3([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x19bc08,_0x2e9b93[_0x3aa6c3([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3aa6c3([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x597945(){return _0x2f5215(_0x3aa6c3([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x4febff(_0x3aa6c3([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x3aa6c3([0x73,0x74,0x61,0x74,0x65])]==_0x3aa6c3([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x19289a(){return _0x2f5215(_0x3aa6c3([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x44f920(){return _0x2f5215(_0x3aa6c3([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x3c8723(_0x58eba7){const _0x54a14d=_0x590828();_0x2e9b93[_0x54a14d]=_0x3aa6c3([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x58eba7,_0x58eba7!=_0x3aa6c3([0x56,0x61,0x6c,0x69,0x64])&&_0x460a4a();}function _0x590828(){const _0x13e916=window[_0x3aa6c3([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3aa6c3([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3aa6c3([0x6e,0x6f,0x77])]())[_0x3aa6c3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3aa6c3([0x2e]),'');let _0x1229a7=_0x3aa6c3([0x52]);for(let _0x375e5f=0x0;_0x375e5f<_0x13e916[_0x3aa6c3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x375e5f+=0x2){let _0x21e87f=window[_0x3aa6c3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x13e916[_0x3aa6c3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x375e5f,_0x375e5f+0x2));_0x21e87f>=_0x466ea4[_0x3aa6c3([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x21e87f-=_0x466ea4[_0x3aa6c3([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1229a7+=_0x466ea4[_0x21e87f];}return _0x1229a7;}function _0x513556(){const _0xa8ac42=_0x347533[_0x3aa6c3([0x73,0x70,0x6c,0x69,0x74])](_0x3aa6c3([0x2e]));if(0x3!=_0xa8ac42[_0x3aa6c3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1d8520(_0xa8ac42[0x1]);function _0x1d8520(_0x1db1d1){const _0x37fcf1=_0x19ccb4(_0x1db1d1);return _0x37fcf1&&_0x395a98()?_0x37fcf1:null;function _0x395a98(){const _0x26f2bc=_0x37fcf1[_0x3aa6c3([0x6a,0x74,0x69])],_0x2516a4=window[_0x3aa6c3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x26f2bc[_0x3aa6c3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x26f2bc[_0x3aa6c3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x40592a={..._0x37fcf1,[_0x3aa6c3([0x6a,0x74,0x69])]:_0x26f2bc[_0x3aa6c3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x26f2bc[_0x3aa6c3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x40592a[_0x3aa6c3([0x76,0x63])],_0xad0214(_0x40592a)==_0x2516a4;}}}async function _0x2e8d32(){let _0x4f7960=!0x0;try{const _0x5e0a67=_0x347533[_0x3aa6c3([0x73,0x70,0x6c,0x69,0x74])](_0x3aa6c3([0x2e])),[_0x20c912,_0x537738,_0x55892f]=_0x5e0a67;return _0x18ef75(_0x20c912),await _0x3f5c2b(_0x20c912,_0x537738,_0x55892f),_0x4f7960;}catch{return!0x1;}function _0x18ef75(_0x3b7ef7){const _0x469795=_0x19ccb4(_0x3b7ef7);_0x469795&&_0x469795[_0x3aa6c3([0x61,0x6c,0x67])]==_0x3aa6c3([0x45,0x53,0x32,0x35,0x36])||(_0x4f7960=!0x1);}async function _0x3f5c2b(_0x4faeca,_0x560cb9,_0x422636){const _0x21bf39=window[_0x3aa6c3([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3aa6c3([0x66,0x72,0x6f,0x6d])](_0x1b7305(_0x422636),_0x375c70=>_0x375c70[_0x3aa6c3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2b2cde=new window[(_0x3aa6c3([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3aa6c3([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4faeca+_0x3aa6c3([0x2e])+_0x560cb9),_0x2de687=window[_0x3aa6c3([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3aa6c3([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2de687)return;const _0x58439a=await _0x2de687[_0x3aa6c3([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3aa6c3([0x6a,0x77,0x6b]),_0x39c4f8,{[_0x3aa6c3([0x6e,0x61,0x6d,0x65])]:_0x3aa6c3([0x45,0x43,0x44,0x53,0x41]),[_0x3aa6c3([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3aa6c3([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3aa6c3([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2de687[_0x3aa6c3([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3aa6c3([0x6e,0x61,0x6d,0x65])]:_0x3aa6c3([0x45,0x43,0x44,0x53,0x41]),[_0x3aa6c3([0x68,0x61,0x73,0x68])]:{[_0x3aa6c3([0x6e,0x61,0x6d,0x65])]:_0x3aa6c3([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x58439a,_0x21bf39,_0x2b2cde)||(_0x4f7960=!0x1);}}function _0x19ccb4(_0xb0a87f){return _0xb0a87f[_0x3aa6c3([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3aa6c3([0x65,0x79]))?JSON[_0x3aa6c3([0x70,0x61,0x72,0x73,0x65])](_0x1b7305(_0xb0a87f)):null;}function _0x1b7305(_0x4cccb8){return window[_0x3aa6c3([0x61,0x74,0x6f,0x62])](_0x4cccb8[_0x3aa6c3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3aa6c3([0x2b]))[_0x3aa6c3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3aa6c3([0x2f])));}function _0xad0214(_0x428fe5){let _0x2cad22=0x1505;function _0x46df4d(_0x1363ee){for(let _0xf959ad=0x0;_0xf959ad<_0x1363ee[_0x3aa6c3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xf959ad++){const _0x5ee7be=_0x1363ee[_0x3aa6c3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xf959ad);_0x2cad22=(_0x2cad22<<0x5)+_0x2cad22+_0x5ee7be,_0x2cad22&=_0x2cad22;}}function _0x59175c(_0x2f8821){Array[_0x3aa6c3([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2f8821)?_0x2f8821[_0x3aa6c3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x59175c):_0x2f8821&&typeof _0x2f8821==_0x3aa6c3([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3aa6c3([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2f8821)[_0x3aa6c3([0x73,0x6f,0x72,0x74])]()[_0x3aa6c3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x46d533,_0x5182e9])=>{_0x46df4d(_0x46d533),_0x59175c(_0x5182e9);}):_0x46df4d(window[_0x3aa6c3([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2f8821));}return _0x59175c(_0x428fe5),_0x2cad22>>>0x0;}function _0x3eecb5(_0x2ab9e5){return _0x2ab9e5[_0x3aa6c3([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3aa6c3([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3aa6c3([0x30]));}function _0x4d9907(_0x46f160){return _0x46f160[_0x3aa6c3([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3aa6c3([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3aa6c3([0x6a,0x6f,0x69,0x6e])]('');}function _0x2f5215(_0x3427d6){return _0x2e9b93[_0x3aa6c3([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3aa6c3([0x68,0x61,0x73])](_0x3427d6);}function _0x4febff(_0x21114f){return _0x2e9b93[_0x3aa6c3([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3aa6c3([0x67,0x65,0x74])](_0x21114f);}function _0x19bc08(){}function _0x3aa6c3(_0x2aad79){return _0x2aad79['map'](_0x338ac8=>String['fromCharCode'](_0x338ac8))['join']('');}_0x3c8723(await _0x15a4ac());}(this);}set['adapter'](_0x12312b){if(this['_adapter'])throw new _0x128a03('track-changes-adapter-already-set',this);this['_adapter']=_0x12312b;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x119dde=!0x1,toJSON:_0x4bd76a=!0x1}={}){const _0x23e0e1=[];for(const _0x4c91da of this['_suggestions']['values']())_0x119dde&&!_0x4c91da['isInContent']||_0x23e0e1['push'](_0x4c91da);return _0x4bd76a?_0x23e0e1['map'](_0x5d1cae=>_0x5d1cae['toJSON']()):_0x23e0e1;}['getSuggestion'](_0x320a0b){const _0x1c6db9=this['_suggestions']['get'](_0x320a0b);if(!_0x1c6db9)throw new _0x128a03('track-changes-suggestion-not-found',this);return _0x1c6db9;}['hasSuggestion'](_0x4163ce){return this['_suggestions']['has'](_0x4163ce);}['addSuggestionData'](_0x11fbe2){const {authorId:_0x3e598b,id:_0x3d4ca6,originalSuggestionId:_0x5d382b,attributes:_0x6233dc}=_0x11fbe2,[_0x1bf992,_0x55cb1d]=_0x11fbe2['type']['split'](':'),_0x6fb85e=this['_suggestions']['get'](_0x3d4ca6)||this['_createSuggestion'](_0x1bf992,_0x55cb1d,_0x3d4ca6,_0x3e598b,_0x6233dc,_0x5d382b);if(this['_addThreadToSuggestion'](_0x6fb85e),this['_checkSuggestionCorrectness'](_0x6fb85e,_0x1bf992,_0x55cb1d||null,_0x3e598b),_0x6fb85e['createdAt']=_0x11fbe2['createdAt'],_0x6fb85e['_isDataLoaded']=!0x0,_0x6233dc&&_0x6233dc['@external']){const _0x207e40=_0x6233dc['@external'],_0x392a54=this['_getExternalAuthor'](_0x207e40['authorName']);_0x6fb85e['authoredAt']=_0x207e40['createdAt'],_0x6fb85e['author']=_0x392a54,_0x6fb85e['isExternal']=!0x0;}else _0x6fb85e['authoredAt']=_0x11fbe2['createdAt'];switch(_0x11fbe2['data']&&(_0x6fb85e['data']=_0x11fbe2['data']),_0x11fbe2['attributes']&&(_0x6fb85e['attributes']=_0x11fbe2['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x6fb85e['_saved']=!0x0),this['_suggestionState']['get'](_0x6fb85e)){case'notReady':this['_suggestionState']['set'](_0x6fb85e,'dataReady');break;case'markerReady':_0x6fb85e['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x6fb85e])),this['_refreshSuggestionsChain'](new Set([_0x6fb85e])),this['_suggestionState']['set'](_0x6fb85e,'ready'),this['fire']('suggestionLoaded',_0x6fb85e)):this['_suggestionState']['set'](_0x6fb85e,'removed');}return _0x6fb85e;}['acceptSuggestion'](_0x11e698){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1993f1 of _0x11e698['getAllAdjacentSuggestions']())_0x1993f1['accept']();});});}['discardSuggestion'](_0x5a9637){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x18da01 of _0x5a9637['getAllAdjacentSuggestions']())_0x18da01['discard']();});});}['enableCommand'](_0x1b4293,_0x4bbdb9){const _0x4505bd=this['editor']['commands']['get'](_0x1b4293);if(!_0x4505bd)throw new _0x128a03('track-changes-command-not-found',this,{'commandName':_0x1b4293});if(this['_enabledCommands']['has'](_0x4505bd))throw new _0x128a03('track-changes-enable-command-twice',this,{'commandName':_0x1b4293});this['_enabledCommands']['add'](_0x4505bd),_0x4bbdb9&&_0x4505bd['on']('execute',(_0x250b93,_0x2f497d)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x2f497d['length']>0x0&&_0x2f497d[_0x2f497d['length']-0x1]&&_0x2f497d[_0x2f497d['length']-0x1]['forceDefaultExecution']?_0x2f497d['pop']():(_0x250b93['return']=_0x4bbdb9((..._0x553d3f)=>_0x4505bd['execute'](..._0x553d3f,{'forceDefaultExecution':!0x0}),..._0x2f497d),_0x250b93['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0xc5d987){let _0x2e60f5,_0x1e4edc;const _0x3a7a7c=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x2e60f5=_0xc5d987();}catch(_0x8bbcf8){_0x1e4edc=_0x8bbcf8;}return _0x3a7a7c||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x1e4edc&&_0x128a03['rethrowUnexpectedError'](_0x1e4edc,this),_0x2e60f5;}['markInsertion'](_0x2a36d1,_0x1350df=null,_0x36c395={}){if(_0x2a36d1['isCollapsed'])return null;const _0x97909e=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x36c395['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0xad5d38,meta:_0x2ed3db}of this['_findSuggestions'](_0x2a36d1,'insertion'))if(_0x2ed3db['isOwn']){if(!_0x2ed3db['isNextTo']){if(_0x2ed3db['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!cn(_0xad5d38,_0x36c395))continue;return _0xad5d38;}if(cn(_0xad5d38,_0x36c395))return _0xad5d38;this['_breakSuggestionMarker'](_0xad5d38,_0x2a36d1['start'],_0x2a36d1['end']);break;}if(_0x1350df==_0xad5d38['subType']&&cn(_0xad5d38,_0x36c395)){const _0x8b53a0=_0xad5d38['getFirstRange']();return _0x8b53a0['start']['isEqual'](_0x2a36d1['end'])?this['_setSuggestionRange'](_0xad5d38,this['_model']['createRange'](_0x2a36d1['start'],_0x8b53a0['end'])):this['_setSuggestionRange'](_0xad5d38,this['_model']['createRange'](_0x8b53a0['start'],_0x2a36d1['end'])),_0xad5d38;}}const _0xb6b3a=_0xc55715(),_0xe7b287=_0x97909e['id'],_0x3879cb=_0x1350df?'insertion:'+_0x1350df:'insertion',_0x1f1bf4=this['_setSuggestionData']({'id':_0xb6b3a,'type':_0x3879cb,'createdAt':new Date(),'authorId':_0xe7b287,'attributes':_0x36c395});return this['_addSuggestionMarker'](_0x3879cb,_0xb6b3a,_0xe7b287,_0x2a36d1),_0x1f1bf4;}['markMultiRangeInsertion'](_0x12f15b,_0xb9bc5c='multi',_0x944c89={}){const _0xe82548=this['editor']['plugins']['get']('Users')['me'],_0x8a452a=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0xb9bc5c,'join');this['_trackingSessionId']&&(_0x944c89['trackingSessionId']=this['_trackingSessionId']);for(const _0x2a40ea of this['getSuggestions']())if(_0x2a40ea['author']['id']==_0xe82548['id']&&'insertion'==_0x2a40ea['type']&&_0x2a40ea['subType']==_0xb9bc5c&&cn(_0x2a40ea,_0x944c89)&&(_0x8a452a(_0x2a40ea['getRanges'](),_0x12f15b)||_0x8a452a(_0x12f15b,_0x2a40ea['getRanges']()))){for(const _0x1776bb of _0x12f15b)_0x2a40ea['addRange'](_0x1776bb);return _0x2a40ea;}for(const {suggestion:_0x492d09,meta:_0x3f1ff9}of this['_findSuggestions'](_0x12f15b,'insertion')){if(!_0x3f1ff9['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x3f1ff9['containsRangeInObject'])continue;if(!cn(_0x492d09,_0x944c89))continue;let _0x1a07ae=!0x0;for(const _0x30c054 of _0x492d09['getRanges']())for(const _0x14fb54 of _0x12f15b)if(!_0x30c054['containsRange'](_0x14fb54)){_0x1a07ae=!0x1;break;}if(_0x1a07ae)return _0x492d09;}const _0x2ef53c=_0xc55715(),_0x643af5=_0xe82548['id'],_0x2c35b4='insertion:'+_0xb9bc5c,_0x3bc5b3=this['_setSuggestionData']({'id':_0x2ef53c,'type':_0x2c35b4,'createdAt':new Date(),'authorId':_0x643af5,'attributes':_0x944c89});for(const _0x8e53fa of _0x12f15b)this['_addSuggestionMarker'](_0x2c35b4,_0x2ef53c,_0x643af5,_0x8e53fa,bt['getMultiRangeId']());return _0x3bc5b3;}['markInlineFormat'](_0xba4f42,_0x1078b1,_0x4798f9=null,_0x10a17b={}){if(_0x4798f9=_0x4798f9||Je(_0x1078b1),_0xba4f42['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x10a17b['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x3fe6c1=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4798f9,'accept');return this['forceDefaultExecution'](()=>_0x3fe6c1([_0xba4f42],_0x1078b1,_0x10a17b)),null;}const _0x1536a6=this['editor']['plugins']['get']('Users')['me'],_0x44c0f4=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x51959b,meta:_0x5565c4}of this['_findSuggestions'](_0xba4f42,'insertion'))_0x5565c4['isOwn']&&!_0x5565c4['isInsideObject']&&_0x44c0f4['push'](..._0x51959b['getRanges']());}const _0x85c2e0=function(_0x51a14a,_0x138f77){const _0x2fe12a=[];for(const _0x2102ba of _0x138f77){const _0x286343=_0x51a14a['getIntersection'](_0x2102ba);_0x286343&&_0x2fe12a['push'](_0x286343);}return _0x2fe12a;}(_0xba4f42,_0x44c0f4),_0x280fa3=function(_0x1480cd,_0x34bbfe){const _0x58e2d2=[_0x1480cd];for(const _0x48d899 of _0x34bbfe){let _0x3101e8=0x0;for(;_0x3101e8<_0x58e2d2['length'];){const _0x2b0602=_0x58e2d2[_0x3101e8]['getDifference'](_0x48d899);_0x58e2d2['splice'](_0x3101e8,0x1,..._0x2b0602),_0x3101e8+=_0x2b0602['length'];}}return _0x58e2d2;}(_0xba4f42,_0x44c0f4);_0x85c2e0['length']&&this['_model']['change'](()=>{for(const _0x1b2c3f of _0x85c2e0){const _0x57f8ca=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4798f9,'accept');this['forceDefaultExecution'](()=>_0x57f8ca([_0x1b2c3f],_0x1078b1,_0x10a17b));}});for(const _0x249d99 of _0x280fa3){let _0x21a12f=null,_0x229383=_0x249d99['start'],_0x5f12be=_0x249d99['end'];for(const {suggestion:_0x170831,meta:_0x10c812}of this['_findSuggestions'](_0x249d99,'formatInline')){if(!_0x10c812['isOwn'])continue;if(_0x170831['subType']!=_0x4798f9)continue;if(!cn(_0x170831,_0x10a17b))continue;const _0x5dd5c9=_0x170831['getFirstRange']();if(_0x5dd5c9['containsRange'](_0x249d99,!0x0))return null;_0x229383=_0x229383['isBefore'](_0x5dd5c9['start'])?_0x229383:_0x5dd5c9['start'],_0x5f12be=_0x5f12be['isAfter'](_0x5dd5c9['end'])?_0x5f12be:_0x5dd5c9['end'],_0x21a12f?_0x5dd5c9['start']['isBefore'](_0x21a12f['getFirstRange']()['start'])?(_0x21a12f['removeMarkers'](),_0x21a12f=_0x170831):_0x170831['removeMarkers']():_0x21a12f=_0x170831;}const _0x569d78=this['_model']['createRange'](_0x229383,_0x5f12be);if(_0x21a12f)this['_setSuggestionRange'](_0x21a12f,_0x569d78);else{const _0x23f9f7=_0xc55715(),_0x7aa6e3=_0x1536a6['id'];this['_setSuggestionData']({'id':_0x23f9f7,'type':'formatInline:'+_0x4798f9,'data':_0x1078b1,'createdAt':new Date(),'authorId':_0x7aa6e3,'attributes':_0x10a17b}),this['_addSuggestionMarker']('formatInline:'+_0x4798f9,_0x23f9f7,_0x7aa6e3,_0x569d78);}}return null;}['markBlockFormat'](_0x2f4e0a,_0x420902,_0xd0d148=[],_0xde2489=null,_0x26ad3e={}){_0x420902['formatGroupId']||(_0x420902['formatGroupId']=_0x420902['commandName']),_0x420902['multipleBlocks']=_0x2f4e0a['is']('range'),_0xde2489=_0xde2489||Je(_0x420902);const _0xdabf19=_0xd0d148['map'](_0x39e561=>rn(_0x39e561,this['_model'])),_0x1b8702=_0x2f4e0a['is']('range')?_0x2f4e0a:rn(_0x2f4e0a,this['_model']);if(this['_trackingSessionId']&&(_0x26ad3e['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x13dd86=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xde2489,'accept');return this['forceDefaultExecution'](()=>_0x13dd86([_0x1b8702],_0x420902,_0x26ad3e)),null;}_0xdabf19['push'](_0x1b8702);let _0x5e2949=!0x0;for(const _0x40618d of _0xdabf19)if(!this['_rangeIsInLocalUserInsertion'](_0x40618d)){_0x5e2949=!0x1;break;}if(_0x5e2949&&'always'!==this['_trackFormatChanges']){const _0xcdf127=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xde2489,'accept');return this['forceDefaultExecution'](()=>_0xcdf127([_0x1b8702],_0x420902,_0x26ad3e)),null;}let _0x58c130=null,_0x3ca4bb=_0x1b8702['start'],_0x4f2884=_0x1b8702['end'];for(const {suggestion:_0x1283a0,meta:_0x18c0ac}of this['_findSuggestions'](_0x1b8702,'formatBlock')){if(!_0x18c0ac['isOwn'])continue;if(_0x18c0ac['isNextTo']||_0x18c0ac['containsRangeInObject']||_0x18c0ac['isInsideObject'])continue;if(_0x1283a0['data']['formatGroupId']!=_0x420902['formatGroupId'])continue;if(!cn(_0x1283a0,_0x26ad3e))continue;const _0x50a725=_0x1283a0['getFirstRange']();if(_0x1283a0['subType']==_0xde2489){if(_0x50a725['containsRange'](_0x1b8702,!0x0))return null;_0x3ca4bb=_0x3ca4bb['isBefore'](_0x50a725['start'])?_0x3ca4bb:_0x50a725['start'],_0x4f2884=_0x4f2884['isAfter'](_0x50a725['end'])?_0x4f2884:_0x50a725['end'],_0x58c130?_0x50a725['start']['isBefore'](_0x58c130['getFirstRange']()['start'])?(_0x58c130['removeMarkers'](),_0x58c130=_0x1283a0):_0x1283a0['removeMarkers']():_0x58c130=_0x1283a0;}else{const _0x1dc42f=_0x1b8702['getIntersection'](_0x50a725);this['_cutOutSuggestionMarker'](_0x1283a0,_0x1dc42f);}}const _0x59f169=this['editor']['plugins']['get']('Users')['me'],_0x4de85e=_0xc55715(),_0xc5c12=_0x59f169['id'];if(_0x58c130)return this['_setSuggestionRange'](_0x58c130,this['_model']['createRange'](_0x3ca4bb,_0x4f2884)),_0x58c130;{const _0x1d269e=this['_setSuggestionData']({'id':_0x4de85e,'type':'formatBlock:'+_0xde2489,'data':_0x420902,'createdAt':new Date(),'authorId':_0xc5c12,'attributes':_0x26ad3e});return this['_addSuggestionMarker']('formatBlock:'+_0xde2489,_0x4de85e,_0xc5c12,this['_model']['createRange'](_0x3ca4bb,_0x4f2884)),_0x1d269e;}}['markMultiRangeBlockFormat'](_0x45994b,_0x4d0768,_0x2c6275=[],_0x5347ac=null,_0x36f2ad={}){_0x4d0768['formatGroupId']||(_0x4d0768['formatGroupId']=_0x4d0768['commandName']);const _0x14b975=_0x45994b[0x0];_0x4d0768['multipleBlocks']=_0x14b975['is']('range'),_0x5347ac=_0x5347ac||Je(_0x4d0768);const _0x8f1c03=_0x2c6275['map'](_0x6869f9=>rn(_0x6869f9,this['_model'])),_0x4accff=_0x14b975['is']('range')?_0x45994b:_0x45994b['map'](_0x5e6a31=>rn(_0x5e6a31,this['_model']));if(this['_trackingSessionId']&&(_0x36f2ad['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x2c9ede=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5347ac,'accept');return this['forceDefaultExecution'](()=>_0x2c9ede(_0x4accff,_0x4d0768,_0x36f2ad)),null;}_0x8f1c03['push'](..._0x4accff);let _0x354009=!0x0;for(const _0x2da23d of _0x8f1c03)if(!this['_rangeIsInLocalUserInsertion'](_0x2da23d)){_0x354009=!0x1;break;}if(_0x354009&&'always'!==this['_trackFormatChanges']){const _0x4c58e5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5347ac,'accept');return this['forceDefaultExecution'](()=>_0x4c58e5(_0x4accff,_0x4d0768,_0x36f2ad)),null;}const _0x338e2d=this['editor']['plugins']['get']('Users')['me'];for(const _0x4880c7 of this['getSuggestions']()){const _0x6f4e72=_0x4880c7['data'];if(_0x4880c7['author']['id']!=_0x338e2d['id'])continue;if('formatBlock'!=_0x4880c7['type']||_0x6f4e72['formatGroupId']!=_0x4d0768['formatGroupId'])continue;if(!cn(_0x4880c7,_0x36f2ad))continue;const _0x3ef3ea=_0x4880c7['subType']==_0x5347ac;for(let _0x24ea21=0x0;_0x24ea21<_0x4accff['length'];_0x24ea21++){const _0x3ad1af=_0x4accff[_0x24ea21];for(const _0x47e76d of _0x4880c7['getMarkers']()){const _0x1cac41=_0x47e76d['getRange']();if(_0x3ad1af['isEqual'](_0x1cac41)){_0x3ef3ea?(_0x4accff['splice'](_0x24ea21,0x1),_0x24ea21--):_0x4880c7['removeMarker'](_0x47e76d['name']);break;}}}}if(0x0==_0x4accff['length'])return null;const _0x22b6e0=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5347ac,'join');for(const _0x269f48 of this['getSuggestions']()){const _0x1e0391=_0x269f48['data'];if(_0x269f48['author']['id']==_0x338e2d['id']&&('formatBlock'==_0x269f48['type']&&_0x1e0391['formatGroupId']==_0x4d0768['formatGroupId']&&_0x269f48['subType']==_0x5347ac&&cn(_0x269f48,_0x36f2ad)&&(_0x22b6e0(_0x269f48['getRanges'](),_0x4accff)||_0x22b6e0(_0x4accff,_0x269f48['getRanges']())))){for(const _0x434e75 of _0x4accff)_0x269f48['addRange'](_0x434e75);return _0x269f48;}}const _0x3ec42e=_0xc55715(),_0x4c719b=_0x338e2d['id'],_0x3c1262='formatBlock:'+_0x5347ac,_0x3c7547=this['_setSuggestionData']({'id':_0x3ec42e,'type':_0x3c1262,'data':_0x4d0768,'createdAt':new Date(),'authorId':_0x4c719b,'attributes':_0x36f2ad});for(const _0x373fcb of _0x4accff)this['_addSuggestionMarker'](_0x3c1262,_0x3ec42e,_0x4c719b,_0x373fcb,bt['getMultiRangeId']());return _0x3c7547;}['markDeletion'](_0x4bc235,_0x487baa=null,_0x386f7b={}){if(_0x4bc235['isCollapsed'])return null;const _0x23fb4c=this['editor']['plugins']['get']('Users')['me'],_0x32e477=new _0x5e7de2(_0x4bc235['start'],_0x4bc235['end']);this['_trackingSessionId']&&(_0x386f7b['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x48186f,meta:_0x4ca9d8}of this['_findSuggestions'](_0x32e477,'insertion'))if(_0x4ca9d8['isOwn']&&!_0x4ca9d8['isNextTo']){if(_0x48186f['isMultiRange']){const _0x29b776=_0x48186f['getRanges']()['filter'](_0x2d54aa=>'$graveyard'!=_0x2d54aa['root']['rootName']);_0x29b776['every'](_0x27c166=>_0x32e477['containsRange'](_0x27c166,!0x0))&&_0x48186f['discard']();if(_0x29b776['some'](_0x3a1d85=>_0x3a1d85['containsRange'](_0x32e477,!0x0))){const _0x32c9e1=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x487baa,'accept');return this['forceDefaultExecution'](()=>_0x32c9e1([_0x32e477],null,_0x386f7b)),null;}}else{const _0x23207d=_0x32e477['getIntersection'](_0x48186f['getFirstRange']());null!==_0x23207d&&_0x48186f['_onDiscard']([_0x23207d],null,_0x386f7b);}}if(_0x32e477['detach'](),_0x32e477['isCollapsed']||'$graveyard'==_0x32e477['root']['rootName'])return null;let _0x16a1ac=null,_0x291183=_0x32e477['start'],_0x125ac2=_0x32e477['end'];const _0x15bf42=this['_findSuggestions'](_0x32e477,'deletion');for(const {suggestion:_0x40fd75,meta:_0x2432f4}of _0x15bf42){const _0x3a2dcc=this['_model']['createRange'](_0x291183,_0x125ac2);if(_0x2432f4['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2432f4['containsRangeInObject']&&!_0x2432f4['isInsideObject'])){if(_0x40fd75['isMultiRange']){if(!cn(_0x40fd75,_0x386f7b))continue;let _0x257529=!0x0;for(const _0x564b88 of _0x40fd75['getRanges']()){if(_0x564b88['containsRange'](_0x3a2dcc,!0x0))return _0x40fd75;_0x3a2dcc['containsRange'](_0x564b88)||(_0x257529=!0x1);}_0x257529&&_0x40fd75['discard']();}else{const _0x1912e1=_0x40fd75['getFirstRange']();if(_0x1912e1['containsRange'](_0x3a2dcc,!0x0))return _0x40fd75;if(!cn(_0x40fd75,_0x386f7b)){_0x3a2dcc['containsRange'](_0x1912e1)?_0x40fd75['removeMarkers']():_0x1912e1['containsPosition'](_0x291183)?_0x291183=_0x1912e1['end']:_0x1912e1['containsPosition'](_0x125ac2)&&(_0x125ac2=_0x1912e1['start']);continue;}_0x291183=_0x291183['isBefore'](_0x1912e1['start'])?_0x291183:_0x1912e1['start'],_0x125ac2=_0x125ac2['isAfter'](_0x1912e1['end'])?_0x125ac2:_0x1912e1['end'],_0x386f7b=Object['assign']({},_0x40fd75['attributes']),_0x16a1ac?_0x1912e1['start']['isBefore'](_0x16a1ac['getFirstRange']()['start'])?(_0x16a1ac['removeMarkers'](),_0x16a1ac=_0x40fd75):_0x40fd75['removeMarkers']():_0x16a1ac=_0x40fd75;}}}if(_0x16a1ac)return this['_setSuggestionRange'](_0x16a1ac,this['_model']['createRange'](_0x291183,_0x125ac2)),_0x16a1ac;{const _0x45345f=_0xc55715(),_0x1b3404=this['_model']['createRange'](_0x291183,_0x125ac2),_0x1cd3ef=_0x23fb4c['id'],_0x42aac5=_0x487baa?'deletion:'+_0x487baa:'deletion',_0x18453c=this['_setSuggestionData']({'id':_0x45345f,'type':_0x42aac5,'createdAt':new Date(),'authorId':_0x1cd3ef,'attributes':_0x386f7b});return this['_addSuggestionMarker'](_0x42aac5,_0x45345f,_0x1cd3ef,_0x1b3404),_0x18453c;}}['markMultiRangeDeletion'](_0x260c95,_0x4de58d='multi',_0x14f8f8={}){const _0xada687=this['editor']['plugins']['get']('Users')['me'],_0xcc65af=_0x260c95['map'](_0x46af96=>new _0x5e7de2(_0x46af96['start'],_0x46af96['end'])),_0x57c319=new Set();this['_trackingSessionId']&&(_0x14f8f8['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x92768e,meta:_0x470289}of this['_findSuggestions'](_0xcc65af,'insertion'))_0x470289['isOwn']&&!_0x470289['isNextTo']&&_0x57c319['add'](_0x92768e);for(const _0x56c704 of _0x57c319)if(_0x56c704['isMultiRange']){const _0x1ab9d5=_0x56c704['getRanges']();(!_0x56c704['attributes']||!_0x56c704['attributes']['skipNestingCheck'])&&(_0x1ab9d5['every'](_0x1ca3b7=>_0xcc65af['some'](_0x1108ee=>_0x1108ee['containsRange'](_0x1ca3b7,!0x0)))&&_0x56c704['discard']());if(_0xcc65af['every'](_0x495242=>_0x1ab9d5['some'](_0xb4f36f=>_0xb4f36f['containsRange'](_0x495242,!0x0)))){const _0xf2ccda=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4de58d,'accept');return this['forceDefaultExecution'](()=>_0xf2ccda(_0x260c95,null,_0x14f8f8)),null;}}else{const _0x2a43fe=_0x56c704['getFirstRange']();_0xcc65af['some'](_0x1c8e8e=>_0x1c8e8e['containsRange'](_0x2a43fe,!0x0))&&_0x56c704['discard']();if(_0xcc65af['every'](_0x363ce4=>_0x2a43fe['containsRange'](_0x363ce4,!0x0))){const _0x37d317=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4de58d,'accept');return this['forceDefaultExecution'](()=>_0x37d317(_0xcc65af,null,_0x14f8f8)),null;}}const _0x28b4a6=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4de58d,'join');let _0x3f5e90=null;for(const _0x499ac4 of this['getSuggestions']())if(_0x499ac4['author']['id']==_0xada687['id']&&_0x499ac4['isInContent']&&'deletion'==_0x499ac4['type']&&_0x499ac4['subType']==_0x4de58d&&cn(_0x499ac4,_0x14f8f8)&&(_0x28b4a6(_0x499ac4['getRanges'](),_0xcc65af)||_0x28b4a6(_0xcc65af,_0x499ac4['getRanges']()))){if(_0x3f5e90){if(_0x499ac4['commentThread']&&_0x499ac4['commentThread']['length'])continue;for(const _0x12c1f0 of _0x499ac4['getRanges']())_0x3f5e90['isIntersectingWithRange'](_0x12c1f0)||_0x3f5e90['addRange'](_0x12c1f0);_0x499ac4['removeMarkers']();}else{_0x3f5e90=_0x499ac4;for(const _0x5f29a0 of _0xcc65af)_0x499ac4['isIntersectingWithRange'](_0x5f29a0)||_0x499ac4['addRange'](_0x5f29a0);}}if(_0x3f5e90)return _0x3f5e90;_0x57c319['clear']();for(const {suggestion:_0x54b331,meta:_0x366f27}of this['_findSuggestions'](_0xcc65af,'deletion'))_0x366f27['isOwn']&&(this['_mergeNestedSuggestions']||!_0x366f27['containsRangeInObject']&&!_0x366f27['isInsideObject'])&&cn(_0x54b331,_0x14f8f8)&&_0x57c319['add'](_0x54b331);for(const _0x226aa3 of _0x57c319){const _0x59712a=_0x226aa3['getRanges']();if(!_0x14f8f8||!_0x14f8f8['skipNestingCheck']){if(_0xcc65af['every'](_0x56e72d=>_0x59712a['some'](_0x2f536f=>_0x2f536f['containsRange'](_0x56e72d,!0x0))))return _0x226aa3;}(!_0x226aa3['attributes']||!_0x226aa3['attributes']['skipNestingCheck'])&&(_0x59712a['every'](_0x1cf1ed=>_0xcc65af['some'](_0x559b52=>_0x559b52['containsRange'](_0x1cf1ed,!0x0)))&&_0x226aa3['discard']());}const _0x1c3bb5=_0xc55715(),_0x5c2b1f=_0xada687['id'],_0x466612='deletion:'+_0x4de58d,_0x25b895=this['_setSuggestionData']({'id':_0x1c3bb5,'type':_0x466612,'createdAt':new Date(),'authorId':_0x5c2b1f,'attributes':_0x14f8f8});for(const _0x750864 of _0xcc65af)_0x750864['detach'](),_0x750864['isCollapsed']||'$graveyard'==_0x750864['root']['rootName']||this['_addSuggestionMarker'](_0x466612,_0x1c3bb5,_0x5c2b1f,_0x750864,bt['getMultiRangeId']());return _0x25b895;}['markAttributeChange'](_0x4db407,_0x3016bd,_0x288d2c,_0x49773b,_0x59414d){if(_0x4db407['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0xcf1582=this['editor']['plugins']['get']('Users')['me']['id'],_0x13bb0d=Array['from'](this['_suggestions']['values']())['filter'](_0x585066=>'attribute'==_0x585066['type']&&_0x585066['data']['key']==_0x3016bd&&_0x585066['isIntersectingWithRange'](_0x4db407));if(this['_trackingSessionId']&&(_0x59414d['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x1ecbde=this['_findSuggestions'](_0x4db407,'insertion')['filter'](({meta:_0x478380})=>_0x478380['isOwn']&&!_0x478380['isInsideObject']&&!_0x478380['isNextTo'])['map'](({suggestion:_0x31798b})=>_0x31798b);_0x13bb0d['unshift'](..._0x1ecbde);}const _0x37feea=new Map([[_0x4db407,_0x288d2c]]);for(const _0x23e48d of _0x13bb0d){const _0xc5a8b5='attribute'==_0x23e48d['type']?_0x23e48d['data']['oldValue']:void 0x0,_0x4740cb=_0x23e48d['getFirstRange'](),_0x1bac55=Array['from'](_0x37feea['keys']())['find'](_0x120b37=>_0x120b37['isIntersecting'](_0x4740cb));if(!_0x1bac55)continue;const _0x1b15d4=_0x1bac55['getDifference'](_0x4740cb);this['_suggestionsConversion']['isBlockAttribute'](_0x3016bd)&&'insertion'==_0x23e48d['type']&&0x0!=_0x1b15d4['length']||(_0x37feea['delete'](_0x1bac55),_0x1b15d4['forEach'](_0x2c542f=>{_0x37feea['set'](_0x2c542f,_0x288d2c);}),'insertion'!=_0x23e48d['type']&&_0xc5a8b5!=_0x49773b&&_0x37feea['set'](_0x1bac55['getIntersection'](_0x4740cb),_0xc5a8b5));}const _0x1b017b=[];for(const [_0x1721d5,_0x2df869]of _0x37feea){const _0x49745a=_0xc55715(),_0x3ecec3={'key':_0x3016bd,'oldValue':_0x2df869,'newValue':_0x49773b};_0x3016bd['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':_0x3016bd});const _0x3a1def=('attribute:'+(_0x3016bd+'|'+Je({'newValue':_0x49773b})))['substring'](0x0,0x3c),_0x550656=this['_setSuggestionData']({'id':_0x49745a,'type':_0x3a1def,'data':_0x3ecec3,'createdAt':new Date(),'authorId':_0xcf1582,'attributes':_0x59414d});_0x1b017b['push'](_0x550656),this['_addSuggestionMarker'](_0x3a1def,_0x49745a,_0xcf1582,_0x1721d5);}return _0x1b017b;}['enableDefaultAttributesIntegration'](_0x3d8bc0){this['enableCommand'](_0x3d8bc0,(_0xc7df7b,..._0x10b2ea)=>{this['recordAttributeChanges'](()=>{_0xc7df7b(..._0x10b2ea);});});}['startTrackingSession'](_0x2a5135){return this['_trackingSessionId']=void 0x0!==_0x2a5135?_0x2a5135:_0xc55715(),this['_trackingSessionId'];}['_getAttributeKey'](_0x18a575){return'attribute'==_0x18a575['type']?un(_0x18a575['subType']):null;}['_applyOperationsAsSuggestions'](_0x110c3b){if(0x0==_0x110c3b['length'])return;const _0x5aa541=this['editor'],_0x5db202=_0x5aa541['plugins']['get'](_0x1f2da9),_0x4552a0=[];_0x5aa541['model']['change'](_0x205716=>{for(let _0x4eaf6f=0x0;_0x4eaf6f<_0x110c3b['length'];_0x4eaf6f++){const _0x16af2d=_0x110c3b[_0x4eaf6f];if(_0x16af2d['baseVersion']=_0x5aa541['model']['document']['version'],_0x16af2d['isDocumentOperation']=!0x0,_0x5db202['isMarkedRemoveOperation'](_0x16af2d)){const _0x31ee30=_0xb158df(_0x16af2d['newRange'],_0x5aa541['model']);_0x4552a0['unshift'](_0x5e7de2['fromRange'](_0x31ee30));}else switch(_0x16af2d['type']){case'rename':{const _0x1f99ff=_0x16af2d['oldName'],_0x1acbc3=_0x16af2d['newName'];if(_0x1f99ff==_0x1acbc3)break;_0x205716['batch']['addOperation'](_0x16af2d),_0x5aa541['model']['applyOperation'](_0x16af2d);const _0x4e4cf8='$elementName',_0x30640b=_0x16af2d['position'],_0x192e5a=_0x5aa541['model']['createRange'](_0x30640b,_0x5aa541['model']['createPositionAt'](_0x30640b['nodeAfter'],'end'));this['markAttributeChange'](_0x192e5a,_0x4e4cf8,_0x1f99ff,_0x1acbc3,{'groupId':_0xc55715()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x5e885c=_0x16af2d['oldValue'],_0x4483b0=_0x16af2d['newValue'];if(_0x5e885c==_0x4483b0)break;_0x205716['batch']['addOperation'](_0x16af2d),_0x5aa541['model']['applyOperation'](_0x16af2d);const _0x51c4e6=_0x16af2d['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x51c4e6))break;const _0x584c8a=_0xb158df(_0x16af2d['range'],_0x5aa541['model']);this['markAttributeChange'](_0x584c8a,_0x51c4e6,_0x5e885c,_0x4483b0,{'groupId':_0xc55715()});break;}case'insert':{_0x205716['batch']['addOperation'](_0x16af2d),_0x5aa541['model']['applyOperation'](_0x16af2d);if(_0x110c3b[_0x4eaf6f+0x1]&&'move'==_0x110c3b[_0x4eaf6f+0x1]['type'])break;const _0x2ea09a=_0x16af2d['position'],_0x3ab722=_0x16af2d['howMany'],_0x1ebeca=_0xb158df(_0x5aa541['model']['createRange'](_0x2ea09a,_0x2ea09a['getShiftedBy'](_0x3ab722)),_0x5aa541['model']);this['markInsertion'](_0x1ebeca);break;}case'split':{_0x205716['batch']['addOperation'](_0x16af2d),_0x5aa541['model']['applyOperation'](_0x16af2d);const _0x43ad45=_0x16af2d['splitPosition'],_0x1657a4=_0x16af2d['moveTargetPosition'];this['markInsertion'](_0x5aa541['model']['createRange'](_0x43ad45,_0x1657a4));break;}case'move':case'remove':_0x205716['batch']['addOperation'](_0x16af2d),_0x5aa541['model']['applyOperation'](_0x16af2d);}}for(const _0x3eb3d9 of _0x4552a0)_0x3eb3d9['detach'](),this['markDeletion'](_0x3eb3d9);});}['_setSuggestionRange'](_0x522aff,_0x3906d0){const _0x123c2b=_0x522aff['getFirstMarker']();this['_model']['change'](_0x3b0475=>{_0x3b0475['updateMarker'](_0x123c2b,{'range':_0x3906d0});});}['_addThreadToSuggestion'](_0x470e14){const _0x2cdc0f=_0x470e14['id'],_0x305049=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x2cdc0f)||this['_commentsRepository']['addCommentThread']({'channelId':_0x305049,'threadId':_0x2cdc0f,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x4bf021=this['_commentsRepository']['getCommentThread'](_0x2cdc0f);_0x4bf021['unbind']('isRemovable'),_0x4bf021['isRemovable']=!0x1,_0x470e14['commentThread']=_0x4bf021;}['_checkSuggestionCorrectness'](_0x4c6d4a,_0x3d309f,_0x56dbb6,_0x4bebce){if(_0x4c6d4a['type']!=_0x3d309f||_0x4c6d4a['subType']!=_0x56dbb6||_0x4c6d4a['creator']['id']!=_0x4bebce)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x128a03('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x92a0ac,_0x6f5eba){const _0x260fb4=_0x92a0ac['getFirstRange']();if(_0x6f5eba['isEqual'](_0x260fb4))_0x92a0ac['removeMarkers']();else{if(_0x260fb4['containsRange'](_0x6f5eba)){const _0x224424=this['_model']['createPositionAt'](_0x6f5eba['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x92a0ac,this['_model']['createRange'](_0x260fb4['start'],_0x224424));const _0x2b7d0a=_0xc55715(),_0x6ebceb=_0x92a0ac['creator']['id'],_0x1a8ba9=_0x92a0ac['type']+':'+_0x92a0ac['subType'];this['_setSuggestionData']({'id':_0x2b7d0a,'type':_0x1a8ba9,'createdAt':new Date(),'authorId':_0x6ebceb,'data':_0x92a0ac['data'],'attributes':_0x92a0ac['attributes']});const _0x5069e6=this['_model']['createPositionAt'](_0x6f5eba['end']['parent'],'after'),_0x256216=this['_model']['createRange'](_0x5069e6,_0x260fb4['end']);this['_addSuggestionMarker'](_0x1a8ba9,_0x2b7d0a,_0x6ebceb,_0x256216);}else{if(_0x260fb4['containsPosition'](_0x6f5eba['start'])){const _0x268f73=this['_model']['createPositionAt'](_0x6f5eba['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x92a0ac,this['_model']['createRange'](_0x260fb4['start'],_0x268f73));}else{const _0x23da07=this['_model']['createPositionAt'](_0x6f5eba['end']['parent'],'after');this['_setSuggestionRange'](_0x92a0ac,this['_model']['createRange'](_0x23da07,_0x260fb4['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x30f9b0){for(const {suggestion:_0x819f8c,meta:_0x10a8e6}of this['_findSuggestions'](_0x30f9b0,'insertion')){if(!_0x10a8e6['isOwn'])continue;const _0x266322=_0x819f8c['getRanges']();for(const _0x36f96f of _0x266322)if(!_0x30f9b0['getDifference'](_0x36f96f)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x467833){return this['editor']['plugins']['get']('Users')['getUser'](_0x467833);}['_getExternalAuthor'](_0x5c4a81){const _0x5d5322=this['editor']['plugins']['get']('Users'),_0x2791f1=_0x43c1d5('external:'+_0x5c4a81),_0x3c1ed9=_0x5d5322['getUser'](_0x2791f1);return _0x3c1ed9||_0x5d5322['addUser']({'id':_0x2791f1,'name':_0x5c4a81});}['_createSuggestion'](_0x412a9a,_0x44fd92,_0x4a132d,_0x59f223,_0x198be9,_0x16e1a1){const _0x4b2336=this['_getAuthorFromId'](_0x59f223);if(!_0x4b2336)throw new _0x128a03('track-changes-user-not-found',this,{'authorId':_0x59f223,'suggestionId':_0x4a132d});const _0x163a0a=this['_suggestionFactory']['buildSuggestion'](_0x412a9a,_0x44fd92,_0x4a132d,_0x4b2336,_0x198be9,_0x498517=>{this['_updateSuggestionData'](_0x4a132d,{'attributes':_0x498517});const _0x3f649d=this['getSuggestion'](_0x4a132d);this['_joinWithAdjacentSuggestions'](new Set([_0x3f649d])),this['_refreshSuggestionsChain'](new Set([_0x3f649d]));},_0x16e1a1);return this['listenTo'](_0x163a0a,'accept',()=>{this['_updateSuggestionData'](_0x4a132d,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x163a0a,'discard',()=>{this['_updateSuggestionData'](_0x4a132d,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x4a132d,_0x163a0a),this['_suggestionState']['set'](_0x163a0a,'notReady'),_0x163a0a;}['_breakSuggestionMarker'](_0x4fc9a2,_0x4a8101,_0x43ec91){const _0x42f1b2=_0x4fc9a2['getFirstRange'](),_0x121053=_0x42f1b2['start'],_0x277a98=_0x42f1b2['end'];this['_setSuggestionRange'](_0x4fc9a2,this['_model']['createRange'](_0x121053,_0x4a8101));const _0x301d94=_0xc55715(),_0x5f039d=_0x4fc9a2['creator']['id'],_0x2e1663=_0x4fc9a2['type']+(_0x4fc9a2['subType']?':'+_0x4fc9a2['subType']:'');this['_setSuggestionData']({'id':_0x301d94,'type':_0x2e1663,'createdAt':new Date(),'authorId':_0x5f039d,'originalSuggestionId':_0x4fc9a2['_originalSuggestionId']||_0x4fc9a2['id'],'attributes':_0x4fc9a2['attributes'],'data':_0x4fc9a2['data']});const _0xabbf80=this['_getAttributeKey'](_0x4fc9a2);('formatBlock'==_0x4fc9a2['type']||_0xabbf80&&this['_suggestionsConversion']['isBlockAttribute'](_0xabbf80))&&(_0x43ec91=this['_model']['createPositionBefore'](_0x43ec91['parent'])),this['_addSuggestionMarker'](_0x2e1663,_0x301d94,_0x5f039d,this['_model']['createRange'](_0x43ec91,_0x277a98));}['_findSuggestions'](_0x11aaec,_0x128395=null){const _0x4ad7d9=[],_0x3d37a1=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x11aaec)||(_0x11aaec=[_0x11aaec]);for(const _0x5bc762 of this['getSuggestions']()){if(!_0x5bc762['isInContent'])continue;if(_0x128395&&_0x5bc762['type']!=_0x128395)continue;let _0x3da8ac=!0x1;for(const _0x2f256f of _0x5bc762['getRanges']()){for(const _0x366760 of _0x11aaec){const _0x310f3f=_0x366760['start']['isEqual'](_0x2f256f['end'])||_0x366760['end']['isEqual'](_0x2f256f['start']);if(_0x310f3f||_0x366760['getIntersection'](_0x2f256f)){const _0x1aa28e=_0x366760['containsRange'](_0x2f256f)&&qe(this['_model']['schema'],_0x2f256f['start'],_0x366760),_0x385d9a=_0x2f256f['containsRange'](_0x366760)&&qe(this['_model']['schema'],_0x366760['start'],_0x2f256f);_0x4ad7d9['push']({'suggestion':_0x5bc762,'meta':{'isOwn':_0x3d37a1==_0x5bc762['author'],'isNextTo':_0x310f3f,'isInsideObject':_0x1aa28e,'containsRangeInObject':_0x385d9a}}),_0x3da8ac=!0x0;break;}}if(_0x3da8ac)break;}}return _0x4ad7d9;}['_addSuggestionMarker'](_0x4d8c0f,_0x471a26,_0x4b4268,_0x750ee6,_0x1b0896){this['_model']['change'](_0x46c9dd=>{let _0x481884='suggestion:'+_0x4d8c0f+':'+_0x471a26+':'+_0x4b4268;_0x1b0896&&(_0x481884=_0x481884+':'+_0x1b0896),_0x46c9dd['addMarker'](_0x481884,{'range':_0x750ee6,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x4c0a46){const _0x59c1b2=_0x4c0a46['previous'],_0x38161d=_0x4c0a46['next'];_0x4c0a46['previous']=null,_0x4c0a46['next']=null,null!=_0x59c1b2&&_0x59c1b2['next']==_0x4c0a46&&(_0x59c1b2['next']=_0x38161d),null!=_0x38161d&&_0x38161d['previous']==_0x4c0a46&&(_0x38161d['previous']=_0x59c1b2),'ready'==this['_suggestionState']['get'](_0x4c0a46)&&(this['_suggestionState']['set'](_0x4c0a46,'removed'),this['fire']('suggestionUnloaded',_0x4c0a46,_0x59c1b2,_0x38161d));}['_setSuggestionData'](_0x25826d){const _0x84ce93=_0x25826d['id'],_0x3ee41a=this['addSuggestionData'](_0x25826d);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x2de594=this['editor']['plugins']['get']('PendingActions'),_0x3b172d=_0x3ee41a['hasComments'],_0x122244=_0x3ee41a['subType']?_0x3ee41a['type']+':'+_0x3ee41a['subType']:_0x3ee41a['type'],_0x578f3=this['editor']['locale'],_0x165429=_0x2de594['add'](At(_0x578f3,'PENDING_ACTION_SUGGESTION')),_0x382ecc={'id':_0x84ce93,'type':_0x122244,'hasComments':_0x3b172d,'data':_0x25826d['data']||null,'originalSuggestionId':_0x25826d['originalSuggestionId']||null,'attributes':_0x3ee41a['attributes']};this['_adapter']['addSuggestion'](_0x382ecc)['then'](_0x1a8f39=>{_0x3ee41a['_saved']=!0x0,_0x2de594['remove'](_0x165429),_0x1a8f39&&_0x1a8f39['createdAt']&&(this['_suggestions']['get'](_0x84ce93)['createdAt']=_0x1a8f39['createdAt']);})['catch'](_0x3f3a33=>{throw _0x1f1d24('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x3ee41a['discard']();}),_0x3ee41a['stopListening'](),this['_suggestions']['delete'](_0x3ee41a['id']),this['_suggestionState']['delete'](_0x3ee41a),_0x3f3a33;});}return _0x3ee41a;}['_updateSuggestionData'](_0x1acfa1,_0x20ca84){const _0x144842=this['editor']['plugins']['get']('PendingActions'),_0x58647f=this['getSuggestion'](_0x1acfa1);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x58647f['_saved']){const _0x490a2d=_0x144842['add'](At(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x1acfa1,_0x20ca84)['then'](()=>{_0x144842['remove'](_0x490a2d);});}else _0x58647f['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x1acfa1,_0x20ca84);});}}['_getSuggestionData'](_0x47d7f9){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x128a03('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x47d7f9);}['_handleNewSuggestionMarker'](_0x17b88f){const {id:_0x564b79,type:_0x1ec519,subType:_0x13d39a,authorId:_0x32df4a}=_0x4ae9fb(_0x17b88f),_0x3e2bb0=this['_suggestions']['get'](_0x564b79)||this['_createSuggestion'](_0x1ec519,_0x13d39a,_0x564b79,_0x32df4a,{});switch(this['_checkSuggestionCorrectness'](_0x3e2bb0,_0x1ec519,_0x13d39a,_0x32df4a),this['_suggestionState']['get'](_0x3e2bb0)){case'notReady':this['_getSuggestionData'](_0x564b79)['then'](_0xe7ace7=>{let _0x512fb9=Promise['resolve']();_0xe7ace7['hasComments']&&(_0x512fb9=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x564b79})),_0x512fb9['then'](()=>{this['addSuggestionData'](_0xe7ace7)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x3e2bb0,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x564b79,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x3e2bb0,'ready'),this['fire']('suggestionLoaded',_0x3e2bb0);break;case'ready':this['fire']('suggestionChanged',_0x3e2bb0);}return _0x3e2bb0['addMarkerName'](_0x17b88f),_0x3e2bb0;}['_refreshSuggestionsChain'](_0x37eb72){const _0x5e914f=Array['from'](_0x37eb72),_0x176a96=_0x5e914f['filter'](_0x14f9c5=>'attribute'==_0x14f9c5['type']);this['_refreshAttributeSuggestionsChain'](_0x176a96);const _0x130311=_0x5e914f['filter'](_0x548a1b=>!_0x548a1b['isMultiRange']&&'attribute'!=_0x548a1b['type']),_0x4e2bef=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x46b768=>!_0x46b768['isMultiRange']&&'attribute'!=_0x46b768['type']),_0x9e01c6=_0x4e2bef['filter'](_0x498c2f=>!_0x37eb72['has'](_0x498c2f)),_0x8a3a0e=new Map(_0x4e2bef['map'](_0x20a487=>[_0x20a487,this['_suggestionFactory']['getSuggestionCallback'](_0x20a487['type'],_0x20a487['subType'],'chain')])),_0x576476=new Map(_0x4e2bef['map'](_0x1b8e10=>[_0x1b8e10,_0x1b8e10['getFirstRange']()])),_0x55eca7=new Set(),_0x59c8b0=new Set();for(let _0xd3e1e2=0x0;_0xd3e1e2<_0x130311['length'];_0xd3e1e2++)_0x445986(_0x130311[_0xd3e1e2],_0x130311,_0xd3e1e2+0x1);for(let _0x4e7973=0x0;_0x4e7973<_0x130311['length'];_0x4e7973++)_0x445986(_0x130311[_0x4e7973],_0x9e01c6,0x0);const _0x47547f=new Set();for(let _0x22f753=0x0;_0x22f753<_0x130311['length'];_0x22f753++){const _0xd30e73=_0x130311[_0x22f753];!_0x59c8b0['has'](_0xd30e73)&&_0xd30e73['previous']&&(_0x47547f['add'](_0xd30e73['previous']),_0xd30e73['previous']['next']===_0xd30e73&&(_0xd30e73['previous']['next']=null),_0xd30e73['previous']=null),!_0x55eca7['has'](_0xd30e73)&&_0xd30e73['next']&&(_0x47547f['add'](_0xd30e73['next']),_0xd30e73['next']['previous']===_0xd30e73&&(_0xd30e73['next']['previous']=null),_0xd30e73['next']=null);}function _0x445986(_0x443ff3,_0x58be71,_0x59145e){for(let _0x73604b=_0x59145e;_0x73604b<_0x58be71['length'];_0x73604b++){const _0x1e6c19=_0x8c398e(_0x443ff3,_0x58be71[_0x73604b]);_0x1e6c19&&(_0x1e6c19[0x0]['next']=_0x1e6c19[0x1],_0x1e6c19[0x1]['previous']=_0x1e6c19[0x0],_0x55eca7['add'](_0x1e6c19[0x0]),_0x59c8b0['add'](_0x1e6c19[0x1]));}}function _0x8c398e(_0x1fb306,_0x329e76){if(_0x1fb306['author']['id']!==_0x329e76['author']['id'])return null;const _0x23005d=_0x8a3a0e['get'](_0x1fb306)(_0x1fb306,_0x329e76,_0x576476['get'](_0x1fb306),_0x576476['get'](_0x329e76));if(!_0x23005d)return null;return _0x8a3a0e['get'](_0x329e76)(_0x1fb306,_0x329e76,_0x576476['get'](_0x1fb306),_0x576476['get'](_0x329e76))?_0x23005d[0x1]['commentThread']&&_0x23005d[0x1]['commentThread']['length']?null:_0x23005d:null;}_0x47547f['size']&&this['_refreshSuggestionsChain'](_0x47547f);}['_refreshAttributeSuggestionsChain'](_0x222ef7){if(0x0==_0x222ef7['length'])return;const _0x582432=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x383d4a=>'attribute'==_0x383d4a['type']&&_0x383d4a['_isDataLoaded']),_0xa8dfc0=[],_0x24f235=new Map();for(const _0x4d232e of _0x582432){const _0x59295a=_0x43c1d5(_0x4d232e['attributes']);_0x24f235['has'](_0x59295a)||(_0x24f235['set'](_0x59295a,_0xa8dfc0['length']),_0xa8dfc0['push']([]));const _0x1feec6=_0x24f235['get'](_0x59295a);_0xa8dfc0[_0x1feec6]['push'](_0x4d232e);}!(function(){_0xa8dfc0['sort']((_0x44f93b,_0x3f094f)=>{const _0x45c4f8=_0x44f93b[0x0]['createdAt'],_0x50b216=_0x3f094f[0x0]['createdAt'];return _0x45c4f8==_0x50b216?_0x44f93b[0x0]['attributes']['groupId']<_0x3f094f[0x0]['attributes']['groupId']?-0x1:0x1:_0x45c4f8<_0x50b216?-0x1:0x1;});for(const _0x83dc0f of _0xa8dfc0)_0x83dc0f['sort']((_0x59c25f,_0x5e8f89)=>_0x59c25f['id']<_0x5e8f89['id']?-0x1:0x1);}());for(let _0x4aa2ae=0x0;_0x4aa2ae<_0xa8dfc0['length'];_0x4aa2ae++){if(0x0==_0xa8dfc0[_0x4aa2ae]['length'])continue;const _0x383cac=[];for(let _0x482a69=_0x4aa2ae+0x1;_0x482a69<_0xa8dfc0['length'];_0x482a69++)0x0!=_0xa8dfc0[_0x482a69]['length']&&_0x20c0ec(_0xa8dfc0[_0x4aa2ae],_0xa8dfc0[_0x482a69])&&_0x383cac['push'](_0x482a69);for(const _0x276e90 of _0x383cac)_0xa8dfc0[_0x4aa2ae]=_0xa8dfc0[_0x4aa2ae]['concat'](_0xa8dfc0[_0x276e90]),_0xa8dfc0[_0x276e90]=[];}for(const _0x565421 of _0xa8dfc0)for(let _0x1f15d4=0x0;_0x1f15d4<_0x565421['length'];_0x1f15d4++){const _0x42f7c6=_0x565421[_0x1f15d4+0x1]||null;_0x565421[_0x1f15d4]['next']!==_0x42f7c6&&(_0x565421[_0x1f15d4]['next']=_0x42f7c6);}for(const _0x4df480 of _0xa8dfc0)for(let _0x45df65=0x0;_0x45df65<_0x4df480['length'];_0x45df65++){const _0x416038=_0x4df480[_0x45df65-0x1]||null;_0x4df480[_0x45df65]['previous']!==_0x416038&&(_0x4df480[_0x45df65]['previous']=_0x416038);}function _0x20c0ec(_0x261d0b,_0x2f1cfe){if(_0x261d0b[0x0]['attributes']['groupId']!==_0x2f1cfe[0x0]['attributes']['groupId']&&_0x261d0b[0x0]['author']!==_0x2f1cfe[0x0]['author'])return!0x1;if(!function(_0x2daf01,_0x4928cb){if(!_0x2daf01['hasComments']&&!_0x4928cb['hasComments'])return!0x0;if(_0x2daf01['hasComments']&&_0x4928cb['hasComments'])return!0x1;if(_0x2daf01['hasComments']&&_0x4928cb['createdAt']<_0x2daf01['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x4928cb['hasComments']&&_0x2daf01['createdAt']<_0x4928cb['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x261d0b[0x0],_0x2f1cfe[0x0]))return!0x1;const _0x5d2eaa=ot(_0x261d0b[0x0]['attributes'],['groupId','trackingSessionId']),_0x3bc42b=ot(_0x2f1cfe[0x0]['attributes'],['groupId','trackingSessionId']);if(!st(_0x5d2eaa,_0x3bc42b))return!0x1;if(_0x261d0b[0x0]['attributes']['groupId']==_0x2f1cfe[0x0]['attributes']['groupId'])return!0x0;if(_0x261d0b[0x0]['attributes']['trackingSessionId']!==_0x2f1cfe[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x261d0b['every'](_0x91f4af=>_0x2f1cfe['some'](_0x5e4c63=>_0x91f4af['getFirstRange']()['isEqual'](_0x5e4c63['getFirstRange']())))&&_0x2f1cfe['every'](_0x39cf85=>_0x261d0b['some'](_0x3c245e=>_0x39cf85['getFirstRange']()['isEqual'](_0x3c245e['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0xf4402){const _0x267dc7=Array['from'](_0xf4402),_0x582ae9=this['getSuggestions']({'skipNotAttached':!0x0}),_0x112162=_0x582ae9['filter'](_0x45c8e3=>!_0xf4402['has'](_0x45c8e3)),_0x2296ac=new Map(_0x267dc7['map'](_0x9a41a4=>[_0x9a41a4,this['_suggestionFactory']['getSuggestionCallback'](_0x9a41a4['type'],_0x9a41a4['subType'],'join')])),_0x2a65e8=new Map(_0x582ae9['map'](_0x3cf8a5=>[_0x3cf8a5,_0x3cf8a5['getRanges']()]));for(let _0xf32196=0x0;_0xf32196<_0x267dc7['length'];_0xf32196++){if(_0x4caf74(this,_0x267dc7[_0xf32196],_0x267dc7,_0xf32196+0x1))return!0x0;}for(let _0x200f98=0x0;_0x200f98<_0x267dc7['length'];_0x200f98++){if(_0x4caf74(this,_0x267dc7[_0x200f98],_0x112162,0x0))return!0x0;}return!0x1;function _0x4caf74(_0x1b809d,_0x14344d,_0x2ed19e,_0x1697b9){for(let _0x5c5a2e=_0x1697b9;_0x5c5a2e<_0x2ed19e['length'];_0x5c5a2e++){const _0x192a2b=_0x2ed19e[_0x5c5a2e];if(_0x192a2b['type']!==_0x14344d['type']||_0x192a2b['author']['id']!==_0x14344d['author']['id']||_0x192a2b['subType']!==_0x14344d['subType'])continue;if(!an(_0x14344d,_0x192a2b))continue;if('attribute'==_0x14344d['type']&&_0x14344d['data']['oldValue']!=_0x192a2b['data']['oldValue'])continue;if('attribute'==_0x14344d['type']&&_0x1b809d['_suggestionsConversion']['isBlockAttribute'](_0x14344d['data']['key']))continue;if('formatBlock'==_0x14344d['type']){const _0x5cd9b0=_0x1b809d['editor']['model'],_0x37e234=_0x14344d['getContainedElement']();if(_0x37e234&&(_0x5cd9b0['schema']['isObject'](_0x37e234)||_0x5cd9b0['schema']['isLimit'](_0x37e234)))continue;}const _0xbf7bed=_0x2296ac['get'](_0x14344d),_0x1c70bf=_0x2a65e8['get'](_0x14344d),_0x421d77=_0x2a65e8['get'](_0x192a2b),_0x59e59f=_0x14344d['commentThread']&&_0x14344d['commentThread']['length'],_0x5c2555=_0x192a2b['commentThread']&&_0x192a2b['commentThread']['length'];if(!_0x59e59f&&_0xbf7bed(_0x421d77,_0x1c70bf))return _0x1b809d['_joinSuggestions'](_0x192a2b,_0x14344d),_0x2a65e8['delete'](_0x14344d),!0x0;if(!_0x5c2555&&_0xbf7bed(_0x1c70bf,_0x421d77))return _0x1b809d['_joinSuggestions'](_0x14344d,_0x192a2b),_0x2a65e8['delete'](_0x192a2b),!0x0;}return!0x1;}}['_joinSuggestions'](_0x3cb652,_0x32c08c){if(_0x3cb652['isMultiRange']){for(const _0x243bb1 of _0x32c08c['getRanges']())_0x3cb652['addRange'](_0x243bb1);}else{const _0x2c74f0=_0x32c08c['getFirstRange']()['end'];this['_setSuggestionRange'](_0x3cb652,this['_model']['createRange'](_0x3cb652['getFirstRange']()['start'],_0x2c74f0));}_0x32c08c['removeMarkers']();}['_getMarkerAnnouncementText'](_0x4a4de3,_0x3310e4,_0x43e2f8){const _0x12404a=_0x4a4de3['startsWith']('format')||_0x4a4de3['startsWith']('attribute')?'FORMATTING':_0x4a4de3['toUpperCase']();return At(this['editor']['locale'],_0x3310e4+'_'+_0x12404a+'_SUGGESTION_ANNOUNCEMENT',_0x43e2f8);}['_initAriaMarkerChangeAnnouncements'](){const _0x102bf4=this['editor'];if(!_0x102bf4['ui'])return;const {ariaLiveAnnouncer:_0x2e1704}=_0x102bf4['ui'];_0x52029a(this['_model'],({left:_0x4d15c0,entered:_0x156675})=>{for(const _0x5f7117 of _0x4d15c0){const {group:_0x45fdb0,type:_0xede43d}=_0x4ae9fb(_0x5f7117['name']);if('suggestion'===_0x45fdb0){_0x2e1704['announce'](this['_getMarkerAnnouncementText'](_0xede43d,'LEAVE'));break;}}for(const _0x3feee6 of _0x156675){const {group:_0x27a502,type:_0x273a07}=_0x4ae9fb(_0x3feee6['name']);if('suggestion'===_0x27a502){_0x2e1704['announce'](this['_getMarkerAnnouncementText'](_0x273a07,'ENTER',_0x3c06ff(_0x164e79)));break;}}});}['_processAttributeChanges'](_0x407923){if(this['_recordAttributeSuggestions'])return!0x1;const _0x150448=this['editor'],_0x158b19=_0x150448['model']['document']['differ']['getChanges']();if(0x0==_0x158b19['length'])return!0x1;const _0x334796=[],_0x2d1568=_0x158b19['filter'](_0xd0b3e9=>'attribute'==_0xd0b3e9['type']),_0x4660c8=_0x158b19['filter'](_0x2cfba7=>'insert'==_0x2cfba7['type']&&'$text'!=_0x2cfba7['name']),_0x3f0710=_0x158b19['filter'](_0x55965f=>'remove'==_0x55965f['type']&&'$text'!=_0x55965f['name']);for(const _0x1b1f04 of _0x2d1568)_0x334796['push']({'key':_0x1b1f04['attributeKey'],'newValue':_0x1b1f04['attributeNewValue'],'oldValue':_0x1b1f04['attributeOldValue'],'range':sn(_0x1b1f04['range'],_0x150448['model'])});for(const _0x1f8588 of _0x4660c8){const _0x15e635=_0x3f0710['find'](_0x369f41=>_0x369f41['position']['isEqual'](_0x1f8588['position']));_0x15e635&&_0x334796['push']({'key':Ke,'newValue':_0x1f8588['name'],'oldValue':_0x15e635['name'],'range':_0x150448['model']['createRangeOn'](_0x1f8588['position']['nodeAfter'])});}return 0x0!=_0x334796['length']&&this['_reduceExistingSuggestions'](_0x407923,_0x334796);}['_processAttributeSuggestions'](_0x4d38ed){let _0x17d8ed=!0x1;const _0x185d67=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2b356b=>_0x2b356b['data']['newRange']&&_0x2b356b['name']['startsWith']('suggestion:attribute:'));for(const _0x58db08 of _0x185d67){const {subType:_0x1d6060,id:_0x45b3a1}=_0x4ae9fb(_0x58db08['name']),_0x2bd104=_0x1d6060['split']('|')[0x0];for(const _0x398fc8 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x398fc8['id']!=_0x45b3a1&&'attribute'==_0x398fc8['type']&&_0x398fc8['data']&&_0x398fc8['data']['key']==_0x2bd104&&_0x398fc8['getFirstRange']()['isIntersecting'](_0x58db08['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x398fc8,_0x58db08['data']['newRange'],_0x4d38ed),_0x17d8ed=!0x0);}return _0x17d8ed;}['recordAttributeChanges'](_0x31f619){this['_recordAttributeSuggestions']=!0x0,_0x31f619();}['_reduceExistingSuggestions'](_0x1928dd,_0x1214dd){if(0x0==_0x1214dd['length'])return!0x1;let _0x5c4cad=!0x1;for(const _0x439775 of _0x1214dd){const _0x32fbd1=this['_findSuggestions'](_0x439775['range'],'attribute')['filter'](_0x5bbed3=>!_0x5bbed3['meta']['isNextTo'])['map'](_0x1f7d5b=>_0x1f7d5b['suggestion']),_0x484742=_0x43c1d5({'newValue':_0x439775['newValue']});_0x32fbd1['filter'](_0x32282a=>{const [_0x3eed4f,_0x559a69]=_0x32282a['subType']['split']('|');return _0x3eed4f==_0x439775['key']&&_0x559a69!=_0x484742;})['forEach'](_0x5c1819=>{this['_reduceSuggestionAttributeRange'](_0x5c1819,_0x439775['range'],_0x1928dd),_0x5c4cad=!0x0;});}return _0x5c4cad;}['_reduceSuggestionAttributeRange'](_0x5dae25,_0xec6ff7,_0x64c413){const _0x405b8b=_0x5dae25['getFirstRange']()['getDifference'](_0xec6ff7);0x0!==_0x405b8b['length']?0x1!==_0x405b8b['length']?this['_breakSuggestionMarker'](_0x5dae25,_0xec6ff7['start'],_0xec6ff7['end']):this['_setSuggestionRange'](_0x5dae25,_0x405b8b[0x0]):_0x64c413['removeMarker'](_0x5dae25['getFirstMarker']());}}class Ye{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x4f5ea2){this['_editor']=_0x4f5ea2,this['_model']=_0x4f5ea2['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x267397,_0x4336f5,_0x10f05e,_0x215141,_0x2ef3f8,_0x3170f6,_0x1513b4){return new bt(this['_model'],{'type':_0x267397,'subType':_0x4336f5,'id':_0x10f05e,'originalSuggestionId':_0x1513b4,'author':_0x215141,'creator':_0x215141,'attributes':_0x2ef3f8,'onAttributesChange':_0x3170f6,'onAccept':(..._0x2e295e)=>this['getSuggestionCallback'](_0x267397,_0x4336f5,'accept')(..._0x2e295e),'onDiscard':(..._0x2fc5f4)=>this['getSuggestionCallback'](_0x267397,_0x4336f5,'discard')(..._0x2fc5f4)});}['registerCustomCallback'](_0x472c1b,_0x377e90,_0x439e70,_0x3c1b38){const _0x2457d1=_0x472c1b+':'+_0x377e90+':'+_0x439e70;this['_customCallbacks']['set'](_0x2457d1,_0x3c1b38);}['getSuggestionCallback'](_0x2eb530,_0xdae329,_0x29dc71){const _0x334d71=_0x2eb530+':'+_0xdae329+':'+_0x29dc71;return this['_customCallbacks']['get'](_0x334d71)||this['_defaultCallbacks']['get'](_0x2eb530+':'+_0x29dc71);}['_registerDefaultCallbacks'](){const _0x2c5a2e=()=>!0x1,_0x543500=_0x408814=>{_0x408814['sort']((_0x48fb5c,_0x12e422)=>_0x48fb5c['start']['isBefore'](_0x12e422['start'])?0x1:-0x1),this['_model']['change'](_0x4d6494=>{for(const _0x3b1a0b of _0x408814){let _0x4877ed;_0x4877ed=_0x3b1a0b['end']['isAtEnd']&&_0x3b1a0b['end']['parent']==_0x3b1a0b['start']['nodeAfter']?_0x4d6494['createSelection'](_0x3b1a0b['start']['nodeAfter'],'on'):_0x4d6494['createSelection'](_0x3b1a0b),this['_model']['deleteContent'](_0x4877ed,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x4d949d=(_0x519fed,_0x1570ef)=>{_0x1570ef&&this['_model']['change'](_0x4d0348=>{const {commandName:_0x1bcc27,commandParams:_0x187361=[]}=_0x1570ef,_0x37d853=_0x519fed['map'](_0x832e57=>(Qe(_0x832e57)&&(_0x832e57=this['_model']['createRange'](_0x832e57['end'])),_0x832e57))['filter'](_0x1d6c8f=>'$graveyard'!==_0x1d6c8f['root']['rootName']);if(_0x37d853['length']<0x1)return;const _0x3792c1=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x3285da=>_0x5e7de2['fromRange'](_0x3285da));_0x4d0348['setSelection'](_0x37d853);for(const _0x2c9457 of this['_editor']['commands']['commands']())_0x2c9457['refresh']();_0x187361['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x1bcc27,..._0x187361);const _0x59a38e=_0x3792c1['filter'](_0x53577e=>'$graveyard'!=_0x53577e['root']['rootName']);_0x59a38e['length']>0x0&&_0x4d0348['setSelection'](_0x59a38e);for(const _0x131105 of _0x3792c1)_0x131105['detach']();});},_0x10065c=(_0x3f10d9,_0x31f25c)=>0x1==_0x3f10d9['length']&&0x1==_0x31f25c['length']&&_0x3f10d9[0x0]['end']['isEqual'](_0x31f25c[0x0]['start']),_0x591449=(_0xed9a5b,_0x24f4e6,_0x140512,_0x10bacb)=>on(_0xed9a5b,_0x24f4e6,_0x140512,_0x10bacb)?[_0xed9a5b,_0x24f4e6]:on(_0x24f4e6,_0xed9a5b,_0x10bacb,_0x140512)?[_0x24f4e6,_0xed9a5b]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x2c5a2e),this['_defaultCallbacks']['set']('insertion:discard',_0x543500),this['_defaultCallbacks']['set']('insertion:join',_0x10065c),this['_defaultCallbacks']['set']('insertion:chain',_0x591449),this['_defaultCallbacks']['set']('deletion:accept',_0x543500),this['_defaultCallbacks']['set']('deletion:discard',_0x2c5a2e),this['_defaultCallbacks']['set']('deletion:join',_0x10065c),this['_defaultCallbacks']['set']('deletion:chain',_0x591449),this['_defaultCallbacks']['set']('formatInline:accept',_0x4d949d),this['_defaultCallbacks']['set']('formatInline:discard',_0x2c5a2e),this['_defaultCallbacks']['set']('formatInline:join',_0x10065c),this['_defaultCallbacks']['set']('formatInline:chain',_0x2c5a2e),this['_defaultCallbacks']['set']('formatBlock:accept',_0x4d949d),this['_defaultCallbacks']['set']('formatBlock:discard',_0x2c5a2e),this['_defaultCallbacks']['set']('formatBlock:join',_0x10065c),this['_defaultCallbacks']['set']('formatBlock:chain',_0x2c5a2e),this['_defaultCallbacks']['set']('attribute:accept',_0x2c5a2e),this['_defaultCallbacks']['set']('attribute:discard',(_0x4ff65e,_0x10f651)=>{if(!_0x10f651)return;const _0x408fe9=this['_editor']['plugins']['get'](_0x129e59);this['_model']['change'](_0x2de499=>{if(_0x10f651['key']==Ke)for(const _0x15550f of _0x4ff65e){const _0x2312cd=_0x15550f['start']['nodeAfter'],_0x399ce0=_0x10f651['oldValue'];_0x2de499['rename'](_0x2312cd,_0x399ce0);}else{if(_0x408fe9['isBlockAttribute'](_0x10f651['key'])){for(const _0xeffbc3 of _0x4ff65e)void 0x0!==_0x10f651['oldValue']?_0x2de499['setAttribute'](_0x10f651['key'],_0x10f651['oldValue'],_0xeffbc3['start']['nodeAfter']):_0x2de499['removeAttribute'](_0x10f651['key'],_0xeffbc3['start']['nodeAfter']);}else{for(const _0xac7209 of _0x4ff65e)_0x10f651['oldValue']?_0x2de499['setAttribute'](_0x10f651['key'],_0x10f651['oldValue'],_0xac7209):_0x2de499['removeAttribute'](_0x10f651['key'],_0xac7209);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x10065c);}}function qe(_0x466eb1,_0x387465,_0x4cb51a){for(const _0x2c6410 of _0x387465['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2c6410['root']==_0x2c6410)return!0x1;if(!_0x4cb51a['containsItem'](_0x2c6410))return!0x1;if(_0x466eb1['isObject'](_0x2c6410)||_0x466eb1['isLimit'](_0x2c6410))return!0x0;}return!0x1;}function Qe(_0x1ee075){return _0x1ee075['end']['parent']==_0x1ee075['start']['nodeAfter']&&_0x1ee075['end']['isAtStart'];}function Ze(_0x2c30d9,_0x3cd00b,_0x58578a,_0x444baa){const _0x1cfb83=_0x36a4ad=>!_0x36a4ad['item']['is']('$textProxy')&&!_0x444baa['isObject'](_0x36a4ad['item']),_0x555321=_0x2c30d9['start']['getLastMatchingPosition'](_0x1cfb83),_0x113e82=_0x2c30d9['end']['getLastMatchingPosition'](_0x1cfb83,{'direction':'backward'});return(!_0x2c30d9['start']['isEqual'](_0x555321)||!_0x2c30d9['end']['isEqual'](_0x113e82))&&(_0x555321['isBefore'](_0x113e82)?_0x58578a['updateMarker'](_0x3cd00b,{'range':_0x58578a['createRange'](_0x555321,_0x113e82)}):_0x58578a['removeMarker'](_0x3cd00b),!0x0);}function Je(_0x22c42c){return _0x43c1d5(_0x22c42c);}function tn(_0x142a91){const _0x31a93c=_0x142a91['start']['nodeAfter'];return _0x31a93c&&_0x31a93c['is']('element');}function en(_0x85b5dd){return Qe(_0x85b5dd)||function(_0x1ae62d){return _0x1ae62d['start']['parent']==_0x1ae62d['end']['nodeBefore']&&_0x1ae62d['start']['isAtEnd'];}(_0x85b5dd);}function nn(_0x311dd6,_0x2ee3b9){try{const _0x8cd431=_0x311dd6['getRange']();for(const _0x6d52ae of _0x2ee3b9)if(_0x311dd6!==_0x6d52ae&&_0x8cd431&&_0x8cd431['isIntersecting'](_0x6d52ae['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function sn(_0x43823a,_0x315ad6){return null==_0x43823a['end']['nodeBefore']&&_0x43823a['end']['parent']==_0x43823a['start']['nodeAfter']?rn(_0x43823a['start']['nodeAfter'],_0x315ad6):_0x43823a;}function rn(_0x10d49d,_0x50d695){const _0x9df4f6=_0x50d695['schema']['isObject'](_0x10d49d)||_0x50d695['schema']['isSelectable'](_0x10d49d);return _0x50d695['createRange'](_0x50d695['createPositionAt'](_0x10d49d,'before'),_0x9df4f6?_0x50d695['createPositionAfter'](_0x10d49d):_0x50d695['createPositionAt'](_0x10d49d,'end'));}function on(_0x4fda12,_0x2c37d2,_0x28a538,_0xde83d1){return!!an(_0x4fda12,_0x2c37d2)&&_0x28a538['end']['isEqual'](_0xde83d1['start']);}function an(_0x88ac02,_0x397270){if(!_0x88ac02['_isDataLoaded']||!_0x397270['_isDataLoaded'])return!0x1;const _0x306154=new Set(Object['keys'](_0x88ac02['attributes'])),_0x2c3626=new Set(Object['keys'](_0x397270['attributes']));if(_0x306154['delete']('groupId'),_0x2c3626['delete']('groupId'),0x0==_0x306154['size']&&0x0==_0x2c3626['size'])return!0x0;if(_0x306154['size']!=_0x2c3626['size'])return!0x1;const _0x2b95df={..._0x88ac02['attributes']},_0x141937={..._0x397270['attributes']};return delete _0x2b95df['groupId'],delete _0x141937['groupId'],JSON['stringify'](_0x2b95df)==JSON['stringify'](_0x141937);}function cn(_0x4b8692,_0x1eeec5){const _0x498711=ln(_0x4b8692['attributes']),_0x3344fb=ln(_0x1eeec5);if(!_0x4b8692['_isDataLoaded'])return!0x1;for(const _0x53c94b of Object['keys'](_0x3344fb))if(!st(_0x498711[_0x53c94b],_0x3344fb[_0x53c94b]))return!0x1;return!0x0;}function ln(_0x1bcddf){const _0x5f441b=Object['assign']({},_0x1bcddf);return delete _0x5f441b['skipNestingCheck'],delete _0x5f441b['tablePasteChainId'],_0x5f441b;}function un(_0x5ecc1d){return _0x5ecc1d['split']('|')[0x0];}class hn extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x50e653(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x37b6c8,_0x2bdf3d,_0x5f093c,_0x5436a1){super(),this['model']=_0x2bdf3d,this['view']=_0x5f093c,this['commentThreadController']=_0x5436a1,this['_editor']=_0x37b6c8,this['_acceptCommand']=_0x37b6c8['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x37b6c8['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x27e285,_0x29bf32)=>_0x27e285||_0x29bf32),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x1b2253=>_0x1b2253&&this['_editor']['model']['canEditAt'](_0x2bdf3d['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x2dd4b2=>_0x2dd4b2&&this['_editor']['model']['canEditAt'](_0x2bdf3d['getRanges']())),this['_pendingAction']=null,_0x5f093c['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x5f093c,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x5f093c,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x5f093c,'change:isDirty',()=>{_0x5f093c['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 _0x28f62a=At(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x28f62a);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class dn extends _0x535f46{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x6a6241,_0x4adbd4,_0x3f0202,_0x24a7d0){super(_0x6a6241),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x1c782f(_0x6a6241,At(_0x6a6241,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x4adbd4['authoredAt']),this['bind']('authoredAt')['to'](_0x4adbd4),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',_0x4adbd4,'authoredAt',this,'descriptionParts',(_0x4d2347,_0x5c78a4,_0x4750d3)=>{const _0x1a9f65=_0x4750d3['map'](_0x4e721e=>gt(_0x4e721e['content']))['join']('.\x20')+'.';return At(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x4d2347-0x1,_0x4adbd4['author']['name'],_0x5c78a4?_0x24a7d0['formatDateTime'](_0x5c78a4):'',new DOMParser()['parseFromString'](_0x1a9f65,'text/html')['body']['textContent']]);}),this['focusables']=new _0x1615c4(),this['focusTracker']=new _0x3e2783(),this['keystrokes']=new _0x4d8b1e(),this['focusCycler']=new _0x3d0321({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x2b4680=>_0x2b4680['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x4adbd4,this['_localUser']=_0x3f0202,this['_config']=_0x24a7d0,_0x24a7d0['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x489a36(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x240d80}=this['_config'];this['commentsListView']=new _0x240d80(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',_0x4470a=>_0x4470a+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x569fa5,_0x5d2f7d)=>_0x569fa5||!!_0x5d2f7d);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x2cb6f5}=this['_config'],_0x5e2611=new _0x2cb6f5(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x3f4dfc=_0x5e2611['commentInputView'];return _0x5e2611['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x3f4dfc,'value',(_0x1883a6,_0x101e5b,_0x25b919)=>!!_0x25b919||_0x1883a6&&!_0x101e5b),_0x3f4dfc['on']('submit',(_0x3e3c24,_0x4119c5)=>{this['fire']('addComment',_0x4119c5),_0x3f4dfc['editor']['setData']('');}),_0x3f4dfc['on']('cancel',()=>this['focus']()),_0x3f4dfc['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x5e2611;}}class fn extends dn{['suggestionView'];['_descriptionElement'];constructor(_0x568d41,_0x44e48b,_0x359508,_0x5b4a38){super(_0x568d41,_0x44e48b,_0x359508,_0x5b4a38),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x4bf415=>_0x4bf415&&_0x4bf415[0x0]?_0x4bf415[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x3d5ca0,_0x205c29)=>{let _0x56ab1f='';for(const _0x6863bb of _0x3d5ca0)_0x56ab1f+='<p>'+gt(_0x6863bb['content'],_0x6863bb['color'])+'</p>';return _0x205c29?_0x56ab1f:_0x100c1a(_0x56ab1f,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x5b4a38['SuggestionView'](_0x568d41,_0x44e48b,{'formatDateTime':_0x5b4a38['formatDateTime']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x59af15=this['bindTemplate'],_0x58913d=[this['suggestionView']];return this['commentsListView']&&_0x58913d['push'](this['commentsListView']),this['commentThreadInputView']&&_0x58913d['push'](this['commentThreadInputView']),_0x58913d['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x59af15['if']('isActive','ck-suggestion-wrapper--active'),_0x59af15['to']('type',_0x46cf21=>'ck-suggestion-'+_0x46cf21),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':_0x59af15['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x58913d};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class gn extends _0x535f46{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x6f6a35,_0x457f66,_0x349c6f){super(_0x6f6a35),this['_model']=_0x457f66,this['_config']=_0x349c6f,this['set']('description',''),this['bind']('authoredAt')['to'](_0x457f66),this['acceptButton']=this['_createButton'](At(_0x6f6a35,'Accept\x20suggestion'),_0xf127ba,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](At(_0x6f6a35,'Discard\x20suggestion'),_0x32f379,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0xe3a2e2(_0x6f6a35,_0x457f66['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x1615c4([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x3e2783(),this['keystrokes']=new _0x4d8b1e(),this['focusCycler']=new _0x3d0321({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x55ac93=>_0x55ac93['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x3a85c1=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x3a85c1['innerHTML']=this['description'],this['on']('change:description',(_0x23a274,_0x298d39,_0x21fd51)=>{_0x3a85c1['innerHTML']=_0x21fd51;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x2b5268=this['bindTemplate'],_0x181563=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x2b5268['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x2b5268['to']('authoredAt',_0x3b0ce2=>this['_config']['formatDateTime'](_0x3b0ce2))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];return this['_model']['isExternal']&&_0x181563['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x181563}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?At(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):At(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?At(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):At(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x1f5812,_0x322c75,_0x546d44,_0x47ba7f,_0x5532ed){const _0x5db437=new _0x4eb237(this['locale']);return _0x5db437['set']({'label':_0x1f5812,'icon':_0x322c75,'tooltip':!0x0,'tooltipPosition':_0x5532ed}),_0x5db437['extendTemplate']({'attributes':{'class':_0x546d44}}),_0x5db437['on']('execute',()=>{this['fire'](_0x47ba7f,this['_model']['id']);}),_0x5db437;}['_setupKeyboardNavigation'](){const _0x8c6e98=this['element'];this['keystrokes']['listenTo'](_0x8c6e98);for(const _0x282b03 of this['focusables'])this['focusTracker']['add'](_0x282b03['element']),this['keystrokes']['listenTo'](_0x282b03['element']);this['keystrokes']['set']('enter',(_0x3d98ab,_0x353c9d)=>{_0x8c6e98===_0x3d98ab['target']&&(this['focusCycler']['focusFirst'](),_0x353c9d());}),this['keystrokes']['set']('esc',(_0x3865b0,_0xba0846)=>{_0x8c6e98!==_0x3865b0['target']&&(this['focus'](),_0xba0846());});}}class mn extends _0x195c91{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[Xe,_0x517118,_0x14f00b,_0x3956af,_0xef7442];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x56dd6d){super(_0x56dd6d),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x1fa781=this['editor']['config'];_0x1fa781['define']('trackChanges.SuggestionThreadView',fn),_0x1fa781['define']('trackChanges.SuggestionView',gn),_0x1fa781['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x1fa781['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x27c5a9,_0x4f7362){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x365617,_0x11e42f]of this['_handleControllerBuffer']){const _0x9b32c8=this['_suggestionToController']['has'](_0x365617);_0x9b32c8||_0x11e42f?_0x9b32c8&&_0x11e42f&&this['_destroyController'](_0x365617):this['_initializeController'](_0x365617);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0xef7442)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x27c5a9,_0x4f7362);}['init'](){const _0x1097c5=this['editor'],_0x6b0af6=_0x1097c5['plugins']['get'](Xe),_0x2b036e=_0x1097c5['plugins']['get'](_0x3956af),_0x5bc565=_0x1097c5['plugins']['get'](_0xef7442),_0x34fa75=_0x1097c5['plugins']['get'](_0x14f00b);this['_addUIComponentsToFactory'](),_0x5bc565['addSourceCollector'](()=>{const _0x23cded=[];for(const [_0x3f665f,_0xb1e85c]of Array['from'](this['_suggestionToController'])){const _0x44e2be=_0x3f665f['getAllAdjacentSuggestions'](),_0x482dca=[];for(const _0x251866 of _0x44e2be){if(!_0x251866['isInContent'])continue;if(_0x251866['isMultiRange']){_0x482dca['push'](..._0x251866['getRanges']());continue;}const _0x2375a4=_0x251866['getFirstRange']();if(_0x482dca['length']>0x0){const _0x162241=_0x482dca[0x0]['getJoined'](_0x2375a4);if(_0x162241){_0x482dca[0x0]=_0x162241;continue;}}_0x482dca['push'](_0x2375a4);}_0x23cded['push']([_0xb1e85c['view'],_0x482dca]);}return _0x23cded;}),this['listenTo'](_0x6b0af6,'suggestionLoaded',(_0x409e4b,_0x291dd8)=>{this['listenTo'](_0x291dd8,'change:previous',(_0xd3bda6,_0x15de18,_0x502221,_0x58d2ba)=>{_0x291dd8['isInContent']&&(null==_0x502221?(this['_updateController'](_0x58d2ba['head']),this['_handleSuggestionControllerDelayed'](_0x291dd8,!0x1)):(this['_updateController'](_0x502221['head']),null==_0x58d2ba&&this['_handleSuggestionControllerDelayed'](_0x291dd8,!0x0)));}),null!==_0x291dd8['previous']?this['_updateController'](_0x291dd8['head']):this['_handleSuggestionControllerDelayed'](_0x291dd8,!0x1);}),this['listenTo'](_0x6b0af6,'suggestionUnloaded',(_0x115ade,_0x4a9631,_0x3c7d37)=>{this['stopListening'](_0x4a9631,'change:previous'),this['_handleControllerBuffer']['delete'](_0x4a9631),this['_suggestionToController']['has'](_0x4a9631)&&this['_destroyController'](_0x4a9631),_0x3c7d37&&this['_updateController'](_0x3c7d37['head']);}),this['listenTo'](_0x6b0af6,'suggestionChanged',(_0x28fa00,_0x3d0feb)=>{this['_updateController'](_0x3d0feb);}),this['listenTo'](_0x2b036e,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x34fa75,'addComment',(_0x4a261b,{threadId:_0x218d35,isFromAdapter:_0x16c442})=>{if(_0x16c442||!_0x6b0af6['hasSuggestion'](_0x218d35))return;const _0x33761e=_0x6b0af6['getSuggestion'](_0x218d35);this['_suggestionToController']['get'](_0x33761e)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x18c7c5=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1043b6;for(const _0xa1704a in _0x18c7c5){const _0x5f02d6=_0xa1704a,_0x3de520=_0x18c7c5[_0x5f02d6];if('trackChangesLicenseKeyValid'==_0x3de520||'trackChangesLicenseKeyInvalid'==_0x3de520||'trackChangesLicenseKeyExpired'==_0x3de520||'trackChangesLicenseKeyDomainLimit'==_0x3de520||'trackChangesLicenseKeyNotAllowed'==_0x3de520||'trackChangesLicenseKeyEvaluationLimit'==_0x3de520||'trackChangesLicenseKeyUsageLimit'==_0x3de520){delete _0x18c7c5[_0x5f02d6],_0x1043b6=_0x3de520,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x1043b6&&_0x18c7c5['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x1043b6&&_0x18c7c5['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x1043b6&&_0x18c7c5['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x1043b6&&_0x18c7c5['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x1043b6&&_0x18c7c5['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x1043b6&&_0x18c7c5['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x81e44c){const _0x39bc13=this['_suggestionToController']['get'](_0x81e44c);if(!_0x39bc13)return null;return this['editor']['plugins']['get'](_0x3956af)['getByInnerView'](_0x39bc13['view'])||null;}['getSuggestionForAnnotation'](_0x59ee21){const _0x1a03e9=this['_viewToController']['get'](_0x59ee21['innerView']);return _0x1a03e9?_0x1a03e9['model']:null;}['_refreshActiveMarkers'](){const _0xab6189=this['editor']['plugins']['get'](_0x3956af),_0x1b124a=this['editor']['plugins']['get'](Xe),_0x14218b=Array['from'](_0xab6189['activeAnnotations'],_0xd82491=>_0xd82491['innerView'])['filter'](_0x1d5944=>this['_viewToController']['has'](_0x1d5944)),_0x4229cc=[];for(const _0x1d4be3 of _0x14218b){const _0x414559=this['_viewToController']['get'](_0x1d4be3)['model']['getAllAdjacentSuggestions']();_0x4229cc['push'](..._0x414559['reduce']((_0x4c366d,_0xe8c4ef)=>[..._0x4c366d,..._0xe8c4ef['getMarkerNames']()],[]));}_0x1b124a['activeMarkers']=_0x4229cc;}['_addUIComponentsToFactory'](){const _0x14bb39=this['editor'],_0x5d0fda=_0x14bb39['locale'],_0x437445=At(_0x5d0fda,'Track\x20changes'),_0x260985=new _0x1e58e5([{'type':'switchbutton','model':new _0x5f51cc({'withText':!0x0,'isToggleable':!0x0,'label':_0x437445,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x5f51cc({'withText':!0x0,'label':At(_0x5d0fda,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5f51cc({'withText':!0x0,'label':At(_0x5d0fda,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5f51cc({'withText':!0x0,'label':At(_0x5d0fda,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5f51cc({'withText':!0x0,'label':At(_0x5d0fda,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x14bb39['plugins']['has']('TrackChangesPreview')&&_0x260985['addMany']([{'type':'separator'},{'type':'button','model':new _0x5f51cc({'withText':!0x0,'label':At(_0x5d0fda,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x27c082 of _0x260985)if(En(_0x27c082)){const _0xadbd79=_0x14bb39['commands']['get'](_0x27c082['model']['commandName']);_0x27c082['model']['bind']('isOn','isEnabled')['to'](_0xadbd79,'value','isEnabled');}_0x14bb39['ui']['componentFactory']['add']('trackChanges',_0x4ae65d=>this['_createToolbarButton'](_0x4ae65d,_0x260985,_0x437445)),_0x14bb39['ui']['componentFactory']['add']('menuBar:trackChanges',_0x5e7a2a=>this['_createMenuBarMenu'](_0x5e7a2a,_0x260985,_0x437445));}['_createToolbarButton'](_0x168c49,_0x5d1b98,_0x16b39c){const _0x42d4dc=_0x38df62(_0x168c49,_0x106bbf),_0x278bf2=this['editor']['commands']['get']('trackChanges');_0x42d4dc['buttonView']['set']({'tooltip':_0x16b39c,'label':_0x16b39c,'icon':_0x1f13ba}),_0x42d4dc['buttonView']['bind']('isOn')['to'](_0x278bf2,'value'),_0x42d4dc['buttonView']['on']('execute',()=>{_0x278bf2['execute'](),this['editor']['editing']['view']['focus']();}),_0x4fec1b(_0x42d4dc,_0x5d1b98,{'role':'menu'});const _0xf68bce=[];for(const _0xf4458 of _0x5d1b98)En(_0xf4458)&&_0xf68bce['push'](this['editor']['commands']['get'](_0xf4458['model']['commandName']));const _0x5a95d1=_0x42d4dc['buttonView'];return _0x5a95d1['actionView']['unbind']('isEnabled'),_0x5a95d1['arrowView']['unbind']('isEnabled'),_0x5a95d1['actionView']['bind']('isEnabled')['to'](_0x278bf2,'isEnabled'),_0x5a95d1['arrowView']['bind']('isEnabled')['toMany'](_0xf68bce,'isEnabled',(..._0x1e3d2b)=>_0x1e3d2b['some'](_0x331eaf=>_0x331eaf)),_0x42d4dc['on']('execute',_0x128a33=>{this['editor']['execute'](_0x128a33['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x42d4dc;}['_createMenuBarMenu'](_0x476eb1,_0x2e93e9,_0x10eb61){const _0x230edc=new _0x14855f(_0x476eb1),_0x1e9aca=this['editor']['commands']['get']('trackChanges');_0x230edc['buttonView']['set']({'label':_0x10eb61,'icon':_0x1f13ba});const _0x165e6d=new _0x313f07(_0x476eb1);for(const _0x139284 of _0x2e93e9){if('separator'==_0x139284['type']){_0x165e6d['items']['add'](new _0x5e8315(_0x476eb1));continue;}const _0x231d5a=new _0x339c81(_0x476eb1,_0x230edc),_0x5d802c=new _0x58e9fa(_0x476eb1),_0x52c637=_0x139284['model'];_0x5d802c['bind'](...Object['keys'](_0x52c637))['to'](_0x52c637),_0x5d802c['delegate']('execute')['to'](_0x230edc),_0x5d802c['on']('execute',()=>{this['editor']['execute'](_0x52c637['commandName']),this['editor']['editing']['view']['focus']();}),_0x231d5a['children']['add'](_0x5d802c),_0x165e6d['items']['add'](_0x231d5a);}return _0x230edc['bind']('isEnabled')['to'](_0x1e9aca,'isEnabled'),_0x230edc['panelView']['children']['add'](_0x165e6d),_0x230edc;}['_initializeController'](_0x1d4296){const _0x5b4916=this['editor'],_0x1cd184=_0x5b4916['config'],_0x15e974=_0x5b4916['plugins']['get'](_0x3956af),_0x2ab35f=_0x5b4916['plugins']['get'](_0x14f00b),_0x1a7e99=_0x5b4916['plugins']['get'](_0xef7442),_0x46e5f8=_0x5b4916['plugins']['get'](_0x517118)['me'],_0x2c4193=_0x1cd184['get']('trackChanges')['SuggestionThreadView'],_0x2c0a42=_0x1cd184['get']('trackChanges')['SuggestionView'],{CommentsListView:_0xb78127,CommentThreadInputView:_0x342bcd}=_0x5b4916['plugins']['get']('CommentsUI');let _0x3a503e,_0x435d13,_0x4a17e8;this['_annotationViews']['has'](_0x1d4296['id'])?(_0x435d13=this['_annotationViews']['get'](_0x1d4296['id']),_0x3a503e=_0x435d13['mainView']):(_0x3a503e=new _0x2c4193(_0x5b4916['locale'],_0x1d4296,_0x46e5f8,{'disableComments':this['_disableComments'],'editorConfig':{..._0x1cd184['get']('comments.editorConfig'),'licenseKey':_0x1cd184['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x1cd184['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x1cd184['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x1cd184['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x21da00(_0x1cd184['get']('locale'),_0x5b4916['locale']),'CommentView':_0x1cd184['get']('comments')['CommentView'],'CommentsListView':_0xb78127,'CommentThreadInputView':_0x342bcd,'SuggestionView':_0x2c0a42}),_0x3a503e['suggestionView']['acceptButton']['on']('execute',()=>{_0x5b4916['editing']['view']['focus']();}),_0x3a503e['suggestionView']['discardButton']['on']('execute',()=>{_0x5b4916['editing']['view']['focus']();}),_0x435d13=_0x15e974['createAnnotationView'](this['editor']['locale'],_0x3a503e),_0x435d13['bind']('isDirty')['to'](_0x3a503e,'isDirty'),_0x435d13['bind']('length')['to'](_0x3a503e),_0x435d13['bind']('type')['to'](_0x3a503e,'type',_0x15f107=>'suggestion-'+_0x15f107),_0x3a503e['on']('escape',()=>{_0x4a17e8['fire']('escape');}),this['_annotationViews']['set'](_0x1d4296['id'],_0x435d13));const _0x4e3659=_0x2ab35f['createCommentThreadController'](_0x1d4296['commentThread'],_0x3a503e),_0x241ba1=new hn(_0x5b4916,_0x1d4296,_0x3a503e,_0x4e3659),_0xc955ed=_0x1d4296['getAllAdjacentSuggestions']()['filter'](_0x134cad=>_0x134cad['isInContent']);_0x3a503e['descriptionParts']=_0x5b4916['plugins']['get'](Xe)['descriptionFactory']['getDescriptions'](_0xc955ed),this['_suggestionToController']['set'](_0x1d4296,_0x241ba1),this['_viewToController']['set'](_0x3a503e,_0x241ba1);const _0xaa3d6=()=>{const _0x5b337d=[],_0x18a9fe=_0x1d4296['getAllAdjacentSuggestions']()['filter'](_0x1cd3fd=>_0x1cd3fd['isInContent']);for(const _0x419df0 of _0x18a9fe)_0x5b337d['push'](..._0x419df0['getMarkers']());return _0x49ec9c(_0x5b4916['editing'],_0x5b337d);};_0x4a17e8=_0x15e974['createAnnotation']({'view':_0x435d13,'target':_0xaa3d6,'type':()=>'suggestion-'+_0x241ba1['view']['type'],'isVisible':!!_0xaa3d6()}),_0x2ab35f['_bindAnnotationToEditors'](_0x3a503e,_0x4a17e8),_0x15e974['add'](_0x4a17e8),_0x1a7e99['registerAnnotation'](_0x4a17e8);}['_destroyController'](_0x147062){const _0x295450=this['editor']['plugins']['get'](_0x14f00b),_0x5f1d87=this['editor']['plugins']['get'](_0x3956af),_0x536f9f=this['_suggestionToController']['get'](_0x147062),_0x56034b=_0x536f9f['view'],_0x52de44=_0x5f1d87['getByInnerView'](_0x56034b);_0x295450['_unbindEditors'](_0x56034b),_0x52de44&&_0x5f1d87['remove'](_0x52de44),this['_suggestionToController']['delete'](_0x147062),this['_viewToController']['delete'](_0x56034b),_0x536f9f['destroy']();}['_updateController'](_0x330ce5){if(!_0x330ce5['isInContent']||!this['_suggestionToController']['has'](_0x330ce5))return;const _0x2add54=this['editor']['plugins']['get'](Xe),_0x32dd7b=this['_suggestionToController']['get'](_0x330ce5),_0x40d25b=_0x330ce5['getAllAdjacentSuggestions']();_0x32dd7b['view']['descriptionParts']=_0x2add54['descriptionFactory']['getDescriptions'](_0x40d25b);}['destroy'](){for(const _0x53f02e of this['_suggestionToController']['keys']())this['_destroyController'](_0x53f02e);for(const _0x2dfde6 of this['_annotationViews']['values']())_0x2dfde6['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function En(_0x315c84){return'model'in _0x315c84;}class Tn extends _0x195c91{static get['requires'](){return[Xe,mn,_0x26f74a];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x2a2065){this['editor']['plugins']['get'](Xe)['adapter']=_0x2a2065;}get['adapter'](){return this['editor']['plugins']['get'](Xe)['adapter'];}['addSuggestion'](_0x5ca957){return this['editor']['plugins']['get'](Xe)['addSuggestionData'](_0x5ca957);}['getSuggestions']({skipNotAttached:_0x3c1fd6=!0x1,toJSON:_0x42a0a8=!0x1}={}){return this['editor']['plugins']['get'](Xe)['getSuggestions']({'skipNotAttached':_0x3c1fd6,'toJSON':_0x42a0a8});}['getSuggestion'](_0x418647){return this['editor']['plugins']['get'](Xe)['getSuggestion'](_0x418647);}}const _n=['Pagination'];class pn extends _0x195c91{static get['requires'](){return[Xe];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x306df9=this['editor'];if(_0x306df9['config']['define']('trackChangesData.editorCreator',_0x40d6fc=>{const _0x2b71bd=_0x306df9['model']['document']['getRootNames']()['reduce']((_0x15b05d,_0x11da32)=>(_0x15b05d[_0x11da32]='',_0x15b05d),{});return _0x306df9['constructor']['create'](_0x2b71bd,_0x40d6fc);}),'function'!=typeof _0x306df9['config']['get']('trackChangesData')['editorCreator'])throw new _0x128a03('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x3c8bce){return bn(this['editor'],!0x0,_0x3c8bce);}['getDataWithDiscardedSuggestions'](_0x263037){return bn(this['editor'],!0x1,_0x263037);}}class Ln extends _0x195c91{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3ec23a){function _0xc2dab1(_0xd46f00){return _0xd46f00['map'](_0x54774c=>String['fromCharCode'](_0x54774c))['join']('');}super(_0x3ec23a),this['result']='end',_0x3ec23a[_0xc2dab1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xc2dab1([0x76,0x69,0x65,0x77])][_0xc2dab1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xc2dab1([0x61,0x75,0x74,0x6f]),_0x3ec23a[_0xc2dab1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0xc2dab1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xc2dab1([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0xc2dab1([0x73,0x74,0x61,0x74,0x75,0x73])]:_0xc2dab1([0x6f,0x6b])});}['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 In(_0x2b575f){return void 0x0!==_0x2b575f['getRootsAttributes'];}async function bn(_0x232c59,_0x5a7240,_0x3eec83){const _0x2b7943=_0x109f85(_0x232c59,_n);if(_0x2b7943['plugins']['push'](Xe,Ln),In(_0x232c59)){_0x2b7943['roots']=Object['create'](null);for(const _0x1b35c2 of _0x232c59['model']['document']['getRootNames']())_0x2b7943['roots'][_0x1b35c2]={'modelAttributes':_0x232c59['getRootAttributes'](_0x1b35c2)};}const _0x3cda22=document['createDocumentFragment'](),_0x129650=_0x232c59['config']['get']('trackChangesData')['editorCreator'],_0x327e41=await _0x129650(_0x2b7943,()=>function(_0x4e180f){const _0x161448=document['createElement']('div');return _0x4e180f['appendChild'](_0x161448),_0x161448;}(_0x3cda22));!function(_0x5b3d4b,_0x2a9302){const _0x1ac331=_0x5b3d4b['model']['document']['getRootNames']()['reduce']((_0x4554ee,_0x2f60ad)=>(_0x4554ee[_0x2f60ad]=_0x5b3d4b['data']['get']({'rootName':_0x2f60ad}),_0x4554ee),{}),_0x5a0975=_0x5b3d4b['plugins']['get']('Users')['users']['map'](_0x53b161=>({'id':_0x53b161['id'],'name':_0x53b161['name']})),_0x24321b=_0x5b3d4b['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x59f473=_0x5b3d4b['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x45d4c4=_0x2a9302['plugins']['get']('Users'),_0x37f416=_0x2a9302['plugins']['get']('TrackChangesEditing'),_0x49192e=_0x2a9302['plugins']['get']('CommentsRepository');for(const _0x4e2f11 of _0x49192e['getCommentThreads']())_0x4e2f11['remove']();for(const _0x17cf9e of _0x5a0975)_0x45d4c4['getUser'](_0x17cf9e['id'])||_0x45d4c4['addUser'](_0x17cf9e);_0x45d4c4['me']||_0x45d4c4['useAnonymousUser']();for(const _0x595e00 of _0x59f473)_0x49192e['addCommentThread'](_0x595e00);for(const _0x59e579 of _0x24321b)_0x37f416['addSuggestionData'](_0x59e579);_0x2a9302['data']['set'](_0x1ac331);}(_0x232c59,_0x327e41),_0x327e41['execute'](_0x5a7240?'acceptAllSuggestions':'discardAllSuggestions');const _0xd7220e=In(_0x327e41)?_0x327e41['getFullData'](_0x3eec83):_0x327e41['data']['get'](_0x3eec83);return await _0x327e41['destroy'](),_0xd7220e;}class An extends _0x535f46{['options'];constructor(_0x3a9263,_0x47313e){super(_0x3a9263),this['options']=_0x47313e,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'](_0x433111,_0x2e17da){if(!this['element'])return;const _0x2a5240=[];for(const [_0x29f2a0,_0x2cb34b]of _0x433111){const _0x171da6=document['createElement']('div');_0x171da6['setAttribute']('data-ck-root-name',_0x29f2a0),_0x171da6['className']=_0x2cb34b['classes']+'\x20ck-track-changes-preview__root-container',_0x171da6['innerHTML']=_0x2cb34b['content'],_0x2a5240['push'](_0x171da6);}_0x2e17da(this['element'],_0x2a5240),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class kn extends _0x46bc38{constructor(_0x5a7314){super(_0x5a7314),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0xffa33b=this['editor'],_0x45d153=_0xffa33b['locale'],_0x5283c9=_0xffa33b['plugins']['get']('Dialog');let _0x183c4c;const _0x2f2470=function(_0x2af5eb){const _0x30084b={};if('editables'in _0x2af5eb['ui']['view']){for(const [_0x449b6a,_0x3114a3]of Object['entries'](_0x2af5eb['ui']['view']['editables']))_0x30084b[_0x449b6a]=_0x3114a3['element'];}else _0x30084b[_0x2af5eb['model']['document']['getRootNames']()[0x0]]=_0x2af5eb['ui']['view']['editable']['element'];return _0x30084b;}(_0xffa33b),_0x37dc5d=function(_0x236aad){let _0x53e2c3=0x0;for(const _0x3480b9 of Object['values'](_0x236aad))_0x53e2c3=Math['max'](_0x53e2c3,_0x3480b9['getBoundingClientRect']()['width']);let _0x371ba6=0x0;for(const _0x3e49a2 of Object['values'](_0x236aad))_0x371ba6+=_0x3e49a2['getBoundingClientRect']()['height'];const _0x10151a=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x5f0705=Math['min'](_0x371ba6,_0x10151a);return{'width':_0x53e2c3,'height':_0x5f0705};}(_0x2f2470);_0x5283c9['show']({'id':'finalContentPreview','title':At(_0x45d153,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new An(_0x45d153,{'dialogRects':_0x37dc5d}),'onHide':()=>{_0x183c4c['detachFromDom']();},'onShow':()=>{_0xffa33b['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x3a08c0=>{const _0x1a9b5e=this['_standarizeRootsData'](_0x3a08c0,_0xffa33b,_0x2f2470);_0x5283c9['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x1a9b5e,_0xffa33b['config']['get']('trackChanges.preview.renderFunction'));}),_0x183c4c=new _0x2135b5(_0x45d153,[_0x5283c9['view']]),_0x183c4c['attachToDom'](),_0x183c4c['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0xffa33b['once']('destroy',()=>{_0x183c4c['detachFromDom']();});const _0x32a865=_0x5283c9['view']['headerView']['class'];_0x5283c9['view']['headerView']['class']=_0x32a865?_0x32a865+'\x20ck-reset_all':'ck-reset_all',_0x5283c9['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x5283c9['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x4480=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x577df3=_0x4480['previewMode'],_0x4780c6={};if('$labels'===_0x577df3){for(const _0x103bd1 of _0x4480['getMergeFieldsIds']())_0x4780c6[_0x103bd1]=_0x4480['getLabel'](_0x103bd1)||_0x103bd1;}else{const _0x3e83d9='$defaultValues'===_0x577df3?_0x4480['getDefaultValues']():_0x4480['getDataSetValues'](_0x577df3,!0x0);for(const _0x162e81 of Object['entries'](_0x3e83d9)){const [_0x1a83db,_0x36729b]=_0x162e81;_0x4780c6[_0x1a83db]=null!==_0x36729b?_0x36729b:_0x4480['getLabel'](_0x1a83db)||_0x1a83db;}}return{'mergeFieldsData':_0x4780c6};}['_standarizeRootsData'](_0x21b025,_0x92ea67,_0x56e98f){let _0x5551e3;if('string'==typeof _0x21b025){const _0x1a548=_0x92ea67['model']['document']['getRootNames']()[0x0];_0x5551e3={[_0x1a548]:_0x21b025};}else _0x5551e3=_0x21b025;const _0xc856af=this['_fixMediaEmbeds'](_0x5551e3,_0x92ea67),_0x4769b7=function(_0x15bf87,_0x47f6a2){for(const [_0xf5bc2b,_0x2d3bfa]of _0x15bf87)_0x2d3bfa['classes']=_0x47f6a2[_0xf5bc2b]['classList']['value']['replace']('ck-focused','');return _0x15bf87;}(this['_sortRoots'](_0x92ea67)['reduce']((_0x58b70f,_0x35baa9)=>(_0x58b70f['push']([_0x35baa9,{'content':_0xc856af[_0x35baa9],'classes':''}]),_0x58b70f),[]),_0x56e98f);return _0x4769b7;}['_fixMediaEmbeds'](_0x1d47eb,_0x337439){if(!_0x337439['plugins']['has']('MediaEmbedEditing'))return _0x1d47eb;const _0x51ccd3=_0x337439['plugins']['get']('MediaEmbedEditing');for(const [_0x20340d,_0x4be6d7]of Object['entries'](_0x1d47eb)){const _0x26132d=document['createElement']('div');_0x26132d['innerHTML']=_0x4be6d7,(_0x26132d['querySelectorAll']('figure.media')['forEach'](_0x18275c=>{const _0x36230a=_0x18275c['querySelector']('oembed');if(_0x36230a){const _0x2b6812=_0x36230a['getAttribute']('url');if(_0x2b6812){const _0x27e967=_0x51ccd3['registry']['getMediaViewElement'](new et(_0x337439['editing']['view']['document']),_0x2b6812,{'elementName':'','renderForEditingView':!0x0}),_0x517fbf=document['createElement']('div');_0x517fbf['classList']['add']('ck-media__wrapper'),_0x27e967['render'](_0x517fbf,_0x337439['editing']['view']['domConverter']),_0x36230a['replaceWith'](_0x517fbf);}}}),_0x1d47eb[_0x20340d]=_0x26132d['innerHTML']);}return _0x1d47eb;}['_sortRoots'](_0x1d8ded){if(!function(_0x315b0d){return void 0x0!==_0x315b0d['getRootsAttributes'];}(_0x1d8ded))return _0x1d8ded['model']['document']['getRootNames']();const _0x5efb3e=[],_0x432955=new Map();for(const _0x10c6f1 of _0x1d8ded['model']['document']['getRootNames']()){const _0x3bc923=_0x1d8ded['editing']['view']['getDomRoot'](_0x10c6f1)['getClientRects']()['item'](0x0);_0x5efb3e['push'](_0x10c6f1),_0x432955['set'](_0x10c6f1,_0x3bc923);}return _0x5efb3e['sort']((_0x7b6e9d,_0x39c75e)=>{const _0x2e67c8=_0x432955['get'](_0x7b6e9d),_0x237a28=_0x432955['get'](_0x39c75e);return _0x2e67c8['y']-_0x237a28['y']||_0x2e67c8['x']-_0x237a28['x'];}),_0x5efb3e;}}class Cn extends _0x195c91{static get['requires'](){return[pn,_0x17526e];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x19dd88){super(_0x19dd88),_0x19dd88['commands']['add']('previewFinalContent',new kn(this['editor'])),_0x19dd88['config']['define']('trackChanges.preview.renderFunction',(_0x2cd9fd,_0x141c3d)=>{for(const _0x487861 of _0x141c3d)_0x2cd9fd['appendChild'](_0x487861);});}}export{dt as AcceptSuggestionCommand,dn as BaseSuggestionThreadView,ft as DiscardSuggestionCommand,Lt as ExecuteOnAllSuggestionsCommand,It as ExecuteOnSelectedSuggestionsCommand,kn as PreviewFinalContentCommand,bt as Suggestion,kt as SuggestionDescriptionFactory,fn as SuggestionThreadView,gn as SuggestionView,Tn as TrackChanges,ht as TrackChangesCommand,pn as TrackChangesData,Ln as TrackChangesDataGetter,Xe as TrackChangesEditing,Cn as TrackChangesPreview,mn as TrackChangesUI};
|