@ckeditor/ckeditor5-track-changes 48.1.0-alpha.0 → 48.1.0-alpha.2
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
|
-
_0x5cd431(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x51e87c,_0x4f7724){super(),this['id']=_0x4f7724['id'],this['type']=_0x4f7724['type'],this['subType']=_0x4f7724['subType']||null,this['author']=_0x4f7724['author'],this['creator']=_0x4f7724['creator']||_0x4f7724['author'],this['isExternal']=Boolean(_0x4f7724['attributes']&&_0x4f7724['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x4f7724['originalSuggestionId']||null,this['_model']=_0x51e87c,this['_onAccept']=_0x4f7724['onAccept'],this['_onDiscard']=_0x4f7724['onDiscard'],this['_onAttributesChange']=_0x4f7724['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x4f7724['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 _0x1a7ede=this;for(;_0x1a7ede['previous'];)_0x1a7ede=_0x1a7ede['previous'];return _0x1a7ede;}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'](_0x5267e9){this['_markerNames']['add'](_0x5267e9);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x223513=>this['_model']['markers']['get'](_0x223513))['filter'](_0x283521=>_0x283521);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x5cc1a2=>{for(const _0x5818cb of this['getMarkers']())_0x5cc1a2['removeMarker'](_0x5818cb);}),this['_markerNames']['clear']();}['removeMarker'](_0x52800e){this['_model']['change'](_0x2018f3=>{_0x2018f3['removeMarker'](_0x52800e);}),this['_markerNames']['delete'](_0x52800e);}['addRange'](_0x5eb3e5){const _0x5d7d6f='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+bt['getMultiRangeId']();this['addMarkerName'](_0x5d7d6f),this['_model']['change'](_0xa105e1=>{_0xa105e1['addMarker'](_0x5d7d6f,{'range':_0x5eb3e5,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x5de18a){for(const _0x4ff981 of this['getRanges']())if(_0x4ff981['isIntersecting'](_0x5de18a))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x5556a1=>_0x5556a1['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x3a89a0,_0x5c951f)=>[..._0x3a89a0,..._0x5c951f['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x440e1e=this['getRanges']();if(0x1!=_0x440e1e['length'])return null;const _0x25b566=_0x440e1e[0x0],_0x44759d=_0x25b566['start']['nodeAfter'],_0x21391d=_0x25b566['end']['nodeBefore'];return _0x44759d instanceof _0x546be1?_0x44759d!=_0x21391d?null:_0x44759d: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 _0x11bb19=[];let _0x99930e=this['head'];for(;_0x99930e;)_0x11bb19['push'](_0x99930e),_0x99930e=_0x99930e['next'];return _0x11bb19;}['setAttribute'](_0x48d914,_0x3facee){const _0x10e78b=nt(this['attributes']);it(_0x10e78b,_0x48d914,_0x3facee),st(_0x10e78b,this['attributes'])||(this['attributes']=_0x10e78b,this['_onAttributesChange'](_0x10e78b));}['removeAttribute'](_0x4ce25f){const _0x223726=nt(this['attributes']);rt(_0x223726,_0x4ce25f),st(_0x223726,this['attributes'])||(this['attributes']=_0x223726,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 _0xec3fc0()['substr'](0x1,0x5);}}function At(_0x5d2eef,_0x1c10b1,_0x5b9d2d){const _0x2df68e=_0x5d2eef['t'],t=_0x5d2eef['t'];switch(_0x1c10b1){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',_0x5b9d2d);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x5b9d2d);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x5b9d2d);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x5b9d2d);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x5b9d2d);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',_0x5b9d2d);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x5b9d2d);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',_0x5b9d2d);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x5b9d2d);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x5b9d2d);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x5b9d2d);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x5b9d2d);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x5b9d2d);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x5b9d2d);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x5b9d2d);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x5b9d2d);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x5b9d2d);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x5b9d2d);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x5b9d2d);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x5b9d2d);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x5b9d2d);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x5b9d2d);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x5b9d2d);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x5b9d2d);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x5b9d2d);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'},_0x5b9d2d);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x5b9d2d);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x5b9d2d);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x5b9d2d);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x5b9d2d);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x5b9d2d);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x5b9d2d);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x5b9d2d);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'},_0x5b9d2d);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x5b9d2d);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x5b9d2d);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x5b9d2d);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x5b9d2d);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'},_0x5b9d2d);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x5b9d2d);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'},_0x5b9d2d);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'},_0x5b9d2d);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x5b9d2d);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'},_0x5b9d2d);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x5b9d2d);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'},_0x5b9d2d);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x5b9d2d);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x5b9d2d);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x5b9d2d);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x5b9d2d);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x5b9d2d);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'},_0x5b9d2d);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x5b9d2d);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 _0x2df68e({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x5b9d2d);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x2df68e({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x5b9d2d);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x5b9d2d);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'},_0x5b9d2d);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'},_0x5b9d2d);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'},_0x5b9d2d);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x1c10b1;}}class kt{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x10292e,_0x335e20){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x10292e,this['_locale']=_0x335e20;}['getDescriptions'](_0x45fca1){const _0x4c7b4e=[],_0x23ede2=new Set(),_0x3a16e0=new Set();for(let _0x443981=0x0;_0x443981<_0x45fca1['length'];_0x443981++){const _0x26a9d0=_0x45fca1[_0x443981];if(!_0x26a9d0['isInContent'])continue;const _0x3ca858=this['_handleCustomCallbackDescription'](_0x26a9d0);if(_0x3ca858){if(null!=_0x26a9d0['subType']){if(_0x23ede2['has'](_0x26a9d0['subType']))continue;_0x23ede2['add'](_0x26a9d0['subType']);}_0x4c7b4e['push'](_0x3ca858);}else{if('attribute'==_0x26a9d0['type']){const _0x64f397=_0x26a9d0['data']['key'];if(_0x3a16e0['has'](_0x64f397))continue;_0x3a16e0['add'](_0x26a9d0['data']['key']),_0x64f397==Ke?this['_handleRenameSuggestionDescription'](_0x4c7b4e,_0x26a9d0):this['_handleAttributeSuggestionDescription'](_0x4c7b4e,_0x26a9d0);continue;}'insertion'!=_0x26a9d0['type']&&'deletion'!=_0x26a9d0['type']||this['_handleInsertRemoveSuggestionDescription'](_0x4c7b4e,_0x26a9d0,_0x45fca1[_0x443981+0x1]);}}return this['_resolveDescriptionItems'](_0x4c7b4e);}['registerDescriptionCallback'](_0x41caf0){this['_customCallbacks']['push'](_0x41caf0);}['registerElementLabel'](_0x501b35,_0x12afc4,_0x35698d=_0x5dc5ee['normal']){'function'==typeof _0x501b35?_0x2d7d00(this['_itemLabelsCallbacks'],{'matchingCallback':_0x501b35,'label':_0x12afc4,'priority':_0x35698d}):this['_itemLabels']['set'](_0x501b35,_0x12afc4);}['registerAttributeLabel'](_0x44680a,_0xdc5d80){this['_attributeLabels']['set'](_0x44680a,_0xdc5d80);}['getItemLabel'](_0x28cd87,_0x585896=0x1){let _0x36e771;for(const _0x41fd7e of this['_itemLabelsCallbacks'])if(_0x41fd7e['matchingCallback'](_0x28cd87)){_0x36e771=_0x41fd7e['label'];break;}return _0x36e771||(_0x36e771=this['_itemLabels']['get'](_0x28cd87['name'])),_0x36e771?_0x36e771(_0x585896):0x1!==_0x585896?_0x585896+'\x20'+_0x28cd87['name']+'s':''+_0x28cd87['name'];}['_addDescriptionItems'](_0x22f3ac,_0x3e7f8e){const _0x85f58a=_0x3e7f8e['getFirstRange']()['getWalker'](),_0x24d59c='insertion'==_0x3e7f8e['type']?'add':'remove';for(const _0x44bd23 of _0x85f58a){const _0x45fcc7=_0x44bd23['item'],_0x23a9ac=_0x22f3ac[_0x22f3ac['length']-0x1];if(_0x45fcc7['is']('$textProxy'))_0x23a9ac&&_0x23a9ac['type']['indexOf']('Container')>-0x1&&_0x22f3ac['pop'](),_0x23a9ac&&'text'==_0x23a9ac['type']?_0x23a9ac[_0x24d59c]+=_0x45fcc7['data']:_0x22f3ac['push']({'type':'text','add':'add'==_0x24d59c?_0x45fcc7['data']:'','remove':'remove'==_0x24d59c?_0x45fcc7['data']:''});else{if(this['_schema']['isObject'](_0x45fcc7)){const _0x37ec5d=_0x45fcc7;if(_0x23a9ac&&_0x23a9ac['type']['indexOf']('Container')>-0x1&&_0x22f3ac['pop'](),'elementEnd'==_0x44bd23['type'])continue;_0x23a9ac&&_0x23a9ac['type']==_0x24d59c+'Object'&&_0x23a9ac['element']['name']==_0x37ec5d['name']?_0x23a9ac['quantity']++:_0x22f3ac['push']({'type':_0x24d59c+'Object','element':_0x37ec5d,'quantity':0x1}),_0x85f58a['skip'](_0x39438d=>!('elementEnd'==_0x39438d['type']&&_0x39438d['item']==_0x45fcc7));}else{if(this['_schema']['checkChild'](_0x45fcc7,'$text')||_0x45fcc7['is']('element','softBreak')){const _0x2597af=_0x45fcc7;if('add'==_0x24d59c&&'elementStart'==_0x44bd23['type']||'remove'==_0x24d59c&&'elementEnd'==_0x44bd23['type'])continue;if(_0x23a9ac&&-0x1==_0x23a9ac['type']['indexOf']('Container')){'text'==_0x23a9ac['type']&&(_0x23a9ac[_0x24d59c]+='\x0a');continue;}let _0x5154b6;if(_0x5154b6='add'==_0x24d59c?_0x2597af['nextSibling']&&!this['_schema']['isObject'](_0x2597af['nextSibling'])?_0x2597af['nextSibling']:null:_0x2597af['previousSibling']&&!this['_schema']['isObject'](_0x2597af['previousSibling'])?_0x2597af['previousSibling']:null,_0x2597af['isEmpty']||_0x5154b6&&_0x5154b6['isEmpty']){const _0x3ad4e3=_0x5154b6&&_0x5154b6['isEmpty']?_0x5154b6:_0x2597af;_0x23a9ac&&_0x23a9ac['type']==_0x24d59c+'EmptyContainer'&&_0x23a9ac['element']['name']==_0x3ad4e3['name']?_0x23a9ac['quantity']++:_0x22f3ac['push']({'type':_0x24d59c+'EmptyContainer','element':_0x3ad4e3,'quantity':0x1});}else _0x22f3ac['push']({'type':_0x24d59c+'Container','element':_0x2597af});}}}}}['_resolveDescriptionItems'](_0x79ab12){const _0x362e2b=this['_locale'],_0x4dba53=[],_0x59552c=[],_0x4f2787=[];for(const _0x2b222b of _0x79ab12)switch(_0x2b222b['type']){case'text':if(_0x2b222b['add']=_0x2b222b['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x2b222b['remove']=_0x2b222b['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x2b222b['add']&&''!=_0x2b222b['remove']){_0x4dba53['push']({'type':'replace','content':At(_0x362e2b,'REPLACE_TEXT',['\x22'+_0x2b222b['remove']+'\x22','\x22'+_0x2b222b['add']+'\x22'])});continue;}if(null!=_0x2b222b['add']['match'](/^ +$/)){_0x4dba53['push']({'type':'insertion','content':At(_0x362e2b,'*Insert:*\x20%0',At(_0x362e2b,'ELEMENT_SPACE',_0x2b222b['add']['length']))});continue;}if(null!=_0x2b222b['remove']['match'](/^ +$/)){_0x4dba53['push']({'type':'deletion','content':At(_0x362e2b,'*Remove:*\x20%0',At(_0x362e2b,'ELEMENT_SPACE',_0x2b222b['remove']['length']))});continue;}if(''!=_0x2b222b['add']){_0x4dba53['push']({'type':'insertion','content':At(_0x362e2b,'*Insert:*\x20%0','\x22'+_0x2b222b['add']+'\x22')});continue;}_0x4dba53['push']({'type':'deletion','content':At(_0x362e2b,'*Remove:*\x20%0','\x22'+_0x2b222b['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x4dba53['push']({'type':'insertion','content':At(_0x362e2b,'*Insert:*\x20%0',this['getItemLabel'](_0x2b222b['element'],_0x2b222b['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x4dba53['push']({'type':'deletion','content':At(_0x362e2b,'*Remove:*\x20%0',this['getItemLabel'](_0x2b222b['element'],_0x2b222b['quantity']))});continue;case'addContainer':_0x4dba53['push']({'type':'insertion','content':At(_0x362e2b,'*Split:*\x20%0',this['getItemLabel'](_0x2b222b['element'],_0x2b222b['quantity']))});continue;case'removeContainer':_0x4dba53['push']({'type':'deletion','content':At(_0x362e2b,'*Merge:*\x20%0',this['getItemLabel'](_0x2b222b['element'],_0x2b222b['quantity']))});continue;case'addFormat':_0x59552c['push'](_0x2b222b['key']);continue;case'removeFormat':_0x4f2787['push'](_0x2b222b['key']);continue;default:_0x4dba53['push'](_0x2b222b);}if(_0x59552c['length']){const _0x58c327=_0x59552c['map'](_0x34449e=>this['_attributeLabels']['has'](_0x34449e)?this['_attributeLabels']['get'](_0x34449e):_0x34449e)['join'](',\x20');_0x4dba53['push']({'type':'format','content':At(this['_locale'],'*Set\x20format:*\x20%0',_0x58c327)});}if(_0x4f2787['length']){const _0x109356=_0x4f2787['map'](_0x1ac054=>this['_attributeLabels']['has'](_0x1ac054)?this['_attributeLabels']['get'](_0x1ac054):_0x1ac054)['join'](',\x20');_0x4dba53['push']({'type':'format','content':At(this['_locale'],'*Remove\x20format:*\x20%0',_0x109356)});}return _0x4dba53;}['_handleCustomCallbackDescription'](_0x2d4605){for(const _0x162ecb of this['_customCallbacks']){const _0x1feffc=_0x162ecb(_0x2d4605);if(_0x1feffc&&'type'in _0x1feffc)return _0x1feffc;}}['_handleAttributeSuggestionDescription'](_0x4f8371,_0x4f625b){const _0x9651ed=_0x4f625b['data'],_0xecb69=void 0x0===_0x9651ed['newValue']?'removeFormat':'addFormat';_0x4f8371['push']({'type':_0xecb69,'key':_0x9651ed['key']});}['_handleRenameSuggestionDescription'](_0x5ae93a,_0x4e990a){_0x5ae93a['push']({'type':'format','content':At(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x4e990a['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x5b379b,_0x3c0075,_0x3ecb4b){if(this['_addDescriptionItems'](_0x5b379b,_0x3c0075),_0x3ecb4b&&_0x3ecb4b['getFirstRange']()&&!_0x3c0075['getFirstRange']()['end']['isEqual'](_0x3ecb4b['getFirstRange']()['start'])){const _0x40f89b=_0x5b379b[_0x5b379b['length']-0x1],_0x4742a2='insertion'==_0x3c0075['type']?'add':'remove';_0x40f89b&&'text'==_0x40f89b['type']&&(_0x40f89b[_0x4742a2]+='\x0a');}}}class Ct extends _0x486e9c{['afterInit'](){const _0x17dcdf=this['editor'],_0x35f331=_0x17dcdf['plugins']['get']('TrackChangesEditing');_0x17dcdf['commands']['get']('showAIAssistant')&&_0x35f331['enableCommand']('showAIAssistant');}}class yt extends _0x486e9c{['afterInit'](){const _0x39dde5=this['editor'],_0x4c17d2=_0x39dde5['plugins']['get']('TrackChangesEditing');_0x39dde5['commands']['get']('toggleAi')&&_0x4c17d2['enableCommand']('toggleAi');}}class Nt extends _0x486e9c{['afterInit'](){const _0x429939=this['editor'],_0x3e09ae=_0x429939['plugins']['get']('TrackChangesEditing');_0x429939['commands']['get']('aiQuickAction')&&_0x3e09ae['enableCommand']('aiQuickAction');}}class Rt extends _0x486e9c{['afterInit'](){const _0x3c7dd3=this['editor'],_0x529a8f=_0x3c7dd3['locale'];if(!_0x3c7dd3['plugins']['has']('AlignmentEditing'))return;const _0x251e43=_0x3c7dd3['plugins']['get']('TrackChangesEditing');_0x251e43['enableDefaultAttributesIntegration']('alignment'),_0x251e43['descriptionFactory']['registerAttributeLabel']('alignment',At(_0x529a8f,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x15ee25=this['editor'],_0x2ab483=_0x15ee25['locale'];_0x15ee25['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x41dd5c=>{if('formatBlock'!=_0x41dd5c['type'])return;const {data:_0x59f0a6}=_0x41dd5c;if(_0x59f0a6&&'alignment'==_0x59f0a6['commandName']){const _0xfe9b7d=_0x59f0a6['commandParams'][0x0]['value'];return{'type':'format','content':At(_0x2ab483,'*Format:*\x20%0',function(_0x27e0bf){switch(_0x27e0bf){case'left':return At(_0x2ab483,'FORMAT_ALIGN_TO_LEFT');case'right':return At(_0x2ab483,'FORMAT_ALIGN_TO_RIGHT');case'center':return At(_0x2ab483,'FORMAT_ALIGN_TO_CENTER');case'justify':return At(_0x2ab483,'FORMAT_JUSTIFY_TEXT');}}(_0xfe9b7d))};}});}}const St=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class Mt extends _0x486e9c{['afterInit'](){const _0x38381e=this['editor'],_0x1fdc8a=_0x38381e['plugins']['get']('TrackChangesEditing'),_0x128074=_0x38381e['locale'];for(const _0x393f34 of St){if(!_0x38381e['plugins']['has'](_0x393f34))continue;const _0x35fff1=_0x393f34['slice'](0x0,-0x7)['toLowerCase'](),_0x5579d9='FORMAT_'+_0x35fff1['toUpperCase']();_0x1fdc8a['enableDefaultAttributesIntegration'](_0x35fff1),_0x1fdc8a['descriptionFactory']['registerAttributeLabel'](_0x35fff1,At(_0x128074,_0x5579d9));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3ac073=this['editor'],_0x37e1a4=_0x3ac073['locale'],_0x237378=_0x3ac073['plugins']['get']('TrackChangesEditing');function _0x2f807b(_0x2f1d9e,_0x12d569){_0x237378['descriptionFactory']['registerDescriptionCallback'](_0x22ff5c=>{if('formatInline'!=_0x22ff5c['type'])return;const {data:_0x56ae29}=_0x22ff5c;return _0x56ae29&&_0x56ae29['commandName']===_0x2f1d9e?_0x56ae29['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x37e1a4,'*Format:*\x20%0',_0x12d569)}:{'type':'format','content':At(_0x37e1a4,'*Remove\x20format:*\x20%0',_0x12d569)}:void 0x0;});}_0x2f807b('bold',At(_0x37e1a4,'FORMAT_BOLD')),_0x2f807b('italic',At(_0x37e1a4,'FORMAT_ITALIC')),_0x2f807b('underline',At(_0x37e1a4,'FORMAT_UNDERLINE')),_0x2f807b('code',At(_0x37e1a4,'FORMAT_CODE')),_0x2f807b('strikethrough',At(_0x37e1a4,'FORMAT_STRIKETHROUGH')),_0x2f807b('subscript',At(_0x37e1a4,'FORMAT_SUBSCRIPT')),_0x2f807b('superscript',At(_0x37e1a4,'FORMAT_SUPERSCRIPT'));}}class Ot extends _0x486e9c{['afterInit'](){const _0x36c41a=this['editor'],_0x438c15=_0x36c41a['locale'];if(!_0x36c41a['plugins']['has']('BlockQuoteEditing'))return;const _0x51851f=_0x36c41a['plugins']['get']('TrackChangesEditing'),_0x79ef71=this['editor']['commands']['get']('blockQuote');_0x51851f['enableCommand']('blockQuote',(_0x3fb647,_0x1d7cf6={})=>{const _0x59dadb=this['editor']['model']['document']['selection'],_0xa2716e=_0x1d7cf6&&void 0x0!==_0x1d7cf6['forceValue']?_0x1d7cf6['forceValue']:!_0x79ef71['value'];let _0x2a028b=[];if(_0xa2716e){const _0x5adb9b=Array['from'](_0x59dadb['getSelectedBlocks']())['filter'](_0x1ffccf=>wt(_0x1ffccf)||function(_0x499419,_0x2f46bd){const _0x1c56be=_0x2f46bd['checkChild'](_0x499419['parent'],'blockQuote'),_0x1181dc=_0x2f46bd['checkChild'](['$root','blockQuote'],_0x499419);return _0x1c56be&&_0x1181dc;}(_0x1ffccf,this['editor']['model']['schema']));_0x2a028b=Tt(_0x5adb9b,_0x36c41a['model']);}else{const _0x5b168e=Array['from'](_0x59dadb['getSelectedBlocks']())['filter'](_0x3c3e91=>wt(_0x3c3e91));_0x2a028b=Tt(_0x5b168e,_0x36c41a['model']);}_0x36c41a['model']['change'](()=>{for(const _0x2a678b of _0x2a028b)_0x51851f['markBlockFormat'](_0x2a678b,{'commandName':'blockQuote','commandParams':[{'forceValue':_0xa2716e}]});});}),_0x51851f['descriptionFactory']['registerDescriptionCallback'](_0x2fc0e2=>{const {data:_0x8d60d3}=_0x2fc0e2;if(_0x8d60d3&&'blockQuote'==_0x8d60d3['commandName']){const _0x38ed52=At(_0x438c15,'ELEMENT_BLOCK_QUOTE');return _0x8d60d3['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x438c15,'*Set\x20format:*\x20%0',_0x38ed52)}:{'type':'format','content':At(_0x438c15,'*Remove\x20format:*\x20%0',_0x38ed52)};}});}}function wt(_0x44519a){return'blockQuote'==_0x44519a['parent']['name'];}class Bt extends _0x486e9c{['afterInit'](){const _0x5af69a=this['editor'],_0x20ad0c=_0x5af69a['locale'],_0x1b45fc=_0x5af69a['plugins']['get']('TrackChangesEditing');_0x5af69a['plugins']['has']('BookmarkEditing')&&(_0x1b45fc['enableCommand']('insertBookmark'),_0x1b45fc['enableDefaultAttributesIntegration']('updateBookmark'),_0x1b45fc['descriptionFactory']['registerDescriptionCallback'](_0x40a796=>{if('insertion'!=_0x40a796['type']&&'deletion'!=_0x40a796['type']&&'attribute'!=_0x40a796['type'])return;const _0x771b2d=_0x40a796['getContainedElement']();if(null==_0x771b2d)return;if(!_0x771b2d['is']('element','bookmark'))return;const _0x58631c=_0x771b2d['getAttribute']('bookmarkId');if('insertion'==_0x40a796['type'])return{'type':'insertion','content':At(_0x20ad0c,'*Insert:*\x20%0','\x22'+_0x58631c+'\x22\x20'+At(_0x20ad0c,'ELEMENT_BOOKMARK'))};if('deletion'==_0x40a796['type'])return{'type':'deletion','content':At(_0x20ad0c,'*Remove:*\x20%0','\x22'+_0x58631c+'\x22\x20'+At(_0x20ad0c,'ELEMENT_BOOKMARK'))};const {data:_0x3115c4}=_0x40a796;if(!_0x3115c4||'bookmarkId'!=_0x3115c4['key'])return;return{'type':'format','content':At(_0x20ad0c,'*Set\x20bookmark:*\x20%0','\x22'+_0x3115c4['newValue']+'\x22')};}));}}class Ft extends _0x486e9c{['afterInit'](){const _0x232f55=this['editor'];_0x232f55['plugins']['has']('CaseChange')&&(_0x232f55['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x232f55['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x232f55['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class Dt extends _0x486e9c{['afterInit'](){const _0x2e9e28=this['editor'];_0x2e9e28['commands']['get']('ckbox')&&_0x2e9e28['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class vt extends _0x486e9c{['afterInit'](){const _0x4925d3=this['editor'];if(!_0x4925d3['plugins']['has']('CodeBlock'))return;const _0x5491b2=_0x4925d3['plugins']['get']('TrackChangesEditing'),_0x4c4446=_0x4925d3['locale'],_0x37d754=_0x4925d3['config']['get']('codeBlock')['languages'],_0x44a253=_0x4925d3['commands']['get']('codeBlock');_0x5491b2['enableCommand']('indentCodeBlock'),_0x5491b2['enableCommand']('outdentCodeBlock'),_0x5491b2['enableCommand']('codeBlock',(_0x5101e1,_0x10af60={})=>{const _0x219c19=_0x4925d3['model'],_0x90cb9=_0x4925d3['model']['document']['selection'],_0x281659=_0x10af60&&void 0x0!==_0x10af60['forceValue']?_0x10af60['forceValue']:!_0x44a253['value'];let _0x469de8;_0x10af60['language']||(_0x10af60['language']=_0x37d754[0x0]['language']),_0x469de8=_0x281659?Array['from'](_0x90cb9['getSelectedBlocks']())['filter'](_0x1f5b78=>xt(_0x1f5b78)||function(_0x4fe697,_0x4a1d93){if(_0x4fe697['is']('rootElement')||_0x4a1d93['isLimit'](_0x4fe697))return!0x1;return _0x4a1d93['checkChild'](_0x4fe697['parent'],'codeBlock');}(_0x1f5b78,_0x219c19['schema'])):Array['from'](_0x90cb9['getSelectedBlocks']())['filter'](_0x4a5006=>xt(_0x4a5006));const _0x5da982=Tt(_0x469de8,_0x219c19);_0x219c19['change'](()=>{for(const _0x5f476f of _0x5da982)_0x5491b2['markBlockFormat'](_0x5f476f,{'commandName':'codeBlock','commandParams':[{..._0x10af60,'forceValue':_0x281659}],'formatGroupId':'blockName'});});}),(_0x5491b2['descriptionFactory']['registerElementLabel']('codeBlock',_0x4a7601=>At(_0x4c4446,'ELEMENT_CODE_BLOCK',_0x4a7601)),_0x5491b2['descriptionFactory']['registerDescriptionCallback'](_0x4c948e=>{if('formatBlock'!=_0x4c948e['type'])return;const _0x566c6c=_0x4c4446['t'],{data:_0x4a74dc}=_0x4c948e;if(!_0x4a74dc||'codeBlock'!=_0x4a74dc['commandName'])return;const _0x12926f=_0x4a74dc['commandParams'][0x0]['language'],_0x12cc66=_0x566c6c(_0x37d754['find'](_0x1d85a6=>_0x1d85a6['language']===_0x12926f)['label'])['toLowerCase']();return _0x4a74dc['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x4c4446,'*Set\x20format:*\x20%0',At(_0x4c4446,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x12cc66+')')}:{'type':'format','content':At(_0x4c4446,'*Remove\x20format:*\x20%0',At(_0x4c4446,'ELEMENT_CODE_BLOCK',0x1))};}));}}function xt(_0xaea54){return'codeBlock'==_0xaea54['name'];}class Pt extends _0x486e9c{['afterInit'](){const _0x32bbe8=this['editor'];if(!_0x32bbe8['plugins']['has']('CommentsEditing'))return;_0x32bbe8['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class Ut extends _0x486e9c{static get['requires'](){return[at];}['init'](){const _0x103235=this['editor'],_0x53da84=_0x103235['plugins']['get']('TrackChangesEditing');_0x53da84['enableCommand']('delete');const _0x591edd=_0x103235['commands']['get']('deleteForward');_0x53da84['enableCommand']('deleteForward',(_0x5e98a5,_0x379baf={})=>{const _0x26aeb2=_0x103235['model']['createSelection'](_0x103235['model']['document']['selection']);_0x26aeb2['isCollapsed']&&_0x103235['model']['modifySelection'](_0x26aeb2,{'direction':'forward','unit':_0x379baf['unit']});const _0x543f98=_0x26aeb2['getFirstRange'](),_0x3edc37=_0x704ba['fromRange'](_0x543f98);let _0x32fb5b;_0x5e98a5(_0x379baf),_0x32fb5b='$graveyard'==_0x3edc37['root']['rootName']?_0x103235['model']['createRange'](_0x543f98['start']):_0x103235['model']['createRange'](_0x3edc37['start'],_0x3edc37['end']),_0x3edc37['detach'](),_0x103235['model']['enqueueChange'](_0x591edd['buffer']['batch'],_0x6b2b7=>{_0x591edd['buffer']['lock'](),_0x6b2b7['setSelection'](_0x6b2b7['createRange'](_0x32fb5b['end'])),_0x591edd['buffer']['unlock']();});});}}class Gt extends _0x486e9c{['afterInit'](){const _0x351b30=this['editor'];if(!_0x351b30['plugins']['has']('ListEditing'))return;const _0x2be148=_0x351b30['locale'],_0x16eea2=_0x351b30['plugins']['get']('TrackChangesEditing'),_0x845eaa=_0x351b30['plugins']['has']('TodoListEditing'),_0x4909c0=!!_0x351b30['config']['get']('list.multiBlock');function _0x3cb1cc(_0x435bd2){return{'type':'format','content':''+At(_0x2be148,'*Set\x20format:*\x20%0',_0x435bd2)};}function _0x31cb87(_0x2907ec){return{'type':'format','content':''+At(_0x2be148,'*Remove\x20format:*\x20%0',_0x2907ec)};}_0x16eea2['enableDefaultAttributesIntegration']('numberedList'),_0x16eea2['enableDefaultAttributesIntegration']('bulletedList'),_0x16eea2['enableDefaultAttributesIntegration']('customNumberedList'),_0x16eea2['enableDefaultAttributesIntegration']('customBulletedList'),_0x16eea2['enableDefaultAttributesIntegration']('indentList'),_0x16eea2['enableDefaultAttributesIntegration']('outdentList'),_0x16eea2['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x16eea2['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x4909c0&&(_0x16eea2['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x16eea2['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x845eaa&&(_0x16eea2['enableDefaultAttributesIntegration']('todoList'),_0x16eea2['enableDefaultAttributesIntegration']('checkTodoList'),_0x16eea2['descriptionFactory']['registerDescriptionCallback'](_0x26bbb6=>{const {data:_0x54dc95}=_0x26bbb6;if(_0x54dc95&&'todoListChecked'==_0x54dc95['key'])return{'type':'format','content':_0x54dc95['newValue']?At(_0x2be148,'*Check\x20item*'):At(_0x2be148,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x1d22a5=>{if(_0x1d22a5['batch']['isUndo'])return!0x1;let _0x2a0395=!0x1;const _0x48f6df=_0x16eea2['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5e1d0a=>'todoListChecked'===_0x16eea2['_getAttributeKey'](_0x5e1d0a));for(const _0x1a1014 of _0x48f6df){'todo'!=_0x1a1014['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x16eea2['_findSuggestions'](_0x1a1014['getFirstRange'](),'attribute')['find'](_0x1ac456=>'listType'===_0x16eea2['_getAttributeKey'](_0x1ac456['suggestion']))||(_0x1d22a5['removeMarker'](_0x1a1014['getFirstMarker']()),_0x2a0395=!0x0));}return _0x2a0395;})),_0x16eea2['descriptionFactory']['registerAttributeLabel']('listIndent',At(_0x2be148,'FORMAT_INDENT'));const _0x14b5d4={'type':'format','content':''};_0x16eea2['descriptionFactory']['registerDescriptionCallback'](_0x277c8b=>{const {data:_0x3d0987}=_0x277c8b;if(!_0x3d0987||'listType'!=_0x3d0987['key'])return;let _0x107362=_0x277c8b['head'];for(;_0x107362;){if(_0x107362['data']&&(('listStyle'==_0x107362['data']['key']||'listMarkerStyle'==_0x107362['data']['key'])&&(_0x107362['data']['newValue']&&'default'!=_0x107362['data']['newValue']||'default'!=_0x107362['data']['oldValue']&&!_0x3d0987['newValue'])||!_0x4909c0&&_0x107362['data']['key']==Ke))return _0x14b5d4;_0x107362=_0x107362['next'];}if(null==_0x3d0987['newValue'])switch(_0x3d0987['oldValue']){case'bulleted':return _0x31cb87(At(_0x2be148,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x31cb87(At(_0x2be148,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x31cb87(At(_0x2be148,'ELEMENT_TODO_LIST'));}switch(_0x3d0987['newValue']){case'bulleted':return _0x3cb1cc(At(_0x2be148,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3cb1cc(At(_0x2be148,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3cb1cc(At(_0x2be148,'ELEMENT_TODO_LIST'));}}),_0x16eea2['descriptionFactory']['registerDescriptionCallback'](_0x23fe89=>{const {data:_0x74b51a}=_0x23fe89;if(_0x74b51a&&'listIndent'==_0x74b51a['key'])return null==_0x74b51a['newValue']||null==_0x74b51a['oldValue']&&0x0==_0x74b51a['newValue']?_0x14b5d4:void 0x0;}),_0x16eea2['descriptionFactory']['registerDescriptionCallback'](_0x4909e8=>{if('attribute'!=_0x4909e8['type'])return;const {data:_0x288fc6}=_0x4909e8;if(!_0x288fc6||'listItemId'!=_0x288fc6['key'])return;const _0xfcaf78=Ht(_0x4909e8);return'newValue'==_0xfcaf78?{'type':'format','content':At(_0x2be148,'*Merge:*\x20list\x20item')}:'oldValue'==_0xfcaf78?{'type':'format','content':At(_0x2be148,'*Split:*\x20list\x20item')}:_0x14b5d4;}),_0x351b30['model']['document']['registerPostFixer'](_0x17f5f6=>this['listItemIdFixer'](_0x17f5f6)),_0x351b30['model']['document']['registerPostFixer'](_0x4bfe60=>this['noTrackChangesFixer'](_0x4bfe60)),_0x351b30['model']['document']['on']('change:data',(_0x2be71a,_0x44bda3)=>{if(_0x44bda3['isUndo']||!_0x44bda3['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x566b89){if(_0x566b89['batch']['isUndo']||!_0x566b89['batch']['isLocal'])return!0x1;let _0x59c24e=!0x1;const _0xf55cdc=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3d2f32=>_0x3d2f32['data']&&'listItemId'==_0x3d2f32['data']['key'])['filter'](_0xb81350=>_0xb81350['data']['newValue']&&_0xb81350['data']['oldValue']);for(const _0x574bd3 of _0xf55cdc)Ht(_0x574bd3)||(_0x566b89['removeMarker'](_0x574bd3['getFirstMarker']()),_0x59c24e=!0x0);return _0x59c24e;}['noTrackChangesFixer'](_0x558bc8){if(_0x558bc8['batch']['isUndo']||!_0x558bc8['batch']['isLocal'])return!0x1;const _0x5d548f=this['editor']['model']['document']['differ'],_0x147ba6=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x147ba6['trackChangesCommand']['value'])return!0x1;let _0x2083e6=!0x1;const _0x18c4df=new Set(['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle']),_0x3f71c1=_0x5d548f['getChanges']()['filter'](_0x5d5ac6=>'attribute'==_0x5d5ac6['type'])['filter'](_0x873c1c=>_0x18c4df['has'](_0x873c1c['attributeKey']));if(0x0==_0x3f71c1['length'])return _0x2083e6;const _0x14b389=new Set(_0x5d548f['getMarkersToAdd']()['filter'](_0x320ad7=>{if(!_0x320ad7['name']['startsWith']('suggestion:attribute:'))return!0x1;const _0x1d803c=_0x36ab20(_0x320ad7['name'])['subType']['split']('|')[0x0];return _0x18c4df['has'](_0x1d803c);})['map'](_0x2a7530=>_0x36ab20(_0x2a7530['name'])['id']));for(const _0x15d77c of _0x3f71c1){const _0xd4cebe=_0x147ba6['_findSuggestions'](_0x15d77c['range'],'attribute')['filter'](_0x9d6202=>{if(_0x9d6202['meta']['isNextTo'])return!0x1;if(_0x14b389['has'](_0x9d6202['suggestion']['id']))return!0x1;const _0x2a1f51=_0x147ba6['_getAttributeKey'](_0x9d6202['suggestion']);return _0x18c4df['has'](_0x2a1f51);})['map'](_0x142942=>_0x142942['suggestion']);if(_0xd4cebe['length']){for(const _0x19dc73 of _0xd4cebe)_0x558bc8['removeMarker'](_0x19dc73['getFirstMarker']());_0x2083e6=!0x0;}}return _0x2083e6;}['assureChains'](){const _0x4e3739=this['editor']['plugins']['get']('TrackChangesEditing'),_0x585df1=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x507a01;const _0x3efc41=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1bf6dc=>{if(_0x1bf6dc['data']['oldRange']||!_0x1bf6dc['data']['newRange'])return null;if(!_0x1bf6dc['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0xdd0158}=_0x36ab20(_0x1bf6dc['name']);if(!_0x4e3739['hasSuggestion'](_0xdd0158))return null;const _0x491ba2=_0x4e3739['getSuggestion'](_0xdd0158);return _0x585df1['includes'](_0x491ba2['data']['key']);})['map'](_0x2b37f4=>{const {id:_0x2c53b6}=_0x36ab20(_0x2b37f4['name']),_0x508e97=_0x4e3739['getSuggestion'](_0x2c53b6);return _0x507a01=_0x508e97['attributes']['groupId'],_0x508e97['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x3efc41['size'])return;const _0x1f9913=_0x4e3739['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2ae0cd=>'attribute'==_0x2ae0cd['type']&&_0x2ae0cd['data']&&_0x585df1['includes'](_0x2ae0cd['data']['key'])&&_0x2ae0cd['attributes']['groupId']!=_0x507a01)['map'](_0x4f3e7c=>({'listItem':_0x4f3e7c['getFirstRange']()['start']['nodeAfter'],'groupId':_0x4f3e7c['attributes']['groupId']})),_0x8b420=new Set();for(const {groupId:_0x210db0,listItem:_0x1a64c4}of _0x1f9913)_0x3efc41['has'](_0x1a64c4)&&_0x8b420['add'](_0x210db0);for(const _0x4e4741 of _0x4e3739['getSuggestions']())_0x8b420['has'](_0x4e4741['attributes']['groupId'])&&_0x4e4741['setAttribute']('groupId',_0x507a01);}['_supportLegacySuggestions'](){const _0x1538ab=this['editor'],_0x4021ca=_0x1538ab['locale'],_0x5db141=_0x1538ab['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x5db141['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x41b0be,_0x5c76dc){const _0x242a5e=[];for(let _0x5b3115 of _0x41b0be)_0x5b3115['start']['nodeAfter']===_0x5b3115['end']['parent']&&(_0x5b3115=_0x1538ab['model']['createRange'](_0x1538ab['model']['createPositionAt'](_0x5b3115['start']['nodeAfter'],0x0))),_0x242a5e['push'](_0x5b3115);_0x1538ab['model']['change'](_0x8a40bb=>{const _0x2e5f9f=_0x1538ab['model']['document']['selection'],_0x315c60=Array['from'](_0x2e5f9f['getRanges']())['map'](_0x1b026c=>_0x704ba['fromRange'](_0x1b026c));_0x8a40bb['setSelection'](_0x242a5e),_0x1538ab['commands']['get'](_0x5c76dc['commandName'])['refresh'](),_0x5c76dc['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x1538ab['execute'](_0x5c76dc['commandName'],..._0x5c76dc['commandParams']),_0x8a40bb['setSelection'](_0x315c60);for(const _0x3eb29f of _0x315c60)_0x3eb29f['detach']();});}),_0x5db141['descriptionFactory']['registerElementLabel'](function(_0x3c5101){const _0x572aae=!_0x1538ab['model']['schema']['isObject'](_0x3c5101),_0x1ee655=_0x3c5101['previousSibling'],_0x4a6bfb=_0x3c5101['nextSibling'],_0x4f4b82=_0x3c5101['getAttribute']('listItemId'),_0x550e2b=!_0x1ee655||_0x1ee655['getAttribute']('listItemId')!==_0x4f4b82,_0x479d93=!_0x4a6bfb||_0x4a6bfb['getAttribute']('listItemId')!==_0x4f4b82;return _0x572aae&&Boolean(_0x4f4b82)&&_0x550e2b&&_0x479d93;},_0xce5fcc=>At(_0x4021ca,'ELEMENT_LIST_ITEM',_0xce5fcc));}['_registerLegacyDescription'](){const _0x589074=this['editor'],_0x6458a0=_0x589074['locale'];function _0x1eb0ca(_0x321910){const _0x36e66e=_0x589074['commands']['get']('bulletedList')['value'],_0x12cf94=_0x589074['commands']['get']('numberedList')['value'];return'numberedList'===_0x321910?_0x36e66e:_0x12cf94;}_0x589074['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x2dbc52){if('formatBlock'!=_0x2dbc52['type'])return;const {data:_0x4e548c}=_0x2dbc52;if(!_0x4e548c)return;let _0x2c5a6b,_0x435ac0,_0x395633,_0x333b3b;switch(_0x4e548c['commandName']){case'bulletedList':_0x395633=_0x4e548c['commandParams'][0x0]['forceValue'],_0x333b3b=_0x1eb0ca(_0x4e548c['commandName']),_0x2c5a6b=_0x395633?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x333b3b&&_0x589074['config']['get']('list.multiBlock')||(_0x2c5a6b='*Change\x20to:*\x20%0'),_0x435ac0={'type':'format','content':At(_0x6458a0,_0x2c5a6b,At(_0x6458a0,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x395633=_0x4e548c['commandParams'][0x0]['forceValue'],_0x333b3b=_0x1eb0ca(_0x4e548c['commandName']),_0x2c5a6b=_0x395633?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x333b3b&&_0x589074['config']['get']('list.multiBlock')||(_0x2c5a6b='*Change\x20to:*\x20%0'),_0x435ac0={'type':'format','content':At(_0x6458a0,_0x2c5a6b,At(_0x6458a0,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x2c5a6b='*Indent:*\x20%0',_0x435ac0={'type':'format','content':At(_0x6458a0,_0x2c5a6b,At(_0x6458a0,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x2c5a6b=function(_0x547fe4){const _0x1170e9=_0x547fe4['getFirstRange']();let _0x380977=_0x1170e9['start']['nodeAfter'];for(;_0x380977&&_0x1170e9['containsItem'](_0x380977);){if(_0x380977['getAttribute']('listIndent')>0x0)return!0x1;_0x380977=_0x380977['nextSibling'];}return!0x0;}(_0x2dbc52)?At(_0x6458a0,'*Format:*\x20remove\x20from\x20%0',At(_0x6458a0,function(_0x1ca10d){return'ELEMENT_'+_0x1ca10d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x2dbc52))):At(_0x6458a0,'*Outdent:*\x20%0',At(_0x6458a0,'ELEMENT_LIST_ITEM')),_0x435ac0={'type':'format','content':_0x2c5a6b};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x4e548c['multipleBlocks']&&(_0x2c5a6b='*Merge:*\x20%0',_0x435ac0={'type':'deletion','content':At(_0x6458a0,_0x2c5a6b,At(_0x6458a0,'ELEMENT_LIST_ITEM'))});}return _0x435ac0;});}}function Ht(_0x414ab5){let _0x517db1=_0x414ab5['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x517db1;){const _0x353d2b=_0x517db1['getAttribute']('listItemId');if(!_0x353d2b)return!0x1;if(_0x353d2b==_0x414ab5['data']['newValue'])return'newValue';if(_0x353d2b==_0x414ab5['data']['oldValue'])return'oldValue';_0x517db1=_0x517db1['previousSibling'];}return!0x1;}class $t extends _0x486e9c{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x2d7d41=this['editor']['config']['get']('list.properties'),_0x210700=this['editor']['plugins']['get']('TrackChangesEditing');_0x2d7d41['styles']&&_0x210700['enableDefaultAttributesIntegration']('listStyle'),_0x2d7d41['reversed']&&_0x210700['enableDefaultAttributesIntegration']('listReversed'),_0x2d7d41['startIndex']&&_0x210700['enableDefaultAttributesIntegration']('listStart');const _0x4242d6={'type':'format','content':''};_0x210700['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0xf48faf=this['editor']['locale'];_0x210700['descriptionFactory']['registerAttributeLabel']('listReversed',At(_0xf48faf,'FORMAT_LIST_REVERSED')),_0x210700['descriptionFactory']['registerDescriptionCallback'](_0x28b243=>{const {data:_0x4fbcb8}=_0x28b243;if(_0x4fbcb8&&'listReversed'==_0x4fbcb8['key'])return null==_0x4fbcb8['newValue']||0x0==_0x4fbcb8['newValue']&&null==_0x4fbcb8['oldValue']?_0x4242d6:void 0x0;}),_0x210700['descriptionFactory']['registerAttributeLabel']('listStart',At(_0xf48faf,'FORMAT_LIST_START')),_0x210700['descriptionFactory']['registerDescriptionCallback'](_0x38e24f=>{const {data:_0x3676ff}=_0x38e24f;if(_0x3676ff&&'listStart'==_0x3676ff['key'])return null==_0x3676ff['newValue']||0x1==_0x3676ff['newValue']&&null==_0x3676ff['oldValue']?_0x4242d6:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x2b93b7=>{if(_0x2b93b7['batch']['isUndo'])return!0x1;let _0x13129f=!0x1;const _0x599400=_0x210700['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3f0e71=>{const _0x1b4f8c=_0x210700['_getAttributeKey'](_0x3f0e71);return'listStart'==_0x1b4f8c||'listReversed'==_0x1b4f8c;});for(const _0x1601c7 of _0x599400){const _0x3f5add=_0x1601c7['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x3f5add||'customNumbered'==_0x3f5add)continue;_0x210700['_findSuggestions'](_0x1601c7['getFirstRange'](),'attribute')['find'](_0x24c4c5=>'listType'==_0x210700['_getAttributeKey'](_0x24c4c5['suggestion']))||(_0x2b93b7['removeMarker'](_0x1601c7['getFirstMarker']()),_0x13129f=!0x0);}return _0x13129f;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x4e5470){const _0x92530a=this['editor']['locale'],{data:_0x19dc11}=_0x4e5470,_0x28c46a={'type':'format','content':''};if(!_0x19dc11||'listStyle'!=_0x19dc11['key'])return;if(!_0x19dc11['oldValue'])return'default'==_0x19dc11['newValue']?_0x28c46a:{'type':'format','content':''+At(_0x92530a,'*Set\x20format:*\x20%0',At(_0x92530a,this['_getTranslationKeyForListStyle'](_0x19dc11['newValue'])))};if(!_0x19dc11['newValue']){if('default'==_0x19dc11['oldValue'])return _0x28c46a;let _0xf02381=_0x4e5470['head'];for(;_0xf02381;){if(_0xf02381['data']&&'listType'==_0xf02381['data']['key']&&_0xf02381['data']['newValue'])return _0x28c46a;_0xf02381=_0xf02381['next'];}return{'type':'format','content':''+At(_0x92530a,'*Remove\x20format:*\x20%0',At(_0x92530a,this['_getTranslationKeyForListStyle'](_0x19dc11['oldValue'])))};}if('default'!=_0x19dc11['newValue'])return{'type':'format','content':''+At(_0x92530a,'*Set\x20format:*\x20%0',At(_0x92530a,this['_getTranslationKeyForListStyle'](_0x19dc11['newValue'])))};let _0x307be5=_0x4e5470['head'];for(;_0x307be5;){if(_0x307be5['data']&&'listType'==_0x307be5['data']['key']&&_0x307be5['data']['newValue']&&_0x307be5['data']['oldValue'])return _0x28c46a;_0x307be5=_0x307be5['next'];}return{'type':'format','content':At(_0x92530a,'*Set\x20format:*\x20%0',At(_0x92530a,'ELEMENT_'+_0x4e5470['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x328894=this['editor'],_0x3447c9=_0x328894['locale'];_0x328894['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3dbd1a=>{if('formatBlock'!=_0x3dbd1a['type'])return;const {data:_0x162e42}=_0x3dbd1a;if(!_0x162e42)return;let _0x46a9b7,_0x1baf09;switch(_0x162e42['commandName']){case'listStyle':_0x46a9b7='*Change\x20to:*\x20%0',_0x1baf09={'type':'format','content':At(_0x3447c9,_0x46a9b7,At(_0x3447c9,this['_getTranslationKeyForListStyle'](_0x162e42['commandParams'][0x0]['type'])))};break;case'listReversed':_0x46a9b7=_0x162e42['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1baf09={'type':'format','content':At(_0x3447c9,_0x46a9b7)};break;case'listStart':_0x46a9b7='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1baf09={'type':'format','content':At(_0x3447c9,_0x46a9b7,_0x162e42['commandParams'][0x0]['startIndex'])};}return _0x1baf09;});}['_getTranslationKeyForListStyle'](_0x33a95e){return'ELEMENT_'+function(_0x3de01b){if(Wt['includes'](_0x3de01b))return'bulleted';if(Vt['includes'](_0x3de01b))return'numbered';return null;}(_0x33a95e)['toUpperCase']()+'_LIST_'+_0x33a95e['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 _0x486e9c{['afterInit'](){const _0x43a3ba=this['editor'];_0x43a3ba['commands']['get']('emoji')&&_0x43a3ba['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class zt extends _0x486e9c{static get['requires'](){return[lt];}['init'](){const _0xe9b36=this['editor'],_0x18ea7e=_0xe9b36['plugins']['get']('TrackChangesEditing'),_0x5b68b2=_0xe9b36['commands']['get']('enter');_0x18ea7e['enableCommand']('enter',()=>{_0xe9b36['model']['change'](_0x37985c=>{const _0x248072=_0xe9b36['model']['document']['selection'],_0x19cb07=_0x248072['getFirstPosition'](),_0x75306c=_0x704ba['fromRange'](_0x248072['getFirstRange']());if(_0x5b68b2['enterBlock'](_0x37985c)){const _0x318be3=_0xe9b36['model']['createPositionAt'](_0x19cb07['parent']['nextSibling'],0x0),_0x2dbdc2=_0x37985c['createRange'](_0x19cb07,_0x318be3);_0x18ea7e['markInsertion'](_0x2dbdc2);}else _0x37985c['setSelection'](_0x37985c['createRange'](_0x75306c['end']));_0x75306c['detach'](),_0x5b68b2['fire']('afterExecute',{'writer':_0x37985c});});});}}class Kt extends _0x486e9c{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x1b67cd=this['editor']['plugins']['get']('TrackChangesEditing');_0x1b67cd['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x1b67cd['enableCommand']('findNext'),_0x1b67cd['enableCommand']('findPrevious'),_0x1b67cd['enableCommand']('replace'),_0x1b67cd['enableCommand']('replaceAll');}['handleFindCommand'](_0x4f6930,_0x189219,_0x1a52ee={}){const _0xbe164a=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x4f6930(_0x5287fe=>{let _0x485144=('string'==typeof _0x189219?_0xbe164a['findByTextCallback'](_0x189219,_0x1a52ee):_0x189219)(_0x5287fe);Array['isArray'](_0x485144)&&(_0x485144={'results':_0x485144,'searchText':'string'==typeof _0x189219?_0x189219:''});const _0x4caef8=_0x485144['results']['filter'](_0x530ca6=>!0x1===this['_isInDeletionRange'](_0x530ca6,_0x5287fe['item']));return{..._0x485144,'results':_0x4caef8};},_0x1a52ee);}['_isInDeletionRange'](_0x4ebf5a,_0x502a6c){const _0xdf5085=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x502a6c,_0x4ebf5a['start']),this['editor']['model']['createPositionAt'](_0x502a6c,_0x4ebf5a['end']));for(const _0x4ca927 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0xdf5085['getIntersection'](_0x4ca927['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 _0x486e9c{['afterInit'](){const _0x26a487=this['editor']['locale'],_0x3357e1=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x2d013b,commandName:_0x2f6fb7}of Xt)this['editor']['plugins']['has'](_0x2d013b)&&_0x3357e1['enableDefaultAttributesIntegration'](_0x2f6fb7);_0x3357e1['descriptionFactory']['registerAttributeLabel']('fontSize',At(_0x26a487,'FORMAT_FONT_SIZE')),_0x3357e1['descriptionFactory']['registerAttributeLabel']('fontFamily',At(_0x26a487,'FORMAT_FONT_FAMILY')),_0x3357e1['descriptionFactory']['registerAttributeLabel']('fontColor',At(_0x26a487,'FORMAT_FONT_COLOR')),_0x3357e1['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',At(_0x26a487,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x427cee=this['editor'],_0x478951=_0x427cee['locale'];_0x427cee['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x173531=>{const _0x3d985d=_0x478951['t'];if('formatInline'!=_0x173531['type'])return;const {data:_0x132243}=_0x173531;if(null!=_0x132243){if('fontSize'==_0x132243['commandName']){const _0x1c7783=_0x132243['commandParams'][0x0]['value'];if(_0x1c7783){const _0xa762aa=_0x3d985d(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x5e804d=>_0x5e804d['model']==_0x1c7783)['title'])['toLowerCase']();return{'type':'format','content':At(_0x478951,'*Set\x20font\x20size:*\x20%0',_0xa762aa)};}return{'type':'format','content':At(_0x478951,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x132243['commandName']){const _0x2e2bf1=_0x132243['commandParams'][0x0]['value'];return _0x2e2bf1?{'type':'format','content':At(_0x478951,'*Set\x20font\x20family:*\x20%0',_0x2e2bf1)}:{'type':'format','content':At(_0x478951,'*Reset\x20font\x20family*')};}if('fontColor'==_0x132243['commandName']){const _0x4b0f70=_0x132243['commandParams'][0x0]['value'];if(_0x4b0f70){const _0x1c30e5=_0x5cccb4(this['editor']['config']['get']('fontColor.colors'))['find'](_0x76c36b=>_0x76c36b['model']==_0x4b0f70);let _0x1f31b8=_0x4b0f70,_0x4ce0d9='';return _0x1c30e5&&(_0x1f31b8=_0x1c30e5['label'],_0x4ce0d9=_0x3d985d(_0x1f31b8)['toLowerCase']()),{'type':'format','content':At(_0x478951,'*Set\x20font\x20color:*\x20%0',_0x4ce0d9)['trim'](),'color':{'value':_0x4b0f70,'title':_0x4ce0d9||_0x1f31b8}};}return{'type':'format','content':At(_0x478951,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x132243['commandName']){const _0xc2a664=_0x132243['commandParams'][0x0]['value'];if(_0xc2a664){const _0x351d7e=_0x5cccb4(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x4da088=>_0x4da088['model']==_0xc2a664);let _0x35aa1c=_0xc2a664,_0xb4e657='';return _0x351d7e&&(_0x35aa1c=_0x351d7e['label'],_0xb4e657=_0x3d985d(_0x35aa1c)['toLowerCase']()),{'type':'format','content':At(_0x478951,'*Set\x20font\x20background\x20color:*\x20%0',_0xb4e657)['trim'](),'color':{'value':_0xc2a664,'title':_0xb4e657||_0x35aa1c}};}return{'type':'format','content':At(_0x478951,'*Reset\x20font\x20background\x20color*')};}}});}}class qt extends _0x486e9c{['afterInit'](){const {plugins:_0x5b2365}=this['editor'];_0x5b2365['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x5b2365['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0xc4c645,plugins:_0x3efdbf,commands:_0x579ceb}=this['editor'],_0x484ae7=_0x3efdbf['get']('TrackChangesEditing');_0x579ceb['get']('footnotesStyle')&&_0x484ae7['enableDefaultAttributesIntegration']('footnotesStyle'),_0x579ceb['get']('footnotesStart')&&_0x484ae7['enableDefaultAttributesIntegration']('footnotesStart'),_0x484ae7['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',At(_0xc4c645,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x484ae7['descriptionFactory']['registerAttributeLabel']('footnotesListStart',At(_0xc4c645,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x44ff10=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0xa88a0c,commands:_0x48b79b}=this['editor'];_0x48b79b['get']('insertFootnote')&&_0x44ff10['enableCommand']('insertFootnote'),_0x44ff10['descriptionFactory']['registerElementLabel']('footnoteRef',_0x365fa7=>At(_0xa88a0c,'ELEMENT_FOOTNOTE_REF',_0x365fa7)),_0x44ff10['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x3ac9c8=>At(_0xa88a0c,'ELEMENT_FOOTNOTE_DEFINITION',_0x3ac9c8)),_0x44ff10['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x1aadfa=>At(_0xa88a0c,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x1aadfa));}}class Qt extends _0x486e9c{['afterInit'](){const _0x31bba5=this['editor'],_0x243085=_0x31bba5['plugins']['get']('TrackChangesEditing'),_0x1c64d0=_0x31bba5['commands']['get']('copyFormat'),_0x27bcc3=_0x31bba5['commands']['get']('pasteFormat');_0x1c64d0&&_0x27bcc3&&(_0x243085['enableDefaultAttributesIntegration']('pasteFormat'),_0x243085['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0xe0ef64=this['editor'],_0x59335a=_0xe0ef64['locale'];_0xe0ef64['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x54afa1=>{if('formatBlock'!=_0x54afa1['type']&&'formatInline'!=_0x54afa1['type'])return;const {data:_0x5d23cf}=_0x54afa1;if(_0x5d23cf&&'pasteFormat'===_0x5d23cf['commandName']){const _0x5a198c=[],_0x176dcd=_0x5d23cf['commandParams'][0x0];for(const [_0xbd483e,_0xcad205]of Object['entries'](_0x176dcd))_0x5a198c['push'](Zt(_0xe0ef64,_0xbd483e,_0xcad205));return _0x5a198c['length']?{'type':'format','content':At(_0x59335a,'*Set\x20format\x20to:*\x20%0',_0x5a198c['join'](',\x20'))}:{'type':'format','content':At(_0x59335a,'*Remove\x20all\x20formatting*')};}});}}function Zt(_0x30d2ca,_0x3a3a01,_0x3ef567){const _0x39620a=_0x30d2ca['locale']['t'],_0x177669=_0x3a3a01['split'](/(?=[A-Z])/)['join']('\x20'),_0x536338=_0x39620a(_0x177669['charAt'](0x0)['toUpperCase']()+_0x177669['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x3ef567)return _0x536338;if('fontColor'===_0x3a3a01||'fontBackgroundColor'===_0x3a3a01){const _0x232320=_0x5cccb4(_0x30d2ca['config']['get']('fontColor.colors'))['find'](_0x16585e=>_0x16585e['model']==_0x3ef567);return _0x536338+'\x20('+(_0x232320?_0x39620a(_0x232320['label'])['toLowerCase']():_0x3ef567)+')';}if('fontSize'===_0x3a3a01&&isNaN(parseFloat(_0x3ef567))){const _0x513162=_0x30d2ca['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x30d2ca['config']['get']('fontSize.options'))['find'](_0x21ee05=>_0x21ee05['model']==_0x3ef567);return _0x536338+'\x20('+(_0x513162?_0x39620a(_0x513162['title'])['toLowerCase']():_0x3ef567)+')';}return _0x536338+'\x20('+_0x3ef567+')';}class Jt extends _0x486e9c{['_headingOptions'];['afterInit'](){const _0x1876d2=this['editor'];if(!_0x1876d2['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x1876d2['config']['get']('heading.options');const _0x5f79f=_0x1876d2['locale'],_0x51fe03=_0x1876d2['plugins']['get']('TrackChangesEditing');_0x51fe03['enableDefaultAttributesIntegration']('heading');for(const _0x56d046 of this['_headingOptions'])'paragraph'!=_0x56d046['model']&&_0x51fe03['descriptionFactory']['registerElementLabel'](_0x56d046['model'],_0x2dacfc=>{const _0x2b1fd0=this['_getHeadingLevel'](_0x56d046['model']);return null!==_0x2b1fd0?_0x5c0239(_0x2dacfc,_0x2b1fd0):_0x2df6a5(_0x2dacfc,_0x56d046['title']);});function _0x5c0239(_0x103c2f,_0x149407){return At(_0x5f79f,'ELEMENT_HEADING',[_0x103c2f,_0x149407]);}function _0x2df6a5(_0x20423e,_0x55174c){return At(_0x5f79f,'ELEMENT_HEADING_CUSTOM',[_0x20423e,_0x55174c]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x29835f=this['editor'],_0xe61a13=_0x29835f['locale'];function _0x5efabf(_0x130761,_0x2e507f){return At(_0xe61a13,'ELEMENT_HEADING_CUSTOM',[_0x130761,_0x2e507f]);}_0x29835f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1ed078=>{if('formatBlock'!=_0x1ed078['type'])return;const {data:_0x29d25f}=_0x1ed078;if(_0x29d25f&&'heading'==_0x29d25f['commandName']){const _0x331599=_0x29d25f['commandParams'][0x0]['value'],_0x19d5fc=this['_getHeadingLevel'](_0x331599);if(null!==_0x19d5fc)return{'type':'format','content':At(_0xe61a13,'*Change\x20to:*\x20%0',(_0x49bb40=0x1,_0x555296=_0x19d5fc,At(_0xe61a13,'ELEMENT_HEADING',[_0x49bb40,_0x555296])))};const _0x32501e=this['_headingOptions']['find'](_0x38285a=>_0x38285a['model']===_0x331599)['title'];return{'type':'format','content':At(_0xe61a13,'*Change\x20to:*\x20%0',_0x5efabf(0x1,_0x32501e))};}var _0x49bb40,_0x555296;});}['_getHeadingLevel'](_0x251137){const _0x43fb89=_0x251137['match'](/^heading(\d+)/);if(_0x43fb89)return _0x43fb89[0x1];const _0x4e6c8a=this['_headingOptions']?.['find'](_0x24b387=>_0x24b387['model']==_0x251137);if(_0x4e6c8a&&_0x4e6c8a['view']){const _0x239c20=_0x4e6c8a['view'],_0x4ba75e=(_0x239c20['name']??_0x239c20)['match'](/^h(\d+)/);if(_0x4ba75e)return _0x4ba75e[0x1];}return null;}}class te extends _0x486e9c{['afterInit'](){const _0x2db207=this['editor'];if(!_0x2db207['plugins']['has']('HighlightEditing'))return;const _0xde3822=_0x2db207['plugins']['get']('TrackChangesEditing'),_0x172279=_0x2db207['locale'];_0xde3822['enableDefaultAttributesIntegration']('highlight'),_0xde3822['descriptionFactory']['registerAttributeLabel']('highlight',At(_0x172279,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4bb231=this['editor'],_0x53a306=_0x4bb231['locale'];_0x4bb231['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4359f7=>{if('formatInline'!=_0x4359f7['type'])return;const {data:_0x29d81c}=_0x4359f7;if(_0x29d81c&&'highlight'==_0x29d81c['commandName']){const _0xa944a7=_0x53a306['t'],_0x4bb15d=_0x29d81c['commandParams'][0x0]['value'];if(_0x4bb15d){const _0x53aaf6=_0x4bb231['config']['get']('highlight.options')['find'](_0x56168d=>_0x56168d['model']==_0x4bb15d),_0x430a8a=_0xa944a7(_0x53aaf6['title'])['toLowerCase']();return{'type':'format','content':At(_0x53a306,'*Set\x20highlight:*\x20%0',_0x430a8a),'color':{'value':_0x53aaf6['color'],'title':_0x53aaf6['title']}};}return{'type':'format','content':At(_0x53a306,'*Remove\x20highlight*',At(_0x53a306,'FORMAT_HIGHLIGHT'))};}});}}class ee extends _0x486e9c{['afterInit'](){const _0xfd4248=this['editor'];if(!_0xfd4248['plugins']['has']('HorizontalLineEditing'))return;_0xfd4248['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x46f9ac=_0xfd4248['plugins']['get']('TrackChangesEditing'),_0x31e609=_0xfd4248['locale'];_0x46f9ac['descriptionFactory']['registerElementLabel']('horizontalLine',_0x1ac390=>At(_0x31e609,'ELEMENT_HORIZONTAL_LINE',_0x1ac390));}}class ne extends _0x486e9c{['afterInit'](){const _0xe6b55b=this['editor'];if(!_0xe6b55b['plugins']['has']('HtmlEmbed'))return;const _0x450123=_0xe6b55b['plugins']['get']('TrackChangesEditing'),_0x1e189c=_0xe6b55b['locale'];_0x450123['descriptionFactory']['registerElementLabel']('rawHtml',_0x5d999a=>At(_0x1e189c,'ELEMENT_HTML_EMBED',_0x5d999a)),_0x450123['enableDefaultAttributesIntegration']('htmlEmbed'),_0x450123['descriptionFactory']['registerDescriptionCallback'](_0x5b4ed9=>{if('attribute'!=_0x5b4ed9['type'])return;const {data:_0x1ecbbd}=_0x5b4ed9;if(_0x1ecbbd&&'value'==_0x1ecbbd['key']&&_0x5b4ed9['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x27c36a=At(_0x1e189c,'ELEMENT_HTML_EMBED');return{'type':'format','content':At(_0x1e189c,'*Change\x20%0\x20content*',_0x27c36a)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x26c622=this['editor'],_0x1d8e34=_0x26c622['locale'];_0x26c622['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x592401=>{if('formatBlock'!=_0x592401['type'])return;const {data:_0x247f25}=_0x592401;if(_0x247f25&&'htmlEmbed'==_0x247f25['commandName']){const _0x161721=At(_0x1d8e34,'ELEMENT_HTML_EMBED');return{'type':'format','content':At(_0x1d8e34,'*Change\x20%0\x20content*',_0x161721)};}});}}class ie extends _0x486e9c{['afterInit'](){const _0x480420=this['editor'];if(!_0x480420['plugins']['has']('ImageEditing'))return;const _0x416de2=_0x480420['plugins']['get']('TrackChangesEditing'),_0x5290f5=_0x480420['plugins']['get']('ImageUtils'),_0x5c047b=_0x480420['locale'];_0x416de2['enableCommand']('insertImage'),_0x416de2['descriptionFactory']['registerElementLabel']('imageBlock',_0x1884ef=>At(_0x5c047b,'ELEMENT_IMAGE',_0x1884ef)),_0x416de2['descriptionFactory']['registerElementLabel']('imageInline',_0x54f8d8=>At(_0x5c047b,'ELEMENT_INLINE_IMAGE',_0x54f8d8)),_0x416de2['descriptionFactory']['registerElementLabel']('caption',()=>At(_0x5c047b,'ELEMENT_CAPTION')),_0x480420['plugins']['has']('ImageUploadEditing')&&_0x416de2['enableCommand']('uploadImage'),_0x480420['plugins']['has']('ImageBlockEditing')&&_0x480420['plugins']['has']('ImageInlineEditing')&&(_0x416de2['enableCommand']('imageTypeInline',(_0x1fe922,_0x4dde93)=>{const _0x5bf4d2=_0x5290f5['getClosestSelectedImageElement'](_0x480420['model']['document']['selection']);_0x480420['model']['change'](()=>{_0x416de2['markBlockFormat'](_0x5bf4d2,{'commandName':'imageTypeInline','commandParams':[_0x4dde93]},[],'convertBlockImageToInline');});}),_0x416de2['enableCommand']('imageTypeBlock',(_0x3a6d2a,_0x4bbd86)=>{_0x480420['model']['change'](_0x3a82c8=>{let _0x110935=_0x5290f5['getClosestSelectedImageElement'](_0x480420['model']['document']['selection']),_0x5089d3=_0x3a82c8['createRangeOn'](_0x110935);const _0xb422a4=tt['fromPosition'](_0x5089d3['start'],'toPrevious'),_0x16bfa2=tt['fromPosition'](_0x5089d3['end'],'toNext');_0x416de2['forceDefaultExecution'](()=>_0x3a6d2a(_0x4bbd86)),_0x110935=_0x5290f5['getClosestSelectedImageElement'](_0x480420['model']['document']['selection']),_0x5089d3=_0x3a82c8['createRangeOn'](_0x110935);const _0x590ab7=_0x3a82c8['createRange'](_0xb422a4,_0x16bfa2);_0xb422a4['detach'](),_0x16bfa2['detach'](),_0x416de2['markBlockFormat'](_0x110935,{'commandName':'imageTypeInline','commandParams':[_0x4bbd86]},[],'convertInlineImageToBlock'),_0x590ab7['start']['isBefore'](_0x5089d3['start'])&&_0x416de2['markInsertion'](_0x3a82c8['createRange'](_0x590ab7['start'],_0x5089d3['start']),'convertInlineImageToBlock'),_0x5089d3['end']['isBefore'](_0x590ab7['end'])&&_0x416de2['markInsertion'](_0x3a82c8['createRange'](_0x5089d3['end'],_0x590ab7['end']),'convertInlineImageToBlock');});}),_0x416de2['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x416de2['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x416de2['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x416de2['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x416de2['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x416de2['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x3e88d6])=>{const _0x577b56=_0x416de2['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x30214e=_0x3e88d6['start'],_0x266229=_0x3e88d6['end'];const _0xe7d786=_0x480420['model']['schema']['getNearestSelectionRange'](_0x30214e,'backward'),_0x50b10d=_0x480420['model']['schema']['getNearestSelectionRange'](_0x266229,'forward');_0xe7d786['isCollapsed']&&(_0x30214e=_0xe7d786['start']),_0x50b10d['isCollapsed']&&(_0x266229=_0x50b10d['end']),_0x577b56([_0x480420['model']['createRange'](_0x30214e,_0x266229)]);}),_0x416de2['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x190fc7),_0x416de2['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x190fc7)),_0x480420['plugins']['has']('ImageCaptionEditing')&&(_0x416de2['enableCommand']('toggleImageCaption',(_0x577a74,_0x438102)=>{const _0x2aeb33=_0x480420['plugins']['get']('ImageCaptionUtils');let _0x342bfd=_0x5290f5['getClosestSelectedImageElement'](_0x480420['model']['document']['selection']),_0x1c1495=_0x2aeb33['getCaptionFromImageModelElement'](_0x342bfd);_0x480420['model']['change'](()=>{if(_0x1c1495)return void _0x416de2['markDeletion'](_0x480420['model']['createRangeOn'](_0x1c1495));const _0x4df8da=_0x5290f5['isBlockImage'](_0x342bfd);_0x577a74(_0x438102),_0x342bfd=_0x5290f5['getClosestSelectedImageElement'](_0x480420['model']['document']['selection']),_0x1c1495=_0x2aeb33['getCaptionFromImageModelElement'](_0x342bfd),_0x416de2['markInsertion'](_0x480420['model']['createRangeOn'](_0x1c1495),_0x4df8da?null:'imageCaption');});}),_0x416de2['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x190fc7));const _0x233a96=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x521666(_0x2438b3,_0x51a9c8){const _0x23d9c1=_0x233a96['findIndex'](({type:_0x5d53d7,subType:_0x2c923e})=>_0x2438b3['type']==_0x5d53d7&&_0x2438b3['subType']==_0x2c923e),_0x394a1a=_0x233a96['findIndex'](({type:_0x424389,subType:_0x225fe8})=>_0x51a9c8['type']==_0x424389&&_0x51a9c8['subType']==_0x225fe8);if(_0x23d9c1<0x0||_0x394a1a<0x0)return!0x1;const _0x162b54=_0x2438b3['getFirstRange'](),_0x75c497=_0x51a9c8['getFirstRange']();if((0x0==_0x23d9c1||0x1==_0x23d9c1)&&0x2==_0x394a1a&&_0x162b54['isIntersecting'](_0x75c497))return!0x0;if(0x2==_0x23d9c1&&0x3==_0x394a1a){const _0x53b0ea=_0x416de2['_findSuggestions'](_0x162b54,'insertion')['filter'](({suggestion:_0x405649,meta:_0x4b30da})=>_0x4b30da['isOwn']&&'convertInlineImageToBlock'==_0x405649['subType']);if(_0x53b0ea['length']>0x1&&_0x75c497['end']['isEqual'](_0x162b54['start']))return!0x0;if(0x1==_0x53b0ea['length']&&(_0x162b54['start']['isEqual'](_0x75c497['end'])||_0x162b54['end']['isEqual'](_0x75c497['start'])))return!0x0;}if(0x3==_0x23d9c1&&0x3==_0x394a1a&&_0x162b54['start']['isBefore'](_0x75c497['start'])){const _0xb894c3=_0x162b54['end']['nodeAfter'],_0x3b0100=_0x75c497['start']['nodeBefore'];return _0x5290f5['isBlockImage'](_0xb894c3)&&_0xb894c3===_0x3b0100;}return!0x1;}function _0x190fc7(_0x4181a7,_0x3d57db){return _0x521666(_0x4181a7,_0x3d57db)?[_0x4181a7,_0x3d57db]:_0x521666(_0x3d57db,_0x4181a7)?[_0x3d57db,_0x4181a7]:null;}_0x480420['plugins']['has']('ImageResize')&&(_0x416de2['enableDefaultAttributesIntegration']('resizeImage'),_0x416de2['descriptionFactory']['registerAttributeLabel']('resizedWidth',At(_0x5c047b,'FORMAT_IMAGE_SIZE'))),_0x480420['plugins']['has']('ImageTextAlternativeEditing')&&_0x416de2['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x480420['plugins']['has']('PictureEditing')&&_0x416de2['descriptionFactory']['registerDescriptionCallback'](_0x4bef1e=>{if('attribute'!=_0x4bef1e['type'])return;const {data:_0x421359}=_0x4bef1e;return _0x421359&&'sources'==_0x421359['key']?{'type':'format','content':''}:void 0x0;}),_0x480420['plugins']['has']('ImageSizeAttributes')&&_0x416de2['descriptionFactory']['registerDescriptionCallback'](_0xca2d36=>{if('attribute'!=_0xca2d36['type'])return;const {data:_0x295368}=_0xca2d36;return!_0x295368||'width'!=_0x295368['key']&&'height'!=_0x295368['key']?void 0x0:{'type':'format','content':''};}),_0x416de2['descriptionFactory']['registerDescriptionCallback'](_0x224928=>{if(!!_0x233a96['find'](({type:_0x4e53b0,subType:_0x18d39a})=>_0x224928['type']==_0x4e53b0&&_0x224928['subType']==_0x18d39a))return _0x224928['previous']?{}:void 0x0;}),_0x416de2['descriptionFactory']['registerDescriptionCallback'](_0x5c0233=>{if('insertion'==_0x5c0233['type']||'deletion'==_0x5c0233['type']){const _0x514be8=_0x5c0233['getContainedElement']();if(_0x514be8&&_0x514be8['is']('element','caption'))return{'type':'insertion'==_0x5c0233['type']?'addObject':'removeObject','element':_0x514be8,'quantity':0x1};}}),_0x416de2['descriptionFactory']['registerDescriptionCallback'](_0x57b1e9=>'formatBlock'==_0x57b1e9['type']&&'convertInlineImageToBlock'==_0x57b1e9['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x57b1e9['type']&&'convertBlockImageToInline'==_0x57b1e9['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x416de2['descriptionFactory']['registerDescriptionCallback'](_0x3171d9=>{if('attribute'!=_0x3171d9['type'])return;const {data:_0x5d88b5}=_0x3171d9;if(!_0x5d88b5||'alt'!=_0x5d88b5['key'])return;const _0x5bf46e=_0x5d88b5['newValue'];return _0x5bf46e?{'type':'format','content':At(_0x5c047b,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5bf46e+'\x22')}:{'type':'format','content':At(_0x5c047b,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2c5b70=this['editor'],_0xabcf9f=_0x2c5b70['locale'];_0x2c5b70['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x113b91=>{if('formatBlock'!=_0x113b91['type']&&'formatInline'!=_0x113b91['type'])return;const {data:_0x5becc2}=_0x113b91;if(_0x5becc2){if('imageTextAlternative'==_0x5becc2['commandName']){const _0x224b48=_0x5becc2['commandParams'][0x0]['newValue'];return _0x224b48?{'type':'format','content':At(_0xabcf9f,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x224b48+'\x22')}:{'type':'format','content':At(_0xabcf9f,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x5becc2['commandName']){const _0x7a6d61=_0x5becc2['commandParams'][0x0]['width'];return _0x7a6d61?{'type':'format','content':At(_0xabcf9f,'*Set\x20image\x20width:*\x20%0',_0x7a6d61)}:{'type':'format','content':At(_0xabcf9f,'*Reset\x20image\x20width*')};}}});}}class se extends _0x486e9c{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x383915=this['editor']['locale'],_0x436e04=this['editor']['plugins']['get']('TrackChangesEditing');_0x436e04['enableDefaultAttributesIntegration']('replaceImageSource'),_0x436e04['descriptionFactory']['registerDescriptionCallback'](_0x58c710=>{if('attribute'!=_0x58c710['type'])return;const {data:_0x4db92b}=_0x58c710;return _0x4db92b&&'src'==_0x4db92b['key']?_0x4db92b['newValue']&&_0x4db92b['oldValue']?{'type':'format','content':At(_0x383915,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4d0486=this['editor']['plugins']['get']('TrackChangesEditing');_0x4d0486['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x4d0486['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4d0486['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x4d0486['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xc2ba04=this['editor'],_0x3e6bd7=_0xc2ba04['locale'];_0xc2ba04['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x309ede=>{if('formatBlock'!=_0x309ede['type']&&'formatInline'!=_0x309ede['type'])return;const {data:_0x2610f5}=_0x309ede;if(!_0x2610f5||'replaceImageSource'!=_0x2610f5['commandName'])return;return{'type':'format','content':At(_0x3e6bd7,'*Format:*\x20replace\x20image\x20URL')};});}}class re extends _0x486e9c{['afterInit'](){const _0x14f940=this['editor'];if(!_0x14f940['plugins']['has']('ImageStyleEditing'))return;const _0x4bfdcf=_0x14f940['plugins']['get']('TrackChangesEditing'),_0x9f2f7=_0x14f940['plugins']['get']('ImageUtils'),_0x10cbe3={};_0x4bfdcf['enableCommand']('imageStyle',(_0x4ee746,_0x5267fd)=>{const _0x1ecda3=_0x14f940['plugins']['get']('Users')['me'],_0x225a3a=_0x14f940['commands']['get']('imageStyle');let _0x401a90=_0x9f2f7['getClosestSelectedImageElement'](_0x14f940['model']['document']['selection']),_0x59672c=_0x14f940['model']['createRangeOn'](_0x401a90),_0x5154b4=_0x225a3a['value'];if(_0x5154b4==_0x5267fd['value'])return;const _0x143914={'commandName':'imageStyle','commandParams':[_0x5267fd],'formatGroupId':_0xec3fc0()};_0x14f940['model']['change'](()=>{if(_0x4bfdcf['getSuggestions']()['filter'](_0x2a9700=>_0x2a9700['isInContent']&&_0x1ecda3==_0x2a9700['author']&&('formatBlock'==_0x2a9700['type']||'formatInline'==_0x2a9700['type'])&&('imageStylePreApply'==_0x2a9700['subType']||'imageStylePostApply'==_0x2a9700['subType'])&&_0x2a9700['getFirstRange']()['isEqual'](_0x59672c))['forEach'](_0x2a0008=>_0x4bfdcf['discardSuggestion'](_0x2a0008['head'])),_0x401a90=_0x9f2f7['getClosestSelectedImageElement'](_0x14f940['model']['document']['selection']),_0x59672c=_0x14f940['model']['createRangeOn'](_0x401a90),_0x225a3a['refresh'](),_0x14f940['commands']['get']('imageTypeInline')['refresh'](),_0x14f940['commands']['get']('imageTypeBlock')['refresh'](),_0x5154b4=_0x225a3a['value'],_0x5154b4!=_0x5267fd['value'])return _0x9f2f7['isInlineImage'](_0x401a90)&&_0x225a3a['shouldConvertImageType'](_0x5267fd['value'],_0x401a90)?(_0x4ee746({..._0x5267fd,'setImageSizes':!0x1}),_0x401a90=_0x9f2f7['getClosestSelectedImageElement'](_0x14f940['model']['document']['selection']),void _0x4bfdcf['markBlockFormat'](_0x401a90,{..._0x143914,'commandReversedParams':[{'value':_0x5154b4||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x9f2f7['isBlockImage'](_0x401a90)?_0x4bfdcf['markBlockFormat'](_0x401a90,_0x143914,[],'imageStylePostApply'):_0x4bfdcf['markInlineFormat'](_0x59672c,_0x143914,'imageStylePostApply'));});});for(const _0x1ca35c of _0x14f940['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x10cbe3[_0x1ca35c['name']]=_0x1ca35c['title']['toLowerCase']();_0x4bfdcf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x4bfdcf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x4bfdcf['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x4bfdcf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x38685c])=>{_0x9f2f7['setImageNaturalSizeAttributes'](_0x38685c['getContainedElement']());}),_0x4bfdcf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x25176c,_0x4b1e6b)=>{_0x4bfdcf['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x25176c,{'commandName':_0x4b1e6b['commandName'],'commandParams':_0x4b1e6b['commandReversedParams']});}),_0x4bfdcf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x446e54,_0x4dc880){if(_0x3c6def(_0x446e54,_0x4dc880))return[_0x446e54,_0x4dc880];if(_0x3c6def(_0x4dc880,_0x446e54))return[_0x4dc880,_0x446e54];return null;});const _0x4f841e=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3c6def(_0x176423,_0x597d6a){const _0x3e66c4=_0x4f841e['findIndex'](({type:_0x45611d,subType:_0x34abf2})=>_0x176423['type']==_0x45611d&&_0x176423['subType']==_0x34abf2),_0x4d5bb6=_0x4f841e['findIndex'](({type:_0x3b0579,subType:_0x19b80d})=>_0x597d6a['type']==_0x3b0579&&_0x597d6a['subType']==_0x19b80d);if(_0x3e66c4<0x0||_0x4d5bb6<0x0)return!0x1;const _0x34ebab=_0x176423['getFirstRange'](),_0x56e85b=_0x597d6a['getFirstRange']();if((0x0==_0x3e66c4||0x1==_0x3e66c4)&&0x2==_0x4d5bb6&&_0x34ebab['isIntersecting'](_0x56e85b))return!0x0;if(0x2==_0x3e66c4&&0x3==_0x4d5bb6){const _0x104171=_0x4bfdcf['_findSuggestions'](_0x34ebab,'insertion')['filter'](({suggestion:_0x3603ef,meta:_0x4762a1})=>_0x4762a1['isOwn']&&'convertInlineImageToBlock'==_0x3603ef['subType']);if(_0x104171['length']>0x1&&_0x56e85b['end']['isEqual'](_0x34ebab['start']))return!0x0;if(0x1==_0x104171['length']&&(_0x34ebab['start']['isEqual'](_0x56e85b['end'])||_0x34ebab['end']['isEqual'](_0x56e85b['start'])))return!0x0;}if(0x3==_0x3e66c4&&0x3==_0x4d5bb6&&_0x34ebab['start']['isBefore'](_0x56e85b['start'])){const _0x21d7ef=_0x34ebab['end']['nodeAfter'],_0x166589=_0x56e85b['start']['nodeBefore'];return _0x9f2f7['isBlockImage'](_0x21d7ef)&&_0x21d7ef===_0x166589;}return!0x1;}_0x14f940['model']['document']['registerPostFixer'](()=>{let _0x5bdb0d=!0x1;const _0x2b8ec9=Array['from'](_0x14f940['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x16535d,data:_0x3027a1}of _0x2b8ec9){const {group:_0x4a38ae,type:_0x117ca3,subType:_0x21911a,id:_0xeec00e}=_0x36ab20(_0x16535d);if('suggestion'==_0x4a38ae&&_0x4bfdcf['hasSuggestion'](_0xeec00e)){if('formatBlock'==_0x117ca3&&('imageStylePreApply'==_0x21911a||'imageStylePostApply'==_0x21911a)){const _0x30e61d=_0x4bfdcf['getSuggestion'](_0xeec00e);if(_0x3027a1['newRange']){const _0x5b2a69=_0x30e61d['getFirstRange']()['getContainedElement']();if(_0x9f2f7['isBlockImage'](_0x5b2a69))continue;_0x4bfdcf['discardSuggestion'](_0x30e61d),_0x5bdb0d=!0x0;}}if('insertion'==_0x117ca3&&'imageCaption'==_0x21911a&&!_0x3027a1['newRange']){const _0x5d74d0=_0x4bfdcf['getSuggestion'](_0xeec00e);_0x5d74d0['next']&&_0x5d74d0['next']['isInContent']&&(_0x4bfdcf['discardSuggestion'](_0x5d74d0['next']),_0x5bdb0d=!0x0);}}}return _0x5bdb0d;}),this['_registerLegacyDescription'](_0x10cbe3);}['_registerLegacyDescription'](_0x3fe698){const _0x44ed2c=this['editor'],_0x42bbdb=_0x44ed2c['locale'];_0x44ed2c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x24dee6=>{if('formatBlock'!=_0x24dee6['type']&&'formatInline'!=_0x24dee6['type'])return;const {data:_0x3a9097}=_0x24dee6;if(!_0x3a9097||'imageStyle'!=_0x3a9097['commandName'])return;const _0x3e30b9=_0x3a9097['commandParams'][0x0]['value'];return _0xb0a172('side'===_0x3e30b9?At(_0x42bbdb,'FORMAT_SIDE_IMAGE'):_0x3fe698[_0x3e30b9]||_0x3e30b9);function _0xb0a172(_0x2702f1){return{'type':'format','content':At(_0x42bbdb,'*Format:*\x20%0',_0x2702f1)};}});}}class oe extends _0x486e9c{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x24499f){super(_0x24499f),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x51d054=this['editor'],_0x41a557=_0x51d054['commands']['get']('importWord'),_0x75797d=_0x51d054['commands']['get']('trackChanges');_0x41a557&&(_0x41a557['on']('execute',(_0x4d2af7,[,_0x2b7b38])=>{this['_trackChangesValueDuringImport']=_0x75797d['value'],_0x2b7b38['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x41a557,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x41a557,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x75797d['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x51d054['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x3cc358,_0x2f7638){const {suggestions:_0x4d6d2d}=_0x2f7638,_0x82a8a5=this['editor']['commands']['get']('trackChanges'),_0x1763b0=_0x82a8a5['value'];this['_trackChangesValueDuringImport']!==_0x1763b0&&(_0x82a8a5['execute'](),this['_trackChangesExecuted']=!0x0),_0x4d6d2d&&_0x4d6d2d['forEach'](({id:_0x118b19,type:_0x5724ef,author:_0x9af308,created_at:_0x11ab6f})=>{const _0x4e4c2d={'id':_0x118b19,'type':_0x5724ef,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x9af308,'createdAt':_0x11ab6f?new Date(_0x11ab6f):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x4e4c2d);});}}class ae extends _0x486e9c{['afterInit'](){const _0x36467d=this['editor'],_0x3c209d=_0x36467d['plugins']['get']('TrackChangesEditing');if(_0x36467d['plugins']['has']('IndentEditing')&&(_0x3c209d['enableCommand']('indent'),_0x3c209d['enableCommand']('outdent')),_0x36467d['plugins']['has']('IndentBlock')){for(const _0x13b036 of['indentBlock','outdentBlock'])_0x3c209d['enableDefaultAttributesIntegration'](_0x13b036);if(_0x36467d['plugins']['has']('ListEditing')){for(const _0x2729c7 of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x3c209d['enableDefaultAttributesIntegration'](_0x2729c7);}}const _0x215fb5=_0x36467d['locale'];_0x3c209d['descriptionFactory']['registerAttributeLabel']('blockIndent',At(_0x215fb5,'FORMAT_INDENT')),_0x3c209d['descriptionFactory']['registerAttributeLabel']('blockIndentList',At(_0x215fb5,'FORMAT_INDENT')),_0x3c209d['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',At(_0x215fb5,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x868426=this['editor'],_0x286e11=_0x868426['locale'],_0x5bcdc1=_0x868426['plugins']['get']('TrackChangesEditing');_0x5bcdc1['descriptionFactory']['registerDescriptionCallback'](_0x26d27d=>{if('formatBlock'!=_0x26d27d['type'])return;const {data:_0x520c13}=_0x26d27d;if(!_0x520c13)return;if('indentBlock'!=_0x520c13['commandName']&&'outdentBlock'!=_0x520c13['commandName'])return;const _0x5e6652=_0x26d27d['getItems']()[0x0],_0x2b15ed=_0x5bcdc1['descriptionFactory']['getItemLabel'](_0x5e6652);return'indentBlock'==_0x520c13['commandName']?{'type':'format','content':At(_0x286e11,'*Indent:*\x20%0',_0x2b15ed)}:'outdentBlock'==_0x520c13['commandName']?{'type':'format','content':At(_0x286e11,'*Outdent:*\x20%0',_0x2b15ed)}:void 0x0;});}}class ce extends _0x486e9c{static get['requires'](){return[ct];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class le extends _0x486e9c{['afterInit'](){const _0x303441=this['editor'];if(!_0x303441['plugins']['has']('LinkEditing'))return;const _0x2a3271=_0x303441['plugins']['get']('TrackChangesEditing'),_0x2567b5=_0x303441['commands']['get']('link');_0x2a3271['enableDefaultAttributesIntegration']('link'),_0x2a3271['enableDefaultAttributesIntegration']('unlink');for(const _0x1f6a49 of _0x2567b5['manualDecorators'])_0x2a3271['descriptionFactory']['registerAttributeLabel'](_0x1f6a49['id'],'link\x20('+_0x1f6a49['label']['toLowerCase']()+')');_0x2a3271['descriptionFactory']['registerDescriptionCallback'](_0x4b1b2c=>{if('attribute'!=_0x4b1b2c['type'])return;const {data:_0x36a44d}=_0x4b1b2c;if(!_0x36a44d||'linkHref'!=_0x36a44d['key'])return;const _0x606a2=_0x36a44d['newValue'],_0x58749a=_0x303441['locale'];return{'type':'format','content':null==_0x606a2?At(_0x58749a,'*Remove\x20link*'):At(_0x58749a,'*Set\x20link:*\x20%0','\x22'+_0x606a2+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x113760=this['editor'],_0x58d9b9=_0x113760['locale'];_0x113760['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1ba0ad=>{if('formatInline'!=_0x1ba0ad['type'])return;const {data:_0x239cf4}=_0x1ba0ad;if(_0x239cf4){if('link'==_0x239cf4['commandName']){const _0x32cf18=_0x239cf4['commandParams'][0x0];return{'type':'format','content':At(_0x58d9b9,'*Set\x20link:*\x20%0','\x22'+_0x32cf18+'\x22')};}return'unlink'==_0x239cf4['commandName']?{'type':'format','content':At(_0x58d9b9,'*Remove\x20link*')}:void 0x0;}});}}class ue extends _0x486e9c{['afterInit'](){const _0x5ecfe0=this['editor'],_0x21e065=_0x5ecfe0['locale'];if(!_0x5ecfe0['plugins']['has']('LegacyListEditing'))return;const _0x35bd31=_0x5ecfe0['plugins']['get']('TrackChangesEditing'),_0x591eee=_0x5ecfe0['plugins']['has']('LegacyTodoListEditing');function _0x252257(_0x2f2a7f){return()=>{const _0xbf2a4b=_0x5ecfe0['model']['document']['selection'],_0x786105=_0x5ecfe0['commands']['get'](_0x2f2a7f);if(_0x786105['value'])return void _0x5ecfe0['execute']('paragraph',{});const _0x35753f=_0x2f2a7f['slice'](0x0,-0x4),_0x98e34e=function(_0x322c81,_0x17de1b,_0x412790){let _0x1b5423=Array['from'](_0x322c81)['filter'](_0x530942=>function(_0x5cb911,_0x42a2b2){return _0x42a2b2['checkChild'](_0x5cb911['parent'],'listItem')&&!_0x42a2b2['isObject'](_0x5cb911);}(_0x530942,_0x412790));_0x1b5423=_0x1b5423['filter'](_0x1e718b=>!_0x1e718b['is']('element','listItem')||_0x1e718b['getAttribute']('listType')!=_0x17de1b);const _0x4f095a=new Set();for(const _0x21edb2 of _0x1b5423)_0x21edb2['is']('element','listItem')?_0x4f095a['add'](he(_0x21edb2)):_0x4f095a['add'](_0x21edb2);return Array['from'](_0x4f095a);}(_0xbf2a4b['getSelectedBlocks'](),_0x35753f,_0x5ecfe0['model']['schema']);_0x5ecfe0['model']['change'](()=>{for(const _0x3d37c8 of _0x98e34e)_0x35bd31['markBlockFormat'](_0x3d37c8,{'commandName':_0x2f2a7f,'commandParams':[{'forceValue':!_0x786105['value']}],'formatGroupId':'blockName'},de(_0x3d37c8));});};}function _0x51d9f8(_0x257c05){return()=>{const _0x399ee3=function(_0x30775c){let _0x462723=Array['from'](_0x30775c);const _0x282259=_0x462723['findIndex'](_0x4a4222=>'listItem'!=_0x4a4222['name']);return _0x282259>-0x1&&(_0x462723=_0x462723['slice'](0x0,_0x282259)),_0x462723;}(_0x5ecfe0['model']['document']['selection']['getSelectedBlocks']()),_0x4726a3=_0x5ecfe0['model']['createRange'](_0x5ecfe0['model']['createPositionAt'](_0x399ee3[0x0],'before'),_0x5ecfe0['model']['createPositionAt'](_0x399ee3[_0x399ee3['length']-0x1],'end'));_0x5ecfe0['model']['change'](()=>{_0x35bd31['markBlockFormat'](_0x4726a3,{'commandName':_0x257c05,'commandParams':[],'formatGroupId':'listIndent'},function(_0x16ecf4){const _0x70e2df=new Set();for(const _0x56d341 of _0x16ecf4){let _0x453072=_0x56d341['nextSibling'];for(;_0x453072&&_0x453072['getAttribute']('listIndent')>_0x56d341['getAttribute']('listIndent');)_0x70e2df['add'](_0x453072),_0x453072=_0x453072['nextSibling'];}return Array['from'](_0x70e2df);}(_0x399ee3));});};}_0x35bd31['enableCommand']('numberedList',_0x252257('numberedList')),_0x35bd31['enableCommand']('bulletedList',_0x252257('bulletedList')),_0x591eee&&_0x35bd31['enableCommand']('todoList',_0x252257('todoList')),_0x35bd31['enableCommand']('indentList',_0x51d9f8('indentList')),_0x35bd31['enableCommand']('outdentList',_0x51d9f8('outdentList')),_0x591eee&&_0x35bd31['enableCommand']('checkTodoList',()=>{const _0x47adee=_0x5ecfe0['commands']['get']('checkTodoList'),_0x2eab6f=Array['from'](_0x47adee['_selectedElements']);_0x2eab6f['filter'](_0x231867=>_0x231867['getAttribute']('todoListChecked')!=_0x47adee['value']),_0x5ecfe0['model']['change'](()=>{for(const _0x209a51 of _0x2eab6f)_0x35bd31['markBlockFormat'](_0x209a51,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x47adee['value']}]});});}),_0x35bd31['descriptionFactory']['registerElementLabel']('listItem',_0x5c170d=>At(_0x21e065,'ELEMENT_LIST_ITEM',_0x5c170d)),_0x35bd31['descriptionFactory']['registerDescriptionCallback'](_0x1054b5=>{if('formatBlock'!=_0x1054b5['type']&&'formatInline'!=_0x1054b5['type'])return;const {data:_0x530f19}=_0x1054b5;if(_0x530f19){if('numberedList'==_0x530f19['commandName']||'bulletedList'==_0x530f19['commandName']||'todoList'==_0x530f19['commandName'])switch(_0x530f19['commandName']['replace']('List','')){case'bulleted':return _0x5d44e2(At(_0x21e065,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5d44e2(At(_0x21e065,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5d44e2(At(_0x21e065,'ELEMENT_TODO_LIST'));}if('indentList'==_0x530f19['commandName'])return{'type':'format','content':At(_0x21e065,'*Indent:*\x20%0',At(_0x21e065,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x530f19['commandName'])return{'type':'format','content':At(_0x21e065,'*Outdent:*\x20%0',At(_0x21e065,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x530f19['commandName'])return _0x530f19['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x21e065,'*Check\x20item*')}:{'type':'format','content':At(_0x21e065,'*Uncheck\x20item*')};}function _0x5d44e2(_0x1a09af){return{'type':'format','content':At(_0x21e065,'*Change\x20to:*\x20%0',_0x1a09af)};}});}}function he(_0x418964){const _0x1edfe8=_0x418964['getAttribute']('listIndent');if(0x0==_0x1edfe8)return _0x418964;let _0x5ae268=_0x418964;for(;_0x418964['previousSibling']&&_0x418964['previousSibling']['is']('element','listItem');){const _0x1527a4=_0x418964['previousSibling']['getAttribute']('listIndent');if(_0x1527a4==_0x1edfe8)_0x5ae268=_0x418964['previousSibling'];else{if(_0x1527a4<_0x1edfe8)break;}_0x418964=_0x418964['previousSibling'];}return _0x5ae268;}function de(_0x36bbfa){const _0x27b8af=[];if(_0x36bbfa['is']('element','listItem')&&_0x36bbfa['getAttribute']('listIndent')>0x0){let _0x150e93=_0x36bbfa['nextSibling'];for(;_0x150e93&&'listItem'==_0x150e93['name']&&_0x150e93['getAttribute']('listIndent')==_0x36bbfa['getAttribute']('listIndent');)_0x27b8af['push'](_0x150e93),_0x150e93=_0x150e93['nextSibling'];}return _0x27b8af;}class fe extends _0x486e9c{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x1edabb=this['editor']['config']['get']('list.properties'),_0x26679f=this['editor']['plugins']['get']('TrackChangesEditing');_0x1edabb['styles']&&_0x26679f['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x1edabb['reversed']&&_0x26679f['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x1edabb['startIndex']&&_0x26679f['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x26679f['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x207e4f,_0x479aa4={}){const _0xa322fb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4cd599=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0xa322fb['markMultiRangeBlockFormat'](_0x4cd599,{'commandName':'listStyle','commandParams':[{'type':_0x479aa4['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x4a7d89,_0x213ac7={}){const _0x1ccf5a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2bd756=this['_getSuggestionBlocks'](_0x121319=>_0x121319['is']('element','listItem')&&'numbered'===_0x121319['getAttribute']('listType'));if(_0x2bd756['length']<0x1)return;const _0x36e4c5=_0x2bd756['map'](_0x1b3256=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1b3256,'before'),this['editor']['model']['createPositionAt'](_0x1b3256,0x0)));this['editor']['model']['change'](()=>{_0x1ccf5a['markMultiRangeBlockFormat'](_0x36e4c5,{'commandName':'listReversed','commandParams':[{'reversed':_0x213ac7['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x38cc42,_0x8eca9c={}){const _0xe594e4=this['editor']['plugins']['get']('TrackChangesEditing'),_0xc953fd=this['_getSuggestionBlocks'](_0x2acf13=>_0x2acf13['is']('element','listItem')&&'numbered'===_0x2acf13['getAttribute']('listType'));if(_0xc953fd['length']<0x1)return;const _0x11b17c=_0xc953fd['map'](_0x2c7f5c=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2c7f5c,'before'),this['editor']['model']['createPositionAt'](_0x2c7f5c,0x0)));this['editor']['model']['change'](()=>{_0xe594e4['markMultiRangeBlockFormat'](_0x11b17c,{'commandName':'listStart','commandParams':[{'startIndex':_0x8eca9c['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0xb0a07){if('formatBlock'!=_0xb0a07['type']&&'formatInline'!=_0xb0a07['type'])return;const _0x4879dd=this['editor']['locale'],{data:_0x43d5a3}=_0xb0a07;if(!_0x43d5a3)return;let _0x99ea55,_0x42ab51;switch(_0x43d5a3['commandName']){case'listStyle':_0x99ea55='*Change\x20to:*\x20%0',_0x42ab51={'type':'format','content':At(_0x4879dd,_0x99ea55,At(_0x4879dd,this['_getTranslationKeyForListStyle'](_0x43d5a3['commandParams'][0x0]['type'])))};break;case'listReversed':_0x99ea55=_0x43d5a3['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x42ab51={'type':'format','content':At(_0x4879dd,_0x99ea55)};break;case'listStart':_0x99ea55='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x42ab51={'type':'format','content':At(_0x4879dd,_0x99ea55,_0x43d5a3['commandParams'][0x0]['startIndex'])};}return _0x42ab51;}['_getSuggestionBlocksForListStyle'](){const _0x135987=this['editor']['plugins']['get']('LegacyListUtils');let _0x41df1a=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x41df1a[0x0]?.['is']('element','listItem')&&_0x41df1a['unshift'](..._0x135987['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x41df1a[_0x41df1a['length']-0x1]?.['is']('element','listItem')&&_0x41df1a['push'](..._0x135987['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x41df1a=[...new Set(_0x41df1a)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x41df1a=_0x41df1a['filter'](_0x52ca1a=>_0x52ca1a['is']('element','listItem'))),_0x41df1a;}['_getSuggestionBlocks'](_0x4a5857){const _0x19086c=this['editor']['plugins']['get']('LegacyListUtils');let _0x33e757=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x4a5857)['map'](_0x3a19e5=>{const _0x275ed7=this['editor']['model']['createPositionAt'](_0x3a19e5,0x0);return[..._0x19086c['getSiblingNodes'](_0x275ed7,'backward'),..._0x19086c['getSiblingNodes'](_0x275ed7,'forward')];})['flat']();return _0x33e757=[...new Set(_0x33e757)],_0x33e757;}['_getTranslationKeyForListStyle'](_0x152c1e){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x152c1e)||'default')['toUpperCase']()+'_LIST_'+_0x152c1e['toUpperCase']()['replace'](/-/g,'_');}}class ge extends _0x486e9c{['afterInit'](){const _0x126ec5=this['editor'];if(!_0x126ec5['plugins']['has']('MediaEmbedEditing'))return;const _0x2e97fe=_0x126ec5['plugins']['get']('TrackChangesEditing'),_0x2d3660=_0x126ec5['locale'];_0x2e97fe['enableCommand']('mediaEmbed'),_0x2e97fe['descriptionFactory']['registerElementLabel']('media',_0x2b6301=>At(_0x2d3660,'ELEMENT_MEDIA',_0x2b6301));}}class me extends _0x486e9c{['afterInit'](){const _0x4ad12f=this['editor'];_0x4ad12f['plugins']['has']('MentionEditing')&&_0x4ad12f['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class Ee extends _0x486e9c{['afterInit'](){const _0x34577f=this['editor'];if(!_0x34577f['plugins']['has']('MergeFieldsEditing'))return;const _0x32ff86=_0x34577f['plugins']['get']('TrackChangesEditing'),_0x164b57=_0x34577f['locale'];_0x32ff86['enableCommand']('insertMergeField'),_0x32ff86['enableCommand']('insertMergeFieldBlock'),_0x32ff86['enableCommand']('insertMergeFieldImage'),_0x32ff86['descriptionFactory']['registerElementLabel']('mergeField',_0x592048=>At(_0x164b57,'ELEMENT_MERGE_FIELD',_0x592048)),_0x32ff86['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x20ed1b=>At(_0x164b57,'ELEMENT_MERGE_FIELD',_0x20ed1b)),_0x32ff86['descriptionFactory']['registerDescriptionCallback'](_0x2eafd0=>{if('insertion'!=_0x2eafd0['type']&&'deletion'!=_0x2eafd0['type'])return;const _0x184c10=_0x2eafd0['getContainedElement']();if(null==_0x184c10)return;const _0x47e83d=_0x34577f['plugins']['get']('MergeFieldsEditing');let _0xcc464c;switch(_0x47e83d['getMergeFieldType'](_0x184c10)){case null:return;case'image':{const _0x500bcf=_0x47e83d['unwrapAffixes'](_0x184c10['getAttribute']('src'));_0xcc464c=_0x47e83d['getLabel'](_0x500bcf)||_0x500bcf;break;}default:{const _0x39ea13=_0x184c10['getAttribute']('id');_0xcc464c=_0x47e83d['getLabel'](_0x39ea13)||_0x39ea13;break;}}return'insertion'==_0x2eafd0['type']?{'type':'insertion','content':At(_0x164b57,'*Insert:*\x20%0','\x22'+_0xcc464c+'\x22\x20'+At(_0x164b57,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':At(_0x164b57,'*Remove:*\x20%0','\x22'+_0xcc464c+'\x22\x20'+At(_0x164b57,'ELEMENT_MERGE_FIELD'))};});}}class Te extends _0x486e9c{['afterInit'](){const _0xd911b1=this['editor'],_0x57e3f0=_0xd911b1['plugins']['get']('TrackChangesEditing');_0xd911b1['plugins']['has']('MultiLevelList')&&(_0x57e3f0['enableDefaultAttributesIntegration']('multiLevelList'),_0x57e3f0['descriptionFactory']['registerDescriptionCallback'](_0x24b7f2=>this['handleDescriptions'](_0x24b7f2)));}['handleDescriptions'](_0x3382a8){const _0x5b2634=this['editor']['locale'],{data:_0x556002}=_0x3382a8,_0xb08c60={'type':'format','content':''};if(_0x556002&&'listMarkerStyle'==_0x556002['key']){if(!_0x556002['oldValue'])return{'type':'format','content':At(_0x5b2634,'*Set\x20format:*\x20%0',At(_0x5b2634,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x556002['newValue']+')'};if(!_0x556002['newValue']){let _0x320476=_0x3382a8['head'];for(;_0x320476;){if(_0x320476['data']&&'listType'==_0x320476['data']['key']&&_0x320476['data']['newValue'])return _0xb08c60;_0x320476=_0x320476['next'];}return{'type':'format','content':At(_0x5b2634,'*Remove\x20format:*\x20%0',At(_0x5b2634,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x556002['oldValue']+')'};}}}}class _e extends _0x486e9c{['afterInit'](){const _0x535610=this['editor'];if(!_0x535610['plugins']['has']('PageBreakEditing'))return;_0x535610['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x70959c=_0x535610['plugins']['get']('TrackChangesEditing'),_0x5ecbde=_0x535610['locale'];_0x70959c['descriptionFactory']['registerElementLabel']('pageBreak',_0x53ed8f=>At(_0x5ecbde,'ELEMENT_PAGE_BREAK',_0x53ed8f));}}class pe extends _0x486e9c{['afterInit'](){const _0x36e602=this['editor'];if(!_0x36e602['plugins']['has']('Paragraph'))return;const _0x344af5=_0x36e602['locale'],_0x56e118=_0x36e602['plugins']['get']('TrackChangesEditing');_0x56e118['descriptionFactory']['registerElementLabel']('paragraph',_0x2852a5=>At(_0x344af5,'ELEMENT_PARAGRAPH',_0x2852a5)),_0x56e118['enableDefaultAttributesIntegration']('paragraph'),_0x56e118['enableCommand']('insertParagraph');const _0x56cbff=_0x56e118['descriptionFactory'];_0x56cbff['registerDescriptionCallback'](_0x41fec5=>{if('insertion'!==_0x41fec5['type'])return;const {start:_0xa40121,end:_0xb797df}=_0x41fec5['getFirstRange']();if(!_0xa40121['isTouching'](_0xb797df)||!_0xa40121['nodeAfter'])return;const _0x4c2c3d=_0x36e602['model']['schema'],_0x57cda0=_0xa40121['nodeAfter'];return _0x4c2c3d['isBlock'](_0x57cda0)&&!_0x4c2c3d['isLimit'](_0x57cda0)&&_0x4c2c3d['checkChild'](_0x57cda0,'$text')?{'type':'insertion','content':At(_0x344af5,'*Insert:*\x20%0',_0x56cbff['getItemLabel'](_0x57cda0,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5e14af=this['editor'],_0xc44b8f=_0x5e14af['locale'];_0x5e14af['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x55ba4f=>{if('formatBlock'!=_0x55ba4f['type'])return;const {data:_0x283f2f}=_0x55ba4f;return _0x283f2f&&'paragraph'==_0x283f2f['commandName']?{'type':'format','content':At(_0xc44b8f,'*Change\x20to:*\x20%0',At(_0xc44b8f,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class Le extends _0x486e9c{['afterInit'](){const _0x68a80a=this['editor'];_0x68a80a['commands']['get']('replaceSource')&&_0x68a80a['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class Ie extends _0x486e9c{['afterInit'](){const _0x349550=this['editor'];if(!_0x349550['plugins']['has']('RemoveFormatEditing'))return;_0x349550['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1c6d91=this['editor'];_0x1c6d91['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x44e6b0=>{if('formatBlock'!=_0x44e6b0['type']&&'formatInline'!=_0x44e6b0['type'])return;const {data:_0x4bb673}=_0x44e6b0;return _0x4bb673&&'removeFormat'==_0x4bb673['commandName']?{'type':'format','content':At(_0x1c6d91['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class be extends _0x486e9c{['afterInit'](){const _0x3dafea=this['editor'];if(!_0x3dafea['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x1a7d6d=_0x3dafea['plugins']['get']('TrackChangesEditing');_0x1a7d6d['enableCommand']('goToPreviousRestrictedEditingException'),_0x1a7d6d['enableCommand']('goToNextRestrictedEditingException');const _0x12b6cb=_0x3dafea['plugins']['get']('RestrictedEditingModeEditing');_0x12b6cb['enableCommand']('trackChanges'),_0x12b6cb['enableCommand']('acceptSuggestion'),_0x12b6cb['enableCommand']('discardSuggestion'),_0x12b6cb['enableCommand']('acceptAllSuggestions'),_0x12b6cb['enableCommand']('discardAllSuggestions'),_0x12b6cb['enableCommand']('acceptSelectedSuggestions'),_0x12b6cb['enableCommand']('discardSelectedSuggestions');}}class Ae extends _0x486e9c{['afterInit'](){const _0x15f345=this['editor'];if(!_0x15f345['plugins']['has']('ShiftEnter'))return;const _0x24dc15=_0x15f345['plugins']['get']('TrackChangesEditing');_0x24dc15['enableCommand']('shiftEnter'),_0x24dc15['descriptionFactory']['registerElementLabel']('softBreak',_0x6f8f8e=>At(_0x15f345['locale'],'ELEMENT_LINE_BREAK',_0x6f8f8e));}}function ke(_0x17ab5b,_0x8b3eeb,_0x529493){const _0x5f535b=[];for(const _0x33230c of _0x8b3eeb['getItems']())_0x33230c['hasAttribute'](_0x17ab5b)&&_0x5f535b['push'](_0x529493['createRangeOn'](_0x33230c));return _0x5f535b;}class Ce extends _0x486e9c{['afterInit'](){const _0x34f041=this['editor'],_0x21806c=_0x34f041['plugins']['get']('TrackChangesEditing');_0x34f041['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x21806c['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x11eb11=this['editor'],_0x3031f3=_0x11eb11['model'],_0x351347=_0x11eb11['locale'],_0x3da391=_0x11eb11['plugins']['get']('TrackChangesEditing'),_0x3e153b='restrictedEditingException',_0x5d7910=_0x11eb11['commands']['get'](_0x3e153b);_0x3da391['enableCommand'](_0x3e153b,(_0x3c6649,_0x347d0d={})=>{const _0x403473=_0x3031f3['document']['selection'];if(_0x403473['isCollapsed'])return void _0x3c6649(_0x347d0d);const _0x3a7bfb=void 0x0!==_0x347d0d['forceValue']?_0x347d0d['forceValue']:!_0x5d7910['value'];_0x3031f3['change'](()=>{const _0x580dac=Array['from'](_0x403473['getRanges']());for(const _0x1c0933 of _0x580dac){const _0x2f3afe=_0x3a7bfb?[_0x1c0933]:ke(_0x3e153b,_0x1c0933,_0x3031f3);for(const _0x24b4bb of _0x2f3afe)_0x3da391['markInlineFormat'](_0x24b4bb,{'commandName':_0x3e153b,'commandParams':[{'forceValue':_0x3a7bfb}]});}});}),_0x3da391['descriptionFactory']['registerDescriptionCallback'](_0x1dd8ae=>{if('formatBlock'!=_0x1dd8ae['type']&&'formatInline'!=_0x1dd8ae['type'])return;const {data:_0x277d9a}=_0x1dd8ae;return _0x277d9a&&_0x277d9a['commandName']==_0x3e153b?_0x277d9a['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x351347,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':At(_0x351347,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x131844=this['editor'],_0x34f15e=_0x131844['locale'],_0x2cf11a=_0x131844['plugins']['get']('TrackChangesEditing'),_0xcab979='restrictedEditingExceptionBlock',_0x560673=this['editor']['commands']['get'](_0xcab979);_0x2cf11a['enableCommand'](_0xcab979,(_0x5c57e5,_0x9ec113={})=>{const _0x57bd25=this['editor']['model']['document']['selection'],_0x149c05=_0x9ec113&&void 0x0!==_0x9ec113['forceValue']?_0x9ec113['forceValue']:!_0x560673['value'];let _0x42b415=[];if(_0x149c05){const _0x2555d9=Array['from'](_0x57bd25['getSelectedBlocks']())['filter'](_0x16d973=>function(_0xdb3dfc){return!!_0xdb3dfc['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x16d973)||function(_0x5227d0,_0xb72c71){const _0x243dba=_0xb72c71['createContext'](_0x5227d0['parent']);if(!_0xb72c71['checkChild'](_0x243dba,'restrictedEditingException'))return!0x1;if(!_0xb72c71['checkChild'](_0x243dba['push']('restrictedEditingException'),_0x5227d0))return!0x1;return!0x0;}(_0x16d973,this['editor']['model']['schema']));_0x42b415=Tt(_0x2555d9,_0x131844['model']);}else{const _0x27961d=Array['from'](_0x57bd25['getSelectedBlocks']())['map'](_0x4a6196=>function(_0x989eba){let _0x4d23b3=_0x989eba;for(;_0x4d23b3['parent'];){if('restrictedEditingException'==_0x4d23b3['parent']['name'])return _0x4d23b3;_0x4d23b3=_0x4d23b3['parent'];}return null;}(_0x4a6196))['filter'](_0x10892c=>!!_0x10892c);_0x42b415=Tt(_0x27961d,_0x131844['model']);}_0x131844['model']['change'](()=>{for(const _0x527b02 of _0x42b415)_0x2cf11a['markBlockFormat'](_0x527b02,{'commandName':_0xcab979,'commandParams':[{'forceValue':_0x149c05}]});});}),_0x2cf11a['descriptionFactory']['registerDescriptionCallback'](_0x261377=>{const {data:_0x4dd1c6}=_0x261377;if(_0x4dd1c6&&_0x4dd1c6['commandName']==_0xcab979)return _0x4dd1c6['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x34f15e,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':At(_0x34f15e,'FORMAT_RESTRICTED_DISABLED')};});}}class ye extends _0x486e9c{['afterInit'](){const _0x53c98e=this['editor'];if(!_0x53c98e['plugins']['has']('Style')||!_0x53c98e['plugins']['has']('DataSchema'))return;const _0x4cac4a=_0x53c98e['plugins']['get']('TrackChangesEditing'),_0x5532dc=_0x53c98e['locale'],_0x31452f=_0x53c98e['config']['get']('style')||{},_0x2a88c4=_0x53c98e['plugins']['get']('GeneralHtmlSupport'),_0x48c4a0=_0x53c98e['plugins']['get']('StyleUtils')['normalizeConfig'](_0x53c98e['plugins']['get']('DataSchema'),_0x31452f['definitions']);_0x4cac4a['enableDefaultAttributesIntegration']('style');const _0xc9227c=new Set();for(const _0x3a7450 of _0x48c4a0['block']){const _0x4ee697=_0x2a88c4['getGhsAttributeNameForElement'](_0x3a7450['element']);_0xc9227c['add'](_0x4ee697);}const _0x1fc17a=new Set();for(const _0x4b8c50 of _0x48c4a0['inline']){const _0x14dfe1=_0x2a88c4['getGhsAttributeNameForElement'](_0x4b8c50['element']);_0x1fc17a['add'](_0x14dfe1);for(const _0x2e81d7 of _0x4b8c50['ghsAttributes'])_0x1fc17a['add'](_0x2e81d7);}for(const _0x1bb828 of _0xc9227c)_0x4cac4a['descriptionFactory']['registerAttributeLabel'](_0x1bb828,At(_0x5532dc,'FORMAT_STYLE'));for(const _0x4f86d3 of _0x1fc17a)_0x4cac4a['descriptionFactory']['registerAttributeLabel'](_0x4f86d3,At(_0x5532dc,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x151099=this['editor'],_0x181f8c=_0x151099['locale'];_0x151099['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1d9d40=>{if('formatBlock'!=_0x1d9d40['type']&&'formatInline'!=_0x1d9d40['type'])return;const {data:_0x282df1}=_0x1d9d40;return _0x282df1&&'style'===_0x282df1['commandName']?_0x282df1['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x181f8c,'*Set\x20format:*\x20%0',_0x282df1['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':At(_0x181f8c,'*Remove\x20format:*\x20%0',_0x282df1['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ne extends _0x486e9c{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x9b384e){super(_0x9b384e),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x1d0e7a=this['editor'],_0x435861=_0x1d0e7a['model']['document']['selection'];if(!_0x1d0e7a['plugins']['has']('TableEditing'))return;const _0x16916e=_0x1d0e7a['locale'],_0x1d0176=_0x1d0e7a['plugins']['get']('TrackChangesEditing'),_0xfc14d=_0x1d0e7a['plugins']['get']('TableUtils');_0x1d0176['descriptionFactory']['registerElementLabel']('table',_0x59c617=>At(_0x16916e,'ELEMENT_TABLE',_0x59c617)),this['_setupColumnsRowsFixing'](),_0x1d0176['enableCommand']('insertTable'),_0x1d0176['enableCommand']('selectTableRow'),_0x1d0176['enableCommand']('selectTableColumn');for(const _0x2f7e3f of['insertTableRowAbove','insertTableRowBelow']){const _0x331fcd=_0x1d0e7a['commands']['get'](_0x2f7e3f);_0x1d0176['enableCommand'](_0x2f7e3f,_0x5a8e83=>{_0x1d0e7a['model']['change'](_0x17dcca=>{_0x5a8e83();const _0x430488='above'===_0x331fcd['order'],_0xd1f9b4=_0xfc14d['getSelectionAffectedTableCells'](_0x435861),_0x236e30=_0xfc14d['getRowIndexes'](_0xd1f9b4),_0x3d7c6c=_0x430488?_0x236e30['first']-0x1:_0x236e30['last']+0x1,_0x270014=_0xd1f9b4[0x0]['findAncestor']('table'),_0x3437bd=_0xfc14d['createTableWalker'](_0x270014,{'startRow':_0x3d7c6c,'endRow':_0x3d7c6c}),_0x384a3a=Array['from'](_0x3437bd)['map'](_0x1b6423=>_0x17dcca['createRangeOn'](_0x1b6423['cell']));_0x1d0176['markMultiRangeInsertion'](_0x384a3a,'tableRow');});});}for(const _0x18d3fd of['insertTableColumnLeft','insertTableColumnRight']){const _0x3f84c5=_0x1d0e7a['commands']['get'](_0x18d3fd);_0x1d0176['enableCommand'](_0x18d3fd,_0x3598dd=>{_0x1d0e7a['model']['change'](_0x25b474=>{_0x3598dd();const _0x480dfb='left'===_0x3f84c5['order'],_0x49c0f9=_0xfc14d['getSelectionAffectedTableCells'](_0x435861),_0x1c0e65=_0xfc14d['getColumnIndexes'](_0x49c0f9),_0x4ab3df=_0x480dfb?_0x1c0e65['first']-0x1:_0x1c0e65['last']+0x1,_0x49a28d=_0x49c0f9[0x0]['findAncestor']('table'),_0x420f84=_0xfc14d['createTableWalker'](_0x49a28d,{'startRow':0x0,'column':_0x4ab3df,'includeAllSlots':!0x1}),_0x515652=Array['from'](_0x420f84)['map'](_0x4a8ade=>_0x25b474['createRangeOn'](_0x4a8ade['cell']));_0x1d0176['markMultiRangeInsertion'](_0x515652,'tableColumn');});});}for(const _0xb43c46 of['removeTableRow','removeTableColumn']){const _0x3f6400=_0xb43c46['substr'](0xb),_0x3f6fc4=_0x3f6400['toLowerCase'](),_0x402cbc=_0x3f6fc4['substr'](0x0,0x3)+'span',_0x18408d='table'+_0x3f6400,_0x45b8cc='min'+_0x3f6400,_0x459724='max'+_0x3f6400;_0x1d0176['enableCommand'](_0xb43c46,()=>{_0x1d0e7a['model']['change'](_0x2c793f=>{const _0x23dacf=_0xfc14d['getSelectionAffectedTableCells'](_0x435861),_0x522b9c=_0x23dacf[0x0]['findAncestor']('table');let _0x258016;if('removeTableRow'==_0xb43c46){const _0x1530fa=_0xfc14d['getRowIndexes'](_0x23dacf);_0x258016={'startRow':_0x1530fa['first'],'endRow':_0x1530fa['last'],'includeAllSlots':!0x0};}else{const _0x14f0b5=_0xfc14d['getColumnIndexes'](_0x23dacf);_0x258016={'startColumn':_0x14f0b5['first'],'endColumn':_0x14f0b5['last'],'includeAllSlots':!0x0};}const _0x44ba5c=_0xfc14d['createTableWalker'](_0x522b9c,_0x258016),_0x21a4a1=Array['from'](_0x44ba5c)['map'](({cell:_0x5218d8})=>_0x5218d8),_0x315278=Re(_0x21a4a1['filter'](_0x333e83=>_0x333e83['hasAttribute'](_0x402cbc))),_0x18417a=Re(_0x21a4a1['filter'](_0x29004e=>!_0x29004e['hasAttribute'](_0x402cbc)))['map'](_0x193373=>_0x2c793f['createRangeOn'](_0x193373)),_0x2703e5=_0x1d0176['markMultiRangeDeletion'](_0x18417a,_0x18408d);if(_0x2703e5&&('tableRow'==_0x2703e5['subType']||'tableColumn'==_0x2703e5['subType'])){const _0x15c158=this['_getSuggestionCoords'](_0x2703e5);for(const _0xc056b1 of _0x315278){const _0x414061=_0x2c793f['createRangeOn'](_0xc056b1),_0x1c81d9=_0xfc14d['getCellLocation'](_0xc056b1),_0xfed978=_0xc056b1['getAttribute'](_0x402cbc)-0x1,_0x4b9382=_0x15c158[_0x45b8cc],_0x4e2f62=_0x15c158[_0x459724];_0x4b9382<=_0x1c81d9[_0x3f6fc4]&&_0x1c81d9[_0x3f6fc4]+_0xfed978<=_0x4e2f62&&_0x2703e5['addRange'](_0x414061);}}});});}function _0x25eca1(_0x258c72){const _0x309b5a=Array['from'](_0x435861['getRanges']())['map'](_0xfcc710=>_0x704ba['fromRange'](_0xfcc710));_0x1d0e7a['model']['change'](_0x1658df=>{const _0x10b261=_0x1658df['batch'];_0x258c72=_0x258c72['filter'](_0x67f7b9=>'$graveyard'!=_0x67f7b9['root']['rootName']),_0x1658df['setSelection'](_0x258c72),_0x1d0e7a['commands']['get']('removeTableRow')['refresh'](),_0x1d0e7a['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x1d0e7a['model']['enqueueChange'](()=>{_0x1d0e7a['model']['enqueueChange'](_0x10b261,_0x3d1f54=>{const _0x2f94ce=_0x309b5a['filter'](_0x273474=>'$graveyard'!=_0x273474['root']['rootName']);_0x2f94ce['length']>0x0&&_0x3d1f54['setSelection'](_0x2f94ce);for(const _0x192fd8 of _0x309b5a)_0x192fd8['detach']();});});});}function _0xfa31(_0x589acb){_0x1d0e7a['model']['change'](_0x19e808=>{const _0x2e3e3c=Array['from'](_0x435861['getRanges']())['map'](_0x549fc9=>_0x704ba['fromRange'](_0x549fc9)),_0x3d9a1f=[];for(const _0x2b9ff2 of _0x589acb)for(const _0x2128d4 of _0x2b9ff2['getItems']({'shallow':!0x0}))_0x3d9a1f['push'](_0x2128d4);for(const _0xf42b6d of _0x3d9a1f)'$graveyard'!=_0xf42b6d['root']['rootName']&&(_0x19e808['setSelection'](_0x19e808['createPositionAt'](_0xf42b6d,0x0)),_0x1d0e7a['commands']['get']('removeTableColumn')['refresh'](),_0x1d0e7a['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x5072c2=_0x2e3e3c['filter'](_0xe3f053=>'$graveyard'!=_0xe3f053['root']['rootName']);_0x5072c2['length']>0x0&&_0x19e808['setSelection'](_0x5072c2);for(const _0x33f663 of _0x2e3e3c)_0x33f663['detach']();});}function _0x5e59bb(_0x275952,_0x3ac40c){return _0x3ac40c['every'](_0x2cbc85=>_0x275952['some'](_0x138e94=>_0x138e94['end']['isEqual'](_0x2cbc85['start'])||_0x2cbc85['end']['isEqual'](_0x138e94['start'])));}function _0x1ae9e7(_0x4f8802,_0x3e73a1){return!_0x4f8802['some'](_0x56f7e5=>_0x3e73a1['some'](_0x17aafe=>_0x56f7e5['isIntersecting'](_0x17aafe)))&&_0x4f8802['some'](_0x477a02=>_0x3e73a1['some'](_0x47bd83=>_0x477a02['end']['isTouching'](_0x47bd83['start'])));}_0x1d0176['descriptionFactory']['registerDescriptionCallback'](_0x3473da=>{if('insertion'!=_0x3473da['type']&&'deletion'!=_0x3473da['type'])return;const _0x20cf8c=_0x3473da['getContainedElement']();if(null!=_0x20cf8c&&_0x20cf8c['is']('element','table')){if('insertion'==_0x3473da['type']){const _0x41d352=_0x3473da['getItems']()['filter'](_0x585a28=>_0x585a28['is']('$textProxy'))['map'](_0x2533c9=>_0x2533c9['data']);if(_0x41d352['length'])return{'type':'insertion','content':At(_0x16916e,'*Insert:*\x20%0',At(_0x16916e,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x41d352['join']('\x20')+'\x22'))};}if('deletion'==_0x3473da['type']){const _0x32a62e=_0x3473da['getItems']()['filter'](_0x431377=>_0x431377['is']('$textProxy'))['map'](_0x532220=>_0x532220['data']);if(_0x32a62e['length'])return{'type':'deletion','content':At(_0x16916e,'*Remove:*\x20%0',At(_0x16916e,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x32a62e['join']('\x20')+'\x22'))};}}}),_0x1d0176['descriptionFactory']['registerDescriptionCallback'](_0x3f3e84=>{if('tableRow'==_0x3f3e84['subType']){const _0x4c5db=_0x3f3e84['getItems']()['filter'](_0x31ee03=>_0x31ee03['is']('$textProxy'))['map'](_0x6cbe97=>_0x6cbe97['data']),_0x4641ba=this['_getSuggestionCoords'](_0x3f3e84),_0x528369=_0x4641ba['maxRow']-_0x4641ba['minRow']+0x1;if('insertion'==_0x3f3e84['type'])return _0x4c5db['length']?{'type':'insertion','content':At(_0x16916e,'*Insert:*\x20%0',At(_0x16916e,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x528369,'\x22'+_0x4c5db['join']('\x20')+'\x22']))}:{'type':'insertion','content':At(_0x16916e,'*Insert:*\x20%0',At(_0x16916e,'ELEMENT_TABLE_ROW',_0x528369))};if('deletion'==_0x3f3e84['type'])return _0x4c5db['length']?{'type':'deletion','content':At(_0x16916e,'*Remove:*\x20%0',At(_0x16916e,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x528369,'\x22'+_0x4c5db['join']('\x20')+'\x22']))}:{'type':'deletion','content':At(_0x16916e,'*Remove:*\x20%0',At(_0x16916e,'ELEMENT_TABLE_ROW',_0x528369))};}if('tableColumn'==_0x3f3e84['subType']){const _0x262c78=_0x3f3e84['getItems']()['filter'](_0x1aac09=>_0x1aac09['is']('$textProxy'))['map'](_0x18b53f=>_0x18b53f['data']),_0x280a1f=this['_getSuggestionCoords'](_0x3f3e84),_0x244bcf=_0x280a1f['maxColumn']-_0x280a1f['minColumn']+0x1;if('insertion'==_0x3f3e84['type'])return _0x262c78['length']?{'type':'insertion','content':At(_0x16916e,'*Insert:*\x20%0',At(_0x16916e,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x244bcf,'\x22'+_0x262c78['join']('\x20')+'\x22']))}:{'type':'insertion','content':At(_0x16916e,'*Insert:*\x20%0',At(_0x16916e,'ELEMENT_TABLE_COLUMN',_0x244bcf))};if('deletion'==_0x3f3e84['type'])return _0x262c78['length']?{'type':'deletion','content':At(_0x16916e,'*Remove:*\x20%0',At(_0x16916e,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x244bcf,'\x22'+_0x262c78['join']('\x20')+'\x22']))}:{'type':'deletion','content':At(_0x16916e,'*Remove:*\x20%0',At(_0x16916e,'ELEMENT_TABLE_COLUMN',_0x244bcf))};}}),_0x1d0176['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x25eca1),_0x1d0176['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x25eca1),_0x1d0176['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0xfa31),_0x1d0176['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0xfa31),_0x1d0176['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x5e59bb),_0x1d0176['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x5e59bb),_0x1d0176['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x1ae9e7),_0x1d0176['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x1ae9e7);}['_acceptFormatSuggestionCallbackFactory'](){const _0x46cbbd=this['editor'],_0x5462f7=_0x46cbbd['model']['document']['selection'];return(_0x2384d6,_0x730034)=>{_0x46cbbd['model']['change'](_0x1c1c27=>{const {commandName:_0x5074e0,commandParams:_0x33be6e}=_0x730034;let _0x51fdc9=_0x2384d6[0x0]['end']['nodeBefore'];_0x33be6e&&_0x33be6e[0x0]&&!0x1===_0x33be6e[0x0]['forceValue']&&(_0x51fdc9=_0x2384d6[0x0]['start']['nodeAfter']);const _0x51ced3=_0x1c1c27['createRangeIn'](_0x51fdc9);if('$graveyard'==_0x51ced3['root']['rootName'])return;const _0x5d25a1=Array['from'](_0x5462f7['getRanges']())['map'](_0x352382=>_0x704ba['fromRange'](_0x352382));_0x1c1c27['setSelection'](_0x51ced3),_0x46cbbd['commands']['get'](_0x5074e0)['refresh'](),_0x33be6e['push']({'forceDefaultExecution':!0x0}),_0x46cbbd['execute'](_0x5074e0,..._0x33be6e);const _0x2f2e77=_0x5d25a1['filter'](_0x582450=>'$graveyard'!=_0x582450['root']['rootName']);_0x2f2e77['length']>0x0&&_0x1c1c27['setSelection'](_0x2f2e77);for(const _0x2da19a of _0x5d25a1)_0x2da19a['detach']();});};}['_getCoordsForCells'](_0x2a5682){const _0x16b9c1=this['editor']['plugins']['get']('TableUtils');let _0x23eded=Number['MAX_SAFE_INTEGER'],_0x26d562=Number['MIN_SAFE_INTEGER'],_0x258db4=Number['MAX_SAFE_INTEGER'],_0x1b4c34=Number['MIN_SAFE_INTEGER'];for(const _0x2fa51f of _0x2a5682){if('$graveyard'==_0x2fa51f['root']['rootName'])continue;const {row:_0x4bd846,column:_0x39ada9}=_0x16b9c1['getCellLocation'](_0x2fa51f),_0x4d0573=_0x2fa51f['hasAttribute']('rowspan')?_0x2fa51f['getAttribute']('rowspan')-0x1:0x0,_0x3759ae=_0x2fa51f['hasAttribute']('colspan')?_0x2fa51f['getAttribute']('colspan')-0x1:0x0;_0x23eded=_0x4bd846<_0x23eded?_0x4bd846:_0x23eded,_0x26d562=_0x4bd846+_0x4d0573>_0x26d562?_0x4bd846+_0x4d0573:_0x26d562,_0x258db4=_0x39ada9<_0x258db4?_0x39ada9:_0x258db4,_0x1b4c34=_0x39ada9+_0x3759ae>_0x1b4c34?_0x39ada9+_0x3759ae:_0x1b4c34;}return{'minRow':_0x23eded,'maxRow':_0x26d562,'minColumn':_0x258db4,'maxColumn':_0x1b4c34};}['_setupColumnsRowsFixing'](){const _0x9badc6=this['editor'],_0x25e66b=_0x9badc6['plugins']['get']('TrackChangesEditing'),_0x29c38d=_0x9badc6['plugins']['get']('TableUtils');_0x9badc6['model']['document']['on']('change:data',()=>{const _0x5620bb=Array['from'](_0x9badc6['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5a2262,data:_0x9d0b53}of _0x5620bb){const {group:_0x6b1090,id:_0x21a55a,subType:_0x3c1a4d}=_0x36ab20(_0x5a2262);if('suggestion'!=_0x6b1090)continue;if(null!=_0x9d0b53['oldRange'])continue;const _0x55607f=_0x25e66b['getSuggestion'](_0x21a55a);this['_tablePostFixingSubtypes']['includes'](_0x3c1a4d)&&this['_tableSuggestions']['add'](_0x55607f);}},{'priority':'low'});const _0x37302a=(_0x4624bc,_0x560f46)=>{let _0x1fac2e=!0x1;const _0x9e55ce=_0x560f46['createRangeOn'](_0x4624bc),_0x1dd100=_0x4624bc['findAncestor']('table'),_0x31f238=_0x29c38d['getCellLocation'](_0x4624bc);for(const _0x58a233 of this['_tableSuggestions']){const _0x5f0fc3=_0x58a233['subType'],_0x341fbe=_0x5f0fc3['startsWith']('tablePaste'),_0x4e9e7f=_0x5f0fc3['substr'](_0x341fbe?0xa:0x5),_0x2dd4a9=_0x4e9e7f['toLowerCase'](),_0xd298af=_0x2dd4a9['substr'](0x0,0x3)+'span',_0x1df19f='min'+_0x4e9e7f,_0x2e0543='max'+_0x4e9e7f;if(!_0x58a233['isInContent'])continue;if(_0x1dd100!=_0x58a233['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x58a233['isIntersectingWithRange'](_0x9e55ce))continue;const _0x398b98=_0x4624bc['hasAttribute'](_0xd298af)?_0x4624bc['getAttribute'](_0xd298af)-0x1:0x0,_0x1a1e0c=this['_getSuggestionCoords'](_0x58a233),_0x30416d=_0x1a1e0c[_0x1df19f],_0x1677f9=_0x1a1e0c[_0x2e0543];_0x30416d<=_0x31f238[_0x2dd4a9]&&_0x31f238[_0x2dd4a9]+_0x398b98<=_0x1677f9&&(_0x58a233['addRange'](_0x9e55ce),_0x1fac2e=!0x0);}return _0x1fac2e;};_0x9badc6['model']['document']['registerPostFixer'](_0x638c78=>{let _0x1a6887=!0x1;for(const _0x59c301 of _0x9badc6['model']['document']['differ']['getChanges']())if('insert'==_0x59c301['type']){if('tableRow'==_0x59c301['name']){for(const _0x1e2d7d of _0x59c301['position']['nodeAfter']['getChildren']())_0x1a6887=_0x1a6887||_0x37302a(_0x1e2d7d,_0x638c78);}else'tableCell'==_0x59c301['name']&&(_0x1a6887=_0x1a6887||_0x37302a(_0x59c301['position']['nodeAfter'],_0x638c78));}return _0x1a6887;});}['_getSuggestionCoords'](_0x321e6b){return this['_getCoordsForCells'](_0x321e6b['getRanges']()['map'](_0x2cbcf7=>_0x2cbcf7['start']['nodeAfter']));}}function Re(_0x598d65){return Array['from'](new Set(_0x598d65)['values']());}class Se extends _0x486e9c{static get['requires'](){return[Ne];}['afterInit'](){const _0x55baad=this['editor'],_0x34a2e9=_0x55baad['model']['document']['selection'],_0x5c9454=_0x55baad['locale'];if(!_0x55baad['plugins']['has']('TableEditing'))return;const _0x363c93=_0x55baad['plugins']['get']('TrackChangesEditing'),_0x2f5017=_0x55baad['plugins']['get']('TableUtils'),_0xaae2a4=_0x55baad['plugins']['get'](Ne);_0xaae2a4['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x363c93['enableCommand']('mergeTableCells',()=>{const _0x222272=_0x2f5017['getSelectionAffectedTableCells'](_0x55baad['model']['document']['selection']);_0x55baad['model']['change'](()=>{_0x363c93['markMultiRangeBlockFormat'](_0x222272,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x55baad['commands']['get']('mergeTableCells')['on']('execute',(_0x2e2cce,_0x36e9c7)=>{_0x55baad['commands']['get']('trackChanges')['value']&&(_0x36e9c7['length']>0x0&&_0x36e9c7[_0x36e9c7['length']-0x1]&&_0x36e9c7[_0x36e9c7['length']-0x1]['forceDefaultExecution']||_0x363c93['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x2e2cce['stop']());},{'priority':'highest'});for(const _0x346877 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x23c503=_0x55baad['commands']['get'](_0x346877);_0x363c93['enableCommand'](_0x346877,()=>{const _0xc85633=_0x55baad['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x49527e=>_0x49527e['is']('element','tableCell')),_0x233635=_0x23c503['value'];_0x55baad['model']['change'](()=>{_0x363c93['markMultiRangeBlockFormat']([_0xc85633,_0x233635],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x57e39b of['splitTableCellVertically','splitTableCellHorizontally']){const _0x340907=_0x55baad['commands']['get'](_0x57e39b);_0x363c93['enableCommand'](_0x57e39b,()=>{const _0x2a3d7b=_0x2f5017['getSelectionAffectedTableCells'](_0x55baad['model']['document']['selection'])[0x0],_0x53e212=_0x2a3d7b['findAncestor']('table'),{column:_0x4b8b56,row:_0x46fa1a}=_0x2f5017['getCellLocation'](_0x2a3d7b);let _0x4ac283=[];if('horizontally'==_0x340907['direction']){const _0x26b3f6=_0x2f5017['createTableWalker'](_0x53e212,{'startRow':_0x46fa1a,'endRow':_0x46fa1a,'includeAllSlots':!0x0});_0x4ac283=Array['from'](_0x26b3f6)['map'](_0x1174a3=>_0x1174a3['cell']);}else{const _0x4b3981=_0x2f5017['createTableWalker'](_0x53e212,{'column':_0x4b8b56,'includeAllSlots':!0x0});_0x4ac283=Array['from'](_0x4b3981)['map'](_0x261ef3=>_0x261ef3['cell']);}_0x55baad['model']['change'](_0x113587=>{_0x363c93['markBlockFormat'](_0x113587['createRangeOn'](_0x2a3d7b),{'commandName':_0x57e39b,'commandParams':[]},_0x4ac283,_0x57e39b);});});}_0x363c93['descriptionFactory']['registerDescriptionCallback'](_0x4da11c=>{if('formatBlock'!=_0x4da11c['type']&&'formatInline'!=_0x4da11c['type'])return;const {data:_0x2aa61e}=_0x4da11c;return _0x2aa61e&&'mergeTableCells'==_0x2aa61e['commandName']?{'type':'format','content':At(_0x5c9454,'*Merge\x20cells*')}:void 0x0;}),_0x363c93['descriptionFactory']['registerDescriptionCallback'](_0x3e436b=>{if('formatBlock'!=_0x3e436b['type']&&'formatInline'!=_0x3e436b['type'])return;const {data:_0x4532b5}=_0x3e436b;return _0x4532b5?'splitTableCellVertically'==_0x4532b5['commandName']?{'type':'format','content':At(_0x5c9454,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x4532b5['commandName']?{'type':'format','content':At(_0x5c9454,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x40c032=_0xaae2a4['_acceptFormatSuggestionCallbackFactory']();for(const _0x4555fb of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x363c93['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4555fb,'accept',_0x40c032);for(const _0x14ac00 of['splitTableCellVertically','splitTableCellHorizontally'])_0x363c93['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x14ac00,'accept',_0x40c032);_0x363c93['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x3609e1=>{_0x55baad['model']['change'](_0x9083fe=>{const _0x2e586b=Array['from'](_0x34a2e9['getRanges']())['map'](_0x2dda7e=>_0x704ba['fromRange'](_0x2dda7e));_0x9083fe['setSelection'](_0x3609e1),_0x55baad['commands']['get']('mergeTableCells')['refresh'](),_0x55baad['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x17d075=_0x2e586b['filter'](_0x46a5e7=>'$graveyard'!=_0x46a5e7['root']['rootName']);_0x17d075['length']>0x0&&_0x9083fe['setSelection'](_0x17d075);for(const _0x2471fc of _0x2e586b)_0x2471fc['detach']();});});for(const _0x23b108 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x2a6200=_0x55baad['commands']['get'](_0x23b108);_0x2a6200['on']('set:isEnabled',(_0x3d8216,_0x24018b,_0x4b22af)=>{if(_0x4b22af){const _0x478ede=_0x55baad['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x215b81=>_0x215b81['is']('element','tableCell'));this['_areMergableCells'](_0x2a6200['value'],_0x478ede)||(_0x3d8216['return']=!0x1,_0x3d8216['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x1aed0b=this['editor']['commands']['get']('mergeTableCells'),_0x360c09=this['editor']['plugins']['get']('TableUtils');if(!_0x1aed0b['isEnabled'])return!0x1;const _0x12d972=_0x360c09['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x4a1fec of _0x12d972)for(const _0x57bb5e of _0x12d972)if(_0x4a1fec!=_0x57bb5e&&!this['_areMergableCells'](_0x4a1fec,_0x57bb5e))return!0x1;return!0x0;}['_areMergableCells'](_0x29bcc2,_0x394197){const _0x4647e0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x19d472=this['editor']['model']['createRangeOn'](_0x29bcc2),_0x1868ee=this['editor']['model']['createRangeOn'](_0x394197),_0x4e71a3=new Set(),_0x3258b9=new Set();for(const _0x595feb of _0x4647e0['getSuggestions']())if(('insertion'==_0x595feb['type']||'deletion'==_0x595feb['type']||'mergeTableCells'==_0x595feb['subType'])&&_0x595feb['isInContent']){for(const _0x2f240b of _0x595feb['getRanges']())_0x2f240b['containsRange'](_0x19d472,!0x0)&&_0x4e71a3['add'](_0x595feb['type']+':'+_0x595feb['author']['id']),_0x2f240b['containsRange'](_0x1868ee,!0x0)&&_0x3258b9['add'](_0x595feb['type']+':'+_0x595feb['author']['id']);}if(_0x4e71a3['size']!=_0x3258b9['size'])return!0x1;for(const _0x15661b of _0x4e71a3)if(!_0x3258b9['has'](_0x15661b))return!0x1;return!0x0;}}class Me extends _0x486e9c{static get['requires'](){return[Ne];}['afterInit'](){const _0x165861=this['editor'];if(!_0x165861['plugins']['has']('TableEditing'))return;const _0x35fd44=_0x165861['locale'],_0x3fb601=_0x165861['plugins']['get']('TrackChangesEditing');_0x3fb601['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x3fb601['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x3fb601['descriptionFactory']['registerAttributeLabel']('headingRows',At(_0x35fd44,'FORMAT_HEADER_ROW')),_0x3fb601['descriptionFactory']['registerAttributeLabel']('headingColumns',At(_0x35fd44,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x487a2d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x41c71e=this['editor']['plugins']['get'](Ne)['_acceptFormatSuggestionCallbackFactory']();_0x487a2d['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x41c71e),_0x487a2d['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x41c71e),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x4d0d9c=this['editor']['plugins']['get']('TrackChangesEditing'),_0xfab12c=this['editor']['plugins']['get']('TableUtils');function _0x3503dc({showActiveMarker:_0x4df777=!0x0,setDataAttribute:_0x28dbf0=!0x0}={}){return(_0x332d2c,_0x1b17b7,_0x1ce8f1)=>{const {type:_0x3094b1,id:_0x2bec28}=_0x36ab20(_0x1b17b7['markerName']);if(!_0x4d0d9c['hasSuggestion'](_0x2bec28))return;const _0x397bb8=_0x4d0d9c['getSuggestion'](_0x2bec28),_0x15be45=_0x397bb8['data'];if('formatBlock'!=_0x397bb8['type']||!_0x15be45||'setTableColumnHeader'!=_0x15be45['commandName'])return;if(_0x1b17b7['item'])return void _0x332d2c['stop']();if(!_0x1ce8f1['consumable']['consume'](_0x1b17b7['markerRange'],_0x332d2c['name']))return;const _0x335bfb=_0x1b17b7['markerRange']['start']['nodeAfter'],_0x52351d=_0x1b17b7['markerRange']['end']['nodeBefore'],_0x41e43c=_0x335bfb['parent']['parent'],{column:_0x2a69e9}=_0xfab12c['getCellLocation'](_0x335bfb),{column:_0x485d97}=_0xfab12c['getCellLocation'](_0x52351d);for(let _0x7dd8d=_0x2a69e9;_0x7dd8d<=_0x485d97;_0x7dd8d++){const _0x4a4a3=_0xfab12c['createTableWalker'](_0x41e43c,{'column':_0x7dd8d,'includeAllSlots':!0x1});for(const _0x769b99 of _0x4a4a3){const _0x49f1ef=_0x769b99['cell'],_0x45e0c2=_0x1ce8f1['mapper']['toViewElement'](_0x49f1ef);_0x1ce8f1['writer']['addClass']('ck-suggestion-marker-'+_0x3094b1,_0x45e0c2),_0x28dbf0&&_0x1ce8f1['writer']['setAttribute']('data-suggestion',_0x2bec28,_0x45e0c2),_0x1ce8f1['mapper']['bindElementToMarker'](_0x45e0c2,_0x1b17b7['markerName']),_0x4df777&&(_0x4d0d9c['activeMarkers']['includes'](_0x1b17b7['markerName'])?_0x1ce8f1['writer']['addClass']('ck-suggestion-marker--active',_0x45e0c2):_0x1ce8f1['writer']['removeClass']('ck-suggestion-marker--active',_0x45e0c2));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x3503dc(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4edce5,_0x3313ba,_0x111561)=>{_0x111561['options']['showSuggestionHighlights']&&_0x3503dc({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x4edce5,_0x3313ba,_0x111561);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x224102,_0x5b1b19,_0x29b430)=>{const {type:_0x1a3f2a,id:_0x31ab8e}=_0x36ab20(_0x5b1b19['markerName']);if(!_0x4d0d9c['hasSuggestion'](_0x31ab8e))return;const _0x2f38dc=_0x4d0d9c['getSuggestion'](_0x31ab8e),_0x50859e=_0x2f38dc['data'];if('formatBlock'!=_0x2f38dc['type']||!_0x50859e||'setTableColumnHeader'!=_0x50859e['commandName'])return;const _0x31b197=_0x29b430['mapper']['markerNameToElements'](_0x5b1b19['markerName']);if(_0x31b197){for(const _0x351cae of _0x31b197)_0x29b430['writer']['removeClass']('ck-suggestion-marker-'+_0x1a3f2a,_0x351cae),_0x29b430['writer']['removeClass']('ck-suggestion-marker--active',_0x351cae),_0x29b430['writer']['removeAttribute']('data-suggestion',_0x351cae),_0x29b430['mapper']['unbindElementFromMarkerName'](_0x351cae,_0x5b1b19['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x396d5a=this['editor'],_0x1a2350=_0x396d5a['locale'];function _0x316576(_0x1c42b8){return{'type':'format','content':At(_0x1a2350,'*Format:*\x20%0',_0x1c42b8)};}_0x396d5a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x380394=>{if('formatBlock'!=_0x380394['type'])return;const {data:_0x5ddb46}=_0x380394;if(_0x5ddb46){if('setTableRowHeader'==_0x5ddb46['commandName']){const _0x13c6cc=_0x5ddb46['commandParams'][0x0]['forceValue'];return _0x316576(At(_0x1a2350,_0x13c6cc?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x5ddb46['commandName']){const _0x530fab=_0x5ddb46['commandParams'][0x0]['forceValue'];return _0x316576(At(_0x1a2350,_0x530fab?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Oe extends _0x486e9c{static get['requires'](){return[Ne];}['afterInit'](){const _0x4ff93d=this['editor'];if(!_0x4ff93d['plugins']['has']('TableEditing')||!_0x4ff93d['config']['get']('table.enableFooters'))return;const _0x3203c2=_0x4ff93d['locale'],_0x5f3381=_0x4ff93d['plugins']['get']('TrackChangesEditing');_0x5f3381['enableDefaultAttributesIntegration']('setTableFooterRow'),_0x5f3381['descriptionFactory']['registerAttributeLabel']('footerRows',At(_0x3203c2,'FORMAT_FOOTER_ROW'));}}class we extends _0x486e9c{['afterInit'](){const _0xcb26a5=this['editor'],_0x11a331=_0xcb26a5['locale'],_0x589f96=_0xcb26a5['plugins']['get']('TrackChangesEditing');function _0x37d809(_0x2eed39){return{'type':'format','content':''+At(_0x11a331,'*Set\x20table\x20type:*\x20%0',_0x2eed39)};}_0xcb26a5['plugins']['has']('TableLayout')&&(_0x589f96['enableCommand']('insertTableLayout'),_0x589f96['enableDefaultAttributesIntegration']('tableType'),_0x589f96['descriptionFactory']['registerElementLabel'](_0x13bb9c=>_0x13bb9c['is']('element','table')&&'layout'===_0x13bb9c['getAttribute']('tableType'),_0x1ffbc6=>At(_0x11a331,'ELEMENT_LAYOUT_TABLE',_0x1ffbc6)),_0x589f96['descriptionFactory']['registerDescriptionCallback'](_0x17cc94=>{const {data:_0x261462}=_0x17cc94;if(_0x261462&&'tableType'==_0x261462['key'])switch(_0x261462['newValue']){case'layout':return _0x37d809(At(_0x11a331,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x37d809(At(_0x11a331,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Fe=/* #__PURE__ -- @preserve */
|
|
25
|
-
Object['fromEntries'](Be['map'](_0x571a6a=>[_0x571a6a,null]));class De extends _0x486e9c{static get['requires'](){return[Ne];}['afterInit'](){const _0x39d425=this['editor'];if(!_0x39d425['plugins']['has']('TableClipboard'))return;const _0x1fd658=_0x39d425['plugins']['get']('TrackChangesEditing'),_0x41fcad=_0x39d425['plugins']['get']('TableUtils'),_0x5e276e=_0x39d425['plugins']['get'](Ne),_0x2213ef=_0x39d425['plugins']['get']('TableClipboard'),_0x4db919=_0x39d425['plugins']['get']('TableSelection'),_0x462e76=_0x39d425['plugins']['get'](ut);_0x5e276e['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x39d425['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x39d425['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x3176c6=null,_0x285925=!0x1;_0x462e76['on']('contentInsertion',(_0x52e7ea,_0x35a98f)=>{_0x285925='paste'===_0x35a98f['method'];}),_0x39d425['model']['on']('insertContent',(_0x5af9fb,_0x185dae)=>{if(!_0x285925&&null===_0x4db919['getSelectedTableCells']())return;const [_0x5f3db8,_0x37a174]=_0x185dae,_0x12224c=_0x185dae[_0x185dae['length']-0x1];_0x12224c&&_0x12224c['forceDefaultExecution']||_0x1fd658['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x1478fe,_0x5472fc,_0x566279,_0x408dd0,_0x56c637){if(_0x5472fc&&!_0x5472fc['is']('documentSelection'))return!0x1;const _0x2b2e6e=_0x56c637['getTableIfOnlyTableInContent'](_0x1478fe,_0x566279);if(!_0x2b2e6e||!xe(_0x2b2e6e,void 0x0,_0x408dd0))return!0x1;const _0x139884=_0x408dd0['getSelectionAffectedTableCells'](_0x566279['document']['selection']);if(!_0x139884['length'])return!0x1;const _0x20d89e=_0x139884[0x0]['findAncestor']('table'),_0x2ae7ad=_0x408dd0['getRowIndexes'](_0x139884),_0x376f4f=_0x408dd0['getColumnIndexes'](_0x139884),_0x5b3806={'startRow':_0x2ae7ad['first'],'endRow':_0x2ae7ad['last'],'startColumn':_0x376f4f['first'],'endColumn':_0x376f4f['last']};return 0x1==_0x139884['length']&&(_0x5b3806['endRow']+=_0x408dd0['getRows'](_0x2b2e6e)-0x1,_0x5b3806['endColumn']+=_0x408dd0['getColumns'](_0x2b2e6e)-0x1),xe(_0x20d89e,_0x5b3806,_0x408dd0);}(_0x5f3db8,_0x37a174,_0x39d425['model'],_0x41fcad,_0x2213ef)&&(_0x5af9fb['stop'](),_0x3176c6={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x39d425['model']['change'](()=>{_0x39d425['model']['insertContent'](_0x185dae[0x0],_0x185dae[0x1],_0x185dae[0x2],{'forceDefaultExecution':!0x0});const _0x29583f=_0xec3fc0(),{rowInsertionRanges:_0x51a1f9,columnInsertionRanges:_0x17c3bd,insertionRanges:_0x3e8cf5,deletionRanges:_0x3b1172,cells:_0x35bd56}=_0x3176c6;_0x51a1f9['length']&&_0x1fd658['markMultiRangeInsertion'](_0x51a1f9,'tablePasteRow',{'tablePasteChainId':_0x29583f}),_0x17c3bd['length']&&_0x1fd658['markMultiRangeInsertion'](_0x17c3bd,'tablePasteColumn',{'tablePasteChainId':_0x29583f}),_0x3e8cf5['length']&&(_0x1fd658['markMultiRangeInsertion'](_0x3e8cf5,'tablePaste',{'tablePasteChainId':_0x29583f,'skipNestingCheck':!0x0}),_0x3e8cf5['forEach'](_0x5463dc=>_0x5463dc['detach']?.())),_0x3b1172['length']&&(_0x1fd658['markMultiRangeDeletion'](_0x3b1172,'tablePaste',{'tablePasteChainId':_0x29583f,'skipNestingCheck':!0x0}),_0x3b1172['forEach'](_0x44a559=>_0x44a559['detach']?.()));const _0x378f69=_0x1fd658['markMultiRangeBlockFormat'](_0x35bd56['map'](({element:_0xce3b03})=>_0xce3b03),{'formatGroupId':_0xec3fc0()},[],'tablePasteCell',{'tablePasteChainId':_0x29583f});if(_0x378f69){const _0x43ffd6=_0x378f69['getMarkers'](),_0x1e1fcb=[];for(const {element:_0x29a3be,attributes:_0x3706da}of _0x35bd56){if(!_0x3706da)continue;const _0x5e5d4c=_0x39d425['model']['createRangeOn'](_0x29a3be),_0x14e9e4=_0x43ffd6['find'](_0x8b8a1c=>_0x8b8a1c['getRange']()['isEqual'](_0x5e5d4c));_0x14e9e4&&_0x1e1fcb['push']([_0x14e9e4['name'],_0x3706da]);}_0x1e1fcb['length']&&_0x378f69['setAttribute']('markerAttributes',Object['fromEntries'](_0x1e1fcb));}_0x3176c6=null;}));},{'priority':_0x5dc5ee['high']+0xa}),_0x462e76['on']('contentInsertion',()=>{_0x285925=!0x1;},{'priority':'lowest'}),_0x39d425['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x42a731,_0xd4c2ac)=>{const [_0x5ae715,_0x1f85e7,,_0x45dd87]=_0xd4c2ac;if(!_0x3176c6)return;_0x42a731['stop']();const _0x3f463e=_0x5ae715['cell'],_0x101ce9=_0x1f85e7,_0x429b01=ve(_0x3f463e),_0x4196c6=ve(_0x101ce9);_0x42a731['return']=_0x3f463e;let _0x39a998=null,_0x6a00c8=null;if(_0x4196c6||_0x429b01){if(_0x429b01&&!_0x4196c6){_0x45dd87['remove'](_0x3f463e['getChild'](0x0));for(const _0x4f15cd of Array['from'](_0x101ce9['getChildren']()))_0x45dd87['insert'](_0x4f15cd,_0x3f463e,'end');const _0x43563e=_0x3176c6['rowInsertionIndexes']['includes'](_0x5ae715['row']),_0x772396=_0x3176c6['columnInsertionIndexes']['includes'](_0x5ae715['column']);_0x43563e||_0x772396||(_0x39a998=_0x704ba['fromRange'](_0x45dd87['createRangeIn'](_0x3f463e)));}else _0x4196c6&&!_0x429b01&&(_0x6a00c8=_0x45dd87['createRangeIn'](_0x3f463e));}else{const _0x4ee9ea=_0x45dd87['createElement']('tableCellSuggestion'),_0x5728fe=_0x45dd87['createElement']('tableCellSuggestion');_0x45dd87['wrap'](_0x45dd87['createRangeIn'](_0x3f463e),_0x5728fe),_0x45dd87['insert'](_0x4ee9ea,_0x3f463e,0x0);for(const _0x118ac4 of Array['from'](_0x101ce9['getChildren']()))_0x45dd87['insert'](_0x118ac4,_0x4ee9ea,'end');_0x39a998=_0x704ba['fromRange'](_0x45dd87['createRangeOn'](_0x4ee9ea)),_0x6a00c8=_0x704ba['fromRange'](_0x45dd87['createRangeOn'](_0x5728fe));}const _0x51b63f=Array['from'](_0x101ce9['getAttributes']())['filter'](([_0x174042])=>Be['includes'](_0x174042));_0x3176c6['cells']['push']({'element':_0x3f463e,'attributes':_0x51b63f['length']?Object['fromEntries'](_0x51b63f):null}),_0x39a998&&_0x3176c6['insertionRanges']['push'](_0x39a998),_0x6a00c8&&_0x3176c6['deletionRanges']['push'](_0x6a00c8);},{'priority':'high'}),_0x41fcad['on']('insertColumns',(_0x2b6fe5,_0x1cad1a)=>{const [_0x566c7d,_0x32bc56={}]=_0x1cad1a;if(!_0x3176c6)return;const _0x5511cc=_0x32bc56['at']||0x0,_0xad7fb1=_0x32bc56['columns']||0x1;_0x3176c6['columnInsertionIndexes']=new Array(_0xad7fb1)['fill'](_0x5511cc)['map']((_0x298ec1,_0x2f9d22)=>_0x298ec1+_0x2f9d22);for(const {cell:_0x3c0a5d}of _0x41fcad['createTableWalker'](_0x566c7d,{'startColumn':_0x5511cc,'endColumn':_0x5511cc+_0xad7fb1-0x1}))_0x3176c6['columnInsertionRanges']['push'](_0x39d425['model']['createRangeOn'](_0x3c0a5d));},{'priority':'low'}),_0x41fcad['on']('insertRows',(_0x416275,_0x1abb37)=>{const [_0x4c5f89,_0x1887af={}]=_0x1abb37;if(!_0x3176c6)return;const _0x5c72bd=_0x1887af['at']||0x0,_0x1524fa=_0x1887af['rows']||0x1;_0x3176c6['rowInsertionIndexes']=new Array(_0x1524fa)['fill'](_0x5c72bd)['map']((_0x439014,_0x19b6a1)=>_0x439014+_0x19b6a1);for(const {cell:_0x231d34}of _0x41fcad['createTableWalker'](_0x4c5f89,{'startRow':_0x5c72bd,'endRow':_0x5c72bd+_0x1524fa-0x1}))_0x3176c6['rowInsertionRanges']['push'](_0x39d425['model']['createRangeOn'](_0x231d34));},{'priority':'low'}),_0x1fd658['descriptionFactory']['registerDescriptionCallback'](_0x3cc733=>{if(_0x3cc733['subType']&&_0x3cc733['subType']['startsWith']('tablePaste'))return _0x3cc733['previous']?{}:{'type':'insertion','content':At(_0x39d425['locale'],'*Replace\x20table\x20cells*')};});const _0x2f7fb0=()=>!0x1;for(const _0x2cbb5a of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x1fd658['_suggestionFactory']['registerCustomCallback']('insertion',_0x2cbb5a,'join',_0x2f7fb0),_0x1fd658['_suggestionFactory']['registerCustomCallback']('deletion',_0x2cbb5a,'join',_0x2f7fb0),_0x1fd658['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2cbb5a,'join',_0x2f7fb0);_0x1fd658['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x2f7fb0),_0x1fd658['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x53d813,_0x3818ad,_0x2a7430)=>{const _0x40bb31=_0x53d813['map'](_0x5e8040=>_0x5e8040['getContainedElement']())['filter'](_0x2e1fbe=>_0x2e1fbe),_0x4cdaac=new Map(_0x40bb31['map'](_0x3fa5ec=>[_0x3fa5ec,null]));if(_0x3176c6){for(const {element:_0x4f55d7,attributes:_0x19eb4d}of _0x3176c6['cells'])_0x19eb4d&&_0x4cdaac['set'](_0x4f55d7,_0x19eb4d);}else{if(_0x2a7430&&_0x2a7430['markerAttributes'])for(const [_0x26482c,_0xef6abc]of Object['entries'](_0x2a7430['markerAttributes'])){const _0x142b06=_0x39d425['model']['markers']['get'](_0x26482c),_0x51b4a4=_0x142b06?_0x142b06['getRange']()['getContainedElement']():null;_0x51b4a4&&_0x4cdaac['set'](_0x51b4a4,_0xef6abc);}}_0x39d425['model']['change'](_0x3f1edc=>{for(const [_0x13ba93,_0x2fbb20]of _0x4cdaac)_0x3f1edc['setAttributes']({...Fe,..._0x2fbb20},_0x13ba93);});});const _0x32007e=(_0x2789d2,_0x5dcdf8)=>{_0x1fd658['_suggestionFactory']['registerCustomCallback'](_0x2789d2,'tablePaste',_0x5dcdf8,(_0xe42e8,_0x1ae833,_0x3fb81d)=>{_0x39d425['model']['change'](_0x3a8bac=>{const _0x1e7b6b=[];for(const _0x8a8b7a of _0xe42e8){const _0x139ffb=_0x8a8b7a['start']['nodeAfter'];_0x139ffb['is']('element','tableCellSuggestion')&&_0x1e7b6b['push'](_0x139ffb);}_0x1fd658['_suggestionFactory']['getSuggestionCallback'](_0x2789d2,null,_0x5dcdf8)(_0xe42e8,_0x1ae833,_0x3fb81d);for(const _0x38fa2b of _0x1e7b6b)'$graveyard'!=_0x38fa2b['root']['rootName']&&_0x3a8bac['unwrap'](_0x38fa2b);});});};_0x32007e('insertion','accept'),_0x32007e('insertion','discard'),_0x32007e('deletion','accept'),_0x32007e('deletion','discard'),_0x1fd658['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x3f8e86=>{const _0x327ea2=_0x3f8e86['map'](_0x210666=>_0x210666['getContainedElement']()),_0x744981=_0x327ea2[0x0]['findAncestor']('table'),{minRow:_0x377c1b,maxRow:_0x2455e6}=_0x5e276e['_getCoordsForCells'](_0x327ea2);_0x41fcad['removeRows'](_0x744981,{'at':_0x377c1b,'rows':_0x2455e6-_0x377c1b+0x1});}),_0x1fd658['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x350a32=>{const _0xcec7d8=_0x350a32['map'](_0x31e3bb=>_0x31e3bb['getContainedElement']()),_0x1f9f77=_0xcec7d8[0x0]['findAncestor']('table'),{minColumn:_0x630b0c,maxColumn:_0x50e3aa}=_0x5e276e['_getCoordsForCells'](_0xcec7d8);_0x41fcad['removeColumns'](_0x1f9f77,{'at':_0x630b0c,'columns':_0x50e3aa-_0x630b0c+0x1});});const _0x46413c=(_0xeaf66e,_0x15b7fd)=>{if(!_0x15b7fd['subType']||!_0x15b7fd['subType']['startsWith']('tablePaste'))return;const _0x474f0c=_0x15b7fd['attributes']['tablePasteChainId'],_0x4a57b9=_0x1fd658['getSuggestions']()['filter'](_0x4db0b9=>_0x4db0b9['isInContent']&&_0x4db0b9['attributes']&&_0x4db0b9['attributes']['tablePasteChainId']==_0x474f0c);_0x4a57b9['length']&&_0x15b7fd['getAllAdjacentSuggestions']()['length']!=_0x4a57b9['length']&&_0x4a57b9['reduce']((_0xc34802,_0xe73636)=>(_0xc34802['next']=_0xe73636,_0xe73636['previous']=_0xc34802,_0xe73636));};function _0xbbe955(_0x4c123f,_0x28b17a=!0x0){const {id:_0x404f8a,authorId:_0x1a778d}=_0x36ab20(_0x4c123f['markerName']),_0x2595c2=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0xd81b2=_0x1fd658['activeMarkers']['includes'](_0x4c123f['markerName']);return _0xd81b2&&_0x2595c2['push']('ck-suggestion-marker--active'),{'classes':_0x2595c2,'attributes':{'data-suggestion':_0x404f8a,'data-author-id':_0x1a778d},'priority':_0xd81b2&&_0x28b17a?0xbc2:0xbb8};}_0x1fd658['on']('suggestionLoaded',_0x46413c,{'priority':'high'}),_0x1fd658['on']('suggestionUnloaded',_0x46413c,{'priority':'high'}),_0x39d425['model']['document']['registerPostFixer'](()=>{let _0x5b8c31=!0x1;const _0x2454d9=Array['from'](_0x39d425['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x22e845,data:_0xc2b3a9}of _0x2454d9){const {group:_0x2da7eb,type:_0x470c44,id:_0x647534}=_0x36ab20(_0x22e845);if('suggestion'!=_0x2da7eb||'deletion'!=_0x470c44||_0xc2b3a9['oldRange'])continue;if(!_0x1fd658['hasSuggestion'](_0x647534))continue;const _0x5cbb6d=_0x1fd658['getSuggestion'](_0x647534)['getRanges'](),_0xb4c0d9=_0x39d425['plugins']['get']('Users')['me'];for(const _0x438954 of _0x1fd658['getSuggestions']()){if(!_0x438954['isInContent']||_0x438954['author']!=_0xb4c0d9)continue;if('formatBlock'!=_0x438954['type']||'tablePasteCell'!=_0x438954['subType'])continue;if(_0x438954['getRanges']()['every'](_0x33a733=>_0x5cbb6d['some'](_0x725c34=>_0x725c34['containsRange'](_0x33a733,!0x0)))){for(const _0x421de0 of _0x438954['getAllAdjacentSuggestions']())_0x421de0['isInContent']&&(_0x421de0['discard'](),_0x5b8c31=!0x0);}}}return _0x5b8c31;}),_0x39d425['model']['document']['registerPostFixer'](_0x270316=>{const _0x19be30=_0x39d425['commands']['get']('redo');if(!_0x19be30||!_0x19be30['_createdBatches']['has'](_0x270316['batch']))return!0x1;let _0x545bd9=!0x1;const _0x45223d=_0x39d425['plugins']['get']('Users')['me'],_0x3aa7a2=_0x39d425['model']['document']['differ']['getChanges'](),_0x142820=Array['from'](_0x39d425['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x1c9dc2,data:_0x4e5823})=>{const {group:_0x25438f,subType:_0x1bfb1a,authorId:_0x13c4b9}=_0x36ab20(_0x1c9dc2);return'suggestion'==_0x25438f&&'tablePaste'==_0x1bfb1a&&_0x13c4b9==_0x45223d['id']&&!_0x4e5823['oldRange'];});for(const _0x467459 of _0x3aa7a2){if('insert'!=_0x467459['type']||'tableCellSuggestion'!=_0x467459['name']||0x1!=_0x467459['length'])continue;const _0x5e73ee=_0x270316['createRange'](_0x467459['position'],_0x467459['position']['getShiftedBy'](0x1));if(!_0x142820['find'](({data:_0x41546d})=>_0x41546d['newRange']['isEqual'](_0x5e73ee))){for(const {name:_0xbe1160,data:_0x126f7e}of _0x142820)if(_0x5e73ee['containsRange'](_0x126f7e['newRange'])){_0x270316['updateMarker'](_0xbe1160,{'range':_0x5e73ee}),_0x545bd9=!0x0;break;}}}return _0x545bd9;}),_0x39d425['model']['document']['registerPostFixer'](_0x2dace0=>{let _0xce4ba4=!0x1;const _0x3ffbdd=_0x39d425['plugins']['get']('Users')['me'],_0x543b6e=_0x1fd658['getSuggestions']()['filter'](_0x305b0b=>_0x305b0b['isInContent']&&_0x305b0b['author']==_0x3ffbdd),_0x6e59b8=new Set(),_0x1cf34c=new Set();for(const _0x2672c5 of _0x543b6e)if('tablePaste'==_0x2672c5['subType'])for(const _0x23d7b0 of _0x2672c5['getMarkers']()){const _0x492d31=_0x23d7b0['getRange']()['getContainedElement']();if(_0x492d31){if(_0x492d31['is']('element','tableCellSuggestion')&&ve(_0x492d31)){_0x2672c5['removeMarker'](_0x23d7b0['name']),_0x6e59b8['add'](_0x492d31),_0xce4ba4=!0x0;const _0x5e5c77=_0x492d31['nextSibling'],_0x355372=_0x492d31['previousSibling'],_0x5bac53=_0x5e5c77&&_0x5e5c77['is']('element','tableCellSuggestion'),_0x33e6ff=_0x355372&&_0x355372['is']('element','tableCellSuggestion');_0x5bac53&&!_0x6e59b8['has'](_0x5e5c77)&&_0x1cf34c['add'](_0x5e5c77),_0x33e6ff&&!_0x6e59b8['has'](_0x355372)&&_0x1cf34c['add'](_0x355372);}else _0x492d31['is']('element','paragraph')&&_0x492d31['isEmpty']&&(_0x2672c5['removeMarker'](_0x23d7b0['name']),_0xce4ba4=!0x0);}}else{if('tablePasteCell'==_0x2672c5['subType']){if(!_0x2672c5['attributes']||!_0x2672c5['attributes']['tablePasteChainId'])continue;const _0x56a7c7=_0x2672c5['attributes']['markerAttributes'];if(_0x56a7c7&&Object['keys'](_0x56a7c7)['length'])continue;const _0x223aae=_0x2672c5['attributes']['tablePasteChainId'];let _0x5998d5=!0x0,_0xd1b776=!0x0;for(const _0x47710f of _0x543b6e)if(_0x47710f['subType']&&_0x47710f['subType']['startsWith']('tablePaste')){if(!_0x47710f['attributes']['tablePasteChainId']){_0xd1b776=!0x1;break;}if(_0x47710f['id']!=_0x2672c5['id']&&_0x47710f['attributes']['tablePasteChainId']==_0x223aae){_0x5998d5=!0x1;break;}}_0xd1b776&&_0x5998d5&&(_0x2672c5['removeMarkers'](),_0xce4ba4=!0x0);}}for(const _0x4cf955 of _0x6e59b8)_0x2dace0['remove'](_0x4cf955);for(const _0x5e1d36 of _0x1cf34c)_0x2dace0['unwrap'](_0x5e1d36);return _0xce4ba4;}),_0x39d425['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x564d49=>_0xbbe955(_0x564d49),'converterPriority':'high'}),_0x39d425['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x47df0c,_0x3cb961)=>_0x3cb961['options']['showSuggestionHighlights']?_0xbbe955(_0x47df0c,!0x1):null,'converterPriority':'high'});const _0x54927b=_0x39d425['editing']['view'];this['listenTo'](_0x54927b['document'],'clipboardOutput',(_0x52c4a2,_0x14dae2)=>{const _0x53761f=[];for(const _0x93549e of _0x54927b['createRangeIn'](_0x14dae2['content'])['getItems']())_0x93549e['is']('element','suggestion-td')&&_0x53761f['push'](_0x93549e);_0x54927b['change'](_0xde432a=>{for(const _0x2770e0 of _0x53761f)_0xde432a['move'](_0xde432a['createRangeIn'](_0x2770e0),_0xde432a['createPositionBefore'](_0x2770e0)),_0xde432a['remove'](_0x2770e0);});});}}function ve(_0x2f5f11){if(_0x2f5f11['isEmpty'])return!0x0;const _0x5df9dc=_0x2f5f11['getChild'](0x0);return _0x5df9dc['is']('element','paragraph')&&_0x5df9dc['isEmpty'];}function xe(_0x71b17d,_0x52c82d={},_0x176e71){for(const {isAnchor:_0x164026,cellHeight:_0x362863,cellWidth:_0x4077f7}of _0x176e71['createTableWalker'](_0x71b17d,{'includeAllSlots':!0x0,..._0x52c82d}))if(!_0x164026||0x1!=_0x362863||0x1!=_0x4077f7)return!0x1;return!0x0;}class Pe extends _0x486e9c{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x43843a=this['editor']['plugins']['get']('TrackChangesEditing');_0x43843a['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x43843a['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x43843a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x43843a['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x43843a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x43843a['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x3746eb,_0x55436a){const _0x1502d7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x247bf7=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x2c284c=_0x55436a['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x22e82a=_0x247bf7['getColumnGroupElement'](_0x2c284c);let _0x2db42c=_0x22e82a?_0x247bf7['getTableColumnsWidths'](_0x22e82a):null,_0x5b9f0a=_0x2c284c['getAttribute']('tableWidth')||null;const _0x112b70=_0x55436a['tableWidth']||_0x5b9f0a,_0x39f244=_0x55436a['columnWidths']||_0x2db42c,_0x3c383a=this['editor']['plugins']['get']('Users')['me'];for(const _0x238b9b of _0x1502d7['getSuggestions']()){const _0x33f984=_0x238b9b['getContainedElement']();if('resizeTable'===_0x238b9b['subType']&&_0x33f984===_0x2c284c){_0x238b9b['author']!==_0x3c383a&&_0x238b9b['discard']();const _0x4d1a26=_0x238b9b['data']['commandParams'];_0x5b9f0a=_0x4d1a26[0x0]['tableWidth'],_0x2db42c=_0x4d1a26[0x0]['columnWidths'];break;}}_0x3746eb({'table':_0x2c284c,'tableWidth':_0x112b70,'columnWidths':_0x39f244}),_0x1502d7['markBlockFormat'](_0x2c284c,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x5b9f0a,'columnWidths':_0x2db42c}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x26f3bb){if('formatBlock'!=_0x26f3bb['type']&&'formatInline'!=_0x26f3bb['type'])return;const {data:_0x128f78}=_0x26f3bb;if(_0x128f78&&'resizeTable'===_0x128f78['formatGroupId']){const _0x586066='*Format:*\x20resize\x20table';return{'type':'format','content':At(this['editor']['locale'],_0x586066)};}}}class Ue extends _0x486e9c{['afterInit'](){const _0x2e81a5=this['editor'];_0x2e81a5['plugins']['has']('Template')&&_0x2e81a5['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ge extends _0x486e9c{['afterInit'](){const _0x2574c8=this['editor'];if(!_0x2574c8['commands']['get']('insertTableOfContents'))return;_0x2574c8['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0xbd4d26=_0x2574c8['plugins']['get']('TrackChangesEditing'),_0xc5dab3=_0x2574c8['locale'];_0xbd4d26['descriptionFactory']['registerElementLabel']('tableOfContents',_0x34eac6=>At(_0xc5dab3,'ELEMENT_TABLE_OF_CONTENTS',_0x34eac6));}}class He extends _0x486e9c{['afterInit'](){const _0x3c9f77=this['editor'];if(!_0x3c9f77['plugins']['has']('Title'))return;_0x3c9f77['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>At(_0x3c9f77['locale'],'ELEMENT_TITLE')),_0x3c9f77['model']['document']['registerPostFixer'](_0x45905d=>{let _0x23c707=!0x1;const _0x583c8a=Array['from'](_0x3c9f77['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x14a801,data:_0x472fab}of _0x583c8a){const {group:_0x2f072d}=_0x36ab20(_0x14a801);if('suggestion'!==_0x2f072d||!_0x472fab['newRange'])continue;const _0x2556ab=_0x472fab['newRange'],_0x1b267a=_0x2556ab['end']['nodeBefore'];if(!_0x1b267a||!_0x1b267a['is']('element','title-content'))continue;if(!_0x2556ab['start']['isTouching'](_0x2556ab['end']))continue;const _0x4d6c9=_0x3c9f77['model']['schema']['getNearestSelectionRange'](_0x2556ab['end'],'forward');if(_0x4d6c9&&_0x4d6c9['isCollapsed']){const _0x570697=_0x45905d['createRange'](_0x2556ab['start'],_0x4d6c9['start']);_0x570697['isEqual'](_0x2556ab)||(_0x45905d['updateMarker'](_0x14a801,{'range':_0x570697}),_0x23c707=!0x0);}_0x23c707||(_0x45905d['removeMarker'](_0x14a801),_0x23c707=!0x0);}return _0x23c707;});}}class $e extends _0x486e9c{['afterInit'](){const _0x53ec31=this['editor'],_0x262aed=_0x53ec31['plugins']['get']('TrackChangesEditing');_0x53ec31['plugins']['has']('Uploadcare')&&(_0x262aed['enableCommand']('uploadcare'),_0x53ec31['plugins']['has']('UploadcareImageEdit')&&(_0x262aed['enableCommand']('uploadcareImageEdit'),_0x262aed['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x262aed['descriptionFactory']['registerDescriptionCallback'](_0x5ee008=>{if('attribute'!=_0x5ee008['type'])return;const {data:_0x42038d}=_0x5ee008;return _0x42038d&&'uploadcareImageId'==_0x42038d['key']?{'type':'format','content':''}:void 0x0;})));}}class We extends _0x486e9c{['afterInit'](){const _0x18c9c0=this['editor'],_0x209a3c=_0x18c9c0['plugins']['get']('TrackChangesEditing');_0x18c9c0['plugins']['has']('UndoEditing')&&(_0x209a3c['enableCommand']('undo'),_0x209a3c['enableCommand']('redo'));}}class Ve extends _0x486e9c{static get['requires'](){return[Ne];}['afterInit'](){const _0x390973=this['editor'];if(!_0x390973['plugins']['has']('TableCaptionEditing'))return;_0x390973['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class je extends _0x486e9c{['tableProperties'];['tableCellProperties'];constructor(_0x2af176){super(_0x2af176),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 _0x3abfea=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x57c987 of this['tableProperties'])_0x3abfea['enableCommand'](_0x57c987,(_0x6fd0ae,_0x5dfacf)=>{const _0x170e28=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x57c987,[_0x170e28],this['tableProperties'],'tableProperties',_0x6fd0ae,_0x5dfacf);});_0x3abfea['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x3abfea['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3abfea['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x16a4ff,_0x267d58)=>this['handleDiscardAction'](this['tableProperties'],_0x16a4ff,_0x267d58)),_0x3abfea['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x33e36f of this['tableCellProperties'])this['editor']['commands']['get'](_0x33e36f)&&_0x3abfea['enableCommand'](_0x33e36f,(_0x3c3f46,_0x5988af)=>{const _0x3a37bf=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x33e36f,_0x3a37bf,this['tableCellProperties'],'tableCellProperties',_0x3c3f46,_0x5988af);});_0x3abfea['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x3abfea['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3abfea['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x36c729,_0x1880ef)=>this['handleDiscardAction'](this['tableCellProperties'],_0x36c729,_0x1880ef)),_0x3abfea['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x3abfea['descriptionFactory']['registerAttributeLabel']('tableCellType',At(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x3abfea['descriptionFactory']['registerDescriptionCallback'](_0x4096c6=>this['handleSuggestionDescription'](_0x4096c6)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x4d9d3a,_0x4d98ca,_0x3d59fe,_0x9fc2f9,_0x3ea8d8,_0x1c49d8){const _0x3f81f7=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x1c49d8['batch'],()=>{for(const _0x53a216 of _0x4d98ca){if(this['_getSuggestion'](_0x53a216,_0x9fc2f9))_0x3ea8d8(_0x1c49d8);else{const _0x47ee70={};for(const _0x467bbc of _0x3d59fe){const _0x4bcb2b=_0x53a216['getAttribute'](_0x467bbc);void 0x0!==_0x4bcb2b&&(_0x47ee70[_0x467bbc]=_0x4bcb2b);}_0x3ea8d8(_0x1c49d8),_0x3f81f7['markBlockFormat'](_0x53a216,{'commandParams':[_0x47ee70]},[],_0x9fc2f9);}}});}['handleDiscardAction'](_0x5847a4,_0x13d62e,_0x204f9d){const _0x41e06f=_0x13d62e[0x0]['start']['nodeAfter'],_0x20c897=_0x204f9d['commandParams'][0x0];this['editor']['model']['change'](_0x2ed4b6=>{for(const _0x3d2bf3 of _0x5847a4)void 0x0!==_0x20c897[_0x3d2bf3]?_0x2ed4b6['setAttribute'](_0x3d2bf3,_0x20c897[_0x3d2bf3],_0x41e06f):_0x2ed4b6['removeAttribute'](_0x3d2bf3,_0x41e06f);});}['handleSuggestionDescription'](_0x2e3d20){if(_0x2e3d20['data'])switch(_0x2e3d20['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'](_0x2eafc5,_0x32fa35){const _0x1391d6=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x1898ef of _0x1391d6['getSuggestions']({'skipNotAttached':!0x0})){const _0x507b8b=_0x1898ef['getContainedElement']();if(_0x1898ef['subType']===_0x32fa35&&_0x507b8b===_0x2eafc5)return _0x1898ef;}return null;}['_registerTablePropertiesAttributes'](){const _0x2df73b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x51b9be=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x2d4db4 of _0x51b9be){const _0x269143=_0x2d4db4['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x2df73b['descriptionFactory']['registerAttributeLabel'](_0x2d4db4,At(this['editor']['locale'],'FORMAT_'+_0x269143));}}}class ze extends _0x486e9c{['afterInit'](){const _0x114f7d=this['editor'];if(!_0x114f7d['plugins']['has']('LineHeight'))return;const _0x22ff98=_0x114f7d['plugins']['get']('TrackChangesEditing'),_0x13f0be=_0x114f7d['locale'];_0x22ff98['enableDefaultAttributesIntegration']('lineHeight'),_0x22ff98['descriptionFactory']['registerAttributeLabel']('lineHeight',At(_0x13f0be,'FORMAT_LINE_HEIGHT'));}}const Ke='$elementName';class Xe extends _0x486e9c{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_suggestionsConversion'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return[_0x267a96,_0xaf0ffc,_0xb8ed5b,_0x389d90,_0x2b1f8b,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(_0x5027cb){super(_0x5027cb),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x4573c4,_0x3e04ba,_0x4e1b64,_0xa1d4c6)=>{this['_model']['change'](()=>{for(const _0x4f0aba of[..._0xa1d4c6,..._0x4e1b64])this['_model']['markers']['has'](_0x4f0aba)&&_0x5027cb['editing']['reconvertMarker'](_0x4f0aba);});}),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']=_0x5027cb['plugins']['get'](_0x267a96),this['_suggestionsConversion']=_0x5027cb['plugins']['get'](_0xaf0ffc),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x5027cb['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x5027cb['config']['get']('trackChanges.trackFormatChanges'),_0x5027cb['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x5027cb['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new ht(_0x5027cb,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x32290c=this['editor'];_0x32290c['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x18fd55,{writer:_0xba53ba})=>{let _0x51f2b9='suggestion:'+_0x18fd55['getAttribute']('suggestion-type')+':'+_0x18fd55['getAttribute']('id');return _0x18fd55['getAttribute']('marker-count')&&(_0x51f2b9+=':'+_0x18fd55['getAttribute']('marker-count')),_0xba53ba['createElement']('$marker',{'data-name':_0x51f2b9});}}),_0x32290c['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x32290c['model']['document']['registerPostFixer'](_0x38d578=>{let _0x385bc=!0x1;const _0x2d9ee0=Array['from'](_0x32290c['model']['document']['differ']['getChangedMarkers']()),_0x25f6a3=new Set();for(const {name:_0x15ecfa,data:_0x2a3181}of _0x2d9ee0){const {group:_0x480fb7,type:_0x2411dd,subType:_0x3ebc4e,id:_0xe33e37}=_0x36ab20(_0x15ecfa);if('suggestion'!==_0x480fb7)continue;const _0x250314=_0x3ebc4e?'suggestion:'+_0x2411dd+':'+_0x3ebc4e+':'+_0xe33e37:'suggestion:'+_0x2411dd+':'+_0xe33e37,_0x1ea802=_0x32290c['model']['markers']['getMarkersGroup'](_0x250314),_0x2a7df3=_0x32290c['model']['markers']['get'](_0x15ecfa),_0x3fd278=this['_suggestions']['get'](_0xe33e37);if(null!=_0x2a3181['newRange']){'formatInline'==_0x2411dd&&(_0x385bc=_0x385bc||Ze(_0x2a3181['newRange'],_0x15ecfa,_0x38d578,_0x32290c['model']['schema']));const _0x5dc488='attribute'==_0x2411dd&&this['_suggestionsConversion']['isBlockAttribute'](un(_0x3ebc4e)),_0x2ac9f2='attribute'==_0x2411dd&&this['_suggestionsConversion']['isInlineAttribute'](un(_0x3ebc4e));if(_0x2a3181['newRange']['isCollapsed']||'$graveyard'==_0x2a3181['newRange']['root']['rootName']||'formatBlock'==_0x2411dd&&!tn(_0x2a3181['newRange'])||_0x5dc488&&!tn(_0x2a3181['newRange'])||_0x2ac9f2&&en(_0x2a3181['newRange'])||'deletion'==_0x2411dd&&en(_0x2a3181['newRange'])||_0x2a7df3&&nn(_0x2a7df3,_0x1ea802))_0x38d578['removeMarker'](_0x15ecfa),_0x385bc=!0x0;else{if(!_0x3fd278||!_0x3fd278['isInContent'])continue;if(_0x2a3181['newRange']&&_0x2a3181['oldRange']&&_0x2a3181['newRange']['isEqual'](_0x2a3181['oldRange']))continue;_0x25f6a3['add'](_0x3fd278);}}}return _0x25f6a3['size']>0x0&&(_0x385bc=!!this['_joinWithAdjacentSuggestions'](_0x25f6a3)||_0x385bc),_0x385bc;}),_0x32290c['model']['document']['registerPostFixer'](_0xb93de2=>{let _0x401d02=!0x1;for(const _0x2336b1 of _0x32290c['model']['document']['differ']['getChanges']())if('insert'==_0x2336b1['type'])for(const _0x38fd8f of this['_suggestions']['values']()){if(_0x38fd8f['isMultiRange']||!_0x38fd8f['isInContent'])continue;const _0x719086='formatBlock'==_0x38fd8f['type'],_0x163f9a=this['_getAttributeKey'](_0x38fd8f),_0x427776=_0x163f9a&&this['_suggestionsConversion']['isBlockAttribute'](_0x163f9a);if(!_0x719086&&!_0x427776)continue;const _0x56ce59=_0x38fd8f['getFirstRange']();if(_0x56ce59['start']['parent']!=_0x56ce59['end']['parent']&&!_0x56ce59['end']['isAtEnd']){const _0x383dd7=_0x32290c['model']['createPositionAt'](_0x56ce59['start']['nodeAfter'],'end'),_0x5ef473=_0x32290c['model']['createRange'](_0x56ce59['start'],_0x383dd7);_0xb93de2['updateMarker'](_0x38fd8f['getFirstMarker'](),{'range':_0x5ef473}),_0x401d02=!0x0;}}return _0x401d02;}),_0x32290c['model']['document']['registerPostFixer'](_0x2bcce5=>this['_processAttributeChanges'](_0x2bcce5)),_0x32290c['model']['document']['registerPostFixer'](_0x162f77=>!_0x162f77['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x162f77)),_0x32290c['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x32290c['model']['document']['on']('change:data',(_0x5ab529,_0x1069f0)=>{if(!_0x1069f0['isLocal']||_0x1069f0['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x30cef8=_0x32290c['model']['document']['differ']['getChanges']();if(0x0==_0x30cef8['length'])return;const _0x590bba=[],_0x1a76ae=_0x30cef8['filter'](_0x4e85d4=>'attribute'==_0x4e85d4['type']),_0x7dd234=_0x30cef8['filter'](_0x4148e9=>'insert'==_0x4148e9['type']&&'$text'!=_0x4148e9['name']);for(const _0x2f163b of _0x1a76ae)this['_suggestionsConversion']['isRegisteredAttribute'](_0x2f163b['attributeKey'])&&_0x590bba['push']({'key':_0x2f163b['attributeKey'],'newValue':_0x2f163b['attributeNewValue'],'oldValue':_0x2f163b['attributeOldValue'],'range':sn(_0x2f163b['range'],_0x32290c['model'])});for(const _0x415174 of _0x7dd234){if('rename'!=_0x415174['action']&&'refresh'!=_0x415174['action'])continue;const _0x4e0632=rn(_0x415174['position']['nodeAfter'],_0x32290c['model']),_0x39e130=_0x415174['before'];'rename'==_0x415174['action']&&_0x590bba['push']({'key':Ke,'newValue':_0x415174['name'],'oldValue':_0x39e130['name'],'range':_0x4e0632});for(const [_0x2de26d,_0x1dbce8]of _0x39e130['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x2de26d))continue;const _0x5eec9f=_0x415174['attributes']['get'](_0x2de26d);_0x1dbce8!==_0x5eec9f&&_0x590bba['push']({'key':_0x2de26d,'newValue':_0x5eec9f,'oldValue':_0x1dbce8,'range':_0x4e0632});}for(const [_0x119533,_0x34d103]of _0x415174['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x119533)&&(_0x39e130['attributes']['has'](_0x119533)||_0x590bba['push']({'key':_0x119533,'newValue':_0x34d103,'oldValue':null,'range':_0x4e0632}));}0x0!=_0x590bba['length']&&_0x32290c['model']['enqueueChange'](_0x1069f0,_0x19973c=>{const _0x2322e9=_0xec3fc0();for(const {range:_0x50d475,key:_0x297d7b,oldValue:_0x112275,newValue:_0x18365e}of _0x590bba)this['markAttributeChange'](_0x50d475,_0x297d7b,_0x112275,_0x18365e,{'groupId':_0x2322e9});this['_reduceExistingSuggestions'](_0x19973c,_0x590bba);});},{'priority':'lowest'}),_0x32290c['model']['markers']['on']('update:suggestion',(_0x5a6fdd,_0xb3272b,_0x23a5d5)=>{if(null==_0x23a5d5){const {id:_0xe5fef2}=_0x36ab20(_0xb3272b['name']),_0x2c2b87=this['_suggestions']['get'](_0xe5fef2);_0x2c2b87&&_0x2c2b87['addMarkerName'](_0xb3272b['name']);}}),_0x32290c['model']['document']['on']('change:data',()=>{const _0x28a72b=Array['from'](_0x32290c['model']['document']['differ']['getChangedMarkers']())['filter'](_0x3b7cec=>'suggestion'===_0x36ab20(_0x3b7cec['name'])['group']);if(0x0===_0x28a72b['length'])return;_0x28a72b['sort']((_0x4b64df,_0x3321aa)=>{const _0x43d467=_0x4b64df['data']['oldRange'],_0x47b7a3=_0x3321aa['data']['oldRange'];return null===_0x43d467&&null===_0x47b7a3?0x0:null===_0x43d467&&null!==_0x47b7a3?-0x1:null!==_0x43d467&&null===_0x47b7a3?0x1:_0x43d467['start']['isBefore'](_0x47b7a3['start'])?-0x1:0x1;});const _0x15de65=new Set(),_0x49f309=new Set();for(const {name:_0x4e23ff,data:_0x45e379}of _0x28a72b){const {id:_0x3ca220}=_0x36ab20(_0x4e23ff);if(null===_0x45e379['oldRange']){const _0x44fdbb=this['_handleNewSuggestionMarker'](_0x4e23ff);_0x49f309['add'](_0x44fdbb);}else{const _0x57870e=this['_suggestions']['get'](_0x3ca220);null!==_0x45e379['newRange']||_0x57870e['isInContent']?(_0x15de65['add'](_0x57870e['head']),_0x49f309['add'](_0x57870e)):this['_removeSuggestion'](_0x57870e);}}_0x49f309['size']>0x0&&this['_refreshSuggestionsChain'](_0x49f309);for(const _0x238506 of _0x15de65)this['fire']('suggestionChanged',_0x238506);}),_0x32290c['model']['on']('applyOperation',(_0x57e7fa,_0x14d83e)=>{const _0x28c693=_0x14d83e[0x0];if(!this['_suggestions']['size'])return;if(!_0x28c693['isDocumentOperation'])return;if(_0x28c693['batch']['isUndo']||!_0x28c693['batch']['isLocal'])return;let _0x5c0f85,_0x5cb94d;switch(_0x28c693['type']){case'insert':_0x5c0f85=_0x32290c['model']['createPositionAt'](_0x28c693['position']),_0x5cb94d=_0x5c0f85['getShiftedBy'](_0x28c693['howMany']);break;case'split':_0x5c0f85=_0x32290c['model']['createPositionAt'](_0x28c693['splitPosition']),_0x5cb94d=_0x32290c['model']['createPositionAt'](_0x28c693['moveTargetPosition']);break;case'move':_0x5c0f85=_0x32290c['model']['createPositionAt'](_0x28c693['targetPosition']),_0x5cb94d=_0x5c0f85['getShiftedBy'](_0x28c693['howMany']);break;default:return;}const _0x47e41d=_0x32290c['model']['createRange'](_0x5c0f85,_0x5cb94d);_0x32290c['model']['change'](()=>{for(const {suggestion:_0x4c2c6f,meta:_0x60fa1d}of this['_findSuggestions'](_0x47e41d)){if(_0x4c2c6f['isMultiRange'])continue;if('formatInline'==_0x4c2c6f['type'])continue;const _0x459095=this['_getAttributeKey'](_0x4c2c6f);if(_0x459095&&this['_suggestionsConversion']['isBlockAttribute'](_0x459095)&&'split'!=_0x28c693['type'])continue;const _0x5a4e46=_0x4c2c6f['data']&&_0x4c2c6f['data']['multipleBlocks'];('formatBlock'!=_0x4c2c6f['type']||'split'==_0x28c693['type']&&!_0x5a4e46)&&(_0x60fa1d['containsRangeInObject']||'insertion'==_0x4c2c6f['type']&&_0x60fa1d['isOwn']||_0x4c2c6f['getFirstRange']()['containsRange'](_0x47e41d)&&this['_breakSuggestionMarker'](_0x4c2c6f,_0x5c0f85,_0x5cb94d));}});},{'priority':'lowest'}),_0x32290c['model']['on']('deleteContent',(_0x25fcfc,_0x150201)=>{const _0x47b38c=_0x150201[0x0],_0x3377a4=_0x150201[0x1];if(_0x3377a4&&_0x3377a4['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x47b38c['isCollapsed'])return;const _0x2d49d7=_0x32290c['model']['schema'],{start:_0x49ddf4,end:_0x5ffe3b}=_0x47b38c['getFirstRange'](),_0x5db53f=_0x49ddf4['nodeAfter']&&_0x2d49d7['isLimit'](_0x49ddf4['nodeAfter'])?null:_0x2d49d7['getNearestSelectionRange'](_0x49ddf4,'forward'),_0x7f284f=_0x5ffe3b['nodeBefore']&&_0x2d49d7['isLimit'](_0x5ffe3b['nodeBefore'])?null:_0x2d49d7['getNearestSelectionRange'](_0x5ffe3b,'backward'),_0x4da910=_0x32290c['model']['createRange'](_0x5db53f?_0x5db53f['start']:_0x49ddf4,_0x7f284f?_0x7f284f['end']:_0x5ffe3b);_0x32290c['model']['change'](_0x252b78=>{this['markDeletion'](_0x4da910);const _0xe12a13=_0x32290c['model']['schema']['getNearestSelectionRange'](_0x4da910['start']);_0x47b38c['is']('documentSelection')?_0x252b78['setSelection'](_0xe12a13):_0x47b38c['setTo'](_0xe12a13);}),_0x25fcfc['stop']();},{'priority':_0x5dc5ee['normal']+0xa}),_0x32290c['model']['on']('insertContent',(_0x1a040a,_0xd12970)=>{const _0x43799b=_0xd12970[_0xd12970['length']-0x1];_0x43799b&&_0x43799b['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x32290c['model']['change'](()=>{let _0x169b9a=_0x32290c['model']['insertContent'](_0xd12970[0x0],_0xd12970[0x1],_0xd12970[0x2],{'forceDefaultExecution':!0x0});if(!_0x169b9a)return;_0x1a040a['return']=_0x169b9a['clone']();const _0x2a5ca2=_0x169b9a['end']['nodeBefore'],_0x35cd66=_0x32290c['model']['schema'];_0x2a5ca2&&_0x35cd66['isBlock'](_0x2a5ca2)&&!_0x35cd66['isObject'](_0x2a5ca2)&&(_0x169b9a=_0x32290c['model']['createRange'](_0x169b9a['start'],_0x32290c['model']['createPositionAt'](_0x2a5ca2,'end'))),this['markInsertion'](_0x169b9a);}),_0x1a040a['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x14307d=new dt(_0x32290c,this['_suggestions']);_0x32290c['commands']['add']('acceptSuggestion',_0x14307d),this['enableCommand']('acceptSuggestion');const _0x189f07=new ft(_0x32290c,this['_suggestions']);_0x32290c['commands']['add']('discardSuggestion',_0x189f07),this['enableCommand']('discardSuggestion'),_0x32290c['commands']['add']('acceptAllSuggestions',new Lt(_0x32290c,_0x14307d,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x32290c['commands']['add']('discardAllSuggestions',new Lt(_0x32290c,_0x189f07,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x32290c['commands']['add']('acceptSelectedSuggestions',new It(_0x32290c,_0x14307d,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x32290c['commands']['add']('discardSelectedSuggestions',new It(_0x32290c,_0x189f07,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x31927c=_0x32290c['plugins']['get'](_0x267a96);this['listenTo'](_0x31927c,'addComment',(_0x6cb397,{threadId:_0x3ba00b})=>{const _0x561568=this['_suggestions']['get'](_0x3ba00b);_0x561568&&_0x561568['commentThread']&&0x1===_0x561568['commentThread']['length']&&this['_updateSuggestionData'](_0x3ba00b,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x31927c,'removeComment',(_0x38c57d,{threadId:_0x182ff5})=>{const _0x379c31=this['_suggestions']['get'](_0x182ff5);_0x379c31&&_0x379c31['commentThread']&&!_0x379c31['commentThread']['length']&&this['_updateSuggestionData'](_0x182ff5,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x77767a){const _0x40a31a=_0x7446f0([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]),_0x38e32e=0x3d8d0df,_0x4ecd6c=0x3df5997^_0x38e32e,_0xcdefdd=window[_0x7446f0([0x44,0x61,0x74,0x65])][_0x7446f0([0x6e,0x6f,0x77])](),_0x41352e=_0x77767a[_0x7446f0([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3cbab9=new window[(_0x7446f0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x60a99d=>{_0x41352e[_0x7446f0([0x6f,0x6e,0x63,0x65])](_0x7446f0([0x72,0x65,0x61,0x64,0x79]),_0x60a99d);}),_0x348993={[_0x7446f0([0x6b,0x74,0x79])]:_0x7446f0([0x45,0x43]),[_0x7446f0([0x75,0x73,0x65])]:_0x7446f0([0x73,0x69,0x67]),[_0x7446f0([0x63,0x72,0x76])]:_0x7446f0([0x50,0x2d,0x32,0x35,0x36]),[_0x7446f0([0x78])]:_0x7446f0([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]),[_0x7446f0([0x79])]:_0x7446f0([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]),[_0x7446f0([0x61,0x6c,0x67])]:_0x7446f0([0x45,0x53,0x32,0x35,0x36])},_0x52b10d=_0x41352e[_0x7446f0([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x7446f0([0x67,0x65,0x74])](_0x7446f0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x146598(){let _0x305c76,_0x4b8cb2=null,_0x82e762=null;try{if(_0x52b10d==_0x7446f0([0x47,0x50,0x4c]))return _0x7446f0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x305c76=_0x45a403(),!_0x305c76)return _0x7446f0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x305c76[_0x7446f0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x82e762=_0xded120(_0x305c76[_0x7446f0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x305c76[_0x7446f0([0x6a,0x74,0x69])])),await _0x48cbbc()?_0x5a0f91()?_0x5d0d29()?_0x7446f0([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x49f146()?(_0x305c76[_0x7446f0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x7446f0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4b8cb2=_0x269150(_0x7446f0([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5eb49e()):_0x7446f0([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x7446f0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x7446f0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x7446f0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5d0d29(){const _0x364666=[_0x7446f0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x7446f0([0x74,0x72,0x69,0x61,0x6c])][_0x7446f0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x305c76[_0x7446f0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xcdefdd/0x3e8:0xe10*_0x4ecd6c;return _0x305c76[_0x7446f0([0x65,0x78,0x70])]<_0x364666;}function _0x5a0f91(){const _0x523ecb=_0x305c76[_0x7446f0([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x523ecb)return!0x1;if(_0x523ecb[_0x7446f0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x7446f0([0x2a])))return!0x0;if(_0x523ecb[_0x7446f0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x7446f0([0x54,0x43])))return!0x0;if(_0x523ecb[_0x7446f0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x7446f0([0x52,0x54,0x43]))){if(_0x219f74())return!0x0;if(_0x419588()||_0x158d8d())return!0x0;}return!0x1;}function _0x49f146(){const _0x4ab4bc=_0x305c76[_0x7446f0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4ab4bc||0x0==_0x4ab4bc[_0x7446f0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x497da1}=new URL(window[_0x7446f0([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4ab4bc[_0x7446f0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x497da1))return!0x0;const _0x12f2f8=_0x497da1[_0x7446f0([0x73,0x70,0x6c,0x69,0x74])](_0x7446f0([0x2e]));return _0x4ab4bc[_0x7446f0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x34b52a=>_0x34b52a[_0x7446f0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x7446f0([0x2a])))[_0x7446f0([0x6d,0x61,0x70])](_0x5a4dee=>_0x5a4dee[_0x7446f0([0x73,0x70,0x6c,0x69,0x74])](_0x7446f0([0x2e])))[_0x7446f0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xeb5811=>_0xeb5811[_0x7446f0([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x12f2f8[_0x7446f0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x7446f0([0x6d,0x61,0x70])](_0xbac961=>Array(_0x12f2f8[_0x7446f0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xbac961[_0x7446f0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x7446f0([0x66,0x69,0x6c,0x6c])](_0xbac961[0x0]===_0x7446f0([0x2a])?_0x7446f0([0x2a]):'')[_0x7446f0([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xbac961))[_0x7446f0([0x73,0x6f,0x6d,0x65])](_0x43c6c6=>_0x12f2f8[_0x7446f0([0x65,0x76,0x65,0x72,0x79])]((_0x469278,_0x4116e9)=>_0x43c6c6[_0x4116e9]===_0x469278||_0x43c6c6[_0x4116e9]===_0x7446f0([0x2a])));}function _0x5eb49e(){return _0x4b8cb2&&_0x82e762?new window[(_0x7446f0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xb6a769,_0x62df8f)=>{_0x4b8cb2[_0x7446f0([0x74,0x68,0x65,0x6e])](_0xb6a769,_0x62df8f),_0x82e762[_0x7446f0([0x74,0x68,0x65,0x6e])](_0x8af59d=>{_0x8af59d!=_0x7446f0([0x56,0x61,0x6c,0x69,0x64])&&_0xb6a769(_0x8af59d);},_0x62df8f);}):_0x4b8cb2||_0x82e762||_0x7446f0([0x56,0x61,0x6c,0x69,0x64]);}}function _0xded120(_0x6e5a0,_0x4b9d72){return new window[(_0x7446f0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3564af=>{if(_0x342975())return _0x3564af(_0x7446f0([0x56,0x61,0x6c,0x69,0x64]));_0x1d2144(),_0x41352e[_0x7446f0([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x7446f0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1b4543=!0x1;const _0x43cb06=_0xec3fc0();function _0x539f26(_0xb33688){return!!_0xb33688&&(typeof _0xb33688===_0x7446f0([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xb33688===_0x7446f0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xb33688[_0x7446f0([0x74,0x68,0x65,0x6e])]===_0x7446f0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xb33688[_0x7446f0([0x63,0x61,0x74,0x63,0x68])]===_0x7446f0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x27b459(_0x5bf686){_0x4f59cc(_0x5bf686)[_0x7446f0([0x74,0x68,0x65,0x6e])](_0x324914=>{if(!_0x324914||_0x324914[_0x7446f0([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x7446f0([0x6f,0x6b]))return _0x7446f0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2a9831(_0x3d2ee5(_0x43cb06+_0x4b9d72))!=_0x324914[_0x7446f0([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x7446f0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x7446f0([0x56,0x61,0x6c,0x69,0x64]);})[_0x7446f0([0x74,0x68,0x65,0x6e])](_0x39547e=>(_0x138646(),_0x39547e),()=>{const _0x29cb39=_0x291139();return null==_0x29cb39?(_0x138646(),_0x7446f0([0x56,0x61,0x6c,0x69,0x64])):_0x7446f0(_0xcdefdd-_0x29cb39>(0x27d454df^_0x38e32e)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x7446f0([0x74,0x68,0x65,0x6e])](_0x3564af)[_0x7446f0([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3564af(_0x7446f0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x358b0c=0x3ee3e5f^_0x38e32e;function _0x138646(){const _0x2d2518=_0x7446f0([0x6c,0x6c,0x63,0x74,0x2d])+_0x2a9831(_0x3d2ee5(_0x6e5a0)),_0x4b04ed=_0x42d7c6(_0x2a9831(window[_0x7446f0([0x4d,0x61,0x74,0x68])][_0x7446f0([0x63,0x65,0x69,0x6c])](_0xcdefdd/_0x358b0c)));window[_0x7446f0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x7446f0([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2d2518,_0x4b04ed);}function _0x291139(){const _0x4ba1df=_0x7446f0([0x6c,0x6c,0x63,0x74,0x2d])+_0x2a9831(_0x3d2ee5(_0x6e5a0)),_0x2529df=window[_0x7446f0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x7446f0([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4ba1df);return _0x2529df?window[_0x7446f0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x42d7c6(_0x2529df),0x10)*_0x358b0c:null;}function _0x4f59cc(_0x23f3a5){return new window[(_0x7446f0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1960bc,_0x652d96)=>{_0x23f3a5[_0x7446f0([0x74,0x68,0x65,0x6e])](_0x1960bc,_0x652d96),window[_0x7446f0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x652d96,0x3d9041f^_0x38e32e);});}}_0x41352e[_0x7446f0([0x6f,0x6e])](_0x7446f0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1ce33d,_0x428d1e)=>{if(_0x428d1e[0x0]!=_0x6e5a0)return _0x3564af(_0x7446f0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x428d1e[0x1]={..._0x428d1e[0x1],[_0x7446f0([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x43cb06};},{[_0x7446f0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x7446f0([0x68,0x69,0x67,0x68])}),_0x41352e[_0x7446f0([0x6f,0x6e])](_0x7446f0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xfa1648=>{_0x539f26(_0xfa1648[_0x7446f0([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1b4543=!0x0,_0x27b459(_0xfa1648[_0x7446f0([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x7446f0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x7446f0([0x6c,0x6f,0x77])}),_0x3cbab9[_0x7446f0([0x74,0x68,0x65,0x6e])](()=>{_0x1b4543||_0x3564af(_0x7446f0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x342975(){return _0x41352e[_0x7446f0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x7446f0([0x76,0x69,0x65,0x77])][_0x7446f0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x7446f0([0x61,0x75,0x74,0x6f]);}function _0x1d2144(){_0x41352e[_0x7446f0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x7446f0([0x76,0x69,0x65,0x77])][_0x7446f0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x7446f0([0x61,0x75,0x74,0x6f]);}}function _0x269150(_0x55cedc){const _0x4a895f=[new window[(_0x7446f0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c0356=>setTimeout(_0x5c0356,0x3d1ee13^_0x38e32e)),_0x3cbab9[_0x7446f0([0x74,0x68,0x65,0x6e])](()=>new window[(_0x7446f0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3d776a=>{let _0x465075=0x0;_0x41352e[_0x7446f0([0x6d,0x6f,0x64,0x65,0x6c])][_0x7446f0([0x6f,0x6e])](_0x7446f0([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1c9177,_0x122341)=>{_0x122341[0x0][_0x7446f0([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x465075++,_0x465075==(0x3d8d537^_0x38e32e)&&(_0x3d776a(),_0x1c9177[_0x7446f0([0x6f,0x66,0x66])]());});}))];return window[_0x7446f0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x7446f0([0x72,0x61,0x63,0x65])](_0x4a895f)[_0x7446f0([0x74,0x68,0x65,0x6e])](()=>_0x55cedc);}async function _0x2dc658(){await _0x3cbab9,_0x41352e[_0x7446f0([0x6d,0x6f,0x64,0x65,0x6c])][_0x7446f0([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4aeef9,_0x41352e[_0x7446f0([0x6d,0x6f,0x64,0x65,0x6c])][_0x7446f0([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4aeef9,_0x41352e[_0x7446f0([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x7446f0([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x219f74(){return _0x5f35e5(_0x7446f0([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x160e0e(_0x7446f0([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x7446f0([0x73,0x74,0x61,0x74,0x65])]==_0x7446f0([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x419588(){return _0x5f35e5(_0x7446f0([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 _0x158d8d(){return _0x5f35e5(_0x7446f0([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x40a5dd(_0x213c98){const _0x5ed077=_0x4e2069();_0x41352e[_0x5ed077]=_0x7446f0([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x213c98,_0x213c98!=_0x7446f0([0x56,0x61,0x6c,0x69,0x64])&&_0x2dc658();}function _0x4e2069(){const _0x89ff34=window[_0x7446f0([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x7446f0([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x7446f0([0x6e,0x6f,0x77])]())[_0x7446f0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x7446f0([0x2e]),'');let _0x435637=_0x7446f0([0x52]);for(let _0x13adcf=0x0;_0x13adcf<_0x89ff34[_0x7446f0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x13adcf+=0x2){let _0x2ef55d=window[_0x7446f0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x89ff34[_0x7446f0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x13adcf,_0x13adcf+0x2));_0x2ef55d>=_0x40a31a[_0x7446f0([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2ef55d-=_0x40a31a[_0x7446f0([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x435637+=_0x40a31a[_0x2ef55d];}return _0x435637;}function _0x45a403(){const _0x485b4c=_0x52b10d[_0x7446f0([0x73,0x70,0x6c,0x69,0x74])](_0x7446f0([0x2e]));if(0x3!=_0x485b4c[_0x7446f0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xa851d2(_0x485b4c[0x1]);function _0xa851d2(_0xe8bf76){const _0x243688=_0x118816(_0xe8bf76);return _0x243688&&_0x57c8e9()?_0x243688:null;function _0x57c8e9(){const _0x50a684=_0x243688[_0x7446f0([0x6a,0x74,0x69])],_0x2cfb1e=window[_0x7446f0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x50a684[_0x7446f0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x50a684[_0x7446f0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4d1309={..._0x243688,[_0x7446f0([0x6a,0x74,0x69])]:_0x50a684[_0x7446f0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x50a684[_0x7446f0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4d1309[_0x7446f0([0x76,0x63])],_0x3d2ee5(_0x4d1309)==_0x2cfb1e;}}}async function _0x48cbbc(){let _0x2fd623=!0x0;try{const _0x2a42f1=_0x52b10d[_0x7446f0([0x73,0x70,0x6c,0x69,0x74])](_0x7446f0([0x2e])),[_0x4b0608,_0x3b8833,_0x1500ad]=_0x2a42f1;return _0x507adc(_0x4b0608),await _0x1e3a8e(_0x4b0608,_0x3b8833,_0x1500ad),_0x2fd623;}catch{return!0x1;}function _0x507adc(_0x1a10c2){const _0x46a7ed=_0x118816(_0x1a10c2);_0x46a7ed&&_0x46a7ed[_0x7446f0([0x61,0x6c,0x67])]==_0x7446f0([0x45,0x53,0x32,0x35,0x36])||(_0x2fd623=!0x1);}async function _0x1e3a8e(_0x29eaf4,_0x3437cb,_0x3d707b){const _0x479a65=window[_0x7446f0([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x7446f0([0x66,0x72,0x6f,0x6d])](_0x5201e7(_0x3d707b),_0x430c1f=>_0x430c1f[_0x7446f0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x428562=new window[(_0x7446f0([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x7446f0([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x29eaf4+_0x7446f0([0x2e])+_0x3437cb),_0x33682c=window[_0x7446f0([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x7446f0([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x33682c)return;const _0x44fc83=await _0x33682c[_0x7446f0([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x7446f0([0x6a,0x77,0x6b]),_0x348993,{[_0x7446f0([0x6e,0x61,0x6d,0x65])]:_0x7446f0([0x45,0x43,0x44,0x53,0x41]),[_0x7446f0([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x7446f0([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x7446f0([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x33682c[_0x7446f0([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x7446f0([0x6e,0x61,0x6d,0x65])]:_0x7446f0([0x45,0x43,0x44,0x53,0x41]),[_0x7446f0([0x68,0x61,0x73,0x68])]:{[_0x7446f0([0x6e,0x61,0x6d,0x65])]:_0x7446f0([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x44fc83,_0x479a65,_0x428562)||(_0x2fd623=!0x1);}}function _0x118816(_0x2c0690){return _0x2c0690[_0x7446f0([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x7446f0([0x65,0x79]))?JSON[_0x7446f0([0x70,0x61,0x72,0x73,0x65])](_0x5201e7(_0x2c0690)):null;}function _0x5201e7(_0x433c60){return window[_0x7446f0([0x61,0x74,0x6f,0x62])](_0x433c60[_0x7446f0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x7446f0([0x2b]))[_0x7446f0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x7446f0([0x2f])));}function _0x3d2ee5(_0x5aa724){let _0x199b3f=0x1505;function _0x3a8d10(_0x42d2e4){for(let _0x5441b0=0x0;_0x5441b0<_0x42d2e4[_0x7446f0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5441b0++){const _0x521d0a=_0x42d2e4[_0x7446f0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5441b0);_0x199b3f=(_0x199b3f<<0x5)+_0x199b3f+_0x521d0a,_0x199b3f&=_0x199b3f;}}function _0x1ef2e8(_0x17163c){Array[_0x7446f0([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x17163c)?_0x17163c[_0x7446f0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1ef2e8):_0x17163c&&typeof _0x17163c==_0x7446f0([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x7446f0([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x17163c)[_0x7446f0([0x73,0x6f,0x72,0x74])]()[_0x7446f0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4fcd52,_0x43797e])=>{_0x3a8d10(_0x4fcd52),_0x1ef2e8(_0x43797e);}):_0x3a8d10(window[_0x7446f0([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x17163c));}return _0x1ef2e8(_0x5aa724),_0x199b3f>>>0x0;}function _0x2a9831(_0x52fa2b){return _0x52fa2b[_0x7446f0([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x7446f0([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x7446f0([0x30]));}function _0x42d7c6(_0x34e663){return _0x34e663[_0x7446f0([0x73,0x70,0x6c,0x69,0x74])]('')[_0x7446f0([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x7446f0([0x6a,0x6f,0x69,0x6e])]('');}function _0x5f35e5(_0x49bf86){return _0x41352e[_0x7446f0([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x7446f0([0x68,0x61,0x73])](_0x49bf86);}function _0x160e0e(_0x2a6c6e){return _0x41352e[_0x7446f0([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x7446f0([0x67,0x65,0x74])](_0x2a6c6e);}function _0x4aeef9(){}function _0x7446f0(_0x938903){return _0x938903['map'](_0x21f6aa=>String['fromCharCode'](_0x21f6aa))['join']('');}_0x40a5dd(await _0x146598());}(this);}set['adapter'](_0x1ccf55){if(this['_adapter'])throw new _0x24c1f2('track-changes-adapter-already-set',this);this['_adapter']=_0x1ccf55;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0xdf9e40=!0x1,toJSON:_0x59cee5=!0x1}={}){const _0x7b1c88=[];for(const _0x425a98 of this['_suggestions']['values']())_0xdf9e40&&!_0x425a98['isInContent']||_0x7b1c88['push'](_0x425a98);return _0x59cee5?_0x7b1c88['map'](_0x5d761d=>_0x5d761d['toJSON']()):_0x7b1c88;}['getSuggestion'](_0x26db74){const _0x48f8b4=this['_suggestions']['get'](_0x26db74);if(!_0x48f8b4)throw new _0x24c1f2('track-changes-suggestion-not-found',this);return _0x48f8b4;}['hasSuggestion'](_0x3277b2){return this['_suggestions']['has'](_0x3277b2);}['addSuggestionData'](_0x3c3726){const {authorId:_0x4b47db,id:_0x39ba0e,originalSuggestionId:_0xfde408,attributes:_0x3e001a}=_0x3c3726,[_0x2ffb73,_0x4d024d]=_0x3c3726['type']['split'](':'),_0x146f18=this['_suggestions']['get'](_0x39ba0e)||this['_createSuggestion'](_0x2ffb73,_0x4d024d,_0x39ba0e,_0x4b47db,_0x3e001a,_0xfde408);if(this['_addThreadToSuggestion'](_0x146f18),this['_checkSuggestionCorrectness'](_0x146f18,_0x2ffb73,_0x4d024d||null,_0x4b47db),_0x146f18['createdAt']=_0x3c3726['createdAt'],_0x146f18['_isDataLoaded']=!0x0,_0x3e001a&&_0x3e001a['@external']){const _0x22e10a=_0x3e001a['@external'],_0x422372=this['_getExternalAuthor'](_0x22e10a['authorName']);_0x146f18['authoredAt']=_0x22e10a['createdAt'],_0x146f18['author']=_0x422372,_0x146f18['isExternal']=!0x0;}else _0x146f18['authoredAt']=_0x3c3726['createdAt'];switch(_0x3c3726['data']&&(_0x146f18['data']=_0x3c3726['data']),_0x3c3726['attributes']&&(_0x146f18['attributes']=_0x3c3726['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x146f18['_saved']=!0x0),this['_suggestionState']['get'](_0x146f18)){case'notReady':this['_suggestionState']['set'](_0x146f18,'dataReady');break;case'markerReady':_0x146f18['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x146f18])),this['_refreshSuggestionsChain'](new Set([_0x146f18])),this['_suggestionState']['set'](_0x146f18,'ready'),this['fire']('suggestionLoaded',_0x146f18)):this['_suggestionState']['set'](_0x146f18,'removed');}return _0x146f18;}['acceptSuggestion'](_0x5751be){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x28f172 of _0x5751be['getAllAdjacentSuggestions']())_0x28f172['accept']();});});}['discardSuggestion'](_0x20a7eb){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1e14de of _0x20a7eb['getAllAdjacentSuggestions']())_0x1e14de['discard']();});});}['enableCommand'](_0x2ddfad,_0x5aa37d){const _0x3c019a=this['editor']['commands']['get'](_0x2ddfad);if(!_0x3c019a)throw new _0x24c1f2('track-changes-command-not-found',this,{'commandName':_0x2ddfad});if(this['_enabledCommands']['has'](_0x3c019a))throw new _0x24c1f2('track-changes-enable-command-twice',this,{'commandName':_0x2ddfad});this['_enabledCommands']['add'](_0x3c019a),_0x5aa37d&&_0x3c019a['on']('execute',(_0x5c3677,_0x2ca2f0)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x2ca2f0['length']>0x0&&_0x2ca2f0[_0x2ca2f0['length']-0x1]&&_0x2ca2f0[_0x2ca2f0['length']-0x1]['forceDefaultExecution']?_0x2ca2f0['pop']():(_0x5c3677['return']=_0x5aa37d((..._0x49f318)=>_0x3c019a['execute'](..._0x49f318,{'forceDefaultExecution':!0x0}),..._0x2ca2f0),_0x5c3677['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x2c3b81){let _0x1d8d5f,_0x5f1a8f;const _0x23bc56=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x1d8d5f=_0x2c3b81();}catch(_0x5d7ca9){_0x5f1a8f=_0x5d7ca9;}return _0x23bc56||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x5f1a8f&&_0x24c1f2['rethrowUnexpectedError'](_0x5f1a8f,this),_0x1d8d5f;}['markInsertion'](_0x2dc8ed,_0x47b30d=null,_0x3662df={}){if(_0x2dc8ed['isCollapsed'])return null;const _0x3c59f8=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x3662df['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x234b8f,meta:_0x346ad2}of this['_findSuggestions'](_0x2dc8ed,'insertion'))if(_0x346ad2['isOwn']){if(!_0x346ad2['isNextTo']){if(_0x346ad2['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!cn(_0x234b8f,_0x3662df))continue;return _0x234b8f;}if(cn(_0x234b8f,_0x3662df))return _0x234b8f;this['_breakSuggestionMarker'](_0x234b8f,_0x2dc8ed['start'],_0x2dc8ed['end']);break;}if(_0x47b30d==_0x234b8f['subType']&&cn(_0x234b8f,_0x3662df)){const _0x164704=_0x234b8f['getFirstRange']();return _0x164704['start']['isEqual'](_0x2dc8ed['end'])?this['_setSuggestionRange'](_0x234b8f,this['_model']['createRange'](_0x2dc8ed['start'],_0x164704['end'])):this['_setSuggestionRange'](_0x234b8f,this['_model']['createRange'](_0x164704['start'],_0x2dc8ed['end'])),_0x234b8f;}}const _0x454856=_0xec3fc0(),_0x1c5f45=_0x3c59f8['id'],_0x6afd80=_0x47b30d?'insertion:'+_0x47b30d:'insertion',_0x512de6=this['_setSuggestionData']({'id':_0x454856,'type':_0x6afd80,'createdAt':new Date(),'authorId':_0x1c5f45,'attributes':_0x3662df});return this['_addSuggestionMarker'](_0x6afd80,_0x454856,_0x1c5f45,_0x2dc8ed),_0x512de6;}['markMultiRangeInsertion'](_0x49b2ed,_0x4a0df4='multi',_0x8e9b3b={}){const _0x2599f7=this['editor']['plugins']['get']('Users')['me'],_0x534d15=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x4a0df4,'join');this['_trackingSessionId']&&(_0x8e9b3b['trackingSessionId']=this['_trackingSessionId']);for(const _0x26b956 of this['getSuggestions']())if(_0x26b956['author']['id']==_0x2599f7['id']&&'insertion'==_0x26b956['type']&&_0x26b956['subType']==_0x4a0df4&&cn(_0x26b956,_0x8e9b3b)&&(_0x534d15(_0x26b956['getRanges'](),_0x49b2ed)||_0x534d15(_0x49b2ed,_0x26b956['getRanges']()))){for(const _0x138e0b of _0x49b2ed)_0x26b956['addRange'](_0x138e0b);return _0x26b956;}for(const {suggestion:_0x513f6a,meta:_0x28c28f}of this['_findSuggestions'](_0x49b2ed,'insertion')){if(!_0x28c28f['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x28c28f['containsRangeInObject'])continue;if(!cn(_0x513f6a,_0x8e9b3b))continue;let _0x292ebb=!0x0;for(const _0x30858e of _0x513f6a['getRanges']())for(const _0x4734fb of _0x49b2ed)if(!_0x30858e['containsRange'](_0x4734fb)){_0x292ebb=!0x1;break;}if(_0x292ebb)return _0x513f6a;}const _0x30cdc3=_0xec3fc0(),_0x172d52=_0x2599f7['id'],_0x128dcb='insertion:'+_0x4a0df4,_0xa768d4=this['_setSuggestionData']({'id':_0x30cdc3,'type':_0x128dcb,'createdAt':new Date(),'authorId':_0x172d52,'attributes':_0x8e9b3b});for(const _0x6f9518 of _0x49b2ed)this['_addSuggestionMarker'](_0x128dcb,_0x30cdc3,_0x172d52,_0x6f9518,bt['getMultiRangeId']());return _0xa768d4;}['markInlineFormat'](_0x3df3fc,_0x25a36b,_0x3931ee=null,_0xa53407={}){if(_0x3931ee=_0x3931ee||Je(_0x25a36b),_0x3df3fc['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0xa53407['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x2de50b=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3931ee,'accept');return this['forceDefaultExecution'](()=>_0x2de50b([_0x3df3fc],_0x25a36b,_0xa53407)),null;}const _0x4b521a=this['editor']['plugins']['get']('Users')['me'],_0x1f4ec6=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x2a2997,meta:_0x4d46b2}of this['_findSuggestions'](_0x3df3fc,'insertion'))_0x4d46b2['isOwn']&&!_0x4d46b2['isInsideObject']&&_0x1f4ec6['push'](..._0x2a2997['getRanges']());}const _0x33b275=function(_0x34293e,_0x3da7f6){const _0x46b5f7=[];for(const _0x2e3383 of _0x3da7f6){const _0x2dfd69=_0x34293e['getIntersection'](_0x2e3383);_0x2dfd69&&_0x46b5f7['push'](_0x2dfd69);}return _0x46b5f7;}(_0x3df3fc,_0x1f4ec6),_0x90d546=function(_0x1ec5dc,_0x18874c){const _0x4a3a5f=[_0x1ec5dc];for(const _0x1bb3d2 of _0x18874c){let _0x42c498=0x0;for(;_0x42c498<_0x4a3a5f['length'];){const _0x19ee91=_0x4a3a5f[_0x42c498]['getDifference'](_0x1bb3d2);_0x4a3a5f['splice'](_0x42c498,0x1,..._0x19ee91),_0x42c498+=_0x19ee91['length'];}}return _0x4a3a5f;}(_0x3df3fc,_0x1f4ec6);_0x33b275['length']&&this['_model']['change'](()=>{for(const _0x2fbeaa of _0x33b275){const _0x152391=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3931ee,'accept');this['forceDefaultExecution'](()=>_0x152391([_0x2fbeaa],_0x25a36b,_0xa53407));}});for(const _0x178aef of _0x90d546){let _0x1822af=null,_0x2fb59c=_0x178aef['start'],_0x35f024=_0x178aef['end'];for(const {suggestion:_0x5c16f6,meta:_0x11f02c}of this['_findSuggestions'](_0x178aef,'formatInline')){if(!_0x11f02c['isOwn'])continue;if(_0x5c16f6['subType']!=_0x3931ee)continue;if(!cn(_0x5c16f6,_0xa53407))continue;const _0x5af51c=_0x5c16f6['getFirstRange']();if(_0x5af51c['containsRange'](_0x178aef,!0x0))return null;_0x2fb59c=_0x2fb59c['isBefore'](_0x5af51c['start'])?_0x2fb59c:_0x5af51c['start'],_0x35f024=_0x35f024['isAfter'](_0x5af51c['end'])?_0x35f024:_0x5af51c['end'],_0x1822af?_0x5af51c['start']['isBefore'](_0x1822af['getFirstRange']()['start'])?(_0x1822af['removeMarkers'](),_0x1822af=_0x5c16f6):_0x5c16f6['removeMarkers']():_0x1822af=_0x5c16f6;}const _0x1811e5=this['_model']['createRange'](_0x2fb59c,_0x35f024);if(_0x1822af)this['_setSuggestionRange'](_0x1822af,_0x1811e5);else{const _0x3d8406=_0xec3fc0(),_0x348cf2=_0x4b521a['id'];this['_setSuggestionData']({'id':_0x3d8406,'type':'formatInline:'+_0x3931ee,'data':_0x25a36b,'createdAt':new Date(),'authorId':_0x348cf2,'attributes':_0xa53407}),this['_addSuggestionMarker']('formatInline:'+_0x3931ee,_0x3d8406,_0x348cf2,_0x1811e5);}}return null;}['markBlockFormat'](_0x38f306,_0x3bcb91,_0xac18eb=[],_0x4e318d=null,_0xc3507a={}){_0x3bcb91['formatGroupId']||(_0x3bcb91['formatGroupId']=_0x3bcb91['commandName']),_0x3bcb91['multipleBlocks']=_0x38f306['is']('range'),_0x4e318d=_0x4e318d||Je(_0x3bcb91);const _0xd08b4c=_0xac18eb['map'](_0x223efd=>rn(_0x223efd,this['_model'])),_0x2a97ef=_0x38f306['is']('range')?_0x38f306:rn(_0x38f306,this['_model']);if(this['_trackingSessionId']&&(_0xc3507a['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x32e154=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4e318d,'accept');return this['forceDefaultExecution'](()=>_0x32e154([_0x2a97ef],_0x3bcb91,_0xc3507a)),null;}_0xd08b4c['push'](_0x2a97ef);let _0x4c2ee2=!0x0;for(const _0x3d5f10 of _0xd08b4c)if(!this['_rangeIsInLocalUserInsertion'](_0x3d5f10)){_0x4c2ee2=!0x1;break;}if(_0x4c2ee2&&'always'!==this['_trackFormatChanges']){const _0x376227=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4e318d,'accept');return this['forceDefaultExecution'](()=>_0x376227([_0x2a97ef],_0x3bcb91,_0xc3507a)),null;}let _0x3267d9=null,_0x2c7b9b=_0x2a97ef['start'],_0x570212=_0x2a97ef['end'];for(const {suggestion:_0x473a31,meta:_0x345b21}of this['_findSuggestions'](_0x2a97ef,'formatBlock')){if(!_0x345b21['isOwn'])continue;if(_0x345b21['isNextTo']||_0x345b21['containsRangeInObject']||_0x345b21['isInsideObject'])continue;if(_0x473a31['data']['formatGroupId']!=_0x3bcb91['formatGroupId'])continue;if(!cn(_0x473a31,_0xc3507a))continue;const _0x205f22=_0x473a31['getFirstRange']();if(_0x473a31['subType']==_0x4e318d){if(_0x205f22['containsRange'](_0x2a97ef,!0x0))return null;_0x2c7b9b=_0x2c7b9b['isBefore'](_0x205f22['start'])?_0x2c7b9b:_0x205f22['start'],_0x570212=_0x570212['isAfter'](_0x205f22['end'])?_0x570212:_0x205f22['end'],_0x3267d9?_0x205f22['start']['isBefore'](_0x3267d9['getFirstRange']()['start'])?(_0x3267d9['removeMarkers'](),_0x3267d9=_0x473a31):_0x473a31['removeMarkers']():_0x3267d9=_0x473a31;}else{const _0x2de88f=_0x2a97ef['getIntersection'](_0x205f22);this['_cutOutSuggestionMarker'](_0x473a31,_0x2de88f);}}const _0x2d4540=this['editor']['plugins']['get']('Users')['me'],_0x2993e5=_0xec3fc0(),_0x5eb335=_0x2d4540['id'];if(_0x3267d9)return this['_setSuggestionRange'](_0x3267d9,this['_model']['createRange'](_0x2c7b9b,_0x570212)),_0x3267d9;{const _0x55fd98=this['_setSuggestionData']({'id':_0x2993e5,'type':'formatBlock:'+_0x4e318d,'data':_0x3bcb91,'createdAt':new Date(),'authorId':_0x5eb335,'attributes':_0xc3507a});return this['_addSuggestionMarker']('formatBlock:'+_0x4e318d,_0x2993e5,_0x5eb335,this['_model']['createRange'](_0x2c7b9b,_0x570212)),_0x55fd98;}}['markMultiRangeBlockFormat'](_0x5523ca,_0x22fae2,_0x4335fa=[],_0x2a5d2d=null,_0x2316ee={}){_0x22fae2['formatGroupId']||(_0x22fae2['formatGroupId']=_0x22fae2['commandName']);const _0x1dda2f=_0x5523ca[0x0];_0x22fae2['multipleBlocks']=_0x1dda2f['is']('range'),_0x2a5d2d=_0x2a5d2d||Je(_0x22fae2);const _0xfc4b7c=_0x4335fa['map'](_0x732e24=>rn(_0x732e24,this['_model'])),_0xae796a=_0x1dda2f['is']('range')?_0x5523ca:_0x5523ca['map'](_0x572d04=>rn(_0x572d04,this['_model']));if(this['_trackingSessionId']&&(_0x2316ee['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x3dcb6c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2a5d2d,'accept');return this['forceDefaultExecution'](()=>_0x3dcb6c(_0xae796a,_0x22fae2,_0x2316ee)),null;}_0xfc4b7c['push'](..._0xae796a);let _0x3c933a=!0x0;for(const _0x4a63bc of _0xfc4b7c)if(!this['_rangeIsInLocalUserInsertion'](_0x4a63bc)){_0x3c933a=!0x1;break;}if(_0x3c933a&&'always'!==this['_trackFormatChanges']){const _0x118ed6=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2a5d2d,'accept');return this['forceDefaultExecution'](()=>_0x118ed6(_0xae796a,_0x22fae2,_0x2316ee)),null;}const _0x51c331=this['editor']['plugins']['get']('Users')['me'];for(const _0x1be88a of this['getSuggestions']()){const _0x50e83f=_0x1be88a['data'];if(_0x1be88a['author']['id']!=_0x51c331['id'])continue;if('formatBlock'!=_0x1be88a['type']||_0x50e83f['formatGroupId']!=_0x22fae2['formatGroupId'])continue;if(!cn(_0x1be88a,_0x2316ee))continue;const _0x4b20eb=_0x1be88a['subType']==_0x2a5d2d;for(let _0x3d1a42=0x0;_0x3d1a42<_0xae796a['length'];_0x3d1a42++){const _0x4443c2=_0xae796a[_0x3d1a42];for(const _0x750cd4 of _0x1be88a['getMarkers']()){const _0x1582af=_0x750cd4['getRange']();if(_0x4443c2['isEqual'](_0x1582af)){_0x4b20eb?(_0xae796a['splice'](_0x3d1a42,0x1),_0x3d1a42--):_0x1be88a['removeMarker'](_0x750cd4['name']);break;}}}}if(0x0==_0xae796a['length'])return null;const _0x38034e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2a5d2d,'join');for(const _0x276502 of this['getSuggestions']()){const _0x13384d=_0x276502['data'];if(_0x276502['author']['id']==_0x51c331['id']&&('formatBlock'==_0x276502['type']&&_0x13384d['formatGroupId']==_0x22fae2['formatGroupId']&&_0x276502['subType']==_0x2a5d2d&&cn(_0x276502,_0x2316ee)&&(_0x38034e(_0x276502['getRanges'](),_0xae796a)||_0x38034e(_0xae796a,_0x276502['getRanges']())))){for(const _0x2606b6 of _0xae796a)_0x276502['addRange'](_0x2606b6);return _0x276502;}}const _0x2f5211=_0xec3fc0(),_0x34a99a=_0x51c331['id'],_0x40ade1='formatBlock:'+_0x2a5d2d,_0x387227=this['_setSuggestionData']({'id':_0x2f5211,'type':_0x40ade1,'data':_0x22fae2,'createdAt':new Date(),'authorId':_0x34a99a,'attributes':_0x2316ee});for(const _0x164fc7 of _0xae796a)this['_addSuggestionMarker'](_0x40ade1,_0x2f5211,_0x34a99a,_0x164fc7,bt['getMultiRangeId']());return _0x387227;}['markDeletion'](_0x4152f8,_0x304ec3=null,_0x5235eb={}){if(_0x4152f8['isCollapsed'])return null;const _0x492ae6=this['editor']['plugins']['get']('Users')['me'],_0x5989ca=new _0x704ba(_0x4152f8['start'],_0x4152f8['end']);this['_trackingSessionId']&&(_0x5235eb['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x929120,meta:_0x467f52}of this['_findSuggestions'](_0x5989ca,'insertion'))if(_0x467f52['isOwn']&&!_0x467f52['isNextTo']){if(_0x929120['isMultiRange']){const _0x470a31=_0x929120['getRanges']()['filter'](_0x260252=>'$graveyard'!=_0x260252['root']['rootName']);_0x470a31['every'](_0x367081=>_0x5989ca['containsRange'](_0x367081,!0x0))&&_0x929120['discard']();if(_0x470a31['some'](_0x3d2797=>_0x3d2797['containsRange'](_0x5989ca,!0x0))){const _0x563743=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x304ec3,'accept');return this['forceDefaultExecution'](()=>_0x563743([_0x5989ca],null,_0x5235eb)),null;}}else{const _0x239453=_0x5989ca['getIntersection'](_0x929120['getFirstRange']());null!==_0x239453&&_0x929120['_onDiscard']([_0x239453],null,_0x5235eb);}}if(_0x5989ca['detach'](),_0x5989ca['isCollapsed']||'$graveyard'==_0x5989ca['root']['rootName'])return null;let _0x4beebd=null,_0x20f1de=_0x5989ca['start'],_0xedaa25=_0x5989ca['end'];const _0x246fd6=this['_findSuggestions'](_0x5989ca,'deletion');for(const {suggestion:_0x2f961e,meta:_0x2e6ba6}of _0x246fd6){const _0x15aa22=this['_model']['createRange'](_0x20f1de,_0xedaa25);if(_0x2e6ba6['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2e6ba6['containsRangeInObject']&&!_0x2e6ba6['isInsideObject'])){if(_0x2f961e['isMultiRange']){if(!cn(_0x2f961e,_0x5235eb))continue;let _0x1e3b15=!0x0;for(const _0x453ad1 of _0x2f961e['getRanges']()){if(_0x453ad1['containsRange'](_0x15aa22,!0x0))return _0x2f961e;_0x15aa22['containsRange'](_0x453ad1)||(_0x1e3b15=!0x1);}_0x1e3b15&&_0x2f961e['discard']();}else{const _0x59c116=_0x2f961e['getFirstRange']();if(_0x59c116['containsRange'](_0x15aa22,!0x0))return _0x2f961e;if(!cn(_0x2f961e,_0x5235eb)){_0x15aa22['containsRange'](_0x59c116)?_0x2f961e['removeMarkers']():_0x59c116['containsPosition'](_0x20f1de)?_0x20f1de=_0x59c116['end']:_0x59c116['containsPosition'](_0xedaa25)&&(_0xedaa25=_0x59c116['start']);continue;}_0x20f1de=_0x20f1de['isBefore'](_0x59c116['start'])?_0x20f1de:_0x59c116['start'],_0xedaa25=_0xedaa25['isAfter'](_0x59c116['end'])?_0xedaa25:_0x59c116['end'],_0x5235eb=Object['assign']({},_0x2f961e['attributes']),_0x4beebd?_0x59c116['start']['isBefore'](_0x4beebd['getFirstRange']()['start'])?(_0x4beebd['removeMarkers'](),_0x4beebd=_0x2f961e):_0x2f961e['removeMarkers']():_0x4beebd=_0x2f961e;}}}if(_0x4beebd)return this['_setSuggestionRange'](_0x4beebd,this['_model']['createRange'](_0x20f1de,_0xedaa25)),_0x4beebd;{const _0x19d2ec=_0xec3fc0(),_0x532a3d=this['_model']['createRange'](_0x20f1de,_0xedaa25),_0x59c46f=_0x492ae6['id'],_0x4cb348=_0x304ec3?'deletion:'+_0x304ec3:'deletion',_0x46991c=this['_setSuggestionData']({'id':_0x19d2ec,'type':_0x4cb348,'createdAt':new Date(),'authorId':_0x59c46f,'attributes':_0x5235eb});return this['_addSuggestionMarker'](_0x4cb348,_0x19d2ec,_0x59c46f,_0x532a3d),_0x46991c;}}['markMultiRangeDeletion'](_0x4b622a,_0x45f719='multi',_0x5a6f30={}){const _0xc06b48=this['editor']['plugins']['get']('Users')['me'],_0x37e55d=_0x4b622a['map'](_0x4cde73=>new _0x704ba(_0x4cde73['start'],_0x4cde73['end'])),_0x393ab8=new Set();this['_trackingSessionId']&&(_0x5a6f30['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x234832,meta:_0xaffae4}of this['_findSuggestions'](_0x37e55d,'insertion'))_0xaffae4['isOwn']&&!_0xaffae4['isNextTo']&&_0x393ab8['add'](_0x234832);for(const _0x16bdb9 of _0x393ab8)if(_0x16bdb9['isMultiRange']){const _0x387325=_0x16bdb9['getRanges']();(!_0x16bdb9['attributes']||!_0x16bdb9['attributes']['skipNestingCheck'])&&(_0x387325['every'](_0x17d5c8=>_0x37e55d['some'](_0xab1538=>_0xab1538['containsRange'](_0x17d5c8,!0x0)))&&_0x16bdb9['discard']());if(_0x37e55d['every'](_0x17318d=>_0x387325['some'](_0x3084ee=>_0x3084ee['containsRange'](_0x17318d,!0x0)))){const _0x5b1c02=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x45f719,'accept');return this['forceDefaultExecution'](()=>_0x5b1c02(_0x4b622a,null,_0x5a6f30)),null;}}else{const _0x49b566=_0x16bdb9['getFirstRange']();_0x37e55d['some'](_0xe0a61c=>_0xe0a61c['containsRange'](_0x49b566,!0x0))&&_0x16bdb9['discard']();if(_0x37e55d['every'](_0x56ab4c=>_0x49b566['containsRange'](_0x56ab4c,!0x0))){const _0xad962c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x45f719,'accept');return this['forceDefaultExecution'](()=>_0xad962c(_0x37e55d,null,_0x5a6f30)),null;}}const _0x428925=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x45f719,'join');let _0x4672d9=null;for(const _0x2548a5 of this['getSuggestions']())if(_0x2548a5['author']['id']==_0xc06b48['id']&&_0x2548a5['isInContent']&&'deletion'==_0x2548a5['type']&&_0x2548a5['subType']==_0x45f719&&cn(_0x2548a5,_0x5a6f30)&&(_0x428925(_0x2548a5['getRanges'](),_0x37e55d)||_0x428925(_0x37e55d,_0x2548a5['getRanges']()))){if(_0x4672d9){if(_0x2548a5['commentThread']&&_0x2548a5['commentThread']['length'])continue;for(const _0x6bd9e2 of _0x2548a5['getRanges']())_0x4672d9['isIntersectingWithRange'](_0x6bd9e2)||_0x4672d9['addRange'](_0x6bd9e2);_0x2548a5['removeMarkers']();}else{_0x4672d9=_0x2548a5;for(const _0x4d4d90 of _0x37e55d)_0x2548a5['isIntersectingWithRange'](_0x4d4d90)||_0x2548a5['addRange'](_0x4d4d90);}}if(_0x4672d9)return _0x4672d9;_0x393ab8['clear']();for(const {suggestion:_0x554300,meta:_0x5a8c47}of this['_findSuggestions'](_0x37e55d,'deletion'))_0x5a8c47['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5a8c47['containsRangeInObject']&&!_0x5a8c47['isInsideObject'])&&cn(_0x554300,_0x5a6f30)&&_0x393ab8['add'](_0x554300);for(const _0x5beaae of _0x393ab8){const _0x102669=_0x5beaae['getRanges']();if(!_0x5a6f30||!_0x5a6f30['skipNestingCheck']){if(_0x37e55d['every'](_0x30ae47=>_0x102669['some'](_0x1ec049=>_0x1ec049['containsRange'](_0x30ae47,!0x0))))return _0x5beaae;}(!_0x5beaae['attributes']||!_0x5beaae['attributes']['skipNestingCheck'])&&(_0x102669['every'](_0x1e3a39=>_0x37e55d['some'](_0x1a1be5=>_0x1a1be5['containsRange'](_0x1e3a39,!0x0)))&&_0x5beaae['discard']());}const _0x1acec7=_0xec3fc0(),_0x21b1b5=_0xc06b48['id'],_0x55718e='deletion:'+_0x45f719,_0x1f2ab9=this['_setSuggestionData']({'id':_0x1acec7,'type':_0x55718e,'createdAt':new Date(),'authorId':_0x21b1b5,'attributes':_0x5a6f30});for(const _0x55abe6 of _0x37e55d)_0x55abe6['detach'](),_0x55abe6['isCollapsed']||'$graveyard'==_0x55abe6['root']['rootName']||this['_addSuggestionMarker'](_0x55718e,_0x1acec7,_0x21b1b5,_0x55abe6,bt['getMultiRangeId']());return _0x1f2ab9;}['markAttributeChange'](_0x423c30,_0x592504,_0x1ba30f,_0xbf2d96,_0xaccce9){if(_0x423c30['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x1a4271=this['editor']['plugins']['get']('Users')['me']['id'],_0x75646a=Array['from'](this['_suggestions']['values']())['filter'](_0x4a4a24=>'attribute'==_0x4a4a24['type']&&_0x4a4a24['data']['key']==_0x592504&&_0x4a4a24['isIntersectingWithRange'](_0x423c30));if(this['_trackingSessionId']&&(_0xaccce9['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x57ee3e=this['_findSuggestions'](_0x423c30,'insertion')['filter'](({meta:_0x303063})=>_0x303063['isOwn']&&!_0x303063['isInsideObject']&&!_0x303063['isNextTo'])['map'](({suggestion:_0x1d2290})=>_0x1d2290);_0x75646a['unshift'](..._0x57ee3e);}const _0x94c059=new Map([[_0x423c30,_0x1ba30f]]);for(const _0x1bd621 of _0x75646a){const _0x499c6f='attribute'==_0x1bd621['type']?_0x1bd621['data']['oldValue']:void 0x0,_0x6548bd=_0x1bd621['getFirstRange'](),_0x82c352=Array['from'](_0x94c059['keys']())['find'](_0x1e31d6=>_0x1e31d6['isIntersecting'](_0x6548bd));if(!_0x82c352)continue;const _0x571e5f=_0x82c352['getDifference'](_0x6548bd);this['_suggestionsConversion']['isBlockAttribute'](_0x592504)&&'insertion'==_0x1bd621['type']&&0x0!=_0x571e5f['length']||(_0x94c059['delete'](_0x82c352),_0x571e5f['forEach'](_0x1a173d=>{_0x94c059['set'](_0x1a173d,_0x1ba30f);}),'insertion'!=_0x1bd621['type']&&_0x499c6f!=_0xbf2d96&&_0x94c059['set'](_0x82c352['getIntersection'](_0x6548bd),_0x499c6f));}const _0x41acfd=[];for(const [_0x4e9384,_0xba8ab4]of _0x94c059){const _0x2a2662=_0xec3fc0(),_0x11b7a7={'key':_0x592504,'oldValue':_0xba8ab4,'newValue':_0xbf2d96};_0x592504['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':_0x592504});const _0xbf3918=('attribute:'+(_0x592504+'|'+Je({'newValue':_0xbf2d96})))['substring'](0x0,0x3c),_0x5f1b51=this['_setSuggestionData']({'id':_0x2a2662,'type':_0xbf3918,'data':_0x11b7a7,'createdAt':new Date(),'authorId':_0x1a4271,'attributes':_0xaccce9});_0x41acfd['push'](_0x5f1b51),this['_addSuggestionMarker'](_0xbf3918,_0x2a2662,_0x1a4271,_0x4e9384);}return _0x41acfd;}['enableDefaultAttributesIntegration'](_0x1e40b7){this['enableCommand'](_0x1e40b7,(_0x1ad424,..._0x9c3956)=>{this['recordAttributeChanges'](()=>{_0x1ad424(..._0x9c3956);});});}['startTrackingSession'](_0x564169){return this['_trackingSessionId']=void 0x0!==_0x564169?_0x564169:_0xec3fc0(),this['_trackingSessionId'];}['_getAttributeKey'](_0x28443d){return'attribute'==_0x28443d['type']?un(_0x28443d['subType']):null;}['_applyOperationsAsSuggestions'](_0x26ab06){if(0x0==_0x26ab06['length'])return;const _0x771de9=this['editor'],_0x4d2406=_0x771de9['plugins']['get'](_0x2b1f8b),_0x3f8249=[];_0x771de9['model']['change'](_0xc72695=>{for(let _0x192fc3=0x0;_0x192fc3<_0x26ab06['length'];_0x192fc3++){const _0x4faf6a=_0x26ab06[_0x192fc3];if(_0x4faf6a['baseVersion']=_0x771de9['model']['document']['version'],_0x4faf6a['isDocumentOperation']=!0x0,_0x4d2406['isMarkedRemoveOperation'](_0x4faf6a)){const _0x215c3d=_0x3cd981(_0x4faf6a['newRange'],_0x771de9['model']);_0x3f8249['unshift'](_0x704ba['fromRange'](_0x215c3d));}else switch(_0x4faf6a['type']){case'rename':{const _0x2584a1=_0x4faf6a['oldName'],_0x5d47aa=_0x4faf6a['newName'];if(_0x2584a1==_0x5d47aa)break;_0xc72695['batch']['addOperation'](_0x4faf6a),_0x771de9['model']['applyOperation'](_0x4faf6a);const _0x5e9934='$elementName',_0x1d0eb3=_0x4faf6a['position'],_0x3621f0=_0x771de9['model']['createRange'](_0x1d0eb3,_0x771de9['model']['createPositionAt'](_0x1d0eb3['nodeAfter'],'end'));this['markAttributeChange'](_0x3621f0,_0x5e9934,_0x2584a1,_0x5d47aa,{'groupId':_0xec3fc0()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x45bfa2=_0x4faf6a['oldValue'],_0x1b0aa7=_0x4faf6a['newValue'];if(_0x45bfa2==_0x1b0aa7)break;_0xc72695['batch']['addOperation'](_0x4faf6a),_0x771de9['model']['applyOperation'](_0x4faf6a);const _0x29eac1=_0x4faf6a['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x29eac1))break;const _0x47e9a9=_0x3cd981(_0x4faf6a['range'],_0x771de9['model']);this['markAttributeChange'](_0x47e9a9,_0x29eac1,_0x45bfa2,_0x1b0aa7,{'groupId':_0xec3fc0()});break;}case'insert':{_0xc72695['batch']['addOperation'](_0x4faf6a),_0x771de9['model']['applyOperation'](_0x4faf6a);if(_0x26ab06[_0x192fc3+0x1]&&'move'==_0x26ab06[_0x192fc3+0x1]['type'])break;const _0x17e5db=_0x4faf6a['position'],_0x12ce9b=_0x4faf6a['howMany'],_0x21c02f=_0x3cd981(_0x771de9['model']['createRange'](_0x17e5db,_0x17e5db['getShiftedBy'](_0x12ce9b)),_0x771de9['model']);this['markInsertion'](_0x21c02f);break;}case'split':{_0xc72695['batch']['addOperation'](_0x4faf6a),_0x771de9['model']['applyOperation'](_0x4faf6a);const _0x3f3a2f=_0x4faf6a['splitPosition'],_0x582129=_0x4faf6a['moveTargetPosition'];this['markInsertion'](_0x771de9['model']['createRange'](_0x3f3a2f,_0x582129));break;}case'move':case'remove':_0xc72695['batch']['addOperation'](_0x4faf6a),_0x771de9['model']['applyOperation'](_0x4faf6a);}}for(const _0x3f2284 of _0x3f8249)_0x3f2284['detach'](),this['markDeletion'](_0x3f2284);});}['_setSuggestionRange'](_0x2789f1,_0x4515ef){const _0x5d2a81=_0x2789f1['getFirstMarker']();this['_model']['change'](_0x4dede8=>{_0x4dede8['updateMarker'](_0x5d2a81,{'range':_0x4515ef});});}['_addThreadToSuggestion'](_0x33ad65){const _0x25dc05=_0x33ad65['id'],_0x16f90c=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x25dc05)||this['_commentsRepository']['addCommentThread']({'channelId':_0x16f90c,'threadId':_0x25dc05,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x521827=this['_commentsRepository']['getCommentThread'](_0x25dc05);_0x521827['unbind']('isRemovable'),_0x521827['isRemovable']=!0x1,_0x33ad65['commentThread']=_0x521827;}['_checkSuggestionCorrectness'](_0x1b233e,_0x70fa87,_0x24fedf,_0x342c37){if(_0x1b233e['type']!=_0x70fa87||_0x1b233e['subType']!=_0x24fedf||_0x1b233e['creator']['id']!=_0x342c37)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x24c1f2('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x4ccd1e,_0x86d60c){const _0x895fc6=_0x4ccd1e['getFirstRange']();if(_0x86d60c['isEqual'](_0x895fc6))_0x4ccd1e['removeMarkers']();else{if(_0x895fc6['containsRange'](_0x86d60c)){const _0x63cb0a=this['_model']['createPositionAt'](_0x86d60c['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4ccd1e,this['_model']['createRange'](_0x895fc6['start'],_0x63cb0a));const _0x4e5df6=_0xec3fc0(),_0x17aa23=_0x4ccd1e['creator']['id'],_0x312ccf=_0x4ccd1e['type']+':'+_0x4ccd1e['subType'];this['_setSuggestionData']({'id':_0x4e5df6,'type':_0x312ccf,'createdAt':new Date(),'authorId':_0x17aa23,'data':_0x4ccd1e['data'],'attributes':_0x4ccd1e['attributes']});const _0x3adfc1=this['_model']['createPositionAt'](_0x86d60c['end']['parent'],'after'),_0x2edbaa=this['_model']['createRange'](_0x3adfc1,_0x895fc6['end']);this['_addSuggestionMarker'](_0x312ccf,_0x4e5df6,_0x17aa23,_0x2edbaa);}else{if(_0x895fc6['containsPosition'](_0x86d60c['start'])){const _0x4972a6=this['_model']['createPositionAt'](_0x86d60c['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4ccd1e,this['_model']['createRange'](_0x895fc6['start'],_0x4972a6));}else{const _0x5ea81d=this['_model']['createPositionAt'](_0x86d60c['end']['parent'],'after');this['_setSuggestionRange'](_0x4ccd1e,this['_model']['createRange'](_0x5ea81d,_0x895fc6['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x25abc4){for(const {suggestion:_0x5c6800,meta:_0x1bb18a}of this['_findSuggestions'](_0x25abc4,'insertion')){if(!_0x1bb18a['isOwn'])continue;const _0x153af1=_0x5c6800['getRanges']();for(const _0x2db795 of _0x153af1)if(!_0x25abc4['getDifference'](_0x2db795)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x2c8448){return this['editor']['plugins']['get']('Users')['getUser'](_0x2c8448);}['_getExternalAuthor'](_0x39f371){const _0x11d572=this['editor']['plugins']['get']('Users'),_0x5627fa=_0x57387b('external:'+_0x39f371),_0x9b8b13=_0x11d572['getUser'](_0x5627fa);return _0x9b8b13||_0x11d572['addUser']({'id':_0x5627fa,'name':_0x39f371});}['_createSuggestion'](_0x3b7f00,_0x195d96,_0x4abc96,_0x3cf50e,_0x190d0f,_0x4141ee){const _0xba1e2=this['_getAuthorFromId'](_0x3cf50e);if(!_0xba1e2)throw new _0x24c1f2('track-changes-user-not-found',this,{'authorId':_0x3cf50e,'suggestionId':_0x4abc96});const _0x27c255=this['_suggestionFactory']['buildSuggestion'](_0x3b7f00,_0x195d96,_0x4abc96,_0xba1e2,_0x190d0f,_0x51d9d8=>{this['_updateSuggestionData'](_0x4abc96,{'attributes':_0x51d9d8});const _0x2309a0=this['getSuggestion'](_0x4abc96);this['_joinWithAdjacentSuggestions'](new Set([_0x2309a0])),this['_refreshSuggestionsChain'](new Set([_0x2309a0]));},_0x4141ee);return this['listenTo'](_0x27c255,'accept',()=>{this['_updateSuggestionData'](_0x4abc96,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x27c255,'discard',()=>{this['_updateSuggestionData'](_0x4abc96,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x4abc96,_0x27c255),this['_suggestionState']['set'](_0x27c255,'notReady'),_0x27c255;}['_breakSuggestionMarker'](_0x485152,_0x1ca3e4,_0x50fa09){const _0x677bc3=_0x485152['getFirstRange'](),_0x4e3579=_0x677bc3['start'],_0x386839=_0x677bc3['end'];this['_setSuggestionRange'](_0x485152,this['_model']['createRange'](_0x4e3579,_0x1ca3e4));const _0x8c9fba=_0xec3fc0(),_0x5142e0=_0x485152['creator']['id'],_0xa75770=_0x485152['type']+(_0x485152['subType']?':'+_0x485152['subType']:'');this['_setSuggestionData']({'id':_0x8c9fba,'type':_0xa75770,'createdAt':new Date(),'authorId':_0x5142e0,'originalSuggestionId':_0x485152['_originalSuggestionId']||_0x485152['id'],'attributes':_0x485152['attributes'],'data':_0x485152['data']});const _0x3831b6=this['_getAttributeKey'](_0x485152);('formatBlock'==_0x485152['type']||_0x3831b6&&this['_suggestionsConversion']['isBlockAttribute'](_0x3831b6))&&(_0x50fa09=this['_model']['createPositionBefore'](_0x50fa09['parent'])),this['_addSuggestionMarker'](_0xa75770,_0x8c9fba,_0x5142e0,this['_model']['createRange'](_0x50fa09,_0x386839));}['_findSuggestions'](_0x1a85fa,_0x444c2e=null){const _0xda6742=[],_0x46903b=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x1a85fa)||(_0x1a85fa=[_0x1a85fa]);for(const _0x40fa02 of this['getSuggestions']()){if(!_0x40fa02['isInContent'])continue;if(_0x444c2e&&_0x40fa02['type']!=_0x444c2e)continue;let _0xf72008=!0x1;for(const _0x21e72f of _0x40fa02['getRanges']()){for(const _0x4f4b20 of _0x1a85fa){const _0x2e21f0=_0x4f4b20['start']['isEqual'](_0x21e72f['end'])||_0x4f4b20['end']['isEqual'](_0x21e72f['start']);if(_0x2e21f0||_0x4f4b20['getIntersection'](_0x21e72f)){const _0x28da9a=_0x4f4b20['containsRange'](_0x21e72f)&&qe(this['_model']['schema'],_0x21e72f['start'],_0x4f4b20),_0x534d1e=_0x21e72f['containsRange'](_0x4f4b20)&&qe(this['_model']['schema'],_0x4f4b20['start'],_0x21e72f);_0xda6742['push']({'suggestion':_0x40fa02,'meta':{'isOwn':_0x46903b==_0x40fa02['author'],'isNextTo':_0x2e21f0,'isInsideObject':_0x28da9a,'containsRangeInObject':_0x534d1e}}),_0xf72008=!0x0;break;}}if(_0xf72008)break;}}return _0xda6742;}['_addSuggestionMarker'](_0x306b2c,_0x4d8563,_0xb95ad0,_0x3f013d,_0x328ed7){this['_model']['change'](_0x202958=>{let _0xeab5a3='suggestion:'+_0x306b2c+':'+_0x4d8563+':'+_0xb95ad0;_0x328ed7&&(_0xeab5a3=_0xeab5a3+':'+_0x328ed7),_0x202958['addMarker'](_0xeab5a3,{'range':_0x3f013d,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0xf87e86){const _0x30b003=_0xf87e86['previous'],_0x594a05=_0xf87e86['next'];_0xf87e86['previous']=null,_0xf87e86['next']=null,null!=_0x30b003&&_0x30b003['next']==_0xf87e86&&(_0x30b003['next']=_0x594a05),null!=_0x594a05&&_0x594a05['previous']==_0xf87e86&&(_0x594a05['previous']=_0x30b003),'ready'==this['_suggestionState']['get'](_0xf87e86)&&(this['_suggestionState']['set'](_0xf87e86,'removed'),this['fire']('suggestionUnloaded',_0xf87e86,_0x30b003,_0x594a05));}['_setSuggestionData'](_0x5b35cb){const _0x551afb=_0x5b35cb['id'],_0x589521=this['addSuggestionData'](_0x5b35cb);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x292666=this['editor']['plugins']['get']('PendingActions'),_0x51faf0=_0x589521['hasComments'],_0x34efc1=_0x589521['subType']?_0x589521['type']+':'+_0x589521['subType']:_0x589521['type'],_0x33528f=this['editor']['locale'],_0x3756a3=_0x292666['add'](At(_0x33528f,'PENDING_ACTION_SUGGESTION')),_0x4825f5={'id':_0x551afb,'type':_0x34efc1,'hasComments':_0x51faf0,'data':_0x5b35cb['data']||null,'originalSuggestionId':_0x5b35cb['originalSuggestionId']||null,'attributes':_0x589521['attributes']};this['_adapter']['addSuggestion'](_0x4825f5)['then'](_0x569642=>{_0x589521['_saved']=!0x0,_0x292666['remove'](_0x3756a3),_0x569642&&_0x569642['createdAt']&&(this['_suggestions']['get'](_0x551afb)['createdAt']=_0x569642['createdAt']);})['catch'](_0x3d4d76=>{throw _0x4b0915('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x589521['discard']();}),_0x589521['stopListening'](),this['_suggestions']['delete'](_0x589521['id']),this['_suggestionState']['delete'](_0x589521),_0x3d4d76;});}return _0x589521;}['_updateSuggestionData'](_0x582aaa,_0x92983f){const _0x5e11a3=this['editor']['plugins']['get']('PendingActions'),_0x46766c=this['getSuggestion'](_0x582aaa);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x46766c['_saved']){const _0x173191=_0x5e11a3['add'](At(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x582aaa,_0x92983f)['then'](()=>{_0x5e11a3['remove'](_0x173191);});}else _0x46766c['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x582aaa,_0x92983f);});}}['_getSuggestionData'](_0x1af498){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x24c1f2('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x1af498);}['_handleNewSuggestionMarker'](_0x527b0c){const {id:_0xe37c7e,type:_0x1d4553,subType:_0x23c26f,authorId:_0x3f4e03}=_0x36ab20(_0x527b0c),_0x1d9ba9=this['_suggestions']['get'](_0xe37c7e)||this['_createSuggestion'](_0x1d4553,_0x23c26f,_0xe37c7e,_0x3f4e03,{});switch(this['_checkSuggestionCorrectness'](_0x1d9ba9,_0x1d4553,_0x23c26f,_0x3f4e03),this['_suggestionState']['get'](_0x1d9ba9)){case'notReady':this['_getSuggestionData'](_0xe37c7e)['then'](_0x37c049=>{let _0x24f310=Promise['resolve']();_0x37c049['hasComments']&&(_0x24f310=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0xe37c7e})),_0x24f310['then'](()=>{this['addSuggestionData'](_0x37c049)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x1d9ba9,'markerReady');break;case'removed':this['_updateSuggestionData'](_0xe37c7e,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x1d9ba9,'ready'),this['fire']('suggestionLoaded',_0x1d9ba9);break;case'ready':this['fire']('suggestionChanged',_0x1d9ba9);}return _0x1d9ba9['addMarkerName'](_0x527b0c),_0x1d9ba9;}['_refreshSuggestionsChain'](_0x3fabfb){const _0x27784d=Array['from'](_0x3fabfb),_0x156f02=_0x27784d['filter'](_0xff5b5e=>'attribute'==_0xff5b5e['type']);this['_refreshAttributeSuggestionsChain'](_0x156f02);const _0x34708f=_0x27784d['filter'](_0x390307=>!_0x390307['isMultiRange']&&'attribute'!=_0x390307['type']),_0x41c87d=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x100315=>!_0x100315['isMultiRange']&&'attribute'!=_0x100315['type']),_0x4f3dd4=_0x41c87d['filter'](_0x5485e7=>!_0x3fabfb['has'](_0x5485e7)),_0x46f851=new Map(_0x41c87d['map'](_0x5a44e5=>[_0x5a44e5,this['_suggestionFactory']['getSuggestionCallback'](_0x5a44e5['type'],_0x5a44e5['subType'],'chain')])),_0x5b3fba=new Map(_0x41c87d['map'](_0x5ee893=>[_0x5ee893,_0x5ee893['getFirstRange']()])),_0x5894aa=new Set(),_0x5eca0e=new Set();for(let _0x3aade1=0x0;_0x3aade1<_0x34708f['length'];_0x3aade1++)_0x40a7c4(_0x34708f[_0x3aade1],_0x34708f,_0x3aade1+0x1);for(let _0x5af187=0x0;_0x5af187<_0x34708f['length'];_0x5af187++)_0x40a7c4(_0x34708f[_0x5af187],_0x4f3dd4,0x0);const _0x409680=new Set();for(let _0x94954f=0x0;_0x94954f<_0x34708f['length'];_0x94954f++){const _0x478004=_0x34708f[_0x94954f];!_0x5eca0e['has'](_0x478004)&&_0x478004['previous']&&(_0x409680['add'](_0x478004['previous']),_0x478004['previous']['next']===_0x478004&&(_0x478004['previous']['next']=null),_0x478004['previous']=null),!_0x5894aa['has'](_0x478004)&&_0x478004['next']&&(_0x409680['add'](_0x478004['next']),_0x478004['next']['previous']===_0x478004&&(_0x478004['next']['previous']=null),_0x478004['next']=null);}function _0x40a7c4(_0x7e8e74,_0x5e1139,_0x4b0e08){for(let _0x4941f9=_0x4b0e08;_0x4941f9<_0x5e1139['length'];_0x4941f9++){const _0x21fa28=_0x1c8df8(_0x7e8e74,_0x5e1139[_0x4941f9]);_0x21fa28&&(_0x21fa28[0x0]['next']=_0x21fa28[0x1],_0x21fa28[0x1]['previous']=_0x21fa28[0x0],_0x5894aa['add'](_0x21fa28[0x0]),_0x5eca0e['add'](_0x21fa28[0x1]));}}function _0x1c8df8(_0x1b40c7,_0x79f1a1){if(_0x1b40c7['author']['id']!==_0x79f1a1['author']['id'])return null;const _0x21d681=_0x46f851['get'](_0x1b40c7)(_0x1b40c7,_0x79f1a1,_0x5b3fba['get'](_0x1b40c7),_0x5b3fba['get'](_0x79f1a1));if(!_0x21d681)return null;return _0x46f851['get'](_0x79f1a1)(_0x1b40c7,_0x79f1a1,_0x5b3fba['get'](_0x1b40c7),_0x5b3fba['get'](_0x79f1a1))?_0x21d681[0x1]['commentThread']&&_0x21d681[0x1]['commentThread']['length']?null:_0x21d681:null;}_0x409680['size']&&this['_refreshSuggestionsChain'](_0x409680);}['_refreshAttributeSuggestionsChain'](_0x20acca){if(0x0==_0x20acca['length'])return;const _0x533e16=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x29cf79=>'attribute'==_0x29cf79['type']&&_0x29cf79['_isDataLoaded']),_0x468ad6=[],_0x339f33=new Map();for(const _0xd2e7d6 of _0x533e16){const _0x4ad237=_0x57387b(_0xd2e7d6['attributes']);_0x339f33['has'](_0x4ad237)||(_0x339f33['set'](_0x4ad237,_0x468ad6['length']),_0x468ad6['push']([]));const _0x2f42e6=_0x339f33['get'](_0x4ad237);_0x468ad6[_0x2f42e6]['push'](_0xd2e7d6);}!(function(){_0x468ad6['sort']((_0x50af7f,_0x5efb3f)=>{const _0x206c65=_0x50af7f[0x0]['createdAt'],_0x42541c=_0x5efb3f[0x0]['createdAt'];return _0x206c65==_0x42541c?_0x50af7f[0x0]['attributes']['groupId']<_0x5efb3f[0x0]['attributes']['groupId']?-0x1:0x1:_0x206c65<_0x42541c?-0x1:0x1;});for(const _0x291633 of _0x468ad6)_0x291633['sort']((_0x410fdc,_0x259582)=>_0x410fdc['id']<_0x259582['id']?-0x1:0x1);}());for(let _0x573628=0x0;_0x573628<_0x468ad6['length'];_0x573628++){if(0x0==_0x468ad6[_0x573628]['length'])continue;const _0x2e012d=[];for(let _0x512a1d=_0x573628+0x1;_0x512a1d<_0x468ad6['length'];_0x512a1d++)0x0!=_0x468ad6[_0x512a1d]['length']&&_0xbabe3c(_0x468ad6[_0x573628],_0x468ad6[_0x512a1d])&&_0x2e012d['push'](_0x512a1d);for(const _0xc782dc of _0x2e012d)_0x468ad6[_0x573628]=_0x468ad6[_0x573628]['concat'](_0x468ad6[_0xc782dc]),_0x468ad6[_0xc782dc]=[];}for(const _0x55556e of _0x468ad6)for(let _0x4a37b8=0x0;_0x4a37b8<_0x55556e['length'];_0x4a37b8++){const _0x16e103=_0x55556e[_0x4a37b8+0x1]||null;_0x55556e[_0x4a37b8]['next']!==_0x16e103&&(_0x55556e[_0x4a37b8]['next']=_0x16e103);}for(const _0x4f40b3 of _0x468ad6)for(let _0x12680d=0x0;_0x12680d<_0x4f40b3['length'];_0x12680d++){const _0x3e8392=_0x4f40b3[_0x12680d-0x1]||null;_0x4f40b3[_0x12680d]['previous']!==_0x3e8392&&(_0x4f40b3[_0x12680d]['previous']=_0x3e8392);}function _0xbabe3c(_0x4b57fc,_0x245f85){if(_0x4b57fc[0x0]['attributes']['groupId']!==_0x245f85[0x0]['attributes']['groupId']&&_0x4b57fc[0x0]['author']!==_0x245f85[0x0]['author'])return!0x1;if(!function(_0x319d9e,_0x2d50a2){if(!_0x319d9e['hasComments']&&!_0x2d50a2['hasComments'])return!0x0;if(_0x319d9e['hasComments']&&_0x2d50a2['hasComments'])return!0x1;if(_0x319d9e['hasComments']&&_0x2d50a2['createdAt']<_0x319d9e['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x2d50a2['hasComments']&&_0x319d9e['createdAt']<_0x2d50a2['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x4b57fc[0x0],_0x245f85[0x0]))return!0x1;const _0x58413c=ot(_0x4b57fc[0x0]['attributes'],['groupId','trackingSessionId']),_0x4c2cb0=ot(_0x245f85[0x0]['attributes'],['groupId','trackingSessionId']);if(!st(_0x58413c,_0x4c2cb0))return!0x1;if(_0x4b57fc[0x0]['attributes']['groupId']==_0x245f85[0x0]['attributes']['groupId'])return!0x0;if(_0x4b57fc[0x0]['attributes']['trackingSessionId']!==_0x245f85[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x4b57fc['every'](_0x405934=>_0x245f85['some'](_0x52e0ea=>_0x405934['getFirstRange']()['isEqual'](_0x52e0ea['getFirstRange']())))&&_0x245f85['every'](_0x46b856=>_0x4b57fc['some'](_0x2d97b3=>_0x46b856['getFirstRange']()['isEqual'](_0x2d97b3['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x20d29f){const _0x744c02=Array['from'](_0x20d29f),_0x39faaf=this['getSuggestions']({'skipNotAttached':!0x0}),_0x11c966=_0x39faaf['filter'](_0x2cdaa4=>!_0x20d29f['has'](_0x2cdaa4)),_0x27b4db=new Map(_0x744c02['map'](_0x32581b=>[_0x32581b,this['_suggestionFactory']['getSuggestionCallback'](_0x32581b['type'],_0x32581b['subType'],'join')])),_0x29064e=new Map(_0x39faaf['map'](_0x41cdde=>[_0x41cdde,_0x41cdde['getRanges']()]));for(let _0x575c4c=0x0;_0x575c4c<_0x744c02['length'];_0x575c4c++){if(_0x80569d(this,_0x744c02[_0x575c4c],_0x744c02,_0x575c4c+0x1))return!0x0;}for(let _0x2063aa=0x0;_0x2063aa<_0x744c02['length'];_0x2063aa++){if(_0x80569d(this,_0x744c02[_0x2063aa],_0x11c966,0x0))return!0x0;}return!0x1;function _0x80569d(_0xf050f5,_0x5a6355,_0xee7c0d,_0xab1b75){for(let _0x482bb8=_0xab1b75;_0x482bb8<_0xee7c0d['length'];_0x482bb8++){const _0x3879ba=_0xee7c0d[_0x482bb8];if(_0x3879ba['type']!==_0x5a6355['type']||_0x3879ba['author']['id']!==_0x5a6355['author']['id']||_0x3879ba['subType']!==_0x5a6355['subType'])continue;if(!an(_0x5a6355,_0x3879ba))continue;if('attribute'==_0x5a6355['type']&&_0x5a6355['data']['oldValue']!=_0x3879ba['data']['oldValue'])continue;if('attribute'==_0x5a6355['type']&&_0xf050f5['_suggestionsConversion']['isBlockAttribute'](_0x5a6355['data']['key']))continue;if('formatBlock'==_0x5a6355['type']){const _0x22a670=_0xf050f5['editor']['model'],_0x4277e6=_0x5a6355['getContainedElement']();if(_0x4277e6&&(_0x22a670['schema']['isObject'](_0x4277e6)||_0x22a670['schema']['isLimit'](_0x4277e6)))continue;}const _0x3c889a=_0x27b4db['get'](_0x5a6355),_0x1b57e5=_0x29064e['get'](_0x5a6355),_0x211565=_0x29064e['get'](_0x3879ba),_0x4e82bd=_0x5a6355['commentThread']&&_0x5a6355['commentThread']['length'],_0x57ef78=_0x3879ba['commentThread']&&_0x3879ba['commentThread']['length'];if(!_0x4e82bd&&_0x3c889a(_0x211565,_0x1b57e5))return _0xf050f5['_joinSuggestions'](_0x3879ba,_0x5a6355),_0x29064e['delete'](_0x5a6355),!0x0;if(!_0x57ef78&&_0x3c889a(_0x1b57e5,_0x211565))return _0xf050f5['_joinSuggestions'](_0x5a6355,_0x3879ba),_0x29064e['delete'](_0x3879ba),!0x0;}return!0x1;}}['_joinSuggestions'](_0x818e6f,_0x193d63){if(_0x818e6f['isMultiRange']){for(const _0x6247a8 of _0x193d63['getRanges']())_0x818e6f['addRange'](_0x6247a8);}else{const _0x29ef0b=_0x193d63['getFirstRange']()['end'];this['_setSuggestionRange'](_0x818e6f,this['_model']['createRange'](_0x818e6f['getFirstRange']()['start'],_0x29ef0b));}_0x193d63['removeMarkers']();}['_getMarkerAnnouncementText'](_0x1424ff,_0x264ebd,_0x31477c){const _0x474115=_0x1424ff['startsWith']('format')||_0x1424ff['startsWith']('attribute')?'FORMATTING':_0x1424ff['toUpperCase']();return At(this['editor']['locale'],_0x264ebd+'_'+_0x474115+'_SUGGESTION_ANNOUNCEMENT',_0x31477c);}['_initAriaMarkerChangeAnnouncements'](){const _0xdbe8ef=this['editor'];if(!_0xdbe8ef['ui'])return;const {ariaLiveAnnouncer:_0xde4f88}=_0xdbe8ef['ui'];_0x58ebd3(this['_model'],({left:_0xb4fb74,entered:_0x2afb11})=>{for(const _0x36a2d9 of _0xb4fb74){const {group:_0x19c7c5,type:_0x3dd1d3}=_0x36ab20(_0x36a2d9['name']);if('suggestion'===_0x19c7c5){_0xde4f88['announce'](this['_getMarkerAnnouncementText'](_0x3dd1d3,'LEAVE'));break;}}for(const _0x2e2201 of _0x2afb11){const {group:_0x3b595e,type:_0x2d9075}=_0x36ab20(_0x2e2201['name']);if('suggestion'===_0x3b595e){_0xde4f88['announce'](this['_getMarkerAnnouncementText'](_0x2d9075,'ENTER',_0x3c958f(_0x2443ba)));break;}}});}['_processAttributeChanges'](_0xbdc4a2){if(this['_recordAttributeSuggestions'])return!0x1;const _0x5680d9=this['editor'],_0x4c5595=_0x5680d9['model']['document']['differ']['getChanges']();if(0x0==_0x4c5595['length'])return!0x1;const _0x4a913c=[],_0x2ca880=_0x4c5595['filter'](_0x40e20c=>'attribute'==_0x40e20c['type']),_0x785939=_0x4c5595['filter'](_0x25fc65=>'insert'==_0x25fc65['type']&&'$text'!=_0x25fc65['name']),_0x3f47cd=_0x4c5595['filter'](_0x31434b=>'remove'==_0x31434b['type']&&'$text'!=_0x31434b['name']);for(const _0x3c8f42 of _0x2ca880)_0x4a913c['push']({'key':_0x3c8f42['attributeKey'],'newValue':_0x3c8f42['attributeNewValue'],'oldValue':_0x3c8f42['attributeOldValue'],'range':sn(_0x3c8f42['range'],_0x5680d9['model'])});for(const _0x2119a7 of _0x785939){const _0x22cff2=_0x3f47cd['find'](_0x8aee44=>_0x8aee44['position']['isEqual'](_0x2119a7['position']));_0x22cff2&&_0x4a913c['push']({'key':Ke,'newValue':_0x2119a7['name'],'oldValue':_0x22cff2['name'],'range':_0x5680d9['model']['createRangeOn'](_0x2119a7['position']['nodeAfter'])});}return 0x0!=_0x4a913c['length']&&this['_reduceExistingSuggestions'](_0xbdc4a2,_0x4a913c);}['_processAttributeSuggestions'](_0x2f08e8){let _0xb7fd42=!0x1;const _0x152024=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4451ac=>_0x4451ac['data']['newRange']&&_0x4451ac['name']['startsWith']('suggestion:attribute:'));for(const _0x1421d2 of _0x152024){const {subType:_0x4652ed,id:_0x489efc}=_0x36ab20(_0x1421d2['name']),_0x5a76e5=_0x4652ed['split']('|')[0x0];for(const _0x3e9903 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x3e9903['id']!=_0x489efc&&'attribute'==_0x3e9903['type']&&_0x3e9903['data']&&_0x3e9903['data']['key']==_0x5a76e5&&_0x3e9903['getFirstRange']()['isIntersecting'](_0x1421d2['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x3e9903,_0x1421d2['data']['newRange'],_0x2f08e8),_0xb7fd42=!0x0);}return _0xb7fd42;}['recordAttributeChanges'](_0x28ebb1){this['_recordAttributeSuggestions']=!0x0,_0x28ebb1();}['_reduceExistingSuggestions'](_0x2f5487,_0x17b948){if(0x0==_0x17b948['length'])return!0x1;let _0x19e67a=!0x1;for(const _0x18a3aa of _0x17b948){const _0x583f5b=this['_findSuggestions'](_0x18a3aa['range'],'attribute')['filter'](_0x5e06f6=>!_0x5e06f6['meta']['isNextTo'])['map'](_0x59f9a6=>_0x59f9a6['suggestion']),_0x1a21da=_0x57387b({'newValue':_0x18a3aa['newValue']});_0x583f5b['filter'](_0x31fdba=>{const [_0x2e397d,_0x1d1774]=_0x31fdba['subType']['split']('|');return _0x2e397d==_0x18a3aa['key']&&_0x1d1774!=_0x1a21da;})['forEach'](_0x2a68c2=>{this['_reduceSuggestionAttributeRange'](_0x2a68c2,_0x18a3aa['range'],_0x2f5487),_0x19e67a=!0x0;});}return _0x19e67a;}['_reduceSuggestionAttributeRange'](_0x43c829,_0x2004e9,_0x9ceb40){const _0x13b043=_0x43c829['getFirstRange']()['getDifference'](_0x2004e9);0x0!==_0x13b043['length']?0x1!==_0x13b043['length']?this['_breakSuggestionMarker'](_0x43c829,_0x2004e9['start'],_0x2004e9['end']):this['_setSuggestionRange'](_0x43c829,_0x13b043[0x0]):_0x9ceb40['removeMarker'](_0x43c829['getFirstMarker']());}}class Ye{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x5d075b){this['_editor']=_0x5d075b,this['_model']=_0x5d075b['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x26f792,_0x39dcc8,_0x5c39b9,_0x39e673,_0x50c9c6,_0x64c221,_0x502565){return new bt(this['_model'],{'type':_0x26f792,'subType':_0x39dcc8,'id':_0x5c39b9,'originalSuggestionId':_0x502565,'author':_0x39e673,'creator':_0x39e673,'attributes':_0x50c9c6,'onAttributesChange':_0x64c221,'onAccept':(..._0x763bb3)=>this['getSuggestionCallback'](_0x26f792,_0x39dcc8,'accept')(..._0x763bb3),'onDiscard':(..._0x5a945f)=>this['getSuggestionCallback'](_0x26f792,_0x39dcc8,'discard')(..._0x5a945f)});}['registerCustomCallback'](_0x277044,_0x2d71d8,_0x1e590a,_0x57b78c){const _0xaf9c69=_0x277044+':'+_0x2d71d8+':'+_0x1e590a;this['_customCallbacks']['set'](_0xaf9c69,_0x57b78c);}['getSuggestionCallback'](_0xa9c489,_0x2b77af,_0x2d37bc){const _0x2f2fd8=_0xa9c489+':'+_0x2b77af+':'+_0x2d37bc;return this['_customCallbacks']['get'](_0x2f2fd8)||this['_defaultCallbacks']['get'](_0xa9c489+':'+_0x2d37bc);}['_registerDefaultCallbacks'](){const _0x621350=()=>!0x1,_0x1785cd=_0x2dd54d=>{_0x2dd54d['sort']((_0x386e10,_0x3aeeee)=>_0x386e10['start']['isBefore'](_0x3aeeee['start'])?0x1:-0x1),this['_model']['change'](_0x2cab67=>{for(const _0x2730fa of _0x2dd54d){let _0x28613b;_0x28613b=_0x2730fa['end']['isAtEnd']&&_0x2730fa['end']['parent']==_0x2730fa['start']['nodeAfter']?_0x2cab67['createSelection'](_0x2730fa['start']['nodeAfter'],'on'):_0x2cab67['createSelection'](_0x2730fa),this['_model']['deleteContent'](_0x28613b,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x296108=(_0x22fd3c,_0x2099f6)=>{_0x2099f6&&this['_model']['change'](_0x6d38ff=>{const {commandName:_0x1e2c32,commandParams:_0x299063=[]}=_0x2099f6,_0x4acbbe=_0x22fd3c['map'](_0x2cffa9=>(Qe(_0x2cffa9)&&(_0x2cffa9=this['_model']['createRange'](_0x2cffa9['end'])),_0x2cffa9))['filter'](_0x45282a=>'$graveyard'!==_0x45282a['root']['rootName']);if(_0x4acbbe['length']<0x1)return;const _0x1dfe63=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x505b1d=>_0x704ba['fromRange'](_0x505b1d));_0x6d38ff['setSelection'](_0x4acbbe);for(const _0x148f5c of this['_editor']['commands']['commands']())_0x148f5c['refresh']();_0x299063['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x1e2c32,..._0x299063);const _0x4b5af1=_0x1dfe63['filter'](_0xfbbd5=>'$graveyard'!=_0xfbbd5['root']['rootName']);_0x4b5af1['length']>0x0&&_0x6d38ff['setSelection'](_0x4b5af1);for(const _0x14bfc6 of _0x1dfe63)_0x14bfc6['detach']();});},_0x137c24=(_0x21e18b,_0x3b6e79)=>0x1==_0x21e18b['length']&&0x1==_0x3b6e79['length']&&_0x21e18b[0x0]['end']['isEqual'](_0x3b6e79[0x0]['start']),_0x4241eb=(_0xd387e0,_0x323b9a,_0x2b49d4,_0x3374d5)=>on(_0xd387e0,_0x323b9a,_0x2b49d4,_0x3374d5)?[_0xd387e0,_0x323b9a]:on(_0x323b9a,_0xd387e0,_0x3374d5,_0x2b49d4)?[_0x323b9a,_0xd387e0]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x621350),this['_defaultCallbacks']['set']('insertion:discard',_0x1785cd),this['_defaultCallbacks']['set']('insertion:join',_0x137c24),this['_defaultCallbacks']['set']('insertion:chain',_0x4241eb),this['_defaultCallbacks']['set']('deletion:accept',_0x1785cd),this['_defaultCallbacks']['set']('deletion:discard',_0x621350),this['_defaultCallbacks']['set']('deletion:join',_0x137c24),this['_defaultCallbacks']['set']('deletion:chain',_0x4241eb),this['_defaultCallbacks']['set']('formatInline:accept',_0x296108),this['_defaultCallbacks']['set']('formatInline:discard',_0x621350),this['_defaultCallbacks']['set']('formatInline:join',_0x137c24),this['_defaultCallbacks']['set']('formatInline:chain',_0x621350),this['_defaultCallbacks']['set']('formatBlock:accept',_0x296108),this['_defaultCallbacks']['set']('formatBlock:discard',_0x621350),this['_defaultCallbacks']['set']('formatBlock:join',_0x137c24),this['_defaultCallbacks']['set']('formatBlock:chain',_0x621350),this['_defaultCallbacks']['set']('attribute:accept',_0x621350),this['_defaultCallbacks']['set']('attribute:discard',(_0x1be07c,_0x36b9cd)=>{if(!_0x36b9cd)return;const _0x35a6b6=this['_editor']['plugins']['get'](_0xaf0ffc);this['_model']['change'](_0x1f0753=>{if(_0x36b9cd['key']==Ke)for(const _0x246e3a of _0x1be07c){const _0x13e2a6=_0x246e3a['start']['nodeAfter'],_0x1b874a=_0x36b9cd['oldValue'];_0x1f0753['rename'](_0x13e2a6,_0x1b874a);}else{if(_0x35a6b6['isBlockAttribute'](_0x36b9cd['key'])){for(const _0x56f883 of _0x1be07c)void 0x0!==_0x36b9cd['oldValue']?_0x1f0753['setAttribute'](_0x36b9cd['key'],_0x36b9cd['oldValue'],_0x56f883['start']['nodeAfter']):_0x1f0753['removeAttribute'](_0x36b9cd['key'],_0x56f883['start']['nodeAfter']);}else{for(const _0x500494 of _0x1be07c)_0x36b9cd['oldValue']?_0x1f0753['setAttribute'](_0x36b9cd['key'],_0x36b9cd['oldValue'],_0x500494):_0x1f0753['removeAttribute'](_0x36b9cd['key'],_0x500494);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x137c24);}}function qe(_0x1cf238,_0x411eac,_0x45bd74){for(const _0x5bf9f7 of _0x411eac['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x5bf9f7['root']==_0x5bf9f7)return!0x1;if(!_0x45bd74['containsItem'](_0x5bf9f7))return!0x1;if(_0x1cf238['isObject'](_0x5bf9f7)||_0x1cf238['isLimit'](_0x5bf9f7))return!0x0;}return!0x1;}function Qe(_0x4ef291){return _0x4ef291['end']['parent']==_0x4ef291['start']['nodeAfter']&&_0x4ef291['end']['isAtStart'];}function Ze(_0x40e077,_0x21a341,_0x6bda78,_0x9e82ef){const _0x43c44c=_0x2cd050=>!_0x2cd050['item']['is']('$textProxy')&&!_0x9e82ef['isObject'](_0x2cd050['item']),_0x978df7=_0x40e077['start']['getLastMatchingPosition'](_0x43c44c),_0x9dbbdf=_0x40e077['end']['getLastMatchingPosition'](_0x43c44c,{'direction':'backward'});return(!_0x40e077['start']['isEqual'](_0x978df7)||!_0x40e077['end']['isEqual'](_0x9dbbdf))&&(_0x978df7['isBefore'](_0x9dbbdf)?_0x6bda78['updateMarker'](_0x21a341,{'range':_0x6bda78['createRange'](_0x978df7,_0x9dbbdf)}):_0x6bda78['removeMarker'](_0x21a341),!0x0);}function Je(_0xcb0d75){return _0x57387b(_0xcb0d75);}function tn(_0x2b97e7){const _0x50a157=_0x2b97e7['start']['nodeAfter'];return _0x50a157&&_0x50a157['is']('element');}function en(_0x24f483){return Qe(_0x24f483)||function(_0x304c0d){return _0x304c0d['start']['parent']==_0x304c0d['end']['nodeBefore']&&_0x304c0d['start']['isAtEnd'];}(_0x24f483);}function nn(_0xe14221,_0x459cb6){try{const _0x3d6c1d=_0xe14221['getRange']();for(const _0x941f0f of _0x459cb6)if(_0xe14221!==_0x941f0f&&_0x3d6c1d&&_0x3d6c1d['isIntersecting'](_0x941f0f['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function sn(_0x40d806,_0x282a6d){return null==_0x40d806['end']['nodeBefore']&&_0x40d806['end']['parent']==_0x40d806['start']['nodeAfter']?rn(_0x40d806['start']['nodeAfter'],_0x282a6d):_0x40d806;}function rn(_0x1accc9,_0x3ed7a7){const _0x19680e=_0x3ed7a7['schema']['isObject'](_0x1accc9)||_0x3ed7a7['schema']['isSelectable'](_0x1accc9);return _0x3ed7a7['createRange'](_0x3ed7a7['createPositionAt'](_0x1accc9,'before'),_0x19680e?_0x3ed7a7['createPositionAfter'](_0x1accc9):_0x3ed7a7['createPositionAt'](_0x1accc9,'end'));}function on(_0x15fff7,_0x23df28,_0x361851,_0x2b17cb){return!!an(_0x15fff7,_0x23df28)&&_0x361851['end']['isEqual'](_0x2b17cb['start']);}function an(_0x519689,_0xd5361a){if(!_0x519689['_isDataLoaded']||!_0xd5361a['_isDataLoaded'])return!0x1;const _0x534f0e=new Set(Object['keys'](_0x519689['attributes'])),_0x1af193=new Set(Object['keys'](_0xd5361a['attributes']));if(_0x534f0e['delete']('groupId'),_0x1af193['delete']('groupId'),0x0==_0x534f0e['size']&&0x0==_0x1af193['size'])return!0x0;if(_0x534f0e['size']!=_0x1af193['size'])return!0x1;const _0x470049={..._0x519689['attributes']},_0x3d99d9={..._0xd5361a['attributes']};return delete _0x470049['groupId'],delete _0x3d99d9['groupId'],JSON['stringify'](_0x470049)==JSON['stringify'](_0x3d99d9);}function cn(_0x131849,_0x4428e9){const _0x9d7756=ln(_0x131849['attributes']),_0x123e56=ln(_0x4428e9);if(!_0x131849['_isDataLoaded'])return!0x1;for(const _0x5c00ff of Object['keys'](_0x123e56))if(!st(_0x9d7756[_0x5c00ff],_0x123e56[_0x5c00ff]))return!0x1;return!0x0;}function ln(_0x2d635a){const _0x594365=Object['assign']({},_0x2d635a);return delete _0x594365['skipNestingCheck'],delete _0x594365['tablePasteChainId'],_0x594365;}function un(_0x1f7cb5){return _0x1f7cb5['split']('|')[0x0];}class hn extends/* #__PURE__ -- @preserve */
|
|
26
|
-
_0x5cd431(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x52e964,_0x360569,_0x26b4f6,_0x163cd4){super(),this['model']=_0x360569,this['view']=_0x26b4f6,this['commentThreadController']=_0x163cd4,this['_editor']=_0x52e964,this['_acceptCommand']=_0x52e964['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x52e964['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x1d2fce,_0x430247)=>_0x1d2fce||_0x430247),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x9d72b0=>_0x9d72b0&&this['_editor']['model']['canEditAt'](_0x360569['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x3b65bd=>_0x3b65bd&&this['_editor']['model']['canEditAt'](_0x360569['getRanges']())),this['_pendingAction']=null,_0x26b4f6['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x26b4f6,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x26b4f6,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x26b4f6,'change:isDirty',()=>{_0x26b4f6['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 _0x1bfabd=At(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x1bfabd);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class dn extends _0x67f2c3{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x4c97c1,_0x58f6e1,_0x31e53a,_0x3df4f8){super(_0x4c97c1),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x18cb74(_0x4c97c1,At(_0x4c97c1,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x58f6e1['authoredAt']),this['bind']('authoredAt')['to'](_0x58f6e1),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',_0x58f6e1,'authoredAt',this,'descriptionParts',(_0x196a2c,_0x540d0,_0x3f3aa9)=>{const _0x4fe40e=_0x3f3aa9['map'](_0x4ed1ed=>gt(_0x4ed1ed['content']))['join']('.\x20')+'.';return At(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x196a2c-0x1,_0x58f6e1['author']['name'],_0x540d0?_0x3df4f8['formatDateTime'](_0x540d0):'',new DOMParser()['parseFromString'](_0x4fe40e,'text/html')['body']['textContent']]);}),this['focusables']=new _0x374709(),this['focusTracker']=new _0x517caf(),this['keystrokes']=new _0x542a7e(),this['focusCycler']=new _0xcbde57({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x9a327a=>_0x9a327a['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x58f6e1,this['_localUser']=_0x31e53a,this['_config']=_0x3df4f8,_0x3df4f8['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x394c73(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x2c206c}=this['_config'];this['commentsListView']=new _0x2c206c(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',_0x23a668=>_0x23a668+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x3a2a04,_0x4c829f)=>_0x3a2a04||!!_0x4c829f);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x4a5dad}=this['_config'],_0x4e5af3=new _0x4a5dad(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x3fccad=_0x4e5af3['commentInputView'];return _0x4e5af3['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x3fccad,'value',(_0x58d467,_0x298cb4,_0x54c30d)=>!!_0x54c30d||_0x58d467&&!_0x298cb4),_0x3fccad['on']('submit',(_0x1a09ab,_0x27411f)=>{this['fire']('addComment',_0x27411f),_0x3fccad['editor']['setData']('');}),_0x3fccad['on']('cancel',()=>this['focus']()),_0x3fccad['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x4e5af3;}}class fn extends dn{['suggestionView'];['_descriptionElement'];constructor(_0x424397,_0x299c3f,_0x18da5a,_0x5ace15){super(_0x424397,_0x299c3f,_0x18da5a,_0x5ace15),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x12968e=>_0x12968e&&_0x12968e[0x0]?_0x12968e[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x241c23,_0x1c1b84)=>{let _0x14a9c9='';for(const _0x5bb406 of _0x241c23)_0x14a9c9+='<p>'+gt(_0x5bb406['content'],_0x5bb406['color'])+'</p>';return _0x1c1b84?_0x14a9c9:_0x14e6fe(_0x14a9c9,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x5ace15['SuggestionView'](_0x424397,_0x299c3f,{'formatDateTime':_0x5ace15['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 _0x4bbce3=this['bindTemplate'],_0x27f106=[this['suggestionView']];return this['commentsListView']&&_0x27f106['push'](this['commentsListView']),this['commentThreadInputView']&&_0x27f106['push'](this['commentThreadInputView']),_0x27f106['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x4bbce3['if']('isActive','ck-suggestion-wrapper--active'),_0x4bbce3['to']('type',_0x24f93b=>'ck-suggestion-'+_0x24f93b),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':_0x4bbce3['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x27f106};}['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 _0x67f2c3{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x2973f7,_0x4cd630,_0x15f9c1){super(_0x2973f7),this['_model']=_0x4cd630,this['_config']=_0x15f9c1,this['set']('description',''),this['bind']('authoredAt')['to'](_0x4cd630),this['acceptButton']=this['_createButton'](At(_0x2973f7,'Accept\x20suggestion'),_0x2015c1,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](At(_0x2973f7,'Discard\x20suggestion'),_0x21fe15,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x5cfa99(_0x2973f7,_0x4cd630['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x374709([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x517caf(),this['keystrokes']=new _0x542a7e(),this['focusCycler']=new _0xcbde57({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x5d18b1=>_0x5d18b1['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x367a60=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x367a60['innerHTML']=this['description'],this['on']('change:description',(_0x5bcb04,_0x61a7d3,_0xcd4e43)=>{_0x367a60['innerHTML']=_0xcd4e43;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x46dbfd=this['bindTemplate'],_0x160224=[{'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':_0x46dbfd['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x46dbfd['to']('authoredAt',_0x4e888a=>this['_config']['formatDateTime'](_0x4e888a))}]}]},{'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']&&_0x160224['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':_0x160224}]};}['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'](_0x1192dd,_0x166f81,_0x3d1323,_0xeeca47,_0x5ef411){const _0x2dfe7d=new _0x50358d(this['locale']);return _0x2dfe7d['set']({'label':_0x1192dd,'icon':_0x166f81,'tooltip':!0x0,'tooltipPosition':_0x5ef411}),_0x2dfe7d['extendTemplate']({'attributes':{'class':_0x3d1323}}),_0x2dfe7d['on']('execute',()=>{this['fire'](_0xeeca47,this['_model']['id']);}),_0x2dfe7d;}['_setupKeyboardNavigation'](){const _0x20bb0f=this['element'];this['keystrokes']['listenTo'](_0x20bb0f);for(const _0x7da1c3 of this['focusables'])this['focusTracker']['add'](_0x7da1c3['element']),this['keystrokes']['listenTo'](_0x7da1c3['element']);this['keystrokes']['set']('enter',(_0x2d3173,_0x18e0f0)=>{_0x20bb0f===_0x2d3173['target']&&(this['focusCycler']['focusFirst'](),_0x18e0f0());}),this['keystrokes']['set']('esc',(_0x49654b,_0x28cf9d)=>{_0x20bb0f!==_0x49654b['target']&&(this['focus'](),_0x28cf9d());});}}class mn extends _0x486e9c{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[Xe,_0xb8ed5b,_0x267a96,_0x11e1e7,_0x2ed405];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x574844){super(_0x574844),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x4c870e=this['editor']['config'];_0x4c870e['define']('trackChanges.SuggestionThreadView',fn),_0x4c870e['define']('trackChanges.SuggestionView',gn),_0x4c870e['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x4c870e['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x282ba5,_0x1ef23a){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x13ac57,_0x5a3078]of this['_handleControllerBuffer']){const _0x44d80f=this['_suggestionToController']['has'](_0x13ac57);_0x44d80f||_0x5a3078?_0x44d80f&&_0x5a3078&&this['_destroyController'](_0x13ac57):this['_initializeController'](_0x13ac57);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0x2ed405)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x282ba5,_0x1ef23a);}['init'](){const _0x2b41a6=this['editor'],_0x57ac69=_0x2b41a6['plugins']['get'](Xe),_0x6b82e7=_0x2b41a6['plugins']['get'](_0x11e1e7),_0x1e5f2d=_0x2b41a6['plugins']['get'](_0x2ed405),_0x24416f=_0x2b41a6['plugins']['get'](_0x267a96);this['_addUIComponentsToFactory'](),_0x1e5f2d['addSourceCollector'](()=>{const _0x51ab78=[];for(const [_0x256713,_0x112204]of Array['from'](this['_suggestionToController'])){const _0x43fb4e=_0x256713['getAllAdjacentSuggestions'](),_0x378b4c=[];for(const _0x547736 of _0x43fb4e){if(!_0x547736['isInContent'])continue;if(_0x547736['isMultiRange']){_0x378b4c['push'](..._0x547736['getRanges']());continue;}const _0x322d68=_0x547736['getFirstRange']();if(_0x378b4c['length']>0x0){const _0x32b045=_0x378b4c[0x0]['getJoined'](_0x322d68);if(_0x32b045){_0x378b4c[0x0]=_0x32b045;continue;}}_0x378b4c['push'](_0x322d68);}_0x51ab78['push']([_0x112204['view'],_0x378b4c]);}return _0x51ab78;}),this['listenTo'](_0x57ac69,'suggestionLoaded',(_0x5e18a4,_0x36fbe2)=>{this['listenTo'](_0x36fbe2,'change:previous',(_0x246d5,_0x25ddc1,_0x31e3fd,_0x517dbb)=>{_0x36fbe2['isInContent']&&(null==_0x31e3fd?(this['_updateController'](_0x517dbb['head']),this['_handleSuggestionControllerDelayed'](_0x36fbe2,!0x1)):(this['_updateController'](_0x31e3fd['head']),null==_0x517dbb&&this['_handleSuggestionControllerDelayed'](_0x36fbe2,!0x0)));}),null!==_0x36fbe2['previous']?this['_updateController'](_0x36fbe2['head']):this['_handleSuggestionControllerDelayed'](_0x36fbe2,!0x1);}),this['listenTo'](_0x57ac69,'suggestionUnloaded',(_0x35b52b,_0x27e151,_0x9a0bf8)=>{this['stopListening'](_0x27e151,'change:previous'),this['_handleControllerBuffer']['delete'](_0x27e151),this['_suggestionToController']['has'](_0x27e151)&&this['_destroyController'](_0x27e151),_0x9a0bf8&&this['_updateController'](_0x9a0bf8['head']);}),this['listenTo'](_0x57ac69,'suggestionChanged',(_0x27d976,_0x15cece)=>{this['_updateController'](_0x15cece);}),this['listenTo'](_0x6b82e7,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x24416f,'addComment',(_0x38f941,{threadId:_0x53a22d,isFromAdapter:_0x394972})=>{if(_0x394972||!_0x57ac69['hasSuggestion'](_0x53a22d))return;const _0x3919e2=_0x57ac69['getSuggestion'](_0x53a22d);this['_suggestionToController']['get'](_0x3919e2)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xc9ee99=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1e8c62;for(const _0x5a9d07 in _0xc9ee99){const _0x29f96a=_0x5a9d07,_0x46f91e=_0xc9ee99[_0x29f96a];if('trackChangesLicenseKeyValid'==_0x46f91e||'trackChangesLicenseKeyInvalid'==_0x46f91e||'trackChangesLicenseKeyExpired'==_0x46f91e||'trackChangesLicenseKeyDomainLimit'==_0x46f91e||'trackChangesLicenseKeyNotAllowed'==_0x46f91e||'trackChangesLicenseKeyEvaluationLimit'==_0x46f91e||'trackChangesLicenseKeyUsageLimit'==_0x46f91e){delete _0xc9ee99[_0x29f96a],_0x1e8c62=_0x46f91e,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x1e8c62&&_0xc9ee99['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x1e8c62&&_0xc9ee99['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x1e8c62&&_0xc9ee99['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x1e8c62&&_0xc9ee99['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x1e8c62&&_0xc9ee99['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x1e8c62&&_0xc9ee99['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x144c77){const _0x43a208=this['_suggestionToController']['get'](_0x144c77);if(!_0x43a208)return null;return this['editor']['plugins']['get'](_0x11e1e7)['getByInnerView'](_0x43a208['view'])||null;}['getSuggestionForAnnotation'](_0x474087){const _0x3b2e26=this['_viewToController']['get'](_0x474087['innerView']);return _0x3b2e26?_0x3b2e26['model']:null;}['_refreshActiveMarkers'](){const _0x2b4bde=this['editor']['plugins']['get'](_0x11e1e7),_0x19a62d=this['editor']['plugins']['get'](Xe),_0xccd0c0=Array['from'](_0x2b4bde['activeAnnotations'],_0x770e40=>_0x770e40['innerView'])['filter'](_0x3fcfbd=>this['_viewToController']['has'](_0x3fcfbd)),_0x519a22=[];for(const _0x34e314 of _0xccd0c0){const _0x5da08a=this['_viewToController']['get'](_0x34e314)['model']['getAllAdjacentSuggestions']();_0x519a22['push'](..._0x5da08a['reduce']((_0x50f8ab,_0x5f19a5)=>[..._0x50f8ab,..._0x5f19a5['getMarkerNames']()],[]));}_0x19a62d['activeMarkers']=_0x519a22;}['_addUIComponentsToFactory'](){const _0x149cd2=this['editor'],_0x18f323=_0x149cd2['locale'],_0x4cce23=At(_0x18f323,'Track\x20changes'),_0x4d9d90=new _0xff8d07([{'type':'switchbutton','model':new _0x31a026({'withText':!0x0,'isToggleable':!0x0,'label':_0x4cce23,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x31a026({'withText':!0x0,'label':At(_0x18f323,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x31a026({'withText':!0x0,'label':At(_0x18f323,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x31a026({'withText':!0x0,'label':At(_0x18f323,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x31a026({'withText':!0x0,'label':At(_0x18f323,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x149cd2['plugins']['has']('TrackChangesPreview')&&_0x4d9d90['addMany']([{'type':'separator'},{'type':'button','model':new _0x31a026({'withText':!0x0,'label':At(_0x18f323,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x3a1ee1 of _0x4d9d90)if(En(_0x3a1ee1)){const _0x57f234=_0x149cd2['commands']['get'](_0x3a1ee1['model']['commandName']);_0x3a1ee1['model']['bind']('isOn','isEnabled')['to'](_0x57f234,'value','isEnabled');}_0x149cd2['ui']['componentFactory']['add']('trackChanges',_0x50849e=>this['_createToolbarButton'](_0x50849e,_0x4d9d90,_0x4cce23)),_0x149cd2['ui']['componentFactory']['add']('menuBar:trackChanges',_0x221da7=>this['_createMenuBarMenu'](_0x221da7,_0x4d9d90,_0x4cce23));}['_createToolbarButton'](_0x4ef0a9,_0x28b3ff,_0x5dc8c1){const _0x3abeda=_0x1ad775(_0x4ef0a9,_0x3f13ac),_0x5e4d81=this['editor']['commands']['get']('trackChanges');_0x3abeda['buttonView']['set']({'tooltip':_0x5dc8c1,'label':_0x5dc8c1,'icon':_0x2f4582}),_0x3abeda['buttonView']['bind']('isOn')['to'](_0x5e4d81,'value'),_0x3abeda['buttonView']['on']('execute',()=>{_0x5e4d81['execute'](),this['editor']['editing']['view']['focus']();}),_0xb65e76(_0x3abeda,_0x28b3ff,{'role':'menu'});const _0x223114=[];for(const _0xcaaeef of _0x28b3ff)En(_0xcaaeef)&&_0x223114['push'](this['editor']['commands']['get'](_0xcaaeef['model']['commandName']));const _0x461e6f=_0x3abeda['buttonView'];return _0x461e6f['actionView']['unbind']('isEnabled'),_0x461e6f['arrowView']['unbind']('isEnabled'),_0x461e6f['actionView']['bind']('isEnabled')['to'](_0x5e4d81,'isEnabled'),_0x461e6f['arrowView']['bind']('isEnabled')['toMany'](_0x223114,'isEnabled',(..._0x1b62e3)=>_0x1b62e3['some'](_0x3038cd=>_0x3038cd)),_0x3abeda['on']('execute',_0x19ef5e=>{this['editor']['execute'](_0x19ef5e['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x3abeda;}['_createMenuBarMenu'](_0x3e7013,_0x50343d,_0x23e2f3){const _0x848dd6=new _0x1a83e1(_0x3e7013),_0xd6e889=this['editor']['commands']['get']('trackChanges');_0x848dd6['buttonView']['set']({'label':_0x23e2f3,'icon':_0x2f4582});const _0xc3883b=new _0x3603ca(_0x3e7013);for(const _0x59a868 of _0x50343d){if('separator'==_0x59a868['type']){_0xc3883b['items']['add'](new _0x170c89(_0x3e7013));continue;}const _0x581fe7=new _0x387716(_0x3e7013,_0x848dd6),_0x136ba8=new _0x32325b(_0x3e7013),_0x11a958=_0x59a868['model'];_0x136ba8['bind'](...Object['keys'](_0x11a958))['to'](_0x11a958),_0x136ba8['delegate']('execute')['to'](_0x848dd6),_0x136ba8['on']('execute',()=>{this['editor']['execute'](_0x11a958['commandName']),this['editor']['editing']['view']['focus']();}),_0x581fe7['children']['add'](_0x136ba8),_0xc3883b['items']['add'](_0x581fe7);}return _0x848dd6['bind']('isEnabled')['to'](_0xd6e889,'isEnabled'),_0x848dd6['panelView']['children']['add'](_0xc3883b),_0x848dd6;}['_initializeController'](_0x4e1038){const _0x3a93c7=this['editor'],_0x4f2905=_0x3a93c7['config'],_0x2e9065=_0x3a93c7['plugins']['get'](_0x11e1e7),_0x19cfa3=_0x3a93c7['plugins']['get'](_0x267a96),_0x373edc=_0x3a93c7['plugins']['get'](_0x2ed405),_0x435178=_0x3a93c7['plugins']['get'](_0xb8ed5b)['me'],_0x3e4174=_0x4f2905['get']('trackChanges')['SuggestionThreadView'],_0x509cac=_0x4f2905['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x1010d2,CommentThreadInputView:_0x5c3086}=_0x3a93c7['plugins']['get']('CommentsUI');let _0x1f7375,_0x3cc402,_0x5bbb87;this['_annotationViews']['has'](_0x4e1038['id'])?(_0x3cc402=this['_annotationViews']['get'](_0x4e1038['id']),_0x1f7375=_0x3cc402['mainView']):(_0x1f7375=new _0x3e4174(_0x3a93c7['locale'],_0x4e1038,_0x435178,{'disableComments':this['_disableComments'],'editorConfig':{..._0x4f2905['get']('comments.editorConfig'),'licenseKey':_0x4f2905['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x4f2905['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x4f2905['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x4f2905['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x414d9b(_0x4f2905['get']('locale'),_0x3a93c7['locale']),'CommentView':_0x4f2905['get']('comments')['CommentView'],'CommentsListView':_0x1010d2,'CommentThreadInputView':_0x5c3086,'SuggestionView':_0x509cac}),_0x1f7375['suggestionView']['acceptButton']['on']('execute',()=>{_0x3a93c7['editing']['view']['focus']();}),_0x1f7375['suggestionView']['discardButton']['on']('execute',()=>{_0x3a93c7['editing']['view']['focus']();}),_0x3cc402=_0x2e9065['createAnnotationView'](this['editor']['locale'],_0x1f7375),_0x3cc402['bind']('isDirty')['to'](_0x1f7375,'isDirty'),_0x3cc402['bind']('length')['to'](_0x1f7375),_0x3cc402['bind']('type')['to'](_0x1f7375,'type',_0x38b9dd=>'suggestion-'+_0x38b9dd),_0x1f7375['on']('escape',()=>{_0x5bbb87['fire']('escape');}),this['_annotationViews']['set'](_0x4e1038['id'],_0x3cc402));const _0x39e00c=_0x19cfa3['createCommentThreadController'](_0x4e1038['commentThread'],_0x1f7375),_0x53d7b6=new hn(_0x3a93c7,_0x4e1038,_0x1f7375,_0x39e00c),_0x55e487=_0x4e1038['getAllAdjacentSuggestions']()['filter'](_0x48476c=>_0x48476c['isInContent']);_0x1f7375['descriptionParts']=_0x3a93c7['plugins']['get'](Xe)['descriptionFactory']['getDescriptions'](_0x55e487),this['_suggestionToController']['set'](_0x4e1038,_0x53d7b6),this['_viewToController']['set'](_0x1f7375,_0x53d7b6);const _0x4a24a2=()=>{const _0x55908b=[],_0x47c4d3=_0x4e1038['getAllAdjacentSuggestions']()['filter'](_0x1e286d=>_0x1e286d['isInContent']);for(const _0x6f918b of _0x47c4d3)_0x55908b['push'](..._0x6f918b['getMarkers']());return _0x48e79d(_0x3a93c7['editing'],_0x55908b);};_0x5bbb87=_0x2e9065['createAnnotation']({'view':_0x3cc402,'target':_0x4a24a2,'type':()=>'suggestion-'+_0x53d7b6['view']['type'],'isVisible':!!_0x4a24a2()}),_0x19cfa3['_bindAnnotationToEditors'](_0x1f7375,_0x5bbb87),_0x2e9065['add'](_0x5bbb87),_0x373edc['registerAnnotation'](_0x5bbb87);}['_destroyController'](_0x2635e6){const _0x5dc631=this['editor']['plugins']['get'](_0x267a96),_0xc44d40=this['editor']['plugins']['get'](_0x11e1e7),_0x470bb0=this['_suggestionToController']['get'](_0x2635e6),_0x13874=_0x470bb0['view'],_0x496cea=_0xc44d40['getByInnerView'](_0x13874);_0x5dc631['_unbindEditors'](_0x13874),_0x496cea&&_0xc44d40['remove'](_0x496cea),this['_suggestionToController']['delete'](_0x2635e6),this['_viewToController']['delete'](_0x13874),_0x470bb0['destroy']();}['_updateController'](_0x5ca934){if(!_0x5ca934['isInContent']||!this['_suggestionToController']['has'](_0x5ca934))return;const _0x19fe72=this['editor']['plugins']['get'](Xe),_0x2972ea=this['_suggestionToController']['get'](_0x5ca934),_0x55f898=_0x5ca934['getAllAdjacentSuggestions']();_0x2972ea['view']['descriptionParts']=_0x19fe72['descriptionFactory']['getDescriptions'](_0x55f898);}['destroy'](){for(const _0x3f1678 of this['_suggestionToController']['keys']())this['_destroyController'](_0x3f1678);for(const _0x592e71 of this['_annotationViews']['values']())_0x592e71['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function En(_0x3dde8d){return'model'in _0x3dde8d;}class Tn extends _0x486e9c{static get['requires'](){return[Xe,mn,_0x711ece];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x290cd2){this['editor']['plugins']['get'](Xe)['adapter']=_0x290cd2;}get['adapter'](){return this['editor']['plugins']['get'](Xe)['adapter'];}['addSuggestion'](_0x46db17){return this['editor']['plugins']['get'](Xe)['addSuggestionData'](_0x46db17);}['getSuggestions']({skipNotAttached:_0x148a63=!0x1,toJSON:_0x4e9f92=!0x1}={}){return this['editor']['plugins']['get'](Xe)['getSuggestions']({'skipNotAttached':_0x148a63,'toJSON':_0x4e9f92});}['getSuggestion'](_0xf0acfd){return this['editor']['plugins']['get'](Xe)['getSuggestion'](_0xf0acfd);}}const _n=['Pagination'];class pn extends _0x486e9c{static get['requires'](){return[Xe];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x354ff0=this['editor'];if(_0x354ff0['config']['define']('trackChangesData.editorCreator',_0x4ba423=>{const _0x4e88d2=_0x354ff0['model']['document']['getRootNames']()['reduce']((_0x3f662d,_0x5c759c)=>(_0x3f662d[_0x5c759c]='',_0x3f662d),{});return _0x354ff0['constructor']['create'](_0x4e88d2,_0x4ba423);}),'function'!=typeof _0x354ff0['config']['get']('trackChangesData')['editorCreator'])throw new _0x24c1f2('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x1833c7){return bn(this['editor'],!0x0,_0x1833c7);}['getDataWithDiscardedSuggestions'](_0x129d3e){return bn(this['editor'],!0x1,_0x129d3e);}}class Ln extends _0x486e9c{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x133862){function _0x1e1366(_0x4c1980){return _0x4c1980['map'](_0x141e91=>String['fromCharCode'](_0x141e91))['join']('');}super(_0x133862),this['result']='end',_0x133862[_0x1e1366([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1e1366([0x76,0x69,0x65,0x77])][_0x1e1366([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1e1366([0x61,0x75,0x74,0x6f]),_0x133862[_0x1e1366([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x1e1366([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1e1366([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x1e1366([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x1e1366([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(_0x37b9f4){return void 0x0!==_0x37b9f4['getRootsAttributes'];}async function bn(_0x2c7a4e,_0x569caa,_0x5b6989){const _0x2608ed=_0x4dd44f(_0x2c7a4e,_n);if(_0x2608ed['plugins']['push'](Xe,Ln),In(_0x2c7a4e)){_0x2608ed['roots']=Object['create'](null);for(const _0xdd7fe of _0x2c7a4e['model']['document']['getRootNames']())_0x2608ed['roots'][_0xdd7fe]={'modelAttributes':_0x2c7a4e['getRootAttributes'](_0xdd7fe)};}const _0xf795ac=document['createDocumentFragment'](),_0x50408d=_0x2c7a4e['config']['get']('trackChangesData')['editorCreator'],_0xfb5076=await _0x50408d(_0x2608ed,()=>function(_0x4dba54){const _0x38da8a=document['createElement']('div');return _0x4dba54['appendChild'](_0x38da8a),_0x38da8a;}(_0xf795ac));!function(_0x66b1cc,_0xd88f4f){const _0x521be1=_0x66b1cc['model']['document']['getRootNames']()['reduce']((_0x330a62,_0x2aeaeb)=>(_0x330a62[_0x2aeaeb]=_0x66b1cc['data']['get']({'rootName':_0x2aeaeb}),_0x330a62),{}),_0x2b470b=_0x66b1cc['plugins']['get']('Users')['users']['map'](_0x17d8b5=>({'id':_0x17d8b5['id'],'name':_0x17d8b5['name']})),_0x43c051=_0x66b1cc['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1f84a3=_0x66b1cc['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4c8148=_0xd88f4f['plugins']['get']('Users'),_0x2f1515=_0xd88f4f['plugins']['get']('TrackChangesEditing'),_0x2946ce=_0xd88f4f['plugins']['get']('CommentsRepository');for(const _0x48b4d9 of _0x2946ce['getCommentThreads']())_0x48b4d9['remove']();for(const _0xf21828 of _0x2b470b)_0x4c8148['getUser'](_0xf21828['id'])||_0x4c8148['addUser'](_0xf21828);_0x4c8148['me']||_0x4c8148['useAnonymousUser']();for(const _0x3e5cf3 of _0x1f84a3)_0x2946ce['addCommentThread'](_0x3e5cf3);for(const _0x3c1085 of _0x43c051)_0x2f1515['addSuggestionData'](_0x3c1085);_0xd88f4f['data']['set'](_0x521be1);}(_0x2c7a4e,_0xfb5076),_0xfb5076['execute'](_0x569caa?'acceptAllSuggestions':'discardAllSuggestions');const _0x43943f=In(_0xfb5076)?_0xfb5076['getFullData'](_0x5b6989):_0xfb5076['data']['get'](_0x5b6989);return await _0xfb5076['destroy'](),_0x43943f;}class An extends _0x67f2c3{['options'];constructor(_0x5435fb,_0x231874){super(_0x5435fb),this['options']=_0x231874,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'](_0x4d5948,_0x513d52){if(!this['element'])return;const _0x444821=[];for(const [_0x16020d,_0x55dbf9]of _0x4d5948){const _0x192c55=document['createElement']('div');_0x192c55['setAttribute']('data-ck-root-name',_0x16020d),_0x192c55['className']=_0x55dbf9['classes']+'\x20ck-track-changes-preview__root-container',_0x192c55['innerHTML']=_0x55dbf9['content'],_0x444821['push'](_0x192c55);}_0x513d52(this['element'],_0x444821),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class kn extends _0xb638e6{constructor(_0x1e2735){super(_0x1e2735),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x29cd61=this['editor'],_0x24bbb3=_0x29cd61['locale'],_0x2fa67c=_0x29cd61['plugins']['get']('Dialog');let _0x738c70;const _0x201c08=function(_0x3b7a2d){const _0x25e145={};if('editables'in _0x3b7a2d['ui']['view']){for(const [_0xb4abdc,_0x199e4]of Object['entries'](_0x3b7a2d['ui']['view']['editables']))_0x25e145[_0xb4abdc]=_0x199e4['element'];}else _0x25e145[_0x3b7a2d['model']['document']['getRootNames']()[0x0]]=_0x3b7a2d['ui']['view']['editable']['element'];return _0x25e145;}(_0x29cd61),_0x45a734=function(_0x343bba){let _0x246f8f=0x0;for(const _0x1e9dd9 of Object['values'](_0x343bba))_0x246f8f=Math['max'](_0x246f8f,_0x1e9dd9['getBoundingClientRect']()['width']);let _0x17fd10=0x0;for(const _0x1c0ca2 of Object['values'](_0x343bba))_0x17fd10+=_0x1c0ca2['getBoundingClientRect']()['height'];const _0x2f728a=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x48b532=Math['min'](_0x17fd10,_0x2f728a);return{'width':_0x246f8f,'height':_0x48b532};}(_0x201c08);_0x2fa67c['show']({'id':'finalContentPreview','title':At(_0x24bbb3,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new An(_0x24bbb3,{'dialogRects':_0x45a734}),'onHide':()=>{_0x738c70['detachFromDom']();},'onShow':()=>{_0x29cd61['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x10c64d=>{const _0x2d50b1=this['_standarizeRootsData'](_0x10c64d,_0x29cd61,_0x201c08);_0x2fa67c['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x2d50b1,_0x29cd61['config']['get']('trackChanges.preview.renderFunction'));}),_0x738c70=new _0x556021(_0x24bbb3,[_0x2fa67c['view']]),_0x738c70['attachToDom'](),_0x738c70['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x29cd61['once']('destroy',()=>{_0x738c70['detachFromDom']();});const _0x43abf1=_0x2fa67c['view']['headerView']['class'];_0x2fa67c['view']['headerView']['class']=_0x43abf1?_0x43abf1+'\x20ck-reset_all':'ck-reset_all',_0x2fa67c['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x2fa67c['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x291095=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x63d76=_0x291095['previewMode'],_0x1e507d={};if('$labels'===_0x63d76){for(const _0x2809c3 of _0x291095['getMergeFieldsIds']())_0x1e507d[_0x2809c3]=_0x291095['getLabel'](_0x2809c3)||_0x2809c3;}else{const _0x24ee15='$defaultValues'===_0x63d76?_0x291095['getDefaultValues']():_0x291095['getDataSetValues'](_0x63d76,!0x0);for(const _0x22dfed of Object['entries'](_0x24ee15)){const [_0x3a0a0a,_0x2713d4]=_0x22dfed;_0x1e507d[_0x3a0a0a]=null!==_0x2713d4?_0x2713d4:_0x291095['getLabel'](_0x3a0a0a)||_0x3a0a0a;}}return{'mergeFieldsData':_0x1e507d};}['_standarizeRootsData'](_0x3551bc,_0x22a45b,_0x5e2190){let _0x451189;if('string'==typeof _0x3551bc){const _0x37bcc0=_0x22a45b['model']['document']['getRootNames']()[0x0];_0x451189={[_0x37bcc0]:_0x3551bc};}else _0x451189=_0x3551bc;const _0x53ac55=this['_fixMediaEmbeds'](_0x451189,_0x22a45b),_0xacece9=function(_0x391e94,_0x18447b){for(const [_0x549f45,_0x46a818]of _0x391e94)_0x46a818['classes']=_0x18447b[_0x549f45]['classList']['value']['replace']('ck-focused','');return _0x391e94;}(this['_sortRoots'](_0x22a45b)['reduce']((_0x46b963,_0x1c4303)=>(_0x46b963['push']([_0x1c4303,{'content':_0x53ac55[_0x1c4303],'classes':''}]),_0x46b963),[]),_0x5e2190);return _0xacece9;}['_fixMediaEmbeds'](_0x35aca2,_0x1b645d){if(!_0x1b645d['plugins']['has']('MediaEmbedEditing'))return _0x35aca2;const _0x5becde=_0x1b645d['plugins']['get']('MediaEmbedEditing');for(const [_0x3014ad,_0x215d45]of Object['entries'](_0x35aca2)){const _0x5c11da=document['createElement']('div');_0x5c11da['innerHTML']=_0x215d45,(_0x5c11da['querySelectorAll']('figure.media')['forEach'](_0x58989f=>{const _0x3a01f7=_0x58989f['querySelector']('oembed');if(_0x3a01f7){const _0x1d5dde=_0x3a01f7['getAttribute']('url');if(_0x1d5dde){const _0x3352b1=_0x5becde['registry']['getMediaViewElement'](new et(_0x1b645d['editing']['view']['document']),_0x1d5dde,{'elementName':'','renderForEditingView':!0x0}),_0xbc0c35=document['createElement']('div');_0xbc0c35['classList']['add']('ck-media__wrapper'),_0x3352b1['render'](_0xbc0c35,_0x1b645d['editing']['view']['domConverter']),_0x3a01f7['replaceWith'](_0xbc0c35);}}}),_0x35aca2[_0x3014ad]=_0x5c11da['innerHTML']);}return _0x35aca2;}['_sortRoots'](_0x215279){if(!function(_0x4fc7f3){return void 0x0!==_0x4fc7f3['getRootsAttributes'];}(_0x215279))return _0x215279['model']['document']['getRootNames']();const _0x4ea7e3=[],_0x5e70cb=new Map();for(const _0x2f5587 of _0x215279['model']['document']['getRootNames']()){const _0x483b19=_0x215279['editing']['view']['getDomRoot'](_0x2f5587)['getClientRects']()['item'](0x0);_0x4ea7e3['push'](_0x2f5587),_0x5e70cb['set'](_0x2f5587,_0x483b19);}return _0x4ea7e3['sort']((_0x1e74b3,_0x5a8440)=>{const _0x598381=_0x5e70cb['get'](_0x1e74b3),_0x35104b=_0x5e70cb['get'](_0x5a8440);return _0x598381['y']-_0x35104b['y']||_0x598381['x']-_0x35104b['x'];}),_0x4ea7e3;}}class Cn extends _0x486e9c{static get['requires'](){return[pn,_0x5b9744];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3c88bf){super(_0x3c88bf),_0x3c88bf['commands']['add']('previewFinalContent',new kn(this['editor'])),_0x3c88bf['config']['define']('trackChanges.preview.renderFunction',(_0x2948b4,_0x5e8a6b)=>{for(const _0x4c7abf of _0x5e8a6b)_0x2948b4['appendChild'](_0x4c7abf);});}}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 _0xcb1bd4,Plugin as _0x112932,PendingActions as _0x23a5ae}from'@ckeditor/ckeditor5-core/dist/index.js';import{CommentsRepository as _0xdf7add,Annotations as _0xeb5a45,EditorAnnotations as _0xe934ab,Comments as _0x4f1d45}from'@ckeditor/ckeditor5-comments/dist/index.js';import{CKEditorError as _0xad9616,ObservableMixin as _0x3d2f74,uid as _0xeec48d,priorities as _0x31ded7,insertToPriorityArray as _0x580a76,logWarning as _0x294e5c,getEnvKeystrokeText as _0x234bab,FocusTracker as _0x467999,KeystrokeHandler as _0x4dc31a,Collection as _0x29c9a2}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x127cf8,IconCancel as _0x486268,IconTrackChanges as _0x460797}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x3d5d9f,View as _0x411e19,ViewCollection as _0x2347d8,FocusCycler as _0x36c07f,UIModel as _0x1f1c35,createDropdown as _0x55ac16,SplitButtonView as _0x1c9db8,addListToDropdown as _0x8e287b,MenuBarMenuView as _0x296aff,MenuBarMenuListView as _0x48e6fe,ListSeparatorView as _0x57a492,MenuBarMenuListItemView as _0x44bca2,MenuBarMenuListItemButtonView as _0x45242a,BodyCollection as _0x48f0ef,Dialog as _0xd2be39}from'@ckeditor/ckeditor5-ui/dist/index.js';import{splitSuggestionMarkerName as _0x2c4563,SuggestionsConversion as _0x21d77b,Users as _0x103758,DocumentCompare as _0x220e4c,fixElementSuggestionRange as _0x3209bc,hashObject as _0x1ac8dd,surroundingMarkersDetector as _0x194267,FOCUS_ANNOTATION_KEYSTROKE as _0x14d721,AriaDescriptionView as _0x885b99,setupThreadKeyboardNavigation as _0x552bc3,trimHtml as _0x3baa13,UserView as _0x463a32,LateFocusButtonView as _0xd78f09,getDateTimeFormatter as _0x42fec2,getAllMarkersDomElementsSorted as _0x2cf6af,sanitizeEditorConfig as _0x2884f8}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{ModelElement as _0x57a901,ModelLiveRange as _0x5def50,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 _0xcb1bd4{['_enabledCommands'];constructor(_0x22672c,_0x505a5b){super(_0x22672c),this['_enabledCommands']=_0x505a5b,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 _0x1fa2d8 of this['editor']['commands']['commands']())_0x1fa2d8['affectsData']&&!this['_enabledCommands']['has'](_0x1fa2d8)&&_0x1fa2d8['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x29a173 of this['editor']['commands']['commands']())_0x29a173['affectsData']&&!this['_enabledCommands']['has'](_0x29a173)&&_0x29a173['clearForceDisabled']('TrackChangesCommand');}}class dt extends _0xcb1bd4{['_suggestions'];constructor(_0x4b8aa0,_0x1880f8){super(_0x4b8aa0),this['_suggestions']=_0x1880f8,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4523fb){const _0x7326aa=this['_suggestions']['get'](_0x4523fb);if(!_0x7326aa)throw new _0xad9616('track-changes-accept-suggestion-not-found',this);const _0x5ccbd0=_0x7326aa['getRanges']();this['editor']['model']['canEditAt'](_0x5ccbd0)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x7326aa);}}class ft extends _0xcb1bd4{['_suggestions'];constructor(_0x5bda54,_0x30f02f){super(_0x5bda54),this['_suggestions']=_0x30f02f,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x30f498){const _0x5a2aa1=this['_suggestions']['get'](_0x30f498);if(!_0x5a2aa1)throw new _0xad9616('track-changes-discard-suggestion-not-found',this);const _0x31c11c=_0x5a2aa1['getRanges']();this['editor']['model']['canEditAt'](_0x31c11c)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x5a2aa1);}}function gt(_0x2ed9cf,_0x479950){let _0x3ec448='';return _0x3ec448+=_0x2ed9cf['split']('*')['map']((_0x1f253b,_0x6cd7dc)=>_0x6cd7dc%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+mt(_0x1f253b)+'</span>':mt(_0x1f253b))['join'](''),_0x479950&&(_0x3ec448+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x479950['value']+'\x22\x20title=\x22'+_0x479950['title']+'\x22></span>'),_0x3ec448;}function mt(_0x498793){const _0x4beb68=document['createElement']('span');return _0x4beb68['innerText']=_0x498793,_0x4beb68['innerHTML'];}function Et(_0x178d96){return _0x178d96['sort']((_0x44a076,_0x2364e9)=>'attribute'===_0x44a076['type']&&'attribute'!==_0x2364e9['type']?-0x1:'attribute'!==_0x44a076['type']&&'attribute'===_0x2364e9['type']?0x1:'deletion'==_0x44a076['type']&&'deletion'!=_0x2364e9['type']?-0x1:'deletion'!=_0x44a076['type']&&'deletion'==_0x2364e9['type']?0x1:0x0);}function Tt(_0x503400,_0x5dba40){let _0x315515,_0x46bcd5=0x0;const _0x51f548=[],_0x40215b=_0x5dba40['schema'];for(;_0x46bcd5<_0x503400['length'];){const _0x4e13b0=_0x503400[_0x46bcd5],_0x1d896d=_0x503400[_0x46bcd5+0x1];_0x315515||(_0x315515=_0x5dba40['createPositionBefore'](_0x4e13b0)),_t(_0x5dba40,_0x4e13b0,_0x1d896d)||(_0x51f548['push'](_0x5dba40['createRange'](_0x315515,_0x40215b['isObject'](_0x4e13b0)?_0x5dba40['createPositionAfter'](_0x4e13b0):_0x5dba40['createPositionAt'](_0x4e13b0,'end'))),_0x315515=null),_0x46bcd5++;}return _0x51f548;}function _t(_0x4927b0,_0x44efee,_0x279e13){if(!_0x279e13)return!0x1;const _0x2932a7=_0x4927b0['createPositionAfter'](_0x44efee),_0x1fc194=_0x4927b0['createPositionBefore'](_0x279e13);return _0x2932a7['isTouching'](_0x1fc194);}function pt(_0x5ecdc5,_0x115937,_0x289179){for(;_0x289179['length'];){const _0x24e8e1=_0x289179['splice'](0x0,0x64);_0x5ecdc5['change'](()=>{for(const _0xcc3081 of _0x24e8e1)_0xcc3081['isInContent']&&_0x115937['execute'](_0xcc3081['id']);});}}class Lt extends _0xcb1bd4{['_command'];['_suggestions'];constructor(_0x1b6484,_0x471a69,_0x76ce6d){super(_0x1b6484),this['_command']=_0x471a69,this['_suggestions']=_0x76ce6d,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0xd2f26f=Array['from'](this['_suggestions']['values']())['some'](_0x2a6a59=>_0x2a6a59['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0xd2f26f;}['execute'](){const _0x3756d6=Et(Array['from'](this['_suggestions']['values']()));for(const _0x552037 of _0x3756d6){const _0x25aff0=_0x552037['getRanges']();if(!this['editor']['model']['canEditAt'](_0x25aff0))return;}pt(this['editor']['model'],this['_command'],_0x3756d6);}}class It extends _0xcb1bd4{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x51802d,_0x2d13cc,_0x3a1904){super(_0x51802d),this['_command']=_0x2d13cc,this['_suggestions']=_0x3a1904,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x475293=this['editor']['model']['document']['selection'],_0x37ecdc=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x2eafac,_0x44f36f){const _0xbe2580=Array['from'](_0x2eafac['getRanges']()),_0x4d4abf=new Set();for(const _0x20a1a7 of _0x44f36f)if(_0x20a1a7['isInContent']){for(const _0x4bf8fb of _0xbe2580)for(const _0x580569 of _0x20a1a7['getRanges']())(_0x4bf8fb['isIntersecting'](_0x580569)||_0x2eafac['isCollapsed']&&!_0x20a1a7['isMultiRange']&&_0x20a1a7['next']&&_0x580569['end']['isTouching'](_0x4bf8fb['start']))&&_0x4d4abf['add'](_0x20a1a7);}return _0x4d4abf;}(_0x475293,_0x37ecdc),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x1f387b=Et(Array['from'](this['_selectedSuggestions']));for(const _0x232b93 of _0x1f387b){const _0x4c6aa5=_0x232b93['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4c6aa5))return;}pt(this['editor']['model'],this['_command'],_0x1f387b);}}class bt extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x3d2f74(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x2b9267,_0x2e1a40){super(),this['id']=_0x2e1a40['id'],this['type']=_0x2e1a40['type'],this['subType']=_0x2e1a40['subType']||null,this['author']=_0x2e1a40['author'],this['creator']=_0x2e1a40['creator']||_0x2e1a40['author'],this['isExternal']=Boolean(_0x2e1a40['attributes']&&_0x2e1a40['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x2e1a40['originalSuggestionId']||null,this['_model']=_0x2b9267,this['_onAccept']=_0x2e1a40['onAccept'],this['_onDiscard']=_0x2e1a40['onDiscard'],this['_onAttributesChange']=_0x2e1a40['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x2e1a40['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 _0x32361b=this;for(;_0x32361b['previous'];)_0x32361b=_0x32361b['previous'];return _0x32361b;}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'](_0x3f190d){this['_markerNames']['add'](_0x3f190d);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0xe2b85a=>this['_model']['markers']['get'](_0xe2b85a))['filter'](_0x704ed8=>_0x704ed8);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x3bcfdb=>{for(const _0x4fafa5 of this['getMarkers']())_0x3bcfdb['removeMarker'](_0x4fafa5);}),this['_markerNames']['clear']();}['removeMarker'](_0x28bad3){this['_model']['change'](_0x3d5be1=>{_0x3d5be1['removeMarker'](_0x28bad3);}),this['_markerNames']['delete'](_0x28bad3);}['addRange'](_0x979838){const _0x25a2d6='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+bt['getMultiRangeId']();this['addMarkerName'](_0x25a2d6),this['_model']['change'](_0x5a6cfe=>{_0x5a6cfe['addMarker'](_0x25a2d6,{'range':_0x979838,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x190cfd){for(const _0x2af15b of this['getRanges']())if(_0x2af15b['isIntersecting'](_0x190cfd))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0xb2831e=>_0xb2831e['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x1d9cbc,_0x3cb7b5)=>[..._0x1d9cbc,..._0x3cb7b5['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x39a6f9=this['getRanges']();if(0x1!=_0x39a6f9['length'])return null;const _0x260098=_0x39a6f9[0x0],_0x43703b=_0x260098['start']['nodeAfter'],_0x1937bf=_0x260098['end']['nodeBefore'];return _0x43703b instanceof _0x57a901?_0x43703b!=_0x1937bf?null:_0x43703b: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 _0x2a47d8=[];let _0x386b53=this['head'];for(;_0x386b53;)_0x2a47d8['push'](_0x386b53),_0x386b53=_0x386b53['next'];return _0x2a47d8;}['setAttribute'](_0x28a44f,_0x124da0){const _0x29b770=nt(this['attributes']);it(_0x29b770,_0x28a44f,_0x124da0),st(_0x29b770,this['attributes'])||(this['attributes']=_0x29b770,this['_onAttributesChange'](_0x29b770));}['removeAttribute'](_0x13a6b3){const _0x11eddd=nt(this['attributes']);rt(_0x11eddd,_0x13a6b3),st(_0x11eddd,this['attributes'])||(this['attributes']=_0x11eddd,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 _0xeec48d()['substr'](0x1,0x5);}}function At(_0x52dbe0,_0x28a30d,_0x128a47){const _0x416c93=_0x52dbe0['t'],t=_0x52dbe0['t'];switch(_0x28a30d){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',_0x128a47);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x128a47);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x128a47);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x128a47);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x128a47);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',_0x128a47);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x128a47);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',_0x128a47);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x128a47);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x128a47);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x128a47);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x128a47);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x128a47);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x128a47);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x128a47);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x128a47);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x128a47);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x128a47);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x128a47);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x128a47);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x128a47);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x128a47);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x128a47);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x128a47);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x128a47);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'},_0x128a47);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x128a47);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x128a47);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x128a47);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x128a47);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x128a47);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x128a47);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x128a47);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'},_0x128a47);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x128a47);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x128a47);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x128a47);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x128a47);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'},_0x128a47);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x128a47);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'},_0x128a47);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'},_0x128a47);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x128a47);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'},_0x128a47);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x128a47);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'},_0x128a47);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x128a47);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x128a47);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x128a47);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x128a47);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x128a47);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'},_0x128a47);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x128a47);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 _0x416c93({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x128a47);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x416c93({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x128a47);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x128a47);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'},_0x128a47);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'},_0x128a47);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'},_0x128a47);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x28a30d;}}class kt{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0xcf6cac,_0x128622){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0xcf6cac,this['_locale']=_0x128622;}['getDescriptions'](_0x2e5750){const _0x3ad439=[],_0x358556=new Set(),_0x5cf990=new Set();for(let _0x12298a=0x0;_0x12298a<_0x2e5750['length'];_0x12298a++){const _0x4e0b08=_0x2e5750[_0x12298a];if(!_0x4e0b08['isInContent'])continue;const _0x25d4b7=this['_handleCustomCallbackDescription'](_0x4e0b08);if(_0x25d4b7){if(null!=_0x4e0b08['subType']){if(_0x358556['has'](_0x4e0b08['subType']))continue;_0x358556['add'](_0x4e0b08['subType']);}_0x3ad439['push'](_0x25d4b7);}else{if('attribute'==_0x4e0b08['type']){const _0x10fd38=_0x4e0b08['data']['key'];if(_0x5cf990['has'](_0x10fd38))continue;_0x5cf990['add'](_0x4e0b08['data']['key']),_0x10fd38==Ke?this['_handleRenameSuggestionDescription'](_0x3ad439,_0x4e0b08):this['_handleAttributeSuggestionDescription'](_0x3ad439,_0x4e0b08);continue;}'insertion'!=_0x4e0b08['type']&&'deletion'!=_0x4e0b08['type']||this['_handleInsertRemoveSuggestionDescription'](_0x3ad439,_0x4e0b08,_0x2e5750[_0x12298a+0x1]);}}return this['_resolveDescriptionItems'](_0x3ad439);}['registerDescriptionCallback'](_0x4f1169){this['_customCallbacks']['push'](_0x4f1169);}['registerElementLabel'](_0x416def,_0x3c7039,_0x24f583=_0x31ded7['normal']){'function'==typeof _0x416def?_0x580a76(this['_itemLabelsCallbacks'],{'matchingCallback':_0x416def,'label':_0x3c7039,'priority':_0x24f583}):this['_itemLabels']['set'](_0x416def,_0x3c7039);}['registerAttributeLabel'](_0x3772a9,_0x2d7950){this['_attributeLabels']['set'](_0x3772a9,_0x2d7950);}['getItemLabel'](_0x16a352,_0x35c713=0x1){let _0x2b1bbb;for(const _0x402531 of this['_itemLabelsCallbacks'])if(_0x402531['matchingCallback'](_0x16a352)){_0x2b1bbb=_0x402531['label'];break;}return _0x2b1bbb||(_0x2b1bbb=this['_itemLabels']['get'](_0x16a352['name'])),_0x2b1bbb?_0x2b1bbb(_0x35c713):0x1!==_0x35c713?_0x35c713+'\x20'+_0x16a352['name']+'s':''+_0x16a352['name'];}['_addDescriptionItems'](_0x1afad4,_0x23237f){const _0x67739e=_0x23237f['getFirstRange']()['getWalker'](),_0x59b01f='insertion'==_0x23237f['type']?'add':'remove';for(const _0x149233 of _0x67739e){const _0x240c59=_0x149233['item'],_0x572ed8=_0x1afad4[_0x1afad4['length']-0x1];if(_0x240c59['is']('$textProxy'))_0x572ed8&&_0x572ed8['type']['indexOf']('Container')>-0x1&&_0x1afad4['pop'](),_0x572ed8&&'text'==_0x572ed8['type']?_0x572ed8[_0x59b01f]+=_0x240c59['data']:_0x1afad4['push']({'type':'text','add':'add'==_0x59b01f?_0x240c59['data']:'','remove':'remove'==_0x59b01f?_0x240c59['data']:''});else{if(this['_schema']['isObject'](_0x240c59)){const _0x38368f=_0x240c59;if(_0x572ed8&&_0x572ed8['type']['indexOf']('Container')>-0x1&&_0x1afad4['pop'](),'elementEnd'==_0x149233['type'])continue;_0x572ed8&&_0x572ed8['type']==_0x59b01f+'Object'&&_0x572ed8['element']['name']==_0x38368f['name']?_0x572ed8['quantity']++:_0x1afad4['push']({'type':_0x59b01f+'Object','element':_0x38368f,'quantity':0x1}),_0x67739e['skip'](_0x23a59b=>!('elementEnd'==_0x23a59b['type']&&_0x23a59b['item']==_0x240c59));}else{if(this['_schema']['checkChild'](_0x240c59,'$text')||_0x240c59['is']('element','softBreak')){const _0x3d589a=_0x240c59;if('add'==_0x59b01f&&'elementStart'==_0x149233['type']||'remove'==_0x59b01f&&'elementEnd'==_0x149233['type'])continue;if(_0x572ed8&&-0x1==_0x572ed8['type']['indexOf']('Container')){'text'==_0x572ed8['type']&&(_0x572ed8[_0x59b01f]+='\x0a');continue;}let _0x213b73;if(_0x213b73='add'==_0x59b01f?_0x3d589a['nextSibling']&&!this['_schema']['isObject'](_0x3d589a['nextSibling'])?_0x3d589a['nextSibling']:null:_0x3d589a['previousSibling']&&!this['_schema']['isObject'](_0x3d589a['previousSibling'])?_0x3d589a['previousSibling']:null,_0x3d589a['isEmpty']||_0x213b73&&_0x213b73['isEmpty']){const _0x6ec99f=_0x213b73&&_0x213b73['isEmpty']?_0x213b73:_0x3d589a;_0x572ed8&&_0x572ed8['type']==_0x59b01f+'EmptyContainer'&&_0x572ed8['element']['name']==_0x6ec99f['name']?_0x572ed8['quantity']++:_0x1afad4['push']({'type':_0x59b01f+'EmptyContainer','element':_0x6ec99f,'quantity':0x1});}else _0x1afad4['push']({'type':_0x59b01f+'Container','element':_0x3d589a});}}}}}['_resolveDescriptionItems'](_0x5806b5){const _0x46adf6=this['_locale'],_0x393292=[],_0x137c07=[],_0x51d6e6=[];for(const _0x5a67ad of _0x5806b5)switch(_0x5a67ad['type']){case'text':if(_0x5a67ad['add']=_0x5a67ad['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x5a67ad['remove']=_0x5a67ad['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x5a67ad['add']&&''!=_0x5a67ad['remove']){_0x393292['push']({'type':'replace','content':At(_0x46adf6,'REPLACE_TEXT',['\x22'+_0x5a67ad['remove']+'\x22','\x22'+_0x5a67ad['add']+'\x22'])});continue;}if(null!=_0x5a67ad['add']['match'](/^ +$/)){_0x393292['push']({'type':'insertion','content':At(_0x46adf6,'*Insert:*\x20%0',At(_0x46adf6,'ELEMENT_SPACE',_0x5a67ad['add']['length']))});continue;}if(null!=_0x5a67ad['remove']['match'](/^ +$/)){_0x393292['push']({'type':'deletion','content':At(_0x46adf6,'*Remove:*\x20%0',At(_0x46adf6,'ELEMENT_SPACE',_0x5a67ad['remove']['length']))});continue;}if(''!=_0x5a67ad['add']){_0x393292['push']({'type':'insertion','content':At(_0x46adf6,'*Insert:*\x20%0','\x22'+_0x5a67ad['add']+'\x22')});continue;}_0x393292['push']({'type':'deletion','content':At(_0x46adf6,'*Remove:*\x20%0','\x22'+_0x5a67ad['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x393292['push']({'type':'insertion','content':At(_0x46adf6,'*Insert:*\x20%0',this['getItemLabel'](_0x5a67ad['element'],_0x5a67ad['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x393292['push']({'type':'deletion','content':At(_0x46adf6,'*Remove:*\x20%0',this['getItemLabel'](_0x5a67ad['element'],_0x5a67ad['quantity']))});continue;case'addContainer':_0x393292['push']({'type':'insertion','content':At(_0x46adf6,'*Split:*\x20%0',this['getItemLabel'](_0x5a67ad['element'],_0x5a67ad['quantity']))});continue;case'removeContainer':_0x393292['push']({'type':'deletion','content':At(_0x46adf6,'*Merge:*\x20%0',this['getItemLabel'](_0x5a67ad['element'],_0x5a67ad['quantity']))});continue;case'addFormat':_0x137c07['push'](_0x5a67ad['key']);continue;case'removeFormat':_0x51d6e6['push'](_0x5a67ad['key']);continue;default:_0x393292['push'](_0x5a67ad);}if(_0x137c07['length']){const _0x74126b=_0x137c07['map'](_0x36dccc=>this['_attributeLabels']['has'](_0x36dccc)?this['_attributeLabels']['get'](_0x36dccc):_0x36dccc)['join'](',\x20');_0x393292['push']({'type':'format','content':At(this['_locale'],'*Set\x20format:*\x20%0',_0x74126b)});}if(_0x51d6e6['length']){const _0x4c76bb=_0x51d6e6['map'](_0x1f9d9d=>this['_attributeLabels']['has'](_0x1f9d9d)?this['_attributeLabels']['get'](_0x1f9d9d):_0x1f9d9d)['join'](',\x20');_0x393292['push']({'type':'format','content':At(this['_locale'],'*Remove\x20format:*\x20%0',_0x4c76bb)});}return _0x393292;}['_handleCustomCallbackDescription'](_0xba614f){for(const _0x2438af of this['_customCallbacks']){const _0x286c8e=_0x2438af(_0xba614f);if(_0x286c8e&&'type'in _0x286c8e)return _0x286c8e;}}['_handleAttributeSuggestionDescription'](_0x1fb2c2,_0xc4dad2){const _0x44c84f=_0xc4dad2['data'],_0x5421ef=void 0x0===_0x44c84f['newValue']?'removeFormat':'addFormat';_0x1fb2c2['push']({'type':_0x5421ef,'key':_0x44c84f['key']});}['_handleRenameSuggestionDescription'](_0x3e3451,_0x5924e3){_0x3e3451['push']({'type':'format','content':At(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x5924e3['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x42bb12,_0x1f12ef,_0x5456fe){if(this['_addDescriptionItems'](_0x42bb12,_0x1f12ef),_0x5456fe&&_0x5456fe['getFirstRange']()&&!_0x1f12ef['getFirstRange']()['end']['isEqual'](_0x5456fe['getFirstRange']()['start'])){const _0x27e176=_0x42bb12[_0x42bb12['length']-0x1],_0x40cf36='insertion'==_0x1f12ef['type']?'add':'remove';_0x27e176&&'text'==_0x27e176['type']&&(_0x27e176[_0x40cf36]+='\x0a');}}}class Ct extends _0x112932{['afterInit'](){const _0x52e52d=this['editor'],_0x58a88b=_0x52e52d['plugins']['get']('TrackChangesEditing');_0x52e52d['commands']['get']('showAIAssistant')&&_0x58a88b['enableCommand']('showAIAssistant');}}class yt extends _0x112932{['afterInit'](){const _0xe8b2e3=this['editor'],_0x3aebeb=_0xe8b2e3['plugins']['get']('TrackChangesEditing');_0xe8b2e3['commands']['get']('toggleAi')&&_0x3aebeb['enableCommand']('toggleAi');}}class Nt extends _0x112932{['afterInit'](){const _0xd5a639=this['editor'],_0x474e2b=_0xd5a639['plugins']['get']('TrackChangesEditing');_0xd5a639['commands']['get']('aiQuickAction')&&_0x474e2b['enableCommand']('aiQuickAction');}}class Rt extends _0x112932{['afterInit'](){const _0xba7cd7=this['editor'],_0x21614b=_0xba7cd7['locale'];if(!_0xba7cd7['plugins']['has']('AlignmentEditing'))return;const _0x35ba2d=_0xba7cd7['plugins']['get']('TrackChangesEditing');_0x35ba2d['enableDefaultAttributesIntegration']('alignment'),_0x35ba2d['descriptionFactory']['registerAttributeLabel']('alignment',At(_0x21614b,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3dcc53=this['editor'],_0x181de4=_0x3dcc53['locale'];_0x3dcc53['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2357fb=>{if('formatBlock'!=_0x2357fb['type'])return;const {data:_0x10bd5b}=_0x2357fb;if(_0x10bd5b&&'alignment'==_0x10bd5b['commandName']){const _0xde0b4f=_0x10bd5b['commandParams'][0x0]['value'];return{'type':'format','content':At(_0x181de4,'*Format:*\x20%0',function(_0x43d0a0){switch(_0x43d0a0){case'left':return At(_0x181de4,'FORMAT_ALIGN_TO_LEFT');case'right':return At(_0x181de4,'FORMAT_ALIGN_TO_RIGHT');case'center':return At(_0x181de4,'FORMAT_ALIGN_TO_CENTER');case'justify':return At(_0x181de4,'FORMAT_JUSTIFY_TEXT');}}(_0xde0b4f))};}});}}const St=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class Mt extends _0x112932{['afterInit'](){const _0x31e5f9=this['editor'],_0x4efc4c=_0x31e5f9['plugins']['get']('TrackChangesEditing'),_0x5db9d0=_0x31e5f9['locale'];for(const _0x4741b8 of St){if(!_0x31e5f9['plugins']['has'](_0x4741b8))continue;const _0x40dcb3=_0x4741b8['slice'](0x0,-0x7)['toLowerCase'](),_0x534d00='FORMAT_'+_0x40dcb3['toUpperCase']();_0x4efc4c['enableDefaultAttributesIntegration'](_0x40dcb3),_0x4efc4c['descriptionFactory']['registerAttributeLabel'](_0x40dcb3,At(_0x5db9d0,_0x534d00));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x374c04=this['editor'],_0x33ca96=_0x374c04['locale'],_0x30bd10=_0x374c04['plugins']['get']('TrackChangesEditing');function _0x31450b(_0x1c0cfd,_0x479197){_0x30bd10['descriptionFactory']['registerDescriptionCallback'](_0x5e5757=>{if('formatInline'!=_0x5e5757['type'])return;const {data:_0x3972cc}=_0x5e5757;return _0x3972cc&&_0x3972cc['commandName']===_0x1c0cfd?_0x3972cc['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x33ca96,'*Format:*\x20%0',_0x479197)}:{'type':'format','content':At(_0x33ca96,'*Remove\x20format:*\x20%0',_0x479197)}:void 0x0;});}_0x31450b('bold',At(_0x33ca96,'FORMAT_BOLD')),_0x31450b('italic',At(_0x33ca96,'FORMAT_ITALIC')),_0x31450b('underline',At(_0x33ca96,'FORMAT_UNDERLINE')),_0x31450b('code',At(_0x33ca96,'FORMAT_CODE')),_0x31450b('strikethrough',At(_0x33ca96,'FORMAT_STRIKETHROUGH')),_0x31450b('subscript',At(_0x33ca96,'FORMAT_SUBSCRIPT')),_0x31450b('superscript',At(_0x33ca96,'FORMAT_SUPERSCRIPT'));}}class Ot extends _0x112932{['afterInit'](){const _0x3e1f89=this['editor'],_0x47a65f=_0x3e1f89['locale'];if(!_0x3e1f89['plugins']['has']('BlockQuoteEditing'))return;const _0x55e80a=_0x3e1f89['plugins']['get']('TrackChangesEditing'),_0x17f419=this['editor']['commands']['get']('blockQuote');_0x55e80a['enableCommand']('blockQuote',(_0xa03cab,_0x4aa5dd={})=>{const _0x519ba9=this['editor']['model']['document']['selection'],_0x2872fb=_0x4aa5dd&&void 0x0!==_0x4aa5dd['forceValue']?_0x4aa5dd['forceValue']:!_0x17f419['value'];let _0x347149=[];if(_0x2872fb){const _0xb17964=Array['from'](_0x519ba9['getSelectedBlocks']())['filter'](_0xbd44e2=>wt(_0xbd44e2)||function(_0x54bc9f,_0x1b1601){const _0x255d80=_0x1b1601['checkChild'](_0x54bc9f['parent'],'blockQuote'),_0x42e44a=_0x1b1601['checkChild'](['$root','blockQuote'],_0x54bc9f);return _0x255d80&&_0x42e44a;}(_0xbd44e2,this['editor']['model']['schema']));_0x347149=Tt(_0xb17964,_0x3e1f89['model']);}else{const _0x1eb1eb=Array['from'](_0x519ba9['getSelectedBlocks']())['filter'](_0x5ce0af=>wt(_0x5ce0af));_0x347149=Tt(_0x1eb1eb,_0x3e1f89['model']);}_0x3e1f89['model']['change'](()=>{for(const _0x7085b5 of _0x347149)_0x55e80a['markBlockFormat'](_0x7085b5,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x2872fb}]});});}),_0x55e80a['descriptionFactory']['registerDescriptionCallback'](_0x37ecc3=>{const {data:_0x5dd44}=_0x37ecc3;if(_0x5dd44&&'blockQuote'==_0x5dd44['commandName']){const _0x3af085=At(_0x47a65f,'ELEMENT_BLOCK_QUOTE');return _0x5dd44['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x47a65f,'*Set\x20format:*\x20%0',_0x3af085)}:{'type':'format','content':At(_0x47a65f,'*Remove\x20format:*\x20%0',_0x3af085)};}});}}function wt(_0xba2eeb){return'blockQuote'==_0xba2eeb['parent']['name'];}class Bt extends _0x112932{['afterInit'](){const _0x413c3b=this['editor'],_0x6ffac8=_0x413c3b['locale'],_0x6c059b=_0x413c3b['plugins']['get']('TrackChangesEditing');_0x413c3b['plugins']['has']('BookmarkEditing')&&(_0x6c059b['enableCommand']('insertBookmark'),_0x6c059b['enableDefaultAttributesIntegration']('updateBookmark'),_0x6c059b['descriptionFactory']['registerDescriptionCallback'](_0x3f9f67=>{if('insertion'!=_0x3f9f67['type']&&'deletion'!=_0x3f9f67['type']&&'attribute'!=_0x3f9f67['type'])return;const _0x54e551=_0x3f9f67['getContainedElement']();if(null==_0x54e551)return;if(!_0x54e551['is']('element','bookmark'))return;const _0x34dc3d=_0x54e551['getAttribute']('bookmarkId');if('insertion'==_0x3f9f67['type'])return{'type':'insertion','content':At(_0x6ffac8,'*Insert:*\x20%0','\x22'+_0x34dc3d+'\x22\x20'+At(_0x6ffac8,'ELEMENT_BOOKMARK'))};if('deletion'==_0x3f9f67['type'])return{'type':'deletion','content':At(_0x6ffac8,'*Remove:*\x20%0','\x22'+_0x34dc3d+'\x22\x20'+At(_0x6ffac8,'ELEMENT_BOOKMARK'))};const {data:_0x25d931}=_0x3f9f67;if(!_0x25d931||'bookmarkId'!=_0x25d931['key'])return;return{'type':'format','content':At(_0x6ffac8,'*Set\x20bookmark:*\x20%0','\x22'+_0x25d931['newValue']+'\x22')};}));}}class Ft extends _0x112932{['afterInit'](){const _0x1afbab=this['editor'];_0x1afbab['plugins']['has']('CaseChange')&&(_0x1afbab['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x1afbab['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x1afbab['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class Dt extends _0x112932{['afterInit'](){const _0x4bb38e=this['editor'];_0x4bb38e['commands']['get']('ckbox')&&_0x4bb38e['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class vt extends _0x112932{['afterInit'](){const _0x112b9f=this['editor'];if(!_0x112b9f['plugins']['has']('CodeBlock'))return;const _0x3d33de=_0x112b9f['plugins']['get']('TrackChangesEditing'),_0x8435b0=_0x112b9f['locale'],_0x381b08=_0x112b9f['config']['get']('codeBlock')['languages'],_0x24377a=_0x112b9f['commands']['get']('codeBlock');_0x3d33de['enableCommand']('indentCodeBlock'),_0x3d33de['enableCommand']('outdentCodeBlock'),_0x3d33de['enableCommand']('codeBlock',(_0x723789,_0x13a803={})=>{const _0x27d553=_0x112b9f['model'],_0x18538b=_0x112b9f['model']['document']['selection'],_0xef9384=_0x13a803&&void 0x0!==_0x13a803['forceValue']?_0x13a803['forceValue']:!_0x24377a['value'];let _0x102eae;_0x13a803['language']||(_0x13a803['language']=_0x381b08[0x0]['language']),_0x102eae=_0xef9384?Array['from'](_0x18538b['getSelectedBlocks']())['filter'](_0x1bdbaa=>xt(_0x1bdbaa)||function(_0x4e2383,_0x2f098b){if(_0x4e2383['is']('rootElement')||_0x2f098b['isLimit'](_0x4e2383))return!0x1;return _0x2f098b['checkChild'](_0x4e2383['parent'],'codeBlock');}(_0x1bdbaa,_0x27d553['schema'])):Array['from'](_0x18538b['getSelectedBlocks']())['filter'](_0x21a82a=>xt(_0x21a82a));const _0x6889f2=Tt(_0x102eae,_0x27d553);_0x27d553['change'](()=>{for(const _0x4f0aa2 of _0x6889f2)_0x3d33de['markBlockFormat'](_0x4f0aa2,{'commandName':'codeBlock','commandParams':[{..._0x13a803,'forceValue':_0xef9384}],'formatGroupId':'blockName'});});}),(_0x3d33de['descriptionFactory']['registerElementLabel']('codeBlock',_0x3bb50d=>At(_0x8435b0,'ELEMENT_CODE_BLOCK',_0x3bb50d)),_0x3d33de['descriptionFactory']['registerDescriptionCallback'](_0x35e123=>{if('formatBlock'!=_0x35e123['type'])return;const _0x4d6709=_0x8435b0['t'],{data:_0x4ab909}=_0x35e123;if(!_0x4ab909||'codeBlock'!=_0x4ab909['commandName'])return;const _0x291eaf=_0x4ab909['commandParams'][0x0]['language'],_0x6ed3c9=_0x4d6709(_0x381b08['find'](_0x2e4f9a=>_0x2e4f9a['language']===_0x291eaf)['label'])['toLowerCase']();return _0x4ab909['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x8435b0,'*Set\x20format:*\x20%0',At(_0x8435b0,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x6ed3c9+')')}:{'type':'format','content':At(_0x8435b0,'*Remove\x20format:*\x20%0',At(_0x8435b0,'ELEMENT_CODE_BLOCK',0x1))};}));}}function xt(_0x1375b3){return'codeBlock'==_0x1375b3['name'];}class Pt extends _0x112932{['afterInit'](){const _0x341772=this['editor'];if(!_0x341772['plugins']['has']('CommentsEditing'))return;_0x341772['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class Ut extends _0x112932{static get['requires'](){return[at];}['init'](){const _0x8ea7a2=this['editor'],_0x13609a=_0x8ea7a2['plugins']['get']('TrackChangesEditing');_0x13609a['enableCommand']('delete');const _0x11cc74=_0x8ea7a2['commands']['get']('deleteForward');_0x13609a['enableCommand']('deleteForward',(_0x31f564,_0x3b237f={})=>{const _0x1912a4=_0x8ea7a2['model']['createSelection'](_0x8ea7a2['model']['document']['selection']);_0x1912a4['isCollapsed']&&_0x8ea7a2['model']['modifySelection'](_0x1912a4,{'direction':'forward','unit':_0x3b237f['unit']});const _0x7222f9=_0x1912a4['getFirstRange'](),_0x438e33=_0x5def50['fromRange'](_0x7222f9);let _0x476427;_0x31f564(_0x3b237f),_0x476427='$graveyard'==_0x438e33['root']['rootName']?_0x8ea7a2['model']['createRange'](_0x7222f9['start']):_0x8ea7a2['model']['createRange'](_0x438e33['start'],_0x438e33['end']),_0x438e33['detach'](),_0x8ea7a2['model']['enqueueChange'](_0x11cc74['buffer']['batch'],_0x223a35=>{_0x11cc74['buffer']['lock'](),_0x223a35['setSelection'](_0x223a35['createRange'](_0x476427['end'])),_0x11cc74['buffer']['unlock']();});});}}class Gt extends _0x112932{['afterInit'](){const _0x71ce4b=this['editor'];if(!_0x71ce4b['plugins']['has']('ListEditing'))return;const _0x45e983=_0x71ce4b['locale'],_0xb52cbc=_0x71ce4b['plugins']['get']('TrackChangesEditing'),_0x4f31e5=_0x71ce4b['plugins']['has']('TodoListEditing'),_0x126fdc=!!_0x71ce4b['config']['get']('list.multiBlock');function _0x2d9ae3(_0x5dac02){return{'type':'format','content':''+At(_0x45e983,'*Set\x20format:*\x20%0',_0x5dac02)};}function _0x585e5e(_0x526010){return{'type':'format','content':''+At(_0x45e983,'*Remove\x20format:*\x20%0',_0x526010)};}_0xb52cbc['enableDefaultAttributesIntegration']('numberedList'),_0xb52cbc['enableDefaultAttributesIntegration']('bulletedList'),_0xb52cbc['enableDefaultAttributesIntegration']('customNumberedList'),_0xb52cbc['enableDefaultAttributesIntegration']('customBulletedList'),_0xb52cbc['enableDefaultAttributesIntegration']('indentList'),_0xb52cbc['enableDefaultAttributesIntegration']('outdentList'),_0xb52cbc['enableDefaultAttributesIntegration']('splitListItemAfter'),_0xb52cbc['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x126fdc&&(_0xb52cbc['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0xb52cbc['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x4f31e5&&(_0xb52cbc['enableDefaultAttributesIntegration']('todoList'),_0xb52cbc['enableDefaultAttributesIntegration']('checkTodoList'),_0xb52cbc['descriptionFactory']['registerDescriptionCallback'](_0x4c55db=>{const {data:_0x39932c}=_0x4c55db;if(_0x39932c&&'todoListChecked'==_0x39932c['key'])return{'type':'format','content':_0x39932c['newValue']?At(_0x45e983,'*Check\x20item*'):At(_0x45e983,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x114a94=>{if(_0x114a94['batch']['isUndo'])return!0x1;let _0x3e0fdf=!0x1;const _0x2d3700=_0xb52cbc['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x57209e=>'todoListChecked'===_0xb52cbc['_getAttributeKey'](_0x57209e));for(const _0x4d763b of _0x2d3700){'todo'!=_0x4d763b['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0xb52cbc['_findSuggestions'](_0x4d763b['getFirstRange'](),'attribute')['find'](_0xe75a75=>'listType'===_0xb52cbc['_getAttributeKey'](_0xe75a75['suggestion']))||(_0x114a94['removeMarker'](_0x4d763b['getFirstMarker']()),_0x3e0fdf=!0x0));}return _0x3e0fdf;})),_0xb52cbc['descriptionFactory']['registerAttributeLabel']('listIndent',At(_0x45e983,'FORMAT_INDENT'));const _0x4c142c={'type':'format','content':''};_0xb52cbc['descriptionFactory']['registerDescriptionCallback'](_0x279c9b=>{const {data:_0x2d2218}=_0x279c9b;if(!_0x2d2218||'listType'!=_0x2d2218['key'])return;let _0x430992=_0x279c9b['head'];for(;_0x430992;){if(_0x430992['data']&&(('listStyle'==_0x430992['data']['key']||'listMarkerStyle'==_0x430992['data']['key'])&&(_0x430992['data']['newValue']&&'default'!=_0x430992['data']['newValue']||'default'!=_0x430992['data']['oldValue']&&!_0x2d2218['newValue'])||!_0x126fdc&&_0x430992['data']['key']==Ke))return _0x4c142c;_0x430992=_0x430992['next'];}if(null==_0x2d2218['newValue'])switch(_0x2d2218['oldValue']){case'bulleted':return _0x585e5e(At(_0x45e983,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x585e5e(At(_0x45e983,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x585e5e(At(_0x45e983,'ELEMENT_TODO_LIST'));}switch(_0x2d2218['newValue']){case'bulleted':return _0x2d9ae3(At(_0x45e983,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2d9ae3(At(_0x45e983,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2d9ae3(At(_0x45e983,'ELEMENT_TODO_LIST'));}}),_0xb52cbc['descriptionFactory']['registerDescriptionCallback'](_0x4e5f35=>{const {data:_0x110622}=_0x4e5f35;if(_0x110622&&'listIndent'==_0x110622['key'])return null==_0x110622['newValue']||null==_0x110622['oldValue']&&0x0==_0x110622['newValue']?_0x4c142c:void 0x0;}),_0xb52cbc['descriptionFactory']['registerDescriptionCallback'](_0xc894df=>{if('attribute'!=_0xc894df['type'])return;const {data:_0x360915}=_0xc894df;if(!_0x360915||'listItemId'!=_0x360915['key'])return;const _0x5c7e8d=Ht(_0xc894df);return'newValue'==_0x5c7e8d?{'type':'format','content':At(_0x45e983,'*Merge:*\x20list\x20item')}:'oldValue'==_0x5c7e8d?{'type':'format','content':At(_0x45e983,'*Split:*\x20list\x20item')}:_0x4c142c;}),_0x71ce4b['model']['document']['registerPostFixer'](_0x20c85b=>this['listItemIdFixer'](_0x20c85b)),_0x71ce4b['model']['document']['registerPostFixer'](_0xc31d74=>this['noTrackChangesFixer'](_0xc31d74)),_0x71ce4b['model']['document']['on']('change:data',(_0x5b96a0,_0x1f4a06)=>{if(_0x1f4a06['isUndo']||!_0x1f4a06['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x1dad29){if(_0x1dad29['batch']['isUndo']||!_0x1dad29['batch']['isLocal'])return!0x1;let _0x54f96b=!0x1;const _0x10fd21=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1be756=>_0x1be756['data']&&'listItemId'==_0x1be756['data']['key'])['filter'](_0x35d411=>_0x35d411['data']['newValue']&&_0x35d411['data']['oldValue']);for(const _0x664e4f of _0x10fd21)Ht(_0x664e4f)||(_0x1dad29['removeMarker'](_0x664e4f['getFirstMarker']()),_0x54f96b=!0x0);return _0x54f96b;}['noTrackChangesFixer'](_0x1c0857){if(_0x1c0857['batch']['isUndo']||!_0x1c0857['batch']['isLocal'])return!0x1;const _0x5866d7=this['editor']['model']['document']['differ'],_0x398fcc=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x398fcc['trackChangesCommand']['value'])return!0x1;let _0x219135=!0x1;const _0x4e2f32=new Set(['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle']),_0x360f19=_0x5866d7['getChanges']()['filter'](_0x1fecb9=>'attribute'==_0x1fecb9['type'])['filter'](_0x737a27=>_0x4e2f32['has'](_0x737a27['attributeKey']));if(0x0==_0x360f19['length'])return _0x219135;const _0x356e0c=new Set(_0x5866d7['getMarkersToAdd']()['filter'](_0x3774a1=>{if(!_0x3774a1['name']['startsWith']('suggestion:attribute:'))return!0x1;const _0x43a06d=_0x2c4563(_0x3774a1['name'])['subType']['split']('|')[0x0];return _0x4e2f32['has'](_0x43a06d);})['map'](_0x18e3d8=>_0x2c4563(_0x18e3d8['name'])['id']));for(const _0x4a4962 of _0x360f19){const _0x41695c=_0x398fcc['_findSuggestions'](_0x4a4962['range'],'attribute')['filter'](_0x553dea=>{if(_0x553dea['meta']['isNextTo'])return!0x1;if(_0x356e0c['has'](_0x553dea['suggestion']['id']))return!0x1;const _0x561cdf=_0x398fcc['_getAttributeKey'](_0x553dea['suggestion']);return _0x4e2f32['has'](_0x561cdf);})['map'](_0x21f95c=>_0x21f95c['suggestion']);if(_0x41695c['length']){for(const _0x308e57 of _0x41695c)_0x1c0857['removeMarker'](_0x308e57['getFirstMarker']());_0x219135=!0x0;}}return _0x219135;}['assureChains'](){const _0x4426c7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x277575=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x1fef32;const _0x1f4001=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x420823=>{if(_0x420823['data']['oldRange']||!_0x420823['data']['newRange'])return null;if(!_0x420823['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x19f754}=_0x2c4563(_0x420823['name']);if(!_0x4426c7['hasSuggestion'](_0x19f754))return null;const _0x467169=_0x4426c7['getSuggestion'](_0x19f754);return _0x277575['includes'](_0x467169['data']['key']);})['map'](_0x2aa228=>{const {id:_0x59c4e1}=_0x2c4563(_0x2aa228['name']),_0x4ea489=_0x4426c7['getSuggestion'](_0x59c4e1);return _0x1fef32=_0x4ea489['attributes']['groupId'],_0x4ea489['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x1f4001['size'])return;const _0x464c28=_0x4426c7['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5b6095=>'attribute'==_0x5b6095['type']&&_0x5b6095['data']&&_0x277575['includes'](_0x5b6095['data']['key'])&&_0x5b6095['attributes']['groupId']!=_0x1fef32)['map'](_0x5cfe83=>({'listItem':_0x5cfe83['getFirstRange']()['start']['nodeAfter'],'groupId':_0x5cfe83['attributes']['groupId']})),_0x2e04de=new Set();for(const {groupId:_0x1950f5,listItem:_0x4c3778}of _0x464c28)_0x1f4001['has'](_0x4c3778)&&_0x2e04de['add'](_0x1950f5);for(const _0x1125e3 of _0x4426c7['getSuggestions']())_0x2e04de['has'](_0x1125e3['attributes']['groupId'])&&_0x1125e3['setAttribute']('groupId',_0x1fef32);}['_supportLegacySuggestions'](){const _0x461e98=this['editor'],_0xca95a0=_0x461e98['locale'],_0x1e5a36=_0x461e98['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x1e5a36['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x5b3616,_0x2235bb){const _0xd231e9=[];for(let _0x1a5858 of _0x5b3616)_0x1a5858['start']['nodeAfter']===_0x1a5858['end']['parent']&&(_0x1a5858=_0x461e98['model']['createRange'](_0x461e98['model']['createPositionAt'](_0x1a5858['start']['nodeAfter'],0x0))),_0xd231e9['push'](_0x1a5858);_0x461e98['model']['change'](_0x3134bf=>{const _0x2a1c9c=_0x461e98['model']['document']['selection'],_0x3a91fd=Array['from'](_0x2a1c9c['getRanges']())['map'](_0x4b7a1e=>_0x5def50['fromRange'](_0x4b7a1e));_0x3134bf['setSelection'](_0xd231e9),_0x461e98['commands']['get'](_0x2235bb['commandName'])['refresh'](),_0x2235bb['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x461e98['execute'](_0x2235bb['commandName'],..._0x2235bb['commandParams']),_0x3134bf['setSelection'](_0x3a91fd);for(const _0x4ca780 of _0x3a91fd)_0x4ca780['detach']();});}),_0x1e5a36['descriptionFactory']['registerElementLabel'](function(_0x44d783){const _0x4822f6=!_0x461e98['model']['schema']['isObject'](_0x44d783),_0x3ad3a8=_0x44d783['previousSibling'],_0x594903=_0x44d783['nextSibling'],_0xcacd74=_0x44d783['getAttribute']('listItemId'),_0x213816=!_0x3ad3a8||_0x3ad3a8['getAttribute']('listItemId')!==_0xcacd74,_0x190825=!_0x594903||_0x594903['getAttribute']('listItemId')!==_0xcacd74;return _0x4822f6&&Boolean(_0xcacd74)&&_0x213816&&_0x190825;},_0x327c9c=>At(_0xca95a0,'ELEMENT_LIST_ITEM',_0x327c9c));}['_registerLegacyDescription'](){const _0x30f11d=this['editor'],_0x113b11=_0x30f11d['locale'];function _0x2d29f6(_0x514b6a){const _0x191b67=_0x30f11d['commands']['get']('bulletedList')['value'],_0x104af8=_0x30f11d['commands']['get']('numberedList')['value'];return'numberedList'===_0x514b6a?_0x191b67:_0x104af8;}_0x30f11d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x1ce171){if('formatBlock'!=_0x1ce171['type'])return;const {data:_0x3632ea}=_0x1ce171;if(!_0x3632ea)return;let _0x1e009a,_0x9ab192,_0x28e897,_0x315188;switch(_0x3632ea['commandName']){case'bulletedList':_0x28e897=_0x3632ea['commandParams'][0x0]['forceValue'],_0x315188=_0x2d29f6(_0x3632ea['commandName']),_0x1e009a=_0x28e897?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x315188&&_0x30f11d['config']['get']('list.multiBlock')||(_0x1e009a='*Change\x20to:*\x20%0'),_0x9ab192={'type':'format','content':At(_0x113b11,_0x1e009a,At(_0x113b11,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x28e897=_0x3632ea['commandParams'][0x0]['forceValue'],_0x315188=_0x2d29f6(_0x3632ea['commandName']),_0x1e009a=_0x28e897?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x315188&&_0x30f11d['config']['get']('list.multiBlock')||(_0x1e009a='*Change\x20to:*\x20%0'),_0x9ab192={'type':'format','content':At(_0x113b11,_0x1e009a,At(_0x113b11,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x1e009a='*Indent:*\x20%0',_0x9ab192={'type':'format','content':At(_0x113b11,_0x1e009a,At(_0x113b11,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x1e009a=function(_0x9d3d5){const _0x59d96e=_0x9d3d5['getFirstRange']();let _0x16ab2f=_0x59d96e['start']['nodeAfter'];for(;_0x16ab2f&&_0x59d96e['containsItem'](_0x16ab2f);){if(_0x16ab2f['getAttribute']('listIndent')>0x0)return!0x1;_0x16ab2f=_0x16ab2f['nextSibling'];}return!0x0;}(_0x1ce171)?At(_0x113b11,'*Format:*\x20remove\x20from\x20%0',At(_0x113b11,function(_0x14c641){return'ELEMENT_'+_0x14c641['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x1ce171))):At(_0x113b11,'*Outdent:*\x20%0',At(_0x113b11,'ELEMENT_LIST_ITEM')),_0x9ab192={'type':'format','content':_0x1e009a};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x3632ea['multipleBlocks']&&(_0x1e009a='*Merge:*\x20%0',_0x9ab192={'type':'deletion','content':At(_0x113b11,_0x1e009a,At(_0x113b11,'ELEMENT_LIST_ITEM'))});}return _0x9ab192;});}}function Ht(_0x4ddc83){let _0x76dbd2=_0x4ddc83['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x76dbd2;){const _0x5e373c=_0x76dbd2['getAttribute']('listItemId');if(!_0x5e373c)return!0x1;if(_0x5e373c==_0x4ddc83['data']['newValue'])return'newValue';if(_0x5e373c==_0x4ddc83['data']['oldValue'])return'oldValue';_0x76dbd2=_0x76dbd2['previousSibling'];}return!0x1;}class $t extends _0x112932{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0xdc8213=this['editor']['config']['get']('list.properties'),_0x5f1e0a=this['editor']['plugins']['get']('TrackChangesEditing');_0xdc8213['styles']&&_0x5f1e0a['enableDefaultAttributesIntegration']('listStyle'),_0xdc8213['reversed']&&_0x5f1e0a['enableDefaultAttributesIntegration']('listReversed'),_0xdc8213['startIndex']&&_0x5f1e0a['enableDefaultAttributesIntegration']('listStart');const _0x58307e={'type':'format','content':''};_0x5f1e0a['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x4328e6=this['editor']['locale'];_0x5f1e0a['descriptionFactory']['registerAttributeLabel']('listReversed',At(_0x4328e6,'FORMAT_LIST_REVERSED')),_0x5f1e0a['descriptionFactory']['registerDescriptionCallback'](_0x29fbf3=>{const {data:_0x4955dc}=_0x29fbf3;if(_0x4955dc&&'listReversed'==_0x4955dc['key'])return null==_0x4955dc['newValue']||0x0==_0x4955dc['newValue']&&null==_0x4955dc['oldValue']?_0x58307e:void 0x0;}),_0x5f1e0a['descriptionFactory']['registerAttributeLabel']('listStart',At(_0x4328e6,'FORMAT_LIST_START')),_0x5f1e0a['descriptionFactory']['registerDescriptionCallback'](_0x2a95fa=>{const {data:_0x11944a}=_0x2a95fa;if(_0x11944a&&'listStart'==_0x11944a['key'])return null==_0x11944a['newValue']||0x1==_0x11944a['newValue']&&null==_0x11944a['oldValue']?_0x58307e:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x1882db=>{if(_0x1882db['batch']['isUndo'])return!0x1;let _0x16cddd=!0x1;const _0x108e40=_0x5f1e0a['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4c5c81=>{const _0x378355=_0x5f1e0a['_getAttributeKey'](_0x4c5c81);return'listStart'==_0x378355||'listReversed'==_0x378355;});for(const _0x1fd04f of _0x108e40){const _0x1d73cc=_0x1fd04f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x1d73cc||'customNumbered'==_0x1d73cc)continue;_0x5f1e0a['_findSuggestions'](_0x1fd04f['getFirstRange'](),'attribute')['find'](_0x158e42=>'listType'==_0x5f1e0a['_getAttributeKey'](_0x158e42['suggestion']))||(_0x1882db['removeMarker'](_0x1fd04f['getFirstMarker']()),_0x16cddd=!0x0);}return _0x16cddd;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x2ac589){const _0x3c41d6=this['editor']['locale'],{data:_0x3237a7}=_0x2ac589,_0x170f60={'type':'format','content':''};if(!_0x3237a7||'listStyle'!=_0x3237a7['key'])return;if(!_0x3237a7['oldValue'])return'default'==_0x3237a7['newValue']?_0x170f60:{'type':'format','content':''+At(_0x3c41d6,'*Set\x20format:*\x20%0',At(_0x3c41d6,this['_getTranslationKeyForListStyle'](_0x3237a7['newValue'])))};if(!_0x3237a7['newValue']){if('default'==_0x3237a7['oldValue'])return _0x170f60;let _0x1ca219=_0x2ac589['head'];for(;_0x1ca219;){if(_0x1ca219['data']&&'listType'==_0x1ca219['data']['key']&&_0x1ca219['data']['newValue'])return _0x170f60;_0x1ca219=_0x1ca219['next'];}return{'type':'format','content':''+At(_0x3c41d6,'*Remove\x20format:*\x20%0',At(_0x3c41d6,this['_getTranslationKeyForListStyle'](_0x3237a7['oldValue'])))};}if('default'!=_0x3237a7['newValue'])return{'type':'format','content':''+At(_0x3c41d6,'*Set\x20format:*\x20%0',At(_0x3c41d6,this['_getTranslationKeyForListStyle'](_0x3237a7['newValue'])))};let _0x40e675=_0x2ac589['head'];for(;_0x40e675;){if(_0x40e675['data']&&'listType'==_0x40e675['data']['key']&&_0x40e675['data']['newValue']&&_0x40e675['data']['oldValue'])return _0x170f60;_0x40e675=_0x40e675['next'];}return{'type':'format','content':At(_0x3c41d6,'*Set\x20format:*\x20%0',At(_0x3c41d6,'ELEMENT_'+_0x2ac589['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x52578d=this['editor'],_0x59bb79=_0x52578d['locale'];_0x52578d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x25cfd5=>{if('formatBlock'!=_0x25cfd5['type'])return;const {data:_0x4ab41e}=_0x25cfd5;if(!_0x4ab41e)return;let _0x5d80a5,_0x2663e2;switch(_0x4ab41e['commandName']){case'listStyle':_0x5d80a5='*Change\x20to:*\x20%0',_0x2663e2={'type':'format','content':At(_0x59bb79,_0x5d80a5,At(_0x59bb79,this['_getTranslationKeyForListStyle'](_0x4ab41e['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5d80a5=_0x4ab41e['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2663e2={'type':'format','content':At(_0x59bb79,_0x5d80a5)};break;case'listStart':_0x5d80a5='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2663e2={'type':'format','content':At(_0x59bb79,_0x5d80a5,_0x4ab41e['commandParams'][0x0]['startIndex'])};}return _0x2663e2;});}['_getTranslationKeyForListStyle'](_0x1788cc){return'ELEMENT_'+function(_0x33231f){if(Wt['includes'](_0x33231f))return'bulleted';if(Vt['includes'](_0x33231f))return'numbered';return null;}(_0x1788cc)['toUpperCase']()+'_LIST_'+_0x1788cc['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 _0x112932{['afterInit'](){const _0x476d08=this['editor'];_0x476d08['commands']['get']('emoji')&&_0x476d08['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class zt extends _0x112932{static get['requires'](){return[lt];}['init'](){const _0x1b9628=this['editor'],_0x35926f=_0x1b9628['plugins']['get']('TrackChangesEditing'),_0x8df2e3=_0x1b9628['commands']['get']('enter');_0x35926f['enableCommand']('enter',()=>{_0x1b9628['model']['change'](_0x670c7d=>{const _0x939e3e=_0x1b9628['model']['document']['selection'],_0x3fa1eb=_0x939e3e['getFirstPosition'](),_0x476a18=_0x5def50['fromRange'](_0x939e3e['getFirstRange']());if(_0x8df2e3['enterBlock'](_0x670c7d)){const _0x1217fc=_0x1b9628['model']['createPositionAt'](_0x3fa1eb['parent']['nextSibling'],0x0),_0x5374c1=_0x670c7d['createRange'](_0x3fa1eb,_0x1217fc);_0x35926f['markInsertion'](_0x5374c1);}else _0x670c7d['setSelection'](_0x670c7d['createRange'](_0x476a18['end']));_0x476a18['detach'](),_0x8df2e3['fire']('afterExecute',{'writer':_0x670c7d});});});}}class Kt extends _0x112932{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x41708a=this['editor']['plugins']['get']('TrackChangesEditing');_0x41708a['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x41708a['enableCommand']('findNext'),_0x41708a['enableCommand']('findPrevious'),_0x41708a['enableCommand']('replace'),_0x41708a['enableCommand']('replaceAll');}['handleFindCommand'](_0x596f01,_0x55a99b,_0x3bbf51={}){const _0x49b986=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x596f01(_0x2b4cc3=>{let _0x4a03a7=('string'==typeof _0x55a99b?_0x49b986['findByTextCallback'](_0x55a99b,_0x3bbf51):_0x55a99b)(_0x2b4cc3);Array['isArray'](_0x4a03a7)&&(_0x4a03a7={'results':_0x4a03a7,'searchText':'string'==typeof _0x55a99b?_0x55a99b:''});const _0x5d4d89=_0x4a03a7['results']['filter'](_0x29ffcb=>!0x1===this['_isInDeletionRange'](_0x29ffcb,_0x2b4cc3['item']));return{..._0x4a03a7,'results':_0x5d4d89};},_0x3bbf51);}['_isInDeletionRange'](_0x1fe2b6,_0x4e17a0){const _0x29ceb5=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4e17a0,_0x1fe2b6['start']),this['editor']['model']['createPositionAt'](_0x4e17a0,_0x1fe2b6['end']));for(const _0x43a188 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x29ceb5['getIntersection'](_0x43a188['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 _0x112932{['afterInit'](){const _0x4b20d2=this['editor']['locale'],_0x180ddb=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x1dd493,commandName:_0x2fdcbe}of Xt)this['editor']['plugins']['has'](_0x1dd493)&&_0x180ddb['enableDefaultAttributesIntegration'](_0x2fdcbe);_0x180ddb['descriptionFactory']['registerAttributeLabel']('fontSize',At(_0x4b20d2,'FORMAT_FONT_SIZE')),_0x180ddb['descriptionFactory']['registerAttributeLabel']('fontFamily',At(_0x4b20d2,'FORMAT_FONT_FAMILY')),_0x180ddb['descriptionFactory']['registerAttributeLabel']('fontColor',At(_0x4b20d2,'FORMAT_FONT_COLOR')),_0x180ddb['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',At(_0x4b20d2,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x458b81=this['editor'],_0x2a77a8=_0x458b81['locale'];_0x458b81['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x46596a=>{const _0x1ac58c=_0x2a77a8['t'];if('formatInline'!=_0x46596a['type'])return;const {data:_0x867a48}=_0x46596a;if(null!=_0x867a48){if('fontSize'==_0x867a48['commandName']){const _0x504632=_0x867a48['commandParams'][0x0]['value'];if(_0x504632){const _0x517bd5=_0x1ac58c(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x3a9460=>_0x3a9460['model']==_0x504632)['title'])['toLowerCase']();return{'type':'format','content':At(_0x2a77a8,'*Set\x20font\x20size:*\x20%0',_0x517bd5)};}return{'type':'format','content':At(_0x2a77a8,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x867a48['commandName']){const _0x2c157f=_0x867a48['commandParams'][0x0]['value'];return _0x2c157f?{'type':'format','content':At(_0x2a77a8,'*Set\x20font\x20family:*\x20%0',_0x2c157f)}:{'type':'format','content':At(_0x2a77a8,'*Reset\x20font\x20family*')};}if('fontColor'==_0x867a48['commandName']){const _0x1f148b=_0x867a48['commandParams'][0x0]['value'];if(_0x1f148b){const _0x489a30=_0x3d5d9f(this['editor']['config']['get']('fontColor.colors'))['find'](_0x5a48d6=>_0x5a48d6['model']==_0x1f148b);let _0x221f3f=_0x1f148b,_0xd238b8='';return _0x489a30&&(_0x221f3f=_0x489a30['label'],_0xd238b8=_0x1ac58c(_0x221f3f)['toLowerCase']()),{'type':'format','content':At(_0x2a77a8,'*Set\x20font\x20color:*\x20%0',_0xd238b8)['trim'](),'color':{'value':_0x1f148b,'title':_0xd238b8||_0x221f3f}};}return{'type':'format','content':At(_0x2a77a8,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x867a48['commandName']){const _0x27d80f=_0x867a48['commandParams'][0x0]['value'];if(_0x27d80f){const _0x3a867b=_0x3d5d9f(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x115fa8=>_0x115fa8['model']==_0x27d80f);let _0x110d30=_0x27d80f,_0x529e01='';return _0x3a867b&&(_0x110d30=_0x3a867b['label'],_0x529e01=_0x1ac58c(_0x110d30)['toLowerCase']()),{'type':'format','content':At(_0x2a77a8,'*Set\x20font\x20background\x20color:*\x20%0',_0x529e01)['trim'](),'color':{'value':_0x27d80f,'title':_0x529e01||_0x110d30}};}return{'type':'format','content':At(_0x2a77a8,'*Reset\x20font\x20background\x20color*')};}}});}}class qt extends _0x112932{['afterInit'](){const {plugins:_0x5ce4b5}=this['editor'];_0x5ce4b5['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x5ce4b5['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x4a1b5a,plugins:_0x15c6d8,commands:_0x1ef4f3}=this['editor'],_0x4c2ff7=_0x15c6d8['get']('TrackChangesEditing');_0x1ef4f3['get']('footnotesStyle')&&_0x4c2ff7['enableDefaultAttributesIntegration']('footnotesStyle'),_0x1ef4f3['get']('footnotesStart')&&_0x4c2ff7['enableDefaultAttributesIntegration']('footnotesStart'),_0x4c2ff7['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',At(_0x4a1b5a,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x4c2ff7['descriptionFactory']['registerAttributeLabel']('footnotesListStart',At(_0x4a1b5a,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x4164db=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x47d58c,commands:_0x19d0d2}=this['editor'];_0x19d0d2['get']('insertFootnote')&&_0x4164db['enableCommand']('insertFootnote'),_0x4164db['descriptionFactory']['registerElementLabel']('footnoteRef',_0x16a6d5=>At(_0x47d58c,'ELEMENT_FOOTNOTE_REF',_0x16a6d5)),_0x4164db['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x491b23=>At(_0x47d58c,'ELEMENT_FOOTNOTE_DEFINITION',_0x491b23)),_0x4164db['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x2f033e=>At(_0x47d58c,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x2f033e));}}class Qt extends _0x112932{['afterInit'](){const _0x42e3c0=this['editor'],_0x4a03aa=_0x42e3c0['plugins']['get']('TrackChangesEditing'),_0x15cba1=_0x42e3c0['commands']['get']('copyFormat'),_0x1b7bf7=_0x42e3c0['commands']['get']('pasteFormat');_0x15cba1&&_0x1b7bf7&&(_0x4a03aa['enableDefaultAttributesIntegration']('pasteFormat'),_0x4a03aa['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x3a01ab=this['editor'],_0x12e867=_0x3a01ab['locale'];_0x3a01ab['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2ab4c5=>{if('formatBlock'!=_0x2ab4c5['type']&&'formatInline'!=_0x2ab4c5['type'])return;const {data:_0x31313d}=_0x2ab4c5;if(_0x31313d&&'pasteFormat'===_0x31313d['commandName']){const _0x50683a=[],_0x2e2900=_0x31313d['commandParams'][0x0];for(const [_0x413197,_0x58c579]of Object['entries'](_0x2e2900))_0x50683a['push'](Zt(_0x3a01ab,_0x413197,_0x58c579));return _0x50683a['length']?{'type':'format','content':At(_0x12e867,'*Set\x20format\x20to:*\x20%0',_0x50683a['join'](',\x20'))}:{'type':'format','content':At(_0x12e867,'*Remove\x20all\x20formatting*')};}});}}function Zt(_0x3c3ca9,_0x43038c,_0x276355){const _0x24b690=_0x3c3ca9['locale']['t'],_0x3429f9=_0x43038c['split'](/(?=[A-Z])/)['join']('\x20'),_0x50519a=_0x24b690(_0x3429f9['charAt'](0x0)['toUpperCase']()+_0x3429f9['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x276355)return _0x50519a;if('fontColor'===_0x43038c||'fontBackgroundColor'===_0x43038c){const _0x478204=_0x3d5d9f(_0x3c3ca9['config']['get']('fontColor.colors'))['find'](_0x438979=>_0x438979['model']==_0x276355);return _0x50519a+'\x20('+(_0x478204?_0x24b690(_0x478204['label'])['toLowerCase']():_0x276355)+')';}if('fontSize'===_0x43038c&&isNaN(parseFloat(_0x276355))){const _0x1437dc=_0x3c3ca9['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x3c3ca9['config']['get']('fontSize.options'))['find'](_0x1af1f2=>_0x1af1f2['model']==_0x276355);return _0x50519a+'\x20('+(_0x1437dc?_0x24b690(_0x1437dc['title'])['toLowerCase']():_0x276355)+')';}return _0x50519a+'\x20('+_0x276355+')';}class Jt extends _0x112932{['_headingOptions'];['afterInit'](){const _0x5cc234=this['editor'];if(!_0x5cc234['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x5cc234['config']['get']('heading.options');const _0x4e16be=_0x5cc234['locale'],_0x55b7bd=_0x5cc234['plugins']['get']('TrackChangesEditing');_0x55b7bd['enableDefaultAttributesIntegration']('heading');for(const _0x151c11 of this['_headingOptions'])'paragraph'!=_0x151c11['model']&&_0x55b7bd['descriptionFactory']['registerElementLabel'](_0x151c11['model'],_0x2e1632=>{const _0x1b3672=this['_getHeadingLevel'](_0x151c11['model']);return null!==_0x1b3672?_0x19c63a(_0x2e1632,_0x1b3672):_0x151a36(_0x2e1632,_0x151c11['title']);});function _0x19c63a(_0x2ca248,_0x59982e){return At(_0x4e16be,'ELEMENT_HEADING',[_0x2ca248,_0x59982e]);}function _0x151a36(_0x43dcdc,_0xbe389e){return At(_0x4e16be,'ELEMENT_HEADING_CUSTOM',[_0x43dcdc,_0xbe389e]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x244046=this['editor'],_0x36ffee=_0x244046['locale'];function _0x4b8769(_0x1ce39c,_0x2a0b54){return At(_0x36ffee,'ELEMENT_HEADING_CUSTOM',[_0x1ce39c,_0x2a0b54]);}_0x244046['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x50ee46=>{if('formatBlock'!=_0x50ee46['type'])return;const {data:_0x1fd1c8}=_0x50ee46;if(_0x1fd1c8&&'heading'==_0x1fd1c8['commandName']){const _0x2d69c7=_0x1fd1c8['commandParams'][0x0]['value'],_0x15c5ee=this['_getHeadingLevel'](_0x2d69c7);if(null!==_0x15c5ee)return{'type':'format','content':At(_0x36ffee,'*Change\x20to:*\x20%0',(_0x110c85=0x1,_0x4aebf9=_0x15c5ee,At(_0x36ffee,'ELEMENT_HEADING',[_0x110c85,_0x4aebf9])))};const _0x1b5c06=this['_headingOptions']['find'](_0xca2efc=>_0xca2efc['model']===_0x2d69c7)['title'];return{'type':'format','content':At(_0x36ffee,'*Change\x20to:*\x20%0',_0x4b8769(0x1,_0x1b5c06))};}var _0x110c85,_0x4aebf9;});}['_getHeadingLevel'](_0x2a6e53){const _0x4f64ff=_0x2a6e53['match'](/^heading(\d+)/);if(_0x4f64ff)return _0x4f64ff[0x1];const _0x1d6960=this['_headingOptions']?.['find'](_0x4d6657=>_0x4d6657['model']==_0x2a6e53);if(_0x1d6960&&_0x1d6960['view']){const _0x8e5aca=_0x1d6960['view'],_0x3edf5d=(_0x8e5aca['name']??_0x8e5aca)['match'](/^h(\d+)/);if(_0x3edf5d)return _0x3edf5d[0x1];}return null;}}class te extends _0x112932{['afterInit'](){const _0x45df6f=this['editor'];if(!_0x45df6f['plugins']['has']('HighlightEditing'))return;const _0x2b6549=_0x45df6f['plugins']['get']('TrackChangesEditing'),_0x19a21c=_0x45df6f['locale'];_0x2b6549['enableDefaultAttributesIntegration']('highlight'),_0x2b6549['descriptionFactory']['registerAttributeLabel']('highlight',At(_0x19a21c,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x414b31=this['editor'],_0x4cdb22=_0x414b31['locale'];_0x414b31['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x292bb1=>{if('formatInline'!=_0x292bb1['type'])return;const {data:_0x37f463}=_0x292bb1;if(_0x37f463&&'highlight'==_0x37f463['commandName']){const _0x559c8d=_0x4cdb22['t'],_0x2c3ea7=_0x37f463['commandParams'][0x0]['value'];if(_0x2c3ea7){const _0x56be96=_0x414b31['config']['get']('highlight.options')['find'](_0xe493d=>_0xe493d['model']==_0x2c3ea7),_0x143d7f=_0x559c8d(_0x56be96['title'])['toLowerCase']();return{'type':'format','content':At(_0x4cdb22,'*Set\x20highlight:*\x20%0',_0x143d7f),'color':{'value':_0x56be96['color'],'title':_0x56be96['title']}};}return{'type':'format','content':At(_0x4cdb22,'*Remove\x20highlight*',At(_0x4cdb22,'FORMAT_HIGHLIGHT'))};}});}}class ee extends _0x112932{['afterInit'](){const _0x51693a=this['editor'];if(!_0x51693a['plugins']['has']('HorizontalLineEditing'))return;_0x51693a['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0xe29625=_0x51693a['plugins']['get']('TrackChangesEditing'),_0x42ff1c=_0x51693a['locale'];_0xe29625['descriptionFactory']['registerElementLabel']('horizontalLine',_0x33867c=>At(_0x42ff1c,'ELEMENT_HORIZONTAL_LINE',_0x33867c));}}class ne extends _0x112932{['afterInit'](){const _0x2c7246=this['editor'];if(!_0x2c7246['plugins']['has']('HtmlEmbed'))return;const _0xbc3c3c=_0x2c7246['plugins']['get']('TrackChangesEditing'),_0x4260e5=_0x2c7246['locale'];_0xbc3c3c['descriptionFactory']['registerElementLabel']('rawHtml',_0x1e8fb7=>At(_0x4260e5,'ELEMENT_HTML_EMBED',_0x1e8fb7)),_0xbc3c3c['enableDefaultAttributesIntegration']('htmlEmbed'),_0xbc3c3c['descriptionFactory']['registerDescriptionCallback'](_0x15d5b5=>{if('attribute'!=_0x15d5b5['type'])return;const {data:_0x3b10d7}=_0x15d5b5;if(_0x3b10d7&&'value'==_0x3b10d7['key']&&_0x15d5b5['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x10b5db=At(_0x4260e5,'ELEMENT_HTML_EMBED');return{'type':'format','content':At(_0x4260e5,'*Change\x20%0\x20content*',_0x10b5db)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1cd649=this['editor'],_0x4950ec=_0x1cd649['locale'];_0x1cd649['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xef0de2=>{if('formatBlock'!=_0xef0de2['type'])return;const {data:_0x515da0}=_0xef0de2;if(_0x515da0&&'htmlEmbed'==_0x515da0['commandName']){const _0x58a30b=At(_0x4950ec,'ELEMENT_HTML_EMBED');return{'type':'format','content':At(_0x4950ec,'*Change\x20%0\x20content*',_0x58a30b)};}});}}class ie extends _0x112932{['afterInit'](){const _0x59d1fc=this['editor'];if(!_0x59d1fc['plugins']['has']('ImageEditing'))return;const _0x2a22f4=_0x59d1fc['plugins']['get']('TrackChangesEditing'),_0x384df4=_0x59d1fc['plugins']['get']('ImageUtils'),_0xddad0f=_0x59d1fc['locale'];_0x2a22f4['enableCommand']('insertImage'),_0x2a22f4['descriptionFactory']['registerElementLabel']('imageBlock',_0xed37d7=>At(_0xddad0f,'ELEMENT_IMAGE',_0xed37d7)),_0x2a22f4['descriptionFactory']['registerElementLabel']('imageInline',_0x3510b2=>At(_0xddad0f,'ELEMENT_INLINE_IMAGE',_0x3510b2)),_0x2a22f4['descriptionFactory']['registerElementLabel']('caption',()=>At(_0xddad0f,'ELEMENT_CAPTION')),_0x59d1fc['plugins']['has']('ImageUploadEditing')&&_0x2a22f4['enableCommand']('uploadImage'),_0x59d1fc['plugins']['has']('ImageBlockEditing')&&_0x59d1fc['plugins']['has']('ImageInlineEditing')&&(_0x2a22f4['enableCommand']('imageTypeInline',(_0x18c8c7,_0x529a37)=>{const _0x3d3e72=_0x384df4['getClosestSelectedImageElement'](_0x59d1fc['model']['document']['selection']);_0x59d1fc['model']['change'](()=>{_0x2a22f4['markBlockFormat'](_0x3d3e72,{'commandName':'imageTypeInline','commandParams':[_0x529a37]},[],'convertBlockImageToInline');});}),_0x2a22f4['enableCommand']('imageTypeBlock',(_0x24dba4,_0x3977e4)=>{_0x59d1fc['model']['change'](_0x6c58ef=>{let _0x197cdb=_0x384df4['getClosestSelectedImageElement'](_0x59d1fc['model']['document']['selection']),_0x2b7264=_0x6c58ef['createRangeOn'](_0x197cdb);const _0x1a5d16=tt['fromPosition'](_0x2b7264['start'],'toPrevious'),_0x311d2c=tt['fromPosition'](_0x2b7264['end'],'toNext');_0x2a22f4['forceDefaultExecution'](()=>_0x24dba4(_0x3977e4)),_0x197cdb=_0x384df4['getClosestSelectedImageElement'](_0x59d1fc['model']['document']['selection']),_0x2b7264=_0x6c58ef['createRangeOn'](_0x197cdb);const _0x121588=_0x6c58ef['createRange'](_0x1a5d16,_0x311d2c);_0x1a5d16['detach'](),_0x311d2c['detach'](),_0x2a22f4['markBlockFormat'](_0x197cdb,{'commandName':'imageTypeInline','commandParams':[_0x3977e4]},[],'convertInlineImageToBlock'),_0x121588['start']['isBefore'](_0x2b7264['start'])&&_0x2a22f4['markInsertion'](_0x6c58ef['createRange'](_0x121588['start'],_0x2b7264['start']),'convertInlineImageToBlock'),_0x2b7264['end']['isBefore'](_0x121588['end'])&&_0x2a22f4['markInsertion'](_0x6c58ef['createRange'](_0x2b7264['end'],_0x121588['end']),'convertInlineImageToBlock');});}),_0x2a22f4['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x2a22f4['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x2a22f4['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x2a22f4['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x2a22f4['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x2a22f4['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x2d53d2])=>{const _0x514823=_0x2a22f4['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x1c775f=_0x2d53d2['start'],_0x32cb88=_0x2d53d2['end'];const _0x4eff62=_0x59d1fc['model']['schema']['getNearestSelectionRange'](_0x1c775f,'backward'),_0x2f987b=_0x59d1fc['model']['schema']['getNearestSelectionRange'](_0x32cb88,'forward');_0x4eff62['isCollapsed']&&(_0x1c775f=_0x4eff62['start']),_0x2f987b['isCollapsed']&&(_0x32cb88=_0x2f987b['end']),_0x514823([_0x59d1fc['model']['createRange'](_0x1c775f,_0x32cb88)]);}),_0x2a22f4['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x49929c),_0x2a22f4['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x49929c)),_0x59d1fc['plugins']['has']('ImageCaptionEditing')&&(_0x2a22f4['enableCommand']('toggleImageCaption',(_0x45baad,_0x41c07e)=>{const _0x12327c=_0x59d1fc['plugins']['get']('ImageCaptionUtils');let _0x43767e=_0x384df4['getClosestSelectedImageElement'](_0x59d1fc['model']['document']['selection']),_0x33999b=_0x12327c['getCaptionFromImageModelElement'](_0x43767e);_0x59d1fc['model']['change'](()=>{if(_0x33999b)return void _0x2a22f4['markDeletion'](_0x59d1fc['model']['createRangeOn'](_0x33999b));const _0x213d72=_0x384df4['isBlockImage'](_0x43767e);_0x45baad(_0x41c07e),_0x43767e=_0x384df4['getClosestSelectedImageElement'](_0x59d1fc['model']['document']['selection']),_0x33999b=_0x12327c['getCaptionFromImageModelElement'](_0x43767e),_0x2a22f4['markInsertion'](_0x59d1fc['model']['createRangeOn'](_0x33999b),_0x213d72?null:'imageCaption');});}),_0x2a22f4['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x49929c));const _0x54d409=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x57e1e8(_0x4d7d8a,_0x239ff0){const _0x4b1fbc=_0x54d409['findIndex'](({type:_0x144f12,subType:_0x190288})=>_0x4d7d8a['type']==_0x144f12&&_0x4d7d8a['subType']==_0x190288),_0x3f3654=_0x54d409['findIndex'](({type:_0x1b0aaf,subType:_0x199fa6})=>_0x239ff0['type']==_0x1b0aaf&&_0x239ff0['subType']==_0x199fa6);if(_0x4b1fbc<0x0||_0x3f3654<0x0)return!0x1;const _0x49b6c9=_0x4d7d8a['getFirstRange'](),_0x37e32d=_0x239ff0['getFirstRange']();if((0x0==_0x4b1fbc||0x1==_0x4b1fbc)&&0x2==_0x3f3654&&_0x49b6c9['isIntersecting'](_0x37e32d))return!0x0;if(0x2==_0x4b1fbc&&0x3==_0x3f3654){const _0x2dd21=_0x2a22f4['_findSuggestions'](_0x49b6c9,'insertion')['filter'](({suggestion:_0x5e11f4,meta:_0x2ed0a8})=>_0x2ed0a8['isOwn']&&'convertInlineImageToBlock'==_0x5e11f4['subType']);if(_0x2dd21['length']>0x1&&_0x37e32d['end']['isEqual'](_0x49b6c9['start']))return!0x0;if(0x1==_0x2dd21['length']&&(_0x49b6c9['start']['isEqual'](_0x37e32d['end'])||_0x49b6c9['end']['isEqual'](_0x37e32d['start'])))return!0x0;}if(0x3==_0x4b1fbc&&0x3==_0x3f3654&&_0x49b6c9['start']['isBefore'](_0x37e32d['start'])){const _0x87eeee=_0x49b6c9['end']['nodeAfter'],_0x1e9d02=_0x37e32d['start']['nodeBefore'];return _0x384df4['isBlockImage'](_0x87eeee)&&_0x87eeee===_0x1e9d02;}return!0x1;}function _0x49929c(_0x9a4ea1,_0x42fe8c){return _0x57e1e8(_0x9a4ea1,_0x42fe8c)?[_0x9a4ea1,_0x42fe8c]:_0x57e1e8(_0x42fe8c,_0x9a4ea1)?[_0x42fe8c,_0x9a4ea1]:null;}_0x59d1fc['plugins']['has']('ImageResize')&&(_0x2a22f4['enableDefaultAttributesIntegration']('resizeImage'),_0x2a22f4['descriptionFactory']['registerAttributeLabel']('resizedWidth',At(_0xddad0f,'FORMAT_IMAGE_SIZE'))),_0x59d1fc['plugins']['has']('ImageTextAlternativeEditing')&&_0x2a22f4['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x59d1fc['plugins']['has']('PictureEditing')&&_0x2a22f4['descriptionFactory']['registerDescriptionCallback'](_0x2df354=>{if('attribute'!=_0x2df354['type'])return;const {data:_0x1ceebd}=_0x2df354;return _0x1ceebd&&'sources'==_0x1ceebd['key']?{'type':'format','content':''}:void 0x0;}),_0x59d1fc['plugins']['has']('ImageSizeAttributes')&&_0x2a22f4['descriptionFactory']['registerDescriptionCallback'](_0x331c8d=>{if('attribute'!=_0x331c8d['type'])return;const {data:_0x4a0506}=_0x331c8d;return!_0x4a0506||'width'!=_0x4a0506['key']&&'height'!=_0x4a0506['key']?void 0x0:{'type':'format','content':''};}),_0x2a22f4['descriptionFactory']['registerDescriptionCallback'](_0x22395d=>{if(!!_0x54d409['find'](({type:_0x33e321,subType:_0x33ad48})=>_0x22395d['type']==_0x33e321&&_0x22395d['subType']==_0x33ad48))return _0x22395d['previous']?{}:void 0x0;}),_0x2a22f4['descriptionFactory']['registerDescriptionCallback'](_0x32f163=>{if('insertion'==_0x32f163['type']||'deletion'==_0x32f163['type']){const _0x5eeee8=_0x32f163['getContainedElement']();if(_0x5eeee8&&_0x5eeee8['is']('element','caption'))return{'type':'insertion'==_0x32f163['type']?'addObject':'removeObject','element':_0x5eeee8,'quantity':0x1};}}),_0x2a22f4['descriptionFactory']['registerDescriptionCallback'](_0x4e9cc3=>'formatBlock'==_0x4e9cc3['type']&&'convertInlineImageToBlock'==_0x4e9cc3['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x4e9cc3['type']&&'convertBlockImageToInline'==_0x4e9cc3['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x2a22f4['descriptionFactory']['registerDescriptionCallback'](_0x271f30=>{if('attribute'!=_0x271f30['type'])return;const {data:_0x7c42bd}=_0x271f30;if(!_0x7c42bd||'alt'!=_0x7c42bd['key'])return;const _0x4da7c3=_0x7c42bd['newValue'];return _0x4da7c3?{'type':'format','content':At(_0xddad0f,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4da7c3+'\x22')}:{'type':'format','content':At(_0xddad0f,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xf6f72c=this['editor'],_0x156c3d=_0xf6f72c['locale'];_0xf6f72c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x382048=>{if('formatBlock'!=_0x382048['type']&&'formatInline'!=_0x382048['type'])return;const {data:_0x304b6e}=_0x382048;if(_0x304b6e){if('imageTextAlternative'==_0x304b6e['commandName']){const _0x1bed51=_0x304b6e['commandParams'][0x0]['newValue'];return _0x1bed51?{'type':'format','content':At(_0x156c3d,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1bed51+'\x22')}:{'type':'format','content':At(_0x156c3d,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x304b6e['commandName']){const _0x4c0991=_0x304b6e['commandParams'][0x0]['width'];return _0x4c0991?{'type':'format','content':At(_0x156c3d,'*Set\x20image\x20width:*\x20%0',_0x4c0991)}:{'type':'format','content':At(_0x156c3d,'*Reset\x20image\x20width*')};}}});}}class se extends _0x112932{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x2965db=this['editor']['locale'],_0x1b772d=this['editor']['plugins']['get']('TrackChangesEditing');_0x1b772d['enableDefaultAttributesIntegration']('replaceImageSource'),_0x1b772d['descriptionFactory']['registerDescriptionCallback'](_0x3a32cb=>{if('attribute'!=_0x3a32cb['type'])return;const {data:_0x4046a2}=_0x3a32cb;return _0x4046a2&&'src'==_0x4046a2['key']?_0x4046a2['newValue']&&_0x4046a2['oldValue']?{'type':'format','content':At(_0x2965db,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x38016f=this['editor']['plugins']['get']('TrackChangesEditing');_0x38016f['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x38016f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x38016f['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x38016f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xfb3916=this['editor'],_0x2b0fd1=_0xfb3916['locale'];_0xfb3916['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2c89d7=>{if('formatBlock'!=_0x2c89d7['type']&&'formatInline'!=_0x2c89d7['type'])return;const {data:_0x2e51b6}=_0x2c89d7;if(!_0x2e51b6||'replaceImageSource'!=_0x2e51b6['commandName'])return;return{'type':'format','content':At(_0x2b0fd1,'*Format:*\x20replace\x20image\x20URL')};});}}class re extends _0x112932{['afterInit'](){const _0x9666aa=this['editor'];if(!_0x9666aa['plugins']['has']('ImageStyleEditing'))return;const _0x4e7946=_0x9666aa['plugins']['get']('TrackChangesEditing'),_0x1feb00=_0x9666aa['plugins']['get']('ImageUtils'),_0x36c229={};_0x4e7946['enableCommand']('imageStyle',(_0x1885a4,_0x1444b6)=>{const _0x3fc6ea=_0x9666aa['plugins']['get']('Users')['me'],_0xf69f44=_0x9666aa['commands']['get']('imageStyle');let _0x17e560=_0x1feb00['getClosestSelectedImageElement'](_0x9666aa['model']['document']['selection']),_0x3d8460=_0x9666aa['model']['createRangeOn'](_0x17e560),_0x315fe5=_0xf69f44['value'];if(_0x315fe5==_0x1444b6['value'])return;const _0x480822={'commandName':'imageStyle','commandParams':[_0x1444b6],'formatGroupId':_0xeec48d()};_0x9666aa['model']['change'](()=>{if(_0x4e7946['getSuggestions']()['filter'](_0x4f8dc1=>_0x4f8dc1['isInContent']&&_0x3fc6ea==_0x4f8dc1['author']&&('formatBlock'==_0x4f8dc1['type']||'formatInline'==_0x4f8dc1['type'])&&('imageStylePreApply'==_0x4f8dc1['subType']||'imageStylePostApply'==_0x4f8dc1['subType'])&&_0x4f8dc1['getFirstRange']()['isEqual'](_0x3d8460))['forEach'](_0xde2513=>_0x4e7946['discardSuggestion'](_0xde2513['head'])),_0x17e560=_0x1feb00['getClosestSelectedImageElement'](_0x9666aa['model']['document']['selection']),_0x3d8460=_0x9666aa['model']['createRangeOn'](_0x17e560),_0xf69f44['refresh'](),_0x9666aa['commands']['get']('imageTypeInline')['refresh'](),_0x9666aa['commands']['get']('imageTypeBlock')['refresh'](),_0x315fe5=_0xf69f44['value'],_0x315fe5!=_0x1444b6['value'])return _0x1feb00['isInlineImage'](_0x17e560)&&_0xf69f44['shouldConvertImageType'](_0x1444b6['value'],_0x17e560)?(_0x1885a4({..._0x1444b6,'setImageSizes':!0x1}),_0x17e560=_0x1feb00['getClosestSelectedImageElement'](_0x9666aa['model']['document']['selection']),void _0x4e7946['markBlockFormat'](_0x17e560,{..._0x480822,'commandReversedParams':[{'value':_0x315fe5||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x1feb00['isBlockImage'](_0x17e560)?_0x4e7946['markBlockFormat'](_0x17e560,_0x480822,[],'imageStylePostApply'):_0x4e7946['markInlineFormat'](_0x3d8460,_0x480822,'imageStylePostApply'));});});for(const _0xf9dc86 of _0x9666aa['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x36c229[_0xf9dc86['name']]=_0xf9dc86['title']['toLowerCase']();_0x4e7946['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x4e7946['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x4e7946['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x4e7946['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x31f497])=>{_0x1feb00['setImageNaturalSizeAttributes'](_0x31f497['getContainedElement']());}),_0x4e7946['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x3b622a,_0x24873c)=>{_0x4e7946['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x3b622a,{'commandName':_0x24873c['commandName'],'commandParams':_0x24873c['commandReversedParams']});}),_0x4e7946['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x58ba05,_0x2bf349){if(_0x505129(_0x58ba05,_0x2bf349))return[_0x58ba05,_0x2bf349];if(_0x505129(_0x2bf349,_0x58ba05))return[_0x2bf349,_0x58ba05];return null;});const _0x46d678=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x505129(_0x3de0b3,_0x547352){const _0x58fc30=_0x46d678['findIndex'](({type:_0xf3e644,subType:_0x27c73})=>_0x3de0b3['type']==_0xf3e644&&_0x3de0b3['subType']==_0x27c73),_0x77ad2c=_0x46d678['findIndex'](({type:_0x3afd46,subType:_0x12b6d7})=>_0x547352['type']==_0x3afd46&&_0x547352['subType']==_0x12b6d7);if(_0x58fc30<0x0||_0x77ad2c<0x0)return!0x1;const _0x14109e=_0x3de0b3['getFirstRange'](),_0x1d4f67=_0x547352['getFirstRange']();if((0x0==_0x58fc30||0x1==_0x58fc30)&&0x2==_0x77ad2c&&_0x14109e['isIntersecting'](_0x1d4f67))return!0x0;if(0x2==_0x58fc30&&0x3==_0x77ad2c){const _0x2181af=_0x4e7946['_findSuggestions'](_0x14109e,'insertion')['filter'](({suggestion:_0x551b53,meta:_0x92614})=>_0x92614['isOwn']&&'convertInlineImageToBlock'==_0x551b53['subType']);if(_0x2181af['length']>0x1&&_0x1d4f67['end']['isEqual'](_0x14109e['start']))return!0x0;if(0x1==_0x2181af['length']&&(_0x14109e['start']['isEqual'](_0x1d4f67['end'])||_0x14109e['end']['isEqual'](_0x1d4f67['start'])))return!0x0;}if(0x3==_0x58fc30&&0x3==_0x77ad2c&&_0x14109e['start']['isBefore'](_0x1d4f67['start'])){const _0x2b90cf=_0x14109e['end']['nodeAfter'],_0x24819f=_0x1d4f67['start']['nodeBefore'];return _0x1feb00['isBlockImage'](_0x2b90cf)&&_0x2b90cf===_0x24819f;}return!0x1;}_0x9666aa['model']['document']['registerPostFixer'](()=>{let _0x5b7ebd=!0x1;const _0x190603=Array['from'](_0x9666aa['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x42890c,data:_0x9f6b0f}of _0x190603){const {group:_0x37bb70,type:_0x36a577,subType:_0xffebc,id:_0x312edd}=_0x2c4563(_0x42890c);if('suggestion'==_0x37bb70&&_0x4e7946['hasSuggestion'](_0x312edd)){if('formatBlock'==_0x36a577&&('imageStylePreApply'==_0xffebc||'imageStylePostApply'==_0xffebc)){const _0x63c9f9=_0x4e7946['getSuggestion'](_0x312edd);if(_0x9f6b0f['newRange']){const _0x575eb4=_0x63c9f9['getFirstRange']()['getContainedElement']();if(_0x1feb00['isBlockImage'](_0x575eb4))continue;_0x4e7946['discardSuggestion'](_0x63c9f9),_0x5b7ebd=!0x0;}}if('insertion'==_0x36a577&&'imageCaption'==_0xffebc&&!_0x9f6b0f['newRange']){const _0x1b5f74=_0x4e7946['getSuggestion'](_0x312edd);_0x1b5f74['next']&&_0x1b5f74['next']['isInContent']&&(_0x4e7946['discardSuggestion'](_0x1b5f74['next']),_0x5b7ebd=!0x0);}}}return _0x5b7ebd;}),this['_registerLegacyDescription'](_0x36c229);}['_registerLegacyDescription'](_0x1e32b4){const _0x55649c=this['editor'],_0x50dd7e=_0x55649c['locale'];_0x55649c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x21ddf9=>{if('formatBlock'!=_0x21ddf9['type']&&'formatInline'!=_0x21ddf9['type'])return;const {data:_0x348b49}=_0x21ddf9;if(!_0x348b49||'imageStyle'!=_0x348b49['commandName'])return;const _0x51e3e4=_0x348b49['commandParams'][0x0]['value'];return _0x207841('side'===_0x51e3e4?At(_0x50dd7e,'FORMAT_SIDE_IMAGE'):_0x1e32b4[_0x51e3e4]||_0x51e3e4);function _0x207841(_0x1a44a9){return{'type':'format','content':At(_0x50dd7e,'*Format:*\x20%0',_0x1a44a9)};}});}}class oe extends _0x112932{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x1c8f20){super(_0x1c8f20),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x359f15=this['editor'],_0x14c5eb=_0x359f15['commands']['get']('importWord'),_0x454275=_0x359f15['commands']['get']('trackChanges');_0x14c5eb&&(_0x14c5eb['on']('execute',(_0x17d2bc,[,_0x13891f])=>{this['_trackChangesValueDuringImport']=_0x454275['value'],_0x13891f['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x14c5eb,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x14c5eb,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x454275['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x359f15['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x1d8102,_0x334031){const {suggestions:_0x6165fa}=_0x334031,_0x4436b8=this['editor']['commands']['get']('trackChanges'),_0x4d5a76=_0x4436b8['value'];this['_trackChangesValueDuringImport']!==_0x4d5a76&&(_0x4436b8['execute'](),this['_trackChangesExecuted']=!0x0),_0x6165fa&&_0x6165fa['forEach'](({id:_0x34d97d,type:_0xa36730,author:_0x5b6e1e,created_at:_0x770f1a})=>{const _0x1c0876={'id':_0x34d97d,'type':_0xa36730,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x5b6e1e,'createdAt':_0x770f1a?new Date(_0x770f1a):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x1c0876);});}}class ae extends _0x112932{['afterInit'](){const _0xbf348d=this['editor'],_0x41adce=_0xbf348d['plugins']['get']('TrackChangesEditing');if(_0xbf348d['plugins']['has']('IndentEditing')&&(_0x41adce['enableCommand']('indent'),_0x41adce['enableCommand']('outdent')),_0xbf348d['plugins']['has']('IndentBlock')){for(const _0x135ed7 of['indentBlock','outdentBlock'])_0x41adce['enableDefaultAttributesIntegration'](_0x135ed7);if(_0xbf348d['plugins']['has']('ListEditing')){for(const _0x44da2f of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x41adce['enableDefaultAttributesIntegration'](_0x44da2f);}}const _0x4954e6=_0xbf348d['locale'];_0x41adce['descriptionFactory']['registerAttributeLabel']('blockIndent',At(_0x4954e6,'FORMAT_INDENT')),_0x41adce['descriptionFactory']['registerAttributeLabel']('blockIndentList',At(_0x4954e6,'FORMAT_INDENT')),_0x41adce['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',At(_0x4954e6,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5358a6=this['editor'],_0x17c6ef=_0x5358a6['locale'],_0x4402cf=_0x5358a6['plugins']['get']('TrackChangesEditing');_0x4402cf['descriptionFactory']['registerDescriptionCallback'](_0xd53e29=>{if('formatBlock'!=_0xd53e29['type'])return;const {data:_0x546406}=_0xd53e29;if(!_0x546406)return;if('indentBlock'!=_0x546406['commandName']&&'outdentBlock'!=_0x546406['commandName'])return;const _0x1a6d4a=_0xd53e29['getItems']()[0x0],_0x3e7a35=_0x4402cf['descriptionFactory']['getItemLabel'](_0x1a6d4a);return'indentBlock'==_0x546406['commandName']?{'type':'format','content':At(_0x17c6ef,'*Indent:*\x20%0',_0x3e7a35)}:'outdentBlock'==_0x546406['commandName']?{'type':'format','content':At(_0x17c6ef,'*Outdent:*\x20%0',_0x3e7a35)}:void 0x0;});}}class ce extends _0x112932{static get['requires'](){return[ct];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class le extends _0x112932{['afterInit'](){const _0x352cfe=this['editor'];if(!_0x352cfe['plugins']['has']('LinkEditing'))return;const _0x3f91ff=_0x352cfe['plugins']['get']('TrackChangesEditing'),_0x3f1563=_0x352cfe['commands']['get']('link');_0x3f91ff['enableDefaultAttributesIntegration']('link'),_0x3f91ff['enableDefaultAttributesIntegration']('unlink');for(const _0x42b0ea of _0x3f1563['manualDecorators'])_0x3f91ff['descriptionFactory']['registerAttributeLabel'](_0x42b0ea['id'],'link\x20('+_0x42b0ea['label']['toLowerCase']()+')');_0x3f91ff['descriptionFactory']['registerDescriptionCallback'](_0x51028b=>{if('attribute'!=_0x51028b['type'])return;const {data:_0xbbb8ba}=_0x51028b;if(!_0xbbb8ba||'linkHref'!=_0xbbb8ba['key'])return;const _0x111adf=_0xbbb8ba['newValue'],_0x4eb169=_0x352cfe['locale'];return{'type':'format','content':null==_0x111adf?At(_0x4eb169,'*Remove\x20link*'):At(_0x4eb169,'*Set\x20link:*\x20%0','\x22'+_0x111adf+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x17c5b5=this['editor'],_0x2e8976=_0x17c5b5['locale'];_0x17c5b5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xd46ff=>{if('formatInline'!=_0xd46ff['type'])return;const {data:_0x136872}=_0xd46ff;if(_0x136872){if('link'==_0x136872['commandName']){const _0x599ff6=_0x136872['commandParams'][0x0];return{'type':'format','content':At(_0x2e8976,'*Set\x20link:*\x20%0','\x22'+_0x599ff6+'\x22')};}return'unlink'==_0x136872['commandName']?{'type':'format','content':At(_0x2e8976,'*Remove\x20link*')}:void 0x0;}});}}class ue extends _0x112932{['afterInit'](){const _0x714787=this['editor'],_0x5f4e23=_0x714787['locale'];if(!_0x714787['plugins']['has']('LegacyListEditing'))return;const _0x50361e=_0x714787['plugins']['get']('TrackChangesEditing'),_0x365a42=_0x714787['plugins']['has']('LegacyTodoListEditing');function _0x56d10f(_0x5a0452){return()=>{const _0x1f8e33=_0x714787['model']['document']['selection'],_0x5eedf6=_0x714787['commands']['get'](_0x5a0452);if(_0x5eedf6['value'])return void _0x714787['execute']('paragraph',{});const _0x23118d=_0x5a0452['slice'](0x0,-0x4),_0xdb194e=function(_0x167458,_0x482a99,_0x57e810){let _0x4df03=Array['from'](_0x167458)['filter'](_0xff4247=>function(_0x3ab97c,_0x1c0ee3){return _0x1c0ee3['checkChild'](_0x3ab97c['parent'],'listItem')&&!_0x1c0ee3['isObject'](_0x3ab97c);}(_0xff4247,_0x57e810));_0x4df03=_0x4df03['filter'](_0x31180c=>!_0x31180c['is']('element','listItem')||_0x31180c['getAttribute']('listType')!=_0x482a99);const _0x45f129=new Set();for(const _0x2a4f9c of _0x4df03)_0x2a4f9c['is']('element','listItem')?_0x45f129['add'](he(_0x2a4f9c)):_0x45f129['add'](_0x2a4f9c);return Array['from'](_0x45f129);}(_0x1f8e33['getSelectedBlocks'](),_0x23118d,_0x714787['model']['schema']);_0x714787['model']['change'](()=>{for(const _0x5624bc of _0xdb194e)_0x50361e['markBlockFormat'](_0x5624bc,{'commandName':_0x5a0452,'commandParams':[{'forceValue':!_0x5eedf6['value']}],'formatGroupId':'blockName'},de(_0x5624bc));});};}function _0x3b61bb(_0x3c21ce){return()=>{const _0x5dc980=function(_0x57a51b){let _0x318e27=Array['from'](_0x57a51b);const _0x5bd6db=_0x318e27['findIndex'](_0x440d42=>'listItem'!=_0x440d42['name']);return _0x5bd6db>-0x1&&(_0x318e27=_0x318e27['slice'](0x0,_0x5bd6db)),_0x318e27;}(_0x714787['model']['document']['selection']['getSelectedBlocks']()),_0x379f7b=_0x714787['model']['createRange'](_0x714787['model']['createPositionAt'](_0x5dc980[0x0],'before'),_0x714787['model']['createPositionAt'](_0x5dc980[_0x5dc980['length']-0x1],'end'));_0x714787['model']['change'](()=>{_0x50361e['markBlockFormat'](_0x379f7b,{'commandName':_0x3c21ce,'commandParams':[],'formatGroupId':'listIndent'},function(_0x3f7f2a){const _0x3787d5=new Set();for(const _0x5918df of _0x3f7f2a){let _0x1fd7b2=_0x5918df['nextSibling'];for(;_0x1fd7b2&&_0x1fd7b2['getAttribute']('listIndent')>_0x5918df['getAttribute']('listIndent');)_0x3787d5['add'](_0x1fd7b2),_0x1fd7b2=_0x1fd7b2['nextSibling'];}return Array['from'](_0x3787d5);}(_0x5dc980));});};}_0x50361e['enableCommand']('numberedList',_0x56d10f('numberedList')),_0x50361e['enableCommand']('bulletedList',_0x56d10f('bulletedList')),_0x365a42&&_0x50361e['enableCommand']('todoList',_0x56d10f('todoList')),_0x50361e['enableCommand']('indentList',_0x3b61bb('indentList')),_0x50361e['enableCommand']('outdentList',_0x3b61bb('outdentList')),_0x365a42&&_0x50361e['enableCommand']('checkTodoList',()=>{const _0x2918d1=_0x714787['commands']['get']('checkTodoList'),_0x5a4c96=Array['from'](_0x2918d1['_selectedElements']);_0x5a4c96['filter'](_0x1cf1f8=>_0x1cf1f8['getAttribute']('todoListChecked')!=_0x2918d1['value']),_0x714787['model']['change'](()=>{for(const _0x6dc461 of _0x5a4c96)_0x50361e['markBlockFormat'](_0x6dc461,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x2918d1['value']}]});});}),_0x50361e['descriptionFactory']['registerElementLabel']('listItem',_0x3e9d62=>At(_0x5f4e23,'ELEMENT_LIST_ITEM',_0x3e9d62)),_0x50361e['descriptionFactory']['registerDescriptionCallback'](_0x5709d3=>{if('formatBlock'!=_0x5709d3['type']&&'formatInline'!=_0x5709d3['type'])return;const {data:_0x398377}=_0x5709d3;if(_0x398377){if('numberedList'==_0x398377['commandName']||'bulletedList'==_0x398377['commandName']||'todoList'==_0x398377['commandName'])switch(_0x398377['commandName']['replace']('List','')){case'bulleted':return _0x1f09a1(At(_0x5f4e23,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1f09a1(At(_0x5f4e23,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1f09a1(At(_0x5f4e23,'ELEMENT_TODO_LIST'));}if('indentList'==_0x398377['commandName'])return{'type':'format','content':At(_0x5f4e23,'*Indent:*\x20%0',At(_0x5f4e23,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x398377['commandName'])return{'type':'format','content':At(_0x5f4e23,'*Outdent:*\x20%0',At(_0x5f4e23,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x398377['commandName'])return _0x398377['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x5f4e23,'*Check\x20item*')}:{'type':'format','content':At(_0x5f4e23,'*Uncheck\x20item*')};}function _0x1f09a1(_0x34ec4b){return{'type':'format','content':At(_0x5f4e23,'*Change\x20to:*\x20%0',_0x34ec4b)};}});}}function he(_0x2f64b3){const _0x436ce5=_0x2f64b3['getAttribute']('listIndent');if(0x0==_0x436ce5)return _0x2f64b3;let _0x3792ec=_0x2f64b3;for(;_0x2f64b3['previousSibling']&&_0x2f64b3['previousSibling']['is']('element','listItem');){const _0x3ff564=_0x2f64b3['previousSibling']['getAttribute']('listIndent');if(_0x3ff564==_0x436ce5)_0x3792ec=_0x2f64b3['previousSibling'];else{if(_0x3ff564<_0x436ce5)break;}_0x2f64b3=_0x2f64b3['previousSibling'];}return _0x3792ec;}function de(_0x5bb66a){const _0x4b7973=[];if(_0x5bb66a['is']('element','listItem')&&_0x5bb66a['getAttribute']('listIndent')>0x0){let _0x29617f=_0x5bb66a['nextSibling'];for(;_0x29617f&&'listItem'==_0x29617f['name']&&_0x29617f['getAttribute']('listIndent')==_0x5bb66a['getAttribute']('listIndent');)_0x4b7973['push'](_0x29617f),_0x29617f=_0x29617f['nextSibling'];}return _0x4b7973;}class fe extends _0x112932{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x611740=this['editor']['config']['get']('list.properties'),_0x1b90bd=this['editor']['plugins']['get']('TrackChangesEditing');_0x611740['styles']&&_0x1b90bd['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x611740['reversed']&&_0x1b90bd['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x611740['startIndex']&&_0x1b90bd['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x1b90bd['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x24921a,_0x16c973={}){const _0x57f792=this['editor']['plugins']['get']('TrackChangesEditing'),_0x11d749=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x57f792['markMultiRangeBlockFormat'](_0x11d749,{'commandName':'listStyle','commandParams':[{'type':_0x16c973['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x57f737,_0xeb6d={}){const _0x3e1c92=this['editor']['plugins']['get']('TrackChangesEditing'),_0x392e2b=this['_getSuggestionBlocks'](_0x1aaa2a=>_0x1aaa2a['is']('element','listItem')&&'numbered'===_0x1aaa2a['getAttribute']('listType'));if(_0x392e2b['length']<0x1)return;const _0x4ab952=_0x392e2b['map'](_0x34c146=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x34c146,'before'),this['editor']['model']['createPositionAt'](_0x34c146,0x0)));this['editor']['model']['change'](()=>{_0x3e1c92['markMultiRangeBlockFormat'](_0x4ab952,{'commandName':'listReversed','commandParams':[{'reversed':_0xeb6d['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0xfeb01b,_0x1c6a38={}){const _0x5d0f81=this['editor']['plugins']['get']('TrackChangesEditing'),_0x31f394=this['_getSuggestionBlocks'](_0x19007f=>_0x19007f['is']('element','listItem')&&'numbered'===_0x19007f['getAttribute']('listType'));if(_0x31f394['length']<0x1)return;const _0x18b449=_0x31f394['map'](_0x17a19c=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x17a19c,'before'),this['editor']['model']['createPositionAt'](_0x17a19c,0x0)));this['editor']['model']['change'](()=>{_0x5d0f81['markMultiRangeBlockFormat'](_0x18b449,{'commandName':'listStart','commandParams':[{'startIndex':_0x1c6a38['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x218f62){if('formatBlock'!=_0x218f62['type']&&'formatInline'!=_0x218f62['type'])return;const _0x2ae500=this['editor']['locale'],{data:_0x327fdc}=_0x218f62;if(!_0x327fdc)return;let _0x36c45b,_0xc929c0;switch(_0x327fdc['commandName']){case'listStyle':_0x36c45b='*Change\x20to:*\x20%0',_0xc929c0={'type':'format','content':At(_0x2ae500,_0x36c45b,At(_0x2ae500,this['_getTranslationKeyForListStyle'](_0x327fdc['commandParams'][0x0]['type'])))};break;case'listReversed':_0x36c45b=_0x327fdc['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xc929c0={'type':'format','content':At(_0x2ae500,_0x36c45b)};break;case'listStart':_0x36c45b='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xc929c0={'type':'format','content':At(_0x2ae500,_0x36c45b,_0x327fdc['commandParams'][0x0]['startIndex'])};}return _0xc929c0;}['_getSuggestionBlocksForListStyle'](){const _0x3f12b6=this['editor']['plugins']['get']('LegacyListUtils');let _0x4c3c64=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x4c3c64[0x0]?.['is']('element','listItem')&&_0x4c3c64['unshift'](..._0x3f12b6['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x4c3c64[_0x4c3c64['length']-0x1]?.['is']('element','listItem')&&_0x4c3c64['push'](..._0x3f12b6['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x4c3c64=[...new Set(_0x4c3c64)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x4c3c64=_0x4c3c64['filter'](_0x2a0a0f=>_0x2a0a0f['is']('element','listItem'))),_0x4c3c64;}['_getSuggestionBlocks'](_0x79862a){const _0x4a809f=this['editor']['plugins']['get']('LegacyListUtils');let _0x217753=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x79862a)['map'](_0x25c6d5=>{const _0x1ec43e=this['editor']['model']['createPositionAt'](_0x25c6d5,0x0);return[..._0x4a809f['getSiblingNodes'](_0x1ec43e,'backward'),..._0x4a809f['getSiblingNodes'](_0x1ec43e,'forward')];})['flat']();return _0x217753=[...new Set(_0x217753)],_0x217753;}['_getTranslationKeyForListStyle'](_0x5b5912){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x5b5912)||'default')['toUpperCase']()+'_LIST_'+_0x5b5912['toUpperCase']()['replace'](/-/g,'_');}}class ge extends _0x112932{['afterInit'](){const _0x3fb98d=this['editor'];if(!_0x3fb98d['plugins']['has']('MediaEmbedEditing'))return;const _0x11bef3=_0x3fb98d['plugins']['get']('TrackChangesEditing'),_0x59b500=_0x3fb98d['locale'];_0x11bef3['enableCommand']('mediaEmbed'),_0x11bef3['descriptionFactory']['registerElementLabel']('media',_0x270bc7=>At(_0x59b500,'ELEMENT_MEDIA',_0x270bc7));}}class me extends _0x112932{['afterInit'](){const _0x812f5=this['editor'];_0x812f5['plugins']['has']('MentionEditing')&&_0x812f5['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class Ee extends _0x112932{['afterInit'](){const _0x1e39d9=this['editor'];if(!_0x1e39d9['plugins']['has']('MergeFieldsEditing'))return;const _0x43fad7=_0x1e39d9['plugins']['get']('TrackChangesEditing'),_0x1ca4bf=_0x1e39d9['locale'];_0x43fad7['enableCommand']('insertMergeField'),_0x43fad7['enableCommand']('insertMergeFieldBlock'),_0x43fad7['enableCommand']('insertMergeFieldImage'),_0x43fad7['descriptionFactory']['registerElementLabel']('mergeField',_0x4affad=>At(_0x1ca4bf,'ELEMENT_MERGE_FIELD',_0x4affad)),_0x43fad7['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x1237a9=>At(_0x1ca4bf,'ELEMENT_MERGE_FIELD',_0x1237a9)),_0x43fad7['descriptionFactory']['registerDescriptionCallback'](_0x5b7ada=>{if('insertion'!=_0x5b7ada['type']&&'deletion'!=_0x5b7ada['type'])return;const _0x5be60d=_0x5b7ada['getContainedElement']();if(null==_0x5be60d)return;const _0x2a1121=_0x1e39d9['plugins']['get']('MergeFieldsEditing');let _0x34208e;switch(_0x2a1121['getMergeFieldType'](_0x5be60d)){case null:return;case'image':{const _0x141da7=_0x2a1121['unwrapAffixes'](_0x5be60d['getAttribute']('src'));_0x34208e=_0x2a1121['getLabel'](_0x141da7)||_0x141da7;break;}default:{const _0x397be1=_0x5be60d['getAttribute']('id');_0x34208e=_0x2a1121['getLabel'](_0x397be1)||_0x397be1;break;}}return'insertion'==_0x5b7ada['type']?{'type':'insertion','content':At(_0x1ca4bf,'*Insert:*\x20%0','\x22'+_0x34208e+'\x22\x20'+At(_0x1ca4bf,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':At(_0x1ca4bf,'*Remove:*\x20%0','\x22'+_0x34208e+'\x22\x20'+At(_0x1ca4bf,'ELEMENT_MERGE_FIELD'))};});}}class Te extends _0x112932{['afterInit'](){const _0x4bda3c=this['editor'],_0x2ef358=_0x4bda3c['plugins']['get']('TrackChangesEditing');_0x4bda3c['plugins']['has']('MultiLevelList')&&(_0x2ef358['enableDefaultAttributesIntegration']('multiLevelList'),_0x2ef358['descriptionFactory']['registerDescriptionCallback'](_0x4ac7c4=>this['handleDescriptions'](_0x4ac7c4)));}['handleDescriptions'](_0x5097b8){const _0x58c7f9=this['editor']['locale'],{data:_0x57d38f}=_0x5097b8,_0x114ca0={'type':'format','content':''};if(_0x57d38f&&'listMarkerStyle'==_0x57d38f['key']){if(!_0x57d38f['oldValue'])return{'type':'format','content':At(_0x58c7f9,'*Set\x20format:*\x20%0',At(_0x58c7f9,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x57d38f['newValue']+')'};if(!_0x57d38f['newValue']){let _0x4d8eb3=_0x5097b8['head'];for(;_0x4d8eb3;){if(_0x4d8eb3['data']&&'listType'==_0x4d8eb3['data']['key']&&_0x4d8eb3['data']['newValue'])return _0x114ca0;_0x4d8eb3=_0x4d8eb3['next'];}return{'type':'format','content':At(_0x58c7f9,'*Remove\x20format:*\x20%0',At(_0x58c7f9,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x57d38f['oldValue']+')'};}}}}class _e extends _0x112932{['afterInit'](){const _0x161934=this['editor'];if(!_0x161934['plugins']['has']('PageBreakEditing'))return;_0x161934['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x16d95d=_0x161934['plugins']['get']('TrackChangesEditing'),_0x54344f=_0x161934['locale'];_0x16d95d['descriptionFactory']['registerElementLabel']('pageBreak',_0x2863b5=>At(_0x54344f,'ELEMENT_PAGE_BREAK',_0x2863b5));}}class pe extends _0x112932{['afterInit'](){const _0x41670e=this['editor'];if(!_0x41670e['plugins']['has']('Paragraph'))return;const _0x1c511d=_0x41670e['locale'],_0x31288e=_0x41670e['plugins']['get']('TrackChangesEditing');_0x31288e['descriptionFactory']['registerElementLabel']('paragraph',_0x246c23=>At(_0x1c511d,'ELEMENT_PARAGRAPH',_0x246c23)),_0x31288e['enableDefaultAttributesIntegration']('paragraph'),_0x31288e['enableCommand']('insertParagraph');const _0x2bd720=_0x31288e['descriptionFactory'];_0x2bd720['registerDescriptionCallback'](_0x3addb1=>{if('insertion'!==_0x3addb1['type'])return;const {start:_0x13f043,end:_0x3f8dbf}=_0x3addb1['getFirstRange']();if(!_0x13f043['isTouching'](_0x3f8dbf)||!_0x13f043['nodeAfter'])return;const _0x1a7ca3=_0x41670e['model']['schema'],_0xc57aa=_0x13f043['nodeAfter'];return _0x1a7ca3['isBlock'](_0xc57aa)&&!_0x1a7ca3['isLimit'](_0xc57aa)&&_0x1a7ca3['checkChild'](_0xc57aa,'$text')?{'type':'insertion','content':At(_0x1c511d,'*Insert:*\x20%0',_0x2bd720['getItemLabel'](_0xc57aa,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x562c78=this['editor'],_0x4a0b7e=_0x562c78['locale'];_0x562c78['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2b9b09=>{if('formatBlock'!=_0x2b9b09['type'])return;const {data:_0x20f891}=_0x2b9b09;return _0x20f891&&'paragraph'==_0x20f891['commandName']?{'type':'format','content':At(_0x4a0b7e,'*Change\x20to:*\x20%0',At(_0x4a0b7e,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class Le extends _0x112932{['afterInit'](){const _0x8cc25=this['editor'];_0x8cc25['commands']['get']('replaceSource')&&_0x8cc25['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class Ie extends _0x112932{['afterInit'](){const _0x5d0324=this['editor'];if(!_0x5d0324['plugins']['has']('RemoveFormatEditing'))return;_0x5d0324['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x21b9fc=this['editor'];_0x21b9fc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x130b57=>{if('formatBlock'!=_0x130b57['type']&&'formatInline'!=_0x130b57['type'])return;const {data:_0x2556bf}=_0x130b57;return _0x2556bf&&'removeFormat'==_0x2556bf['commandName']?{'type':'format','content':At(_0x21b9fc['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class be extends _0x112932{['afterInit'](){const _0xb22419=this['editor'];if(!_0xb22419['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x54364a=_0xb22419['plugins']['get']('TrackChangesEditing');_0x54364a['enableCommand']('goToPreviousRestrictedEditingException'),_0x54364a['enableCommand']('goToNextRestrictedEditingException');const _0x3141e3=_0xb22419['plugins']['get']('RestrictedEditingModeEditing');_0x3141e3['enableCommand']('trackChanges'),_0x3141e3['enableCommand']('acceptSuggestion'),_0x3141e3['enableCommand']('discardSuggestion'),_0x3141e3['enableCommand']('acceptAllSuggestions'),_0x3141e3['enableCommand']('discardAllSuggestions'),_0x3141e3['enableCommand']('acceptSelectedSuggestions'),_0x3141e3['enableCommand']('discardSelectedSuggestions');}}class Ae extends _0x112932{['afterInit'](){const _0xed86d3=this['editor'];if(!_0xed86d3['plugins']['has']('ShiftEnter'))return;const _0x7ef12b=_0xed86d3['plugins']['get']('TrackChangesEditing');_0x7ef12b['enableCommand']('shiftEnter'),_0x7ef12b['descriptionFactory']['registerElementLabel']('softBreak',_0x5c1627=>At(_0xed86d3['locale'],'ELEMENT_LINE_BREAK',_0x5c1627));}}function ke(_0x1a0449,_0x32589a,_0xcddc75){const _0x161d24=[];for(const _0x1f784d of _0x32589a['getItems']())_0x1f784d['hasAttribute'](_0x1a0449)&&_0x161d24['push'](_0xcddc75['createRangeOn'](_0x1f784d));return _0x161d24;}class Ce extends _0x112932{['afterInit'](){const _0x1d60cf=this['editor'],_0x4cec97=_0x1d60cf['plugins']['get']('TrackChangesEditing');_0x1d60cf['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x4cec97['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x305d7c=this['editor'],_0x1dbb41=_0x305d7c['model'],_0x5b0bc3=_0x305d7c['locale'],_0x304d90=_0x305d7c['plugins']['get']('TrackChangesEditing'),_0xc2dc25='restrictedEditingException',_0x3abce5=_0x305d7c['commands']['get'](_0xc2dc25);_0x304d90['enableCommand'](_0xc2dc25,(_0x1eb4ed,_0x36391a={})=>{const _0xc2a880=_0x1dbb41['document']['selection'];if(_0xc2a880['isCollapsed'])return void _0x1eb4ed(_0x36391a);const _0x449122=void 0x0!==_0x36391a['forceValue']?_0x36391a['forceValue']:!_0x3abce5['value'];_0x1dbb41['change'](()=>{const _0xf8b1a5=Array['from'](_0xc2a880['getRanges']());for(const _0x1abdb3 of _0xf8b1a5){const _0xad2e27=_0x449122?[_0x1abdb3]:ke(_0xc2dc25,_0x1abdb3,_0x1dbb41);for(const _0x2b0573 of _0xad2e27)_0x304d90['markInlineFormat'](_0x2b0573,{'commandName':_0xc2dc25,'commandParams':[{'forceValue':_0x449122}]});}});}),_0x304d90['descriptionFactory']['registerDescriptionCallback'](_0x22798f=>{if('formatBlock'!=_0x22798f['type']&&'formatInline'!=_0x22798f['type'])return;const {data:_0xbf8303}=_0x22798f;return _0xbf8303&&_0xbf8303['commandName']==_0xc2dc25?_0xbf8303['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x5b0bc3,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':At(_0x5b0bc3,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x430409=this['editor'],_0x425134=_0x430409['locale'],_0x2f2f35=_0x430409['plugins']['get']('TrackChangesEditing'),_0x4a9a69='restrictedEditingExceptionBlock',_0x831e7e=this['editor']['commands']['get'](_0x4a9a69);_0x2f2f35['enableCommand'](_0x4a9a69,(_0x4a0c13,_0xdc9f1d={})=>{const _0x2a6d91=this['editor']['model']['document']['selection'],_0x5e1db8=_0xdc9f1d&&void 0x0!==_0xdc9f1d['forceValue']?_0xdc9f1d['forceValue']:!_0x831e7e['value'];let _0x57fc77=[];if(_0x5e1db8){const _0x3cc99a=Array['from'](_0x2a6d91['getSelectedBlocks']())['filter'](_0x462b07=>function(_0x94fec4){return!!_0x94fec4['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x462b07)||function(_0x4392dc,_0x1b899d){const _0x154b6f=_0x1b899d['createContext'](_0x4392dc['parent']);if(!_0x1b899d['checkChild'](_0x154b6f,'restrictedEditingException'))return!0x1;if(!_0x1b899d['checkChild'](_0x154b6f['push']('restrictedEditingException'),_0x4392dc))return!0x1;return!0x0;}(_0x462b07,this['editor']['model']['schema']));_0x57fc77=Tt(_0x3cc99a,_0x430409['model']);}else{const _0x33e514=Array['from'](_0x2a6d91['getSelectedBlocks']())['map'](_0x57edff=>function(_0x440fe8){let _0xcda6ec=_0x440fe8;for(;_0xcda6ec['parent'];){if('restrictedEditingException'==_0xcda6ec['parent']['name'])return _0xcda6ec;_0xcda6ec=_0xcda6ec['parent'];}return null;}(_0x57edff))['filter'](_0xf38960=>!!_0xf38960);_0x57fc77=Tt(_0x33e514,_0x430409['model']);}_0x430409['model']['change'](()=>{for(const _0x4d438e of _0x57fc77)_0x2f2f35['markBlockFormat'](_0x4d438e,{'commandName':_0x4a9a69,'commandParams':[{'forceValue':_0x5e1db8}]});});}),_0x2f2f35['descriptionFactory']['registerDescriptionCallback'](_0x296231=>{const {data:_0x308b44}=_0x296231;if(_0x308b44&&_0x308b44['commandName']==_0x4a9a69)return _0x308b44['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x425134,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':At(_0x425134,'FORMAT_RESTRICTED_DISABLED')};});}}class ye extends _0x112932{['afterInit'](){const _0x262a58=this['editor'];if(!_0x262a58['plugins']['has']('Style')||!_0x262a58['plugins']['has']('DataSchema'))return;const _0x4df9bd=_0x262a58['plugins']['get']('TrackChangesEditing'),_0x1333f4=_0x262a58['locale'],_0x406abe=_0x262a58['config']['get']('style')||{},_0x4c40a7=_0x262a58['plugins']['get']('GeneralHtmlSupport'),_0x58d618=_0x262a58['plugins']['get']('StyleUtils')['normalizeConfig'](_0x262a58['plugins']['get']('DataSchema'),_0x406abe['definitions']);_0x4df9bd['enableDefaultAttributesIntegration']('style');const _0x5d2fdf=new Set();for(const _0x2275cb of _0x58d618['block']){const _0xa8cddd=_0x4c40a7['getGhsAttributeNameForElement'](_0x2275cb['element']);_0x5d2fdf['add'](_0xa8cddd);}const _0x4d19ac=new Set();for(const _0x275e69 of _0x58d618['inline']){const _0x32198f=_0x4c40a7['getGhsAttributeNameForElement'](_0x275e69['element']);_0x4d19ac['add'](_0x32198f);for(const _0x5c41f8 of _0x275e69['ghsAttributes'])_0x4d19ac['add'](_0x5c41f8);}for(const _0xb0363c of _0x5d2fdf)_0x4df9bd['descriptionFactory']['registerAttributeLabel'](_0xb0363c,At(_0x1333f4,'FORMAT_STYLE'));for(const _0x27a3bc of _0x4d19ac)_0x4df9bd['descriptionFactory']['registerAttributeLabel'](_0x27a3bc,At(_0x1333f4,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5d6028=this['editor'],_0x3f041d=_0x5d6028['locale'];_0x5d6028['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x16f6c1=>{if('formatBlock'!=_0x16f6c1['type']&&'formatInline'!=_0x16f6c1['type'])return;const {data:_0x567452}=_0x16f6c1;return _0x567452&&'style'===_0x567452['commandName']?_0x567452['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x3f041d,'*Set\x20format:*\x20%0',_0x567452['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':At(_0x3f041d,'*Remove\x20format:*\x20%0',_0x567452['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ne extends _0x112932{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x4c91a1){super(_0x4c91a1),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x4a0d68=this['editor'],_0x65abe8=_0x4a0d68['model']['document']['selection'];if(!_0x4a0d68['plugins']['has']('TableEditing'))return;const _0x5de452=_0x4a0d68['locale'],_0xb6860d=_0x4a0d68['plugins']['get']('TrackChangesEditing'),_0x35151d=_0x4a0d68['plugins']['get']('TableUtils');_0xb6860d['descriptionFactory']['registerElementLabel']('table',_0x38dcdb=>At(_0x5de452,'ELEMENT_TABLE',_0x38dcdb)),this['_setupColumnsRowsFixing'](),_0xb6860d['enableCommand']('insertTable'),_0xb6860d['enableCommand']('selectTableRow'),_0xb6860d['enableCommand']('selectTableColumn');for(const _0x5e939a of['insertTableRowAbove','insertTableRowBelow']){const _0xcca4f3=_0x4a0d68['commands']['get'](_0x5e939a);_0xb6860d['enableCommand'](_0x5e939a,_0x50ed38=>{_0x4a0d68['model']['change'](_0x425ae1=>{_0x50ed38();const _0x386d0d='above'===_0xcca4f3['order'],_0x26a249=_0x35151d['getSelectionAffectedTableCells'](_0x65abe8),_0x433271=_0x35151d['getRowIndexes'](_0x26a249),_0x22adf5=_0x386d0d?_0x433271['first']-0x1:_0x433271['last']+0x1,_0x1b0930=_0x26a249[0x0]['findAncestor']('table'),_0x4887af=_0x35151d['createTableWalker'](_0x1b0930,{'startRow':_0x22adf5,'endRow':_0x22adf5}),_0x4c4692=Array['from'](_0x4887af)['map'](_0x1ce9c7=>_0x425ae1['createRangeOn'](_0x1ce9c7['cell']));_0xb6860d['markMultiRangeInsertion'](_0x4c4692,'tableRow');});});}for(const _0x44b11b of['insertTableColumnLeft','insertTableColumnRight']){const _0x4011fa=_0x4a0d68['commands']['get'](_0x44b11b);_0xb6860d['enableCommand'](_0x44b11b,_0x1f76a4=>{_0x4a0d68['model']['change'](_0x1e9589=>{_0x1f76a4();const _0x10c5ed='left'===_0x4011fa['order'],_0x348f4d=_0x35151d['getSelectionAffectedTableCells'](_0x65abe8),_0x2395d6=_0x35151d['getColumnIndexes'](_0x348f4d),_0x363358=_0x10c5ed?_0x2395d6['first']-0x1:_0x2395d6['last']+0x1,_0x2e154f=_0x348f4d[0x0]['findAncestor']('table'),_0x40b051=_0x35151d['createTableWalker'](_0x2e154f,{'startRow':0x0,'column':_0x363358,'includeAllSlots':!0x1}),_0x2e099c=Array['from'](_0x40b051)['map'](_0x468894=>_0x1e9589['createRangeOn'](_0x468894['cell']));_0xb6860d['markMultiRangeInsertion'](_0x2e099c,'tableColumn');});});}for(const _0x3def62 of['removeTableRow','removeTableColumn']){const _0x6c1dde=_0x3def62['substr'](0xb),_0x1df848=_0x6c1dde['toLowerCase'](),_0x5cf574=_0x1df848['substr'](0x0,0x3)+'span',_0x2c8dfc='table'+_0x6c1dde,_0x2f74dc='min'+_0x6c1dde,_0x1ea6f5='max'+_0x6c1dde;_0xb6860d['enableCommand'](_0x3def62,()=>{_0x4a0d68['model']['change'](_0x42109d=>{const _0x538274=_0x35151d['getSelectionAffectedTableCells'](_0x65abe8),_0x31d511=_0x538274[0x0]['findAncestor']('table');let _0x9b0634;if('removeTableRow'==_0x3def62){const _0x92fa92=_0x35151d['getRowIndexes'](_0x538274);_0x9b0634={'startRow':_0x92fa92['first'],'endRow':_0x92fa92['last'],'includeAllSlots':!0x0};}else{const _0x41ab40=_0x35151d['getColumnIndexes'](_0x538274);_0x9b0634={'startColumn':_0x41ab40['first'],'endColumn':_0x41ab40['last'],'includeAllSlots':!0x0};}const _0x14d4e5=_0x35151d['createTableWalker'](_0x31d511,_0x9b0634),_0xc0e434=Array['from'](_0x14d4e5)['map'](({cell:_0x3f5d7e})=>_0x3f5d7e),_0x4e0f0f=Re(_0xc0e434['filter'](_0x20108f=>_0x20108f['hasAttribute'](_0x5cf574))),_0x922257=Re(_0xc0e434['filter'](_0x220278=>!_0x220278['hasAttribute'](_0x5cf574)))['map'](_0x12a53b=>_0x42109d['createRangeOn'](_0x12a53b)),_0x370985=_0xb6860d['markMultiRangeDeletion'](_0x922257,_0x2c8dfc);if(_0x370985&&('tableRow'==_0x370985['subType']||'tableColumn'==_0x370985['subType'])){const _0x2ee648=this['_getSuggestionCoords'](_0x370985);for(const _0x114dbf of _0x4e0f0f){const _0x8a951a=_0x42109d['createRangeOn'](_0x114dbf),_0x562b05=_0x35151d['getCellLocation'](_0x114dbf),_0x29d9c2=_0x114dbf['getAttribute'](_0x5cf574)-0x1,_0xde6ebd=_0x2ee648[_0x2f74dc],_0x5ad297=_0x2ee648[_0x1ea6f5];_0xde6ebd<=_0x562b05[_0x1df848]&&_0x562b05[_0x1df848]+_0x29d9c2<=_0x5ad297&&_0x370985['addRange'](_0x8a951a);}}});});}function _0x4f0276(_0x4f262e){const _0x52c0fe=Array['from'](_0x65abe8['getRanges']())['map'](_0x401132=>_0x5def50['fromRange'](_0x401132));_0x4a0d68['model']['change'](_0xa7a9cf=>{const _0x286c5b=_0xa7a9cf['batch'];_0x4f262e=_0x4f262e['filter'](_0x4fdd54=>'$graveyard'!=_0x4fdd54['root']['rootName']),_0xa7a9cf['setSelection'](_0x4f262e),_0x4a0d68['commands']['get']('removeTableRow')['refresh'](),_0x4a0d68['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x4a0d68['model']['enqueueChange'](()=>{_0x4a0d68['model']['enqueueChange'](_0x286c5b,_0x290a36=>{const _0x5cf5cc=_0x52c0fe['filter'](_0x533e87=>'$graveyard'!=_0x533e87['root']['rootName']);_0x5cf5cc['length']>0x0&&_0x290a36['setSelection'](_0x5cf5cc);for(const _0x1a0b47 of _0x52c0fe)_0x1a0b47['detach']();});});});}function _0x22fe62(_0xf89695){_0x4a0d68['model']['change'](_0x13a252=>{const _0x1c1d16=Array['from'](_0x65abe8['getRanges']())['map'](_0x560f2f=>_0x5def50['fromRange'](_0x560f2f)),_0x2155a9=[];for(const _0xa138a3 of _0xf89695)for(const _0x36cf08 of _0xa138a3['getItems']({'shallow':!0x0}))_0x2155a9['push'](_0x36cf08);for(const _0xcd6626 of _0x2155a9)'$graveyard'!=_0xcd6626['root']['rootName']&&(_0x13a252['setSelection'](_0x13a252['createPositionAt'](_0xcd6626,0x0)),_0x4a0d68['commands']['get']('removeTableColumn')['refresh'](),_0x4a0d68['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x2d09a2=_0x1c1d16['filter'](_0x49c2d0=>'$graveyard'!=_0x49c2d0['root']['rootName']);_0x2d09a2['length']>0x0&&_0x13a252['setSelection'](_0x2d09a2);for(const _0xe3e764 of _0x1c1d16)_0xe3e764['detach']();});}function _0x133736(_0x51287c,_0x2f27de){return _0x2f27de['every'](_0xee2b43=>_0x51287c['some'](_0x5146af=>_0x5146af['end']['isEqual'](_0xee2b43['start'])||_0xee2b43['end']['isEqual'](_0x5146af['start'])));}function _0x14f0f8(_0x7b5ecc,_0xd16f7d){return!_0x7b5ecc['some'](_0x463bd0=>_0xd16f7d['some'](_0x2d954d=>_0x463bd0['isIntersecting'](_0x2d954d)))&&_0x7b5ecc['some'](_0x369286=>_0xd16f7d['some'](_0x5100bb=>_0x369286['end']['isTouching'](_0x5100bb['start'])));}_0xb6860d['descriptionFactory']['registerDescriptionCallback'](_0x3db290=>{if('insertion'!=_0x3db290['type']&&'deletion'!=_0x3db290['type'])return;const _0x1f2254=_0x3db290['getContainedElement']();if(null!=_0x1f2254&&_0x1f2254['is']('element','table')){if('insertion'==_0x3db290['type']){const _0x1f8b08=_0x3db290['getItems']()['filter'](_0x59edfe=>_0x59edfe['is']('$textProxy'))['map'](_0x356f16=>_0x356f16['data']);if(_0x1f8b08['length'])return{'type':'insertion','content':At(_0x5de452,'*Insert:*\x20%0',At(_0x5de452,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1f8b08['join']('\x20')+'\x22'))};}if('deletion'==_0x3db290['type']){const _0x3e6d29=_0x3db290['getItems']()['filter'](_0x1c9da2=>_0x1c9da2['is']('$textProxy'))['map'](_0x44ad64=>_0x44ad64['data']);if(_0x3e6d29['length'])return{'type':'deletion','content':At(_0x5de452,'*Remove:*\x20%0',At(_0x5de452,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3e6d29['join']('\x20')+'\x22'))};}}}),_0xb6860d['descriptionFactory']['registerDescriptionCallback'](_0x4f378d=>{if('tableRow'==_0x4f378d['subType']){const _0x1eff15=_0x4f378d['getItems']()['filter'](_0x4c14a0=>_0x4c14a0['is']('$textProxy'))['map'](_0x2ec6f3=>_0x2ec6f3['data']),_0xe2d799=this['_getSuggestionCoords'](_0x4f378d),_0x2134b7=_0xe2d799['maxRow']-_0xe2d799['minRow']+0x1;if('insertion'==_0x4f378d['type'])return _0x1eff15['length']?{'type':'insertion','content':At(_0x5de452,'*Insert:*\x20%0',At(_0x5de452,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2134b7,'\x22'+_0x1eff15['join']('\x20')+'\x22']))}:{'type':'insertion','content':At(_0x5de452,'*Insert:*\x20%0',At(_0x5de452,'ELEMENT_TABLE_ROW',_0x2134b7))};if('deletion'==_0x4f378d['type'])return _0x1eff15['length']?{'type':'deletion','content':At(_0x5de452,'*Remove:*\x20%0',At(_0x5de452,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2134b7,'\x22'+_0x1eff15['join']('\x20')+'\x22']))}:{'type':'deletion','content':At(_0x5de452,'*Remove:*\x20%0',At(_0x5de452,'ELEMENT_TABLE_ROW',_0x2134b7))};}if('tableColumn'==_0x4f378d['subType']){const _0x4d24c3=_0x4f378d['getItems']()['filter'](_0x96f214=>_0x96f214['is']('$textProxy'))['map'](_0x3495db=>_0x3495db['data']),_0x15be26=this['_getSuggestionCoords'](_0x4f378d),_0x564daf=_0x15be26['maxColumn']-_0x15be26['minColumn']+0x1;if('insertion'==_0x4f378d['type'])return _0x4d24c3['length']?{'type':'insertion','content':At(_0x5de452,'*Insert:*\x20%0',At(_0x5de452,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x564daf,'\x22'+_0x4d24c3['join']('\x20')+'\x22']))}:{'type':'insertion','content':At(_0x5de452,'*Insert:*\x20%0',At(_0x5de452,'ELEMENT_TABLE_COLUMN',_0x564daf))};if('deletion'==_0x4f378d['type'])return _0x4d24c3['length']?{'type':'deletion','content':At(_0x5de452,'*Remove:*\x20%0',At(_0x5de452,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x564daf,'\x22'+_0x4d24c3['join']('\x20')+'\x22']))}:{'type':'deletion','content':At(_0x5de452,'*Remove:*\x20%0',At(_0x5de452,'ELEMENT_TABLE_COLUMN',_0x564daf))};}}),_0xb6860d['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x4f0276),_0xb6860d['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x4f0276),_0xb6860d['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x22fe62),_0xb6860d['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x22fe62),_0xb6860d['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x133736),_0xb6860d['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x133736),_0xb6860d['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x14f0f8),_0xb6860d['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x14f0f8);}['_acceptFormatSuggestionCallbackFactory'](){const _0xf00464=this['editor'],_0x131c2e=_0xf00464['model']['document']['selection'];return(_0xf78249,_0x531e79)=>{_0xf00464['model']['change'](_0x1b23d8=>{const {commandName:_0x27f267,commandParams:_0xfe89ff}=_0x531e79;let _0x4142d7=_0xf78249[0x0]['end']['nodeBefore'];_0xfe89ff&&_0xfe89ff[0x0]&&!0x1===_0xfe89ff[0x0]['forceValue']&&(_0x4142d7=_0xf78249[0x0]['start']['nodeAfter']);const _0x59776e=_0x1b23d8['createRangeIn'](_0x4142d7);if('$graveyard'==_0x59776e['root']['rootName'])return;const _0x218770=Array['from'](_0x131c2e['getRanges']())['map'](_0x3c245c=>_0x5def50['fromRange'](_0x3c245c));_0x1b23d8['setSelection'](_0x59776e),_0xf00464['commands']['get'](_0x27f267)['refresh'](),_0xfe89ff['push']({'forceDefaultExecution':!0x0}),_0xf00464['execute'](_0x27f267,..._0xfe89ff);const _0x312a96=_0x218770['filter'](_0x2faf60=>'$graveyard'!=_0x2faf60['root']['rootName']);_0x312a96['length']>0x0&&_0x1b23d8['setSelection'](_0x312a96);for(const _0x1f164d of _0x218770)_0x1f164d['detach']();});};}['_getCoordsForCells'](_0x5486b7){const _0x8c52d4=this['editor']['plugins']['get']('TableUtils');let _0xbfa58e=Number['MAX_SAFE_INTEGER'],_0x104471=Number['MIN_SAFE_INTEGER'],_0x252240=Number['MAX_SAFE_INTEGER'],_0x5aa7e3=Number['MIN_SAFE_INTEGER'];for(const _0x147bcb of _0x5486b7){if('$graveyard'==_0x147bcb['root']['rootName'])continue;const {row:_0x2c76a7,column:_0x1b4b86}=_0x8c52d4['getCellLocation'](_0x147bcb),_0x9af387=_0x147bcb['hasAttribute']('rowspan')?_0x147bcb['getAttribute']('rowspan')-0x1:0x0,_0x5ea90c=_0x147bcb['hasAttribute']('colspan')?_0x147bcb['getAttribute']('colspan')-0x1:0x0;_0xbfa58e=_0x2c76a7<_0xbfa58e?_0x2c76a7:_0xbfa58e,_0x104471=_0x2c76a7+_0x9af387>_0x104471?_0x2c76a7+_0x9af387:_0x104471,_0x252240=_0x1b4b86<_0x252240?_0x1b4b86:_0x252240,_0x5aa7e3=_0x1b4b86+_0x5ea90c>_0x5aa7e3?_0x1b4b86+_0x5ea90c:_0x5aa7e3;}return{'minRow':_0xbfa58e,'maxRow':_0x104471,'minColumn':_0x252240,'maxColumn':_0x5aa7e3};}['_setupColumnsRowsFixing'](){const _0x15498c=this['editor'],_0x313cac=_0x15498c['plugins']['get']('TrackChangesEditing'),_0x4b1312=_0x15498c['plugins']['get']('TableUtils');_0x15498c['model']['document']['on']('change:data',()=>{const _0x30ce76=Array['from'](_0x15498c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x13932b,data:_0x2f94cc}of _0x30ce76){const {group:_0x50a1d0,id:_0x5b45d2,subType:_0x4f1358}=_0x2c4563(_0x13932b);if('suggestion'!=_0x50a1d0)continue;if(null!=_0x2f94cc['oldRange'])continue;const _0x1348fb=_0x313cac['getSuggestion'](_0x5b45d2);this['_tablePostFixingSubtypes']['includes'](_0x4f1358)&&this['_tableSuggestions']['add'](_0x1348fb);}},{'priority':'low'});const _0x230a4a=(_0x25e712,_0x3664a0)=>{let _0x573ee7=!0x1;const _0x6db03f=_0x3664a0['createRangeOn'](_0x25e712),_0x323f7a=_0x25e712['findAncestor']('table'),_0x2348fa=_0x4b1312['getCellLocation'](_0x25e712);for(const _0x2b1c3f of this['_tableSuggestions']){const _0x1adad8=_0x2b1c3f['subType'],_0x293c25=_0x1adad8['startsWith']('tablePaste'),_0xe061a=_0x1adad8['substr'](_0x293c25?0xa:0x5),_0x3ee9ae=_0xe061a['toLowerCase'](),_0x416096=_0x3ee9ae['substr'](0x0,0x3)+'span',_0x36470e='min'+_0xe061a,_0x49a171='max'+_0xe061a;if(!_0x2b1c3f['isInContent'])continue;if(_0x323f7a!=_0x2b1c3f['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x2b1c3f['isIntersectingWithRange'](_0x6db03f))continue;const _0x195f60=_0x25e712['hasAttribute'](_0x416096)?_0x25e712['getAttribute'](_0x416096)-0x1:0x0,_0x58f38d=this['_getSuggestionCoords'](_0x2b1c3f),_0x2fb79f=_0x58f38d[_0x36470e],_0x4974f8=_0x58f38d[_0x49a171];_0x2fb79f<=_0x2348fa[_0x3ee9ae]&&_0x2348fa[_0x3ee9ae]+_0x195f60<=_0x4974f8&&(_0x2b1c3f['addRange'](_0x6db03f),_0x573ee7=!0x0);}return _0x573ee7;};_0x15498c['model']['document']['registerPostFixer'](_0x258a34=>{let _0x4da8eb=!0x1;for(const _0x4ce569 of _0x15498c['model']['document']['differ']['getChanges']())if('insert'==_0x4ce569['type']){if('tableRow'==_0x4ce569['name']){for(const _0x3b975d of _0x4ce569['position']['nodeAfter']['getChildren']())_0x4da8eb=_0x4da8eb||_0x230a4a(_0x3b975d,_0x258a34);}else'tableCell'==_0x4ce569['name']&&(_0x4da8eb=_0x4da8eb||_0x230a4a(_0x4ce569['position']['nodeAfter'],_0x258a34));}return _0x4da8eb;});}['_getSuggestionCoords'](_0x34a3b2){return this['_getCoordsForCells'](_0x34a3b2['getRanges']()['map'](_0x401a48=>_0x401a48['start']['nodeAfter']));}}function Re(_0x4b3356){return Array['from'](new Set(_0x4b3356)['values']());}class Se extends _0x112932{static get['requires'](){return[Ne];}['afterInit'](){const _0x2cb2af=this['editor'],_0x5ff2c6=_0x2cb2af['model']['document']['selection'],_0x4378cc=_0x2cb2af['locale'];if(!_0x2cb2af['plugins']['has']('TableEditing'))return;const _0xe2e110=_0x2cb2af['plugins']['get']('TrackChangesEditing'),_0x2d87e1=_0x2cb2af['plugins']['get']('TableUtils'),_0x55267f=_0x2cb2af['plugins']['get'](Ne);_0x55267f['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0xe2e110['enableCommand']('mergeTableCells',()=>{const _0x22a5f6=_0x2d87e1['getSelectionAffectedTableCells'](_0x2cb2af['model']['document']['selection']);_0x2cb2af['model']['change'](()=>{_0xe2e110['markMultiRangeBlockFormat'](_0x22a5f6,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x2cb2af['commands']['get']('mergeTableCells')['on']('execute',(_0x259643,_0x72aca4)=>{_0x2cb2af['commands']['get']('trackChanges')['value']&&(_0x72aca4['length']>0x0&&_0x72aca4[_0x72aca4['length']-0x1]&&_0x72aca4[_0x72aca4['length']-0x1]['forceDefaultExecution']||_0xe2e110['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x259643['stop']());},{'priority':'highest'});for(const _0x5469c1 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x1a085b=_0x2cb2af['commands']['get'](_0x5469c1);_0xe2e110['enableCommand'](_0x5469c1,()=>{const _0x371d13=_0x2cb2af['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1f046f=>_0x1f046f['is']('element','tableCell')),_0x5d5c9b=_0x1a085b['value'];_0x2cb2af['model']['change'](()=>{_0xe2e110['markMultiRangeBlockFormat']([_0x371d13,_0x5d5c9b],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x128fba of['splitTableCellVertically','splitTableCellHorizontally']){const _0x4b7848=_0x2cb2af['commands']['get'](_0x128fba);_0xe2e110['enableCommand'](_0x128fba,()=>{const _0x79303c=_0x2d87e1['getSelectionAffectedTableCells'](_0x2cb2af['model']['document']['selection'])[0x0],_0x59e858=_0x79303c['findAncestor']('table'),{column:_0x560eb5,row:_0x33e493}=_0x2d87e1['getCellLocation'](_0x79303c);let _0x4b9d14=[];if('horizontally'==_0x4b7848['direction']){const _0x4e97f2=_0x2d87e1['createTableWalker'](_0x59e858,{'startRow':_0x33e493,'endRow':_0x33e493,'includeAllSlots':!0x0});_0x4b9d14=Array['from'](_0x4e97f2)['map'](_0x37261c=>_0x37261c['cell']);}else{const _0x4d41cd=_0x2d87e1['createTableWalker'](_0x59e858,{'column':_0x560eb5,'includeAllSlots':!0x0});_0x4b9d14=Array['from'](_0x4d41cd)['map'](_0x43872c=>_0x43872c['cell']);}_0x2cb2af['model']['change'](_0x367f14=>{_0xe2e110['markBlockFormat'](_0x367f14['createRangeOn'](_0x79303c),{'commandName':_0x128fba,'commandParams':[]},_0x4b9d14,_0x128fba);});});}_0xe2e110['descriptionFactory']['registerDescriptionCallback'](_0x2d6808=>{if('formatBlock'!=_0x2d6808['type']&&'formatInline'!=_0x2d6808['type'])return;const {data:_0x476b3e}=_0x2d6808;return _0x476b3e&&'mergeTableCells'==_0x476b3e['commandName']?{'type':'format','content':At(_0x4378cc,'*Merge\x20cells*')}:void 0x0;}),_0xe2e110['descriptionFactory']['registerDescriptionCallback'](_0x46f5d4=>{if('formatBlock'!=_0x46f5d4['type']&&'formatInline'!=_0x46f5d4['type'])return;const {data:_0x509781}=_0x46f5d4;return _0x509781?'splitTableCellVertically'==_0x509781['commandName']?{'type':'format','content':At(_0x4378cc,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x509781['commandName']?{'type':'format','content':At(_0x4378cc,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x3a4131=_0x55267f['_acceptFormatSuggestionCallbackFactory']();for(const _0x59ab24 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0xe2e110['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x59ab24,'accept',_0x3a4131);for(const _0x51c02b of['splitTableCellVertically','splitTableCellHorizontally'])_0xe2e110['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x51c02b,'accept',_0x3a4131);_0xe2e110['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x1a061f=>{_0x2cb2af['model']['change'](_0x2a5461=>{const _0x1435af=Array['from'](_0x5ff2c6['getRanges']())['map'](_0x470dd9=>_0x5def50['fromRange'](_0x470dd9));_0x2a5461['setSelection'](_0x1a061f),_0x2cb2af['commands']['get']('mergeTableCells')['refresh'](),_0x2cb2af['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x1ebc2d=_0x1435af['filter'](_0x4be892=>'$graveyard'!=_0x4be892['root']['rootName']);_0x1ebc2d['length']>0x0&&_0x2a5461['setSelection'](_0x1ebc2d);for(const _0x3b35f5 of _0x1435af)_0x3b35f5['detach']();});});for(const _0x448a34 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x57be64=_0x2cb2af['commands']['get'](_0x448a34);_0x57be64['on']('set:isEnabled',(_0x2271bd,_0x3179d3,_0x81ad8c)=>{if(_0x81ad8c){const _0x3ec343=_0x2cb2af['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3d49e4=>_0x3d49e4['is']('element','tableCell'));this['_areMergableCells'](_0x57be64['value'],_0x3ec343)||(_0x2271bd['return']=!0x1,_0x2271bd['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x9a9a28=this['editor']['commands']['get']('mergeTableCells'),_0x5cd4cb=this['editor']['plugins']['get']('TableUtils');if(!_0x9a9a28['isEnabled'])return!0x1;const _0x54797c=_0x5cd4cb['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x258c03 of _0x54797c)for(const _0x2934da of _0x54797c)if(_0x258c03!=_0x2934da&&!this['_areMergableCells'](_0x258c03,_0x2934da))return!0x1;return!0x0;}['_areMergableCells'](_0x5dd266,_0x4ce182){const _0x17d662=this['editor']['plugins']['get']('TrackChangesEditing'),_0xe4b1b1=this['editor']['model']['createRangeOn'](_0x5dd266),_0x4af655=this['editor']['model']['createRangeOn'](_0x4ce182),_0x248e70=new Set(),_0x26ba37=new Set();for(const _0xfbb847 of _0x17d662['getSuggestions']())if(('insertion'==_0xfbb847['type']||'deletion'==_0xfbb847['type']||'mergeTableCells'==_0xfbb847['subType'])&&_0xfbb847['isInContent']){for(const _0x52d619 of _0xfbb847['getRanges']())_0x52d619['containsRange'](_0xe4b1b1,!0x0)&&_0x248e70['add'](_0xfbb847['type']+':'+_0xfbb847['author']['id']),_0x52d619['containsRange'](_0x4af655,!0x0)&&_0x26ba37['add'](_0xfbb847['type']+':'+_0xfbb847['author']['id']);}if(_0x248e70['size']!=_0x26ba37['size'])return!0x1;for(const _0x3faab8 of _0x248e70)if(!_0x26ba37['has'](_0x3faab8))return!0x1;return!0x0;}}class Me extends _0x112932{static get['requires'](){return[Ne];}['afterInit'](){const _0x5e65d6=this['editor'];if(!_0x5e65d6['plugins']['has']('TableEditing'))return;const _0x30386a=_0x5e65d6['locale'],_0x51957f=_0x5e65d6['plugins']['get']('TrackChangesEditing');_0x51957f['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x51957f['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x51957f['descriptionFactory']['registerAttributeLabel']('headingRows',At(_0x30386a,'FORMAT_HEADER_ROW')),_0x51957f['descriptionFactory']['registerAttributeLabel']('headingColumns',At(_0x30386a,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x384166=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4da3c3=this['editor']['plugins']['get'](Ne)['_acceptFormatSuggestionCallbackFactory']();_0x384166['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x4da3c3),_0x384166['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x4da3c3),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x5de2ff=this['editor']['plugins']['get']('TrackChangesEditing'),_0x172a88=this['editor']['plugins']['get']('TableUtils');function _0x1b9204({showActiveMarker:_0x4ace7d=!0x0,setDataAttribute:_0x529b0f=!0x0}={}){return(_0x903a65,_0x6157fc,_0x1b1d5b)=>{const {type:_0x16c812,id:_0x4188f1}=_0x2c4563(_0x6157fc['markerName']);if(!_0x5de2ff['hasSuggestion'](_0x4188f1))return;const _0x4efbb6=_0x5de2ff['getSuggestion'](_0x4188f1),_0x28bba0=_0x4efbb6['data'];if('formatBlock'!=_0x4efbb6['type']||!_0x28bba0||'setTableColumnHeader'!=_0x28bba0['commandName'])return;if(_0x6157fc['item'])return void _0x903a65['stop']();if(!_0x1b1d5b['consumable']['consume'](_0x6157fc['markerRange'],_0x903a65['name']))return;const _0x357d3f=_0x6157fc['markerRange']['start']['nodeAfter'],_0x45aaa0=_0x6157fc['markerRange']['end']['nodeBefore'],_0x11cbcf=_0x357d3f['parent']['parent'],{column:_0x24284f}=_0x172a88['getCellLocation'](_0x357d3f),{column:_0x33e76e}=_0x172a88['getCellLocation'](_0x45aaa0);for(let _0x32f11e=_0x24284f;_0x32f11e<=_0x33e76e;_0x32f11e++){const _0x5e853c=_0x172a88['createTableWalker'](_0x11cbcf,{'column':_0x32f11e,'includeAllSlots':!0x1});for(const _0x2b9f0a of _0x5e853c){const _0x465582=_0x2b9f0a['cell'],_0x175139=_0x1b1d5b['mapper']['toViewElement'](_0x465582);_0x1b1d5b['writer']['addClass']('ck-suggestion-marker-'+_0x16c812,_0x175139),_0x529b0f&&_0x1b1d5b['writer']['setAttribute']('data-suggestion',_0x4188f1,_0x175139),_0x1b1d5b['mapper']['bindElementToMarker'](_0x175139,_0x6157fc['markerName']),_0x4ace7d&&(_0x5de2ff['activeMarkers']['includes'](_0x6157fc['markerName'])?_0x1b1d5b['writer']['addClass']('ck-suggestion-marker--active',_0x175139):_0x1b1d5b['writer']['removeClass']('ck-suggestion-marker--active',_0x175139));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x1b9204(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x944026,_0x10137e,_0x5896fb)=>{_0x5896fb['options']['showSuggestionHighlights']&&_0x1b9204({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x944026,_0x10137e,_0x5896fb);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x2fda90,_0x2410da,_0xdc9f95)=>{const {type:_0x118e2e,id:_0x237898}=_0x2c4563(_0x2410da['markerName']);if(!_0x5de2ff['hasSuggestion'](_0x237898))return;const _0x48d5e3=_0x5de2ff['getSuggestion'](_0x237898),_0x5960be=_0x48d5e3['data'];if('formatBlock'!=_0x48d5e3['type']||!_0x5960be||'setTableColumnHeader'!=_0x5960be['commandName'])return;const _0x13b835=_0xdc9f95['mapper']['markerNameToElements'](_0x2410da['markerName']);if(_0x13b835){for(const _0x21a9ab of _0x13b835)_0xdc9f95['writer']['removeClass']('ck-suggestion-marker-'+_0x118e2e,_0x21a9ab),_0xdc9f95['writer']['removeClass']('ck-suggestion-marker--active',_0x21a9ab),_0xdc9f95['writer']['removeAttribute']('data-suggestion',_0x21a9ab),_0xdc9f95['mapper']['unbindElementFromMarkerName'](_0x21a9ab,_0x2410da['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x1ae3fc=this['editor'],_0xb1b4a4=_0x1ae3fc['locale'];function _0xfb85e0(_0x455425){return{'type':'format','content':At(_0xb1b4a4,'*Format:*\x20%0',_0x455425)};}_0x1ae3fc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x246d1a=>{if('formatBlock'!=_0x246d1a['type'])return;const {data:_0x573692}=_0x246d1a;if(_0x573692){if('setTableRowHeader'==_0x573692['commandName']){const _0x4af3ed=_0x573692['commandParams'][0x0]['forceValue'];return _0xfb85e0(At(_0xb1b4a4,_0x4af3ed?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x573692['commandName']){const _0x5f260e=_0x573692['commandParams'][0x0]['forceValue'];return _0xfb85e0(At(_0xb1b4a4,_0x5f260e?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Oe extends _0x112932{static get['requires'](){return[Ne];}['afterInit'](){const _0x31bd25=this['editor'];if(!_0x31bd25['plugins']['has']('TableEditing')||!_0x31bd25['config']['get']('table.enableFooters'))return;const _0x81a797=_0x31bd25['locale'],_0x1246d6=_0x31bd25['plugins']['get']('TrackChangesEditing');_0x1246d6['enableDefaultAttributesIntegration']('setTableFooterRow'),_0x1246d6['descriptionFactory']['registerAttributeLabel']('footerRows',At(_0x81a797,'FORMAT_FOOTER_ROW'));}}class we extends _0x112932{['afterInit'](){const _0x1cde1e=this['editor'],_0x3af516=_0x1cde1e['locale'],_0x425b4b=_0x1cde1e['plugins']['get']('TrackChangesEditing');function _0x162671(_0x3ac761){return{'type':'format','content':''+At(_0x3af516,'*Set\x20table\x20type:*\x20%0',_0x3ac761)};}_0x1cde1e['plugins']['has']('TableLayout')&&(_0x425b4b['enableCommand']('insertTableLayout'),_0x425b4b['enableDefaultAttributesIntegration']('tableType'),_0x425b4b['descriptionFactory']['registerElementLabel'](_0x26cc71=>_0x26cc71['is']('element','table')&&'layout'===_0x26cc71['getAttribute']('tableType'),_0x1853d7=>At(_0x3af516,'ELEMENT_LAYOUT_TABLE',_0x1853d7)),_0x425b4b['descriptionFactory']['registerDescriptionCallback'](_0x1e1673=>{const {data:_0xdb9ea2}=_0x1e1673;if(_0xdb9ea2&&'tableType'==_0xdb9ea2['key'])switch(_0xdb9ea2['newValue']){case'layout':return _0x162671(At(_0x3af516,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x162671(At(_0x3af516,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Fe=/* #__PURE__ -- @preserve */
|
|
25
|
+
Object['fromEntries'](Be['map'](_0x3fc991=>[_0x3fc991,null]));class De extends _0x112932{static get['requires'](){return[Ne];}['afterInit'](){const _0x27d34e=this['editor'];if(!_0x27d34e['plugins']['has']('TableClipboard'))return;const _0xe8a768=_0x27d34e['plugins']['get']('TrackChangesEditing'),_0x5a8a37=_0x27d34e['plugins']['get']('TableUtils'),_0x444cac=_0x27d34e['plugins']['get'](Ne),_0x43484c=_0x27d34e['plugins']['get']('TableClipboard'),_0x3b47ac=_0x27d34e['plugins']['get']('TableSelection'),_0xe25b8f=_0x27d34e['plugins']['get'](ut);_0x444cac['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x27d34e['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x27d34e['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x6a9867=null,_0x145424=!0x1;_0xe25b8f['on']('contentInsertion',(_0x2d620a,_0x3a349f)=>{_0x145424='paste'===_0x3a349f['method'];}),_0x27d34e['model']['on']('insertContent',(_0x1390e6,_0x3dad60)=>{if(!_0x145424&&null===_0x3b47ac['getSelectedTableCells']())return;const [_0x2073f8,_0x4ee19a]=_0x3dad60,_0x52afea=_0x3dad60[_0x3dad60['length']-0x1];_0x52afea&&_0x52afea['forceDefaultExecution']||_0xe8a768['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x564e36,_0x52bd5c,_0x5dd202,_0x3b0cdc,_0x49bbf6){if(_0x52bd5c&&!_0x52bd5c['is']('documentSelection'))return!0x1;const _0x521be1=_0x49bbf6['getTableIfOnlyTableInContent'](_0x564e36,_0x5dd202);if(!_0x521be1||!xe(_0x521be1,void 0x0,_0x3b0cdc))return!0x1;const _0x3a152e=_0x3b0cdc['getSelectionAffectedTableCells'](_0x5dd202['document']['selection']);if(!_0x3a152e['length'])return!0x1;const _0x4e829c=_0x3a152e[0x0]['findAncestor']('table'),_0x5b5d11=_0x3b0cdc['getRowIndexes'](_0x3a152e),_0x19c1ff=_0x3b0cdc['getColumnIndexes'](_0x3a152e),_0xdde206={'startRow':_0x5b5d11['first'],'endRow':_0x5b5d11['last'],'startColumn':_0x19c1ff['first'],'endColumn':_0x19c1ff['last']};return 0x1==_0x3a152e['length']&&(_0xdde206['endRow']+=_0x3b0cdc['getRows'](_0x521be1)-0x1,_0xdde206['endColumn']+=_0x3b0cdc['getColumns'](_0x521be1)-0x1),xe(_0x4e829c,_0xdde206,_0x3b0cdc);}(_0x2073f8,_0x4ee19a,_0x27d34e['model'],_0x5a8a37,_0x43484c)&&(_0x1390e6['stop'](),_0x6a9867={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x27d34e['model']['change'](()=>{_0x27d34e['model']['insertContent'](_0x3dad60[0x0],_0x3dad60[0x1],_0x3dad60[0x2],{'forceDefaultExecution':!0x0});const _0x262e0a=_0xeec48d(),{rowInsertionRanges:_0x290b44,columnInsertionRanges:_0x18ba0b,insertionRanges:_0x2b6897,deletionRanges:_0x5bab39,cells:_0x1bcfc8}=_0x6a9867;_0x290b44['length']&&_0xe8a768['markMultiRangeInsertion'](_0x290b44,'tablePasteRow',{'tablePasteChainId':_0x262e0a}),_0x18ba0b['length']&&_0xe8a768['markMultiRangeInsertion'](_0x18ba0b,'tablePasteColumn',{'tablePasteChainId':_0x262e0a}),_0x2b6897['length']&&(_0xe8a768['markMultiRangeInsertion'](_0x2b6897,'tablePaste',{'tablePasteChainId':_0x262e0a,'skipNestingCheck':!0x0}),_0x2b6897['forEach'](_0x410947=>_0x410947['detach']?.())),_0x5bab39['length']&&(_0xe8a768['markMultiRangeDeletion'](_0x5bab39,'tablePaste',{'tablePasteChainId':_0x262e0a,'skipNestingCheck':!0x0}),_0x5bab39['forEach'](_0x24c903=>_0x24c903['detach']?.()));const _0x6704e3=_0xe8a768['markMultiRangeBlockFormat'](_0x1bcfc8['map'](({element:_0x2ebf13})=>_0x2ebf13),{'formatGroupId':_0xeec48d()},[],'tablePasteCell',{'tablePasteChainId':_0x262e0a});if(_0x6704e3){const _0x101c66=_0x6704e3['getMarkers'](),_0x28c832=[];for(const {element:_0x57a2f3,attributes:_0x3a1dcb}of _0x1bcfc8){if(!_0x3a1dcb)continue;const _0x22ab18=_0x27d34e['model']['createRangeOn'](_0x57a2f3),_0x57ad16=_0x101c66['find'](_0x5612f5=>_0x5612f5['getRange']()['isEqual'](_0x22ab18));_0x57ad16&&_0x28c832['push']([_0x57ad16['name'],_0x3a1dcb]);}_0x28c832['length']&&_0x6704e3['setAttribute']('markerAttributes',Object['fromEntries'](_0x28c832));}_0x6a9867=null;}));},{'priority':_0x31ded7['high']+0xa}),_0xe25b8f['on']('contentInsertion',()=>{_0x145424=!0x1;},{'priority':'lowest'}),_0x27d34e['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x4411f6,_0x1590c8)=>{const [_0x2f4e5d,_0x229f3b,,_0x3102e9]=_0x1590c8;if(!_0x6a9867)return;_0x4411f6['stop']();const _0x4b17fc=_0x2f4e5d['cell'],_0x11c318=_0x229f3b,_0xc1dcfc=ve(_0x4b17fc),_0x52c190=ve(_0x11c318);_0x4411f6['return']=_0x4b17fc;let _0x41787f=null,_0x17caff=null;if(_0x52c190||_0xc1dcfc){if(_0xc1dcfc&&!_0x52c190){_0x3102e9['remove'](_0x4b17fc['getChild'](0x0));for(const _0x483f8f of Array['from'](_0x11c318['getChildren']()))_0x3102e9['insert'](_0x483f8f,_0x4b17fc,'end');const _0x2f696a=_0x6a9867['rowInsertionIndexes']['includes'](_0x2f4e5d['row']),_0x1ce699=_0x6a9867['columnInsertionIndexes']['includes'](_0x2f4e5d['column']);_0x2f696a||_0x1ce699||(_0x41787f=_0x5def50['fromRange'](_0x3102e9['createRangeIn'](_0x4b17fc)));}else _0x52c190&&!_0xc1dcfc&&(_0x17caff=_0x3102e9['createRangeIn'](_0x4b17fc));}else{const _0x5d2140=_0x3102e9['createElement']('tableCellSuggestion'),_0x5566a1=_0x3102e9['createElement']('tableCellSuggestion');_0x3102e9['wrap'](_0x3102e9['createRangeIn'](_0x4b17fc),_0x5566a1),_0x3102e9['insert'](_0x5d2140,_0x4b17fc,0x0);for(const _0x2512e6 of Array['from'](_0x11c318['getChildren']()))_0x3102e9['insert'](_0x2512e6,_0x5d2140,'end');_0x41787f=_0x5def50['fromRange'](_0x3102e9['createRangeOn'](_0x5d2140)),_0x17caff=_0x5def50['fromRange'](_0x3102e9['createRangeOn'](_0x5566a1));}const _0x59b9cd=Array['from'](_0x11c318['getAttributes']())['filter'](([_0x52720d])=>Be['includes'](_0x52720d));_0x6a9867['cells']['push']({'element':_0x4b17fc,'attributes':_0x59b9cd['length']?Object['fromEntries'](_0x59b9cd):null}),_0x41787f&&_0x6a9867['insertionRanges']['push'](_0x41787f),_0x17caff&&_0x6a9867['deletionRanges']['push'](_0x17caff);},{'priority':'high'}),_0x5a8a37['on']('insertColumns',(_0x4f30cc,_0x224f78)=>{const [_0x545180,_0x4da80b={}]=_0x224f78;if(!_0x6a9867)return;const _0x390fe5=_0x4da80b['at']||0x0,_0x19ebbd=_0x4da80b['columns']||0x1;_0x6a9867['columnInsertionIndexes']=new Array(_0x19ebbd)['fill'](_0x390fe5)['map']((_0x2eb17d,_0xfc672a)=>_0x2eb17d+_0xfc672a);for(const {cell:_0x4cff50}of _0x5a8a37['createTableWalker'](_0x545180,{'startColumn':_0x390fe5,'endColumn':_0x390fe5+_0x19ebbd-0x1}))_0x6a9867['columnInsertionRanges']['push'](_0x27d34e['model']['createRangeOn'](_0x4cff50));},{'priority':'low'}),_0x5a8a37['on']('insertRows',(_0x3db5fc,_0x5d3d51)=>{const [_0x54f771,_0x469530={}]=_0x5d3d51;if(!_0x6a9867)return;const _0x40a854=_0x469530['at']||0x0,_0x95ddc1=_0x469530['rows']||0x1;_0x6a9867['rowInsertionIndexes']=new Array(_0x95ddc1)['fill'](_0x40a854)['map']((_0x2a4ffa,_0x4d5802)=>_0x2a4ffa+_0x4d5802);for(const {cell:_0x47700a}of _0x5a8a37['createTableWalker'](_0x54f771,{'startRow':_0x40a854,'endRow':_0x40a854+_0x95ddc1-0x1}))_0x6a9867['rowInsertionRanges']['push'](_0x27d34e['model']['createRangeOn'](_0x47700a));},{'priority':'low'}),_0xe8a768['descriptionFactory']['registerDescriptionCallback'](_0x26cf18=>{if(_0x26cf18['subType']&&_0x26cf18['subType']['startsWith']('tablePaste'))return _0x26cf18['previous']?{}:{'type':'insertion','content':At(_0x27d34e['locale'],'*Replace\x20table\x20cells*')};});const _0x58f1c6=()=>!0x1;for(const _0x31289c of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0xe8a768['_suggestionFactory']['registerCustomCallback']('insertion',_0x31289c,'join',_0x58f1c6),_0xe8a768['_suggestionFactory']['registerCustomCallback']('deletion',_0x31289c,'join',_0x58f1c6),_0xe8a768['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x31289c,'join',_0x58f1c6);_0xe8a768['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x58f1c6),_0xe8a768['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x8fa31c,_0x43acef,_0x4aa23b)=>{const _0x5538aa=_0x8fa31c['map'](_0x16becc=>_0x16becc['getContainedElement']())['filter'](_0x2b05fa=>_0x2b05fa),_0x3ef186=new Map(_0x5538aa['map'](_0x41d703=>[_0x41d703,null]));if(_0x6a9867){for(const {element:_0x424fe6,attributes:_0x50411a}of _0x6a9867['cells'])_0x50411a&&_0x3ef186['set'](_0x424fe6,_0x50411a);}else{if(_0x4aa23b&&_0x4aa23b['markerAttributes'])for(const [_0x3dcec7,_0x50eb39]of Object['entries'](_0x4aa23b['markerAttributes'])){const _0x2ac9f6=_0x27d34e['model']['markers']['get'](_0x3dcec7),_0x56478e=_0x2ac9f6?_0x2ac9f6['getRange']()['getContainedElement']():null;_0x56478e&&_0x3ef186['set'](_0x56478e,_0x50eb39);}}_0x27d34e['model']['change'](_0x1b0dfd=>{for(const [_0x4b2e56,_0x2ac608]of _0x3ef186)_0x1b0dfd['setAttributes']({...Fe,..._0x2ac608},_0x4b2e56);});});const _0x1376ac=(_0x26fa21,_0x1cbf31)=>{_0xe8a768['_suggestionFactory']['registerCustomCallback'](_0x26fa21,'tablePaste',_0x1cbf31,(_0x2696fd,_0x2fe186,_0x4cba65)=>{_0x27d34e['model']['change'](_0x1d7a86=>{const _0x6eb939=[];for(const _0x1921b4 of _0x2696fd){const _0xefc2c9=_0x1921b4['start']['nodeAfter'];_0xefc2c9['is']('element','tableCellSuggestion')&&_0x6eb939['push'](_0xefc2c9);}_0xe8a768['_suggestionFactory']['getSuggestionCallback'](_0x26fa21,null,_0x1cbf31)(_0x2696fd,_0x2fe186,_0x4cba65);for(const _0xfda912 of _0x6eb939)'$graveyard'!=_0xfda912['root']['rootName']&&_0x1d7a86['unwrap'](_0xfda912);});});};_0x1376ac('insertion','accept'),_0x1376ac('insertion','discard'),_0x1376ac('deletion','accept'),_0x1376ac('deletion','discard'),_0xe8a768['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x55746f=>{const _0xe08ecb=_0x55746f['map'](_0x3b636d=>_0x3b636d['getContainedElement']()),_0x388658=_0xe08ecb[0x0]['findAncestor']('table'),{minRow:_0x2c7a1f,maxRow:_0x30cbe8}=_0x444cac['_getCoordsForCells'](_0xe08ecb);_0x5a8a37['removeRows'](_0x388658,{'at':_0x2c7a1f,'rows':_0x30cbe8-_0x2c7a1f+0x1});}),_0xe8a768['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x3e1a31=>{const _0x4b341f=_0x3e1a31['map'](_0x904ef6=>_0x904ef6['getContainedElement']()),_0x141ba0=_0x4b341f[0x0]['findAncestor']('table'),{minColumn:_0x8c34c,maxColumn:_0x39a1ab}=_0x444cac['_getCoordsForCells'](_0x4b341f);_0x5a8a37['removeColumns'](_0x141ba0,{'at':_0x8c34c,'columns':_0x39a1ab-_0x8c34c+0x1});});const _0xadd4ea=(_0x323d3d,_0x309d1a)=>{if(!_0x309d1a['subType']||!_0x309d1a['subType']['startsWith']('tablePaste'))return;const _0x208550=_0x309d1a['attributes']['tablePasteChainId'],_0xfd1533=_0xe8a768['getSuggestions']()['filter'](_0x2a6a19=>_0x2a6a19['isInContent']&&_0x2a6a19['attributes']&&_0x2a6a19['attributes']['tablePasteChainId']==_0x208550);_0xfd1533['length']&&_0x309d1a['getAllAdjacentSuggestions']()['length']!=_0xfd1533['length']&&_0xfd1533['reduce']((_0x17f37e,_0x48415b)=>(_0x17f37e['next']=_0x48415b,_0x48415b['previous']=_0x17f37e,_0x48415b));};function _0x225d06(_0x15100c,_0x341b8f=!0x0){const {id:_0x15ae9,authorId:_0x5ba26f}=_0x2c4563(_0x15100c['markerName']),_0x1f6f82=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x48ee0a=_0xe8a768['activeMarkers']['includes'](_0x15100c['markerName']);return _0x48ee0a&&_0x1f6f82['push']('ck-suggestion-marker--active'),{'classes':_0x1f6f82,'attributes':{'data-suggestion':_0x15ae9,'data-author-id':_0x5ba26f},'priority':_0x48ee0a&&_0x341b8f?0xbc2:0xbb8};}_0xe8a768['on']('suggestionLoaded',_0xadd4ea,{'priority':'high'}),_0xe8a768['on']('suggestionUnloaded',_0xadd4ea,{'priority':'high'}),_0x27d34e['model']['document']['registerPostFixer'](()=>{let _0x1bddbe=!0x1;const _0x27adae=Array['from'](_0x27d34e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4e8532,data:_0x496ace}of _0x27adae){const {group:_0x6acda1,type:_0x5e8be3,id:_0x32b78f}=_0x2c4563(_0x4e8532);if('suggestion'!=_0x6acda1||'deletion'!=_0x5e8be3||_0x496ace['oldRange'])continue;if(!_0xe8a768['hasSuggestion'](_0x32b78f))continue;const _0x140e4c=_0xe8a768['getSuggestion'](_0x32b78f)['getRanges'](),_0x48c591=_0x27d34e['plugins']['get']('Users')['me'];for(const _0x3d21fd of _0xe8a768['getSuggestions']()){if(!_0x3d21fd['isInContent']||_0x3d21fd['author']!=_0x48c591)continue;if('formatBlock'!=_0x3d21fd['type']||'tablePasteCell'!=_0x3d21fd['subType'])continue;if(_0x3d21fd['getRanges']()['every'](_0x2d7f1d=>_0x140e4c['some'](_0x2fe2da=>_0x2fe2da['containsRange'](_0x2d7f1d,!0x0)))){for(const _0x2e312b of _0x3d21fd['getAllAdjacentSuggestions']())_0x2e312b['isInContent']&&(_0x2e312b['discard'](),_0x1bddbe=!0x0);}}}return _0x1bddbe;}),_0x27d34e['model']['document']['registerPostFixer'](_0x6b5c0c=>{const _0x52dfea=_0x27d34e['commands']['get']('redo');if(!_0x52dfea||!_0x52dfea['_createdBatches']['has'](_0x6b5c0c['batch']))return!0x1;let _0x337f5f=!0x1;const _0x411b0b=_0x27d34e['plugins']['get']('Users')['me'],_0x370839=_0x27d34e['model']['document']['differ']['getChanges'](),_0x43d959=Array['from'](_0x27d34e['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x111dee,data:_0x417d0a})=>{const {group:_0x57818e,subType:_0x3405f0,authorId:_0x3f1b2a}=_0x2c4563(_0x111dee);return'suggestion'==_0x57818e&&'tablePaste'==_0x3405f0&&_0x3f1b2a==_0x411b0b['id']&&!_0x417d0a['oldRange'];});for(const _0x208d04 of _0x370839){if('insert'!=_0x208d04['type']||'tableCellSuggestion'!=_0x208d04['name']||0x1!=_0x208d04['length'])continue;const _0x350513=_0x6b5c0c['createRange'](_0x208d04['position'],_0x208d04['position']['getShiftedBy'](0x1));if(!_0x43d959['find'](({data:_0x41e376})=>_0x41e376['newRange']['isEqual'](_0x350513))){for(const {name:_0x5e89c0,data:_0x47a792}of _0x43d959)if(_0x350513['containsRange'](_0x47a792['newRange'])){_0x6b5c0c['updateMarker'](_0x5e89c0,{'range':_0x350513}),_0x337f5f=!0x0;break;}}}return _0x337f5f;}),_0x27d34e['model']['document']['registerPostFixer'](_0x58f47f=>{let _0x56ca33=!0x1;const _0x25b39f=_0x27d34e['plugins']['get']('Users')['me'],_0x466580=_0xe8a768['getSuggestions']()['filter'](_0xdbdbfb=>_0xdbdbfb['isInContent']&&_0xdbdbfb['author']==_0x25b39f),_0x2d74c6=new Set(),_0x127db2=new Set();for(const _0x4c5a80 of _0x466580)if('tablePaste'==_0x4c5a80['subType'])for(const _0x3a2abe of _0x4c5a80['getMarkers']()){const _0x5b5b56=_0x3a2abe['getRange']()['getContainedElement']();if(_0x5b5b56){if(_0x5b5b56['is']('element','tableCellSuggestion')&&ve(_0x5b5b56)){_0x4c5a80['removeMarker'](_0x3a2abe['name']),_0x2d74c6['add'](_0x5b5b56),_0x56ca33=!0x0;const _0x1b312e=_0x5b5b56['nextSibling'],_0x2ba886=_0x5b5b56['previousSibling'],_0x5bd494=_0x1b312e&&_0x1b312e['is']('element','tableCellSuggestion'),_0x274f72=_0x2ba886&&_0x2ba886['is']('element','tableCellSuggestion');_0x5bd494&&!_0x2d74c6['has'](_0x1b312e)&&_0x127db2['add'](_0x1b312e),_0x274f72&&!_0x2d74c6['has'](_0x2ba886)&&_0x127db2['add'](_0x2ba886);}else _0x5b5b56['is']('element','paragraph')&&_0x5b5b56['isEmpty']&&(_0x4c5a80['removeMarker'](_0x3a2abe['name']),_0x56ca33=!0x0);}}else{if('tablePasteCell'==_0x4c5a80['subType']){if(!_0x4c5a80['attributes']||!_0x4c5a80['attributes']['tablePasteChainId'])continue;const _0xbbea48=_0x4c5a80['attributes']['markerAttributes'];if(_0xbbea48&&Object['keys'](_0xbbea48)['length'])continue;const _0x44508a=_0x4c5a80['attributes']['tablePasteChainId'];let _0x4f39c6=!0x0,_0x870ff3=!0x0;for(const _0x283852 of _0x466580)if(_0x283852['subType']&&_0x283852['subType']['startsWith']('tablePaste')){if(!_0x283852['attributes']['tablePasteChainId']){_0x870ff3=!0x1;break;}if(_0x283852['id']!=_0x4c5a80['id']&&_0x283852['attributes']['tablePasteChainId']==_0x44508a){_0x4f39c6=!0x1;break;}}_0x870ff3&&_0x4f39c6&&(_0x4c5a80['removeMarkers'](),_0x56ca33=!0x0);}}for(const _0x2e82e5 of _0x2d74c6)_0x58f47f['remove'](_0x2e82e5);for(const _0x24c3c8 of _0x127db2)_0x58f47f['unwrap'](_0x24c3c8);return _0x56ca33;}),_0x27d34e['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x555a61=>_0x225d06(_0x555a61),'converterPriority':'high'}),_0x27d34e['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x4fd746,_0x51cc69)=>_0x51cc69['options']['showSuggestionHighlights']?_0x225d06(_0x4fd746,!0x1):null,'converterPriority':'high'});const _0x8f2c33=_0x27d34e['editing']['view'];this['listenTo'](_0x8f2c33['document'],'clipboardOutput',(_0x2f743b,_0x2cb236)=>{const _0x34d441=[];for(const _0x5ecb20 of _0x8f2c33['createRangeIn'](_0x2cb236['content'])['getItems']())_0x5ecb20['is']('element','suggestion-td')&&_0x34d441['push'](_0x5ecb20);_0x8f2c33['change'](_0x55b2a5=>{for(const _0x2960a3 of _0x34d441)_0x55b2a5['move'](_0x55b2a5['createRangeIn'](_0x2960a3),_0x55b2a5['createPositionBefore'](_0x2960a3)),_0x55b2a5['remove'](_0x2960a3);});});}}function ve(_0x42fe2d){if(_0x42fe2d['isEmpty'])return!0x0;const _0x4fe6f9=_0x42fe2d['getChild'](0x0);return _0x4fe6f9['is']('element','paragraph')&&_0x4fe6f9['isEmpty'];}function xe(_0x3d5179,_0x914180={},_0x193a5b){for(const {isAnchor:_0x592e84,cellHeight:_0x3b17c4,cellWidth:_0x524772}of _0x193a5b['createTableWalker'](_0x3d5179,{'includeAllSlots':!0x0,..._0x914180}))if(!_0x592e84||0x1!=_0x3b17c4||0x1!=_0x524772)return!0x1;return!0x0;}class Pe extends _0x112932{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x197741=this['editor']['plugins']['get']('TrackChangesEditing');_0x197741['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x197741['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x197741['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x197741['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x197741['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x197741['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x55019e,_0x2599a8){const _0x910f5e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x24217e=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x2d4ee6=_0x2599a8['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x743b78=_0x24217e['getColumnGroupElement'](_0x2d4ee6);let _0x19a44f=_0x743b78?_0x24217e['getTableColumnsWidths'](_0x743b78):null,_0x3ac667=_0x2d4ee6['getAttribute']('tableWidth')||null;const _0xd918eb=_0x2599a8['tableWidth']||_0x3ac667,_0x35ae86=_0x2599a8['columnWidths']||_0x19a44f,_0x270568=this['editor']['plugins']['get']('Users')['me'];for(const _0x5968f5 of _0x910f5e['getSuggestions']()){const _0x29d62d=_0x5968f5['getContainedElement']();if('resizeTable'===_0x5968f5['subType']&&_0x29d62d===_0x2d4ee6){_0x5968f5['author']!==_0x270568&&_0x5968f5['discard']();const _0x3fce04=_0x5968f5['data']['commandParams'];_0x3ac667=_0x3fce04[0x0]['tableWidth'],_0x19a44f=_0x3fce04[0x0]['columnWidths'];break;}}_0x55019e({'table':_0x2d4ee6,'tableWidth':_0xd918eb,'columnWidths':_0x35ae86}),_0x910f5e['markBlockFormat'](_0x2d4ee6,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x3ac667,'columnWidths':_0x19a44f}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x163886){if('formatBlock'!=_0x163886['type']&&'formatInline'!=_0x163886['type'])return;const {data:_0x79ce70}=_0x163886;if(_0x79ce70&&'resizeTable'===_0x79ce70['formatGroupId']){const _0x18d6e2='*Format:*\x20resize\x20table';return{'type':'format','content':At(this['editor']['locale'],_0x18d6e2)};}}}class Ue extends _0x112932{['afterInit'](){const _0x32edb4=this['editor'];_0x32edb4['plugins']['has']('Template')&&_0x32edb4['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ge extends _0x112932{['afterInit'](){const _0x4e8042=this['editor'];if(!_0x4e8042['commands']['get']('insertTableOfContents'))return;_0x4e8042['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x1c328a=_0x4e8042['plugins']['get']('TrackChangesEditing'),_0x32fd88=_0x4e8042['locale'];_0x1c328a['descriptionFactory']['registerElementLabel']('tableOfContents',_0x4bc22d=>At(_0x32fd88,'ELEMENT_TABLE_OF_CONTENTS',_0x4bc22d));}}class He extends _0x112932{['afterInit'](){const _0x425efd=this['editor'];if(!_0x425efd['plugins']['has']('Title'))return;_0x425efd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>At(_0x425efd['locale'],'ELEMENT_TITLE')),_0x425efd['model']['document']['registerPostFixer'](_0x5a1934=>{let _0x4a638d=!0x1;const _0xd8fb4f=Array['from'](_0x425efd['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x45918a,data:_0x26abc0}of _0xd8fb4f){const {group:_0x4eabdc}=_0x2c4563(_0x45918a);if('suggestion'!==_0x4eabdc||!_0x26abc0['newRange'])continue;const _0x353593=_0x26abc0['newRange'],_0x469072=_0x353593['end']['nodeBefore'];if(!_0x469072||!_0x469072['is']('element','title-content'))continue;if(!_0x353593['start']['isTouching'](_0x353593['end']))continue;const _0x30aba6=_0x425efd['model']['schema']['getNearestSelectionRange'](_0x353593['end'],'forward');if(_0x30aba6&&_0x30aba6['isCollapsed']){const _0x4ceecf=_0x5a1934['createRange'](_0x353593['start'],_0x30aba6['start']);_0x4ceecf['isEqual'](_0x353593)||(_0x5a1934['updateMarker'](_0x45918a,{'range':_0x4ceecf}),_0x4a638d=!0x0);}_0x4a638d||(_0x5a1934['removeMarker'](_0x45918a),_0x4a638d=!0x0);}return _0x4a638d;});}}class $e extends _0x112932{['afterInit'](){const _0x28d3a0=this['editor'],_0x57b313=_0x28d3a0['plugins']['get']('TrackChangesEditing');_0x28d3a0['plugins']['has']('Uploadcare')&&(_0x57b313['enableCommand']('uploadcare'),_0x28d3a0['plugins']['has']('UploadcareImageEdit')&&(_0x57b313['enableCommand']('uploadcareImageEdit'),_0x57b313['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x57b313['descriptionFactory']['registerDescriptionCallback'](_0x50dfc3=>{if('attribute'!=_0x50dfc3['type'])return;const {data:_0x4a5a21}=_0x50dfc3;return _0x4a5a21&&'uploadcareImageId'==_0x4a5a21['key']?{'type':'format','content':''}:void 0x0;})));}}class We extends _0x112932{['afterInit'](){const _0x197751=this['editor'],_0x24ef15=_0x197751['plugins']['get']('TrackChangesEditing');_0x197751['plugins']['has']('UndoEditing')&&(_0x24ef15['enableCommand']('undo'),_0x24ef15['enableCommand']('redo'));}}class Ve extends _0x112932{static get['requires'](){return[Ne];}['afterInit'](){const _0xef4e7d=this['editor'];if(!_0xef4e7d['plugins']['has']('TableCaptionEditing'))return;_0xef4e7d['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class je extends _0x112932{['tableProperties'];['tableCellProperties'];constructor(_0x59490b){super(_0x59490b),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 _0x435a1f=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x420d80 of this['tableProperties'])_0x435a1f['enableCommand'](_0x420d80,(_0x2af6dc,_0x77d2fb)=>{const _0x4c5525=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x420d80,[_0x4c5525],this['tableProperties'],'tableProperties',_0x2af6dc,_0x77d2fb);});_0x435a1f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x435a1f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x435a1f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x21495c,_0x40e6a9)=>this['handleDiscardAction'](this['tableProperties'],_0x21495c,_0x40e6a9)),_0x435a1f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x43fdcb of this['tableCellProperties'])this['editor']['commands']['get'](_0x43fdcb)&&_0x435a1f['enableCommand'](_0x43fdcb,(_0xa1de3b,_0x3d67f8)=>{const _0x4e735d=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x43fdcb,_0x4e735d,this['tableCellProperties'],'tableCellProperties',_0xa1de3b,_0x3d67f8);});_0x435a1f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x435a1f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x435a1f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x4b2450,_0x96aafd)=>this['handleDiscardAction'](this['tableCellProperties'],_0x4b2450,_0x96aafd)),_0x435a1f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x435a1f['descriptionFactory']['registerAttributeLabel']('tableCellType',At(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x435a1f['descriptionFactory']['registerDescriptionCallback'](_0x577174=>this['handleSuggestionDescription'](_0x577174)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x41cceb,_0x360743,_0x1bf870,_0x1435a7,_0x480d03,_0x350e1b){const _0x11fc37=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x350e1b['batch'],()=>{for(const _0x1e6630 of _0x360743){if(this['_getSuggestion'](_0x1e6630,_0x1435a7))_0x480d03(_0x350e1b);else{const _0xd4c34c={};for(const _0x1251eb of _0x1bf870){const _0x59bef9=_0x1e6630['getAttribute'](_0x1251eb);void 0x0!==_0x59bef9&&(_0xd4c34c[_0x1251eb]=_0x59bef9);}_0x480d03(_0x350e1b),_0x11fc37['markBlockFormat'](_0x1e6630,{'commandParams':[_0xd4c34c]},[],_0x1435a7);}}});}['handleDiscardAction'](_0x57371d,_0x3d91c3,_0x16e2ed){const _0x35107b=_0x3d91c3[0x0]['start']['nodeAfter'],_0x156561=_0x16e2ed['commandParams'][0x0];this['editor']['model']['change'](_0x4e1d37=>{for(const _0x29cc69 of _0x57371d)void 0x0!==_0x156561[_0x29cc69]?_0x4e1d37['setAttribute'](_0x29cc69,_0x156561[_0x29cc69],_0x35107b):_0x4e1d37['removeAttribute'](_0x29cc69,_0x35107b);});}['handleSuggestionDescription'](_0x165383){if(_0x165383['data'])switch(_0x165383['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'](_0x384098,_0x207b08){const _0x32eff5=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x3edd3c of _0x32eff5['getSuggestions']({'skipNotAttached':!0x0})){const _0x470983=_0x3edd3c['getContainedElement']();if(_0x3edd3c['subType']===_0x207b08&&_0x470983===_0x384098)return _0x3edd3c;}return null;}['_registerTablePropertiesAttributes'](){const _0x1ad737=this['editor']['plugins']['get']('TrackChangesEditing'),_0x389bbe=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x10d870 of _0x389bbe){const _0x3a2213=_0x10d870['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x1ad737['descriptionFactory']['registerAttributeLabel'](_0x10d870,At(this['editor']['locale'],'FORMAT_'+_0x3a2213));}}}class ze extends _0x112932{['afterInit'](){const _0x361954=this['editor'];if(!_0x361954['plugins']['has']('LineHeight'))return;const _0x2efa88=_0x361954['plugins']['get']('TrackChangesEditing'),_0x29f671=_0x361954['locale'];_0x2efa88['enableDefaultAttributesIntegration']('lineHeight'),_0x2efa88['descriptionFactory']['registerAttributeLabel']('lineHeight',At(_0x29f671,'FORMAT_LINE_HEIGHT'));}}const Ke='$elementName';class Xe extends _0x112932{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_suggestionsConversion'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return[_0xdf7add,_0x21d77b,_0x103758,_0x23a5ae,_0x220e4c,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(_0x287394){super(_0x287394),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x1a2487,_0x1193b8,_0x2741ef,_0x48f82b)=>{this['_model']['change'](()=>{for(const _0x5433ff of[..._0x48f82b,..._0x2741ef])this['_model']['markers']['has'](_0x5433ff)&&_0x287394['editing']['reconvertMarker'](_0x5433ff);});}),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']=_0x287394['plugins']['get'](_0xdf7add),this['_suggestionsConversion']=_0x287394['plugins']['get'](_0x21d77b),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x287394['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x287394['config']['get']('trackChanges.trackFormatChanges'),_0x287394['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x287394['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new ht(_0x287394,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x30fb6c=this['editor'];_0x30fb6c['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x397565,{writer:_0x2cf0b4})=>{let _0x32df70='suggestion:'+_0x397565['getAttribute']('suggestion-type')+':'+_0x397565['getAttribute']('id');return _0x397565['getAttribute']('marker-count')&&(_0x32df70+=':'+_0x397565['getAttribute']('marker-count')),_0x2cf0b4['createElement']('$marker',{'data-name':_0x32df70});}}),_0x30fb6c['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x30fb6c['model']['document']['registerPostFixer'](_0xbca0d9=>{let _0x26f724=!0x1;const _0x273a8d=Array['from'](_0x30fb6c['model']['document']['differ']['getChangedMarkers']()),_0x438c4c=new Set();for(const {name:_0x59a219,data:_0x4564bd}of _0x273a8d){const {group:_0x1d24a8,type:_0x278bd9,subType:_0x407978,id:_0x45f61d}=_0x2c4563(_0x59a219);if('suggestion'!==_0x1d24a8)continue;const _0x3d6157=_0x407978?'suggestion:'+_0x278bd9+':'+_0x407978+':'+_0x45f61d:'suggestion:'+_0x278bd9+':'+_0x45f61d,_0x5b8858=_0x30fb6c['model']['markers']['getMarkersGroup'](_0x3d6157),_0x341a7e=_0x30fb6c['model']['markers']['get'](_0x59a219),_0x4a2101=this['_suggestions']['get'](_0x45f61d);if(null!=_0x4564bd['newRange']){'formatInline'==_0x278bd9&&(_0x26f724=_0x26f724||Ze(_0x4564bd['newRange'],_0x59a219,_0xbca0d9,_0x30fb6c['model']['schema']));const _0x5e7483='attribute'==_0x278bd9&&this['_suggestionsConversion']['isBlockAttribute'](un(_0x407978)),_0x19895d='attribute'==_0x278bd9&&this['_suggestionsConversion']['isInlineAttribute'](un(_0x407978));if(_0x4564bd['newRange']['isCollapsed']||'$graveyard'==_0x4564bd['newRange']['root']['rootName']||'formatBlock'==_0x278bd9&&!tn(_0x4564bd['newRange'])||_0x5e7483&&!tn(_0x4564bd['newRange'])||_0x19895d&&en(_0x4564bd['newRange'])||'deletion'==_0x278bd9&&en(_0x4564bd['newRange'])||_0x341a7e&&nn(_0x341a7e,_0x5b8858))_0xbca0d9['removeMarker'](_0x59a219),_0x26f724=!0x0;else{if(!_0x4a2101||!_0x4a2101['isInContent'])continue;if(_0x4564bd['newRange']&&_0x4564bd['oldRange']&&_0x4564bd['newRange']['isEqual'](_0x4564bd['oldRange']))continue;_0x438c4c['add'](_0x4a2101);}}}return _0x438c4c['size']>0x0&&(_0x26f724=!!this['_joinWithAdjacentSuggestions'](_0x438c4c)||_0x26f724),_0x26f724;}),_0x30fb6c['model']['document']['registerPostFixer'](_0x5e2f09=>{let _0x13a96f=!0x1;for(const _0x1a9a4f of _0x30fb6c['model']['document']['differ']['getChanges']())if('insert'==_0x1a9a4f['type'])for(const _0x3b5d4c of this['_suggestions']['values']()){if(_0x3b5d4c['isMultiRange']||!_0x3b5d4c['isInContent'])continue;const _0x5ccaf3='formatBlock'==_0x3b5d4c['type'],_0xfbd8c2=this['_getAttributeKey'](_0x3b5d4c),_0x5d2e5a=_0xfbd8c2&&this['_suggestionsConversion']['isBlockAttribute'](_0xfbd8c2);if(!_0x5ccaf3&&!_0x5d2e5a)continue;const _0x5188f1=_0x3b5d4c['getFirstRange']();if(_0x5188f1['start']['parent']!=_0x5188f1['end']['parent']&&!_0x5188f1['end']['isAtEnd']){const _0xa90780=_0x30fb6c['model']['createPositionAt'](_0x5188f1['start']['nodeAfter'],'end'),_0x11af0d=_0x30fb6c['model']['createRange'](_0x5188f1['start'],_0xa90780);_0x5e2f09['updateMarker'](_0x3b5d4c['getFirstMarker'](),{'range':_0x11af0d}),_0x13a96f=!0x0;}}return _0x13a96f;}),_0x30fb6c['model']['document']['registerPostFixer'](_0x1950fb=>this['_processAttributeChanges'](_0x1950fb)),_0x30fb6c['model']['document']['registerPostFixer'](_0x18ae62=>!_0x18ae62['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x18ae62)),_0x30fb6c['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x30fb6c['model']['document']['on']('change:data',(_0x37832d,_0x453d50)=>{if(!_0x453d50['isLocal']||_0x453d50['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x1f3f45=_0x30fb6c['model']['document']['differ']['getChanges']();if(0x0==_0x1f3f45['length'])return;const _0x3b82c0=[],_0x1f13a6=_0x1f3f45['filter'](_0x358d49=>'attribute'==_0x358d49['type']),_0x21b3ea=_0x1f3f45['filter'](_0x20e307=>'insert'==_0x20e307['type']&&'$text'!=_0x20e307['name']);for(const _0x16f8e8 of _0x1f13a6)this['_suggestionsConversion']['isRegisteredAttribute'](_0x16f8e8['attributeKey'])&&_0x3b82c0['push']({'key':_0x16f8e8['attributeKey'],'newValue':_0x16f8e8['attributeNewValue'],'oldValue':_0x16f8e8['attributeOldValue'],'range':sn(_0x16f8e8['range'],_0x30fb6c['model'])});for(const _0x42c68f of _0x21b3ea){if('rename'!=_0x42c68f['action']&&'refresh'!=_0x42c68f['action'])continue;const _0x3cd0e8=rn(_0x42c68f['position']['nodeAfter'],_0x30fb6c['model']),_0x2d7eaf=_0x42c68f['before'];'rename'==_0x42c68f['action']&&_0x3b82c0['push']({'key':Ke,'newValue':_0x42c68f['name'],'oldValue':_0x2d7eaf['name'],'range':_0x3cd0e8});for(const [_0x472ee3,_0x4cdddc]of _0x2d7eaf['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x472ee3))continue;const _0x372df7=_0x42c68f['attributes']['get'](_0x472ee3);_0x4cdddc!==_0x372df7&&_0x3b82c0['push']({'key':_0x472ee3,'newValue':_0x372df7,'oldValue':_0x4cdddc,'range':_0x3cd0e8});}for(const [_0x2c6fc5,_0x5a414e]of _0x42c68f['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x2c6fc5)&&(_0x2d7eaf['attributes']['has'](_0x2c6fc5)||_0x3b82c0['push']({'key':_0x2c6fc5,'newValue':_0x5a414e,'oldValue':null,'range':_0x3cd0e8}));}0x0!=_0x3b82c0['length']&&_0x30fb6c['model']['enqueueChange'](_0x453d50,_0xe599ee=>{const _0x5eace6=_0xeec48d();for(const {range:_0x3a63de,key:_0x3d162d,oldValue:_0x2dbdc8,newValue:_0x3c8e01}of _0x3b82c0)this['markAttributeChange'](_0x3a63de,_0x3d162d,_0x2dbdc8,_0x3c8e01,{'groupId':_0x5eace6});this['_reduceExistingSuggestions'](_0xe599ee,_0x3b82c0);});},{'priority':'lowest'}),_0x30fb6c['model']['markers']['on']('update:suggestion',(_0x2081cc,_0x55feb4,_0xc37c2a)=>{if(null==_0xc37c2a){const {id:_0x4da931}=_0x2c4563(_0x55feb4['name']),_0xa8666=this['_suggestions']['get'](_0x4da931);_0xa8666&&_0xa8666['addMarkerName'](_0x55feb4['name']);}}),_0x30fb6c['model']['document']['on']('change:data',()=>{const _0x3c8560=Array['from'](_0x30fb6c['model']['document']['differ']['getChangedMarkers']())['filter'](_0x1ec299=>'suggestion'===_0x2c4563(_0x1ec299['name'])['group']);if(0x0===_0x3c8560['length'])return;_0x3c8560['sort']((_0x571ea6,_0x1e50db)=>{const _0x63d749=_0x571ea6['data']['oldRange'],_0x4a8649=_0x1e50db['data']['oldRange'];return null===_0x63d749&&null===_0x4a8649?0x0:null===_0x63d749&&null!==_0x4a8649?-0x1:null!==_0x63d749&&null===_0x4a8649?0x1:_0x63d749['start']['isBefore'](_0x4a8649['start'])?-0x1:0x1;});const _0x5a4c90=new Set(),_0x4b3dd7=new Set();for(const {name:_0x6b9eb5,data:_0x23500e}of _0x3c8560){const {id:_0x2752ba}=_0x2c4563(_0x6b9eb5);if(null===_0x23500e['oldRange']){const _0x256443=this['_handleNewSuggestionMarker'](_0x6b9eb5);_0x4b3dd7['add'](_0x256443);}else{const _0x415164=this['_suggestions']['get'](_0x2752ba);null!==_0x23500e['newRange']||_0x415164['isInContent']?(_0x5a4c90['add'](_0x415164['head']),_0x4b3dd7['add'](_0x415164)):this['_removeSuggestion'](_0x415164);}}_0x4b3dd7['size']>0x0&&this['_refreshSuggestionsChain'](_0x4b3dd7);for(const _0x15434b of _0x5a4c90)this['fire']('suggestionChanged',_0x15434b);}),_0x30fb6c['model']['on']('applyOperation',(_0x1d9026,_0x71e653)=>{const _0x59af7d=_0x71e653[0x0];if(!this['_suggestions']['size'])return;if(!_0x59af7d['isDocumentOperation'])return;if(_0x59af7d['batch']['isUndo']||!_0x59af7d['batch']['isLocal'])return;let _0x5271d6,_0x3c58f8;switch(_0x59af7d['type']){case'insert':_0x5271d6=_0x30fb6c['model']['createPositionAt'](_0x59af7d['position']),_0x3c58f8=_0x5271d6['getShiftedBy'](_0x59af7d['howMany']);break;case'split':_0x5271d6=_0x30fb6c['model']['createPositionAt'](_0x59af7d['splitPosition']),_0x3c58f8=_0x30fb6c['model']['createPositionAt'](_0x59af7d['moveTargetPosition']);break;case'move':_0x5271d6=_0x30fb6c['model']['createPositionAt'](_0x59af7d['targetPosition']),_0x3c58f8=_0x5271d6['getShiftedBy'](_0x59af7d['howMany']);break;default:return;}const _0x251a83=_0x30fb6c['model']['createRange'](_0x5271d6,_0x3c58f8);_0x30fb6c['model']['change'](()=>{for(const {suggestion:_0x3fdfbd,meta:_0x2bb229}of this['_findSuggestions'](_0x251a83)){if(_0x3fdfbd['isMultiRange'])continue;if('formatInline'==_0x3fdfbd['type'])continue;const _0x4cd35b=this['_getAttributeKey'](_0x3fdfbd);if(_0x4cd35b&&this['_suggestionsConversion']['isBlockAttribute'](_0x4cd35b)&&'split'!=_0x59af7d['type'])continue;const _0x15f9b0=_0x3fdfbd['data']&&_0x3fdfbd['data']['multipleBlocks'];('formatBlock'!=_0x3fdfbd['type']||'split'==_0x59af7d['type']&&!_0x15f9b0)&&(_0x2bb229['containsRangeInObject']||'insertion'==_0x3fdfbd['type']&&_0x2bb229['isOwn']||_0x3fdfbd['getFirstRange']()['containsRange'](_0x251a83)&&this['_breakSuggestionMarker'](_0x3fdfbd,_0x5271d6,_0x3c58f8));}});},{'priority':'lowest'}),_0x30fb6c['model']['on']('deleteContent',(_0x3f647c,_0x32dc8a)=>{const _0x4d4d78=_0x32dc8a[0x0],_0x138079=_0x32dc8a[0x1];if(_0x138079&&_0x138079['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x4d4d78['isCollapsed'])return;const _0x30d631=_0x30fb6c['model']['schema'],{start:_0x3f8f1f,end:_0x336a87}=_0x4d4d78['getFirstRange'](),_0x162179=_0x3f8f1f['nodeAfter']&&_0x30d631['isLimit'](_0x3f8f1f['nodeAfter'])?null:_0x30d631['getNearestSelectionRange'](_0x3f8f1f,'forward'),_0x2010c9=_0x336a87['nodeBefore']&&_0x30d631['isLimit'](_0x336a87['nodeBefore'])?null:_0x30d631['getNearestSelectionRange'](_0x336a87,'backward'),_0x3d75bf=_0x30fb6c['model']['createRange'](_0x162179?_0x162179['start']:_0x3f8f1f,_0x2010c9?_0x2010c9['end']:_0x336a87);_0x30fb6c['model']['change'](_0x4d2c13=>{this['markDeletion'](_0x3d75bf);const _0x322998=_0x30fb6c['model']['schema']['getNearestSelectionRange'](_0x3d75bf['start']);_0x4d4d78['is']('documentSelection')?_0x4d2c13['setSelection'](_0x322998):_0x4d4d78['setTo'](_0x322998);}),_0x3f647c['stop']();},{'priority':_0x31ded7['normal']+0xa}),_0x30fb6c['model']['on']('insertContent',(_0x236071,_0x5be1ee)=>{const _0x52dbdf=_0x5be1ee[_0x5be1ee['length']-0x1];_0x52dbdf&&_0x52dbdf['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x30fb6c['model']['change'](()=>{let _0x37a427=_0x30fb6c['model']['insertContent'](_0x5be1ee[0x0],_0x5be1ee[0x1],_0x5be1ee[0x2],{'forceDefaultExecution':!0x0});if(!_0x37a427)return;_0x236071['return']=_0x37a427['clone']();const _0x53b301=_0x37a427['end']['nodeBefore'],_0x55594a=_0x30fb6c['model']['schema'];_0x53b301&&_0x55594a['isBlock'](_0x53b301)&&!_0x55594a['isObject'](_0x53b301)&&(_0x37a427=_0x30fb6c['model']['createRange'](_0x37a427['start'],_0x30fb6c['model']['createPositionAt'](_0x53b301,'end'))),this['markInsertion'](_0x37a427);}),_0x236071['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x35e8c7=new dt(_0x30fb6c,this['_suggestions']);_0x30fb6c['commands']['add']('acceptSuggestion',_0x35e8c7),this['enableCommand']('acceptSuggestion');const _0x121868=new ft(_0x30fb6c,this['_suggestions']);_0x30fb6c['commands']['add']('discardSuggestion',_0x121868),this['enableCommand']('discardSuggestion'),_0x30fb6c['commands']['add']('acceptAllSuggestions',new Lt(_0x30fb6c,_0x35e8c7,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x30fb6c['commands']['add']('discardAllSuggestions',new Lt(_0x30fb6c,_0x121868,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x30fb6c['commands']['add']('acceptSelectedSuggestions',new It(_0x30fb6c,_0x35e8c7,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x30fb6c['commands']['add']('discardSelectedSuggestions',new It(_0x30fb6c,_0x121868,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x1da1c6=_0x30fb6c['plugins']['get'](_0xdf7add);this['listenTo'](_0x1da1c6,'addComment',(_0x483657,{threadId:_0x37fdd4})=>{const _0x1d46a9=this['_suggestions']['get'](_0x37fdd4);_0x1d46a9&&_0x1d46a9['commentThread']&&0x1===_0x1d46a9['commentThread']['length']&&this['_updateSuggestionData'](_0x37fdd4,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x1da1c6,'removeComment',(_0x294a19,{threadId:_0x85ec03})=>{const _0x3a56dd=this['_suggestions']['get'](_0x85ec03);_0x3a56dd&&_0x3a56dd['commentThread']&&!_0x3a56dd['commentThread']['length']&&this['_updateSuggestionData'](_0x85ec03,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x1e0170){const _0x4761c6=_0x16f2c8([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]),_0x3b79e4=0x3d8d0df,_0x380c90=0x3df59a7^_0x3b79e4,_0x341107=window[_0x16f2c8([0x44,0x61,0x74,0x65])][_0x16f2c8([0x6e,0x6f,0x77])](),_0x4e1b03=_0x1e0170[_0x16f2c8([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1c09a4=new window[(_0x16f2c8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3c1966=>{_0x4e1b03[_0x16f2c8([0x6f,0x6e,0x63,0x65])](_0x16f2c8([0x72,0x65,0x61,0x64,0x79]),_0x3c1966);}),_0x32ea97={[_0x16f2c8([0x6b,0x74,0x79])]:_0x16f2c8([0x45,0x43]),[_0x16f2c8([0x75,0x73,0x65])]:_0x16f2c8([0x73,0x69,0x67]),[_0x16f2c8([0x63,0x72,0x76])]:_0x16f2c8([0x50,0x2d,0x32,0x35,0x36]),[_0x16f2c8([0x78])]:_0x16f2c8([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]),[_0x16f2c8([0x79])]:_0x16f2c8([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]),[_0x16f2c8([0x61,0x6c,0x67])]:_0x16f2c8([0x45,0x53,0x32,0x35,0x36])},_0x56b5d7=_0x4e1b03[_0x16f2c8([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x16f2c8([0x67,0x65,0x74])](_0x16f2c8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3f26aa(){let _0x4d766a,_0x3fd7d3=null,_0x96a7b5=null;try{if(_0x56b5d7==_0x16f2c8([0x47,0x50,0x4c]))return _0x16f2c8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4d766a=_0x45d306(),!_0x4d766a)return _0x16f2c8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4d766a[_0x16f2c8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x96a7b5=_0x3d9a71(_0x4d766a[_0x16f2c8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4d766a[_0x16f2c8([0x6a,0x74,0x69])])),await _0x1c0247()?_0x2860a5()?_0x4c2f80()?_0x16f2c8([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x24554c()?(_0x4d766a[_0x16f2c8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x16f2c8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3fd7d3=_0x2991cf(_0x16f2c8([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3b5748()):_0x16f2c8([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x16f2c8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x16f2c8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x16f2c8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4c2f80(){const _0x120d09=[_0x16f2c8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x16f2c8([0x74,0x72,0x69,0x61,0x6c])][_0x16f2c8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d766a[_0x16f2c8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x341107/0x3e8:0xe10*_0x380c90;return _0x4d766a[_0x16f2c8([0x65,0x78,0x70])]<_0x120d09;}function _0x2860a5(){const _0x8b635d=_0x4d766a[_0x16f2c8([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x8b635d)return!0x1;if(_0x8b635d[_0x16f2c8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x16f2c8([0x2a])))return!0x0;if(_0x8b635d[_0x16f2c8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x16f2c8([0x54,0x43])))return!0x0;if(_0x8b635d[_0x16f2c8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x16f2c8([0x52,0x54,0x43]))){if(_0x464b73())return!0x0;if(_0x27dea5()||_0x187fb7())return!0x0;}return!0x1;}function _0x24554c(){const _0x4504a5=_0x4d766a[_0x16f2c8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4504a5||0x0==_0x4504a5[_0x16f2c8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x122b09}=new URL(window[_0x16f2c8([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4504a5[_0x16f2c8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x122b09))return!0x0;const _0x54ba0f=_0x122b09[_0x16f2c8([0x73,0x70,0x6c,0x69,0x74])](_0x16f2c8([0x2e]));return _0x4504a5[_0x16f2c8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x47a648=>_0x47a648[_0x16f2c8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x16f2c8([0x2a])))[_0x16f2c8([0x6d,0x61,0x70])](_0xb2f7e3=>_0xb2f7e3[_0x16f2c8([0x73,0x70,0x6c,0x69,0x74])](_0x16f2c8([0x2e])))[_0x16f2c8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3d7c60=>_0x3d7c60[_0x16f2c8([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x54ba0f[_0x16f2c8([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x16f2c8([0x6d,0x61,0x70])](_0x50446c=>Array(_0x54ba0f[_0x16f2c8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x50446c[_0x16f2c8([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x16f2c8([0x66,0x69,0x6c,0x6c])](_0x50446c[0x0]===_0x16f2c8([0x2a])?_0x16f2c8([0x2a]):'')[_0x16f2c8([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x50446c))[_0x16f2c8([0x73,0x6f,0x6d,0x65])](_0xb1752d=>_0x54ba0f[_0x16f2c8([0x65,0x76,0x65,0x72,0x79])]((_0x49526e,_0x84de7e)=>_0xb1752d[_0x84de7e]===_0x49526e||_0xb1752d[_0x84de7e]===_0x16f2c8([0x2a])));}function _0x3b5748(){return _0x3fd7d3&&_0x96a7b5?new window[(_0x16f2c8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x357910,_0x2005e1)=>{_0x3fd7d3[_0x16f2c8([0x74,0x68,0x65,0x6e])](_0x357910,_0x2005e1),_0x96a7b5[_0x16f2c8([0x74,0x68,0x65,0x6e])](_0x284d0d=>{_0x284d0d!=_0x16f2c8([0x56,0x61,0x6c,0x69,0x64])&&_0x357910(_0x284d0d);},_0x2005e1);}):_0x3fd7d3||_0x96a7b5||_0x16f2c8([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3d9a71(_0x12f602,_0x5613fc){return new window[(_0x16f2c8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x51f90a=>{if(_0x609ae())return _0x51f90a(_0x16f2c8([0x56,0x61,0x6c,0x69,0x64]));_0x1a32b0(),_0x4e1b03[_0x16f2c8([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x16f2c8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x254659=!0x1;const _0x42ec9f=_0xeec48d();function _0x1338d4(_0x1fd618){return!!_0x1fd618&&(typeof _0x1fd618===_0x16f2c8([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1fd618===_0x16f2c8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1fd618[_0x16f2c8([0x74,0x68,0x65,0x6e])]===_0x16f2c8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1fd618[_0x16f2c8([0x63,0x61,0x74,0x63,0x68])]===_0x16f2c8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xbd2989(_0x36e4b6){_0x26f5c7(_0x36e4b6)[_0x16f2c8([0x74,0x68,0x65,0x6e])](_0x18e006=>{if(!_0x18e006||_0x18e006[_0x16f2c8([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x16f2c8([0x6f,0x6b]))return _0x16f2c8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1e3820(_0x38145d(_0x42ec9f+_0x5613fc))!=_0x18e006[_0x16f2c8([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x16f2c8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x16f2c8([0x56,0x61,0x6c,0x69,0x64]);})[_0x16f2c8([0x74,0x68,0x65,0x6e])](_0x3a27e4=>(_0x181eab(),_0x3a27e4),()=>{const _0x432c95=_0x53ce49();return null==_0x432c95?(_0x181eab(),_0x16f2c8([0x56,0x61,0x6c,0x69,0x64])):_0x16f2c8(_0x341107-_0x432c95>(0x27d454df^_0x3b79e4)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x16f2c8([0x74,0x68,0x65,0x6e])](_0x51f90a)[_0x16f2c8([0x63,0x61,0x74,0x63,0x68])](()=>{_0x51f90a(_0x16f2c8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1a5a75=0x3ee3e5f^_0x3b79e4;function _0x181eab(){const _0x2e72cf=_0x16f2c8([0x6c,0x6c,0x63,0x74,0x2d])+_0x1e3820(_0x38145d(_0x12f602)),_0x51431a=_0x5607e8(_0x1e3820(window[_0x16f2c8([0x4d,0x61,0x74,0x68])][_0x16f2c8([0x63,0x65,0x69,0x6c])](_0x341107/_0x1a5a75)));window[_0x16f2c8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x16f2c8([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2e72cf,_0x51431a);}function _0x53ce49(){const _0x46f4ed=_0x16f2c8([0x6c,0x6c,0x63,0x74,0x2d])+_0x1e3820(_0x38145d(_0x12f602)),_0x3128c3=window[_0x16f2c8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x16f2c8([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x46f4ed);return _0x3128c3?window[_0x16f2c8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5607e8(_0x3128c3),0x10)*_0x1a5a75:null;}function _0x26f5c7(_0x3d1673){return new window[(_0x16f2c8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x13c25f,_0xdee597)=>{_0x3d1673[_0x16f2c8([0x74,0x68,0x65,0x6e])](_0x13c25f,_0xdee597),window[_0x16f2c8([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xdee597,0x3d9041f^_0x3b79e4);});}}_0x4e1b03[_0x16f2c8([0x6f,0x6e])](_0x16f2c8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2c3072,_0x505ce6)=>{if(_0x505ce6[0x0]!=_0x12f602)return _0x51f90a(_0x16f2c8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x505ce6[0x1]={..._0x505ce6[0x1],[_0x16f2c8([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x42ec9f};},{[_0x16f2c8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x16f2c8([0x68,0x69,0x67,0x68])}),_0x4e1b03[_0x16f2c8([0x6f,0x6e])](_0x16f2c8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x53311f=>{_0x1338d4(_0x53311f[_0x16f2c8([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x254659=!0x0,_0xbd2989(_0x53311f[_0x16f2c8([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x16f2c8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x16f2c8([0x6c,0x6f,0x77])}),_0x1c09a4[_0x16f2c8([0x74,0x68,0x65,0x6e])](()=>{_0x254659||_0x51f90a(_0x16f2c8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x609ae(){return _0x4e1b03[_0x16f2c8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x16f2c8([0x76,0x69,0x65,0x77])][_0x16f2c8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x16f2c8([0x61,0x75,0x74,0x6f]);}function _0x1a32b0(){_0x4e1b03[_0x16f2c8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x16f2c8([0x76,0x69,0x65,0x77])][_0x16f2c8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x16f2c8([0x61,0x75,0x74,0x6f]);}}function _0x2991cf(_0x574795){const _0x20ae80=[new window[(_0x16f2c8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x24a0ec=>setTimeout(_0x24a0ec,0x3d1ee13^_0x3b79e4)),_0x1c09a4[_0x16f2c8([0x74,0x68,0x65,0x6e])](()=>new window[(_0x16f2c8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3ab52a=>{let _0xefe157=0x0;_0x4e1b03[_0x16f2c8([0x6d,0x6f,0x64,0x65,0x6c])][_0x16f2c8([0x6f,0x6e])](_0x16f2c8([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x537646,_0x3831df)=>{_0x3831df[0x0][_0x16f2c8([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xefe157++,_0xefe157==(0x3d8d537^_0x3b79e4)&&(_0x3ab52a(),_0x537646[_0x16f2c8([0x6f,0x66,0x66])]());});}))];return window[_0x16f2c8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x16f2c8([0x72,0x61,0x63,0x65])](_0x20ae80)[_0x16f2c8([0x74,0x68,0x65,0x6e])](()=>_0x574795);}async function _0x4ad927(){await _0x1c09a4,_0x4e1b03[_0x16f2c8([0x6d,0x6f,0x64,0x65,0x6c])][_0x16f2c8([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x228d4a,_0x4e1b03[_0x16f2c8([0x6d,0x6f,0x64,0x65,0x6c])][_0x16f2c8([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x228d4a,_0x4e1b03[_0x16f2c8([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x16f2c8([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x464b73(){return _0x10046e(_0x16f2c8([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0xce221b(_0x16f2c8([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x16f2c8([0x73,0x74,0x61,0x74,0x65])]==_0x16f2c8([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x27dea5(){return _0x10046e(_0x16f2c8([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 _0x187fb7(){return _0x10046e(_0x16f2c8([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x209cc2(_0x1bba5a){const _0x591f73=_0x11cb87();_0x4e1b03[_0x591f73]=_0x16f2c8([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1bba5a,_0x1bba5a!=_0x16f2c8([0x56,0x61,0x6c,0x69,0x64])&&_0x4ad927();}function _0x11cb87(){const _0x3b4b76=window[_0x16f2c8([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x16f2c8([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x16f2c8([0x6e,0x6f,0x77])]())[_0x16f2c8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x16f2c8([0x2e]),'');let _0x3db145=_0x16f2c8([0x52]);for(let _0xa16730=0x0;_0xa16730<_0x3b4b76[_0x16f2c8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xa16730+=0x2){let _0x5f9e22=window[_0x16f2c8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3b4b76[_0x16f2c8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xa16730,_0xa16730+0x2));_0x5f9e22>=_0x4761c6[_0x16f2c8([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5f9e22-=_0x4761c6[_0x16f2c8([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3db145+=_0x4761c6[_0x5f9e22];}return _0x3db145;}function _0x45d306(){const _0x5ba3ed=_0x56b5d7[_0x16f2c8([0x73,0x70,0x6c,0x69,0x74])](_0x16f2c8([0x2e]));if(0x3!=_0x5ba3ed[_0x16f2c8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3a7ea6(_0x5ba3ed[0x1]);function _0x3a7ea6(_0x53af9e){const _0x2bd0fc=_0x57b14b(_0x53af9e);return _0x2bd0fc&&_0x5650db()?_0x2bd0fc:null;function _0x5650db(){const _0x183309=_0x2bd0fc[_0x16f2c8([0x6a,0x74,0x69])],_0x151092=window[_0x16f2c8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x183309[_0x16f2c8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x183309[_0x16f2c8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x501dac={..._0x2bd0fc,[_0x16f2c8([0x6a,0x74,0x69])]:_0x183309[_0x16f2c8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x183309[_0x16f2c8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x501dac[_0x16f2c8([0x76,0x63])],_0x38145d(_0x501dac)==_0x151092;}}}async function _0x1c0247(){let _0x262250=!0x0;try{const _0x474fef=_0x56b5d7[_0x16f2c8([0x73,0x70,0x6c,0x69,0x74])](_0x16f2c8([0x2e])),[_0x104695,_0x5c84ec,_0x1d9636]=_0x474fef;return _0x36c77b(_0x104695),await _0x40b213(_0x104695,_0x5c84ec,_0x1d9636),_0x262250;}catch{return!0x1;}function _0x36c77b(_0x273428){const _0x588b5e=_0x57b14b(_0x273428);_0x588b5e&&_0x588b5e[_0x16f2c8([0x61,0x6c,0x67])]==_0x16f2c8([0x45,0x53,0x32,0x35,0x36])||(_0x262250=!0x1);}async function _0x40b213(_0x3499b8,_0x556811,_0x203e6d){const _0x2ad010=window[_0x16f2c8([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x16f2c8([0x66,0x72,0x6f,0x6d])](_0x3576a6(_0x203e6d),_0x216bee=>_0x216bee[_0x16f2c8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1533a7=new window[(_0x16f2c8([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x16f2c8([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3499b8+_0x16f2c8([0x2e])+_0x556811),_0x59edbc=window[_0x16f2c8([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x16f2c8([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x59edbc)return;const _0x1c701a=await _0x59edbc[_0x16f2c8([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x16f2c8([0x6a,0x77,0x6b]),_0x32ea97,{[_0x16f2c8([0x6e,0x61,0x6d,0x65])]:_0x16f2c8([0x45,0x43,0x44,0x53,0x41]),[_0x16f2c8([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x16f2c8([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x16f2c8([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x59edbc[_0x16f2c8([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x16f2c8([0x6e,0x61,0x6d,0x65])]:_0x16f2c8([0x45,0x43,0x44,0x53,0x41]),[_0x16f2c8([0x68,0x61,0x73,0x68])]:{[_0x16f2c8([0x6e,0x61,0x6d,0x65])]:_0x16f2c8([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1c701a,_0x2ad010,_0x1533a7)||(_0x262250=!0x1);}}function _0x57b14b(_0x6060b9){return _0x6060b9[_0x16f2c8([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x16f2c8([0x65,0x79]))?JSON[_0x16f2c8([0x70,0x61,0x72,0x73,0x65])](_0x3576a6(_0x6060b9)):null;}function _0x3576a6(_0x593d6b){return window[_0x16f2c8([0x61,0x74,0x6f,0x62])](_0x593d6b[_0x16f2c8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x16f2c8([0x2b]))[_0x16f2c8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x16f2c8([0x2f])));}function _0x38145d(_0x109cd6){let _0x59e6f6=0x1505;function _0x71008a(_0x2eeda1){for(let _0x1e41e5=0x0;_0x1e41e5<_0x2eeda1[_0x16f2c8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1e41e5++){const _0xbd72cc=_0x2eeda1[_0x16f2c8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1e41e5);_0x59e6f6=(_0x59e6f6<<0x5)+_0x59e6f6+_0xbd72cc,_0x59e6f6&=_0x59e6f6;}}function _0x281457(_0x5c633c){Array[_0x16f2c8([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5c633c)?_0x5c633c[_0x16f2c8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x281457):_0x5c633c&&typeof _0x5c633c==_0x16f2c8([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x16f2c8([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5c633c)[_0x16f2c8([0x73,0x6f,0x72,0x74])]()[_0x16f2c8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xf46231,_0x3d73de])=>{_0x71008a(_0xf46231),_0x281457(_0x3d73de);}):_0x71008a(window[_0x16f2c8([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5c633c));}return _0x281457(_0x109cd6),_0x59e6f6>>>0x0;}function _0x1e3820(_0x3ec84f){return _0x3ec84f[_0x16f2c8([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x16f2c8([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x16f2c8([0x30]));}function _0x5607e8(_0x264dd6){return _0x264dd6[_0x16f2c8([0x73,0x70,0x6c,0x69,0x74])]('')[_0x16f2c8([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x16f2c8([0x6a,0x6f,0x69,0x6e])]('');}function _0x10046e(_0x45832f){return _0x4e1b03[_0x16f2c8([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x16f2c8([0x68,0x61,0x73])](_0x45832f);}function _0xce221b(_0x54308d){return _0x4e1b03[_0x16f2c8([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x16f2c8([0x67,0x65,0x74])](_0x54308d);}function _0x228d4a(){}function _0x16f2c8(_0x3585e6){return _0x3585e6['map'](_0x1132a3=>String['fromCharCode'](_0x1132a3))['join']('');}_0x209cc2(await _0x3f26aa());}(this);}set['adapter'](_0x42c315){if(this['_adapter'])throw new _0xad9616('track-changes-adapter-already-set',this);this['_adapter']=_0x42c315;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x467b36=!0x1,toJSON:_0x580436=!0x1}={}){const _0x37921e=[];for(const _0x54111f of this['_suggestions']['values']())_0x467b36&&!_0x54111f['isInContent']||_0x37921e['push'](_0x54111f);return _0x580436?_0x37921e['map'](_0x7645fc=>_0x7645fc['toJSON']()):_0x37921e;}['getSuggestion'](_0x52d2ee){const _0x981750=this['_suggestions']['get'](_0x52d2ee);if(!_0x981750)throw new _0xad9616('track-changes-suggestion-not-found',this);return _0x981750;}['hasSuggestion'](_0x357ee7){return this['_suggestions']['has'](_0x357ee7);}['addSuggestionData'](_0xa6e2a4){const {authorId:_0x49cb2b,id:_0x124c18,originalSuggestionId:_0x504633,attributes:_0x501ec1}=_0xa6e2a4,[_0x4ae0bc,_0x2fad67]=_0xa6e2a4['type']['split'](':'),_0x48f3f9=this['_suggestions']['get'](_0x124c18)||this['_createSuggestion'](_0x4ae0bc,_0x2fad67,_0x124c18,_0x49cb2b,_0x501ec1,_0x504633);if(this['_addThreadToSuggestion'](_0x48f3f9),this['_checkSuggestionCorrectness'](_0x48f3f9,_0x4ae0bc,_0x2fad67||null,_0x49cb2b),_0x48f3f9['createdAt']=_0xa6e2a4['createdAt'],_0x48f3f9['_isDataLoaded']=!0x0,_0x501ec1&&_0x501ec1['@external']){const _0x7470bb=_0x501ec1['@external'],_0x35bacf=this['_getExternalAuthor'](_0x7470bb['authorName']);_0x48f3f9['authoredAt']=_0x7470bb['createdAt'],_0x48f3f9['author']=_0x35bacf,_0x48f3f9['isExternal']=!0x0;}else _0x48f3f9['authoredAt']=_0xa6e2a4['createdAt'];switch(_0xa6e2a4['data']&&(_0x48f3f9['data']=_0xa6e2a4['data']),_0xa6e2a4['attributes']&&(_0x48f3f9['attributes']=_0xa6e2a4['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x48f3f9['_saved']=!0x0),this['_suggestionState']['get'](_0x48f3f9)){case'notReady':this['_suggestionState']['set'](_0x48f3f9,'dataReady');break;case'markerReady':_0x48f3f9['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x48f3f9])),this['_refreshSuggestionsChain'](new Set([_0x48f3f9])),this['_suggestionState']['set'](_0x48f3f9,'ready'),this['fire']('suggestionLoaded',_0x48f3f9)):this['_suggestionState']['set'](_0x48f3f9,'removed');}return _0x48f3f9;}['acceptSuggestion'](_0x4f5453){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1bc585 of _0x4f5453['getAllAdjacentSuggestions']())_0x1bc585['accept']();});});}['discardSuggestion'](_0x5f18fd){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5cd990 of _0x5f18fd['getAllAdjacentSuggestions']())_0x5cd990['discard']();});});}['enableCommand'](_0xe9e985,_0x39d9da){const _0xc7cb73=this['editor']['commands']['get'](_0xe9e985);if(!_0xc7cb73)throw new _0xad9616('track-changes-command-not-found',this,{'commandName':_0xe9e985});if(this['_enabledCommands']['has'](_0xc7cb73))throw new _0xad9616('track-changes-enable-command-twice',this,{'commandName':_0xe9e985});this['_enabledCommands']['add'](_0xc7cb73),_0x39d9da&&_0xc7cb73['on']('execute',(_0x514d5e,_0x224d86)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x224d86['length']>0x0&&_0x224d86[_0x224d86['length']-0x1]&&_0x224d86[_0x224d86['length']-0x1]['forceDefaultExecution']?_0x224d86['pop']():(_0x514d5e['return']=_0x39d9da((..._0x5837da)=>_0xc7cb73['execute'](..._0x5837da,{'forceDefaultExecution':!0x0}),..._0x224d86),_0x514d5e['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x31a26b){let _0xb2da3b,_0x4bd5f2;const _0x30adb6=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0xb2da3b=_0x31a26b();}catch(_0x30e2e8){_0x4bd5f2=_0x30e2e8;}return _0x30adb6||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x4bd5f2&&_0xad9616['rethrowUnexpectedError'](_0x4bd5f2,this),_0xb2da3b;}['markInsertion'](_0x5ed2de,_0x4db2e0=null,_0x45b0f6={}){if(_0x5ed2de['isCollapsed'])return null;const _0x13f925=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x45b0f6['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x567ed5,meta:_0x203a6a}of this['_findSuggestions'](_0x5ed2de,'insertion'))if(_0x203a6a['isOwn']){if(!_0x203a6a['isNextTo']){if(_0x203a6a['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!cn(_0x567ed5,_0x45b0f6))continue;return _0x567ed5;}if(cn(_0x567ed5,_0x45b0f6))return _0x567ed5;this['_breakSuggestionMarker'](_0x567ed5,_0x5ed2de['start'],_0x5ed2de['end']);break;}if(_0x4db2e0==_0x567ed5['subType']&&cn(_0x567ed5,_0x45b0f6)){const _0x16e1f6=_0x567ed5['getFirstRange']();return _0x16e1f6['start']['isEqual'](_0x5ed2de['end'])?this['_setSuggestionRange'](_0x567ed5,this['_model']['createRange'](_0x5ed2de['start'],_0x16e1f6['end'])):this['_setSuggestionRange'](_0x567ed5,this['_model']['createRange'](_0x16e1f6['start'],_0x5ed2de['end'])),_0x567ed5;}}const _0x1a4cdc=_0xeec48d(),_0x377961=_0x13f925['id'],_0x11a0af=_0x4db2e0?'insertion:'+_0x4db2e0:'insertion',_0x547e2d=this['_setSuggestionData']({'id':_0x1a4cdc,'type':_0x11a0af,'createdAt':new Date(),'authorId':_0x377961,'attributes':_0x45b0f6});return this['_addSuggestionMarker'](_0x11a0af,_0x1a4cdc,_0x377961,_0x5ed2de),_0x547e2d;}['markMultiRangeInsertion'](_0x4dadbc,_0x489723='multi',_0x2cc700={}){const _0x5e9f0f=this['editor']['plugins']['get']('Users')['me'],_0x5b3db8=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x489723,'join');this['_trackingSessionId']&&(_0x2cc700['trackingSessionId']=this['_trackingSessionId']);for(const _0x8ac58b of this['getSuggestions']())if(_0x8ac58b['author']['id']==_0x5e9f0f['id']&&'insertion'==_0x8ac58b['type']&&_0x8ac58b['subType']==_0x489723&&cn(_0x8ac58b,_0x2cc700)&&(_0x5b3db8(_0x8ac58b['getRanges'](),_0x4dadbc)||_0x5b3db8(_0x4dadbc,_0x8ac58b['getRanges']()))){for(const _0x13341f of _0x4dadbc)_0x8ac58b['addRange'](_0x13341f);return _0x8ac58b;}for(const {suggestion:_0x45573f,meta:_0x17b079}of this['_findSuggestions'](_0x4dadbc,'insertion')){if(!_0x17b079['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x17b079['containsRangeInObject'])continue;if(!cn(_0x45573f,_0x2cc700))continue;let _0xf96d35=!0x0;for(const _0x4dc935 of _0x45573f['getRanges']())for(const _0x344da2 of _0x4dadbc)if(!_0x4dc935['containsRange'](_0x344da2)){_0xf96d35=!0x1;break;}if(_0xf96d35)return _0x45573f;}const _0x30495c=_0xeec48d(),_0x334b8c=_0x5e9f0f['id'],_0x43972f='insertion:'+_0x489723,_0x37359d=this['_setSuggestionData']({'id':_0x30495c,'type':_0x43972f,'createdAt':new Date(),'authorId':_0x334b8c,'attributes':_0x2cc700});for(const _0x454eef of _0x4dadbc)this['_addSuggestionMarker'](_0x43972f,_0x30495c,_0x334b8c,_0x454eef,bt['getMultiRangeId']());return _0x37359d;}['markInlineFormat'](_0x2bbc2e,_0x356a6b,_0x35081a=null,_0x2240cc={}){if(_0x35081a=_0x35081a||Je(_0x356a6b),_0x2bbc2e['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x2240cc['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x4feae2=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x35081a,'accept');return this['forceDefaultExecution'](()=>_0x4feae2([_0x2bbc2e],_0x356a6b,_0x2240cc)),null;}const _0x1f9c53=this['editor']['plugins']['get']('Users')['me'],_0x3ddf90=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0xf7a169,meta:_0x13cf70}of this['_findSuggestions'](_0x2bbc2e,'insertion'))_0x13cf70['isOwn']&&!_0x13cf70['isInsideObject']&&_0x3ddf90['push'](..._0xf7a169['getRanges']());}const _0x504450=function(_0x34ea26,_0x373106){const _0x4b6afd=[];for(const _0x2f9140 of _0x373106){const _0x27d9e4=_0x34ea26['getIntersection'](_0x2f9140);_0x27d9e4&&_0x4b6afd['push'](_0x27d9e4);}return _0x4b6afd;}(_0x2bbc2e,_0x3ddf90),_0x2ae77a=function(_0x124dc6,_0x39ddea){const _0x30e487=[_0x124dc6];for(const _0x385d22 of _0x39ddea){let _0x88562d=0x0;for(;_0x88562d<_0x30e487['length'];){const _0x1e39e0=_0x30e487[_0x88562d]['getDifference'](_0x385d22);_0x30e487['splice'](_0x88562d,0x1,..._0x1e39e0),_0x88562d+=_0x1e39e0['length'];}}return _0x30e487;}(_0x2bbc2e,_0x3ddf90);_0x504450['length']&&this['_model']['change'](()=>{for(const _0x21768f of _0x504450){const _0x5f057e=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x35081a,'accept');this['forceDefaultExecution'](()=>_0x5f057e([_0x21768f],_0x356a6b,_0x2240cc));}});for(const _0x4b6e1f of _0x2ae77a){let _0x4bcef2=null,_0x535b6b=_0x4b6e1f['start'],_0x83539c=_0x4b6e1f['end'];for(const {suggestion:_0x6cb369,meta:_0x3ef03b}of this['_findSuggestions'](_0x4b6e1f,'formatInline')){if(!_0x3ef03b['isOwn'])continue;if(_0x6cb369['subType']!=_0x35081a)continue;if(!cn(_0x6cb369,_0x2240cc))continue;const _0x5743da=_0x6cb369['getFirstRange']();if(_0x5743da['containsRange'](_0x4b6e1f,!0x0))return null;_0x535b6b=_0x535b6b['isBefore'](_0x5743da['start'])?_0x535b6b:_0x5743da['start'],_0x83539c=_0x83539c['isAfter'](_0x5743da['end'])?_0x83539c:_0x5743da['end'],_0x4bcef2?_0x5743da['start']['isBefore'](_0x4bcef2['getFirstRange']()['start'])?(_0x4bcef2['removeMarkers'](),_0x4bcef2=_0x6cb369):_0x6cb369['removeMarkers']():_0x4bcef2=_0x6cb369;}const _0x554bbe=this['_model']['createRange'](_0x535b6b,_0x83539c);if(_0x4bcef2)this['_setSuggestionRange'](_0x4bcef2,_0x554bbe);else{const _0x310884=_0xeec48d(),_0x5397e8=_0x1f9c53['id'];this['_setSuggestionData']({'id':_0x310884,'type':'formatInline:'+_0x35081a,'data':_0x356a6b,'createdAt':new Date(),'authorId':_0x5397e8,'attributes':_0x2240cc}),this['_addSuggestionMarker']('formatInline:'+_0x35081a,_0x310884,_0x5397e8,_0x554bbe);}}return null;}['markBlockFormat'](_0xbd4e15,_0x52bed3,_0x23bc70=[],_0x7f623a=null,_0x26d786={}){_0x52bed3['formatGroupId']||(_0x52bed3['formatGroupId']=_0x52bed3['commandName']),_0x52bed3['multipleBlocks']=_0xbd4e15['is']('range'),_0x7f623a=_0x7f623a||Je(_0x52bed3);const _0x4c59f7=_0x23bc70['map'](_0x429ac8=>rn(_0x429ac8,this['_model'])),_0x4f0b32=_0xbd4e15['is']('range')?_0xbd4e15:rn(_0xbd4e15,this['_model']);if(this['_trackingSessionId']&&(_0x26d786['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x211183=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x7f623a,'accept');return this['forceDefaultExecution'](()=>_0x211183([_0x4f0b32],_0x52bed3,_0x26d786)),null;}_0x4c59f7['push'](_0x4f0b32);let _0x4f16de=!0x0;for(const _0x4d9f3c of _0x4c59f7)if(!this['_rangeIsInLocalUserInsertion'](_0x4d9f3c)){_0x4f16de=!0x1;break;}if(_0x4f16de&&'always'!==this['_trackFormatChanges']){const _0x28f67f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x7f623a,'accept');return this['forceDefaultExecution'](()=>_0x28f67f([_0x4f0b32],_0x52bed3,_0x26d786)),null;}let _0xe724b2=null,_0x3da386=_0x4f0b32['start'],_0x504f29=_0x4f0b32['end'];for(const {suggestion:_0x2b2351,meta:_0x52ae20}of this['_findSuggestions'](_0x4f0b32,'formatBlock')){if(!_0x52ae20['isOwn'])continue;if(_0x52ae20['isNextTo']||_0x52ae20['containsRangeInObject']||_0x52ae20['isInsideObject'])continue;if(_0x2b2351['data']['formatGroupId']!=_0x52bed3['formatGroupId'])continue;if(!cn(_0x2b2351,_0x26d786))continue;const _0x21f3ec=_0x2b2351['getFirstRange']();if(_0x2b2351['subType']==_0x7f623a){if(_0x21f3ec['containsRange'](_0x4f0b32,!0x0))return null;_0x3da386=_0x3da386['isBefore'](_0x21f3ec['start'])?_0x3da386:_0x21f3ec['start'],_0x504f29=_0x504f29['isAfter'](_0x21f3ec['end'])?_0x504f29:_0x21f3ec['end'],_0xe724b2?_0x21f3ec['start']['isBefore'](_0xe724b2['getFirstRange']()['start'])?(_0xe724b2['removeMarkers'](),_0xe724b2=_0x2b2351):_0x2b2351['removeMarkers']():_0xe724b2=_0x2b2351;}else{const _0x4943a7=_0x4f0b32['getIntersection'](_0x21f3ec);this['_cutOutSuggestionMarker'](_0x2b2351,_0x4943a7);}}const _0x4453a5=this['editor']['plugins']['get']('Users')['me'],_0x5972d7=_0xeec48d(),_0x1eb346=_0x4453a5['id'];if(_0xe724b2)return this['_setSuggestionRange'](_0xe724b2,this['_model']['createRange'](_0x3da386,_0x504f29)),_0xe724b2;{const _0x4c7674=this['_setSuggestionData']({'id':_0x5972d7,'type':'formatBlock:'+_0x7f623a,'data':_0x52bed3,'createdAt':new Date(),'authorId':_0x1eb346,'attributes':_0x26d786});return this['_addSuggestionMarker']('formatBlock:'+_0x7f623a,_0x5972d7,_0x1eb346,this['_model']['createRange'](_0x3da386,_0x504f29)),_0x4c7674;}}['markMultiRangeBlockFormat'](_0x5f52a5,_0x4ace40,_0x2efd8e=[],_0x1bfff5=null,_0x49c2a7={}){_0x4ace40['formatGroupId']||(_0x4ace40['formatGroupId']=_0x4ace40['commandName']);const _0x4c8be9=_0x5f52a5[0x0];_0x4ace40['multipleBlocks']=_0x4c8be9['is']('range'),_0x1bfff5=_0x1bfff5||Je(_0x4ace40);const _0x19ecd5=_0x2efd8e['map'](_0x1daaae=>rn(_0x1daaae,this['_model'])),_0x154916=_0x4c8be9['is']('range')?_0x5f52a5:_0x5f52a5['map'](_0x3116d9=>rn(_0x3116d9,this['_model']));if(this['_trackingSessionId']&&(_0x49c2a7['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0xd8e60=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1bfff5,'accept');return this['forceDefaultExecution'](()=>_0xd8e60(_0x154916,_0x4ace40,_0x49c2a7)),null;}_0x19ecd5['push'](..._0x154916);let _0x54305a=!0x0;for(const _0x545582 of _0x19ecd5)if(!this['_rangeIsInLocalUserInsertion'](_0x545582)){_0x54305a=!0x1;break;}if(_0x54305a&&'always'!==this['_trackFormatChanges']){const _0xe3aa15=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1bfff5,'accept');return this['forceDefaultExecution'](()=>_0xe3aa15(_0x154916,_0x4ace40,_0x49c2a7)),null;}const _0x55662c=this['editor']['plugins']['get']('Users')['me'];for(const _0x1a4c8a of this['getSuggestions']()){const _0x2cdf09=_0x1a4c8a['data'];if(_0x1a4c8a['author']['id']!=_0x55662c['id'])continue;if('formatBlock'!=_0x1a4c8a['type']||_0x2cdf09['formatGroupId']!=_0x4ace40['formatGroupId'])continue;if(!cn(_0x1a4c8a,_0x49c2a7))continue;const _0x32bef8=_0x1a4c8a['subType']==_0x1bfff5;for(let _0x15b94c=0x0;_0x15b94c<_0x154916['length'];_0x15b94c++){const _0x19c5fc=_0x154916[_0x15b94c];for(const _0x432598 of _0x1a4c8a['getMarkers']()){const _0x52fc47=_0x432598['getRange']();if(_0x19c5fc['isEqual'](_0x52fc47)){_0x32bef8?(_0x154916['splice'](_0x15b94c,0x1),_0x15b94c--):_0x1a4c8a['removeMarker'](_0x432598['name']);break;}}}}if(0x0==_0x154916['length'])return null;const _0x425d81=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1bfff5,'join');for(const _0x54ee6c of this['getSuggestions']()){const _0x449a7e=_0x54ee6c['data'];if(_0x54ee6c['author']['id']==_0x55662c['id']&&('formatBlock'==_0x54ee6c['type']&&_0x449a7e['formatGroupId']==_0x4ace40['formatGroupId']&&_0x54ee6c['subType']==_0x1bfff5&&cn(_0x54ee6c,_0x49c2a7)&&(_0x425d81(_0x54ee6c['getRanges'](),_0x154916)||_0x425d81(_0x154916,_0x54ee6c['getRanges']())))){for(const _0x1a028e of _0x154916)_0x54ee6c['addRange'](_0x1a028e);return _0x54ee6c;}}const _0x567559=_0xeec48d(),_0x340653=_0x55662c['id'],_0x2facdd='formatBlock:'+_0x1bfff5,_0x535302=this['_setSuggestionData']({'id':_0x567559,'type':_0x2facdd,'data':_0x4ace40,'createdAt':new Date(),'authorId':_0x340653,'attributes':_0x49c2a7});for(const _0x37e30e of _0x154916)this['_addSuggestionMarker'](_0x2facdd,_0x567559,_0x340653,_0x37e30e,bt['getMultiRangeId']());return _0x535302;}['markDeletion'](_0x1855d1,_0x481f09=null,_0x585c5a={}){if(_0x1855d1['isCollapsed'])return null;const _0x4ce822=this['editor']['plugins']['get']('Users')['me'],_0x597edf=new _0x5def50(_0x1855d1['start'],_0x1855d1['end']);this['_trackingSessionId']&&(_0x585c5a['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x13c7ce,meta:_0x3f9a67}of this['_findSuggestions'](_0x597edf,'insertion'))if(_0x3f9a67['isOwn']&&!_0x3f9a67['isNextTo']){if(_0x13c7ce['isMultiRange']){const _0x19eeac=_0x13c7ce['getRanges']()['filter'](_0x55880c=>'$graveyard'!=_0x55880c['root']['rootName']);_0x19eeac['every'](_0x54af6b=>_0x597edf['containsRange'](_0x54af6b,!0x0))&&_0x13c7ce['discard']();if(_0x19eeac['some'](_0x70cea3=>_0x70cea3['containsRange'](_0x597edf,!0x0))){const _0x798789=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x481f09,'accept');return this['forceDefaultExecution'](()=>_0x798789([_0x597edf],null,_0x585c5a)),null;}}else{const _0x5c49e8=_0x597edf['getIntersection'](_0x13c7ce['getFirstRange']());null!==_0x5c49e8&&_0x13c7ce['_onDiscard']([_0x5c49e8],null,_0x585c5a);}}if(_0x597edf['detach'](),_0x597edf['isCollapsed']||'$graveyard'==_0x597edf['root']['rootName'])return null;let _0xb7a159=null,_0x2c0507=_0x597edf['start'],_0x3d3566=_0x597edf['end'];const _0x52cd35=this['_findSuggestions'](_0x597edf,'deletion');for(const {suggestion:_0x4fe96b,meta:_0x71694}of _0x52cd35){const _0x330a6b=this['_model']['createRange'](_0x2c0507,_0x3d3566);if(_0x71694['isOwn']&&(this['_mergeNestedSuggestions']||!_0x71694['containsRangeInObject']&&!_0x71694['isInsideObject'])){if(_0x4fe96b['isMultiRange']){if(!cn(_0x4fe96b,_0x585c5a))continue;let _0x3275e8=!0x0;for(const _0x2a06cf of _0x4fe96b['getRanges']()){if(_0x2a06cf['containsRange'](_0x330a6b,!0x0))return _0x4fe96b;_0x330a6b['containsRange'](_0x2a06cf)||(_0x3275e8=!0x1);}_0x3275e8&&_0x4fe96b['discard']();}else{const _0x4d9cb0=_0x4fe96b['getFirstRange']();if(_0x4d9cb0['containsRange'](_0x330a6b,!0x0))return _0x4fe96b;if(!cn(_0x4fe96b,_0x585c5a)){_0x330a6b['containsRange'](_0x4d9cb0)?_0x4fe96b['removeMarkers']():_0x4d9cb0['containsPosition'](_0x2c0507)?_0x2c0507=_0x4d9cb0['end']:_0x4d9cb0['containsPosition'](_0x3d3566)&&(_0x3d3566=_0x4d9cb0['start']);continue;}_0x2c0507=_0x2c0507['isBefore'](_0x4d9cb0['start'])?_0x2c0507:_0x4d9cb0['start'],_0x3d3566=_0x3d3566['isAfter'](_0x4d9cb0['end'])?_0x3d3566:_0x4d9cb0['end'],_0x585c5a=Object['assign']({},_0x4fe96b['attributes']),_0xb7a159?_0x4d9cb0['start']['isBefore'](_0xb7a159['getFirstRange']()['start'])?(_0xb7a159['removeMarkers'](),_0xb7a159=_0x4fe96b):_0x4fe96b['removeMarkers']():_0xb7a159=_0x4fe96b;}}}if(_0xb7a159)return this['_setSuggestionRange'](_0xb7a159,this['_model']['createRange'](_0x2c0507,_0x3d3566)),_0xb7a159;{const _0x227055=_0xeec48d(),_0x2a2b6a=this['_model']['createRange'](_0x2c0507,_0x3d3566),_0x36d247=_0x4ce822['id'],_0x3ff1de=_0x481f09?'deletion:'+_0x481f09:'deletion',_0x1ce5a3=this['_setSuggestionData']({'id':_0x227055,'type':_0x3ff1de,'createdAt':new Date(),'authorId':_0x36d247,'attributes':_0x585c5a});return this['_addSuggestionMarker'](_0x3ff1de,_0x227055,_0x36d247,_0x2a2b6a),_0x1ce5a3;}}['markMultiRangeDeletion'](_0x2c31ad,_0x6eddc6='multi',_0x7aa19c={}){const _0x55adce=this['editor']['plugins']['get']('Users')['me'],_0x15323c=_0x2c31ad['map'](_0xfcd366=>new _0x5def50(_0xfcd366['start'],_0xfcd366['end'])),_0x2400eb=new Set();this['_trackingSessionId']&&(_0x7aa19c['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x5276c7,meta:_0x3c8bc6}of this['_findSuggestions'](_0x15323c,'insertion'))_0x3c8bc6['isOwn']&&!_0x3c8bc6['isNextTo']&&_0x2400eb['add'](_0x5276c7);for(const _0x41316b of _0x2400eb)if(_0x41316b['isMultiRange']){const _0x903110=_0x41316b['getRanges']();(!_0x41316b['attributes']||!_0x41316b['attributes']['skipNestingCheck'])&&(_0x903110['every'](_0x3dfdf0=>_0x15323c['some'](_0x38a0ec=>_0x38a0ec['containsRange'](_0x3dfdf0,!0x0)))&&_0x41316b['discard']());if(_0x15323c['every'](_0x468793=>_0x903110['some'](_0x461324=>_0x461324['containsRange'](_0x468793,!0x0)))){const _0x546063=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x6eddc6,'accept');return this['forceDefaultExecution'](()=>_0x546063(_0x2c31ad,null,_0x7aa19c)),null;}}else{const _0x2a1bc8=_0x41316b['getFirstRange']();_0x15323c['some'](_0x26be02=>_0x26be02['containsRange'](_0x2a1bc8,!0x0))&&_0x41316b['discard']();if(_0x15323c['every'](_0x34ca1e=>_0x2a1bc8['containsRange'](_0x34ca1e,!0x0))){const _0x35d389=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x6eddc6,'accept');return this['forceDefaultExecution'](()=>_0x35d389(_0x15323c,null,_0x7aa19c)),null;}}const _0x12ed0e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x6eddc6,'join');let _0x3b6534=null;for(const _0x4d21d3 of this['getSuggestions']())if(_0x4d21d3['author']['id']==_0x55adce['id']&&_0x4d21d3['isInContent']&&'deletion'==_0x4d21d3['type']&&_0x4d21d3['subType']==_0x6eddc6&&cn(_0x4d21d3,_0x7aa19c)&&(_0x12ed0e(_0x4d21d3['getRanges'](),_0x15323c)||_0x12ed0e(_0x15323c,_0x4d21d3['getRanges']()))){if(_0x3b6534){if(_0x4d21d3['commentThread']&&_0x4d21d3['commentThread']['length'])continue;for(const _0x5cc2cb of _0x4d21d3['getRanges']())_0x3b6534['isIntersectingWithRange'](_0x5cc2cb)||_0x3b6534['addRange'](_0x5cc2cb);_0x4d21d3['removeMarkers']();}else{_0x3b6534=_0x4d21d3;for(const _0x542d6c of _0x15323c)_0x4d21d3['isIntersectingWithRange'](_0x542d6c)||_0x4d21d3['addRange'](_0x542d6c);}}if(_0x3b6534)return _0x3b6534;_0x2400eb['clear']();for(const {suggestion:_0x5b1c11,meta:_0x194eaa}of this['_findSuggestions'](_0x15323c,'deletion'))_0x194eaa['isOwn']&&(this['_mergeNestedSuggestions']||!_0x194eaa['containsRangeInObject']&&!_0x194eaa['isInsideObject'])&&cn(_0x5b1c11,_0x7aa19c)&&_0x2400eb['add'](_0x5b1c11);for(const _0x10d094 of _0x2400eb){const _0x634e7a=_0x10d094['getRanges']();if(!_0x7aa19c||!_0x7aa19c['skipNestingCheck']){if(_0x15323c['every'](_0x5cf32d=>_0x634e7a['some'](_0x36bc00=>_0x36bc00['containsRange'](_0x5cf32d,!0x0))))return _0x10d094;}(!_0x10d094['attributes']||!_0x10d094['attributes']['skipNestingCheck'])&&(_0x634e7a['every'](_0x2e197f=>_0x15323c['some'](_0x5a7e3e=>_0x5a7e3e['containsRange'](_0x2e197f,!0x0)))&&_0x10d094['discard']());}const _0x4baf7e=_0xeec48d(),_0x2db0c1=_0x55adce['id'],_0x911f7d='deletion:'+_0x6eddc6,_0x32fc3a=this['_setSuggestionData']({'id':_0x4baf7e,'type':_0x911f7d,'createdAt':new Date(),'authorId':_0x2db0c1,'attributes':_0x7aa19c});for(const _0x23e70f of _0x15323c)_0x23e70f['detach'](),_0x23e70f['isCollapsed']||'$graveyard'==_0x23e70f['root']['rootName']||this['_addSuggestionMarker'](_0x911f7d,_0x4baf7e,_0x2db0c1,_0x23e70f,bt['getMultiRangeId']());return _0x32fc3a;}['markAttributeChange'](_0x24dbfd,_0x542d78,_0xcb85b2,_0x2c007a,_0x314132){if(_0x24dbfd['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x4581d6=this['editor']['plugins']['get']('Users')['me']['id'],_0x24c514=Array['from'](this['_suggestions']['values']())['filter'](_0xc444a7=>'attribute'==_0xc444a7['type']&&_0xc444a7['data']['key']==_0x542d78&&_0xc444a7['isIntersectingWithRange'](_0x24dbfd));if(this['_trackingSessionId']&&(_0x314132['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x257713=this['_findSuggestions'](_0x24dbfd,'insertion')['filter'](({meta:_0x9f6b56})=>_0x9f6b56['isOwn']&&!_0x9f6b56['isInsideObject']&&!_0x9f6b56['isNextTo'])['map'](({suggestion:_0x30eb87})=>_0x30eb87);_0x24c514['unshift'](..._0x257713);}const _0x3d7e3c=new Map([[_0x24dbfd,_0xcb85b2]]);for(const _0x3861f of _0x24c514){const _0x3e7375='attribute'==_0x3861f['type']?_0x3861f['data']['oldValue']:void 0x0,_0x3fcf01=_0x3861f['getFirstRange'](),_0x43f309=Array['from'](_0x3d7e3c['keys']())['find'](_0x1ac701=>_0x1ac701['isIntersecting'](_0x3fcf01));if(!_0x43f309)continue;const _0x350b55=_0x43f309['getDifference'](_0x3fcf01);this['_suggestionsConversion']['isBlockAttribute'](_0x542d78)&&'insertion'==_0x3861f['type']&&0x0!=_0x350b55['length']||(_0x3d7e3c['delete'](_0x43f309),_0x350b55['forEach'](_0x22b9e8=>{_0x3d7e3c['set'](_0x22b9e8,_0xcb85b2);}),'insertion'!=_0x3861f['type']&&_0x3e7375!=_0x2c007a&&_0x3d7e3c['set'](_0x43f309['getIntersection'](_0x3fcf01),_0x3e7375));}const _0xda7487=[];for(const [_0x412c0d,_0x24f5b8]of _0x3d7e3c){const _0x27528f=_0xeec48d(),_0xd30f04={'key':_0x542d78,'oldValue':_0x24f5b8,'newValue':_0x2c007a};_0x542d78['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':_0x542d78});const _0x360339=('attribute:'+(_0x542d78+'|'+Je({'newValue':_0x2c007a})))['substring'](0x0,0x3c),_0x320d23=this['_setSuggestionData']({'id':_0x27528f,'type':_0x360339,'data':_0xd30f04,'createdAt':new Date(),'authorId':_0x4581d6,'attributes':_0x314132});_0xda7487['push'](_0x320d23),this['_addSuggestionMarker'](_0x360339,_0x27528f,_0x4581d6,_0x412c0d);}return _0xda7487;}['enableDefaultAttributesIntegration'](_0x458006){this['enableCommand'](_0x458006,(_0x49ab2e,..._0x184f69)=>{this['recordAttributeChanges'](()=>{_0x49ab2e(..._0x184f69);});});}['startTrackingSession'](_0x1262c0){return this['_trackingSessionId']=void 0x0!==_0x1262c0?_0x1262c0:_0xeec48d(),this['_trackingSessionId'];}['_getAttributeKey'](_0x443f5c){return'attribute'==_0x443f5c['type']?un(_0x443f5c['subType']):null;}['_applyOperationsAsSuggestions'](_0xc66904){if(0x0==_0xc66904['length'])return;const _0x4c1c3e=this['editor'],_0x44ca6a=_0x4c1c3e['plugins']['get'](_0x220e4c),_0x3d66bb=[];_0x4c1c3e['model']['change'](_0x472e64=>{for(let _0x32f055=0x0;_0x32f055<_0xc66904['length'];_0x32f055++){const _0x21dc40=_0xc66904[_0x32f055];if(_0x21dc40['baseVersion']=_0x4c1c3e['model']['document']['version'],_0x21dc40['isDocumentOperation']=!0x0,_0x44ca6a['isMarkedRemoveOperation'](_0x21dc40)){const _0xe6357c=_0x3209bc(_0x21dc40['newRange'],_0x4c1c3e['model']);_0x3d66bb['unshift'](_0x5def50['fromRange'](_0xe6357c));}else switch(_0x21dc40['type']){case'rename':{const _0x4ff1c1=_0x21dc40['oldName'],_0x5c3c6b=_0x21dc40['newName'];if(_0x4ff1c1==_0x5c3c6b)break;_0x472e64['batch']['addOperation'](_0x21dc40),_0x4c1c3e['model']['applyOperation'](_0x21dc40);const _0x49c17d='$elementName',_0x4f1faa=_0x21dc40['position'],_0x2f4a40=_0x4c1c3e['model']['createRange'](_0x4f1faa,_0x4c1c3e['model']['createPositionAt'](_0x4f1faa['nodeAfter'],'end'));this['markAttributeChange'](_0x2f4a40,_0x49c17d,_0x4ff1c1,_0x5c3c6b,{'groupId':_0xeec48d()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x69c792=_0x21dc40['oldValue'],_0x15c75f=_0x21dc40['newValue'];if(_0x69c792==_0x15c75f)break;_0x472e64['batch']['addOperation'](_0x21dc40),_0x4c1c3e['model']['applyOperation'](_0x21dc40);const _0x4a6d2b=_0x21dc40['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x4a6d2b))break;const _0x5e87cc=_0x3209bc(_0x21dc40['range'],_0x4c1c3e['model']);this['markAttributeChange'](_0x5e87cc,_0x4a6d2b,_0x69c792,_0x15c75f,{'groupId':_0xeec48d()});break;}case'insert':{_0x472e64['batch']['addOperation'](_0x21dc40),_0x4c1c3e['model']['applyOperation'](_0x21dc40);if(_0xc66904[_0x32f055+0x1]&&'move'==_0xc66904[_0x32f055+0x1]['type'])break;const _0x3d5afe=_0x21dc40['position'],_0x200638=_0x21dc40['howMany'],_0x70a31c=_0x3209bc(_0x4c1c3e['model']['createRange'](_0x3d5afe,_0x3d5afe['getShiftedBy'](_0x200638)),_0x4c1c3e['model']);this['markInsertion'](_0x70a31c);break;}case'split':{_0x472e64['batch']['addOperation'](_0x21dc40),_0x4c1c3e['model']['applyOperation'](_0x21dc40);const _0xabed27=_0x21dc40['splitPosition'],_0x51fdea=_0x21dc40['moveTargetPosition'];this['markInsertion'](_0x4c1c3e['model']['createRange'](_0xabed27,_0x51fdea));break;}case'move':case'remove':_0x472e64['batch']['addOperation'](_0x21dc40),_0x4c1c3e['model']['applyOperation'](_0x21dc40);}}for(const _0x21bc29 of _0x3d66bb)_0x21bc29['detach'](),this['markDeletion'](_0x21bc29);});}['_setSuggestionRange'](_0xe8c78d,_0x1118de){const _0x54ccf8=_0xe8c78d['getFirstMarker']();this['_model']['change'](_0x22256b=>{_0x22256b['updateMarker'](_0x54ccf8,{'range':_0x1118de});});}['_addThreadToSuggestion'](_0x1a5bbf){const _0x328f25=_0x1a5bbf['id'],_0x4f4dc1=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x328f25)||this['_commentsRepository']['addCommentThread']({'channelId':_0x4f4dc1,'threadId':_0x328f25,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1932ae=this['_commentsRepository']['getCommentThread'](_0x328f25);_0x1932ae['unbind']('isRemovable'),_0x1932ae['isRemovable']=!0x1,_0x1a5bbf['commentThread']=_0x1932ae;}['_checkSuggestionCorrectness'](_0x23dfac,_0x41990f,_0x56b447,_0x56ffe9){if(_0x23dfac['type']!=_0x41990f||_0x23dfac['subType']!=_0x56b447||_0x23dfac['creator']['id']!=_0x56ffe9)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0xad9616('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x52c779,_0x10dc87){const _0x5baaa6=_0x52c779['getFirstRange']();if(_0x10dc87['isEqual'](_0x5baaa6))_0x52c779['removeMarkers']();else{if(_0x5baaa6['containsRange'](_0x10dc87)){const _0x41a260=this['_model']['createPositionAt'](_0x10dc87['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x52c779,this['_model']['createRange'](_0x5baaa6['start'],_0x41a260));const _0x595943=_0xeec48d(),_0x1f3aa9=_0x52c779['creator']['id'],_0x409c84=_0x52c779['type']+':'+_0x52c779['subType'];this['_setSuggestionData']({'id':_0x595943,'type':_0x409c84,'createdAt':new Date(),'authorId':_0x1f3aa9,'data':_0x52c779['data'],'attributes':_0x52c779['attributes']});const _0x497cc3=this['_model']['createPositionAt'](_0x10dc87['end']['parent'],'after'),_0x5d8924=this['_model']['createRange'](_0x497cc3,_0x5baaa6['end']);this['_addSuggestionMarker'](_0x409c84,_0x595943,_0x1f3aa9,_0x5d8924);}else{if(_0x5baaa6['containsPosition'](_0x10dc87['start'])){const _0x132448=this['_model']['createPositionAt'](_0x10dc87['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x52c779,this['_model']['createRange'](_0x5baaa6['start'],_0x132448));}else{const _0x3e7def=this['_model']['createPositionAt'](_0x10dc87['end']['parent'],'after');this['_setSuggestionRange'](_0x52c779,this['_model']['createRange'](_0x3e7def,_0x5baaa6['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x5e399c){for(const {suggestion:_0x48c2dc,meta:_0x3f5d2e}of this['_findSuggestions'](_0x5e399c,'insertion')){if(!_0x3f5d2e['isOwn'])continue;const _0x3810d2=_0x48c2dc['getRanges']();for(const _0x435ba5 of _0x3810d2)if(!_0x5e399c['getDifference'](_0x435ba5)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0xfdc586){return this['editor']['plugins']['get']('Users')['getUser'](_0xfdc586);}['_getExternalAuthor'](_0x48336b){const _0x951018=this['editor']['plugins']['get']('Users'),_0x2e8b4c=_0x1ac8dd('external:'+_0x48336b),_0xfeb909=_0x951018['getUser'](_0x2e8b4c);return _0xfeb909||_0x951018['addUser']({'id':_0x2e8b4c,'name':_0x48336b});}['_createSuggestion'](_0x50f5e7,_0x5ee329,_0x1141b0,_0x466f5c,_0x1dc6f1,_0x4b2330){const _0x34c9a1=this['_getAuthorFromId'](_0x466f5c);if(!_0x34c9a1)throw new _0xad9616('track-changes-user-not-found',this,{'authorId':_0x466f5c,'suggestionId':_0x1141b0});const _0x31e054=this['_suggestionFactory']['buildSuggestion'](_0x50f5e7,_0x5ee329,_0x1141b0,_0x34c9a1,_0x1dc6f1,_0x358917=>{this['_updateSuggestionData'](_0x1141b0,{'attributes':_0x358917});const _0x185034=this['getSuggestion'](_0x1141b0);this['_joinWithAdjacentSuggestions'](new Set([_0x185034])),this['_refreshSuggestionsChain'](new Set([_0x185034]));},_0x4b2330);return this['listenTo'](_0x31e054,'accept',()=>{this['_updateSuggestionData'](_0x1141b0,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x31e054,'discard',()=>{this['_updateSuggestionData'](_0x1141b0,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x1141b0,_0x31e054),this['_suggestionState']['set'](_0x31e054,'notReady'),_0x31e054;}['_breakSuggestionMarker'](_0xbc7bab,_0x4ec779,_0x4e7d43){const _0x171ad1=_0xbc7bab['getFirstRange'](),_0x2ba950=_0x171ad1['start'],_0x69c2e4=_0x171ad1['end'];this['_setSuggestionRange'](_0xbc7bab,this['_model']['createRange'](_0x2ba950,_0x4ec779));const _0x80691d=_0xeec48d(),_0x1a705d=_0xbc7bab['creator']['id'],_0x440ed9=_0xbc7bab['type']+(_0xbc7bab['subType']?':'+_0xbc7bab['subType']:'');this['_setSuggestionData']({'id':_0x80691d,'type':_0x440ed9,'createdAt':new Date(),'authorId':_0x1a705d,'originalSuggestionId':_0xbc7bab['_originalSuggestionId']||_0xbc7bab['id'],'attributes':_0xbc7bab['attributes'],'data':_0xbc7bab['data']});const _0x3cf336=this['_getAttributeKey'](_0xbc7bab);('formatBlock'==_0xbc7bab['type']||_0x3cf336&&this['_suggestionsConversion']['isBlockAttribute'](_0x3cf336))&&(_0x4e7d43=this['_model']['createPositionBefore'](_0x4e7d43['parent'])),this['_addSuggestionMarker'](_0x440ed9,_0x80691d,_0x1a705d,this['_model']['createRange'](_0x4e7d43,_0x69c2e4));}['_findSuggestions'](_0x3f86cf,_0x475adc=null){const _0x7b96d7=[],_0x4a5a54=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x3f86cf)||(_0x3f86cf=[_0x3f86cf]);for(const _0x3dd3af of this['getSuggestions']()){if(!_0x3dd3af['isInContent'])continue;if(_0x475adc&&_0x3dd3af['type']!=_0x475adc)continue;let _0x3085f5=!0x1;for(const _0x53c1b2 of _0x3dd3af['getRanges']()){for(const _0x7d2757 of _0x3f86cf){const _0x4dfbdf=_0x7d2757['start']['isEqual'](_0x53c1b2['end'])||_0x7d2757['end']['isEqual'](_0x53c1b2['start']);if(_0x4dfbdf||_0x7d2757['getIntersection'](_0x53c1b2)){const _0x12c037=_0x7d2757['containsRange'](_0x53c1b2)&&qe(this['_model']['schema'],_0x53c1b2['start'],_0x7d2757),_0x5ccc2a=_0x53c1b2['containsRange'](_0x7d2757)&&qe(this['_model']['schema'],_0x7d2757['start'],_0x53c1b2);_0x7b96d7['push']({'suggestion':_0x3dd3af,'meta':{'isOwn':_0x4a5a54==_0x3dd3af['author'],'isNextTo':_0x4dfbdf,'isInsideObject':_0x12c037,'containsRangeInObject':_0x5ccc2a}}),_0x3085f5=!0x0;break;}}if(_0x3085f5)break;}}return _0x7b96d7;}['_addSuggestionMarker'](_0x41f693,_0x397b1c,_0x196a37,_0x1bb7ac,_0x56e05a){this['_model']['change'](_0xc6de5=>{let _0x438620='suggestion:'+_0x41f693+':'+_0x397b1c+':'+_0x196a37;_0x56e05a&&(_0x438620=_0x438620+':'+_0x56e05a),_0xc6de5['addMarker'](_0x438620,{'range':_0x1bb7ac,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0xf25302){const _0x10c250=_0xf25302['previous'],_0x332913=_0xf25302['next'];_0xf25302['previous']=null,_0xf25302['next']=null,null!=_0x10c250&&_0x10c250['next']==_0xf25302&&(_0x10c250['next']=_0x332913),null!=_0x332913&&_0x332913['previous']==_0xf25302&&(_0x332913['previous']=_0x10c250),'ready'==this['_suggestionState']['get'](_0xf25302)&&(this['_suggestionState']['set'](_0xf25302,'removed'),this['fire']('suggestionUnloaded',_0xf25302,_0x10c250,_0x332913));}['_setSuggestionData'](_0x2c4fb4){const _0x1b7f54=_0x2c4fb4['id'],_0x559716=this['addSuggestionData'](_0x2c4fb4);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x5cb2b8=this['editor']['plugins']['get']('PendingActions'),_0x3ec3f2=_0x559716['hasComments'],_0x9349f7=_0x559716['subType']?_0x559716['type']+':'+_0x559716['subType']:_0x559716['type'],_0x12702b=this['editor']['locale'],_0x3cf864=_0x5cb2b8['add'](At(_0x12702b,'PENDING_ACTION_SUGGESTION')),_0x5fefef={'id':_0x1b7f54,'type':_0x9349f7,'hasComments':_0x3ec3f2,'data':_0x2c4fb4['data']||null,'originalSuggestionId':_0x2c4fb4['originalSuggestionId']||null,'attributes':_0x559716['attributes']};this['_adapter']['addSuggestion'](_0x5fefef)['then'](_0x4fe727=>{_0x559716['_saved']=!0x0,_0x5cb2b8['remove'](_0x3cf864),_0x4fe727&&_0x4fe727['createdAt']&&(this['_suggestions']['get'](_0x1b7f54)['createdAt']=_0x4fe727['createdAt']);})['catch'](_0x2e8898=>{throw _0x294e5c('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x559716['discard']();}),_0x559716['stopListening'](),this['_suggestions']['delete'](_0x559716['id']),this['_suggestionState']['delete'](_0x559716),_0x2e8898;});}return _0x559716;}['_updateSuggestionData'](_0x54269e,_0x49add1){const _0x3d2b78=this['editor']['plugins']['get']('PendingActions'),_0x2e8dea=this['getSuggestion'](_0x54269e);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x2e8dea['_saved']){const _0x1f62c2=_0x3d2b78['add'](At(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x54269e,_0x49add1)['then'](()=>{_0x3d2b78['remove'](_0x1f62c2);});}else _0x2e8dea['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x54269e,_0x49add1);});}}['_getSuggestionData'](_0x7f0100){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0xad9616('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x7f0100);}['_handleNewSuggestionMarker'](_0x561fbd){const {id:_0x41dbfe,type:_0x148aef,subType:_0x354692,authorId:_0x50e0aa}=_0x2c4563(_0x561fbd),_0x3c1cd3=this['_suggestions']['get'](_0x41dbfe)||this['_createSuggestion'](_0x148aef,_0x354692,_0x41dbfe,_0x50e0aa,{});switch(this['_checkSuggestionCorrectness'](_0x3c1cd3,_0x148aef,_0x354692,_0x50e0aa),this['_suggestionState']['get'](_0x3c1cd3)){case'notReady':this['_getSuggestionData'](_0x41dbfe)['then'](_0x5b0cbf=>{let _0x115336=Promise['resolve']();_0x5b0cbf['hasComments']&&(_0x115336=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x41dbfe})),_0x115336['then'](()=>{this['addSuggestionData'](_0x5b0cbf)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x3c1cd3,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x41dbfe,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x3c1cd3,'ready'),this['fire']('suggestionLoaded',_0x3c1cd3);break;case'ready':this['fire']('suggestionChanged',_0x3c1cd3);}return _0x3c1cd3['addMarkerName'](_0x561fbd),_0x3c1cd3;}['_refreshSuggestionsChain'](_0x5c2d5b){const _0x532186=Array['from'](_0x5c2d5b),_0x5ae9fb=_0x532186['filter'](_0x2863c9=>'attribute'==_0x2863c9['type']);this['_refreshAttributeSuggestionsChain'](_0x5ae9fb);const _0x5ae975=_0x532186['filter'](_0x363ef2=>!_0x363ef2['isMultiRange']&&'attribute'!=_0x363ef2['type']),_0x138579=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x503495=>!_0x503495['isMultiRange']&&'attribute'!=_0x503495['type']),_0x310034=_0x138579['filter'](_0x4ca7a1=>!_0x5c2d5b['has'](_0x4ca7a1)),_0x15a188=new Map(_0x138579['map'](_0x2921d0=>[_0x2921d0,this['_suggestionFactory']['getSuggestionCallback'](_0x2921d0['type'],_0x2921d0['subType'],'chain')])),_0x21b970=new Map(_0x138579['map'](_0x158e73=>[_0x158e73,_0x158e73['getFirstRange']()])),_0x1408f7=new Set(),_0x1c2758=new Set();for(let _0x58eef8=0x0;_0x58eef8<_0x5ae975['length'];_0x58eef8++)_0x1db7ed(_0x5ae975[_0x58eef8],_0x5ae975,_0x58eef8+0x1);for(let _0x1f8ce5=0x0;_0x1f8ce5<_0x5ae975['length'];_0x1f8ce5++)_0x1db7ed(_0x5ae975[_0x1f8ce5],_0x310034,0x0);const _0x2be0d6=new Set();for(let _0x4ae152=0x0;_0x4ae152<_0x5ae975['length'];_0x4ae152++){const _0x2a2e34=_0x5ae975[_0x4ae152];!_0x1c2758['has'](_0x2a2e34)&&_0x2a2e34['previous']&&(_0x2be0d6['add'](_0x2a2e34['previous']),_0x2a2e34['previous']['next']===_0x2a2e34&&(_0x2a2e34['previous']['next']=null),_0x2a2e34['previous']=null),!_0x1408f7['has'](_0x2a2e34)&&_0x2a2e34['next']&&(_0x2be0d6['add'](_0x2a2e34['next']),_0x2a2e34['next']['previous']===_0x2a2e34&&(_0x2a2e34['next']['previous']=null),_0x2a2e34['next']=null);}function _0x1db7ed(_0x75d9f3,_0x13d67c,_0x7d4429){for(let _0x41b561=_0x7d4429;_0x41b561<_0x13d67c['length'];_0x41b561++){const _0x589f0e=_0x5243c4(_0x75d9f3,_0x13d67c[_0x41b561]);_0x589f0e&&(_0x589f0e[0x0]['next']=_0x589f0e[0x1],_0x589f0e[0x1]['previous']=_0x589f0e[0x0],_0x1408f7['add'](_0x589f0e[0x0]),_0x1c2758['add'](_0x589f0e[0x1]));}}function _0x5243c4(_0x32d144,_0x31036e){if(_0x32d144['author']['id']!==_0x31036e['author']['id'])return null;const _0x3ff1a6=_0x15a188['get'](_0x32d144)(_0x32d144,_0x31036e,_0x21b970['get'](_0x32d144),_0x21b970['get'](_0x31036e));if(!_0x3ff1a6)return null;return _0x15a188['get'](_0x31036e)(_0x32d144,_0x31036e,_0x21b970['get'](_0x32d144),_0x21b970['get'](_0x31036e))?_0x3ff1a6[0x1]['commentThread']&&_0x3ff1a6[0x1]['commentThread']['length']?null:_0x3ff1a6:null;}_0x2be0d6['size']&&this['_refreshSuggestionsChain'](_0x2be0d6);}['_refreshAttributeSuggestionsChain'](_0x23c2d8){if(0x0==_0x23c2d8['length'])return;const _0x23b015=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4f451e=>'attribute'==_0x4f451e['type']&&_0x4f451e['_isDataLoaded']),_0x21e93e=[],_0x1454c3=new Map();for(const _0x1a9a6d of _0x23b015){const _0x8012a7=_0x1ac8dd(_0x1a9a6d['attributes']);_0x1454c3['has'](_0x8012a7)||(_0x1454c3['set'](_0x8012a7,_0x21e93e['length']),_0x21e93e['push']([]));const _0x50dcfa=_0x1454c3['get'](_0x8012a7);_0x21e93e[_0x50dcfa]['push'](_0x1a9a6d);}!(function(){_0x21e93e['sort']((_0x3e064a,_0x54a80f)=>{const _0x57440b=_0x3e064a[0x0]['createdAt'],_0x5a6b31=_0x54a80f[0x0]['createdAt'];return _0x57440b==_0x5a6b31?_0x3e064a[0x0]['attributes']['groupId']<_0x54a80f[0x0]['attributes']['groupId']?-0x1:0x1:_0x57440b<_0x5a6b31?-0x1:0x1;});for(const _0x46acaf of _0x21e93e)_0x46acaf['sort']((_0x1d6f38,_0x576e30)=>_0x1d6f38['id']<_0x576e30['id']?-0x1:0x1);}());for(let _0x3a9cf5=0x0;_0x3a9cf5<_0x21e93e['length'];_0x3a9cf5++){if(0x0==_0x21e93e[_0x3a9cf5]['length'])continue;const _0x59c734=[];for(let _0x21a46d=_0x3a9cf5+0x1;_0x21a46d<_0x21e93e['length'];_0x21a46d++)0x0!=_0x21e93e[_0x21a46d]['length']&&_0x4a4368(_0x21e93e[_0x3a9cf5],_0x21e93e[_0x21a46d])&&_0x59c734['push'](_0x21a46d);for(const _0x23305b of _0x59c734)_0x21e93e[_0x3a9cf5]=_0x21e93e[_0x3a9cf5]['concat'](_0x21e93e[_0x23305b]),_0x21e93e[_0x23305b]=[];}for(const _0x8a209b of _0x21e93e)for(let _0x128724=0x0;_0x128724<_0x8a209b['length'];_0x128724++){const _0x449065=_0x8a209b[_0x128724+0x1]||null;_0x8a209b[_0x128724]['next']!==_0x449065&&(_0x8a209b[_0x128724]['next']=_0x449065);}for(const _0x414eb9 of _0x21e93e)for(let _0x415d38=0x0;_0x415d38<_0x414eb9['length'];_0x415d38++){const _0x3126cb=_0x414eb9[_0x415d38-0x1]||null;_0x414eb9[_0x415d38]['previous']!==_0x3126cb&&(_0x414eb9[_0x415d38]['previous']=_0x3126cb);}function _0x4a4368(_0x27b026,_0xf64c4c){if(_0x27b026[0x0]['attributes']['groupId']!==_0xf64c4c[0x0]['attributes']['groupId']&&_0x27b026[0x0]['author']!==_0xf64c4c[0x0]['author'])return!0x1;if(!function(_0x39428c,_0x2092e2){if(!_0x39428c['hasComments']&&!_0x2092e2['hasComments'])return!0x0;if(_0x39428c['hasComments']&&_0x2092e2['hasComments'])return!0x1;if(_0x39428c['hasComments']&&_0x2092e2['createdAt']<_0x39428c['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x2092e2['hasComments']&&_0x39428c['createdAt']<_0x2092e2['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x27b026[0x0],_0xf64c4c[0x0]))return!0x1;const _0x36aaa0=ot(_0x27b026[0x0]['attributes'],['groupId','trackingSessionId']),_0x33cedb=ot(_0xf64c4c[0x0]['attributes'],['groupId','trackingSessionId']);if(!st(_0x36aaa0,_0x33cedb))return!0x1;if(_0x27b026[0x0]['attributes']['groupId']==_0xf64c4c[0x0]['attributes']['groupId'])return!0x0;if(_0x27b026[0x0]['attributes']['trackingSessionId']!==_0xf64c4c[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x27b026['every'](_0x2ea238=>_0xf64c4c['some'](_0x393e84=>_0x2ea238['getFirstRange']()['isEqual'](_0x393e84['getFirstRange']())))&&_0xf64c4c['every'](_0x327a0a=>_0x27b026['some'](_0x593092=>_0x327a0a['getFirstRange']()['isEqual'](_0x593092['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x1425cc){const _0x4a05cc=Array['from'](_0x1425cc),_0xec5b56=this['getSuggestions']({'skipNotAttached':!0x0}),_0x26dab7=_0xec5b56['filter'](_0x389391=>!_0x1425cc['has'](_0x389391)),_0x546d11=new Map(_0x4a05cc['map'](_0x548a89=>[_0x548a89,this['_suggestionFactory']['getSuggestionCallback'](_0x548a89['type'],_0x548a89['subType'],'join')])),_0x505085=new Map(_0xec5b56['map'](_0x4366ad=>[_0x4366ad,_0x4366ad['getRanges']()]));for(let _0x20bf80=0x0;_0x20bf80<_0x4a05cc['length'];_0x20bf80++){if(_0x17ac3f(this,_0x4a05cc[_0x20bf80],_0x4a05cc,_0x20bf80+0x1))return!0x0;}for(let _0x54819b=0x0;_0x54819b<_0x4a05cc['length'];_0x54819b++){if(_0x17ac3f(this,_0x4a05cc[_0x54819b],_0x26dab7,0x0))return!0x0;}return!0x1;function _0x17ac3f(_0x195bc4,_0x30f1bf,_0x59df93,_0x4712b8){for(let _0xd65a=_0x4712b8;_0xd65a<_0x59df93['length'];_0xd65a++){const _0xc02f4a=_0x59df93[_0xd65a];if(_0xc02f4a['type']!==_0x30f1bf['type']||_0xc02f4a['author']['id']!==_0x30f1bf['author']['id']||_0xc02f4a['subType']!==_0x30f1bf['subType'])continue;if(!an(_0x30f1bf,_0xc02f4a))continue;if('attribute'==_0x30f1bf['type']&&_0x30f1bf['data']['oldValue']!=_0xc02f4a['data']['oldValue'])continue;if('attribute'==_0x30f1bf['type']&&_0x195bc4['_suggestionsConversion']['isBlockAttribute'](_0x30f1bf['data']['key']))continue;if('formatBlock'==_0x30f1bf['type']){const _0x5e0e30=_0x195bc4['editor']['model'],_0x2f557f=_0x30f1bf['getContainedElement']();if(_0x2f557f&&(_0x5e0e30['schema']['isObject'](_0x2f557f)||_0x5e0e30['schema']['isLimit'](_0x2f557f)))continue;}const _0x68ab62=_0x546d11['get'](_0x30f1bf),_0x396fff=_0x505085['get'](_0x30f1bf),_0x318be9=_0x505085['get'](_0xc02f4a),_0x4caffb=_0x30f1bf['commentThread']&&_0x30f1bf['commentThread']['length'],_0x3ea31b=_0xc02f4a['commentThread']&&_0xc02f4a['commentThread']['length'];if(!_0x4caffb&&_0x68ab62(_0x318be9,_0x396fff))return _0x195bc4['_joinSuggestions'](_0xc02f4a,_0x30f1bf),_0x505085['delete'](_0x30f1bf),!0x0;if(!_0x3ea31b&&_0x68ab62(_0x396fff,_0x318be9))return _0x195bc4['_joinSuggestions'](_0x30f1bf,_0xc02f4a),_0x505085['delete'](_0xc02f4a),!0x0;}return!0x1;}}['_joinSuggestions'](_0x521848,_0x572d49){if(_0x521848['isMultiRange']){for(const _0x30217e of _0x572d49['getRanges']())_0x521848['addRange'](_0x30217e);}else{const _0x34ef5c=_0x572d49['getFirstRange']()['end'];this['_setSuggestionRange'](_0x521848,this['_model']['createRange'](_0x521848['getFirstRange']()['start'],_0x34ef5c));}_0x572d49['removeMarkers']();}['_getMarkerAnnouncementText'](_0x43d1da,_0xbce19b,_0x52fe88){const _0x2d1ead=_0x43d1da['startsWith']('format')||_0x43d1da['startsWith']('attribute')?'FORMATTING':_0x43d1da['toUpperCase']();return At(this['editor']['locale'],_0xbce19b+'_'+_0x2d1ead+'_SUGGESTION_ANNOUNCEMENT',_0x52fe88);}['_initAriaMarkerChangeAnnouncements'](){const _0x11f22b=this['editor'];if(!_0x11f22b['ui'])return;const {ariaLiveAnnouncer:_0x470e62}=_0x11f22b['ui'];_0x194267(this['_model'],({left:_0x20583d,entered:_0x3c473d})=>{for(const _0x4636fb of _0x20583d){const {group:_0x52eea,type:_0x3f360e}=_0x2c4563(_0x4636fb['name']);if('suggestion'===_0x52eea){_0x470e62['announce'](this['_getMarkerAnnouncementText'](_0x3f360e,'LEAVE'));break;}}for(const _0x3056f4 of _0x3c473d){const {group:_0x3a5927,type:_0x5c65cc}=_0x2c4563(_0x3056f4['name']);if('suggestion'===_0x3a5927){_0x470e62['announce'](this['_getMarkerAnnouncementText'](_0x5c65cc,'ENTER',_0x234bab(_0x14d721)));break;}}});}['_processAttributeChanges'](_0x5cd4ef){if(this['_recordAttributeSuggestions'])return!0x1;const _0x252876=this['editor'],_0x46fd29=_0x252876['model']['document']['differ']['getChanges']();if(0x0==_0x46fd29['length'])return!0x1;const _0x64889b=[],_0x3f1aae=_0x46fd29['filter'](_0x15aeab=>'attribute'==_0x15aeab['type']),_0x40b111=_0x46fd29['filter'](_0x2acba3=>'insert'==_0x2acba3['type']&&'$text'!=_0x2acba3['name']),_0x5c1436=_0x46fd29['filter'](_0x1a8da4=>'remove'==_0x1a8da4['type']&&'$text'!=_0x1a8da4['name']);for(const _0x43a335 of _0x3f1aae)_0x64889b['push']({'key':_0x43a335['attributeKey'],'newValue':_0x43a335['attributeNewValue'],'oldValue':_0x43a335['attributeOldValue'],'range':sn(_0x43a335['range'],_0x252876['model'])});for(const _0x35b70b of _0x40b111){const _0x4aaf4b=_0x5c1436['find'](_0x567c5a=>_0x567c5a['position']['isEqual'](_0x35b70b['position']));_0x4aaf4b&&_0x64889b['push']({'key':Ke,'newValue':_0x35b70b['name'],'oldValue':_0x4aaf4b['name'],'range':_0x252876['model']['createRangeOn'](_0x35b70b['position']['nodeAfter'])});}return 0x0!=_0x64889b['length']&&this['_reduceExistingSuggestions'](_0x5cd4ef,_0x64889b);}['_processAttributeSuggestions'](_0x5d02ec){let _0x4787b5=!0x1;const _0x306bb0=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x321b32=>_0x321b32['data']['newRange']&&_0x321b32['name']['startsWith']('suggestion:attribute:'));for(const _0x20a649 of _0x306bb0){const {subType:_0x45ae82,id:_0x182f6c}=_0x2c4563(_0x20a649['name']),_0x2d7a7e=_0x45ae82['split']('|')[0x0];for(const _0x8c0e43 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x8c0e43['id']!=_0x182f6c&&'attribute'==_0x8c0e43['type']&&_0x8c0e43['data']&&_0x8c0e43['data']['key']==_0x2d7a7e&&_0x8c0e43['getFirstRange']()['isIntersecting'](_0x20a649['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x8c0e43,_0x20a649['data']['newRange'],_0x5d02ec),_0x4787b5=!0x0);}return _0x4787b5;}['recordAttributeChanges'](_0x3f1b38){this['_recordAttributeSuggestions']=!0x0,_0x3f1b38();}['_reduceExistingSuggestions'](_0x51aa22,_0x3c8b8e){if(0x0==_0x3c8b8e['length'])return!0x1;let _0x4a2c84=!0x1;for(const _0x4cb0a9 of _0x3c8b8e){const _0x2c1f96=this['_findSuggestions'](_0x4cb0a9['range'],'attribute')['filter'](_0x414823=>!_0x414823['meta']['isNextTo'])['map'](_0x4b17d5=>_0x4b17d5['suggestion']),_0x106623=_0x1ac8dd({'newValue':_0x4cb0a9['newValue']});_0x2c1f96['filter'](_0x27d134=>{const [_0x516be8,_0x6814c9]=_0x27d134['subType']['split']('|');return _0x516be8==_0x4cb0a9['key']&&_0x6814c9!=_0x106623;})['forEach'](_0x47296f=>{this['_reduceSuggestionAttributeRange'](_0x47296f,_0x4cb0a9['range'],_0x51aa22),_0x4a2c84=!0x0;});}return _0x4a2c84;}['_reduceSuggestionAttributeRange'](_0x5acbf9,_0x2b7a0a,_0x58b34f){const _0x2eed5d=_0x5acbf9['getFirstRange']()['getDifference'](_0x2b7a0a);0x0!==_0x2eed5d['length']?0x1!==_0x2eed5d['length']?this['_breakSuggestionMarker'](_0x5acbf9,_0x2b7a0a['start'],_0x2b7a0a['end']):this['_setSuggestionRange'](_0x5acbf9,_0x2eed5d[0x0]):_0x58b34f['removeMarker'](_0x5acbf9['getFirstMarker']());}}class Ye{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x1a5a2b){this['_editor']=_0x1a5a2b,this['_model']=_0x1a5a2b['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x5870bd,_0x335ab6,_0x78fa0e,_0x3d1688,_0x57dfce,_0x45445c,_0x5d12de){return new bt(this['_model'],{'type':_0x5870bd,'subType':_0x335ab6,'id':_0x78fa0e,'originalSuggestionId':_0x5d12de,'author':_0x3d1688,'creator':_0x3d1688,'attributes':_0x57dfce,'onAttributesChange':_0x45445c,'onAccept':(..._0x432054)=>this['getSuggestionCallback'](_0x5870bd,_0x335ab6,'accept')(..._0x432054),'onDiscard':(..._0x49a890)=>this['getSuggestionCallback'](_0x5870bd,_0x335ab6,'discard')(..._0x49a890)});}['registerCustomCallback'](_0x586cb2,_0x15a834,_0x5bfd95,_0x416e74){const _0x1323a2=_0x586cb2+':'+_0x15a834+':'+_0x5bfd95;this['_customCallbacks']['set'](_0x1323a2,_0x416e74);}['getSuggestionCallback'](_0x350664,_0x3de852,_0x3f82c4){const _0x507150=_0x350664+':'+_0x3de852+':'+_0x3f82c4;return this['_customCallbacks']['get'](_0x507150)||this['_defaultCallbacks']['get'](_0x350664+':'+_0x3f82c4);}['_registerDefaultCallbacks'](){const _0x34c969=()=>!0x1,_0x47f593=_0x23ed34=>{_0x23ed34['sort']((_0x1ff306,_0x389c58)=>_0x1ff306['start']['isBefore'](_0x389c58['start'])?0x1:-0x1),this['_model']['change'](_0x3cfe39=>{for(const _0x23baa0 of _0x23ed34){let _0x877cc8;_0x877cc8=_0x23baa0['end']['isAtEnd']&&_0x23baa0['end']['parent']==_0x23baa0['start']['nodeAfter']?_0x3cfe39['createSelection'](_0x23baa0['start']['nodeAfter'],'on'):_0x3cfe39['createSelection'](_0x23baa0),this['_model']['deleteContent'](_0x877cc8,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x196e1b=(_0x261eea,_0x412045)=>{_0x412045&&this['_model']['change'](_0x817e46=>{const {commandName:_0x3f68a8,commandParams:_0x5ca868=[]}=_0x412045,_0x7bd3b7=_0x261eea['map'](_0x52bc05=>(Qe(_0x52bc05)&&(_0x52bc05=this['_model']['createRange'](_0x52bc05['end'])),_0x52bc05))['filter'](_0x236945=>'$graveyard'!==_0x236945['root']['rootName']);if(_0x7bd3b7['length']<0x1)return;const _0x206f95=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x1741c8=>_0x5def50['fromRange'](_0x1741c8));_0x817e46['setSelection'](_0x7bd3b7);for(const _0x519cdf of this['_editor']['commands']['commands']())_0x519cdf['refresh']();_0x5ca868['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x3f68a8,..._0x5ca868);const _0x15c072=_0x206f95['filter'](_0x2996b9=>'$graveyard'!=_0x2996b9['root']['rootName']);_0x15c072['length']>0x0&&_0x817e46['setSelection'](_0x15c072);for(const _0x3169d3 of _0x206f95)_0x3169d3['detach']();});},_0x312b35=(_0xb8ff03,_0x17ea09)=>0x1==_0xb8ff03['length']&&0x1==_0x17ea09['length']&&_0xb8ff03[0x0]['end']['isEqual'](_0x17ea09[0x0]['start']),_0x2e4ca8=(_0x1c869f,_0x261500,_0x503680,_0x530e6e)=>on(_0x1c869f,_0x261500,_0x503680,_0x530e6e)?[_0x1c869f,_0x261500]:on(_0x261500,_0x1c869f,_0x530e6e,_0x503680)?[_0x261500,_0x1c869f]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x34c969),this['_defaultCallbacks']['set']('insertion:discard',_0x47f593),this['_defaultCallbacks']['set']('insertion:join',_0x312b35),this['_defaultCallbacks']['set']('insertion:chain',_0x2e4ca8),this['_defaultCallbacks']['set']('deletion:accept',_0x47f593),this['_defaultCallbacks']['set']('deletion:discard',_0x34c969),this['_defaultCallbacks']['set']('deletion:join',_0x312b35),this['_defaultCallbacks']['set']('deletion:chain',_0x2e4ca8),this['_defaultCallbacks']['set']('formatInline:accept',_0x196e1b),this['_defaultCallbacks']['set']('formatInline:discard',_0x34c969),this['_defaultCallbacks']['set']('formatInline:join',_0x312b35),this['_defaultCallbacks']['set']('formatInline:chain',_0x34c969),this['_defaultCallbacks']['set']('formatBlock:accept',_0x196e1b),this['_defaultCallbacks']['set']('formatBlock:discard',_0x34c969),this['_defaultCallbacks']['set']('formatBlock:join',_0x312b35),this['_defaultCallbacks']['set']('formatBlock:chain',_0x34c969),this['_defaultCallbacks']['set']('attribute:accept',_0x34c969),this['_defaultCallbacks']['set']('attribute:discard',(_0x228d58,_0x196b5b)=>{if(!_0x196b5b)return;const _0x3ec403=this['_editor']['plugins']['get'](_0x21d77b);this['_model']['change'](_0x4f7eb6=>{if(_0x196b5b['key']==Ke)for(const _0x47a910 of _0x228d58){const _0x38566b=_0x47a910['start']['nodeAfter'],_0x3329cb=_0x196b5b['oldValue'];_0x4f7eb6['rename'](_0x38566b,_0x3329cb);}else{if(_0x3ec403['isBlockAttribute'](_0x196b5b['key'])){for(const _0x1d5ad9 of _0x228d58)void 0x0!==_0x196b5b['oldValue']?_0x4f7eb6['setAttribute'](_0x196b5b['key'],_0x196b5b['oldValue'],_0x1d5ad9['start']['nodeAfter']):_0x4f7eb6['removeAttribute'](_0x196b5b['key'],_0x1d5ad9['start']['nodeAfter']);}else{for(const _0xe4ed94 of _0x228d58)_0x196b5b['oldValue']?_0x4f7eb6['setAttribute'](_0x196b5b['key'],_0x196b5b['oldValue'],_0xe4ed94):_0x4f7eb6['removeAttribute'](_0x196b5b['key'],_0xe4ed94);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x312b35);}}function qe(_0x425599,_0x32448b,_0x3ccc61){for(const _0x43c15b of _0x32448b['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x43c15b['root']==_0x43c15b)return!0x1;if(!_0x3ccc61['containsItem'](_0x43c15b))return!0x1;if(_0x425599['isObject'](_0x43c15b)||_0x425599['isLimit'](_0x43c15b))return!0x0;}return!0x1;}function Qe(_0x2bb3af){return _0x2bb3af['end']['parent']==_0x2bb3af['start']['nodeAfter']&&_0x2bb3af['end']['isAtStart'];}function Ze(_0x1eb256,_0x481a68,_0x22c44d,_0x364319){const _0x200daa=_0x299dae=>!_0x299dae['item']['is']('$textProxy')&&!_0x364319['isObject'](_0x299dae['item']),_0x37ff00=_0x1eb256['start']['getLastMatchingPosition'](_0x200daa),_0x5659bd=_0x1eb256['end']['getLastMatchingPosition'](_0x200daa,{'direction':'backward'});return(!_0x1eb256['start']['isEqual'](_0x37ff00)||!_0x1eb256['end']['isEqual'](_0x5659bd))&&(_0x37ff00['isBefore'](_0x5659bd)?_0x22c44d['updateMarker'](_0x481a68,{'range':_0x22c44d['createRange'](_0x37ff00,_0x5659bd)}):_0x22c44d['removeMarker'](_0x481a68),!0x0);}function Je(_0x2d3f34){return _0x1ac8dd(_0x2d3f34);}function tn(_0x2a4fd4){const _0x507cc0=_0x2a4fd4['start']['nodeAfter'];return _0x507cc0&&_0x507cc0['is']('element');}function en(_0x350fde){return Qe(_0x350fde)||function(_0x1eec72){return _0x1eec72['start']['parent']==_0x1eec72['end']['nodeBefore']&&_0x1eec72['start']['isAtEnd'];}(_0x350fde);}function nn(_0x47bb32,_0x1ab140){try{const _0x1373b0=_0x47bb32['getRange']();for(const _0x10804c of _0x1ab140)if(_0x47bb32!==_0x10804c&&_0x1373b0&&_0x1373b0['isIntersecting'](_0x10804c['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function sn(_0x5dec42,_0x36e779){return null==_0x5dec42['end']['nodeBefore']&&_0x5dec42['end']['parent']==_0x5dec42['start']['nodeAfter']?rn(_0x5dec42['start']['nodeAfter'],_0x36e779):_0x5dec42;}function rn(_0x4b5fda,_0x26c69f){const _0xb52f46=_0x26c69f['schema']['isObject'](_0x4b5fda)||_0x26c69f['schema']['isSelectable'](_0x4b5fda);return _0x26c69f['createRange'](_0x26c69f['createPositionAt'](_0x4b5fda,'before'),_0xb52f46?_0x26c69f['createPositionAfter'](_0x4b5fda):_0x26c69f['createPositionAt'](_0x4b5fda,'end'));}function on(_0x53c94b,_0xfaad6e,_0x152c10,_0x2a1dd1){return!!an(_0x53c94b,_0xfaad6e)&&_0x152c10['end']['isEqual'](_0x2a1dd1['start']);}function an(_0x1cd6ce,_0x1c5aa6){if(!_0x1cd6ce['_isDataLoaded']||!_0x1c5aa6['_isDataLoaded'])return!0x1;const _0x2541f9=new Set(Object['keys'](_0x1cd6ce['attributes'])),_0x25ae0d=new Set(Object['keys'](_0x1c5aa6['attributes']));if(_0x2541f9['delete']('groupId'),_0x25ae0d['delete']('groupId'),0x0==_0x2541f9['size']&&0x0==_0x25ae0d['size'])return!0x0;if(_0x2541f9['size']!=_0x25ae0d['size'])return!0x1;const _0x29dacc={..._0x1cd6ce['attributes']},_0x1b23b4={..._0x1c5aa6['attributes']};return delete _0x29dacc['groupId'],delete _0x1b23b4['groupId'],JSON['stringify'](_0x29dacc)==JSON['stringify'](_0x1b23b4);}function cn(_0x4c318e,_0x3d3c4f){const _0x4a8adc=ln(_0x4c318e['attributes']),_0x1e154d=ln(_0x3d3c4f);if(!_0x4c318e['_isDataLoaded'])return!0x1;for(const _0x1b064f of Object['keys'](_0x1e154d))if(!st(_0x4a8adc[_0x1b064f],_0x1e154d[_0x1b064f]))return!0x1;return!0x0;}function ln(_0x58add4){const _0x110a8c=Object['assign']({},_0x58add4);return delete _0x110a8c['skipNestingCheck'],delete _0x110a8c['tablePasteChainId'],_0x110a8c;}function un(_0x5be755){return _0x5be755['split']('|')[0x0];}class hn extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x3d2f74(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x2cf417,_0x135360,_0x103f69,_0x55e123){super(),this['model']=_0x135360,this['view']=_0x103f69,this['commentThreadController']=_0x55e123,this['_editor']=_0x2cf417,this['_acceptCommand']=_0x2cf417['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x2cf417['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0xec53f0,_0x58339d)=>_0xec53f0||_0x58339d),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x20fcc3=>_0x20fcc3&&this['_editor']['model']['canEditAt'](_0x135360['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x2f9065=>_0x2f9065&&this['_editor']['model']['canEditAt'](_0x135360['getRanges']())),this['_pendingAction']=null,_0x103f69['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x103f69,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x103f69,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x103f69,'change:isDirty',()=>{_0x103f69['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 _0x4e87ea=At(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x4e87ea);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class dn extends _0x411e19{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x9f73d1,_0x5ae146,_0x4ce66d,_0x313b75){super(_0x9f73d1),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x885b99(_0x9f73d1,At(_0x9f73d1,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x5ae146['authoredAt']),this['bind']('authoredAt')['to'](_0x5ae146),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',_0x5ae146,'authoredAt',this,'descriptionParts',(_0x57350f,_0x30f659,_0x15a9c7)=>{const _0x4a8b44=_0x15a9c7['map'](_0x48de17=>gt(_0x48de17['content']))['join']('.\x20')+'.';return At(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x57350f-0x1,_0x5ae146['author']['name'],_0x30f659?_0x313b75['formatDateTime'](_0x30f659):'',new DOMParser()['parseFromString'](_0x4a8b44,'text/html')['body']['textContent']]);}),this['focusables']=new _0x2347d8(),this['focusTracker']=new _0x467999(),this['keystrokes']=new _0x4dc31a(),this['focusCycler']=new _0x36c07f({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x103830=>_0x103830['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x5ae146,this['_localUser']=_0x4ce66d,this['_config']=_0x313b75,_0x313b75['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x552bc3(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x28ed30}=this['_config'];this['commentsListView']=new _0x28ed30(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',_0x5b52a7=>_0x5b52a7+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x17029f,_0x262c82)=>_0x17029f||!!_0x262c82);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x29c71b}=this['_config'],_0x2405eb=new _0x29c71b(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x5078c5=_0x2405eb['commentInputView'];return _0x2405eb['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x5078c5,'value',(_0x221f88,_0x186370,_0x1939fc)=>!!_0x1939fc||_0x221f88&&!_0x186370),_0x5078c5['on']('submit',(_0x46fda3,_0x186995)=>{this['fire']('addComment',_0x186995),_0x5078c5['editor']['setData']('');}),_0x5078c5['on']('cancel',()=>this['focus']()),_0x5078c5['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x2405eb;}}class fn extends dn{['suggestionView'];['_descriptionElement'];constructor(_0x15cbf3,_0x31f6e7,_0x1f8abe,_0x34f060){super(_0x15cbf3,_0x31f6e7,_0x1f8abe,_0x34f060),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x9417d2=>_0x9417d2&&_0x9417d2[0x0]?_0x9417d2[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x5f223b,_0x27e128)=>{let _0x88213d='';for(const _0x104809 of _0x5f223b)_0x88213d+='<p>'+gt(_0x104809['content'],_0x104809['color'])+'</p>';return _0x27e128?_0x88213d:_0x3baa13(_0x88213d,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x34f060['SuggestionView'](_0x15cbf3,_0x31f6e7,{'formatDateTime':_0x34f060['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 _0x3189cb=this['bindTemplate'],_0x53851c=[this['suggestionView']];return this['commentsListView']&&_0x53851c['push'](this['commentsListView']),this['commentThreadInputView']&&_0x53851c['push'](this['commentThreadInputView']),_0x53851c['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x3189cb['if']('isActive','ck-suggestion-wrapper--active'),_0x3189cb['to']('type',_0x271038=>'ck-suggestion-'+_0x271038),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':_0x3189cb['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x53851c};}['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 _0x411e19{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x5a5ab1,_0x48ab3a,_0x12c2c7){super(_0x5a5ab1),this['_model']=_0x48ab3a,this['_config']=_0x12c2c7,this['set']('description',''),this['bind']('authoredAt')['to'](_0x48ab3a),this['acceptButton']=this['_createButton'](At(_0x5a5ab1,'Accept\x20suggestion'),_0x127cf8,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](At(_0x5a5ab1,'Discard\x20suggestion'),_0x486268,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x463a32(_0x5a5ab1,_0x48ab3a['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x2347d8([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x467999(),this['keystrokes']=new _0x4dc31a(),this['focusCycler']=new _0x36c07f({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x2227d6=>_0x2227d6['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x44e39f=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x44e39f['innerHTML']=this['description'],this['on']('change:description',(_0x266ed5,_0xee1a39,_0x26ae2d)=>{_0x44e39f['innerHTML']=_0x26ae2d;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x359eba=this['bindTemplate'],_0x630496=[{'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':_0x359eba['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x359eba['to']('authoredAt',_0x410ab5=>this['_config']['formatDateTime'](_0x410ab5))}]}]},{'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']&&_0x630496['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':_0x630496}]};}['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'](_0x2c10cc,_0x1a8fc3,_0x2d1cb1,_0x4d9bc5,_0x58aace){const _0x53f045=new _0xd78f09(this['locale']);return _0x53f045['set']({'label':_0x2c10cc,'icon':_0x1a8fc3,'tooltip':!0x0,'tooltipPosition':_0x58aace}),_0x53f045['extendTemplate']({'attributes':{'class':_0x2d1cb1}}),_0x53f045['on']('execute',()=>{this['fire'](_0x4d9bc5,this['_model']['id']);}),_0x53f045;}['_setupKeyboardNavigation'](){const _0x1af3f2=this['element'];this['keystrokes']['listenTo'](_0x1af3f2);for(const _0x21fb9c of this['focusables'])this['focusTracker']['add'](_0x21fb9c['element']),this['keystrokes']['listenTo'](_0x21fb9c['element']);this['keystrokes']['set']('enter',(_0x338af7,_0x313af9)=>{_0x1af3f2===_0x338af7['target']&&(this['focusCycler']['focusFirst'](),_0x313af9());}),this['keystrokes']['set']('esc',(_0x573d7c,_0x222268)=>{_0x1af3f2!==_0x573d7c['target']&&(this['focus'](),_0x222268());});}}class mn extends _0x112932{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[Xe,_0x103758,_0xdf7add,_0xeb5a45,_0xe934ab];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x574a6c){super(_0x574a6c),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x211ed5=this['editor']['config'];_0x211ed5['define']('trackChanges.SuggestionThreadView',fn),_0x211ed5['define']('trackChanges.SuggestionView',gn),_0x211ed5['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x211ed5['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x40636f,_0x520b68){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x2e538e,_0x7b27c0]of this['_handleControllerBuffer']){const _0x5c2d95=this['_suggestionToController']['has'](_0x2e538e);_0x5c2d95||_0x7b27c0?_0x5c2d95&&_0x7b27c0&&this['_destroyController'](_0x2e538e):this['_initializeController'](_0x2e538e);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0xe934ab)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x40636f,_0x520b68);}['init'](){const _0x3d2c4b=this['editor'],_0x97c489=_0x3d2c4b['plugins']['get'](Xe),_0x1febfe=_0x3d2c4b['plugins']['get'](_0xeb5a45),_0x58f84e=_0x3d2c4b['plugins']['get'](_0xe934ab),_0x50c766=_0x3d2c4b['plugins']['get'](_0xdf7add);this['_addUIComponentsToFactory'](),_0x58f84e['addSourceCollector'](()=>{const _0x362935=[];for(const [_0x3877e3,_0x4210bd]of Array['from'](this['_suggestionToController'])){const _0x5f1c2=_0x3877e3['getAllAdjacentSuggestions'](),_0x22d637=[];for(const _0x423ad0 of _0x5f1c2){if(!_0x423ad0['isInContent'])continue;if(_0x423ad0['isMultiRange']){_0x22d637['push'](..._0x423ad0['getRanges']());continue;}const _0x47b8ea=_0x423ad0['getFirstRange']();if(_0x22d637['length']>0x0){const _0x15edbf=_0x22d637[0x0]['getJoined'](_0x47b8ea);if(_0x15edbf){_0x22d637[0x0]=_0x15edbf;continue;}}_0x22d637['push'](_0x47b8ea);}_0x362935['push']([_0x4210bd['view'],_0x22d637]);}return _0x362935;}),this['listenTo'](_0x97c489,'suggestionLoaded',(_0x41342e,_0x51a41f)=>{this['listenTo'](_0x51a41f,'change:previous',(_0x590473,_0x5341fb,_0x5720a0,_0x1e69cf)=>{_0x51a41f['isInContent']&&(null==_0x5720a0?(this['_updateController'](_0x1e69cf['head']),this['_handleSuggestionControllerDelayed'](_0x51a41f,!0x1)):(this['_updateController'](_0x5720a0['head']),null==_0x1e69cf&&this['_handleSuggestionControllerDelayed'](_0x51a41f,!0x0)));}),null!==_0x51a41f['previous']?this['_updateController'](_0x51a41f['head']):this['_handleSuggestionControllerDelayed'](_0x51a41f,!0x1);}),this['listenTo'](_0x97c489,'suggestionUnloaded',(_0x5c4b2a,_0x43eda4,_0x3693de)=>{this['stopListening'](_0x43eda4,'change:previous'),this['_handleControllerBuffer']['delete'](_0x43eda4),this['_suggestionToController']['has'](_0x43eda4)&&this['_destroyController'](_0x43eda4),_0x3693de&&this['_updateController'](_0x3693de['head']);}),this['listenTo'](_0x97c489,'suggestionChanged',(_0x4f9542,_0x429aab)=>{this['_updateController'](_0x429aab);}),this['listenTo'](_0x1febfe,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x50c766,'addComment',(_0x3a5977,{threadId:_0x408231,isFromAdapter:_0x482d0e})=>{if(_0x482d0e||!_0x97c489['hasSuggestion'](_0x408231))return;const _0x67e894=_0x97c489['getSuggestion'](_0x408231);this['_suggestionToController']['get'](_0x67e894)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3ae2b1=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x13ce80;for(const _0x4cd585 in _0x3ae2b1){const _0x380c69=_0x4cd585,_0x5ab6a1=_0x3ae2b1[_0x380c69];if('trackChangesLicenseKeyValid'==_0x5ab6a1||'trackChangesLicenseKeyInvalid'==_0x5ab6a1||'trackChangesLicenseKeyExpired'==_0x5ab6a1||'trackChangesLicenseKeyDomainLimit'==_0x5ab6a1||'trackChangesLicenseKeyNotAllowed'==_0x5ab6a1||'trackChangesLicenseKeyEvaluationLimit'==_0x5ab6a1||'trackChangesLicenseKeyUsageLimit'==_0x5ab6a1){delete _0x3ae2b1[_0x380c69],_0x13ce80=_0x5ab6a1,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x13ce80&&_0x3ae2b1['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x13ce80&&_0x3ae2b1['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x13ce80&&_0x3ae2b1['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x13ce80&&_0x3ae2b1['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x13ce80&&_0x3ae2b1['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x13ce80&&_0x3ae2b1['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x35ec0d){const _0x527158=this['_suggestionToController']['get'](_0x35ec0d);if(!_0x527158)return null;return this['editor']['plugins']['get'](_0xeb5a45)['getByInnerView'](_0x527158['view'])||null;}['getSuggestionForAnnotation'](_0x1d8f83){const _0x196c31=this['_viewToController']['get'](_0x1d8f83['innerView']);return _0x196c31?_0x196c31['model']:null;}['_refreshActiveMarkers'](){const _0x2a5cdf=this['editor']['plugins']['get'](_0xeb5a45),_0x5776bd=this['editor']['plugins']['get'](Xe),_0x197934=Array['from'](_0x2a5cdf['activeAnnotations'],_0x4d4039=>_0x4d4039['innerView'])['filter'](_0x36cca2=>this['_viewToController']['has'](_0x36cca2)),_0x406e5f=[];for(const _0x28ff39 of _0x197934){const _0x4ade5c=this['_viewToController']['get'](_0x28ff39)['model']['getAllAdjacentSuggestions']();_0x406e5f['push'](..._0x4ade5c['reduce']((_0x529785,_0x5649fd)=>[..._0x529785,..._0x5649fd['getMarkerNames']()],[]));}_0x5776bd['activeMarkers']=_0x406e5f;}['_addUIComponentsToFactory'](){const _0x5b658d=this['editor'],_0x21c033=_0x5b658d['locale'],_0xae58c=At(_0x21c033,'Track\x20changes'),_0x42caff=new _0x29c9a2([{'type':'switchbutton','model':new _0x1f1c35({'withText':!0x0,'isToggleable':!0x0,'label':_0xae58c,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x1f1c35({'withText':!0x0,'label':At(_0x21c033,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1f1c35({'withText':!0x0,'label':At(_0x21c033,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1f1c35({'withText':!0x0,'label':At(_0x21c033,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1f1c35({'withText':!0x0,'label':At(_0x21c033,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x5b658d['plugins']['has']('TrackChangesPreview')&&_0x42caff['addMany']([{'type':'separator'},{'type':'button','model':new _0x1f1c35({'withText':!0x0,'label':At(_0x21c033,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x1177e4 of _0x42caff)if(En(_0x1177e4)){const _0x42344b=_0x5b658d['commands']['get'](_0x1177e4['model']['commandName']);_0x1177e4['model']['bind']('isOn','isEnabled')['to'](_0x42344b,'value','isEnabled');}_0x5b658d['ui']['componentFactory']['add']('trackChanges',_0x3d5bd6=>this['_createToolbarButton'](_0x3d5bd6,_0x42caff,_0xae58c)),_0x5b658d['ui']['componentFactory']['add']('menuBar:trackChanges',_0x2ed917=>this['_createMenuBarMenu'](_0x2ed917,_0x42caff,_0xae58c));}['_createToolbarButton'](_0x374b7d,_0x567acf,_0x4fbaba){const _0x2e748=_0x55ac16(_0x374b7d,_0x1c9db8),_0x2872e5=this['editor']['commands']['get']('trackChanges');_0x2e748['buttonView']['set']({'tooltip':_0x4fbaba,'label':_0x4fbaba,'icon':_0x460797}),_0x2e748['buttonView']['bind']('isOn')['to'](_0x2872e5,'value'),_0x2e748['buttonView']['on']('execute',()=>{_0x2872e5['execute'](),this['editor']['editing']['view']['focus']();}),_0x8e287b(_0x2e748,_0x567acf,{'role':'menu'});const _0x272656=[];for(const _0x2c46ed of _0x567acf)En(_0x2c46ed)&&_0x272656['push'](this['editor']['commands']['get'](_0x2c46ed['model']['commandName']));const _0x3ba384=_0x2e748['buttonView'];return _0x3ba384['actionView']['unbind']('isEnabled'),_0x3ba384['arrowView']['unbind']('isEnabled'),_0x3ba384['actionView']['bind']('isEnabled')['to'](_0x2872e5,'isEnabled'),_0x3ba384['arrowView']['bind']('isEnabled')['toMany'](_0x272656,'isEnabled',(..._0x2d4e14)=>_0x2d4e14['some'](_0x2f77f3=>_0x2f77f3)),_0x2e748['on']('execute',_0x1b1581=>{this['editor']['execute'](_0x1b1581['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x2e748;}['_createMenuBarMenu'](_0x14b140,_0x5df94a,_0x5eb65b){const _0x272f20=new _0x296aff(_0x14b140),_0x2edb67=this['editor']['commands']['get']('trackChanges');_0x272f20['buttonView']['set']({'label':_0x5eb65b,'icon':_0x460797});const _0x112bbc=new _0x48e6fe(_0x14b140);for(const _0x312c0e of _0x5df94a){if('separator'==_0x312c0e['type']){_0x112bbc['items']['add'](new _0x57a492(_0x14b140));continue;}const _0x23b5b2=new _0x44bca2(_0x14b140,_0x272f20),_0x14c317=new _0x45242a(_0x14b140),_0x128683=_0x312c0e['model'];_0x14c317['bind'](...Object['keys'](_0x128683))['to'](_0x128683),_0x14c317['delegate']('execute')['to'](_0x272f20),_0x14c317['on']('execute',()=>{this['editor']['execute'](_0x128683['commandName']),this['editor']['editing']['view']['focus']();}),_0x23b5b2['children']['add'](_0x14c317),_0x112bbc['items']['add'](_0x23b5b2);}return _0x272f20['bind']('isEnabled')['to'](_0x2edb67,'isEnabled'),_0x272f20['panelView']['children']['add'](_0x112bbc),_0x272f20;}['_initializeController'](_0x59c3fd){const _0x7086a2=this['editor'],_0x4c0660=_0x7086a2['config'],_0x153129=_0x7086a2['plugins']['get'](_0xeb5a45),_0x3102ba=_0x7086a2['plugins']['get'](_0xdf7add),_0x46686e=_0x7086a2['plugins']['get'](_0xe934ab),_0x18a09=_0x7086a2['plugins']['get'](_0x103758)['me'],_0x42d380=_0x4c0660['get']('trackChanges')['SuggestionThreadView'],_0x488005=_0x4c0660['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x1c62b9,CommentThreadInputView:_0x521f8b}=_0x7086a2['plugins']['get']('CommentsUI');let _0x5bde0e,_0x198ba2,_0x319fea;this['_annotationViews']['has'](_0x59c3fd['id'])?(_0x198ba2=this['_annotationViews']['get'](_0x59c3fd['id']),_0x5bde0e=_0x198ba2['mainView']):(_0x5bde0e=new _0x42d380(_0x7086a2['locale'],_0x59c3fd,_0x18a09,{'disableComments':this['_disableComments'],'editorConfig':{..._0x4c0660['get']('comments.editorConfig'),'licenseKey':_0x4c0660['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x4c0660['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x4c0660['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x4c0660['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x42fec2(_0x4c0660['get']('locale'),_0x7086a2['locale']),'CommentView':_0x4c0660['get']('comments')['CommentView'],'CommentsListView':_0x1c62b9,'CommentThreadInputView':_0x521f8b,'SuggestionView':_0x488005}),_0x5bde0e['suggestionView']['acceptButton']['on']('execute',()=>{_0x7086a2['editing']['view']['focus']();}),_0x5bde0e['suggestionView']['discardButton']['on']('execute',()=>{_0x7086a2['editing']['view']['focus']();}),_0x198ba2=_0x153129['createAnnotationView'](this['editor']['locale'],_0x5bde0e),_0x198ba2['bind']('isDirty')['to'](_0x5bde0e,'isDirty'),_0x198ba2['bind']('length')['to'](_0x5bde0e),_0x198ba2['bind']('type')['to'](_0x5bde0e,'type',_0x2b39d9=>'suggestion-'+_0x2b39d9),_0x5bde0e['on']('escape',()=>{_0x319fea['fire']('escape');}),this['_annotationViews']['set'](_0x59c3fd['id'],_0x198ba2));const _0x4f0246=_0x3102ba['createCommentThreadController'](_0x59c3fd['commentThread'],_0x5bde0e),_0x143114=new hn(_0x7086a2,_0x59c3fd,_0x5bde0e,_0x4f0246),_0x375e65=_0x59c3fd['getAllAdjacentSuggestions']()['filter'](_0x21b59f=>_0x21b59f['isInContent']);_0x5bde0e['descriptionParts']=_0x7086a2['plugins']['get'](Xe)['descriptionFactory']['getDescriptions'](_0x375e65),this['_suggestionToController']['set'](_0x59c3fd,_0x143114),this['_viewToController']['set'](_0x5bde0e,_0x143114);const _0x4e51a8=()=>{const _0x56e909=[],_0x5c3c95=_0x59c3fd['getAllAdjacentSuggestions']()['filter'](_0x131495=>_0x131495['isInContent']);for(const _0x4be4eb of _0x5c3c95)_0x56e909['push'](..._0x4be4eb['getMarkers']());return _0x2cf6af(_0x7086a2['editing'],_0x56e909);};_0x319fea=_0x153129['createAnnotation']({'view':_0x198ba2,'target':_0x4e51a8,'type':()=>'suggestion-'+_0x143114['view']['type'],'isVisible':!!_0x4e51a8()}),_0x3102ba['_bindAnnotationToEditors'](_0x5bde0e,_0x319fea),_0x153129['add'](_0x319fea),_0x46686e['registerAnnotation'](_0x319fea);}['_destroyController'](_0x41018d){const _0x49469d=this['editor']['plugins']['get'](_0xdf7add),_0x19ff16=this['editor']['plugins']['get'](_0xeb5a45),_0x39389f=this['_suggestionToController']['get'](_0x41018d),_0x223450=_0x39389f['view'],_0x11e432=_0x19ff16['getByInnerView'](_0x223450);_0x49469d['_unbindEditors'](_0x223450),_0x11e432&&_0x19ff16['remove'](_0x11e432),this['_suggestionToController']['delete'](_0x41018d),this['_viewToController']['delete'](_0x223450),_0x39389f['destroy']();}['_updateController'](_0x6cb209){if(!_0x6cb209['isInContent']||!this['_suggestionToController']['has'](_0x6cb209))return;const _0x429564=this['editor']['plugins']['get'](Xe),_0x16000d=this['_suggestionToController']['get'](_0x6cb209),_0x3b61f7=_0x6cb209['getAllAdjacentSuggestions']();_0x16000d['view']['descriptionParts']=_0x429564['descriptionFactory']['getDescriptions'](_0x3b61f7);}['destroy'](){for(const _0x172fc2 of this['_suggestionToController']['keys']())this['_destroyController'](_0x172fc2);for(const _0x4f1c32 of this['_annotationViews']['values']())_0x4f1c32['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function En(_0x5bf510){return'model'in _0x5bf510;}class Tn extends _0x112932{static get['requires'](){return[Xe,mn,_0x4f1d45];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x37b6ac){this['editor']['plugins']['get'](Xe)['adapter']=_0x37b6ac;}get['adapter'](){return this['editor']['plugins']['get'](Xe)['adapter'];}['addSuggestion'](_0x461d03){return this['editor']['plugins']['get'](Xe)['addSuggestionData'](_0x461d03);}['getSuggestions']({skipNotAttached:_0xaf3f29=!0x1,toJSON:_0x5230d8=!0x1}={}){return this['editor']['plugins']['get'](Xe)['getSuggestions']({'skipNotAttached':_0xaf3f29,'toJSON':_0x5230d8});}['getSuggestion'](_0x1359fd){return this['editor']['plugins']['get'](Xe)['getSuggestion'](_0x1359fd);}}const _n=['Pagination'];class pn extends _0x112932{static get['requires'](){return[Xe];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x4a75fc=this['editor'];if(_0x4a75fc['config']['define']('trackChangesData.editorCreator',_0x2a5ca6=>{const _0xed6664=_0x4a75fc['model']['document']['getRootNames']()['reduce']((_0x333fe6,_0x175c7d)=>(_0x333fe6[_0x175c7d]='',_0x333fe6),{});return _0x4a75fc['constructor']['create'](_0xed6664,_0x2a5ca6);}),'function'!=typeof _0x4a75fc['config']['get']('trackChangesData')['editorCreator'])throw new _0xad9616('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x48230f){return bn(this['editor'],!0x0,_0x48230f);}['getDataWithDiscardedSuggestions'](_0x4180a2){return bn(this['editor'],!0x1,_0x4180a2);}}class Ln extends _0x112932{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xce0da8){function _0x41cc29(_0x188626){return _0x188626['map'](_0x1b95fc=>String['fromCharCode'](_0x1b95fc))['join']('');}super(_0xce0da8),this['result']='end',_0xce0da8[_0x41cc29([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x41cc29([0x76,0x69,0x65,0x77])][_0x41cc29([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x41cc29([0x61,0x75,0x74,0x6f]),_0xce0da8[_0x41cc29([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x41cc29([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x41cc29([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x41cc29([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x41cc29([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(_0x22a638){return void 0x0!==_0x22a638['getRootsAttributes'];}async function bn(_0xc08320,_0x2c7be6,_0x326489){const _0x28bbf2=_0x2884f8(_0xc08320,_n);if(_0x28bbf2['plugins']['push'](Xe,Ln),In(_0xc08320)){_0x28bbf2['roots']=Object['create'](null);for(const _0x28fc1c of _0xc08320['model']['document']['getRootNames']())_0x28bbf2['roots'][_0x28fc1c]={'modelAttributes':_0xc08320['getRootAttributes'](_0x28fc1c)};}const _0x232880=document['createDocumentFragment'](),_0x45d95e=_0xc08320['config']['get']('trackChangesData')['editorCreator'],_0x4686b1=await _0x45d95e(_0x28bbf2,()=>function(_0x52ba59){const _0x3aff6c=document['createElement']('div');return _0x52ba59['appendChild'](_0x3aff6c),_0x3aff6c;}(_0x232880));!function(_0x52898e,_0x52c9c4){const _0x544681=_0x52898e['model']['document']['getRootNames']()['reduce']((_0xefcef8,_0x372c73)=>(_0xefcef8[_0x372c73]=_0x52898e['data']['get']({'rootName':_0x372c73}),_0xefcef8),{}),_0x15e5e2=_0x52898e['plugins']['get']('Users')['users']['map'](_0x2274a2=>({'id':_0x2274a2['id'],'name':_0x2274a2['name']})),_0x116990=_0x52898e['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2be46e=_0x52898e['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x455568=_0x52c9c4['plugins']['get']('Users'),_0x4ba5eb=_0x52c9c4['plugins']['get']('TrackChangesEditing'),_0x5b7f10=_0x52c9c4['plugins']['get']('CommentsRepository');for(const _0x44fcf8 of _0x5b7f10['getCommentThreads']())_0x44fcf8['remove']();for(const _0x2b4351 of _0x15e5e2)_0x455568['getUser'](_0x2b4351['id'])||_0x455568['addUser'](_0x2b4351);_0x455568['me']||_0x455568['useAnonymousUser']();for(const _0x574392 of _0x2be46e)_0x5b7f10['addCommentThread'](_0x574392);for(const _0x2cbc1e of _0x116990)_0x4ba5eb['addSuggestionData'](_0x2cbc1e);_0x52c9c4['data']['set'](_0x544681);}(_0xc08320,_0x4686b1),_0x4686b1['execute'](_0x2c7be6?'acceptAllSuggestions':'discardAllSuggestions');const _0x103960=In(_0x4686b1)?_0x4686b1['getFullData'](_0x326489):_0x4686b1['data']['get'](_0x326489);return await _0x4686b1['destroy'](),_0x103960;}class An extends _0x411e19{['options'];constructor(_0x3b76fc,_0xc82dd7){super(_0x3b76fc),this['options']=_0xc82dd7,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'](_0xebb013,_0x5f1210){if(!this['element'])return;const _0x402420=[];for(const [_0x3f6437,_0x495554]of _0xebb013){const _0xb6c1e8=document['createElement']('div');_0xb6c1e8['setAttribute']('data-ck-root-name',_0x3f6437),_0xb6c1e8['className']=_0x495554['classes']+'\x20ck-track-changes-preview__root-container',_0xb6c1e8['innerHTML']=_0x495554['content'],_0x402420['push'](_0xb6c1e8);}_0x5f1210(this['element'],_0x402420),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class kn extends _0xcb1bd4{constructor(_0x75be38){super(_0x75be38),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0xc8022c=this['editor'],_0x5805de=_0xc8022c['locale'],_0x46f006=_0xc8022c['plugins']['get']('Dialog');let _0x523283;const _0x46f42c=function(_0x1b2c72){const _0x27e361={};if('editables'in _0x1b2c72['ui']['view']){for(const [_0x2697e3,_0x1efb20]of Object['entries'](_0x1b2c72['ui']['view']['editables']))_0x27e361[_0x2697e3]=_0x1efb20['element'];}else _0x27e361[_0x1b2c72['model']['document']['getRootNames']()[0x0]]=_0x1b2c72['ui']['view']['editable']['element'];return _0x27e361;}(_0xc8022c),_0x10bfaf=function(_0x270213){let _0x2930eb=0x0;for(const _0x3aac52 of Object['values'](_0x270213))_0x2930eb=Math['max'](_0x2930eb,_0x3aac52['getBoundingClientRect']()['width']);let _0x565fef=0x0;for(const _0x10f180 of Object['values'](_0x270213))_0x565fef+=_0x10f180['getBoundingClientRect']()['height'];const _0x5318f9=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x4f5965=Math['min'](_0x565fef,_0x5318f9);return{'width':_0x2930eb,'height':_0x4f5965};}(_0x46f42c);_0x46f006['show']({'id':'finalContentPreview','title':At(_0x5805de,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new An(_0x5805de,{'dialogRects':_0x10bfaf}),'onHide':()=>{_0x523283['detachFromDom']();},'onShow':()=>{_0xc8022c['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x446c7e=>{const _0x3f8edb=this['_standarizeRootsData'](_0x446c7e,_0xc8022c,_0x46f42c);_0x46f006['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x3f8edb,_0xc8022c['config']['get']('trackChanges.preview.renderFunction'));}),_0x523283=new _0x48f0ef(_0x5805de,[_0x46f006['view']]),_0x523283['attachToDom'](),_0x523283['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0xc8022c['once']('destroy',()=>{_0x523283['detachFromDom']();});const _0x5e1d7a=_0x46f006['view']['headerView']['class'];_0x46f006['view']['headerView']['class']=_0x5e1d7a?_0x5e1d7a+'\x20ck-reset_all':'ck-reset_all',_0x46f006['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x46f006['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x197543=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x12c7f1=_0x197543['previewMode'],_0x2e2f7f={};if('$labels'===_0x12c7f1){for(const _0x6128b8 of _0x197543['getMergeFieldsIds']())_0x2e2f7f[_0x6128b8]=_0x197543['getLabel'](_0x6128b8)||_0x6128b8;}else{const _0x34029d='$defaultValues'===_0x12c7f1?_0x197543['getDefaultValues']():_0x197543['getDataSetValues'](_0x12c7f1,!0x0);for(const _0x49156f of Object['entries'](_0x34029d)){const [_0x285436,_0x329f35]=_0x49156f;_0x2e2f7f[_0x285436]=null!==_0x329f35?_0x329f35:_0x197543['getLabel'](_0x285436)||_0x285436;}}return{'mergeFieldsData':_0x2e2f7f};}['_standarizeRootsData'](_0xfe8878,_0x2e0ff6,_0x256cb3){let _0x1e03bb;if('string'==typeof _0xfe8878){const _0x23cd07=_0x2e0ff6['model']['document']['getRootNames']()[0x0];_0x1e03bb={[_0x23cd07]:_0xfe8878};}else _0x1e03bb=_0xfe8878;const _0x4e89ff=this['_fixMediaEmbeds'](_0x1e03bb,_0x2e0ff6),_0x2f3715=function(_0xde44b1,_0x441dd7){for(const [_0x8dd5cc,_0x1aa37c]of _0xde44b1)_0x1aa37c['classes']=_0x441dd7[_0x8dd5cc]['classList']['value']['replace']('ck-focused','');return _0xde44b1;}(this['_sortRoots'](_0x2e0ff6)['reduce']((_0x28655b,_0x26402e)=>(_0x28655b['push']([_0x26402e,{'content':_0x4e89ff[_0x26402e],'classes':''}]),_0x28655b),[]),_0x256cb3);return _0x2f3715;}['_fixMediaEmbeds'](_0x18ac4e,_0x2ed888){if(!_0x2ed888['plugins']['has']('MediaEmbedEditing'))return _0x18ac4e;const _0x25597a=_0x2ed888['plugins']['get']('MediaEmbedEditing');for(const [_0x70698b,_0x225145]of Object['entries'](_0x18ac4e)){const _0x168dd8=document['createElement']('div');_0x168dd8['innerHTML']=_0x225145,(_0x168dd8['querySelectorAll']('figure.media')['forEach'](_0x1d2c7b=>{const _0x5f4107=_0x1d2c7b['querySelector']('oembed');if(_0x5f4107){const _0x4db663=_0x5f4107['getAttribute']('url');if(_0x4db663){const _0x110e38=_0x25597a['registry']['getMediaViewElement'](new et(_0x2ed888['editing']['view']['document']),_0x4db663,{'elementName':'','renderForEditingView':!0x0}),_0x4c3950=document['createElement']('div');_0x4c3950['classList']['add']('ck-media__wrapper'),_0x110e38['render'](_0x4c3950,_0x2ed888['editing']['view']['domConverter']),_0x5f4107['replaceWith'](_0x4c3950);}}}),_0x18ac4e[_0x70698b]=_0x168dd8['innerHTML']);}return _0x18ac4e;}['_sortRoots'](_0x221c4a){if(!function(_0x56035b){return void 0x0!==_0x56035b['getRootsAttributes'];}(_0x221c4a))return _0x221c4a['model']['document']['getRootNames']();const _0x2c6a50=[],_0x4a096d=new Map();for(const _0x38b25c of _0x221c4a['model']['document']['getRootNames']()){const _0x540aec=_0x221c4a['editing']['view']['getDomRoot'](_0x38b25c)['getClientRects']()['item'](0x0);_0x2c6a50['push'](_0x38b25c),_0x4a096d['set'](_0x38b25c,_0x540aec);}return _0x2c6a50['sort']((_0x4d5601,_0x85b186)=>{const _0x3ecfe5=_0x4a096d['get'](_0x4d5601),_0x533f3c=_0x4a096d['get'](_0x85b186);return _0x3ecfe5['y']-_0x533f3c['y']||_0x3ecfe5['x']-_0x533f3c['x'];}),_0x2c6a50;}}class Cn extends _0x112932{static get['requires'](){return[pn,_0xd2be39];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x324597){super(_0x324597),_0x324597['commands']['add']('previewFinalContent',new kn(this['editor'])),_0x324597['config']['define']('trackChanges.preview.renderFunction',(_0xd7806a,_0x3a1550)=>{for(const _0x443e5e of _0x3a1550)_0xd7806a['appendChild'](_0x443e5e);});}}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};
|