@ckeditor/ckeditor5-track-changes 48.0.0-alpha.1 → 48.0.0-alpha.10
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
|
-
_0x1639ff(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x4b7a75,_0x5aa840){super(),this['id']=_0x5aa840['id'],this['type']=_0x5aa840['type'],this['subType']=_0x5aa840['subType']||null,this['author']=_0x5aa840['author'],this['creator']=_0x5aa840['creator']||_0x5aa840['author'],this['isExternal']=Boolean(_0x5aa840['attributes']&&_0x5aa840['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x5aa840['originalSuggestionId']||null,this['_model']=_0x4b7a75,this['_onAccept']=_0x5aa840['onAccept'],this['_onDiscard']=_0x5aa840['onDiscard'],this['_onAttributesChange']=_0x5aa840['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x5aa840['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 _0x782e64=this;for(;_0x782e64['previous'];)_0x782e64=_0x782e64['previous'];return _0x782e64;}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'](_0x7cc6f){this['_markerNames']['add'](_0x7cc6f);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0xbde59e=>this['_model']['markers']['get'](_0xbde59e))['filter'](_0x140ad2=>_0x140ad2);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x16ff4c=>{for(const _0x2601e6 of this['getMarkers']())_0x16ff4c['removeMarker'](_0x2601e6);}),this['_markerNames']['clear']();}['removeMarker'](_0x226d5d){this['_model']['change'](_0x24e6a1=>{_0x24e6a1['removeMarker'](_0x226d5d);}),this['_markerNames']['delete'](_0x226d5d);}['addRange'](_0x3c1c8a){const _0x45571a='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+bt['getMultiRangeId']();this['addMarkerName'](_0x45571a),this['_model']['change'](_0x3b87ca=>{_0x3b87ca['addMarker'](_0x45571a,{'range':_0x3c1c8a,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x9b72b2){for(const _0xcbbe5f of this['getRanges']())if(_0xcbbe5f['isIntersecting'](_0x9b72b2))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x2c4e7d=>_0x2c4e7d['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x5b0114,_0x5ba777)=>[..._0x5b0114,..._0x5ba777['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x44fc35=this['getRanges']();if(0x1!=_0x44fc35['length'])return null;const _0x3d7437=_0x44fc35[0x0],_0x4751f2=_0x3d7437['start']['nodeAfter'],_0x313335=_0x3d7437['end']['nodeBefore'];return _0x4751f2 instanceof _0x39c5aa?_0x4751f2!=_0x313335?null:_0x4751f2: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 _0x3b9ca4=[];let _0x52175b=this['head'];for(;_0x52175b;)_0x3b9ca4['push'](_0x52175b),_0x52175b=_0x52175b['next'];return _0x3b9ca4;}['setAttribute'](_0x44a74c,_0x2a12c2){const _0x210b5f=nt(this['attributes']);it(_0x210b5f,_0x44a74c,_0x2a12c2),st(_0x210b5f,this['attributes'])||(this['attributes']=_0x210b5f,this['_onAttributesChange'](_0x210b5f));}['removeAttribute'](_0xd511b2){const _0x34b0e5=nt(this['attributes']);rt(_0x34b0e5,_0xd511b2),st(_0x34b0e5,this['attributes'])||(this['attributes']=_0x34b0e5,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 _0x2026f5()['substr'](0x1,0x5);}}function At(_0x597b24,_0x396aea,_0x19e2e3){const _0x62d67d=_0x597b24['t'],t=_0x597b24['t'];switch(_0x396aea){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',_0x19e2e3);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x19e2e3);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x19e2e3);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x19e2e3);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x19e2e3);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',_0x19e2e3);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x19e2e3);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',_0x19e2e3);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x19e2e3);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x19e2e3);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x19e2e3);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x19e2e3);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x19e2e3);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x19e2e3);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x19e2e3);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x19e2e3);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x19e2e3);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x19e2e3);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x19e2e3);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x19e2e3);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x19e2e3);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x19e2e3);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x19e2e3);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x19e2e3);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x19e2e3);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'},_0x19e2e3);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x19e2e3);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x19e2e3);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x19e2e3);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x19e2e3);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x19e2e3);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x19e2e3);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x19e2e3);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'},_0x19e2e3);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x19e2e3);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x19e2e3);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x19e2e3);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x19e2e3);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'},_0x19e2e3);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x19e2e3);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'},_0x19e2e3);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'},_0x19e2e3);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x19e2e3);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'},_0x19e2e3);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x19e2e3);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'},_0x19e2e3);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x19e2e3);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x19e2e3);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x19e2e3);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x19e2e3);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x19e2e3);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'},_0x19e2e3);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x19e2e3);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 _0x62d67d({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x19e2e3);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x62d67d({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x19e2e3);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x19e2e3);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'},_0x19e2e3);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'},_0x19e2e3);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'},_0x19e2e3);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x396aea;}}class kt{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x225588,_0x3a16c7){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x225588,this['_locale']=_0x3a16c7;}['getDescriptions'](_0x42129d){const _0x584e04=[],_0x16ce3a=new Set(),_0x309dd4=new Set();for(let _0x999b01=0x0;_0x999b01<_0x42129d['length'];_0x999b01++){const _0x4a66f9=_0x42129d[_0x999b01];if(!_0x4a66f9['isInContent'])continue;const _0x2fba7c=this['_handleCustomCallbackDescription'](_0x4a66f9);if(_0x2fba7c){if(null!=_0x4a66f9['subType']){if(_0x16ce3a['has'](_0x4a66f9['subType']))continue;_0x16ce3a['add'](_0x4a66f9['subType']);}_0x584e04['push'](_0x2fba7c);}else{if('attribute'==_0x4a66f9['type']){const _0x4edb69=_0x4a66f9['data']['key'];if(_0x309dd4['has'](_0x4edb69))continue;_0x309dd4['add'](_0x4a66f9['data']['key']),_0x4edb69==Ke?this['_handleRenameSuggestionDescription'](_0x584e04,_0x4a66f9):this['_handleAttributeSuggestionDescription'](_0x584e04,_0x4a66f9);continue;}'insertion'!=_0x4a66f9['type']&&'deletion'!=_0x4a66f9['type']||this['_handleInsertRemoveSuggestionDescription'](_0x584e04,_0x4a66f9,_0x42129d[_0x999b01+0x1]);}}return this['_resolveDescriptionItems'](_0x584e04);}['registerDescriptionCallback'](_0x155b24){this['_customCallbacks']['push'](_0x155b24);}['registerElementLabel'](_0x3b5300,_0x5d71b9,_0x44e10e=_0x31b733['normal']){'function'==typeof _0x3b5300?_0x352800(this['_itemLabelsCallbacks'],{'matchingCallback':_0x3b5300,'label':_0x5d71b9,'priority':_0x44e10e}):this['_itemLabels']['set'](_0x3b5300,_0x5d71b9);}['registerAttributeLabel'](_0x60bedd,_0x857d6d){this['_attributeLabels']['set'](_0x60bedd,_0x857d6d);}['getItemLabel'](_0x19b3f9,_0x3ea1f9=0x1){let _0x31f17c;for(const _0xc7fb72 of this['_itemLabelsCallbacks'])if(_0xc7fb72['matchingCallback'](_0x19b3f9)){_0x31f17c=_0xc7fb72['label'];break;}return _0x31f17c||(_0x31f17c=this['_itemLabels']['get'](_0x19b3f9['name'])),_0x31f17c?_0x31f17c(_0x3ea1f9):0x1!==_0x3ea1f9?_0x3ea1f9+'\x20'+_0x19b3f9['name']+'s':''+_0x19b3f9['name'];}['_addDescriptionItems'](_0x444335,_0x1243e1){const _0x32a01d=_0x1243e1['getFirstRange']()['getWalker'](),_0x3df432='insertion'==_0x1243e1['type']?'add':'remove';for(const _0x27def0 of _0x32a01d){const _0x198d87=_0x27def0['item'],_0x4024c0=_0x444335[_0x444335['length']-0x1];if(_0x198d87['is']('$textProxy'))_0x4024c0&&_0x4024c0['type']['indexOf']('Container')>-0x1&&_0x444335['pop'](),_0x4024c0&&'text'==_0x4024c0['type']?_0x4024c0[_0x3df432]+=_0x198d87['data']:_0x444335['push']({'type':'text','add':'add'==_0x3df432?_0x198d87['data']:'','remove':'remove'==_0x3df432?_0x198d87['data']:''});else{if(this['_schema']['isObject'](_0x198d87)){const _0x12b39a=_0x198d87;if(_0x4024c0&&_0x4024c0['type']['indexOf']('Container')>-0x1&&_0x444335['pop'](),'elementEnd'==_0x27def0['type'])continue;_0x4024c0&&_0x4024c0['type']==_0x3df432+'Object'&&_0x4024c0['element']['name']==_0x12b39a['name']?_0x4024c0['quantity']++:_0x444335['push']({'type':_0x3df432+'Object','element':_0x12b39a,'quantity':0x1}),_0x32a01d['skip'](_0x56ebce=>!('elementEnd'==_0x56ebce['type']&&_0x56ebce['item']==_0x198d87));}else{if(this['_schema']['checkChild'](_0x198d87,'$text')||_0x198d87['is']('element','softBreak')){const _0x120639=_0x198d87;if('add'==_0x3df432&&'elementStart'==_0x27def0['type']||'remove'==_0x3df432&&'elementEnd'==_0x27def0['type'])continue;if(_0x4024c0&&-0x1==_0x4024c0['type']['indexOf']('Container')){'text'==_0x4024c0['type']&&(_0x4024c0[_0x3df432]+='\x0a');continue;}let _0x4fefaa;if(_0x4fefaa='add'==_0x3df432?_0x120639['nextSibling']&&!this['_schema']['isObject'](_0x120639['nextSibling'])?_0x120639['nextSibling']:null:_0x120639['previousSibling']&&!this['_schema']['isObject'](_0x120639['previousSibling'])?_0x120639['previousSibling']:null,_0x120639['isEmpty']||_0x4fefaa&&_0x4fefaa['isEmpty']){const _0xb95360=_0x4fefaa&&_0x4fefaa['isEmpty']?_0x4fefaa:_0x120639;_0x4024c0&&_0x4024c0['type']==_0x3df432+'EmptyContainer'&&_0x4024c0['element']['name']==_0xb95360['name']?_0x4024c0['quantity']++:_0x444335['push']({'type':_0x3df432+'EmptyContainer','element':_0xb95360,'quantity':0x1});}else _0x444335['push']({'type':_0x3df432+'Container','element':_0x120639});}}}}}['_resolveDescriptionItems'](_0x483d3e){const _0xa7a8c6=this['_locale'],_0x3a3c11=[],_0x15a374=[],_0x16bf20=[];for(const _0x3cb545 of _0x483d3e)switch(_0x3cb545['type']){case'text':if(_0x3cb545['add']=_0x3cb545['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x3cb545['remove']=_0x3cb545['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x3cb545['add']&&''!=_0x3cb545['remove']){_0x3a3c11['push']({'type':'replace','content':At(_0xa7a8c6,'REPLACE_TEXT',['\x22'+_0x3cb545['remove']+'\x22','\x22'+_0x3cb545['add']+'\x22'])});continue;}if(null!=_0x3cb545['add']['match'](/^ +$/)){_0x3a3c11['push']({'type':'insertion','content':At(_0xa7a8c6,'*Insert:*\x20%0',At(_0xa7a8c6,'ELEMENT_SPACE',_0x3cb545['add']['length']))});continue;}if(null!=_0x3cb545['remove']['match'](/^ +$/)){_0x3a3c11['push']({'type':'deletion','content':At(_0xa7a8c6,'*Remove:*\x20%0',At(_0xa7a8c6,'ELEMENT_SPACE',_0x3cb545['remove']['length']))});continue;}if(''!=_0x3cb545['add']){_0x3a3c11['push']({'type':'insertion','content':At(_0xa7a8c6,'*Insert:*\x20%0','\x22'+_0x3cb545['add']+'\x22')});continue;}_0x3a3c11['push']({'type':'deletion','content':At(_0xa7a8c6,'*Remove:*\x20%0','\x22'+_0x3cb545['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x3a3c11['push']({'type':'insertion','content':At(_0xa7a8c6,'*Insert:*\x20%0',this['getItemLabel'](_0x3cb545['element'],_0x3cb545['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x3a3c11['push']({'type':'deletion','content':At(_0xa7a8c6,'*Remove:*\x20%0',this['getItemLabel'](_0x3cb545['element'],_0x3cb545['quantity']))});continue;case'addContainer':_0x3a3c11['push']({'type':'insertion','content':At(_0xa7a8c6,'*Split:*\x20%0',this['getItemLabel'](_0x3cb545['element'],_0x3cb545['quantity']))});continue;case'removeContainer':_0x3a3c11['push']({'type':'deletion','content':At(_0xa7a8c6,'*Merge:*\x20%0',this['getItemLabel'](_0x3cb545['element'],_0x3cb545['quantity']))});continue;case'addFormat':_0x15a374['push'](_0x3cb545['key']);continue;case'removeFormat':_0x16bf20['push'](_0x3cb545['key']);continue;default:_0x3a3c11['push'](_0x3cb545);}if(_0x15a374['length']){const _0x673737=_0x15a374['map'](_0x5e8944=>this['_attributeLabels']['has'](_0x5e8944)?this['_attributeLabels']['get'](_0x5e8944):_0x5e8944)['join'](',\x20');_0x3a3c11['push']({'type':'format','content':At(this['_locale'],'*Set\x20format:*\x20%0',_0x673737)});}if(_0x16bf20['length']){const _0x247bf8=_0x16bf20['map'](_0x305464=>this['_attributeLabels']['has'](_0x305464)?this['_attributeLabels']['get'](_0x305464):_0x305464)['join'](',\x20');_0x3a3c11['push']({'type':'format','content':At(this['_locale'],'*Remove\x20format:*\x20%0',_0x247bf8)});}return _0x3a3c11;}['_handleCustomCallbackDescription'](_0x5367f7){for(const _0x1272d0 of this['_customCallbacks']){const _0x2265ef=_0x1272d0(_0x5367f7);if(_0x2265ef&&'type'in _0x2265ef)return _0x2265ef;}}['_handleAttributeSuggestionDescription'](_0x99f3a2,_0x37a709){const _0x4c8811=_0x37a709['data'],_0x2715cf=void 0x0===_0x4c8811['newValue']?'removeFormat':'addFormat';_0x99f3a2['push']({'type':_0x2715cf,'key':_0x4c8811['key']});}['_handleRenameSuggestionDescription'](_0x297282,_0x16d707){_0x297282['push']({'type':'format','content':At(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x16d707['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x31906a,_0x25e45b,_0xdeb360){if(this['_addDescriptionItems'](_0x31906a,_0x25e45b),_0xdeb360&&_0xdeb360['getFirstRange']()&&!_0x25e45b['getFirstRange']()['end']['isEqual'](_0xdeb360['getFirstRange']()['start'])){const _0x1b6217=_0x31906a[_0x31906a['length']-0x1],_0x41597c='insertion'==_0x25e45b['type']?'add':'remove';_0x1b6217&&'text'==_0x1b6217['type']&&(_0x1b6217[_0x41597c]+='\x0a');}}}class Ct extends _0x31a8de{['afterInit'](){const _0x3ae3f4=this['editor'],_0x586da3=_0x3ae3f4['plugins']['get']('TrackChangesEditing');_0x3ae3f4['commands']['get']('showAIAssistant')&&_0x586da3['enableCommand']('showAIAssistant');}}class yt extends _0x31a8de{['afterInit'](){const _0x1fbd1a=this['editor'],_0x279dbc=_0x1fbd1a['plugins']['get']('TrackChangesEditing');_0x1fbd1a['commands']['get']('toggleAi')&&_0x279dbc['enableCommand']('toggleAi');}}class Nt extends _0x31a8de{['afterInit'](){const _0x2ee702=this['editor'],_0x4b3204=_0x2ee702['plugins']['get']('TrackChangesEditing');_0x2ee702['commands']['get']('aiQuickAction')&&_0x4b3204['enableCommand']('aiQuickAction');}}class Rt extends _0x31a8de{['afterInit'](){const _0x5ae632=this['editor'],_0x7e08eb=_0x5ae632['locale'];if(!_0x5ae632['plugins']['has']('AlignmentEditing'))return;const _0x7d49bc=_0x5ae632['plugins']['get']('TrackChangesEditing');_0x7d49bc['enableDefaultAttributesIntegration']('alignment'),_0x7d49bc['descriptionFactory']['registerAttributeLabel']('alignment',At(_0x7e08eb,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x533403=this['editor'],_0x404362=_0x533403['locale'];_0x533403['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x56412c=>{if('formatBlock'!=_0x56412c['type'])return;const {data:_0xa4363d}=_0x56412c;if(_0xa4363d&&'alignment'==_0xa4363d['commandName']){const _0x286b0d=_0xa4363d['commandParams'][0x0]['value'];return{'type':'format','content':At(_0x404362,'*Format:*\x20%0',function(_0xe6f2a4){switch(_0xe6f2a4){case'left':return At(_0x404362,'FORMAT_ALIGN_TO_LEFT');case'right':return At(_0x404362,'FORMAT_ALIGN_TO_RIGHT');case'center':return At(_0x404362,'FORMAT_ALIGN_TO_CENTER');case'justify':return At(_0x404362,'FORMAT_JUSTIFY_TEXT');}}(_0x286b0d))};}});}}const St=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class Mt extends _0x31a8de{['afterInit'](){const _0x4f1a9c=this['editor'],_0x20a88c=_0x4f1a9c['plugins']['get']('TrackChangesEditing'),_0x4988e3=_0x4f1a9c['locale'];for(const _0x13a428 of St){if(!_0x4f1a9c['plugins']['has'](_0x13a428))continue;const _0x94e02f=_0x13a428['slice'](0x0,-0x7)['toLowerCase'](),_0xb8bafd='FORMAT_'+_0x94e02f['toUpperCase']();_0x20a88c['enableDefaultAttributesIntegration'](_0x94e02f),_0x20a88c['descriptionFactory']['registerAttributeLabel'](_0x94e02f,At(_0x4988e3,_0xb8bafd));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3dd813=this['editor'],_0x5201c2=_0x3dd813['locale'],_0xf77a89=_0x3dd813['plugins']['get']('TrackChangesEditing');function _0x4342bd(_0x3de71f,_0x2922db){_0xf77a89['descriptionFactory']['registerDescriptionCallback'](_0x4a18d7=>{if('formatInline'!=_0x4a18d7['type'])return;const {data:_0xbc77bf}=_0x4a18d7;return _0xbc77bf&&_0xbc77bf['commandName']===_0x3de71f?_0xbc77bf['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x5201c2,'*Format:*\x20%0',_0x2922db)}:{'type':'format','content':At(_0x5201c2,'*Remove\x20format:*\x20%0',_0x2922db)}:void 0x0;});}_0x4342bd('bold',At(_0x5201c2,'FORMAT_BOLD')),_0x4342bd('italic',At(_0x5201c2,'FORMAT_ITALIC')),_0x4342bd('underline',At(_0x5201c2,'FORMAT_UNDERLINE')),_0x4342bd('code',At(_0x5201c2,'FORMAT_CODE')),_0x4342bd('strikethrough',At(_0x5201c2,'FORMAT_STRIKETHROUGH')),_0x4342bd('subscript',At(_0x5201c2,'FORMAT_SUBSCRIPT')),_0x4342bd('superscript',At(_0x5201c2,'FORMAT_SUPERSCRIPT'));}}class Ot extends _0x31a8de{['afterInit'](){const _0x30ac5f=this['editor'],_0x5d3022=_0x30ac5f['locale'];if(!_0x30ac5f['plugins']['has']('BlockQuoteEditing'))return;const _0xa87617=_0x30ac5f['plugins']['get']('TrackChangesEditing'),_0x2bf455=this['editor']['commands']['get']('blockQuote');_0xa87617['enableCommand']('blockQuote',(_0x1fdcfc,_0x5deafb={})=>{const _0x36db57=this['editor']['model']['document']['selection'],_0x22e952=_0x5deafb&&void 0x0!==_0x5deafb['forceValue']?_0x5deafb['forceValue']:!_0x2bf455['value'];let _0x5ac8cd=[];if(_0x22e952){const _0x554a34=Array['from'](_0x36db57['getSelectedBlocks']())['filter'](_0x17c3fa=>wt(_0x17c3fa)||function(_0x7b49fb,_0x1acd03){const _0x15b5e8=_0x1acd03['checkChild'](_0x7b49fb['parent'],'blockQuote'),_0xa923b3=_0x1acd03['checkChild'](['$root','blockQuote'],_0x7b49fb);return _0x15b5e8&&_0xa923b3;}(_0x17c3fa,this['editor']['model']['schema']));_0x5ac8cd=Tt(_0x554a34,_0x30ac5f['model']);}else{const _0x39931d=Array['from'](_0x36db57['getSelectedBlocks']())['filter'](_0x2bd632=>wt(_0x2bd632));_0x5ac8cd=Tt(_0x39931d,_0x30ac5f['model']);}_0x30ac5f['model']['change'](()=>{for(const _0x5d3946 of _0x5ac8cd)_0xa87617['markBlockFormat'](_0x5d3946,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x22e952}]});});}),_0xa87617['descriptionFactory']['registerDescriptionCallback'](_0x226da4=>{const {data:_0x28e751}=_0x226da4;if(_0x28e751&&'blockQuote'==_0x28e751['commandName']){const _0x54f3cb=At(_0x5d3022,'ELEMENT_BLOCK_QUOTE');return _0x28e751['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x5d3022,'*Set\x20format:*\x20%0',_0x54f3cb)}:{'type':'format','content':At(_0x5d3022,'*Remove\x20format:*\x20%0',_0x54f3cb)};}});}}function wt(_0x17f390){return'blockQuote'==_0x17f390['parent']['name'];}class Bt extends _0x31a8de{['afterInit'](){const _0x2d51e9=this['editor'],_0x3869ac=_0x2d51e9['locale'],_0x344c38=_0x2d51e9['plugins']['get']('TrackChangesEditing');_0x2d51e9['plugins']['has']('BookmarkEditing')&&(_0x344c38['enableCommand']('insertBookmark'),_0x344c38['enableDefaultAttributesIntegration']('updateBookmark'),_0x344c38['descriptionFactory']['registerDescriptionCallback'](_0x5ed4ab=>{if('insertion'!=_0x5ed4ab['type']&&'deletion'!=_0x5ed4ab['type']&&'attribute'!=_0x5ed4ab['type'])return;const _0x4b8dbe=_0x5ed4ab['getContainedElement']();if(null==_0x4b8dbe)return;if(!_0x4b8dbe['is']('element','bookmark'))return;const _0x602879=_0x4b8dbe['getAttribute']('bookmarkId');if('insertion'==_0x5ed4ab['type'])return{'type':'insertion','content':At(_0x3869ac,'*Insert:*\x20%0','\x22'+_0x602879+'\x22\x20'+At(_0x3869ac,'ELEMENT_BOOKMARK'))};if('deletion'==_0x5ed4ab['type'])return{'type':'deletion','content':At(_0x3869ac,'*Remove:*\x20%0','\x22'+_0x602879+'\x22\x20'+At(_0x3869ac,'ELEMENT_BOOKMARK'))};const {data:_0x274c08}=_0x5ed4ab;if(!_0x274c08||'bookmarkId'!=_0x274c08['key'])return;return{'type':'format','content':At(_0x3869ac,'*Set\x20bookmark:*\x20%0','\x22'+_0x274c08['newValue']+'\x22')};}));}}class Ft extends _0x31a8de{['afterInit'](){const _0x2e6f6f=this['editor'];_0x2e6f6f['plugins']['has']('CaseChange')&&(_0x2e6f6f['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x2e6f6f['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x2e6f6f['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class Dt extends _0x31a8de{['afterInit'](){const _0x4aa60c=this['editor'];_0x4aa60c['commands']['get']('ckbox')&&_0x4aa60c['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class vt extends _0x31a8de{['afterInit'](){const _0x5e6991=this['editor'];if(!_0x5e6991['plugins']['has']('CodeBlock'))return;const _0x4cc97f=_0x5e6991['plugins']['get']('TrackChangesEditing'),_0x5beb6c=_0x5e6991['locale'],_0x3c69c8=_0x5e6991['config']['get']('codeBlock')['languages'],_0x330837=_0x5e6991['commands']['get']('codeBlock');_0x4cc97f['enableCommand']('indentCodeBlock'),_0x4cc97f['enableCommand']('outdentCodeBlock'),_0x4cc97f['enableCommand']('codeBlock',(_0xb4d2b1,_0x471fa8={})=>{const _0x42dae9=_0x5e6991['model'],_0x418536=_0x5e6991['model']['document']['selection'],_0xca6dfb=_0x471fa8&&void 0x0!==_0x471fa8['forceValue']?_0x471fa8['forceValue']:!_0x330837['value'];let _0x37e16a;_0x471fa8['language']||(_0x471fa8['language']=_0x3c69c8[0x0]['language']),_0x37e16a=_0xca6dfb?Array['from'](_0x418536['getSelectedBlocks']())['filter'](_0x57a09c=>xt(_0x57a09c)||function(_0x3f63be,_0x2c03fd){if(_0x3f63be['is']('rootElement')||_0x2c03fd['isLimit'](_0x3f63be))return!0x1;return _0x2c03fd['checkChild'](_0x3f63be['parent'],'codeBlock');}(_0x57a09c,_0x42dae9['schema'])):Array['from'](_0x418536['getSelectedBlocks']())['filter'](_0x2ce269=>xt(_0x2ce269));const _0x1b031c=Tt(_0x37e16a,_0x42dae9);_0x42dae9['change'](()=>{for(const _0x5a8886 of _0x1b031c)_0x4cc97f['markBlockFormat'](_0x5a8886,{'commandName':'codeBlock','commandParams':[{..._0x471fa8,'forceValue':_0xca6dfb}],'formatGroupId':'blockName'});});}),(_0x4cc97f['descriptionFactory']['registerElementLabel']('codeBlock',_0x565e3f=>At(_0x5beb6c,'ELEMENT_CODE_BLOCK',_0x565e3f)),_0x4cc97f['descriptionFactory']['registerDescriptionCallback'](_0x44e49d=>{if('formatBlock'!=_0x44e49d['type'])return;const _0x2373a4=_0x5beb6c['t'],{data:_0x101230}=_0x44e49d;if(!_0x101230||'codeBlock'!=_0x101230['commandName'])return;const _0x3344c9=_0x101230['commandParams'][0x0]['language'],_0x150576=_0x2373a4(_0x3c69c8['find'](_0x2b1f8b=>_0x2b1f8b['language']===_0x3344c9)['label'])['toLowerCase']();return _0x101230['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x5beb6c,'*Set\x20format:*\x20%0',At(_0x5beb6c,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x150576+')')}:{'type':'format','content':At(_0x5beb6c,'*Remove\x20format:*\x20%0',At(_0x5beb6c,'ELEMENT_CODE_BLOCK',0x1))};}));}}function xt(_0x574bab){return'codeBlock'==_0x574bab['name'];}class Pt extends _0x31a8de{['afterInit'](){const _0x4ebe7e=this['editor'];if(!_0x4ebe7e['plugins']['has']('CommentsEditing'))return;_0x4ebe7e['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class Ut extends _0x31a8de{static get['requires'](){return[at];}['init'](){const _0x32a2f6=this['editor'],_0x1bc321=_0x32a2f6['plugins']['get']('TrackChangesEditing');_0x1bc321['enableCommand']('delete');const _0x569dff=_0x32a2f6['commands']['get']('deleteForward');_0x1bc321['enableCommand']('deleteForward',(_0x1f34db,_0x3959ee={})=>{const _0x2550b3=_0x32a2f6['model']['createSelection'](_0x32a2f6['model']['document']['selection']);_0x2550b3['isCollapsed']&&_0x32a2f6['model']['modifySelection'](_0x2550b3,{'direction':'forward','unit':_0x3959ee['unit']});const _0x5d4a0c=_0x2550b3['getFirstRange'](),_0x38adc0=_0x5b1490['fromRange'](_0x5d4a0c);let _0x1b4d78;_0x1f34db(_0x3959ee),_0x1b4d78='$graveyard'==_0x38adc0['root']['rootName']?_0x32a2f6['model']['createRange'](_0x5d4a0c['start']):_0x32a2f6['model']['createRange'](_0x38adc0['start'],_0x38adc0['end']),_0x38adc0['detach'](),_0x32a2f6['model']['enqueueChange'](_0x569dff['buffer']['batch'],_0x30a654=>{_0x569dff['buffer']['lock'](),_0x30a654['setSelection'](_0x30a654['createRange'](_0x1b4d78['end'])),_0x569dff['buffer']['unlock']();});});}}class Gt extends _0x31a8de{['afterInit'](){const _0x5bb587=this['editor'];if(!_0x5bb587['plugins']['has']('ListEditing'))return;const _0x44a40c=_0x5bb587['locale'],_0xbf5277=_0x5bb587['plugins']['get']('TrackChangesEditing'),_0x2ebf07=_0x5bb587['plugins']['has']('TodoListEditing'),_0x2c58df=!!_0x5bb587['config']['get']('list.multiBlock');function _0x4e5127(_0x524222){return{'type':'format','content':''+At(_0x44a40c,'*Set\x20format:*\x20%0',_0x524222)};}function _0x485b95(_0x57a6c0){return{'type':'format','content':''+At(_0x44a40c,'*Remove\x20format:*\x20%0',_0x57a6c0)};}_0xbf5277['enableDefaultAttributesIntegration']('numberedList'),_0xbf5277['enableDefaultAttributesIntegration']('bulletedList'),_0xbf5277['enableDefaultAttributesIntegration']('customNumberedList'),_0xbf5277['enableDefaultAttributesIntegration']('customBulletedList'),_0xbf5277['enableDefaultAttributesIntegration']('indentList'),_0xbf5277['enableDefaultAttributesIntegration']('outdentList'),_0xbf5277['enableDefaultAttributesIntegration']('splitListItemAfter'),_0xbf5277['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x2c58df&&(_0xbf5277['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0xbf5277['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x2ebf07&&(_0xbf5277['enableDefaultAttributesIntegration']('todoList'),_0xbf5277['enableDefaultAttributesIntegration']('checkTodoList'),_0xbf5277['descriptionFactory']['registerDescriptionCallback'](_0x13e6db=>{const {data:_0x1ea6ab}=_0x13e6db;if(_0x1ea6ab&&'todoListChecked'==_0x1ea6ab['key'])return{'type':'format','content':_0x1ea6ab['newValue']?At(_0x44a40c,'*Check\x20item*'):At(_0x44a40c,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x423d6f=>{if(_0x423d6f['batch']['isUndo'])return!0x1;let _0x5631fd=!0x1;const _0x1d64de=_0xbf5277['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x21aa0d=>'todoListChecked'===_0xbf5277['_getAttributeKey'](_0x21aa0d));for(const _0x4cced4 of _0x1d64de){'todo'!=_0x4cced4['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0xbf5277['_findSuggestions'](_0x4cced4['getFirstRange'](),'attribute')['find'](_0x322d20=>'listType'===_0xbf5277['_getAttributeKey'](_0x322d20['suggestion']))||(_0x423d6f['removeMarker'](_0x4cced4['getFirstMarker']()),_0x5631fd=!0x0));}return _0x5631fd;})),_0xbf5277['descriptionFactory']['registerAttributeLabel']('listIndent',At(_0x44a40c,'FORMAT_INDENT'));const _0x2f1504={'type':'format','content':''};_0xbf5277['descriptionFactory']['registerDescriptionCallback'](_0x4fd070=>{const {data:_0xd5958}=_0x4fd070;if(!_0xd5958||'listType'!=_0xd5958['key'])return;let _0x3a22fe=_0x4fd070['head'];for(;_0x3a22fe;){if(_0x3a22fe['data']&&(('listStyle'==_0x3a22fe['data']['key']||'listMarkerStyle'==_0x3a22fe['data']['key'])&&(_0x3a22fe['data']['newValue']&&'default'!=_0x3a22fe['data']['newValue']||'default'!=_0x3a22fe['data']['oldValue']&&!_0xd5958['newValue'])||!_0x2c58df&&_0x3a22fe['data']['key']==Ke))return _0x2f1504;_0x3a22fe=_0x3a22fe['next'];}if(null==_0xd5958['newValue'])switch(_0xd5958['oldValue']){case'bulleted':return _0x485b95(At(_0x44a40c,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x485b95(At(_0x44a40c,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x485b95(At(_0x44a40c,'ELEMENT_TODO_LIST'));}switch(_0xd5958['newValue']){case'bulleted':return _0x4e5127(At(_0x44a40c,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4e5127(At(_0x44a40c,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4e5127(At(_0x44a40c,'ELEMENT_TODO_LIST'));}}),_0xbf5277['descriptionFactory']['registerDescriptionCallback'](_0x2f2ac7=>{const {data:_0xe450cf}=_0x2f2ac7;if(_0xe450cf&&'listIndent'==_0xe450cf['key'])return null==_0xe450cf['newValue']||null==_0xe450cf['oldValue']&&0x0==_0xe450cf['newValue']?_0x2f1504:void 0x0;}),_0xbf5277['descriptionFactory']['registerDescriptionCallback'](_0x9aa94d=>{if('attribute'!=_0x9aa94d['type'])return;const {data:_0x206d56}=_0x9aa94d;if(!_0x206d56||'listItemId'!=_0x206d56['key'])return;const _0x10ea82=Ht(_0x9aa94d);return'newValue'==_0x10ea82?{'type':'format','content':At(_0x44a40c,'*Merge:*\x20list\x20item')}:'oldValue'==_0x10ea82?{'type':'format','content':At(_0x44a40c,'*Split:*\x20list\x20item')}:_0x2f1504;}),_0x5bb587['model']['document']['registerPostFixer'](_0x174bc=>this['listItemIdFixer'](_0x174bc)),_0x5bb587['model']['document']['registerPostFixer'](_0x4f8695=>this['noTrackChangesFixer'](_0x4f8695)),_0x5bb587['model']['document']['on']('change:data',(_0x15f33c,_0x51e0eb)=>{if(_0x51e0eb['isUndo']||!_0x51e0eb['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x4db815){if(_0x4db815['batch']['isUndo']||!_0x4db815['batch']['isLocal'])return!0x1;let _0x20444e=!0x1;const _0x56a070=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x284950=>_0x284950['data']&&'listItemId'==_0x284950['data']['key'])['filter'](_0x5e3887=>_0x5e3887['data']['newValue']&&_0x5e3887['data']['oldValue']);for(const _0x2f505b of _0x56a070)Ht(_0x2f505b)||(_0x4db815['removeMarker'](_0x2f505b['getFirstMarker']()),_0x20444e=!0x0);return _0x20444e;}['noTrackChangesFixer'](_0x34ab45){if(_0x34ab45['batch']['isUndo']||!_0x34ab45['batch']['isLocal'])return!0x1;const _0x2a437d=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x2a437d['trackChangesCommand']['value'])return!0x1;let _0x56776e=!0x1;const _0x4d3393=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x11ab6a=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x5c9c84=>'attribute'==_0x5c9c84['type'])['filter'](_0x2997a8=>_0x4d3393['includes'](_0x2997a8['attributeKey']));if(0x0==_0x11ab6a['length'])return _0x56776e;for(const _0x308d66 of _0x11ab6a){const _0x1343d6=_0x2a437d['_findSuggestions'](_0x308d66['range'],'attribute')['filter'](_0x48bb8e=>!_0x48bb8e['meta']['isNextTo'])['map'](_0x58a6a2=>_0x58a6a2['suggestion'])['filter'](_0x437ddb=>{const _0xe86a11=_0x2a437d['_getAttributeKey'](_0x437ddb);return _0x4d3393['includes'](_0xe86a11);});if(_0x1343d6['length']){for(const _0xce231 of _0x1343d6)_0x34ab45['removeMarker'](_0xce231['getFirstMarker']());_0x56776e=!0x0;}}return _0x56776e;}['assureChains'](){const _0x232dfb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4793f8=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x5c5a54;const _0x1bc7a2=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x53cd38=>{if(_0x53cd38['data']['oldRange']||!_0x53cd38['data']['newRange'])return null;if(!_0x53cd38['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x5e7c4f}=_0x6b12f7(_0x53cd38['name']);if(!_0x232dfb['hasSuggestion'](_0x5e7c4f))return null;const _0x1c7db6=_0x232dfb['getSuggestion'](_0x5e7c4f);return _0x4793f8['includes'](_0x1c7db6['data']['key']);})['map'](_0x514731=>{const {id:_0x5c03ab}=_0x6b12f7(_0x514731['name']),_0x558913=_0x232dfb['getSuggestion'](_0x5c03ab);return _0x5c5a54=_0x558913['attributes']['groupId'],_0x558913['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x1bc7a2['size'])return;const _0x429f8a=_0x232dfb['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2dc135=>'attribute'==_0x2dc135['type']&&_0x2dc135['data']&&_0x4793f8['includes'](_0x2dc135['data']['key'])&&_0x2dc135['attributes']['groupId']!=_0x5c5a54)['map'](_0xe86f0b=>({'listItem':_0xe86f0b['getFirstRange']()['start']['nodeAfter'],'groupId':_0xe86f0b['attributes']['groupId']})),_0x3b6a22=new Set();for(const {groupId:_0x3705ca,listItem:_0x199e57}of _0x429f8a)_0x1bc7a2['has'](_0x199e57)&&_0x3b6a22['add'](_0x3705ca);for(const _0x248344 of _0x232dfb['getSuggestions']())_0x3b6a22['has'](_0x248344['attributes']['groupId'])&&_0x248344['setAttribute']('groupId',_0x5c5a54);}['_supportLegacySuggestions'](){const _0x4a9e51=this['editor'],_0x57f854=_0x4a9e51['locale'],_0x16a44c=_0x4a9e51['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x16a44c['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x14e335,_0xa57df7){const _0x3ef2a2=[];for(let _0x38325f of _0x14e335)_0x38325f['start']['nodeAfter']===_0x38325f['end']['parent']&&(_0x38325f=_0x4a9e51['model']['createRange'](_0x4a9e51['model']['createPositionAt'](_0x38325f['start']['nodeAfter'],0x0))),_0x3ef2a2['push'](_0x38325f);_0x4a9e51['model']['change'](_0x34a4ce=>{const _0x2c7669=_0x4a9e51['model']['document']['selection'],_0x19e2ea=Array['from'](_0x2c7669['getRanges']())['map'](_0x4cafe7=>_0x5b1490['fromRange'](_0x4cafe7));_0x34a4ce['setSelection'](_0x3ef2a2),_0x4a9e51['commands']['get'](_0xa57df7['commandName'])['refresh'](),_0xa57df7['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x4a9e51['execute'](_0xa57df7['commandName'],..._0xa57df7['commandParams']),_0x34a4ce['setSelection'](_0x19e2ea);for(const _0xf8ba4c of _0x19e2ea)_0xf8ba4c['detach']();});}),_0x16a44c['descriptionFactory']['registerElementLabel'](function(_0x89601b){const _0x52b240=!_0x4a9e51['model']['schema']['isObject'](_0x89601b),_0x4e20ea=_0x89601b['previousSibling'],_0x37eb3a=_0x89601b['nextSibling'],_0x4a661f=_0x89601b['getAttribute']('listItemId'),_0x33f82c=!_0x4e20ea||_0x4e20ea['getAttribute']('listItemId')!==_0x4a661f,_0x34293c=!_0x37eb3a||_0x37eb3a['getAttribute']('listItemId')!==_0x4a661f;return _0x52b240&&Boolean(_0x4a661f)&&_0x33f82c&&_0x34293c;},_0x549d70=>At(_0x57f854,'ELEMENT_LIST_ITEM',_0x549d70));}['_registerLegacyDescription'](){const _0x373b71=this['editor'],_0x33b088=_0x373b71['locale'];function _0x2ac7ee(_0x4d5372){const _0x482a47=_0x373b71['commands']['get']('bulletedList')['value'],_0x3cbea5=_0x373b71['commands']['get']('numberedList')['value'];return'numberedList'===_0x4d5372?_0x482a47:_0x3cbea5;}_0x373b71['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x2fd2bf){if('formatBlock'!=_0x2fd2bf['type'])return;const {data:_0x59c1da}=_0x2fd2bf;if(!_0x59c1da)return;let _0x1aa5a4,_0x16d7d3,_0xb144c9,_0x1b3602;switch(_0x59c1da['commandName']){case'bulletedList':_0xb144c9=_0x59c1da['commandParams'][0x0]['forceValue'],_0x1b3602=_0x2ac7ee(_0x59c1da['commandName']),_0x1aa5a4=_0xb144c9?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1b3602&&_0x373b71['config']['get']('list.multiBlock')||(_0x1aa5a4='*Change\x20to:*\x20%0'),_0x16d7d3={'type':'format','content':At(_0x33b088,_0x1aa5a4,At(_0x33b088,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0xb144c9=_0x59c1da['commandParams'][0x0]['forceValue'],_0x1b3602=_0x2ac7ee(_0x59c1da['commandName']),_0x1aa5a4=_0xb144c9?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1b3602&&_0x373b71['config']['get']('list.multiBlock')||(_0x1aa5a4='*Change\x20to:*\x20%0'),_0x16d7d3={'type':'format','content':At(_0x33b088,_0x1aa5a4,At(_0x33b088,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x1aa5a4='*Indent:*\x20%0',_0x16d7d3={'type':'format','content':At(_0x33b088,_0x1aa5a4,At(_0x33b088,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x1aa5a4=function(_0x161f78){const _0x333dd8=_0x161f78['getFirstRange']();let _0x5c28fb=_0x333dd8['start']['nodeAfter'];for(;_0x5c28fb&&_0x333dd8['containsItem'](_0x5c28fb);){if(_0x5c28fb['getAttribute']('listIndent')>0x0)return!0x1;_0x5c28fb=_0x5c28fb['nextSibling'];}return!0x0;}(_0x2fd2bf)?At(_0x33b088,'*Format:*\x20remove\x20from\x20%0',At(_0x33b088,function(_0x5a8c2d){return'ELEMENT_'+_0x5a8c2d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x2fd2bf))):At(_0x33b088,'*Outdent:*\x20%0',At(_0x33b088,'ELEMENT_LIST_ITEM')),_0x16d7d3={'type':'format','content':_0x1aa5a4};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x59c1da['multipleBlocks']&&(_0x1aa5a4='*Merge:*\x20%0',_0x16d7d3={'type':'deletion','content':At(_0x33b088,_0x1aa5a4,At(_0x33b088,'ELEMENT_LIST_ITEM'))});}return _0x16d7d3;});}}function Ht(_0x31eea9){let _0x106b9d=_0x31eea9['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x106b9d;){const _0x1f4d61=_0x106b9d['getAttribute']('listItemId');if(!_0x1f4d61)return!0x1;if(_0x1f4d61==_0x31eea9['data']['newValue'])return'newValue';if(_0x1f4d61==_0x31eea9['data']['oldValue'])return'oldValue';_0x106b9d=_0x106b9d['previousSibling'];}return!0x1;}class $t extends _0x31a8de{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x1bbc64=this['editor']['config']['get']('list.properties'),_0x2f77bb=this['editor']['plugins']['get']('TrackChangesEditing');_0x1bbc64['styles']&&_0x2f77bb['enableDefaultAttributesIntegration']('listStyle'),_0x1bbc64['reversed']&&_0x2f77bb['enableDefaultAttributesIntegration']('listReversed'),_0x1bbc64['startIndex']&&_0x2f77bb['enableDefaultAttributesIntegration']('listStart');const _0x405e13={'type':'format','content':''};_0x2f77bb['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x458c1f=this['editor']['locale'];_0x2f77bb['descriptionFactory']['registerAttributeLabel']('listReversed',At(_0x458c1f,'FORMAT_LIST_REVERSED')),_0x2f77bb['descriptionFactory']['registerDescriptionCallback'](_0x2bd8db=>{const {data:_0x44c88c}=_0x2bd8db;if(_0x44c88c&&'listReversed'==_0x44c88c['key'])return null==_0x44c88c['newValue']||0x0==_0x44c88c['newValue']&&null==_0x44c88c['oldValue']?_0x405e13:void 0x0;}),_0x2f77bb['descriptionFactory']['registerAttributeLabel']('listStart',At(_0x458c1f,'FORMAT_LIST_START')),_0x2f77bb['descriptionFactory']['registerDescriptionCallback'](_0x423f83=>{const {data:_0x414c9d}=_0x423f83;if(_0x414c9d&&'listStart'==_0x414c9d['key'])return null==_0x414c9d['newValue']||0x1==_0x414c9d['newValue']&&null==_0x414c9d['oldValue']?_0x405e13:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x50e57c=>{if(_0x50e57c['batch']['isUndo'])return!0x1;let _0x2e0fb8=!0x1;const _0x519c70=_0x2f77bb['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5ddefd=>{const _0x290595=_0x2f77bb['_getAttributeKey'](_0x5ddefd);return'listStart'==_0x290595||'listReversed'==_0x290595;});for(const _0xa118a4 of _0x519c70){const _0x4f31de=_0xa118a4['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x4f31de||'customNumbered'==_0x4f31de)continue;_0x2f77bb['_findSuggestions'](_0xa118a4['getFirstRange'](),'attribute')['find'](_0xa1516=>'listType'==_0x2f77bb['_getAttributeKey'](_0xa1516['suggestion']))||(_0x50e57c['removeMarker'](_0xa118a4['getFirstMarker']()),_0x2e0fb8=!0x0);}return _0x2e0fb8;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x574285){const _0x292c43=this['editor']['locale'],{data:_0x5b0970}=_0x574285,_0x3b236c={'type':'format','content':''};if(!_0x5b0970||'listStyle'!=_0x5b0970['key'])return;if(!_0x5b0970['oldValue'])return'default'==_0x5b0970['newValue']?_0x3b236c:{'type':'format','content':''+At(_0x292c43,'*Set\x20format:*\x20%0',At(_0x292c43,this['_getTranslationKeyForListStyle'](_0x5b0970['newValue'])))};if(!_0x5b0970['newValue']){if('default'==_0x5b0970['oldValue'])return _0x3b236c;let _0xd143b6=_0x574285['head'];for(;_0xd143b6;){if(_0xd143b6['data']&&'listType'==_0xd143b6['data']['key']&&_0xd143b6['data']['newValue'])return _0x3b236c;_0xd143b6=_0xd143b6['next'];}return{'type':'format','content':''+At(_0x292c43,'*Remove\x20format:*\x20%0',At(_0x292c43,this['_getTranslationKeyForListStyle'](_0x5b0970['oldValue'])))};}if('default'!=_0x5b0970['newValue'])return{'type':'format','content':''+At(_0x292c43,'*Set\x20format:*\x20%0',At(_0x292c43,this['_getTranslationKeyForListStyle'](_0x5b0970['newValue'])))};let _0x3ea9cb=_0x574285['head'];for(;_0x3ea9cb;){if(_0x3ea9cb['data']&&'listType'==_0x3ea9cb['data']['key']&&_0x3ea9cb['data']['newValue']&&_0x3ea9cb['data']['oldValue'])return _0x3b236c;_0x3ea9cb=_0x3ea9cb['next'];}return{'type':'format','content':At(_0x292c43,'*Set\x20format:*\x20%0',At(_0x292c43,'ELEMENT_'+_0x574285['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x407dd8=this['editor'],_0x59d106=_0x407dd8['locale'];_0x407dd8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x48894f=>{if('formatBlock'!=_0x48894f['type'])return;const {data:_0x38b537}=_0x48894f;if(!_0x38b537)return;let _0xbc9dff,_0x1af7e7;switch(_0x38b537['commandName']){case'listStyle':_0xbc9dff='*Change\x20to:*\x20%0',_0x1af7e7={'type':'format','content':At(_0x59d106,_0xbc9dff,At(_0x59d106,this['_getTranslationKeyForListStyle'](_0x38b537['commandParams'][0x0]['type'])))};break;case'listReversed':_0xbc9dff=_0x38b537['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1af7e7={'type':'format','content':At(_0x59d106,_0xbc9dff)};break;case'listStart':_0xbc9dff='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1af7e7={'type':'format','content':At(_0x59d106,_0xbc9dff,_0x38b537['commandParams'][0x0]['startIndex'])};}return _0x1af7e7;});}['_getTranslationKeyForListStyle'](_0xafcba9){return'ELEMENT_'+function(_0x406de0){if(Wt['includes'](_0x406de0))return'bulleted';if(Vt['includes'](_0x406de0))return'numbered';return null;}(_0xafcba9)['toUpperCase']()+'_LIST_'+_0xafcba9['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 _0x31a8de{['afterInit'](){const _0x1fba4a=this['editor'];_0x1fba4a['commands']['get']('emoji')&&_0x1fba4a['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class zt extends _0x31a8de{static get['requires'](){return[lt];}['init'](){const _0x4adf5d=this['editor'],_0x17254b=_0x4adf5d['plugins']['get']('TrackChangesEditing'),_0x4d483c=_0x4adf5d['commands']['get']('enter');_0x17254b['enableCommand']('enter',()=>{_0x4adf5d['model']['change'](_0x198562=>{const _0x5ecc48=_0x4adf5d['model']['document']['selection'],_0x4357c6=_0x5ecc48['getFirstPosition'](),_0x45fb5a=_0x5b1490['fromRange'](_0x5ecc48['getFirstRange']());if(_0x4d483c['enterBlock'](_0x198562)){const _0x3fb5d8=_0x4adf5d['model']['createPositionAt'](_0x4357c6['parent']['nextSibling'],0x0),_0x23c9ad=_0x198562['createRange'](_0x4357c6,_0x3fb5d8);_0x17254b['markInsertion'](_0x23c9ad);}else _0x198562['setSelection'](_0x198562['createRange'](_0x45fb5a['end']));_0x45fb5a['detach'](),_0x4d483c['fire']('afterExecute',{'writer':_0x198562});});});}}class Kt extends _0x31a8de{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x32afa7=this['editor']['plugins']['get']('TrackChangesEditing');_0x32afa7['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x32afa7['enableCommand']('findNext'),_0x32afa7['enableCommand']('findPrevious'),_0x32afa7['enableCommand']('replace'),_0x32afa7['enableCommand']('replaceAll');}['handleFindCommand'](_0x423f35,_0xcde3f6,_0x14bee9={}){const _0x1ea5af=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x423f35(_0x122558=>{let _0x3bee5e=('string'==typeof _0xcde3f6?_0x1ea5af['findByTextCallback'](_0xcde3f6,_0x14bee9):_0xcde3f6)(_0x122558);Array['isArray'](_0x3bee5e)&&(_0x3bee5e={'results':_0x3bee5e,'searchText':'string'==typeof _0xcde3f6?_0xcde3f6:''});const _0x3071ac=_0x3bee5e['results']['filter'](_0x333972=>!0x1===this['_isInDeletionRange'](_0x333972,_0x122558['item']));return{..._0x3bee5e,'results':_0x3071ac};},_0x14bee9);}['_isInDeletionRange'](_0x56a9f2,_0x45878b){const _0x3b190d=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x45878b,_0x56a9f2['start']),this['editor']['model']['createPositionAt'](_0x45878b,_0x56a9f2['end']));for(const _0x589349 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x3b190d['getIntersection'](_0x589349['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 _0x31a8de{['afterInit'](){const _0x219790=this['editor']['locale'],_0x229c7a=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x2ccf28,commandName:_0x116f7d}of Xt)this['editor']['plugins']['has'](_0x2ccf28)&&_0x229c7a['enableDefaultAttributesIntegration'](_0x116f7d);_0x229c7a['descriptionFactory']['registerAttributeLabel']('fontSize',At(_0x219790,'FORMAT_FONT_SIZE')),_0x229c7a['descriptionFactory']['registerAttributeLabel']('fontFamily',At(_0x219790,'FORMAT_FONT_FAMILY')),_0x229c7a['descriptionFactory']['registerAttributeLabel']('fontColor',At(_0x219790,'FORMAT_FONT_COLOR')),_0x229c7a['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',At(_0x219790,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x33fb77=this['editor'],_0x4b8f9d=_0x33fb77['locale'];_0x33fb77['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x10699e=>{const _0x221740=_0x4b8f9d['t'];if('formatInline'!=_0x10699e['type'])return;const {data:_0x75da6a}=_0x10699e;if(null!=_0x75da6a){if('fontSize'==_0x75da6a['commandName']){const _0x33fc02=_0x75da6a['commandParams'][0x0]['value'];if(_0x33fc02){const _0x410b92=_0x221740(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x553c04=>_0x553c04['model']==_0x33fc02)['title'])['toLowerCase']();return{'type':'format','content':At(_0x4b8f9d,'*Set\x20font\x20size:*\x20%0',_0x410b92)};}return{'type':'format','content':At(_0x4b8f9d,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x75da6a['commandName']){const _0x5d8de7=_0x75da6a['commandParams'][0x0]['value'];return _0x5d8de7?{'type':'format','content':At(_0x4b8f9d,'*Set\x20font\x20family:*\x20%0',_0x5d8de7)}:{'type':'format','content':At(_0x4b8f9d,'*Reset\x20font\x20family*')};}if('fontColor'==_0x75da6a['commandName']){const _0x5b32ce=_0x75da6a['commandParams'][0x0]['value'];if(_0x5b32ce){const _0xa80a5e=_0x2d668a(this['editor']['config']['get']('fontColor.colors'))['find'](_0x5e3b3e=>_0x5e3b3e['model']==_0x5b32ce);let _0x2696bc=_0x5b32ce,_0x3d76bb='';return _0xa80a5e&&(_0x2696bc=_0xa80a5e['label'],_0x3d76bb=_0x221740(_0x2696bc)['toLowerCase']()),{'type':'format','content':At(_0x4b8f9d,'*Set\x20font\x20color:*\x20%0',_0x3d76bb)['trim'](),'color':{'value':_0x5b32ce,'title':_0x3d76bb||_0x2696bc}};}return{'type':'format','content':At(_0x4b8f9d,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x75da6a['commandName']){const _0x34218b=_0x75da6a['commandParams'][0x0]['value'];if(_0x34218b){const _0x450743=_0x2d668a(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0xf7bdea=>_0xf7bdea['model']==_0x34218b);let _0x5e7675=_0x34218b,_0x9740e2='';return _0x450743&&(_0x5e7675=_0x450743['label'],_0x9740e2=_0x221740(_0x5e7675)['toLowerCase']()),{'type':'format','content':At(_0x4b8f9d,'*Set\x20font\x20background\x20color:*\x20%0',_0x9740e2)['trim'](),'color':{'value':_0x34218b,'title':_0x9740e2||_0x5e7675}};}return{'type':'format','content':At(_0x4b8f9d,'*Reset\x20font\x20background\x20color*')};}}});}}class qt extends _0x31a8de{['afterInit'](){const {plugins:_0x2cda8a}=this['editor'];_0x2cda8a['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x2cda8a['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x5f647e,plugins:_0x5e7083,commands:_0x3fda16}=this['editor'],_0x38c3ce=_0x5e7083['get']('TrackChangesEditing');_0x3fda16['get']('footnotesStyle')&&_0x38c3ce['enableDefaultAttributesIntegration']('footnotesStyle'),_0x3fda16['get']('footnotesStart')&&_0x38c3ce['enableDefaultAttributesIntegration']('footnotesStart'),_0x38c3ce['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',At(_0x5f647e,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x38c3ce['descriptionFactory']['registerAttributeLabel']('footnotesListStart',At(_0x5f647e,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x345a7e=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x3e5ee3,commands:_0x269441}=this['editor'];_0x269441['get']('insertFootnote')&&_0x345a7e['enableCommand']('insertFootnote'),_0x345a7e['descriptionFactory']['registerElementLabel']('footnoteRef',_0xc4f3b0=>At(_0x3e5ee3,'ELEMENT_FOOTNOTE_REF',_0xc4f3b0)),_0x345a7e['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x3f7cc0=>At(_0x3e5ee3,'ELEMENT_FOOTNOTE_DEFINITION',_0x3f7cc0)),_0x345a7e['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x1b49b7=>At(_0x3e5ee3,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x1b49b7));}}class Qt extends _0x31a8de{['afterInit'](){const _0x2d04fb=this['editor'],_0x46bd3b=_0x2d04fb['plugins']['get']('TrackChangesEditing'),_0x1487b6=_0x2d04fb['commands']['get']('copyFormat'),_0x26778c=_0x2d04fb['commands']['get']('pasteFormat');_0x1487b6&&_0x26778c&&(_0x46bd3b['enableDefaultAttributesIntegration']('pasteFormat'),_0x46bd3b['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x5a63e8=this['editor'],_0x2d7ae0=_0x5a63e8['locale'];_0x5a63e8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x850a1e=>{if('formatBlock'!=_0x850a1e['type']&&'formatInline'!=_0x850a1e['type'])return;const {data:_0x4e10fd}=_0x850a1e;if(_0x4e10fd&&'pasteFormat'===_0x4e10fd['commandName']){const _0x577e42=[],_0x4b93d7=_0x4e10fd['commandParams'][0x0];for(const [_0x3e4106,_0x48e247]of Object['entries'](_0x4b93d7))_0x577e42['push'](Zt(_0x5a63e8,_0x3e4106,_0x48e247));return _0x577e42['length']?{'type':'format','content':At(_0x2d7ae0,'*Set\x20format\x20to:*\x20%0',_0x577e42['join'](',\x20'))}:{'type':'format','content':At(_0x2d7ae0,'*Remove\x20all\x20formatting*')};}});}}function Zt(_0x6cc786,_0x541980,_0x4b47ce){const _0x582588=_0x6cc786['locale']['t'],_0x34bab5=_0x541980['split'](/(?=[A-Z])/)['join']('\x20'),_0x1fd280=_0x582588(_0x34bab5['charAt'](0x0)['toUpperCase']()+_0x34bab5['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x4b47ce)return _0x1fd280;if('fontColor'===_0x541980||'fontBackgroundColor'===_0x541980){const _0x31104b=_0x2d668a(_0x6cc786['config']['get']('fontColor.colors'))['find'](_0xef2a08=>_0xef2a08['model']==_0x4b47ce);return _0x1fd280+'\x20('+(_0x31104b?_0x582588(_0x31104b['label'])['toLowerCase']():_0x4b47ce)+')';}if('fontSize'===_0x541980&&isNaN(parseFloat(_0x4b47ce))){const _0xaaa55=_0x6cc786['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x6cc786['config']['get']('fontSize.options'))['find'](_0x3e2d8d=>_0x3e2d8d['model']==_0x4b47ce);return _0x1fd280+'\x20('+(_0xaaa55?_0x582588(_0xaaa55['title'])['toLowerCase']():_0x4b47ce)+')';}return _0x1fd280+'\x20('+_0x4b47ce+')';}class Jt extends _0x31a8de{['_headingOptions'];['afterInit'](){const _0x17e4d7=this['editor'];if(!_0x17e4d7['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x17e4d7['config']['get']('heading.options');const _0x1d8835=_0x17e4d7['locale'],_0x1100ab=_0x17e4d7['plugins']['get']('TrackChangesEditing');_0x1100ab['enableDefaultAttributesIntegration']('heading');for(const _0x1ee2d7 of this['_headingOptions'])'paragraph'!=_0x1ee2d7['model']&&_0x1100ab['descriptionFactory']['registerElementLabel'](_0x1ee2d7['model'],_0x2bf1fd=>{const _0x5b0e30=this['_getHeadingLevel'](_0x1ee2d7['model']);return null!==_0x5b0e30?_0x5cf6c9(_0x2bf1fd,_0x5b0e30):_0x4800a4(_0x2bf1fd,_0x1ee2d7['title']);});function _0x5cf6c9(_0x4a1f18,_0x3f2663){return At(_0x1d8835,'ELEMENT_HEADING',[_0x4a1f18,_0x3f2663]);}function _0x4800a4(_0x3f27b0,_0x2ffa5f){return At(_0x1d8835,'ELEMENT_HEADING_CUSTOM',[_0x3f27b0,_0x2ffa5f]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x238003=this['editor'],_0x2cb20f=_0x238003['locale'];function _0x57c3f3(_0x1ad167,_0x40cd6a){return At(_0x2cb20f,'ELEMENT_HEADING_CUSTOM',[_0x1ad167,_0x40cd6a]);}_0x238003['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4f22f7=>{if('formatBlock'!=_0x4f22f7['type'])return;const {data:_0x2958ce}=_0x4f22f7;if(_0x2958ce&&'heading'==_0x2958ce['commandName']){const _0x24cf9e=_0x2958ce['commandParams'][0x0]['value'],_0x2ee1c1=this['_getHeadingLevel'](_0x24cf9e);if(null!==_0x2ee1c1)return{'type':'format','content':At(_0x2cb20f,'*Change\x20to:*\x20%0',(_0x263fe1=0x1,_0x196447=_0x2ee1c1,At(_0x2cb20f,'ELEMENT_HEADING',[_0x263fe1,_0x196447])))};const _0x91d90=this['_headingOptions']['find'](_0x57c5af=>_0x57c5af['model']===_0x24cf9e)['title'];return{'type':'format','content':At(_0x2cb20f,'*Change\x20to:*\x20%0',_0x57c3f3(0x1,_0x91d90))};}var _0x263fe1,_0x196447;});}['_getHeadingLevel'](_0x3a6d9e){const _0x182524=_0x3a6d9e['match'](/^heading(\d+)/);if(_0x182524)return _0x182524[0x1];const _0x433271=this['_headingOptions']?.['find'](_0x39c0f6=>_0x39c0f6['model']==_0x3a6d9e);if(_0x433271&&_0x433271['view']){const _0x5a902a=_0x433271['view'],_0xb64abe=(_0x5a902a['name']??_0x5a902a)['match'](/^h(\d+)/);if(_0xb64abe)return _0xb64abe[0x1];}return null;}}class te extends _0x31a8de{['afterInit'](){const _0x3efccc=this['editor'];if(!_0x3efccc['plugins']['has']('HighlightEditing'))return;const _0x265d3c=_0x3efccc['plugins']['get']('TrackChangesEditing'),_0x108685=_0x3efccc['locale'];_0x265d3c['enableDefaultAttributesIntegration']('highlight'),_0x265d3c['descriptionFactory']['registerAttributeLabel']('highlight',At(_0x108685,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3865ab=this['editor'],_0x308657=_0x3865ab['locale'];_0x3865ab['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3a3e32=>{if('formatInline'!=_0x3a3e32['type'])return;const {data:_0xf16bf3}=_0x3a3e32;if(_0xf16bf3&&'highlight'==_0xf16bf3['commandName']){const _0x5045de=_0x308657['t'],_0x19393c=_0xf16bf3['commandParams'][0x0]['value'];if(_0x19393c){const _0x557064=_0x3865ab['config']['get']('highlight.options')['find'](_0x423477=>_0x423477['model']==_0x19393c),_0x2ef666=_0x5045de(_0x557064['title'])['toLowerCase']();return{'type':'format','content':At(_0x308657,'*Set\x20highlight:*\x20%0',_0x2ef666),'color':{'value':_0x557064['color'],'title':_0x557064['title']}};}return{'type':'format','content':At(_0x308657,'*Remove\x20highlight*',At(_0x308657,'FORMAT_HIGHLIGHT'))};}});}}class ee extends _0x31a8de{['afterInit'](){const _0x84ea0d=this['editor'];if(!_0x84ea0d['plugins']['has']('HorizontalLineEditing'))return;_0x84ea0d['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x171b8b=_0x84ea0d['plugins']['get']('TrackChangesEditing'),_0x5eb1bd=_0x84ea0d['locale'];_0x171b8b['descriptionFactory']['registerElementLabel']('horizontalLine',_0x53d69d=>At(_0x5eb1bd,'ELEMENT_HORIZONTAL_LINE',_0x53d69d));}}class ne extends _0x31a8de{['afterInit'](){const _0x57d399=this['editor'];if(!_0x57d399['plugins']['has']('HtmlEmbed'))return;const _0x49e795=_0x57d399['plugins']['get']('TrackChangesEditing'),_0x3e37c8=_0x57d399['locale'];_0x49e795['descriptionFactory']['registerElementLabel']('rawHtml',_0x299dc1=>At(_0x3e37c8,'ELEMENT_HTML_EMBED',_0x299dc1)),_0x49e795['enableDefaultAttributesIntegration']('htmlEmbed'),_0x49e795['descriptionFactory']['registerDescriptionCallback'](_0x1484a6=>{if('attribute'!=_0x1484a6['type'])return;const {data:_0x2942a7}=_0x1484a6;if(_0x2942a7&&'value'==_0x2942a7['key']&&_0x1484a6['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x216599=At(_0x3e37c8,'ELEMENT_HTML_EMBED');return{'type':'format','content':At(_0x3e37c8,'*Change\x20%0\x20content*',_0x216599)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x13f8de=this['editor'],_0x481317=_0x13f8de['locale'];_0x13f8de['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x26ae5c=>{if('formatBlock'!=_0x26ae5c['type'])return;const {data:_0x34efba}=_0x26ae5c;if(_0x34efba&&'htmlEmbed'==_0x34efba['commandName']){const _0x57019e=At(_0x481317,'ELEMENT_HTML_EMBED');return{'type':'format','content':At(_0x481317,'*Change\x20%0\x20content*',_0x57019e)};}});}}class ie extends _0x31a8de{['afterInit'](){const _0x46169e=this['editor'];if(!_0x46169e['plugins']['has']('ImageEditing'))return;const _0x5a5d22=_0x46169e['plugins']['get']('TrackChangesEditing'),_0x478e3b=_0x46169e['plugins']['get']('ImageUtils'),_0x203ff7=_0x46169e['locale'];_0x5a5d22['enableCommand']('insertImage'),_0x5a5d22['descriptionFactory']['registerElementLabel']('imageBlock',_0x3c3ca3=>At(_0x203ff7,'ELEMENT_IMAGE',_0x3c3ca3)),_0x5a5d22['descriptionFactory']['registerElementLabel']('imageInline',_0x1bcb07=>At(_0x203ff7,'ELEMENT_INLINE_IMAGE',_0x1bcb07)),_0x5a5d22['descriptionFactory']['registerElementLabel']('caption',()=>At(_0x203ff7,'ELEMENT_CAPTION')),_0x46169e['plugins']['has']('ImageUploadEditing')&&_0x5a5d22['enableCommand']('uploadImage'),_0x46169e['plugins']['has']('ImageBlockEditing')&&_0x46169e['plugins']['has']('ImageInlineEditing')&&(_0x5a5d22['enableCommand']('imageTypeInline',(_0x3a14a5,_0x3dc7cc)=>{const _0x436da7=_0x478e3b['getClosestSelectedImageElement'](_0x46169e['model']['document']['selection']);_0x46169e['model']['change'](()=>{_0x5a5d22['markBlockFormat'](_0x436da7,{'commandName':'imageTypeInline','commandParams':[_0x3dc7cc]},[],'convertBlockImageToInline');});}),_0x5a5d22['enableCommand']('imageTypeBlock',(_0x56c4bb,_0x335a10)=>{_0x46169e['model']['change'](_0x5996aa=>{let _0x39d229=_0x478e3b['getClosestSelectedImageElement'](_0x46169e['model']['document']['selection']),_0x301b02=_0x5996aa['createRangeOn'](_0x39d229);const _0x5dd17b=tt['fromPosition'](_0x301b02['start'],'toPrevious'),_0x194c2c=tt['fromPosition'](_0x301b02['end'],'toNext');_0x5a5d22['forceDefaultExecution'](()=>_0x56c4bb(_0x335a10)),_0x39d229=_0x478e3b['getClosestSelectedImageElement'](_0x46169e['model']['document']['selection']),_0x301b02=_0x5996aa['createRangeOn'](_0x39d229);const _0x4668a2=_0x5996aa['createRange'](_0x5dd17b,_0x194c2c);_0x5dd17b['detach'](),_0x194c2c['detach'](),_0x5a5d22['markBlockFormat'](_0x39d229,{'commandName':'imageTypeInline','commandParams':[_0x335a10]},[],'convertInlineImageToBlock'),_0x4668a2['start']['isBefore'](_0x301b02['start'])&&_0x5a5d22['markInsertion'](_0x5996aa['createRange'](_0x4668a2['start'],_0x301b02['start']),'convertInlineImageToBlock'),_0x301b02['end']['isBefore'](_0x4668a2['end'])&&_0x5a5d22['markInsertion'](_0x5996aa['createRange'](_0x301b02['end'],_0x4668a2['end']),'convertInlineImageToBlock');});}),_0x5a5d22['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x5a5d22['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x5a5d22['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x5a5d22['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x5a5d22['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x5a5d22['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x1d658b])=>{const _0x1667ae=_0x5a5d22['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x1e6b23=_0x1d658b['start'],_0x172cb3=_0x1d658b['end'];const _0x1146a8=_0x46169e['model']['schema']['getNearestSelectionRange'](_0x1e6b23,'backward'),_0x1edfe5=_0x46169e['model']['schema']['getNearestSelectionRange'](_0x172cb3,'forward');_0x1146a8['isCollapsed']&&(_0x1e6b23=_0x1146a8['start']),_0x1edfe5['isCollapsed']&&(_0x172cb3=_0x1edfe5['end']),_0x1667ae([_0x46169e['model']['createRange'](_0x1e6b23,_0x172cb3)]);}),_0x5a5d22['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x35c807),_0x5a5d22['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x35c807)),_0x46169e['plugins']['has']('ImageCaptionEditing')&&(_0x5a5d22['enableCommand']('toggleImageCaption',(_0x2d705d,_0x559aa9)=>{const _0x346219=_0x46169e['plugins']['get']('ImageCaptionUtils');let _0x2689c9=_0x478e3b['getClosestSelectedImageElement'](_0x46169e['model']['document']['selection']),_0x280d14=_0x346219['getCaptionFromImageModelElement'](_0x2689c9);_0x46169e['model']['change'](()=>{if(_0x280d14)return void _0x5a5d22['markDeletion'](_0x46169e['model']['createRangeOn'](_0x280d14));const _0x25ba6e=_0x478e3b['isBlockImage'](_0x2689c9);_0x2d705d(_0x559aa9),_0x2689c9=_0x478e3b['getClosestSelectedImageElement'](_0x46169e['model']['document']['selection']),_0x280d14=_0x346219['getCaptionFromImageModelElement'](_0x2689c9),_0x5a5d22['markInsertion'](_0x46169e['model']['createRangeOn'](_0x280d14),_0x25ba6e?null:'imageCaption');});}),_0x5a5d22['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x35c807));const _0x5b54ab=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x75f78d(_0x4130a7,_0x3e1f50){const _0x2e7acc=_0x5b54ab['findIndex'](({type:_0x35ef73,subType:_0x1d048e})=>_0x4130a7['type']==_0x35ef73&&_0x4130a7['subType']==_0x1d048e),_0x47114d=_0x5b54ab['findIndex'](({type:_0x152b16,subType:_0x1796aa})=>_0x3e1f50['type']==_0x152b16&&_0x3e1f50['subType']==_0x1796aa);if(_0x2e7acc<0x0||_0x47114d<0x0)return!0x1;const _0x5ccfba=_0x4130a7['getFirstRange'](),_0x310178=_0x3e1f50['getFirstRange']();if((0x0==_0x2e7acc||0x1==_0x2e7acc)&&0x2==_0x47114d&&_0x5ccfba['isIntersecting'](_0x310178))return!0x0;if(0x2==_0x2e7acc&&0x3==_0x47114d){const _0x32a765=_0x5a5d22['_findSuggestions'](_0x5ccfba,'insertion')['filter'](({suggestion:_0x2d8f2f,meta:_0x441994})=>_0x441994['isOwn']&&'convertInlineImageToBlock'==_0x2d8f2f['subType']);if(_0x32a765['length']>0x1&&_0x310178['end']['isEqual'](_0x5ccfba['start']))return!0x0;if(0x1==_0x32a765['length']&&(_0x5ccfba['start']['isEqual'](_0x310178['end'])||_0x5ccfba['end']['isEqual'](_0x310178['start'])))return!0x0;}if(0x3==_0x2e7acc&&0x3==_0x47114d&&_0x5ccfba['start']['isBefore'](_0x310178['start'])){const _0x50e47f=_0x5ccfba['end']['nodeAfter'],_0x798081=_0x310178['start']['nodeBefore'];return _0x478e3b['isBlockImage'](_0x50e47f)&&_0x50e47f===_0x798081;}return!0x1;}function _0x35c807(_0x4a9e3d,_0x2fd729){return _0x75f78d(_0x4a9e3d,_0x2fd729)?[_0x4a9e3d,_0x2fd729]:_0x75f78d(_0x2fd729,_0x4a9e3d)?[_0x2fd729,_0x4a9e3d]:null;}_0x46169e['plugins']['has']('ImageResize')&&(_0x5a5d22['enableDefaultAttributesIntegration']('resizeImage'),_0x5a5d22['descriptionFactory']['registerAttributeLabel']('resizedWidth',At(_0x203ff7,'FORMAT_IMAGE_SIZE'))),_0x46169e['plugins']['has']('ImageTextAlternativeEditing')&&_0x5a5d22['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x46169e['plugins']['has']('PictureEditing')&&_0x5a5d22['descriptionFactory']['registerDescriptionCallback'](_0x588e8e=>{if('attribute'!=_0x588e8e['type'])return;const {data:_0x5b77c5}=_0x588e8e;return _0x5b77c5&&'sources'==_0x5b77c5['key']?{'type':'format','content':''}:void 0x0;}),_0x46169e['plugins']['has']('ImageSizeAttributes')&&_0x5a5d22['descriptionFactory']['registerDescriptionCallback'](_0x5aaf45=>{if('attribute'!=_0x5aaf45['type'])return;const {data:_0x2d1a5b}=_0x5aaf45;return!_0x2d1a5b||'width'!=_0x2d1a5b['key']&&'height'!=_0x2d1a5b['key']?void 0x0:{'type':'format','content':''};}),_0x5a5d22['descriptionFactory']['registerDescriptionCallback'](_0x4f4c98=>{if(!!_0x5b54ab['find'](({type:_0x1ad0ab,subType:_0x990b10})=>_0x4f4c98['type']==_0x1ad0ab&&_0x4f4c98['subType']==_0x990b10))return _0x4f4c98['previous']?{}:void 0x0;}),_0x5a5d22['descriptionFactory']['registerDescriptionCallback'](_0xf7f979=>{if('insertion'==_0xf7f979['type']||'deletion'==_0xf7f979['type']){const _0x1691e8=_0xf7f979['getContainedElement']();if(_0x1691e8&&_0x1691e8['is']('element','caption'))return{'type':'insertion'==_0xf7f979['type']?'addObject':'removeObject','element':_0x1691e8,'quantity':0x1};}}),_0x5a5d22['descriptionFactory']['registerDescriptionCallback'](_0x229c5e=>'formatBlock'==_0x229c5e['type']&&'convertInlineImageToBlock'==_0x229c5e['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x229c5e['type']&&'convertBlockImageToInline'==_0x229c5e['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x5a5d22['descriptionFactory']['registerDescriptionCallback'](_0x54f196=>{if('attribute'!=_0x54f196['type'])return;const {data:_0x24ab3b}=_0x54f196;if(!_0x24ab3b||'alt'!=_0x24ab3b['key'])return;const _0x4b4685=_0x24ab3b['newValue'];return _0x4b4685?{'type':'format','content':At(_0x203ff7,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4b4685+'\x22')}:{'type':'format','content':At(_0x203ff7,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x44c306=this['editor'],_0x2bc639=_0x44c306['locale'];_0x44c306['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4568d0=>{if('formatBlock'!=_0x4568d0['type']&&'formatInline'!=_0x4568d0['type'])return;const {data:_0x4dfa1e}=_0x4568d0;if(_0x4dfa1e){if('imageTextAlternative'==_0x4dfa1e['commandName']){const _0x5001bd=_0x4dfa1e['commandParams'][0x0]['newValue'];return _0x5001bd?{'type':'format','content':At(_0x2bc639,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5001bd+'\x22')}:{'type':'format','content':At(_0x2bc639,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x4dfa1e['commandName']){const _0x30e59a=_0x4dfa1e['commandParams'][0x0]['width'];return _0x30e59a?{'type':'format','content':At(_0x2bc639,'*Set\x20image\x20width:*\x20%0',_0x30e59a)}:{'type':'format','content':At(_0x2bc639,'*Reset\x20image\x20width*')};}}});}}class se extends _0x31a8de{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x2e3a2b=this['editor']['locale'],_0x55dff1=this['editor']['plugins']['get']('TrackChangesEditing');_0x55dff1['enableDefaultAttributesIntegration']('replaceImageSource'),_0x55dff1['descriptionFactory']['registerDescriptionCallback'](_0x422cb9=>{if('attribute'!=_0x422cb9['type'])return;const {data:_0x2b41f5}=_0x422cb9;return _0x2b41f5&&'src'==_0x2b41f5['key']?_0x2b41f5['newValue']&&_0x2b41f5['oldValue']?{'type':'format','content':At(_0x2e3a2b,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4eed36=this['editor']['plugins']['get']('TrackChangesEditing');_0x4eed36['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x4eed36['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4eed36['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x4eed36['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x27961f=this['editor'],_0x42bd23=_0x27961f['locale'];_0x27961f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4442f1=>{if('formatBlock'!=_0x4442f1['type']&&'formatInline'!=_0x4442f1['type'])return;const {data:_0x204271}=_0x4442f1;if(!_0x204271||'replaceImageSource'!=_0x204271['commandName'])return;return{'type':'format','content':At(_0x42bd23,'*Format:*\x20replace\x20image\x20URL')};});}}class re extends _0x31a8de{['afterInit'](){const _0x5971ff=this['editor'];if(!_0x5971ff['plugins']['has']('ImageStyleEditing'))return;const _0x10d084=_0x5971ff['plugins']['get']('TrackChangesEditing'),_0x4df16b=_0x5971ff['plugins']['get']('ImageUtils'),_0x576fbc={};_0x10d084['enableCommand']('imageStyle',(_0x202a4c,_0x3a7aa6)=>{const _0x35fd58=_0x5971ff['plugins']['get']('Users')['me'],_0x5f0d1b=_0x5971ff['commands']['get']('imageStyle');let _0x2cca02=_0x4df16b['getClosestSelectedImageElement'](_0x5971ff['model']['document']['selection']),_0x243f74=_0x5971ff['model']['createRangeOn'](_0x2cca02),_0xc4c089=_0x5f0d1b['value'];if(_0xc4c089==_0x3a7aa6['value'])return;const _0x4238e7={'commandName':'imageStyle','commandParams':[_0x3a7aa6],'formatGroupId':_0x2026f5()};_0x5971ff['model']['change'](()=>{if(_0x10d084['getSuggestions']()['filter'](_0x44d6c0=>_0x44d6c0['isInContent']&&_0x35fd58==_0x44d6c0['author']&&('formatBlock'==_0x44d6c0['type']||'formatInline'==_0x44d6c0['type'])&&('imageStylePreApply'==_0x44d6c0['subType']||'imageStylePostApply'==_0x44d6c0['subType'])&&_0x44d6c0['getFirstRange']()['isEqual'](_0x243f74))['forEach'](_0x2c952f=>_0x10d084['discardSuggestion'](_0x2c952f['head'])),_0x2cca02=_0x4df16b['getClosestSelectedImageElement'](_0x5971ff['model']['document']['selection']),_0x243f74=_0x5971ff['model']['createRangeOn'](_0x2cca02),_0x5f0d1b['refresh'](),_0x5971ff['commands']['get']('imageTypeInline')['refresh'](),_0x5971ff['commands']['get']('imageTypeBlock')['refresh'](),_0xc4c089=_0x5f0d1b['value'],_0xc4c089!=_0x3a7aa6['value'])return _0x4df16b['isInlineImage'](_0x2cca02)&&_0x5f0d1b['shouldConvertImageType'](_0x3a7aa6['value'],_0x2cca02)?(_0x202a4c({..._0x3a7aa6,'setImageSizes':!0x1}),_0x2cca02=_0x4df16b['getClosestSelectedImageElement'](_0x5971ff['model']['document']['selection']),void _0x10d084['markBlockFormat'](_0x2cca02,{..._0x4238e7,'commandReversedParams':[{'value':_0xc4c089||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x4df16b['isBlockImage'](_0x2cca02)?_0x10d084['markBlockFormat'](_0x2cca02,_0x4238e7,[],'imageStylePostApply'):_0x10d084['markInlineFormat'](_0x243f74,_0x4238e7,'imageStylePostApply'));});});for(const _0x1ab901 of _0x5971ff['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x576fbc[_0x1ab901['name']]=_0x1ab901['title']['toLowerCase']();_0x10d084['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x10d084['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x10d084['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x10d084['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x1fe45f])=>{_0x4df16b['setImageNaturalSizeAttributes'](_0x1fe45f['getContainedElement']());}),_0x10d084['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2d30dd,_0x124dbf)=>{_0x10d084['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2d30dd,{'commandName':_0x124dbf['commandName'],'commandParams':_0x124dbf['commandReversedParams']});}),_0x10d084['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0xe84c8e,_0x248e25){if(_0x5f4362(_0xe84c8e,_0x248e25))return[_0xe84c8e,_0x248e25];if(_0x5f4362(_0x248e25,_0xe84c8e))return[_0x248e25,_0xe84c8e];return null;});const _0x439967=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5f4362(_0xddd06d,_0x50bcce){const _0xe25ca2=_0x439967['findIndex'](({type:_0x1adbd8,subType:_0x3d8b22})=>_0xddd06d['type']==_0x1adbd8&&_0xddd06d['subType']==_0x3d8b22),_0x22b3d3=_0x439967['findIndex'](({type:_0x876398,subType:_0x426173})=>_0x50bcce['type']==_0x876398&&_0x50bcce['subType']==_0x426173);if(_0xe25ca2<0x0||_0x22b3d3<0x0)return!0x1;const _0x3051da=_0xddd06d['getFirstRange'](),_0x2685ac=_0x50bcce['getFirstRange']();if((0x0==_0xe25ca2||0x1==_0xe25ca2)&&0x2==_0x22b3d3&&_0x3051da['isIntersecting'](_0x2685ac))return!0x0;if(0x2==_0xe25ca2&&0x3==_0x22b3d3){const _0x454f43=_0x10d084['_findSuggestions'](_0x3051da,'insertion')['filter'](({suggestion:_0x5636b9,meta:_0x3b7f65})=>_0x3b7f65['isOwn']&&'convertInlineImageToBlock'==_0x5636b9['subType']);if(_0x454f43['length']>0x1&&_0x2685ac['end']['isEqual'](_0x3051da['start']))return!0x0;if(0x1==_0x454f43['length']&&(_0x3051da['start']['isEqual'](_0x2685ac['end'])||_0x3051da['end']['isEqual'](_0x2685ac['start'])))return!0x0;}if(0x3==_0xe25ca2&&0x3==_0x22b3d3&&_0x3051da['start']['isBefore'](_0x2685ac['start'])){const _0x1aac63=_0x3051da['end']['nodeAfter'],_0x3a70a5=_0x2685ac['start']['nodeBefore'];return _0x4df16b['isBlockImage'](_0x1aac63)&&_0x1aac63===_0x3a70a5;}return!0x1;}_0x5971ff['model']['document']['registerPostFixer'](()=>{let _0x364b52=!0x1;const _0x2c66ce=Array['from'](_0x5971ff['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x21a655,data:_0x1e20d7}of _0x2c66ce){const {group:_0x2fcabd,type:_0x51b0d8,subType:_0x2eb3bd,id:_0x135288}=_0x6b12f7(_0x21a655);if('suggestion'==_0x2fcabd&&_0x10d084['hasSuggestion'](_0x135288)){if('formatBlock'==_0x51b0d8&&('imageStylePreApply'==_0x2eb3bd||'imageStylePostApply'==_0x2eb3bd)){const _0x5927c4=_0x10d084['getSuggestion'](_0x135288);if(_0x1e20d7['newRange']){const _0x19f364=_0x5927c4['getFirstRange']()['getContainedElement']();if(_0x4df16b['isBlockImage'](_0x19f364))continue;_0x10d084['discardSuggestion'](_0x5927c4),_0x364b52=!0x0;}}if('insertion'==_0x51b0d8&&'imageCaption'==_0x2eb3bd&&!_0x1e20d7['newRange']){const _0x1cf5ac=_0x10d084['getSuggestion'](_0x135288);_0x1cf5ac['next']&&_0x1cf5ac['next']['isInContent']&&(_0x10d084['discardSuggestion'](_0x1cf5ac['next']),_0x364b52=!0x0);}}}return _0x364b52;}),this['_registerLegacyDescription'](_0x576fbc);}['_registerLegacyDescription'](_0x1773e9){const _0x5c1734=this['editor'],_0x32acd4=_0x5c1734['locale'];_0x5c1734['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ce8a2=>{if('formatBlock'!=_0x4ce8a2['type']&&'formatInline'!=_0x4ce8a2['type'])return;const {data:_0x4e5132}=_0x4ce8a2;if(!_0x4e5132||'imageStyle'!=_0x4e5132['commandName'])return;const _0x4e2940=_0x4e5132['commandParams'][0x0]['value'];return _0x2e4eaf('side'===_0x4e2940?At(_0x32acd4,'FORMAT_SIDE_IMAGE'):_0x1773e9[_0x4e2940]||_0x4e2940);function _0x2e4eaf(_0x34da09){return{'type':'format','content':At(_0x32acd4,'*Format:*\x20%0',_0x34da09)};}});}}class oe extends _0x31a8de{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x258213){super(_0x258213),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x58272a=this['editor'],_0xf8a949=_0x58272a['commands']['get']('importWord'),_0x598c7c=_0x58272a['commands']['get']('trackChanges');_0xf8a949&&(_0xf8a949['on']('execute',(_0x415bba,[,_0x5ae56c])=>{this['_trackChangesValueDuringImport']=_0x598c7c['value'],_0x5ae56c['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0xf8a949,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0xf8a949,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x598c7c['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x58272a['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x38b9d4,_0x4d26e6){const {suggestions:_0x1814af}=_0x4d26e6,_0xe0eb73=this['editor']['commands']['get']('trackChanges'),_0x1b70ee=_0xe0eb73['value'];this['_trackChangesValueDuringImport']!==_0x1b70ee&&(_0xe0eb73['execute'](),this['_trackChangesExecuted']=!0x0),_0x1814af&&_0x1814af['forEach'](({id:_0x5e05e4,type:_0x4df39e,author:_0x25faea,created_at:_0x3320c7})=>{const _0x1b1cba={'id':_0x5e05e4,'type':_0x4df39e,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x25faea,'createdAt':_0x3320c7?new Date(_0x3320c7):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x1b1cba);});}}class ae extends _0x31a8de{['afterInit'](){const _0x360d52=this['editor'],_0x5828ee=_0x360d52['plugins']['get']('TrackChangesEditing');if(_0x360d52['plugins']['has']('IndentEditing')&&(_0x5828ee['enableCommand']('indent'),_0x5828ee['enableCommand']('outdent')),_0x360d52['plugins']['has']('IndentBlock')){for(const _0x1c1cfb of['indentBlock','outdentBlock'])_0x5828ee['enableDefaultAttributesIntegration'](_0x1c1cfb);if(_0x360d52['plugins']['has']('ListEditing')){for(const _0x1f25fb of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x5828ee['enableDefaultAttributesIntegration'](_0x1f25fb);}}const _0x1cb842=_0x360d52['locale'];_0x5828ee['descriptionFactory']['registerAttributeLabel']('blockIndent',At(_0x1cb842,'FORMAT_INDENT')),_0x5828ee['descriptionFactory']['registerAttributeLabel']('blockIndentList',At(_0x1cb842,'FORMAT_INDENT')),_0x5828ee['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',At(_0x1cb842,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x349ab7=this['editor'],_0x3fc9d3=_0x349ab7['locale'],_0x4d4588=_0x349ab7['plugins']['get']('TrackChangesEditing');_0x4d4588['descriptionFactory']['registerDescriptionCallback'](_0x460cfa=>{if('formatBlock'!=_0x460cfa['type'])return;const {data:_0x12b856}=_0x460cfa;if(!_0x12b856)return;if('indentBlock'!=_0x12b856['commandName']&&'outdentBlock'!=_0x12b856['commandName'])return;const _0x48a66a=_0x460cfa['getItems']()[0x0],_0x333df4=_0x4d4588['descriptionFactory']['getItemLabel'](_0x48a66a);return'indentBlock'==_0x12b856['commandName']?{'type':'format','content':At(_0x3fc9d3,'*Indent:*\x20%0',_0x333df4)}:'outdentBlock'==_0x12b856['commandName']?{'type':'format','content':At(_0x3fc9d3,'*Outdent:*\x20%0',_0x333df4)}:void 0x0;});}}class ce extends _0x31a8de{static get['requires'](){return[ct];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class le extends _0x31a8de{['afterInit'](){const _0x4e30d4=this['editor'];if(!_0x4e30d4['plugins']['has']('LinkEditing'))return;const _0x24be40=_0x4e30d4['plugins']['get']('TrackChangesEditing'),_0x5095cd=_0x4e30d4['commands']['get']('link');_0x24be40['enableDefaultAttributesIntegration']('link'),_0x24be40['enableDefaultAttributesIntegration']('unlink');for(const _0x518e39 of _0x5095cd['manualDecorators'])_0x24be40['descriptionFactory']['registerAttributeLabel'](_0x518e39['id'],'link\x20('+_0x518e39['label']['toLowerCase']()+')');_0x24be40['descriptionFactory']['registerDescriptionCallback'](_0x52f619=>{if('attribute'!=_0x52f619['type'])return;const {data:_0x4bf0d5}=_0x52f619;if(!_0x4bf0d5||'linkHref'!=_0x4bf0d5['key'])return;const _0x2da0d7=_0x4bf0d5['newValue'],_0x2c9d3c=_0x4e30d4['locale'];return{'type':'format','content':null==_0x2da0d7?At(_0x2c9d3c,'*Remove\x20link*'):At(_0x2c9d3c,'*Set\x20link:*\x20%0','\x22'+_0x2da0d7+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x71ca90=this['editor'],_0x2ee3fb=_0x71ca90['locale'];_0x71ca90['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4889d2=>{if('formatInline'!=_0x4889d2['type'])return;const {data:_0x2e1217}=_0x4889d2;if(_0x2e1217){if('link'==_0x2e1217['commandName']){const _0x2d41bd=_0x2e1217['commandParams'][0x0];return{'type':'format','content':At(_0x2ee3fb,'*Set\x20link:*\x20%0','\x22'+_0x2d41bd+'\x22')};}return'unlink'==_0x2e1217['commandName']?{'type':'format','content':At(_0x2ee3fb,'*Remove\x20link*')}:void 0x0;}});}}class ue extends _0x31a8de{['afterInit'](){const _0x24d0af=this['editor'],_0x2a8c20=_0x24d0af['locale'];if(!_0x24d0af['plugins']['has']('LegacyListEditing'))return;const _0x388790=_0x24d0af['plugins']['get']('TrackChangesEditing'),_0x1e2e9e=_0x24d0af['plugins']['has']('LegacyTodoListEditing');function _0x342643(_0x192168){return()=>{const _0x3f5ad7=_0x24d0af['model']['document']['selection'],_0x2914e3=_0x24d0af['commands']['get'](_0x192168);if(_0x2914e3['value'])return void _0x24d0af['execute']('paragraph',{});const _0x4a16c6=_0x192168['slice'](0x0,-0x4),_0x4bf83e=function(_0x49d882,_0x216294,_0x2ffbc5){let _0x5e1db5=Array['from'](_0x49d882)['filter'](_0x4c33fa=>function(_0x47ecdc,_0x9469e4){return _0x9469e4['checkChild'](_0x47ecdc['parent'],'listItem')&&!_0x9469e4['isObject'](_0x47ecdc);}(_0x4c33fa,_0x2ffbc5));_0x5e1db5=_0x5e1db5['filter'](_0x366026=>!_0x366026['is']('element','listItem')||_0x366026['getAttribute']('listType')!=_0x216294);const _0xc92a75=new Set();for(const _0x23665a of _0x5e1db5)_0x23665a['is']('element','listItem')?_0xc92a75['add'](he(_0x23665a)):_0xc92a75['add'](_0x23665a);return Array['from'](_0xc92a75);}(_0x3f5ad7['getSelectedBlocks'](),_0x4a16c6,_0x24d0af['model']['schema']);_0x24d0af['model']['change'](()=>{for(const _0x7ac8ff of _0x4bf83e)_0x388790['markBlockFormat'](_0x7ac8ff,{'commandName':_0x192168,'commandParams':[{'forceValue':!_0x2914e3['value']}],'formatGroupId':'blockName'},de(_0x7ac8ff));});};}function _0x29527a(_0x18d87d){return()=>{const _0x261a3f=function(_0x4182bd){let _0x4fc821=Array['from'](_0x4182bd);const _0x14df14=_0x4fc821['findIndex'](_0xa46211=>'listItem'!=_0xa46211['name']);return _0x14df14>-0x1&&(_0x4fc821=_0x4fc821['slice'](0x0,_0x14df14)),_0x4fc821;}(_0x24d0af['model']['document']['selection']['getSelectedBlocks']()),_0x4202e1=_0x24d0af['model']['createRange'](_0x24d0af['model']['createPositionAt'](_0x261a3f[0x0],'before'),_0x24d0af['model']['createPositionAt'](_0x261a3f[_0x261a3f['length']-0x1],'end'));_0x24d0af['model']['change'](()=>{_0x388790['markBlockFormat'](_0x4202e1,{'commandName':_0x18d87d,'commandParams':[],'formatGroupId':'listIndent'},function(_0x126c07){const _0xc6d578=new Set();for(const _0x115455 of _0x126c07){let _0x23ab69=_0x115455['nextSibling'];for(;_0x23ab69&&_0x23ab69['getAttribute']('listIndent')>_0x115455['getAttribute']('listIndent');)_0xc6d578['add'](_0x23ab69),_0x23ab69=_0x23ab69['nextSibling'];}return Array['from'](_0xc6d578);}(_0x261a3f));});};}_0x388790['enableCommand']('numberedList',_0x342643('numberedList')),_0x388790['enableCommand']('bulletedList',_0x342643('bulletedList')),_0x1e2e9e&&_0x388790['enableCommand']('todoList',_0x342643('todoList')),_0x388790['enableCommand']('indentList',_0x29527a('indentList')),_0x388790['enableCommand']('outdentList',_0x29527a('outdentList')),_0x1e2e9e&&_0x388790['enableCommand']('checkTodoList',()=>{const _0x154a2e=_0x24d0af['commands']['get']('checkTodoList'),_0x507dbb=Array['from'](_0x154a2e['_selectedElements']);_0x507dbb['filter'](_0x427af8=>_0x427af8['getAttribute']('todoListChecked')!=_0x154a2e['value']),_0x24d0af['model']['change'](()=>{for(const _0x35086b of _0x507dbb)_0x388790['markBlockFormat'](_0x35086b,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x154a2e['value']}]});});}),_0x388790['descriptionFactory']['registerElementLabel']('listItem',_0x4998ac=>At(_0x2a8c20,'ELEMENT_LIST_ITEM',_0x4998ac)),_0x388790['descriptionFactory']['registerDescriptionCallback'](_0x34f143=>{if('formatBlock'!=_0x34f143['type']&&'formatInline'!=_0x34f143['type'])return;const {data:_0x383f0d}=_0x34f143;if(_0x383f0d){if('numberedList'==_0x383f0d['commandName']||'bulletedList'==_0x383f0d['commandName']||'todoList'==_0x383f0d['commandName'])switch(_0x383f0d['commandName']['replace']('List','')){case'bulleted':return _0x402080(At(_0x2a8c20,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x402080(At(_0x2a8c20,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x402080(At(_0x2a8c20,'ELEMENT_TODO_LIST'));}if('indentList'==_0x383f0d['commandName'])return{'type':'format','content':At(_0x2a8c20,'*Indent:*\x20%0',At(_0x2a8c20,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x383f0d['commandName'])return{'type':'format','content':At(_0x2a8c20,'*Outdent:*\x20%0',At(_0x2a8c20,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x383f0d['commandName'])return _0x383f0d['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x2a8c20,'*Check\x20item*')}:{'type':'format','content':At(_0x2a8c20,'*Uncheck\x20item*')};}function _0x402080(_0x253a40){return{'type':'format','content':At(_0x2a8c20,'*Change\x20to:*\x20%0',_0x253a40)};}});}}function he(_0x47d6a3){const _0x583555=_0x47d6a3['getAttribute']('listIndent');if(0x0==_0x583555)return _0x47d6a3;let _0x5d9057=_0x47d6a3;for(;_0x47d6a3['previousSibling']&&_0x47d6a3['previousSibling']['is']('element','listItem');){const _0x334f64=_0x47d6a3['previousSibling']['getAttribute']('listIndent');if(_0x334f64==_0x583555)_0x5d9057=_0x47d6a3['previousSibling'];else{if(_0x334f64<_0x583555)break;}_0x47d6a3=_0x47d6a3['previousSibling'];}return _0x5d9057;}function de(_0x3e804e){const _0x48fc0e=[];if(_0x3e804e['is']('element','listItem')&&_0x3e804e['getAttribute']('listIndent')>0x0){let _0x780870=_0x3e804e['nextSibling'];for(;_0x780870&&'listItem'==_0x780870['name']&&_0x780870['getAttribute']('listIndent')==_0x3e804e['getAttribute']('listIndent');)_0x48fc0e['push'](_0x780870),_0x780870=_0x780870['nextSibling'];}return _0x48fc0e;}class fe extends _0x31a8de{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x37be29=this['editor']['config']['get']('list.properties'),_0xdd1ffa=this['editor']['plugins']['get']('TrackChangesEditing');_0x37be29['styles']&&_0xdd1ffa['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x37be29['reversed']&&_0xdd1ffa['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x37be29['startIndex']&&_0xdd1ffa['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0xdd1ffa['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x1a7e3f,_0x2aeb59={}){const _0x55567c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x359479=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x55567c['markMultiRangeBlockFormat'](_0x359479,{'commandName':'listStyle','commandParams':[{'type':_0x2aeb59['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x46bde6,_0x2db54a={}){const _0x49fc4e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x155f65=this['_getSuggestionBlocks'](_0xc4c489=>_0xc4c489['is']('element','listItem')&&'numbered'===_0xc4c489['getAttribute']('listType'));if(_0x155f65['length']<0x1)return;const _0x429308=_0x155f65['map'](_0x49f34a=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x49f34a,'before'),this['editor']['model']['createPositionAt'](_0x49f34a,0x0)));this['editor']['model']['change'](()=>{_0x49fc4e['markMultiRangeBlockFormat'](_0x429308,{'commandName':'listReversed','commandParams':[{'reversed':_0x2db54a['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x45e17b,_0x17bd38={}){const _0x130b19=this['editor']['plugins']['get']('TrackChangesEditing'),_0x58f640=this['_getSuggestionBlocks'](_0x30063c=>_0x30063c['is']('element','listItem')&&'numbered'===_0x30063c['getAttribute']('listType'));if(_0x58f640['length']<0x1)return;const _0x273793=_0x58f640['map'](_0x4d95ae=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4d95ae,'before'),this['editor']['model']['createPositionAt'](_0x4d95ae,0x0)));this['editor']['model']['change'](()=>{_0x130b19['markMultiRangeBlockFormat'](_0x273793,{'commandName':'listStart','commandParams':[{'startIndex':_0x17bd38['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x5557eb){if('formatBlock'!=_0x5557eb['type']&&'formatInline'!=_0x5557eb['type'])return;const _0x3d0ed7=this['editor']['locale'],{data:_0x96c9f2}=_0x5557eb;if(!_0x96c9f2)return;let _0x31d6a4,_0x3d560b;switch(_0x96c9f2['commandName']){case'listStyle':_0x31d6a4='*Change\x20to:*\x20%0',_0x3d560b={'type':'format','content':At(_0x3d0ed7,_0x31d6a4,At(_0x3d0ed7,this['_getTranslationKeyForListStyle'](_0x96c9f2['commandParams'][0x0]['type'])))};break;case'listReversed':_0x31d6a4=_0x96c9f2['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3d560b={'type':'format','content':At(_0x3d0ed7,_0x31d6a4)};break;case'listStart':_0x31d6a4='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3d560b={'type':'format','content':At(_0x3d0ed7,_0x31d6a4,_0x96c9f2['commandParams'][0x0]['startIndex'])};}return _0x3d560b;}['_getSuggestionBlocksForListStyle'](){const _0xeb5c4c=this['editor']['plugins']['get']('LegacyListUtils');let _0x8a620a=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x8a620a[0x0]?.['is']('element','listItem')&&_0x8a620a['unshift'](..._0xeb5c4c['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x8a620a[_0x8a620a['length']-0x1]?.['is']('element','listItem')&&_0x8a620a['push'](..._0xeb5c4c['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x8a620a=[...new Set(_0x8a620a)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x8a620a=_0x8a620a['filter'](_0x24c18a=>_0x24c18a['is']('element','listItem'))),_0x8a620a;}['_getSuggestionBlocks'](_0x6f79e0){const _0x5b9260=this['editor']['plugins']['get']('LegacyListUtils');let _0x294a0e=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x6f79e0)['map'](_0xc0b8ce=>{const _0x24030d=this['editor']['model']['createPositionAt'](_0xc0b8ce,0x0);return[..._0x5b9260['getSiblingNodes'](_0x24030d,'backward'),..._0x5b9260['getSiblingNodes'](_0x24030d,'forward')];})['flat']();return _0x294a0e=[...new Set(_0x294a0e)],_0x294a0e;}['_getTranslationKeyForListStyle'](_0x9ed473){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x9ed473)||'default')['toUpperCase']()+'_LIST_'+_0x9ed473['toUpperCase']()['replace'](/-/g,'_');}}class ge extends _0x31a8de{['afterInit'](){const _0x4f3c0d=this['editor'];if(!_0x4f3c0d['plugins']['has']('MediaEmbedEditing'))return;const _0x37b03b=_0x4f3c0d['plugins']['get']('TrackChangesEditing'),_0x32728c=_0x4f3c0d['locale'];_0x37b03b['enableCommand']('mediaEmbed'),_0x37b03b['descriptionFactory']['registerElementLabel']('media',_0x19f7c7=>At(_0x32728c,'ELEMENT_MEDIA',_0x19f7c7));}}class me extends _0x31a8de{['afterInit'](){const _0x440b0c=this['editor'];_0x440b0c['plugins']['has']('MentionEditing')&&_0x440b0c['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class Ee extends _0x31a8de{['afterInit'](){const _0x390d42=this['editor'];if(!_0x390d42['plugins']['has']('MergeFieldsEditing'))return;const _0x4cbc28=_0x390d42['plugins']['get']('TrackChangesEditing'),_0x3ef428=_0x390d42['locale'];_0x4cbc28['enableCommand']('insertMergeField'),_0x4cbc28['enableCommand']('insertMergeFieldBlock'),_0x4cbc28['enableCommand']('insertMergeFieldImage'),_0x4cbc28['descriptionFactory']['registerElementLabel']('mergeField',_0x3445d6=>At(_0x3ef428,'ELEMENT_MERGE_FIELD',_0x3445d6)),_0x4cbc28['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x306a67=>At(_0x3ef428,'ELEMENT_MERGE_FIELD',_0x306a67)),_0x4cbc28['descriptionFactory']['registerDescriptionCallback'](_0xe2a653=>{if('insertion'!=_0xe2a653['type']&&'deletion'!=_0xe2a653['type'])return;const _0x48bbf7=_0xe2a653['getContainedElement']();if(null==_0x48bbf7)return;const _0x37fdaa=_0x390d42['plugins']['get']('MergeFieldsEditing');let _0x37a332;switch(_0x37fdaa['getMergeFieldType'](_0x48bbf7)){case null:return;case'image':{const _0x309547=_0x37fdaa['unwrapAffixes'](_0x48bbf7['getAttribute']('src'));_0x37a332=_0x37fdaa['getLabel'](_0x309547)||_0x309547;break;}default:{const _0x2da1bc=_0x48bbf7['getAttribute']('id');_0x37a332=_0x37fdaa['getLabel'](_0x2da1bc)||_0x2da1bc;break;}}return'insertion'==_0xe2a653['type']?{'type':'insertion','content':At(_0x3ef428,'*Insert:*\x20%0','\x22'+_0x37a332+'\x22\x20'+At(_0x3ef428,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':At(_0x3ef428,'*Remove:*\x20%0','\x22'+_0x37a332+'\x22\x20'+At(_0x3ef428,'ELEMENT_MERGE_FIELD'))};});}}class Te extends _0x31a8de{['afterInit'](){const _0x1fd674=this['editor'],_0x2ec6cf=_0x1fd674['plugins']['get']('TrackChangesEditing');_0x1fd674['plugins']['has']('MultiLevelList')&&(_0x2ec6cf['enableDefaultAttributesIntegration']('multiLevelList'),_0x2ec6cf['descriptionFactory']['registerDescriptionCallback'](_0xcdee57=>this['handleDescriptions'](_0xcdee57)));}['handleDescriptions'](_0x1e0b41){const _0x253387=this['editor']['locale'],{data:_0x3ec78c}=_0x1e0b41,_0x5f32b7={'type':'format','content':''};if(_0x3ec78c&&'listMarkerStyle'==_0x3ec78c['key']){if(!_0x3ec78c['oldValue'])return{'type':'format','content':At(_0x253387,'*Set\x20format:*\x20%0',At(_0x253387,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3ec78c['newValue']+')'};if(!_0x3ec78c['newValue']){let _0xb94cb0=_0x1e0b41['head'];for(;_0xb94cb0;){if(_0xb94cb0['data']&&'listType'==_0xb94cb0['data']['key']&&_0xb94cb0['data']['newValue'])return _0x5f32b7;_0xb94cb0=_0xb94cb0['next'];}return{'type':'format','content':At(_0x253387,'*Remove\x20format:*\x20%0',At(_0x253387,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3ec78c['oldValue']+')'};}}}}class _e extends _0x31a8de{['afterInit'](){const _0x54566d=this['editor'];if(!_0x54566d['plugins']['has']('PageBreakEditing'))return;_0x54566d['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x5dea40=_0x54566d['plugins']['get']('TrackChangesEditing'),_0x16c0c2=_0x54566d['locale'];_0x5dea40['descriptionFactory']['registerElementLabel']('pageBreak',_0x5983c7=>At(_0x16c0c2,'ELEMENT_PAGE_BREAK',_0x5983c7));}}class pe extends _0x31a8de{['afterInit'](){const _0x57f6bd=this['editor'];if(!_0x57f6bd['plugins']['has']('Paragraph'))return;const _0x2fb85c=_0x57f6bd['locale'],_0x113be2=_0x57f6bd['plugins']['get']('TrackChangesEditing');_0x113be2['descriptionFactory']['registerElementLabel']('paragraph',_0x22b373=>At(_0x2fb85c,'ELEMENT_PARAGRAPH',_0x22b373)),_0x113be2['enableDefaultAttributesIntegration']('paragraph'),_0x113be2['enableCommand']('insertParagraph');const _0x2dd027=_0x113be2['descriptionFactory'];_0x2dd027['registerDescriptionCallback'](_0x29d4f9=>{if('insertion'!==_0x29d4f9['type'])return;const {start:_0x52f21,end:_0x2cfccf}=_0x29d4f9['getFirstRange']();if(!_0x52f21['isTouching'](_0x2cfccf)||!_0x52f21['nodeAfter'])return;const _0x5e1bd6=_0x57f6bd['model']['schema'],_0x8f53b3=_0x52f21['nodeAfter'];return _0x5e1bd6['isBlock'](_0x8f53b3)&&!_0x5e1bd6['isLimit'](_0x8f53b3)&&_0x5e1bd6['checkChild'](_0x8f53b3,'$text')?{'type':'insertion','content':At(_0x2fb85c,'*Insert:*\x20%0',_0x2dd027['getItemLabel'](_0x8f53b3,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4e3866=this['editor'],_0x1154e8=_0x4e3866['locale'];_0x4e3866['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x53a267=>{if('formatBlock'!=_0x53a267['type'])return;const {data:_0x37ff39}=_0x53a267;return _0x37ff39&&'paragraph'==_0x37ff39['commandName']?{'type':'format','content':At(_0x1154e8,'*Change\x20to:*\x20%0',At(_0x1154e8,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class Le extends _0x31a8de{['afterInit'](){const _0x15980c=this['editor'];_0x15980c['commands']['get']('replaceSource')&&_0x15980c['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class Ie extends _0x31a8de{['afterInit'](){const _0x2302b5=this['editor'];if(!_0x2302b5['plugins']['has']('RemoveFormatEditing'))return;_0x2302b5['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x41fde5=this['editor'];_0x41fde5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x36f42d=>{if('formatBlock'!=_0x36f42d['type']&&'formatInline'!=_0x36f42d['type'])return;const {data:_0x3ab555}=_0x36f42d;return _0x3ab555&&'removeFormat'==_0x3ab555['commandName']?{'type':'format','content':At(_0x41fde5['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class be extends _0x31a8de{['afterInit'](){const _0x5096d9=this['editor'];if(!_0x5096d9['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x3f12ce=_0x5096d9['plugins']['get']('TrackChangesEditing');_0x3f12ce['enableCommand']('goToPreviousRestrictedEditingException'),_0x3f12ce['enableCommand']('goToNextRestrictedEditingException');const _0x468a9b=_0x5096d9['plugins']['get']('RestrictedEditingModeEditing');_0x468a9b['enableCommand']('trackChanges'),_0x468a9b['enableCommand']('acceptSuggestion'),_0x468a9b['enableCommand']('discardSuggestion'),_0x468a9b['enableCommand']('acceptAllSuggestions'),_0x468a9b['enableCommand']('discardAllSuggestions'),_0x468a9b['enableCommand']('acceptSelectedSuggestions'),_0x468a9b['enableCommand']('discardSelectedSuggestions');}}class Ae extends _0x31a8de{['afterInit'](){const _0x6a04fa=this['editor'];if(!_0x6a04fa['plugins']['has']('ShiftEnter'))return;const _0x6e57f0=_0x6a04fa['plugins']['get']('TrackChangesEditing');_0x6e57f0['enableCommand']('shiftEnter'),_0x6e57f0['descriptionFactory']['registerElementLabel']('softBreak',_0x34a065=>At(_0x6a04fa['locale'],'ELEMENT_LINE_BREAK',_0x34a065));}}function ke(_0x345827,_0x356108,_0x3e58e4){const _0x5b7183=[];for(const _0x2393fb of _0x356108['getItems']())_0x2393fb['hasAttribute'](_0x345827)&&_0x5b7183['push'](_0x3e58e4['createRangeOn'](_0x2393fb));return _0x5b7183;}class Ce extends _0x31a8de{['afterInit'](){const _0x134819=this['editor'],_0x2500b6=_0x134819['plugins']['get']('TrackChangesEditing');_0x134819['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x2500b6['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x4155ce=this['editor'],_0x430d32=_0x4155ce['model'],_0x5c6d80=_0x4155ce['locale'],_0x656dd0=_0x4155ce['plugins']['get']('TrackChangesEditing'),_0x4374e4='restrictedEditingException',_0x42d676=_0x4155ce['commands']['get'](_0x4374e4);_0x656dd0['enableCommand'](_0x4374e4,(_0x2629e5,_0xd0a315={})=>{const _0x45ae79=_0x430d32['document']['selection'];if(_0x45ae79['isCollapsed'])return void _0x2629e5(_0xd0a315);const _0x46a6a4=void 0x0!==_0xd0a315['forceValue']?_0xd0a315['forceValue']:!_0x42d676['value'];_0x430d32['change'](()=>{const _0x111019=Array['from'](_0x45ae79['getRanges']());for(const _0x2887cc of _0x111019){const _0x3d42a8=_0x46a6a4?[_0x2887cc]:ke(_0x4374e4,_0x2887cc,_0x430d32);for(const _0x5ef58f of _0x3d42a8)_0x656dd0['markInlineFormat'](_0x5ef58f,{'commandName':_0x4374e4,'commandParams':[{'forceValue':_0x46a6a4}]});}});}),_0x656dd0['descriptionFactory']['registerDescriptionCallback'](_0x495816=>{if('formatBlock'!=_0x495816['type']&&'formatInline'!=_0x495816['type'])return;const {data:_0x324fdc}=_0x495816;return _0x324fdc&&_0x324fdc['commandName']==_0x4374e4?_0x324fdc['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x5c6d80,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':At(_0x5c6d80,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x405f79=this['editor'],_0x559abf=_0x405f79['locale'],_0x580f69=_0x405f79['plugins']['get']('TrackChangesEditing'),_0x5ddf54='restrictedEditingExceptionBlock',_0x4f74f9=this['editor']['commands']['get'](_0x5ddf54);_0x580f69['enableCommand'](_0x5ddf54,(_0x1876db,_0x574daf={})=>{const _0x277250=this['editor']['model']['document']['selection'],_0x44c5cb=_0x574daf&&void 0x0!==_0x574daf['forceValue']?_0x574daf['forceValue']:!_0x4f74f9['value'];let _0x13d4b6=[];if(_0x44c5cb){const _0x3b7485=Array['from'](_0x277250['getSelectedBlocks']())['filter'](_0x4f2a61=>function(_0x26320d){return!!_0x26320d['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x4f2a61)||function(_0x57d93c,_0x36e7f9){const _0x4554a1=_0x36e7f9['createContext'](_0x57d93c['parent']);if(!_0x36e7f9['checkChild'](_0x4554a1,'restrictedEditingException'))return!0x1;if(!_0x36e7f9['checkChild'](_0x4554a1['push']('restrictedEditingException'),_0x57d93c))return!0x1;return!0x0;}(_0x4f2a61,this['editor']['model']['schema']));_0x13d4b6=Tt(_0x3b7485,_0x405f79['model']);}else{const _0x56a1d7=Array['from'](_0x277250['getSelectedBlocks']())['map'](_0xe4b2ec=>function(_0x33b3bd){let _0x5c39fe=_0x33b3bd;for(;_0x5c39fe['parent'];){if('restrictedEditingException'==_0x5c39fe['parent']['name'])return _0x5c39fe;_0x5c39fe=_0x5c39fe['parent'];}return null;}(_0xe4b2ec))['filter'](_0x27a6ae=>!!_0x27a6ae);_0x13d4b6=Tt(_0x56a1d7,_0x405f79['model']);}_0x405f79['model']['change'](()=>{for(const _0x542553 of _0x13d4b6)_0x580f69['markBlockFormat'](_0x542553,{'commandName':_0x5ddf54,'commandParams':[{'forceValue':_0x44c5cb}]});});}),_0x580f69['descriptionFactory']['registerDescriptionCallback'](_0x212789=>{const {data:_0x122dab}=_0x212789;if(_0x122dab&&_0x122dab['commandName']==_0x5ddf54)return _0x122dab['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x559abf,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':At(_0x559abf,'FORMAT_RESTRICTED_DISABLED')};});}}class ye extends _0x31a8de{['afterInit'](){const _0x42bce8=this['editor'];if(!_0x42bce8['plugins']['has']('Style')||!_0x42bce8['plugins']['has']('DataSchema'))return;const _0x314579=_0x42bce8['plugins']['get']('TrackChangesEditing'),_0x2d4b64=_0x42bce8['locale'],_0x42f397=_0x42bce8['config']['get']('style')||{},_0x5cfc81=_0x42bce8['plugins']['get']('GeneralHtmlSupport'),_0x53a2e7=_0x42bce8['plugins']['get']('StyleUtils')['normalizeConfig'](_0x42bce8['plugins']['get']('DataSchema'),_0x42f397['definitions']);_0x314579['enableDefaultAttributesIntegration']('style');const _0x2b43b6=new Set();for(const _0x542f8b of _0x53a2e7['block']){const _0x30437f=_0x5cfc81['getGhsAttributeNameForElement'](_0x542f8b['element']);_0x2b43b6['add'](_0x30437f);}const _0x5e88fb=new Set();for(const _0x1e75a2 of _0x53a2e7['inline']){const _0x41302a=_0x5cfc81['getGhsAttributeNameForElement'](_0x1e75a2['element']);_0x5e88fb['add'](_0x41302a);for(const _0xdee9b9 of _0x1e75a2['ghsAttributes'])_0x5e88fb['add'](_0xdee9b9);}for(const _0x1ab0e7 of _0x2b43b6)_0x314579['descriptionFactory']['registerAttributeLabel'](_0x1ab0e7,At(_0x2d4b64,'FORMAT_STYLE'));for(const _0x53c6c9 of _0x5e88fb)_0x314579['descriptionFactory']['registerAttributeLabel'](_0x53c6c9,At(_0x2d4b64,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x513a9b=this['editor'],_0x58da19=_0x513a9b['locale'];_0x513a9b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5b355a=>{if('formatBlock'!=_0x5b355a['type']&&'formatInline'!=_0x5b355a['type'])return;const {data:_0x17fb6c}=_0x5b355a;return _0x17fb6c&&'style'===_0x17fb6c['commandName']?_0x17fb6c['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x58da19,'*Set\x20format:*\x20%0',_0x17fb6c['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':At(_0x58da19,'*Remove\x20format:*\x20%0',_0x17fb6c['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ne extends _0x31a8de{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x598a19){super(_0x598a19),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x313856=this['editor'],_0x12559b=_0x313856['model']['document']['selection'];if(!_0x313856['plugins']['has']('TableEditing'))return;const _0x560b0d=_0x313856['locale'],_0x4ef357=_0x313856['plugins']['get']('TrackChangesEditing'),_0x12d089=_0x313856['plugins']['get']('TableUtils');_0x4ef357['descriptionFactory']['registerElementLabel']('table',_0xa34b91=>At(_0x560b0d,'ELEMENT_TABLE',_0xa34b91)),this['_setupColumnsRowsFixing'](),_0x4ef357['enableCommand']('insertTable'),_0x4ef357['enableCommand']('selectTableRow'),_0x4ef357['enableCommand']('selectTableColumn');for(const _0x38c868 of['insertTableRowAbove','insertTableRowBelow']){const _0x3a8540=_0x313856['commands']['get'](_0x38c868);_0x4ef357['enableCommand'](_0x38c868,_0x33de39=>{_0x313856['model']['change'](_0x5bdacc=>{_0x33de39();const _0x329e67='above'===_0x3a8540['order'],_0x17c1ee=_0x12d089['getSelectionAffectedTableCells'](_0x12559b),_0x12d8b6=_0x12d089['getRowIndexes'](_0x17c1ee),_0x4b00fa=_0x329e67?_0x12d8b6['first']-0x1:_0x12d8b6['last']+0x1,_0x25bc29=_0x17c1ee[0x0]['findAncestor']('table'),_0x46e767=_0x12d089['createTableWalker'](_0x25bc29,{'startRow':_0x4b00fa,'endRow':_0x4b00fa}),_0x127ecb=Array['from'](_0x46e767)['map'](_0x3cd9c0=>_0x5bdacc['createRangeOn'](_0x3cd9c0['cell']));_0x4ef357['markMultiRangeInsertion'](_0x127ecb,'tableRow');});});}for(const _0x13af05 of['insertTableColumnLeft','insertTableColumnRight']){const _0x51e692=_0x313856['commands']['get'](_0x13af05);_0x4ef357['enableCommand'](_0x13af05,_0x347b80=>{_0x313856['model']['change'](_0x15a815=>{_0x347b80();const _0x19d69a='left'===_0x51e692['order'],_0x2fd809=_0x12d089['getSelectionAffectedTableCells'](_0x12559b),_0x4d6dfd=_0x12d089['getColumnIndexes'](_0x2fd809),_0x54af3a=_0x19d69a?_0x4d6dfd['first']-0x1:_0x4d6dfd['last']+0x1,_0x2b8de5=_0x2fd809[0x0]['findAncestor']('table'),_0x4b63fe=_0x12d089['createTableWalker'](_0x2b8de5,{'startRow':0x0,'column':_0x54af3a,'includeAllSlots':!0x1}),_0x20016d=Array['from'](_0x4b63fe)['map'](_0x345dda=>_0x15a815['createRangeOn'](_0x345dda['cell']));_0x4ef357['markMultiRangeInsertion'](_0x20016d,'tableColumn');});});}for(const _0x25ec67 of['removeTableRow','removeTableColumn']){const _0xf39c7c=_0x25ec67['substr'](0xb),_0x7f9c98=_0xf39c7c['toLowerCase'](),_0x286ffa=_0x7f9c98['substr'](0x0,0x3)+'span',_0x4faf75='table'+_0xf39c7c,_0x302bb6='min'+_0xf39c7c,_0x3d00f2='max'+_0xf39c7c;_0x4ef357['enableCommand'](_0x25ec67,()=>{_0x313856['model']['change'](_0x216785=>{const _0x31da91=_0x12d089['getSelectionAffectedTableCells'](_0x12559b),_0x348ba5=_0x31da91[0x0]['findAncestor']('table');let _0x2bf8f5;if('removeTableRow'==_0x25ec67){const _0x3a80cd=_0x12d089['getRowIndexes'](_0x31da91);_0x2bf8f5={'startRow':_0x3a80cd['first'],'endRow':_0x3a80cd['last'],'includeAllSlots':!0x0};}else{const _0x3c7da6=_0x12d089['getColumnIndexes'](_0x31da91);_0x2bf8f5={'startColumn':_0x3c7da6['first'],'endColumn':_0x3c7da6['last'],'includeAllSlots':!0x0};}const _0x229214=_0x12d089['createTableWalker'](_0x348ba5,_0x2bf8f5),_0x2333e7=Array['from'](_0x229214)['map'](({cell:_0x31c307})=>_0x31c307),_0x1d982e=Re(_0x2333e7['filter'](_0x55b92c=>_0x55b92c['hasAttribute'](_0x286ffa))),_0x45552b=Re(_0x2333e7['filter'](_0x55e07c=>!_0x55e07c['hasAttribute'](_0x286ffa)))['map'](_0x2e4632=>_0x216785['createRangeOn'](_0x2e4632)),_0x30a48b=_0x4ef357['markMultiRangeDeletion'](_0x45552b,_0x4faf75);if(_0x30a48b&&('tableRow'==_0x30a48b['subType']||'tableColumn'==_0x30a48b['subType'])){const _0x1a4e74=this['_getSuggestionCoords'](_0x30a48b);for(const _0x1624bf of _0x1d982e){const _0x2715eb=_0x216785['createRangeOn'](_0x1624bf),_0x3ef2b6=_0x12d089['getCellLocation'](_0x1624bf),_0x57854a=_0x1624bf['getAttribute'](_0x286ffa)-0x1,_0x441012=_0x1a4e74[_0x302bb6],_0x4a00d2=_0x1a4e74[_0x3d00f2];_0x441012<=_0x3ef2b6[_0x7f9c98]&&_0x3ef2b6[_0x7f9c98]+_0x57854a<=_0x4a00d2&&_0x30a48b['addRange'](_0x2715eb);}}});});}function _0x85fcad(_0x10ddf5){const _0x45f077=Array['from'](_0x12559b['getRanges']())['map'](_0x551569=>_0x5b1490['fromRange'](_0x551569));_0x313856['model']['change'](_0x29fedf=>{const _0x425587=_0x29fedf['batch'];_0x10ddf5=_0x10ddf5['filter'](_0x2beb26=>'$graveyard'!=_0x2beb26['root']['rootName']),_0x29fedf['setSelection'](_0x10ddf5),_0x313856['commands']['get']('removeTableRow')['refresh'](),_0x313856['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x313856['model']['enqueueChange'](()=>{_0x313856['model']['enqueueChange'](_0x425587,_0x51e4be=>{const _0x471946=_0x45f077['filter'](_0x263015=>'$graveyard'!=_0x263015['root']['rootName']);_0x471946['length']>0x0&&_0x51e4be['setSelection'](_0x471946);for(const _0x1d779e of _0x45f077)_0x1d779e['detach']();});});});}function _0xecea4(_0x15aa4f){_0x313856['model']['change'](_0x19c35e=>{const _0x2544ae=Array['from'](_0x12559b['getRanges']())['map'](_0x82a622=>_0x5b1490['fromRange'](_0x82a622)),_0x1244ab=[];for(const _0x3f1ebd of _0x15aa4f)for(const _0x206cc9 of _0x3f1ebd['getItems']({'shallow':!0x0}))_0x1244ab['push'](_0x206cc9);for(const _0x1f7003 of _0x1244ab)'$graveyard'!=_0x1f7003['root']['rootName']&&(_0x19c35e['setSelection'](_0x19c35e['createPositionAt'](_0x1f7003,0x0)),_0x313856['commands']['get']('removeTableColumn')['refresh'](),_0x313856['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x1e1d00=_0x2544ae['filter'](_0x5b9004=>'$graveyard'!=_0x5b9004['root']['rootName']);_0x1e1d00['length']>0x0&&_0x19c35e['setSelection'](_0x1e1d00);for(const _0x73ccca of _0x2544ae)_0x73ccca['detach']();});}function _0x2bda44(_0x3f52f9,_0x3a2729){return _0x3a2729['every'](_0x256d88=>_0x3f52f9['some'](_0x2b2f7d=>_0x2b2f7d['end']['isEqual'](_0x256d88['start'])||_0x256d88['end']['isEqual'](_0x2b2f7d['start'])));}function _0x199e32(_0x21758f,_0x139cb8){return!_0x21758f['some'](_0x10bbc4=>_0x139cb8['some'](_0x42b587=>_0x10bbc4['isIntersecting'](_0x42b587)))&&_0x21758f['some'](_0x46e3a6=>_0x139cb8['some'](_0x58bb51=>_0x46e3a6['end']['isTouching'](_0x58bb51['start'])));}_0x4ef357['descriptionFactory']['registerDescriptionCallback'](_0x31f7cb=>{if('insertion'!=_0x31f7cb['type']&&'deletion'!=_0x31f7cb['type'])return;const _0x51f425=_0x31f7cb['getContainedElement']();if(null!=_0x51f425&&_0x51f425['is']('element','table')){if('insertion'==_0x31f7cb['type']){const _0x3ac49f=_0x31f7cb['getItems']()['filter'](_0x3288a8=>_0x3288a8['is']('$textProxy'))['map'](_0x22b5b3=>_0x22b5b3['data']);if(_0x3ac49f['length'])return{'type':'insertion','content':At(_0x560b0d,'*Insert:*\x20%0',At(_0x560b0d,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3ac49f['join']('\x20')+'\x22'))};}if('deletion'==_0x31f7cb['type']){const _0x4dd7d0=_0x31f7cb['getItems']()['filter'](_0x48fb3=>_0x48fb3['is']('$textProxy'))['map'](_0x579aa1=>_0x579aa1['data']);if(_0x4dd7d0['length'])return{'type':'deletion','content':At(_0x560b0d,'*Remove:*\x20%0',At(_0x560b0d,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4dd7d0['join']('\x20')+'\x22'))};}}}),_0x4ef357['descriptionFactory']['registerDescriptionCallback'](_0x2aa1dd=>{if('tableRow'==_0x2aa1dd['subType']){const _0x53dfe7=_0x2aa1dd['getItems']()['filter'](_0x57e452=>_0x57e452['is']('$textProxy'))['map'](_0x11fca3=>_0x11fca3['data']),_0x4dbda4=this['_getSuggestionCoords'](_0x2aa1dd),_0x65c243=_0x4dbda4['maxRow']-_0x4dbda4['minRow']+0x1;if('insertion'==_0x2aa1dd['type'])return _0x53dfe7['length']?{'type':'insertion','content':At(_0x560b0d,'*Insert:*\x20%0',At(_0x560b0d,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x65c243,'\x22'+_0x53dfe7['join']('\x20')+'\x22']))}:{'type':'insertion','content':At(_0x560b0d,'*Insert:*\x20%0',At(_0x560b0d,'ELEMENT_TABLE_ROW',_0x65c243))};if('deletion'==_0x2aa1dd['type'])return _0x53dfe7['length']?{'type':'deletion','content':At(_0x560b0d,'*Remove:*\x20%0',At(_0x560b0d,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x65c243,'\x22'+_0x53dfe7['join']('\x20')+'\x22']))}:{'type':'deletion','content':At(_0x560b0d,'*Remove:*\x20%0',At(_0x560b0d,'ELEMENT_TABLE_ROW',_0x65c243))};}if('tableColumn'==_0x2aa1dd['subType']){const _0x39bdfe=_0x2aa1dd['getItems']()['filter'](_0x964f3d=>_0x964f3d['is']('$textProxy'))['map'](_0x5101e0=>_0x5101e0['data']),_0x192640=this['_getSuggestionCoords'](_0x2aa1dd),_0x3bb959=_0x192640['maxColumn']-_0x192640['minColumn']+0x1;if('insertion'==_0x2aa1dd['type'])return _0x39bdfe['length']?{'type':'insertion','content':At(_0x560b0d,'*Insert:*\x20%0',At(_0x560b0d,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3bb959,'\x22'+_0x39bdfe['join']('\x20')+'\x22']))}:{'type':'insertion','content':At(_0x560b0d,'*Insert:*\x20%0',At(_0x560b0d,'ELEMENT_TABLE_COLUMN',_0x3bb959))};if('deletion'==_0x2aa1dd['type'])return _0x39bdfe['length']?{'type':'deletion','content':At(_0x560b0d,'*Remove:*\x20%0',At(_0x560b0d,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3bb959,'\x22'+_0x39bdfe['join']('\x20')+'\x22']))}:{'type':'deletion','content':At(_0x560b0d,'*Remove:*\x20%0',At(_0x560b0d,'ELEMENT_TABLE_COLUMN',_0x3bb959))};}}),_0x4ef357['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x85fcad),_0x4ef357['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x85fcad),_0x4ef357['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0xecea4),_0x4ef357['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0xecea4),_0x4ef357['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x2bda44),_0x4ef357['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x2bda44),_0x4ef357['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x199e32),_0x4ef357['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x199e32);}['_acceptFormatSuggestionCallbackFactory'](){const _0x2b4522=this['editor'],_0x4092af=_0x2b4522['model']['document']['selection'];return(_0x5f3e2f,_0x7f2f1a)=>{_0x2b4522['model']['change'](_0x5aa0e0=>{const {commandName:_0x21e9ea,commandParams:_0xfda4f6}=_0x7f2f1a;let _0x5e8633=_0x5f3e2f[0x0]['end']['nodeBefore'];_0xfda4f6&&_0xfda4f6[0x0]&&!0x1===_0xfda4f6[0x0]['forceValue']&&(_0x5e8633=_0x5f3e2f[0x0]['start']['nodeAfter']);const _0x17d300=_0x5aa0e0['createRangeIn'](_0x5e8633);if('$graveyard'==_0x17d300['root']['rootName'])return;const _0xaa5006=Array['from'](_0x4092af['getRanges']())['map'](_0x4b8caf=>_0x5b1490['fromRange'](_0x4b8caf));_0x5aa0e0['setSelection'](_0x17d300),_0x2b4522['commands']['get'](_0x21e9ea)['refresh'](),_0xfda4f6['push']({'forceDefaultExecution':!0x0}),_0x2b4522['execute'](_0x21e9ea,..._0xfda4f6);const _0x246298=_0xaa5006['filter'](_0x372151=>'$graveyard'!=_0x372151['root']['rootName']);_0x246298['length']>0x0&&_0x5aa0e0['setSelection'](_0x246298);for(const _0x589b10 of _0xaa5006)_0x589b10['detach']();});};}['_getCoordsForCells'](_0x589197){const _0x4d15b1=this['editor']['plugins']['get']('TableUtils');let _0x5573c6=Number['MAX_SAFE_INTEGER'],_0x43653a=Number['MIN_SAFE_INTEGER'],_0x24b593=Number['MAX_SAFE_INTEGER'],_0x313457=Number['MIN_SAFE_INTEGER'];for(const _0x1f3b9c of _0x589197){if('$graveyard'==_0x1f3b9c['root']['rootName'])continue;const {row:_0x24077b,column:_0x502582}=_0x4d15b1['getCellLocation'](_0x1f3b9c),_0x4af8cf=_0x1f3b9c['hasAttribute']('rowspan')?_0x1f3b9c['getAttribute']('rowspan')-0x1:0x0,_0x3db91f=_0x1f3b9c['hasAttribute']('colspan')?_0x1f3b9c['getAttribute']('colspan')-0x1:0x0;_0x5573c6=_0x24077b<_0x5573c6?_0x24077b:_0x5573c6,_0x43653a=_0x24077b+_0x4af8cf>_0x43653a?_0x24077b+_0x4af8cf:_0x43653a,_0x24b593=_0x502582<_0x24b593?_0x502582:_0x24b593,_0x313457=_0x502582+_0x3db91f>_0x313457?_0x502582+_0x3db91f:_0x313457;}return{'minRow':_0x5573c6,'maxRow':_0x43653a,'minColumn':_0x24b593,'maxColumn':_0x313457};}['_setupColumnsRowsFixing'](){const _0x49d344=this['editor'],_0x25cd6d=_0x49d344['plugins']['get']('TrackChangesEditing'),_0x2b98af=_0x49d344['plugins']['get']('TableUtils');_0x49d344['model']['document']['on']('change:data',()=>{const _0x415e0c=Array['from'](_0x49d344['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2bbfaa,data:_0x173944}of _0x415e0c){const {group:_0x55869d,id:_0x40dbba,subType:_0x350371}=_0x6b12f7(_0x2bbfaa);if('suggestion'!=_0x55869d)continue;if(null!=_0x173944['oldRange'])continue;const _0x232f33=_0x25cd6d['getSuggestion'](_0x40dbba);this['_tablePostFixingSubtypes']['includes'](_0x350371)&&this['_tableSuggestions']['add'](_0x232f33);}},{'priority':'low'});const _0x3a9aa8=(_0x51e903,_0x19f86d)=>{let _0x5b9bdc=!0x1;const _0x4efb49=_0x19f86d['createRangeOn'](_0x51e903),_0x163f1a=_0x51e903['findAncestor']('table'),_0x2acab7=_0x2b98af['getCellLocation'](_0x51e903);for(const _0x2b4666 of this['_tableSuggestions']){const _0x4e379a=_0x2b4666['subType'],_0x1f2f4c=_0x4e379a['startsWith']('tablePaste'),_0x4c5542=_0x4e379a['substr'](_0x1f2f4c?0xa:0x5),_0x3cad00=_0x4c5542['toLowerCase'](),_0x3e47ff=_0x3cad00['substr'](0x0,0x3)+'span',_0xde3080='min'+_0x4c5542,_0x3f7bd0='max'+_0x4c5542;if(!_0x2b4666['isInContent'])continue;if(_0x163f1a!=_0x2b4666['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x2b4666['isIntersectingWithRange'](_0x4efb49))continue;const _0x4372c7=_0x51e903['hasAttribute'](_0x3e47ff)?_0x51e903['getAttribute'](_0x3e47ff)-0x1:0x0,_0x5d280a=this['_getSuggestionCoords'](_0x2b4666),_0x2a71a9=_0x5d280a[_0xde3080],_0x40858d=_0x5d280a[_0x3f7bd0];_0x2a71a9<=_0x2acab7[_0x3cad00]&&_0x2acab7[_0x3cad00]+_0x4372c7<=_0x40858d&&(_0x2b4666['addRange'](_0x4efb49),_0x5b9bdc=!0x0);}return _0x5b9bdc;};_0x49d344['model']['document']['registerPostFixer'](_0x3c24ec=>{let _0x4097ab=!0x1;for(const _0x5a93bc of _0x49d344['model']['document']['differ']['getChanges']())if('insert'==_0x5a93bc['type']){if('tableRow'==_0x5a93bc['name']){for(const _0xe18bbd of _0x5a93bc['position']['nodeAfter']['getChildren']())_0x4097ab=_0x4097ab||_0x3a9aa8(_0xe18bbd,_0x3c24ec);}else'tableCell'==_0x5a93bc['name']&&(_0x4097ab=_0x4097ab||_0x3a9aa8(_0x5a93bc['position']['nodeAfter'],_0x3c24ec));}return _0x4097ab;});}['_getSuggestionCoords'](_0x1b7e7a){return this['_getCoordsForCells'](_0x1b7e7a['getRanges']()['map'](_0x11814f=>_0x11814f['start']['nodeAfter']));}}function Re(_0x37c88c){return Array['from'](new Set(_0x37c88c)['values']());}class Se extends _0x31a8de{static get['requires'](){return[Ne];}['afterInit'](){const _0xc9f543=this['editor'],_0x975e14=_0xc9f543['model']['document']['selection'],_0x5a1e75=_0xc9f543['locale'];if(!_0xc9f543['plugins']['has']('TableEditing'))return;const _0x382151=_0xc9f543['plugins']['get']('TrackChangesEditing'),_0x1079e9=_0xc9f543['plugins']['get']('TableUtils'),_0xeeeb16=_0xc9f543['plugins']['get'](Ne);_0xeeeb16['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x382151['enableCommand']('mergeTableCells',()=>{const _0x4119d4=_0x1079e9['getSelectionAffectedTableCells'](_0xc9f543['model']['document']['selection']);_0xc9f543['model']['change'](()=>{_0x382151['markMultiRangeBlockFormat'](_0x4119d4,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0xc9f543['commands']['get']('mergeTableCells')['on']('execute',(_0x5c458a,_0x5a7166)=>{_0xc9f543['commands']['get']('trackChanges')['value']&&(_0x5a7166['length']>0x0&&_0x5a7166[_0x5a7166['length']-0x1]&&_0x5a7166[_0x5a7166['length']-0x1]['forceDefaultExecution']||_0x382151['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x5c458a['stop']());},{'priority':'highest'});for(const _0x1cbab9 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x444988=_0xc9f543['commands']['get'](_0x1cbab9);_0x382151['enableCommand'](_0x1cbab9,()=>{const _0x17d12d=_0xc9f543['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2c5226=>_0x2c5226['is']('element','tableCell')),_0x556b94=_0x444988['value'];_0xc9f543['model']['change'](()=>{_0x382151['markMultiRangeBlockFormat']([_0x17d12d,_0x556b94],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x26095f of['splitTableCellVertically','splitTableCellHorizontally']){const _0x3da1c5=_0xc9f543['commands']['get'](_0x26095f);_0x382151['enableCommand'](_0x26095f,()=>{const _0x2bc8e1=_0x1079e9['getSelectionAffectedTableCells'](_0xc9f543['model']['document']['selection'])[0x0],_0x2e2caa=_0x2bc8e1['findAncestor']('table'),{column:_0x1528c8,row:_0x169396}=_0x1079e9['getCellLocation'](_0x2bc8e1);let _0x497565=[];if('horizontally'==_0x3da1c5['direction']){const _0x13a85d=_0x1079e9['createTableWalker'](_0x2e2caa,{'startRow':_0x169396,'endRow':_0x169396,'includeAllSlots':!0x0});_0x497565=Array['from'](_0x13a85d)['map'](_0x48a932=>_0x48a932['cell']);}else{const _0x47f997=_0x1079e9['createTableWalker'](_0x2e2caa,{'column':_0x1528c8,'includeAllSlots':!0x0});_0x497565=Array['from'](_0x47f997)['map'](_0x396c1d=>_0x396c1d['cell']);}_0xc9f543['model']['change'](_0x231f8f=>{_0x382151['markBlockFormat'](_0x231f8f['createRangeOn'](_0x2bc8e1),{'commandName':_0x26095f,'commandParams':[]},_0x497565,_0x26095f);});});}_0x382151['descriptionFactory']['registerDescriptionCallback'](_0x257894=>{if('formatBlock'!=_0x257894['type']&&'formatInline'!=_0x257894['type'])return;const {data:_0x43855b}=_0x257894;return _0x43855b&&'mergeTableCells'==_0x43855b['commandName']?{'type':'format','content':At(_0x5a1e75,'*Merge\x20cells*')}:void 0x0;}),_0x382151['descriptionFactory']['registerDescriptionCallback'](_0x400854=>{if('formatBlock'!=_0x400854['type']&&'formatInline'!=_0x400854['type'])return;const {data:_0x35ec28}=_0x400854;return _0x35ec28?'splitTableCellVertically'==_0x35ec28['commandName']?{'type':'format','content':At(_0x5a1e75,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x35ec28['commandName']?{'type':'format','content':At(_0x5a1e75,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x18bf54=_0xeeeb16['_acceptFormatSuggestionCallbackFactory']();for(const _0x140470 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x382151['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x140470,'accept',_0x18bf54);for(const _0x489816 of['splitTableCellVertically','splitTableCellHorizontally'])_0x382151['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x489816,'accept',_0x18bf54);_0x382151['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x53398d=>{_0xc9f543['model']['change'](_0x3ce12d=>{const _0x1724c2=Array['from'](_0x975e14['getRanges']())['map'](_0x57df7e=>_0x5b1490['fromRange'](_0x57df7e));_0x3ce12d['setSelection'](_0x53398d),_0xc9f543['commands']['get']('mergeTableCells')['refresh'](),_0xc9f543['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x22150c=_0x1724c2['filter'](_0x208c0b=>'$graveyard'!=_0x208c0b['root']['rootName']);_0x22150c['length']>0x0&&_0x3ce12d['setSelection'](_0x22150c);for(const _0x136219 of _0x1724c2)_0x136219['detach']();});});for(const _0x197ce8 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x34e3ed=_0xc9f543['commands']['get'](_0x197ce8);_0x34e3ed['on']('set:isEnabled',(_0x74573a,_0x5fb12e,_0x1b2e32)=>{if(_0x1b2e32){const _0x29bd47=_0xc9f543['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x50270a=>_0x50270a['is']('element','tableCell'));this['_areMergableCells'](_0x34e3ed['value'],_0x29bd47)||(_0x74573a['return']=!0x1,_0x74573a['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x3c8cb1=this['editor']['commands']['get']('mergeTableCells'),_0x27df0d=this['editor']['plugins']['get']('TableUtils');if(!_0x3c8cb1['isEnabled'])return!0x1;const _0xdb0399=_0x27df0d['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x2cb17b of _0xdb0399)for(const _0x57a504 of _0xdb0399)if(_0x2cb17b!=_0x57a504&&!this['_areMergableCells'](_0x2cb17b,_0x57a504))return!0x1;return!0x0;}['_areMergableCells'](_0x2490fa,_0x17757c){const _0x4955cc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x24aa73=this['editor']['model']['createRangeOn'](_0x2490fa),_0x13e3e9=this['editor']['model']['createRangeOn'](_0x17757c),_0x2fe9c8=new Set(),_0x49012c=new Set();for(const _0x495a50 of _0x4955cc['getSuggestions']())if(('insertion'==_0x495a50['type']||'deletion'==_0x495a50['type']||'mergeTableCells'==_0x495a50['subType'])&&_0x495a50['isInContent']){for(const _0xa8683 of _0x495a50['getRanges']())_0xa8683['containsRange'](_0x24aa73,!0x0)&&_0x2fe9c8['add'](_0x495a50['type']+':'+_0x495a50['author']['id']),_0xa8683['containsRange'](_0x13e3e9,!0x0)&&_0x49012c['add'](_0x495a50['type']+':'+_0x495a50['author']['id']);}if(_0x2fe9c8['size']!=_0x49012c['size'])return!0x1;for(const _0x2bf744 of _0x2fe9c8)if(!_0x49012c['has'](_0x2bf744))return!0x1;return!0x0;}}class Me extends _0x31a8de{static get['requires'](){return[Ne];}['afterInit'](){const _0x3dd312=this['editor'];if(!_0x3dd312['plugins']['has']('TableEditing'))return;const _0xedccba=_0x3dd312['locale'],_0x379699=_0x3dd312['plugins']['get']('TrackChangesEditing');_0x379699['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x379699['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x379699['descriptionFactory']['registerAttributeLabel']('headingRows',At(_0xedccba,'FORMAT_HEADER_ROW')),_0x379699['descriptionFactory']['registerAttributeLabel']('headingColumns',At(_0xedccba,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5e63b7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x36ceee=this['editor']['plugins']['get'](Ne)['_acceptFormatSuggestionCallbackFactory']();_0x5e63b7['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x36ceee),_0x5e63b7['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x36ceee),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x3274eb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x286c6c=this['editor']['plugins']['get']('TableUtils');function _0x3a214d({showActiveMarker:_0x375834=!0x0,setDataAttribute:_0xf986f3=!0x0}={}){return(_0x39ab31,_0x228246,_0x487124)=>{const {type:_0xed619d,id:_0x292c75}=_0x6b12f7(_0x228246['markerName']);if(!_0x3274eb['hasSuggestion'](_0x292c75))return;const _0x3ecdb6=_0x3274eb['getSuggestion'](_0x292c75),_0x7166c1=_0x3ecdb6['data'];if('formatBlock'!=_0x3ecdb6['type']||!_0x7166c1||'setTableColumnHeader'!=_0x7166c1['commandName'])return;if(_0x228246['item'])return void _0x39ab31['stop']();if(!_0x487124['consumable']['consume'](_0x228246['markerRange'],_0x39ab31['name']))return;const _0x199628=_0x228246['markerRange']['start']['nodeAfter'],_0x2abc25=_0x228246['markerRange']['end']['nodeBefore'],_0x2a1e44=_0x199628['parent']['parent'],{column:_0x486142}=_0x286c6c['getCellLocation'](_0x199628),{column:_0x4d647b}=_0x286c6c['getCellLocation'](_0x2abc25);for(let _0x21a7ae=_0x486142;_0x21a7ae<=_0x4d647b;_0x21a7ae++){const _0x33b6ee=_0x286c6c['createTableWalker'](_0x2a1e44,{'column':_0x21a7ae,'includeAllSlots':!0x1});for(const _0x3fda17 of _0x33b6ee){const _0xeb66ac=_0x3fda17['cell'],_0x5cf28a=_0x487124['mapper']['toViewElement'](_0xeb66ac);_0x487124['writer']['addClass']('ck-suggestion-marker-'+_0xed619d,_0x5cf28a),_0xf986f3&&_0x487124['writer']['setAttribute']('data-suggestion',_0x292c75,_0x5cf28a),_0x487124['mapper']['bindElementToMarker'](_0x5cf28a,_0x228246['markerName']),_0x375834&&(_0x3274eb['activeMarkers']['includes'](_0x228246['markerName'])?_0x487124['writer']['addClass']('ck-suggestion-marker--active',_0x5cf28a):_0x487124['writer']['removeClass']('ck-suggestion-marker--active',_0x5cf28a));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x3a214d(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1fc1ec,_0x13d46b,_0x436e30)=>{_0x436e30['options']['showSuggestionHighlights']&&_0x3a214d({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x1fc1ec,_0x13d46b,_0x436e30);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x1dd40e,_0x265e61,_0x3226f6)=>{const {type:_0x1c8b90,id:_0x44956f}=_0x6b12f7(_0x265e61['markerName']);if(!_0x3274eb['hasSuggestion'](_0x44956f))return;const _0x2da207=_0x3274eb['getSuggestion'](_0x44956f),_0x16eeff=_0x2da207['data'];if('formatBlock'!=_0x2da207['type']||!_0x16eeff||'setTableColumnHeader'!=_0x16eeff['commandName'])return;const _0x53510a=_0x3226f6['mapper']['markerNameToElements'](_0x265e61['markerName']);if(_0x53510a){for(const _0x2fe50f of _0x53510a)_0x3226f6['writer']['removeClass']('ck-suggestion-marker-'+_0x1c8b90,_0x2fe50f),_0x3226f6['writer']['removeClass']('ck-suggestion-marker--active',_0x2fe50f),_0x3226f6['writer']['removeAttribute']('data-suggestion',_0x2fe50f),_0x3226f6['mapper']['unbindElementFromMarkerName'](_0x2fe50f,_0x265e61['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x344cf9=this['editor'],_0xa9714d=_0x344cf9['locale'];function _0x41f651(_0x376a4f){return{'type':'format','content':At(_0xa9714d,'*Format:*\x20%0',_0x376a4f)};}_0x344cf9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xf8826=>{if('formatBlock'!=_0xf8826['type'])return;const {data:_0xe9a9b9}=_0xf8826;if(_0xe9a9b9){if('setTableRowHeader'==_0xe9a9b9['commandName']){const _0x15f194=_0xe9a9b9['commandParams'][0x0]['forceValue'];return _0x41f651(At(_0xa9714d,_0x15f194?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0xe9a9b9['commandName']){const _0x5bd356=_0xe9a9b9['commandParams'][0x0]['forceValue'];return _0x41f651(At(_0xa9714d,_0x5bd356?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Oe extends _0x31a8de{static get['requires'](){return[Ne];}['afterInit'](){const _0x3d2780=this['editor'];if(!_0x3d2780['plugins']['has']('TableEditing')||!_0x3d2780['config']['get']('table.enableFooters'))return;const _0x2ce91e=_0x3d2780['locale'],_0x206622=_0x3d2780['plugins']['get']('TrackChangesEditing');_0x206622['enableDefaultAttributesIntegration']('setTableFooterRow'),_0x206622['descriptionFactory']['registerAttributeLabel']('footerRows',At(_0x2ce91e,'FORMAT_FOOTER_ROW'));}}class we extends _0x31a8de{['afterInit'](){const _0x335dba=this['editor'],_0x2738d3=_0x335dba['locale'],_0x42f151=_0x335dba['plugins']['get']('TrackChangesEditing');function _0x26fd99(_0xe7c5d2){return{'type':'format','content':''+At(_0x2738d3,'*Set\x20table\x20type:*\x20%0',_0xe7c5d2)};}_0x335dba['plugins']['has']('TableLayout')&&(_0x42f151['enableCommand']('insertTableLayout'),_0x42f151['enableDefaultAttributesIntegration']('tableType'),_0x42f151['descriptionFactory']['registerElementLabel'](_0x7bae1e=>_0x7bae1e['is']('element','table')&&'layout'===_0x7bae1e['getAttribute']('tableType'),_0x124524=>At(_0x2738d3,'ELEMENT_LAYOUT_TABLE',_0x124524)),_0x42f151['descriptionFactory']['registerDescriptionCallback'](_0x35d0a5=>{const {data:_0x49e246}=_0x35d0a5;if(_0x49e246&&'tableType'==_0x49e246['key'])switch(_0x49e246['newValue']){case'layout':return _0x26fd99(At(_0x2738d3,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x26fd99(At(_0x2738d3,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Fe=/* #__PURE__ -- @preserve */
|
|
25
|
-
Object['fromEntries'](Be['map'](_0x2b46f0=>[_0x2b46f0,null]));class De extends _0x31a8de{static get['requires'](){return[Ne];}['afterInit'](){const _0x56a054=this['editor'];if(!_0x56a054['plugins']['has']('TableClipboard'))return;const _0x8753aa=_0x56a054['plugins']['get']('TrackChangesEditing'),_0x3ba231=_0x56a054['plugins']['get']('TableUtils'),_0x12b816=_0x56a054['plugins']['get'](Ne),_0xf664c=_0x56a054['plugins']['get']('TableClipboard'),_0x3a8015=_0x56a054['plugins']['get']('TableSelection'),_0x1b773c=_0x56a054['plugins']['get'](ut);_0x12b816['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x56a054['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x56a054['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x4c3f8e=null,_0x139bf1=!0x1;_0x1b773c['on']('contentInsertion',(_0xed6ae3,_0x5e9904)=>{_0x139bf1='paste'===_0x5e9904['method'];}),_0x56a054['model']['on']('insertContent',(_0x3a66f9,_0x2bcc8b)=>{if(!_0x139bf1&&null===_0x3a8015['getSelectedTableCells']())return;const [_0x48c0ae,_0x339efc]=_0x2bcc8b,_0x4a57c0=_0x2bcc8b[_0x2bcc8b['length']-0x1];_0x4a57c0&&_0x4a57c0['forceDefaultExecution']||_0x8753aa['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x305564,_0x41a800,_0x1db6db,_0x566ca3,_0x29ab96){if(_0x41a800&&!_0x41a800['is']('documentSelection'))return!0x1;const _0x492e15=_0x29ab96['getTableIfOnlyTableInContent'](_0x305564,_0x1db6db);if(!_0x492e15||!xe(_0x492e15,void 0x0,_0x566ca3))return!0x1;const _0x342fe0=_0x566ca3['getSelectionAffectedTableCells'](_0x1db6db['document']['selection']);if(!_0x342fe0['length'])return!0x1;const _0x5df979=_0x342fe0[0x0]['findAncestor']('table'),_0x577c04=_0x566ca3['getRowIndexes'](_0x342fe0),_0xf0f27b=_0x566ca3['getColumnIndexes'](_0x342fe0),_0x2b989a={'startRow':_0x577c04['first'],'endRow':_0x577c04['last'],'startColumn':_0xf0f27b['first'],'endColumn':_0xf0f27b['last']};return 0x1==_0x342fe0['length']&&(_0x2b989a['endRow']+=_0x566ca3['getRows'](_0x492e15)-0x1,_0x2b989a['endColumn']+=_0x566ca3['getColumns'](_0x492e15)-0x1),xe(_0x5df979,_0x2b989a,_0x566ca3);}(_0x48c0ae,_0x339efc,_0x56a054['model'],_0x3ba231,_0xf664c)&&(_0x3a66f9['stop'](),_0x4c3f8e={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x56a054['model']['change'](()=>{_0x56a054['model']['insertContent'](_0x2bcc8b[0x0],_0x2bcc8b[0x1],_0x2bcc8b[0x2],{'forceDefaultExecution':!0x0});const _0x16f38c=_0x2026f5(),{rowInsertionRanges:_0x19b5a8,columnInsertionRanges:_0xf48e65,insertionRanges:_0x1e4eb6,deletionRanges:_0x254607,cells:_0x1b1ca1}=_0x4c3f8e;_0x19b5a8['length']&&_0x8753aa['markMultiRangeInsertion'](_0x19b5a8,'tablePasteRow',{'tablePasteChainId':_0x16f38c}),_0xf48e65['length']&&_0x8753aa['markMultiRangeInsertion'](_0xf48e65,'tablePasteColumn',{'tablePasteChainId':_0x16f38c}),_0x1e4eb6['length']&&(_0x8753aa['markMultiRangeInsertion'](_0x1e4eb6,'tablePaste',{'tablePasteChainId':_0x16f38c,'skipNestingCheck':!0x0}),_0x1e4eb6['forEach'](_0x19ee4e=>_0x19ee4e['detach']?.())),_0x254607['length']&&(_0x8753aa['markMultiRangeDeletion'](_0x254607,'tablePaste',{'tablePasteChainId':_0x16f38c,'skipNestingCheck':!0x0}),_0x254607['forEach'](_0x45da7a=>_0x45da7a['detach']?.()));const _0x14ef5c=_0x8753aa['markMultiRangeBlockFormat'](_0x1b1ca1['map'](({element:_0x34a946})=>_0x34a946),{'formatGroupId':_0x2026f5()},[],'tablePasteCell',{'tablePasteChainId':_0x16f38c});if(_0x14ef5c){const _0x35c1dc=_0x14ef5c['getMarkers'](),_0x4ac474=[];for(const {element:_0x35e558,attributes:_0xc918df}of _0x1b1ca1){if(!_0xc918df)continue;const _0x525309=_0x56a054['model']['createRangeOn'](_0x35e558),_0x4ce065=_0x35c1dc['find'](_0x1bdbe0=>_0x1bdbe0['getRange']()['isEqual'](_0x525309));_0x4ce065&&_0x4ac474['push']([_0x4ce065['name'],_0xc918df]);}_0x4ac474['length']&&_0x14ef5c['setAttribute']('markerAttributes',Object['fromEntries'](_0x4ac474));}_0x4c3f8e=null;}));},{'priority':_0x31b733['high']+0xa}),_0x1b773c['on']('contentInsertion',()=>{_0x139bf1=!0x1;},{'priority':'lowest'}),_0x56a054['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x15382c,_0x3f6fbc)=>{const [_0x58640a,_0x2a5544,,_0x41ae54]=_0x3f6fbc;if(!_0x4c3f8e)return;_0x15382c['stop']();const _0x3155ce=_0x58640a['cell'],_0x203f37=_0x2a5544,_0x533bc4=ve(_0x3155ce),_0x53acea=ve(_0x203f37);_0x15382c['return']=_0x3155ce;let _0x1f66fa=null,_0x4591b0=null;if(_0x53acea||_0x533bc4){if(_0x533bc4&&!_0x53acea){_0x41ae54['remove'](_0x3155ce['getChild'](0x0));for(const _0x5921fb of Array['from'](_0x203f37['getChildren']()))_0x41ae54['insert'](_0x5921fb,_0x3155ce,'end');const _0x121d18=_0x4c3f8e['rowInsertionIndexes']['includes'](_0x58640a['row']),_0x44a3a1=_0x4c3f8e['columnInsertionIndexes']['includes'](_0x58640a['column']);_0x121d18||_0x44a3a1||(_0x1f66fa=_0x5b1490['fromRange'](_0x41ae54['createRangeIn'](_0x3155ce)));}else _0x53acea&&!_0x533bc4&&(_0x4591b0=_0x41ae54['createRangeIn'](_0x3155ce));}else{const _0x5b7d16=_0x41ae54['createElement']('tableCellSuggestion'),_0x47388d=_0x41ae54['createElement']('tableCellSuggestion');_0x41ae54['wrap'](_0x41ae54['createRangeIn'](_0x3155ce),_0x47388d),_0x41ae54['insert'](_0x5b7d16,_0x3155ce,0x0);for(const _0x130fa8 of Array['from'](_0x203f37['getChildren']()))_0x41ae54['insert'](_0x130fa8,_0x5b7d16,'end');_0x1f66fa=_0x5b1490['fromRange'](_0x41ae54['createRangeOn'](_0x5b7d16)),_0x4591b0=_0x5b1490['fromRange'](_0x41ae54['createRangeOn'](_0x47388d));}const _0x55a063=Array['from'](_0x203f37['getAttributes']())['filter'](([_0x33574d])=>Be['includes'](_0x33574d));_0x4c3f8e['cells']['push']({'element':_0x3155ce,'attributes':_0x55a063['length']?Object['fromEntries'](_0x55a063):null}),_0x1f66fa&&_0x4c3f8e['insertionRanges']['push'](_0x1f66fa),_0x4591b0&&_0x4c3f8e['deletionRanges']['push'](_0x4591b0);},{'priority':'high'}),_0x3ba231['on']('insertColumns',(_0x34f4cc,_0x4e9c3c)=>{const [_0x478a46,_0x5b24c3={}]=_0x4e9c3c;if(!_0x4c3f8e)return;const _0x1ae84e=_0x5b24c3['at']||0x0,_0x5ac87f=_0x5b24c3['columns']||0x1;_0x4c3f8e['columnInsertionIndexes']=new Array(_0x5ac87f)['fill'](_0x1ae84e)['map']((_0x2d67d4,_0x5627fa)=>_0x2d67d4+_0x5627fa);for(const {cell:_0x5149a2}of _0x3ba231['createTableWalker'](_0x478a46,{'startColumn':_0x1ae84e,'endColumn':_0x1ae84e+_0x5ac87f-0x1}))_0x4c3f8e['columnInsertionRanges']['push'](_0x56a054['model']['createRangeOn'](_0x5149a2));},{'priority':'low'}),_0x3ba231['on']('insertRows',(_0x3b46c4,_0x47b7de)=>{const [_0x44ff36,_0x1aace3={}]=_0x47b7de;if(!_0x4c3f8e)return;const _0xeef584=_0x1aace3['at']||0x0,_0x5e3fba=_0x1aace3['rows']||0x1;_0x4c3f8e['rowInsertionIndexes']=new Array(_0x5e3fba)['fill'](_0xeef584)['map']((_0x51c4b6,_0x3064a8)=>_0x51c4b6+_0x3064a8);for(const {cell:_0x205d1b}of _0x3ba231['createTableWalker'](_0x44ff36,{'startRow':_0xeef584,'endRow':_0xeef584+_0x5e3fba-0x1}))_0x4c3f8e['rowInsertionRanges']['push'](_0x56a054['model']['createRangeOn'](_0x205d1b));},{'priority':'low'}),_0x8753aa['descriptionFactory']['registerDescriptionCallback'](_0x1fa09f=>{if(_0x1fa09f['subType']&&_0x1fa09f['subType']['startsWith']('tablePaste'))return _0x1fa09f['previous']?{}:{'type':'insertion','content':At(_0x56a054['locale'],'*Replace\x20table\x20cells*')};});const _0x2f2758=()=>!0x1;for(const _0x282414 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x8753aa['_suggestionFactory']['registerCustomCallback']('insertion',_0x282414,'join',_0x2f2758),_0x8753aa['_suggestionFactory']['registerCustomCallback']('deletion',_0x282414,'join',_0x2f2758),_0x8753aa['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x282414,'join',_0x2f2758);_0x8753aa['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x2f2758),_0x8753aa['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x1009ae,_0x388328,_0x451bab)=>{const _0x42c9d6=_0x1009ae['map'](_0x231ffd=>_0x231ffd['getContainedElement']())['filter'](_0x87c08c=>_0x87c08c),_0x67b77e=new Map(_0x42c9d6['map'](_0x1725fb=>[_0x1725fb,null]));if(_0x4c3f8e){for(const {element:_0x543b9f,attributes:_0x311fd4}of _0x4c3f8e['cells'])_0x311fd4&&_0x67b77e['set'](_0x543b9f,_0x311fd4);}else{if(_0x451bab&&_0x451bab['markerAttributes'])for(const [_0x42f255,_0x333ac1]of Object['entries'](_0x451bab['markerAttributes'])){const _0x1e266f=_0x56a054['model']['markers']['get'](_0x42f255),_0x4ff2d7=_0x1e266f?_0x1e266f['getRange']()['getContainedElement']():null;_0x4ff2d7&&_0x67b77e['set'](_0x4ff2d7,_0x333ac1);}}_0x56a054['model']['change'](_0x31c90c=>{for(const [_0x5abcfb,_0x26053f]of _0x67b77e)_0x31c90c['setAttributes']({...Fe,..._0x26053f},_0x5abcfb);});});const _0x11a3f6=(_0x829215,_0x91ff73)=>{_0x8753aa['_suggestionFactory']['registerCustomCallback'](_0x829215,'tablePaste',_0x91ff73,(_0x3db765,_0xd80aeb,_0x14ce04)=>{_0x56a054['model']['change'](_0x495877=>{const _0x9f0082=[];for(const _0x27de0c of _0x3db765){const _0x5d5391=_0x27de0c['start']['nodeAfter'];_0x5d5391['is']('element','tableCellSuggestion')&&_0x9f0082['push'](_0x5d5391);}_0x8753aa['_suggestionFactory']['getSuggestionCallback'](_0x829215,null,_0x91ff73)(_0x3db765,_0xd80aeb,_0x14ce04);for(const _0x43c18b of _0x9f0082)'$graveyard'!=_0x43c18b['root']['rootName']&&_0x495877['unwrap'](_0x43c18b);});});};_0x11a3f6('insertion','accept'),_0x11a3f6('insertion','discard'),_0x11a3f6('deletion','accept'),_0x11a3f6('deletion','discard'),_0x8753aa['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x1cff8c=>{const _0xd291f4=_0x1cff8c['map'](_0x39d8a8=>_0x39d8a8['getContainedElement']()),_0x558c38=_0xd291f4[0x0]['findAncestor']('table'),{minRow:_0x2028ba,maxRow:_0x497f9e}=_0x12b816['_getCoordsForCells'](_0xd291f4);_0x3ba231['removeRows'](_0x558c38,{'at':_0x2028ba,'rows':_0x497f9e-_0x2028ba+0x1});}),_0x8753aa['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x52e8f9=>{const _0x3dda39=_0x52e8f9['map'](_0x1cabc5=>_0x1cabc5['getContainedElement']()),_0x3ad7a8=_0x3dda39[0x0]['findAncestor']('table'),{minColumn:_0x4e094c,maxColumn:_0x245bfe}=_0x12b816['_getCoordsForCells'](_0x3dda39);_0x3ba231['removeColumns'](_0x3ad7a8,{'at':_0x4e094c,'columns':_0x245bfe-_0x4e094c+0x1});});const _0x5f5762=(_0x576288,_0x15825a)=>{if(!_0x15825a['subType']||!_0x15825a['subType']['startsWith']('tablePaste'))return;const _0xec0d04=_0x15825a['attributes']['tablePasteChainId'],_0x50637a=_0x8753aa['getSuggestions']()['filter'](_0xefdfb2=>_0xefdfb2['isInContent']&&_0xefdfb2['attributes']&&_0xefdfb2['attributes']['tablePasteChainId']==_0xec0d04);_0x50637a['length']&&_0x15825a['getAllAdjacentSuggestions']()['length']!=_0x50637a['length']&&_0x50637a['reduce']((_0x4789ed,_0x58015f)=>(_0x4789ed['next']=_0x58015f,_0x58015f['previous']=_0x4789ed,_0x58015f));};function _0x38217b(_0x4b7f7c,_0x4ab414=!0x0){const {id:_0x1c3842,authorId:_0x23611d}=_0x6b12f7(_0x4b7f7c['markerName']),_0x99dc44=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x17f0b6=_0x8753aa['activeMarkers']['includes'](_0x4b7f7c['markerName']);return _0x17f0b6&&_0x99dc44['push']('ck-suggestion-marker--active'),{'classes':_0x99dc44,'attributes':{'data-suggestion':_0x1c3842,'data-author-id':_0x23611d},'priority':_0x17f0b6&&_0x4ab414?0xbc2:0xbb8};}_0x8753aa['on']('suggestionLoaded',_0x5f5762,{'priority':'high'}),_0x8753aa['on']('suggestionUnloaded',_0x5f5762,{'priority':'high'}),_0x56a054['model']['document']['registerPostFixer'](()=>{let _0x3535ee=!0x1;const _0x434bbd=Array['from'](_0x56a054['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x44e7b0,data:_0x20b12a}of _0x434bbd){const {group:_0x5b9310,type:_0x780cdc,id:_0xde2f}=_0x6b12f7(_0x44e7b0);if('suggestion'!=_0x5b9310||'deletion'!=_0x780cdc||_0x20b12a['oldRange'])continue;if(!_0x8753aa['hasSuggestion'](_0xde2f))continue;const _0xf43100=_0x8753aa['getSuggestion'](_0xde2f)['getRanges'](),_0x407917=_0x56a054['plugins']['get']('Users')['me'];for(const _0x272b92 of _0x8753aa['getSuggestions']()){if(!_0x272b92['isInContent']||_0x272b92['author']!=_0x407917)continue;if('formatBlock'!=_0x272b92['type']||'tablePasteCell'!=_0x272b92['subType'])continue;if(_0x272b92['getRanges']()['every'](_0x27e86e=>_0xf43100['some'](_0x570d10=>_0x570d10['containsRange'](_0x27e86e,!0x0)))){for(const _0xe2d8be of _0x272b92['getAllAdjacentSuggestions']())_0xe2d8be['isInContent']&&(_0xe2d8be['discard'](),_0x3535ee=!0x0);}}}return _0x3535ee;}),_0x56a054['model']['document']['registerPostFixer'](_0x24522a=>{const _0x1ef8b5=_0x56a054['commands']['get']('redo');if(!_0x1ef8b5||!_0x1ef8b5['_createdBatches']['has'](_0x24522a['batch']))return!0x1;let _0x1a6fef=!0x1;const _0x5b7460=_0x56a054['plugins']['get']('Users')['me'],_0x14945f=_0x56a054['model']['document']['differ']['getChanges'](),_0x26ce1f=Array['from'](_0x56a054['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x575950,data:_0x155bde})=>{const {group:_0x31bf87,subType:_0x1669f,authorId:_0x35c94d}=_0x6b12f7(_0x575950);return'suggestion'==_0x31bf87&&'tablePaste'==_0x1669f&&_0x35c94d==_0x5b7460['id']&&!_0x155bde['oldRange'];});for(const _0x35b450 of _0x14945f){if('insert'!=_0x35b450['type']||'tableCellSuggestion'!=_0x35b450['name']||0x1!=_0x35b450['length'])continue;const _0x3b89b5=_0x24522a['createRange'](_0x35b450['position'],_0x35b450['position']['getShiftedBy'](0x1));if(!_0x26ce1f['find'](({data:_0x5428b2})=>_0x5428b2['newRange']['isEqual'](_0x3b89b5))){for(const {name:_0x2e42b5,data:_0x199514}of _0x26ce1f)if(_0x3b89b5['containsRange'](_0x199514['newRange'])){_0x24522a['updateMarker'](_0x2e42b5,{'range':_0x3b89b5}),_0x1a6fef=!0x0;break;}}}return _0x1a6fef;}),_0x56a054['model']['document']['registerPostFixer'](_0x3c2c96=>{let _0x27ec01=!0x1;const _0x258743=_0x56a054['plugins']['get']('Users')['me'],_0x38350a=_0x8753aa['getSuggestions']()['filter'](_0x3eb0bf=>_0x3eb0bf['isInContent']&&_0x3eb0bf['author']==_0x258743),_0x140d28=new Set(),_0x519cd6=new Set();for(const _0x581e3a of _0x38350a)if('tablePaste'==_0x581e3a['subType'])for(const _0x34c0de of _0x581e3a['getMarkers']()){const _0x42a6a9=_0x34c0de['getRange']()['getContainedElement']();if(_0x42a6a9){if(_0x42a6a9['is']('element','tableCellSuggestion')&&ve(_0x42a6a9)){_0x581e3a['removeMarker'](_0x34c0de['name']),_0x140d28['add'](_0x42a6a9),_0x27ec01=!0x0;const _0x28622c=_0x42a6a9['nextSibling'],_0x2cb674=_0x42a6a9['previousSibling'],_0x26a8ab=_0x28622c&&_0x28622c['is']('element','tableCellSuggestion'),_0x26bf5c=_0x2cb674&&_0x2cb674['is']('element','tableCellSuggestion');_0x26a8ab&&!_0x140d28['has'](_0x28622c)&&_0x519cd6['add'](_0x28622c),_0x26bf5c&&!_0x140d28['has'](_0x2cb674)&&_0x519cd6['add'](_0x2cb674);}else _0x42a6a9['is']('element','paragraph')&&_0x42a6a9['isEmpty']&&(_0x581e3a['removeMarker'](_0x34c0de['name']),_0x27ec01=!0x0);}}else{if('tablePasteCell'==_0x581e3a['subType']){if(!_0x581e3a['attributes']||!_0x581e3a['attributes']['tablePasteChainId'])continue;const _0x20ef40=_0x581e3a['attributes']['markerAttributes'];if(_0x20ef40&&Object['keys'](_0x20ef40)['length'])continue;const _0x4e6dc0=_0x581e3a['attributes']['tablePasteChainId'];let _0x307ce5=!0x0,_0x2f7922=!0x0;for(const _0x2b74fe of _0x38350a)if(_0x2b74fe['subType']&&_0x2b74fe['subType']['startsWith']('tablePaste')){if(!_0x2b74fe['attributes']['tablePasteChainId']){_0x2f7922=!0x1;break;}if(_0x2b74fe['id']!=_0x581e3a['id']&&_0x2b74fe['attributes']['tablePasteChainId']==_0x4e6dc0){_0x307ce5=!0x1;break;}}_0x2f7922&&_0x307ce5&&(_0x581e3a['removeMarkers'](),_0x27ec01=!0x0);}}for(const _0x26e161 of _0x140d28)_0x3c2c96['remove'](_0x26e161);for(const _0x4364f9 of _0x519cd6)_0x3c2c96['unwrap'](_0x4364f9);return _0x27ec01;}),_0x56a054['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x523173=>_0x38217b(_0x523173),'converterPriority':'high'}),_0x56a054['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0xcca886,_0xb26e37)=>_0xb26e37['options']['showSuggestionHighlights']?_0x38217b(_0xcca886,!0x1):null,'converterPriority':'high'});const _0x43e0c6=_0x56a054['editing']['view'];this['listenTo'](_0x43e0c6['document'],'clipboardOutput',(_0xf8045e,_0x329348)=>{const _0x244883=[];for(const _0x4a5223 of _0x43e0c6['createRangeIn'](_0x329348['content'])['getItems']())_0x4a5223['is']('element','suggestion-td')&&_0x244883['push'](_0x4a5223);_0x43e0c6['change'](_0x150560=>{for(const _0x442bec of _0x244883)_0x150560['move'](_0x150560['createRangeIn'](_0x442bec),_0x150560['createPositionBefore'](_0x442bec)),_0x150560['remove'](_0x442bec);});});}}function ve(_0x56a685){if(_0x56a685['isEmpty'])return!0x0;const _0x2deaf4=_0x56a685['getChild'](0x0);return _0x2deaf4['is']('element','paragraph')&&_0x2deaf4['isEmpty'];}function xe(_0x40a721,_0x2f2438={},_0xc9b27){for(const {isAnchor:_0x3d989f,cellHeight:_0x46fbaf,cellWidth:_0x313436}of _0xc9b27['createTableWalker'](_0x40a721,{'includeAllSlots':!0x0,..._0x2f2438}))if(!_0x3d989f||0x1!=_0x46fbaf||0x1!=_0x313436)return!0x1;return!0x0;}class Pe extends _0x31a8de{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x31690e=this['editor']['plugins']['get']('TrackChangesEditing');_0x31690e['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x31690e['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x31690e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x31690e['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x31690e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x31690e['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x180533,_0x4b9a71){const _0x428937=this['editor']['plugins']['get']('TrackChangesEditing'),_0x56cdd2=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x5fdaad=_0x4b9a71['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x3b325a=_0x56cdd2['getColumnGroupElement'](_0x5fdaad);let _0x583082=_0x3b325a?_0x56cdd2['getTableColumnsWidths'](_0x3b325a):null,_0x54239e=_0x5fdaad['getAttribute']('tableWidth')||null;const _0x3c210e=_0x4b9a71['tableWidth']||_0x54239e,_0x2178ff=_0x4b9a71['columnWidths']||_0x583082,_0x21653a=this['editor']['plugins']['get']('Users')['me'];for(const _0x538588 of _0x428937['getSuggestions']()){const _0x106ede=_0x538588['getContainedElement']();if('resizeTable'===_0x538588['subType']&&_0x106ede===_0x5fdaad){_0x538588['author']!==_0x21653a&&_0x538588['discard']();const _0xb80998=_0x538588['data']['commandParams'];_0x54239e=_0xb80998[0x0]['tableWidth'],_0x583082=_0xb80998[0x0]['columnWidths'];break;}}_0x180533({'table':_0x5fdaad,'tableWidth':_0x3c210e,'columnWidths':_0x2178ff}),_0x428937['markBlockFormat'](_0x5fdaad,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x54239e,'columnWidths':_0x583082}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x5429f7){if('formatBlock'!=_0x5429f7['type']&&'formatInline'!=_0x5429f7['type'])return;const {data:_0x2d37d0}=_0x5429f7;if(_0x2d37d0&&'resizeTable'===_0x2d37d0['formatGroupId']){const _0x2571ec='*Format:*\x20resize\x20table';return{'type':'format','content':At(this['editor']['locale'],_0x2571ec)};}}}class Ue extends _0x31a8de{['afterInit'](){const _0x1d7add=this['editor'];_0x1d7add['plugins']['has']('Template')&&_0x1d7add['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ge extends _0x31a8de{['afterInit'](){const _0x4ea2b2=this['editor'];if(!_0x4ea2b2['commands']['get']('insertTableOfContents'))return;_0x4ea2b2['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x4ec56a=_0x4ea2b2['plugins']['get']('TrackChangesEditing'),_0x447bf8=_0x4ea2b2['locale'];_0x4ec56a['descriptionFactory']['registerElementLabel']('tableOfContents',_0xc692b0=>At(_0x447bf8,'ELEMENT_TABLE_OF_CONTENTS',_0xc692b0));}}class He extends _0x31a8de{['afterInit'](){const _0x28b12a=this['editor'];if(!_0x28b12a['plugins']['has']('Title'))return;_0x28b12a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>At(_0x28b12a['locale'],'ELEMENT_TITLE')),_0x28b12a['model']['document']['registerPostFixer'](_0x5cd3c1=>{let _0x3c1369=!0x1;const _0x29cc6a=Array['from'](_0x28b12a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2ec1a0,data:_0x1d2f97}of _0x29cc6a){const {group:_0x368897}=_0x6b12f7(_0x2ec1a0);if('suggestion'!==_0x368897||!_0x1d2f97['newRange'])continue;const _0x27050c=_0x1d2f97['newRange'],_0x2fd4a1=_0x27050c['end']['nodeBefore'];if(!_0x2fd4a1||!_0x2fd4a1['is']('element','title-content'))continue;if(!_0x27050c['start']['isTouching'](_0x27050c['end']))continue;const _0x1c0246=_0x28b12a['model']['schema']['getNearestSelectionRange'](_0x27050c['end'],'forward');if(_0x1c0246&&_0x1c0246['isCollapsed']){const _0x1b9c73=_0x5cd3c1['createRange'](_0x27050c['start'],_0x1c0246['start']);_0x1b9c73['isEqual'](_0x27050c)||(_0x5cd3c1['updateMarker'](_0x2ec1a0,{'range':_0x1b9c73}),_0x3c1369=!0x0);}_0x3c1369||(_0x5cd3c1['removeMarker'](_0x2ec1a0),_0x3c1369=!0x0);}return _0x3c1369;});}}class $e extends _0x31a8de{['afterInit'](){const _0x5c7e00=this['editor'],_0x25417f=_0x5c7e00['plugins']['get']('TrackChangesEditing');_0x5c7e00['plugins']['has']('Uploadcare')&&(_0x25417f['enableCommand']('uploadcare'),_0x5c7e00['plugins']['has']('UploadcareImageEdit')&&(_0x25417f['enableCommand']('uploadcareImageEdit'),_0x25417f['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x25417f['descriptionFactory']['registerDescriptionCallback'](_0x56635c=>{if('attribute'!=_0x56635c['type'])return;const {data:_0x5900c9}=_0x56635c;return _0x5900c9&&'uploadcareImageId'==_0x5900c9['key']?{'type':'format','content':''}:void 0x0;})));}}class We extends _0x31a8de{['afterInit'](){const _0x2b1583=this['editor'],_0x13b162=_0x2b1583['plugins']['get']('TrackChangesEditing');_0x2b1583['plugins']['has']('UndoEditing')&&(_0x13b162['enableCommand']('undo'),_0x13b162['enableCommand']('redo'));}}class Ve extends _0x31a8de{static get['requires'](){return[Ne];}['afterInit'](){const _0x5f080c=this['editor'];if(!_0x5f080c['plugins']['has']('TableCaptionEditing'))return;_0x5f080c['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class je extends _0x31a8de{['tableProperties'];['tableCellProperties'];constructor(_0x4c94cb){super(_0x4c94cb),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 _0x57c36e=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x45f399 of this['tableProperties'])_0x57c36e['enableCommand'](_0x45f399,(_0x45311b,_0xeeff99)=>{const _0x5a48ee=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x45f399,[_0x5a48ee],this['tableProperties'],'tableProperties',_0x45311b,_0xeeff99);});_0x57c36e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x57c36e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x57c36e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0xb1bf9d,_0x5f4dcb)=>this['handleDiscardAction'](this['tableProperties'],_0xb1bf9d,_0x5f4dcb)),_0x57c36e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x5c6047 of this['tableCellProperties'])this['editor']['commands']['get'](_0x5c6047)&&_0x57c36e['enableCommand'](_0x5c6047,(_0x178f83,_0x58da2e)=>{const _0x1479b1=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x5c6047,_0x1479b1,this['tableCellProperties'],'tableCellProperties',_0x178f83,_0x58da2e);});_0x57c36e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x57c36e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x57c36e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0xda3114,_0x623101)=>this['handleDiscardAction'](this['tableCellProperties'],_0xda3114,_0x623101)),_0x57c36e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x57c36e['descriptionFactory']['registerAttributeLabel']('tableCellType',At(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x57c36e['descriptionFactory']['registerDescriptionCallback'](_0xab3850=>this['handleSuggestionDescription'](_0xab3850)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x3cc310,_0x1fc0dd,_0x170382,_0x1d0484,_0x17d2f0,_0x5575b2){const _0x354a53=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x5575b2['batch'],()=>{for(const _0x5dc079 of _0x1fc0dd){if(this['_getSuggestion'](_0x5dc079,_0x1d0484))_0x17d2f0(_0x5575b2);else{const _0x208c6c={};for(const _0x1cd4de of _0x170382){const _0x17aca7=_0x5dc079['getAttribute'](_0x1cd4de);void 0x0!==_0x17aca7&&(_0x208c6c[_0x1cd4de]=_0x17aca7);}_0x17d2f0(_0x5575b2),_0x354a53['markBlockFormat'](_0x5dc079,{'commandParams':[_0x208c6c]},[],_0x1d0484);}}});}['handleDiscardAction'](_0x500c3a,_0x14ae43,_0x203c47){const _0x208fc0=_0x14ae43[0x0]['start']['nodeAfter'],_0xdd591d=_0x203c47['commandParams'][0x0];this['editor']['model']['change'](_0x1424f8=>{for(const _0x2c3eb2 of _0x500c3a)void 0x0!==_0xdd591d[_0x2c3eb2]?_0x1424f8['setAttribute'](_0x2c3eb2,_0xdd591d[_0x2c3eb2],_0x208fc0):_0x1424f8['removeAttribute'](_0x2c3eb2,_0x208fc0);});}['handleSuggestionDescription'](_0x21a42b){if(_0x21a42b['data'])switch(_0x21a42b['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'](_0x4c588a,_0x211028){const _0x5a2907=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x3d3a4c of _0x5a2907['getSuggestions']({'skipNotAttached':!0x0})){const _0x1446b8=_0x3d3a4c['getContainedElement']();if(_0x3d3a4c['subType']===_0x211028&&_0x1446b8===_0x4c588a)return _0x3d3a4c;}return null;}['_registerTablePropertiesAttributes'](){const _0x3451d3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x101a8d=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x2e767f of _0x101a8d){const _0x260bf2=_0x2e767f['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x3451d3['descriptionFactory']['registerAttributeLabel'](_0x2e767f,At(this['editor']['locale'],'FORMAT_'+_0x260bf2));}}}class ze extends _0x31a8de{['afterInit'](){const _0x3d86b1=this['editor'];if(!_0x3d86b1['plugins']['has']('LineHeight'))return;const _0x5c7431=_0x3d86b1['plugins']['get']('TrackChangesEditing'),_0x3bfb6f=_0x3d86b1['locale'];_0x5c7431['enableDefaultAttributesIntegration']('lineHeight'),_0x5c7431['descriptionFactory']['registerAttributeLabel']('lineHeight',At(_0x3bfb6f,'FORMAT_LINE_HEIGHT'));}}const Ke='$elementName';class Xe extends _0x31a8de{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_suggestionsConversion'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return[_0x2a6692,_0x4ed631,_0x11347e,_0x20dd34,_0x2567f1,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(_0x14269f){super(_0x14269f),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x955df9,_0x8647f7,_0x3f31af,_0x66558d)=>{this['_model']['change'](()=>{for(const _0x3239a2 of[..._0x66558d,..._0x3f31af])this['_model']['markers']['has'](_0x3239a2)&&_0x14269f['editing']['reconvertMarker'](_0x3239a2);});}),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']=_0x14269f['plugins']['get'](_0x2a6692),this['_suggestionsConversion']=_0x14269f['plugins']['get'](_0x4ed631),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x14269f['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x14269f['config']['get']('trackChanges.trackFormatChanges'),_0x14269f['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x14269f['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new ht(_0x14269f,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x19514d=this['editor'];_0x19514d['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x2724fe,{writer:_0x272c86})=>{let _0x54b200='suggestion:'+_0x2724fe['getAttribute']('suggestion-type')+':'+_0x2724fe['getAttribute']('id');return _0x2724fe['getAttribute']('marker-count')&&(_0x54b200+=':'+_0x2724fe['getAttribute']('marker-count')),_0x272c86['createElement']('$marker',{'data-name':_0x54b200});}}),_0x19514d['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x19514d['model']['document']['registerPostFixer'](_0x4c43e3=>{let _0xd0c829=!0x1;const _0xf5816b=Array['from'](_0x19514d['model']['document']['differ']['getChangedMarkers']()),_0x351d55=new Set();for(const {name:_0xd086e7,data:_0x48fc25}of _0xf5816b){const {group:_0x3229cf,type:_0x1c1936,subType:_0x404574,id:_0x5996f7}=_0x6b12f7(_0xd086e7);if('suggestion'!==_0x3229cf)continue;const _0x5b720e=_0x404574?'suggestion:'+_0x1c1936+':'+_0x404574+':'+_0x5996f7:'suggestion:'+_0x1c1936+':'+_0x5996f7,_0x212a12=_0x19514d['model']['markers']['getMarkersGroup'](_0x5b720e),_0x41ae55=_0x19514d['model']['markers']['get'](_0xd086e7),_0x413d7a=this['_suggestions']['get'](_0x5996f7);if(null!=_0x48fc25['newRange']){'formatInline'==_0x1c1936&&(_0xd0c829=_0xd0c829||Ze(_0x48fc25['newRange'],_0xd086e7,_0x4c43e3,_0x19514d['model']['schema']));const _0x2b5b53='attribute'==_0x1c1936&&this['_suggestionsConversion']['isBlockAttribute'](un(_0x404574)),_0x1b16de='attribute'==_0x1c1936&&this['_suggestionsConversion']['isInlineAttribute'](un(_0x404574));if(_0x48fc25['newRange']['isCollapsed']||'$graveyard'==_0x48fc25['newRange']['root']['rootName']||'formatBlock'==_0x1c1936&&!tn(_0x48fc25['newRange'])||_0x2b5b53&&!tn(_0x48fc25['newRange'])||_0x1b16de&&en(_0x48fc25['newRange'])||'deletion'==_0x1c1936&&en(_0x48fc25['newRange'])||_0x41ae55&&nn(_0x41ae55,_0x212a12))_0x4c43e3['removeMarker'](_0xd086e7),_0xd0c829=!0x0;else{if(!_0x413d7a||!_0x413d7a['isInContent'])continue;if(_0x48fc25['newRange']&&_0x48fc25['oldRange']&&_0x48fc25['newRange']['isEqual'](_0x48fc25['oldRange']))continue;_0x351d55['add'](_0x413d7a);}}}return _0x351d55['size']>0x0&&(_0xd0c829=!!this['_joinWithAdjacentSuggestions'](_0x351d55)||_0xd0c829),_0xd0c829;}),_0x19514d['model']['document']['registerPostFixer'](_0x174371=>{let _0x102e92=!0x1;for(const _0x15fcd4 of _0x19514d['model']['document']['differ']['getChanges']())if('insert'==_0x15fcd4['type'])for(const _0xf3f599 of this['_suggestions']['values']()){if(_0xf3f599['isMultiRange']||!_0xf3f599['isInContent'])continue;const _0x5a9a37='formatBlock'==_0xf3f599['type'],_0x1a6364=this['_getAttributeKey'](_0xf3f599),_0x34c61f=_0x1a6364&&this['_suggestionsConversion']['isBlockAttribute'](_0x1a6364);if(!_0x5a9a37&&!_0x34c61f)continue;const _0x4e11c6=_0xf3f599['getFirstRange']();if(_0x4e11c6['start']['parent']!=_0x4e11c6['end']['parent']&&!_0x4e11c6['end']['isAtEnd']){const _0x525eef=_0x19514d['model']['createPositionAt'](_0x4e11c6['start']['nodeAfter'],'end'),_0x5e8dc3=_0x19514d['model']['createRange'](_0x4e11c6['start'],_0x525eef);_0x174371['updateMarker'](_0xf3f599['getFirstMarker'](),{'range':_0x5e8dc3}),_0x102e92=!0x0;}}return _0x102e92;}),_0x19514d['model']['document']['registerPostFixer'](_0x4dd8b7=>this['_processAttributeChanges'](_0x4dd8b7)),_0x19514d['model']['document']['registerPostFixer'](_0x4e14e5=>!_0x4e14e5['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x4e14e5)),_0x19514d['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x19514d['model']['document']['on']('change:data',(_0x4bedcd,_0x35ea51)=>{if(!_0x35ea51['isLocal']||_0x35ea51['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x698876=_0x19514d['model']['document']['differ']['getChanges']();if(0x0==_0x698876['length'])return;const _0xa6bdb7=[],_0x26a7be=_0x698876['filter'](_0x2ef3ef=>'attribute'==_0x2ef3ef['type']),_0x42a506=_0x698876['filter'](_0x1daaa8=>'insert'==_0x1daaa8['type']&&'$text'!=_0x1daaa8['name']);for(const _0x4e37a5 of _0x26a7be)this['_suggestionsConversion']['isRegisteredAttribute'](_0x4e37a5['attributeKey'])&&_0xa6bdb7['push']({'key':_0x4e37a5['attributeKey'],'newValue':_0x4e37a5['attributeNewValue'],'oldValue':_0x4e37a5['attributeOldValue'],'range':sn(_0x4e37a5['range'],_0x19514d['model'])});for(const _0x50db9c of _0x42a506){if('rename'!=_0x50db9c['action']&&'refresh'!=_0x50db9c['action'])continue;const _0x405d83=rn(_0x50db9c['position']['nodeAfter'],_0x19514d['model']),_0x20dbf6=_0x50db9c['before'];'rename'==_0x50db9c['action']&&_0xa6bdb7['push']({'key':Ke,'newValue':_0x50db9c['name'],'oldValue':_0x20dbf6['name'],'range':_0x405d83});for(const [_0xea183c,_0x57aa25]of _0x20dbf6['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0xea183c))continue;const _0x297944=_0x50db9c['attributes']['get'](_0xea183c);_0x57aa25!==_0x297944&&_0xa6bdb7['push']({'key':_0xea183c,'newValue':_0x297944,'oldValue':_0x57aa25,'range':_0x405d83});}for(const [_0x215109,_0x554961]of _0x50db9c['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x215109)&&(_0x20dbf6['attributes']['has'](_0x215109)||_0xa6bdb7['push']({'key':_0x215109,'newValue':_0x554961,'oldValue':null,'range':_0x405d83}));}0x0!=_0xa6bdb7['length']&&_0x19514d['model']['enqueueChange'](_0x35ea51,_0x398c87=>{const _0x3d17c4=_0x2026f5();for(const {range:_0x19b526,key:_0x2dfa0d,oldValue:_0x3f7320,newValue:_0x5b2b94}of _0xa6bdb7)this['markAttributeChange'](_0x19b526,_0x2dfa0d,_0x3f7320,_0x5b2b94,{'groupId':_0x3d17c4});this['_reduceExistingSuggestions'](_0x398c87,_0xa6bdb7);});},{'priority':'lowest'}),_0x19514d['model']['markers']['on']('update:suggestion',(_0x5e5c0c,_0x671dd,_0x18f30e)=>{if(null==_0x18f30e){const {id:_0x254cb7}=_0x6b12f7(_0x671dd['name']),_0x10d5a1=this['_suggestions']['get'](_0x254cb7);_0x10d5a1&&_0x10d5a1['addMarkerName'](_0x671dd['name']);}}),_0x19514d['model']['document']['on']('change:data',()=>{const _0x4e121a=Array['from'](_0x19514d['model']['document']['differ']['getChangedMarkers']())['filter'](_0xb072bc=>'suggestion'===_0x6b12f7(_0xb072bc['name'])['group']);if(0x0===_0x4e121a['length'])return;_0x4e121a['sort']((_0xf4a878,_0x28e971)=>{const _0x1df45e=_0xf4a878['data']['oldRange'],_0x270a28=_0x28e971['data']['oldRange'];return null===_0x1df45e&&null===_0x270a28?0x0:null===_0x1df45e&&null!==_0x270a28?-0x1:null!==_0x1df45e&&null===_0x270a28?0x1:_0x1df45e['start']['isBefore'](_0x270a28['start'])?-0x1:0x1;});const _0x19252c=new Set(),_0x43c5e3=new Set();for(const {name:_0x34c8f5,data:_0x4a62ff}of _0x4e121a){const {id:_0x1b2700}=_0x6b12f7(_0x34c8f5);if(null===_0x4a62ff['oldRange']){const _0x5cf0ec=this['_handleNewSuggestionMarker'](_0x34c8f5);_0x43c5e3['add'](_0x5cf0ec);}else{const _0x41d1d4=this['_suggestions']['get'](_0x1b2700);null!==_0x4a62ff['newRange']||_0x41d1d4['isInContent']?(_0x19252c['add'](_0x41d1d4['head']),_0x43c5e3['add'](_0x41d1d4)):this['_removeSuggestion'](_0x41d1d4);}}_0x43c5e3['size']>0x0&&this['_refreshSuggestionsChain'](_0x43c5e3);for(const _0x39ed4f of _0x19252c)this['fire']('suggestionChanged',_0x39ed4f);}),_0x19514d['model']['on']('applyOperation',(_0x1bad5b,_0x2c9719)=>{const _0x3fe3ce=_0x2c9719[0x0];if(!this['_suggestions']['size'])return;if(!_0x3fe3ce['isDocumentOperation'])return;if(_0x3fe3ce['batch']['isUndo']||!_0x3fe3ce['batch']['isLocal'])return;let _0xc8647b,_0x1af8fa;switch(_0x3fe3ce['type']){case'insert':_0xc8647b=_0x19514d['model']['createPositionAt'](_0x3fe3ce['position']),_0x1af8fa=_0xc8647b['getShiftedBy'](_0x3fe3ce['howMany']);break;case'split':_0xc8647b=_0x19514d['model']['createPositionAt'](_0x3fe3ce['splitPosition']),_0x1af8fa=_0x19514d['model']['createPositionAt'](_0x3fe3ce['moveTargetPosition']);break;case'move':_0xc8647b=_0x19514d['model']['createPositionAt'](_0x3fe3ce['targetPosition']),_0x1af8fa=_0xc8647b['getShiftedBy'](_0x3fe3ce['howMany']);break;default:return;}const _0x1f6ab6=_0x19514d['model']['createRange'](_0xc8647b,_0x1af8fa);_0x19514d['model']['change'](()=>{for(const {suggestion:_0x26209b,meta:_0x3cbb44}of this['_findSuggestions'](_0x1f6ab6)){if(_0x26209b['isMultiRange'])continue;if('formatInline'==_0x26209b['type'])continue;const _0x533cb5=this['_getAttributeKey'](_0x26209b);if(_0x533cb5&&this['_suggestionsConversion']['isBlockAttribute'](_0x533cb5)&&'split'!=_0x3fe3ce['type'])continue;const _0x35849f=_0x26209b['data']&&_0x26209b['data']['multipleBlocks'];('formatBlock'!=_0x26209b['type']||'split'==_0x3fe3ce['type']&&!_0x35849f)&&(_0x3cbb44['containsRangeInObject']||'insertion'==_0x26209b['type']&&_0x3cbb44['isOwn']||_0x26209b['getFirstRange']()['containsRange'](_0x1f6ab6)&&this['_breakSuggestionMarker'](_0x26209b,_0xc8647b,_0x1af8fa));}});},{'priority':'lowest'}),_0x19514d['model']['on']('deleteContent',(_0x55e01a,_0x3c5ab0)=>{const _0x581ac4=_0x3c5ab0[0x0],_0x57c98f=_0x3c5ab0[0x1];if(_0x57c98f&&_0x57c98f['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x581ac4['isCollapsed'])return;const _0x32c4ce=_0x19514d['model']['schema'],{start:_0x5da5c8,end:_0x2909fd}=_0x581ac4['getFirstRange'](),_0x5cb977=_0x5da5c8['nodeAfter']&&_0x32c4ce['isLimit'](_0x5da5c8['nodeAfter'])?null:_0x32c4ce['getNearestSelectionRange'](_0x5da5c8,'forward'),_0x297ac1=_0x2909fd['nodeBefore']&&_0x32c4ce['isLimit'](_0x2909fd['nodeBefore'])?null:_0x32c4ce['getNearestSelectionRange'](_0x2909fd,'backward'),_0x58d162=_0x19514d['model']['createRange'](_0x5cb977?_0x5cb977['start']:_0x5da5c8,_0x297ac1?_0x297ac1['end']:_0x2909fd);_0x19514d['model']['change'](_0x295d39=>{this['markDeletion'](_0x58d162);const _0x5a8b70=_0x19514d['model']['schema']['getNearestSelectionRange'](_0x58d162['start']);_0x581ac4['is']('documentSelection')?_0x295d39['setSelection'](_0x5a8b70):_0x581ac4['setTo'](_0x5a8b70);}),_0x55e01a['stop']();},{'priority':_0x31b733['normal']+0xa}),_0x19514d['model']['on']('insertContent',(_0x48560c,_0x4b4466)=>{const _0x3139f5=_0x4b4466[_0x4b4466['length']-0x1];_0x3139f5&&_0x3139f5['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x19514d['model']['change'](()=>{let _0x2128f5=_0x19514d['model']['insertContent'](_0x4b4466[0x0],_0x4b4466[0x1],_0x4b4466[0x2],{'forceDefaultExecution':!0x0});if(!_0x2128f5)return;_0x48560c['return']=_0x2128f5['clone']();const _0x152960=_0x2128f5['end']['nodeBefore'],_0x57d4a6=_0x19514d['model']['schema'];_0x152960&&_0x57d4a6['isBlock'](_0x152960)&&!_0x57d4a6['isObject'](_0x152960)&&(_0x2128f5=_0x19514d['model']['createRange'](_0x2128f5['start'],_0x19514d['model']['createPositionAt'](_0x152960,'end'))),this['markInsertion'](_0x2128f5);}),_0x48560c['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x3a6983=new dt(_0x19514d,this['_suggestions']);_0x19514d['commands']['add']('acceptSuggestion',_0x3a6983),this['enableCommand']('acceptSuggestion');const _0x27e9b9=new ft(_0x19514d,this['_suggestions']);_0x19514d['commands']['add']('discardSuggestion',_0x27e9b9),this['enableCommand']('discardSuggestion'),_0x19514d['commands']['add']('acceptAllSuggestions',new Lt(_0x19514d,_0x3a6983,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x19514d['commands']['add']('discardAllSuggestions',new Lt(_0x19514d,_0x27e9b9,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x19514d['commands']['add']('acceptSelectedSuggestions',new It(_0x19514d,_0x3a6983,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x19514d['commands']['add']('discardSelectedSuggestions',new It(_0x19514d,_0x27e9b9,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x1139eb=_0x19514d['plugins']['get'](_0x2a6692);this['listenTo'](_0x1139eb,'addComment',(_0x8fa5ae,{threadId:_0x139964})=>{const _0x5c96be=this['_suggestions']['get'](_0x139964);_0x5c96be&&_0x5c96be['commentThread']&&0x1===_0x5c96be['commentThread']['length']&&this['_updateSuggestionData'](_0x139964,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x1139eb,'removeComment',(_0x4290f6,{threadId:_0x20da2c})=>{const _0x3f6290=this['_suggestions']['get'](_0x20da2c);_0x3f6290&&_0x3f6290['commentThread']&&!_0x3f6290['commentThread']['length']&&this['_updateSuggestionData'](_0x20da2c,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x49bf22){const _0x1ebda7=_0x544492([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]),_0x5bb3e0=0x3d8d0df,_0x11db9e=0x3df543f^_0x5bb3e0,_0x4611ee=window[_0x544492([0x44,0x61,0x74,0x65])][_0x544492([0x6e,0x6f,0x77])](),_0x6e56d8=_0x49bf22[_0x544492([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1e8600=new window[(_0x544492([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xfd9bb=>{_0x6e56d8[_0x544492([0x6f,0x6e,0x63,0x65])](_0x544492([0x72,0x65,0x61,0x64,0x79]),_0xfd9bb);}),_0x11f812={[_0x544492([0x6b,0x74,0x79])]:_0x544492([0x45,0x43]),[_0x544492([0x75,0x73,0x65])]:_0x544492([0x73,0x69,0x67]),[_0x544492([0x63,0x72,0x76])]:_0x544492([0x50,0x2d,0x32,0x35,0x36]),[_0x544492([0x78])]:_0x544492([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]),[_0x544492([0x79])]:_0x544492([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]),[_0x544492([0x61,0x6c,0x67])]:_0x544492([0x45,0x53,0x32,0x35,0x36])},_0x47cbc0=_0x6e56d8[_0x544492([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x544492([0x67,0x65,0x74])](_0x544492([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x55f51d(){let _0x5748d9,_0x3ce3d9=null,_0x4213d9=null;try{if(_0x47cbc0==_0x544492([0x47,0x50,0x4c]))return _0x544492([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5748d9=_0x4f123c(),!_0x5748d9)return _0x544492([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5748d9[_0x544492([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4213d9=_0x3c8a55(_0x5748d9[_0x544492([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5748d9[_0x544492([0x6a,0x74,0x69])])),await _0x2a9b22()?_0x24a1c9()?_0x472cf6()?_0x544492([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4e1838()?(_0x5748d9[_0x544492([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x544492([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3ce3d9=_0x91f9b0(_0x544492([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x521707()):_0x544492([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x544492([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x544492([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x544492([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x472cf6(){const _0x57c674=[_0x544492([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x544492([0x74,0x72,0x69,0x61,0x6c])][_0x544492([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5748d9[_0x544492([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4611ee/0x3e8:0xe10*_0x11db9e;return _0x5748d9[_0x544492([0x65,0x78,0x70])]<_0x57c674;}function _0x24a1c9(){const _0x4a7c5a=_0x5748d9[_0x544492([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x4a7c5a)return!0x1;if(_0x4a7c5a[_0x544492([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x544492([0x2a])))return!0x0;if(_0x4a7c5a[_0x544492([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x544492([0x54,0x43])))return!0x0;if(_0x4a7c5a[_0x544492([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x544492([0x52,0x54,0x43]))){if(_0x1baa4c())return!0x0;if(_0x36d07b()||_0x54c0e3())return!0x0;}return!0x1;}function _0x4e1838(){const _0x24d58d=_0x5748d9[_0x544492([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x24d58d||0x0==_0x24d58d[_0x544492([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x49ded8}=new URL(window[_0x544492([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x24d58d[_0x544492([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x49ded8))return!0x0;const _0x2b9f46=_0x49ded8[_0x544492([0x73,0x70,0x6c,0x69,0x74])](_0x544492([0x2e]));return _0x24d58d[_0x544492([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x588377=>_0x588377[_0x544492([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x544492([0x2a])))[_0x544492([0x6d,0x61,0x70])](_0x5b7cd3=>_0x5b7cd3[_0x544492([0x73,0x70,0x6c,0x69,0x74])](_0x544492([0x2e])))[_0x544492([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x55dc9e=>_0x55dc9e[_0x544492([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2b9f46[_0x544492([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x544492([0x6d,0x61,0x70])](_0x41f7db=>Array(_0x2b9f46[_0x544492([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x41f7db[_0x544492([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x544492([0x66,0x69,0x6c,0x6c])](_0x41f7db[0x0]===_0x544492([0x2a])?_0x544492([0x2a]):'')[_0x544492([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x41f7db))[_0x544492([0x73,0x6f,0x6d,0x65])](_0x35a749=>_0x2b9f46[_0x544492([0x65,0x76,0x65,0x72,0x79])]((_0xcd114d,_0x3d5bd8)=>_0x35a749[_0x3d5bd8]===_0xcd114d||_0x35a749[_0x3d5bd8]===_0x544492([0x2a])));}function _0x521707(){return _0x3ce3d9&&_0x4213d9?new window[(_0x544492([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x165c5d,_0x54057a)=>{_0x3ce3d9[_0x544492([0x74,0x68,0x65,0x6e])](_0x165c5d,_0x54057a),_0x4213d9[_0x544492([0x74,0x68,0x65,0x6e])](_0x14baa4=>{_0x14baa4!=_0x544492([0x56,0x61,0x6c,0x69,0x64])&&_0x165c5d(_0x14baa4);},_0x54057a);}):_0x3ce3d9||_0x4213d9||_0x544492([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3c8a55(_0x120c9f,_0x4fb696){return new window[(_0x544492([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x435eda=>{if(_0x566d18())return _0x435eda(_0x544492([0x56,0x61,0x6c,0x69,0x64]));_0x5bd8b6(),_0x6e56d8[_0x544492([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x544492([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x12b5e7=!0x1;const _0x213050=_0x2026f5();function _0xf69a4(_0x1306db){return!!_0x1306db&&(typeof _0x1306db===_0x544492([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1306db===_0x544492([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1306db[_0x544492([0x74,0x68,0x65,0x6e])]===_0x544492([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1306db[_0x544492([0x63,0x61,0x74,0x63,0x68])]===_0x544492([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x375168(_0x246be6){_0x55620e(_0x246be6)[_0x544492([0x74,0x68,0x65,0x6e])](_0x5b3cda=>{if(!_0x5b3cda||_0x5b3cda[_0x544492([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x544492([0x6f,0x6b]))return _0x544492([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1ef018(_0x24a189(_0x213050+_0x4fb696))!=_0x5b3cda[_0x544492([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x544492([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x544492([0x56,0x61,0x6c,0x69,0x64]);})[_0x544492([0x74,0x68,0x65,0x6e])](_0x314af0=>(_0x2fdff4(),_0x314af0),()=>{const _0x4aa377=_0x59a19b();return null==_0x4aa377?(_0x2fdff4(),_0x544492([0x56,0x61,0x6c,0x69,0x64])):_0x544492(_0x4611ee-_0x4aa377>(0x27d454df^_0x5bb3e0)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x544492([0x74,0x68,0x65,0x6e])](_0x435eda)[_0x544492([0x63,0x61,0x74,0x63,0x68])](()=>{_0x435eda(_0x544492([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x28c41c=0x3ee3e5f^_0x5bb3e0;function _0x2fdff4(){const _0x3604e6=_0x544492([0x6c,0x6c,0x63,0x74,0x2d])+_0x1ef018(_0x24a189(_0x120c9f)),_0x38c79b=_0xae5858(_0x1ef018(window[_0x544492([0x4d,0x61,0x74,0x68])][_0x544492([0x63,0x65,0x69,0x6c])](_0x4611ee/_0x28c41c)));window[_0x544492([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x544492([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3604e6,_0x38c79b);}function _0x59a19b(){const _0x210774=_0x544492([0x6c,0x6c,0x63,0x74,0x2d])+_0x1ef018(_0x24a189(_0x120c9f)),_0x18d437=window[_0x544492([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x544492([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x210774);return _0x18d437?window[_0x544492([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xae5858(_0x18d437),0x10)*_0x28c41c:null;}function _0x55620e(_0x32146f){return new window[(_0x544492([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2f5a97,_0x61e8d3)=>{_0x32146f[_0x544492([0x74,0x68,0x65,0x6e])](_0x2f5a97,_0x61e8d3),window[_0x544492([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x61e8d3,0x3d9041f^_0x5bb3e0);});}}_0x6e56d8[_0x544492([0x6f,0x6e])](_0x544492([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x15a346,_0x2f1bfe)=>{if(_0x2f1bfe[0x0]!=_0x120c9f)return _0x435eda(_0x544492([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2f1bfe[0x1]={..._0x2f1bfe[0x1],[_0x544492([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x213050};},{[_0x544492([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x544492([0x68,0x69,0x67,0x68])}),_0x6e56d8[_0x544492([0x6f,0x6e])](_0x544492([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5453b4=>{_0xf69a4(_0x5453b4[_0x544492([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x12b5e7=!0x0,_0x375168(_0x5453b4[_0x544492([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x544492([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x544492([0x6c,0x6f,0x77])}),_0x1e8600[_0x544492([0x74,0x68,0x65,0x6e])](()=>{_0x12b5e7||_0x435eda(_0x544492([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x566d18(){return _0x6e56d8[_0x544492([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x544492([0x76,0x69,0x65,0x77])][_0x544492([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x544492([0x61,0x75,0x74,0x6f]);}function _0x5bd8b6(){_0x6e56d8[_0x544492([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x544492([0x76,0x69,0x65,0x77])][_0x544492([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x544492([0x61,0x75,0x74,0x6f]);}}function _0x91f9b0(_0x5afbe1){const _0x1577c3=[new window[(_0x544492([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x253bc7=>setTimeout(_0x253bc7,0x3d1ee13^_0x5bb3e0)),_0x1e8600[_0x544492([0x74,0x68,0x65,0x6e])](()=>new window[(_0x544492([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4a63e5=>{let _0x4c6d17=0x0;_0x6e56d8[_0x544492([0x6d,0x6f,0x64,0x65,0x6c])][_0x544492([0x6f,0x6e])](_0x544492([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2a1904,_0x132e8b)=>{_0x132e8b[0x0][_0x544492([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4c6d17++,_0x4c6d17==(0x3d8d537^_0x5bb3e0)&&(_0x4a63e5(),_0x2a1904[_0x544492([0x6f,0x66,0x66])]());});}))];return window[_0x544492([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x544492([0x72,0x61,0x63,0x65])](_0x1577c3)[_0x544492([0x74,0x68,0x65,0x6e])](()=>_0x5afbe1);}async function _0x3bdd36(){await _0x1e8600,_0x6e56d8[_0x544492([0x6d,0x6f,0x64,0x65,0x6c])][_0x544492([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x31b40a,_0x6e56d8[_0x544492([0x6d,0x6f,0x64,0x65,0x6c])][_0x544492([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x31b40a,_0x6e56d8[_0x544492([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x544492([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1baa4c(){return _0x34806d(_0x544492([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x17d7a1(_0x544492([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x544492([0x73,0x74,0x61,0x74,0x65])]==_0x544492([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x36d07b(){return _0x34806d(_0x544492([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 _0x54c0e3(){return _0x34806d(_0x544492([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x47046f(_0x34f00c){const _0x12f368=_0x508631();_0x6e56d8[_0x12f368]=_0x544492([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x34f00c,_0x34f00c!=_0x544492([0x56,0x61,0x6c,0x69,0x64])&&_0x3bdd36();}function _0x508631(){const _0x3afa99=window[_0x544492([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x544492([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x544492([0x6e,0x6f,0x77])]())[_0x544492([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x544492([0x2e]),'');let _0x44d0bc=_0x544492([0x52]);for(let _0x4d3469=0x0;_0x4d3469<_0x3afa99[_0x544492([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4d3469+=0x2){let _0x356857=window[_0x544492([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3afa99[_0x544492([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4d3469,_0x4d3469+0x2));_0x356857>=_0x1ebda7[_0x544492([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x356857-=_0x1ebda7[_0x544492([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x44d0bc+=_0x1ebda7[_0x356857];}return _0x44d0bc;}function _0x4f123c(){const _0x89d5df=_0x47cbc0[_0x544492([0x73,0x70,0x6c,0x69,0x74])](_0x544492([0x2e]));if(0x3!=_0x89d5df[_0x544492([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x321e93(_0x89d5df[0x1]);function _0x321e93(_0x4e238c){const _0x4ca8d9=_0xb18d93(_0x4e238c);return _0x4ca8d9&&_0x4edd8e()?_0x4ca8d9:null;function _0x4edd8e(){const _0x46b06d=_0x4ca8d9[_0x544492([0x6a,0x74,0x69])],_0x2e5bf8=window[_0x544492([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x46b06d[_0x544492([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x46b06d[_0x544492([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x994497={..._0x4ca8d9,[_0x544492([0x6a,0x74,0x69])]:_0x46b06d[_0x544492([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x46b06d[_0x544492([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x994497[_0x544492([0x76,0x63])],_0x24a189(_0x994497)==_0x2e5bf8;}}}async function _0x2a9b22(){let _0x79ac00=!0x0;try{const _0x56d8e2=_0x47cbc0[_0x544492([0x73,0x70,0x6c,0x69,0x74])](_0x544492([0x2e])),[_0xd164af,_0x1a5e8c,_0x4351e1]=_0x56d8e2;return _0x4e4602(_0xd164af),await _0x15b51c(_0xd164af,_0x1a5e8c,_0x4351e1),_0x79ac00;}catch{return!0x1;}function _0x4e4602(_0x3dd297){const _0x485a76=_0xb18d93(_0x3dd297);_0x485a76&&_0x485a76[_0x544492([0x61,0x6c,0x67])]==_0x544492([0x45,0x53,0x32,0x35,0x36])||(_0x79ac00=!0x1);}async function _0x15b51c(_0x34acd3,_0x456878,_0x4ad1d4){const _0x177fea=window[_0x544492([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x544492([0x66,0x72,0x6f,0x6d])](_0x585318(_0x4ad1d4),_0x1d5d8f=>_0x1d5d8f[_0x544492([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4581c6=new window[(_0x544492([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x544492([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x34acd3+_0x544492([0x2e])+_0x456878),_0x3a57dc=window[_0x544492([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x544492([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3a57dc)return;const _0x15999d=await _0x3a57dc[_0x544492([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x544492([0x6a,0x77,0x6b]),_0x11f812,{[_0x544492([0x6e,0x61,0x6d,0x65])]:_0x544492([0x45,0x43,0x44,0x53,0x41]),[_0x544492([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x544492([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x544492([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3a57dc[_0x544492([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x544492([0x6e,0x61,0x6d,0x65])]:_0x544492([0x45,0x43,0x44,0x53,0x41]),[_0x544492([0x68,0x61,0x73,0x68])]:{[_0x544492([0x6e,0x61,0x6d,0x65])]:_0x544492([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x15999d,_0x177fea,_0x4581c6)||(_0x79ac00=!0x1);}}function _0xb18d93(_0x15309f){return _0x15309f[_0x544492([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x544492([0x65,0x79]))?JSON[_0x544492([0x70,0x61,0x72,0x73,0x65])](_0x585318(_0x15309f)):null;}function _0x585318(_0x3c1ccc){return window[_0x544492([0x61,0x74,0x6f,0x62])](_0x3c1ccc[_0x544492([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x544492([0x2b]))[_0x544492([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x544492([0x2f])));}function _0x24a189(_0x3e5e05){let _0x1c3fb6=0x1505;function _0x40a6c2(_0x52c16d){for(let _0x48f625=0x0;_0x48f625<_0x52c16d[_0x544492([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x48f625++){const _0x90a362=_0x52c16d[_0x544492([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x48f625);_0x1c3fb6=(_0x1c3fb6<<0x5)+_0x1c3fb6+_0x90a362,_0x1c3fb6&=_0x1c3fb6;}}function _0x4c7ac4(_0x51729f){Array[_0x544492([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x51729f)?_0x51729f[_0x544492([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4c7ac4):_0x51729f&&typeof _0x51729f==_0x544492([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x544492([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x51729f)[_0x544492([0x73,0x6f,0x72,0x74])]()[_0x544492([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x30fb01,_0x2b6abf])=>{_0x40a6c2(_0x30fb01),_0x4c7ac4(_0x2b6abf);}):_0x40a6c2(window[_0x544492([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x51729f));}return _0x4c7ac4(_0x3e5e05),_0x1c3fb6>>>0x0;}function _0x1ef018(_0x39b350){return _0x39b350[_0x544492([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x544492([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x544492([0x30]));}function _0xae5858(_0x41b235){return _0x41b235[_0x544492([0x73,0x70,0x6c,0x69,0x74])]('')[_0x544492([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x544492([0x6a,0x6f,0x69,0x6e])]('');}function _0x34806d(_0x31c0a8){return _0x6e56d8[_0x544492([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x544492([0x68,0x61,0x73])](_0x31c0a8);}function _0x17d7a1(_0x2184d2){return _0x6e56d8[_0x544492([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x544492([0x67,0x65,0x74])](_0x2184d2);}function _0x31b40a(){}function _0x544492(_0x4bf39d){return _0x4bf39d['map'](_0x4ba5eb=>String['fromCharCode'](_0x4ba5eb))['join']('');}_0x47046f(await _0x55f51d());}(this);}set['adapter'](_0x33bd1a){if(this['_adapter'])throw new _0x1b84b2('track-changes-adapter-already-set',this);this['_adapter']=_0x33bd1a;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x1bc137=!0x1,toJSON:_0x45c0f8=!0x1}={}){const _0x759494=[];for(const _0x4ade23 of this['_suggestions']['values']())_0x1bc137&&!_0x4ade23['isInContent']||_0x759494['push'](_0x4ade23);return _0x45c0f8?_0x759494['map'](_0x219614=>_0x219614['toJSON']()):_0x759494;}['getSuggestion'](_0x3afaba){const _0x2df81e=this['_suggestions']['get'](_0x3afaba);if(!_0x2df81e)throw new _0x1b84b2('track-changes-suggestion-not-found',this);return _0x2df81e;}['hasSuggestion'](_0x5978c7){return this['_suggestions']['has'](_0x5978c7);}['addSuggestionData'](_0x4ab288){const {authorId:_0x4b7d3e,id:_0x337ac6,originalSuggestionId:_0x406cf7,attributes:_0x824d62}=_0x4ab288,[_0x53d023,_0x37ec0c]=_0x4ab288['type']['split'](':'),_0x5f3848=this['_suggestions']['get'](_0x337ac6)||this['_createSuggestion'](_0x53d023,_0x37ec0c,_0x337ac6,_0x4b7d3e,_0x824d62,_0x406cf7);if(this['_addThreadToSuggestion'](_0x5f3848),this['_checkSuggestionCorrectness'](_0x5f3848,_0x53d023,_0x37ec0c||null,_0x4b7d3e),_0x5f3848['createdAt']=_0x4ab288['createdAt'],_0x5f3848['_isDataLoaded']=!0x0,_0x824d62&&_0x824d62['@external']){const _0x1ee105=_0x824d62['@external'],_0x2e48e9=this['_getExternalAuthor'](_0x1ee105['authorName']);_0x5f3848['authoredAt']=_0x1ee105['createdAt'],_0x5f3848['author']=_0x2e48e9,_0x5f3848['isExternal']=!0x0;}else _0x5f3848['authoredAt']=_0x4ab288['createdAt'];switch(_0x4ab288['data']&&(_0x5f3848['data']=_0x4ab288['data']),_0x4ab288['attributes']&&(_0x5f3848['attributes']=_0x4ab288['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x5f3848['_saved']=!0x0),this['_suggestionState']['get'](_0x5f3848)){case'notReady':this['_suggestionState']['set'](_0x5f3848,'dataReady');break;case'markerReady':_0x5f3848['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x5f3848])),this['_refreshSuggestionsChain'](new Set([_0x5f3848])),this['_suggestionState']['set'](_0x5f3848,'ready'),this['fire']('suggestionLoaded',_0x5f3848)):this['_suggestionState']['set'](_0x5f3848,'removed');}return _0x5f3848;}['acceptSuggestion'](_0xb8d150){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2e1de0 of _0xb8d150['getAllAdjacentSuggestions']())_0x2e1de0['accept']();});});}['discardSuggestion'](_0x13acef){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xad0e69 of _0x13acef['getAllAdjacentSuggestions']())_0xad0e69['discard']();});});}['enableCommand'](_0x79659e,_0x1687b8){const _0x51b1e6=this['editor']['commands']['get'](_0x79659e);if(!_0x51b1e6)throw new _0x1b84b2('track-changes-command-not-found',this,{'commandName':_0x79659e});if(this['_enabledCommands']['has'](_0x51b1e6))throw new _0x1b84b2('track-changes-enable-command-twice',this,{'commandName':_0x79659e});this['_enabledCommands']['add'](_0x51b1e6),_0x1687b8&&_0x51b1e6['on']('execute',(_0x49eea9,_0x18e098)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x18e098['length']>0x0&&_0x18e098[_0x18e098['length']-0x1]&&_0x18e098[_0x18e098['length']-0x1]['forceDefaultExecution']?_0x18e098['pop']():(_0x49eea9['return']=_0x1687b8((..._0x10835e)=>_0x51b1e6['execute'](..._0x10835e,{'forceDefaultExecution':!0x0}),..._0x18e098),_0x49eea9['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x4d6472){let _0xf7c39e,_0x98e421;const _0x54b370=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0xf7c39e=_0x4d6472();}catch(_0x2f68ce){_0x98e421=_0x2f68ce;}return _0x54b370||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x98e421&&_0x1b84b2['rethrowUnexpectedError'](_0x98e421,this),_0xf7c39e;}['markInsertion'](_0x70b3e0,_0x4231cb=null,_0x3bd09f={}){if(_0x70b3e0['isCollapsed'])return null;const _0x34a366=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x3bd09f['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x56fca2,meta:_0x75138c}of this['_findSuggestions'](_0x70b3e0,'insertion'))if(_0x75138c['isOwn']){if(!_0x75138c['isNextTo']){if(_0x75138c['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!cn(_0x56fca2,_0x3bd09f))continue;return _0x56fca2;}if(cn(_0x56fca2,_0x3bd09f))return _0x56fca2;this['_breakSuggestionMarker'](_0x56fca2,_0x70b3e0['start'],_0x70b3e0['end']);break;}if(_0x4231cb==_0x56fca2['subType']&&cn(_0x56fca2,_0x3bd09f)){const _0x41538e=_0x56fca2['getFirstRange']();return _0x41538e['start']['isEqual'](_0x70b3e0['end'])?this['_setSuggestionRange'](_0x56fca2,this['_model']['createRange'](_0x70b3e0['start'],_0x41538e['end'])):this['_setSuggestionRange'](_0x56fca2,this['_model']['createRange'](_0x41538e['start'],_0x70b3e0['end'])),_0x56fca2;}}const _0xcdb436=_0x2026f5(),_0xfe103e=_0x34a366['id'],_0x40cae6=_0x4231cb?'insertion:'+_0x4231cb:'insertion',_0x400b2c=this['_setSuggestionData']({'id':_0xcdb436,'type':_0x40cae6,'createdAt':new Date(),'authorId':_0xfe103e,'attributes':_0x3bd09f});return this['_addSuggestionMarker'](_0x40cae6,_0xcdb436,_0xfe103e,_0x70b3e0),_0x400b2c;}['markMultiRangeInsertion'](_0x46723d,_0x3f65ec='multi',_0x550c4d={}){const _0x13b78c=this['editor']['plugins']['get']('Users')['me'],_0x28ddd6=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x3f65ec,'join');this['_trackingSessionId']&&(_0x550c4d['trackingSessionId']=this['_trackingSessionId']);for(const _0x203f7b of this['getSuggestions']())if(_0x203f7b['author']['id']==_0x13b78c['id']&&'insertion'==_0x203f7b['type']&&_0x203f7b['subType']==_0x3f65ec&&cn(_0x203f7b,_0x550c4d)&&(_0x28ddd6(_0x203f7b['getRanges'](),_0x46723d)||_0x28ddd6(_0x46723d,_0x203f7b['getRanges']()))){for(const _0x54b68f of _0x46723d)_0x203f7b['addRange'](_0x54b68f);return _0x203f7b;}for(const {suggestion:_0x324468,meta:_0x262b5a}of this['_findSuggestions'](_0x46723d,'insertion')){if(!_0x262b5a['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x262b5a['containsRangeInObject'])continue;if(!cn(_0x324468,_0x550c4d))continue;let _0x5d05ac=!0x0;for(const _0x33cf09 of _0x324468['getRanges']())for(const _0x3efebf of _0x46723d)if(!_0x33cf09['containsRange'](_0x3efebf)){_0x5d05ac=!0x1;break;}if(_0x5d05ac)return _0x324468;}const _0x1aaa1c=_0x2026f5(),_0x13ca78=_0x13b78c['id'],_0x1be122='insertion:'+_0x3f65ec,_0x273e93=this['_setSuggestionData']({'id':_0x1aaa1c,'type':_0x1be122,'createdAt':new Date(),'authorId':_0x13ca78,'attributes':_0x550c4d});for(const _0x33b73f of _0x46723d)this['_addSuggestionMarker'](_0x1be122,_0x1aaa1c,_0x13ca78,_0x33b73f,bt['getMultiRangeId']());return _0x273e93;}['markInlineFormat'](_0x1eb753,_0x3802a6,_0x5d8a6e=null,_0x3ca998={}){if(_0x5d8a6e=_0x5d8a6e||Je(_0x3802a6),_0x1eb753['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x3ca998['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x1a9ba4=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5d8a6e,'accept');return this['forceDefaultExecution'](()=>_0x1a9ba4([_0x1eb753],_0x3802a6,_0x3ca998)),null;}const _0x147e5a=this['editor']['plugins']['get']('Users')['me'],_0x126d11=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x163464,meta:_0x21b15b}of this['_findSuggestions'](_0x1eb753,'insertion'))_0x21b15b['isOwn']&&!_0x21b15b['isInsideObject']&&_0x126d11['push'](..._0x163464['getRanges']());}const _0x1c80a1=function(_0x357f4f,_0x4e89a7){const _0x31b12b=[];for(const _0x434f14 of _0x4e89a7){const _0x44609f=_0x357f4f['getIntersection'](_0x434f14);_0x44609f&&_0x31b12b['push'](_0x44609f);}return _0x31b12b;}(_0x1eb753,_0x126d11),_0x3aa968=function(_0x3d6c6e,_0x246a95){const _0x5c590f=[_0x3d6c6e];for(const _0x505fee of _0x246a95){let _0x3fa2e8=0x0;for(;_0x3fa2e8<_0x5c590f['length'];){const _0x19bbeb=_0x5c590f[_0x3fa2e8]['getDifference'](_0x505fee);_0x5c590f['splice'](_0x3fa2e8,0x1,..._0x19bbeb),_0x3fa2e8+=_0x19bbeb['length'];}}return _0x5c590f;}(_0x1eb753,_0x126d11);_0x1c80a1['length']&&this['_model']['change'](()=>{for(const _0x5b9c42 of _0x1c80a1){const _0x485b6c=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5d8a6e,'accept');this['forceDefaultExecution'](()=>_0x485b6c([_0x5b9c42],_0x3802a6,_0x3ca998));}});for(const _0x480369 of _0x3aa968){let _0x31bb8b=null,_0x5afa43=_0x480369['start'],_0x5e83d7=_0x480369['end'];for(const {suggestion:_0x3c233f,meta:_0x4e40e3}of this['_findSuggestions'](_0x480369,'formatInline')){if(!_0x4e40e3['isOwn'])continue;if(_0x3c233f['subType']!=_0x5d8a6e)continue;if(!cn(_0x3c233f,_0x3ca998))continue;const _0x15d9d8=_0x3c233f['getFirstRange']();if(_0x15d9d8['containsRange'](_0x480369,!0x0))return null;_0x5afa43=_0x5afa43['isBefore'](_0x15d9d8['start'])?_0x5afa43:_0x15d9d8['start'],_0x5e83d7=_0x5e83d7['isAfter'](_0x15d9d8['end'])?_0x5e83d7:_0x15d9d8['end'],_0x31bb8b?_0x15d9d8['start']['isBefore'](_0x31bb8b['getFirstRange']()['start'])?(_0x31bb8b['removeMarkers'](),_0x31bb8b=_0x3c233f):_0x3c233f['removeMarkers']():_0x31bb8b=_0x3c233f;}const _0xe746e0=this['_model']['createRange'](_0x5afa43,_0x5e83d7);if(_0x31bb8b)this['_setSuggestionRange'](_0x31bb8b,_0xe746e0);else{const _0x5617ce=_0x2026f5(),_0x5b687b=_0x147e5a['id'];this['_setSuggestionData']({'id':_0x5617ce,'type':'formatInline:'+_0x5d8a6e,'data':_0x3802a6,'createdAt':new Date(),'authorId':_0x5b687b,'attributes':_0x3ca998}),this['_addSuggestionMarker']('formatInline:'+_0x5d8a6e,_0x5617ce,_0x5b687b,_0xe746e0);}}return null;}['markBlockFormat'](_0x2677a4,_0x1e3d5a,_0x3f5874=[],_0x13f510=null,_0x5630dd={}){_0x1e3d5a['formatGroupId']||(_0x1e3d5a['formatGroupId']=_0x1e3d5a['commandName']),_0x1e3d5a['multipleBlocks']=_0x2677a4['is']('range'),_0x13f510=_0x13f510||Je(_0x1e3d5a);const _0x42fffa=_0x3f5874['map'](_0x5bf57e=>rn(_0x5bf57e,this['_model'])),_0x57d1a7=_0x2677a4['is']('range')?_0x2677a4:rn(_0x2677a4,this['_model']);if(this['_trackingSessionId']&&(_0x5630dd['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x52f108=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x13f510,'accept');return this['forceDefaultExecution'](()=>_0x52f108([_0x57d1a7],_0x1e3d5a,_0x5630dd)),null;}_0x42fffa['push'](_0x57d1a7);let _0x28e0e0=!0x0;for(const _0x30046c of _0x42fffa)if(!this['_rangeIsInLocalUserInsertion'](_0x30046c)){_0x28e0e0=!0x1;break;}if(_0x28e0e0&&'always'!==this['_trackFormatChanges']){const _0x3c3c8a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x13f510,'accept');return this['forceDefaultExecution'](()=>_0x3c3c8a([_0x57d1a7],_0x1e3d5a,_0x5630dd)),null;}let _0x358d5b=null,_0x573a57=_0x57d1a7['start'],_0x793ff0=_0x57d1a7['end'];for(const {suggestion:_0x412252,meta:_0x579255}of this['_findSuggestions'](_0x57d1a7,'formatBlock')){if(!_0x579255['isOwn'])continue;if(_0x579255['isNextTo']||_0x579255['containsRangeInObject']||_0x579255['isInsideObject'])continue;if(_0x412252['data']['formatGroupId']!=_0x1e3d5a['formatGroupId'])continue;if(!cn(_0x412252,_0x5630dd))continue;const _0x40748d=_0x412252['getFirstRange']();if(_0x412252['subType']==_0x13f510){if(_0x40748d['containsRange'](_0x57d1a7,!0x0))return null;_0x573a57=_0x573a57['isBefore'](_0x40748d['start'])?_0x573a57:_0x40748d['start'],_0x793ff0=_0x793ff0['isAfter'](_0x40748d['end'])?_0x793ff0:_0x40748d['end'],_0x358d5b?_0x40748d['start']['isBefore'](_0x358d5b['getFirstRange']()['start'])?(_0x358d5b['removeMarkers'](),_0x358d5b=_0x412252):_0x412252['removeMarkers']():_0x358d5b=_0x412252;}else{const _0x43aeb4=_0x57d1a7['getIntersection'](_0x40748d);this['_cutOutSuggestionMarker'](_0x412252,_0x43aeb4);}}const _0x2fa9e4=this['editor']['plugins']['get']('Users')['me'],_0x16677b=_0x2026f5(),_0x34b0c4=_0x2fa9e4['id'];if(_0x358d5b)return this['_setSuggestionRange'](_0x358d5b,this['_model']['createRange'](_0x573a57,_0x793ff0)),_0x358d5b;{const _0x5db7a5=this['_setSuggestionData']({'id':_0x16677b,'type':'formatBlock:'+_0x13f510,'data':_0x1e3d5a,'createdAt':new Date(),'authorId':_0x34b0c4,'attributes':_0x5630dd});return this['_addSuggestionMarker']('formatBlock:'+_0x13f510,_0x16677b,_0x34b0c4,this['_model']['createRange'](_0x573a57,_0x793ff0)),_0x5db7a5;}}['markMultiRangeBlockFormat'](_0x13dda6,_0x4d44c5,_0x51a2e2=[],_0xf43106=null,_0x37f59c={}){_0x4d44c5['formatGroupId']||(_0x4d44c5['formatGroupId']=_0x4d44c5['commandName']);const _0x1e8007=_0x13dda6[0x0];_0x4d44c5['multipleBlocks']=_0x1e8007['is']('range'),_0xf43106=_0xf43106||Je(_0x4d44c5);const _0x813234=_0x51a2e2['map'](_0x55f9dd=>rn(_0x55f9dd,this['_model'])),_0x5d3d0a=_0x1e8007['is']('range')?_0x13dda6:_0x13dda6['map'](_0x2d0470=>rn(_0x2d0470,this['_model']));if(this['_trackingSessionId']&&(_0x37f59c['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x53dcf9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xf43106,'accept');return this['forceDefaultExecution'](()=>_0x53dcf9(_0x5d3d0a,_0x4d44c5,_0x37f59c)),null;}_0x813234['push'](..._0x5d3d0a);let _0x30e0c3=!0x0;for(const _0x2e0ea2 of _0x813234)if(!this['_rangeIsInLocalUserInsertion'](_0x2e0ea2)){_0x30e0c3=!0x1;break;}if(_0x30e0c3&&'always'!==this['_trackFormatChanges']){const _0x5cac7b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xf43106,'accept');return this['forceDefaultExecution'](()=>_0x5cac7b(_0x5d3d0a,_0x4d44c5,_0x37f59c)),null;}const _0x5514b1=this['editor']['plugins']['get']('Users')['me'];for(const _0xdee9ff of this['getSuggestions']()){const _0x58c54d=_0xdee9ff['data'];if(_0xdee9ff['author']['id']!=_0x5514b1['id'])continue;if('formatBlock'!=_0xdee9ff['type']||_0x58c54d['formatGroupId']!=_0x4d44c5['formatGroupId'])continue;if(!cn(_0xdee9ff,_0x37f59c))continue;const _0x41bc94=_0xdee9ff['subType']==_0xf43106;for(let _0xfd2d2d=0x0;_0xfd2d2d<_0x5d3d0a['length'];_0xfd2d2d++){const _0x1e4ad8=_0x5d3d0a[_0xfd2d2d];for(const _0x46388f of _0xdee9ff['getMarkers']()){const _0x4689af=_0x46388f['getRange']();if(_0x1e4ad8['isEqual'](_0x4689af)){_0x41bc94?(_0x5d3d0a['splice'](_0xfd2d2d,0x1),_0xfd2d2d--):_0xdee9ff['removeMarker'](_0x46388f['name']);break;}}}}if(0x0==_0x5d3d0a['length'])return null;const _0x5f3472=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xf43106,'join');for(const _0x487b8a of this['getSuggestions']()){const _0x2eaf17=_0x487b8a['data'];if(_0x487b8a['author']['id']==_0x5514b1['id']&&('formatBlock'==_0x487b8a['type']&&_0x2eaf17['formatGroupId']==_0x4d44c5['formatGroupId']&&_0x487b8a['subType']==_0xf43106&&cn(_0x487b8a,_0x37f59c)&&(_0x5f3472(_0x487b8a['getRanges'](),_0x5d3d0a)||_0x5f3472(_0x5d3d0a,_0x487b8a['getRanges']())))){for(const _0x178e2d of _0x5d3d0a)_0x487b8a['addRange'](_0x178e2d);return _0x487b8a;}}const _0x3b3f2d=_0x2026f5(),_0x53ae48=_0x5514b1['id'],_0x15a973='formatBlock:'+_0xf43106,_0x54a479=this['_setSuggestionData']({'id':_0x3b3f2d,'type':_0x15a973,'data':_0x4d44c5,'createdAt':new Date(),'authorId':_0x53ae48,'attributes':_0x37f59c});for(const _0x44587b of _0x5d3d0a)this['_addSuggestionMarker'](_0x15a973,_0x3b3f2d,_0x53ae48,_0x44587b,bt['getMultiRangeId']());return _0x54a479;}['markDeletion'](_0x475561,_0x46acd4=null,_0x89a5a2={}){if(_0x475561['isCollapsed'])return null;const _0x27ea05=this['editor']['plugins']['get']('Users')['me'],_0x52e0cd=new _0x5b1490(_0x475561['start'],_0x475561['end']);this['_trackingSessionId']&&(_0x89a5a2['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0xa940ce,meta:_0x3932cb}of this['_findSuggestions'](_0x52e0cd,'insertion'))if(_0x3932cb['isOwn']&&!_0x3932cb['isNextTo']){if(_0xa940ce['isMultiRange']){const _0x415104=_0xa940ce['getRanges']()['filter'](_0x43e49c=>'$graveyard'!=_0x43e49c['root']['rootName']);_0x415104['every'](_0x4fb0b0=>_0x52e0cd['containsRange'](_0x4fb0b0,!0x0))&&_0xa940ce['discard']();if(_0x415104['some'](_0x1dadc9=>_0x1dadc9['containsRange'](_0x52e0cd,!0x0))){const _0x26768f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x46acd4,'accept');return this['forceDefaultExecution'](()=>_0x26768f([_0x52e0cd],null,_0x89a5a2)),null;}}else{const _0x22fe59=_0x52e0cd['getIntersection'](_0xa940ce['getFirstRange']());null!==_0x22fe59&&_0xa940ce['_onDiscard']([_0x22fe59],null,_0x89a5a2);}}if(_0x52e0cd['detach'](),_0x52e0cd['isCollapsed']||'$graveyard'==_0x52e0cd['root']['rootName'])return null;let _0x24c31a=null,_0x3e088a=_0x52e0cd['start'],_0x282b53=_0x52e0cd['end'];const _0x210453=this['_findSuggestions'](_0x52e0cd,'deletion');for(const {suggestion:_0x221ce3,meta:_0x33f502}of _0x210453){const _0x9d4780=this['_model']['createRange'](_0x3e088a,_0x282b53);if(_0x33f502['isOwn']&&(this['_mergeNestedSuggestions']||!_0x33f502['containsRangeInObject']&&!_0x33f502['isInsideObject'])){if(_0x221ce3['isMultiRange']){if(!cn(_0x221ce3,_0x89a5a2))continue;let _0x4c993f=!0x0;for(const _0x467617 of _0x221ce3['getRanges']()){if(_0x467617['containsRange'](_0x9d4780,!0x0))return _0x221ce3;_0x9d4780['containsRange'](_0x467617)||(_0x4c993f=!0x1);}_0x4c993f&&_0x221ce3['discard']();}else{const _0xddbbc4=_0x221ce3['getFirstRange']();if(_0xddbbc4['containsRange'](_0x9d4780,!0x0))return _0x221ce3;if(!cn(_0x221ce3,_0x89a5a2)){_0x9d4780['containsRange'](_0xddbbc4)?_0x221ce3['removeMarkers']():_0xddbbc4['containsPosition'](_0x3e088a)?_0x3e088a=_0xddbbc4['end']:_0xddbbc4['containsPosition'](_0x282b53)&&(_0x282b53=_0xddbbc4['start']);continue;}_0x3e088a=_0x3e088a['isBefore'](_0xddbbc4['start'])?_0x3e088a:_0xddbbc4['start'],_0x282b53=_0x282b53['isAfter'](_0xddbbc4['end'])?_0x282b53:_0xddbbc4['end'],_0x89a5a2=Object['assign']({},_0x221ce3['attributes']),_0x24c31a?_0xddbbc4['start']['isBefore'](_0x24c31a['getFirstRange']()['start'])?(_0x24c31a['removeMarkers'](),_0x24c31a=_0x221ce3):_0x221ce3['removeMarkers']():_0x24c31a=_0x221ce3;}}}if(_0x24c31a)return this['_setSuggestionRange'](_0x24c31a,this['_model']['createRange'](_0x3e088a,_0x282b53)),_0x24c31a;{const _0x1a58bc=_0x2026f5(),_0x4bdd04=this['_model']['createRange'](_0x3e088a,_0x282b53),_0x41919a=_0x27ea05['id'],_0x3dfe68=_0x46acd4?'deletion:'+_0x46acd4:'deletion',_0x41b366=this['_setSuggestionData']({'id':_0x1a58bc,'type':_0x3dfe68,'createdAt':new Date(),'authorId':_0x41919a,'attributes':_0x89a5a2});return this['_addSuggestionMarker'](_0x3dfe68,_0x1a58bc,_0x41919a,_0x4bdd04),_0x41b366;}}['markMultiRangeDeletion'](_0x54a400,_0x2d81fa='multi',_0x34806f={}){const _0x1bf220=this['editor']['plugins']['get']('Users')['me'],_0x266041=_0x54a400['map'](_0x18fa62=>new _0x5b1490(_0x18fa62['start'],_0x18fa62['end'])),_0x4697a5=new Set();this['_trackingSessionId']&&(_0x34806f['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x1bed62,meta:_0x30d54a}of this['_findSuggestions'](_0x266041,'insertion'))_0x30d54a['isOwn']&&!_0x30d54a['isNextTo']&&_0x4697a5['add'](_0x1bed62);for(const _0x187309 of _0x4697a5)if(_0x187309['isMultiRange']){const _0x2d272c=_0x187309['getRanges']();(!_0x187309['attributes']||!_0x187309['attributes']['skipNestingCheck'])&&(_0x2d272c['every'](_0x57bb6e=>_0x266041['some'](_0x5cc8c0=>_0x5cc8c0['containsRange'](_0x57bb6e,!0x0)))&&_0x187309['discard']());if(_0x266041['every'](_0x587c26=>_0x2d272c['some'](_0x15aaf7=>_0x15aaf7['containsRange'](_0x587c26,!0x0)))){const _0x4c5b74=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2d81fa,'accept');return this['forceDefaultExecution'](()=>_0x4c5b74(_0x54a400,null,_0x34806f)),null;}}else{const _0x2f9c34=_0x187309['getFirstRange']();_0x266041['some'](_0x5742e5=>_0x5742e5['containsRange'](_0x2f9c34,!0x0))&&_0x187309['discard']();if(_0x266041['every'](_0x5b2a61=>_0x2f9c34['containsRange'](_0x5b2a61,!0x0))){const _0x28f7f7=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2d81fa,'accept');return this['forceDefaultExecution'](()=>_0x28f7f7(_0x266041,null,_0x34806f)),null;}}const _0x4aaa81=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2d81fa,'join');let _0x4cd649=null;for(const _0x59225f of this['getSuggestions']())if(_0x59225f['author']['id']==_0x1bf220['id']&&_0x59225f['isInContent']&&'deletion'==_0x59225f['type']&&_0x59225f['subType']==_0x2d81fa&&cn(_0x59225f,_0x34806f)&&(_0x4aaa81(_0x59225f['getRanges'](),_0x266041)||_0x4aaa81(_0x266041,_0x59225f['getRanges']()))){if(_0x4cd649){if(_0x59225f['commentThread']&&_0x59225f['commentThread']['length'])continue;for(const _0x197564 of _0x59225f['getRanges']())_0x4cd649['isIntersectingWithRange'](_0x197564)||_0x4cd649['addRange'](_0x197564);_0x59225f['removeMarkers']();}else{_0x4cd649=_0x59225f;for(const _0x4f0a63 of _0x266041)_0x59225f['isIntersectingWithRange'](_0x4f0a63)||_0x59225f['addRange'](_0x4f0a63);}}if(_0x4cd649)return _0x4cd649;_0x4697a5['clear']();for(const {suggestion:_0x5d12a8,meta:_0x24a853}of this['_findSuggestions'](_0x266041,'deletion'))_0x24a853['isOwn']&&(this['_mergeNestedSuggestions']||!_0x24a853['containsRangeInObject']&&!_0x24a853['isInsideObject'])&&cn(_0x5d12a8,_0x34806f)&&_0x4697a5['add'](_0x5d12a8);for(const _0x17362a of _0x4697a5){const _0x474b25=_0x17362a['getRanges']();if(!_0x34806f||!_0x34806f['skipNestingCheck']){if(_0x266041['every'](_0x3b8083=>_0x474b25['some'](_0x31a1d6=>_0x31a1d6['containsRange'](_0x3b8083,!0x0))))return _0x17362a;}(!_0x17362a['attributes']||!_0x17362a['attributes']['skipNestingCheck'])&&(_0x474b25['every'](_0x85e336=>_0x266041['some'](_0x3e1066=>_0x3e1066['containsRange'](_0x85e336,!0x0)))&&_0x17362a['discard']());}const _0x1eab46=_0x2026f5(),_0x588eb4=_0x1bf220['id'],_0x2f952f='deletion:'+_0x2d81fa,_0x52557c=this['_setSuggestionData']({'id':_0x1eab46,'type':_0x2f952f,'createdAt':new Date(),'authorId':_0x588eb4,'attributes':_0x34806f});for(const _0x4ae6e8 of _0x266041)_0x4ae6e8['detach'](),_0x4ae6e8['isCollapsed']||'$graveyard'==_0x4ae6e8['root']['rootName']||this['_addSuggestionMarker'](_0x2f952f,_0x1eab46,_0x588eb4,_0x4ae6e8,bt['getMultiRangeId']());return _0x52557c;}['markAttributeChange'](_0xb9f917,_0x16a2fb,_0x36283e,_0x29f7a6,_0x4d2845){if(_0xb9f917['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x15039a=this['editor']['plugins']['get']('Users')['me']['id'],_0x468158=Array['from'](this['_suggestions']['values']())['filter'](_0x2c724b=>'attribute'==_0x2c724b['type']&&_0x2c724b['data']['key']==_0x16a2fb&&_0x2c724b['isIntersectingWithRange'](_0xb9f917));if(this['_trackingSessionId']&&(_0x4d2845['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x2fa09d=this['_findSuggestions'](_0xb9f917,'insertion')['filter'](({meta:_0x3ac5ae})=>_0x3ac5ae['isOwn']&&!_0x3ac5ae['isInsideObject']&&!_0x3ac5ae['isNextTo'])['map'](({suggestion:_0xf0ea5a})=>_0xf0ea5a);_0x468158['unshift'](..._0x2fa09d);}const _0x291c36=new Map([[_0xb9f917,_0x36283e]]);for(const _0x34dd1f of _0x468158){const _0x15b743='attribute'==_0x34dd1f['type']?_0x34dd1f['data']['oldValue']:void 0x0,_0x50bd52=_0x34dd1f['getFirstRange'](),_0x31b793=Array['from'](_0x291c36['keys']())['find'](_0x325315=>_0x325315['isIntersecting'](_0x50bd52));if(!_0x31b793)continue;const _0x486b6d=_0x31b793['getDifference'](_0x50bd52);this['_suggestionsConversion']['isBlockAttribute'](_0x16a2fb)&&'insertion'==_0x34dd1f['type']&&0x0!=_0x486b6d['length']||(_0x291c36['delete'](_0x31b793),_0x486b6d['forEach'](_0x57fde5=>{_0x291c36['set'](_0x57fde5,_0x36283e);}),'insertion'!=_0x34dd1f['type']&&_0x15b743!=_0x29f7a6&&_0x291c36['set'](_0x31b793['getIntersection'](_0x50bd52),_0x15b743));}const _0x44f461=[];for(const [_0x42054b,_0x4caff2]of _0x291c36){const _0x48c1c3=_0x2026f5(),_0x4eb671={'key':_0x16a2fb,'oldValue':_0x4caff2,'newValue':_0x29f7a6};_0x16a2fb['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':_0x16a2fb});const _0x370dc7=('attribute:'+(_0x16a2fb+'|'+Je({'newValue':_0x29f7a6})))['substring'](0x0,0x3c),_0x24ce4b=this['_setSuggestionData']({'id':_0x48c1c3,'type':_0x370dc7,'data':_0x4eb671,'createdAt':new Date(),'authorId':_0x15039a,'attributes':_0x4d2845});_0x44f461['push'](_0x24ce4b),this['_addSuggestionMarker'](_0x370dc7,_0x48c1c3,_0x15039a,_0x42054b);}return _0x44f461;}['enableDefaultAttributesIntegration'](_0x53555f){this['enableCommand'](_0x53555f,(_0x28ee15,..._0x144ba2)=>{this['recordAttributeChanges'](()=>{_0x28ee15(..._0x144ba2);});});}['startTrackingSession'](_0x285c9d){return this['_trackingSessionId']=void 0x0!==_0x285c9d?_0x285c9d:_0x2026f5(),this['_trackingSessionId'];}['_getAttributeKey'](_0x2cbe86){return'attribute'==_0x2cbe86['type']?un(_0x2cbe86['subType']):null;}['_applyOperationsAsSuggestions'](_0x2adb33){if(0x0==_0x2adb33['length'])return;const _0x2d8475=this['editor'],_0x163365=_0x2d8475['plugins']['get'](_0x2567f1),_0xcdf585=[];_0x2d8475['model']['change'](_0x1f0b7d=>{for(let _0x22bca9=0x0;_0x22bca9<_0x2adb33['length'];_0x22bca9++){const _0x4440fb=_0x2adb33[_0x22bca9];if(_0x4440fb['baseVersion']=_0x2d8475['model']['document']['version'],_0x4440fb['isDocumentOperation']=!0x0,_0x163365['isMarkedRemoveOperation'](_0x4440fb)){const _0x4970fd=_0x45f4cc(_0x4440fb['newRange'],_0x2d8475['model']);_0xcdf585['unshift'](_0x5b1490['fromRange'](_0x4970fd));}else switch(_0x4440fb['type']){case'rename':{const _0x217dbb=_0x4440fb['oldName'],_0x348d3b=_0x4440fb['newName'];if(_0x217dbb==_0x348d3b)break;_0x1f0b7d['batch']['addOperation'](_0x4440fb),_0x2d8475['model']['applyOperation'](_0x4440fb);const _0x67b174='$elementName',_0x3c5775=_0x4440fb['position'],_0x2f74b4=_0x2d8475['model']['createRange'](_0x3c5775,_0x2d8475['model']['createPositionAt'](_0x3c5775['nodeAfter'],'end'));this['markAttributeChange'](_0x2f74b4,_0x67b174,_0x217dbb,_0x348d3b,{'groupId':_0x2026f5()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x4e3386=_0x4440fb['oldValue'],_0x4a9f93=_0x4440fb['newValue'];if(_0x4e3386==_0x4a9f93)break;_0x1f0b7d['batch']['addOperation'](_0x4440fb),_0x2d8475['model']['applyOperation'](_0x4440fb);const _0x34580b=_0x4440fb['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x34580b))break;const _0x3fe7ad=_0x45f4cc(_0x4440fb['range'],_0x2d8475['model']);this['markAttributeChange'](_0x3fe7ad,_0x34580b,_0x4e3386,_0x4a9f93,{'groupId':_0x2026f5()});break;}case'insert':{_0x1f0b7d['batch']['addOperation'](_0x4440fb),_0x2d8475['model']['applyOperation'](_0x4440fb);if(_0x2adb33[_0x22bca9+0x1]&&'move'==_0x2adb33[_0x22bca9+0x1]['type'])break;const _0x1a3e34=_0x4440fb['position'],_0x21ab72=_0x4440fb['howMany'],_0x3f871f=_0x45f4cc(_0x2d8475['model']['createRange'](_0x1a3e34,_0x1a3e34['getShiftedBy'](_0x21ab72)),_0x2d8475['model']);this['markInsertion'](_0x3f871f);break;}case'split':{_0x1f0b7d['batch']['addOperation'](_0x4440fb),_0x2d8475['model']['applyOperation'](_0x4440fb);const _0x426e65=_0x4440fb['splitPosition'],_0x146f21=_0x4440fb['moveTargetPosition'];this['markInsertion'](_0x2d8475['model']['createRange'](_0x426e65,_0x146f21));break;}case'move':case'remove':_0x1f0b7d['batch']['addOperation'](_0x4440fb),_0x2d8475['model']['applyOperation'](_0x4440fb);}}for(const _0x1bd20a of _0xcdf585)_0x1bd20a['detach'](),this['markDeletion'](_0x1bd20a);});}['_setSuggestionRange'](_0x319eaa,_0x23dc2d){const _0x5bd7dd=_0x319eaa['getFirstMarker']();this['_model']['change'](_0x5a26b5=>{_0x5a26b5['updateMarker'](_0x5bd7dd,{'range':_0x23dc2d});});}['_addThreadToSuggestion'](_0x2da2f6){const _0x5abd23=_0x2da2f6['id'],_0x40bbb8=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x5abd23)||this['_commentsRepository']['addCommentThread']({'channelId':_0x40bbb8,'threadId':_0x5abd23,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x5b982b=this['_commentsRepository']['getCommentThread'](_0x5abd23);_0x5b982b['unbind']('isRemovable'),_0x5b982b['isRemovable']=!0x1,_0x2da2f6['commentThread']=_0x5b982b;}['_checkSuggestionCorrectness'](_0x4ecba0,_0x1fe41c,_0x534725,_0x56ee25){if(_0x4ecba0['type']!=_0x1fe41c||_0x4ecba0['subType']!=_0x534725||_0x4ecba0['creator']['id']!=_0x56ee25)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x1b84b2('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x51ad4a,_0x59600f){const _0xffc02a=_0x51ad4a['getFirstRange']();if(_0x59600f['isEqual'](_0xffc02a))_0x51ad4a['removeMarkers']();else{if(_0xffc02a['containsRange'](_0x59600f)){const _0x49e99e=this['_model']['createPositionAt'](_0x59600f['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x51ad4a,this['_model']['createRange'](_0xffc02a['start'],_0x49e99e));const _0x155f26=_0x2026f5(),_0x3fc06e=_0x51ad4a['creator']['id'],_0x24f9f0=_0x51ad4a['type']+':'+_0x51ad4a['subType'];this['_setSuggestionData']({'id':_0x155f26,'type':_0x24f9f0,'createdAt':new Date(),'authorId':_0x3fc06e,'data':_0x51ad4a['data'],'attributes':_0x51ad4a['attributes']});const _0x24c749=this['_model']['createPositionAt'](_0x59600f['end']['parent'],'after'),_0x26528c=this['_model']['createRange'](_0x24c749,_0xffc02a['end']);this['_addSuggestionMarker'](_0x24f9f0,_0x155f26,_0x3fc06e,_0x26528c);}else{if(_0xffc02a['containsPosition'](_0x59600f['start'])){const _0xafed17=this['_model']['createPositionAt'](_0x59600f['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x51ad4a,this['_model']['createRange'](_0xffc02a['start'],_0xafed17));}else{const _0x33ee1a=this['_model']['createPositionAt'](_0x59600f['end']['parent'],'after');this['_setSuggestionRange'](_0x51ad4a,this['_model']['createRange'](_0x33ee1a,_0xffc02a['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x258065){for(const {suggestion:_0x44d2ee,meta:_0x54d77b}of this['_findSuggestions'](_0x258065,'insertion')){if(!_0x54d77b['isOwn'])continue;const _0x1d9893=_0x44d2ee['getRanges']();for(const _0x4e5bf2 of _0x1d9893)if(!_0x258065['getDifference'](_0x4e5bf2)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x38d870){return this['editor']['plugins']['get']('Users')['getUser'](_0x38d870);}['_getExternalAuthor'](_0x2eea12){const _0x4add11=this['editor']['plugins']['get']('Users'),_0x380720=_0x5b8aa9('external:'+_0x2eea12),_0x518852=_0x4add11['getUser'](_0x380720);return _0x518852||_0x4add11['addUser']({'id':_0x380720,'name':_0x2eea12});}['_createSuggestion'](_0x37ced6,_0x13b26c,_0x5d61b6,_0x1de001,_0x520a32,_0x39d8d8){const _0x4fac7f=this['_getAuthorFromId'](_0x1de001);if(!_0x4fac7f)throw new _0x1b84b2('track-changes-user-not-found',this,{'authorId':_0x1de001,'suggestionId':_0x5d61b6});const _0x2c62c6=this['_suggestionFactory']['buildSuggestion'](_0x37ced6,_0x13b26c,_0x5d61b6,_0x4fac7f,_0x520a32,_0x4b858a=>{this['_updateSuggestionData'](_0x5d61b6,{'attributes':_0x4b858a});const _0x40d9a8=this['getSuggestion'](_0x5d61b6);this['_joinWithAdjacentSuggestions'](new Set([_0x40d9a8])),this['_refreshSuggestionsChain'](new Set([_0x40d9a8]));},_0x39d8d8);return this['listenTo'](_0x2c62c6,'accept',()=>{this['_updateSuggestionData'](_0x5d61b6,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x2c62c6,'discard',()=>{this['_updateSuggestionData'](_0x5d61b6,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x5d61b6,_0x2c62c6),this['_suggestionState']['set'](_0x2c62c6,'notReady'),_0x2c62c6;}['_breakSuggestionMarker'](_0x3ad818,_0x4e287a,_0x7b4e8){const _0x929bac=_0x3ad818['getFirstRange'](),_0x36cde0=_0x929bac['start'],_0x29eb59=_0x929bac['end'];this['_setSuggestionRange'](_0x3ad818,this['_model']['createRange'](_0x36cde0,_0x4e287a));const _0x31bb0f=_0x2026f5(),_0x2f58f1=_0x3ad818['creator']['id'],_0x594622=_0x3ad818['type']+(_0x3ad818['subType']?':'+_0x3ad818['subType']:'');this['_setSuggestionData']({'id':_0x31bb0f,'type':_0x594622,'createdAt':new Date(),'authorId':_0x2f58f1,'originalSuggestionId':_0x3ad818['_originalSuggestionId']||_0x3ad818['id'],'attributes':_0x3ad818['attributes'],'data':_0x3ad818['data']});const _0x33e6f7=this['_getAttributeKey'](_0x3ad818);('formatBlock'==_0x3ad818['type']||_0x33e6f7&&this['_suggestionsConversion']['isBlockAttribute'](_0x33e6f7))&&(_0x7b4e8=this['_model']['createPositionBefore'](_0x7b4e8['parent'])),this['_addSuggestionMarker'](_0x594622,_0x31bb0f,_0x2f58f1,this['_model']['createRange'](_0x7b4e8,_0x29eb59));}['_findSuggestions'](_0x41f4d0,_0x42ec02=null){const _0xff6377=[],_0x438fc0=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x41f4d0)||(_0x41f4d0=[_0x41f4d0]);for(const _0x5b7705 of this['getSuggestions']()){if(!_0x5b7705['isInContent'])continue;if(_0x42ec02&&_0x5b7705['type']!=_0x42ec02)continue;let _0x1b8186=!0x1;for(const _0x53991f of _0x5b7705['getRanges']()){for(const _0x533da1 of _0x41f4d0){const _0x2e4fba=_0x533da1['start']['isEqual'](_0x53991f['end'])||_0x533da1['end']['isEqual'](_0x53991f['start']);if(_0x2e4fba||_0x533da1['getIntersection'](_0x53991f)){const _0x3af61c=_0x533da1['containsRange'](_0x53991f)&&qe(this['_model']['schema'],_0x53991f['start'],_0x533da1),_0x14d6cb=_0x53991f['containsRange'](_0x533da1)&&qe(this['_model']['schema'],_0x533da1['start'],_0x53991f);_0xff6377['push']({'suggestion':_0x5b7705,'meta':{'isOwn':_0x438fc0==_0x5b7705['author'],'isNextTo':_0x2e4fba,'isInsideObject':_0x3af61c,'containsRangeInObject':_0x14d6cb}}),_0x1b8186=!0x0;break;}}if(_0x1b8186)break;}}return _0xff6377;}['_addSuggestionMarker'](_0x50665b,_0x4566d5,_0x39671f,_0x102c01,_0x5cf91e){this['_model']['change'](_0x47e1bd=>{let _0x4bb568='suggestion:'+_0x50665b+':'+_0x4566d5+':'+_0x39671f;_0x5cf91e&&(_0x4bb568=_0x4bb568+':'+_0x5cf91e),_0x47e1bd['addMarker'](_0x4bb568,{'range':_0x102c01,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x55a2c0){const _0x18a55a=_0x55a2c0['previous'],_0x4d6c58=_0x55a2c0['next'];_0x55a2c0['previous']=null,_0x55a2c0['next']=null,null!=_0x18a55a&&_0x18a55a['next']==_0x55a2c0&&(_0x18a55a['next']=_0x4d6c58),null!=_0x4d6c58&&_0x4d6c58['previous']==_0x55a2c0&&(_0x4d6c58['previous']=_0x18a55a),'ready'==this['_suggestionState']['get'](_0x55a2c0)&&(this['_suggestionState']['set'](_0x55a2c0,'removed'),this['fire']('suggestionUnloaded',_0x55a2c0,_0x18a55a,_0x4d6c58));}['_setSuggestionData'](_0x30cac5){const _0xb6fe5e=_0x30cac5['id'],_0x2bc307=this['addSuggestionData'](_0x30cac5);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x329e01=this['editor']['plugins']['get']('PendingActions'),_0x2b5cb6=_0x2bc307['hasComments'],_0x12771f=_0x2bc307['subType']?_0x2bc307['type']+':'+_0x2bc307['subType']:_0x2bc307['type'],_0x5a0f8d=this['editor']['locale'],_0x528ec3=_0x329e01['add'](At(_0x5a0f8d,'PENDING_ACTION_SUGGESTION')),_0x4fad74={'id':_0xb6fe5e,'type':_0x12771f,'hasComments':_0x2b5cb6,'data':_0x30cac5['data']||null,'originalSuggestionId':_0x30cac5['originalSuggestionId']||null,'attributes':_0x2bc307['attributes']};this['_adapter']['addSuggestion'](_0x4fad74)['then'](_0x5e38d4=>{_0x2bc307['_saved']=!0x0,_0x329e01['remove'](_0x528ec3),_0x5e38d4&&_0x5e38d4['createdAt']&&(this['_suggestions']['get'](_0xb6fe5e)['createdAt']=_0x5e38d4['createdAt']);})['catch'](_0x495337=>{throw _0x62a01f('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x2bc307['discard']();}),_0x2bc307['stopListening'](),this['_suggestions']['delete'](_0x2bc307['id']),this['_suggestionState']['delete'](_0x2bc307),_0x495337;});}return _0x2bc307;}['_updateSuggestionData'](_0x252593,_0x5d139b){const _0x3bd088=this['editor']['plugins']['get']('PendingActions'),_0x355a40=this['getSuggestion'](_0x252593);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x355a40['_saved']){const _0x10da63=_0x3bd088['add'](At(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x252593,_0x5d139b)['then'](()=>{_0x3bd088['remove'](_0x10da63);});}else _0x355a40['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x252593,_0x5d139b);});}}['_getSuggestionData'](_0x2f56d1){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x1b84b2('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x2f56d1);}['_handleNewSuggestionMarker'](_0x150aa4){const {id:_0xaced5e,type:_0x4a8fe3,subType:_0x5b16f2,authorId:_0x2d2612}=_0x6b12f7(_0x150aa4),_0x3affe2=this['_suggestions']['get'](_0xaced5e)||this['_createSuggestion'](_0x4a8fe3,_0x5b16f2,_0xaced5e,_0x2d2612,{});switch(this['_checkSuggestionCorrectness'](_0x3affe2,_0x4a8fe3,_0x5b16f2,_0x2d2612),this['_suggestionState']['get'](_0x3affe2)){case'notReady':this['_getSuggestionData'](_0xaced5e)['then'](_0x408736=>{let _0x5cf6a9=Promise['resolve']();_0x408736['hasComments']&&(_0x5cf6a9=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0xaced5e})),_0x5cf6a9['then'](()=>{this['addSuggestionData'](_0x408736)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x3affe2,'markerReady');break;case'removed':this['_updateSuggestionData'](_0xaced5e,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x3affe2,'ready'),this['fire']('suggestionLoaded',_0x3affe2);break;case'ready':this['fire']('suggestionChanged',_0x3affe2);}return _0x3affe2['addMarkerName'](_0x150aa4),_0x3affe2;}['_refreshSuggestionsChain'](_0x56f591){const _0x300793=Array['from'](_0x56f591),_0x4ae7a9=_0x300793['filter'](_0x3ce3a5=>'attribute'==_0x3ce3a5['type']);this['_refreshAttributeSuggestionsChain'](_0x4ae7a9);const _0x50e977=_0x300793['filter'](_0x440de7=>!_0x440de7['isMultiRange']&&'attribute'!=_0x440de7['type']),_0x3b8ca8=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xcb8121=>!_0xcb8121['isMultiRange']&&'attribute'!=_0xcb8121['type']),_0x538ece=_0x3b8ca8['filter'](_0x223f5d=>!_0x56f591['has'](_0x223f5d)),_0x443bd6=new Map(_0x3b8ca8['map'](_0x51d748=>[_0x51d748,this['_suggestionFactory']['getSuggestionCallback'](_0x51d748['type'],_0x51d748['subType'],'chain')])),_0x559637=new Map(_0x3b8ca8['map'](_0x192d76=>[_0x192d76,_0x192d76['getFirstRange']()])),_0x3638dd=new Set(),_0x43e78c=new Set();for(let _0x1a31d4=0x0;_0x1a31d4<_0x50e977['length'];_0x1a31d4++)_0x4aca3a(_0x50e977[_0x1a31d4],_0x50e977,_0x1a31d4+0x1);for(let _0xc8e18a=0x0;_0xc8e18a<_0x50e977['length'];_0xc8e18a++)_0x4aca3a(_0x50e977[_0xc8e18a],_0x538ece,0x0);const _0x58ad35=new Set();for(let _0x197e1e=0x0;_0x197e1e<_0x50e977['length'];_0x197e1e++){const _0x1ce39e=_0x50e977[_0x197e1e];!_0x43e78c['has'](_0x1ce39e)&&_0x1ce39e['previous']&&(_0x58ad35['add'](_0x1ce39e['previous']),_0x1ce39e['previous']['next']===_0x1ce39e&&(_0x1ce39e['previous']['next']=null),_0x1ce39e['previous']=null),!_0x3638dd['has'](_0x1ce39e)&&_0x1ce39e['next']&&(_0x58ad35['add'](_0x1ce39e['next']),_0x1ce39e['next']['previous']===_0x1ce39e&&(_0x1ce39e['next']['previous']=null),_0x1ce39e['next']=null);}function _0x4aca3a(_0x441750,_0x620084,_0x341e54){for(let _0x5503dd=_0x341e54;_0x5503dd<_0x620084['length'];_0x5503dd++){const _0x4d4815=_0x3b9191(_0x441750,_0x620084[_0x5503dd]);_0x4d4815&&(_0x4d4815[0x0]['next']=_0x4d4815[0x1],_0x4d4815[0x1]['previous']=_0x4d4815[0x0],_0x3638dd['add'](_0x4d4815[0x0]),_0x43e78c['add'](_0x4d4815[0x1]));}}function _0x3b9191(_0xed50c7,_0x34e745){if(_0xed50c7['author']['id']!==_0x34e745['author']['id'])return null;const _0x518f06=_0x443bd6['get'](_0xed50c7)(_0xed50c7,_0x34e745,_0x559637['get'](_0xed50c7),_0x559637['get'](_0x34e745));if(!_0x518f06)return null;return _0x443bd6['get'](_0x34e745)(_0xed50c7,_0x34e745,_0x559637['get'](_0xed50c7),_0x559637['get'](_0x34e745))?_0x518f06[0x1]['commentThread']&&_0x518f06[0x1]['commentThread']['length']?null:_0x518f06:null;}_0x58ad35['size']&&this['_refreshSuggestionsChain'](_0x58ad35);}['_refreshAttributeSuggestionsChain'](_0x6e475d){if(0x0==_0x6e475d['length'])return;const _0x70a736=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x26182d=>'attribute'==_0x26182d['type']&&_0x26182d['_isDataLoaded']),_0x28674f=[],_0x378b3a=new Map();for(const _0x3e296f of _0x70a736){const _0x25f862=_0x5b8aa9(_0x3e296f['attributes']);_0x378b3a['has'](_0x25f862)||(_0x378b3a['set'](_0x25f862,_0x28674f['length']),_0x28674f['push']([]));const _0x5dd350=_0x378b3a['get'](_0x25f862);_0x28674f[_0x5dd350]['push'](_0x3e296f);}!(function(){_0x28674f['sort']((_0x24109a,_0x1158cd)=>{const _0x473fc1=_0x24109a[0x0]['createdAt'],_0x3c727c=_0x1158cd[0x0]['createdAt'];return _0x473fc1==_0x3c727c?_0x24109a[0x0]['attributes']['groupId']<_0x1158cd[0x0]['attributes']['groupId']?-0x1:0x1:_0x473fc1<_0x3c727c?-0x1:0x1;});for(const _0x3e91fa of _0x28674f)_0x3e91fa['sort']((_0x48e07f,_0x5f135e)=>_0x48e07f['id']<_0x5f135e['id']?-0x1:0x1);}());for(let _0x89e6bc=0x0;_0x89e6bc<_0x28674f['length'];_0x89e6bc++){if(0x0==_0x28674f[_0x89e6bc]['length'])continue;const _0x286454=[];for(let _0x4b753d=_0x89e6bc+0x1;_0x4b753d<_0x28674f['length'];_0x4b753d++)0x0!=_0x28674f[_0x4b753d]['length']&&_0x2ae3d4(_0x28674f[_0x89e6bc],_0x28674f[_0x4b753d])&&_0x286454['push'](_0x4b753d);for(const _0x457f9b of _0x286454)_0x28674f[_0x89e6bc]=_0x28674f[_0x89e6bc]['concat'](_0x28674f[_0x457f9b]),_0x28674f[_0x457f9b]=[];}for(const _0x3489af of _0x28674f)for(let _0x1f78b5=0x0;_0x1f78b5<_0x3489af['length'];_0x1f78b5++){const _0x20d28e=_0x3489af[_0x1f78b5+0x1]||null;_0x3489af[_0x1f78b5]['next']!==_0x20d28e&&(_0x3489af[_0x1f78b5]['next']=_0x20d28e);}for(const _0x3072c2 of _0x28674f)for(let _0x51cb6f=0x0;_0x51cb6f<_0x3072c2['length'];_0x51cb6f++){const _0x5af2fb=_0x3072c2[_0x51cb6f-0x1]||null;_0x3072c2[_0x51cb6f]['previous']!==_0x5af2fb&&(_0x3072c2[_0x51cb6f]['previous']=_0x5af2fb);}function _0x2ae3d4(_0x42ac5c,_0x49c020){if(_0x42ac5c[0x0]['attributes']['groupId']!==_0x49c020[0x0]['attributes']['groupId']&&_0x42ac5c[0x0]['author']!==_0x49c020[0x0]['author'])return!0x1;if(!function(_0x22a420,_0x5921c6){if(!_0x22a420['hasComments']&&!_0x5921c6['hasComments'])return!0x0;if(_0x22a420['hasComments']&&_0x5921c6['hasComments'])return!0x1;if(_0x22a420['hasComments']&&_0x5921c6['createdAt']<_0x22a420['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x5921c6['hasComments']&&_0x22a420['createdAt']<_0x5921c6['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x42ac5c[0x0],_0x49c020[0x0]))return!0x1;const _0x26c0f7=ot(_0x42ac5c[0x0]['attributes'],['groupId','trackingSessionId']),_0x2c2254=ot(_0x49c020[0x0]['attributes'],['groupId','trackingSessionId']);if(!st(_0x26c0f7,_0x2c2254))return!0x1;if(_0x42ac5c[0x0]['attributes']['groupId']==_0x49c020[0x0]['attributes']['groupId'])return!0x0;if(_0x42ac5c[0x0]['attributes']['trackingSessionId']!==_0x49c020[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x42ac5c['every'](_0x5dd6e3=>_0x49c020['some'](_0x11950d=>_0x5dd6e3['getFirstRange']()['isEqual'](_0x11950d['getFirstRange']())))&&_0x49c020['every'](_0xd35a70=>_0x42ac5c['some'](_0x14ab0c=>_0xd35a70['getFirstRange']()['isEqual'](_0x14ab0c['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x43875b){const _0x3b65fb=Array['from'](_0x43875b),_0xe873ca=this['getSuggestions']({'skipNotAttached':!0x0}),_0x173527=_0xe873ca['filter'](_0x5cf055=>!_0x43875b['has'](_0x5cf055)),_0x23c7d3=new Map(_0x3b65fb['map'](_0x22b13d=>[_0x22b13d,this['_suggestionFactory']['getSuggestionCallback'](_0x22b13d['type'],_0x22b13d['subType'],'join')])),_0x472139=new Map(_0xe873ca['map'](_0x4529e5=>[_0x4529e5,_0x4529e5['getRanges']()]));for(let _0x466a17=0x0;_0x466a17<_0x3b65fb['length'];_0x466a17++){if(_0x1a943a(this,_0x3b65fb[_0x466a17],_0x3b65fb,_0x466a17+0x1))return!0x0;}for(let _0x5778bb=0x0;_0x5778bb<_0x3b65fb['length'];_0x5778bb++){if(_0x1a943a(this,_0x3b65fb[_0x5778bb],_0x173527,0x0))return!0x0;}return!0x1;function _0x1a943a(_0x144f1e,_0x582170,_0x197d46,_0x19adf0){for(let _0x2d4ad4=_0x19adf0;_0x2d4ad4<_0x197d46['length'];_0x2d4ad4++){const _0xce4b87=_0x197d46[_0x2d4ad4];if(_0xce4b87['type']!==_0x582170['type']||_0xce4b87['author']['id']!==_0x582170['author']['id']||_0xce4b87['subType']!==_0x582170['subType'])continue;if(!an(_0x582170,_0xce4b87))continue;if('attribute'==_0x582170['type']&&_0x582170['data']['oldValue']!=_0xce4b87['data']['oldValue'])continue;if('attribute'==_0x582170['type']&&_0x144f1e['_suggestionsConversion']['isBlockAttribute'](_0x582170['data']['key']))continue;if('formatBlock'==_0x582170['type']){const _0x1a5b62=_0x144f1e['editor']['model'],_0x2784cf=_0x582170['getContainedElement']();if(_0x2784cf&&(_0x1a5b62['schema']['isObject'](_0x2784cf)||_0x1a5b62['schema']['isLimit'](_0x2784cf)))continue;}const _0x5ad7af=_0x23c7d3['get'](_0x582170),_0x10a9ab=_0x472139['get'](_0x582170),_0x45b7ca=_0x472139['get'](_0xce4b87),_0xa9811=_0x582170['commentThread']&&_0x582170['commentThread']['length'],_0x48dfb8=_0xce4b87['commentThread']&&_0xce4b87['commentThread']['length'];if(!_0xa9811&&_0x5ad7af(_0x45b7ca,_0x10a9ab))return _0x144f1e['_joinSuggestions'](_0xce4b87,_0x582170),_0x472139['delete'](_0x582170),!0x0;if(!_0x48dfb8&&_0x5ad7af(_0x10a9ab,_0x45b7ca))return _0x144f1e['_joinSuggestions'](_0x582170,_0xce4b87),_0x472139['delete'](_0xce4b87),!0x0;}return!0x1;}}['_joinSuggestions'](_0x2c8a8f,_0x44dc2a){if(_0x2c8a8f['isMultiRange']){for(const _0x37ee1b of _0x44dc2a['getRanges']())_0x2c8a8f['addRange'](_0x37ee1b);}else{const _0x531081=_0x44dc2a['getFirstRange']()['end'];this['_setSuggestionRange'](_0x2c8a8f,this['_model']['createRange'](_0x2c8a8f['getFirstRange']()['start'],_0x531081));}_0x44dc2a['removeMarkers']();}['_getMarkerAnnouncementText'](_0x227812,_0x549e0e,_0x4d04c6){const _0x533516=_0x227812['startsWith']('format')||_0x227812['startsWith']('attribute')?'FORMATTING':_0x227812['toUpperCase']();return At(this['editor']['locale'],_0x549e0e+'_'+_0x533516+'_SUGGESTION_ANNOUNCEMENT',_0x4d04c6);}['_initAriaMarkerChangeAnnouncements'](){const _0x4ee295=this['editor'];if(!_0x4ee295['ui'])return;const {ariaLiveAnnouncer:_0x371741}=_0x4ee295['ui'];_0x27a7a2(this['_model'],({left:_0x1b51ca,entered:_0x4b0245})=>{for(const _0x191679 of _0x1b51ca){const {group:_0x4f8228,type:_0x3a6be2}=_0x6b12f7(_0x191679['name']);if('suggestion'===_0x4f8228){_0x371741['announce'](this['_getMarkerAnnouncementText'](_0x3a6be2,'LEAVE'));break;}}for(const _0x49dfbf of _0x4b0245){const {group:_0x3a370e,type:_0x457371}=_0x6b12f7(_0x49dfbf['name']);if('suggestion'===_0x3a370e){_0x371741['announce'](this['_getMarkerAnnouncementText'](_0x457371,'ENTER',_0x309cdc(_0x3041c0)));break;}}});}['_processAttributeChanges'](_0x304472){if(this['_recordAttributeSuggestions'])return!0x1;const _0x23be0c=this['editor'],_0x357433=_0x23be0c['model']['document']['differ']['getChanges']();if(0x0==_0x357433['length'])return!0x1;const _0x3672e1=[],_0x5bfb66=_0x357433['filter'](_0x116efb=>'attribute'==_0x116efb['type']),_0x83f71a=_0x357433['filter'](_0x2488c3=>'insert'==_0x2488c3['type']&&'$text'!=_0x2488c3['name']),_0x2b5f51=_0x357433['filter'](_0x27304b=>'remove'==_0x27304b['type']&&'$text'!=_0x27304b['name']);for(const _0x220061 of _0x5bfb66)_0x3672e1['push']({'key':_0x220061['attributeKey'],'newValue':_0x220061['attributeNewValue'],'oldValue':_0x220061['attributeOldValue'],'range':sn(_0x220061['range'],_0x23be0c['model'])});for(const _0x75a1f3 of _0x83f71a){const _0x3f26d0=_0x2b5f51['find'](_0x47f806=>_0x47f806['position']['isEqual'](_0x75a1f3['position']));_0x3f26d0&&_0x3672e1['push']({'key':Ke,'newValue':_0x75a1f3['name'],'oldValue':_0x3f26d0['name'],'range':_0x23be0c['model']['createRangeOn'](_0x75a1f3['position']['nodeAfter'])});}return 0x0!=_0x3672e1['length']&&this['_reduceExistingSuggestions'](_0x304472,_0x3672e1);}['_processAttributeSuggestions'](_0x570168){let _0x258368=!0x1;const _0xdcd408=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x95ddb4=>_0x95ddb4['data']['newRange']&&_0x95ddb4['name']['startsWith']('suggestion:attribute:'));for(const _0x446f8f of _0xdcd408){const {subType:_0xc810c9,id:_0x4e2898}=_0x6b12f7(_0x446f8f['name']),_0x12052a=_0xc810c9['split']('|')[0x0];for(const _0x3efd1f of this['getSuggestions']({'skipNotAttached':!0x0}))_0x3efd1f['id']!=_0x4e2898&&'attribute'==_0x3efd1f['type']&&_0x3efd1f['data']&&_0x3efd1f['data']['key']==_0x12052a&&_0x3efd1f['getFirstRange']()['isIntersecting'](_0x446f8f['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x3efd1f,_0x446f8f['data']['newRange'],_0x570168),_0x258368=!0x0);}return _0x258368;}['recordAttributeChanges'](_0x3dfcc4){this['_recordAttributeSuggestions']=!0x0,_0x3dfcc4();}['_reduceExistingSuggestions'](_0x66aea7,_0x4d6870){if(0x0==_0x4d6870['length'])return!0x1;let _0x906e56=!0x1;for(const _0xeccc6c of _0x4d6870){const _0x3d62c2=this['_findSuggestions'](_0xeccc6c['range'],'attribute')['filter'](_0x402fbe=>!_0x402fbe['meta']['isNextTo'])['map'](_0x1e1fe1=>_0x1e1fe1['suggestion']),_0x12eb16=_0x5b8aa9({'newValue':_0xeccc6c['newValue']});_0x3d62c2['filter'](_0x113455=>{const [_0x14313f,_0xab397a]=_0x113455['subType']['split']('|');return _0x14313f==_0xeccc6c['key']&&_0xab397a!=_0x12eb16;})['forEach'](_0x217949=>{this['_reduceSuggestionAttributeRange'](_0x217949,_0xeccc6c['range'],_0x66aea7),_0x906e56=!0x0;});}return _0x906e56;}['_reduceSuggestionAttributeRange'](_0x515be9,_0x11621e,_0x4fee6a){const _0x190050=_0x515be9['getFirstRange']()['getDifference'](_0x11621e);0x0!==_0x190050['length']?0x1!==_0x190050['length']?this['_breakSuggestionMarker'](_0x515be9,_0x11621e['start'],_0x11621e['end']):this['_setSuggestionRange'](_0x515be9,_0x190050[0x0]):_0x4fee6a['removeMarker'](_0x515be9['getFirstMarker']());}}class Ye{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x5f498f){this['_editor']=_0x5f498f,this['_model']=_0x5f498f['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x516d80,_0x157ecd,_0x4c9f00,_0x5d6b93,_0x5c13d6,_0x2110b5,_0x290473){return new bt(this['_model'],{'type':_0x516d80,'subType':_0x157ecd,'id':_0x4c9f00,'originalSuggestionId':_0x290473,'author':_0x5d6b93,'creator':_0x5d6b93,'attributes':_0x5c13d6,'onAttributesChange':_0x2110b5,'onAccept':(..._0x122dfe)=>this['getSuggestionCallback'](_0x516d80,_0x157ecd,'accept')(..._0x122dfe),'onDiscard':(..._0x36703d)=>this['getSuggestionCallback'](_0x516d80,_0x157ecd,'discard')(..._0x36703d)});}['registerCustomCallback'](_0x58f56e,_0xd89fcf,_0x3f7470,_0x2ddc08){const _0x2b0d15=_0x58f56e+':'+_0xd89fcf+':'+_0x3f7470;this['_customCallbacks']['set'](_0x2b0d15,_0x2ddc08);}['getSuggestionCallback'](_0x52f517,_0x35feb0,_0x4e5742){const _0x1aed18=_0x52f517+':'+_0x35feb0+':'+_0x4e5742;return this['_customCallbacks']['get'](_0x1aed18)||this['_defaultCallbacks']['get'](_0x52f517+':'+_0x4e5742);}['_registerDefaultCallbacks'](){const _0x4bd93f=()=>!0x1,_0x117ca7=_0x10c701=>{_0x10c701['sort']((_0x51937a,_0xbc2cb6)=>_0x51937a['start']['isBefore'](_0xbc2cb6['start'])?0x1:-0x1),this['_model']['change'](_0x4e464c=>{for(const _0x5ce393 of _0x10c701){let _0x33eb4b;_0x33eb4b=_0x5ce393['end']['isAtEnd']&&_0x5ce393['end']['parent']==_0x5ce393['start']['nodeAfter']?_0x4e464c['createSelection'](_0x5ce393['start']['nodeAfter'],'on'):_0x4e464c['createSelection'](_0x5ce393),this['_model']['deleteContent'](_0x33eb4b,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x223d28=(_0x1664e4,_0x51b159)=>{_0x51b159&&this['_model']['change'](_0x2d1ba5=>{const {commandName:_0x47c94e,commandParams:_0x28f86b=[]}=_0x51b159,_0x571bfb=_0x1664e4['map'](_0x3ea301=>(Qe(_0x3ea301)&&(_0x3ea301=this['_model']['createRange'](_0x3ea301['end'])),_0x3ea301))['filter'](_0x471e90=>'$graveyard'!==_0x471e90['root']['rootName']);if(_0x571bfb['length']<0x1)return;const _0x4de247=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x267576=>_0x5b1490['fromRange'](_0x267576));_0x2d1ba5['setSelection'](_0x571bfb);for(const _0x66c2f4 of this['_editor']['commands']['commands']())_0x66c2f4['refresh']();_0x28f86b['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x47c94e,..._0x28f86b);const _0x4d9e3a=_0x4de247['filter'](_0x5b1fe9=>'$graveyard'!=_0x5b1fe9['root']['rootName']);_0x4d9e3a['length']>0x0&&_0x2d1ba5['setSelection'](_0x4d9e3a);for(const _0x1588dc of _0x4de247)_0x1588dc['detach']();});},_0x2abf31=(_0x5eebf0,_0x4eb48e)=>0x1==_0x5eebf0['length']&&0x1==_0x4eb48e['length']&&_0x5eebf0[0x0]['end']['isEqual'](_0x4eb48e[0x0]['start']),_0x51574a=(_0x483b53,_0x252471,_0x159412,_0x414327)=>on(_0x483b53,_0x252471,_0x159412,_0x414327)?[_0x483b53,_0x252471]:on(_0x252471,_0x483b53,_0x414327,_0x159412)?[_0x252471,_0x483b53]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x4bd93f),this['_defaultCallbacks']['set']('insertion:discard',_0x117ca7),this['_defaultCallbacks']['set']('insertion:join',_0x2abf31),this['_defaultCallbacks']['set']('insertion:chain',_0x51574a),this['_defaultCallbacks']['set']('deletion:accept',_0x117ca7),this['_defaultCallbacks']['set']('deletion:discard',_0x4bd93f),this['_defaultCallbacks']['set']('deletion:join',_0x2abf31),this['_defaultCallbacks']['set']('deletion:chain',_0x51574a),this['_defaultCallbacks']['set']('formatInline:accept',_0x223d28),this['_defaultCallbacks']['set']('formatInline:discard',_0x4bd93f),this['_defaultCallbacks']['set']('formatInline:join',_0x2abf31),this['_defaultCallbacks']['set']('formatInline:chain',_0x4bd93f),this['_defaultCallbacks']['set']('formatBlock:accept',_0x223d28),this['_defaultCallbacks']['set']('formatBlock:discard',_0x4bd93f),this['_defaultCallbacks']['set']('formatBlock:join',_0x2abf31),this['_defaultCallbacks']['set']('formatBlock:chain',_0x4bd93f),this['_defaultCallbacks']['set']('attribute:accept',_0x4bd93f),this['_defaultCallbacks']['set']('attribute:discard',(_0x23be8a,_0x30db59)=>{if(!_0x30db59)return;const _0x54e31b=this['_editor']['plugins']['get'](_0x4ed631);this['_model']['change'](_0x405c67=>{if(_0x30db59['key']==Ke)for(const _0x12c075 of _0x23be8a){const _0x5aa98e=_0x12c075['start']['nodeAfter'],_0x1268bd=_0x30db59['oldValue'];_0x405c67['rename'](_0x5aa98e,_0x1268bd);}else{if(_0x54e31b['isBlockAttribute'](_0x30db59['key'])){for(const _0xbddc5b of _0x23be8a)void 0x0!==_0x30db59['oldValue']?_0x405c67['setAttribute'](_0x30db59['key'],_0x30db59['oldValue'],_0xbddc5b['start']['nodeAfter']):_0x405c67['removeAttribute'](_0x30db59['key'],_0xbddc5b['start']['nodeAfter']);}else{for(const _0x3b9a87 of _0x23be8a)_0x30db59['oldValue']?_0x405c67['setAttribute'](_0x30db59['key'],_0x30db59['oldValue'],_0x3b9a87):_0x405c67['removeAttribute'](_0x30db59['key'],_0x3b9a87);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x2abf31);}}function qe(_0x5391df,_0x29d215,_0x46c9b3){for(const _0x3504d3 of _0x29d215['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x3504d3['root']==_0x3504d3)return!0x1;if(!_0x46c9b3['containsItem'](_0x3504d3))return!0x1;if(_0x5391df['isObject'](_0x3504d3)||_0x5391df['isLimit'](_0x3504d3))return!0x0;}return!0x1;}function Qe(_0x11ad05){return _0x11ad05['end']['parent']==_0x11ad05['start']['nodeAfter']&&_0x11ad05['end']['isAtStart'];}function Ze(_0x342816,_0xf763d2,_0x532f5b,_0x11f4cb){const _0x2b4c16=_0x85d4b5=>!_0x85d4b5['item']['is']('$textProxy')&&!_0x11f4cb['isObject'](_0x85d4b5['item']),_0x45585b=_0x342816['start']['getLastMatchingPosition'](_0x2b4c16),_0x2e0448=_0x342816['end']['getLastMatchingPosition'](_0x2b4c16,{'direction':'backward'});return(!_0x342816['start']['isEqual'](_0x45585b)||!_0x342816['end']['isEqual'](_0x2e0448))&&(_0x45585b['isBefore'](_0x2e0448)?_0x532f5b['updateMarker'](_0xf763d2,{'range':_0x532f5b['createRange'](_0x45585b,_0x2e0448)}):_0x532f5b['removeMarker'](_0xf763d2),!0x0);}function Je(_0x22e3b3){return _0x5b8aa9(_0x22e3b3);}function tn(_0x489b05){const _0x417e1e=_0x489b05['start']['nodeAfter'];return _0x417e1e&&_0x417e1e['is']('element');}function en(_0x3ec28d){return Qe(_0x3ec28d)||function(_0x490991){return _0x490991['start']['parent']==_0x490991['end']['nodeBefore']&&_0x490991['start']['isAtEnd'];}(_0x3ec28d);}function nn(_0x17333b,_0x347c88){try{const _0x5b543e=_0x17333b['getRange']();for(const _0x204628 of _0x347c88)if(_0x17333b!==_0x204628&&_0x5b543e&&_0x5b543e['isIntersecting'](_0x204628['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function sn(_0x44ccc9,_0x12ba05){return null==_0x44ccc9['end']['nodeBefore']&&_0x44ccc9['end']['parent']==_0x44ccc9['start']['nodeAfter']?rn(_0x44ccc9['start']['nodeAfter'],_0x12ba05):_0x44ccc9;}function rn(_0x2dc3f1,_0x45b749){const _0x15892d=_0x45b749['schema']['isObject'](_0x2dc3f1)||_0x45b749['schema']['isSelectable'](_0x2dc3f1);return _0x45b749['createRange'](_0x45b749['createPositionAt'](_0x2dc3f1,'before'),_0x15892d?_0x45b749['createPositionAfter'](_0x2dc3f1):_0x45b749['createPositionAt'](_0x2dc3f1,'end'));}function on(_0x114c52,_0x1b5fb5,_0x35acfe,_0x141bb5){return!!an(_0x114c52,_0x1b5fb5)&&_0x35acfe['end']['isEqual'](_0x141bb5['start']);}function an(_0x48b26e,_0x47acfc){if(!_0x48b26e['_isDataLoaded']||!_0x47acfc['_isDataLoaded'])return!0x1;const _0x1f0d22=new Set(Object['keys'](_0x48b26e['attributes'])),_0x28554f=new Set(Object['keys'](_0x47acfc['attributes']));if(_0x1f0d22['delete']('groupId'),_0x28554f['delete']('groupId'),0x0==_0x1f0d22['size']&&0x0==_0x28554f['size'])return!0x0;if(_0x1f0d22['size']!=_0x28554f['size'])return!0x1;const _0x12c78e={..._0x48b26e['attributes']},_0x260534={..._0x47acfc['attributes']};return delete _0x12c78e['groupId'],delete _0x260534['groupId'],JSON['stringify'](_0x12c78e)==JSON['stringify'](_0x260534);}function cn(_0xfb1bf4,_0x3f5e97){const _0x35c1de=ln(_0xfb1bf4['attributes']),_0xfb6e61=ln(_0x3f5e97);if(!_0xfb1bf4['_isDataLoaded'])return!0x1;for(const _0x357b7a of Object['keys'](_0xfb6e61))if(!st(_0x35c1de[_0x357b7a],_0xfb6e61[_0x357b7a]))return!0x1;return!0x0;}function ln(_0x5e7d08){const _0x37c657=Object['assign']({},_0x5e7d08);return delete _0x37c657['skipNestingCheck'],delete _0x37c657['tablePasteChainId'],_0x37c657;}function un(_0x4a4666){return _0x4a4666['split']('|')[0x0];}class hn extends/* #__PURE__ -- @preserve */
|
|
26
|
-
_0x1639ff(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x3b99b0,_0x301808,_0x5e24cf,_0xedca4e){super(),this['model']=_0x301808,this['view']=_0x5e24cf,this['commentThreadController']=_0xedca4e,this['_editor']=_0x3b99b0,this['_acceptCommand']=_0x3b99b0['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x3b99b0['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x1d57c5,_0x70ac23)=>_0x1d57c5||_0x70ac23),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x6a7884=>_0x6a7884&&this['_editor']['model']['canEditAt'](_0x301808['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x57f7d0=>_0x57f7d0&&this['_editor']['model']['canEditAt'](_0x301808['getRanges']())),this['_pendingAction']=null,_0x5e24cf['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x5e24cf,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x5e24cf,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x5e24cf,'change:isDirty',()=>{_0x5e24cf['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 _0xa1ff1b=At(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0xa1ff1b);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class dn extends _0x28f9e0{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x5efc80,_0x48760b,_0xe7c948,_0x3351f1){super(_0x5efc80),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x7eb7ff(_0x5efc80,At(_0x5efc80,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x48760b['authoredAt']),this['bind']('authoredAt')['to'](_0x48760b),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',_0x48760b,'authoredAt',this,'descriptionParts',(_0x298112,_0x456deb,_0x506bed)=>{const _0x27197e=_0x506bed['map'](_0x24a466=>gt(_0x24a466['content']))['join']('.\x20')+'.';return At(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x298112-0x1,_0x48760b['author']['name'],_0x456deb?_0x3351f1['formatDateTime'](_0x456deb):'',new DOMParser()['parseFromString'](_0x27197e,'text/html')['body']['textContent']]);}),this['focusables']=new _0x390f0c(),this['focusTracker']=new _0xcd1e38(),this['keystrokes']=new _0x31fa58(),this['focusCycler']=new _0x1feb00({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x2da345=>_0x2da345['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x48760b,this['_localUser']=_0xe7c948,this['_config']=_0x3351f1,_0x3351f1['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x5901af(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x162e14}=this['_config'];this['commentsListView']=new _0x162e14(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',_0x3aa301=>_0x3aa301+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x5734d3,_0xee3bb1)=>_0x5734d3||!!_0xee3bb1);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x48dc0d}=this['_config'],_0x11d98b=new _0x48dc0d(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0xcfa485=_0x11d98b['commentInputView'];return _0x11d98b['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0xcfa485,'value',(_0x37f29c,_0x252313,_0x41d608)=>!!_0x41d608||_0x37f29c&&!_0x252313),_0xcfa485['on']('submit',(_0x3294b8,_0x14b547)=>{this['fire']('addComment',_0x14b547),_0xcfa485['editor']['setData']('');}),_0xcfa485['on']('cancel',()=>this['focus']()),_0xcfa485['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x11d98b;}}class fn extends dn{['suggestionView'];['_descriptionElement'];constructor(_0x4c09ec,_0xd40954,_0x2aef9e,_0x552a7a){super(_0x4c09ec,_0xd40954,_0x2aef9e,_0x552a7a),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x122fc0=>_0x122fc0&&_0x122fc0[0x0]?_0x122fc0[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x405ea3,_0x31f9c7)=>{let _0x246438='';for(const _0x32114a of _0x405ea3)_0x246438+='<p>'+gt(_0x32114a['content'],_0x32114a['color'])+'</p>';return _0x31f9c7?_0x246438:_0x288204(_0x246438,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x552a7a['SuggestionView'](_0x4c09ec,_0xd40954,{'formatDateTime':_0x552a7a['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 _0x9057c5=this['bindTemplate'],_0xda3773=[this['suggestionView']];return this['commentsListView']&&_0xda3773['push'](this['commentsListView']),this['commentThreadInputView']&&_0xda3773['push'](this['commentThreadInputView']),_0xda3773['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x9057c5['if']('isActive','ck-suggestion-wrapper--active'),_0x9057c5['to']('type',_0x548161=>'ck-suggestion-'+_0x548161),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':_0x9057c5['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0xda3773};}['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 _0x28f9e0{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x548d87,_0x28fa43,_0x499035){super(_0x548d87),this['_model']=_0x28fa43,this['_config']=_0x499035,this['set']('description',''),this['bind']('authoredAt')['to'](_0x28fa43),this['acceptButton']=this['_createButton'](At(_0x548d87,'Accept\x20suggestion'),_0x2f87f8,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](At(_0x548d87,'Discard\x20suggestion'),_0x26028b,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x1f6db5(_0x548d87,_0x28fa43['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x390f0c([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0xcd1e38(),this['keystrokes']=new _0x31fa58(),this['focusCycler']=new _0x1feb00({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x172c37=>_0x172c37['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0xf46049=this['element']['querySelector']('.ck-annotation__content-wrapper');_0xf46049['innerHTML']=this['description'],this['on']('change:description',(_0x251ec9,_0x1fb72c,_0x1db762)=>{_0xf46049['innerHTML']=_0x1db762;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x55a9d9=this['bindTemplate'],_0xf68b63=[{'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':_0x55a9d9['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x55a9d9['to']('authoredAt',_0x2e65d5=>this['_config']['formatDateTime'](_0x2e65d5))}]}]},{'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']&&_0xf68b63['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':_0xf68b63}]};}['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'](_0x37a936,_0x28685e,_0x4fe10e,_0x14ab53,_0x474eae){const _0xb3e32c=new _0x57b2cd(this['locale']);return _0xb3e32c['set']({'label':_0x37a936,'icon':_0x28685e,'tooltip':!0x0,'tooltipPosition':_0x474eae}),_0xb3e32c['extendTemplate']({'attributes':{'class':_0x4fe10e}}),_0xb3e32c['on']('execute',()=>{this['fire'](_0x14ab53,this['_model']['id']);}),_0xb3e32c;}['_setupKeyboardNavigation'](){const _0x609921=this['element'];this['keystrokes']['listenTo'](_0x609921);for(const _0x21534b of this['focusables'])this['focusTracker']['add'](_0x21534b['element']),this['keystrokes']['listenTo'](_0x21534b['element']);this['keystrokes']['set']('enter',(_0x48b9fa,_0x599baf)=>{_0x609921===_0x48b9fa['target']&&(this['focusCycler']['focusFirst'](),_0x599baf());}),this['keystrokes']['set']('esc',(_0x6728ed,_0x4da855)=>{_0x609921!==_0x6728ed['target']&&(this['focus'](),_0x4da855());});}}class mn extends _0x31a8de{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[Xe,_0x11347e,_0x2a6692,_0x415367,_0x4c0c9c];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x41f365){super(_0x41f365),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x5afe35=this['editor']['config'];_0x5afe35['define']('trackChanges.SuggestionThreadView',fn),_0x5afe35['define']('trackChanges.SuggestionView',gn),_0x5afe35['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x5afe35['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x484ec8,_0x1baf51){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x1b2d98,_0xae2398]of this['_handleControllerBuffer']){const _0x58511b=this['_suggestionToController']['has'](_0x1b2d98);_0x58511b||_0xae2398?_0x58511b&&_0xae2398&&this['_destroyController'](_0x1b2d98):this['_initializeController'](_0x1b2d98);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0x4c0c9c)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x484ec8,_0x1baf51);}['init'](){const _0x151456=this['editor'],_0x4549be=_0x151456['plugins']['get'](Xe),_0x1716f2=_0x151456['plugins']['get'](_0x415367),_0x2dbcf3=_0x151456['plugins']['get'](_0x4c0c9c),_0x5ea876=_0x151456['plugins']['get'](_0x2a6692);this['_addUIComponentsToFactory'](),_0x2dbcf3['addSourceCollector'](()=>{const _0x5d5cdf=[];for(const [_0x128c04,_0x23b74f]of Array['from'](this['_suggestionToController'])){const _0x1edc33=_0x128c04['getAllAdjacentSuggestions'](),_0x29efda=[];for(const _0x27d1b2 of _0x1edc33){if(!_0x27d1b2['isInContent'])continue;if(_0x27d1b2['isMultiRange']){_0x29efda['push'](..._0x27d1b2['getRanges']());continue;}const _0x4ccdbd=_0x27d1b2['getFirstRange']();if(_0x29efda['length']>0x0){const _0x3af001=_0x29efda[0x0]['getJoined'](_0x4ccdbd);if(_0x3af001){_0x29efda[0x0]=_0x3af001;continue;}}_0x29efda['push'](_0x4ccdbd);}_0x5d5cdf['push']([_0x23b74f['view'],_0x29efda]);}return _0x5d5cdf;}),this['listenTo'](_0x4549be,'suggestionLoaded',(_0x24193e,_0x31a458)=>{this['listenTo'](_0x31a458,'change:previous',(_0x46ab2f,_0x3d554d,_0x58d107,_0x459300)=>{_0x31a458['isInContent']&&(null==_0x58d107?(this['_updateController'](_0x459300['head']),this['_handleSuggestionControllerDelayed'](_0x31a458,!0x1)):(this['_updateController'](_0x58d107['head']),null==_0x459300&&this['_handleSuggestionControllerDelayed'](_0x31a458,!0x0)));}),null!==_0x31a458['previous']?this['_updateController'](_0x31a458['head']):this['_handleSuggestionControllerDelayed'](_0x31a458,!0x1);}),this['listenTo'](_0x4549be,'suggestionUnloaded',(_0x229dd1,_0x5ee6f1,_0x30ea90)=>{this['stopListening'](_0x5ee6f1,'change:previous'),this['_handleControllerBuffer']['delete'](_0x5ee6f1),this['_suggestionToController']['has'](_0x5ee6f1)&&this['_destroyController'](_0x5ee6f1),_0x30ea90&&this['_updateController'](_0x30ea90['head']);}),this['listenTo'](_0x4549be,'suggestionChanged',(_0x307d90,_0x133d4a)=>{this['_updateController'](_0x133d4a);}),this['listenTo'](_0x1716f2,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x5ea876,'addComment',(_0x4f9423,{threadId:_0x54c045,isFromAdapter:_0x5d5937})=>{if(_0x5d5937||!_0x4549be['hasSuggestion'](_0x54c045))return;const _0x52d133=_0x4549be['getSuggestion'](_0x54c045);this['_suggestionToController']['get'](_0x52d133)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x408272=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x39dc00;for(const _0x49a128 in _0x408272){const _0x484744=_0x49a128,_0x55286c=_0x408272[_0x484744];if('trackChangesLicenseKeyValid'==_0x55286c||'trackChangesLicenseKeyInvalid'==_0x55286c||'trackChangesLicenseKeyExpired'==_0x55286c||'trackChangesLicenseKeyDomainLimit'==_0x55286c||'trackChangesLicenseKeyNotAllowed'==_0x55286c||'trackChangesLicenseKeyEvaluationLimit'==_0x55286c||'trackChangesLicenseKeyUsageLimit'==_0x55286c){delete _0x408272[_0x484744],_0x39dc00=_0x55286c,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x39dc00&&_0x408272['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x39dc00&&_0x408272['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x39dc00&&_0x408272['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x39dc00&&_0x408272['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x39dc00&&_0x408272['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x39dc00&&_0x408272['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x5ab881){const _0x25eb51=this['_suggestionToController']['get'](_0x5ab881);if(!_0x25eb51)return null;return this['editor']['plugins']['get'](_0x415367)['getByInnerView'](_0x25eb51['view'])||null;}['getSuggestionForAnnotation'](_0x123a24){const _0x2dc603=this['_viewToController']['get'](_0x123a24['innerView']);return _0x2dc603?_0x2dc603['model']:null;}['_refreshActiveMarkers'](){const _0x4baa24=this['editor']['plugins']['get'](_0x415367),_0x5c602d=this['editor']['plugins']['get'](Xe),_0x2031b9=Array['from'](_0x4baa24['activeAnnotations'],_0xbcc4d=>_0xbcc4d['innerView'])['filter'](_0x2ec5cb=>this['_viewToController']['has'](_0x2ec5cb)),_0x3d418d=[];for(const _0x53a94d of _0x2031b9){const _0x139fc4=this['_viewToController']['get'](_0x53a94d)['model']['getAllAdjacentSuggestions']();_0x3d418d['push'](..._0x139fc4['reduce']((_0x2c26f9,_0x353bd9)=>[..._0x2c26f9,..._0x353bd9['getMarkerNames']()],[]));}_0x5c602d['activeMarkers']=_0x3d418d;}['_addUIComponentsToFactory'](){const _0x375f8d=this['editor'],_0x51bfff=_0x375f8d['locale'],_0x4d6b5e=At(_0x51bfff,'Track\x20changes'),_0x559f1b=new _0x3bc52f([{'type':'switchbutton','model':new _0x13808a({'withText':!0x0,'isToggleable':!0x0,'label':_0x4d6b5e,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x13808a({'withText':!0x0,'label':At(_0x51bfff,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x13808a({'withText':!0x0,'label':At(_0x51bfff,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x13808a({'withText':!0x0,'label':At(_0x51bfff,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x13808a({'withText':!0x0,'label':At(_0x51bfff,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x375f8d['plugins']['has']('TrackChangesPreview')&&_0x559f1b['addMany']([{'type':'separator'},{'type':'button','model':new _0x13808a({'withText':!0x0,'label':At(_0x51bfff,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x558edd of _0x559f1b)if(En(_0x558edd)){const _0x4fb5cb=_0x375f8d['commands']['get'](_0x558edd['model']['commandName']);_0x558edd['model']['bind']('isOn','isEnabled')['to'](_0x4fb5cb,'value','isEnabled');}_0x375f8d['ui']['componentFactory']['add']('trackChanges',_0x545e3f=>this['_createToolbarButton'](_0x545e3f,_0x559f1b,_0x4d6b5e)),_0x375f8d['ui']['componentFactory']['add']('menuBar:trackChanges',_0x168910=>this['_createMenuBarMenu'](_0x168910,_0x559f1b,_0x4d6b5e));}['_createToolbarButton'](_0x13a15e,_0x4f92c1,_0x27eb0e){const _0x543f9a=_0x507787(_0x13a15e,_0x2d9c11),_0x5b909d=this['editor']['commands']['get']('trackChanges');_0x543f9a['buttonView']['set']({'tooltip':_0x27eb0e,'label':_0x27eb0e,'icon':_0xa690b1}),_0x543f9a['buttonView']['bind']('isOn')['to'](_0x5b909d,'value'),_0x543f9a['buttonView']['on']('execute',()=>{_0x5b909d['execute'](),this['editor']['editing']['view']['focus']();}),_0x19e1cb(_0x543f9a,_0x4f92c1,{'role':'menu'});const _0x2f0c17=[];for(const _0x265497 of _0x4f92c1)En(_0x265497)&&_0x2f0c17['push'](this['editor']['commands']['get'](_0x265497['model']['commandName']));const _0x457511=_0x543f9a['buttonView'];return _0x457511['actionView']['unbind']('isEnabled'),_0x457511['arrowView']['unbind']('isEnabled'),_0x457511['actionView']['bind']('isEnabled')['to'](_0x5b909d,'isEnabled'),_0x457511['arrowView']['bind']('isEnabled')['toMany'](_0x2f0c17,'isEnabled',(..._0x2f2a5b)=>_0x2f2a5b['some'](_0x315946=>_0x315946)),_0x543f9a['on']('execute',_0x3bc678=>{this['editor']['execute'](_0x3bc678['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x543f9a;}['_createMenuBarMenu'](_0x459aa7,_0x291ab6,_0xf4da16){const _0x604023=new _0x51d5fd(_0x459aa7),_0x23b471=this['editor']['commands']['get']('trackChanges');_0x604023['buttonView']['set']({'label':_0xf4da16,'icon':_0xa690b1});const _0x25ece7=new _0x1ad671(_0x459aa7);for(const _0x4b2fbe of _0x291ab6){if('separator'==_0x4b2fbe['type']){_0x25ece7['items']['add'](new _0x486fcc(_0x459aa7));continue;}const _0x4007eb=new _0x531cc1(_0x459aa7,_0x604023),_0x59c4e0=new _0x563647(_0x459aa7),_0x43a89d=_0x4b2fbe['model'];_0x59c4e0['bind'](...Object['keys'](_0x43a89d))['to'](_0x43a89d),_0x59c4e0['delegate']('execute')['to'](_0x604023),_0x59c4e0['on']('execute',()=>{this['editor']['execute'](_0x43a89d['commandName']),this['editor']['editing']['view']['focus']();}),_0x4007eb['children']['add'](_0x59c4e0),_0x25ece7['items']['add'](_0x4007eb);}return _0x604023['bind']('isEnabled')['to'](_0x23b471,'isEnabled'),_0x604023['panelView']['children']['add'](_0x25ece7),_0x604023;}['_initializeController'](_0x453742){const _0x43c2e8=this['editor'],_0x2ee8b9=_0x43c2e8['config'],_0x77ff43=_0x43c2e8['plugins']['get'](_0x415367),_0x43b147=_0x43c2e8['plugins']['get'](_0x2a6692),_0x3e7580=_0x43c2e8['plugins']['get'](_0x4c0c9c),_0x1d87fa=_0x43c2e8['plugins']['get'](_0x11347e)['me'],_0x565906=_0x2ee8b9['get']('trackChanges')['SuggestionThreadView'],_0x4549f6=_0x2ee8b9['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x3af6f7,CommentThreadInputView:_0xb4ddea}=_0x43c2e8['plugins']['get']('CommentsUI');let _0x41f19a,_0x4fc76c,_0xbf4691;this['_annotationViews']['has'](_0x453742['id'])?(_0x4fc76c=this['_annotationViews']['get'](_0x453742['id']),_0x41f19a=_0x4fc76c['mainView']):(_0x41f19a=new _0x565906(_0x43c2e8['locale'],_0x453742,_0x1d87fa,{'disableComments':this['_disableComments'],'editorConfig':{..._0x2ee8b9['get']('comments.editorConfig'),'licenseKey':_0x2ee8b9['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x2ee8b9['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x2ee8b9['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x2ee8b9['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x19a339(_0x2ee8b9['get']('locale'),_0x43c2e8['locale']),'CommentView':_0x2ee8b9['get']('comments')['CommentView'],'CommentsListView':_0x3af6f7,'CommentThreadInputView':_0xb4ddea,'SuggestionView':_0x4549f6}),_0x41f19a['suggestionView']['acceptButton']['on']('execute',()=>{_0x43c2e8['editing']['view']['focus']();}),_0x41f19a['suggestionView']['discardButton']['on']('execute',()=>{_0x43c2e8['editing']['view']['focus']();}),_0x4fc76c=_0x77ff43['createAnnotationView'](this['editor']['locale'],_0x41f19a),_0x4fc76c['bind']('isDirty')['to'](_0x41f19a,'isDirty'),_0x4fc76c['bind']('length')['to'](_0x41f19a),_0x4fc76c['bind']('type')['to'](_0x41f19a,'type',_0x853580=>'suggestion-'+_0x853580),_0x41f19a['on']('escape',()=>{_0xbf4691['fire']('escape');}),this['_annotationViews']['set'](_0x453742['id'],_0x4fc76c));const _0x4d81f4=_0x43b147['createCommentThreadController'](_0x453742['commentThread'],_0x41f19a),_0x2d8c03=new hn(_0x43c2e8,_0x453742,_0x41f19a,_0x4d81f4),_0x15d082=_0x453742['getAllAdjacentSuggestions']()['filter'](_0x509167=>_0x509167['isInContent']);_0x41f19a['descriptionParts']=_0x43c2e8['plugins']['get'](Xe)['descriptionFactory']['getDescriptions'](_0x15d082),this['_suggestionToController']['set'](_0x453742,_0x2d8c03),this['_viewToController']['set'](_0x41f19a,_0x2d8c03);const _0x5302ca=()=>{const _0x588ef0=[],_0x1cd5ad=_0x453742['getAllAdjacentSuggestions']()['filter'](_0x1a8d83=>_0x1a8d83['isInContent']);for(const _0x53369c of _0x1cd5ad)_0x588ef0['push'](..._0x53369c['getMarkers']());return _0x484902(_0x43c2e8['editing'],_0x588ef0);};_0xbf4691=_0x77ff43['createAnnotation']({'view':_0x4fc76c,'target':_0x5302ca,'type':()=>'suggestion-'+_0x2d8c03['view']['type'],'isVisible':!!_0x5302ca()}),_0x43b147['_bindAnnotationToEditors'](_0x41f19a,_0xbf4691),_0x77ff43['add'](_0xbf4691),_0x3e7580['registerAnnotation'](_0xbf4691);}['_destroyController'](_0x22d343){const _0x53e746=this['editor']['plugins']['get'](_0x2a6692),_0x98406=this['editor']['plugins']['get'](_0x415367),_0x502eb4=this['_suggestionToController']['get'](_0x22d343),_0x25d876=_0x502eb4['view'],_0xa8443=_0x98406['getByInnerView'](_0x25d876);_0x53e746['_unbindEditors'](_0x25d876),_0xa8443&&_0x98406['remove'](_0xa8443),this['_suggestionToController']['delete'](_0x22d343),this['_viewToController']['delete'](_0x25d876),_0x502eb4['destroy']();}['_updateController'](_0x4f9eba){if(!_0x4f9eba['isInContent']||!this['_suggestionToController']['has'](_0x4f9eba))return;const _0x1c825a=this['editor']['plugins']['get'](Xe),_0x210f2e=this['_suggestionToController']['get'](_0x4f9eba),_0x428a7=_0x4f9eba['getAllAdjacentSuggestions']();_0x210f2e['view']['descriptionParts']=_0x1c825a['descriptionFactory']['getDescriptions'](_0x428a7);}['destroy'](){for(const _0x5e04dc of this['_suggestionToController']['keys']())this['_destroyController'](_0x5e04dc);for(const _0xa63ab0 of this['_annotationViews']['values']())_0xa63ab0['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function En(_0x3460c8){return'model'in _0x3460c8;}class Tn extends _0x31a8de{static get['requires'](){return[Xe,mn,_0x28cd81];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x53c2f6){this['editor']['plugins']['get'](Xe)['adapter']=_0x53c2f6;}get['adapter'](){return this['editor']['plugins']['get'](Xe)['adapter'];}['addSuggestion'](_0x564e90){return this['editor']['plugins']['get'](Xe)['addSuggestionData'](_0x564e90);}['getSuggestions']({skipNotAttached:_0x6d2938=!0x1,toJSON:_0x30cb4e=!0x1}={}){return this['editor']['plugins']['get'](Xe)['getSuggestions']({'skipNotAttached':_0x6d2938,'toJSON':_0x30cb4e});}['getSuggestion'](_0x8cea7e){return this['editor']['plugins']['get'](Xe)['getSuggestion'](_0x8cea7e);}}const _n=['Pagination'];class pn extends _0x31a8de{static get['requires'](){return[Xe];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x30a7b6=this['editor'];if(_0x30a7b6['config']['define']('trackChangesData.editorCreator',_0x46bf96=>{const _0x1e1eb7=_0x30a7b6['model']['document']['getRootNames']()['reduce']((_0x1faaac,_0x2b3b2c)=>(_0x1faaac[_0x2b3b2c]='',_0x1faaac),{});return _0x30a7b6['constructor']['create'](_0x1e1eb7,_0x46bf96);}),'function'!=typeof _0x30a7b6['config']['get']('trackChangesData')['editorCreator'])throw new _0x1b84b2('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x360e2d){return bn(this['editor'],!0x0,_0x360e2d);}['getDataWithDiscardedSuggestions'](_0x4cd2f9){return bn(this['editor'],!0x1,_0x4cd2f9);}}class Ln extends _0x31a8de{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5da93f){function _0x57986b(_0x2835f1){return _0x2835f1['map'](_0x53e9aa=>String['fromCharCode'](_0x53e9aa))['join']('');}super(_0x5da93f),this['result']='end',_0x5da93f[_0x57986b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x57986b([0x76,0x69,0x65,0x77])][_0x57986b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x57986b([0x61,0x75,0x74,0x6f]),_0x5da93f[_0x57986b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x57986b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x57986b([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x57986b([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x57986b([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(_0x54b87f){return void 0x0!==_0x54b87f['getRootsAttributes'];}async function bn(_0x19e4ed,_0xb3f52,_0x132363){const _0x501e53=_0x12585e(_0x19e4ed,_n);if(_0x501e53['plugins']['push'](Xe,Ln),In(_0x19e4ed)){_0x501e53['roots']=Object['create'](null);for(const _0x1014b1 of _0x19e4ed['model']['document']['getRootNames']())_0x501e53['roots'][_0x1014b1]={'modelAttributes':_0x19e4ed['getRootAttributes'](_0x1014b1)};}const _0x1538ef=document['createDocumentFragment'](),_0x85b816=_0x19e4ed['config']['get']('trackChangesData')['editorCreator'],_0x37b7f8=await _0x85b816(_0x501e53,()=>function(_0x5971cf){const _0x23cd01=document['createElement']('div');return _0x5971cf['appendChild'](_0x23cd01),_0x23cd01;}(_0x1538ef));!function(_0x492aea,_0x53e882){const _0x50fbb0=_0x492aea['model']['document']['getRootNames']()['reduce']((_0x2f69b4,_0x5565b6)=>(_0x2f69b4[_0x5565b6]=_0x492aea['data']['get']({'rootName':_0x5565b6}),_0x2f69b4),{}),_0x4fe96d=_0x492aea['plugins']['get']('Users')['users']['map'](_0xc651eb=>({'id':_0xc651eb['id'],'name':_0xc651eb['name']})),_0x46441a=_0x492aea['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3ca7a7=_0x492aea['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2a7810=_0x53e882['plugins']['get']('Users'),_0x57f4ec=_0x53e882['plugins']['get']('TrackChangesEditing'),_0xacfd92=_0x53e882['plugins']['get']('CommentsRepository');for(const _0x2651ed of _0xacfd92['getCommentThreads']())_0x2651ed['remove']();for(const _0xa510c5 of _0x4fe96d)_0x2a7810['getUser'](_0xa510c5['id'])||_0x2a7810['addUser'](_0xa510c5);_0x2a7810['me']||_0x2a7810['useAnonymousUser']();for(const _0x183f21 of _0x3ca7a7)_0xacfd92['addCommentThread'](_0x183f21);for(const _0x3aad07 of _0x46441a)_0x57f4ec['addSuggestionData'](_0x3aad07);_0x53e882['data']['set'](_0x50fbb0);}(_0x19e4ed,_0x37b7f8),_0x37b7f8['execute'](_0xb3f52?'acceptAllSuggestions':'discardAllSuggestions');const _0x3209c2=In(_0x37b7f8)?_0x37b7f8['getFullData'](_0x132363):_0x37b7f8['data']['get'](_0x132363);return await _0x37b7f8['destroy'](),_0x3209c2;}class An extends _0x28f9e0{['options'];constructor(_0x41c8c0,_0x107573){super(_0x41c8c0),this['options']=_0x107573,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'](_0x39bfe1,_0x6a42d8){if(!this['element'])return;const _0x5e65db=[];for(const [_0x11c25a,_0x10424d]of _0x39bfe1){const _0x46556f=document['createElement']('div');_0x46556f['setAttribute']('data-ck-root-name',_0x11c25a),_0x46556f['className']=_0x10424d['classes']+'\x20ck-track-changes-preview__root-container',_0x46556f['innerHTML']=_0x10424d['content'],_0x5e65db['push'](_0x46556f);}_0x6a42d8(this['element'],_0x5e65db),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class kn extends _0x2c1954{constructor(_0x57039d){super(_0x57039d),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x1a8558=this['editor'],_0x1087e7=_0x1a8558['locale'],_0x342b1a=_0x1a8558['plugins']['get']('Dialog');let _0x3479e9;const _0x538983=function(_0x15b302){const _0x1a7154={};if('editables'in _0x15b302['ui']['view']){for(const [_0xe5605a,_0x4f4931]of Object['entries'](_0x15b302['ui']['view']['editables']))_0x1a7154[_0xe5605a]=_0x4f4931['element'];}else _0x1a7154[_0x15b302['model']['document']['getRootNames']()[0x0]]=_0x15b302['ui']['view']['editable']['element'];return _0x1a7154;}(_0x1a8558),_0x7cfd6c=function(_0x113886){let _0x215a8d=0x0;for(const _0x32aa57 of Object['values'](_0x113886))_0x215a8d=Math['max'](_0x215a8d,_0x32aa57['getBoundingClientRect']()['width']);let _0x6079dc=0x0;for(const _0x37937a of Object['values'](_0x113886))_0x6079dc+=_0x37937a['getBoundingClientRect']()['height'];const _0x230fe4=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x4cc672=Math['min'](_0x6079dc,_0x230fe4);return{'width':_0x215a8d,'height':_0x4cc672};}(_0x538983);_0x342b1a['show']({'id':'finalContentPreview','title':At(_0x1087e7,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new An(_0x1087e7,{'dialogRects':_0x7cfd6c}),'onHide':()=>{_0x3479e9['detachFromDom']();},'onShow':()=>{_0x1a8558['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x1f4ece=>{const _0x11c76b=this['_standarizeRootsData'](_0x1f4ece,_0x1a8558,_0x538983);_0x342b1a['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x11c76b,_0x1a8558['config']['get']('trackChanges.preview.renderFunction'));}),_0x3479e9=new _0x28c0d5(_0x1087e7,[_0x342b1a['view']]),_0x3479e9['attachToDom'](),_0x3479e9['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x1a8558['once']('destroy',()=>{_0x3479e9['detachFromDom']();});const _0x1b94ef=_0x342b1a['view']['headerView']['class'];_0x342b1a['view']['headerView']['class']=_0x1b94ef?_0x1b94ef+'\x20ck-reset_all':'ck-reset_all',_0x342b1a['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x342b1a['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0xd3b519=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x4623af=_0xd3b519['previewMode'],_0x211d63={};if('$labels'===_0x4623af){for(const _0x4fa152 of _0xd3b519['getMergeFieldsIds']())_0x211d63[_0x4fa152]=_0xd3b519['getLabel'](_0x4fa152)||_0x4fa152;}else{const _0x357fa8='$defaultValues'===_0x4623af?_0xd3b519['getDefaultValues']():_0xd3b519['getDataSetValues'](_0x4623af,!0x0);for(const _0x3a8564 of Object['entries'](_0x357fa8)){const [_0x5a4806,_0x561454]=_0x3a8564;_0x211d63[_0x5a4806]=null!==_0x561454?_0x561454:_0xd3b519['getLabel'](_0x5a4806)||_0x5a4806;}}return{'mergeFieldsData':_0x211d63};}['_standarizeRootsData'](_0x201f43,_0xf41143,_0x457557){let _0x1923b4;if('string'==typeof _0x201f43){const _0x2cbc71=_0xf41143['model']['document']['getRootNames']()[0x0];_0x1923b4={[_0x2cbc71]:_0x201f43};}else _0x1923b4=_0x201f43;const _0x35d98b=this['_fixMediaEmbeds'](_0x1923b4,_0xf41143),_0x50158b=function(_0x414fc2,_0x4ffc47){for(const [_0x12fed7,_0x3566f4]of _0x414fc2)_0x3566f4['classes']=_0x4ffc47[_0x12fed7]['classList']['value']['replace']('ck-focused','');return _0x414fc2;}(this['_sortRoots'](_0xf41143)['reduce']((_0x7b4c58,_0x3d1498)=>(_0x7b4c58['push']([_0x3d1498,{'content':_0x35d98b[_0x3d1498],'classes':''}]),_0x7b4c58),[]),_0x457557);return _0x50158b;}['_fixMediaEmbeds'](_0x5d8037,_0x16beae){if(!_0x16beae['plugins']['has']('MediaEmbedEditing'))return _0x5d8037;const _0x2a6eec=_0x16beae['plugins']['get']('MediaEmbedEditing');for(const [_0x3d4f5a,_0x5006c7]of Object['entries'](_0x5d8037)){const _0x3a1735=document['createElement']('div');_0x3a1735['innerHTML']=_0x5006c7,(_0x3a1735['querySelectorAll']('figure.media')['forEach'](_0x4aa9a2=>{const _0xf66ac5=_0x4aa9a2['querySelector']('oembed');if(_0xf66ac5){const _0x4c4238=_0xf66ac5['getAttribute']('url');if(_0x4c4238){const _0x3f912f=_0x2a6eec['registry']['getMediaViewElement'](new et(_0x16beae['editing']['view']['document']),_0x4c4238,{'elementName':'','renderForEditingView':!0x0}),_0x14b3d8=document['createElement']('div');_0x14b3d8['classList']['add']('ck-media__wrapper'),_0x3f912f['render'](_0x14b3d8,_0x16beae['editing']['view']['domConverter']),_0xf66ac5['replaceWith'](_0x14b3d8);}}}),_0x5d8037[_0x3d4f5a]=_0x3a1735['innerHTML']);}return _0x5d8037;}['_sortRoots'](_0x3801aa){if(!function(_0xc7e6a0){return void 0x0!==_0xc7e6a0['getRootsAttributes'];}(_0x3801aa))return _0x3801aa['model']['document']['getRootNames']();const _0x174c20=[],_0x3b373f=new Map();for(const _0x1a4b55 of _0x3801aa['model']['document']['getRootNames']()){const _0xc8ec02=_0x3801aa['editing']['view']['getDomRoot'](_0x1a4b55)['getClientRects']()['item'](0x0);_0x174c20['push'](_0x1a4b55),_0x3b373f['set'](_0x1a4b55,_0xc8ec02);}return _0x174c20['sort']((_0x6ba328,_0x28e880)=>{const _0x36cbb6=_0x3b373f['get'](_0x6ba328),_0x2b56f8=_0x3b373f['get'](_0x28e880);return _0x36cbb6['y']-_0x2b56f8['y']||_0x36cbb6['x']-_0x2b56f8['x'];}),_0x174c20;}}class Cn extends _0x31a8de{static get['requires'](){return[pn,_0x4f2470];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x276781){super(_0x276781),_0x276781['commands']['add']('previewFinalContent',new kn(this['editor'])),_0x276781['config']['define']('trackChanges.preview.renderFunction',(_0x45d6ee,_0x703c1)=>{for(const _0x4fca0e of _0x703c1)_0x45d6ee['appendChild'](_0x4fca0e);});}}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 _0x153246,Plugin as _0x4a3826,PendingActions as _0x667652}from'@ckeditor/ckeditor5-core/dist/index.js';import{CommentsRepository as _0x4551a9,Annotations as _0x2cf822,EditorAnnotations as _0x2a0fbe,Comments as _0x54bb3d}from'@ckeditor/ckeditor5-comments/dist/index.js';import{CKEditorError as _0x3800a1,ObservableMixin as _0x4582eb,uid as _0x15ca27,priorities as _0x3cf629,insertToPriorityArray as _0x3cc95d,logWarning as _0x3947bb,getEnvKeystrokeText as _0x3d8a09,FocusTracker as _0x185cee,KeystrokeHandler as _0x160fe5,Collection as _0x361311}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x1f783a,IconCancel as _0x5388f,IconTrackChanges as _0x304c98}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x191951,View as _0x4aba25,ViewCollection as _0x29597e,FocusCycler as _0x418e2b,UIModel as _0x5c6bce,createDropdown as _0x34283a,SplitButtonView as _0x4dd119,addListToDropdown as _0x258fd4,MenuBarMenuView as _0xf70dcc,MenuBarMenuListView as _0x534bac,ListSeparatorView as _0x5ee576,MenuBarMenuListItemView as _0x4c4846,MenuBarMenuListItemButtonView as _0x32f6de,BodyCollection as _0x565982,Dialog as _0x2841a9}from'@ckeditor/ckeditor5-ui/dist/index.js';import{splitSuggestionMarkerName as _0x475a96,SuggestionsConversion as _0x16b695,Users as _0x218a55,DocumentCompare as _0xed69f8,fixElementSuggestionRange as _0x699eae,hashObject as _0x21f52c,surroundingMarkersDetector as _0x4a098b,FOCUS_ANNOTATION_KEYSTROKE as _0x19606d,AriaDescriptionView as _0x54fb01,setupThreadKeyboardNavigation as _0x2f0355,trimHtml as _0x433d71,UserView as _0x35731a,LateFocusButtonView as _0x5a04b9,getDateTimeFormatter as _0x3a327e,getAllMarkersDomElementsSorted as _0x1cc54b,sanitizeEditorConfig as _0x243ea7}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{ModelElement as _0x22b33b,ModelLiveRange as _0x4f8349,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 _0x153246{['_enabledCommands'];constructor(_0x2b495d,_0x231b38){super(_0x2b495d),this['_enabledCommands']=_0x231b38,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 _0xf8a9f5 of this['editor']['commands']['commands']())_0xf8a9f5['affectsData']&&!this['_enabledCommands']['has'](_0xf8a9f5)&&_0xf8a9f5['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x6eb7f8 of this['editor']['commands']['commands']())_0x6eb7f8['affectsData']&&!this['_enabledCommands']['has'](_0x6eb7f8)&&_0x6eb7f8['clearForceDisabled']('TrackChangesCommand');}}class dt extends _0x153246{['_suggestions'];constructor(_0x27b450,_0x4f03b3){super(_0x27b450),this['_suggestions']=_0x4f03b3,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x1236b5){const _0x1cf8eb=this['_suggestions']['get'](_0x1236b5);if(!_0x1cf8eb)throw new _0x3800a1('track-changes-accept-suggestion-not-found',this);const _0x45d6bc=_0x1cf8eb['getRanges']();this['editor']['model']['canEditAt'](_0x45d6bc)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x1cf8eb);}}class ft extends _0x153246{['_suggestions'];constructor(_0x2c840c,_0x286bbf){super(_0x2c840c),this['_suggestions']=_0x286bbf,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x445b33){const _0x56594f=this['_suggestions']['get'](_0x445b33);if(!_0x56594f)throw new _0x3800a1('track-changes-discard-suggestion-not-found',this);const _0x3ed143=_0x56594f['getRanges']();this['editor']['model']['canEditAt'](_0x3ed143)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x56594f);}}function gt(_0x4fd20c,_0x132c8a){let _0x536849='';return _0x536849+=_0x4fd20c['split']('*')['map']((_0x16b372,_0x3ee541)=>_0x3ee541%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+mt(_0x16b372)+'</span>':mt(_0x16b372))['join'](''),_0x132c8a&&(_0x536849+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x132c8a['value']+'\x22\x20title=\x22'+_0x132c8a['title']+'\x22></span>'),_0x536849;}function mt(_0x489ff7){const _0x317005=document['createElement']('span');return _0x317005['innerText']=_0x489ff7,_0x317005['innerHTML'];}function Et(_0xb46c42){return _0xb46c42['sort']((_0x5e6fc0,_0xb3baf3)=>'attribute'===_0x5e6fc0['type']&&'attribute'!==_0xb3baf3['type']?-0x1:'attribute'!==_0x5e6fc0['type']&&'attribute'===_0xb3baf3['type']?0x1:'deletion'==_0x5e6fc0['type']&&'deletion'!=_0xb3baf3['type']?-0x1:'deletion'!=_0x5e6fc0['type']&&'deletion'==_0xb3baf3['type']?0x1:0x0);}function Tt(_0x35f967,_0xa0b827){let _0x4c45cb,_0x7b2cd2=0x0;const _0x4d47ca=[],_0x59c3a6=_0xa0b827['schema'];for(;_0x7b2cd2<_0x35f967['length'];){const _0x1a29d4=_0x35f967[_0x7b2cd2],_0x7ccf6c=_0x35f967[_0x7b2cd2+0x1];_0x4c45cb||(_0x4c45cb=_0xa0b827['createPositionBefore'](_0x1a29d4)),_t(_0xa0b827,_0x1a29d4,_0x7ccf6c)||(_0x4d47ca['push'](_0xa0b827['createRange'](_0x4c45cb,_0x59c3a6['isObject'](_0x1a29d4)?_0xa0b827['createPositionAfter'](_0x1a29d4):_0xa0b827['createPositionAt'](_0x1a29d4,'end'))),_0x4c45cb=null),_0x7b2cd2++;}return _0x4d47ca;}function _t(_0x431540,_0x50eef4,_0x18e74d){if(!_0x18e74d)return!0x1;const _0x1b1d78=_0x431540['createPositionAfter'](_0x50eef4),_0x123cfb=_0x431540['createPositionBefore'](_0x18e74d);return _0x1b1d78['isTouching'](_0x123cfb);}function pt(_0x1a44a5,_0x128c62,_0x5e11d7){for(;_0x5e11d7['length'];){const _0x5ade3b=_0x5e11d7['splice'](0x0,0x64);_0x1a44a5['change'](()=>{for(const _0x258c06 of _0x5ade3b)_0x258c06['isInContent']&&_0x128c62['execute'](_0x258c06['id']);});}}class Lt extends _0x153246{['_command'];['_suggestions'];constructor(_0x5e519c,_0x2d2137,_0x23a259){super(_0x5e519c),this['_command']=_0x2d2137,this['_suggestions']=_0x23a259,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3fd561=Array['from'](this['_suggestions']['values']())['some'](_0x367c6c=>_0x367c6c['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x3fd561;}['execute'](){const _0x308a31=Et(Array['from'](this['_suggestions']['values']()));for(const _0x1a7a9c of _0x308a31){const _0x42ecde=_0x1a7a9c['getRanges']();if(!this['editor']['model']['canEditAt'](_0x42ecde))return;}pt(this['editor']['model'],this['_command'],_0x308a31);}}class It extends _0x153246{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x243507,_0x566592,_0x20c8c1){super(_0x243507),this['_command']=_0x566592,this['_suggestions']=_0x20c8c1,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3405f6=this['editor']['model']['document']['selection'],_0x4dfd30=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x12186f,_0x22b818){const _0x4ea3a8=Array['from'](_0x12186f['getRanges']()),_0x19b115=new Set();for(const _0x4dc17a of _0x22b818)if(_0x4dc17a['isInContent']){for(const _0x139ff1 of _0x4ea3a8)for(const _0x149938 of _0x4dc17a['getRanges']())(_0x139ff1['isIntersecting'](_0x149938)||_0x12186f['isCollapsed']&&!_0x4dc17a['isMultiRange']&&_0x4dc17a['next']&&_0x149938['end']['isTouching'](_0x139ff1['start']))&&_0x19b115['add'](_0x4dc17a);}return _0x19b115;}(_0x3405f6,_0x4dfd30),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x5a164f=Et(Array['from'](this['_selectedSuggestions']));for(const _0x160a41 of _0x5a164f){const _0x4ae1bc=_0x160a41['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4ae1bc))return;}pt(this['editor']['model'],this['_command'],_0x5a164f);}}class bt extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x4582eb(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x3022c6,_0x4a328){super(),this['id']=_0x4a328['id'],this['type']=_0x4a328['type'],this['subType']=_0x4a328['subType']||null,this['author']=_0x4a328['author'],this['creator']=_0x4a328['creator']||_0x4a328['author'],this['isExternal']=Boolean(_0x4a328['attributes']&&_0x4a328['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x4a328['originalSuggestionId']||null,this['_model']=_0x3022c6,this['_onAccept']=_0x4a328['onAccept'],this['_onDiscard']=_0x4a328['onDiscard'],this['_onAttributesChange']=_0x4a328['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x4a328['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 _0x1fe9ed=this;for(;_0x1fe9ed['previous'];)_0x1fe9ed=_0x1fe9ed['previous'];return _0x1fe9ed;}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'](_0x5f456a){this['_markerNames']['add'](_0x5f456a);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x95b2c7=>this['_model']['markers']['get'](_0x95b2c7))['filter'](_0x1bdc21=>_0x1bdc21);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x45206c=>{for(const _0x527104 of this['getMarkers']())_0x45206c['removeMarker'](_0x527104);}),this['_markerNames']['clear']();}['removeMarker'](_0x3c89e4){this['_model']['change'](_0x4494b2=>{_0x4494b2['removeMarker'](_0x3c89e4);}),this['_markerNames']['delete'](_0x3c89e4);}['addRange'](_0x205037){const _0x1879a2='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+bt['getMultiRangeId']();this['addMarkerName'](_0x1879a2),this['_model']['change'](_0x30fbd8=>{_0x30fbd8['addMarker'](_0x1879a2,{'range':_0x205037,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x5b5a73){for(const _0xbaa526 of this['getRanges']())if(_0xbaa526['isIntersecting'](_0x5b5a73))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x49f8e2=>_0x49f8e2['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x1158e7,_0x512db2)=>[..._0x1158e7,..._0x512db2['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x55db20=this['getRanges']();if(0x1!=_0x55db20['length'])return null;const _0xebc139=_0x55db20[0x0],_0x55fda9=_0xebc139['start']['nodeAfter'],_0x526b58=_0xebc139['end']['nodeBefore'];return _0x55fda9 instanceof _0x22b33b?_0x55fda9!=_0x526b58?null:_0x55fda9: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 _0x14c491=[];let _0x3c3123=this['head'];for(;_0x3c3123;)_0x14c491['push'](_0x3c3123),_0x3c3123=_0x3c3123['next'];return _0x14c491;}['setAttribute'](_0x2ba326,_0x2d14cb){const _0x43e306=nt(this['attributes']);it(_0x43e306,_0x2ba326,_0x2d14cb),st(_0x43e306,this['attributes'])||(this['attributes']=_0x43e306,this['_onAttributesChange'](_0x43e306));}['removeAttribute'](_0x48764b){const _0x1d1314=nt(this['attributes']);rt(_0x1d1314,_0x48764b),st(_0x1d1314,this['attributes'])||(this['attributes']=_0x1d1314,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 _0x15ca27()['substr'](0x1,0x5);}}function At(_0x15e624,_0x4a2380,_0x56878d){const _0x5353ab=_0x15e624['t'],t=_0x15e624['t'];switch(_0x4a2380){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',_0x56878d);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x56878d);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x56878d);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x56878d);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x56878d);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',_0x56878d);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x56878d);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',_0x56878d);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x56878d);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x56878d);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x56878d);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x56878d);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x56878d);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x56878d);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x56878d);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x56878d);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x56878d);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x56878d);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x56878d);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x56878d);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x56878d);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x56878d);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x56878d);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x56878d);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x56878d);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'},_0x56878d);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x56878d);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x56878d);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x56878d);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x56878d);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x56878d);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x56878d);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x56878d);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'},_0x56878d);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x56878d);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x56878d);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x56878d);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x56878d);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'},_0x56878d);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x56878d);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'},_0x56878d);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'},_0x56878d);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x56878d);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'},_0x56878d);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x56878d);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'},_0x56878d);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x56878d);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x56878d);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x56878d);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x56878d);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x56878d);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'},_0x56878d);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x56878d);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 _0x5353ab({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x56878d);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x5353ab({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x56878d);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x56878d);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'},_0x56878d);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'},_0x56878d);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'},_0x56878d);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x4a2380;}}class kt{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0xbab749,_0x45a079){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0xbab749,this['_locale']=_0x45a079;}['getDescriptions'](_0x4f882e){const _0x5eac3a=[],_0x537d8f=new Set(),_0x49294d=new Set();for(let _0xb3590c=0x0;_0xb3590c<_0x4f882e['length'];_0xb3590c++){const _0x275931=_0x4f882e[_0xb3590c];if(!_0x275931['isInContent'])continue;const _0xacb45a=this['_handleCustomCallbackDescription'](_0x275931);if(_0xacb45a){if(null!=_0x275931['subType']){if(_0x537d8f['has'](_0x275931['subType']))continue;_0x537d8f['add'](_0x275931['subType']);}_0x5eac3a['push'](_0xacb45a);}else{if('attribute'==_0x275931['type']){const _0x2050a0=_0x275931['data']['key'];if(_0x49294d['has'](_0x2050a0))continue;_0x49294d['add'](_0x275931['data']['key']),_0x2050a0==Ke?this['_handleRenameSuggestionDescription'](_0x5eac3a,_0x275931):this['_handleAttributeSuggestionDescription'](_0x5eac3a,_0x275931);continue;}'insertion'!=_0x275931['type']&&'deletion'!=_0x275931['type']||this['_handleInsertRemoveSuggestionDescription'](_0x5eac3a,_0x275931,_0x4f882e[_0xb3590c+0x1]);}}return this['_resolveDescriptionItems'](_0x5eac3a);}['registerDescriptionCallback'](_0x254d17){this['_customCallbacks']['push'](_0x254d17);}['registerElementLabel'](_0x276eba,_0x2ff2f8,_0x2b72e6=_0x3cf629['normal']){'function'==typeof _0x276eba?_0x3cc95d(this['_itemLabelsCallbacks'],{'matchingCallback':_0x276eba,'label':_0x2ff2f8,'priority':_0x2b72e6}):this['_itemLabels']['set'](_0x276eba,_0x2ff2f8);}['registerAttributeLabel'](_0x80a62b,_0x944616){this['_attributeLabels']['set'](_0x80a62b,_0x944616);}['getItemLabel'](_0x8084f0,_0x301019=0x1){let _0x3b5af9;for(const _0x1ae830 of this['_itemLabelsCallbacks'])if(_0x1ae830['matchingCallback'](_0x8084f0)){_0x3b5af9=_0x1ae830['label'];break;}return _0x3b5af9||(_0x3b5af9=this['_itemLabels']['get'](_0x8084f0['name'])),_0x3b5af9?_0x3b5af9(_0x301019):0x1!==_0x301019?_0x301019+'\x20'+_0x8084f0['name']+'s':''+_0x8084f0['name'];}['_addDescriptionItems'](_0x173ca7,_0x164dda){const _0x18f8ee=_0x164dda['getFirstRange']()['getWalker'](),_0x435949='insertion'==_0x164dda['type']?'add':'remove';for(const _0x4a19b1 of _0x18f8ee){const _0x169d0c=_0x4a19b1['item'],_0x5b2ef2=_0x173ca7[_0x173ca7['length']-0x1];if(_0x169d0c['is']('$textProxy'))_0x5b2ef2&&_0x5b2ef2['type']['indexOf']('Container')>-0x1&&_0x173ca7['pop'](),_0x5b2ef2&&'text'==_0x5b2ef2['type']?_0x5b2ef2[_0x435949]+=_0x169d0c['data']:_0x173ca7['push']({'type':'text','add':'add'==_0x435949?_0x169d0c['data']:'','remove':'remove'==_0x435949?_0x169d0c['data']:''});else{if(this['_schema']['isObject'](_0x169d0c)){const _0x44a0d2=_0x169d0c;if(_0x5b2ef2&&_0x5b2ef2['type']['indexOf']('Container')>-0x1&&_0x173ca7['pop'](),'elementEnd'==_0x4a19b1['type'])continue;_0x5b2ef2&&_0x5b2ef2['type']==_0x435949+'Object'&&_0x5b2ef2['element']['name']==_0x44a0d2['name']?_0x5b2ef2['quantity']++:_0x173ca7['push']({'type':_0x435949+'Object','element':_0x44a0d2,'quantity':0x1}),_0x18f8ee['skip'](_0x5593b4=>!('elementEnd'==_0x5593b4['type']&&_0x5593b4['item']==_0x169d0c));}else{if(this['_schema']['checkChild'](_0x169d0c,'$text')||_0x169d0c['is']('element','softBreak')){const _0xf72e63=_0x169d0c;if('add'==_0x435949&&'elementStart'==_0x4a19b1['type']||'remove'==_0x435949&&'elementEnd'==_0x4a19b1['type'])continue;if(_0x5b2ef2&&-0x1==_0x5b2ef2['type']['indexOf']('Container')){'text'==_0x5b2ef2['type']&&(_0x5b2ef2[_0x435949]+='\x0a');continue;}let _0x5b79d3;if(_0x5b79d3='add'==_0x435949?_0xf72e63['nextSibling']&&!this['_schema']['isObject'](_0xf72e63['nextSibling'])?_0xf72e63['nextSibling']:null:_0xf72e63['previousSibling']&&!this['_schema']['isObject'](_0xf72e63['previousSibling'])?_0xf72e63['previousSibling']:null,_0xf72e63['isEmpty']||_0x5b79d3&&_0x5b79d3['isEmpty']){const _0x151da0=_0x5b79d3&&_0x5b79d3['isEmpty']?_0x5b79d3:_0xf72e63;_0x5b2ef2&&_0x5b2ef2['type']==_0x435949+'EmptyContainer'&&_0x5b2ef2['element']['name']==_0x151da0['name']?_0x5b2ef2['quantity']++:_0x173ca7['push']({'type':_0x435949+'EmptyContainer','element':_0x151da0,'quantity':0x1});}else _0x173ca7['push']({'type':_0x435949+'Container','element':_0xf72e63});}}}}}['_resolveDescriptionItems'](_0x1a6e32){const _0x14e062=this['_locale'],_0x427578=[],_0x293803=[],_0x270da4=[];for(const _0x504e27 of _0x1a6e32)switch(_0x504e27['type']){case'text':if(_0x504e27['add']=_0x504e27['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x504e27['remove']=_0x504e27['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x504e27['add']&&''!=_0x504e27['remove']){_0x427578['push']({'type':'replace','content':At(_0x14e062,'REPLACE_TEXT',['\x22'+_0x504e27['remove']+'\x22','\x22'+_0x504e27['add']+'\x22'])});continue;}if(null!=_0x504e27['add']['match'](/^ +$/)){_0x427578['push']({'type':'insertion','content':At(_0x14e062,'*Insert:*\x20%0',At(_0x14e062,'ELEMENT_SPACE',_0x504e27['add']['length']))});continue;}if(null!=_0x504e27['remove']['match'](/^ +$/)){_0x427578['push']({'type':'deletion','content':At(_0x14e062,'*Remove:*\x20%0',At(_0x14e062,'ELEMENT_SPACE',_0x504e27['remove']['length']))});continue;}if(''!=_0x504e27['add']){_0x427578['push']({'type':'insertion','content':At(_0x14e062,'*Insert:*\x20%0','\x22'+_0x504e27['add']+'\x22')});continue;}_0x427578['push']({'type':'deletion','content':At(_0x14e062,'*Remove:*\x20%0','\x22'+_0x504e27['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x427578['push']({'type':'insertion','content':At(_0x14e062,'*Insert:*\x20%0',this['getItemLabel'](_0x504e27['element'],_0x504e27['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x427578['push']({'type':'deletion','content':At(_0x14e062,'*Remove:*\x20%0',this['getItemLabel'](_0x504e27['element'],_0x504e27['quantity']))});continue;case'addContainer':_0x427578['push']({'type':'insertion','content':At(_0x14e062,'*Split:*\x20%0',this['getItemLabel'](_0x504e27['element'],_0x504e27['quantity']))});continue;case'removeContainer':_0x427578['push']({'type':'deletion','content':At(_0x14e062,'*Merge:*\x20%0',this['getItemLabel'](_0x504e27['element'],_0x504e27['quantity']))});continue;case'addFormat':_0x293803['push'](_0x504e27['key']);continue;case'removeFormat':_0x270da4['push'](_0x504e27['key']);continue;default:_0x427578['push'](_0x504e27);}if(_0x293803['length']){const _0x455155=_0x293803['map'](_0x33c34d=>this['_attributeLabels']['has'](_0x33c34d)?this['_attributeLabels']['get'](_0x33c34d):_0x33c34d)['join'](',\x20');_0x427578['push']({'type':'format','content':At(this['_locale'],'*Set\x20format:*\x20%0',_0x455155)});}if(_0x270da4['length']){const _0xc7d854=_0x270da4['map'](_0x328500=>this['_attributeLabels']['has'](_0x328500)?this['_attributeLabels']['get'](_0x328500):_0x328500)['join'](',\x20');_0x427578['push']({'type':'format','content':At(this['_locale'],'*Remove\x20format:*\x20%0',_0xc7d854)});}return _0x427578;}['_handleCustomCallbackDescription'](_0x5cca5b){for(const _0x1ed702 of this['_customCallbacks']){const _0x1976ac=_0x1ed702(_0x5cca5b);if(_0x1976ac&&'type'in _0x1976ac)return _0x1976ac;}}['_handleAttributeSuggestionDescription'](_0x102250,_0x5a9565){const _0x121fd4=_0x5a9565['data'],_0x49b9f5=void 0x0===_0x121fd4['newValue']?'removeFormat':'addFormat';_0x102250['push']({'type':_0x49b9f5,'key':_0x121fd4['key']});}['_handleRenameSuggestionDescription'](_0x33c8d9,_0x4dabae){_0x33c8d9['push']({'type':'format','content':At(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x4dabae['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x236277,_0x2be2f4,_0x7b3746){if(this['_addDescriptionItems'](_0x236277,_0x2be2f4),_0x7b3746&&_0x7b3746['getFirstRange']()&&!_0x2be2f4['getFirstRange']()['end']['isEqual'](_0x7b3746['getFirstRange']()['start'])){const _0x479f0d=_0x236277[_0x236277['length']-0x1],_0x343a6b='insertion'==_0x2be2f4['type']?'add':'remove';_0x479f0d&&'text'==_0x479f0d['type']&&(_0x479f0d[_0x343a6b]+='\x0a');}}}class Ct extends _0x4a3826{['afterInit'](){const _0x2d2d59=this['editor'],_0x4d5cdd=_0x2d2d59['plugins']['get']('TrackChangesEditing');_0x2d2d59['commands']['get']('showAIAssistant')&&_0x4d5cdd['enableCommand']('showAIAssistant');}}class yt extends _0x4a3826{['afterInit'](){const _0x14963e=this['editor'],_0x1309c6=_0x14963e['plugins']['get']('TrackChangesEditing');_0x14963e['commands']['get']('toggleAi')&&_0x1309c6['enableCommand']('toggleAi');}}class Nt extends _0x4a3826{['afterInit'](){const _0x37e7c4=this['editor'],_0x54f77e=_0x37e7c4['plugins']['get']('TrackChangesEditing');_0x37e7c4['commands']['get']('aiQuickAction')&&_0x54f77e['enableCommand']('aiQuickAction');}}class Rt extends _0x4a3826{['afterInit'](){const _0x5d2cdc=this['editor'],_0x1583d6=_0x5d2cdc['locale'];if(!_0x5d2cdc['plugins']['has']('AlignmentEditing'))return;const _0x165fc1=_0x5d2cdc['plugins']['get']('TrackChangesEditing');_0x165fc1['enableDefaultAttributesIntegration']('alignment'),_0x165fc1['descriptionFactory']['registerAttributeLabel']('alignment',At(_0x1583d6,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1b1b73=this['editor'],_0x2f38af=_0x1b1b73['locale'];_0x1b1b73['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x395182=>{if('formatBlock'!=_0x395182['type'])return;const {data:_0x14fc68}=_0x395182;if(_0x14fc68&&'alignment'==_0x14fc68['commandName']){const _0x458464=_0x14fc68['commandParams'][0x0]['value'];return{'type':'format','content':At(_0x2f38af,'*Format:*\x20%0',function(_0x24eaf2){switch(_0x24eaf2){case'left':return At(_0x2f38af,'FORMAT_ALIGN_TO_LEFT');case'right':return At(_0x2f38af,'FORMAT_ALIGN_TO_RIGHT');case'center':return At(_0x2f38af,'FORMAT_ALIGN_TO_CENTER');case'justify':return At(_0x2f38af,'FORMAT_JUSTIFY_TEXT');}}(_0x458464))};}});}}const St=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class Mt extends _0x4a3826{['afterInit'](){const _0x91fa5c=this['editor'],_0x366ba7=_0x91fa5c['plugins']['get']('TrackChangesEditing'),_0x33c758=_0x91fa5c['locale'];for(const _0x19df80 of St){if(!_0x91fa5c['plugins']['has'](_0x19df80))continue;const _0x45908c=_0x19df80['slice'](0x0,-0x7)['toLowerCase'](),_0x5eb9fc='FORMAT_'+_0x45908c['toUpperCase']();_0x366ba7['enableDefaultAttributesIntegration'](_0x45908c),_0x366ba7['descriptionFactory']['registerAttributeLabel'](_0x45908c,At(_0x33c758,_0x5eb9fc));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x51d842=this['editor'],_0x34707e=_0x51d842['locale'],_0x572d1e=_0x51d842['plugins']['get']('TrackChangesEditing');function _0x44c93b(_0x4fc317,_0x533f27){_0x572d1e['descriptionFactory']['registerDescriptionCallback'](_0x57e6b2=>{if('formatInline'!=_0x57e6b2['type'])return;const {data:_0x2695a7}=_0x57e6b2;return _0x2695a7&&_0x2695a7['commandName']===_0x4fc317?_0x2695a7['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x34707e,'*Format:*\x20%0',_0x533f27)}:{'type':'format','content':At(_0x34707e,'*Remove\x20format:*\x20%0',_0x533f27)}:void 0x0;});}_0x44c93b('bold',At(_0x34707e,'FORMAT_BOLD')),_0x44c93b('italic',At(_0x34707e,'FORMAT_ITALIC')),_0x44c93b('underline',At(_0x34707e,'FORMAT_UNDERLINE')),_0x44c93b('code',At(_0x34707e,'FORMAT_CODE')),_0x44c93b('strikethrough',At(_0x34707e,'FORMAT_STRIKETHROUGH')),_0x44c93b('subscript',At(_0x34707e,'FORMAT_SUBSCRIPT')),_0x44c93b('superscript',At(_0x34707e,'FORMAT_SUPERSCRIPT'));}}class Ot extends _0x4a3826{['afterInit'](){const _0x4b1869=this['editor'],_0x5f4805=_0x4b1869['locale'];if(!_0x4b1869['plugins']['has']('BlockQuoteEditing'))return;const _0x2c7b0b=_0x4b1869['plugins']['get']('TrackChangesEditing'),_0x1a6759=this['editor']['commands']['get']('blockQuote');_0x2c7b0b['enableCommand']('blockQuote',(_0x2380c5,_0x566238={})=>{const _0x25557e=this['editor']['model']['document']['selection'],_0x4782dd=_0x566238&&void 0x0!==_0x566238['forceValue']?_0x566238['forceValue']:!_0x1a6759['value'];let _0xab9d0c=[];if(_0x4782dd){const _0x381cc8=Array['from'](_0x25557e['getSelectedBlocks']())['filter'](_0x4e0d32=>wt(_0x4e0d32)||function(_0x3e9853,_0x3ce21d){const _0x40411f=_0x3ce21d['checkChild'](_0x3e9853['parent'],'blockQuote'),_0x450109=_0x3ce21d['checkChild'](['$root','blockQuote'],_0x3e9853);return _0x40411f&&_0x450109;}(_0x4e0d32,this['editor']['model']['schema']));_0xab9d0c=Tt(_0x381cc8,_0x4b1869['model']);}else{const _0x3b7d7e=Array['from'](_0x25557e['getSelectedBlocks']())['filter'](_0x86dabe=>wt(_0x86dabe));_0xab9d0c=Tt(_0x3b7d7e,_0x4b1869['model']);}_0x4b1869['model']['change'](()=>{for(const _0x15ff8d of _0xab9d0c)_0x2c7b0b['markBlockFormat'](_0x15ff8d,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x4782dd}]});});}),_0x2c7b0b['descriptionFactory']['registerDescriptionCallback'](_0x49090e=>{const {data:_0x51cdc0}=_0x49090e;if(_0x51cdc0&&'blockQuote'==_0x51cdc0['commandName']){const _0x255145=At(_0x5f4805,'ELEMENT_BLOCK_QUOTE');return _0x51cdc0['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x5f4805,'*Set\x20format:*\x20%0',_0x255145)}:{'type':'format','content':At(_0x5f4805,'*Remove\x20format:*\x20%0',_0x255145)};}});}}function wt(_0x41e61e){return'blockQuote'==_0x41e61e['parent']['name'];}class Bt extends _0x4a3826{['afterInit'](){const _0x2aa888=this['editor'],_0x4ae64f=_0x2aa888['locale'],_0x403b0d=_0x2aa888['plugins']['get']('TrackChangesEditing');_0x2aa888['plugins']['has']('BookmarkEditing')&&(_0x403b0d['enableCommand']('insertBookmark'),_0x403b0d['enableDefaultAttributesIntegration']('updateBookmark'),_0x403b0d['descriptionFactory']['registerDescriptionCallback'](_0x323327=>{if('insertion'!=_0x323327['type']&&'deletion'!=_0x323327['type']&&'attribute'!=_0x323327['type'])return;const _0x4fc3a2=_0x323327['getContainedElement']();if(null==_0x4fc3a2)return;if(!_0x4fc3a2['is']('element','bookmark'))return;const _0x5f1db1=_0x4fc3a2['getAttribute']('bookmarkId');if('insertion'==_0x323327['type'])return{'type':'insertion','content':At(_0x4ae64f,'*Insert:*\x20%0','\x22'+_0x5f1db1+'\x22\x20'+At(_0x4ae64f,'ELEMENT_BOOKMARK'))};if('deletion'==_0x323327['type'])return{'type':'deletion','content':At(_0x4ae64f,'*Remove:*\x20%0','\x22'+_0x5f1db1+'\x22\x20'+At(_0x4ae64f,'ELEMENT_BOOKMARK'))};const {data:_0x7b4431}=_0x323327;if(!_0x7b4431||'bookmarkId'!=_0x7b4431['key'])return;return{'type':'format','content':At(_0x4ae64f,'*Set\x20bookmark:*\x20%0','\x22'+_0x7b4431['newValue']+'\x22')};}));}}class Ft extends _0x4a3826{['afterInit'](){const _0x14e3a1=this['editor'];_0x14e3a1['plugins']['has']('CaseChange')&&(_0x14e3a1['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x14e3a1['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x14e3a1['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class Dt extends _0x4a3826{['afterInit'](){const _0x2bde51=this['editor'];_0x2bde51['commands']['get']('ckbox')&&_0x2bde51['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class vt extends _0x4a3826{['afterInit'](){const _0xb6c60f=this['editor'];if(!_0xb6c60f['plugins']['has']('CodeBlock'))return;const _0x47b1c9=_0xb6c60f['plugins']['get']('TrackChangesEditing'),_0x1f9038=_0xb6c60f['locale'],_0x581526=_0xb6c60f['config']['get']('codeBlock')['languages'],_0x22ba5d=_0xb6c60f['commands']['get']('codeBlock');_0x47b1c9['enableCommand']('indentCodeBlock'),_0x47b1c9['enableCommand']('outdentCodeBlock'),_0x47b1c9['enableCommand']('codeBlock',(_0x47bf69,_0xb2a090={})=>{const _0x51d624=_0xb6c60f['model'],_0x45c93a=_0xb6c60f['model']['document']['selection'],_0x5f1084=_0xb2a090&&void 0x0!==_0xb2a090['forceValue']?_0xb2a090['forceValue']:!_0x22ba5d['value'];let _0x2f68e9;_0xb2a090['language']||(_0xb2a090['language']=_0x581526[0x0]['language']),_0x2f68e9=_0x5f1084?Array['from'](_0x45c93a['getSelectedBlocks']())['filter'](_0x36ea02=>xt(_0x36ea02)||function(_0x5b25fc,_0x25741){if(_0x5b25fc['is']('rootElement')||_0x25741['isLimit'](_0x5b25fc))return!0x1;return _0x25741['checkChild'](_0x5b25fc['parent'],'codeBlock');}(_0x36ea02,_0x51d624['schema'])):Array['from'](_0x45c93a['getSelectedBlocks']())['filter'](_0x489d7c=>xt(_0x489d7c));const _0x54c163=Tt(_0x2f68e9,_0x51d624);_0x51d624['change'](()=>{for(const _0x3b7ef9 of _0x54c163)_0x47b1c9['markBlockFormat'](_0x3b7ef9,{'commandName':'codeBlock','commandParams':[{..._0xb2a090,'forceValue':_0x5f1084}],'formatGroupId':'blockName'});});}),(_0x47b1c9['descriptionFactory']['registerElementLabel']('codeBlock',_0x21cfc8=>At(_0x1f9038,'ELEMENT_CODE_BLOCK',_0x21cfc8)),_0x47b1c9['descriptionFactory']['registerDescriptionCallback'](_0x253af4=>{if('formatBlock'!=_0x253af4['type'])return;const _0x2026ec=_0x1f9038['t'],{data:_0x588532}=_0x253af4;if(!_0x588532||'codeBlock'!=_0x588532['commandName'])return;const _0x46f046=_0x588532['commandParams'][0x0]['language'],_0x288463=_0x2026ec(_0x581526['find'](_0x17b264=>_0x17b264['language']===_0x46f046)['label'])['toLowerCase']();return _0x588532['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x1f9038,'*Set\x20format:*\x20%0',At(_0x1f9038,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x288463+')')}:{'type':'format','content':At(_0x1f9038,'*Remove\x20format:*\x20%0',At(_0x1f9038,'ELEMENT_CODE_BLOCK',0x1))};}));}}function xt(_0x41e7e7){return'codeBlock'==_0x41e7e7['name'];}class Pt extends _0x4a3826{['afterInit'](){const _0x523974=this['editor'];if(!_0x523974['plugins']['has']('CommentsEditing'))return;_0x523974['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class Ut extends _0x4a3826{static get['requires'](){return[at];}['init'](){const _0x22928a=this['editor'],_0x567697=_0x22928a['plugins']['get']('TrackChangesEditing');_0x567697['enableCommand']('delete');const _0x5bda76=_0x22928a['commands']['get']('deleteForward');_0x567697['enableCommand']('deleteForward',(_0x18b911,_0x4421e7={})=>{const _0x1ea39e=_0x22928a['model']['createSelection'](_0x22928a['model']['document']['selection']);_0x1ea39e['isCollapsed']&&_0x22928a['model']['modifySelection'](_0x1ea39e,{'direction':'forward','unit':_0x4421e7['unit']});const _0x571851=_0x1ea39e['getFirstRange'](),_0x138092=_0x4f8349['fromRange'](_0x571851);let _0x30bac0;_0x18b911(_0x4421e7),_0x30bac0='$graveyard'==_0x138092['root']['rootName']?_0x22928a['model']['createRange'](_0x571851['start']):_0x22928a['model']['createRange'](_0x138092['start'],_0x138092['end']),_0x138092['detach'](),_0x22928a['model']['enqueueChange'](_0x5bda76['buffer']['batch'],_0x3a32da=>{_0x5bda76['buffer']['lock'](),_0x3a32da['setSelection'](_0x3a32da['createRange'](_0x30bac0['end'])),_0x5bda76['buffer']['unlock']();});});}}class Gt extends _0x4a3826{['afterInit'](){const _0x1eec2d=this['editor'];if(!_0x1eec2d['plugins']['has']('ListEditing'))return;const _0x3e3248=_0x1eec2d['locale'],_0x4e4287=_0x1eec2d['plugins']['get']('TrackChangesEditing'),_0x46c6c1=_0x1eec2d['plugins']['has']('TodoListEditing'),_0xbf303e=!!_0x1eec2d['config']['get']('list.multiBlock');function _0x49476f(_0x34d67b){return{'type':'format','content':''+At(_0x3e3248,'*Set\x20format:*\x20%0',_0x34d67b)};}function _0x2986d3(_0x497f77){return{'type':'format','content':''+At(_0x3e3248,'*Remove\x20format:*\x20%0',_0x497f77)};}_0x4e4287['enableDefaultAttributesIntegration']('numberedList'),_0x4e4287['enableDefaultAttributesIntegration']('bulletedList'),_0x4e4287['enableDefaultAttributesIntegration']('customNumberedList'),_0x4e4287['enableDefaultAttributesIntegration']('customBulletedList'),_0x4e4287['enableDefaultAttributesIntegration']('indentList'),_0x4e4287['enableDefaultAttributesIntegration']('outdentList'),_0x4e4287['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x4e4287['enableDefaultAttributesIntegration']('splitListItemBefore'),_0xbf303e&&(_0x4e4287['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x4e4287['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x46c6c1&&(_0x4e4287['enableDefaultAttributesIntegration']('todoList'),_0x4e4287['enableDefaultAttributesIntegration']('checkTodoList'),_0x4e4287['descriptionFactory']['registerDescriptionCallback'](_0x30b68c=>{const {data:_0xcf4c89}=_0x30b68c;if(_0xcf4c89&&'todoListChecked'==_0xcf4c89['key'])return{'type':'format','content':_0xcf4c89['newValue']?At(_0x3e3248,'*Check\x20item*'):At(_0x3e3248,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x42d3dc=>{if(_0x42d3dc['batch']['isUndo'])return!0x1;let _0x16051f=!0x1;const _0x5bca83=_0x4e4287['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x7bd431=>'todoListChecked'===_0x4e4287['_getAttributeKey'](_0x7bd431));for(const _0x3cdd41 of _0x5bca83){'todo'!=_0x3cdd41['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x4e4287['_findSuggestions'](_0x3cdd41['getFirstRange'](),'attribute')['find'](_0x23dde2=>'listType'===_0x4e4287['_getAttributeKey'](_0x23dde2['suggestion']))||(_0x42d3dc['removeMarker'](_0x3cdd41['getFirstMarker']()),_0x16051f=!0x0));}return _0x16051f;})),_0x4e4287['descriptionFactory']['registerAttributeLabel']('listIndent',At(_0x3e3248,'FORMAT_INDENT'));const _0x4b84c5={'type':'format','content':''};_0x4e4287['descriptionFactory']['registerDescriptionCallback'](_0x439aae=>{const {data:_0x32f567}=_0x439aae;if(!_0x32f567||'listType'!=_0x32f567['key'])return;let _0x20e89c=_0x439aae['head'];for(;_0x20e89c;){if(_0x20e89c['data']&&(('listStyle'==_0x20e89c['data']['key']||'listMarkerStyle'==_0x20e89c['data']['key'])&&(_0x20e89c['data']['newValue']&&'default'!=_0x20e89c['data']['newValue']||'default'!=_0x20e89c['data']['oldValue']&&!_0x32f567['newValue'])||!_0xbf303e&&_0x20e89c['data']['key']==Ke))return _0x4b84c5;_0x20e89c=_0x20e89c['next'];}if(null==_0x32f567['newValue'])switch(_0x32f567['oldValue']){case'bulleted':return _0x2986d3(At(_0x3e3248,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2986d3(At(_0x3e3248,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2986d3(At(_0x3e3248,'ELEMENT_TODO_LIST'));}switch(_0x32f567['newValue']){case'bulleted':return _0x49476f(At(_0x3e3248,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x49476f(At(_0x3e3248,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x49476f(At(_0x3e3248,'ELEMENT_TODO_LIST'));}}),_0x4e4287['descriptionFactory']['registerDescriptionCallback'](_0x1c86a0=>{const {data:_0x49a785}=_0x1c86a0;if(_0x49a785&&'listIndent'==_0x49a785['key'])return null==_0x49a785['newValue']||null==_0x49a785['oldValue']&&0x0==_0x49a785['newValue']?_0x4b84c5:void 0x0;}),_0x4e4287['descriptionFactory']['registerDescriptionCallback'](_0x31884e=>{if('attribute'!=_0x31884e['type'])return;const {data:_0x1365c3}=_0x31884e;if(!_0x1365c3||'listItemId'!=_0x1365c3['key'])return;const _0x3c2579=Ht(_0x31884e);return'newValue'==_0x3c2579?{'type':'format','content':At(_0x3e3248,'*Merge:*\x20list\x20item')}:'oldValue'==_0x3c2579?{'type':'format','content':At(_0x3e3248,'*Split:*\x20list\x20item')}:_0x4b84c5;}),_0x1eec2d['model']['document']['registerPostFixer'](_0x58cd91=>this['listItemIdFixer'](_0x58cd91)),_0x1eec2d['model']['document']['registerPostFixer'](_0x40da7c=>this['noTrackChangesFixer'](_0x40da7c)),_0x1eec2d['model']['document']['on']('change:data',(_0x3390fe,_0x1a5e56)=>{if(_0x1a5e56['isUndo']||!_0x1a5e56['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x3a9855){if(_0x3a9855['batch']['isUndo']||!_0x3a9855['batch']['isLocal'])return!0x1;let _0x3017ce=!0x1;const _0x123d65=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x53c3d6=>_0x53c3d6['data']&&'listItemId'==_0x53c3d6['data']['key'])['filter'](_0x23147a=>_0x23147a['data']['newValue']&&_0x23147a['data']['oldValue']);for(const _0x27e75 of _0x123d65)Ht(_0x27e75)||(_0x3a9855['removeMarker'](_0x27e75['getFirstMarker']()),_0x3017ce=!0x0);return _0x3017ce;}['noTrackChangesFixer'](_0x5ad9f3){if(_0x5ad9f3['batch']['isUndo']||!_0x5ad9f3['batch']['isLocal'])return!0x1;const _0x2ab0be=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x2ab0be['trackChangesCommand']['value'])return!0x1;let _0x249db1=!0x1;const _0x53f03b=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x1d1806=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x543c16=>'attribute'==_0x543c16['type'])['filter'](_0x5a3065=>_0x53f03b['includes'](_0x5a3065['attributeKey']));if(0x0==_0x1d1806['length'])return _0x249db1;for(const _0x2b62da of _0x1d1806){const _0x32264e=_0x2ab0be['_findSuggestions'](_0x2b62da['range'],'attribute')['filter'](_0xfccf7a=>!_0xfccf7a['meta']['isNextTo'])['map'](_0x22e8dc=>_0x22e8dc['suggestion'])['filter'](_0x59c081=>{const _0x4a1d89=_0x2ab0be['_getAttributeKey'](_0x59c081);return _0x53f03b['includes'](_0x4a1d89);});if(_0x32264e['length']){for(const _0x95e939 of _0x32264e)_0x5ad9f3['removeMarker'](_0x95e939['getFirstMarker']());_0x249db1=!0x0;}}return _0x249db1;}['assureChains'](){const _0x3419ec=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4ce2c5=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x3ae7db;const _0x3bbd94=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x160218=>{if(_0x160218['data']['oldRange']||!_0x160218['data']['newRange'])return null;if(!_0x160218['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x59886}=_0x475a96(_0x160218['name']);if(!_0x3419ec['hasSuggestion'](_0x59886))return null;const _0x3dd43d=_0x3419ec['getSuggestion'](_0x59886);return _0x4ce2c5['includes'](_0x3dd43d['data']['key']);})['map'](_0x3ee966=>{const {id:_0x3db7cf}=_0x475a96(_0x3ee966['name']),_0x342b56=_0x3419ec['getSuggestion'](_0x3db7cf);return _0x3ae7db=_0x342b56['attributes']['groupId'],_0x342b56['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x3bbd94['size'])return;const _0x522c7b=_0x3419ec['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x457af7=>'attribute'==_0x457af7['type']&&_0x457af7['data']&&_0x4ce2c5['includes'](_0x457af7['data']['key'])&&_0x457af7['attributes']['groupId']!=_0x3ae7db)['map'](_0x12d9b0=>({'listItem':_0x12d9b0['getFirstRange']()['start']['nodeAfter'],'groupId':_0x12d9b0['attributes']['groupId']})),_0x58ab42=new Set();for(const {groupId:_0x54ceb5,listItem:_0x2c134e}of _0x522c7b)_0x3bbd94['has'](_0x2c134e)&&_0x58ab42['add'](_0x54ceb5);for(const _0x3373c0 of _0x3419ec['getSuggestions']())_0x58ab42['has'](_0x3373c0['attributes']['groupId'])&&_0x3373c0['setAttribute']('groupId',_0x3ae7db);}['_supportLegacySuggestions'](){const _0x3db4ea=this['editor'],_0x1ae337=_0x3db4ea['locale'],_0x2595eb=_0x3db4ea['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x2595eb['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x820893,_0x254bb6){const _0x1de5dd=[];for(let _0x24a110 of _0x820893)_0x24a110['start']['nodeAfter']===_0x24a110['end']['parent']&&(_0x24a110=_0x3db4ea['model']['createRange'](_0x3db4ea['model']['createPositionAt'](_0x24a110['start']['nodeAfter'],0x0))),_0x1de5dd['push'](_0x24a110);_0x3db4ea['model']['change'](_0x16d014=>{const _0x502718=_0x3db4ea['model']['document']['selection'],_0x25db00=Array['from'](_0x502718['getRanges']())['map'](_0x1340f=>_0x4f8349['fromRange'](_0x1340f));_0x16d014['setSelection'](_0x1de5dd),_0x3db4ea['commands']['get'](_0x254bb6['commandName'])['refresh'](),_0x254bb6['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x3db4ea['execute'](_0x254bb6['commandName'],..._0x254bb6['commandParams']),_0x16d014['setSelection'](_0x25db00);for(const _0xe31cfb of _0x25db00)_0xe31cfb['detach']();});}),_0x2595eb['descriptionFactory']['registerElementLabel'](function(_0x5acea9){const _0x20f55a=!_0x3db4ea['model']['schema']['isObject'](_0x5acea9),_0x560fe4=_0x5acea9['previousSibling'],_0x178894=_0x5acea9['nextSibling'],_0x440257=_0x5acea9['getAttribute']('listItemId'),_0x6fcb3f=!_0x560fe4||_0x560fe4['getAttribute']('listItemId')!==_0x440257,_0x43b305=!_0x178894||_0x178894['getAttribute']('listItemId')!==_0x440257;return _0x20f55a&&Boolean(_0x440257)&&_0x6fcb3f&&_0x43b305;},_0x560302=>At(_0x1ae337,'ELEMENT_LIST_ITEM',_0x560302));}['_registerLegacyDescription'](){const _0x3da95a=this['editor'],_0x3a733c=_0x3da95a['locale'];function _0x485186(_0x33aeaa){const _0x243b21=_0x3da95a['commands']['get']('bulletedList')['value'],_0x350f5d=_0x3da95a['commands']['get']('numberedList')['value'];return'numberedList'===_0x33aeaa?_0x243b21:_0x350f5d;}_0x3da95a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x390f25){if('formatBlock'!=_0x390f25['type'])return;const {data:_0x30f350}=_0x390f25;if(!_0x30f350)return;let _0x1b7ac4,_0x21762e,_0x61451d,_0x1df028;switch(_0x30f350['commandName']){case'bulletedList':_0x61451d=_0x30f350['commandParams'][0x0]['forceValue'],_0x1df028=_0x485186(_0x30f350['commandName']),_0x1b7ac4=_0x61451d?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1df028&&_0x3da95a['config']['get']('list.multiBlock')||(_0x1b7ac4='*Change\x20to:*\x20%0'),_0x21762e={'type':'format','content':At(_0x3a733c,_0x1b7ac4,At(_0x3a733c,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x61451d=_0x30f350['commandParams'][0x0]['forceValue'],_0x1df028=_0x485186(_0x30f350['commandName']),_0x1b7ac4=_0x61451d?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1df028&&_0x3da95a['config']['get']('list.multiBlock')||(_0x1b7ac4='*Change\x20to:*\x20%0'),_0x21762e={'type':'format','content':At(_0x3a733c,_0x1b7ac4,At(_0x3a733c,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x1b7ac4='*Indent:*\x20%0',_0x21762e={'type':'format','content':At(_0x3a733c,_0x1b7ac4,At(_0x3a733c,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x1b7ac4=function(_0x224534){const _0x34e277=_0x224534['getFirstRange']();let _0xee2a1=_0x34e277['start']['nodeAfter'];for(;_0xee2a1&&_0x34e277['containsItem'](_0xee2a1);){if(_0xee2a1['getAttribute']('listIndent')>0x0)return!0x1;_0xee2a1=_0xee2a1['nextSibling'];}return!0x0;}(_0x390f25)?At(_0x3a733c,'*Format:*\x20remove\x20from\x20%0',At(_0x3a733c,function(_0x1f0d09){return'ELEMENT_'+_0x1f0d09['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x390f25))):At(_0x3a733c,'*Outdent:*\x20%0',At(_0x3a733c,'ELEMENT_LIST_ITEM')),_0x21762e={'type':'format','content':_0x1b7ac4};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x30f350['multipleBlocks']&&(_0x1b7ac4='*Merge:*\x20%0',_0x21762e={'type':'deletion','content':At(_0x3a733c,_0x1b7ac4,At(_0x3a733c,'ELEMENT_LIST_ITEM'))});}return _0x21762e;});}}function Ht(_0x1c740a){let _0x2e37ea=_0x1c740a['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x2e37ea;){const _0x23bce9=_0x2e37ea['getAttribute']('listItemId');if(!_0x23bce9)return!0x1;if(_0x23bce9==_0x1c740a['data']['newValue'])return'newValue';if(_0x23bce9==_0x1c740a['data']['oldValue'])return'oldValue';_0x2e37ea=_0x2e37ea['previousSibling'];}return!0x1;}class $t extends _0x4a3826{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x575a26=this['editor']['config']['get']('list.properties'),_0x95c084=this['editor']['plugins']['get']('TrackChangesEditing');_0x575a26['styles']&&_0x95c084['enableDefaultAttributesIntegration']('listStyle'),_0x575a26['reversed']&&_0x95c084['enableDefaultAttributesIntegration']('listReversed'),_0x575a26['startIndex']&&_0x95c084['enableDefaultAttributesIntegration']('listStart');const _0x192778={'type':'format','content':''};_0x95c084['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0xba9559=this['editor']['locale'];_0x95c084['descriptionFactory']['registerAttributeLabel']('listReversed',At(_0xba9559,'FORMAT_LIST_REVERSED')),_0x95c084['descriptionFactory']['registerDescriptionCallback'](_0x4346a5=>{const {data:_0x478e0c}=_0x4346a5;if(_0x478e0c&&'listReversed'==_0x478e0c['key'])return null==_0x478e0c['newValue']||0x0==_0x478e0c['newValue']&&null==_0x478e0c['oldValue']?_0x192778:void 0x0;}),_0x95c084['descriptionFactory']['registerAttributeLabel']('listStart',At(_0xba9559,'FORMAT_LIST_START')),_0x95c084['descriptionFactory']['registerDescriptionCallback'](_0x10a9a1=>{const {data:_0xb5a6fb}=_0x10a9a1;if(_0xb5a6fb&&'listStart'==_0xb5a6fb['key'])return null==_0xb5a6fb['newValue']||0x1==_0xb5a6fb['newValue']&&null==_0xb5a6fb['oldValue']?_0x192778:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x56744a=>{if(_0x56744a['batch']['isUndo'])return!0x1;let _0xed9513=!0x1;const _0x36c4f2=_0x95c084['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4ce9de=>{const _0x2bd1db=_0x95c084['_getAttributeKey'](_0x4ce9de);return'listStart'==_0x2bd1db||'listReversed'==_0x2bd1db;});for(const _0x25003e of _0x36c4f2){const _0x5dd926=_0x25003e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x5dd926||'customNumbered'==_0x5dd926)continue;_0x95c084['_findSuggestions'](_0x25003e['getFirstRange'](),'attribute')['find'](_0x193897=>'listType'==_0x95c084['_getAttributeKey'](_0x193897['suggestion']))||(_0x56744a['removeMarker'](_0x25003e['getFirstMarker']()),_0xed9513=!0x0);}return _0xed9513;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x45b051){const _0x1dbbae=this['editor']['locale'],{data:_0x5656db}=_0x45b051,_0x2ddc61={'type':'format','content':''};if(!_0x5656db||'listStyle'!=_0x5656db['key'])return;if(!_0x5656db['oldValue'])return'default'==_0x5656db['newValue']?_0x2ddc61:{'type':'format','content':''+At(_0x1dbbae,'*Set\x20format:*\x20%0',At(_0x1dbbae,this['_getTranslationKeyForListStyle'](_0x5656db['newValue'])))};if(!_0x5656db['newValue']){if('default'==_0x5656db['oldValue'])return _0x2ddc61;let _0x2f52b7=_0x45b051['head'];for(;_0x2f52b7;){if(_0x2f52b7['data']&&'listType'==_0x2f52b7['data']['key']&&_0x2f52b7['data']['newValue'])return _0x2ddc61;_0x2f52b7=_0x2f52b7['next'];}return{'type':'format','content':''+At(_0x1dbbae,'*Remove\x20format:*\x20%0',At(_0x1dbbae,this['_getTranslationKeyForListStyle'](_0x5656db['oldValue'])))};}if('default'!=_0x5656db['newValue'])return{'type':'format','content':''+At(_0x1dbbae,'*Set\x20format:*\x20%0',At(_0x1dbbae,this['_getTranslationKeyForListStyle'](_0x5656db['newValue'])))};let _0x29ed95=_0x45b051['head'];for(;_0x29ed95;){if(_0x29ed95['data']&&'listType'==_0x29ed95['data']['key']&&_0x29ed95['data']['newValue']&&_0x29ed95['data']['oldValue'])return _0x2ddc61;_0x29ed95=_0x29ed95['next'];}return{'type':'format','content':At(_0x1dbbae,'*Set\x20format:*\x20%0',At(_0x1dbbae,'ELEMENT_'+_0x45b051['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x8d5ba2=this['editor'],_0x35a903=_0x8d5ba2['locale'];_0x8d5ba2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x13c052=>{if('formatBlock'!=_0x13c052['type'])return;const {data:_0x321621}=_0x13c052;if(!_0x321621)return;let _0x35a134,_0x3bd1d5;switch(_0x321621['commandName']){case'listStyle':_0x35a134='*Change\x20to:*\x20%0',_0x3bd1d5={'type':'format','content':At(_0x35a903,_0x35a134,At(_0x35a903,this['_getTranslationKeyForListStyle'](_0x321621['commandParams'][0x0]['type'])))};break;case'listReversed':_0x35a134=_0x321621['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3bd1d5={'type':'format','content':At(_0x35a903,_0x35a134)};break;case'listStart':_0x35a134='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3bd1d5={'type':'format','content':At(_0x35a903,_0x35a134,_0x321621['commandParams'][0x0]['startIndex'])};}return _0x3bd1d5;});}['_getTranslationKeyForListStyle'](_0x20e276){return'ELEMENT_'+function(_0x149f88){if(Wt['includes'](_0x149f88))return'bulleted';if(Vt['includes'](_0x149f88))return'numbered';return null;}(_0x20e276)['toUpperCase']()+'_LIST_'+_0x20e276['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 _0x4a3826{['afterInit'](){const _0x851167=this['editor'];_0x851167['commands']['get']('emoji')&&_0x851167['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class zt extends _0x4a3826{static get['requires'](){return[lt];}['init'](){const _0x37d1a0=this['editor'],_0x41a7cb=_0x37d1a0['plugins']['get']('TrackChangesEditing'),_0x3e3414=_0x37d1a0['commands']['get']('enter');_0x41a7cb['enableCommand']('enter',()=>{_0x37d1a0['model']['change'](_0xad4b30=>{const _0x3f1e3e=_0x37d1a0['model']['document']['selection'],_0x1eaf5a=_0x3f1e3e['getFirstPosition'](),_0x767343=_0x4f8349['fromRange'](_0x3f1e3e['getFirstRange']());if(_0x3e3414['enterBlock'](_0xad4b30)){const _0x5130d8=_0x37d1a0['model']['createPositionAt'](_0x1eaf5a['parent']['nextSibling'],0x0),_0x2f412a=_0xad4b30['createRange'](_0x1eaf5a,_0x5130d8);_0x41a7cb['markInsertion'](_0x2f412a);}else _0xad4b30['setSelection'](_0xad4b30['createRange'](_0x767343['end']));_0x767343['detach'](),_0x3e3414['fire']('afterExecute',{'writer':_0xad4b30});});});}}class Kt extends _0x4a3826{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x98c3d6=this['editor']['plugins']['get']('TrackChangesEditing');_0x98c3d6['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x98c3d6['enableCommand']('findNext'),_0x98c3d6['enableCommand']('findPrevious'),_0x98c3d6['enableCommand']('replace'),_0x98c3d6['enableCommand']('replaceAll');}['handleFindCommand'](_0x2a3d10,_0x296371,_0x4bbbdb={}){const _0x318214=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x2a3d10(_0x2f1b6d=>{let _0x169a72=('string'==typeof _0x296371?_0x318214['findByTextCallback'](_0x296371,_0x4bbbdb):_0x296371)(_0x2f1b6d);Array['isArray'](_0x169a72)&&(_0x169a72={'results':_0x169a72,'searchText':'string'==typeof _0x296371?_0x296371:''});const _0x57e3d6=_0x169a72['results']['filter'](_0x5bf6a9=>!0x1===this['_isInDeletionRange'](_0x5bf6a9,_0x2f1b6d['item']));return{..._0x169a72,'results':_0x57e3d6};},_0x4bbbdb);}['_isInDeletionRange'](_0x3227c1,_0x332d39){const _0x528150=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x332d39,_0x3227c1['start']),this['editor']['model']['createPositionAt'](_0x332d39,_0x3227c1['end']));for(const _0x530dc6 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x528150['getIntersection'](_0x530dc6['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 _0x4a3826{['afterInit'](){const _0x3a9e71=this['editor']['locale'],_0x39be74=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x54ec63,commandName:_0x3c6ddb}of Xt)this['editor']['plugins']['has'](_0x54ec63)&&_0x39be74['enableDefaultAttributesIntegration'](_0x3c6ddb);_0x39be74['descriptionFactory']['registerAttributeLabel']('fontSize',At(_0x3a9e71,'FORMAT_FONT_SIZE')),_0x39be74['descriptionFactory']['registerAttributeLabel']('fontFamily',At(_0x3a9e71,'FORMAT_FONT_FAMILY')),_0x39be74['descriptionFactory']['registerAttributeLabel']('fontColor',At(_0x3a9e71,'FORMAT_FONT_COLOR')),_0x39be74['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',At(_0x3a9e71,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x32feaf=this['editor'],_0x2cc258=_0x32feaf['locale'];_0x32feaf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4106ae=>{const _0x1c72ef=_0x2cc258['t'];if('formatInline'!=_0x4106ae['type'])return;const {data:_0x2e4db5}=_0x4106ae;if(null!=_0x2e4db5){if('fontSize'==_0x2e4db5['commandName']){const _0x1e329e=_0x2e4db5['commandParams'][0x0]['value'];if(_0x1e329e){const _0x23c2ec=_0x1c72ef(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x3dc6c6=>_0x3dc6c6['model']==_0x1e329e)['title'])['toLowerCase']();return{'type':'format','content':At(_0x2cc258,'*Set\x20font\x20size:*\x20%0',_0x23c2ec)};}return{'type':'format','content':At(_0x2cc258,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x2e4db5['commandName']){const _0x47141f=_0x2e4db5['commandParams'][0x0]['value'];return _0x47141f?{'type':'format','content':At(_0x2cc258,'*Set\x20font\x20family:*\x20%0',_0x47141f)}:{'type':'format','content':At(_0x2cc258,'*Reset\x20font\x20family*')};}if('fontColor'==_0x2e4db5['commandName']){const _0x1a7ea3=_0x2e4db5['commandParams'][0x0]['value'];if(_0x1a7ea3){const _0x59e5ba=_0x191951(this['editor']['config']['get']('fontColor.colors'))['find'](_0x2a4c61=>_0x2a4c61['model']==_0x1a7ea3);let _0x27bff1=_0x1a7ea3,_0x11e39e='';return _0x59e5ba&&(_0x27bff1=_0x59e5ba['label'],_0x11e39e=_0x1c72ef(_0x27bff1)['toLowerCase']()),{'type':'format','content':At(_0x2cc258,'*Set\x20font\x20color:*\x20%0',_0x11e39e)['trim'](),'color':{'value':_0x1a7ea3,'title':_0x11e39e||_0x27bff1}};}return{'type':'format','content':At(_0x2cc258,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x2e4db5['commandName']){const _0x1cc2fd=_0x2e4db5['commandParams'][0x0]['value'];if(_0x1cc2fd){const _0xae2fcf=_0x191951(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x144c5a=>_0x144c5a['model']==_0x1cc2fd);let _0x2c1ccd=_0x1cc2fd,_0x333909='';return _0xae2fcf&&(_0x2c1ccd=_0xae2fcf['label'],_0x333909=_0x1c72ef(_0x2c1ccd)['toLowerCase']()),{'type':'format','content':At(_0x2cc258,'*Set\x20font\x20background\x20color:*\x20%0',_0x333909)['trim'](),'color':{'value':_0x1cc2fd,'title':_0x333909||_0x2c1ccd}};}return{'type':'format','content':At(_0x2cc258,'*Reset\x20font\x20background\x20color*')};}}});}}class qt extends _0x4a3826{['afterInit'](){const {plugins:_0x54fa7b}=this['editor'];_0x54fa7b['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x54fa7b['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x218184,plugins:_0x2ff483,commands:_0x46b185}=this['editor'],_0x1119bf=_0x2ff483['get']('TrackChangesEditing');_0x46b185['get']('footnotesStyle')&&_0x1119bf['enableDefaultAttributesIntegration']('footnotesStyle'),_0x46b185['get']('footnotesStart')&&_0x1119bf['enableDefaultAttributesIntegration']('footnotesStart'),_0x1119bf['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',At(_0x218184,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x1119bf['descriptionFactory']['registerAttributeLabel']('footnotesListStart',At(_0x218184,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x30aefb=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x37a7b6,commands:_0x11a2f8}=this['editor'];_0x11a2f8['get']('insertFootnote')&&_0x30aefb['enableCommand']('insertFootnote'),_0x30aefb['descriptionFactory']['registerElementLabel']('footnoteRef',_0x40006c=>At(_0x37a7b6,'ELEMENT_FOOTNOTE_REF',_0x40006c)),_0x30aefb['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x53fec1=>At(_0x37a7b6,'ELEMENT_FOOTNOTE_DEFINITION',_0x53fec1)),_0x30aefb['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x399ec9=>At(_0x37a7b6,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x399ec9));}}class Qt extends _0x4a3826{['afterInit'](){const _0x39bfc3=this['editor'],_0x2206bc=_0x39bfc3['plugins']['get']('TrackChangesEditing'),_0x311b6f=_0x39bfc3['commands']['get']('copyFormat'),_0x3cd9b7=_0x39bfc3['commands']['get']('pasteFormat');_0x311b6f&&_0x3cd9b7&&(_0x2206bc['enableDefaultAttributesIntegration']('pasteFormat'),_0x2206bc['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x46a8c3=this['editor'],_0x3ad4cb=_0x46a8c3['locale'];_0x46a8c3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x56f772=>{if('formatBlock'!=_0x56f772['type']&&'formatInline'!=_0x56f772['type'])return;const {data:_0x1974d5}=_0x56f772;if(_0x1974d5&&'pasteFormat'===_0x1974d5['commandName']){const _0x21913c=[],_0x3fed55=_0x1974d5['commandParams'][0x0];for(const [_0x3849ea,_0x35fe60]of Object['entries'](_0x3fed55))_0x21913c['push'](Zt(_0x46a8c3,_0x3849ea,_0x35fe60));return _0x21913c['length']?{'type':'format','content':At(_0x3ad4cb,'*Set\x20format\x20to:*\x20%0',_0x21913c['join'](',\x20'))}:{'type':'format','content':At(_0x3ad4cb,'*Remove\x20all\x20formatting*')};}});}}function Zt(_0x3a4e4e,_0x2bbbf6,_0x5dceb9){const _0x2ae9d6=_0x3a4e4e['locale']['t'],_0x4800a9=_0x2bbbf6['split'](/(?=[A-Z])/)['join']('\x20'),_0x4687d0=_0x2ae9d6(_0x4800a9['charAt'](0x0)['toUpperCase']()+_0x4800a9['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x5dceb9)return _0x4687d0;if('fontColor'===_0x2bbbf6||'fontBackgroundColor'===_0x2bbbf6){const _0x57563c=_0x191951(_0x3a4e4e['config']['get']('fontColor.colors'))['find'](_0x5c7a76=>_0x5c7a76['model']==_0x5dceb9);return _0x4687d0+'\x20('+(_0x57563c?_0x2ae9d6(_0x57563c['label'])['toLowerCase']():_0x5dceb9)+')';}if('fontSize'===_0x2bbbf6&&isNaN(parseFloat(_0x5dceb9))){const _0x5242a5=_0x3a4e4e['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x3a4e4e['config']['get']('fontSize.options'))['find'](_0x4697dd=>_0x4697dd['model']==_0x5dceb9);return _0x4687d0+'\x20('+(_0x5242a5?_0x2ae9d6(_0x5242a5['title'])['toLowerCase']():_0x5dceb9)+')';}return _0x4687d0+'\x20('+_0x5dceb9+')';}class Jt extends _0x4a3826{['_headingOptions'];['afterInit'](){const _0x320d66=this['editor'];if(!_0x320d66['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x320d66['config']['get']('heading.options');const _0x343b68=_0x320d66['locale'],_0x14ffbe=_0x320d66['plugins']['get']('TrackChangesEditing');_0x14ffbe['enableDefaultAttributesIntegration']('heading');for(const _0x504d82 of this['_headingOptions'])'paragraph'!=_0x504d82['model']&&_0x14ffbe['descriptionFactory']['registerElementLabel'](_0x504d82['model'],_0x51a7c2=>{const _0x13c44e=this['_getHeadingLevel'](_0x504d82['model']);return null!==_0x13c44e?_0x3751e0(_0x51a7c2,_0x13c44e):_0x966370(_0x51a7c2,_0x504d82['title']);});function _0x3751e0(_0x543526,_0x166a47){return At(_0x343b68,'ELEMENT_HEADING',[_0x543526,_0x166a47]);}function _0x966370(_0x559185,_0x55189c){return At(_0x343b68,'ELEMENT_HEADING_CUSTOM',[_0x559185,_0x55189c]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5af739=this['editor'],_0x4d6d0c=_0x5af739['locale'];function _0x2b1a0c(_0xe5b7da,_0xe43999){return At(_0x4d6d0c,'ELEMENT_HEADING_CUSTOM',[_0xe5b7da,_0xe43999]);}_0x5af739['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2d43e0=>{if('formatBlock'!=_0x2d43e0['type'])return;const {data:_0x56a15f}=_0x2d43e0;if(_0x56a15f&&'heading'==_0x56a15f['commandName']){const _0x4588f6=_0x56a15f['commandParams'][0x0]['value'],_0xbaca6c=this['_getHeadingLevel'](_0x4588f6);if(null!==_0xbaca6c)return{'type':'format','content':At(_0x4d6d0c,'*Change\x20to:*\x20%0',(_0x34e501=0x1,_0x3e4924=_0xbaca6c,At(_0x4d6d0c,'ELEMENT_HEADING',[_0x34e501,_0x3e4924])))};const _0x1ec93c=this['_headingOptions']['find'](_0x54e700=>_0x54e700['model']===_0x4588f6)['title'];return{'type':'format','content':At(_0x4d6d0c,'*Change\x20to:*\x20%0',_0x2b1a0c(0x1,_0x1ec93c))};}var _0x34e501,_0x3e4924;});}['_getHeadingLevel'](_0x7d8ff){const _0x474c56=_0x7d8ff['match'](/^heading(\d+)/);if(_0x474c56)return _0x474c56[0x1];const _0x57cb78=this['_headingOptions']?.['find'](_0x369bb5=>_0x369bb5['model']==_0x7d8ff);if(_0x57cb78&&_0x57cb78['view']){const _0x50144a=_0x57cb78['view'],_0x440724=(_0x50144a['name']??_0x50144a)['match'](/^h(\d+)/);if(_0x440724)return _0x440724[0x1];}return null;}}class te extends _0x4a3826{['afterInit'](){const _0xb9c350=this['editor'];if(!_0xb9c350['plugins']['has']('HighlightEditing'))return;const _0xc81176=_0xb9c350['plugins']['get']('TrackChangesEditing'),_0x1d844a=_0xb9c350['locale'];_0xc81176['enableDefaultAttributesIntegration']('highlight'),_0xc81176['descriptionFactory']['registerAttributeLabel']('highlight',At(_0x1d844a,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1b5171=this['editor'],_0xfd70bd=_0x1b5171['locale'];_0x1b5171['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x539dc5=>{if('formatInline'!=_0x539dc5['type'])return;const {data:_0xf45f73}=_0x539dc5;if(_0xf45f73&&'highlight'==_0xf45f73['commandName']){const _0x5d3959=_0xfd70bd['t'],_0x5cabd3=_0xf45f73['commandParams'][0x0]['value'];if(_0x5cabd3){const _0x3787ef=_0x1b5171['config']['get']('highlight.options')['find'](_0x1ffb56=>_0x1ffb56['model']==_0x5cabd3),_0x193cf4=_0x5d3959(_0x3787ef['title'])['toLowerCase']();return{'type':'format','content':At(_0xfd70bd,'*Set\x20highlight:*\x20%0',_0x193cf4),'color':{'value':_0x3787ef['color'],'title':_0x3787ef['title']}};}return{'type':'format','content':At(_0xfd70bd,'*Remove\x20highlight*',At(_0xfd70bd,'FORMAT_HIGHLIGHT'))};}});}}class ee extends _0x4a3826{['afterInit'](){const _0x200b28=this['editor'];if(!_0x200b28['plugins']['has']('HorizontalLineEditing'))return;_0x200b28['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x4a1766=_0x200b28['plugins']['get']('TrackChangesEditing'),_0x540db8=_0x200b28['locale'];_0x4a1766['descriptionFactory']['registerElementLabel']('horizontalLine',_0x16f03a=>At(_0x540db8,'ELEMENT_HORIZONTAL_LINE',_0x16f03a));}}class ne extends _0x4a3826{['afterInit'](){const _0x7c0b85=this['editor'];if(!_0x7c0b85['plugins']['has']('HtmlEmbed'))return;const _0x5c86aa=_0x7c0b85['plugins']['get']('TrackChangesEditing'),_0x47a4fc=_0x7c0b85['locale'];_0x5c86aa['descriptionFactory']['registerElementLabel']('rawHtml',_0x1509ce=>At(_0x47a4fc,'ELEMENT_HTML_EMBED',_0x1509ce)),_0x5c86aa['enableDefaultAttributesIntegration']('htmlEmbed'),_0x5c86aa['descriptionFactory']['registerDescriptionCallback'](_0x58c26f=>{if('attribute'!=_0x58c26f['type'])return;const {data:_0x2d052a}=_0x58c26f;if(_0x2d052a&&'value'==_0x2d052a['key']&&_0x58c26f['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x393600=At(_0x47a4fc,'ELEMENT_HTML_EMBED');return{'type':'format','content':At(_0x47a4fc,'*Change\x20%0\x20content*',_0x393600)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2682d9=this['editor'],_0x2d50c6=_0x2682d9['locale'];_0x2682d9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2056e9=>{if('formatBlock'!=_0x2056e9['type'])return;const {data:_0x9caca2}=_0x2056e9;if(_0x9caca2&&'htmlEmbed'==_0x9caca2['commandName']){const _0xf547a4=At(_0x2d50c6,'ELEMENT_HTML_EMBED');return{'type':'format','content':At(_0x2d50c6,'*Change\x20%0\x20content*',_0xf547a4)};}});}}class ie extends _0x4a3826{['afterInit'](){const _0x5228e4=this['editor'];if(!_0x5228e4['plugins']['has']('ImageEditing'))return;const _0x52e93f=_0x5228e4['plugins']['get']('TrackChangesEditing'),_0x8bfd48=_0x5228e4['plugins']['get']('ImageUtils'),_0x46e9ea=_0x5228e4['locale'];_0x52e93f['enableCommand']('insertImage'),_0x52e93f['descriptionFactory']['registerElementLabel']('imageBlock',_0x3246ff=>At(_0x46e9ea,'ELEMENT_IMAGE',_0x3246ff)),_0x52e93f['descriptionFactory']['registerElementLabel']('imageInline',_0x31befb=>At(_0x46e9ea,'ELEMENT_INLINE_IMAGE',_0x31befb)),_0x52e93f['descriptionFactory']['registerElementLabel']('caption',()=>At(_0x46e9ea,'ELEMENT_CAPTION')),_0x5228e4['plugins']['has']('ImageUploadEditing')&&_0x52e93f['enableCommand']('uploadImage'),_0x5228e4['plugins']['has']('ImageBlockEditing')&&_0x5228e4['plugins']['has']('ImageInlineEditing')&&(_0x52e93f['enableCommand']('imageTypeInline',(_0x274d27,_0x5bc4c2)=>{const _0x5632fa=_0x8bfd48['getClosestSelectedImageElement'](_0x5228e4['model']['document']['selection']);_0x5228e4['model']['change'](()=>{_0x52e93f['markBlockFormat'](_0x5632fa,{'commandName':'imageTypeInline','commandParams':[_0x5bc4c2]},[],'convertBlockImageToInline');});}),_0x52e93f['enableCommand']('imageTypeBlock',(_0x38848d,_0x599254)=>{_0x5228e4['model']['change'](_0x5ae11c=>{let _0x29d25c=_0x8bfd48['getClosestSelectedImageElement'](_0x5228e4['model']['document']['selection']),_0x1631a5=_0x5ae11c['createRangeOn'](_0x29d25c);const _0x1caf53=tt['fromPosition'](_0x1631a5['start'],'toPrevious'),_0x2e8442=tt['fromPosition'](_0x1631a5['end'],'toNext');_0x52e93f['forceDefaultExecution'](()=>_0x38848d(_0x599254)),_0x29d25c=_0x8bfd48['getClosestSelectedImageElement'](_0x5228e4['model']['document']['selection']),_0x1631a5=_0x5ae11c['createRangeOn'](_0x29d25c);const _0x1e1712=_0x5ae11c['createRange'](_0x1caf53,_0x2e8442);_0x1caf53['detach'](),_0x2e8442['detach'](),_0x52e93f['markBlockFormat'](_0x29d25c,{'commandName':'imageTypeInline','commandParams':[_0x599254]},[],'convertInlineImageToBlock'),_0x1e1712['start']['isBefore'](_0x1631a5['start'])&&_0x52e93f['markInsertion'](_0x5ae11c['createRange'](_0x1e1712['start'],_0x1631a5['start']),'convertInlineImageToBlock'),_0x1631a5['end']['isBefore'](_0x1e1712['end'])&&_0x52e93f['markInsertion'](_0x5ae11c['createRange'](_0x1631a5['end'],_0x1e1712['end']),'convertInlineImageToBlock');});}),_0x52e93f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x52e93f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x52e93f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x52e93f['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x52e93f['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x52e93f['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x1cd3f8])=>{const _0x595074=_0x52e93f['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0xbcb53c=_0x1cd3f8['start'],_0x5474f3=_0x1cd3f8['end'];const _0x27b4b8=_0x5228e4['model']['schema']['getNearestSelectionRange'](_0xbcb53c,'backward'),_0x24bc06=_0x5228e4['model']['schema']['getNearestSelectionRange'](_0x5474f3,'forward');_0x27b4b8['isCollapsed']&&(_0xbcb53c=_0x27b4b8['start']),_0x24bc06['isCollapsed']&&(_0x5474f3=_0x24bc06['end']),_0x595074([_0x5228e4['model']['createRange'](_0xbcb53c,_0x5474f3)]);}),_0x52e93f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x57fe87),_0x52e93f['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x57fe87)),_0x5228e4['plugins']['has']('ImageCaptionEditing')&&(_0x52e93f['enableCommand']('toggleImageCaption',(_0x3ab8ba,_0xce625)=>{const _0x22ad03=_0x5228e4['plugins']['get']('ImageCaptionUtils');let _0x4e09dc=_0x8bfd48['getClosestSelectedImageElement'](_0x5228e4['model']['document']['selection']),_0x8dc8f6=_0x22ad03['getCaptionFromImageModelElement'](_0x4e09dc);_0x5228e4['model']['change'](()=>{if(_0x8dc8f6)return void _0x52e93f['markDeletion'](_0x5228e4['model']['createRangeOn'](_0x8dc8f6));const _0x4d1281=_0x8bfd48['isBlockImage'](_0x4e09dc);_0x3ab8ba(_0xce625),_0x4e09dc=_0x8bfd48['getClosestSelectedImageElement'](_0x5228e4['model']['document']['selection']),_0x8dc8f6=_0x22ad03['getCaptionFromImageModelElement'](_0x4e09dc),_0x52e93f['markInsertion'](_0x5228e4['model']['createRangeOn'](_0x8dc8f6),_0x4d1281?null:'imageCaption');});}),_0x52e93f['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x57fe87));const _0x315451=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2fbb79(_0x50fa9e,_0x331d07){const _0x1b27ac=_0x315451['findIndex'](({type:_0x3a9865,subType:_0x31bbf2})=>_0x50fa9e['type']==_0x3a9865&&_0x50fa9e['subType']==_0x31bbf2),_0x3774d3=_0x315451['findIndex'](({type:_0x20c171,subType:_0x4c6e7a})=>_0x331d07['type']==_0x20c171&&_0x331d07['subType']==_0x4c6e7a);if(_0x1b27ac<0x0||_0x3774d3<0x0)return!0x1;const _0x886592=_0x50fa9e['getFirstRange'](),_0x430bb8=_0x331d07['getFirstRange']();if((0x0==_0x1b27ac||0x1==_0x1b27ac)&&0x2==_0x3774d3&&_0x886592['isIntersecting'](_0x430bb8))return!0x0;if(0x2==_0x1b27ac&&0x3==_0x3774d3){const _0x4d11eb=_0x52e93f['_findSuggestions'](_0x886592,'insertion')['filter'](({suggestion:_0x4d1346,meta:_0x4c957e})=>_0x4c957e['isOwn']&&'convertInlineImageToBlock'==_0x4d1346['subType']);if(_0x4d11eb['length']>0x1&&_0x430bb8['end']['isEqual'](_0x886592['start']))return!0x0;if(0x1==_0x4d11eb['length']&&(_0x886592['start']['isEqual'](_0x430bb8['end'])||_0x886592['end']['isEqual'](_0x430bb8['start'])))return!0x0;}if(0x3==_0x1b27ac&&0x3==_0x3774d3&&_0x886592['start']['isBefore'](_0x430bb8['start'])){const _0x2b7f98=_0x886592['end']['nodeAfter'],_0x487649=_0x430bb8['start']['nodeBefore'];return _0x8bfd48['isBlockImage'](_0x2b7f98)&&_0x2b7f98===_0x487649;}return!0x1;}function _0x57fe87(_0x31b208,_0x3b2090){return _0x2fbb79(_0x31b208,_0x3b2090)?[_0x31b208,_0x3b2090]:_0x2fbb79(_0x3b2090,_0x31b208)?[_0x3b2090,_0x31b208]:null;}_0x5228e4['plugins']['has']('ImageResize')&&(_0x52e93f['enableDefaultAttributesIntegration']('resizeImage'),_0x52e93f['descriptionFactory']['registerAttributeLabel']('resizedWidth',At(_0x46e9ea,'FORMAT_IMAGE_SIZE'))),_0x5228e4['plugins']['has']('ImageTextAlternativeEditing')&&_0x52e93f['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x5228e4['plugins']['has']('PictureEditing')&&_0x52e93f['descriptionFactory']['registerDescriptionCallback'](_0x4d5d99=>{if('attribute'!=_0x4d5d99['type'])return;const {data:_0x517d62}=_0x4d5d99;return _0x517d62&&'sources'==_0x517d62['key']?{'type':'format','content':''}:void 0x0;}),_0x5228e4['plugins']['has']('ImageSizeAttributes')&&_0x52e93f['descriptionFactory']['registerDescriptionCallback'](_0x470f46=>{if('attribute'!=_0x470f46['type'])return;const {data:_0x3c63f6}=_0x470f46;return!_0x3c63f6||'width'!=_0x3c63f6['key']&&'height'!=_0x3c63f6['key']?void 0x0:{'type':'format','content':''};}),_0x52e93f['descriptionFactory']['registerDescriptionCallback'](_0x17dfc7=>{if(!!_0x315451['find'](({type:_0xcfe038,subType:_0xbe3feb})=>_0x17dfc7['type']==_0xcfe038&&_0x17dfc7['subType']==_0xbe3feb))return _0x17dfc7['previous']?{}:void 0x0;}),_0x52e93f['descriptionFactory']['registerDescriptionCallback'](_0xff3547=>{if('insertion'==_0xff3547['type']||'deletion'==_0xff3547['type']){const _0x378712=_0xff3547['getContainedElement']();if(_0x378712&&_0x378712['is']('element','caption'))return{'type':'insertion'==_0xff3547['type']?'addObject':'removeObject','element':_0x378712,'quantity':0x1};}}),_0x52e93f['descriptionFactory']['registerDescriptionCallback'](_0x1d13ff=>'formatBlock'==_0x1d13ff['type']&&'convertInlineImageToBlock'==_0x1d13ff['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x1d13ff['type']&&'convertBlockImageToInline'==_0x1d13ff['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x52e93f['descriptionFactory']['registerDescriptionCallback'](_0x3a56fa=>{if('attribute'!=_0x3a56fa['type'])return;const {data:_0x298b64}=_0x3a56fa;if(!_0x298b64||'alt'!=_0x298b64['key'])return;const _0x29b335=_0x298b64['newValue'];return _0x29b335?{'type':'format','content':At(_0x46e9ea,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x29b335+'\x22')}:{'type':'format','content':At(_0x46e9ea,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3a11cc=this['editor'],_0xfd0457=_0x3a11cc['locale'];_0x3a11cc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x129b26=>{if('formatBlock'!=_0x129b26['type']&&'formatInline'!=_0x129b26['type'])return;const {data:_0x3e4db9}=_0x129b26;if(_0x3e4db9){if('imageTextAlternative'==_0x3e4db9['commandName']){const _0x1dc474=_0x3e4db9['commandParams'][0x0]['newValue'];return _0x1dc474?{'type':'format','content':At(_0xfd0457,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1dc474+'\x22')}:{'type':'format','content':At(_0xfd0457,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x3e4db9['commandName']){const _0x29ee10=_0x3e4db9['commandParams'][0x0]['width'];return _0x29ee10?{'type':'format','content':At(_0xfd0457,'*Set\x20image\x20width:*\x20%0',_0x29ee10)}:{'type':'format','content':At(_0xfd0457,'*Reset\x20image\x20width*')};}}});}}class se extends _0x4a3826{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x515ed8=this['editor']['locale'],_0x5260be=this['editor']['plugins']['get']('TrackChangesEditing');_0x5260be['enableDefaultAttributesIntegration']('replaceImageSource'),_0x5260be['descriptionFactory']['registerDescriptionCallback'](_0x11aff8=>{if('attribute'!=_0x11aff8['type'])return;const {data:_0x348f73}=_0x11aff8;return _0x348f73&&'src'==_0x348f73['key']?_0x348f73['newValue']&&_0x348f73['oldValue']?{'type':'format','content':At(_0x515ed8,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x814a2a=this['editor']['plugins']['get']('TrackChangesEditing');_0x814a2a['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x814a2a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x814a2a['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x814a2a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x589aec=this['editor'],_0x1fc96c=_0x589aec['locale'];_0x589aec['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1e9d87=>{if('formatBlock'!=_0x1e9d87['type']&&'formatInline'!=_0x1e9d87['type'])return;const {data:_0x213f46}=_0x1e9d87;if(!_0x213f46||'replaceImageSource'!=_0x213f46['commandName'])return;return{'type':'format','content':At(_0x1fc96c,'*Format:*\x20replace\x20image\x20URL')};});}}class re extends _0x4a3826{['afterInit'](){const _0x5f5b95=this['editor'];if(!_0x5f5b95['plugins']['has']('ImageStyleEditing'))return;const _0x591654=_0x5f5b95['plugins']['get']('TrackChangesEditing'),_0x15e951=_0x5f5b95['plugins']['get']('ImageUtils'),_0x10f92e={};_0x591654['enableCommand']('imageStyle',(_0x17cb1c,_0x4aaadd)=>{const _0x3cdc0b=_0x5f5b95['plugins']['get']('Users')['me'],_0x3d988d=_0x5f5b95['commands']['get']('imageStyle');let _0xcf13c7=_0x15e951['getClosestSelectedImageElement'](_0x5f5b95['model']['document']['selection']),_0xefc475=_0x5f5b95['model']['createRangeOn'](_0xcf13c7),_0x2064c6=_0x3d988d['value'];if(_0x2064c6==_0x4aaadd['value'])return;const _0x53cefa={'commandName':'imageStyle','commandParams':[_0x4aaadd],'formatGroupId':_0x15ca27()};_0x5f5b95['model']['change'](()=>{if(_0x591654['getSuggestions']()['filter'](_0x1205bd=>_0x1205bd['isInContent']&&_0x3cdc0b==_0x1205bd['author']&&('formatBlock'==_0x1205bd['type']||'formatInline'==_0x1205bd['type'])&&('imageStylePreApply'==_0x1205bd['subType']||'imageStylePostApply'==_0x1205bd['subType'])&&_0x1205bd['getFirstRange']()['isEqual'](_0xefc475))['forEach'](_0x58bf13=>_0x591654['discardSuggestion'](_0x58bf13['head'])),_0xcf13c7=_0x15e951['getClosestSelectedImageElement'](_0x5f5b95['model']['document']['selection']),_0xefc475=_0x5f5b95['model']['createRangeOn'](_0xcf13c7),_0x3d988d['refresh'](),_0x5f5b95['commands']['get']('imageTypeInline')['refresh'](),_0x5f5b95['commands']['get']('imageTypeBlock')['refresh'](),_0x2064c6=_0x3d988d['value'],_0x2064c6!=_0x4aaadd['value'])return _0x15e951['isInlineImage'](_0xcf13c7)&&_0x3d988d['shouldConvertImageType'](_0x4aaadd['value'],_0xcf13c7)?(_0x17cb1c({..._0x4aaadd,'setImageSizes':!0x1}),_0xcf13c7=_0x15e951['getClosestSelectedImageElement'](_0x5f5b95['model']['document']['selection']),void _0x591654['markBlockFormat'](_0xcf13c7,{..._0x53cefa,'commandReversedParams':[{'value':_0x2064c6||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x15e951['isBlockImage'](_0xcf13c7)?_0x591654['markBlockFormat'](_0xcf13c7,_0x53cefa,[],'imageStylePostApply'):_0x591654['markInlineFormat'](_0xefc475,_0x53cefa,'imageStylePostApply'));});});for(const _0x32b20f of _0x5f5b95['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x10f92e[_0x32b20f['name']]=_0x32b20f['title']['toLowerCase']();_0x591654['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x591654['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x591654['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x591654['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x5a83da])=>{_0x15e951['setImageNaturalSizeAttributes'](_0x5a83da['getContainedElement']());}),_0x591654['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x45599c,_0x3f0a23)=>{_0x591654['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x45599c,{'commandName':_0x3f0a23['commandName'],'commandParams':_0x3f0a23['commandReversedParams']});}),_0x591654['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x4ff72d,_0x2ae057){if(_0x134f7f(_0x4ff72d,_0x2ae057))return[_0x4ff72d,_0x2ae057];if(_0x134f7f(_0x2ae057,_0x4ff72d))return[_0x2ae057,_0x4ff72d];return null;});const _0x22cdfa=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x134f7f(_0x24abc8,_0x3b746b){const _0x13e9ef=_0x22cdfa['findIndex'](({type:_0x1036d0,subType:_0x2efb24})=>_0x24abc8['type']==_0x1036d0&&_0x24abc8['subType']==_0x2efb24),_0x491980=_0x22cdfa['findIndex'](({type:_0x3d2b28,subType:_0x7bcaaf})=>_0x3b746b['type']==_0x3d2b28&&_0x3b746b['subType']==_0x7bcaaf);if(_0x13e9ef<0x0||_0x491980<0x0)return!0x1;const _0x2302f4=_0x24abc8['getFirstRange'](),_0x14aded=_0x3b746b['getFirstRange']();if((0x0==_0x13e9ef||0x1==_0x13e9ef)&&0x2==_0x491980&&_0x2302f4['isIntersecting'](_0x14aded))return!0x0;if(0x2==_0x13e9ef&&0x3==_0x491980){const _0x4e5d5e=_0x591654['_findSuggestions'](_0x2302f4,'insertion')['filter'](({suggestion:_0x439482,meta:_0x2ac00b})=>_0x2ac00b['isOwn']&&'convertInlineImageToBlock'==_0x439482['subType']);if(_0x4e5d5e['length']>0x1&&_0x14aded['end']['isEqual'](_0x2302f4['start']))return!0x0;if(0x1==_0x4e5d5e['length']&&(_0x2302f4['start']['isEqual'](_0x14aded['end'])||_0x2302f4['end']['isEqual'](_0x14aded['start'])))return!0x0;}if(0x3==_0x13e9ef&&0x3==_0x491980&&_0x2302f4['start']['isBefore'](_0x14aded['start'])){const _0x12c2c1=_0x2302f4['end']['nodeAfter'],_0x476301=_0x14aded['start']['nodeBefore'];return _0x15e951['isBlockImage'](_0x12c2c1)&&_0x12c2c1===_0x476301;}return!0x1;}_0x5f5b95['model']['document']['registerPostFixer'](()=>{let _0x304300=!0x1;const _0x175cb7=Array['from'](_0x5f5b95['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x16af45,data:_0x34f1f4}of _0x175cb7){const {group:_0x123a14,type:_0x268684,subType:_0x436524,id:_0x19d833}=_0x475a96(_0x16af45);if('suggestion'==_0x123a14&&_0x591654['hasSuggestion'](_0x19d833)){if('formatBlock'==_0x268684&&('imageStylePreApply'==_0x436524||'imageStylePostApply'==_0x436524)){const _0x5d544e=_0x591654['getSuggestion'](_0x19d833);if(_0x34f1f4['newRange']){const _0x18bae4=_0x5d544e['getFirstRange']()['getContainedElement']();if(_0x15e951['isBlockImage'](_0x18bae4))continue;_0x591654['discardSuggestion'](_0x5d544e),_0x304300=!0x0;}}if('insertion'==_0x268684&&'imageCaption'==_0x436524&&!_0x34f1f4['newRange']){const _0x13495d=_0x591654['getSuggestion'](_0x19d833);_0x13495d['next']&&_0x13495d['next']['isInContent']&&(_0x591654['discardSuggestion'](_0x13495d['next']),_0x304300=!0x0);}}}return _0x304300;}),this['_registerLegacyDescription'](_0x10f92e);}['_registerLegacyDescription'](_0x2a661d){const _0x2b22cf=this['editor'],_0x1badf1=_0x2b22cf['locale'];_0x2b22cf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4d7993=>{if('formatBlock'!=_0x4d7993['type']&&'formatInline'!=_0x4d7993['type'])return;const {data:_0x4ec496}=_0x4d7993;if(!_0x4ec496||'imageStyle'!=_0x4ec496['commandName'])return;const _0x955fab=_0x4ec496['commandParams'][0x0]['value'];return _0x2db263('side'===_0x955fab?At(_0x1badf1,'FORMAT_SIDE_IMAGE'):_0x2a661d[_0x955fab]||_0x955fab);function _0x2db263(_0x15fde9){return{'type':'format','content':At(_0x1badf1,'*Format:*\x20%0',_0x15fde9)};}});}}class oe extends _0x4a3826{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x434a14){super(_0x434a14),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x5158a9=this['editor'],_0x522e09=_0x5158a9['commands']['get']('importWord'),_0x34b81e=_0x5158a9['commands']['get']('trackChanges');_0x522e09&&(_0x522e09['on']('execute',(_0x5eb6a6,[,_0x3de818])=>{this['_trackChangesValueDuringImport']=_0x34b81e['value'],_0x3de818['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x522e09,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x522e09,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x34b81e['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x5158a9['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x46a95e,_0xe88d3c){const {suggestions:_0x467a0a}=_0xe88d3c,_0x1e944a=this['editor']['commands']['get']('trackChanges'),_0x5b8051=_0x1e944a['value'];this['_trackChangesValueDuringImport']!==_0x5b8051&&(_0x1e944a['execute'](),this['_trackChangesExecuted']=!0x0),_0x467a0a&&_0x467a0a['forEach'](({id:_0x543f0e,type:_0x2066b4,author:_0x51d901,created_at:_0x211248})=>{const _0x23942c={'id':_0x543f0e,'type':_0x2066b4,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x51d901,'createdAt':_0x211248?new Date(_0x211248):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x23942c);});}}class ae extends _0x4a3826{['afterInit'](){const _0x4b6e14=this['editor'],_0x5bb6db=_0x4b6e14['plugins']['get']('TrackChangesEditing');if(_0x4b6e14['plugins']['has']('IndentEditing')&&(_0x5bb6db['enableCommand']('indent'),_0x5bb6db['enableCommand']('outdent')),_0x4b6e14['plugins']['has']('IndentBlock')){for(const _0x13fe08 of['indentBlock','outdentBlock'])_0x5bb6db['enableDefaultAttributesIntegration'](_0x13fe08);if(_0x4b6e14['plugins']['has']('ListEditing')){for(const _0x2ec180 of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x5bb6db['enableDefaultAttributesIntegration'](_0x2ec180);}}const _0x5478d4=_0x4b6e14['locale'];_0x5bb6db['descriptionFactory']['registerAttributeLabel']('blockIndent',At(_0x5478d4,'FORMAT_INDENT')),_0x5bb6db['descriptionFactory']['registerAttributeLabel']('blockIndentList',At(_0x5478d4,'FORMAT_INDENT')),_0x5bb6db['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',At(_0x5478d4,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x340a87=this['editor'],_0x2aa1b6=_0x340a87['locale'],_0x26a694=_0x340a87['plugins']['get']('TrackChangesEditing');_0x26a694['descriptionFactory']['registerDescriptionCallback'](_0x1327a7=>{if('formatBlock'!=_0x1327a7['type'])return;const {data:_0x330f7c}=_0x1327a7;if(!_0x330f7c)return;if('indentBlock'!=_0x330f7c['commandName']&&'outdentBlock'!=_0x330f7c['commandName'])return;const _0x47b2df=_0x1327a7['getItems']()[0x0],_0x366b79=_0x26a694['descriptionFactory']['getItemLabel'](_0x47b2df);return'indentBlock'==_0x330f7c['commandName']?{'type':'format','content':At(_0x2aa1b6,'*Indent:*\x20%0',_0x366b79)}:'outdentBlock'==_0x330f7c['commandName']?{'type':'format','content':At(_0x2aa1b6,'*Outdent:*\x20%0',_0x366b79)}:void 0x0;});}}class ce extends _0x4a3826{static get['requires'](){return[ct];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class le extends _0x4a3826{['afterInit'](){const _0x11bcec=this['editor'];if(!_0x11bcec['plugins']['has']('LinkEditing'))return;const _0x45a60f=_0x11bcec['plugins']['get']('TrackChangesEditing'),_0x4bbce8=_0x11bcec['commands']['get']('link');_0x45a60f['enableDefaultAttributesIntegration']('link'),_0x45a60f['enableDefaultAttributesIntegration']('unlink');for(const _0x191a24 of _0x4bbce8['manualDecorators'])_0x45a60f['descriptionFactory']['registerAttributeLabel'](_0x191a24['id'],'link\x20('+_0x191a24['label']['toLowerCase']()+')');_0x45a60f['descriptionFactory']['registerDescriptionCallback'](_0x2f8d15=>{if('attribute'!=_0x2f8d15['type'])return;const {data:_0x22beab}=_0x2f8d15;if(!_0x22beab||'linkHref'!=_0x22beab['key'])return;const _0x516642=_0x22beab['newValue'],_0x420f5a=_0x11bcec['locale'];return{'type':'format','content':null==_0x516642?At(_0x420f5a,'*Remove\x20link*'):At(_0x420f5a,'*Set\x20link:*\x20%0','\x22'+_0x516642+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x20efd4=this['editor'],_0x527e5b=_0x20efd4['locale'];_0x20efd4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x340bd7=>{if('formatInline'!=_0x340bd7['type'])return;const {data:_0x28b235}=_0x340bd7;if(_0x28b235){if('link'==_0x28b235['commandName']){const _0x5a80d6=_0x28b235['commandParams'][0x0];return{'type':'format','content':At(_0x527e5b,'*Set\x20link:*\x20%0','\x22'+_0x5a80d6+'\x22')};}return'unlink'==_0x28b235['commandName']?{'type':'format','content':At(_0x527e5b,'*Remove\x20link*')}:void 0x0;}});}}class ue extends _0x4a3826{['afterInit'](){const _0x5001ac=this['editor'],_0x3a573c=_0x5001ac['locale'];if(!_0x5001ac['plugins']['has']('LegacyListEditing'))return;const _0x11261d=_0x5001ac['plugins']['get']('TrackChangesEditing'),_0xa425f=_0x5001ac['plugins']['has']('LegacyTodoListEditing');function _0x166203(_0x563402){return()=>{const _0x2634b9=_0x5001ac['model']['document']['selection'],_0x402314=_0x5001ac['commands']['get'](_0x563402);if(_0x402314['value'])return void _0x5001ac['execute']('paragraph',{});const _0x5405e0=_0x563402['slice'](0x0,-0x4),_0x4eb206=function(_0x40aab4,_0x6d3cd6,_0x4d2520){let _0xdc8e60=Array['from'](_0x40aab4)['filter'](_0x214c63=>function(_0x24ca0d,_0x4b59be){return _0x4b59be['checkChild'](_0x24ca0d['parent'],'listItem')&&!_0x4b59be['isObject'](_0x24ca0d);}(_0x214c63,_0x4d2520));_0xdc8e60=_0xdc8e60['filter'](_0x53f59a=>!_0x53f59a['is']('element','listItem')||_0x53f59a['getAttribute']('listType')!=_0x6d3cd6);const _0x13623f=new Set();for(const _0x4d7515 of _0xdc8e60)_0x4d7515['is']('element','listItem')?_0x13623f['add'](he(_0x4d7515)):_0x13623f['add'](_0x4d7515);return Array['from'](_0x13623f);}(_0x2634b9['getSelectedBlocks'](),_0x5405e0,_0x5001ac['model']['schema']);_0x5001ac['model']['change'](()=>{for(const _0x3a435b of _0x4eb206)_0x11261d['markBlockFormat'](_0x3a435b,{'commandName':_0x563402,'commandParams':[{'forceValue':!_0x402314['value']}],'formatGroupId':'blockName'},de(_0x3a435b));});};}function _0x5378e8(_0x5c7c1f){return()=>{const _0x3c45ec=function(_0x2addf4){let _0x37d02f=Array['from'](_0x2addf4);const _0xdf9e4a=_0x37d02f['findIndex'](_0xe93745=>'listItem'!=_0xe93745['name']);return _0xdf9e4a>-0x1&&(_0x37d02f=_0x37d02f['slice'](0x0,_0xdf9e4a)),_0x37d02f;}(_0x5001ac['model']['document']['selection']['getSelectedBlocks']()),_0x5c754b=_0x5001ac['model']['createRange'](_0x5001ac['model']['createPositionAt'](_0x3c45ec[0x0],'before'),_0x5001ac['model']['createPositionAt'](_0x3c45ec[_0x3c45ec['length']-0x1],'end'));_0x5001ac['model']['change'](()=>{_0x11261d['markBlockFormat'](_0x5c754b,{'commandName':_0x5c7c1f,'commandParams':[],'formatGroupId':'listIndent'},function(_0x87aa5c){const _0x5b425f=new Set();for(const _0xee727 of _0x87aa5c){let _0x5364c2=_0xee727['nextSibling'];for(;_0x5364c2&&_0x5364c2['getAttribute']('listIndent')>_0xee727['getAttribute']('listIndent');)_0x5b425f['add'](_0x5364c2),_0x5364c2=_0x5364c2['nextSibling'];}return Array['from'](_0x5b425f);}(_0x3c45ec));});};}_0x11261d['enableCommand']('numberedList',_0x166203('numberedList')),_0x11261d['enableCommand']('bulletedList',_0x166203('bulletedList')),_0xa425f&&_0x11261d['enableCommand']('todoList',_0x166203('todoList')),_0x11261d['enableCommand']('indentList',_0x5378e8('indentList')),_0x11261d['enableCommand']('outdentList',_0x5378e8('outdentList')),_0xa425f&&_0x11261d['enableCommand']('checkTodoList',()=>{const _0x5e1dcd=_0x5001ac['commands']['get']('checkTodoList'),_0x4df762=Array['from'](_0x5e1dcd['_selectedElements']);_0x4df762['filter'](_0x652f34=>_0x652f34['getAttribute']('todoListChecked')!=_0x5e1dcd['value']),_0x5001ac['model']['change'](()=>{for(const _0x44c6b3 of _0x4df762)_0x11261d['markBlockFormat'](_0x44c6b3,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x5e1dcd['value']}]});});}),_0x11261d['descriptionFactory']['registerElementLabel']('listItem',_0x45bdf2=>At(_0x3a573c,'ELEMENT_LIST_ITEM',_0x45bdf2)),_0x11261d['descriptionFactory']['registerDescriptionCallback'](_0x378f5b=>{if('formatBlock'!=_0x378f5b['type']&&'formatInline'!=_0x378f5b['type'])return;const {data:_0x115804}=_0x378f5b;if(_0x115804){if('numberedList'==_0x115804['commandName']||'bulletedList'==_0x115804['commandName']||'todoList'==_0x115804['commandName'])switch(_0x115804['commandName']['replace']('List','')){case'bulleted':return _0x4a4369(At(_0x3a573c,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4a4369(At(_0x3a573c,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4a4369(At(_0x3a573c,'ELEMENT_TODO_LIST'));}if('indentList'==_0x115804['commandName'])return{'type':'format','content':At(_0x3a573c,'*Indent:*\x20%0',At(_0x3a573c,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x115804['commandName'])return{'type':'format','content':At(_0x3a573c,'*Outdent:*\x20%0',At(_0x3a573c,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x115804['commandName'])return _0x115804['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x3a573c,'*Check\x20item*')}:{'type':'format','content':At(_0x3a573c,'*Uncheck\x20item*')};}function _0x4a4369(_0x3c4f8f){return{'type':'format','content':At(_0x3a573c,'*Change\x20to:*\x20%0',_0x3c4f8f)};}});}}function he(_0x2305d3){const _0x2cf287=_0x2305d3['getAttribute']('listIndent');if(0x0==_0x2cf287)return _0x2305d3;let _0x35d647=_0x2305d3;for(;_0x2305d3['previousSibling']&&_0x2305d3['previousSibling']['is']('element','listItem');){const _0x28d382=_0x2305d3['previousSibling']['getAttribute']('listIndent');if(_0x28d382==_0x2cf287)_0x35d647=_0x2305d3['previousSibling'];else{if(_0x28d382<_0x2cf287)break;}_0x2305d3=_0x2305d3['previousSibling'];}return _0x35d647;}function de(_0x2f8767){const _0x10d985=[];if(_0x2f8767['is']('element','listItem')&&_0x2f8767['getAttribute']('listIndent')>0x0){let _0x4d6745=_0x2f8767['nextSibling'];for(;_0x4d6745&&'listItem'==_0x4d6745['name']&&_0x4d6745['getAttribute']('listIndent')==_0x2f8767['getAttribute']('listIndent');)_0x10d985['push'](_0x4d6745),_0x4d6745=_0x4d6745['nextSibling'];}return _0x10d985;}class fe extends _0x4a3826{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x21cf16=this['editor']['config']['get']('list.properties'),_0x3a6fe9=this['editor']['plugins']['get']('TrackChangesEditing');_0x21cf16['styles']&&_0x3a6fe9['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x21cf16['reversed']&&_0x3a6fe9['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x21cf16['startIndex']&&_0x3a6fe9['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x3a6fe9['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x360c56,_0x2ca967={}){const _0x517c4f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3db923=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x517c4f['markMultiRangeBlockFormat'](_0x3db923,{'commandName':'listStyle','commandParams':[{'type':_0x2ca967['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x226ade,_0xcf1d5f={}){const _0x1999e5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x129459=this['_getSuggestionBlocks'](_0x48548d=>_0x48548d['is']('element','listItem')&&'numbered'===_0x48548d['getAttribute']('listType'));if(_0x129459['length']<0x1)return;const _0x82fb96=_0x129459['map'](_0x30d611=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x30d611,'before'),this['editor']['model']['createPositionAt'](_0x30d611,0x0)));this['editor']['model']['change'](()=>{_0x1999e5['markMultiRangeBlockFormat'](_0x82fb96,{'commandName':'listReversed','commandParams':[{'reversed':_0xcf1d5f['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x49ee56,_0x2f60dc={}){const _0x1e15a5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1cfcd4=this['_getSuggestionBlocks'](_0x11c1b8=>_0x11c1b8['is']('element','listItem')&&'numbered'===_0x11c1b8['getAttribute']('listType'));if(_0x1cfcd4['length']<0x1)return;const _0x1d1dc1=_0x1cfcd4['map'](_0x11c9a2=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x11c9a2,'before'),this['editor']['model']['createPositionAt'](_0x11c9a2,0x0)));this['editor']['model']['change'](()=>{_0x1e15a5['markMultiRangeBlockFormat'](_0x1d1dc1,{'commandName':'listStart','commandParams':[{'startIndex':_0x2f60dc['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x427fc8){if('formatBlock'!=_0x427fc8['type']&&'formatInline'!=_0x427fc8['type'])return;const _0x580cb4=this['editor']['locale'],{data:_0x1a7df8}=_0x427fc8;if(!_0x1a7df8)return;let _0x81584d,_0x25799d;switch(_0x1a7df8['commandName']){case'listStyle':_0x81584d='*Change\x20to:*\x20%0',_0x25799d={'type':'format','content':At(_0x580cb4,_0x81584d,At(_0x580cb4,this['_getTranslationKeyForListStyle'](_0x1a7df8['commandParams'][0x0]['type'])))};break;case'listReversed':_0x81584d=_0x1a7df8['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x25799d={'type':'format','content':At(_0x580cb4,_0x81584d)};break;case'listStart':_0x81584d='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x25799d={'type':'format','content':At(_0x580cb4,_0x81584d,_0x1a7df8['commandParams'][0x0]['startIndex'])};}return _0x25799d;}['_getSuggestionBlocksForListStyle'](){const _0x235920=this['editor']['plugins']['get']('LegacyListUtils');let _0x1f5c3f=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x1f5c3f[0x0]?.['is']('element','listItem')&&_0x1f5c3f['unshift'](..._0x235920['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x1f5c3f[_0x1f5c3f['length']-0x1]?.['is']('element','listItem')&&_0x1f5c3f['push'](..._0x235920['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x1f5c3f=[...new Set(_0x1f5c3f)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x1f5c3f=_0x1f5c3f['filter'](_0x4fda8a=>_0x4fda8a['is']('element','listItem'))),_0x1f5c3f;}['_getSuggestionBlocks'](_0x2e9771){const _0x2ce9d1=this['editor']['plugins']['get']('LegacyListUtils');let _0x1c27e4=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x2e9771)['map'](_0x4f12d6=>{const _0x445cb4=this['editor']['model']['createPositionAt'](_0x4f12d6,0x0);return[..._0x2ce9d1['getSiblingNodes'](_0x445cb4,'backward'),..._0x2ce9d1['getSiblingNodes'](_0x445cb4,'forward')];})['flat']();return _0x1c27e4=[...new Set(_0x1c27e4)],_0x1c27e4;}['_getTranslationKeyForListStyle'](_0x30f228){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x30f228)||'default')['toUpperCase']()+'_LIST_'+_0x30f228['toUpperCase']()['replace'](/-/g,'_');}}class ge extends _0x4a3826{['afterInit'](){const _0x196737=this['editor'];if(!_0x196737['plugins']['has']('MediaEmbedEditing'))return;const _0x513ec3=_0x196737['plugins']['get']('TrackChangesEditing'),_0x4dc35d=_0x196737['locale'];_0x513ec3['enableCommand']('mediaEmbed'),_0x513ec3['descriptionFactory']['registerElementLabel']('media',_0x11a408=>At(_0x4dc35d,'ELEMENT_MEDIA',_0x11a408));}}class me extends _0x4a3826{['afterInit'](){const _0xa797c5=this['editor'];_0xa797c5['plugins']['has']('MentionEditing')&&_0xa797c5['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class Ee extends _0x4a3826{['afterInit'](){const _0x17e2c1=this['editor'];if(!_0x17e2c1['plugins']['has']('MergeFieldsEditing'))return;const _0x741baf=_0x17e2c1['plugins']['get']('TrackChangesEditing'),_0x462fc1=_0x17e2c1['locale'];_0x741baf['enableCommand']('insertMergeField'),_0x741baf['enableCommand']('insertMergeFieldBlock'),_0x741baf['enableCommand']('insertMergeFieldImage'),_0x741baf['descriptionFactory']['registerElementLabel']('mergeField',_0x3f8f05=>At(_0x462fc1,'ELEMENT_MERGE_FIELD',_0x3f8f05)),_0x741baf['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x2b41b3=>At(_0x462fc1,'ELEMENT_MERGE_FIELD',_0x2b41b3)),_0x741baf['descriptionFactory']['registerDescriptionCallback'](_0x3bf0c8=>{if('insertion'!=_0x3bf0c8['type']&&'deletion'!=_0x3bf0c8['type'])return;const _0x4df089=_0x3bf0c8['getContainedElement']();if(null==_0x4df089)return;const _0x1573a8=_0x17e2c1['plugins']['get']('MergeFieldsEditing');let _0x5e84de;switch(_0x1573a8['getMergeFieldType'](_0x4df089)){case null:return;case'image':{const _0x1ee20d=_0x1573a8['unwrapAffixes'](_0x4df089['getAttribute']('src'));_0x5e84de=_0x1573a8['getLabel'](_0x1ee20d)||_0x1ee20d;break;}default:{const _0x2b1e81=_0x4df089['getAttribute']('id');_0x5e84de=_0x1573a8['getLabel'](_0x2b1e81)||_0x2b1e81;break;}}return'insertion'==_0x3bf0c8['type']?{'type':'insertion','content':At(_0x462fc1,'*Insert:*\x20%0','\x22'+_0x5e84de+'\x22\x20'+At(_0x462fc1,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':At(_0x462fc1,'*Remove:*\x20%0','\x22'+_0x5e84de+'\x22\x20'+At(_0x462fc1,'ELEMENT_MERGE_FIELD'))};});}}class Te extends _0x4a3826{['afterInit'](){const _0x28b92c=this['editor'],_0x57949d=_0x28b92c['plugins']['get']('TrackChangesEditing');_0x28b92c['plugins']['has']('MultiLevelList')&&(_0x57949d['enableDefaultAttributesIntegration']('multiLevelList'),_0x57949d['descriptionFactory']['registerDescriptionCallback'](_0x2fbd15=>this['handleDescriptions'](_0x2fbd15)));}['handleDescriptions'](_0xab5420){const _0x588fc1=this['editor']['locale'],{data:_0x5dbb7b}=_0xab5420,_0x573f00={'type':'format','content':''};if(_0x5dbb7b&&'listMarkerStyle'==_0x5dbb7b['key']){if(!_0x5dbb7b['oldValue'])return{'type':'format','content':At(_0x588fc1,'*Set\x20format:*\x20%0',At(_0x588fc1,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5dbb7b['newValue']+')'};if(!_0x5dbb7b['newValue']){let _0x56a1b2=_0xab5420['head'];for(;_0x56a1b2;){if(_0x56a1b2['data']&&'listType'==_0x56a1b2['data']['key']&&_0x56a1b2['data']['newValue'])return _0x573f00;_0x56a1b2=_0x56a1b2['next'];}return{'type':'format','content':At(_0x588fc1,'*Remove\x20format:*\x20%0',At(_0x588fc1,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5dbb7b['oldValue']+')'};}}}}class _e extends _0x4a3826{['afterInit'](){const _0x10e4d5=this['editor'];if(!_0x10e4d5['plugins']['has']('PageBreakEditing'))return;_0x10e4d5['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x99abff=_0x10e4d5['plugins']['get']('TrackChangesEditing'),_0x4a96d6=_0x10e4d5['locale'];_0x99abff['descriptionFactory']['registerElementLabel']('pageBreak',_0x2c38cc=>At(_0x4a96d6,'ELEMENT_PAGE_BREAK',_0x2c38cc));}}class pe extends _0x4a3826{['afterInit'](){const _0x93cdf9=this['editor'];if(!_0x93cdf9['plugins']['has']('Paragraph'))return;const _0x3733bd=_0x93cdf9['locale'],_0x4bca67=_0x93cdf9['plugins']['get']('TrackChangesEditing');_0x4bca67['descriptionFactory']['registerElementLabel']('paragraph',_0x5d26ac=>At(_0x3733bd,'ELEMENT_PARAGRAPH',_0x5d26ac)),_0x4bca67['enableDefaultAttributesIntegration']('paragraph'),_0x4bca67['enableCommand']('insertParagraph');const _0x4b7905=_0x4bca67['descriptionFactory'];_0x4b7905['registerDescriptionCallback'](_0x58faf8=>{if('insertion'!==_0x58faf8['type'])return;const {start:_0x32ea34,end:_0x3bdd43}=_0x58faf8['getFirstRange']();if(!_0x32ea34['isTouching'](_0x3bdd43)||!_0x32ea34['nodeAfter'])return;const _0x1b4e3d=_0x93cdf9['model']['schema'],_0x5ac904=_0x32ea34['nodeAfter'];return _0x1b4e3d['isBlock'](_0x5ac904)&&!_0x1b4e3d['isLimit'](_0x5ac904)&&_0x1b4e3d['checkChild'](_0x5ac904,'$text')?{'type':'insertion','content':At(_0x3733bd,'*Insert:*\x20%0',_0x4b7905['getItemLabel'](_0x5ac904,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x35e922=this['editor'],_0x43728b=_0x35e922['locale'];_0x35e922['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2cd6fd=>{if('formatBlock'!=_0x2cd6fd['type'])return;const {data:_0x1c5bf1}=_0x2cd6fd;return _0x1c5bf1&&'paragraph'==_0x1c5bf1['commandName']?{'type':'format','content':At(_0x43728b,'*Change\x20to:*\x20%0',At(_0x43728b,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class Le extends _0x4a3826{['afterInit'](){const _0xa67a93=this['editor'];_0xa67a93['commands']['get']('replaceSource')&&_0xa67a93['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class Ie extends _0x4a3826{['afterInit'](){const _0x59118d=this['editor'];if(!_0x59118d['plugins']['has']('RemoveFormatEditing'))return;_0x59118d['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x38ed3d=this['editor'];_0x38ed3d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x36b4ff=>{if('formatBlock'!=_0x36b4ff['type']&&'formatInline'!=_0x36b4ff['type'])return;const {data:_0x2d0716}=_0x36b4ff;return _0x2d0716&&'removeFormat'==_0x2d0716['commandName']?{'type':'format','content':At(_0x38ed3d['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class be extends _0x4a3826{['afterInit'](){const _0x448bd7=this['editor'];if(!_0x448bd7['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x543a76=_0x448bd7['plugins']['get']('TrackChangesEditing');_0x543a76['enableCommand']('goToPreviousRestrictedEditingException'),_0x543a76['enableCommand']('goToNextRestrictedEditingException');const _0x4a12d2=_0x448bd7['plugins']['get']('RestrictedEditingModeEditing');_0x4a12d2['enableCommand']('trackChanges'),_0x4a12d2['enableCommand']('acceptSuggestion'),_0x4a12d2['enableCommand']('discardSuggestion'),_0x4a12d2['enableCommand']('acceptAllSuggestions'),_0x4a12d2['enableCommand']('discardAllSuggestions'),_0x4a12d2['enableCommand']('acceptSelectedSuggestions'),_0x4a12d2['enableCommand']('discardSelectedSuggestions');}}class Ae extends _0x4a3826{['afterInit'](){const _0x3d60bf=this['editor'];if(!_0x3d60bf['plugins']['has']('ShiftEnter'))return;const _0x10f19c=_0x3d60bf['plugins']['get']('TrackChangesEditing');_0x10f19c['enableCommand']('shiftEnter'),_0x10f19c['descriptionFactory']['registerElementLabel']('softBreak',_0x232734=>At(_0x3d60bf['locale'],'ELEMENT_LINE_BREAK',_0x232734));}}function ke(_0x24c7ab,_0x42e028,_0x3e37e9){const _0x5896e1=[];for(const _0xbd6fda of _0x42e028['getItems']())_0xbd6fda['hasAttribute'](_0x24c7ab)&&_0x5896e1['push'](_0x3e37e9['createRangeOn'](_0xbd6fda));return _0x5896e1;}class Ce extends _0x4a3826{['afterInit'](){const _0x1abf02=this['editor'],_0x175694=_0x1abf02['plugins']['get']('TrackChangesEditing');_0x1abf02['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x175694['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x2585c0=this['editor'],_0x4864ff=_0x2585c0['model'],_0x3ad8d=_0x2585c0['locale'],_0x44b80c=_0x2585c0['plugins']['get']('TrackChangesEditing'),_0x2a2fd9='restrictedEditingException',_0x763c6=_0x2585c0['commands']['get'](_0x2a2fd9);_0x44b80c['enableCommand'](_0x2a2fd9,(_0x38ef33,_0x4170d6={})=>{const _0x463fec=_0x4864ff['document']['selection'];if(_0x463fec['isCollapsed'])return void _0x38ef33(_0x4170d6);const _0x3f8dcf=void 0x0!==_0x4170d6['forceValue']?_0x4170d6['forceValue']:!_0x763c6['value'];_0x4864ff['change'](()=>{const _0x32a07a=Array['from'](_0x463fec['getRanges']());for(const _0x42f095 of _0x32a07a){const _0x4d4ddc=_0x3f8dcf?[_0x42f095]:ke(_0x2a2fd9,_0x42f095,_0x4864ff);for(const _0x1f1723 of _0x4d4ddc)_0x44b80c['markInlineFormat'](_0x1f1723,{'commandName':_0x2a2fd9,'commandParams':[{'forceValue':_0x3f8dcf}]});}});}),_0x44b80c['descriptionFactory']['registerDescriptionCallback'](_0x2311b2=>{if('formatBlock'!=_0x2311b2['type']&&'formatInline'!=_0x2311b2['type'])return;const {data:_0x51e80}=_0x2311b2;return _0x51e80&&_0x51e80['commandName']==_0x2a2fd9?_0x51e80['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x3ad8d,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':At(_0x3ad8d,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x510e57=this['editor'],_0xf5d262=_0x510e57['locale'],_0x4277c9=_0x510e57['plugins']['get']('TrackChangesEditing'),_0x359281='restrictedEditingExceptionBlock',_0x5624c1=this['editor']['commands']['get'](_0x359281);_0x4277c9['enableCommand'](_0x359281,(_0x4dd232,_0x241550={})=>{const _0x3523b5=this['editor']['model']['document']['selection'],_0x33c566=_0x241550&&void 0x0!==_0x241550['forceValue']?_0x241550['forceValue']:!_0x5624c1['value'];let _0x2dfefc=[];if(_0x33c566){const _0x4af375=Array['from'](_0x3523b5['getSelectedBlocks']())['filter'](_0x46a439=>function(_0xd38275){return!!_0xd38275['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x46a439)||function(_0x497258,_0x18a9b0){const _0x5187a4=_0x18a9b0['createContext'](_0x497258['parent']);if(!_0x18a9b0['checkChild'](_0x5187a4,'restrictedEditingException'))return!0x1;if(!_0x18a9b0['checkChild'](_0x5187a4['push']('restrictedEditingException'),_0x497258))return!0x1;return!0x0;}(_0x46a439,this['editor']['model']['schema']));_0x2dfefc=Tt(_0x4af375,_0x510e57['model']);}else{const _0x200a73=Array['from'](_0x3523b5['getSelectedBlocks']())['map'](_0x193d67=>function(_0x172ed7){let _0x1fbf2e=_0x172ed7;for(;_0x1fbf2e['parent'];){if('restrictedEditingException'==_0x1fbf2e['parent']['name'])return _0x1fbf2e;_0x1fbf2e=_0x1fbf2e['parent'];}return null;}(_0x193d67))['filter'](_0x982539=>!!_0x982539);_0x2dfefc=Tt(_0x200a73,_0x510e57['model']);}_0x510e57['model']['change'](()=>{for(const _0x162621 of _0x2dfefc)_0x4277c9['markBlockFormat'](_0x162621,{'commandName':_0x359281,'commandParams':[{'forceValue':_0x33c566}]});});}),_0x4277c9['descriptionFactory']['registerDescriptionCallback'](_0x398930=>{const {data:_0x5df82b}=_0x398930;if(_0x5df82b&&_0x5df82b['commandName']==_0x359281)return _0x5df82b['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0xf5d262,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':At(_0xf5d262,'FORMAT_RESTRICTED_DISABLED')};});}}class ye extends _0x4a3826{['afterInit'](){const _0x2b3025=this['editor'];if(!_0x2b3025['plugins']['has']('Style')||!_0x2b3025['plugins']['has']('DataSchema'))return;const _0x1d600c=_0x2b3025['plugins']['get']('TrackChangesEditing'),_0x308009=_0x2b3025['locale'],_0x15d8db=_0x2b3025['config']['get']('style')||{},_0x21fa20=_0x2b3025['plugins']['get']('GeneralHtmlSupport'),_0x180a19=_0x2b3025['plugins']['get']('StyleUtils')['normalizeConfig'](_0x2b3025['plugins']['get']('DataSchema'),_0x15d8db['definitions']);_0x1d600c['enableDefaultAttributesIntegration']('style');const _0x4ce60b=new Set();for(const _0x1d17f0 of _0x180a19['block']){const _0x701348=_0x21fa20['getGhsAttributeNameForElement'](_0x1d17f0['element']);_0x4ce60b['add'](_0x701348);}const _0x1bcd23=new Set();for(const _0x22f617 of _0x180a19['inline']){const _0x75eaf2=_0x21fa20['getGhsAttributeNameForElement'](_0x22f617['element']);_0x1bcd23['add'](_0x75eaf2);for(const _0x38a5df of _0x22f617['ghsAttributes'])_0x1bcd23['add'](_0x38a5df);}for(const _0x15f0a4 of _0x4ce60b)_0x1d600c['descriptionFactory']['registerAttributeLabel'](_0x15f0a4,At(_0x308009,'FORMAT_STYLE'));for(const _0x1aff58 of _0x1bcd23)_0x1d600c['descriptionFactory']['registerAttributeLabel'](_0x1aff58,At(_0x308009,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2f1098=this['editor'],_0x1e93a4=_0x2f1098['locale'];_0x2f1098['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1ea59a=>{if('formatBlock'!=_0x1ea59a['type']&&'formatInline'!=_0x1ea59a['type'])return;const {data:_0x3c3a46}=_0x1ea59a;return _0x3c3a46&&'style'===_0x3c3a46['commandName']?_0x3c3a46['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x1e93a4,'*Set\x20format:*\x20%0',_0x3c3a46['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':At(_0x1e93a4,'*Remove\x20format:*\x20%0',_0x3c3a46['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ne extends _0x4a3826{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x4a7b18){super(_0x4a7b18),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x5791d5=this['editor'],_0x324b92=_0x5791d5['model']['document']['selection'];if(!_0x5791d5['plugins']['has']('TableEditing'))return;const _0x244679=_0x5791d5['locale'],_0x5f1220=_0x5791d5['plugins']['get']('TrackChangesEditing'),_0x28c6f6=_0x5791d5['plugins']['get']('TableUtils');_0x5f1220['descriptionFactory']['registerElementLabel']('table',_0x51977f=>At(_0x244679,'ELEMENT_TABLE',_0x51977f)),this['_setupColumnsRowsFixing'](),_0x5f1220['enableCommand']('insertTable'),_0x5f1220['enableCommand']('selectTableRow'),_0x5f1220['enableCommand']('selectTableColumn');for(const _0x15c31f of['insertTableRowAbove','insertTableRowBelow']){const _0x1243ad=_0x5791d5['commands']['get'](_0x15c31f);_0x5f1220['enableCommand'](_0x15c31f,_0x33e615=>{_0x5791d5['model']['change'](_0x3f2697=>{_0x33e615();const _0x3ebd2c='above'===_0x1243ad['order'],_0x1bb9b6=_0x28c6f6['getSelectionAffectedTableCells'](_0x324b92),_0xff8310=_0x28c6f6['getRowIndexes'](_0x1bb9b6),_0x1f1d92=_0x3ebd2c?_0xff8310['first']-0x1:_0xff8310['last']+0x1,_0x13a4b3=_0x1bb9b6[0x0]['findAncestor']('table'),_0x2ccaf8=_0x28c6f6['createTableWalker'](_0x13a4b3,{'startRow':_0x1f1d92,'endRow':_0x1f1d92}),_0x56f566=Array['from'](_0x2ccaf8)['map'](_0x45f91e=>_0x3f2697['createRangeOn'](_0x45f91e['cell']));_0x5f1220['markMultiRangeInsertion'](_0x56f566,'tableRow');});});}for(const _0x222e2e of['insertTableColumnLeft','insertTableColumnRight']){const _0x5d61f6=_0x5791d5['commands']['get'](_0x222e2e);_0x5f1220['enableCommand'](_0x222e2e,_0x5b345c=>{_0x5791d5['model']['change'](_0x3c05a7=>{_0x5b345c();const _0xc1dcfc='left'===_0x5d61f6['order'],_0x4a8d25=_0x28c6f6['getSelectionAffectedTableCells'](_0x324b92),_0x508782=_0x28c6f6['getColumnIndexes'](_0x4a8d25),_0x1c5076=_0xc1dcfc?_0x508782['first']-0x1:_0x508782['last']+0x1,_0x119bf2=_0x4a8d25[0x0]['findAncestor']('table'),_0x14c7df=_0x28c6f6['createTableWalker'](_0x119bf2,{'startRow':0x0,'column':_0x1c5076,'includeAllSlots':!0x1}),_0x37789f=Array['from'](_0x14c7df)['map'](_0x4a53e9=>_0x3c05a7['createRangeOn'](_0x4a53e9['cell']));_0x5f1220['markMultiRangeInsertion'](_0x37789f,'tableColumn');});});}for(const _0x31bc96 of['removeTableRow','removeTableColumn']){const _0x6f8f4d=_0x31bc96['substr'](0xb),_0x440ee1=_0x6f8f4d['toLowerCase'](),_0x4cd156=_0x440ee1['substr'](0x0,0x3)+'span',_0x1f86cd='table'+_0x6f8f4d,_0xdc2c3b='min'+_0x6f8f4d,_0x2a9e8b='max'+_0x6f8f4d;_0x5f1220['enableCommand'](_0x31bc96,()=>{_0x5791d5['model']['change'](_0x4347f5=>{const _0x5b56af=_0x28c6f6['getSelectionAffectedTableCells'](_0x324b92),_0x5475c9=_0x5b56af[0x0]['findAncestor']('table');let _0x2e260d;if('removeTableRow'==_0x31bc96){const _0xb50c39=_0x28c6f6['getRowIndexes'](_0x5b56af);_0x2e260d={'startRow':_0xb50c39['first'],'endRow':_0xb50c39['last'],'includeAllSlots':!0x0};}else{const _0x493ff0=_0x28c6f6['getColumnIndexes'](_0x5b56af);_0x2e260d={'startColumn':_0x493ff0['first'],'endColumn':_0x493ff0['last'],'includeAllSlots':!0x0};}const _0x268a45=_0x28c6f6['createTableWalker'](_0x5475c9,_0x2e260d),_0x441798=Array['from'](_0x268a45)['map'](({cell:_0xdf1067})=>_0xdf1067),_0x588eda=Re(_0x441798['filter'](_0x449dc0=>_0x449dc0['hasAttribute'](_0x4cd156))),_0x13fc91=Re(_0x441798['filter'](_0x46d49c=>!_0x46d49c['hasAttribute'](_0x4cd156)))['map'](_0x571a2b=>_0x4347f5['createRangeOn'](_0x571a2b)),_0x1f33f0=_0x5f1220['markMultiRangeDeletion'](_0x13fc91,_0x1f86cd);if(_0x1f33f0&&('tableRow'==_0x1f33f0['subType']||'tableColumn'==_0x1f33f0['subType'])){const _0x1005fa=this['_getSuggestionCoords'](_0x1f33f0);for(const _0x318dca of _0x588eda){const _0x5e2107=_0x4347f5['createRangeOn'](_0x318dca),_0x4c4641=_0x28c6f6['getCellLocation'](_0x318dca),_0x9d64bb=_0x318dca['getAttribute'](_0x4cd156)-0x1,_0x195f2c=_0x1005fa[_0xdc2c3b],_0x5a9c55=_0x1005fa[_0x2a9e8b];_0x195f2c<=_0x4c4641[_0x440ee1]&&_0x4c4641[_0x440ee1]+_0x9d64bb<=_0x5a9c55&&_0x1f33f0['addRange'](_0x5e2107);}}});});}function _0x2d81a3(_0x1bfad1){const _0x578447=Array['from'](_0x324b92['getRanges']())['map'](_0x3158b7=>_0x4f8349['fromRange'](_0x3158b7));_0x5791d5['model']['change'](_0x43bd6a=>{const _0x40c65d=_0x43bd6a['batch'];_0x1bfad1=_0x1bfad1['filter'](_0x18ce68=>'$graveyard'!=_0x18ce68['root']['rootName']),_0x43bd6a['setSelection'](_0x1bfad1),_0x5791d5['commands']['get']('removeTableRow')['refresh'](),_0x5791d5['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x5791d5['model']['enqueueChange'](()=>{_0x5791d5['model']['enqueueChange'](_0x40c65d,_0x5b9dae=>{const _0x1f7738=_0x578447['filter'](_0x128a43=>'$graveyard'!=_0x128a43['root']['rootName']);_0x1f7738['length']>0x0&&_0x5b9dae['setSelection'](_0x1f7738);for(const _0x52d4fe of _0x578447)_0x52d4fe['detach']();});});});}function _0x3c500d(_0x4bb06d){_0x5791d5['model']['change'](_0x5db08a=>{const _0x242713=Array['from'](_0x324b92['getRanges']())['map'](_0xb34ce6=>_0x4f8349['fromRange'](_0xb34ce6)),_0x13f809=[];for(const _0x43a251 of _0x4bb06d)for(const _0x51f0bf of _0x43a251['getItems']({'shallow':!0x0}))_0x13f809['push'](_0x51f0bf);for(const _0x3640e3 of _0x13f809)'$graveyard'!=_0x3640e3['root']['rootName']&&(_0x5db08a['setSelection'](_0x5db08a['createPositionAt'](_0x3640e3,0x0)),_0x5791d5['commands']['get']('removeTableColumn')['refresh'](),_0x5791d5['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x153fcd=_0x242713['filter'](_0x192386=>'$graveyard'!=_0x192386['root']['rootName']);_0x153fcd['length']>0x0&&_0x5db08a['setSelection'](_0x153fcd);for(const _0x574216 of _0x242713)_0x574216['detach']();});}function _0x5c9c6c(_0x3ce976,_0x541505){return _0x541505['every'](_0xadc429=>_0x3ce976['some'](_0x50eb29=>_0x50eb29['end']['isEqual'](_0xadc429['start'])||_0xadc429['end']['isEqual'](_0x50eb29['start'])));}function _0x29f762(_0x10de60,_0x11c03d){return!_0x10de60['some'](_0x30f371=>_0x11c03d['some'](_0x42c8fe=>_0x30f371['isIntersecting'](_0x42c8fe)))&&_0x10de60['some'](_0x4b6688=>_0x11c03d['some'](_0x5eef94=>_0x4b6688['end']['isTouching'](_0x5eef94['start'])));}_0x5f1220['descriptionFactory']['registerDescriptionCallback'](_0x2872a5=>{if('insertion'!=_0x2872a5['type']&&'deletion'!=_0x2872a5['type'])return;const _0xccc822=_0x2872a5['getContainedElement']();if(null!=_0xccc822&&_0xccc822['is']('element','table')){if('insertion'==_0x2872a5['type']){const _0x5b9c43=_0x2872a5['getItems']()['filter'](_0x510eb5=>_0x510eb5['is']('$textProxy'))['map'](_0x505413=>_0x505413['data']);if(_0x5b9c43['length'])return{'type':'insertion','content':At(_0x244679,'*Insert:*\x20%0',At(_0x244679,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5b9c43['join']('\x20')+'\x22'))};}if('deletion'==_0x2872a5['type']){const _0x57e146=_0x2872a5['getItems']()['filter'](_0xce433e=>_0xce433e['is']('$textProxy'))['map'](_0x3e2002=>_0x3e2002['data']);if(_0x57e146['length'])return{'type':'deletion','content':At(_0x244679,'*Remove:*\x20%0',At(_0x244679,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x57e146['join']('\x20')+'\x22'))};}}}),_0x5f1220['descriptionFactory']['registerDescriptionCallback'](_0x550adc=>{if('tableRow'==_0x550adc['subType']){const _0x1367c6=_0x550adc['getItems']()['filter'](_0x30339d=>_0x30339d['is']('$textProxy'))['map'](_0x275b33=>_0x275b33['data']),_0x2c57eb=this['_getSuggestionCoords'](_0x550adc),_0x1f4ac=_0x2c57eb['maxRow']-_0x2c57eb['minRow']+0x1;if('insertion'==_0x550adc['type'])return _0x1367c6['length']?{'type':'insertion','content':At(_0x244679,'*Insert:*\x20%0',At(_0x244679,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1f4ac,'\x22'+_0x1367c6['join']('\x20')+'\x22']))}:{'type':'insertion','content':At(_0x244679,'*Insert:*\x20%0',At(_0x244679,'ELEMENT_TABLE_ROW',_0x1f4ac))};if('deletion'==_0x550adc['type'])return _0x1367c6['length']?{'type':'deletion','content':At(_0x244679,'*Remove:*\x20%0',At(_0x244679,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1f4ac,'\x22'+_0x1367c6['join']('\x20')+'\x22']))}:{'type':'deletion','content':At(_0x244679,'*Remove:*\x20%0',At(_0x244679,'ELEMENT_TABLE_ROW',_0x1f4ac))};}if('tableColumn'==_0x550adc['subType']){const _0x53ab23=_0x550adc['getItems']()['filter'](_0x2bf42a=>_0x2bf42a['is']('$textProxy'))['map'](_0xf425a=>_0xf425a['data']),_0x54935a=this['_getSuggestionCoords'](_0x550adc),_0x109e8=_0x54935a['maxColumn']-_0x54935a['minColumn']+0x1;if('insertion'==_0x550adc['type'])return _0x53ab23['length']?{'type':'insertion','content':At(_0x244679,'*Insert:*\x20%0',At(_0x244679,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x109e8,'\x22'+_0x53ab23['join']('\x20')+'\x22']))}:{'type':'insertion','content':At(_0x244679,'*Insert:*\x20%0',At(_0x244679,'ELEMENT_TABLE_COLUMN',_0x109e8))};if('deletion'==_0x550adc['type'])return _0x53ab23['length']?{'type':'deletion','content':At(_0x244679,'*Remove:*\x20%0',At(_0x244679,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x109e8,'\x22'+_0x53ab23['join']('\x20')+'\x22']))}:{'type':'deletion','content':At(_0x244679,'*Remove:*\x20%0',At(_0x244679,'ELEMENT_TABLE_COLUMN',_0x109e8))};}}),_0x5f1220['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2d81a3),_0x5f1220['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2d81a3),_0x5f1220['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x3c500d),_0x5f1220['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x3c500d),_0x5f1220['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x5c9c6c),_0x5f1220['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x5c9c6c),_0x5f1220['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x29f762),_0x5f1220['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x29f762);}['_acceptFormatSuggestionCallbackFactory'](){const _0x24a1b8=this['editor'],_0x4c0f5e=_0x24a1b8['model']['document']['selection'];return(_0x36a185,_0x2668c6)=>{_0x24a1b8['model']['change'](_0x57e183=>{const {commandName:_0x509765,commandParams:_0x19d3e6}=_0x2668c6;let _0x2831ab=_0x36a185[0x0]['end']['nodeBefore'];_0x19d3e6&&_0x19d3e6[0x0]&&!0x1===_0x19d3e6[0x0]['forceValue']&&(_0x2831ab=_0x36a185[0x0]['start']['nodeAfter']);const _0x475c16=_0x57e183['createRangeIn'](_0x2831ab);if('$graveyard'==_0x475c16['root']['rootName'])return;const _0x3d8ff2=Array['from'](_0x4c0f5e['getRanges']())['map'](_0x52d8ed=>_0x4f8349['fromRange'](_0x52d8ed));_0x57e183['setSelection'](_0x475c16),_0x24a1b8['commands']['get'](_0x509765)['refresh'](),_0x19d3e6['push']({'forceDefaultExecution':!0x0}),_0x24a1b8['execute'](_0x509765,..._0x19d3e6);const _0x3d586c=_0x3d8ff2['filter'](_0x1a5e7e=>'$graveyard'!=_0x1a5e7e['root']['rootName']);_0x3d586c['length']>0x0&&_0x57e183['setSelection'](_0x3d586c);for(const _0x1e26d1 of _0x3d8ff2)_0x1e26d1['detach']();});};}['_getCoordsForCells'](_0x5afbc5){const _0x2ba56b=this['editor']['plugins']['get']('TableUtils');let _0x4ac90d=Number['MAX_SAFE_INTEGER'],_0x28b75e=Number['MIN_SAFE_INTEGER'],_0x1de8d2=Number['MAX_SAFE_INTEGER'],_0x2cf869=Number['MIN_SAFE_INTEGER'];for(const _0x13f09a of _0x5afbc5){if('$graveyard'==_0x13f09a['root']['rootName'])continue;const {row:_0x22ce02,column:_0x6127dd}=_0x2ba56b['getCellLocation'](_0x13f09a),_0x33637f=_0x13f09a['hasAttribute']('rowspan')?_0x13f09a['getAttribute']('rowspan')-0x1:0x0,_0x2bbbb1=_0x13f09a['hasAttribute']('colspan')?_0x13f09a['getAttribute']('colspan')-0x1:0x0;_0x4ac90d=_0x22ce02<_0x4ac90d?_0x22ce02:_0x4ac90d,_0x28b75e=_0x22ce02+_0x33637f>_0x28b75e?_0x22ce02+_0x33637f:_0x28b75e,_0x1de8d2=_0x6127dd<_0x1de8d2?_0x6127dd:_0x1de8d2,_0x2cf869=_0x6127dd+_0x2bbbb1>_0x2cf869?_0x6127dd+_0x2bbbb1:_0x2cf869;}return{'minRow':_0x4ac90d,'maxRow':_0x28b75e,'minColumn':_0x1de8d2,'maxColumn':_0x2cf869};}['_setupColumnsRowsFixing'](){const _0x3af3da=this['editor'],_0x2b0052=_0x3af3da['plugins']['get']('TrackChangesEditing'),_0xba9165=_0x3af3da['plugins']['get']('TableUtils');_0x3af3da['model']['document']['on']('change:data',()=>{const _0x1ee4b6=Array['from'](_0x3af3da['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2d6618,data:_0x786806}of _0x1ee4b6){const {group:_0x314cba,id:_0x26dacc,subType:_0x544db4}=_0x475a96(_0x2d6618);if('suggestion'!=_0x314cba)continue;if(null!=_0x786806['oldRange'])continue;const _0x5eedec=_0x2b0052['getSuggestion'](_0x26dacc);this['_tablePostFixingSubtypes']['includes'](_0x544db4)&&this['_tableSuggestions']['add'](_0x5eedec);}},{'priority':'low'});const _0x2eccbb=(_0x336922,_0x4a12bf)=>{let _0x461db1=!0x1;const _0x268d19=_0x4a12bf['createRangeOn'](_0x336922),_0x19ee63=_0x336922['findAncestor']('table'),_0x1be8e6=_0xba9165['getCellLocation'](_0x336922);for(const _0x505c2d of this['_tableSuggestions']){const _0x4486c5=_0x505c2d['subType'],_0x5ac576=_0x4486c5['startsWith']('tablePaste'),_0x3678d4=_0x4486c5['substr'](_0x5ac576?0xa:0x5),_0x8c6039=_0x3678d4['toLowerCase'](),_0x5da801=_0x8c6039['substr'](0x0,0x3)+'span',_0x21980f='min'+_0x3678d4,_0x558739='max'+_0x3678d4;if(!_0x505c2d['isInContent'])continue;if(_0x19ee63!=_0x505c2d['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x505c2d['isIntersectingWithRange'](_0x268d19))continue;const _0x20fd7a=_0x336922['hasAttribute'](_0x5da801)?_0x336922['getAttribute'](_0x5da801)-0x1:0x0,_0x4735d6=this['_getSuggestionCoords'](_0x505c2d),_0x5ece45=_0x4735d6[_0x21980f],_0x385375=_0x4735d6[_0x558739];_0x5ece45<=_0x1be8e6[_0x8c6039]&&_0x1be8e6[_0x8c6039]+_0x20fd7a<=_0x385375&&(_0x505c2d['addRange'](_0x268d19),_0x461db1=!0x0);}return _0x461db1;};_0x3af3da['model']['document']['registerPostFixer'](_0x2a061b=>{let _0x5c415e=!0x1;for(const _0x358239 of _0x3af3da['model']['document']['differ']['getChanges']())if('insert'==_0x358239['type']){if('tableRow'==_0x358239['name']){for(const _0x4ff126 of _0x358239['position']['nodeAfter']['getChildren']())_0x5c415e=_0x5c415e||_0x2eccbb(_0x4ff126,_0x2a061b);}else'tableCell'==_0x358239['name']&&(_0x5c415e=_0x5c415e||_0x2eccbb(_0x358239['position']['nodeAfter'],_0x2a061b));}return _0x5c415e;});}['_getSuggestionCoords'](_0x12b647){return this['_getCoordsForCells'](_0x12b647['getRanges']()['map'](_0x33692e=>_0x33692e['start']['nodeAfter']));}}function Re(_0x4ddeb8){return Array['from'](new Set(_0x4ddeb8)['values']());}class Se extends _0x4a3826{static get['requires'](){return[Ne];}['afterInit'](){const _0xe6d2e8=this['editor'],_0x2f35ad=_0xe6d2e8['model']['document']['selection'],_0x511ea5=_0xe6d2e8['locale'];if(!_0xe6d2e8['plugins']['has']('TableEditing'))return;const _0x541761=_0xe6d2e8['plugins']['get']('TrackChangesEditing'),_0x10af8d=_0xe6d2e8['plugins']['get']('TableUtils'),_0x21f918=_0xe6d2e8['plugins']['get'](Ne);_0x21f918['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x541761['enableCommand']('mergeTableCells',()=>{const _0x5b3a29=_0x10af8d['getSelectionAffectedTableCells'](_0xe6d2e8['model']['document']['selection']);_0xe6d2e8['model']['change'](()=>{_0x541761['markMultiRangeBlockFormat'](_0x5b3a29,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0xe6d2e8['commands']['get']('mergeTableCells')['on']('execute',(_0x1aa34d,_0x4535f7)=>{_0xe6d2e8['commands']['get']('trackChanges')['value']&&(_0x4535f7['length']>0x0&&_0x4535f7[_0x4535f7['length']-0x1]&&_0x4535f7[_0x4535f7['length']-0x1]['forceDefaultExecution']||_0x541761['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x1aa34d['stop']());},{'priority':'highest'});for(const _0x509c9c of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x1b820c=_0xe6d2e8['commands']['get'](_0x509c9c);_0x541761['enableCommand'](_0x509c9c,()=>{const _0x2bc9c4=_0xe6d2e8['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x19c9a7=>_0x19c9a7['is']('element','tableCell')),_0x508f87=_0x1b820c['value'];_0xe6d2e8['model']['change'](()=>{_0x541761['markMultiRangeBlockFormat']([_0x2bc9c4,_0x508f87],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x3d8e25 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x4234e4=_0xe6d2e8['commands']['get'](_0x3d8e25);_0x541761['enableCommand'](_0x3d8e25,()=>{const _0x1a4f93=_0x10af8d['getSelectionAffectedTableCells'](_0xe6d2e8['model']['document']['selection'])[0x0],_0x46bdd0=_0x1a4f93['findAncestor']('table'),{column:_0x562ba1,row:_0x158c0a}=_0x10af8d['getCellLocation'](_0x1a4f93);let _0x23e679=[];if('horizontally'==_0x4234e4['direction']){const _0x3d93bc=_0x10af8d['createTableWalker'](_0x46bdd0,{'startRow':_0x158c0a,'endRow':_0x158c0a,'includeAllSlots':!0x0});_0x23e679=Array['from'](_0x3d93bc)['map'](_0x203d1f=>_0x203d1f['cell']);}else{const _0x8aead2=_0x10af8d['createTableWalker'](_0x46bdd0,{'column':_0x562ba1,'includeAllSlots':!0x0});_0x23e679=Array['from'](_0x8aead2)['map'](_0x220bb0=>_0x220bb0['cell']);}_0xe6d2e8['model']['change'](_0x11d868=>{_0x541761['markBlockFormat'](_0x11d868['createRangeOn'](_0x1a4f93),{'commandName':_0x3d8e25,'commandParams':[]},_0x23e679,_0x3d8e25);});});}_0x541761['descriptionFactory']['registerDescriptionCallback'](_0x413977=>{if('formatBlock'!=_0x413977['type']&&'formatInline'!=_0x413977['type'])return;const {data:_0x2a3d34}=_0x413977;return _0x2a3d34&&'mergeTableCells'==_0x2a3d34['commandName']?{'type':'format','content':At(_0x511ea5,'*Merge\x20cells*')}:void 0x0;}),_0x541761['descriptionFactory']['registerDescriptionCallback'](_0x463855=>{if('formatBlock'!=_0x463855['type']&&'formatInline'!=_0x463855['type'])return;const {data:_0xdeccfe}=_0x463855;return _0xdeccfe?'splitTableCellVertically'==_0xdeccfe['commandName']?{'type':'format','content':At(_0x511ea5,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0xdeccfe['commandName']?{'type':'format','content':At(_0x511ea5,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x488260=_0x21f918['_acceptFormatSuggestionCallbackFactory']();for(const _0x3b1b95 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x541761['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3b1b95,'accept',_0x488260);for(const _0x56ddb9 of['splitTableCellVertically','splitTableCellHorizontally'])_0x541761['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x56ddb9,'accept',_0x488260);_0x541761['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x45c3b5=>{_0xe6d2e8['model']['change'](_0x421934=>{const _0x401bf3=Array['from'](_0x2f35ad['getRanges']())['map'](_0x42050f=>_0x4f8349['fromRange'](_0x42050f));_0x421934['setSelection'](_0x45c3b5),_0xe6d2e8['commands']['get']('mergeTableCells')['refresh'](),_0xe6d2e8['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x22faa5=_0x401bf3['filter'](_0x1d6887=>'$graveyard'!=_0x1d6887['root']['rootName']);_0x22faa5['length']>0x0&&_0x421934['setSelection'](_0x22faa5);for(const _0x4bf71a of _0x401bf3)_0x4bf71a['detach']();});});for(const _0x573aba of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x2f08c6=_0xe6d2e8['commands']['get'](_0x573aba);_0x2f08c6['on']('set:isEnabled',(_0x134bcc,_0x5dc546,_0x50a356)=>{if(_0x50a356){const _0xbdb7a5=_0xe6d2e8['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x37c36c=>_0x37c36c['is']('element','tableCell'));this['_areMergableCells'](_0x2f08c6['value'],_0xbdb7a5)||(_0x134bcc['return']=!0x1,_0x134bcc['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x37a9f0=this['editor']['commands']['get']('mergeTableCells'),_0x437a32=this['editor']['plugins']['get']('TableUtils');if(!_0x37a9f0['isEnabled'])return!0x1;const _0x26b031=_0x437a32['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x41a7d2 of _0x26b031)for(const _0x13d049 of _0x26b031)if(_0x41a7d2!=_0x13d049&&!this['_areMergableCells'](_0x41a7d2,_0x13d049))return!0x1;return!0x0;}['_areMergableCells'](_0x57c991,_0x5d3edc){const _0x179d2f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1e7b01=this['editor']['model']['createRangeOn'](_0x57c991),_0x2f2626=this['editor']['model']['createRangeOn'](_0x5d3edc),_0x38a1e5=new Set(),_0x509ee4=new Set();for(const _0x2c4f56 of _0x179d2f['getSuggestions']())if(('insertion'==_0x2c4f56['type']||'deletion'==_0x2c4f56['type']||'mergeTableCells'==_0x2c4f56['subType'])&&_0x2c4f56['isInContent']){for(const _0x2e7a1e of _0x2c4f56['getRanges']())_0x2e7a1e['containsRange'](_0x1e7b01,!0x0)&&_0x38a1e5['add'](_0x2c4f56['type']+':'+_0x2c4f56['author']['id']),_0x2e7a1e['containsRange'](_0x2f2626,!0x0)&&_0x509ee4['add'](_0x2c4f56['type']+':'+_0x2c4f56['author']['id']);}if(_0x38a1e5['size']!=_0x509ee4['size'])return!0x1;for(const _0x1c81cd of _0x38a1e5)if(!_0x509ee4['has'](_0x1c81cd))return!0x1;return!0x0;}}class Me extends _0x4a3826{static get['requires'](){return[Ne];}['afterInit'](){const _0x14ac16=this['editor'];if(!_0x14ac16['plugins']['has']('TableEditing'))return;const _0x423fdb=_0x14ac16['locale'],_0x3b8d13=_0x14ac16['plugins']['get']('TrackChangesEditing');_0x3b8d13['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x3b8d13['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x3b8d13['descriptionFactory']['registerAttributeLabel']('headingRows',At(_0x423fdb,'FORMAT_HEADER_ROW')),_0x3b8d13['descriptionFactory']['registerAttributeLabel']('headingColumns',At(_0x423fdb,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5ecd94=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3ca207=this['editor']['plugins']['get'](Ne)['_acceptFormatSuggestionCallbackFactory']();_0x5ecd94['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x3ca207),_0x5ecd94['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x3ca207),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0xa09b8e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4c4875=this['editor']['plugins']['get']('TableUtils');function _0x1f25c({showActiveMarker:_0x13da08=!0x0,setDataAttribute:_0x107db9=!0x0}={}){return(_0x2025bb,_0x48a0da,_0x20100b)=>{const {type:_0x336413,id:_0x8d2331}=_0x475a96(_0x48a0da['markerName']);if(!_0xa09b8e['hasSuggestion'](_0x8d2331))return;const _0x44c9eb=_0xa09b8e['getSuggestion'](_0x8d2331),_0x3691fe=_0x44c9eb['data'];if('formatBlock'!=_0x44c9eb['type']||!_0x3691fe||'setTableColumnHeader'!=_0x3691fe['commandName'])return;if(_0x48a0da['item'])return void _0x2025bb['stop']();if(!_0x20100b['consumable']['consume'](_0x48a0da['markerRange'],_0x2025bb['name']))return;const _0x25fd11=_0x48a0da['markerRange']['start']['nodeAfter'],_0x375b13=_0x48a0da['markerRange']['end']['nodeBefore'],_0x1d007a=_0x25fd11['parent']['parent'],{column:_0x329b94}=_0x4c4875['getCellLocation'](_0x25fd11),{column:_0x1e81a1}=_0x4c4875['getCellLocation'](_0x375b13);for(let _0x119292=_0x329b94;_0x119292<=_0x1e81a1;_0x119292++){const _0x3a5a36=_0x4c4875['createTableWalker'](_0x1d007a,{'column':_0x119292,'includeAllSlots':!0x1});for(const _0x20ac6a of _0x3a5a36){const _0x6bf4e8=_0x20ac6a['cell'],_0x2826dd=_0x20100b['mapper']['toViewElement'](_0x6bf4e8);_0x20100b['writer']['addClass']('ck-suggestion-marker-'+_0x336413,_0x2826dd),_0x107db9&&_0x20100b['writer']['setAttribute']('data-suggestion',_0x8d2331,_0x2826dd),_0x20100b['mapper']['bindElementToMarker'](_0x2826dd,_0x48a0da['markerName']),_0x13da08&&(_0xa09b8e['activeMarkers']['includes'](_0x48a0da['markerName'])?_0x20100b['writer']['addClass']('ck-suggestion-marker--active',_0x2826dd):_0x20100b['writer']['removeClass']('ck-suggestion-marker--active',_0x2826dd));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x1f25c(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xe8d4b,_0x9da8,_0x36a2a4)=>{_0x36a2a4['options']['showSuggestionHighlights']&&_0x1f25c({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0xe8d4b,_0x9da8,_0x36a2a4);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x1f4498,_0x52bea2,_0x19d335)=>{const {type:_0x1cf853,id:_0x2af7ce}=_0x475a96(_0x52bea2['markerName']);if(!_0xa09b8e['hasSuggestion'](_0x2af7ce))return;const _0x2c4ff3=_0xa09b8e['getSuggestion'](_0x2af7ce),_0x9880e5=_0x2c4ff3['data'];if('formatBlock'!=_0x2c4ff3['type']||!_0x9880e5||'setTableColumnHeader'!=_0x9880e5['commandName'])return;const _0x4e2ec2=_0x19d335['mapper']['markerNameToElements'](_0x52bea2['markerName']);if(_0x4e2ec2){for(const _0x64ca7d of _0x4e2ec2)_0x19d335['writer']['removeClass']('ck-suggestion-marker-'+_0x1cf853,_0x64ca7d),_0x19d335['writer']['removeClass']('ck-suggestion-marker--active',_0x64ca7d),_0x19d335['writer']['removeAttribute']('data-suggestion',_0x64ca7d),_0x19d335['mapper']['unbindElementFromMarkerName'](_0x64ca7d,_0x52bea2['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x5d5443=this['editor'],_0xc4ad82=_0x5d5443['locale'];function _0x13e410(_0x49a910){return{'type':'format','content':At(_0xc4ad82,'*Format:*\x20%0',_0x49a910)};}_0x5d5443['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4221a4=>{if('formatBlock'!=_0x4221a4['type'])return;const {data:_0x175e86}=_0x4221a4;if(_0x175e86){if('setTableRowHeader'==_0x175e86['commandName']){const _0x12f31f=_0x175e86['commandParams'][0x0]['forceValue'];return _0x13e410(At(_0xc4ad82,_0x12f31f?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x175e86['commandName']){const _0x2dd802=_0x175e86['commandParams'][0x0]['forceValue'];return _0x13e410(At(_0xc4ad82,_0x2dd802?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Oe extends _0x4a3826{static get['requires'](){return[Ne];}['afterInit'](){const _0x4b4639=this['editor'];if(!_0x4b4639['plugins']['has']('TableEditing')||!_0x4b4639['config']['get']('table.enableFooters'))return;const _0xc57876=_0x4b4639['locale'],_0x5d4a84=_0x4b4639['plugins']['get']('TrackChangesEditing');_0x5d4a84['enableDefaultAttributesIntegration']('setTableFooterRow'),_0x5d4a84['descriptionFactory']['registerAttributeLabel']('footerRows',At(_0xc57876,'FORMAT_FOOTER_ROW'));}}class we extends _0x4a3826{['afterInit'](){const _0x263b82=this['editor'],_0x5e0d06=_0x263b82['locale'],_0x10646f=_0x263b82['plugins']['get']('TrackChangesEditing');function _0xb266e(_0x5571e3){return{'type':'format','content':''+At(_0x5e0d06,'*Set\x20table\x20type:*\x20%0',_0x5571e3)};}_0x263b82['plugins']['has']('TableLayout')&&(_0x10646f['enableCommand']('insertTableLayout'),_0x10646f['enableDefaultAttributesIntegration']('tableType'),_0x10646f['descriptionFactory']['registerElementLabel'](_0xaa881e=>_0xaa881e['is']('element','table')&&'layout'===_0xaa881e['getAttribute']('tableType'),_0x219283=>At(_0x5e0d06,'ELEMENT_LAYOUT_TABLE',_0x219283)),_0x10646f['descriptionFactory']['registerDescriptionCallback'](_0x1cc7b7=>{const {data:_0x5f244f}=_0x1cc7b7;if(_0x5f244f&&'tableType'==_0x5f244f['key'])switch(_0x5f244f['newValue']){case'layout':return _0xb266e(At(_0x5e0d06,'ELEMENT_LAYOUT_TABLE'));case'content':return _0xb266e(At(_0x5e0d06,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Fe=/* #__PURE__ -- @preserve */
|
|
25
|
+
Object['fromEntries'](Be['map'](_0x37a77e=>[_0x37a77e,null]));class De extends _0x4a3826{static get['requires'](){return[Ne];}['afterInit'](){const _0xac8bf0=this['editor'];if(!_0xac8bf0['plugins']['has']('TableClipboard'))return;const _0x105d9a=_0xac8bf0['plugins']['get']('TrackChangesEditing'),_0x69d832=_0xac8bf0['plugins']['get']('TableUtils'),_0x4d2233=_0xac8bf0['plugins']['get'](Ne),_0x24093f=_0xac8bf0['plugins']['get']('TableClipboard'),_0x37d2e4=_0xac8bf0['plugins']['get']('TableSelection'),_0x2bf80e=_0xac8bf0['plugins']['get'](ut);_0x4d2233['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0xac8bf0['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0xac8bf0['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x3280f2=null,_0x9b9d24=!0x1;_0x2bf80e['on']('contentInsertion',(_0x332572,_0x58b46d)=>{_0x9b9d24='paste'===_0x58b46d['method'];}),_0xac8bf0['model']['on']('insertContent',(_0x13cb63,_0x5b43ce)=>{if(!_0x9b9d24&&null===_0x37d2e4['getSelectedTableCells']())return;const [_0x452e76,_0x185ca1]=_0x5b43ce,_0x4a6fb0=_0x5b43ce[_0x5b43ce['length']-0x1];_0x4a6fb0&&_0x4a6fb0['forceDefaultExecution']||_0x105d9a['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x2151bf,_0x460a1b,_0x3cb8b4,_0x2baf8a,_0x3be64a){if(_0x460a1b&&!_0x460a1b['is']('documentSelection'))return!0x1;const _0x18f777=_0x3be64a['getTableIfOnlyTableInContent'](_0x2151bf,_0x3cb8b4);if(!_0x18f777||!xe(_0x18f777,void 0x0,_0x2baf8a))return!0x1;const _0x49c42b=_0x2baf8a['getSelectionAffectedTableCells'](_0x3cb8b4['document']['selection']);if(!_0x49c42b['length'])return!0x1;const _0x59720e=_0x49c42b[0x0]['findAncestor']('table'),_0x3a95a8=_0x2baf8a['getRowIndexes'](_0x49c42b),_0x6209d=_0x2baf8a['getColumnIndexes'](_0x49c42b),_0x42917a={'startRow':_0x3a95a8['first'],'endRow':_0x3a95a8['last'],'startColumn':_0x6209d['first'],'endColumn':_0x6209d['last']};return 0x1==_0x49c42b['length']&&(_0x42917a['endRow']+=_0x2baf8a['getRows'](_0x18f777)-0x1,_0x42917a['endColumn']+=_0x2baf8a['getColumns'](_0x18f777)-0x1),xe(_0x59720e,_0x42917a,_0x2baf8a);}(_0x452e76,_0x185ca1,_0xac8bf0['model'],_0x69d832,_0x24093f)&&(_0x13cb63['stop'](),_0x3280f2={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0xac8bf0['model']['change'](()=>{_0xac8bf0['model']['insertContent'](_0x5b43ce[0x0],_0x5b43ce[0x1],_0x5b43ce[0x2],{'forceDefaultExecution':!0x0});const _0x2b74da=_0x15ca27(),{rowInsertionRanges:_0x361c12,columnInsertionRanges:_0x1c5cc8,insertionRanges:_0x62d7d1,deletionRanges:_0x218f7d,cells:_0x2f87ce}=_0x3280f2;_0x361c12['length']&&_0x105d9a['markMultiRangeInsertion'](_0x361c12,'tablePasteRow',{'tablePasteChainId':_0x2b74da}),_0x1c5cc8['length']&&_0x105d9a['markMultiRangeInsertion'](_0x1c5cc8,'tablePasteColumn',{'tablePasteChainId':_0x2b74da}),_0x62d7d1['length']&&(_0x105d9a['markMultiRangeInsertion'](_0x62d7d1,'tablePaste',{'tablePasteChainId':_0x2b74da,'skipNestingCheck':!0x0}),_0x62d7d1['forEach'](_0x25f9f=>_0x25f9f['detach']?.())),_0x218f7d['length']&&(_0x105d9a['markMultiRangeDeletion'](_0x218f7d,'tablePaste',{'tablePasteChainId':_0x2b74da,'skipNestingCheck':!0x0}),_0x218f7d['forEach'](_0x101091=>_0x101091['detach']?.()));const _0x840b67=_0x105d9a['markMultiRangeBlockFormat'](_0x2f87ce['map'](({element:_0x5bb669})=>_0x5bb669),{'formatGroupId':_0x15ca27()},[],'tablePasteCell',{'tablePasteChainId':_0x2b74da});if(_0x840b67){const _0x4e600b=_0x840b67['getMarkers'](),_0x555e9a=[];for(const {element:_0x4084d2,attributes:_0x1773d3}of _0x2f87ce){if(!_0x1773d3)continue;const _0x69ed4f=_0xac8bf0['model']['createRangeOn'](_0x4084d2),_0x17f6c2=_0x4e600b['find'](_0x110b5e=>_0x110b5e['getRange']()['isEqual'](_0x69ed4f));_0x17f6c2&&_0x555e9a['push']([_0x17f6c2['name'],_0x1773d3]);}_0x555e9a['length']&&_0x840b67['setAttribute']('markerAttributes',Object['fromEntries'](_0x555e9a));}_0x3280f2=null;}));},{'priority':_0x3cf629['high']+0xa}),_0x2bf80e['on']('contentInsertion',()=>{_0x9b9d24=!0x1;},{'priority':'lowest'}),_0xac8bf0['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x522039,_0x2f5b3f)=>{const [_0x312a94,_0x1dcac3,,_0x368c9a]=_0x2f5b3f;if(!_0x3280f2)return;_0x522039['stop']();const _0x2b42c5=_0x312a94['cell'],_0x4090b9=_0x1dcac3,_0x5ef056=ve(_0x2b42c5),_0x16b118=ve(_0x4090b9);_0x522039['return']=_0x2b42c5;let _0x3f052b=null,_0x441bc0=null;if(_0x16b118||_0x5ef056){if(_0x5ef056&&!_0x16b118){_0x368c9a['remove'](_0x2b42c5['getChild'](0x0));for(const _0x1dfc42 of Array['from'](_0x4090b9['getChildren']()))_0x368c9a['insert'](_0x1dfc42,_0x2b42c5,'end');const _0x8c5662=_0x3280f2['rowInsertionIndexes']['includes'](_0x312a94['row']),_0x2cfcd4=_0x3280f2['columnInsertionIndexes']['includes'](_0x312a94['column']);_0x8c5662||_0x2cfcd4||(_0x3f052b=_0x4f8349['fromRange'](_0x368c9a['createRangeIn'](_0x2b42c5)));}else _0x16b118&&!_0x5ef056&&(_0x441bc0=_0x368c9a['createRangeIn'](_0x2b42c5));}else{const _0x51d18f=_0x368c9a['createElement']('tableCellSuggestion'),_0x2d8394=_0x368c9a['createElement']('tableCellSuggestion');_0x368c9a['wrap'](_0x368c9a['createRangeIn'](_0x2b42c5),_0x2d8394),_0x368c9a['insert'](_0x51d18f,_0x2b42c5,0x0);for(const _0x513907 of Array['from'](_0x4090b9['getChildren']()))_0x368c9a['insert'](_0x513907,_0x51d18f,'end');_0x3f052b=_0x4f8349['fromRange'](_0x368c9a['createRangeOn'](_0x51d18f)),_0x441bc0=_0x4f8349['fromRange'](_0x368c9a['createRangeOn'](_0x2d8394));}const _0x39dc77=Array['from'](_0x4090b9['getAttributes']())['filter'](([_0x472a88])=>Be['includes'](_0x472a88));_0x3280f2['cells']['push']({'element':_0x2b42c5,'attributes':_0x39dc77['length']?Object['fromEntries'](_0x39dc77):null}),_0x3f052b&&_0x3280f2['insertionRanges']['push'](_0x3f052b),_0x441bc0&&_0x3280f2['deletionRanges']['push'](_0x441bc0);},{'priority':'high'}),_0x69d832['on']('insertColumns',(_0x384233,_0x435ab1)=>{const [_0x1f4c37,_0x2c88da={}]=_0x435ab1;if(!_0x3280f2)return;const _0xfcfa28=_0x2c88da['at']||0x0,_0x21d64=_0x2c88da['columns']||0x1;_0x3280f2['columnInsertionIndexes']=new Array(_0x21d64)['fill'](_0xfcfa28)['map']((_0x3c12aa,_0x230bfd)=>_0x3c12aa+_0x230bfd);for(const {cell:_0x2945b8}of _0x69d832['createTableWalker'](_0x1f4c37,{'startColumn':_0xfcfa28,'endColumn':_0xfcfa28+_0x21d64-0x1}))_0x3280f2['columnInsertionRanges']['push'](_0xac8bf0['model']['createRangeOn'](_0x2945b8));},{'priority':'low'}),_0x69d832['on']('insertRows',(_0x26ecba,_0x1e6544)=>{const [_0x1fdeed,_0x124a82={}]=_0x1e6544;if(!_0x3280f2)return;const _0xe04948=_0x124a82['at']||0x0,_0x4ac133=_0x124a82['rows']||0x1;_0x3280f2['rowInsertionIndexes']=new Array(_0x4ac133)['fill'](_0xe04948)['map']((_0x290b49,_0x3f6ba3)=>_0x290b49+_0x3f6ba3);for(const {cell:_0xed1e1f}of _0x69d832['createTableWalker'](_0x1fdeed,{'startRow':_0xe04948,'endRow':_0xe04948+_0x4ac133-0x1}))_0x3280f2['rowInsertionRanges']['push'](_0xac8bf0['model']['createRangeOn'](_0xed1e1f));},{'priority':'low'}),_0x105d9a['descriptionFactory']['registerDescriptionCallback'](_0x303bb7=>{if(_0x303bb7['subType']&&_0x303bb7['subType']['startsWith']('tablePaste'))return _0x303bb7['previous']?{}:{'type':'insertion','content':At(_0xac8bf0['locale'],'*Replace\x20table\x20cells*')};});const _0x53e3f3=()=>!0x1;for(const _0x4d1c08 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x105d9a['_suggestionFactory']['registerCustomCallback']('insertion',_0x4d1c08,'join',_0x53e3f3),_0x105d9a['_suggestionFactory']['registerCustomCallback']('deletion',_0x4d1c08,'join',_0x53e3f3),_0x105d9a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4d1c08,'join',_0x53e3f3);_0x105d9a['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x53e3f3),_0x105d9a['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x1a7ca4,_0x443492,_0x50b802)=>{const _0x54d95d=_0x1a7ca4['map'](_0x4ed95e=>_0x4ed95e['getContainedElement']())['filter'](_0xdb5e5f=>_0xdb5e5f),_0x2b4e94=new Map(_0x54d95d['map'](_0x6b6817=>[_0x6b6817,null]));if(_0x3280f2){for(const {element:_0x5428a9,attributes:_0x124269}of _0x3280f2['cells'])_0x124269&&_0x2b4e94['set'](_0x5428a9,_0x124269);}else{if(_0x50b802&&_0x50b802['markerAttributes'])for(const [_0x4031d3,_0x1670d5]of Object['entries'](_0x50b802['markerAttributes'])){const _0x1d16cd=_0xac8bf0['model']['markers']['get'](_0x4031d3),_0x42f758=_0x1d16cd?_0x1d16cd['getRange']()['getContainedElement']():null;_0x42f758&&_0x2b4e94['set'](_0x42f758,_0x1670d5);}}_0xac8bf0['model']['change'](_0x4fffea=>{for(const [_0x5b8a67,_0x244747]of _0x2b4e94)_0x4fffea['setAttributes']({...Fe,..._0x244747},_0x5b8a67);});});const _0x2c37ae=(_0x4a9f6b,_0x2aa231)=>{_0x105d9a['_suggestionFactory']['registerCustomCallback'](_0x4a9f6b,'tablePaste',_0x2aa231,(_0x4a0b69,_0x19ce31,_0x919648)=>{_0xac8bf0['model']['change'](_0x3cc7f0=>{const _0x139458=[];for(const _0x8af08b of _0x4a0b69){const _0x5d9a0b=_0x8af08b['start']['nodeAfter'];_0x5d9a0b['is']('element','tableCellSuggestion')&&_0x139458['push'](_0x5d9a0b);}_0x105d9a['_suggestionFactory']['getSuggestionCallback'](_0x4a9f6b,null,_0x2aa231)(_0x4a0b69,_0x19ce31,_0x919648);for(const _0x55af6f of _0x139458)'$graveyard'!=_0x55af6f['root']['rootName']&&_0x3cc7f0['unwrap'](_0x55af6f);});});};_0x2c37ae('insertion','accept'),_0x2c37ae('insertion','discard'),_0x2c37ae('deletion','accept'),_0x2c37ae('deletion','discard'),_0x105d9a['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x2b5539=>{const _0x2b8f90=_0x2b5539['map'](_0x2a7187=>_0x2a7187['getContainedElement']()),_0x426c32=_0x2b8f90[0x0]['findAncestor']('table'),{minRow:_0x57b3a3,maxRow:_0x25de56}=_0x4d2233['_getCoordsForCells'](_0x2b8f90);_0x69d832['removeRows'](_0x426c32,{'at':_0x57b3a3,'rows':_0x25de56-_0x57b3a3+0x1});}),_0x105d9a['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x378db4=>{const _0x17eea3=_0x378db4['map'](_0x1ac393=>_0x1ac393['getContainedElement']()),_0x44c1c1=_0x17eea3[0x0]['findAncestor']('table'),{minColumn:_0x34da22,maxColumn:_0x406e58}=_0x4d2233['_getCoordsForCells'](_0x17eea3);_0x69d832['removeColumns'](_0x44c1c1,{'at':_0x34da22,'columns':_0x406e58-_0x34da22+0x1});});const _0x5b6b7e=(_0x2dc0a9,_0x2d8a29)=>{if(!_0x2d8a29['subType']||!_0x2d8a29['subType']['startsWith']('tablePaste'))return;const _0x34257a=_0x2d8a29['attributes']['tablePasteChainId'],_0x16ce80=_0x105d9a['getSuggestions']()['filter'](_0x2a53c5=>_0x2a53c5['isInContent']&&_0x2a53c5['attributes']&&_0x2a53c5['attributes']['tablePasteChainId']==_0x34257a);_0x16ce80['length']&&_0x2d8a29['getAllAdjacentSuggestions']()['length']!=_0x16ce80['length']&&_0x16ce80['reduce']((_0x138bcf,_0x546324)=>(_0x138bcf['next']=_0x546324,_0x546324['previous']=_0x138bcf,_0x546324));};function _0x3a5e9c(_0x12be4f,_0x2262de=!0x0){const {id:_0x5f1216,authorId:_0x818e39}=_0x475a96(_0x12be4f['markerName']),_0x43cbee=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x36f10d=_0x105d9a['activeMarkers']['includes'](_0x12be4f['markerName']);return _0x36f10d&&_0x43cbee['push']('ck-suggestion-marker--active'),{'classes':_0x43cbee,'attributes':{'data-suggestion':_0x5f1216,'data-author-id':_0x818e39},'priority':_0x36f10d&&_0x2262de?0xbc2:0xbb8};}_0x105d9a['on']('suggestionLoaded',_0x5b6b7e,{'priority':'high'}),_0x105d9a['on']('suggestionUnloaded',_0x5b6b7e,{'priority':'high'}),_0xac8bf0['model']['document']['registerPostFixer'](()=>{let _0x590baa=!0x1;const _0x3c858b=Array['from'](_0xac8bf0['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x245657,data:_0xee3ab4}of _0x3c858b){const {group:_0x1f6327,type:_0x35ad25,id:_0x58f084}=_0x475a96(_0x245657);if('suggestion'!=_0x1f6327||'deletion'!=_0x35ad25||_0xee3ab4['oldRange'])continue;if(!_0x105d9a['hasSuggestion'](_0x58f084))continue;const _0xc4fc22=_0x105d9a['getSuggestion'](_0x58f084)['getRanges'](),_0x54212c=_0xac8bf0['plugins']['get']('Users')['me'];for(const _0xa4946a of _0x105d9a['getSuggestions']()){if(!_0xa4946a['isInContent']||_0xa4946a['author']!=_0x54212c)continue;if('formatBlock'!=_0xa4946a['type']||'tablePasteCell'!=_0xa4946a['subType'])continue;if(_0xa4946a['getRanges']()['every'](_0x62aed2=>_0xc4fc22['some'](_0x31c24e=>_0x31c24e['containsRange'](_0x62aed2,!0x0)))){for(const _0x3fe1bc of _0xa4946a['getAllAdjacentSuggestions']())_0x3fe1bc['isInContent']&&(_0x3fe1bc['discard'](),_0x590baa=!0x0);}}}return _0x590baa;}),_0xac8bf0['model']['document']['registerPostFixer'](_0x3190cd=>{const _0x13c6ba=_0xac8bf0['commands']['get']('redo');if(!_0x13c6ba||!_0x13c6ba['_createdBatches']['has'](_0x3190cd['batch']))return!0x1;let _0x59e5d1=!0x1;const _0x1e0059=_0xac8bf0['plugins']['get']('Users')['me'],_0x47b507=_0xac8bf0['model']['document']['differ']['getChanges'](),_0x24075d=Array['from'](_0xac8bf0['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x3d2e6a,data:_0x5f42b7})=>{const {group:_0x57c4df,subType:_0x38f32c,authorId:_0x411002}=_0x475a96(_0x3d2e6a);return'suggestion'==_0x57c4df&&'tablePaste'==_0x38f32c&&_0x411002==_0x1e0059['id']&&!_0x5f42b7['oldRange'];});for(const _0x4d4c43 of _0x47b507){if('insert'!=_0x4d4c43['type']||'tableCellSuggestion'!=_0x4d4c43['name']||0x1!=_0x4d4c43['length'])continue;const _0x22090f=_0x3190cd['createRange'](_0x4d4c43['position'],_0x4d4c43['position']['getShiftedBy'](0x1));if(!_0x24075d['find'](({data:_0x5eb4b4})=>_0x5eb4b4['newRange']['isEqual'](_0x22090f))){for(const {name:_0x37a2ae,data:_0x2b90cc}of _0x24075d)if(_0x22090f['containsRange'](_0x2b90cc['newRange'])){_0x3190cd['updateMarker'](_0x37a2ae,{'range':_0x22090f}),_0x59e5d1=!0x0;break;}}}return _0x59e5d1;}),_0xac8bf0['model']['document']['registerPostFixer'](_0x57a22e=>{let _0x45fb90=!0x1;const _0x1704d3=_0xac8bf0['plugins']['get']('Users')['me'],_0x211d16=_0x105d9a['getSuggestions']()['filter'](_0x4c0e54=>_0x4c0e54['isInContent']&&_0x4c0e54['author']==_0x1704d3),_0x44afa0=new Set(),_0x4c24b7=new Set();for(const _0x194e63 of _0x211d16)if('tablePaste'==_0x194e63['subType'])for(const _0x277175 of _0x194e63['getMarkers']()){const _0x426c68=_0x277175['getRange']()['getContainedElement']();if(_0x426c68){if(_0x426c68['is']('element','tableCellSuggestion')&&ve(_0x426c68)){_0x194e63['removeMarker'](_0x277175['name']),_0x44afa0['add'](_0x426c68),_0x45fb90=!0x0;const _0x3f3090=_0x426c68['nextSibling'],_0x2c5e75=_0x426c68['previousSibling'],_0x466672=_0x3f3090&&_0x3f3090['is']('element','tableCellSuggestion'),_0x56bbd3=_0x2c5e75&&_0x2c5e75['is']('element','tableCellSuggestion');_0x466672&&!_0x44afa0['has'](_0x3f3090)&&_0x4c24b7['add'](_0x3f3090),_0x56bbd3&&!_0x44afa0['has'](_0x2c5e75)&&_0x4c24b7['add'](_0x2c5e75);}else _0x426c68['is']('element','paragraph')&&_0x426c68['isEmpty']&&(_0x194e63['removeMarker'](_0x277175['name']),_0x45fb90=!0x0);}}else{if('tablePasteCell'==_0x194e63['subType']){if(!_0x194e63['attributes']||!_0x194e63['attributes']['tablePasteChainId'])continue;const _0x444764=_0x194e63['attributes']['markerAttributes'];if(_0x444764&&Object['keys'](_0x444764)['length'])continue;const _0x53a7b9=_0x194e63['attributes']['tablePasteChainId'];let _0x425943=!0x0,_0x169c0d=!0x0;for(const _0x1ea2fe of _0x211d16)if(_0x1ea2fe['subType']&&_0x1ea2fe['subType']['startsWith']('tablePaste')){if(!_0x1ea2fe['attributes']['tablePasteChainId']){_0x169c0d=!0x1;break;}if(_0x1ea2fe['id']!=_0x194e63['id']&&_0x1ea2fe['attributes']['tablePasteChainId']==_0x53a7b9){_0x425943=!0x1;break;}}_0x169c0d&&_0x425943&&(_0x194e63['removeMarkers'](),_0x45fb90=!0x0);}}for(const _0x4cf408 of _0x44afa0)_0x57a22e['remove'](_0x4cf408);for(const _0x556238 of _0x4c24b7)_0x57a22e['unwrap'](_0x556238);return _0x45fb90;}),_0xac8bf0['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x3432bf=>_0x3a5e9c(_0x3432bf),'converterPriority':'high'}),_0xac8bf0['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x9712aa,_0x2ca28b)=>_0x2ca28b['options']['showSuggestionHighlights']?_0x3a5e9c(_0x9712aa,!0x1):null,'converterPriority':'high'});const _0x404bd2=_0xac8bf0['editing']['view'];this['listenTo'](_0x404bd2['document'],'clipboardOutput',(_0x501c0c,_0xc0c2d2)=>{const _0x22f473=[];for(const _0x460d55 of _0x404bd2['createRangeIn'](_0xc0c2d2['content'])['getItems']())_0x460d55['is']('element','suggestion-td')&&_0x22f473['push'](_0x460d55);_0x404bd2['change'](_0x2458df=>{for(const _0x516ea1 of _0x22f473)_0x2458df['move'](_0x2458df['createRangeIn'](_0x516ea1),_0x2458df['createPositionBefore'](_0x516ea1)),_0x2458df['remove'](_0x516ea1);});});}}function ve(_0x3e1732){if(_0x3e1732['isEmpty'])return!0x0;const _0x467e65=_0x3e1732['getChild'](0x0);return _0x467e65['is']('element','paragraph')&&_0x467e65['isEmpty'];}function xe(_0x1cc9ed,_0x1fbc63={},_0x586be7){for(const {isAnchor:_0x3ea0fe,cellHeight:_0x16d5f3,cellWidth:_0x34d2c1}of _0x586be7['createTableWalker'](_0x1cc9ed,{'includeAllSlots':!0x0,..._0x1fbc63}))if(!_0x3ea0fe||0x1!=_0x16d5f3||0x1!=_0x34d2c1)return!0x1;return!0x0;}class Pe extends _0x4a3826{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x5d6c00=this['editor']['plugins']['get']('TrackChangesEditing');_0x5d6c00['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x5d6c00['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x5d6c00['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5d6c00['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x5d6c00['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x5d6c00['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x51171c,_0x1e6204){const _0x5cc447=this['editor']['plugins']['get']('TrackChangesEditing'),_0x34b126=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x29a72d=_0x1e6204['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x527edf=_0x34b126['getColumnGroupElement'](_0x29a72d);let _0x140cbb=_0x527edf?_0x34b126['getTableColumnsWidths'](_0x527edf):null,_0x1c9066=_0x29a72d['getAttribute']('tableWidth')||null;const _0x4cf455=_0x1e6204['tableWidth']||_0x1c9066,_0x236798=_0x1e6204['columnWidths']||_0x140cbb,_0x34d11b=this['editor']['plugins']['get']('Users')['me'];for(const _0x1ae565 of _0x5cc447['getSuggestions']()){const _0x2dcbb3=_0x1ae565['getContainedElement']();if('resizeTable'===_0x1ae565['subType']&&_0x2dcbb3===_0x29a72d){_0x1ae565['author']!==_0x34d11b&&_0x1ae565['discard']();const _0x2e6dbd=_0x1ae565['data']['commandParams'];_0x1c9066=_0x2e6dbd[0x0]['tableWidth'],_0x140cbb=_0x2e6dbd[0x0]['columnWidths'];break;}}_0x51171c({'table':_0x29a72d,'tableWidth':_0x4cf455,'columnWidths':_0x236798}),_0x5cc447['markBlockFormat'](_0x29a72d,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x1c9066,'columnWidths':_0x140cbb}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x14b1ac){if('formatBlock'!=_0x14b1ac['type']&&'formatInline'!=_0x14b1ac['type'])return;const {data:_0x18e57c}=_0x14b1ac;if(_0x18e57c&&'resizeTable'===_0x18e57c['formatGroupId']){const _0x2ebbb1='*Format:*\x20resize\x20table';return{'type':'format','content':At(this['editor']['locale'],_0x2ebbb1)};}}}class Ue extends _0x4a3826{['afterInit'](){const _0x422542=this['editor'];_0x422542['plugins']['has']('Template')&&_0x422542['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ge extends _0x4a3826{['afterInit'](){const _0x53584e=this['editor'];if(!_0x53584e['commands']['get']('insertTableOfContents'))return;_0x53584e['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x5e2438=_0x53584e['plugins']['get']('TrackChangesEditing'),_0x3e379d=_0x53584e['locale'];_0x5e2438['descriptionFactory']['registerElementLabel']('tableOfContents',_0x373a79=>At(_0x3e379d,'ELEMENT_TABLE_OF_CONTENTS',_0x373a79));}}class He extends _0x4a3826{['afterInit'](){const _0x43cd17=this['editor'];if(!_0x43cd17['plugins']['has']('Title'))return;_0x43cd17['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>At(_0x43cd17['locale'],'ELEMENT_TITLE')),_0x43cd17['model']['document']['registerPostFixer'](_0x5ccc14=>{let _0x331c9c=!0x1;const _0x17a33c=Array['from'](_0x43cd17['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x64eb62,data:_0xe24c87}of _0x17a33c){const {group:_0x59a136}=_0x475a96(_0x64eb62);if('suggestion'!==_0x59a136||!_0xe24c87['newRange'])continue;const _0x3451fc=_0xe24c87['newRange'],_0x3168ce=_0x3451fc['end']['nodeBefore'];if(!_0x3168ce||!_0x3168ce['is']('element','title-content'))continue;if(!_0x3451fc['start']['isTouching'](_0x3451fc['end']))continue;const _0x25a3d8=_0x43cd17['model']['schema']['getNearestSelectionRange'](_0x3451fc['end'],'forward');if(_0x25a3d8&&_0x25a3d8['isCollapsed']){const _0x5bf2ef=_0x5ccc14['createRange'](_0x3451fc['start'],_0x25a3d8['start']);_0x5bf2ef['isEqual'](_0x3451fc)||(_0x5ccc14['updateMarker'](_0x64eb62,{'range':_0x5bf2ef}),_0x331c9c=!0x0);}_0x331c9c||(_0x5ccc14['removeMarker'](_0x64eb62),_0x331c9c=!0x0);}return _0x331c9c;});}}class $e extends _0x4a3826{['afterInit'](){const _0x276e13=this['editor'],_0x50d34a=_0x276e13['plugins']['get']('TrackChangesEditing');_0x276e13['plugins']['has']('Uploadcare')&&(_0x50d34a['enableCommand']('uploadcare'),_0x276e13['plugins']['has']('UploadcareImageEdit')&&(_0x50d34a['enableCommand']('uploadcareImageEdit'),_0x50d34a['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x50d34a['descriptionFactory']['registerDescriptionCallback'](_0x57f1de=>{if('attribute'!=_0x57f1de['type'])return;const {data:_0x12c851}=_0x57f1de;return _0x12c851&&'uploadcareImageId'==_0x12c851['key']?{'type':'format','content':''}:void 0x0;})));}}class We extends _0x4a3826{['afterInit'](){const _0x221a60=this['editor'],_0x4e53a2=_0x221a60['plugins']['get']('TrackChangesEditing');_0x221a60['plugins']['has']('UndoEditing')&&(_0x4e53a2['enableCommand']('undo'),_0x4e53a2['enableCommand']('redo'));}}class Ve extends _0x4a3826{static get['requires'](){return[Ne];}['afterInit'](){const _0x1e9610=this['editor'];if(!_0x1e9610['plugins']['has']('TableCaptionEditing'))return;_0x1e9610['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class je extends _0x4a3826{['tableProperties'];['tableCellProperties'];constructor(_0x26d20e){super(_0x26d20e),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 _0x345926=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x36c5fd of this['tableProperties'])_0x345926['enableCommand'](_0x36c5fd,(_0x39afe0,_0x2ef026)=>{const _0x2c70b9=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x36c5fd,[_0x2c70b9],this['tableProperties'],'tableProperties',_0x39afe0,_0x2ef026);});_0x345926['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x345926['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x345926['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x89b928,_0x8fe62a)=>this['handleDiscardAction'](this['tableProperties'],_0x89b928,_0x8fe62a)),_0x345926['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x2be747 of this['tableCellProperties'])this['editor']['commands']['get'](_0x2be747)&&_0x345926['enableCommand'](_0x2be747,(_0x18952a,_0x4f786e)=>{const _0x2bdad9=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x2be747,_0x2bdad9,this['tableCellProperties'],'tableCellProperties',_0x18952a,_0x4f786e);});_0x345926['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x345926['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x345926['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x2de109,_0x1bb0ff)=>this['handleDiscardAction'](this['tableCellProperties'],_0x2de109,_0x1bb0ff)),_0x345926['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x345926['descriptionFactory']['registerAttributeLabel']('tableCellType',At(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x345926['descriptionFactory']['registerDescriptionCallback'](_0x1c0a77=>this['handleSuggestionDescription'](_0x1c0a77)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x9646cd,_0x129792,_0x43399c,_0x46acc9,_0x138ac2,_0x346faa){const _0x5db56e=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x346faa['batch'],()=>{for(const _0x2fbf3d of _0x129792){if(this['_getSuggestion'](_0x2fbf3d,_0x46acc9))_0x138ac2(_0x346faa);else{const _0x1a3154={};for(const _0x1bcc6e of _0x43399c){const _0x5ef53e=_0x2fbf3d['getAttribute'](_0x1bcc6e);void 0x0!==_0x5ef53e&&(_0x1a3154[_0x1bcc6e]=_0x5ef53e);}_0x138ac2(_0x346faa),_0x5db56e['markBlockFormat'](_0x2fbf3d,{'commandParams':[_0x1a3154]},[],_0x46acc9);}}});}['handleDiscardAction'](_0x16b68f,_0x458bf8,_0x543c02){const _0x5026fd=_0x458bf8[0x0]['start']['nodeAfter'],_0x196034=_0x543c02['commandParams'][0x0];this['editor']['model']['change'](_0x2909cb=>{for(const _0x2c83d1 of _0x16b68f)void 0x0!==_0x196034[_0x2c83d1]?_0x2909cb['setAttribute'](_0x2c83d1,_0x196034[_0x2c83d1],_0x5026fd):_0x2909cb['removeAttribute'](_0x2c83d1,_0x5026fd);});}['handleSuggestionDescription'](_0x4d3807){if(_0x4d3807['data'])switch(_0x4d3807['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'](_0x2f91ff,_0x1a961b){const _0x30f029=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x3a93a3 of _0x30f029['getSuggestions']({'skipNotAttached':!0x0})){const _0x18ac18=_0x3a93a3['getContainedElement']();if(_0x3a93a3['subType']===_0x1a961b&&_0x18ac18===_0x2f91ff)return _0x3a93a3;}return null;}['_registerTablePropertiesAttributes'](){const _0x6623e8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x248bd5=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x2823f6 of _0x248bd5){const _0x42adf5=_0x2823f6['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x6623e8['descriptionFactory']['registerAttributeLabel'](_0x2823f6,At(this['editor']['locale'],'FORMAT_'+_0x42adf5));}}}class ze extends _0x4a3826{['afterInit'](){const _0x558623=this['editor'];if(!_0x558623['plugins']['has']('LineHeight'))return;const _0x4ae5a8=_0x558623['plugins']['get']('TrackChangesEditing'),_0x11e9a7=_0x558623['locale'];_0x4ae5a8['enableDefaultAttributesIntegration']('lineHeight'),_0x4ae5a8['descriptionFactory']['registerAttributeLabel']('lineHeight',At(_0x11e9a7,'FORMAT_LINE_HEIGHT'));}}const Ke='$elementName';class Xe extends _0x4a3826{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_suggestionsConversion'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return[_0x4551a9,_0x16b695,_0x218a55,_0x667652,_0xed69f8,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(_0x5c8999){super(_0x5c8999),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x98f841,_0x50d918,_0x10b778,_0xb58325)=>{this['_model']['change'](()=>{for(const _0x203c13 of[..._0xb58325,..._0x10b778])this['_model']['markers']['has'](_0x203c13)&&_0x5c8999['editing']['reconvertMarker'](_0x203c13);});}),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']=_0x5c8999['plugins']['get'](_0x4551a9),this['_suggestionsConversion']=_0x5c8999['plugins']['get'](_0x16b695),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x5c8999['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x5c8999['config']['get']('trackChanges.trackFormatChanges'),_0x5c8999['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x5c8999['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new ht(_0x5c8999,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x3c79ea=this['editor'];_0x3c79ea['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x366b8f,{writer:_0x103bbd})=>{let _0x4fe06d='suggestion:'+_0x366b8f['getAttribute']('suggestion-type')+':'+_0x366b8f['getAttribute']('id');return _0x366b8f['getAttribute']('marker-count')&&(_0x4fe06d+=':'+_0x366b8f['getAttribute']('marker-count')),_0x103bbd['createElement']('$marker',{'data-name':_0x4fe06d});}}),_0x3c79ea['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x3c79ea['model']['document']['registerPostFixer'](_0x1cd079=>{let _0x5a841e=!0x1;const _0x59d8a7=Array['from'](_0x3c79ea['model']['document']['differ']['getChangedMarkers']()),_0x1d6f85=new Set();for(const {name:_0x12faac,data:_0x46e01d}of _0x59d8a7){const {group:_0x203e77,type:_0x55f740,subType:_0x19c9c2,id:_0x1ea75d}=_0x475a96(_0x12faac);if('suggestion'!==_0x203e77)continue;const _0x163569=_0x19c9c2?'suggestion:'+_0x55f740+':'+_0x19c9c2+':'+_0x1ea75d:'suggestion:'+_0x55f740+':'+_0x1ea75d,_0x4f34ef=_0x3c79ea['model']['markers']['getMarkersGroup'](_0x163569),_0x363ead=_0x3c79ea['model']['markers']['get'](_0x12faac),_0x3a1116=this['_suggestions']['get'](_0x1ea75d);if(null!=_0x46e01d['newRange']){'formatInline'==_0x55f740&&(_0x5a841e=_0x5a841e||Ze(_0x46e01d['newRange'],_0x12faac,_0x1cd079,_0x3c79ea['model']['schema']));const _0x290023='attribute'==_0x55f740&&this['_suggestionsConversion']['isBlockAttribute'](un(_0x19c9c2)),_0x41b672='attribute'==_0x55f740&&this['_suggestionsConversion']['isInlineAttribute'](un(_0x19c9c2));if(_0x46e01d['newRange']['isCollapsed']||'$graveyard'==_0x46e01d['newRange']['root']['rootName']||'formatBlock'==_0x55f740&&!tn(_0x46e01d['newRange'])||_0x290023&&!tn(_0x46e01d['newRange'])||_0x41b672&&en(_0x46e01d['newRange'])||'deletion'==_0x55f740&&en(_0x46e01d['newRange'])||_0x363ead&&nn(_0x363ead,_0x4f34ef))_0x1cd079['removeMarker'](_0x12faac),_0x5a841e=!0x0;else{if(!_0x3a1116||!_0x3a1116['isInContent'])continue;if(_0x46e01d['newRange']&&_0x46e01d['oldRange']&&_0x46e01d['newRange']['isEqual'](_0x46e01d['oldRange']))continue;_0x1d6f85['add'](_0x3a1116);}}}return _0x1d6f85['size']>0x0&&(_0x5a841e=!!this['_joinWithAdjacentSuggestions'](_0x1d6f85)||_0x5a841e),_0x5a841e;}),_0x3c79ea['model']['document']['registerPostFixer'](_0x1b1324=>{let _0x1ebf5e=!0x1;for(const _0x55fd57 of _0x3c79ea['model']['document']['differ']['getChanges']())if('insert'==_0x55fd57['type'])for(const _0x38571d of this['_suggestions']['values']()){if(_0x38571d['isMultiRange']||!_0x38571d['isInContent'])continue;const _0xc0bf0f='formatBlock'==_0x38571d['type'],_0x2f8256=this['_getAttributeKey'](_0x38571d),_0x41fa99=_0x2f8256&&this['_suggestionsConversion']['isBlockAttribute'](_0x2f8256);if(!_0xc0bf0f&&!_0x41fa99)continue;const _0x446ed4=_0x38571d['getFirstRange']();if(_0x446ed4['start']['parent']!=_0x446ed4['end']['parent']&&!_0x446ed4['end']['isAtEnd']){const _0x350e87=_0x3c79ea['model']['createPositionAt'](_0x446ed4['start']['nodeAfter'],'end'),_0x4ca3bf=_0x3c79ea['model']['createRange'](_0x446ed4['start'],_0x350e87);_0x1b1324['updateMarker'](_0x38571d['getFirstMarker'](),{'range':_0x4ca3bf}),_0x1ebf5e=!0x0;}}return _0x1ebf5e;}),_0x3c79ea['model']['document']['registerPostFixer'](_0x36377b=>this['_processAttributeChanges'](_0x36377b)),_0x3c79ea['model']['document']['registerPostFixer'](_0x28aaee=>!_0x28aaee['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x28aaee)),_0x3c79ea['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x3c79ea['model']['document']['on']('change:data',(_0x21aa2c,_0xae4491)=>{if(!_0xae4491['isLocal']||_0xae4491['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x59b713=_0x3c79ea['model']['document']['differ']['getChanges']();if(0x0==_0x59b713['length'])return;const _0x1c906c=[],_0x455173=_0x59b713['filter'](_0xcc2c7f=>'attribute'==_0xcc2c7f['type']),_0x4bb592=_0x59b713['filter'](_0x1550a2=>'insert'==_0x1550a2['type']&&'$text'!=_0x1550a2['name']);for(const _0x43c3a2 of _0x455173)this['_suggestionsConversion']['isRegisteredAttribute'](_0x43c3a2['attributeKey'])&&_0x1c906c['push']({'key':_0x43c3a2['attributeKey'],'newValue':_0x43c3a2['attributeNewValue'],'oldValue':_0x43c3a2['attributeOldValue'],'range':sn(_0x43c3a2['range'],_0x3c79ea['model'])});for(const _0x125e9f of _0x4bb592){if('rename'!=_0x125e9f['action']&&'refresh'!=_0x125e9f['action'])continue;const _0xa7670c=rn(_0x125e9f['position']['nodeAfter'],_0x3c79ea['model']),_0x4de0da=_0x125e9f['before'];'rename'==_0x125e9f['action']&&_0x1c906c['push']({'key':Ke,'newValue':_0x125e9f['name'],'oldValue':_0x4de0da['name'],'range':_0xa7670c});for(const [_0x443491,_0x3e6e05]of _0x4de0da['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x443491))continue;const _0x19a583=_0x125e9f['attributes']['get'](_0x443491);_0x3e6e05!==_0x19a583&&_0x1c906c['push']({'key':_0x443491,'newValue':_0x19a583,'oldValue':_0x3e6e05,'range':_0xa7670c});}for(const [_0x1f9e03,_0x392b34]of _0x125e9f['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x1f9e03)&&(_0x4de0da['attributes']['has'](_0x1f9e03)||_0x1c906c['push']({'key':_0x1f9e03,'newValue':_0x392b34,'oldValue':null,'range':_0xa7670c}));}0x0!=_0x1c906c['length']&&_0x3c79ea['model']['enqueueChange'](_0xae4491,_0x13987c=>{const _0x21eca7=_0x15ca27();for(const {range:_0x4c9c69,key:_0x4902d1,oldValue:_0x14d4d7,newValue:_0x490a1}of _0x1c906c)this['markAttributeChange'](_0x4c9c69,_0x4902d1,_0x14d4d7,_0x490a1,{'groupId':_0x21eca7});this['_reduceExistingSuggestions'](_0x13987c,_0x1c906c);});},{'priority':'lowest'}),_0x3c79ea['model']['markers']['on']('update:suggestion',(_0x169423,_0x515af2,_0x74ffad)=>{if(null==_0x74ffad){const {id:_0x2dbc7e}=_0x475a96(_0x515af2['name']),_0x2bbe83=this['_suggestions']['get'](_0x2dbc7e);_0x2bbe83&&_0x2bbe83['addMarkerName'](_0x515af2['name']);}}),_0x3c79ea['model']['document']['on']('change:data',()=>{const _0x5839c3=Array['from'](_0x3c79ea['model']['document']['differ']['getChangedMarkers']())['filter'](_0x4330e5=>'suggestion'===_0x475a96(_0x4330e5['name'])['group']);if(0x0===_0x5839c3['length'])return;_0x5839c3['sort']((_0x10fd69,_0x2a70d3)=>{const _0x232a1d=_0x10fd69['data']['oldRange'],_0x5c9036=_0x2a70d3['data']['oldRange'];return null===_0x232a1d&&null===_0x5c9036?0x0:null===_0x232a1d&&null!==_0x5c9036?-0x1:null!==_0x232a1d&&null===_0x5c9036?0x1:_0x232a1d['start']['isBefore'](_0x5c9036['start'])?-0x1:0x1;});const _0x586f10=new Set(),_0x13d4e7=new Set();for(const {name:_0x282907,data:_0x2ee26d}of _0x5839c3){const {id:_0x24157d}=_0x475a96(_0x282907);if(null===_0x2ee26d['oldRange']){const _0x3d1b7c=this['_handleNewSuggestionMarker'](_0x282907);_0x13d4e7['add'](_0x3d1b7c);}else{const _0x43819a=this['_suggestions']['get'](_0x24157d);null!==_0x2ee26d['newRange']||_0x43819a['isInContent']?(_0x586f10['add'](_0x43819a['head']),_0x13d4e7['add'](_0x43819a)):this['_removeSuggestion'](_0x43819a);}}_0x13d4e7['size']>0x0&&this['_refreshSuggestionsChain'](_0x13d4e7);for(const _0x1dca78 of _0x586f10)this['fire']('suggestionChanged',_0x1dca78);}),_0x3c79ea['model']['on']('applyOperation',(_0x1aa4dc,_0x2b1b32)=>{const _0x1b750=_0x2b1b32[0x0];if(!this['_suggestions']['size'])return;if(!_0x1b750['isDocumentOperation'])return;if(_0x1b750['batch']['isUndo']||!_0x1b750['batch']['isLocal'])return;let _0x5eb942,_0xd2405;switch(_0x1b750['type']){case'insert':_0x5eb942=_0x3c79ea['model']['createPositionAt'](_0x1b750['position']),_0xd2405=_0x5eb942['getShiftedBy'](_0x1b750['howMany']);break;case'split':_0x5eb942=_0x3c79ea['model']['createPositionAt'](_0x1b750['splitPosition']),_0xd2405=_0x3c79ea['model']['createPositionAt'](_0x1b750['moveTargetPosition']);break;case'move':_0x5eb942=_0x3c79ea['model']['createPositionAt'](_0x1b750['targetPosition']),_0xd2405=_0x5eb942['getShiftedBy'](_0x1b750['howMany']);break;default:return;}const _0x212faa=_0x3c79ea['model']['createRange'](_0x5eb942,_0xd2405);_0x3c79ea['model']['change'](()=>{for(const {suggestion:_0x33eb19,meta:_0x2927e2}of this['_findSuggestions'](_0x212faa)){if(_0x33eb19['isMultiRange'])continue;if('formatInline'==_0x33eb19['type'])continue;const _0x31531c=this['_getAttributeKey'](_0x33eb19);if(_0x31531c&&this['_suggestionsConversion']['isBlockAttribute'](_0x31531c)&&'split'!=_0x1b750['type'])continue;const _0x99f8b7=_0x33eb19['data']&&_0x33eb19['data']['multipleBlocks'];('formatBlock'!=_0x33eb19['type']||'split'==_0x1b750['type']&&!_0x99f8b7)&&(_0x2927e2['containsRangeInObject']||'insertion'==_0x33eb19['type']&&_0x2927e2['isOwn']||_0x33eb19['getFirstRange']()['containsRange'](_0x212faa)&&this['_breakSuggestionMarker'](_0x33eb19,_0x5eb942,_0xd2405));}});},{'priority':'lowest'}),_0x3c79ea['model']['on']('deleteContent',(_0x37cd09,_0x4bac94)=>{const _0x305d86=_0x4bac94[0x0],_0x13d017=_0x4bac94[0x1];if(_0x13d017&&_0x13d017['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x305d86['isCollapsed'])return;const _0x7b2f1c=_0x3c79ea['model']['schema'],{start:_0x4f89c1,end:_0x4cf216}=_0x305d86['getFirstRange'](),_0x3bcbf9=_0x4f89c1['nodeAfter']&&_0x7b2f1c['isLimit'](_0x4f89c1['nodeAfter'])?null:_0x7b2f1c['getNearestSelectionRange'](_0x4f89c1,'forward'),_0xf9338=_0x4cf216['nodeBefore']&&_0x7b2f1c['isLimit'](_0x4cf216['nodeBefore'])?null:_0x7b2f1c['getNearestSelectionRange'](_0x4cf216,'backward'),_0xa3fe80=_0x3c79ea['model']['createRange'](_0x3bcbf9?_0x3bcbf9['start']:_0x4f89c1,_0xf9338?_0xf9338['end']:_0x4cf216);_0x3c79ea['model']['change'](_0x376fd0=>{this['markDeletion'](_0xa3fe80);const _0x1fdad1=_0x3c79ea['model']['schema']['getNearestSelectionRange'](_0xa3fe80['start']);_0x305d86['is']('documentSelection')?_0x376fd0['setSelection'](_0x1fdad1):_0x305d86['setTo'](_0x1fdad1);}),_0x37cd09['stop']();},{'priority':_0x3cf629['normal']+0xa}),_0x3c79ea['model']['on']('insertContent',(_0x9dafe3,_0x520ee1)=>{const _0x312494=_0x520ee1[_0x520ee1['length']-0x1];_0x312494&&_0x312494['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x3c79ea['model']['change'](()=>{let _0x4906f8=_0x3c79ea['model']['insertContent'](_0x520ee1[0x0],_0x520ee1[0x1],_0x520ee1[0x2],{'forceDefaultExecution':!0x0});if(!_0x4906f8)return;_0x9dafe3['return']=_0x4906f8['clone']();const _0x175bd2=_0x4906f8['end']['nodeBefore'],_0x358bc6=_0x3c79ea['model']['schema'];_0x175bd2&&_0x358bc6['isBlock'](_0x175bd2)&&!_0x358bc6['isObject'](_0x175bd2)&&(_0x4906f8=_0x3c79ea['model']['createRange'](_0x4906f8['start'],_0x3c79ea['model']['createPositionAt'](_0x175bd2,'end'))),this['markInsertion'](_0x4906f8);}),_0x9dafe3['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x374ac1=new dt(_0x3c79ea,this['_suggestions']);_0x3c79ea['commands']['add']('acceptSuggestion',_0x374ac1),this['enableCommand']('acceptSuggestion');const _0x540a0d=new ft(_0x3c79ea,this['_suggestions']);_0x3c79ea['commands']['add']('discardSuggestion',_0x540a0d),this['enableCommand']('discardSuggestion'),_0x3c79ea['commands']['add']('acceptAllSuggestions',new Lt(_0x3c79ea,_0x374ac1,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x3c79ea['commands']['add']('discardAllSuggestions',new Lt(_0x3c79ea,_0x540a0d,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x3c79ea['commands']['add']('acceptSelectedSuggestions',new It(_0x3c79ea,_0x374ac1,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x3c79ea['commands']['add']('discardSelectedSuggestions',new It(_0x3c79ea,_0x540a0d,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0xda00fb=_0x3c79ea['plugins']['get'](_0x4551a9);this['listenTo'](_0xda00fb,'addComment',(_0x4affbd,{threadId:_0x1f9a8})=>{const _0x255a91=this['_suggestions']['get'](_0x1f9a8);_0x255a91&&_0x255a91['commentThread']&&0x1===_0x255a91['commentThread']['length']&&this['_updateSuggestionData'](_0x1f9a8,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0xda00fb,'removeComment',(_0x5eaabb,{threadId:_0x34a5b8})=>{const _0x44ca36=this['_suggestions']['get'](_0x34a5b8);_0x44ca36&&_0x44ca36['commentThread']&&!_0x44ca36['commentThread']['length']&&this['_updateSuggestionData'](_0x34a5b8,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x2eb504){const _0x3e4a1a=_0x3600e2([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]),_0x2804ac=0x3d8d0df,_0x675403=0x3df5567^_0x2804ac,_0x545e77=window[_0x3600e2([0x44,0x61,0x74,0x65])][_0x3600e2([0x6e,0x6f,0x77])](),_0x8b2964=_0x2eb504[_0x3600e2([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4ad173=new window[(_0x3600e2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x158129=>{_0x8b2964[_0x3600e2([0x6f,0x6e,0x63,0x65])](_0x3600e2([0x72,0x65,0x61,0x64,0x79]),_0x158129);}),_0x39b03d={[_0x3600e2([0x6b,0x74,0x79])]:_0x3600e2([0x45,0x43]),[_0x3600e2([0x75,0x73,0x65])]:_0x3600e2([0x73,0x69,0x67]),[_0x3600e2([0x63,0x72,0x76])]:_0x3600e2([0x50,0x2d,0x32,0x35,0x36]),[_0x3600e2([0x78])]:_0x3600e2([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]),[_0x3600e2([0x79])]:_0x3600e2([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]),[_0x3600e2([0x61,0x6c,0x67])]:_0x3600e2([0x45,0x53,0x32,0x35,0x36])},_0x35a736=_0x8b2964[_0x3600e2([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3600e2([0x67,0x65,0x74])](_0x3600e2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x195f99(){let _0xeeb4e9,_0x3d7417=null,_0x31e041=null;try{if(_0x35a736==_0x3600e2([0x47,0x50,0x4c]))return _0x3600e2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xeeb4e9=_0x1c19c6(),!_0xeeb4e9)return _0x3600e2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xeeb4e9[_0x3600e2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x31e041=_0xc0c96e(_0xeeb4e9[_0x3600e2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xeeb4e9[_0x3600e2([0x6a,0x74,0x69])])),await _0x2392ba()?_0x476a18()?_0x38926b()?_0x3600e2([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x18665c()?(_0xeeb4e9[_0x3600e2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3600e2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3d7417=_0x555958(_0x3600e2([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4e0d15()):_0x3600e2([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3600e2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3600e2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3600e2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x38926b(){const _0x190092=[_0x3600e2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3600e2([0x74,0x72,0x69,0x61,0x6c])][_0x3600e2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xeeb4e9[_0x3600e2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x545e77/0x3e8:0xe10*_0x675403;return _0xeeb4e9[_0x3600e2([0x65,0x78,0x70])]<_0x190092;}function _0x476a18(){const _0x351465=_0xeeb4e9[_0x3600e2([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x351465)return!0x1;if(_0x351465[_0x3600e2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3600e2([0x2a])))return!0x0;if(_0x351465[_0x3600e2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3600e2([0x54,0x43])))return!0x0;if(_0x351465[_0x3600e2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3600e2([0x52,0x54,0x43]))){if(_0x36e599())return!0x0;if(_0x7baf4b()||_0x56479b())return!0x0;}return!0x1;}function _0x18665c(){const _0x378eee=_0xeeb4e9[_0x3600e2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x378eee||0x0==_0x378eee[_0x3600e2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xabba87}=new URL(window[_0x3600e2([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x378eee[_0x3600e2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xabba87))return!0x0;const _0x28149c=_0xabba87[_0x3600e2([0x73,0x70,0x6c,0x69,0x74])](_0x3600e2([0x2e]));return _0x378eee[_0x3600e2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1cc0f7=>_0x1cc0f7[_0x3600e2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3600e2([0x2a])))[_0x3600e2([0x6d,0x61,0x70])](_0x435373=>_0x435373[_0x3600e2([0x73,0x70,0x6c,0x69,0x74])](_0x3600e2([0x2e])))[_0x3600e2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x14fb70=>_0x14fb70[_0x3600e2([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x28149c[_0x3600e2([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3600e2([0x6d,0x61,0x70])](_0x2d996b=>Array(_0x28149c[_0x3600e2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2d996b[_0x3600e2([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3600e2([0x66,0x69,0x6c,0x6c])](_0x2d996b[0x0]===_0x3600e2([0x2a])?_0x3600e2([0x2a]):'')[_0x3600e2([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2d996b))[_0x3600e2([0x73,0x6f,0x6d,0x65])](_0x402e00=>_0x28149c[_0x3600e2([0x65,0x76,0x65,0x72,0x79])]((_0x51b2f1,_0x35ae71)=>_0x402e00[_0x35ae71]===_0x51b2f1||_0x402e00[_0x35ae71]===_0x3600e2([0x2a])));}function _0x4e0d15(){return _0x3d7417&&_0x31e041?new window[(_0x3600e2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x23b96a,_0x8d9020)=>{_0x3d7417[_0x3600e2([0x74,0x68,0x65,0x6e])](_0x23b96a,_0x8d9020),_0x31e041[_0x3600e2([0x74,0x68,0x65,0x6e])](_0x20dc2e=>{_0x20dc2e!=_0x3600e2([0x56,0x61,0x6c,0x69,0x64])&&_0x23b96a(_0x20dc2e);},_0x8d9020);}):_0x3d7417||_0x31e041||_0x3600e2([0x56,0x61,0x6c,0x69,0x64]);}}function _0xc0c96e(_0x10865a,_0x112855){return new window[(_0x3600e2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x13bc02=>{if(_0x34e452())return _0x13bc02(_0x3600e2([0x56,0x61,0x6c,0x69,0x64]));_0x5db9dc(),_0x8b2964[_0x3600e2([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3600e2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x523483=!0x1;const _0x1e8cfb=_0x15ca27();function _0xdc3aa5(_0x2e671a){return!!_0x2e671a&&(typeof _0x2e671a===_0x3600e2([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2e671a===_0x3600e2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2e671a[_0x3600e2([0x74,0x68,0x65,0x6e])]===_0x3600e2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2e671a[_0x3600e2([0x63,0x61,0x74,0x63,0x68])]===_0x3600e2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1b5c8b(_0x44fc56){_0x9619dc(_0x44fc56)[_0x3600e2([0x74,0x68,0x65,0x6e])](_0x457ac8=>{if(!_0x457ac8||_0x457ac8[_0x3600e2([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3600e2([0x6f,0x6b]))return _0x3600e2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4066a2(_0xc270b5(_0x1e8cfb+_0x112855))!=_0x457ac8[_0x3600e2([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3600e2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3600e2([0x56,0x61,0x6c,0x69,0x64]);})[_0x3600e2([0x74,0x68,0x65,0x6e])](_0x229583=>(_0x245689(),_0x229583),()=>{const _0x5a0c48=_0x3c3ec8();return null==_0x5a0c48?(_0x245689(),_0x3600e2([0x56,0x61,0x6c,0x69,0x64])):_0x3600e2(_0x545e77-_0x5a0c48>(0x27d454df^_0x2804ac)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3600e2([0x74,0x68,0x65,0x6e])](_0x13bc02)[_0x3600e2([0x63,0x61,0x74,0x63,0x68])](()=>{_0x13bc02(_0x3600e2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x306ad4=0x3ee3e5f^_0x2804ac;function _0x245689(){const _0x3ddedd=_0x3600e2([0x6c,0x6c,0x63,0x74,0x2d])+_0x4066a2(_0xc270b5(_0x10865a)),_0x20d777=_0xb47eaa(_0x4066a2(window[_0x3600e2([0x4d,0x61,0x74,0x68])][_0x3600e2([0x63,0x65,0x69,0x6c])](_0x545e77/_0x306ad4)));window[_0x3600e2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3600e2([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3ddedd,_0x20d777);}function _0x3c3ec8(){const _0x11f5be=_0x3600e2([0x6c,0x6c,0x63,0x74,0x2d])+_0x4066a2(_0xc270b5(_0x10865a)),_0x57fc45=window[_0x3600e2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3600e2([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x11f5be);return _0x57fc45?window[_0x3600e2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xb47eaa(_0x57fc45),0x10)*_0x306ad4:null;}function _0x9619dc(_0x4511cb){return new window[(_0x3600e2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x44eba3,_0x257956)=>{_0x4511cb[_0x3600e2([0x74,0x68,0x65,0x6e])](_0x44eba3,_0x257956),window[_0x3600e2([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x257956,0x3d9041f^_0x2804ac);});}}_0x8b2964[_0x3600e2([0x6f,0x6e])](_0x3600e2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x58586b,_0x2fa583)=>{if(_0x2fa583[0x0]!=_0x10865a)return _0x13bc02(_0x3600e2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2fa583[0x1]={..._0x2fa583[0x1],[_0x3600e2([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1e8cfb};},{[_0x3600e2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3600e2([0x68,0x69,0x67,0x68])}),_0x8b2964[_0x3600e2([0x6f,0x6e])](_0x3600e2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xfc711a=>{_0xdc3aa5(_0xfc711a[_0x3600e2([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x523483=!0x0,_0x1b5c8b(_0xfc711a[_0x3600e2([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3600e2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3600e2([0x6c,0x6f,0x77])}),_0x4ad173[_0x3600e2([0x74,0x68,0x65,0x6e])](()=>{_0x523483||_0x13bc02(_0x3600e2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x34e452(){return _0x8b2964[_0x3600e2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3600e2([0x76,0x69,0x65,0x77])][_0x3600e2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3600e2([0x61,0x75,0x74,0x6f]);}function _0x5db9dc(){_0x8b2964[_0x3600e2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3600e2([0x76,0x69,0x65,0x77])][_0x3600e2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3600e2([0x61,0x75,0x74,0x6f]);}}function _0x555958(_0x48fbb8){const _0x28a6db=[new window[(_0x3600e2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x198ebb=>setTimeout(_0x198ebb,0x3d1ee13^_0x2804ac)),_0x4ad173[_0x3600e2([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3600e2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x36f50a=>{let _0x3d101d=0x0;_0x8b2964[_0x3600e2([0x6d,0x6f,0x64,0x65,0x6c])][_0x3600e2([0x6f,0x6e])](_0x3600e2([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x48f8a5,_0x17bc17)=>{_0x17bc17[0x0][_0x3600e2([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3d101d++,_0x3d101d==(0x3d8d537^_0x2804ac)&&(_0x36f50a(),_0x48f8a5[_0x3600e2([0x6f,0x66,0x66])]());});}))];return window[_0x3600e2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3600e2([0x72,0x61,0x63,0x65])](_0x28a6db)[_0x3600e2([0x74,0x68,0x65,0x6e])](()=>_0x48fbb8);}async function _0x23f105(){await _0x4ad173,_0x8b2964[_0x3600e2([0x6d,0x6f,0x64,0x65,0x6c])][_0x3600e2([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x389f5f,_0x8b2964[_0x3600e2([0x6d,0x6f,0x64,0x65,0x6c])][_0x3600e2([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x389f5f,_0x8b2964[_0x3600e2([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3600e2([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x36e599(){return _0x3a3b66(_0x3600e2([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x5c8823(_0x3600e2([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x3600e2([0x73,0x74,0x61,0x74,0x65])]==_0x3600e2([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x7baf4b(){return _0x3a3b66(_0x3600e2([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 _0x56479b(){return _0x3a3b66(_0x3600e2([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x282cc2(_0x2f2b1e){const _0x5926a4=_0x2159e8();_0x8b2964[_0x5926a4]=_0x3600e2([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2f2b1e,_0x2f2b1e!=_0x3600e2([0x56,0x61,0x6c,0x69,0x64])&&_0x23f105();}function _0x2159e8(){const _0x410e86=window[_0x3600e2([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3600e2([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3600e2([0x6e,0x6f,0x77])]())[_0x3600e2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3600e2([0x2e]),'');let _0x5b7974=_0x3600e2([0x52]);for(let _0x1874d0=0x0;_0x1874d0<_0x410e86[_0x3600e2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1874d0+=0x2){let _0x3a28be=window[_0x3600e2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x410e86[_0x3600e2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1874d0,_0x1874d0+0x2));_0x3a28be>=_0x3e4a1a[_0x3600e2([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3a28be-=_0x3e4a1a[_0x3600e2([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5b7974+=_0x3e4a1a[_0x3a28be];}return _0x5b7974;}function _0x1c19c6(){const _0x3bb7aa=_0x35a736[_0x3600e2([0x73,0x70,0x6c,0x69,0x74])](_0x3600e2([0x2e]));if(0x3!=_0x3bb7aa[_0x3600e2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xf6447(_0x3bb7aa[0x1]);function _0xf6447(_0x1e642c){const _0x1bf7a0=_0x281d25(_0x1e642c);return _0x1bf7a0&&_0x2d57c8()?_0x1bf7a0:null;function _0x2d57c8(){const _0x3be41e=_0x1bf7a0[_0x3600e2([0x6a,0x74,0x69])],_0xfcf059=window[_0x3600e2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3be41e[_0x3600e2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3be41e[_0x3600e2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4d4cf2={..._0x1bf7a0,[_0x3600e2([0x6a,0x74,0x69])]:_0x3be41e[_0x3600e2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3be41e[_0x3600e2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4d4cf2[_0x3600e2([0x76,0x63])],_0xc270b5(_0x4d4cf2)==_0xfcf059;}}}async function _0x2392ba(){let _0x51d378=!0x0;try{const _0x58cb61=_0x35a736[_0x3600e2([0x73,0x70,0x6c,0x69,0x74])](_0x3600e2([0x2e])),[_0x130aa4,_0x221d3e,_0x18babb]=_0x58cb61;return _0x150b5f(_0x130aa4),await _0x340969(_0x130aa4,_0x221d3e,_0x18babb),_0x51d378;}catch{return!0x1;}function _0x150b5f(_0x26a3cf){const _0x2b6ac6=_0x281d25(_0x26a3cf);_0x2b6ac6&&_0x2b6ac6[_0x3600e2([0x61,0x6c,0x67])]==_0x3600e2([0x45,0x53,0x32,0x35,0x36])||(_0x51d378=!0x1);}async function _0x340969(_0x4c0923,_0x5e4dd3,_0x1133d1){const _0x4495ab=window[_0x3600e2([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3600e2([0x66,0x72,0x6f,0x6d])](_0x4d1dab(_0x1133d1),_0x51426e=>_0x51426e[_0x3600e2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x386c37=new window[(_0x3600e2([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3600e2([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4c0923+_0x3600e2([0x2e])+_0x5e4dd3),_0x3eb8f9=window[_0x3600e2([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3600e2([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3eb8f9)return;const _0x363d44=await _0x3eb8f9[_0x3600e2([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3600e2([0x6a,0x77,0x6b]),_0x39b03d,{[_0x3600e2([0x6e,0x61,0x6d,0x65])]:_0x3600e2([0x45,0x43,0x44,0x53,0x41]),[_0x3600e2([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3600e2([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3600e2([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3eb8f9[_0x3600e2([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3600e2([0x6e,0x61,0x6d,0x65])]:_0x3600e2([0x45,0x43,0x44,0x53,0x41]),[_0x3600e2([0x68,0x61,0x73,0x68])]:{[_0x3600e2([0x6e,0x61,0x6d,0x65])]:_0x3600e2([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x363d44,_0x4495ab,_0x386c37)||(_0x51d378=!0x1);}}function _0x281d25(_0x3df2b3){return _0x3df2b3[_0x3600e2([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3600e2([0x65,0x79]))?JSON[_0x3600e2([0x70,0x61,0x72,0x73,0x65])](_0x4d1dab(_0x3df2b3)):null;}function _0x4d1dab(_0x84264b){return window[_0x3600e2([0x61,0x74,0x6f,0x62])](_0x84264b[_0x3600e2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3600e2([0x2b]))[_0x3600e2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3600e2([0x2f])));}function _0xc270b5(_0x58dcd0){let _0x1e820b=0x1505;function _0x72fd87(_0x267a3d){for(let _0x143a6c=0x0;_0x143a6c<_0x267a3d[_0x3600e2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x143a6c++){const _0x55ab27=_0x267a3d[_0x3600e2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x143a6c);_0x1e820b=(_0x1e820b<<0x5)+_0x1e820b+_0x55ab27,_0x1e820b&=_0x1e820b;}}function _0x445e0c(_0x23be99){Array[_0x3600e2([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x23be99)?_0x23be99[_0x3600e2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x445e0c):_0x23be99&&typeof _0x23be99==_0x3600e2([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3600e2([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x23be99)[_0x3600e2([0x73,0x6f,0x72,0x74])]()[_0x3600e2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x57039d,_0x552fb6])=>{_0x72fd87(_0x57039d),_0x445e0c(_0x552fb6);}):_0x72fd87(window[_0x3600e2([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x23be99));}return _0x445e0c(_0x58dcd0),_0x1e820b>>>0x0;}function _0x4066a2(_0x25d0f3){return _0x25d0f3[_0x3600e2([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3600e2([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3600e2([0x30]));}function _0xb47eaa(_0x5d915b){return _0x5d915b[_0x3600e2([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3600e2([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3600e2([0x6a,0x6f,0x69,0x6e])]('');}function _0x3a3b66(_0x4e678c){return _0x8b2964[_0x3600e2([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3600e2([0x68,0x61,0x73])](_0x4e678c);}function _0x5c8823(_0x368d11){return _0x8b2964[_0x3600e2([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3600e2([0x67,0x65,0x74])](_0x368d11);}function _0x389f5f(){}function _0x3600e2(_0x43ab62){return _0x43ab62['map'](_0x279484=>String['fromCharCode'](_0x279484))['join']('');}_0x282cc2(await _0x195f99());}(this);}set['adapter'](_0x24e58a){if(this['_adapter'])throw new _0x3800a1('track-changes-adapter-already-set',this);this['_adapter']=_0x24e58a;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x4cd471=!0x1,toJSON:_0x151910=!0x1}={}){const _0x469cc7=[];for(const _0x4c72c3 of this['_suggestions']['values']())_0x4cd471&&!_0x4c72c3['isInContent']||_0x469cc7['push'](_0x4c72c3);return _0x151910?_0x469cc7['map'](_0x24f580=>_0x24f580['toJSON']()):_0x469cc7;}['getSuggestion'](_0xd8cf82){const _0x391528=this['_suggestions']['get'](_0xd8cf82);if(!_0x391528)throw new _0x3800a1('track-changes-suggestion-not-found',this);return _0x391528;}['hasSuggestion'](_0x120942){return this['_suggestions']['has'](_0x120942);}['addSuggestionData'](_0x3fc34a){const {authorId:_0xd13302,id:_0x1235b6,originalSuggestionId:_0x1b75b9,attributes:_0x5670ae}=_0x3fc34a,[_0x26797b,_0x53ccb7]=_0x3fc34a['type']['split'](':'),_0x2dcb40=this['_suggestions']['get'](_0x1235b6)||this['_createSuggestion'](_0x26797b,_0x53ccb7,_0x1235b6,_0xd13302,_0x5670ae,_0x1b75b9);if(this['_addThreadToSuggestion'](_0x2dcb40),this['_checkSuggestionCorrectness'](_0x2dcb40,_0x26797b,_0x53ccb7||null,_0xd13302),_0x2dcb40['createdAt']=_0x3fc34a['createdAt'],_0x2dcb40['_isDataLoaded']=!0x0,_0x5670ae&&_0x5670ae['@external']){const _0x5870bd=_0x5670ae['@external'],_0x4afab1=this['_getExternalAuthor'](_0x5870bd['authorName']);_0x2dcb40['authoredAt']=_0x5870bd['createdAt'],_0x2dcb40['author']=_0x4afab1,_0x2dcb40['isExternal']=!0x0;}else _0x2dcb40['authoredAt']=_0x3fc34a['createdAt'];switch(_0x3fc34a['data']&&(_0x2dcb40['data']=_0x3fc34a['data']),_0x3fc34a['attributes']&&(_0x2dcb40['attributes']=_0x3fc34a['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x2dcb40['_saved']=!0x0),this['_suggestionState']['get'](_0x2dcb40)){case'notReady':this['_suggestionState']['set'](_0x2dcb40,'dataReady');break;case'markerReady':_0x2dcb40['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x2dcb40])),this['_refreshSuggestionsChain'](new Set([_0x2dcb40])),this['_suggestionState']['set'](_0x2dcb40,'ready'),this['fire']('suggestionLoaded',_0x2dcb40)):this['_suggestionState']['set'](_0x2dcb40,'removed');}return _0x2dcb40;}['acceptSuggestion'](_0x26a6fb){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x10b32d of _0x26a6fb['getAllAdjacentSuggestions']())_0x10b32d['accept']();});});}['discardSuggestion'](_0x5b01f2){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x297fcc of _0x5b01f2['getAllAdjacentSuggestions']())_0x297fcc['discard']();});});}['enableCommand'](_0x4bb554,_0x3c4726){const _0x19e720=this['editor']['commands']['get'](_0x4bb554);if(!_0x19e720)throw new _0x3800a1('track-changes-command-not-found',this,{'commandName':_0x4bb554});if(this['_enabledCommands']['has'](_0x19e720))throw new _0x3800a1('track-changes-enable-command-twice',this,{'commandName':_0x4bb554});this['_enabledCommands']['add'](_0x19e720),_0x3c4726&&_0x19e720['on']('execute',(_0x2601dd,_0x36ea96)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x36ea96['length']>0x0&&_0x36ea96[_0x36ea96['length']-0x1]&&_0x36ea96[_0x36ea96['length']-0x1]['forceDefaultExecution']?_0x36ea96['pop']():(_0x2601dd['return']=_0x3c4726((..._0x1bff41)=>_0x19e720['execute'](..._0x1bff41,{'forceDefaultExecution':!0x0}),..._0x36ea96),_0x2601dd['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x7d6728){let _0x5ecff3,_0x6bc2d8;const _0x5e30f2=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x5ecff3=_0x7d6728();}catch(_0x60fc53){_0x6bc2d8=_0x60fc53;}return _0x5e30f2||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x6bc2d8&&_0x3800a1['rethrowUnexpectedError'](_0x6bc2d8,this),_0x5ecff3;}['markInsertion'](_0x25b555,_0x32eb5b=null,_0x17faca={}){if(_0x25b555['isCollapsed'])return null;const _0x471d5e=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x17faca['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x14fd65,meta:_0x212833}of this['_findSuggestions'](_0x25b555,'insertion'))if(_0x212833['isOwn']){if(!_0x212833['isNextTo']){if(_0x212833['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!cn(_0x14fd65,_0x17faca))continue;return _0x14fd65;}if(cn(_0x14fd65,_0x17faca))return _0x14fd65;this['_breakSuggestionMarker'](_0x14fd65,_0x25b555['start'],_0x25b555['end']);break;}if(_0x32eb5b==_0x14fd65['subType']&&cn(_0x14fd65,_0x17faca)){const _0x4ea8aa=_0x14fd65['getFirstRange']();return _0x4ea8aa['start']['isEqual'](_0x25b555['end'])?this['_setSuggestionRange'](_0x14fd65,this['_model']['createRange'](_0x25b555['start'],_0x4ea8aa['end'])):this['_setSuggestionRange'](_0x14fd65,this['_model']['createRange'](_0x4ea8aa['start'],_0x25b555['end'])),_0x14fd65;}}const _0x66f0b7=_0x15ca27(),_0x22f79c=_0x471d5e['id'],_0x5ba1d8=_0x32eb5b?'insertion:'+_0x32eb5b:'insertion',_0x32540c=this['_setSuggestionData']({'id':_0x66f0b7,'type':_0x5ba1d8,'createdAt':new Date(),'authorId':_0x22f79c,'attributes':_0x17faca});return this['_addSuggestionMarker'](_0x5ba1d8,_0x66f0b7,_0x22f79c,_0x25b555),_0x32540c;}['markMultiRangeInsertion'](_0x4c78d5,_0x416695='multi',_0x72e2c7={}){const _0x2cbad4=this['editor']['plugins']['get']('Users')['me'],_0x157352=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x416695,'join');this['_trackingSessionId']&&(_0x72e2c7['trackingSessionId']=this['_trackingSessionId']);for(const _0x2e53cc of this['getSuggestions']())if(_0x2e53cc['author']['id']==_0x2cbad4['id']&&'insertion'==_0x2e53cc['type']&&_0x2e53cc['subType']==_0x416695&&cn(_0x2e53cc,_0x72e2c7)&&(_0x157352(_0x2e53cc['getRanges'](),_0x4c78d5)||_0x157352(_0x4c78d5,_0x2e53cc['getRanges']()))){for(const _0x4f6b9f of _0x4c78d5)_0x2e53cc['addRange'](_0x4f6b9f);return _0x2e53cc;}for(const {suggestion:_0xae3e9d,meta:_0x466588}of this['_findSuggestions'](_0x4c78d5,'insertion')){if(!_0x466588['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x466588['containsRangeInObject'])continue;if(!cn(_0xae3e9d,_0x72e2c7))continue;let _0x276df0=!0x0;for(const _0x2f1007 of _0xae3e9d['getRanges']())for(const _0x1b75d5 of _0x4c78d5)if(!_0x2f1007['containsRange'](_0x1b75d5)){_0x276df0=!0x1;break;}if(_0x276df0)return _0xae3e9d;}const _0x4eaee=_0x15ca27(),_0x4dad69=_0x2cbad4['id'],_0x1df0ac='insertion:'+_0x416695,_0x5a7f94=this['_setSuggestionData']({'id':_0x4eaee,'type':_0x1df0ac,'createdAt':new Date(),'authorId':_0x4dad69,'attributes':_0x72e2c7});for(const _0x4eb24a of _0x4c78d5)this['_addSuggestionMarker'](_0x1df0ac,_0x4eaee,_0x4dad69,_0x4eb24a,bt['getMultiRangeId']());return _0x5a7f94;}['markInlineFormat'](_0x4c6c31,_0x5eab94,_0x29810c=null,_0x254d56={}){if(_0x29810c=_0x29810c||Je(_0x5eab94),_0x4c6c31['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x254d56['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x3a864e=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x29810c,'accept');return this['forceDefaultExecution'](()=>_0x3a864e([_0x4c6c31],_0x5eab94,_0x254d56)),null;}const _0x5e1cd4=this['editor']['plugins']['get']('Users')['me'],_0x3672b0=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x798cfd,meta:_0x7d8c9f}of this['_findSuggestions'](_0x4c6c31,'insertion'))_0x7d8c9f['isOwn']&&!_0x7d8c9f['isInsideObject']&&_0x3672b0['push'](..._0x798cfd['getRanges']());}const _0x34b1aa=function(_0x277d80,_0x5e28cb){const _0x1d6d7c=[];for(const _0x52ea19 of _0x5e28cb){const _0x4f5c2d=_0x277d80['getIntersection'](_0x52ea19);_0x4f5c2d&&_0x1d6d7c['push'](_0x4f5c2d);}return _0x1d6d7c;}(_0x4c6c31,_0x3672b0),_0x9afc7f=function(_0x3a0e0d,_0x249fe8){const _0x41b1ff=[_0x3a0e0d];for(const _0x5123d7 of _0x249fe8){let _0x21cc09=0x0;for(;_0x21cc09<_0x41b1ff['length'];){const _0x6abbc4=_0x41b1ff[_0x21cc09]['getDifference'](_0x5123d7);_0x41b1ff['splice'](_0x21cc09,0x1,..._0x6abbc4),_0x21cc09+=_0x6abbc4['length'];}}return _0x41b1ff;}(_0x4c6c31,_0x3672b0);_0x34b1aa['length']&&this['_model']['change'](()=>{for(const _0x488175 of _0x34b1aa){const _0x2370c2=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x29810c,'accept');this['forceDefaultExecution'](()=>_0x2370c2([_0x488175],_0x5eab94,_0x254d56));}});for(const _0x591827 of _0x9afc7f){let _0x511b66=null,_0x22f744=_0x591827['start'],_0x251127=_0x591827['end'];for(const {suggestion:_0x295fcc,meta:_0x2e9f0b}of this['_findSuggestions'](_0x591827,'formatInline')){if(!_0x2e9f0b['isOwn'])continue;if(_0x295fcc['subType']!=_0x29810c)continue;if(!cn(_0x295fcc,_0x254d56))continue;const _0x4328e2=_0x295fcc['getFirstRange']();if(_0x4328e2['containsRange'](_0x591827,!0x0))return null;_0x22f744=_0x22f744['isBefore'](_0x4328e2['start'])?_0x22f744:_0x4328e2['start'],_0x251127=_0x251127['isAfter'](_0x4328e2['end'])?_0x251127:_0x4328e2['end'],_0x511b66?_0x4328e2['start']['isBefore'](_0x511b66['getFirstRange']()['start'])?(_0x511b66['removeMarkers'](),_0x511b66=_0x295fcc):_0x295fcc['removeMarkers']():_0x511b66=_0x295fcc;}const _0x316468=this['_model']['createRange'](_0x22f744,_0x251127);if(_0x511b66)this['_setSuggestionRange'](_0x511b66,_0x316468);else{const _0x3cab16=_0x15ca27(),_0x4a6bbb=_0x5e1cd4['id'];this['_setSuggestionData']({'id':_0x3cab16,'type':'formatInline:'+_0x29810c,'data':_0x5eab94,'createdAt':new Date(),'authorId':_0x4a6bbb,'attributes':_0x254d56}),this['_addSuggestionMarker']('formatInline:'+_0x29810c,_0x3cab16,_0x4a6bbb,_0x316468);}}return null;}['markBlockFormat'](_0x2dbaec,_0x473248,_0x2a1229=[],_0x16cbd9=null,_0x4862e0={}){_0x473248['formatGroupId']||(_0x473248['formatGroupId']=_0x473248['commandName']),_0x473248['multipleBlocks']=_0x2dbaec['is']('range'),_0x16cbd9=_0x16cbd9||Je(_0x473248);const _0x58b7ec=_0x2a1229['map'](_0xae50e8=>rn(_0xae50e8,this['_model'])),_0x587472=_0x2dbaec['is']('range')?_0x2dbaec:rn(_0x2dbaec,this['_model']);if(this['_trackingSessionId']&&(_0x4862e0['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0xa2dc89=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x16cbd9,'accept');return this['forceDefaultExecution'](()=>_0xa2dc89([_0x587472],_0x473248,_0x4862e0)),null;}_0x58b7ec['push'](_0x587472);let _0x3c8b2d=!0x0;for(const _0x14cc5b of _0x58b7ec)if(!this['_rangeIsInLocalUserInsertion'](_0x14cc5b)){_0x3c8b2d=!0x1;break;}if(_0x3c8b2d&&'always'!==this['_trackFormatChanges']){const _0xd9d17c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x16cbd9,'accept');return this['forceDefaultExecution'](()=>_0xd9d17c([_0x587472],_0x473248,_0x4862e0)),null;}let _0x8d6274=null,_0x394094=_0x587472['start'],_0x8eedb9=_0x587472['end'];for(const {suggestion:_0x12c667,meta:_0x1159ae}of this['_findSuggestions'](_0x587472,'formatBlock')){if(!_0x1159ae['isOwn'])continue;if(_0x1159ae['isNextTo']||_0x1159ae['containsRangeInObject']||_0x1159ae['isInsideObject'])continue;if(_0x12c667['data']['formatGroupId']!=_0x473248['formatGroupId'])continue;if(!cn(_0x12c667,_0x4862e0))continue;const _0x1a7333=_0x12c667['getFirstRange']();if(_0x12c667['subType']==_0x16cbd9){if(_0x1a7333['containsRange'](_0x587472,!0x0))return null;_0x394094=_0x394094['isBefore'](_0x1a7333['start'])?_0x394094:_0x1a7333['start'],_0x8eedb9=_0x8eedb9['isAfter'](_0x1a7333['end'])?_0x8eedb9:_0x1a7333['end'],_0x8d6274?_0x1a7333['start']['isBefore'](_0x8d6274['getFirstRange']()['start'])?(_0x8d6274['removeMarkers'](),_0x8d6274=_0x12c667):_0x12c667['removeMarkers']():_0x8d6274=_0x12c667;}else{const _0x1fb062=_0x587472['getIntersection'](_0x1a7333);this['_cutOutSuggestionMarker'](_0x12c667,_0x1fb062);}}const _0x48fe0b=this['editor']['plugins']['get']('Users')['me'],_0x388069=_0x15ca27(),_0x2279eb=_0x48fe0b['id'];if(_0x8d6274)return this['_setSuggestionRange'](_0x8d6274,this['_model']['createRange'](_0x394094,_0x8eedb9)),_0x8d6274;{const _0x200403=this['_setSuggestionData']({'id':_0x388069,'type':'formatBlock:'+_0x16cbd9,'data':_0x473248,'createdAt':new Date(),'authorId':_0x2279eb,'attributes':_0x4862e0});return this['_addSuggestionMarker']('formatBlock:'+_0x16cbd9,_0x388069,_0x2279eb,this['_model']['createRange'](_0x394094,_0x8eedb9)),_0x200403;}}['markMultiRangeBlockFormat'](_0x1d97a1,_0x3fb8e7,_0x27af58=[],_0x185f38=null,_0x3fe32f={}){_0x3fb8e7['formatGroupId']||(_0x3fb8e7['formatGroupId']=_0x3fb8e7['commandName']);const _0x9c245f=_0x1d97a1[0x0];_0x3fb8e7['multipleBlocks']=_0x9c245f['is']('range'),_0x185f38=_0x185f38||Je(_0x3fb8e7);const _0x1cc64e=_0x27af58['map'](_0x2269af=>rn(_0x2269af,this['_model'])),_0x353f6a=_0x9c245f['is']('range')?_0x1d97a1:_0x1d97a1['map'](_0x5cadae=>rn(_0x5cadae,this['_model']));if(this['_trackingSessionId']&&(_0x3fe32f['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x3cc6a8=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x185f38,'accept');return this['forceDefaultExecution'](()=>_0x3cc6a8(_0x353f6a,_0x3fb8e7,_0x3fe32f)),null;}_0x1cc64e['push'](..._0x353f6a);let _0x46ab99=!0x0;for(const _0x53d788 of _0x1cc64e)if(!this['_rangeIsInLocalUserInsertion'](_0x53d788)){_0x46ab99=!0x1;break;}if(_0x46ab99&&'always'!==this['_trackFormatChanges']){const _0x1da423=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x185f38,'accept');return this['forceDefaultExecution'](()=>_0x1da423(_0x353f6a,_0x3fb8e7,_0x3fe32f)),null;}const _0x46bb9e=this['editor']['plugins']['get']('Users')['me'];for(const _0x1f176b of this['getSuggestions']()){const _0x15b707=_0x1f176b['data'];if(_0x1f176b['author']['id']!=_0x46bb9e['id'])continue;if('formatBlock'!=_0x1f176b['type']||_0x15b707['formatGroupId']!=_0x3fb8e7['formatGroupId'])continue;if(!cn(_0x1f176b,_0x3fe32f))continue;const _0x526f71=_0x1f176b['subType']==_0x185f38;for(let _0x5ef930=0x0;_0x5ef930<_0x353f6a['length'];_0x5ef930++){const _0x300ca8=_0x353f6a[_0x5ef930];for(const _0x4446cd of _0x1f176b['getMarkers']()){const _0xa8f56c=_0x4446cd['getRange']();if(_0x300ca8['isEqual'](_0xa8f56c)){_0x526f71?(_0x353f6a['splice'](_0x5ef930,0x1),_0x5ef930--):_0x1f176b['removeMarker'](_0x4446cd['name']);break;}}}}if(0x0==_0x353f6a['length'])return null;const _0x1bfbfc=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x185f38,'join');for(const _0x56aebc of this['getSuggestions']()){const _0x595d76=_0x56aebc['data'];if(_0x56aebc['author']['id']==_0x46bb9e['id']&&('formatBlock'==_0x56aebc['type']&&_0x595d76['formatGroupId']==_0x3fb8e7['formatGroupId']&&_0x56aebc['subType']==_0x185f38&&cn(_0x56aebc,_0x3fe32f)&&(_0x1bfbfc(_0x56aebc['getRanges'](),_0x353f6a)||_0x1bfbfc(_0x353f6a,_0x56aebc['getRanges']())))){for(const _0xb8686e of _0x353f6a)_0x56aebc['addRange'](_0xb8686e);return _0x56aebc;}}const _0x2d521c=_0x15ca27(),_0x4aafe2=_0x46bb9e['id'],_0x501568='formatBlock:'+_0x185f38,_0x2c7133=this['_setSuggestionData']({'id':_0x2d521c,'type':_0x501568,'data':_0x3fb8e7,'createdAt':new Date(),'authorId':_0x4aafe2,'attributes':_0x3fe32f});for(const _0x54fc4b of _0x353f6a)this['_addSuggestionMarker'](_0x501568,_0x2d521c,_0x4aafe2,_0x54fc4b,bt['getMultiRangeId']());return _0x2c7133;}['markDeletion'](_0xa4355b,_0x1044f5=null,_0x2635b7={}){if(_0xa4355b['isCollapsed'])return null;const _0x2e30b9=this['editor']['plugins']['get']('Users')['me'],_0x24a68d=new _0x4f8349(_0xa4355b['start'],_0xa4355b['end']);this['_trackingSessionId']&&(_0x2635b7['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x4d200c,meta:_0x16d293}of this['_findSuggestions'](_0x24a68d,'insertion'))if(_0x16d293['isOwn']&&!_0x16d293['isNextTo']){if(_0x4d200c['isMultiRange']){const _0x4a08bc=_0x4d200c['getRanges']()['filter'](_0x43719b=>'$graveyard'!=_0x43719b['root']['rootName']);_0x4a08bc['every'](_0x161e1f=>_0x24a68d['containsRange'](_0x161e1f,!0x0))&&_0x4d200c['discard']();if(_0x4a08bc['some'](_0x143032=>_0x143032['containsRange'](_0x24a68d,!0x0))){const _0x5f07e5=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1044f5,'accept');return this['forceDefaultExecution'](()=>_0x5f07e5([_0x24a68d],null,_0x2635b7)),null;}}else{const _0x2c9f54=_0x24a68d['getIntersection'](_0x4d200c['getFirstRange']());null!==_0x2c9f54&&_0x4d200c['_onDiscard']([_0x2c9f54],null,_0x2635b7);}}if(_0x24a68d['detach'](),_0x24a68d['isCollapsed']||'$graveyard'==_0x24a68d['root']['rootName'])return null;let _0x19b90d=null,_0x26085d=_0x24a68d['start'],_0x4c4212=_0x24a68d['end'];const _0x4c945c=this['_findSuggestions'](_0x24a68d,'deletion');for(const {suggestion:_0x5cb003,meta:_0x4b308b}of _0x4c945c){const _0x1f7eb3=this['_model']['createRange'](_0x26085d,_0x4c4212);if(_0x4b308b['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4b308b['containsRangeInObject']&&!_0x4b308b['isInsideObject'])){if(_0x5cb003['isMultiRange']){if(!cn(_0x5cb003,_0x2635b7))continue;let _0xe9dce4=!0x0;for(const _0x2feef5 of _0x5cb003['getRanges']()){if(_0x2feef5['containsRange'](_0x1f7eb3,!0x0))return _0x5cb003;_0x1f7eb3['containsRange'](_0x2feef5)||(_0xe9dce4=!0x1);}_0xe9dce4&&_0x5cb003['discard']();}else{const _0x5339d6=_0x5cb003['getFirstRange']();if(_0x5339d6['containsRange'](_0x1f7eb3,!0x0))return _0x5cb003;if(!cn(_0x5cb003,_0x2635b7)){_0x1f7eb3['containsRange'](_0x5339d6)?_0x5cb003['removeMarkers']():_0x5339d6['containsPosition'](_0x26085d)?_0x26085d=_0x5339d6['end']:_0x5339d6['containsPosition'](_0x4c4212)&&(_0x4c4212=_0x5339d6['start']);continue;}_0x26085d=_0x26085d['isBefore'](_0x5339d6['start'])?_0x26085d:_0x5339d6['start'],_0x4c4212=_0x4c4212['isAfter'](_0x5339d6['end'])?_0x4c4212:_0x5339d6['end'],_0x2635b7=Object['assign']({},_0x5cb003['attributes']),_0x19b90d?_0x5339d6['start']['isBefore'](_0x19b90d['getFirstRange']()['start'])?(_0x19b90d['removeMarkers'](),_0x19b90d=_0x5cb003):_0x5cb003['removeMarkers']():_0x19b90d=_0x5cb003;}}}if(_0x19b90d)return this['_setSuggestionRange'](_0x19b90d,this['_model']['createRange'](_0x26085d,_0x4c4212)),_0x19b90d;{const _0x23c6d0=_0x15ca27(),_0x139e78=this['_model']['createRange'](_0x26085d,_0x4c4212),_0x39bb63=_0x2e30b9['id'],_0x4c218c=_0x1044f5?'deletion:'+_0x1044f5:'deletion',_0x55c580=this['_setSuggestionData']({'id':_0x23c6d0,'type':_0x4c218c,'createdAt':new Date(),'authorId':_0x39bb63,'attributes':_0x2635b7});return this['_addSuggestionMarker'](_0x4c218c,_0x23c6d0,_0x39bb63,_0x139e78),_0x55c580;}}['markMultiRangeDeletion'](_0x28344e,_0x4b1e37='multi',_0x2ec64b={}){const _0x3da729=this['editor']['plugins']['get']('Users')['me'],_0x5c411f=_0x28344e['map'](_0x341d86=>new _0x4f8349(_0x341d86['start'],_0x341d86['end'])),_0x572c89=new Set();this['_trackingSessionId']&&(_0x2ec64b['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x348fb3,meta:_0x568020}of this['_findSuggestions'](_0x5c411f,'insertion'))_0x568020['isOwn']&&!_0x568020['isNextTo']&&_0x572c89['add'](_0x348fb3);for(const _0x259318 of _0x572c89)if(_0x259318['isMultiRange']){const _0x3fb481=_0x259318['getRanges']();(!_0x259318['attributes']||!_0x259318['attributes']['skipNestingCheck'])&&(_0x3fb481['every'](_0x268ea8=>_0x5c411f['some'](_0x35a996=>_0x35a996['containsRange'](_0x268ea8,!0x0)))&&_0x259318['discard']());if(_0x5c411f['every'](_0x10bb50=>_0x3fb481['some'](_0x4bf9a6=>_0x4bf9a6['containsRange'](_0x10bb50,!0x0)))){const _0x5381da=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4b1e37,'accept');return this['forceDefaultExecution'](()=>_0x5381da(_0x28344e,null,_0x2ec64b)),null;}}else{const _0x422679=_0x259318['getFirstRange']();_0x5c411f['some'](_0x487e4d=>_0x487e4d['containsRange'](_0x422679,!0x0))&&_0x259318['discard']();if(_0x5c411f['every'](_0x3d9e2c=>_0x422679['containsRange'](_0x3d9e2c,!0x0))){const _0x176f46=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4b1e37,'accept');return this['forceDefaultExecution'](()=>_0x176f46(_0x5c411f,null,_0x2ec64b)),null;}}const _0xf47c7e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4b1e37,'join');let _0x27b9fc=null;for(const _0x36c084 of this['getSuggestions']())if(_0x36c084['author']['id']==_0x3da729['id']&&_0x36c084['isInContent']&&'deletion'==_0x36c084['type']&&_0x36c084['subType']==_0x4b1e37&&cn(_0x36c084,_0x2ec64b)&&(_0xf47c7e(_0x36c084['getRanges'](),_0x5c411f)||_0xf47c7e(_0x5c411f,_0x36c084['getRanges']()))){if(_0x27b9fc){if(_0x36c084['commentThread']&&_0x36c084['commentThread']['length'])continue;for(const _0x12740c of _0x36c084['getRanges']())_0x27b9fc['isIntersectingWithRange'](_0x12740c)||_0x27b9fc['addRange'](_0x12740c);_0x36c084['removeMarkers']();}else{_0x27b9fc=_0x36c084;for(const _0xffc089 of _0x5c411f)_0x36c084['isIntersectingWithRange'](_0xffc089)||_0x36c084['addRange'](_0xffc089);}}if(_0x27b9fc)return _0x27b9fc;_0x572c89['clear']();for(const {suggestion:_0x518745,meta:_0x4c0fbb}of this['_findSuggestions'](_0x5c411f,'deletion'))_0x4c0fbb['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4c0fbb['containsRangeInObject']&&!_0x4c0fbb['isInsideObject'])&&cn(_0x518745,_0x2ec64b)&&_0x572c89['add'](_0x518745);for(const _0x2a8683 of _0x572c89){const _0x44de43=_0x2a8683['getRanges']();if(!_0x2ec64b||!_0x2ec64b['skipNestingCheck']){if(_0x5c411f['every'](_0x3a5e96=>_0x44de43['some'](_0x5c0c85=>_0x5c0c85['containsRange'](_0x3a5e96,!0x0))))return _0x2a8683;}(!_0x2a8683['attributes']||!_0x2a8683['attributes']['skipNestingCheck'])&&(_0x44de43['every'](_0x46937f=>_0x5c411f['some'](_0x54fbd8=>_0x54fbd8['containsRange'](_0x46937f,!0x0)))&&_0x2a8683['discard']());}const _0x368695=_0x15ca27(),_0x4694f9=_0x3da729['id'],_0x2f5724='deletion:'+_0x4b1e37,_0x1c3a33=this['_setSuggestionData']({'id':_0x368695,'type':_0x2f5724,'createdAt':new Date(),'authorId':_0x4694f9,'attributes':_0x2ec64b});for(const _0x5d7e97 of _0x5c411f)_0x5d7e97['detach'](),_0x5d7e97['isCollapsed']||'$graveyard'==_0x5d7e97['root']['rootName']||this['_addSuggestionMarker'](_0x2f5724,_0x368695,_0x4694f9,_0x5d7e97,bt['getMultiRangeId']());return _0x1c3a33;}['markAttributeChange'](_0x1379fd,_0xa5b7cb,_0xe7e39,_0x5483b5,_0x299fa8){if(_0x1379fd['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x2cda52=this['editor']['plugins']['get']('Users')['me']['id'],_0x570834=Array['from'](this['_suggestions']['values']())['filter'](_0x21fd5c=>'attribute'==_0x21fd5c['type']&&_0x21fd5c['data']['key']==_0xa5b7cb&&_0x21fd5c['isIntersectingWithRange'](_0x1379fd));if(this['_trackingSessionId']&&(_0x299fa8['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x523ced=this['_findSuggestions'](_0x1379fd,'insertion')['filter'](({meta:_0x45f299})=>_0x45f299['isOwn']&&!_0x45f299['isInsideObject']&&!_0x45f299['isNextTo'])['map'](({suggestion:_0x88b42e})=>_0x88b42e);_0x570834['unshift'](..._0x523ced);}const _0x1f017e=new Map([[_0x1379fd,_0xe7e39]]);for(const _0xb0522d of _0x570834){const _0x31c988='attribute'==_0xb0522d['type']?_0xb0522d['data']['oldValue']:void 0x0,_0x18c3a1=_0xb0522d['getFirstRange'](),_0x26a416=Array['from'](_0x1f017e['keys']())['find'](_0x13bfb1=>_0x13bfb1['isIntersecting'](_0x18c3a1));if(!_0x26a416)continue;const _0x34d968=_0x26a416['getDifference'](_0x18c3a1);this['_suggestionsConversion']['isBlockAttribute'](_0xa5b7cb)&&'insertion'==_0xb0522d['type']&&0x0!=_0x34d968['length']||(_0x1f017e['delete'](_0x26a416),_0x34d968['forEach'](_0x5a49f8=>{_0x1f017e['set'](_0x5a49f8,_0xe7e39);}),'insertion'!=_0xb0522d['type']&&_0x31c988!=_0x5483b5&&_0x1f017e['set'](_0x26a416['getIntersection'](_0x18c3a1),_0x31c988));}const _0x5e7c06=[];for(const [_0x1ea83c,_0x5afd06]of _0x1f017e){const _0x285818=_0x15ca27(),_0x2781cd={'key':_0xa5b7cb,'oldValue':_0x5afd06,'newValue':_0x5483b5};_0xa5b7cb['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':_0xa5b7cb});const _0x136e12=('attribute:'+(_0xa5b7cb+'|'+Je({'newValue':_0x5483b5})))['substring'](0x0,0x3c),_0x191cd9=this['_setSuggestionData']({'id':_0x285818,'type':_0x136e12,'data':_0x2781cd,'createdAt':new Date(),'authorId':_0x2cda52,'attributes':_0x299fa8});_0x5e7c06['push'](_0x191cd9),this['_addSuggestionMarker'](_0x136e12,_0x285818,_0x2cda52,_0x1ea83c);}return _0x5e7c06;}['enableDefaultAttributesIntegration'](_0x49c51a){this['enableCommand'](_0x49c51a,(_0x397905,..._0x5b3593)=>{this['recordAttributeChanges'](()=>{_0x397905(..._0x5b3593);});});}['startTrackingSession'](_0x9e014f){return this['_trackingSessionId']=void 0x0!==_0x9e014f?_0x9e014f:_0x15ca27(),this['_trackingSessionId'];}['_getAttributeKey'](_0x54faf0){return'attribute'==_0x54faf0['type']?un(_0x54faf0['subType']):null;}['_applyOperationsAsSuggestions'](_0xd0942c){if(0x0==_0xd0942c['length'])return;const _0x354b4c=this['editor'],_0x586bdc=_0x354b4c['plugins']['get'](_0xed69f8),_0x48b4a3=[];_0x354b4c['model']['change'](_0x8b8be8=>{for(let _0x45c417=0x0;_0x45c417<_0xd0942c['length'];_0x45c417++){const _0x3a33a4=_0xd0942c[_0x45c417];if(_0x3a33a4['baseVersion']=_0x354b4c['model']['document']['version'],_0x3a33a4['isDocumentOperation']=!0x0,_0x586bdc['isMarkedRemoveOperation'](_0x3a33a4)){const _0x7866ba=_0x699eae(_0x3a33a4['newRange'],_0x354b4c['model']);_0x48b4a3['unshift'](_0x4f8349['fromRange'](_0x7866ba));}else switch(_0x3a33a4['type']){case'rename':{const _0x5ab29b=_0x3a33a4['oldName'],_0x58d84f=_0x3a33a4['newName'];if(_0x5ab29b==_0x58d84f)break;_0x8b8be8['batch']['addOperation'](_0x3a33a4),_0x354b4c['model']['applyOperation'](_0x3a33a4);const _0x5bea35='$elementName',_0x51a279=_0x3a33a4['position'],_0x2cddb4=_0x354b4c['model']['createRange'](_0x51a279,_0x354b4c['model']['createPositionAt'](_0x51a279['nodeAfter'],'end'));this['markAttributeChange'](_0x2cddb4,_0x5bea35,_0x5ab29b,_0x58d84f,{'groupId':_0x15ca27()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x738817=_0x3a33a4['oldValue'],_0x224962=_0x3a33a4['newValue'];if(_0x738817==_0x224962)break;_0x8b8be8['batch']['addOperation'](_0x3a33a4),_0x354b4c['model']['applyOperation'](_0x3a33a4);const _0x431687=_0x3a33a4['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x431687))break;const _0x522558=_0x699eae(_0x3a33a4['range'],_0x354b4c['model']);this['markAttributeChange'](_0x522558,_0x431687,_0x738817,_0x224962,{'groupId':_0x15ca27()});break;}case'insert':{_0x8b8be8['batch']['addOperation'](_0x3a33a4),_0x354b4c['model']['applyOperation'](_0x3a33a4);if(_0xd0942c[_0x45c417+0x1]&&'move'==_0xd0942c[_0x45c417+0x1]['type'])break;const _0x1470ff=_0x3a33a4['position'],_0x20dbd1=_0x3a33a4['howMany'],_0x570946=_0x699eae(_0x354b4c['model']['createRange'](_0x1470ff,_0x1470ff['getShiftedBy'](_0x20dbd1)),_0x354b4c['model']);this['markInsertion'](_0x570946);break;}case'split':{_0x8b8be8['batch']['addOperation'](_0x3a33a4),_0x354b4c['model']['applyOperation'](_0x3a33a4);const _0x54855a=_0x3a33a4['splitPosition'],_0x5c84e5=_0x3a33a4['moveTargetPosition'];this['markInsertion'](_0x354b4c['model']['createRange'](_0x54855a,_0x5c84e5));break;}case'move':case'remove':_0x8b8be8['batch']['addOperation'](_0x3a33a4),_0x354b4c['model']['applyOperation'](_0x3a33a4);}}for(const _0x334bb6 of _0x48b4a3)_0x334bb6['detach'](),this['markDeletion'](_0x334bb6);});}['_setSuggestionRange'](_0x13696c,_0x4e62e4){const _0x5c974d=_0x13696c['getFirstMarker']();this['_model']['change'](_0x57722d=>{_0x57722d['updateMarker'](_0x5c974d,{'range':_0x4e62e4});});}['_addThreadToSuggestion'](_0xdcd32e){const _0x1c7b87=_0xdcd32e['id'],_0x18873c=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x1c7b87)||this['_commentsRepository']['addCommentThread']({'channelId':_0x18873c,'threadId':_0x1c7b87,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1a40c9=this['_commentsRepository']['getCommentThread'](_0x1c7b87);_0x1a40c9['unbind']('isRemovable'),_0x1a40c9['isRemovable']=!0x1,_0xdcd32e['commentThread']=_0x1a40c9;}['_checkSuggestionCorrectness'](_0x4058e8,_0x4abafc,_0x18c3b1,_0x513c17){if(_0x4058e8['type']!=_0x4abafc||_0x4058e8['subType']!=_0x18c3b1||_0x4058e8['creator']['id']!=_0x513c17)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x3800a1('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x1f5865,_0x49c605){const _0x21e4eb=_0x1f5865['getFirstRange']();if(_0x49c605['isEqual'](_0x21e4eb))_0x1f5865['removeMarkers']();else{if(_0x21e4eb['containsRange'](_0x49c605)){const _0x883f1d=this['_model']['createPositionAt'](_0x49c605['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1f5865,this['_model']['createRange'](_0x21e4eb['start'],_0x883f1d));const _0x1b27e4=_0x15ca27(),_0x235ba2=_0x1f5865['creator']['id'],_0x552d54=_0x1f5865['type']+':'+_0x1f5865['subType'];this['_setSuggestionData']({'id':_0x1b27e4,'type':_0x552d54,'createdAt':new Date(),'authorId':_0x235ba2,'data':_0x1f5865['data'],'attributes':_0x1f5865['attributes']});const _0x113c9f=this['_model']['createPositionAt'](_0x49c605['end']['parent'],'after'),_0x5b14bc=this['_model']['createRange'](_0x113c9f,_0x21e4eb['end']);this['_addSuggestionMarker'](_0x552d54,_0x1b27e4,_0x235ba2,_0x5b14bc);}else{if(_0x21e4eb['containsPosition'](_0x49c605['start'])){const _0x4f8fbb=this['_model']['createPositionAt'](_0x49c605['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1f5865,this['_model']['createRange'](_0x21e4eb['start'],_0x4f8fbb));}else{const _0x101df5=this['_model']['createPositionAt'](_0x49c605['end']['parent'],'after');this['_setSuggestionRange'](_0x1f5865,this['_model']['createRange'](_0x101df5,_0x21e4eb['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x45fc89){for(const {suggestion:_0xbdeead,meta:_0x2641d6}of this['_findSuggestions'](_0x45fc89,'insertion')){if(!_0x2641d6['isOwn'])continue;const _0x309b79=_0xbdeead['getRanges']();for(const _0x644c0c of _0x309b79)if(!_0x45fc89['getDifference'](_0x644c0c)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x452ad6){return this['editor']['plugins']['get']('Users')['getUser'](_0x452ad6);}['_getExternalAuthor'](_0x35f47e){const _0x4522ef=this['editor']['plugins']['get']('Users'),_0x55b7a4=_0x21f52c('external:'+_0x35f47e),_0x1dc608=_0x4522ef['getUser'](_0x55b7a4);return _0x1dc608||_0x4522ef['addUser']({'id':_0x55b7a4,'name':_0x35f47e});}['_createSuggestion'](_0x4ba48f,_0x527bdb,_0x17f37a,_0x4ce079,_0x29c92a,_0x32ccc4){const _0x47478e=this['_getAuthorFromId'](_0x4ce079);if(!_0x47478e)throw new _0x3800a1('track-changes-user-not-found',this,{'authorId':_0x4ce079,'suggestionId':_0x17f37a});const _0xfb0c3b=this['_suggestionFactory']['buildSuggestion'](_0x4ba48f,_0x527bdb,_0x17f37a,_0x47478e,_0x29c92a,_0x313f10=>{this['_updateSuggestionData'](_0x17f37a,{'attributes':_0x313f10});const _0xeb089f=this['getSuggestion'](_0x17f37a);this['_joinWithAdjacentSuggestions'](new Set([_0xeb089f])),this['_refreshSuggestionsChain'](new Set([_0xeb089f]));},_0x32ccc4);return this['listenTo'](_0xfb0c3b,'accept',()=>{this['_updateSuggestionData'](_0x17f37a,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0xfb0c3b,'discard',()=>{this['_updateSuggestionData'](_0x17f37a,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x17f37a,_0xfb0c3b),this['_suggestionState']['set'](_0xfb0c3b,'notReady'),_0xfb0c3b;}['_breakSuggestionMarker'](_0x4bb4cf,_0x12a633,_0x5b2aa5){const _0x1db035=_0x4bb4cf['getFirstRange'](),_0x4b7194=_0x1db035['start'],_0x1e7f45=_0x1db035['end'];this['_setSuggestionRange'](_0x4bb4cf,this['_model']['createRange'](_0x4b7194,_0x12a633));const _0x29db91=_0x15ca27(),_0x2ebfab=_0x4bb4cf['creator']['id'],_0x4db14=_0x4bb4cf['type']+(_0x4bb4cf['subType']?':'+_0x4bb4cf['subType']:'');this['_setSuggestionData']({'id':_0x29db91,'type':_0x4db14,'createdAt':new Date(),'authorId':_0x2ebfab,'originalSuggestionId':_0x4bb4cf['_originalSuggestionId']||_0x4bb4cf['id'],'attributes':_0x4bb4cf['attributes'],'data':_0x4bb4cf['data']});const _0x2dae5d=this['_getAttributeKey'](_0x4bb4cf);('formatBlock'==_0x4bb4cf['type']||_0x2dae5d&&this['_suggestionsConversion']['isBlockAttribute'](_0x2dae5d))&&(_0x5b2aa5=this['_model']['createPositionBefore'](_0x5b2aa5['parent'])),this['_addSuggestionMarker'](_0x4db14,_0x29db91,_0x2ebfab,this['_model']['createRange'](_0x5b2aa5,_0x1e7f45));}['_findSuggestions'](_0x50d1ff,_0x873569=null){const _0x3116d1=[],_0x5ded86=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x50d1ff)||(_0x50d1ff=[_0x50d1ff]);for(const _0x1e7fa8 of this['getSuggestions']()){if(!_0x1e7fa8['isInContent'])continue;if(_0x873569&&_0x1e7fa8['type']!=_0x873569)continue;let _0x332721=!0x1;for(const _0x5d0023 of _0x1e7fa8['getRanges']()){for(const _0x13cdc0 of _0x50d1ff){const _0x4bf25e=_0x13cdc0['start']['isEqual'](_0x5d0023['end'])||_0x13cdc0['end']['isEqual'](_0x5d0023['start']);if(_0x4bf25e||_0x13cdc0['getIntersection'](_0x5d0023)){const _0x253a24=_0x13cdc0['containsRange'](_0x5d0023)&&qe(this['_model']['schema'],_0x5d0023['start'],_0x13cdc0),_0x32285f=_0x5d0023['containsRange'](_0x13cdc0)&&qe(this['_model']['schema'],_0x13cdc0['start'],_0x5d0023);_0x3116d1['push']({'suggestion':_0x1e7fa8,'meta':{'isOwn':_0x5ded86==_0x1e7fa8['author'],'isNextTo':_0x4bf25e,'isInsideObject':_0x253a24,'containsRangeInObject':_0x32285f}}),_0x332721=!0x0;break;}}if(_0x332721)break;}}return _0x3116d1;}['_addSuggestionMarker'](_0x365ff4,_0x2d8443,_0x408763,_0x182beb,_0x39f8a3){this['_model']['change'](_0x4010f5=>{let _0x3aa45b='suggestion:'+_0x365ff4+':'+_0x2d8443+':'+_0x408763;_0x39f8a3&&(_0x3aa45b=_0x3aa45b+':'+_0x39f8a3),_0x4010f5['addMarker'](_0x3aa45b,{'range':_0x182beb,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x762305){const _0x2830b5=_0x762305['previous'],_0x1f5b80=_0x762305['next'];_0x762305['previous']=null,_0x762305['next']=null,null!=_0x2830b5&&_0x2830b5['next']==_0x762305&&(_0x2830b5['next']=_0x1f5b80),null!=_0x1f5b80&&_0x1f5b80['previous']==_0x762305&&(_0x1f5b80['previous']=_0x2830b5),'ready'==this['_suggestionState']['get'](_0x762305)&&(this['_suggestionState']['set'](_0x762305,'removed'),this['fire']('suggestionUnloaded',_0x762305,_0x2830b5,_0x1f5b80));}['_setSuggestionData'](_0x5065fa){const _0x3e113d=_0x5065fa['id'],_0x2ad241=this['addSuggestionData'](_0x5065fa);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x4cb54a=this['editor']['plugins']['get']('PendingActions'),_0x43b35c=_0x2ad241['hasComments'],_0xfe4fae=_0x2ad241['subType']?_0x2ad241['type']+':'+_0x2ad241['subType']:_0x2ad241['type'],_0x25be81=this['editor']['locale'],_0x12cfff=_0x4cb54a['add'](At(_0x25be81,'PENDING_ACTION_SUGGESTION')),_0x1eae3e={'id':_0x3e113d,'type':_0xfe4fae,'hasComments':_0x43b35c,'data':_0x5065fa['data']||null,'originalSuggestionId':_0x5065fa['originalSuggestionId']||null,'attributes':_0x2ad241['attributes']};this['_adapter']['addSuggestion'](_0x1eae3e)['then'](_0x5ac15a=>{_0x2ad241['_saved']=!0x0,_0x4cb54a['remove'](_0x12cfff),_0x5ac15a&&_0x5ac15a['createdAt']&&(this['_suggestions']['get'](_0x3e113d)['createdAt']=_0x5ac15a['createdAt']);})['catch'](_0x42df27=>{throw _0x3947bb('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x2ad241['discard']();}),_0x2ad241['stopListening'](),this['_suggestions']['delete'](_0x2ad241['id']),this['_suggestionState']['delete'](_0x2ad241),_0x42df27;});}return _0x2ad241;}['_updateSuggestionData'](_0x2ce5dd,_0x5b397e){const _0x11bf38=this['editor']['plugins']['get']('PendingActions'),_0x2ac7c1=this['getSuggestion'](_0x2ce5dd);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x2ac7c1['_saved']){const _0x11b355=_0x11bf38['add'](At(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x2ce5dd,_0x5b397e)['then'](()=>{_0x11bf38['remove'](_0x11b355);});}else _0x2ac7c1['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x2ce5dd,_0x5b397e);});}}['_getSuggestionData'](_0xed32c8){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x3800a1('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0xed32c8);}['_handleNewSuggestionMarker'](_0x3295f5){const {id:_0x53208f,type:_0x5cb103,subType:_0x14def1,authorId:_0x478942}=_0x475a96(_0x3295f5),_0x352784=this['_suggestions']['get'](_0x53208f)||this['_createSuggestion'](_0x5cb103,_0x14def1,_0x53208f,_0x478942,{});switch(this['_checkSuggestionCorrectness'](_0x352784,_0x5cb103,_0x14def1,_0x478942),this['_suggestionState']['get'](_0x352784)){case'notReady':this['_getSuggestionData'](_0x53208f)['then'](_0x27f965=>{let _0x2bbc02=Promise['resolve']();_0x27f965['hasComments']&&(_0x2bbc02=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x53208f})),_0x2bbc02['then'](()=>{this['addSuggestionData'](_0x27f965)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x352784,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x53208f,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x352784,'ready'),this['fire']('suggestionLoaded',_0x352784);break;case'ready':this['fire']('suggestionChanged',_0x352784);}return _0x352784['addMarkerName'](_0x3295f5),_0x352784;}['_refreshSuggestionsChain'](_0x1207f5){const _0x5d2e06=Array['from'](_0x1207f5),_0x19b8f4=_0x5d2e06['filter'](_0x6a1fa=>'attribute'==_0x6a1fa['type']);this['_refreshAttributeSuggestionsChain'](_0x19b8f4);const _0x119b4d=_0x5d2e06['filter'](_0x1eb72f=>!_0x1eb72f['isMultiRange']&&'attribute'!=_0x1eb72f['type']),_0x503dca=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3a219d=>!_0x3a219d['isMultiRange']&&'attribute'!=_0x3a219d['type']),_0x5b42ab=_0x503dca['filter'](_0xe3370e=>!_0x1207f5['has'](_0xe3370e)),_0x33c1ce=new Map(_0x503dca['map'](_0x22ef02=>[_0x22ef02,this['_suggestionFactory']['getSuggestionCallback'](_0x22ef02['type'],_0x22ef02['subType'],'chain')])),_0x259196=new Map(_0x503dca['map'](_0x1ce5d9=>[_0x1ce5d9,_0x1ce5d9['getFirstRange']()])),_0x3ee06b=new Set(),_0x1edf3e=new Set();for(let _0x16d370=0x0;_0x16d370<_0x119b4d['length'];_0x16d370++)_0x40425d(_0x119b4d[_0x16d370],_0x119b4d,_0x16d370+0x1);for(let _0x5725e8=0x0;_0x5725e8<_0x119b4d['length'];_0x5725e8++)_0x40425d(_0x119b4d[_0x5725e8],_0x5b42ab,0x0);const _0x18ab4d=new Set();for(let _0x18dcc6=0x0;_0x18dcc6<_0x119b4d['length'];_0x18dcc6++){const _0x5f2e6d=_0x119b4d[_0x18dcc6];!_0x1edf3e['has'](_0x5f2e6d)&&_0x5f2e6d['previous']&&(_0x18ab4d['add'](_0x5f2e6d['previous']),_0x5f2e6d['previous']['next']===_0x5f2e6d&&(_0x5f2e6d['previous']['next']=null),_0x5f2e6d['previous']=null),!_0x3ee06b['has'](_0x5f2e6d)&&_0x5f2e6d['next']&&(_0x18ab4d['add'](_0x5f2e6d['next']),_0x5f2e6d['next']['previous']===_0x5f2e6d&&(_0x5f2e6d['next']['previous']=null),_0x5f2e6d['next']=null);}function _0x40425d(_0x825364,_0xb72583,_0x3c4c2c){for(let _0x590ae9=_0x3c4c2c;_0x590ae9<_0xb72583['length'];_0x590ae9++){const _0x42dfac=_0x3d8f88(_0x825364,_0xb72583[_0x590ae9]);_0x42dfac&&(_0x42dfac[0x0]['next']=_0x42dfac[0x1],_0x42dfac[0x1]['previous']=_0x42dfac[0x0],_0x3ee06b['add'](_0x42dfac[0x0]),_0x1edf3e['add'](_0x42dfac[0x1]));}}function _0x3d8f88(_0x343214,_0x1712a2){if(_0x343214['author']['id']!==_0x1712a2['author']['id'])return null;const _0x542a59=_0x33c1ce['get'](_0x343214)(_0x343214,_0x1712a2,_0x259196['get'](_0x343214),_0x259196['get'](_0x1712a2));if(!_0x542a59)return null;return _0x33c1ce['get'](_0x1712a2)(_0x343214,_0x1712a2,_0x259196['get'](_0x343214),_0x259196['get'](_0x1712a2))?_0x542a59[0x1]['commentThread']&&_0x542a59[0x1]['commentThread']['length']?null:_0x542a59:null;}_0x18ab4d['size']&&this['_refreshSuggestionsChain'](_0x18ab4d);}['_refreshAttributeSuggestionsChain'](_0x4ec509){if(0x0==_0x4ec509['length'])return;const _0x3ee081=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x34427d=>'attribute'==_0x34427d['type']&&_0x34427d['_isDataLoaded']),_0x42ef21=[],_0x5c4d40=new Map();for(const _0x42c841 of _0x3ee081){const _0x1913e8=_0x21f52c(_0x42c841['attributes']);_0x5c4d40['has'](_0x1913e8)||(_0x5c4d40['set'](_0x1913e8,_0x42ef21['length']),_0x42ef21['push']([]));const _0x521b53=_0x5c4d40['get'](_0x1913e8);_0x42ef21[_0x521b53]['push'](_0x42c841);}!(function(){_0x42ef21['sort']((_0x39ccc8,_0x33b4ca)=>{const _0x346945=_0x39ccc8[0x0]['createdAt'],_0x29e1eb=_0x33b4ca[0x0]['createdAt'];return _0x346945==_0x29e1eb?_0x39ccc8[0x0]['attributes']['groupId']<_0x33b4ca[0x0]['attributes']['groupId']?-0x1:0x1:_0x346945<_0x29e1eb?-0x1:0x1;});for(const _0x241ce0 of _0x42ef21)_0x241ce0['sort']((_0x3f2bb0,_0x2263c3)=>_0x3f2bb0['id']<_0x2263c3['id']?-0x1:0x1);}());for(let _0x173804=0x0;_0x173804<_0x42ef21['length'];_0x173804++){if(0x0==_0x42ef21[_0x173804]['length'])continue;const _0x4c9c4=[];for(let _0x2853b4=_0x173804+0x1;_0x2853b4<_0x42ef21['length'];_0x2853b4++)0x0!=_0x42ef21[_0x2853b4]['length']&&_0x39734a(_0x42ef21[_0x173804],_0x42ef21[_0x2853b4])&&_0x4c9c4['push'](_0x2853b4);for(const _0x496957 of _0x4c9c4)_0x42ef21[_0x173804]=_0x42ef21[_0x173804]['concat'](_0x42ef21[_0x496957]),_0x42ef21[_0x496957]=[];}for(const _0x58481a of _0x42ef21)for(let _0x4f4403=0x0;_0x4f4403<_0x58481a['length'];_0x4f4403++){const _0x56799a=_0x58481a[_0x4f4403+0x1]||null;_0x58481a[_0x4f4403]['next']!==_0x56799a&&(_0x58481a[_0x4f4403]['next']=_0x56799a);}for(const _0x34cd6b of _0x42ef21)for(let _0x38ffed=0x0;_0x38ffed<_0x34cd6b['length'];_0x38ffed++){const _0xbc2b98=_0x34cd6b[_0x38ffed-0x1]||null;_0x34cd6b[_0x38ffed]['previous']!==_0xbc2b98&&(_0x34cd6b[_0x38ffed]['previous']=_0xbc2b98);}function _0x39734a(_0x3c522f,_0x3222f5){if(_0x3c522f[0x0]['attributes']['groupId']!==_0x3222f5[0x0]['attributes']['groupId']&&_0x3c522f[0x0]['author']!==_0x3222f5[0x0]['author'])return!0x1;if(!function(_0x103ac5,_0x2b9a22){if(!_0x103ac5['hasComments']&&!_0x2b9a22['hasComments'])return!0x0;if(_0x103ac5['hasComments']&&_0x2b9a22['hasComments'])return!0x1;if(_0x103ac5['hasComments']&&_0x2b9a22['createdAt']<_0x103ac5['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x2b9a22['hasComments']&&_0x103ac5['createdAt']<_0x2b9a22['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x3c522f[0x0],_0x3222f5[0x0]))return!0x1;const _0x352b1a=ot(_0x3c522f[0x0]['attributes'],['groupId','trackingSessionId']),_0x2bb4b7=ot(_0x3222f5[0x0]['attributes'],['groupId','trackingSessionId']);if(!st(_0x352b1a,_0x2bb4b7))return!0x1;if(_0x3c522f[0x0]['attributes']['groupId']==_0x3222f5[0x0]['attributes']['groupId'])return!0x0;if(_0x3c522f[0x0]['attributes']['trackingSessionId']!==_0x3222f5[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x3c522f['every'](_0x2321c9=>_0x3222f5['some'](_0x1595db=>_0x2321c9['getFirstRange']()['isEqual'](_0x1595db['getFirstRange']())))&&_0x3222f5['every'](_0xf515fc=>_0x3c522f['some'](_0xff6cdb=>_0xf515fc['getFirstRange']()['isEqual'](_0xff6cdb['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x845f67){const _0x49f390=Array['from'](_0x845f67),_0x234732=this['getSuggestions']({'skipNotAttached':!0x0}),_0x3be20d=_0x234732['filter'](_0x2faecd=>!_0x845f67['has'](_0x2faecd)),_0x1ff8ab=new Map(_0x49f390['map'](_0x161e22=>[_0x161e22,this['_suggestionFactory']['getSuggestionCallback'](_0x161e22['type'],_0x161e22['subType'],'join')])),_0x2875ed=new Map(_0x234732['map'](_0x1755e5=>[_0x1755e5,_0x1755e5['getRanges']()]));for(let _0x458f78=0x0;_0x458f78<_0x49f390['length'];_0x458f78++){if(_0x363d7c(this,_0x49f390[_0x458f78],_0x49f390,_0x458f78+0x1))return!0x0;}for(let _0x3c89c4=0x0;_0x3c89c4<_0x49f390['length'];_0x3c89c4++){if(_0x363d7c(this,_0x49f390[_0x3c89c4],_0x3be20d,0x0))return!0x0;}return!0x1;function _0x363d7c(_0x16cfae,_0x269440,_0x470cf8,_0x4a39ea){for(let _0x341a8c=_0x4a39ea;_0x341a8c<_0x470cf8['length'];_0x341a8c++){const _0x2dbb0e=_0x470cf8[_0x341a8c];if(_0x2dbb0e['type']!==_0x269440['type']||_0x2dbb0e['author']['id']!==_0x269440['author']['id']||_0x2dbb0e['subType']!==_0x269440['subType'])continue;if(!an(_0x269440,_0x2dbb0e))continue;if('attribute'==_0x269440['type']&&_0x269440['data']['oldValue']!=_0x2dbb0e['data']['oldValue'])continue;if('attribute'==_0x269440['type']&&_0x16cfae['_suggestionsConversion']['isBlockAttribute'](_0x269440['data']['key']))continue;if('formatBlock'==_0x269440['type']){const _0x277dc7=_0x16cfae['editor']['model'],_0x7a047a=_0x269440['getContainedElement']();if(_0x7a047a&&(_0x277dc7['schema']['isObject'](_0x7a047a)||_0x277dc7['schema']['isLimit'](_0x7a047a)))continue;}const _0x55e21c=_0x1ff8ab['get'](_0x269440),_0x2d5fa3=_0x2875ed['get'](_0x269440),_0x47c3b8=_0x2875ed['get'](_0x2dbb0e),_0x445491=_0x269440['commentThread']&&_0x269440['commentThread']['length'],_0x181d6b=_0x2dbb0e['commentThread']&&_0x2dbb0e['commentThread']['length'];if(!_0x445491&&_0x55e21c(_0x47c3b8,_0x2d5fa3))return _0x16cfae['_joinSuggestions'](_0x2dbb0e,_0x269440),_0x2875ed['delete'](_0x269440),!0x0;if(!_0x181d6b&&_0x55e21c(_0x2d5fa3,_0x47c3b8))return _0x16cfae['_joinSuggestions'](_0x269440,_0x2dbb0e),_0x2875ed['delete'](_0x2dbb0e),!0x0;}return!0x1;}}['_joinSuggestions'](_0x17df99,_0x2e6284){if(_0x17df99['isMultiRange']){for(const _0x1647fb of _0x2e6284['getRanges']())_0x17df99['addRange'](_0x1647fb);}else{const _0x15d0ea=_0x2e6284['getFirstRange']()['end'];this['_setSuggestionRange'](_0x17df99,this['_model']['createRange'](_0x17df99['getFirstRange']()['start'],_0x15d0ea));}_0x2e6284['removeMarkers']();}['_getMarkerAnnouncementText'](_0xcba285,_0x397f5b,_0x3922cb){const _0x2346ef=_0xcba285['startsWith']('format')||_0xcba285['startsWith']('attribute')?'FORMATTING':_0xcba285['toUpperCase']();return At(this['editor']['locale'],_0x397f5b+'_'+_0x2346ef+'_SUGGESTION_ANNOUNCEMENT',_0x3922cb);}['_initAriaMarkerChangeAnnouncements'](){const _0x473e19=this['editor'];if(!_0x473e19['ui'])return;const {ariaLiveAnnouncer:_0x531c6d}=_0x473e19['ui'];_0x4a098b(this['_model'],({left:_0x51b9aa,entered:_0x34aa37})=>{for(const _0x26a5b8 of _0x51b9aa){const {group:_0x25f9db,type:_0x4115f7}=_0x475a96(_0x26a5b8['name']);if('suggestion'===_0x25f9db){_0x531c6d['announce'](this['_getMarkerAnnouncementText'](_0x4115f7,'LEAVE'));break;}}for(const _0x408d5d of _0x34aa37){const {group:_0x34e849,type:_0x48c453}=_0x475a96(_0x408d5d['name']);if('suggestion'===_0x34e849){_0x531c6d['announce'](this['_getMarkerAnnouncementText'](_0x48c453,'ENTER',_0x3d8a09(_0x19606d)));break;}}});}['_processAttributeChanges'](_0x223d9c){if(this['_recordAttributeSuggestions'])return!0x1;const _0x4bf88f=this['editor'],_0x11e151=_0x4bf88f['model']['document']['differ']['getChanges']();if(0x0==_0x11e151['length'])return!0x1;const _0x127885=[],_0x5fb145=_0x11e151['filter'](_0x56afc9=>'attribute'==_0x56afc9['type']),_0x5bf5e4=_0x11e151['filter'](_0x6e9a3a=>'insert'==_0x6e9a3a['type']&&'$text'!=_0x6e9a3a['name']),_0x2b9a59=_0x11e151['filter'](_0x1718b4=>'remove'==_0x1718b4['type']&&'$text'!=_0x1718b4['name']);for(const _0x1d2bae of _0x5fb145)_0x127885['push']({'key':_0x1d2bae['attributeKey'],'newValue':_0x1d2bae['attributeNewValue'],'oldValue':_0x1d2bae['attributeOldValue'],'range':sn(_0x1d2bae['range'],_0x4bf88f['model'])});for(const _0x302e90 of _0x5bf5e4){const _0x2208d5=_0x2b9a59['find'](_0x261e6d=>_0x261e6d['position']['isEqual'](_0x302e90['position']));_0x2208d5&&_0x127885['push']({'key':Ke,'newValue':_0x302e90['name'],'oldValue':_0x2208d5['name'],'range':_0x4bf88f['model']['createRangeOn'](_0x302e90['position']['nodeAfter'])});}return 0x0!=_0x127885['length']&&this['_reduceExistingSuggestions'](_0x223d9c,_0x127885);}['_processAttributeSuggestions'](_0x35b568){let _0x549e9e=!0x1;const _0x2db53f=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x29ea29=>_0x29ea29['data']['newRange']&&_0x29ea29['name']['startsWith']('suggestion:attribute:'));for(const _0x58ac28 of _0x2db53f){const {subType:_0xc91faa,id:_0x2b8dc4}=_0x475a96(_0x58ac28['name']),_0x1f8436=_0xc91faa['split']('|')[0x0];for(const _0x4730d9 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x4730d9['id']!=_0x2b8dc4&&'attribute'==_0x4730d9['type']&&_0x4730d9['data']&&_0x4730d9['data']['key']==_0x1f8436&&_0x4730d9['getFirstRange']()['isIntersecting'](_0x58ac28['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x4730d9,_0x58ac28['data']['newRange'],_0x35b568),_0x549e9e=!0x0);}return _0x549e9e;}['recordAttributeChanges'](_0x29d751){this['_recordAttributeSuggestions']=!0x0,_0x29d751();}['_reduceExistingSuggestions'](_0x398038,_0x5b952e){if(0x0==_0x5b952e['length'])return!0x1;let _0x56e336=!0x1;for(const _0x1119ee of _0x5b952e){const _0x32e61f=this['_findSuggestions'](_0x1119ee['range'],'attribute')['filter'](_0x44bd0d=>!_0x44bd0d['meta']['isNextTo'])['map'](_0x56a278=>_0x56a278['suggestion']),_0x50d156=_0x21f52c({'newValue':_0x1119ee['newValue']});_0x32e61f['filter'](_0x41044f=>{const [_0x18f965,_0x1027f1]=_0x41044f['subType']['split']('|');return _0x18f965==_0x1119ee['key']&&_0x1027f1!=_0x50d156;})['forEach'](_0x4a09a7=>{this['_reduceSuggestionAttributeRange'](_0x4a09a7,_0x1119ee['range'],_0x398038),_0x56e336=!0x0;});}return _0x56e336;}['_reduceSuggestionAttributeRange'](_0x3df275,_0x5ed0a8,_0x300180){const _0x56c7a2=_0x3df275['getFirstRange']()['getDifference'](_0x5ed0a8);0x0!==_0x56c7a2['length']?0x1!==_0x56c7a2['length']?this['_breakSuggestionMarker'](_0x3df275,_0x5ed0a8['start'],_0x5ed0a8['end']):this['_setSuggestionRange'](_0x3df275,_0x56c7a2[0x0]):_0x300180['removeMarker'](_0x3df275['getFirstMarker']());}}class Ye{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x4395ca){this['_editor']=_0x4395ca,this['_model']=_0x4395ca['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x58a6fa,_0x41cfb4,_0x33d5b3,_0x8b923f,_0x4145a4,_0x32c6e0,_0x134d8d){return new bt(this['_model'],{'type':_0x58a6fa,'subType':_0x41cfb4,'id':_0x33d5b3,'originalSuggestionId':_0x134d8d,'author':_0x8b923f,'creator':_0x8b923f,'attributes':_0x4145a4,'onAttributesChange':_0x32c6e0,'onAccept':(..._0x1ec7d9)=>this['getSuggestionCallback'](_0x58a6fa,_0x41cfb4,'accept')(..._0x1ec7d9),'onDiscard':(..._0x56114c)=>this['getSuggestionCallback'](_0x58a6fa,_0x41cfb4,'discard')(..._0x56114c)});}['registerCustomCallback'](_0x220387,_0x460479,_0x872dd2,_0x551b15){const _0x17882d=_0x220387+':'+_0x460479+':'+_0x872dd2;this['_customCallbacks']['set'](_0x17882d,_0x551b15);}['getSuggestionCallback'](_0x241a94,_0x32dff6,_0x53b84){const _0x1a0acd=_0x241a94+':'+_0x32dff6+':'+_0x53b84;return this['_customCallbacks']['get'](_0x1a0acd)||this['_defaultCallbacks']['get'](_0x241a94+':'+_0x53b84);}['_registerDefaultCallbacks'](){const _0x43446f=()=>!0x1,_0xfb17c6=_0x5cd26b=>{_0x5cd26b['sort']((_0x4d3f95,_0x399b01)=>_0x4d3f95['start']['isBefore'](_0x399b01['start'])?0x1:-0x1),this['_model']['change'](_0x76fcf2=>{for(const _0x20bcdd of _0x5cd26b){let _0x4a83e2;_0x4a83e2=_0x20bcdd['end']['isAtEnd']&&_0x20bcdd['end']['parent']==_0x20bcdd['start']['nodeAfter']?_0x76fcf2['createSelection'](_0x20bcdd['start']['nodeAfter'],'on'):_0x76fcf2['createSelection'](_0x20bcdd),this['_model']['deleteContent'](_0x4a83e2,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x4f4054=(_0xf78677,_0xd9f00f)=>{_0xd9f00f&&this['_model']['change'](_0x339f5b=>{const {commandName:_0xce3798,commandParams:_0x34cea8=[]}=_0xd9f00f,_0x192ad1=_0xf78677['map'](_0x137e45=>(Qe(_0x137e45)&&(_0x137e45=this['_model']['createRange'](_0x137e45['end'])),_0x137e45))['filter'](_0x5dc4ab=>'$graveyard'!==_0x5dc4ab['root']['rootName']);if(_0x192ad1['length']<0x1)return;const _0x445563=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x1b240e=>_0x4f8349['fromRange'](_0x1b240e));_0x339f5b['setSelection'](_0x192ad1);for(const _0x489a66 of this['_editor']['commands']['commands']())_0x489a66['refresh']();_0x34cea8['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0xce3798,..._0x34cea8);const _0x492271=_0x445563['filter'](_0x7553a0=>'$graveyard'!=_0x7553a0['root']['rootName']);_0x492271['length']>0x0&&_0x339f5b['setSelection'](_0x492271);for(const _0x5e7764 of _0x445563)_0x5e7764['detach']();});},_0x2072f9=(_0x263c55,_0x5c5b46)=>0x1==_0x263c55['length']&&0x1==_0x5c5b46['length']&&_0x263c55[0x0]['end']['isEqual'](_0x5c5b46[0x0]['start']),_0x57aa8a=(_0x56fd89,_0x3bd952,_0x3c405d,_0x494ec0)=>on(_0x56fd89,_0x3bd952,_0x3c405d,_0x494ec0)?[_0x56fd89,_0x3bd952]:on(_0x3bd952,_0x56fd89,_0x494ec0,_0x3c405d)?[_0x3bd952,_0x56fd89]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x43446f),this['_defaultCallbacks']['set']('insertion:discard',_0xfb17c6),this['_defaultCallbacks']['set']('insertion:join',_0x2072f9),this['_defaultCallbacks']['set']('insertion:chain',_0x57aa8a),this['_defaultCallbacks']['set']('deletion:accept',_0xfb17c6),this['_defaultCallbacks']['set']('deletion:discard',_0x43446f),this['_defaultCallbacks']['set']('deletion:join',_0x2072f9),this['_defaultCallbacks']['set']('deletion:chain',_0x57aa8a),this['_defaultCallbacks']['set']('formatInline:accept',_0x4f4054),this['_defaultCallbacks']['set']('formatInline:discard',_0x43446f),this['_defaultCallbacks']['set']('formatInline:join',_0x2072f9),this['_defaultCallbacks']['set']('formatInline:chain',_0x43446f),this['_defaultCallbacks']['set']('formatBlock:accept',_0x4f4054),this['_defaultCallbacks']['set']('formatBlock:discard',_0x43446f),this['_defaultCallbacks']['set']('formatBlock:join',_0x2072f9),this['_defaultCallbacks']['set']('formatBlock:chain',_0x43446f),this['_defaultCallbacks']['set']('attribute:accept',_0x43446f),this['_defaultCallbacks']['set']('attribute:discard',(_0x4fbfc0,_0x38ff62)=>{if(!_0x38ff62)return;const _0x1f8374=this['_editor']['plugins']['get'](_0x16b695);this['_model']['change'](_0x3a84b8=>{if(_0x38ff62['key']==Ke)for(const _0x3d4ecd of _0x4fbfc0){const _0x1a18b0=_0x3d4ecd['start']['nodeAfter'],_0x3cf00a=_0x38ff62['oldValue'];_0x3a84b8['rename'](_0x1a18b0,_0x3cf00a);}else{if(_0x1f8374['isBlockAttribute'](_0x38ff62['key'])){for(const _0x27a9d3 of _0x4fbfc0)void 0x0!==_0x38ff62['oldValue']?_0x3a84b8['setAttribute'](_0x38ff62['key'],_0x38ff62['oldValue'],_0x27a9d3['start']['nodeAfter']):_0x3a84b8['removeAttribute'](_0x38ff62['key'],_0x27a9d3['start']['nodeAfter']);}else{for(const _0x19ffc8 of _0x4fbfc0)_0x38ff62['oldValue']?_0x3a84b8['setAttribute'](_0x38ff62['key'],_0x38ff62['oldValue'],_0x19ffc8):_0x3a84b8['removeAttribute'](_0x38ff62['key'],_0x19ffc8);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x2072f9);}}function qe(_0x12d680,_0x140f91,_0x3b6bb8){for(const _0x1e9a8e of _0x140f91['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x1e9a8e['root']==_0x1e9a8e)return!0x1;if(!_0x3b6bb8['containsItem'](_0x1e9a8e))return!0x1;if(_0x12d680['isObject'](_0x1e9a8e)||_0x12d680['isLimit'](_0x1e9a8e))return!0x0;}return!0x1;}function Qe(_0x24c114){return _0x24c114['end']['parent']==_0x24c114['start']['nodeAfter']&&_0x24c114['end']['isAtStart'];}function Ze(_0x124535,_0x1ae435,_0x419f5d,_0x21efa7){const _0x35d4e2=_0x9465b4=>!_0x9465b4['item']['is']('$textProxy')&&!_0x21efa7['isObject'](_0x9465b4['item']),_0x12b306=_0x124535['start']['getLastMatchingPosition'](_0x35d4e2),_0x5c29b9=_0x124535['end']['getLastMatchingPosition'](_0x35d4e2,{'direction':'backward'});return(!_0x124535['start']['isEqual'](_0x12b306)||!_0x124535['end']['isEqual'](_0x5c29b9))&&(_0x12b306['isBefore'](_0x5c29b9)?_0x419f5d['updateMarker'](_0x1ae435,{'range':_0x419f5d['createRange'](_0x12b306,_0x5c29b9)}):_0x419f5d['removeMarker'](_0x1ae435),!0x0);}function Je(_0x6dd421){return _0x21f52c(_0x6dd421);}function tn(_0x25a832){const _0x1c35bc=_0x25a832['start']['nodeAfter'];return _0x1c35bc&&_0x1c35bc['is']('element');}function en(_0xcf2672){return Qe(_0xcf2672)||function(_0x5a9f2d){return _0x5a9f2d['start']['parent']==_0x5a9f2d['end']['nodeBefore']&&_0x5a9f2d['start']['isAtEnd'];}(_0xcf2672);}function nn(_0x47e5f3,_0x2eda97){try{const _0x3ffe6c=_0x47e5f3['getRange']();for(const _0x396f23 of _0x2eda97)if(_0x47e5f3!==_0x396f23&&_0x3ffe6c&&_0x3ffe6c['isIntersecting'](_0x396f23['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function sn(_0x5cad81,_0x444af0){return null==_0x5cad81['end']['nodeBefore']&&_0x5cad81['end']['parent']==_0x5cad81['start']['nodeAfter']?rn(_0x5cad81['start']['nodeAfter'],_0x444af0):_0x5cad81;}function rn(_0x442319,_0x276fd4){const _0x224b9d=_0x276fd4['schema']['isObject'](_0x442319)||_0x276fd4['schema']['isSelectable'](_0x442319);return _0x276fd4['createRange'](_0x276fd4['createPositionAt'](_0x442319,'before'),_0x224b9d?_0x276fd4['createPositionAfter'](_0x442319):_0x276fd4['createPositionAt'](_0x442319,'end'));}function on(_0x28c250,_0x89d226,_0x751783,_0x511bc1){return!!an(_0x28c250,_0x89d226)&&_0x751783['end']['isEqual'](_0x511bc1['start']);}function an(_0xfff6c4,_0x15006e){if(!_0xfff6c4['_isDataLoaded']||!_0x15006e['_isDataLoaded'])return!0x1;const _0x38d5df=new Set(Object['keys'](_0xfff6c4['attributes'])),_0x99ce40=new Set(Object['keys'](_0x15006e['attributes']));if(_0x38d5df['delete']('groupId'),_0x99ce40['delete']('groupId'),0x0==_0x38d5df['size']&&0x0==_0x99ce40['size'])return!0x0;if(_0x38d5df['size']!=_0x99ce40['size'])return!0x1;const _0x4def5b={..._0xfff6c4['attributes']},_0x26c89c={..._0x15006e['attributes']};return delete _0x4def5b['groupId'],delete _0x26c89c['groupId'],JSON['stringify'](_0x4def5b)==JSON['stringify'](_0x26c89c);}function cn(_0x4d2d38,_0x499353){const _0x4eaed3=ln(_0x4d2d38['attributes']),_0x231733=ln(_0x499353);if(!_0x4d2d38['_isDataLoaded'])return!0x1;for(const _0x369ffc of Object['keys'](_0x231733))if(!st(_0x4eaed3[_0x369ffc],_0x231733[_0x369ffc]))return!0x1;return!0x0;}function ln(_0x2b9b24){const _0x145e36=Object['assign']({},_0x2b9b24);return delete _0x145e36['skipNestingCheck'],delete _0x145e36['tablePasteChainId'],_0x145e36;}function un(_0x3fdc1b){return _0x3fdc1b['split']('|')[0x0];}class hn extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x4582eb(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x14e219,_0xe5c036,_0x40768f,_0x20eebb){super(),this['model']=_0xe5c036,this['view']=_0x40768f,this['commentThreadController']=_0x20eebb,this['_editor']=_0x14e219,this['_acceptCommand']=_0x14e219['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x14e219['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x478ee2,_0x16e203)=>_0x478ee2||_0x16e203),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x4a999d=>_0x4a999d&&this['_editor']['model']['canEditAt'](_0xe5c036['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x31aaee=>_0x31aaee&&this['_editor']['model']['canEditAt'](_0xe5c036['getRanges']())),this['_pendingAction']=null,_0x40768f['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x40768f,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x40768f,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x40768f,'change:isDirty',()=>{_0x40768f['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 _0x35ff0a=At(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x35ff0a);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class dn extends _0x4aba25{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x53a062,_0x2e6619,_0x46faa9,_0x2bf049){super(_0x53a062),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x54fb01(_0x53a062,At(_0x53a062,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x2e6619['authoredAt']),this['bind']('authoredAt')['to'](_0x2e6619),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',_0x2e6619,'authoredAt',this,'descriptionParts',(_0x506e37,_0x36c52c,_0x5f13a1)=>{const _0x5ce19d=_0x5f13a1['map'](_0x60d10c=>gt(_0x60d10c['content']))['join']('.\x20')+'.';return At(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x506e37-0x1,_0x2e6619['author']['name'],_0x36c52c?_0x2bf049['formatDateTime'](_0x36c52c):'',new DOMParser()['parseFromString'](_0x5ce19d,'text/html')['body']['textContent']]);}),this['focusables']=new _0x29597e(),this['focusTracker']=new _0x185cee(),this['keystrokes']=new _0x160fe5(),this['focusCycler']=new _0x418e2b({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x2279a5=>_0x2279a5['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x2e6619,this['_localUser']=_0x46faa9,this['_config']=_0x2bf049,_0x2bf049['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x2f0355(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x5b354b}=this['_config'];this['commentsListView']=new _0x5b354b(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',_0x5f58e3=>_0x5f58e3+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x343dd0,_0x3724a8)=>_0x343dd0||!!_0x3724a8);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x14e150}=this['_config'],_0x4538ac=new _0x14e150(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x492cb2=_0x4538ac['commentInputView'];return _0x4538ac['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x492cb2,'value',(_0xcc09c9,_0x18e1af,_0x22c540)=>!!_0x22c540||_0xcc09c9&&!_0x18e1af),_0x492cb2['on']('submit',(_0x2f42f9,_0x36e29f)=>{this['fire']('addComment',_0x36e29f),_0x492cb2['editor']['setData']('');}),_0x492cb2['on']('cancel',()=>this['focus']()),_0x492cb2['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x4538ac;}}class fn extends dn{['suggestionView'];['_descriptionElement'];constructor(_0x53b65,_0x5894c4,_0x568a57,_0x104048){super(_0x53b65,_0x5894c4,_0x568a57,_0x104048),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x3f4d12=>_0x3f4d12&&_0x3f4d12[0x0]?_0x3f4d12[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0xaf4b2f,_0x3b71e7)=>{let _0x59f0e2='';for(const _0x534d27 of _0xaf4b2f)_0x59f0e2+='<p>'+gt(_0x534d27['content'],_0x534d27['color'])+'</p>';return _0x3b71e7?_0x59f0e2:_0x433d71(_0x59f0e2,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x104048['SuggestionView'](_0x53b65,_0x5894c4,{'formatDateTime':_0x104048['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 _0xbff588=this['bindTemplate'],_0x3cfdfe=[this['suggestionView']];return this['commentsListView']&&_0x3cfdfe['push'](this['commentsListView']),this['commentThreadInputView']&&_0x3cfdfe['push'](this['commentThreadInputView']),_0x3cfdfe['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0xbff588['if']('isActive','ck-suggestion-wrapper--active'),_0xbff588['to']('type',_0x4d1062=>'ck-suggestion-'+_0x4d1062),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':_0xbff588['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x3cfdfe};}['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 _0x4aba25{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x2279f9,_0x548a68,_0x3315d4){super(_0x2279f9),this['_model']=_0x548a68,this['_config']=_0x3315d4,this['set']('description',''),this['bind']('authoredAt')['to'](_0x548a68),this['acceptButton']=this['_createButton'](At(_0x2279f9,'Accept\x20suggestion'),_0x1f783a,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](At(_0x2279f9,'Discard\x20suggestion'),_0x5388f,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x35731a(_0x2279f9,_0x548a68['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x29597e([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x185cee(),this['keystrokes']=new _0x160fe5(),this['focusCycler']=new _0x418e2b({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x324941=>_0x324941['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x4340e0=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x4340e0['innerHTML']=this['description'],this['on']('change:description',(_0x266d52,_0x2bd96c,_0x218248)=>{_0x4340e0['innerHTML']=_0x218248;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x19c7b6=this['bindTemplate'],_0x3ed0ef=[{'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':_0x19c7b6['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x19c7b6['to']('authoredAt',_0x508f18=>this['_config']['formatDateTime'](_0x508f18))}]}]},{'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']&&_0x3ed0ef['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':_0x3ed0ef}]};}['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'](_0x4eb1e8,_0x28a7bc,_0x58a246,_0x2ef437,_0x2691d6){const _0x4a11bb=new _0x5a04b9(this['locale']);return _0x4a11bb['set']({'label':_0x4eb1e8,'icon':_0x28a7bc,'tooltip':!0x0,'tooltipPosition':_0x2691d6}),_0x4a11bb['extendTemplate']({'attributes':{'class':_0x58a246}}),_0x4a11bb['on']('execute',()=>{this['fire'](_0x2ef437,this['_model']['id']);}),_0x4a11bb;}['_setupKeyboardNavigation'](){const _0x56e71f=this['element'];this['keystrokes']['listenTo'](_0x56e71f);for(const _0x114e8a of this['focusables'])this['focusTracker']['add'](_0x114e8a['element']),this['keystrokes']['listenTo'](_0x114e8a['element']);this['keystrokes']['set']('enter',(_0x15f359,_0x1543d2)=>{_0x56e71f===_0x15f359['target']&&(this['focusCycler']['focusFirst'](),_0x1543d2());}),this['keystrokes']['set']('esc',(_0x1058d0,_0x2c7793)=>{_0x56e71f!==_0x1058d0['target']&&(this['focus'](),_0x2c7793());});}}class mn extends _0x4a3826{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[Xe,_0x218a55,_0x4551a9,_0x2cf822,_0x2a0fbe];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4ec932){super(_0x4ec932),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0xd6a75d=this['editor']['config'];_0xd6a75d['define']('trackChanges.SuggestionThreadView',fn),_0xd6a75d['define']('trackChanges.SuggestionView',gn),_0xd6a75d['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0xd6a75d['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x23c7a1,_0x10fd03){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x56320d,_0x44451f]of this['_handleControllerBuffer']){const _0x3e67fd=this['_suggestionToController']['has'](_0x56320d);_0x3e67fd||_0x44451f?_0x3e67fd&&_0x44451f&&this['_destroyController'](_0x56320d):this['_initializeController'](_0x56320d);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0x2a0fbe)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x23c7a1,_0x10fd03);}['init'](){const _0x454f5a=this['editor'],_0x4bcbe7=_0x454f5a['plugins']['get'](Xe),_0x38e633=_0x454f5a['plugins']['get'](_0x2cf822),_0x299864=_0x454f5a['plugins']['get'](_0x2a0fbe),_0x4c92d8=_0x454f5a['plugins']['get'](_0x4551a9);this['_addUIComponentsToFactory'](),_0x299864['addSourceCollector'](()=>{const _0x5207bd=[];for(const [_0x29e628,_0x14f711]of Array['from'](this['_suggestionToController'])){const _0x4b7b90=_0x29e628['getAllAdjacentSuggestions'](),_0x416727=[];for(const _0x9d27b7 of _0x4b7b90){if(!_0x9d27b7['isInContent'])continue;if(_0x9d27b7['isMultiRange']){_0x416727['push'](..._0x9d27b7['getRanges']());continue;}const _0x1f86e1=_0x9d27b7['getFirstRange']();if(_0x416727['length']>0x0){const _0x24f997=_0x416727[0x0]['getJoined'](_0x1f86e1);if(_0x24f997){_0x416727[0x0]=_0x24f997;continue;}}_0x416727['push'](_0x1f86e1);}_0x5207bd['push']([_0x14f711['view'],_0x416727]);}return _0x5207bd;}),this['listenTo'](_0x4bcbe7,'suggestionLoaded',(_0x52e820,_0x14263f)=>{this['listenTo'](_0x14263f,'change:previous',(_0x1604ee,_0x55d29c,_0x2e763c,_0x4c227f)=>{_0x14263f['isInContent']&&(null==_0x2e763c?(this['_updateController'](_0x4c227f['head']),this['_handleSuggestionControllerDelayed'](_0x14263f,!0x1)):(this['_updateController'](_0x2e763c['head']),null==_0x4c227f&&this['_handleSuggestionControllerDelayed'](_0x14263f,!0x0)));}),null!==_0x14263f['previous']?this['_updateController'](_0x14263f['head']):this['_handleSuggestionControllerDelayed'](_0x14263f,!0x1);}),this['listenTo'](_0x4bcbe7,'suggestionUnloaded',(_0x43bd47,_0x2c1f6f,_0x43e256)=>{this['stopListening'](_0x2c1f6f,'change:previous'),this['_handleControllerBuffer']['delete'](_0x2c1f6f),this['_suggestionToController']['has'](_0x2c1f6f)&&this['_destroyController'](_0x2c1f6f),_0x43e256&&this['_updateController'](_0x43e256['head']);}),this['listenTo'](_0x4bcbe7,'suggestionChanged',(_0x1dade0,_0x46d6d8)=>{this['_updateController'](_0x46d6d8);}),this['listenTo'](_0x38e633,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x4c92d8,'addComment',(_0x374c77,{threadId:_0x176206,isFromAdapter:_0x4123e7})=>{if(_0x4123e7||!_0x4bcbe7['hasSuggestion'](_0x176206))return;const _0x58b5f9=_0x4bcbe7['getSuggestion'](_0x176206);this['_suggestionToController']['get'](_0x58b5f9)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4001db=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1b6907;for(const _0x356639 in _0x4001db){const _0x48aacd=_0x356639,_0x4d1818=_0x4001db[_0x48aacd];if('trackChangesLicenseKeyValid'==_0x4d1818||'trackChangesLicenseKeyInvalid'==_0x4d1818||'trackChangesLicenseKeyExpired'==_0x4d1818||'trackChangesLicenseKeyDomainLimit'==_0x4d1818||'trackChangesLicenseKeyNotAllowed'==_0x4d1818||'trackChangesLicenseKeyEvaluationLimit'==_0x4d1818||'trackChangesLicenseKeyUsageLimit'==_0x4d1818){delete _0x4001db[_0x48aacd],_0x1b6907=_0x4d1818,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x1b6907&&_0x4001db['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x1b6907&&_0x4001db['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x1b6907&&_0x4001db['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x1b6907&&_0x4001db['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x1b6907&&_0x4001db['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x1b6907&&_0x4001db['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x5274dc){const _0x5e1983=this['_suggestionToController']['get'](_0x5274dc);if(!_0x5e1983)return null;return this['editor']['plugins']['get'](_0x2cf822)['getByInnerView'](_0x5e1983['view'])||null;}['getSuggestionForAnnotation'](_0x1f8103){const _0x432f2d=this['_viewToController']['get'](_0x1f8103['innerView']);return _0x432f2d?_0x432f2d['model']:null;}['_refreshActiveMarkers'](){const _0x11d140=this['editor']['plugins']['get'](_0x2cf822),_0x36bc42=this['editor']['plugins']['get'](Xe),_0x495b21=Array['from'](_0x11d140['activeAnnotations'],_0x18e248=>_0x18e248['innerView'])['filter'](_0x313baa=>this['_viewToController']['has'](_0x313baa)),_0x440c59=[];for(const _0x1a72d4 of _0x495b21){const _0x127d90=this['_viewToController']['get'](_0x1a72d4)['model']['getAllAdjacentSuggestions']();_0x440c59['push'](..._0x127d90['reduce']((_0xa1da10,_0x37c174)=>[..._0xa1da10,..._0x37c174['getMarkerNames']()],[]));}_0x36bc42['activeMarkers']=_0x440c59;}['_addUIComponentsToFactory'](){const _0x2cc691=this['editor'],_0x346d4e=_0x2cc691['locale'],_0x49573a=At(_0x346d4e,'Track\x20changes'),_0x5a7bd4=new _0x361311([{'type':'switchbutton','model':new _0x5c6bce({'withText':!0x0,'isToggleable':!0x0,'label':_0x49573a,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x5c6bce({'withText':!0x0,'label':At(_0x346d4e,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5c6bce({'withText':!0x0,'label':At(_0x346d4e,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5c6bce({'withText':!0x0,'label':At(_0x346d4e,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5c6bce({'withText':!0x0,'label':At(_0x346d4e,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x2cc691['plugins']['has']('TrackChangesPreview')&&_0x5a7bd4['addMany']([{'type':'separator'},{'type':'button','model':new _0x5c6bce({'withText':!0x0,'label':At(_0x346d4e,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x19566f of _0x5a7bd4)if(En(_0x19566f)){const _0x27c656=_0x2cc691['commands']['get'](_0x19566f['model']['commandName']);_0x19566f['model']['bind']('isOn','isEnabled')['to'](_0x27c656,'value','isEnabled');}_0x2cc691['ui']['componentFactory']['add']('trackChanges',_0x2b8cee=>this['_createToolbarButton'](_0x2b8cee,_0x5a7bd4,_0x49573a)),_0x2cc691['ui']['componentFactory']['add']('menuBar:trackChanges',_0x9cc63c=>this['_createMenuBarMenu'](_0x9cc63c,_0x5a7bd4,_0x49573a));}['_createToolbarButton'](_0x2e320c,_0x34d29e,_0x2134a3){const _0x47518b=_0x34283a(_0x2e320c,_0x4dd119),_0x17d389=this['editor']['commands']['get']('trackChanges');_0x47518b['buttonView']['set']({'tooltip':_0x2134a3,'label':_0x2134a3,'icon':_0x304c98}),_0x47518b['buttonView']['bind']('isOn')['to'](_0x17d389,'value'),_0x47518b['buttonView']['on']('execute',()=>{_0x17d389['execute'](),this['editor']['editing']['view']['focus']();}),_0x258fd4(_0x47518b,_0x34d29e,{'role':'menu'});const _0x120a66=[];for(const _0x41542a of _0x34d29e)En(_0x41542a)&&_0x120a66['push'](this['editor']['commands']['get'](_0x41542a['model']['commandName']));const _0x24fc90=_0x47518b['buttonView'];return _0x24fc90['actionView']['unbind']('isEnabled'),_0x24fc90['arrowView']['unbind']('isEnabled'),_0x24fc90['actionView']['bind']('isEnabled')['to'](_0x17d389,'isEnabled'),_0x24fc90['arrowView']['bind']('isEnabled')['toMany'](_0x120a66,'isEnabled',(..._0x42278f)=>_0x42278f['some'](_0x260312=>_0x260312)),_0x47518b['on']('execute',_0x4cd418=>{this['editor']['execute'](_0x4cd418['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x47518b;}['_createMenuBarMenu'](_0x5197d5,_0x41a005,_0x473573){const _0x5277fa=new _0xf70dcc(_0x5197d5),_0x392b1=this['editor']['commands']['get']('trackChanges');_0x5277fa['buttonView']['set']({'label':_0x473573,'icon':_0x304c98});const _0x1d8899=new _0x534bac(_0x5197d5);for(const _0x1a6d74 of _0x41a005){if('separator'==_0x1a6d74['type']){_0x1d8899['items']['add'](new _0x5ee576(_0x5197d5));continue;}const _0x11078e=new _0x4c4846(_0x5197d5,_0x5277fa),_0x42338d=new _0x32f6de(_0x5197d5),_0x217709=_0x1a6d74['model'];_0x42338d['bind'](...Object['keys'](_0x217709))['to'](_0x217709),_0x42338d['delegate']('execute')['to'](_0x5277fa),_0x42338d['on']('execute',()=>{this['editor']['execute'](_0x217709['commandName']),this['editor']['editing']['view']['focus']();}),_0x11078e['children']['add'](_0x42338d),_0x1d8899['items']['add'](_0x11078e);}return _0x5277fa['bind']('isEnabled')['to'](_0x392b1,'isEnabled'),_0x5277fa['panelView']['children']['add'](_0x1d8899),_0x5277fa;}['_initializeController'](_0x34d8b9){const _0x124c53=this['editor'],_0x15aed5=_0x124c53['config'],_0x32cea1=_0x124c53['plugins']['get'](_0x2cf822),_0x32759e=_0x124c53['plugins']['get'](_0x4551a9),_0xc25aa4=_0x124c53['plugins']['get'](_0x2a0fbe),_0x407024=_0x124c53['plugins']['get'](_0x218a55)['me'],_0x57c05c=_0x15aed5['get']('trackChanges')['SuggestionThreadView'],_0x1391b8=_0x15aed5['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x5f42ce,CommentThreadInputView:_0x58aa7f}=_0x124c53['plugins']['get']('CommentsUI');let _0x2b60b2,_0x443fb3,_0x20b308;this['_annotationViews']['has'](_0x34d8b9['id'])?(_0x443fb3=this['_annotationViews']['get'](_0x34d8b9['id']),_0x2b60b2=_0x443fb3['mainView']):(_0x2b60b2=new _0x57c05c(_0x124c53['locale'],_0x34d8b9,_0x407024,{'disableComments':this['_disableComments'],'editorConfig':{..._0x15aed5['get']('comments.editorConfig'),'licenseKey':_0x15aed5['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x15aed5['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x15aed5['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x15aed5['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x3a327e(_0x15aed5['get']('locale'),_0x124c53['locale']),'CommentView':_0x15aed5['get']('comments')['CommentView'],'CommentsListView':_0x5f42ce,'CommentThreadInputView':_0x58aa7f,'SuggestionView':_0x1391b8}),_0x2b60b2['suggestionView']['acceptButton']['on']('execute',()=>{_0x124c53['editing']['view']['focus']();}),_0x2b60b2['suggestionView']['discardButton']['on']('execute',()=>{_0x124c53['editing']['view']['focus']();}),_0x443fb3=_0x32cea1['createAnnotationView'](this['editor']['locale'],_0x2b60b2),_0x443fb3['bind']('isDirty')['to'](_0x2b60b2,'isDirty'),_0x443fb3['bind']('length')['to'](_0x2b60b2),_0x443fb3['bind']('type')['to'](_0x2b60b2,'type',_0x433ff1=>'suggestion-'+_0x433ff1),_0x2b60b2['on']('escape',()=>{_0x20b308['fire']('escape');}),this['_annotationViews']['set'](_0x34d8b9['id'],_0x443fb3));const _0x2f66e4=_0x32759e['createCommentThreadController'](_0x34d8b9['commentThread'],_0x2b60b2),_0x527d19=new hn(_0x124c53,_0x34d8b9,_0x2b60b2,_0x2f66e4),_0x1155f8=_0x34d8b9['getAllAdjacentSuggestions']()['filter'](_0xbd7cf4=>_0xbd7cf4['isInContent']);_0x2b60b2['descriptionParts']=_0x124c53['plugins']['get'](Xe)['descriptionFactory']['getDescriptions'](_0x1155f8),this['_suggestionToController']['set'](_0x34d8b9,_0x527d19),this['_viewToController']['set'](_0x2b60b2,_0x527d19);const _0x38d288=()=>{const _0x381c6e=[],_0x45ab73=_0x34d8b9['getAllAdjacentSuggestions']()['filter'](_0x2f2361=>_0x2f2361['isInContent']);for(const _0xc0f42b of _0x45ab73)_0x381c6e['push'](..._0xc0f42b['getMarkers']());return _0x1cc54b(_0x124c53['editing'],_0x381c6e);};_0x20b308=_0x32cea1['createAnnotation']({'view':_0x443fb3,'target':_0x38d288,'type':()=>'suggestion-'+_0x527d19['view']['type'],'isVisible':!!_0x38d288()}),_0x32759e['_bindAnnotationToEditors'](_0x2b60b2,_0x20b308),_0x32cea1['add'](_0x20b308),_0xc25aa4['registerAnnotation'](_0x20b308);}['_destroyController'](_0x355e64){const _0x37ec4c=this['editor']['plugins']['get'](_0x4551a9),_0x1b653a=this['editor']['plugins']['get'](_0x2cf822),_0x451124=this['_suggestionToController']['get'](_0x355e64),_0x2958e0=_0x451124['view'],_0x570393=_0x1b653a['getByInnerView'](_0x2958e0);_0x37ec4c['_unbindEditors'](_0x2958e0),_0x570393&&_0x1b653a['remove'](_0x570393),this['_suggestionToController']['delete'](_0x355e64),this['_viewToController']['delete'](_0x2958e0),_0x451124['destroy']();}['_updateController'](_0x1fbba1){if(!_0x1fbba1['isInContent']||!this['_suggestionToController']['has'](_0x1fbba1))return;const _0x54b237=this['editor']['plugins']['get'](Xe),_0x64639b=this['_suggestionToController']['get'](_0x1fbba1),_0x469129=_0x1fbba1['getAllAdjacentSuggestions']();_0x64639b['view']['descriptionParts']=_0x54b237['descriptionFactory']['getDescriptions'](_0x469129);}['destroy'](){for(const _0x50e79 of this['_suggestionToController']['keys']())this['_destroyController'](_0x50e79);for(const _0x2ff842 of this['_annotationViews']['values']())_0x2ff842['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function En(_0x26c2c0){return'model'in _0x26c2c0;}class Tn extends _0x4a3826{static get['requires'](){return[Xe,mn,_0x54bb3d];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x7ac7){this['editor']['plugins']['get'](Xe)['adapter']=_0x7ac7;}get['adapter'](){return this['editor']['plugins']['get'](Xe)['adapter'];}['addSuggestion'](_0x4cdee5){return this['editor']['plugins']['get'](Xe)['addSuggestionData'](_0x4cdee5);}['getSuggestions']({skipNotAttached:_0x5511e2=!0x1,toJSON:_0x11948b=!0x1}={}){return this['editor']['plugins']['get'](Xe)['getSuggestions']({'skipNotAttached':_0x5511e2,'toJSON':_0x11948b});}['getSuggestion'](_0x5aeda9){return this['editor']['plugins']['get'](Xe)['getSuggestion'](_0x5aeda9);}}const _n=['Pagination'];class pn extends _0x4a3826{static get['requires'](){return[Xe];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x46e729=this['editor'];if(_0x46e729['config']['define']('trackChangesData.editorCreator',_0x25cfaf=>{const _0x2063c2=_0x46e729['model']['document']['getRootNames']()['reduce']((_0x5a8ff8,_0xdc972e)=>(_0x5a8ff8[_0xdc972e]='',_0x5a8ff8),{});return _0x46e729['constructor']['create'](_0x2063c2,_0x25cfaf);}),'function'!=typeof _0x46e729['config']['get']('trackChangesData')['editorCreator'])throw new _0x3800a1('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x4e175d){return bn(this['editor'],!0x0,_0x4e175d);}['getDataWithDiscardedSuggestions'](_0x5accec){return bn(this['editor'],!0x1,_0x5accec);}}class Ln extends _0x4a3826{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x10c1cf){function _0xdb5a67(_0x4fc9c2){return _0x4fc9c2['map'](_0xab9e83=>String['fromCharCode'](_0xab9e83))['join']('');}super(_0x10c1cf),this['result']='end',_0x10c1cf[_0xdb5a67([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xdb5a67([0x76,0x69,0x65,0x77])][_0xdb5a67([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xdb5a67([0x61,0x75,0x74,0x6f]),_0x10c1cf[_0xdb5a67([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0xdb5a67([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xdb5a67([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0xdb5a67([0x73,0x74,0x61,0x74,0x75,0x73])]:_0xdb5a67([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(_0x466abb){return void 0x0!==_0x466abb['getRootsAttributes'];}async function bn(_0x58c197,_0x5e3373,_0x39a67c){const _0x4b3471=_0x243ea7(_0x58c197,_n);if(_0x4b3471['plugins']['push'](Xe,Ln),In(_0x58c197)){_0x4b3471['roots']=Object['create'](null);for(const _0x590e75 of _0x58c197['model']['document']['getRootNames']())_0x4b3471['roots'][_0x590e75]={'modelAttributes':_0x58c197['getRootAttributes'](_0x590e75)};}const _0x39771d=document['createDocumentFragment'](),_0x2779d0=_0x58c197['config']['get']('trackChangesData')['editorCreator'],_0x37b80e=await _0x2779d0(_0x4b3471,()=>function(_0x47357a){const _0x1f56e4=document['createElement']('div');return _0x47357a['appendChild'](_0x1f56e4),_0x1f56e4;}(_0x39771d));!function(_0x18c14b,_0x2d72b0){const _0x3e8408=_0x18c14b['model']['document']['getRootNames']()['reduce']((_0x259e9c,_0x580346)=>(_0x259e9c[_0x580346]=_0x18c14b['data']['get']({'rootName':_0x580346}),_0x259e9c),{}),_0x549e76=_0x18c14b['plugins']['get']('Users')['users']['map'](_0x123ab8=>({'id':_0x123ab8['id'],'name':_0x123ab8['name']})),_0x1426b5=_0x18c14b['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3fe89e=_0x18c14b['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x115c7a=_0x2d72b0['plugins']['get']('Users'),_0xbae503=_0x2d72b0['plugins']['get']('TrackChangesEditing'),_0x42e540=_0x2d72b0['plugins']['get']('CommentsRepository');for(const _0x45d256 of _0x42e540['getCommentThreads']())_0x45d256['remove']();for(const _0x3f2935 of _0x549e76)_0x115c7a['getUser'](_0x3f2935['id'])||_0x115c7a['addUser'](_0x3f2935);_0x115c7a['me']||_0x115c7a['useAnonymousUser']();for(const _0x5d5560 of _0x3fe89e)_0x42e540['addCommentThread'](_0x5d5560);for(const _0x41c447 of _0x1426b5)_0xbae503['addSuggestionData'](_0x41c447);_0x2d72b0['data']['set'](_0x3e8408);}(_0x58c197,_0x37b80e),_0x37b80e['execute'](_0x5e3373?'acceptAllSuggestions':'discardAllSuggestions');const _0x2bd48c=In(_0x37b80e)?_0x37b80e['getFullData'](_0x39a67c):_0x37b80e['data']['get'](_0x39a67c);return await _0x37b80e['destroy'](),_0x2bd48c;}class An extends _0x4aba25{['options'];constructor(_0xf4de9b,_0x490a7c){super(_0xf4de9b),this['options']=_0x490a7c,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'](_0x1835da,_0x3a231a){if(!this['element'])return;const _0x140057=[];for(const [_0x37aed1,_0xb725e2]of _0x1835da){const _0x1b5f06=document['createElement']('div');_0x1b5f06['setAttribute']('data-ck-root-name',_0x37aed1),_0x1b5f06['className']=_0xb725e2['classes']+'\x20ck-track-changes-preview__root-container',_0x1b5f06['innerHTML']=_0xb725e2['content'],_0x140057['push'](_0x1b5f06);}_0x3a231a(this['element'],_0x140057),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class kn extends _0x153246{constructor(_0x4a7ecf){super(_0x4a7ecf),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x22febc=this['editor'],_0x589826=_0x22febc['locale'],_0x348224=_0x22febc['plugins']['get']('Dialog');let _0x343752;const _0x45bae5=function(_0x4848df){const _0x4b4a92={};if('editables'in _0x4848df['ui']['view']){for(const [_0x3016f4,_0x18a597]of Object['entries'](_0x4848df['ui']['view']['editables']))_0x4b4a92[_0x3016f4]=_0x18a597['element'];}else _0x4b4a92[_0x4848df['model']['document']['getRootNames']()[0x0]]=_0x4848df['ui']['view']['editable']['element'];return _0x4b4a92;}(_0x22febc),_0x4ba6cb=function(_0x29ec3d){let _0x410bb8=0x0;for(const _0x4cf50c of Object['values'](_0x29ec3d))_0x410bb8=Math['max'](_0x410bb8,_0x4cf50c['getBoundingClientRect']()['width']);let _0x1e4d91=0x0;for(const _0x42b73c of Object['values'](_0x29ec3d))_0x1e4d91+=_0x42b73c['getBoundingClientRect']()['height'];const _0x1b05f3=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x3961bc=Math['min'](_0x1e4d91,_0x1b05f3);return{'width':_0x410bb8,'height':_0x3961bc};}(_0x45bae5);_0x348224['show']({'id':'finalContentPreview','title':At(_0x589826,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new An(_0x589826,{'dialogRects':_0x4ba6cb}),'onHide':()=>{_0x343752['detachFromDom']();},'onShow':()=>{_0x22febc['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x4f702f=>{const _0x34d13d=this['_standarizeRootsData'](_0x4f702f,_0x22febc,_0x45bae5);_0x348224['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x34d13d,_0x22febc['config']['get']('trackChanges.preview.renderFunction'));}),_0x343752=new _0x565982(_0x589826,[_0x348224['view']]),_0x343752['attachToDom'](),_0x343752['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x22febc['once']('destroy',()=>{_0x343752['detachFromDom']();});const _0x252b52=_0x348224['view']['headerView']['class'];_0x348224['view']['headerView']['class']=_0x252b52?_0x252b52+'\x20ck-reset_all':'ck-reset_all',_0x348224['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x348224['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x27a74a=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x266b06=_0x27a74a['previewMode'],_0x12708f={};if('$labels'===_0x266b06){for(const _0x16eb1c of _0x27a74a['getMergeFieldsIds']())_0x12708f[_0x16eb1c]=_0x27a74a['getLabel'](_0x16eb1c)||_0x16eb1c;}else{const _0xa5302='$defaultValues'===_0x266b06?_0x27a74a['getDefaultValues']():_0x27a74a['getDataSetValues'](_0x266b06,!0x0);for(const _0x3a541d of Object['entries'](_0xa5302)){const [_0x4f0783,_0x5f1842]=_0x3a541d;_0x12708f[_0x4f0783]=null!==_0x5f1842?_0x5f1842:_0x27a74a['getLabel'](_0x4f0783)||_0x4f0783;}}return{'mergeFieldsData':_0x12708f};}['_standarizeRootsData'](_0x3db10f,_0x24aaae,_0x1b5323){let _0x17ac2e;if('string'==typeof _0x3db10f){const _0x27ca84=_0x24aaae['model']['document']['getRootNames']()[0x0];_0x17ac2e={[_0x27ca84]:_0x3db10f};}else _0x17ac2e=_0x3db10f;const _0x110c63=this['_fixMediaEmbeds'](_0x17ac2e,_0x24aaae),_0x1ca137=function(_0x44b53f,_0x1441e9){for(const [_0x3739af,_0x45c604]of _0x44b53f)_0x45c604['classes']=_0x1441e9[_0x3739af]['classList']['value']['replace']('ck-focused','');return _0x44b53f;}(this['_sortRoots'](_0x24aaae)['reduce']((_0x22492c,_0x2807ac)=>(_0x22492c['push']([_0x2807ac,{'content':_0x110c63[_0x2807ac],'classes':''}]),_0x22492c),[]),_0x1b5323);return _0x1ca137;}['_fixMediaEmbeds'](_0x43199d,_0x1e7c73){if(!_0x1e7c73['plugins']['has']('MediaEmbedEditing'))return _0x43199d;const _0x39d672=_0x1e7c73['plugins']['get']('MediaEmbedEditing');for(const [_0x1a6d01,_0x4b03c4]of Object['entries'](_0x43199d)){const _0x2e019a=document['createElement']('div');_0x2e019a['innerHTML']=_0x4b03c4,(_0x2e019a['querySelectorAll']('figure.media')['forEach'](_0x466cf4=>{const _0xcff181=_0x466cf4['querySelector']('oembed');if(_0xcff181){const _0x3a210f=_0xcff181['getAttribute']('url');if(_0x3a210f){const _0x5923ab=_0x39d672['registry']['getMediaViewElement'](new et(_0x1e7c73['editing']['view']['document']),_0x3a210f,{'elementName':'','renderForEditingView':!0x0}),_0x3d1788=document['createElement']('div');_0x3d1788['classList']['add']('ck-media__wrapper'),_0x5923ab['render'](_0x3d1788,_0x1e7c73['editing']['view']['domConverter']),_0xcff181['replaceWith'](_0x3d1788);}}}),_0x43199d[_0x1a6d01]=_0x2e019a['innerHTML']);}return _0x43199d;}['_sortRoots'](_0x17c8ee){if(!function(_0xe4b343){return void 0x0!==_0xe4b343['getRootsAttributes'];}(_0x17c8ee))return _0x17c8ee['model']['document']['getRootNames']();const _0x50b545=[],_0x5a2f56=new Map();for(const _0x43cede of _0x17c8ee['model']['document']['getRootNames']()){const _0x2a47b9=_0x17c8ee['editing']['view']['getDomRoot'](_0x43cede)['getClientRects']()['item'](0x0);_0x50b545['push'](_0x43cede),_0x5a2f56['set'](_0x43cede,_0x2a47b9);}return _0x50b545['sort']((_0x1af550,_0x164964)=>{const _0x303cb8=_0x5a2f56['get'](_0x1af550),_0x6c292=_0x5a2f56['get'](_0x164964);return _0x303cb8['y']-_0x6c292['y']||_0x303cb8['x']-_0x6c292['x'];}),_0x50b545;}}class Cn extends _0x4a3826{static get['requires'](){return[pn,_0x2841a9];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x257153){super(_0x257153),_0x257153['commands']['add']('previewFinalContent',new kn(this['editor'])),_0x257153['config']['define']('trackChanges.preview.renderFunction',(_0x4f1c69,_0x57daca)=>{for(const _0x5e3693 of _0x57daca)_0x4f1c69['appendChild'](_0x5e3693);});}}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};
|