@ckeditor/ckeditor5-track-changes 48.3.0-alpha.0 → 48.3.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +4 -4
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +25 -25
package/dist/index.js
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as
|
|
24
|
-
_0x58d8b4();var yt=class Suggestion extends Nt{['id'];['type'];['subType'];['author'];['creator'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x57ce7d,_0x27564b){super(),this['id']=_0x27564b['id'],this['type']=_0x27564b['type'],this['subType']=_0x27564b['subType']||null,this['author']=_0x27564b['author'],this['creator']=_0x27564b['creator']||_0x27564b['author'],this['data']=null,this['_originalSuggestionId']=_0x27564b['originalSuggestionId']||null,this['_model']=_0x57ce7d,this['_onAccept']=_0x27564b['onAccept'],this['_onDiscard']=_0x27564b['onDiscard'],this['_onAttributesChange']=_0x27564b['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x27564b['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get['isExternal'](){return Boolean(this['attributes']&&this['attributes']['@external']);}get['aiSource'](){return this['attributes']&&this['attributes']['@ai']?.['type']||null;}get['head'](){let _0x47b931=this;for(;_0x47b931['previous'];)_0x47b931=_0x47b931['previous'];return _0x47b931;}get['hasComments'](){return!!this['commentThread']&&this['commentThread']['length']>0x0;}get['isMultiRange'](){return 0x0!=this['_markerNames']['size']&&0x6==Array['from'](this['_markerNames'])[0x0]['split'](':')['length'];}get['isInContent'](){return null!==this['getFirstMarker']();}['addMarkerName'](_0x2a59f8){this['_markerNames']['add'](_0x2a59f8);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x19cdeb=>this['_model']['markers']['get'](_0x19cdeb))['filter'](_0x253626=>_0x253626);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x487413=>{for(const _0x3cf2ab of this['getMarkers']())_0x487413['removeMarker'](_0x3cf2ab);}),this['_markerNames']['clear']();}['removeMarker'](_0x1e2618){this['_model']['change'](_0x182f60=>{_0x182f60['removeMarker'](_0x1e2618);}),this['_markerNames']['delete'](_0x1e2618);}['addRange'](_0x562068){const _0x16d2fa='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+Suggestion['getMultiRangeId']();this['addMarkerName'](_0x16d2fa),this['_model']['change'](_0x11beda=>{_0x11beda['addMarker'](_0x16d2fa,{'range':_0x562068,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x4135c1){for(const _0x38ef6b of this['getRanges']())if(_0x38ef6b['isIntersecting'](_0x4135c1))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x5a6b36=>_0x5a6b36['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x2b0719,_0x1d75ef)=>[..._0x2b0719,..._0x1d75ef['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x497e9d=this['getRanges']();if(0x1!=_0x497e9d['length'])return null;const _0x4e783f=_0x497e9d[0x0],_0x42e490=_0x4e783f['start']['nodeAfter'],_0x241764=_0x4e783f['end']['nodeBefore'];return _0x42e490 instanceof it?_0x42e490!=_0x241764?null:_0x42e490: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 _0x1f5e8d=[];let _0x597478=this['head'];for(;_0x597478;)_0x1f5e8d['push'](_0x597478),_0x597478=_0x597478['next'];return _0x1f5e8d;}['setAttribute'](_0x59345a,_0x17c216){const _0x2534c8=at(this['attributes']);ut(_0x2534c8,_0x59345a,_0x17c216),ct(_0x2534c8,this['attributes'])||(this['attributes']=_0x2534c8,this['_onAttributesChange'](_0x2534c8));}['removeAttribute'](_0x3e88bb){const _0x1899a8=at(this['attributes']);dt(_0x1899a8,_0x3e88bb),ct(_0x1899a8,this['attributes'])||(this['attributes']=_0x1899a8,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 _0x25321b()['substr'](0x1,0x5);}};function St(_0x55e83b,_0x1277c3,_0x5d6a1f){const _0x53cc1c=_0x55e83b['t'],t=_0x55e83b['t'];switch(_0x1277c3){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',_0x5d6a1f);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x5d6a1f);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x5d6a1f);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x5d6a1f);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x5d6a1f);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',_0x5d6a1f);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x5d6a1f);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',_0x5d6a1f);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x5d6a1f);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x5d6a1f);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x5d6a1f);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x5d6a1f);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x5d6a1f);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x5d6a1f);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x5d6a1f);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x5d6a1f);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x5d6a1f);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x5d6a1f);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x5d6a1f);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x5d6a1f);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x5d6a1f);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x5d6a1f);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x5d6a1f);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x5d6a1f);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x5d6a1f);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'},_0x5d6a1f);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x5d6a1f);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x5d6a1f);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x5d6a1f);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x5d6a1f);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x5d6a1f);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x5d6a1f);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x5d6a1f);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});case'ELEMENT_RAW_HTML':return t({'string':'raw\x20HTML','id':'ELEMENT_RAW_HTML'});case'ELEMENT_HTML_TAG':return t({'string':'%1\x20element','plural':'%0\x20%1\x20elements','id':'ELEMENT_HTML_TAG'},_0x5d6a1f);case'FORMAT_RAW_HTML_CONTENT':return t({'string':'raw\x20HTML\x20content','id':'FORMAT_RAW_HTML_CONTENT'});case'FORMAT_HTML_CLASS':return t({'string':'style','id':'FORMAT_HTML_CLASS'});case'FORMAT_HTML_ATTRIBUTE':return t({'string':'metadata','id':'FORMAT_HTML_ATTRIBUTE'});case'FORMAT_HTML_LIST_ITEM':return t({'string':'list\x20item\x20HTML','id':'FORMAT_HTML_LIST_ITEM'});case'FORMAT_HTML_BULLETED_LIST':return t({'string':'list\x20HTML','id':'FORMAT_HTML_BULLETED_LIST'});case'FORMAT_HTML_NUMBERED_LIST':return t({'string':'list\x20HTML','id':'FORMAT_HTML_NUMBERED_LIST'});case'ELEMENT_CAPTION':return t({'string':'caption','id':'ELEMENT_CAPTION'});case'ELEMENT_HORIZONTAL_LINE':return t({'string':'horizontal\x20line','plural':'%0\x20horizontal\x20lines','id':'ELEMENT_HORIZONTAL_LINE'},_0x5d6a1f);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x5d6a1f);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x5d6a1f);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x5d6a1f);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x5d6a1f);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'},_0x5d6a1f);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x5d6a1f);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'},_0x5d6a1f);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_FOOTER_ROW':return t({'string':'footer\x20row','id':'FORMAT_FOOTER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_MEDIA_SIZE':return t({'string':'media\x20size','id':'FORMAT_MEDIA_SIZE'});case'FORMAT_MEDIA_ALIGN_LEFT':return t({'string':'align\x20left','id':'FORMAT_MEDIA_ALIGN_LEFT'});case'FORMAT_MEDIA_ALIGN_BLOCK_LEFT':return t({'string':'align\x20block\x20left','id':'FORMAT_MEDIA_ALIGN_BLOCK_LEFT'});case'FORMAT_MEDIA_ALIGN_CENTER':return t({'string':'align\x20center','id':'FORMAT_MEDIA_ALIGN_CENTER'});case'FORMAT_MEDIA_ALIGN_BLOCK_RIGHT':return t({'string':'align\x20block\x20right','id':'FORMAT_MEDIA_ALIGN_BLOCK_RIGHT'});case'FORMAT_MEDIA_ALIGN_RIGHT':return t({'string':'align\x20right','id':'FORMAT_MEDIA_ALIGN_RIGHT'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_TYPE':return t({'string':'table\x20cell\x20type','id':'FORMAT_TABLE_CELL_TYPE'});case'FORMAT_FOOTNOTES_LIST_STYLE':return t({'string':'footnotes\x20list\x20style','id':'FORMAT_FOOTNOTES_LIST_STYLE'});case'FORMAT_FOOTNOTES_LIST_START':return t({'string':'footnotes\x20list\x20start','id':'FORMAT_FOOTNOTES_LIST_START'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x5d6a1f);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x5d6a1f);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'},_0x5d6a1f);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x5d6a1f);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'},_0x5d6a1f);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x5d6a1f);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x5d6a1f);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x5d6a1f);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x5d6a1f);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x5d6a1f);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'},_0x5d6a1f);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x5d6a1f);case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'AI_SOURCE_PILL_LABEL':return t({'string':'AI-generated','id':'AI_SOURCE_PILL_LABEL'});case'AI_SOURCE_PILL_TOOLTIP':return t({'string':'This\x20suggestion\x20was\x20proposed\x20by\x20AI.','id':'AI_SOURCE_PILL_TOOLTIP'});case'AI_AUTHOR_DEFAULT_NAME':return t({'string':'AI\x20Assistant','id':'AI_AUTHOR_DEFAULT_NAME'});case'EXTERNAL_AVATAR':return _0x53cc1c({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x5d6a1f);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x53cc1c({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x5d6a1f);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x5d6a1f);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'},_0x5d6a1f);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'},_0x5d6a1f);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'},_0x5d6a1f);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x1277c3;}}var Mt=class{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x53e38f,_0x16db8a){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x53e38f,this['_locale']=_0x16db8a;}['getDescriptions'](_0x3205f5){const _0x56d260=[],_0x1481c2=new Set(),_0x1c48b9=new Set();for(let _0x242cac=0x0;_0x242cac<_0x3205f5['length'];_0x242cac++){const _0x31d129=_0x3205f5[_0x242cac];if(!_0x31d129['isInContent'])continue;const _0x2adc71=this['_handleCustomCallbackDescription'](_0x31d129);if(_0x2adc71){if(null!=_0x31d129['subType']){if(_0x1481c2['has'](_0x31d129['subType']))continue;_0x1481c2['add'](_0x31d129['subType']);}_0x56d260['push'](_0x2adc71);}else{if('attribute'==_0x31d129['type']){const _0x30579c=_0x31d129['data']['key'];if(_0x1c48b9['has'](_0x30579c))continue;_0x1c48b9['add'](_0x31d129['data']['key']),'$elementName'==_0x30579c?this['_handleRenameSuggestionDescription'](_0x56d260,_0x31d129):this['_handleAttributeSuggestionDescription'](_0x56d260,_0x31d129);continue;}'insertion'!=_0x31d129['type']&&'deletion'!=_0x31d129['type']||this['_handleInsertRemoveSuggestionDescription'](_0x56d260,_0x31d129,_0x3205f5[_0x242cac+0x1]);}}return this['_resolveDescriptionItems'](_0x56d260);}['registerDescriptionCallback'](_0x2b5b80){this['_customCallbacks']['push'](_0x2b5b80);}['registerElementLabel'](_0x447430,_0x4d9ee2,_0x86f405=_0x535ad9['normal']){'function'==typeof _0x447430?_0x2a44e5(this['_itemLabelsCallbacks'],{'matchingCallback':_0x447430,'label':_0x4d9ee2,'priority':_0x86f405}):this['_itemLabels']['set'](_0x447430,_0x4d9ee2);}['registerAttributeLabel'](_0x5636ec,_0x544333){this['_attributeLabels']['set'](_0x5636ec,_0x544333);}['getItemLabel'](_0x462848,_0x432ecb=0x1){let _0x3e5269;for(const _0x1c26f2 of this['_itemLabelsCallbacks'])if(_0x1c26f2['matchingCallback'](_0x462848)){_0x3e5269=_0x1c26f2['label'];break;}return _0x3e5269||(_0x3e5269=this['_itemLabels']['get'](_0x462848['name'])),_0x3e5269?_0x3e5269(_0x432ecb):0x1!==_0x432ecb?_0x432ecb+'\x20'+_0x462848['name']+'s':''+_0x462848['name'];}['_addDescriptionItems'](_0x2d4ee0,_0x882e82){const _0x439b32=_0x882e82['getFirstRange']()['getWalker'](),_0x7cfa1c='insertion'==_0x882e82['type']?'add':'remove';for(const _0x5ab1b9 of _0x439b32){const _0x5d4ef4=_0x5ab1b9['item'],_0x26df88=_0x2d4ee0[_0x2d4ee0['length']-0x1];if(_0x5d4ef4['is']('$textProxy'))_0x26df88&&_0x26df88['type']['indexOf']('Container')>-0x1&&_0x2d4ee0['pop'](),_0x26df88&&'text'==_0x26df88['type']?_0x26df88[_0x7cfa1c]+=_0x5d4ef4['data']:_0x2d4ee0['push']({'type':'text','add':'add'==_0x7cfa1c?_0x5d4ef4['data']:'','remove':'remove'==_0x7cfa1c?_0x5d4ef4['data']:''});else{if(this['_schema']['isObject'](_0x5d4ef4)){const _0x161e1b=_0x5d4ef4;if(_0x26df88&&_0x26df88['type']['indexOf']('Container')>-0x1&&_0x2d4ee0['pop'](),'elementEnd'==_0x5ab1b9['type'])continue;_0x26df88&&_0x26df88['type']==_0x7cfa1c+'Object'&&_0x26df88['element']['name']==_0x161e1b['name']?_0x26df88['quantity']++:_0x2d4ee0['push']({'type':_0x7cfa1c+'Object','element':_0x161e1b,'quantity':0x1}),_0x439b32['skip'](_0x16ff60=>!('elementEnd'==_0x16ff60['type']&&_0x16ff60['item']==_0x5d4ef4));}else{if(this['_schema']['checkChild'](_0x5d4ef4,'$text')||_0x5d4ef4['is']('element','softBreak')){const _0xc98f4=_0x5d4ef4;if('add'==_0x7cfa1c&&'elementStart'==_0x5ab1b9['type']||'remove'==_0x7cfa1c&&'elementEnd'==_0x5ab1b9['type'])continue;if(_0x26df88&&-0x1==_0x26df88['type']['indexOf']('Container')){'text'==_0x26df88['type']&&(_0x26df88[_0x7cfa1c]+='\x0a');continue;}let _0x1c394e;if(_0x1c394e='add'==_0x7cfa1c?_0xc98f4['nextSibling']&&!this['_schema']['isObject'](_0xc98f4['nextSibling'])?_0xc98f4['nextSibling']:null:_0xc98f4['previousSibling']&&!this['_schema']['isObject'](_0xc98f4['previousSibling'])?_0xc98f4['previousSibling']:null,_0xc98f4['isEmpty']||_0x1c394e&&_0x1c394e['isEmpty']){const _0x336466=_0x1c394e&&_0x1c394e['isEmpty']?_0x1c394e:_0xc98f4;_0x26df88&&_0x26df88['type']==_0x7cfa1c+'EmptyContainer'&&_0x26df88['element']['name']==_0x336466['name']?_0x26df88['quantity']++:_0x2d4ee0['push']({'type':_0x7cfa1c+'EmptyContainer','element':_0x336466,'quantity':0x1});}else _0x2d4ee0['push']({'type':_0x7cfa1c+'Container','element':_0xc98f4});}}}}}['_resolveDescriptionItems'](_0x160b8e){const _0x2056b8=this['_locale'],_0x31f601=[],_0x5ad7fd=[],_0x64b9df=[];for(const _0x27e065 of _0x160b8e)switch(_0x27e065['type']){case'text':if(_0x27e065['add']=_0x27e065['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x27e065['remove']=_0x27e065['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x27e065['add']&&''!=_0x27e065['remove']){_0x31f601['push']({'type':'replace','content':St(_0x2056b8,'REPLACE_TEXT',['\x22'+_0x27e065['remove']+'\x22','\x22'+_0x27e065['add']+'\x22'])});continue;}if(null!=_0x27e065['add']['match'](/^ +$/)){_0x31f601['push']({'type':'insertion','content':St(_0x2056b8,'*Insert:*\x20%0',St(_0x2056b8,'ELEMENT_SPACE',_0x27e065['add']['length']))});continue;}if(null!=_0x27e065['remove']['match'](/^ +$/)){_0x31f601['push']({'type':'deletion','content':St(_0x2056b8,'*Remove:*\x20%0',St(_0x2056b8,'ELEMENT_SPACE',_0x27e065['remove']['length']))});continue;}if(''!=_0x27e065['add']){_0x31f601['push']({'type':'insertion','content':St(_0x2056b8,'*Insert:*\x20%0','\x22'+_0x27e065['add']+'\x22')});continue;}_0x31f601['push']({'type':'deletion','content':St(_0x2056b8,'*Remove:*\x20%0','\x22'+_0x27e065['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x31f601['push']({'type':'insertion','content':St(_0x2056b8,'*Insert:*\x20%0',this['getItemLabel'](_0x27e065['element'],_0x27e065['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x31f601['push']({'type':'deletion','content':St(_0x2056b8,'*Remove:*\x20%0',this['getItemLabel'](_0x27e065['element'],_0x27e065['quantity']))});continue;case'addContainer':_0x31f601['push']({'type':'insertion','content':St(_0x2056b8,'*Split:*\x20%0',this['getItemLabel'](_0x27e065['element'],_0x27e065['quantity']))});continue;case'removeContainer':_0x31f601['push']({'type':'deletion','content':St(_0x2056b8,'*Merge:*\x20%0',this['getItemLabel'](_0x27e065['element'],_0x27e065['quantity']))});continue;case'addFormat':_0x5ad7fd['push'](_0x27e065['key']);continue;case'removeFormat':_0x64b9df['push'](_0x27e065['key']);continue;default:_0x31f601['push'](_0x27e065);}if(_0x5ad7fd['length']){const _0x557a6a=_0x5ad7fd['map'](_0x1a0fa0=>this['_attributeLabels']['has'](_0x1a0fa0)?this['_attributeLabels']['get'](_0x1a0fa0):_0x1a0fa0)['join'](',\x20');_0x31f601['push']({'type':'format','content':St(this['_locale'],'*Set\x20format:*\x20%0',_0x557a6a)});}if(_0x64b9df['length']){const _0x53a97b=_0x64b9df['map'](_0x16a4fe=>this['_attributeLabels']['has'](_0x16a4fe)?this['_attributeLabels']['get'](_0x16a4fe):_0x16a4fe)['join'](',\x20');_0x31f601['push']({'type':'format','content':St(this['_locale'],'*Remove\x20format:*\x20%0',_0x53a97b)});}return _0x31f601;}['_handleCustomCallbackDescription'](_0x1f58d9){for(const _0x34c06b of this['_customCallbacks']){const _0x1e8003=_0x34c06b(_0x1f58d9);if(_0x1e8003&&'type'in _0x1e8003)return _0x1e8003;}}['_handleAttributeSuggestionDescription'](_0x54d806,_0x12ab1f){const _0x15732d=_0x12ab1f['data'],_0x53da33=void 0x0===_0x15732d['newValue']?'removeFormat':'addFormat';_0x54d806['push']({'type':_0x53da33,'key':_0x15732d['key']});}['_handleRenameSuggestionDescription'](_0x47b824,_0x67416){_0x47b824['push']({'type':'format','content':St(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x67416['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x2a188c,_0x4f2f31,_0x202f9d){if(this['_addDescriptionItems'](_0x2a188c,_0x4f2f31),_0x202f9d&&_0x202f9d['getFirstRange']()&&!_0x4f2f31['getFirstRange']()['end']['isEqual'](_0x202f9d['getFirstRange']()['start'])){const _0xad32b1=_0x2a188c[_0x2a188c['length']-0x1],_0xfd6f33='insertion'==_0x4f2f31['type']?'add':'remove';_0xad32b1&&'text'==_0xad32b1['type']&&(_0xad32b1[_0xfd6f33]+='\x0a');}}},Ot=class extends _0x1a4f44{['afterInit'](){const _0x36a745=this['editor'],_0x25ce0d=_0x36a745['plugins']['get']('TrackChangesEditing');_0x36a745['commands']['get']('showAIAssistant')&&_0x25ce0d['enableCommand']('showAIAssistant');}},wt=class extends _0x1a4f44{['afterInit'](){const _0x13764c=this['editor'],_0x57a243=_0x13764c['plugins']['get']('TrackChangesEditing');_0x13764c['commands']['get']('toggleAi')&&_0x57a243['enableCommand']('toggleAi');}},Ft=class extends _0x1a4f44{['afterInit'](){const _0x471baf=this['editor'],_0x198acc=_0x471baf['plugins']['get']('TrackChangesEditing');_0x471baf['commands']['get']('aiQuickAction')&&_0x198acc['enableCommand']('aiQuickAction');}},Bt=class extends _0x1a4f44{['afterInit'](){const _0x2f87f8=this['editor'],_0x3d2248=_0x2f87f8['locale'];if(!_0x2f87f8['plugins']['has']('AlignmentEditing'))return;const _0x72e228=_0x2f87f8['plugins']['get']('TrackChangesEditing');_0x72e228['enableDefaultAttributesIntegration']('alignment'),_0x72e228['descriptionFactory']['registerAttributeLabel']('alignment',St(_0x3d2248,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x560662=this['editor'],_0x3951ac=_0x560662['locale'];_0x560662['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2b059f=>{if('formatBlock'!=_0x2b059f['type'])return;const {data:_0x3fbeab}=_0x2b059f;if(_0x3fbeab&&'alignment'==_0x3fbeab['commandName']){const _0x3599dc=_0x3fbeab['commandParams'][0x0]['value'];return{'type':'format','content':St(_0x3951ac,'*Format:*\x20%0',function(_0x4ac658){switch(_0x4ac658){case'left':return St(_0x3951ac,'FORMAT_ALIGN_TO_LEFT');case'right':return St(_0x3951ac,'FORMAT_ALIGN_TO_RIGHT');case'center':return St(_0x3951ac,'FORMAT_ALIGN_TO_CENTER');case'justify':return St(_0x3951ac,'FORMAT_JUSTIFY_TEXT');}}(_0x3599dc))};}});}};const vt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];var Dt=class extends _0x1a4f44{['afterInit'](){const _0x5e88ba=this['editor'],_0x18042d=_0x5e88ba['plugins']['get']('TrackChangesEditing'),_0x89b73f=_0x5e88ba['locale'];for(const _0x10ff9f of vt){if(!_0x5e88ba['plugins']['has'](_0x10ff9f))continue;const _0x488377=_0x10ff9f['slice'](0x0,-0x7)['toLowerCase'](),_0x66b1b2='FORMAT_'+_0x488377['toUpperCase']();_0x18042d['enableDefaultAttributesIntegration'](_0x488377),_0x18042d['descriptionFactory']['registerAttributeLabel'](_0x488377,St(_0x89b73f,_0x66b1b2));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xc05ef7=this['editor'],_0x1da630=_0xc05ef7['locale'],_0xa5890b=_0xc05ef7['plugins']['get']('TrackChangesEditing');function _0x298612(_0x4aeb69,_0x21d97b){_0xa5890b['descriptionFactory']['registerDescriptionCallback'](_0x30a964=>{if('formatInline'!=_0x30a964['type'])return;const {data:_0x311f6d}=_0x30a964;return _0x311f6d&&_0x311f6d['commandName']===_0x4aeb69?_0x311f6d['commandParams'][0x0]['forceValue']?{'type':'format','content':St(_0x1da630,'*Format:*\x20%0',_0x21d97b)}:{'type':'format','content':St(_0x1da630,'*Remove\x20format:*\x20%0',_0x21d97b)}:void 0x0;});}_0x298612('bold',St(_0x1da630,'FORMAT_BOLD')),_0x298612('italic',St(_0x1da630,'FORMAT_ITALIC')),_0x298612('underline',St(_0x1da630,'FORMAT_UNDERLINE')),_0x298612('code',St(_0x1da630,'FORMAT_CODE')),_0x298612('strikethrough',St(_0x1da630,'FORMAT_STRIKETHROUGH')),_0x298612('subscript',St(_0x1da630,'FORMAT_SUBSCRIPT')),_0x298612('superscript',St(_0x1da630,'FORMAT_SUPERSCRIPT'));}},Ut=class extends _0x1a4f44{['afterInit'](){const _0x1953ca=this['editor'],_0x928fc6=_0x1953ca['locale'];if(!_0x1953ca['plugins']['has']('BlockQuoteEditing'))return;const _0x1c08a7=_0x1953ca['plugins']['get']('TrackChangesEditing'),_0x18bbb3=this['editor']['commands']['get']('blockQuote');_0x1c08a7['enableCommand']('blockQuote',(_0x13f23c,_0x443cc7={})=>{const _0x5807fe=this['editor']['model']['document']['selection'],_0x32dd4a=_0x443cc7&&void 0x0!==_0x443cc7['forceValue']?_0x443cc7['forceValue']:!_0x18bbb3['value'];let _0x37c3af=[];_0x37c3af=At(_0x32dd4a?Array['from'](_0x5807fe['getSelectedBlocks']())['filter'](_0xfd4658=>Pt(_0xfd4658)||function(_0x1583bd,_0x86619d){const _0x46a3e1=_0x86619d['createContext'](_0x1583bd['parent']);return!!_0x86619d['checkChild'](_0x46a3e1,'blockQuote')&&!!_0x86619d['checkChild'](_0x46a3e1['push']('blockQuote'),_0x1583bd);}(_0xfd4658,this['editor']['model']['schema'])):Array['from'](_0x5807fe['getSelectedBlocks']())['filter'](_0x51bb74=>Pt(_0x51bb74)),_0x1953ca['model']),_0x1953ca['model']['change'](()=>{for(const _0x130484 of _0x37c3af)_0x1c08a7['markBlockFormat'](_0x130484,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x32dd4a}]});});}),_0x1c08a7['descriptionFactory']['registerDescriptionCallback'](_0x25c9a9=>{const {data:_0x59c254}=_0x25c9a9;if(_0x59c254&&'blockQuote'==_0x59c254['commandName']){const _0x2a6cee=St(_0x928fc6,'ELEMENT_BLOCK_QUOTE');return _0x59c254['commandParams'][0x0]['forceValue']?{'type':'format','content':St(_0x928fc6,'*Set\x20format:*\x20%0',_0x2a6cee)}:{'type':'format','content':St(_0x928fc6,'*Remove\x20format:*\x20%0',_0x2a6cee)};}});}};function Pt(_0x1518c3){return'blockQuote'==_0x1518c3['parent']['name'];}var xt=class extends _0x1a4f44{['afterInit'](){const _0x3ffc5d=this['editor'],_0x26596f=_0x3ffc5d['locale'],_0x3ad06e=_0x3ffc5d['plugins']['get']('TrackChangesEditing');_0x3ffc5d['plugins']['has']('BookmarkEditing')&&(_0x3ad06e['enableCommand']('insertBookmark'),_0x3ad06e['enableDefaultAttributesIntegration']('updateBookmark'),_0x3ad06e['descriptionFactory']['registerDescriptionCallback'](_0xa79d3f=>{if('insertion'!=_0xa79d3f['type']&&'deletion'!=_0xa79d3f['type']&&'attribute'!=_0xa79d3f['type'])return;const _0x5a9682=_0xa79d3f['getContainedElement']();if(null==_0x5a9682)return;if(!_0x5a9682['is']('element','bookmark'))return;const _0x29bd2c=_0x5a9682['getAttribute']('bookmarkId');if('insertion'==_0xa79d3f['type'])return{'type':'insertion','content':St(_0x26596f,'*Insert:*\x20%0','\x22'+_0x29bd2c+'\x22\x20'+St(_0x26596f,'ELEMENT_BOOKMARK'))};if('deletion'==_0xa79d3f['type'])return{'type':'deletion','content':St(_0x26596f,'*Remove:*\x20%0','\x22'+_0x29bd2c+'\x22\x20'+St(_0x26596f,'ELEMENT_BOOKMARK'))};const {data:_0x2171a7}=_0xa79d3f;return _0x2171a7&&'bookmarkId'==_0x2171a7['key']?{'type':'format','content':St(_0x26596f,'*Set\x20bookmark:*\x20%0','\x22'+_0x2171a7['newValue']+'\x22')}:void 0x0;}));}},Gt=class extends _0x1a4f44{['afterInit'](){const _0x814614=this['editor'];_0x814614['plugins']['has']('CaseChange')&&(_0x814614['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x814614['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x814614['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}},Ht=class extends _0x1a4f44{['afterInit'](){const _0x49d8e2=this['editor'];_0x49d8e2['commands']['get']('ckbox')&&_0x49d8e2['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}},$t=class extends _0x1a4f44{['afterInit'](){const _0x2feb4e=this['editor'];if(!_0x2feb4e['plugins']['has']('CodeBlock'))return;const _0x3f23a8=_0x2feb4e['plugins']['get']('TrackChangesEditing'),_0x11a3ba=_0x2feb4e['locale'],_0x2baa2f=_0x2feb4e['config']['get']('codeBlock')['languages'],_0x50c75e=_0x2feb4e['commands']['get']('codeBlock');_0x3f23a8['enableCommand']('indentCodeBlock'),_0x3f23a8['enableCommand']('outdentCodeBlock'),_0x3f23a8['enableCommand']('codeBlock',(_0x89cca7,_0xc74498={})=>{const _0x54bc60=_0x2feb4e['model'],_0x1b8f2f=_0x2feb4e['model']['document']['selection'],_0x403252=_0xc74498&&void 0x0!==_0xc74498['forceValue']?_0xc74498['forceValue']:!_0x50c75e['value'];let _0x5337bb;_0xc74498['language']||(_0xc74498['language']=_0x2baa2f[0x0]['language']),_0x5337bb=_0x403252?Array['from'](_0x1b8f2f['getSelectedBlocks']())['filter'](_0x343f41=>{return Vt(_0x343f41)||(_0x2b8d0d=_0x343f41,_0x1eba41=_0x54bc60['schema'],!_0x2b8d0d['is']('rootElement')&&!_0x1eba41['isLimit'](_0x2b8d0d)&&_0x1eba41['checkChild'](_0x2b8d0d['parent'],'codeBlock'));var _0x2b8d0d,_0x1eba41;}):Array['from'](_0x1b8f2f['getSelectedBlocks']())['filter'](_0x3caed6=>Vt(_0x3caed6));const _0x181f81=At(_0x5337bb,_0x54bc60);_0x54bc60['change'](()=>{for(const _0x5b69b0 of _0x181f81)_0x3f23a8['markBlockFormat'](_0x5b69b0,{'commandName':'codeBlock','commandParams':[{..._0xc74498,'forceValue':_0x403252}],'formatGroupId':'blockName'});});}),(_0x3f23a8['descriptionFactory']['registerElementLabel']('codeBlock',_0x1a7687=>St(_0x11a3ba,'ELEMENT_CODE_BLOCK',_0x1a7687)),_0x3f23a8['descriptionFactory']['registerDescriptionCallback'](_0x3c894a=>{if('formatBlock'!=_0x3c894a['type'])return;const _0x33b8c0=_0x11a3ba['t'],{data:_0x351d35}=_0x3c894a;if(!_0x351d35||'codeBlock'!=_0x351d35['commandName'])return;const _0x1b1327=_0x351d35['commandParams'][0x0]['language'],_0x508fc5=_0x33b8c0(_0x2baa2f['find'](_0xb90217=>_0xb90217['language']===_0x1b1327)['label'])['toLowerCase']();return _0x351d35['commandParams'][0x0]['forceValue']?{'type':'format','content':St(_0x11a3ba,'*Set\x20format:*\x20%0',St(_0x11a3ba,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x508fc5+')')}:{'type':'format','content':St(_0x11a3ba,'*Remove\x20format:*\x20%0',St(_0x11a3ba,'ELEMENT_CODE_BLOCK',0x1))};}));}};function Vt(_0xed2deb){return'codeBlock'==_0xed2deb['name'];}var Wt=class extends _0x1a4f44{['afterInit'](){const _0x3dc991=this['editor'];_0x3dc991['plugins']['has']('CommentsEditing')&&_0x3dc991['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}},jt=class extends _0x1a4f44{static get['requires'](){return[ht];}['init'](){const _0x1e87d9=this['editor'],_0x44f146=_0x1e87d9['plugins']['get']('TrackChangesEditing');_0x44f146['enableCommand']('delete');const _0x82816a=_0x1e87d9['commands']['get']('deleteForward');_0x44f146['enableCommand']('deleteForward',(_0x3b4a71,_0x57d7b8={})=>{const _0x910263=_0x1e87d9['model']['createSelection'](_0x1e87d9['model']['document']['selection']);_0x910263['isCollapsed']&&_0x1e87d9['model']['modifySelection'](_0x910263,{'direction':'forward','unit':_0x57d7b8['unit']});const _0x4f31ce=_0x910263['getFirstRange'](),_0x5386fd=rt['fromRange'](_0x4f31ce);let _0x2a3bcf;_0x3b4a71(_0x57d7b8),_0x2a3bcf='$graveyard'==_0x5386fd['root']['rootName']?_0x1e87d9['model']['createRange'](_0x4f31ce['start']):_0x1e87d9['model']['createRange'](_0x5386fd['start'],_0x5386fd['end']),_0x5386fd['detach'](),_0x1e87d9['model']['enqueueChange'](_0x82816a['buffer']['batch'],_0x435a06=>{_0x82816a['buffer']['lock'](),_0x435a06['setSelection'](_0x435a06['createRange'](_0x2a3bcf['end'])),_0x82816a['buffer']['unlock']();});});}},Kt=class extends _0x1a4f44{['afterInit'](){const _0x5c1116=this['editor'];if(!_0x5c1116['plugins']['has']('ListEditing'))return;const _0x545eec=_0x5c1116['locale'],_0x211503=_0x5c1116['plugins']['get']('TrackChangesEditing'),_0x20f599=_0x5c1116['plugins']['has']('TodoListEditing'),_0x4f01ac=!!_0x5c1116['config']['get']('list.multiBlock');function _0x27c035(_0x3a386b){return{'type':'format','content':''+St(_0x545eec,'*Set\x20format:*\x20%0',_0x3a386b)};}function _0x43bba4(_0x330b9a){return{'type':'format','content':''+St(_0x545eec,'*Remove\x20format:*\x20%0',_0x330b9a)};}_0x211503['enableDefaultAttributesIntegration']('numberedList'),_0x211503['enableDefaultAttributesIntegration']('bulletedList'),_0x211503['enableDefaultAttributesIntegration']('customNumberedList'),_0x211503['enableDefaultAttributesIntegration']('customBulletedList'),_0x211503['enableDefaultAttributesIntegration']('indentList'),_0x211503['enableDefaultAttributesIntegration']('outdentList'),_0x211503['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x211503['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x4f01ac&&(_0x211503['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x211503['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x20f599&&(_0x211503['enableDefaultAttributesIntegration']('todoList'),_0x211503['enableDefaultAttributesIntegration']('checkTodoList'),_0x211503['descriptionFactory']['registerDescriptionCallback'](_0x132f87=>{const {data:_0x4b6161}=_0x132f87;if(_0x4b6161&&'todoListChecked'==_0x4b6161['key'])return{'type':'format','content':_0x4b6161['newValue']?St(_0x545eec,'*Check\x20item*'):St(_0x545eec,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x1fd764=>{if(_0x1fd764['batch']['isUndo'])return!0x1;let _0x3421ce=!0x1;const _0x3aa468=_0x211503['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x26fad8=>'todoListChecked'===_0x211503['_getAttributeKey'](_0x26fad8));for(const _0x42d1ea of _0x3aa468)'todo'!=_0x42d1ea['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x211503['_findSuggestions'](_0x42d1ea['getFirstRange'](),'attribute')['find'](_0x5e1f5b=>'listType'===_0x211503['_getAttributeKey'](_0x5e1f5b['suggestion']))||(_0x1fd764['removeMarker'](_0x42d1ea['getFirstMarker']()),_0x3421ce=!0x0));return _0x3421ce;})),_0x211503['descriptionFactory']['registerAttributeLabel']('listIndent',St(_0x545eec,'FORMAT_INDENT'));const _0xd7cd3c={'type':'format','content':''};_0x211503['descriptionFactory']['registerDescriptionCallback'](_0x4dd00a=>{const {data:_0x31b080}=_0x4dd00a;if(!_0x31b080||'listType'!=_0x31b080['key'])return;let _0x309f0f=_0x4dd00a['head'];for(;_0x309f0f;){if(_0x309f0f['data']&&(('listStyle'==_0x309f0f['data']['key']||'listMarkerStyle'==_0x309f0f['data']['key'])&&(_0x309f0f['data']['newValue']&&'default'!=_0x309f0f['data']['newValue']||'default'!=_0x309f0f['data']['oldValue']&&!_0x31b080['newValue'])||!_0x4f01ac&&'$elementName'==_0x309f0f['data']['key']))return _0xd7cd3c;_0x309f0f=_0x309f0f['next'];}if(null==_0x31b080['newValue'])switch(_0x31b080['oldValue']){case'bulleted':return _0x43bba4(St(_0x545eec,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x43bba4(St(_0x545eec,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x43bba4(St(_0x545eec,'ELEMENT_TODO_LIST'));}switch(_0x31b080['newValue']){case'bulleted':return _0x27c035(St(_0x545eec,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x27c035(St(_0x545eec,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x27c035(St(_0x545eec,'ELEMENT_TODO_LIST'));}}),_0x211503['descriptionFactory']['registerDescriptionCallback'](_0x296d7d=>{const {data:_0x26de4d}=_0x296d7d;if(_0x26de4d&&'listIndent'==_0x26de4d['key'])return null==_0x26de4d['newValue']||null==_0x26de4d['oldValue']&&0x0==_0x26de4d['newValue']?_0xd7cd3c:void 0x0;}),_0x211503['descriptionFactory']['registerDescriptionCallback'](_0x511573=>{if('attribute'!=_0x511573['type'])return;const {data:_0xb635af}=_0x511573;if(!_0xb635af||'listItemId'!=_0xb635af['key'])return;const _0x133635=zt(_0x511573);return'newValue'==_0x133635?{'type':'format','content':St(_0x545eec,'*Merge:*\x20list\x20item')}:'oldValue'==_0x133635?{'type':'format','content':St(_0x545eec,'*Split:*\x20list\x20item')}:_0xd7cd3c;}),_0x5c1116['model']['document']['registerPostFixer'](_0x15fff6=>this['listItemIdFixer'](_0x15fff6)),_0x5c1116['model']['document']['registerPostFixer'](_0x9c85ed=>this['noTrackChangesFixer'](_0x9c85ed)),_0x5c1116['model']['document']['on']('change:data',(_0x70ebf4,_0x17e44e)=>{if(_0x17e44e['isUndo']||!_0x17e44e['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0xc7ff5){if(_0xc7ff5['batch']['isUndo']||!_0xc7ff5['batch']['isLocal'])return!0x1;let _0x25d2bf=!0x1;const _0x86811=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x37f21f=>_0x37f21f['data']&&'listItemId'==_0x37f21f['data']['key'])['filter'](_0x5096b0=>_0x5096b0['data']['newValue']&&_0x5096b0['data']['oldValue']);for(const _0x410f9e of _0x86811)zt(_0x410f9e)||(_0xc7ff5['removeMarker'](_0x410f9e['getFirstMarker']()),_0x25d2bf=!0x0);return _0x25d2bf;}['noTrackChangesFixer'](_0x40cd77){if(_0x40cd77['batch']['isUndo']||!_0x40cd77['batch']['isLocal'])return!0x1;const _0x2bc8ed=this['editor']['model']['document']['differ'],_0x468ed2=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x468ed2['trackChangesCommand']['value'])return!0x1;let _0x449ccd=!0x1;const _0x55fcc6=new Set(['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes']),_0x3f4096=_0x2bc8ed['getChanges']()['filter'](_0x3414cb=>'attribute'==_0x3414cb['type'])['filter'](_0x4c9b19=>_0x55fcc6['has'](_0x4c9b19['attributeKey']));if(0x0==_0x3f4096['length'])return _0x449ccd;const _0x5a97ef=new Set(_0x2bc8ed['getMarkersToAdd']()['filter'](_0x3b100f=>{if(!_0x3b100f['name']['startsWith']('suggestion:attribute:'))return!0x1;const _0x3d6763=tt(_0x3b100f['name'])['subType']['split']('|')[0x0];return _0x55fcc6['has'](_0x3d6763);})['map'](_0x355600=>tt(_0x355600['name'])['id']));for(const _0xd287d7 of _0x3f4096){const _0x5e9a63=_0x468ed2['_findSuggestions'](_0xd287d7['range'],'attribute')['filter'](_0x35356a=>{if(_0x35356a['meta']['isNextTo'])return!0x1;if(_0x5a97ef['has'](_0x35356a['suggestion']['id']))return!0x1;const _0x4ac81a=_0x468ed2['_getAttributeKey'](_0x35356a['suggestion']);return _0x55fcc6['has'](_0x4ac81a);})['map'](_0x18904f=>_0x18904f['suggestion']);if(_0x5e9a63['length']){for(const _0x125db5 of _0x5e9a63)_0x40cd77['removeMarker'](_0x125db5['getFirstMarker']());_0x449ccd=!0x0;}}return _0x449ccd;}['assureChains'](){const _0x2e33f8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x28b249=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes'];let _0x5b2578;const _0x111bc0=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2cad73=>{if(_0x2cad73['data']['oldRange']||!_0x2cad73['data']['newRange'])return null;if(!_0x2cad73['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x47f323}=tt(_0x2cad73['name']);if(!_0x2e33f8['hasSuggestion'](_0x47f323))return null;const _0x3453c1=_0x2e33f8['getSuggestion'](_0x47f323);return _0x28b249['includes'](_0x3453c1['data']['key']);})['map'](_0x108158=>{const {id:_0x2494d0}=tt(_0x108158['name']),_0x34d8fe=_0x2e33f8['getSuggestion'](_0x2494d0);return _0x5b2578=_0x34d8fe['attributes']['groupId'],_0x34d8fe['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x111bc0['size'])return;const _0x51d87c=_0x2e33f8['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2f8bdd=>'attribute'==_0x2f8bdd['type']&&_0x2f8bdd['data']&&_0x28b249['includes'](_0x2f8bdd['data']['key'])&&_0x2f8bdd['attributes']['groupId']!=_0x5b2578)['map'](_0x194507=>({'listItem':_0x194507['getFirstRange']()['start']['nodeAfter'],'groupId':_0x194507['attributes']['groupId']})),_0x1481a2=new Set();for(const {groupId:_0x389bfa,listItem:_0x109bdc}of _0x51d87c)_0x111bc0['has'](_0x109bdc)&&_0x1481a2['add'](_0x389bfa);for(const _0x37a584 of _0x2e33f8['getSuggestions']())_0x1481a2['has'](_0x37a584['attributes']['groupId'])&&_0x37a584['setAttribute']('groupId',_0x5b2578);}['_supportLegacySuggestions'](){const _0x4deb6d=this['editor'],_0x52aae8=_0x4deb6d['locale'],_0x4bec5d=_0x4deb6d['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x4bec5d['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x110ee4,_0x54ae26){const _0x576e20=[];for(let _0x1d3e13 of _0x110ee4)_0x1d3e13['start']['nodeAfter']===_0x1d3e13['end']['parent']&&(_0x1d3e13=_0x4deb6d['model']['createRange'](_0x4deb6d['model']['createPositionAt'](_0x1d3e13['start']['nodeAfter'],0x0))),_0x576e20['push'](_0x1d3e13);_0x4deb6d['model']['change'](_0x1c25c9=>{const _0x5f19fa=_0x4deb6d['model']['document']['selection'],_0x410cb7=Array['from'](_0x5f19fa['getRanges']())['map'](_0x39159a=>rt['fromRange'](_0x39159a));_0x1c25c9['setSelection'](_0x576e20),_0x4deb6d['commands']['get'](_0x54ae26['commandName'])['refresh'](),_0x54ae26['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x4deb6d['execute'](_0x54ae26['commandName'],..._0x54ae26['commandParams']),_0x1c25c9['setSelection'](_0x410cb7);for(const _0x3682c6 of _0x410cb7)_0x3682c6['detach']();});}),_0x4bec5d['descriptionFactory']['registerElementLabel'](function(_0x4bd08d){const _0x26aa1f=!_0x4deb6d['model']['schema']['isObject'](_0x4bd08d),_0x21e4b5=_0x4bd08d['previousSibling'],_0x1a9865=_0x4bd08d['nextSibling'],_0x20d9f5=_0x4bd08d['getAttribute']('listItemId'),_0x5652ff=!_0x21e4b5||_0x21e4b5['getAttribute']('listItemId')!==_0x20d9f5,_0x421722=!_0x1a9865||_0x1a9865['getAttribute']('listItemId')!==_0x20d9f5;return _0x26aa1f&&Boolean(_0x20d9f5)&&_0x5652ff&&_0x421722;},_0x3e6fc7=>St(_0x52aae8,'ELEMENT_LIST_ITEM',_0x3e6fc7));}['_registerLegacyDescription'](){const _0x51944d=this['editor'],_0x44e2f9=_0x51944d['locale'];function _0x5adfe3(_0x3c06ed){const _0x43368f=_0x51944d['commands']['get']('bulletedList')['value'],_0x4fb8bf=_0x51944d['commands']['get']('numberedList')['value'];return'numberedList'===_0x3c06ed?_0x43368f:_0x4fb8bf;}_0x51944d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x4592e2){if('formatBlock'!=_0x4592e2['type'])return;const {data:_0x1f6387}=_0x4592e2;if(!_0x1f6387)return;let _0x173708,_0x783fd6,_0x33364b,_0x41023d;switch(_0x1f6387['commandName']){case'bulletedList':_0x33364b=_0x1f6387['commandParams'][0x0]['forceValue'],_0x41023d=_0x5adfe3(_0x1f6387['commandName']),_0x173708=_0x33364b?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x41023d&&_0x51944d['config']['get']('list.multiBlock')||(_0x173708='*Change\x20to:*\x20%0'),_0x783fd6={'type':'format','content':St(_0x44e2f9,_0x173708,St(_0x44e2f9,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x33364b=_0x1f6387['commandParams'][0x0]['forceValue'],_0x41023d=_0x5adfe3(_0x1f6387['commandName']),_0x173708=_0x33364b?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x41023d&&_0x51944d['config']['get']('list.multiBlock')||(_0x173708='*Change\x20to:*\x20%0'),_0x783fd6={'type':'format','content':St(_0x44e2f9,_0x173708,St(_0x44e2f9,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x173708='*Indent:*\x20%0',_0x783fd6={'type':'format','content':St(_0x44e2f9,_0x173708,St(_0x44e2f9,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x173708=function(_0x202783){const _0x402b5a=_0x202783['getFirstRange']();let _0x80ecc6=_0x402b5a['start']['nodeAfter'];for(;_0x80ecc6&&_0x402b5a['containsItem'](_0x80ecc6);){if(_0x80ecc6['getAttribute']('listIndent')>0x0)return!0x1;_0x80ecc6=_0x80ecc6['nextSibling'];}return!0x0;}(_0x4592e2)?St(_0x44e2f9,'*Format:*\x20remove\x20from\x20%0',St(_0x44e2f9,function(_0x371e66){return'ELEMENT_'+_0x371e66['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x4592e2))):St(_0x44e2f9,'*Outdent:*\x20%0',St(_0x44e2f9,'ELEMENT_LIST_ITEM')),_0x783fd6={'type':'format','content':_0x173708};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x1f6387['multipleBlocks']&&(_0x173708='*Merge:*\x20%0',_0x783fd6={'type':'deletion','content':St(_0x44e2f9,_0x173708,St(_0x44e2f9,'ELEMENT_LIST_ITEM'))});}return _0x783fd6;});}};function zt(_0x4d31f1){let _0x463b67=_0x4d31f1['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x463b67;){const _0xd9cd7=_0x463b67['getAttribute']('listItemId');if(!_0xd9cd7)return!0x1;if(_0xd9cd7==_0x4d31f1['data']['newValue'])return'newValue';if(_0xd9cd7==_0x4d31f1['data']['oldValue'])return'oldValue';_0x463b67=_0x463b67['previousSibling'];}return!0x1;}var Xt=class extends _0x1a4f44{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x22ef13=this['editor']['config']['get']('list.properties'),_0x3e8aee=this['editor']['plugins']['get']('TrackChangesEditing');_0x22ef13['styles']&&_0x3e8aee['enableDefaultAttributesIntegration']('listStyle'),_0x22ef13['reversed']&&_0x3e8aee['enableDefaultAttributesIntegration']('listReversed'),_0x22ef13['startIndex']&&_0x3e8aee['enableDefaultAttributesIntegration']('listStart');const _0x4ec3a4={'type':'format','content':''};_0x3e8aee['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x350e3b=this['editor']['locale'];_0x3e8aee['descriptionFactory']['registerAttributeLabel']('listReversed',St(_0x350e3b,'FORMAT_LIST_REVERSED')),_0x3e8aee['descriptionFactory']['registerDescriptionCallback'](_0x40d23a=>{const {data:_0x13ebe6}=_0x40d23a;if(_0x13ebe6&&'listReversed'==_0x13ebe6['key'])return null==_0x13ebe6['newValue']||0x0==_0x13ebe6['newValue']&&null==_0x13ebe6['oldValue']?_0x4ec3a4:void 0x0;}),_0x3e8aee['descriptionFactory']['registerAttributeLabel']('listStart',St(_0x350e3b,'FORMAT_LIST_START')),_0x3e8aee['descriptionFactory']['registerDescriptionCallback'](_0x57d605=>{const {data:_0x3013bf}=_0x57d605;if(_0x3013bf&&'listStart'==_0x3013bf['key'])return null==_0x3013bf['newValue']||0x1==_0x3013bf['newValue']&&null==_0x3013bf['oldValue']?_0x4ec3a4:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x344f80=>{if(_0x344f80['batch']['isUndo'])return!0x1;let _0xfc2e33=!0x1;const _0x331d10=_0x3e8aee['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4148ab=>{const _0x2c1a80=_0x3e8aee['_getAttributeKey'](_0x4148ab);return'listStart'==_0x2c1a80||'listReversed'==_0x2c1a80;});for(const _0x5647a2 of _0x331d10){const _0x42d9f0=_0x5647a2['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');'numbered'!=_0x42d9f0&&'customNumbered'!=_0x42d9f0&&(_0x3e8aee['_findSuggestions'](_0x5647a2['getFirstRange'](),'attribute')['find'](_0x1fce34=>'listType'==_0x3e8aee['_getAttributeKey'](_0x1fce34['suggestion']))||(_0x344f80['removeMarker'](_0x5647a2['getFirstMarker']()),_0xfc2e33=!0x0));}return _0xfc2e33;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x5bdf66){const _0x116cc1=this['editor']['locale'],{data:_0x2e3b26}=_0x5bdf66,_0x2e7ff2={'type':'format','content':''};if(!_0x2e3b26||'listStyle'!=_0x2e3b26['key'])return;if(!_0x2e3b26['oldValue'])return'default'==_0x2e3b26['newValue']?_0x2e7ff2:{'type':'format','content':''+St(_0x116cc1,'*Set\x20format:*\x20%0',St(_0x116cc1,this['_getTranslationKeyForListStyle'](_0x2e3b26['newValue'])))};if(!_0x2e3b26['newValue']){if('default'==_0x2e3b26['oldValue'])return _0x2e7ff2;let _0x577305=_0x5bdf66['head'];for(;_0x577305;){if(_0x577305['data']&&'listType'==_0x577305['data']['key']&&_0x577305['data']['newValue'])return _0x2e7ff2;_0x577305=_0x577305['next'];}return{'type':'format','content':''+St(_0x116cc1,'*Remove\x20format:*\x20%0',St(_0x116cc1,this['_getTranslationKeyForListStyle'](_0x2e3b26['oldValue'])))};}if('default'!=_0x2e3b26['newValue'])return{'type':'format','content':''+St(_0x116cc1,'*Set\x20format:*\x20%0',St(_0x116cc1,this['_getTranslationKeyForListStyle'](_0x2e3b26['newValue'])))};let _0x321d52=_0x5bdf66['head'];for(;_0x321d52;){if(_0x321d52['data']&&'listType'==_0x321d52['data']['key']&&_0x321d52['data']['newValue']&&_0x321d52['data']['oldValue'])return _0x2e7ff2;_0x321d52=_0x321d52['next'];}return{'type':'format','content':St(_0x116cc1,'*Set\x20format:*\x20%0',St(_0x116cc1,'ELEMENT_'+_0x5bdf66['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x194890=this['editor'],_0x138547=_0x194890['locale'];_0x194890['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x178206=>{if('formatBlock'!=_0x178206['type'])return;const {data:_0xa6466}=_0x178206;if(!_0xa6466)return;let _0x4d680e,_0x3ee03c;switch(_0xa6466['commandName']){case'listStyle':_0x4d680e='*Change\x20to:*\x20%0',_0x3ee03c={'type':'format','content':St(_0x138547,_0x4d680e,St(_0x138547,this['_getTranslationKeyForListStyle'](_0xa6466['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4d680e=_0xa6466['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3ee03c={'type':'format','content':St(_0x138547,_0x4d680e)};break;case'listStart':_0x4d680e='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3ee03c={'type':'format','content':St(_0x138547,_0x4d680e,_0xa6466['commandParams'][0x0]['startIndex'])};}return _0x3ee03c;});}['_getTranslationKeyForListStyle'](_0x1c1e44){return'ELEMENT_'+(_0x1e6f63=_0x1c1e44,qt['includes'](_0x1e6f63)?'bulleted':Yt['includes'](_0x1e6f63)?'numbered':null)['toUpperCase']()+'_LIST_'+_0x1c1e44['toUpperCase']()['replace'](/-/g,'_');var _0x1e6f63;}};const qt=['disc','circle','square'],Yt=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];var Qt=class extends _0x1a4f44{['afterInit'](){const _0x3b5a64=this['editor'];_0x3b5a64['commands']['get']('emoji')&&_0x3b5a64['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}},Zt=class extends _0x1a4f44{static get['requires'](){return[ft];}['init'](){const _0x18036f=this['editor'],_0x176050=_0x18036f['plugins']['get']('TrackChangesEditing'),_0x2300dd=_0x18036f['commands']['get']('enter');_0x176050['enableCommand']('enter',()=>{_0x18036f['model']['change'](_0x1f1f4a=>{const _0x85c50f=_0x18036f['model']['document']['selection'],_0x3dbd28=_0x85c50f['getFirstPosition'](),_0x4b2846=rt['fromRange'](_0x85c50f['getFirstRange']());if(_0x2300dd['enterBlock'](_0x1f1f4a)){const _0xe4c5cd=_0x18036f['model']['createPositionAt'](_0x3dbd28['parent']['nextSibling'],0x0),_0x36b30e=_0x1f1f4a['createRange'](_0x3dbd28,_0xe4c5cd);_0x176050['markInsertion'](_0x36b30e);}else _0x1f1f4a['setSelection'](_0x1f1f4a['createRange'](_0x4b2846['end']));_0x4b2846['detach'](),_0x2300dd['fire']('afterExecute',{'writer':_0x1f1f4a});});});}},Jt=class extends _0x1a4f44{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x556982=this['editor']['plugins']['get']('TrackChangesEditing');_0x556982['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x556982['enableCommand']('findNext'),_0x556982['enableCommand']('findPrevious'),_0x556982['enableCommand']('replace'),_0x556982['enableCommand']('replaceAll');}['handleFindCommand'](_0x5798d7,_0xbae020,_0x4cb7bc={}){const _0x51c8c7=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x5798d7(_0x5c6316=>{let _0x25d343=('string'==typeof _0xbae020?_0x51c8c7['findByTextCallback'](_0xbae020,_0x4cb7bc):_0xbae020)(_0x5c6316);Array['isArray'](_0x25d343)&&(_0x25d343={'results':_0x25d343,'searchText':'string'==typeof _0xbae020?_0xbae020:''});const _0x500d4f=_0x25d343['results']['filter'](_0x57fb0c=>!0x1===this['_isInDeletionRange'](_0x57fb0c,_0x5c6316['item']));return{..._0x25d343,'results':_0x500d4f};},_0x4cb7bc);}['_isInDeletionRange'](_0x1e083f,_0x4f513e){const _0x4615e8=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4f513e,_0x1e083f['start']),this['editor']['model']['createPositionAt'](_0x4f513e,_0x1e083f['end']));for(const _0x2971bf of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x4615e8['getIntersection'](_0x2971bf['getRange']()))return!0x0;return!0x1;}};const te=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];var ee=class extends _0x1a4f44{['afterInit'](){const _0x3b2402=this['editor']['locale'],_0x4cdfd1=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x3667d5,commandName:_0x12609a}of te)this['editor']['plugins']['has'](_0x3667d5)&&_0x4cdfd1['enableDefaultAttributesIntegration'](_0x12609a);_0x4cdfd1['descriptionFactory']['registerAttributeLabel']('fontSize',St(_0x3b2402,'FORMAT_FONT_SIZE')),_0x4cdfd1['descriptionFactory']['registerAttributeLabel']('fontFamily',St(_0x3b2402,'FORMAT_FONT_FAMILY')),_0x4cdfd1['descriptionFactory']['registerAttributeLabel']('fontColor',St(_0x3b2402,'FORMAT_FONT_COLOR')),_0x4cdfd1['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',St(_0x3b2402,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xcf65d8=this['editor'],_0x292e6b=_0xcf65d8['locale'];_0xcf65d8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x59defc=>{const _0xfefdf8=_0x292e6b['t'];if('formatInline'!=_0x59defc['type'])return;const {data:_0xda8967}=_0x59defc;if(null!=_0xda8967){if('fontSize'==_0xda8967['commandName']){const _0x451557=_0xda8967['commandParams'][0x0]['value'];if(_0x451557){const _0x11766d=this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x165610=>_0x165610['model']==_0x451557)['title'];return{'type':'format','content':St(_0x292e6b,'*Set\x20font\x20size:*\x20%0',_0xfefdf8(_0x11766d)['toLowerCase']())};}return{'type':'format','content':St(_0x292e6b,'*Reset\x20font\x20size*')};}if('fontFamily'==_0xda8967['commandName']){const _0x3b47b9=_0xda8967['commandParams'][0x0]['value'];return _0x3b47b9?{'type':'format','content':St(_0x292e6b,'*Set\x20font\x20family:*\x20%0',_0x3b47b9)}:{'type':'format','content':St(_0x292e6b,'*Reset\x20font\x20family*')};}if('fontColor'==_0xda8967['commandName']){const _0x3b1a43=_0xda8967['commandParams'][0x0]['value'];if(_0x3b1a43){const _0x4d3697=_0x4be3a7(this['editor']['config']['get']('fontColor.colors'))['find'](_0x6ef41=>_0x6ef41['model']==_0x3b1a43);let _0x1309ee=_0x3b1a43,_0x1aecae='';return _0x4d3697&&(_0x1309ee=_0x4d3697['label'],_0x1aecae=_0xfefdf8(_0x1309ee)['toLowerCase']()),{'type':'format','content':St(_0x292e6b,'*Set\x20font\x20color:*\x20%0',_0x1aecae)['trim'](),'color':{'value':_0x3b1a43,'title':_0x1aecae||_0x1309ee}};}return{'type':'format','content':St(_0x292e6b,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0xda8967['commandName']){const _0x5e9d71=_0xda8967['commandParams'][0x0]['value'];if(_0x5e9d71){const _0x9e8891=_0x4be3a7(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x559acd=>_0x559acd['model']==_0x5e9d71);let _0x5581c2=_0x5e9d71,_0x3d6de4='';return _0x9e8891&&(_0x5581c2=_0x9e8891['label'],_0x3d6de4=_0xfefdf8(_0x5581c2)['toLowerCase']()),{'type':'format','content':St(_0x292e6b,'*Set\x20font\x20background\x20color:*\x20%0',_0x3d6de4)['trim'](),'color':{'value':_0x5e9d71,'title':_0x3d6de4||_0x5581c2}};}return{'type':'format','content':St(_0x292e6b,'*Reset\x20font\x20background\x20color*')};}}});}},ne=class extends _0x1a4f44{['afterInit'](){const {plugins:_0x2a299e}=this['editor'];_0x2a299e['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x2a299e['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x2448fb,plugins:_0x531a69,commands:_0x3cc675}=this['editor'],_0x41dbd0=_0x531a69['get']('TrackChangesEditing');_0x3cc675['get']('footnotesStyle')&&_0x41dbd0['enableDefaultAttributesIntegration']('footnotesStyle'),_0x3cc675['get']('footnotesStart')&&_0x41dbd0['enableDefaultAttributesIntegration']('footnotesStart'),_0x41dbd0['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',St(_0x2448fb,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x41dbd0['descriptionFactory']['registerAttributeLabel']('footnotesListStart',St(_0x2448fb,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x409f71=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x8a7b49,commands:_0x518a27}=this['editor'];_0x518a27['get']('insertFootnote')&&_0x409f71['enableCommand']('insertFootnote'),_0x409f71['descriptionFactory']['registerElementLabel']('footnoteRef',_0x39154d=>St(_0x8a7b49,'ELEMENT_FOOTNOTE_REF',_0x39154d)),_0x409f71['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x3b162d=>St(_0x8a7b49,'ELEMENT_FOOTNOTE_DEFINITION',_0x3b162d)),_0x409f71['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x39e577=>St(_0x8a7b49,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x39e577));}},ie=class extends _0x1a4f44{['afterInit'](){const _0x2f7d9b=this['editor'],_0x5a707b=_0x2f7d9b['plugins']['get']('TrackChangesEditing'),_0x17ad4a=_0x2f7d9b['commands']['get']('copyFormat'),_0x4c9ba2=_0x2f7d9b['commands']['get']('pasteFormat');_0x17ad4a&&_0x4c9ba2&&(_0x5a707b['enableDefaultAttributesIntegration']('pasteFormat'),_0x5a707b['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x2df205=this['editor'],_0x4c96ff=_0x2df205['locale'];_0x2df205['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x184707=>{if('formatBlock'!=_0x184707['type']&&'formatInline'!=_0x184707['type'])return;const {data:_0x5630c3}=_0x184707;if(_0x5630c3&&'pasteFormat'===_0x5630c3['commandName']){const _0x18083c=[],_0x36195a=_0x5630c3['commandParams'][0x0];for(const [_0x10c415,_0xf73450]of Object['entries'](_0x36195a))_0x18083c['push'](se(_0x2df205,_0x10c415,_0xf73450));return _0x18083c['length']?{'type':'format','content':St(_0x4c96ff,'*Set\x20format\x20to:*\x20%0',_0x18083c['join'](',\x20'))}:{'type':'format','content':St(_0x4c96ff,'*Remove\x20all\x20formatting*')};}});}};function se(_0x495906,_0x2c4cec,_0x56d0eb){const _0x314b53=_0x495906['locale']['t'],_0x9e7e90=_0x2c4cec['split'](/(?=[A-Z])/)['join']('\x20'),_0x16641f=_0x314b53(_0x9e7e90['charAt'](0x0)['toUpperCase']()+_0x9e7e90['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x56d0eb)return _0x16641f;if('fontColor'===_0x2c4cec||'fontBackgroundColor'===_0x2c4cec){const _0x16ab67=_0x4be3a7(_0x495906['config']['get']('fontColor.colors'))['find'](_0x214b9c=>_0x214b9c['model']==_0x56d0eb);return _0x16641f+'\x20('+(_0x16ab67?_0x314b53(_0x16ab67['label'])['toLowerCase']():_0x56d0eb)+')';}if('fontSize'===_0x2c4cec&&isNaN(parseFloat(_0x56d0eb))){const _0xcb64e2=_0x495906['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x495906['config']['get']('fontSize.options'))['find'](_0xd688f8=>_0xd688f8['model']==_0x56d0eb);return _0x16641f+'\x20('+(_0xcb64e2?_0x314b53(_0xcb64e2['title'])['toLowerCase']():_0x56d0eb)+')';}return _0x16641f+'\x20('+_0x56d0eb+')';}var re=class extends _0x1a4f44{['afterInit'](){const _0x3085a9=this['editor'];if(!_0x3085a9['plugins']['has']('GeneralHtmlSupport')||!_0x3085a9['plugins']['has']('DataSchema'))return;const _0x58b4f0=_0x3085a9['plugins']['get']('TrackChangesEditing'),_0x3c51f1=_0x3085a9['plugins']['get']('GeneralHtmlSupport'),_0x1be63f=_0x3085a9['plugins']['get']('DataSchema'),_0x41d10b=_0x3085a9['locale'],_0x5439a8=new Set(['htmlContent']);for(const _0x392590 of _0x1be63f['getDefinitionsForView'](/.*/,!0x1)){const _0x90954a=_0x392590['view'],_0x53c877=_0x3c51f1['getGhsAttributeNameForElement'](_0x90954a);_0x5439a8['add'](_0x53c877),!_0x392590['isInline']||_0x392590['isObject']||'appliesToBlock'in _0x392590&&_0x392590['appliesToBlock']||_0x58b4f0['descriptionFactory']['registerAttributeLabel'](_0x53c877,_0x90954a),_0x392590['model']['startsWith']('html')&&_0x58b4f0['descriptionFactory']['registerElementLabel'](_0x392590['model'],_0x1ba201=>St(_0x41d10b,'ELEMENT_HTML_TAG',[_0x1ba201,_0x90954a]));}_0x58b4f0['descriptionFactory']['registerAttributeLabel']('htmlContent',St(_0x41d10b,'FORMAT_RAW_HTML_CONTENT')),_0x58b4f0['descriptionFactory']['registerAttributeLabel']('htmlLiAttributes',St(_0x41d10b,'FORMAT_HTML_LIST_ITEM')),_0x58b4f0['descriptionFactory']['registerAttributeLabel']('htmlUlAttributes',St(_0x41d10b,'FORMAT_HTML_BULLETED_LIST')),_0x58b4f0['descriptionFactory']['registerAttributeLabel']('htmlOlAttributes',St(_0x41d10b,'FORMAT_HTML_NUMBERED_LIST')),_0x58b4f0['descriptionFactory']['registerDescriptionCallback'](_0x37b9a7=>{if('attribute'!==_0x37b9a7['type'])return;const _0x230225=_0x37b9a7['data'];if(!_0x230225||!_0x5439a8['has'](_0x230225['key']))return;if('htmlContent'===_0x230225['key'])return{'type':'format','content':St(_0x41d10b,'*Change\x20%0\x20content*',St(_0x41d10b,'ELEMENT_RAW_HTML'))};const {setItems:_0x400345,removeItems:_0x2853}=function(_0x20b12d,_0x130677,_0x69820e){const _0x20e5c5=[],_0x3a93a4=[],_0xe10dea=_0x20b12d['styles']??{},_0x221caf=_0x130677['styles']??{};for(const _0x3a9969 of new Set([...Object['keys'](_0xe10dea),...Object['keys'](_0x221caf)]))_0xe10dea[_0x3a9969]!==_0x221caf[_0x3a9969]&&(void 0x0===_0x221caf[_0x3a9969]?_0x3a93a4['push'](_0x3a9969):_0x20e5c5['push'](_0x3a9969+'\x20('+_0x221caf[_0x3a9969]+')'));const _0x1a5463=St(_0x69820e,'FORMAT_HTML_CLASS'),_0x387235=new Set(_0x20b12d['classes']??[]),_0x26feb1=new Set(_0x130677['classes']??[]),_0x51d943=[..._0x26feb1]['some'](_0x1f9765=>!_0x387235['has'](_0x1f9765)),_0x2945ac=[..._0x387235]['some'](_0x272efc=>!_0x26feb1['has'](_0x272efc));_0x51d943&&_0x20e5c5['push'](_0x1a5463),_0x2945ac&&_0x3a93a4['push'](_0x1a5463);const _0xa36f39=St(_0x69820e,'FORMAT_HTML_ATTRIBUTE'),_0x4b7743=_0x20b12d['attributes']??{},_0x8e9c3e=_0x130677['attributes']??{};let _0x21cecb=!0x1,_0x59eee3=!0x1;for(const _0x21c7e8 of new Set([...Object['keys'](_0x4b7743),...Object['keys'](_0x8e9c3e)]))_0x4b7743[_0x21c7e8]!==_0x8e9c3e[_0x21c7e8]&&(void 0x0===_0x8e9c3e[_0x21c7e8]?_0x59eee3=!0x0:_0x21cecb=!0x0);return _0x21cecb&&_0x20e5c5['push'](_0xa36f39),_0x59eee3&&_0x3a93a4['push'](_0xa36f39),{'setItems':_0x20e5c5,'removeItems':_0x3a93a4};}(_0x230225['oldValue']??{},_0x230225['newValue']??{},_0x41d10b);if(!_0x400345['length']&&!_0x2853['length'])return;const _0x50ca6c=[];return _0x400345['length']&&_0x50ca6c['push'](St(_0x41d10b,'*Set\x20format:*\x20%0',_0x400345['join'](',\x20'))),_0x2853['length']&&_0x50ca6c['push'](St(_0x41d10b,'*Remove\x20format:*\x20%0',_0x2853['join'](',\x20'))),{'type':'format','content':_0x50ca6c['join']('\x0a')};});}},oe=class extends _0x1a4f44{['_headingOptions'];['afterInit'](){const _0x37eb68=this['editor'];if(!_0x37eb68['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x37eb68['config']['get']('heading.options');const _0x412c29=_0x37eb68['locale'],_0x5c8edd=_0x37eb68['plugins']['get']('TrackChangesEditing');_0x5c8edd['enableDefaultAttributesIntegration']('heading');for(const _0x84eb8 of this['_headingOptions'])'paragraph'!=_0x84eb8['model']&&_0x5c8edd['descriptionFactory']['registerElementLabel'](_0x84eb8['model'],_0x5dbddb=>{const _0x57de8c=this['_getHeadingLevel'](_0x84eb8['model']);return null!==_0x57de8c?_0x48e5c7(_0x5dbddb,_0x57de8c):_0x1f9ff5(_0x5dbddb,_0x84eb8['title']);});function _0x48e5c7(_0x58800b,_0x5298de){return St(_0x412c29,'ELEMENT_HEADING',[_0x58800b,_0x5298de]);}function _0x1f9ff5(_0xbec091,_0x35585f){return St(_0x412c29,'ELEMENT_HEADING_CUSTOM',[_0xbec091,_0x35585f]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2470cc=this['editor'],_0x3d63e1=_0x2470cc['locale'];function _0x4cf17a(_0x5a284c,_0x465f81){return St(_0x3d63e1,'ELEMENT_HEADING_CUSTOM',[_0x5a284c,_0x465f81]);}_0x2470cc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5be798=>{if('formatBlock'!=_0x5be798['type'])return;const {data:_0x25028a}=_0x5be798;if(_0x25028a&&'heading'==_0x25028a['commandName']){const _0x51d3a4=_0x25028a['commandParams'][0x0]['value'],_0x4c12f0=this['_getHeadingLevel'](_0x51d3a4);if(null!==_0x4c12f0)return{'type':'format','content':St(_0x3d63e1,'*Change\x20to:*\x20%0',(_0x2eb86b=0x1,_0x499c53=_0x4c12f0,St(_0x3d63e1,'ELEMENT_HEADING',[_0x2eb86b,_0x499c53])))};const _0x44c852=this['_headingOptions']['find'](_0x4b407f=>_0x4b407f['model']===_0x51d3a4)['title'];return{'type':'format','content':St(_0x3d63e1,'*Change\x20to:*\x20%0',_0x4cf17a(0x1,_0x44c852))};}var _0x2eb86b,_0x499c53;});}['_getHeadingLevel'](_0x3588e6){const _0x5ddbe4=_0x3588e6['match'](/^heading(\d+)/);if(_0x5ddbe4)return _0x5ddbe4[0x1];const _0x467c5b=this['_headingOptions']?.['find'](_0x112d27=>_0x112d27['model']==_0x3588e6);if(_0x467c5b&&_0x467c5b['view']){const _0x54970f=_0x467c5b['view'],_0x50ebf7=(_0x54970f['name']??_0x54970f)['match'](/^h(\d+)/);if(_0x50ebf7)return _0x50ebf7[0x1];}return null;}},ae=class extends _0x1a4f44{['afterInit'](){const _0x4f8406=this['editor'];if(!_0x4f8406['plugins']['has']('HighlightEditing'))return;const _0xef7705=_0x4f8406['plugins']['get']('TrackChangesEditing'),_0x3bb155=_0x4f8406['locale'];_0xef7705['enableDefaultAttributesIntegration']('highlight'),_0xef7705['descriptionFactory']['registerAttributeLabel']('highlight',St(_0x3bb155,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x10ce5d=this['editor'],_0x5b34e7=_0x10ce5d['locale'];_0x10ce5d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x18f720=>{if('formatInline'!=_0x18f720['type'])return;const {data:_0x413e85}=_0x18f720;if(_0x413e85&&'highlight'==_0x413e85['commandName']){const _0x1b928b=_0x5b34e7['t'],_0x1eaafb=_0x413e85['commandParams'][0x0]['value'];if(_0x1eaafb){const _0x3a96c3=_0x10ce5d['config']['get']('highlight.options')['find'](_0xd2b2ec=>_0xd2b2ec['model']==_0x1eaafb);return{'type':'format','content':St(_0x5b34e7,'*Set\x20highlight:*\x20%0',_0x1b928b(_0x3a96c3['title'])['toLowerCase']()),'color':{'value':_0x3a96c3['color'],'title':_0x3a96c3['title']}};}return{'type':'format','content':St(_0x5b34e7,'*Remove\x20highlight*',St(_0x5b34e7,'FORMAT_HIGHLIGHT'))};}});}},ce=class extends _0x1a4f44{['afterInit'](){const _0x433b6a=this['editor'];if(!_0x433b6a['plugins']['has']('HorizontalLineEditing'))return;_0x433b6a['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x284e27=_0x433b6a['plugins']['get']('TrackChangesEditing'),_0x281265=_0x433b6a['locale'];_0x284e27['descriptionFactory']['registerElementLabel']('horizontalLine',_0x59e32b=>St(_0x281265,'ELEMENT_HORIZONTAL_LINE',_0x59e32b));}},le=class extends _0x1a4f44{['afterInit'](){const _0x2c7f27=this['editor'];if(!_0x2c7f27['plugins']['has']('HtmlEmbed'))return;const _0x6c7697=_0x2c7f27['plugins']['get']('TrackChangesEditing'),_0x46d065=_0x2c7f27['locale'];_0x6c7697['descriptionFactory']['registerElementLabel']('rawHtml',_0x640eb2=>St(_0x46d065,'ELEMENT_HTML_EMBED',_0x640eb2)),_0x6c7697['enableDefaultAttributesIntegration']('htmlEmbed'),_0x6c7697['descriptionFactory']['registerDescriptionCallback'](_0x338145=>{if('attribute'!=_0x338145['type'])return;const {data:_0x9b84af}=_0x338145;return _0x9b84af&&'value'==_0x9b84af['key']&&_0x338145['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')?{'type':'format','content':St(_0x46d065,'*Change\x20%0\x20content*',St(_0x46d065,'ELEMENT_HTML_EMBED'))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x36e40f=this['editor'],_0xa73a0b=_0x36e40f['locale'];_0x36e40f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ba733=>{if('formatBlock'!=_0x4ba733['type'])return;const {data:_0x13247b}=_0x4ba733;return _0x13247b&&'htmlEmbed'==_0x13247b['commandName']?{'type':'format','content':St(_0xa73a0b,'*Change\x20%0\x20content*',St(_0xa73a0b,'ELEMENT_HTML_EMBED'))}:void 0x0;});}},ue=class extends _0x1a4f44{['afterInit'](){const _0x47f55d=this['editor'];if(!_0x47f55d['plugins']['has']('ImageEditing'))return;const _0x1f973d=_0x47f55d['plugins']['get']('TrackChangesEditing'),_0x1ce3bd=_0x47f55d['plugins']['get']('ImageUtils'),_0x4a0501=_0x47f55d['locale'];_0x1f973d['enableCommand']('insertImage'),_0x1f973d['descriptionFactory']['registerElementLabel']('imageBlock',_0x3a3cdf=>St(_0x4a0501,'ELEMENT_IMAGE',_0x3a3cdf)),_0x1f973d['descriptionFactory']['registerElementLabel']('imageInline',_0x426af0=>St(_0x4a0501,'ELEMENT_INLINE_IMAGE',_0x426af0)),_0x1f973d['descriptionFactory']['registerElementLabel']('caption',()=>St(_0x4a0501,'ELEMENT_CAPTION')),_0x47f55d['plugins']['has']('ImageUploadEditing')&&_0x1f973d['enableCommand']('uploadImage'),_0x47f55d['plugins']['has']('ImageBlockEditing')&&_0x47f55d['plugins']['has']('ImageInlineEditing')&&(_0x1f973d['enableCommand']('imageTypeInline',(_0x4feabb,_0x4318f7)=>{const _0x9dfebf=_0x1ce3bd['getClosestSelectedImageElement'](_0x47f55d['model']['document']['selection']);_0x47f55d['model']['change'](()=>{_0x1f973d['markBlockFormat'](_0x9dfebf,{'commandName':'imageTypeInline','commandParams':[_0x4318f7]},[],'convertBlockImageToInline');});}),_0x1f973d['enableCommand']('imageTypeBlock',(_0x3cd015,_0x814c0e)=>{_0x47f55d['model']['change'](_0x52cc5c=>{let _0x319d16=_0x1ce3bd['getClosestSelectedImageElement'](_0x47f55d['model']['document']['selection']),_0x4c7acb=_0x52cc5c['createRangeOn'](_0x319d16);const _0x18be7d=st['fromPosition'](_0x4c7acb['start'],'toPrevious'),_0xc740fb=st['fromPosition'](_0x4c7acb['end'],'toNext');_0x1f973d['forceDefaultExecution'](()=>_0x3cd015(_0x814c0e)),_0x319d16=_0x1ce3bd['getClosestSelectedImageElement'](_0x47f55d['model']['document']['selection']),_0x4c7acb=_0x52cc5c['createRangeOn'](_0x319d16);const _0x1e8fd6=_0x52cc5c['createRange'](_0x18be7d,_0xc740fb);_0x18be7d['detach'](),_0xc740fb['detach'](),_0x1f973d['markBlockFormat'](_0x319d16,{'commandName':'imageTypeInline','commandParams':[_0x814c0e]},[],'convertInlineImageToBlock'),_0x1e8fd6['start']['isBefore'](_0x4c7acb['start'])&&_0x1f973d['markInsertion'](_0x52cc5c['createRange'](_0x1e8fd6['start'],_0x4c7acb['start']),'convertInlineImageToBlock'),_0x4c7acb['end']['isBefore'](_0x1e8fd6['end'])&&_0x1f973d['markInsertion'](_0x52cc5c['createRange'](_0x4c7acb['end'],_0x1e8fd6['end']),'convertInlineImageToBlock');});}),_0x1f973d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x1f973d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x1f973d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x1f973d['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x1f973d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x1f973d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x50556e])=>{const _0x100574=_0x1f973d['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x4ff1e6=_0x50556e['start'],_0x49be59=_0x50556e['end'];const _0x5beda6=_0x47f55d['model']['schema']['getNearestSelectionRange'](_0x4ff1e6,'backward'),_0x4e1207=_0x47f55d['model']['schema']['getNearestSelectionRange'](_0x49be59,'forward');_0x5beda6['isCollapsed']&&(_0x4ff1e6=_0x5beda6['start']),_0x4e1207['isCollapsed']&&(_0x49be59=_0x4e1207['end']),_0x100574([_0x47f55d['model']['createRange'](_0x4ff1e6,_0x49be59)]);}),_0x1f973d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x2c72f4),_0x1f973d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x2c72f4)),_0x47f55d['plugins']['has']('ImageCaptionEditing')&&(_0x1f973d['enableCommand']('toggleImageCaption',(_0x281348,_0x129eb2)=>{const _0x22aebd=_0x47f55d['plugins']['get']('ImageCaptionUtils');let _0x217681=_0x1ce3bd['getClosestSelectedImageElement'](_0x47f55d['model']['document']['selection']),_0xb9bfaa=_0x22aebd['getCaptionFromImageModelElement'](_0x217681);_0x47f55d['model']['change'](()=>{if(_0xb9bfaa)return void _0x1f973d['markDeletion'](_0x47f55d['model']['createRangeOn'](_0xb9bfaa));const _0x2e5d07=_0x1ce3bd['isBlockImage'](_0x217681);_0x281348(_0x129eb2),_0x217681=_0x1ce3bd['getClosestSelectedImageElement'](_0x47f55d['model']['document']['selection']),_0xb9bfaa=_0x22aebd['getCaptionFromImageModelElement'](_0x217681),_0x1f973d['markInsertion'](_0x47f55d['model']['createRangeOn'](_0xb9bfaa),_0x2e5d07?null:'imageCaption');});}),_0x1f973d['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x2c72f4));const _0x41bd22=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3ff9e1(_0x5bfdb0,_0x4b1a59){const _0x1999b2=_0x41bd22['findIndex'](({type:_0x347f31,subType:_0x3097f2})=>_0x5bfdb0['type']==_0x347f31&&_0x5bfdb0['subType']==_0x3097f2),_0x1e4e05=_0x41bd22['findIndex'](({type:_0x27dd75,subType:_0x29ce2f})=>_0x4b1a59['type']==_0x27dd75&&_0x4b1a59['subType']==_0x29ce2f);if(_0x1999b2<0x0||_0x1e4e05<0x0)return!0x1;const _0x11f1c8=_0x5bfdb0['getFirstRange'](),_0x105042=_0x4b1a59['getFirstRange']();if((0x0==_0x1999b2||0x1==_0x1999b2)&&0x2==_0x1e4e05&&_0x11f1c8['isIntersecting'](_0x105042))return!0x0;if(0x2==_0x1999b2&&0x3==_0x1e4e05){const _0x185df2=_0x1f973d['_findSuggestions'](_0x11f1c8,'insertion')['filter'](({suggestion:_0x5031df,meta:_0x4772c5})=>_0x4772c5['isOwn']&&'convertInlineImageToBlock'==_0x5031df['subType']);if(_0x185df2['length']>0x1&&_0x105042['end']['isEqual'](_0x11f1c8['start']))return!0x0;if(0x1==_0x185df2['length']&&(_0x11f1c8['start']['isEqual'](_0x105042['end'])||_0x11f1c8['end']['isEqual'](_0x105042['start'])))return!0x0;}if(0x3==_0x1999b2&&0x3==_0x1e4e05&&_0x11f1c8['start']['isBefore'](_0x105042['start'])){const _0xec23c8=_0x11f1c8['end']['nodeAfter'],_0x12eef0=_0x105042['start']['nodeBefore'];return _0x1ce3bd['isBlockImage'](_0xec23c8)&&_0xec23c8===_0x12eef0;}return!0x1;}function _0x2c72f4(_0x4388fa,_0x1fa79c){return _0x3ff9e1(_0x4388fa,_0x1fa79c)?[_0x4388fa,_0x1fa79c]:_0x3ff9e1(_0x1fa79c,_0x4388fa)?[_0x1fa79c,_0x4388fa]:null;}_0x47f55d['plugins']['has']('ImageResize')&&(_0x1f973d['enableDefaultAttributesIntegration']('resizeImage'),_0x1f973d['descriptionFactory']['registerAttributeLabel']('resizedWidth',St(_0x4a0501,'FORMAT_IMAGE_SIZE'))),_0x47f55d['plugins']['has']('ImageTextAlternativeEditing')&&_0x1f973d['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x47f55d['plugins']['has']('PictureEditing')&&_0x1f973d['descriptionFactory']['registerDescriptionCallback'](_0x1930ab=>{if('attribute'!=_0x1930ab['type'])return;const {data:_0x5f41b3}=_0x1930ab;return _0x5f41b3&&'sources'==_0x5f41b3['key']?{'type':'format','content':''}:void 0x0;}),_0x47f55d['plugins']['has']('ImageSizeAttributes')&&_0x1f973d['descriptionFactory']['registerDescriptionCallback'](_0x467e6e=>{if('attribute'!=_0x467e6e['type'])return;const {data:_0x415888}=_0x467e6e;return!_0x415888||'width'!=_0x415888['key']&&'height'!=_0x415888['key']?void 0x0:{'type':'format','content':''};}),_0x1f973d['descriptionFactory']['registerDescriptionCallback'](_0x144cd3=>{if(_0x41bd22['find'](({type:_0x5da897,subType:_0x1b0406})=>_0x144cd3['type']==_0x5da897&&_0x144cd3['subType']==_0x1b0406))return _0x144cd3['previous']?{}:void 0x0;}),_0x1f973d['descriptionFactory']['registerDescriptionCallback'](_0xa86942=>{if('insertion'==_0xa86942['type']||'deletion'==_0xa86942['type']){const _0x3f6db9=_0xa86942['getContainedElement']();if(_0x3f6db9&&_0x3f6db9['is']('element','caption'))return{'type':'insertion'==_0xa86942['type']?'addObject':'removeObject','element':_0x3f6db9,'quantity':0x1};}}),_0x1f973d['descriptionFactory']['registerDescriptionCallback'](_0x30ee59=>'formatBlock'==_0x30ee59['type']&&'convertInlineImageToBlock'==_0x30ee59['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x30ee59['type']&&'convertBlockImageToInline'==_0x30ee59['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x1f973d['descriptionFactory']['registerDescriptionCallback'](_0x4b9806=>{if('attribute'!=_0x4b9806['type'])return;const {data:_0x48d5ba}=_0x4b9806;if(!_0x48d5ba||'alt'!=_0x48d5ba['key'])return;const _0x2c66d3=_0x48d5ba['newValue'];return _0x2c66d3?{'type':'format','content':St(_0x4a0501,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2c66d3+'\x22')}:{'type':'format','content':St(_0x4a0501,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x576ff3=this['editor'],_0x512d5f=_0x576ff3['locale'];_0x576ff3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xac2524=>{if('formatBlock'!=_0xac2524['type']&&'formatInline'!=_0xac2524['type'])return;const {data:_0x1f3146}=_0xac2524;if(_0x1f3146){if('imageTextAlternative'==_0x1f3146['commandName']){const _0xae9ed6=_0x1f3146['commandParams'][0x0]['newValue'];return _0xae9ed6?{'type':'format','content':St(_0x512d5f,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xae9ed6+'\x22')}:{'type':'format','content':St(_0x512d5f,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x1f3146['commandName']){const _0x340157=_0x1f3146['commandParams'][0x0]['width'];return _0x340157?{'type':'format','content':St(_0x512d5f,'*Set\x20image\x20width:*\x20%0',_0x340157)}:{'type':'format','content':St(_0x512d5f,'*Reset\x20image\x20width*')};}}});}},de=class extends _0x1a4f44{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0xae6cc3=this['editor']['locale'],_0x4886ef=this['editor']['plugins']['get']('TrackChangesEditing');_0x4886ef['enableDefaultAttributesIntegration']('replaceImageSource'),_0x4886ef['descriptionFactory']['registerDescriptionCallback'](_0x4d5ba7=>{if('attribute'!=_0x4d5ba7['type'])return;const {data:_0x2e5794}=_0x4d5ba7;return _0x2e5794&&'src'==_0x2e5794['key']?_0x2e5794['newValue']&&_0x2e5794['oldValue']?{'type':'format','content':St(_0xae6cc3,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1ab241=this['editor']['plugins']['get']('TrackChangesEditing');_0x1ab241['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x1ab241['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1ab241['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x1ab241['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x396a42=this['editor'],_0x3100df=_0x396a42['locale'];_0x396a42['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x27889d=>{if('formatBlock'!=_0x27889d['type']&&'formatInline'!=_0x27889d['type'])return;const {data:_0x212173}=_0x27889d;return _0x212173&&'replaceImageSource'==_0x212173['commandName']?{'type':'format','content':St(_0x3100df,'*Format:*\x20replace\x20image\x20URL')}:void 0x0;});}},he=class extends _0x1a4f44{['afterInit'](){const _0x3a6e3e=this['editor'];if(!_0x3a6e3e['plugins']['has']('ImageStyleEditing'))return;const _0x3a168c=_0x3a6e3e['plugins']['get']('TrackChangesEditing'),_0x18e7b2=_0x3a6e3e['plugins']['get']('ImageUtils'),_0xe01370={};_0x3a168c['enableCommand']('imageStyle',(_0x4e219a,_0x3fe1bf)=>{const _0x2f408a=_0x3a6e3e['plugins']['get']('Users')['me'],_0x4dce03=_0x3a6e3e['commands']['get']('imageStyle');let _0x5d332c=_0x18e7b2['getClosestSelectedImageElement'](_0x3a6e3e['model']['document']['selection']),_0x423686=_0x3a6e3e['model']['createRangeOn'](_0x5d332c),_0x51e2ec=_0x4dce03['value'];if(_0x51e2ec==_0x3fe1bf['value'])return;if(_0x3fe1bf['value']&&_0x18e7b2['isInlineImage'](_0x5d332c)&&!_0x4dce03['isStyleEnabled'](_0x3fe1bf['value']))return;const _0x599ba8={'commandName':'imageStyle','commandParams':[_0x3fe1bf],'formatGroupId':_0x25321b()};_0x3a6e3e['model']['change'](()=>{if(_0x3a168c['getSuggestions']()['filter'](_0x923cb7=>_0x923cb7['isInContent']&&_0x2f408a==_0x923cb7['author']&&('formatBlock'==_0x923cb7['type']||'formatInline'==_0x923cb7['type'])&&('imageStylePreApply'==_0x923cb7['subType']||'imageStylePostApply'==_0x923cb7['subType'])&&_0x923cb7['getFirstRange']()['isEqual'](_0x423686))['forEach'](_0x36da7c=>_0x3a168c['discardSuggestion'](_0x36da7c['head'])),_0x5d332c=_0x18e7b2['getClosestSelectedImageElement'](_0x3a6e3e['model']['document']['selection']),_0x423686=_0x3a6e3e['model']['createRangeOn'](_0x5d332c),_0x4dce03['refresh'](),_0x3a6e3e['commands']['get']('imageTypeInline')['refresh'](),_0x3a6e3e['commands']['get']('imageTypeBlock')['refresh'](),_0x51e2ec=_0x4dce03['value'],_0x51e2ec!=_0x3fe1bf['value'])return _0x18e7b2['isInlineImage'](_0x5d332c)&&_0x4dce03['shouldConvertImageType'](_0x3fe1bf['value'],_0x5d332c)?(_0x4e219a({..._0x3fe1bf,'setImageSizes':!0x1}),_0x5d332c=_0x18e7b2['getClosestSelectedImageElement'](_0x3a6e3e['model']['document']['selection']),void _0x3a168c['markBlockFormat'](_0x5d332c,{..._0x599ba8,'commandReversedParams':[{'value':_0x51e2ec||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x18e7b2['isBlockImage'](_0x5d332c)?_0x3a168c['markBlockFormat'](_0x5d332c,_0x599ba8,[],'imageStylePostApply'):_0x3a168c['markInlineFormat'](_0x423686,_0x599ba8,'imageStylePostApply'));});});for(const _0x101f51 of _0x3a6e3e['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0xe01370[_0x101f51['name']]=_0x101f51['title']['toLowerCase']();_0x3a168c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x3a168c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x3a168c['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x3a168c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x3c1999])=>{_0x18e7b2['setImageNaturalSizeAttributes'](_0x3c1999['getContainedElement']());}),_0x3a168c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x253512,_0x32a3a5)=>{_0x3a168c['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x253512,{'commandName':_0x32a3a5['commandName'],'commandParams':_0x32a3a5['commandReversedParams']});}),_0x3a168c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x2adbdb,_0x568e83){return _0x5dbae4(_0x2adbdb,_0x568e83)?[_0x2adbdb,_0x568e83]:_0x5dbae4(_0x568e83,_0x2adbdb)?[_0x568e83,_0x2adbdb]:null;});const _0x500577=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5dbae4(_0x22cffb,_0x3174aa){const _0x1b0b5c=_0x500577['findIndex'](({type:_0x1d154e,subType:_0x4a6c75})=>_0x22cffb['type']==_0x1d154e&&_0x22cffb['subType']==_0x4a6c75),_0x5289d2=_0x500577['findIndex'](({type:_0x998d9c,subType:_0xea9bcc})=>_0x3174aa['type']==_0x998d9c&&_0x3174aa['subType']==_0xea9bcc);if(_0x1b0b5c<0x0||_0x5289d2<0x0)return!0x1;const _0x3861f6=_0x22cffb['getFirstRange'](),_0x139200=_0x3174aa['getFirstRange']();if((0x0==_0x1b0b5c||0x1==_0x1b0b5c)&&0x2==_0x5289d2&&_0x3861f6['isIntersecting'](_0x139200))return!0x0;if(0x2==_0x1b0b5c&&0x3==_0x5289d2){const _0x5ed6cf=_0x3a168c['_findSuggestions'](_0x3861f6,'insertion')['filter'](({suggestion:_0xf05846,meta:_0x5724f2})=>_0x5724f2['isOwn']&&'convertInlineImageToBlock'==_0xf05846['subType']);if(_0x5ed6cf['length']>0x1&&_0x139200['end']['isEqual'](_0x3861f6['start']))return!0x0;if(0x1==_0x5ed6cf['length']&&(_0x3861f6['start']['isEqual'](_0x139200['end'])||_0x3861f6['end']['isEqual'](_0x139200['start'])))return!0x0;}if(0x3==_0x1b0b5c&&0x3==_0x5289d2&&_0x3861f6['start']['isBefore'](_0x139200['start'])){const _0x3f08f4=_0x3861f6['end']['nodeAfter'],_0xed2aaf=_0x139200['start']['nodeBefore'];return _0x18e7b2['isBlockImage'](_0x3f08f4)&&_0x3f08f4===_0xed2aaf;}return!0x1;}_0x3a6e3e['model']['document']['registerPostFixer'](()=>{let _0x3d4146=!0x1;const _0x355927=Array['from'](_0x3a6e3e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2ee121,data:_0x4c548f}of _0x355927){const {group:_0x25362f,type:_0x4cedf8,subType:_0x5f8630,id:_0x35e37c}=tt(_0x2ee121);if('suggestion'==_0x25362f&&_0x3a168c['hasSuggestion'](_0x35e37c)){if('formatBlock'==_0x4cedf8&&('imageStylePreApply'==_0x5f8630||'imageStylePostApply'==_0x5f8630)){const _0x118872=_0x3a168c['getSuggestion'](_0x35e37c);if(_0x4c548f['newRange']){const _0x1bf376=_0x118872['getFirstRange']()['getContainedElement']();if(_0x18e7b2['isBlockImage'](_0x1bf376))continue;_0x3a168c['discardSuggestion'](_0x118872),_0x3d4146=!0x0;}}if('insertion'==_0x4cedf8&&'imageCaption'==_0x5f8630&&!_0x4c548f['newRange']){const _0x49bf18=_0x3a168c['getSuggestion'](_0x35e37c);_0x49bf18['next']&&_0x49bf18['next']['isInContent']&&(_0x3a168c['discardSuggestion'](_0x49bf18['next']),_0x3d4146=!0x0);}}}return _0x3d4146;}),this['_registerLegacyDescription'](_0xe01370);}['_registerLegacyDescription'](_0x19d9d4){const _0x22d6c2=this['editor'],_0x342334=_0x22d6c2['locale'];_0x22d6c2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x544ba3=>{if('formatBlock'!=_0x544ba3['type']&&'formatInline'!=_0x544ba3['type'])return;const {data:_0x578520}=_0x544ba3;if(!_0x578520||'imageStyle'!=_0x578520['commandName'])return;const _0x141f0c=_0x578520['commandParams'][0x0]['value'];return _0x4fff08('side'===_0x141f0c?St(_0x342334,'FORMAT_SIDE_IMAGE'):_0x19d9d4[_0x141f0c]||_0x141f0c);function _0x4fff08(_0x28c1f4){return{'type':'format','content':St(_0x342334,'*Format:*\x20%0',_0x28c1f4)};}});}},ge=class extends _0x1a4f44{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x3b4e0a){super(_0x3b4e0a),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x1ddd8e=this['editor'],_0x455469=_0x1ddd8e['commands']['get']('importWord'),_0x2dd818=_0x1ddd8e['commands']['get']('trackChanges');_0x455469&&(_0x455469['on']('execute',(_0x57d718,[,_0x18d420])=>{this['_trackChangesValueDuringImport']=_0x2dd818['value'],_0x18d420['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x455469,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x455469,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x2dd818['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x1ddd8e['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x21c383,_0x32afc1){const {suggestions:_0x5f1ebd}=_0x32afc1,_0x377a4c=this['editor']['commands']['get']('trackChanges'),_0x3f6dc0=_0x377a4c['value'];this['_trackChangesValueDuringImport']!==_0x3f6dc0&&(_0x377a4c['execute'](),this['_trackChangesExecuted']=!0x0),_0x5f1ebd&&_0x5f1ebd['forEach'](({id:_0x4d7455,type:_0x5e536c,author:_0x454ad4,created_at:_0x282d48})=>{const _0x434bc0={'id':_0x4d7455,'type':_0x5e536c,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x454ad4,'createdAt':_0x282d48?new Date(_0x282d48):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x434bc0);});}},fe=class extends _0x1a4f44{['afterInit'](){const _0x5252d4=this['editor'],_0x505d31=_0x5252d4['plugins']['get']('TrackChangesEditing');if(_0x5252d4['plugins']['has']('IndentEditing')&&(_0x505d31['enableCommand']('indent'),_0x505d31['enableCommand']('outdent')),_0x5252d4['plugins']['has']('IndentBlock')){for(const _0x1e5f9b of['indentBlock','outdentBlock'])_0x505d31['enableDefaultAttributesIntegration'](_0x1e5f9b);if(_0x5252d4['plugins']['has']('ListEditing')){for(const _0x3ceec6 of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x505d31['enableDefaultAttributesIntegration'](_0x3ceec6);}}const _0x4af584=_0x5252d4['locale'];_0x505d31['descriptionFactory']['registerAttributeLabel']('blockIndent',St(_0x4af584,'FORMAT_INDENT')),_0x505d31['descriptionFactory']['registerAttributeLabel']('blockIndentList',St(_0x4af584,'FORMAT_INDENT')),_0x505d31['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',St(_0x4af584,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x142657=this['editor'],_0x3c08bc=_0x142657['locale'],_0x1df068=_0x142657['plugins']['get']('TrackChangesEditing');_0x1df068['descriptionFactory']['registerDescriptionCallback'](_0x3846b7=>{if('formatBlock'!=_0x3846b7['type'])return;const {data:_0x52828d}=_0x3846b7;if(!_0x52828d)return;if('indentBlock'!=_0x52828d['commandName']&&'outdentBlock'!=_0x52828d['commandName'])return;const _0x574ed1=_0x3846b7['getItems']()[0x0],_0x46311c=_0x1df068['descriptionFactory']['getItemLabel'](_0x574ed1);return'indentBlock'==_0x52828d['commandName']?{'type':'format','content':St(_0x3c08bc,'*Indent:*\x20%0',_0x46311c)}:'outdentBlock'==_0x52828d['commandName']?{'type':'format','content':St(_0x3c08bc,'*Outdent:*\x20%0',_0x46311c)}:void 0x0;});}},me=class extends _0x1a4f44{static get['requires'](){return[gt];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}},Ee=class extends _0x1a4f44{['afterInit'](){const _0x393438=this['editor'];if(!_0x393438['plugins']['has']('LinkEditing'))return;const _0x166d53=_0x393438['plugins']['get']('TrackChangesEditing'),_0x2da472=_0x393438['commands']['get']('link');_0x166d53['enableDefaultAttributesIntegration']('link'),_0x166d53['enableDefaultAttributesIntegration']('unlink');for(const _0x40df42 of _0x2da472['manualDecorators'])_0x166d53['descriptionFactory']['registerAttributeLabel'](_0x40df42['id'],'link\x20('+_0x40df42['label']['toLowerCase']()+')');_0x166d53['descriptionFactory']['registerDescriptionCallback'](_0x23cd5a=>{if('attribute'!=_0x23cd5a['type'])return;const {data:_0x13062f}=_0x23cd5a;if(!_0x13062f||'linkHref'!=_0x13062f['key'])return;const _0x185120=_0x13062f['newValue'],_0x3118d0=_0x393438['locale'];return{'type':'format','content':null==_0x185120?St(_0x3118d0,'*Remove\x20link*'):St(_0x3118d0,'*Set\x20link:*\x20%0','\x22'+_0x185120+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xbbd570=this['editor'],_0x5b84be=_0xbbd570['locale'];_0xbbd570['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2fe5ea=>{if('formatInline'!=_0x2fe5ea['type'])return;const {data:_0x5e51b7}=_0x2fe5ea;if(_0x5e51b7){if('link'==_0x5e51b7['commandName']){const _0x245282=_0x5e51b7['commandParams'][0x0];return{'type':'format','content':St(_0x5b84be,'*Set\x20link:*\x20%0','\x22'+_0x245282+'\x22')};}return'unlink'==_0x5e51b7['commandName']?{'type':'format','content':St(_0x5b84be,'*Remove\x20link*')}:void 0x0;}});}},Te=class extends _0x1a4f44{['afterInit'](){const _0x55f037=this['editor'],_0x11b7bf=_0x55f037['locale'];if(!_0x55f037['plugins']['has']('LegacyListEditing'))return;const _0x21e850=_0x55f037['plugins']['get']('TrackChangesEditing'),_0x25a504=_0x55f037['plugins']['has']('LegacyTodoListEditing');function _0x208bbd(_0xddbe6d){return()=>{const _0x30beb5=_0x55f037['model']['document']['selection'],_0x10da3c=_0x55f037['commands']['get'](_0xddbe6d);if(_0x10da3c['value'])return void _0x55f037['execute']('paragraph',{});const _0x23d50a=_0xddbe6d['slice'](0x0,-0x4),_0x352abe=function(_0x5088cb,_0x48014d,_0x6447da){let _0x449c2b=Array['from'](_0x5088cb)['filter'](_0x27448c=>function(_0x5f0e57,_0x9cfc8b){return _0x9cfc8b['checkChild'](_0x5f0e57['parent'],'listItem')&&!_0x9cfc8b['isObject'](_0x5f0e57);}(_0x27448c,_0x6447da));_0x449c2b=_0x449c2b['filter'](_0x4da721=>!_0x4da721['is']('element','listItem')||_0x4da721['getAttribute']('listType')!=_0x48014d);const _0x72bc91=new Set();for(const _0x5752c4 of _0x449c2b)_0x5752c4['is']('element','listItem')?_0x72bc91['add'](_e(_0x5752c4)):_0x72bc91['add'](_0x5752c4);return Array['from'](_0x72bc91);}(_0x30beb5['getSelectedBlocks'](),_0x23d50a,_0x55f037['model']['schema']);_0x55f037['model']['change'](()=>{for(const _0xc72eba of _0x352abe)_0x21e850['markBlockFormat'](_0xc72eba,{'commandName':_0xddbe6d,'commandParams':[{'forceValue':!_0x10da3c['value']}],'formatGroupId':'blockName'},pe(_0xc72eba));});};}function _0x379b03(_0x1ad344){return()=>{const _0x1eb14d=function(_0x5d5b1c){let _0x3f8635=Array['from'](_0x5d5b1c);const _0x26552c=_0x3f8635['findIndex'](_0x7d9f0c=>'listItem'!=_0x7d9f0c['name']);return _0x26552c>-0x1&&(_0x3f8635=_0x3f8635['slice'](0x0,_0x26552c)),_0x3f8635;}(_0x55f037['model']['document']['selection']['getSelectedBlocks']()),_0x2f4f63=_0x55f037['model']['createRange'](_0x55f037['model']['createPositionAt'](_0x1eb14d[0x0],'before'),_0x55f037['model']['createPositionAt'](_0x1eb14d[_0x1eb14d['length']-0x1],'end'));_0x55f037['model']['change'](()=>{_0x21e850['markBlockFormat'](_0x2f4f63,{'commandName':_0x1ad344,'commandParams':[],'formatGroupId':'listIndent'},function(_0x23729a){const _0x40b709=new Set();for(const _0x40d515 of _0x23729a){let _0x4aca0c=_0x40d515['nextSibling'];for(;_0x4aca0c&&_0x4aca0c['getAttribute']('listIndent')>_0x40d515['getAttribute']('listIndent');)_0x40b709['add'](_0x4aca0c),_0x4aca0c=_0x4aca0c['nextSibling'];}return Array['from'](_0x40b709);}(_0x1eb14d));});};}_0x21e850['enableCommand']('numberedList',_0x208bbd('numberedList')),_0x21e850['enableCommand']('bulletedList',_0x208bbd('bulletedList')),_0x25a504&&_0x21e850['enableCommand']('todoList',_0x208bbd('todoList')),_0x21e850['enableCommand']('indentList',_0x379b03('indentList')),_0x21e850['enableCommand']('outdentList',_0x379b03('outdentList')),_0x25a504&&_0x21e850['enableCommand']('checkTodoList',()=>{const _0x3326e4=_0x55f037['commands']['get']('checkTodoList'),_0x33b404=Array['from'](_0x3326e4['_selectedElements']);_0x33b404['filter'](_0x53bd6c=>_0x53bd6c['getAttribute']('todoListChecked')!=_0x3326e4['value']),_0x55f037['model']['change'](()=>{for(const _0x3facd4 of _0x33b404)_0x21e850['markBlockFormat'](_0x3facd4,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x3326e4['value']}]});});}),_0x21e850['descriptionFactory']['registerElementLabel']('listItem',_0x29f1eb=>St(_0x11b7bf,'ELEMENT_LIST_ITEM',_0x29f1eb)),_0x21e850['descriptionFactory']['registerDescriptionCallback'](_0x24ec8e=>{if('formatBlock'!=_0x24ec8e['type']&&'formatInline'!=_0x24ec8e['type'])return;const {data:_0x1d25d9}=_0x24ec8e;if(_0x1d25d9){if('numberedList'==_0x1d25d9['commandName']||'bulletedList'==_0x1d25d9['commandName']||'todoList'==_0x1d25d9['commandName'])switch(_0x1d25d9['commandName']['replace']('List','')){case'bulleted':return _0x1ce6d2(St(_0x11b7bf,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1ce6d2(St(_0x11b7bf,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1ce6d2(St(_0x11b7bf,'ELEMENT_TODO_LIST'));}if('indentList'==_0x1d25d9['commandName'])return{'type':'format','content':St(_0x11b7bf,'*Indent:*\x20%0',St(_0x11b7bf,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x1d25d9['commandName'])return{'type':'format','content':St(_0x11b7bf,'*Outdent:*\x20%0',St(_0x11b7bf,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x1d25d9['commandName'])return _0x1d25d9['commandParams'][0x0]['forceValue']?{'type':'format','content':St(_0x11b7bf,'*Check\x20item*')}:{'type':'format','content':St(_0x11b7bf,'*Uncheck\x20item*')};}function _0x1ce6d2(_0x184c83){return{'type':'format','content':St(_0x11b7bf,'*Change\x20to:*\x20%0',_0x184c83)};}});}};function _e(_0x238b12){const _0x38360b=_0x238b12['getAttribute']('listIndent');if(0x0==_0x38360b)return _0x238b12;let _0x1c020e=_0x238b12;for(;_0x238b12['previousSibling']&&_0x238b12['previousSibling']['is']('element','listItem');){const _0x1b0e10=_0x238b12['previousSibling']['getAttribute']('listIndent');if(_0x1b0e10==_0x38360b)_0x1c020e=_0x238b12['previousSibling'];else{if(_0x1b0e10<_0x38360b)break;}_0x238b12=_0x238b12['previousSibling'];}return _0x1c020e;}function pe(_0x464316){const _0x49c63c=[];if(_0x464316['is']('element','listItem')&&_0x464316['getAttribute']('listIndent')>0x0){let _0x431852=_0x464316['nextSibling'];for(;_0x431852&&'listItem'==_0x431852['name']&&_0x431852['getAttribute']('listIndent')==_0x464316['getAttribute']('listIndent');)_0x49c63c['push'](_0x431852),_0x431852=_0x431852['nextSibling'];}return _0x49c63c;}var Le=class extends _0x1a4f44{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x5611fd=this['editor']['config']['get']('list.properties'),_0xfbaef6=this['editor']['plugins']['get']('TrackChangesEditing');_0x5611fd['styles']&&_0xfbaef6['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x5611fd['reversed']&&_0xfbaef6['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x5611fd['startIndex']&&_0xfbaef6['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0xfbaef6['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0xdf0f5b,_0x1f559e={}){const _0x1eff8e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x474082=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x1eff8e['markMultiRangeBlockFormat'](_0x474082,{'commandName':'listStyle','commandParams':[{'type':_0x1f559e['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x1106cd,_0x2dfbb2={}){const _0x79268e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x38bb26=this['_getSuggestionBlocks'](_0x37e563=>_0x37e563['is']('element','listItem')&&'numbered'===_0x37e563['getAttribute']('listType'));if(_0x38bb26['length']<0x1)return;const _0x54cb8d=_0x38bb26['map'](_0x455c52=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x455c52,'before'),this['editor']['model']['createPositionAt'](_0x455c52,0x0)));this['editor']['model']['change'](()=>{_0x79268e['markMultiRangeBlockFormat'](_0x54cb8d,{'commandName':'listReversed','commandParams':[{'reversed':_0x2dfbb2['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x3ac44e,_0xf4939f={}){const _0x2ccf9f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4a4a40=this['_getSuggestionBlocks'](_0x136981=>_0x136981['is']('element','listItem')&&'numbered'===_0x136981['getAttribute']('listType'));if(_0x4a4a40['length']<0x1)return;const _0x41b28e=_0x4a4a40['map'](_0x5ba1f7=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5ba1f7,'before'),this['editor']['model']['createPositionAt'](_0x5ba1f7,0x0)));this['editor']['model']['change'](()=>{_0x2ccf9f['markMultiRangeBlockFormat'](_0x41b28e,{'commandName':'listStart','commandParams':[{'startIndex':_0xf4939f['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x3788a2){if('formatBlock'!=_0x3788a2['type']&&'formatInline'!=_0x3788a2['type'])return;const _0x5bc7a4=this['editor']['locale'],{data:_0x1d6184}=_0x3788a2;if(!_0x1d6184)return;let _0x2e9252,_0x338f24;switch(_0x1d6184['commandName']){case'listStyle':_0x2e9252='*Change\x20to:*\x20%0',_0x338f24={'type':'format','content':St(_0x5bc7a4,_0x2e9252,St(_0x5bc7a4,this['_getTranslationKeyForListStyle'](_0x1d6184['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2e9252=_0x1d6184['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x338f24={'type':'format','content':St(_0x5bc7a4,_0x2e9252)};break;case'listStart':_0x2e9252='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x338f24={'type':'format','content':St(_0x5bc7a4,_0x2e9252,_0x1d6184['commandParams'][0x0]['startIndex'])};}return _0x338f24;}['_getSuggestionBlocksForListStyle'](){const _0x3be090=this['editor']['plugins']['get']('LegacyListUtils');let _0x231b18=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x231b18[0x0]?.['is']('element','listItem')&&_0x231b18['unshift'](..._0x3be090['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x231b18[_0x231b18['length']-0x1]?.['is']('element','listItem')&&_0x231b18['push'](..._0x3be090['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x231b18=[...new Set(_0x231b18)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x231b18=_0x231b18['filter'](_0x1e35dd=>_0x1e35dd['is']('element','listItem'))),_0x231b18;}['_getSuggestionBlocks'](_0x15881c){const _0x1a1d2a=this['editor']['plugins']['get']('LegacyListUtils');let _0x268a89=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x15881c)['map'](_0x44e782=>{const _0x47d5be=this['editor']['model']['createPositionAt'](_0x44e782,0x0);return[..._0x1a1d2a['getSiblingNodes'](_0x47d5be,'backward'),..._0x1a1d2a['getSiblingNodes'](_0x47d5be,'forward')];})['flat']();return _0x268a89=[...new Set(_0x268a89)],_0x268a89;}['_getTranslationKeyForListStyle'](_0x27539f){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x27539f)||'default')['toUpperCase']()+'_LIST_'+_0x27539f['toUpperCase']()['replace'](/-/g,'_');}},Ie=class extends _0x1a4f44{['afterInit'](){const _0x16ec4d=this['editor'];if(!_0x16ec4d['plugins']['has']('MediaEmbedEditing'))return;const _0x27049c=_0x16ec4d['plugins']['get']('TrackChangesEditing'),_0x166dcc=_0x16ec4d['locale'];_0x27049c['enableCommand']('mediaEmbed'),_0x27049c['descriptionFactory']['registerElementLabel']('media',_0x454151=>St(_0x166dcc,'ELEMENT_MEDIA',_0x454151)),_0x16ec4d['plugins']['has']('MediaEmbedResizeEditing')&&(_0x27049c['enableDefaultAttributesIntegration']('resizeMediaEmbed'),_0x27049c['descriptionFactory']['registerDescriptionCallback'](_0x40818b=>{if('attribute'!=_0x40818b['type'])return;const {data:_0x486c9e}=_0x40818b;if(!_0x486c9e||'resizedWidth'!=_0x486c9e['key'])return;const _0x5e0d90=_0x40818b['getContainedElement']();return _0x5e0d90&&_0x5e0d90['is']('element','media')?{'type':'format','content':St(_0x166dcc,'*Set\x20format:*\x20%0',St(_0x166dcc,'FORMAT_MEDIA_SIZE'))}:void 0x0;}));}},Ae=class extends _0x1a4f44{['afterInit'](){const _0x44cdd7=this['editor'];if(!_0x44cdd7['plugins']['has']('MediaEmbedStyleEditing'))return;const _0x40fec3=_0x44cdd7['plugins']['get']('TrackChangesEditing'),_0x57d666=_0x44cdd7['locale'],_0x3ecafc=_0x44cdd7['plugins']['get']('MediaEmbedStyleEditing'),_0x213ef8={};for(const _0x9ab984 of _0x3ecafc['normalizedStyles'])_0x213ef8[_0x9ab984['name']]=_0x9ab984['title']['toLowerCase']();const _0x1ddec6=_0x3ecafc['normalizedStyles']['find'](_0x210ecd=>_0x210ecd['isDefault'])?.['name'];_0x40fec3['enableCommand']('mediaStyle',(_0x3af413,_0x4679cf)=>{const _0x5cf2b6=_0x44cdd7['plugins']['get']('Users')['me'],_0x186133=_0x44cdd7['commands']['get']('mediaStyle'),_0x95ba2=function(_0x5bd091){const _0x39a9f7=_0x5bd091['model']['document']['selection']['getSelectedElement']();return _0x39a9f7&&_0x39a9f7['is']('element','media')?_0x39a9f7:null;}(_0x44cdd7);if(!_0x95ba2)return;const _0x2e4e70=_0x44cdd7['model']['createRangeOn'](_0x95ba2);let _0x565fa6=_0x186133['value'];if(_0x565fa6==_0x4679cf['value'])return;const _0x13b890={'commandName':'mediaStyle','commandParams':[_0x4679cf],'formatGroupId':_0x25321b()};_0x44cdd7['model']['change'](()=>{_0x40fec3['getSuggestions']()['filter'](_0x3b3931=>_0x3b3931['isInContent']&&_0x5cf2b6==_0x3b3931['author']&&'formatBlock'==_0x3b3931['type']&&'mediaStylePostApply'==_0x3b3931['subType']&&_0x3b3931['getFirstRange']()['isEqual'](_0x2e4e70))['forEach'](_0x3900fc=>_0x40fec3['discardSuggestion'](_0x3900fc['head'])),_0x186133['refresh'](),_0x565fa6=_0x186133['value'],_0x565fa6!=_0x4679cf['value']&&_0x40fec3['markBlockFormat'](_0x95ba2,{..._0x13b890,'commandReversedParams':[{'value':'string'==typeof _0x565fa6?_0x565fa6:null}]},[],'mediaStylePostApply');});}),_0x40fec3['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','join',()=>!0x1),_0x40fec3['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','discard',(_0x382903,_0x164622)=>{_0x40fec3['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x382903,{'commandName':_0x164622['commandName'],'commandParams':_0x164622['commandReversedParams']});}),_0x40fec3['descriptionFactory']['registerDescriptionCallback'](_0x888a7d=>{if('formatBlock'!=_0x888a7d['type'])return;const {data:_0x23b424}=_0x888a7d;if(!_0x23b424||'mediaStyle'!=_0x23b424['commandName'])return;const _0x482441=_0x23b424['commandParams'][0x0]['value']||_0x1ddec6;return _0x482441?{'type':'format','content':St(_0x57d666,'*Format:*\x20%0',_0x213ef8[_0x482441]||_0x482441)}:void 0x0;});}},be=class extends _0x1a4f44{['afterInit'](){const _0x3368a1=this['editor'];_0x3368a1['plugins']['has']('MentionEditing')&&_0x3368a1['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}},ke=class extends _0x1a4f44{['afterInit'](){const _0x498d59=this['editor'];if(!_0x498d59['plugins']['has']('MergeFieldsEditing'))return;const _0x36d42f=_0x498d59['plugins']['get']('TrackChangesEditing'),_0x112ce4=_0x498d59['locale'];_0x36d42f['enableCommand']('insertMergeField'),_0x36d42f['enableCommand']('insertMergeFieldBlock'),_0x36d42f['enableCommand']('insertMergeFieldImage'),_0x36d42f['descriptionFactory']['registerElementLabel']('mergeField',_0x20cbc3=>St(_0x112ce4,'ELEMENT_MERGE_FIELD',_0x20cbc3)),_0x36d42f['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x29ac18=>St(_0x112ce4,'ELEMENT_MERGE_FIELD',_0x29ac18)),_0x36d42f['descriptionFactory']['registerDescriptionCallback'](_0x4b4ffd=>{if('insertion'!=_0x4b4ffd['type']&&'deletion'!=_0x4b4ffd['type'])return;const _0x56cc4b=_0x4b4ffd['getContainedElement']();if(null==_0x56cc4b)return;const _0x3ba276=_0x498d59['plugins']['get']('MergeFieldsEditing');let _0x56a5d7;switch(_0x3ba276['getMergeFieldType'](_0x56cc4b)){case null:return;case'image':{const _0xeaf5f4=_0x3ba276['unwrapAffixes'](_0x56cc4b['getAttribute']('src'));_0x56a5d7=_0x3ba276['getLabel'](_0xeaf5f4)||_0xeaf5f4;break;}default:{const _0x23ec3b=_0x56cc4b['getAttribute']('id');_0x56a5d7=_0x3ba276['getLabel'](_0x23ec3b)||_0x23ec3b;break;}}return'insertion'==_0x4b4ffd['type']?{'type':'insertion','content':St(_0x112ce4,'*Insert:*\x20%0','\x22'+_0x56a5d7+'\x22\x20'+St(_0x112ce4,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':St(_0x112ce4,'*Remove:*\x20%0','\x22'+_0x56a5d7+'\x22\x20'+St(_0x112ce4,'ELEMENT_MERGE_FIELD'))};});}},Ce=class extends _0x1a4f44{['afterInit'](){const _0x8de2a8=this['editor'],_0x2369d2=_0x8de2a8['plugins']['get']('TrackChangesEditing');_0x8de2a8['plugins']['has']('MultiLevelList')&&(_0x2369d2['enableDefaultAttributesIntegration']('multiLevelList'),_0x2369d2['descriptionFactory']['registerDescriptionCallback'](_0x2484d7=>this['handleDescriptions'](_0x2484d7)));}['handleDescriptions'](_0x19fd4c){const _0x4a6627=this['editor']['locale'],{data:_0x3566e8}=_0x19fd4c,_0x5af8db={'type':'format','content':''};if(_0x3566e8&&'listMarkerStyle'==_0x3566e8['key']){if(!_0x3566e8['oldValue'])return{'type':'format','content':St(_0x4a6627,'*Set\x20format:*\x20%0',St(_0x4a6627,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3566e8['newValue']+')'};if(!_0x3566e8['newValue']){let _0x414df0=_0x19fd4c['head'];for(;_0x414df0;){if(_0x414df0['data']&&'listType'==_0x414df0['data']['key']&&_0x414df0['data']['newValue'])return _0x5af8db;_0x414df0=_0x414df0['next'];}return{'type':'format','content':St(_0x4a6627,'*Remove\x20format:*\x20%0',St(_0x4a6627,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3566e8['oldValue']+')'};}}}},Re=class extends _0x1a4f44{['afterInit'](){const _0x3f6882=this['editor'];if(!_0x3f6882['plugins']['has']('PageBreakEditing'))return;_0x3f6882['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x121187=_0x3f6882['plugins']['get']('TrackChangesEditing'),_0x35a251=_0x3f6882['locale'];_0x121187['descriptionFactory']['registerElementLabel']('pageBreak',_0x3705f6=>St(_0x35a251,'ELEMENT_PAGE_BREAK',_0x3705f6));}},Ne=class extends _0x1a4f44{['afterInit'](){const _0x311829=this['editor'];if(!_0x311829['plugins']['has']('Paragraph'))return;const _0x1ee3e0=_0x311829['locale'],_0x4b53cd=_0x311829['plugins']['get']('TrackChangesEditing');_0x4b53cd['descriptionFactory']['registerElementLabel']('paragraph',_0x3ff978=>St(_0x1ee3e0,'ELEMENT_PARAGRAPH',_0x3ff978)),_0x4b53cd['enableDefaultAttributesIntegration']('paragraph'),_0x4b53cd['enableCommand']('insertParagraph');const _0x2182f8=_0x4b53cd['descriptionFactory'];_0x2182f8['registerDescriptionCallback'](_0x3ad594=>{if('insertion'!==_0x3ad594['type'])return;const {start:_0x2cf052,end:_0x1e7b56}=_0x3ad594['getFirstRange']();if(!_0x2cf052['isTouching'](_0x1e7b56)||!_0x2cf052['nodeAfter'])return;const _0x25fc73=_0x311829['model']['schema'],_0x2c8240=_0x2cf052['nodeAfter'];return _0x25fc73['isBlock'](_0x2c8240)&&!_0x25fc73['isLimit'](_0x2c8240)&&_0x25fc73['checkChild'](_0x2c8240,'$text')?{'type':'insertion','content':St(_0x1ee3e0,'*Insert:*\x20%0',_0x2182f8['getItemLabel'](_0x2c8240,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x323090=this['editor'],_0x1fdece=_0x323090['locale'];_0x323090['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x456326=>{if('formatBlock'!=_0x456326['type'])return;const {data:_0x372d38}=_0x456326;return _0x372d38&&'paragraph'==_0x372d38['commandName']?{'type':'format','content':St(_0x1fdece,'*Change\x20to:*\x20%0',St(_0x1fdece,'ELEMENT_PARAGRAPH'))}:void 0x0;});}},ye=class extends _0x1a4f44{['afterInit'](){const _0x5392ef=this['editor'];_0x5392ef['commands']['get']('replaceSource')&&_0x5392ef['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}},Se=class extends _0x1a4f44{['afterInit'](){const _0x139640=this['editor'];_0x139640['plugins']['has']('RemoveFormatEditing')&&(_0x139640['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0xd8a173=this['editor'];_0xd8a173['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1ba614=>{if('formatBlock'!=_0x1ba614['type']&&'formatInline'!=_0x1ba614['type'])return;const {data:_0x44343f}=_0x1ba614;return _0x44343f&&'removeFormat'==_0x44343f['commandName']?{'type':'format','content':St(_0xd8a173['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}},Me=class extends _0x1a4f44{['afterInit'](){const _0x185c72=this['editor'];if(!_0x185c72['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x3e453d=_0x185c72['plugins']['get']('TrackChangesEditing');_0x3e453d['enableCommand']('goToPreviousRestrictedEditingException'),_0x3e453d['enableCommand']('goToNextRestrictedEditingException');const _0x558e2f=_0x185c72['plugins']['get']('RestrictedEditingModeEditing');_0x558e2f['enableCommand']('trackChanges'),_0x558e2f['enableCommand']('acceptSuggestion'),_0x558e2f['enableCommand']('discardSuggestion'),_0x558e2f['enableCommand']('acceptAllSuggestions'),_0x558e2f['enableCommand']('discardAllSuggestions'),_0x558e2f['enableCommand']('acceptSelectedSuggestions'),_0x558e2f['enableCommand']('discardSelectedSuggestions');}},Oe=class extends _0x1a4f44{['afterInit'](){const _0x11eb82=this['editor'];if(!_0x11eb82['plugins']['has']('ShiftEnter'))return;const _0x40599f=_0x11eb82['plugins']['get']('TrackChangesEditing');_0x40599f['enableCommand']('shiftEnter'),_0x40599f['descriptionFactory']['registerElementLabel']('softBreak',_0x2c2412=>St(_0x11eb82['locale'],'ELEMENT_LINE_BREAK',_0x2c2412));}};function we(_0x5795b0,_0x506908,_0x265ce4){const _0x2a3ff5=[];for(const _0x7f2e34 of _0x506908['getItems']())_0x7f2e34['hasAttribute'](_0x5795b0)&&_0x2a3ff5['push'](_0x265ce4['createRangeOn'](_0x7f2e34));return _0x2a3ff5;}var Fe=class extends _0x1a4f44{['afterInit'](){const _0x3f4152=this['editor'],_0x372995=_0x3f4152['plugins']['get']('TrackChangesEditing');_0x3f4152['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x372995['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x2ccba7=this['editor'],_0x965f96=_0x2ccba7['model'],_0x34ec12=_0x2ccba7['locale'],_0x3d4ff9=_0x2ccba7['plugins']['get']('TrackChangesEditing'),_0x145970='restrictedEditingException',_0x3473fe=_0x2ccba7['commands']['get'](_0x145970);_0x3d4ff9['enableCommand'](_0x145970,(_0x5373d4,_0x2e13d4={})=>{const _0x18d0d6=_0x965f96['document']['selection'];if(_0x18d0d6['isCollapsed'])return void _0x5373d4(_0x2e13d4);const _0xb34354=void 0x0!==_0x2e13d4['forceValue']?_0x2e13d4['forceValue']:!_0x3473fe['value'];_0x965f96['change'](()=>{const _0x572902=Array['from'](_0x18d0d6['getRanges']());for(const _0x41d70e of _0x572902){const _0xe8bcb=_0xb34354?[_0x41d70e]:we(_0x145970,_0x41d70e,_0x965f96);for(const _0x460feb of _0xe8bcb)_0x3d4ff9['markInlineFormat'](_0x460feb,{'commandName':_0x145970,'commandParams':[{'forceValue':_0xb34354}]});}});}),_0x3d4ff9['descriptionFactory']['registerDescriptionCallback'](_0x29d8ed=>{if('formatBlock'!=_0x29d8ed['type']&&'formatInline'!=_0x29d8ed['type'])return;const {data:_0x43879f}=_0x29d8ed;return _0x43879f&&_0x43879f['commandName']==_0x145970?_0x43879f['commandParams'][0x0]['forceValue']?{'type':'format','content':St(_0x34ec12,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':St(_0x34ec12,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x3fb3fb=this['editor'],_0x94780=_0x3fb3fb['locale'],_0x3d66e0=_0x3fb3fb['plugins']['get']('TrackChangesEditing'),_0x284b21='restrictedEditingExceptionBlock',_0x69ae38=this['editor']['commands']['get'](_0x284b21);_0x3d66e0['enableCommand'](_0x284b21,(_0x21bc2d,_0x566d53={})=>{const _0xa1db13=this['editor']['model']['document']['selection'],_0x2e53f9=_0x566d53&&void 0x0!==_0x566d53['forceValue']?_0x566d53['forceValue']:!_0x69ae38['value'];let _0x5b7ca2=[];_0x5b7ca2=At(_0x2e53f9?Array['from'](_0xa1db13['getSelectedBlocks']())['filter'](_0x52c1ab=>function(_0x288299){return!!_0x288299['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x52c1ab)||function(_0x21d7f9,_0x1d0f0e){const _0x118750=_0x1d0f0e['createContext'](_0x21d7f9['parent']);return!!_0x1d0f0e['checkChild'](_0x118750,'restrictedEditingException')&&!!_0x1d0f0e['checkChild'](_0x118750['push']('restrictedEditingException'),_0x21d7f9);}(_0x52c1ab,this['editor']['model']['schema'])):Array['from'](_0xa1db13['getSelectedBlocks']())['map'](_0x22cb9e=>function(_0x5895c1){let _0x178595=_0x5895c1;for(;_0x178595['parent'];){if('restrictedEditingException'==_0x178595['parent']['name'])return _0x178595;_0x178595=_0x178595['parent'];}return null;}(_0x22cb9e))['filter'](_0xdd4cf8=>!!_0xdd4cf8),_0x3fb3fb['model']),_0x3fb3fb['model']['change'](()=>{for(const _0x366b05 of _0x5b7ca2)_0x3d66e0['markBlockFormat'](_0x366b05,{'commandName':_0x284b21,'commandParams':[{'forceValue':_0x2e53f9}]});});}),_0x3d66e0['descriptionFactory']['registerDescriptionCallback'](_0x1ad9b5=>{const {data:_0x54000b}=_0x1ad9b5;if(_0x54000b&&_0x54000b['commandName']==_0x284b21)return _0x54000b['commandParams'][0x0]['forceValue']?{'type':'format','content':St(_0x94780,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':St(_0x94780,'FORMAT_RESTRICTED_DISABLED')};});}},Be=class extends _0x1a4f44{['afterInit'](){const _0x39eb2a=this['editor'];_0x39eb2a['plugins']['has']('Style')&&_0x39eb2a['plugins']['has']('DataSchema')&&(_0x39eb2a['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('style'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x1fb68c=this['editor'],_0x5bf3f5=_0x1fb68c['locale'];_0x1fb68c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x26289f=>{if('formatBlock'!=_0x26289f['type']&&'formatInline'!=_0x26289f['type'])return;const {data:_0x5d3264}=_0x26289f;return _0x5d3264&&'style'===_0x5d3264['commandName']?_0x5d3264['commandParams'][0x0]['forceValue']?{'type':'format','content':St(_0x5bf3f5,'*Set\x20format:*\x20%0',_0x5d3264['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':St(_0x5bf3f5,'*Remove\x20format:*\x20%0',_0x5d3264['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}},ve=class extends _0x1a4f44{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x171b8f){super(_0x171b8f),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x338be9=this['editor'],_0x500b60=_0x338be9['model']['document']['selection'];if(!_0x338be9['plugins']['has']('TableEditing'))return;const _0xd36b68=_0x338be9['locale'],_0x10368c=_0x338be9['plugins']['get']('TrackChangesEditing'),_0x870490=_0x338be9['plugins']['get']('TableUtils');_0x10368c['descriptionFactory']['registerElementLabel']('table',_0x510727=>St(_0xd36b68,'ELEMENT_TABLE',_0x510727)),this['_setupColumnsRowsFixing'](),_0x10368c['enableCommand']('insertTable'),_0x10368c['enableCommand']('selectTableRow'),_0x10368c['enableCommand']('selectTableColumn');for(const _0x4cd0ab of['insertTableRowAbove','insertTableRowBelow']){const _0x4350f1=_0x338be9['commands']['get'](_0x4cd0ab);_0x10368c['enableCommand'](_0x4cd0ab,_0x2d19b6=>{_0x338be9['model']['change'](_0x26cafc=>{_0x2d19b6();const _0x3807b9='above'===_0x4350f1['order'],_0x21584d=_0x870490['getSelectionAffectedTableCells'](_0x500b60),_0x5e8489=_0x870490['getRowIndexes'](_0x21584d),_0xcccde5=_0x3807b9?_0x5e8489['first']-0x1:_0x5e8489['last']+0x1,_0x4b3fa2=_0x21584d[0x0]['findAncestor']('table'),_0x1c24e8=_0x870490['createTableWalker'](_0x4b3fa2,{'startRow':_0xcccde5,'endRow':_0xcccde5}),_0x304ddd=Array['from'](_0x1c24e8)['map'](_0x424d62=>_0x26cafc['createRangeOn'](_0x424d62['cell']));_0x10368c['markMultiRangeInsertion'](_0x304ddd,'tableRow');});});}for(const _0x51bc6d of['insertTableColumnLeft','insertTableColumnRight']){const _0x30f0ac=_0x338be9['commands']['get'](_0x51bc6d);_0x10368c['enableCommand'](_0x51bc6d,_0x31ed6b=>{_0x338be9['model']['change'](_0xe7d072=>{_0x31ed6b();const _0x48b05c='left'===_0x30f0ac['order'],_0x47bcfc=_0x870490['getSelectionAffectedTableCells'](_0x500b60),_0xcea476=_0x870490['getColumnIndexes'](_0x47bcfc),_0x226b09=_0x48b05c?_0xcea476['first']-0x1:_0xcea476['last']+0x1,_0x4b8974=_0x47bcfc[0x0]['findAncestor']('table'),_0x5d0bfe=_0x870490['createTableWalker'](_0x4b8974,{'startRow':0x0,'column':_0x226b09,'includeAllSlots':!0x1}),_0x924e76=Array['from'](_0x5d0bfe)['map'](_0x52f2bc=>_0xe7d072['createRangeOn'](_0x52f2bc['cell']));_0x10368c['markMultiRangeInsertion'](_0x924e76,'tableColumn');});});}for(const _0x256263 of['removeTableRow','removeTableColumn']){const _0x8c62d6=_0x256263['substr'](0xb),_0x8dd6a5=_0x8c62d6['toLowerCase'](),_0xfffc5=_0x8dd6a5['substr'](0x0,0x3)+'span',_0x344d33='table'+_0x8c62d6,_0x10d6c4='min'+_0x8c62d6,_0x48758c='max'+_0x8c62d6;_0x10368c['enableCommand'](_0x256263,()=>{_0x338be9['model']['change'](_0x29a4dd=>{const _0x392676=_0x870490['getSelectionAffectedTableCells'](_0x500b60),_0x282bd3=_0x392676[0x0]['findAncestor']('table');let _0x169329;if('removeTableRow'==_0x256263){const _0x3a3bb0=_0x870490['getRowIndexes'](_0x392676);_0x169329={'startRow':_0x3a3bb0['first'],'endRow':_0x3a3bb0['last'],'includeAllSlots':!0x0};}else{const _0x49a39f=_0x870490['getColumnIndexes'](_0x392676);_0x169329={'startColumn':_0x49a39f['first'],'endColumn':_0x49a39f['last'],'includeAllSlots':!0x0};}const _0x2db655=_0x870490['createTableWalker'](_0x282bd3,_0x169329),_0x26ee71=Array['from'](_0x2db655)['map'](({cell:_0x5a4358})=>_0x5a4358),_0x24ba75=De(_0x26ee71['filter'](_0x230a43=>_0x230a43['hasAttribute'](_0xfffc5))),_0x3ae485=De(_0x26ee71['filter'](_0x5c56fe=>!_0x5c56fe['hasAttribute'](_0xfffc5)))['map'](_0x1d8ae0=>_0x29a4dd['createRangeOn'](_0x1d8ae0)),_0x3fd675=_0x10368c['markMultiRangeDeletion'](_0x3ae485,_0x344d33);if(_0x3fd675&&('tableRow'==_0x3fd675['subType']||'tableColumn'==_0x3fd675['subType'])){const _0x43d0c1=this['_getSuggestionCoords'](_0x3fd675);for(const _0x3e3b3b of _0x24ba75){const _0x17b54b=_0x29a4dd['createRangeOn'](_0x3e3b3b),_0x7341a7=_0x870490['getCellLocation'](_0x3e3b3b),_0x1d4eab=_0x3e3b3b['getAttribute'](_0xfffc5)-0x1,_0x51691d=_0x43d0c1[_0x10d6c4],_0x27e7ea=_0x43d0c1[_0x48758c];_0x51691d<=_0x7341a7[_0x8dd6a5]&&_0x7341a7[_0x8dd6a5]+_0x1d4eab<=_0x27e7ea&&_0x3fd675['addRange'](_0x17b54b);}}});});}function _0x42d506(_0x11d46f){const _0x38e5b0=Array['from'](_0x500b60['getRanges']())['map'](_0x31ebfd=>rt['fromRange'](_0x31ebfd));_0x338be9['model']['change'](_0x3d1a01=>{const _0x50aa7e=_0x3d1a01['batch'];_0x11d46f=_0x11d46f['filter'](_0x20e135=>'$graveyard'!=_0x20e135['root']['rootName']),_0x3d1a01['setSelection'](_0x11d46f),_0x338be9['commands']['get']('removeTableRow')['refresh'](),_0x338be9['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x338be9['model']['enqueueChange'](()=>{_0x338be9['model']['enqueueChange'](_0x50aa7e,_0x2101ed=>{const _0x408d42=_0x38e5b0['filter'](_0x58486e=>'$graveyard'!=_0x58486e['root']['rootName']);_0x408d42['length']>0x0&&_0x2101ed['setSelection'](_0x408d42);for(const _0xff8e05 of _0x38e5b0)_0xff8e05['detach']();});});});}function _0x512bed(_0x30f823){_0x338be9['model']['change'](_0x3393d2=>{const _0x2ee114=Array['from'](_0x500b60['getRanges']())['map'](_0x183046=>rt['fromRange'](_0x183046)),_0x1a119f=[];for(const _0x43f2d9 of _0x30f823)for(const _0x161482 of _0x43f2d9['getItems']({'shallow':!0x0}))_0x1a119f['push'](_0x161482);for(const _0x340778 of _0x1a119f)'$graveyard'!=_0x340778['root']['rootName']&&(_0x3393d2['setSelection'](_0x3393d2['createPositionAt'](_0x340778,0x0)),_0x338be9['commands']['get']('removeTableColumn')['refresh'](),_0x338be9['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0xdc1cde=_0x2ee114['filter'](_0x25a9a4=>'$graveyard'!=_0x25a9a4['root']['rootName']);_0xdc1cde['length']>0x0&&_0x3393d2['setSelection'](_0xdc1cde);for(const _0x1397f1 of _0x2ee114)_0x1397f1['detach']();});}function _0x530c4f(_0x23d17b,_0x14b781){return _0x14b781['every'](_0x52ddf0=>_0x23d17b['some'](_0x5eb724=>_0x5eb724['end']['isEqual'](_0x52ddf0['start'])||_0x52ddf0['end']['isEqual'](_0x5eb724['start'])));}function _0x382c2a(_0x54d368,_0x21fdc4){return!_0x54d368['some'](_0x5e169b=>_0x21fdc4['some'](_0x52b6ef=>_0x5e169b['isIntersecting'](_0x52b6ef)))&&_0x54d368['some'](_0x3ebdd0=>_0x21fdc4['some'](_0x48c5a2=>_0x3ebdd0['end']['isTouching'](_0x48c5a2['start'])));}_0x10368c['descriptionFactory']['registerDescriptionCallback'](_0x5589e3=>{if('insertion'!=_0x5589e3['type']&&'deletion'!=_0x5589e3['type'])return;const _0x20ea9e=_0x5589e3['getContainedElement']();if(null!=_0x20ea9e&&_0x20ea9e['is']('element','table')){if('insertion'==_0x5589e3['type']){const _0x37f70f=_0x5589e3['getItems']()['filter'](_0x12f628=>_0x12f628['is']('$textProxy'))['map'](_0x3f5dea=>_0x3f5dea['data']);if(_0x37f70f['length'])return{'type':'insertion','content':St(_0xd36b68,'*Insert:*\x20%0',St(_0xd36b68,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x37f70f['join']('\x20')+'\x22'))};}if('deletion'==_0x5589e3['type']){const _0x1effe9=_0x5589e3['getItems']()['filter'](_0xbc7512=>_0xbc7512['is']('$textProxy'))['map'](_0x3a056d=>_0x3a056d['data']);if(_0x1effe9['length'])return{'type':'deletion','content':St(_0xd36b68,'*Remove:*\x20%0',St(_0xd36b68,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1effe9['join']('\x20')+'\x22'))};}}}),_0x10368c['descriptionFactory']['registerDescriptionCallback'](_0x15edbe=>{if('tableRow'==_0x15edbe['subType']){const _0x4578ca=_0x15edbe['getItems']()['filter'](_0x3bc0d7=>_0x3bc0d7['is']('$textProxy'))['map'](_0x32c098=>_0x32c098['data']),_0x2ec4ce=this['_getSuggestionCoords'](_0x15edbe),_0x1d5e61=_0x2ec4ce['maxRow']-_0x2ec4ce['minRow']+0x1;if('insertion'==_0x15edbe['type'])return _0x4578ca['length']?{'type':'insertion','content':St(_0xd36b68,'*Insert:*\x20%0',St(_0xd36b68,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1d5e61,'\x22'+_0x4578ca['join']('\x20')+'\x22']))}:{'type':'insertion','content':St(_0xd36b68,'*Insert:*\x20%0',St(_0xd36b68,'ELEMENT_TABLE_ROW',_0x1d5e61))};if('deletion'==_0x15edbe['type'])return _0x4578ca['length']?{'type':'deletion','content':St(_0xd36b68,'*Remove:*\x20%0',St(_0xd36b68,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1d5e61,'\x22'+_0x4578ca['join']('\x20')+'\x22']))}:{'type':'deletion','content':St(_0xd36b68,'*Remove:*\x20%0',St(_0xd36b68,'ELEMENT_TABLE_ROW',_0x1d5e61))};}if('tableColumn'==_0x15edbe['subType']){const _0x3cec2a=_0x15edbe['getItems']()['filter'](_0x29da12=>_0x29da12['is']('$textProxy'))['map'](_0x491787=>_0x491787['data']),_0x162f8c=this['_getSuggestionCoords'](_0x15edbe),_0x279710=_0x162f8c['maxColumn']-_0x162f8c['minColumn']+0x1;if('insertion'==_0x15edbe['type'])return _0x3cec2a['length']?{'type':'insertion','content':St(_0xd36b68,'*Insert:*\x20%0',St(_0xd36b68,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x279710,'\x22'+_0x3cec2a['join']('\x20')+'\x22']))}:{'type':'insertion','content':St(_0xd36b68,'*Insert:*\x20%0',St(_0xd36b68,'ELEMENT_TABLE_COLUMN',_0x279710))};if('deletion'==_0x15edbe['type'])return _0x3cec2a['length']?{'type':'deletion','content':St(_0xd36b68,'*Remove:*\x20%0',St(_0xd36b68,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x279710,'\x22'+_0x3cec2a['join']('\x20')+'\x22']))}:{'type':'deletion','content':St(_0xd36b68,'*Remove:*\x20%0',St(_0xd36b68,'ELEMENT_TABLE_COLUMN',_0x279710))};}}),_0x10368c['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x42d506),_0x10368c['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x42d506),_0x10368c['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x512bed),_0x10368c['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x512bed),_0x10368c['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x530c4f),_0x10368c['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x530c4f),_0x10368c['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x382c2a),_0x10368c['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x382c2a);}['_acceptFormatSuggestionCallbackFactory'](){const _0x30c289=this['editor'],_0x2b1c1a=_0x30c289['model']['document']['selection'];return(_0x3f8bc9,_0x4b2090)=>{_0x30c289['model']['change'](_0x27d05c=>{const {commandName:_0x52b4d8,commandParams:_0x4742d4}=_0x4b2090;let _0xc3b6fc=_0x3f8bc9[0x0]['end']['nodeBefore'];_0x4742d4&&_0x4742d4[0x0]&&!0x1===_0x4742d4[0x0]['forceValue']&&(_0xc3b6fc=_0x3f8bc9[0x0]['start']['nodeAfter']);const _0x32282b=_0x27d05c['createRangeIn'](_0xc3b6fc);if('$graveyard'==_0x32282b['root']['rootName'])return;const _0x5f11a4=Array['from'](_0x2b1c1a['getRanges']())['map'](_0x4a1f5d=>rt['fromRange'](_0x4a1f5d));_0x27d05c['setSelection'](_0x32282b),_0x30c289['commands']['get'](_0x52b4d8)['refresh'](),_0x4742d4['push']({'forceDefaultExecution':!0x0}),_0x30c289['execute'](_0x52b4d8,..._0x4742d4);const _0x487dcf=_0x5f11a4['filter'](_0x3b695d=>'$graveyard'!=_0x3b695d['root']['rootName']);_0x487dcf['length']>0x0&&_0x27d05c['setSelection'](_0x487dcf);for(const _0x2b975c of _0x5f11a4)_0x2b975c['detach']();});};}['_getCoordsForCells'](_0x401399){const _0x1e8a1e=this['editor']['plugins']['get']('TableUtils');let _0x59830b=Number['MAX_SAFE_INTEGER'],_0x9f1aaf=Number['MIN_SAFE_INTEGER'],_0x418e72=Number['MAX_SAFE_INTEGER'],_0x500207=Number['MIN_SAFE_INTEGER'];for(const _0x39b022 of _0x401399){if('$graveyard'==_0x39b022['root']['rootName'])continue;const {row:_0x9cb974,column:_0x10ba5d}=_0x1e8a1e['getCellLocation'](_0x39b022),_0x4775f5=_0x39b022['hasAttribute']('rowspan')?_0x39b022['getAttribute']('rowspan')-0x1:0x0,_0xce5e20=_0x39b022['hasAttribute']('colspan')?_0x39b022['getAttribute']('colspan')-0x1:0x0;_0x59830b=_0x9cb974<_0x59830b?_0x9cb974:_0x59830b,_0x9f1aaf=_0x9cb974+_0x4775f5>_0x9f1aaf?_0x9cb974+_0x4775f5:_0x9f1aaf,_0x418e72=_0x10ba5d<_0x418e72?_0x10ba5d:_0x418e72,_0x500207=_0x10ba5d+_0xce5e20>_0x500207?_0x10ba5d+_0xce5e20:_0x500207;}return{'minRow':_0x59830b,'maxRow':_0x9f1aaf,'minColumn':_0x418e72,'maxColumn':_0x500207};}['_setupColumnsRowsFixing'](){const _0x1ee9fe=this['editor'],_0x585cd7=_0x1ee9fe['plugins']['get']('TrackChangesEditing'),_0x41d7aa=_0x1ee9fe['plugins']['get']('TableUtils');_0x1ee9fe['model']['document']['on']('change:data',()=>{const _0x4ba068=Array['from'](_0x1ee9fe['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x10a181,data:_0x3e1aaa}of _0x4ba068){const {group:_0x50a7b4,id:_0xb3e3fd,subType:_0x28fcb7}=tt(_0x10a181);if('suggestion'!=_0x50a7b4)continue;if(null!=_0x3e1aaa['oldRange'])continue;const _0x4f8534=_0x585cd7['getSuggestion'](_0xb3e3fd);this['_tablePostFixingSubtypes']['includes'](_0x28fcb7)&&this['_tableSuggestions']['add'](_0x4f8534);}},{'priority':'low'});const _0x41989e=(_0x8d384a,_0x1a559f)=>{let _0x5770d1=!0x1;const _0x2a1c10=_0x1a559f['createRangeOn'](_0x8d384a),_0x51fbb1=_0x8d384a['findAncestor']('table'),_0x3aaeef=_0x41d7aa['getCellLocation'](_0x8d384a);for(const _0x10c2e9 of this['_tableSuggestions']){const _0x3ec8c4=_0x10c2e9['subType'],_0x5ecbe9=_0x3ec8c4['startsWith']('tablePaste'),_0x1259d4=_0x3ec8c4['substr'](_0x5ecbe9?0xa:0x5),_0x22576e=_0x1259d4['toLowerCase'](),_0x244317=_0x22576e['substr'](0x0,0x3)+'span',_0x9684e9='min'+_0x1259d4,_0x194263='max'+_0x1259d4;if(!_0x10c2e9['isInContent'])continue;if(_0x51fbb1!=_0x10c2e9['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x10c2e9['isIntersectingWithRange'](_0x2a1c10))continue;const _0x58b983=_0x8d384a['hasAttribute'](_0x244317)?_0x8d384a['getAttribute'](_0x244317)-0x1:0x0,_0x1cb6f3=this['_getSuggestionCoords'](_0x10c2e9),_0xef1f7c=_0x1cb6f3[_0x9684e9],_0x5bc755=_0x1cb6f3[_0x194263];_0xef1f7c<=_0x3aaeef[_0x22576e]&&_0x3aaeef[_0x22576e]+_0x58b983<=_0x5bc755&&(_0x10c2e9['addRange'](_0x2a1c10),_0x5770d1=!0x0);}return _0x5770d1;};_0x1ee9fe['model']['document']['registerPostFixer'](_0x4ef1d1=>{let _0x3484f8=!0x1;for(const _0x385ce7 of _0x1ee9fe['model']['document']['differ']['getChanges']())if('insert'==_0x385ce7['type']){if('tableRow'==_0x385ce7['name']){for(const _0x93cff8 of _0x385ce7['position']['nodeAfter']['getChildren']())_0x3484f8=_0x3484f8||_0x41989e(_0x93cff8,_0x4ef1d1);}else'tableCell'==_0x385ce7['name']&&(_0x3484f8=_0x3484f8||_0x41989e(_0x385ce7['position']['nodeAfter'],_0x4ef1d1));}return _0x3484f8;});}['_getSuggestionCoords'](_0x344d88){return this['_getCoordsForCells'](_0x344d88['getRanges']()['map'](_0x50d4af=>_0x50d4af['start']['nodeAfter']));}};function De(_0x23dc0d){return Array['from'](new Set(_0x23dc0d)['values']());}var Ue=class extends _0x1a4f44{static get['requires'](){return[ve];}['afterInit'](){const _0x754cba=this['editor'],_0x7fff26=_0x754cba['model']['document']['selection'],_0x4c36ee=_0x754cba['locale'];if(!_0x754cba['plugins']['has']('TableEditing'))return;const _0xa48a43=_0x754cba['plugins']['get']('TrackChangesEditing'),_0x300cfa=_0x754cba['plugins']['get']('TableUtils'),_0x402765=_0x754cba['plugins']['get'](ve);_0x402765['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0xa48a43['enableCommand']('mergeTableCells',()=>{const _0xda4078=_0x300cfa['getSelectionAffectedTableCells'](_0x754cba['model']['document']['selection']);_0x754cba['model']['change'](()=>{_0xa48a43['markMultiRangeBlockFormat'](_0xda4078,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x754cba['commands']['get']('mergeTableCells')['on']('execute',(_0x4c55db,_0x3c8eb8)=>{_0x754cba['commands']['get']('trackChanges')['value']&&(_0x3c8eb8['length']>0x0&&_0x3c8eb8[_0x3c8eb8['length']-0x1]&&_0x3c8eb8[_0x3c8eb8['length']-0x1]['forceDefaultExecution']||_0xa48a43['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x4c55db['stop']());},{'priority':'highest'});for(const _0x1398af of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0xc88254=_0x754cba['commands']['get'](_0x1398af);_0xa48a43['enableCommand'](_0x1398af,()=>{const _0x424429=_0x754cba['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2fbfc3=>_0x2fbfc3['is']('element','tableCell')),_0x364b76=_0xc88254['value'];_0x754cba['model']['change'](()=>{_0xa48a43['markMultiRangeBlockFormat']([_0x424429,_0x364b76],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x5308f2 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x167cde=_0x754cba['commands']['get'](_0x5308f2);_0xa48a43['enableCommand'](_0x5308f2,()=>{const _0x5c42f3=_0x300cfa['getSelectionAffectedTableCells'](_0x754cba['model']['document']['selection'])[0x0],_0x37759d=_0x5c42f3['findAncestor']('table'),{column:_0x2049ea,row:_0x374acc}=_0x300cfa['getCellLocation'](_0x5c42f3);let _0x477ac9=[];if('horizontally'==_0x167cde['direction']){const _0x2eebb3=_0x300cfa['createTableWalker'](_0x37759d,{'startRow':_0x374acc,'endRow':_0x374acc,'includeAllSlots':!0x0});_0x477ac9=Array['from'](_0x2eebb3)['map'](_0xde08c9=>_0xde08c9['cell']);}else{const _0xd83794=_0x300cfa['createTableWalker'](_0x37759d,{'column':_0x2049ea,'includeAllSlots':!0x0});_0x477ac9=Array['from'](_0xd83794)['map'](_0x331777=>_0x331777['cell']);}_0x754cba['model']['change'](_0x394a73=>{_0xa48a43['markBlockFormat'](_0x394a73['createRangeOn'](_0x5c42f3),{'commandName':_0x5308f2,'commandParams':[]},_0x477ac9,_0x5308f2);});});}_0xa48a43['descriptionFactory']['registerDescriptionCallback'](_0x2216de=>{if('formatBlock'!=_0x2216de['type']&&'formatInline'!=_0x2216de['type'])return;const {data:_0x48fc9a}=_0x2216de;return _0x48fc9a&&'mergeTableCells'==_0x48fc9a['commandName']?{'type':'format','content':St(_0x4c36ee,'*Merge\x20cells*')}:void 0x0;}),_0xa48a43['descriptionFactory']['registerDescriptionCallback'](_0xcb0791=>{if('formatBlock'!=_0xcb0791['type']&&'formatInline'!=_0xcb0791['type'])return;const {data:_0xb5bf54}=_0xcb0791;return _0xb5bf54?'splitTableCellVertically'==_0xb5bf54['commandName']?{'type':'format','content':St(_0x4c36ee,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0xb5bf54['commandName']?{'type':'format','content':St(_0x4c36ee,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x4eca1e=_0x402765['_acceptFormatSuggestionCallbackFactory']();for(const _0x1e3ea2 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0xa48a43['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1e3ea2,'accept',_0x4eca1e);for(const _0x2b4c75 of['splitTableCellVertically','splitTableCellHorizontally'])_0xa48a43['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2b4c75,'accept',_0x4eca1e);_0xa48a43['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0xc9b64c=>{_0x754cba['model']['change'](_0x589753=>{const _0x134dbf=Array['from'](_0x7fff26['getRanges']())['map'](_0x741067=>rt['fromRange'](_0x741067));_0x589753['setSelection'](_0xc9b64c),_0x754cba['commands']['get']('mergeTableCells')['refresh'](),_0x754cba['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x50bdc2=_0x134dbf['filter'](_0x3076b3=>'$graveyard'!=_0x3076b3['root']['rootName']);_0x50bdc2['length']>0x0&&_0x589753['setSelection'](_0x50bdc2);for(const _0x45e25c of _0x134dbf)_0x45e25c['detach']();});});for(const _0x5bc19c of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x3c9ab8=_0x754cba['commands']['get'](_0x5bc19c);_0x3c9ab8['on']('set:isEnabled',(_0x4549b7,_0x132a3f,_0x1dc66b)=>{if(_0x1dc66b){const _0x54da5f=_0x754cba['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x29d1e7=>_0x29d1e7['is']('element','tableCell'));this['_areMergableCells'](_0x3c9ab8['value'],_0x54da5f)||(_0x4549b7['return']=!0x1,_0x4549b7['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x46cec0=this['editor']['commands']['get']('mergeTableCells'),_0x365857=this['editor']['plugins']['get']('TableUtils');if(!_0x46cec0['isEnabled'])return!0x1;const _0x4c1cc6=_0x365857['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x3c0c7f of _0x4c1cc6)for(const _0xf27fe5 of _0x4c1cc6)if(_0x3c0c7f!=_0xf27fe5&&!this['_areMergableCells'](_0x3c0c7f,_0xf27fe5))return!0x1;return!0x0;}['_areMergableCells'](_0x218f20,_0x3bb63a){const _0xcc6e7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x39f539=this['editor']['model']['createRangeOn'](_0x218f20),_0x27a2e6=this['editor']['model']['createRangeOn'](_0x3bb63a),_0x5a37e3=new Set(),_0x133457=new Set();for(const _0x2883c9 of _0xcc6e7['getSuggestions']())if(('insertion'==_0x2883c9['type']||'deletion'==_0x2883c9['type']||'mergeTableCells'==_0x2883c9['subType'])&&_0x2883c9['isInContent']){for(const _0x2005fb of _0x2883c9['getRanges']())_0x2005fb['containsRange'](_0x39f539,!0x0)&&_0x5a37e3['add'](_0x2883c9['type']+':'+_0x2883c9['author']['id']),_0x2005fb['containsRange'](_0x27a2e6,!0x0)&&_0x133457['add'](_0x2883c9['type']+':'+_0x2883c9['author']['id']);}if(_0x5a37e3['size']!=_0x133457['size'])return!0x1;for(const _0x1e6d60 of _0x5a37e3)if(!_0x133457['has'](_0x1e6d60))return!0x1;return!0x0;}},Pe=class extends _0x1a4f44{static get['requires'](){return[ve];}['afterInit'](){const _0x4bebc0=this['editor'];if(!_0x4bebc0['plugins']['has']('TableEditing'))return;const _0x81cb3=_0x4bebc0['locale'],_0x2c9f09=_0x4bebc0['plugins']['get']('TrackChangesEditing');_0x2c9f09['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x2c9f09['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x2c9f09['descriptionFactory']['registerAttributeLabel']('headingRows',St(_0x81cb3,'FORMAT_HEADER_ROW')),_0x2c9f09['descriptionFactory']['registerAttributeLabel']('headingColumns',St(_0x81cb3,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5801a6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2128e2=this['editor']['plugins']['get'](ve)['_acceptFormatSuggestionCallbackFactory']();_0x5801a6['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x2128e2),_0x5801a6['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x2128e2),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x40bb04=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4c444a=this['editor']['plugins']['get']('TableUtils');function _0x3d9c0b({showActiveMarker:_0x18997d=!0x0,setDataAttribute:_0x7ef056=!0x0}={}){return(_0x35526f,_0x4e53e1,_0x43a26b)=>{const {type:_0x1f7b77,id:_0x4ee7d9}=tt(_0x4e53e1['markerName']);if(!_0x40bb04['hasSuggestion'](_0x4ee7d9))return;const _0x5cf4cb=_0x40bb04['getSuggestion'](_0x4ee7d9),_0x413eb9=_0x5cf4cb['data'];if('formatBlock'!=_0x5cf4cb['type']||!_0x413eb9||'setTableColumnHeader'!=_0x413eb9['commandName'])return;if(_0x4e53e1['item'])return void _0x35526f['stop']();if(!_0x43a26b['consumable']['consume'](_0x4e53e1['markerRange'],_0x35526f['name']))return;const _0x19bb7e=_0x4e53e1['markerRange']['start']['nodeAfter'],_0x9730e8=_0x4e53e1['markerRange']['end']['nodeBefore'],_0x1b2f03=_0x19bb7e['parent']['parent'],{column:_0x1e9b86}=_0x4c444a['getCellLocation'](_0x19bb7e),{column:_0x1d09ba}=_0x4c444a['getCellLocation'](_0x9730e8);for(let _0x437dcc=_0x1e9b86;_0x437dcc<=_0x1d09ba;_0x437dcc++){const _0x352e14=_0x4c444a['createTableWalker'](_0x1b2f03,{'column':_0x437dcc,'includeAllSlots':!0x1});for(const _0x11e8d5 of _0x352e14){const _0x184dfc=_0x11e8d5['cell'],_0x2c2775=_0x43a26b['mapper']['toViewElement'](_0x184dfc);_0x43a26b['writer']['addClass']('ck-suggestion-marker-'+_0x1f7b77,_0x2c2775),_0x7ef056&&_0x43a26b['writer']['setAttribute']('data-suggestion',_0x4ee7d9,_0x2c2775),_0x43a26b['mapper']['bindElementToMarker'](_0x2c2775,_0x4e53e1['markerName']),_0x18997d&&(_0x40bb04['activeMarkers']['includes'](_0x4e53e1['markerName'])?_0x43a26b['writer']['addClass']('ck-suggestion-marker--active',_0x2c2775):_0x43a26b['writer']['removeClass']('ck-suggestion-marker--active',_0x2c2775));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x3d9c0b(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x493f26,_0x569b38,_0x10797f)=>{_0x10797f['options']['showSuggestionHighlights']&&_0x3d9c0b({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x493f26,_0x569b38,_0x10797f);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x5cfd57,_0x5b7622,_0x355a6b)=>{const {type:_0x1a9c65,id:_0x7bb6d9}=tt(_0x5b7622['markerName']);if(!_0x40bb04['hasSuggestion'](_0x7bb6d9))return;const _0x5a1788=_0x40bb04['getSuggestion'](_0x7bb6d9),_0x55a8b0=_0x5a1788['data'];if('formatBlock'!=_0x5a1788['type']||!_0x55a8b0||'setTableColumnHeader'!=_0x55a8b0['commandName'])return;const _0x5b938d=_0x355a6b['mapper']['markerNameToElements'](_0x5b7622['markerName']);if(_0x5b938d){for(const _0xcaed5 of _0x5b938d)_0x355a6b['writer']['removeClass']('ck-suggestion-marker-'+_0x1a9c65,_0xcaed5),_0x355a6b['writer']['removeClass']('ck-suggestion-marker--active',_0xcaed5),_0x355a6b['writer']['removeAttribute']('data-suggestion',_0xcaed5),_0x355a6b['mapper']['unbindElementFromMarkerName'](_0xcaed5,_0x5b7622['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x4ed432=this['editor'],_0x8e7048=_0x4ed432['locale'];function _0x7de4e0(_0x5ec08a){return{'type':'format','content':St(_0x8e7048,'*Format:*\x20%0',_0x5ec08a)};}_0x4ed432['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2102e6=>{if('formatBlock'!=_0x2102e6['type'])return;const {data:_0x35324d}=_0x2102e6;return _0x35324d?'setTableRowHeader'==_0x35324d['commandName']?_0x35324d['commandParams'][0x0]['forceValue']?_0x7de4e0(St(_0x8e7048,'FORMAT_HEADER_ROW')):_0x7de4e0(St(_0x8e7048,'FORMAT_REGULAR_ROW')):'setTableColumnHeader'==_0x35324d['commandName']?_0x35324d['commandParams'][0x0]['forceValue']?_0x7de4e0(St(_0x8e7048,'FORMAT_HEADER_COLUMN')):_0x7de4e0(St(_0x8e7048,'FORMAT_REGULAR_COLUMN')):void 0x0:void 0x0;});}},xe=class extends _0x1a4f44{static get['requires'](){return[ve];}['afterInit'](){const _0x2863f4=this['editor'];if(!_0x2863f4['plugins']['has']('TableEditing')||!_0x2863f4['config']['get']('table.enableFooters'))return;const _0x5598cc=_0x2863f4['locale'],_0x4972d6=_0x2863f4['plugins']['get']('TrackChangesEditing');_0x4972d6['enableDefaultAttributesIntegration']('setTableFooterRow'),_0x4972d6['descriptionFactory']['registerAttributeLabel']('footerRows',St(_0x5598cc,'FORMAT_FOOTER_ROW'));}},Ge=class extends _0x1a4f44{['afterInit'](){const _0x2b551c=this['editor'],_0x219e10=_0x2b551c['locale'],_0x256e22=_0x2b551c['plugins']['get']('TrackChangesEditing');function _0x555fc3(_0x4f37c2){return{'type':'format','content':''+St(_0x219e10,'*Set\x20table\x20type:*\x20%0',_0x4f37c2)};}_0x2b551c['plugins']['has']('TableLayout')&&(_0x256e22['enableCommand']('insertTableLayout'),_0x256e22['enableDefaultAttributesIntegration']('tableType'),_0x256e22['descriptionFactory']['registerElementLabel'](_0x5ba151=>_0x5ba151['is']('element','table')&&'layout'===_0x5ba151['getAttribute']('tableType'),_0x561d37=>St(_0x219e10,'ELEMENT_LAYOUT_TABLE',_0x561d37)),_0x256e22['descriptionFactory']['registerDescriptionCallback'](_0x4743aa=>{const {data:_0x595137}=_0x4743aa;if(_0x595137&&'tableType'==_0x595137['key'])switch(_0x595137['newValue']){case'layout':return _0x555fc3(St(_0x219e10,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x555fc3(St(_0x219e10,'ELEMENT_CONTENT_TABLE'));}}));}};const He=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],$e=/* #__PURE__ -- @preserve */
|
|
25
|
-
Object['fromEntries'](He['map'](_0x3371a0=>[_0x3371a0,null]));var Ve=class extends _0x1a4f44{static get['requires'](){return[ve];}['afterInit'](){const _0x9a9f6c=this['editor'];if(!_0x9a9f6c['plugins']['has']('TableClipboard'))return;const _0x7e8bf4=_0x9a9f6c['plugins']['get']('TrackChangesEditing'),_0x5623c8=_0x9a9f6c['plugins']['get']('TableUtils'),_0x286a36=_0x9a9f6c['plugins']['get'](ve),_0x588309=_0x9a9f6c['plugins']['get']('TableClipboard'),_0x1e73b6=_0x9a9f6c['plugins']['get']('TableSelection'),_0x2fe336=_0x9a9f6c['plugins']['get'](mt);_0x286a36['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x9a9f6c['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x9a9f6c['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x1020cd=null,_0x2565b0=!0x1;_0x2fe336['on']('contentInsertion',(_0x3518c8,_0x32755a)=>{_0x2565b0='paste'===_0x32755a['method'];}),_0x9a9f6c['model']['on']('insertContent',(_0xe9925e,_0x21e575)=>{if(!_0x2565b0&&null===_0x1e73b6['getSelectedTableCells']())return;const [_0x55fabb,_0x123a3f]=_0x21e575,_0x34cbbc=_0x21e575[_0x21e575['length']-0x1];_0x34cbbc&&_0x34cbbc['forceDefaultExecution']||_0x7e8bf4['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x235252,_0x5b6f9c,_0x223330,_0x1afe5b,_0x12f015){if(_0x5b6f9c&&!_0x5b6f9c['is']('documentSelection'))return!0x1;const _0x4b4557=_0x12f015['getTableIfOnlyTableInContent'](_0x235252,_0x223330);if(!_0x4b4557||!je(_0x4b4557,void 0x0,_0x1afe5b))return!0x1;const _0x53ecea=_0x1afe5b['getSelectionAffectedTableCells'](_0x223330['document']['selection']);if(!_0x53ecea['length'])return!0x1;const _0x521e89=_0x53ecea[0x0]['findAncestor']('table'),_0x477248=_0x1afe5b['getRowIndexes'](_0x53ecea),_0x17a8ec=_0x1afe5b['getColumnIndexes'](_0x53ecea),_0x347913={'startRow':_0x477248['first'],'endRow':_0x477248['last'],'startColumn':_0x17a8ec['first'],'endColumn':_0x17a8ec['last']};return 0x1==_0x53ecea['length']&&(_0x347913['endRow']+=_0x1afe5b['getRows'](_0x4b4557)-0x1,_0x347913['endColumn']+=_0x1afe5b['getColumns'](_0x4b4557)-0x1),je(_0x521e89,_0x347913,_0x1afe5b);}(_0x55fabb,_0x123a3f,_0x9a9f6c['model'],_0x5623c8,_0x588309)&&(_0xe9925e['stop'](),_0x1020cd={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x9a9f6c['model']['change'](()=>{_0x9a9f6c['model']['insertContent'](_0x21e575[0x0],_0x21e575[0x1],_0x21e575[0x2],{'forceDefaultExecution':!0x0});const _0x9d2e0b=_0x25321b(),{rowInsertionRanges:_0x4246f4,columnInsertionRanges:_0x1345fb,insertionRanges:_0x216a10,deletionRanges:_0x47886b,cells:_0xa2e698}=_0x1020cd;_0x4246f4['length']&&_0x7e8bf4['markMultiRangeInsertion'](_0x4246f4,'tablePasteRow',{'tablePasteChainId':_0x9d2e0b}),_0x1345fb['length']&&_0x7e8bf4['markMultiRangeInsertion'](_0x1345fb,'tablePasteColumn',{'tablePasteChainId':_0x9d2e0b}),_0x216a10['length']&&(_0x7e8bf4['markMultiRangeInsertion'](_0x216a10,'tablePaste',{'tablePasteChainId':_0x9d2e0b,'skipNestingCheck':!0x0}),_0x216a10['forEach'](_0x136c0b=>_0x136c0b['detach']?.())),_0x47886b['length']&&(_0x7e8bf4['markMultiRangeDeletion'](_0x47886b,'tablePaste',{'tablePasteChainId':_0x9d2e0b,'skipNestingCheck':!0x0}),_0x47886b['forEach'](_0x23f6e6=>_0x23f6e6['detach']?.()));const _0x5944ce=_0x7e8bf4['markMultiRangeBlockFormat'](_0xa2e698['map'](({element:_0x5c2654})=>_0x5c2654),{'formatGroupId':_0x25321b()},[],'tablePasteCell',{'tablePasteChainId':_0x9d2e0b});if(_0x5944ce){const _0x2e0a97=_0x5944ce['getMarkers'](),_0x271ce9=[];for(const {element:_0x51bd9d,attributes:_0x49bdf9}of _0xa2e698){if(!_0x49bdf9)continue;const _0x12d28f=_0x9a9f6c['model']['createRangeOn'](_0x51bd9d),_0x175111=_0x2e0a97['find'](_0x221b82=>_0x221b82['getRange']()['isEqual'](_0x12d28f));_0x175111&&_0x271ce9['push']([_0x175111['name'],_0x49bdf9]);}_0x271ce9['length']&&_0x5944ce['setAttribute']('markerAttributes',Object['fromEntries'](_0x271ce9));}_0x1020cd=null;}));},{'priority':_0x535ad9['high']+0xa}),_0x2fe336['on']('contentInsertion',()=>{_0x2565b0=!0x1;},{'priority':'lowest'}),_0x9a9f6c['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x1ba305,_0x36fb89)=>{const [_0x408f6d,_0x23dee7,,_0x4b5e8a]=_0x36fb89;if(!_0x1020cd)return;_0x1ba305['stop']();const _0x4cc398=_0x408f6d['cell'],_0x58c42b=_0x23dee7,_0x4078bd=We(_0x4cc398),_0x142ac9=We(_0x58c42b);_0x1ba305['return']=_0x4cc398;let _0x54277c=null,_0x340c20=null;if(_0x142ac9||_0x4078bd){if(_0x4078bd&&!_0x142ac9){_0x4b5e8a['remove'](_0x4cc398['getChild'](0x0));for(const _0x115411 of Array['from'](_0x58c42b['getChildren']()))_0x4b5e8a['insert'](_0x115411,_0x4cc398,'end');const _0x958701=_0x1020cd['rowInsertionIndexes']['includes'](_0x408f6d['row']),_0x786d49=_0x1020cd['columnInsertionIndexes']['includes'](_0x408f6d['column']);_0x958701||_0x786d49||(_0x54277c=rt['fromRange'](_0x4b5e8a['createRangeIn'](_0x4cc398)));}else _0x142ac9&&!_0x4078bd&&(_0x340c20=_0x4b5e8a['createRangeIn'](_0x4cc398));}else{const _0x28ba94=_0x4b5e8a['createElement']('tableCellSuggestion'),_0x329fb5=_0x4b5e8a['createElement']('tableCellSuggestion');_0x4b5e8a['wrap'](_0x4b5e8a['createRangeIn'](_0x4cc398),_0x329fb5),_0x4b5e8a['insert'](_0x28ba94,_0x4cc398,0x0);for(const _0x5634e8 of Array['from'](_0x58c42b['getChildren']()))_0x4b5e8a['insert'](_0x5634e8,_0x28ba94,'end');_0x54277c=rt['fromRange'](_0x4b5e8a['createRangeOn'](_0x28ba94)),_0x340c20=rt['fromRange'](_0x4b5e8a['createRangeOn'](_0x329fb5));}const _0x389e5f=Array['from'](_0x58c42b['getAttributes']())['filter'](([_0x3ebf4f])=>He['includes'](_0x3ebf4f));_0x1020cd['cells']['push']({'element':_0x4cc398,'attributes':_0x389e5f['length']?Object['fromEntries'](_0x389e5f):null}),_0x54277c&&_0x1020cd['insertionRanges']['push'](_0x54277c),_0x340c20&&_0x1020cd['deletionRanges']['push'](_0x340c20);},{'priority':'high'}),_0x5623c8['on']('insertColumns',(_0x57b2f2,_0x2acafd)=>{const [_0xbc163a,_0x4d1f71={}]=_0x2acafd;if(!_0x1020cd)return;const _0x4d7ad9=_0x4d1f71['at']||0x0,_0x3615fe=_0x4d1f71['columns']||0x1;_0x1020cd['columnInsertionIndexes']=new Array(_0x3615fe)['fill'](_0x4d7ad9)['map']((_0x16e674,_0x319aee)=>_0x16e674+_0x319aee);for(const {cell:_0x3c594d}of _0x5623c8['createTableWalker'](_0xbc163a,{'startColumn':_0x4d7ad9,'endColumn':_0x4d7ad9+_0x3615fe-0x1}))_0x1020cd['columnInsertionRanges']['push'](_0x9a9f6c['model']['createRangeOn'](_0x3c594d));},{'priority':'low'}),_0x5623c8['on']('insertRows',(_0x1d387a,_0x572def)=>{const [_0xfcbe74,_0x18890e={}]=_0x572def;if(!_0x1020cd)return;const _0x7c29f7=_0x18890e['at']||0x0,_0x4eb057=_0x18890e['rows']||0x1;_0x1020cd['rowInsertionIndexes']=new Array(_0x4eb057)['fill'](_0x7c29f7)['map']((_0x43fe3a,_0x364277)=>_0x43fe3a+_0x364277);for(const {cell:_0x4ed591}of _0x5623c8['createTableWalker'](_0xfcbe74,{'startRow':_0x7c29f7,'endRow':_0x7c29f7+_0x4eb057-0x1}))_0x1020cd['rowInsertionRanges']['push'](_0x9a9f6c['model']['createRangeOn'](_0x4ed591));},{'priority':'low'}),_0x7e8bf4['descriptionFactory']['registerDescriptionCallback'](_0x5e991f=>{if(_0x5e991f['subType']&&_0x5e991f['subType']['startsWith']('tablePaste'))return _0x5e991f['previous']?{}:{'type':'insertion','content':St(_0x9a9f6c['locale'],'*Replace\x20table\x20cells*')};});const _0x133b27=()=>!0x1;for(const _0x1daa57 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x7e8bf4['_suggestionFactory']['registerCustomCallback']('insertion',_0x1daa57,'join',_0x133b27),_0x7e8bf4['_suggestionFactory']['registerCustomCallback']('deletion',_0x1daa57,'join',_0x133b27),_0x7e8bf4['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1daa57,'join',_0x133b27);_0x7e8bf4['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x133b27),_0x7e8bf4['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x1986ae,_0x26e668,_0x46d45d)=>{const _0x35f7ea=_0x1986ae['map'](_0x920f36=>_0x920f36['getContainedElement']())['filter'](_0x194c2b=>_0x194c2b),_0x56ca4a=new Map(_0x35f7ea['map'](_0x26d92a=>[_0x26d92a,null]));if(_0x1020cd){for(const {element:_0x10aaa7,attributes:_0x2986c4}of _0x1020cd['cells'])_0x2986c4&&_0x56ca4a['set'](_0x10aaa7,_0x2986c4);}else{if(_0x46d45d&&_0x46d45d['markerAttributes'])for(const [_0x9c1a81,_0x22e5b6]of Object['entries'](_0x46d45d['markerAttributes'])){const _0x4dbc1f=_0x9a9f6c['model']['markers']['get'](_0x9c1a81),_0x4a4d44=_0x4dbc1f?_0x4dbc1f['getRange']()['getContainedElement']():null;_0x4a4d44&&_0x56ca4a['set'](_0x4a4d44,_0x22e5b6);}}_0x9a9f6c['model']['change'](_0x2d42f4=>{for(const [_0x44e868,_0x444daa]of _0x56ca4a)_0x2d42f4['setAttributes']({...$e,..._0x444daa},_0x44e868);});});const _0x2ceb73=(_0x27b6bd,_0x54fa62)=>{_0x7e8bf4['_suggestionFactory']['registerCustomCallback'](_0x27b6bd,'tablePaste',_0x54fa62,(_0x1cc594,_0x33a5d4,_0x12aaaf)=>{_0x9a9f6c['model']['change'](_0x2a9993=>{const _0x51cd4d=[];for(const _0x3b3bb7 of _0x1cc594){const _0x4d55bd=_0x3b3bb7['start']['nodeAfter'];_0x4d55bd['is']('element','tableCellSuggestion')&&_0x51cd4d['push'](_0x4d55bd);}_0x7e8bf4['_suggestionFactory']['getSuggestionCallback'](_0x27b6bd,null,_0x54fa62)(_0x1cc594,_0x33a5d4,_0x12aaaf);for(const _0x1ab507 of _0x51cd4d)'$graveyard'!=_0x1ab507['root']['rootName']&&_0x2a9993['unwrap'](_0x1ab507);});});};_0x2ceb73('insertion','accept'),_0x2ceb73('insertion','discard'),_0x2ceb73('deletion','accept'),_0x2ceb73('deletion','discard'),_0x7e8bf4['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x47362f=>{const _0x17b284=_0x47362f['map'](_0x10c79e=>_0x10c79e['getContainedElement']()),_0x2f5dd3=_0x17b284[0x0]['findAncestor']('table'),{minRow:_0x41b7b5,maxRow:_0x14505b}=_0x286a36['_getCoordsForCells'](_0x17b284);_0x5623c8['removeRows'](_0x2f5dd3,{'at':_0x41b7b5,'rows':_0x14505b-_0x41b7b5+0x1});}),_0x7e8bf4['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x97f7df=>{const _0x28ee03=_0x97f7df['map'](_0x34d90d=>_0x34d90d['getContainedElement']()),_0x1fd066=_0x28ee03[0x0]['findAncestor']('table'),{minColumn:_0x2f0d98,maxColumn:_0xa6260d}=_0x286a36['_getCoordsForCells'](_0x28ee03);_0x5623c8['removeColumns'](_0x1fd066,{'at':_0x2f0d98,'columns':_0xa6260d-_0x2f0d98+0x1});});const _0xcd54c3=(_0x6dbac1,_0xa8e42f)=>{if(!_0xa8e42f['subType']||!_0xa8e42f['subType']['startsWith']('tablePaste'))return;const _0x59dcc4=_0xa8e42f['attributes']['tablePasteChainId'],_0x528c05=_0x7e8bf4['getSuggestions']()['filter'](_0x451ed1=>_0x451ed1['isInContent']&&_0x451ed1['attributes']&&_0x451ed1['attributes']['tablePasteChainId']==_0x59dcc4);_0x528c05['length']&&_0xa8e42f['getAllAdjacentSuggestions']()['length']!=_0x528c05['length']&&_0x528c05['reduce']((_0x467c08,_0x42b1db)=>(_0x467c08['next']=_0x42b1db,_0x42b1db['previous']=_0x467c08,_0x42b1db));};function _0x921c0b(_0x57c01e,_0x4fd8c3=!0x0){const {id:_0x3ed496,authorId:_0x5c3a6c}=tt(_0x57c01e['markerName']),_0x203d96=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x492559=_0x7e8bf4['activeMarkers']['includes'](_0x57c01e['markerName']);return _0x492559&&_0x203d96['push']('ck-suggestion-marker--active'),{'classes':_0x203d96,'attributes':{'data-suggestion':_0x3ed496,'data-author-id':_0x5c3a6c},'priority':_0x492559&&_0x4fd8c3?0xbc2:0xbb8};}_0x7e8bf4['on']('suggestionLoaded',_0xcd54c3,{'priority':'high'}),_0x7e8bf4['on']('suggestionUnloaded',_0xcd54c3,{'priority':'high'}),_0x9a9f6c['model']['document']['registerPostFixer'](()=>{let _0x5c9452=!0x1;const _0x551643=Array['from'](_0x9a9f6c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x7a0c28,data:_0x443f29}of _0x551643){const {group:_0x1f9354,type:_0x382349,id:_0xde829c}=tt(_0x7a0c28);if('suggestion'!=_0x1f9354||'deletion'!=_0x382349||_0x443f29['oldRange'])continue;if(!_0x7e8bf4['hasSuggestion'](_0xde829c))continue;const _0x12c0b7=_0x7e8bf4['getSuggestion'](_0xde829c)['getRanges'](),_0x327fd0=_0x9a9f6c['plugins']['get']('Users')['me'];for(const _0x54f84c of _0x7e8bf4['getSuggestions']())if(_0x54f84c['isInContent']&&_0x54f84c['author']==_0x327fd0&&'formatBlock'==_0x54f84c['type']&&'tablePasteCell'==_0x54f84c['subType']&&_0x54f84c['getRanges']()['every'](_0x36d269=>_0x12c0b7['some'](_0x84f0a=>_0x84f0a['containsRange'](_0x36d269,!0x0)))){for(const _0x4f41ac of _0x54f84c['getAllAdjacentSuggestions']())_0x4f41ac['isInContent']&&(_0x4f41ac['discard'](),_0x5c9452=!0x0);}}return _0x5c9452;}),_0x9a9f6c['model']['document']['registerPostFixer'](_0xf79ff3=>{const _0x89ec0c=_0x9a9f6c['commands']['get']('redo');if(!_0x89ec0c||!_0x89ec0c['_createdBatches']['has'](_0xf79ff3['batch']))return!0x1;let _0x37895c=!0x1;const _0x4c24ac=_0x9a9f6c['plugins']['get']('Users')['me'],_0x5ad371=_0x9a9f6c['model']['document']['differ']['getChanges'](),_0x4c6ba7=Array['from'](_0x9a9f6c['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x39c12f,data:_0x364753})=>{const {group:_0x1afe16,subType:_0x32ef67,authorId:_0x39bc34}=tt(_0x39c12f);return'suggestion'==_0x1afe16&&'tablePaste'==_0x32ef67&&_0x39bc34==_0x4c24ac['id']&&!_0x364753['oldRange'];});for(const _0x37265f of _0x5ad371){if('insert'!=_0x37265f['type']||'tableCellSuggestion'!=_0x37265f['name']||0x1!=_0x37265f['length'])continue;const _0x442a3f=_0xf79ff3['createRange'](_0x37265f['position'],_0x37265f['position']['getShiftedBy'](0x1));if(!_0x4c6ba7['find'](({data:_0x1809ba})=>_0x1809ba['newRange']['isEqual'](_0x442a3f))){for(const {name:_0x4d2f0c,data:_0x675df3}of _0x4c6ba7)if(_0x442a3f['containsRange'](_0x675df3['newRange'])){_0xf79ff3['updateMarker'](_0x4d2f0c,{'range':_0x442a3f}),_0x37895c=!0x0;break;}}}return _0x37895c;}),_0x9a9f6c['model']['document']['registerPostFixer'](_0x1b36a3=>{let _0x56c492=!0x1;const _0x24fc2f=_0x9a9f6c['plugins']['get']('Users')['me'],_0x2f32d6=_0x7e8bf4['getSuggestions']()['filter'](_0xb95e74=>_0xb95e74['isInContent']&&_0xb95e74['author']==_0x24fc2f),_0x2daee9=new Set(),_0x40a4e5=new Set();for(const _0x4576ab of _0x2f32d6)if('tablePaste'==_0x4576ab['subType'])for(const _0x5e0270 of _0x4576ab['getMarkers']()){const _0x3d55c5=_0x5e0270['getRange']()['getContainedElement']();if(_0x3d55c5){if(_0x3d55c5['is']('element','tableCellSuggestion')&&We(_0x3d55c5)){_0x4576ab['removeMarker'](_0x5e0270['name']),_0x2daee9['add'](_0x3d55c5),_0x56c492=!0x0;const _0x37c832=_0x3d55c5['nextSibling'],_0x3acb0e=_0x3d55c5['previousSibling'],_0x421095=_0x37c832&&_0x37c832['is']('element','tableCellSuggestion'),_0x5bde69=_0x3acb0e&&_0x3acb0e['is']('element','tableCellSuggestion');_0x421095&&!_0x2daee9['has'](_0x37c832)&&_0x40a4e5['add'](_0x37c832),_0x5bde69&&!_0x2daee9['has'](_0x3acb0e)&&_0x40a4e5['add'](_0x3acb0e);}else _0x3d55c5['is']('element','paragraph')&&_0x3d55c5['isEmpty']&&(_0x4576ab['removeMarker'](_0x5e0270['name']),_0x56c492=!0x0);}}else{if('tablePasteCell'==_0x4576ab['subType']){if(!_0x4576ab['attributes']||!_0x4576ab['attributes']['tablePasteChainId'])continue;const _0x4baa36=_0x4576ab['attributes']['markerAttributes'];if(_0x4baa36&&Object['keys'](_0x4baa36)['length'])continue;const _0x2662b5=_0x4576ab['attributes']['tablePasteChainId'];let _0x394139=!0x0,_0x4aa6c3=!0x0;for(const _0xfd74a3 of _0x2f32d6)if(_0xfd74a3['subType']&&_0xfd74a3['subType']['startsWith']('tablePaste')){if(!_0xfd74a3['attributes']['tablePasteChainId']){_0x4aa6c3=!0x1;break;}if(_0xfd74a3['id']!=_0x4576ab['id']&&_0xfd74a3['attributes']['tablePasteChainId']==_0x2662b5){_0x394139=!0x1;break;}}_0x4aa6c3&&_0x394139&&(_0x4576ab['removeMarkers'](),_0x56c492=!0x0);}}for(const _0x111898 of _0x2daee9)_0x1b36a3['remove'](_0x111898);for(const _0x26ed6e of _0x40a4e5)_0x1b36a3['unwrap'](_0x26ed6e);return _0x56c492;}),_0x9a9f6c['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x1ad0b7=>_0x921c0b(_0x1ad0b7),'converterPriority':'high'}),_0x9a9f6c['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x381a33,_0x32398d)=>_0x32398d['options']['showSuggestionHighlights']?_0x921c0b(_0x381a33,!0x1):null,'converterPriority':'high'});const _0x266b2f=_0x9a9f6c['editing']['view'];this['listenTo'](_0x266b2f['document'],'clipboardOutput',(_0x3b694e,_0xb5c023)=>{const _0x951b6b=[];for(const _0x275930 of _0x266b2f['createRangeIn'](_0xb5c023['content'])['getItems']())_0x275930['is']('element','suggestion-td')&&_0x951b6b['push'](_0x275930);_0x266b2f['change'](_0x1ce01c=>{for(const _0x3287a2 of _0x951b6b)_0x1ce01c['move'](_0x1ce01c['createRangeIn'](_0x3287a2),_0x1ce01c['createPositionBefore'](_0x3287a2)),_0x1ce01c['remove'](_0x3287a2);});});}};function We(_0x424cc4){if(_0x424cc4['isEmpty'])return!0x0;const _0x297a9f=_0x424cc4['getChild'](0x0);return _0x297a9f['is']('element','paragraph')&&_0x297a9f['isEmpty'];}function je(_0x3e3258,_0xd9cc17={},_0x513c64){for(const {isAnchor:_0x41b359,cellHeight:_0x50921b,cellWidth:_0x462f96}of _0x513c64['createTableWalker'](_0x3e3258,{'includeAllSlots':!0x0,..._0xd9cc17}))if(!_0x41b359||0x1!=_0x50921b||0x1!=_0x462f96)return!0x1;return!0x0;}var Ke=class extends _0x1a4f44{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x508e9a=this['editor']['plugins']['get']('TrackChangesEditing');_0x508e9a['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x508e9a['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x508e9a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x508e9a['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x508e9a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x508e9a['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x578dcd,_0x27acbf){const _0xc30abd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5af049=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x54197b=_0x27acbf['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x523334=_0x5af049['getColumnGroupElement'](_0x54197b);let _0x34659f=_0x523334?_0x5af049['getTableColumnsWidths'](_0x523334):null,_0x3c4e67=_0x54197b['getAttribute']('tableWidth')||null;const _0x722458=_0x27acbf['tableWidth']||_0x3c4e67,_0x4575ff=_0x27acbf['columnWidths']||_0x34659f,_0x54495c=this['editor']['plugins']['get']('Users')['me'];for(const _0x5a1fd8 of _0xc30abd['getSuggestions']()){const _0x30d87b=_0x5a1fd8['getContainedElement']();if('resizeTable'===_0x5a1fd8['subType']&&_0x30d87b===_0x54197b){_0x5a1fd8['author']!==_0x54495c&&_0x5a1fd8['discard']();const _0x474c75=_0x5a1fd8['data']['commandParams'];_0x3c4e67=_0x474c75[0x0]['tableWidth'],_0x34659f=_0x474c75[0x0]['columnWidths'];break;}}_0x578dcd({'table':_0x54197b,'tableWidth':_0x722458,'columnWidths':_0x4575ff}),_0xc30abd['markBlockFormat'](_0x54197b,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x3c4e67,'columnWidths':_0x34659f}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x5e42b4){if('formatBlock'!=_0x5e42b4['type']&&'formatInline'!=_0x5e42b4['type'])return;const {data:_0x2530d0}=_0x5e42b4;return _0x2530d0&&'resizeTable'===_0x2530d0['formatGroupId']?{'type':'format','content':St(this['editor']['locale'],'*Format:*\x20resize\x20table')}:void 0x0;}},ze=class extends _0x1a4f44{['afterInit'](){const _0x3718a7=this['editor'];_0x3718a7['plugins']['has']('Template')&&_0x3718a7['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}},Xe=class extends _0x1a4f44{['afterInit'](){const _0x3485a5=this['editor'];if(!_0x3485a5['commands']['get']('insertTableOfContents'))return;_0x3485a5['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x1d8f19=_0x3485a5['plugins']['get']('TrackChangesEditing'),_0x15e5a7=_0x3485a5['locale'];_0x1d8f19['descriptionFactory']['registerElementLabel']('tableOfContents',_0xb6506f=>St(_0x15e5a7,'ELEMENT_TABLE_OF_CONTENTS',_0xb6506f));}},qe=class extends _0x1a4f44{['afterInit'](){const _0x105bdb=this['editor'];_0x105bdb['plugins']['has']('Title')&&(_0x105bdb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>St(_0x105bdb['locale'],'ELEMENT_TITLE')),_0x105bdb['model']['document']['registerPostFixer'](_0x1ed3e4=>{let _0x3db0fb=!0x1;const _0x421170=Array['from'](_0x105bdb['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x10991f,data:_0x1d7129}of _0x421170){const {group:_0xad7139}=tt(_0x10991f);if('suggestion'!==_0xad7139||!_0x1d7129['newRange'])continue;const _0x2d092a=_0x1d7129['newRange'],_0xd9d6b=_0x2d092a['end']['nodeBefore'];if(!_0xd9d6b||!_0xd9d6b['is']('element','title-content'))continue;if(!_0x2d092a['start']['isTouching'](_0x2d092a['end']))continue;const _0x1e0606=_0x105bdb['model']['schema']['getNearestSelectionRange'](_0x2d092a['end'],'forward');if(_0x1e0606&&_0x1e0606['isCollapsed']){const _0x27ff70=_0x1ed3e4['createRange'](_0x2d092a['start'],_0x1e0606['start']);_0x27ff70['isEqual'](_0x2d092a)||(_0x1ed3e4['updateMarker'](_0x10991f,{'range':_0x27ff70}),_0x3db0fb=!0x0);}_0x3db0fb||(_0x1ed3e4['removeMarker'](_0x10991f),_0x3db0fb=!0x0);}return _0x3db0fb;}));}},Ye=class extends _0x1a4f44{['afterInit'](){const _0x4fb2de=this['editor'],_0x2eeeba=_0x4fb2de['plugins']['get']('TrackChangesEditing');_0x4fb2de['plugins']['has']('Uploadcare')&&(_0x2eeeba['enableCommand']('uploadcare'),_0x4fb2de['plugins']['has']('UploadcareImageEdit')&&(_0x2eeeba['enableCommand']('uploadcareImageEdit'),_0x2eeeba['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x2eeeba['descriptionFactory']['registerDescriptionCallback'](_0x44870f=>{if('attribute'!=_0x44870f['type'])return;const {data:_0x28a69d}=_0x44870f;return _0x28a69d&&'uploadcareImageId'==_0x28a69d['key']?{'type':'format','content':''}:void 0x0;})));}},Qe=class extends _0x1a4f44{['afterInit'](){const _0x52f926=this['editor'],_0x4902ab=_0x52f926['plugins']['get']('TrackChangesEditing');_0x52f926['plugins']['has']('UndoEditing')&&(_0x4902ab['enableCommand']('undo'),_0x4902ab['enableCommand']('redo'));}},Ze=class extends _0x1a4f44{static get['requires'](){return[ve];}['afterInit'](){const _0x478131=this['editor'];_0x478131['plugins']['has']('TableCaptionEditing')&&_0x478131['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}},Je=class extends _0x1a4f44{['tableProperties'];['tableCellProperties'];constructor(_0x141919){super(_0x141919),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 _0x40bb79=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x45c556 of this['tableProperties'])_0x40bb79['enableCommand'](_0x45c556,(_0x28dadd,_0x31b0d0)=>{const _0x1aafca=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x45c556,[_0x1aafca],this['tableProperties'],'tableProperties',_0x28dadd,_0x31b0d0);});_0x40bb79['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x40bb79['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x40bb79['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0xd488b2,_0x41b06d)=>this['handleDiscardAction'](this['tableProperties'],_0xd488b2,_0x41b06d)),_0x40bb79['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x18bcbf of this['tableCellProperties'])this['editor']['commands']['get'](_0x18bcbf)&&_0x40bb79['enableCommand'](_0x18bcbf,(_0x29fe1b,_0x4559d1)=>{const _0x5e88ef=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x18bcbf,_0x5e88ef,this['tableCellProperties'],'tableCellProperties',_0x29fe1b,_0x4559d1);});_0x40bb79['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x40bb79['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x40bb79['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0xc8038f,_0x80649b)=>this['handleDiscardAction'](this['tableCellProperties'],_0xc8038f,_0x80649b)),_0x40bb79['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x40bb79['descriptionFactory']['registerAttributeLabel']('tableCellType',St(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x40bb79['descriptionFactory']['registerDescriptionCallback'](_0x185218=>this['handleSuggestionDescription'](_0x185218)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x56dd3f,_0x1b45b9,_0x147026,_0x47f69f,_0x3c07cc,_0x11b63d){const _0x1ee8ea=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x11b63d['batch'],()=>{for(const _0x236491 of _0x1b45b9)if(this['_getSuggestion'](_0x236491,_0x47f69f))_0x3c07cc(_0x11b63d);else{const _0x515f6c={};for(const _0x59f60d of _0x147026){const _0x4d8efa=_0x236491['getAttribute'](_0x59f60d);void 0x0!==_0x4d8efa&&(_0x515f6c[_0x59f60d]=_0x4d8efa);}_0x3c07cc(_0x11b63d),_0x1ee8ea['markBlockFormat'](_0x236491,{'commandParams':[_0x515f6c]},[],_0x47f69f);}});}['handleDiscardAction'](_0x5c276f,_0x197bd0,_0x260f26){const _0x3312d5=_0x197bd0[0x0]['start']['nodeAfter'],_0x5a6c60=_0x260f26['commandParams'][0x0];this['editor']['model']['change'](_0x3de931=>{for(const _0x41a3f1 of _0x5c276f)void 0x0!==_0x5a6c60[_0x41a3f1]?_0x3de931['setAttribute'](_0x41a3f1,_0x5a6c60[_0x41a3f1],_0x3312d5):_0x3de931['removeAttribute'](_0x41a3f1,_0x3312d5);});}['handleSuggestionDescription'](_0x2be54c){if(_0x2be54c['data'])switch(_0x2be54c['subType']){case'tableProperties':return{'type':'format','content':St(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':St(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x3d41f9,_0x3d9c46){const _0x48e583=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x1aba3a of _0x48e583['getSuggestions']({'skipNotAttached':!0x0})){const _0x1d6d0d=_0x1aba3a['getContainedElement']();if(_0x1aba3a['subType']===_0x3d9c46&&_0x1d6d0d===_0x3d41f9)return _0x1aba3a;}return null;}['_registerTablePropertiesAttributes'](){const _0xc2f82=this['editor']['plugins']['get']('TrackChangesEditing'),_0x48cf59=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x48d5ee of _0x48cf59){const _0x58a0db=_0x48d5ee['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0xc2f82['descriptionFactory']['registerAttributeLabel'](_0x48d5ee,St(this['editor']['locale'],'FORMAT_'+_0x58a0db));}}},tn=class extends _0x1a4f44{['afterInit'](){const _0x29bb67=this['editor'];if(!_0x29bb67['plugins']['has']('LineHeight'))return;const _0x36cd52=_0x29bb67['plugins']['get']('TrackChangesEditing'),_0x4f67ed=_0x29bb67['locale'];_0x36cd52['enableDefaultAttributesIntegration']('lineHeight'),_0x36cd52['descriptionFactory']['registerAttributeLabel']('lineHeight',St(_0x4f67ed,'FORMAT_LINE_HEIGHT'));}};const en='$elementName';var nn=class extends _0x1a4f44{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_suggestionsConversion'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return[_0x4522ba,_0x3c4484,_0x20c4f0,_0x18a188,_0x3e0605,Ot,wt,Ft,Bt,Dt,Ut,xt,Ht,Gt,$t,Wt,jt,Qt,Zt,Jt,ee,ne,ie,re,oe,ae,ce,le,ue,he,de,ge,fe,me,Te,Le,Ce,Ee,Kt,tn,Xt,Ie,Ae,be,ke,Re,Ne,ye,Se,Me,Oe,Fe,Be,ve,Ue,Pe,xe,Ge,Ze,Ve,Ke,Xe,Je,ze,qe,Ye,Qe];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4d5cb5){super(_0x4d5cb5),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x2a039e,_0x55a1fa,_0x160f8e,_0x5b5755)=>{this['_model']['change'](()=>{for(const _0x358b7d of[..._0x5b5755,..._0x160f8e])this['_model']['markers']['has'](_0x358b7d)&&_0x4d5cb5['editing']['reconvertMarker'](_0x358b7d);});}),this['descriptionFactory']=new Mt(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new sn(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x4d5cb5['plugins']['get'](_0x4522ba),this['_suggestionsConversion']=_0x4d5cb5['plugins']['get'](_0x3c4484),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x4d5cb5['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x4d5cb5['config']['get']('trackChanges.trackFormatChanges'),_0x4d5cb5['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x4d5cb5['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new Et(_0x4d5cb5,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x36982f=this['editor'];_0x36982f['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4a8cf4,{writer:_0x1156ca})=>{let _0x4af75e='suggestion:'+_0x4a8cf4['getAttribute']('suggestion-type')+':'+_0x4a8cf4['getAttribute']('id');return _0x4a8cf4['getAttribute']('marker-count')&&(_0x4af75e+=':'+_0x4a8cf4['getAttribute']('marker-count')),_0x1156ca['createElement']('$marker',{'data-name':_0x4af75e});}}),_0x36982f['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x36982f['model']['document']['registerPostFixer'](_0x234c73=>{let _0x404baa=!0x1;const _0x34d429=Array['from'](_0x36982f['model']['document']['differ']['getChangedMarkers']()),_0x3beac8=new Set();for(const {name:_0xbbde06,data:_0x63b43b}of _0x34d429){const {group:_0x10b322,type:_0x381dc1,subType:_0x5bc31d,id:_0x115633}=tt(_0xbbde06);if('suggestion'!==_0x10b322)continue;const _0x2e1a0a=_0x5bc31d?'suggestion:'+_0x381dc1+':'+_0x5bc31d+':'+_0x115633:'suggestion:'+_0x381dc1+':'+_0x115633,_0x233cd1=_0x36982f['model']['markers']['getMarkersGroup'](_0x2e1a0a),_0x12432e=_0x36982f['model']['markers']['get'](_0xbbde06),_0x1843a6=this['_suggestions']['get'](_0x115633);if(null!=_0x63b43b['newRange']){'formatInline'==_0x381dc1&&(_0x404baa=_0x404baa||an(_0x63b43b['newRange'],_0xbbde06,_0x234c73,_0x36982f['model']['schema']));const _0x422c4d='attribute'==_0x381dc1&&this['_suggestionsConversion']['isBlockAttribute'](_n(_0x5bc31d)),_0x37de78='attribute'==_0x381dc1&&this['_suggestionsConversion']['isInlineAttribute'](_n(_0x5bc31d));if(_0x63b43b['newRange']['isCollapsed']||'$graveyard'==_0x63b43b['newRange']['root']['rootName']||'formatBlock'==_0x381dc1&&!ln(_0x63b43b['newRange'])||_0x422c4d&&!ln(_0x63b43b['newRange'])||_0x37de78&&un(_0x63b43b['newRange'])||'deletion'==_0x381dc1&&un(_0x63b43b['newRange'])||_0x12432e&&dn(_0x12432e,_0x233cd1))_0x234c73['removeMarker'](_0xbbde06),_0x404baa=!0x0;else{if(!_0x1843a6||!_0x1843a6['isInContent'])continue;if(_0x63b43b['newRange']&&_0x63b43b['oldRange']&&_0x63b43b['newRange']['isEqual'](_0x63b43b['oldRange']))continue;_0x3beac8['add'](_0x1843a6);}}}return _0x3beac8['size']>0x0&&(_0x404baa=!!this['_joinWithAdjacentSuggestions'](_0x3beac8)||_0x404baa),_0x404baa;}),_0x36982f['model']['document']['registerPostFixer'](_0x4d1afe=>{let _0x375eed=!0x1;for(const _0x696a91 of _0x36982f['model']['document']['differ']['getChanges']())if('insert'==_0x696a91['type'])for(const _0x297ec5 of this['_suggestions']['values']()){if(_0x297ec5['isMultiRange']||!_0x297ec5['isInContent'])continue;const _0x580b79='formatBlock'==_0x297ec5['type'],_0x1d46d0=this['_getAttributeKey'](_0x297ec5),_0x410e70=_0x1d46d0&&this['_suggestionsConversion']['isBlockAttribute'](_0x1d46d0);if(!_0x580b79&&!_0x410e70)continue;const _0x3ddcbf=_0x297ec5['getFirstRange']();if(_0x3ddcbf['start']['parent']!=_0x3ddcbf['end']['parent']&&!_0x3ddcbf['end']['isAtEnd']){const _0x4b8a72=_0x36982f['model']['createPositionAt'](_0x3ddcbf['start']['nodeAfter'],'end'),_0x271d3e=_0x36982f['model']['createRange'](_0x3ddcbf['start'],_0x4b8a72);_0x4d1afe['updateMarker'](_0x297ec5['getFirstMarker'](),{'range':_0x271d3e}),_0x375eed=!0x0;}}return _0x375eed;}),_0x36982f['model']['document']['registerPostFixer'](_0x192367=>this['_processAttributeChanges'](_0x192367)),_0x36982f['model']['document']['registerPostFixer'](_0x5e353b=>!_0x5e353b['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x5e353b)),_0x36982f['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x36982f['model']['document']['on']('change:data',(_0x55890f,_0x2b7c78)=>{if(!_0x2b7c78['isLocal']||_0x2b7c78['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x2444c5=_0x36982f['model']['document']['differ']['getChanges']();if(0x0==_0x2444c5['length'])return;const _0x1514b5=[],_0x4858dd=_0x2444c5['filter'](_0x4f5260=>'attribute'==_0x4f5260['type']),_0xfb2b74=_0x2444c5['filter'](_0x5bbe8a=>'insert'==_0x5bbe8a['type']&&'$text'!=_0x5bbe8a['name']);for(const _0x349a5 of _0x4858dd)this['_suggestionsConversion']['isRegisteredAttribute'](_0x349a5['attributeKey'])&&_0x1514b5['push']({'key':_0x349a5['attributeKey'],'newValue':_0x349a5['attributeNewValue'],'oldValue':_0x349a5['attributeOldValue'],'range':hn(_0x349a5['range'],_0x36982f['model'])});for(const _0x10abbf of _0xfb2b74){if('rename'!=_0x10abbf['action']&&'refresh'!=_0x10abbf['action'])continue;const _0x2a02f6=gn(_0x10abbf['position']['nodeAfter'],_0x36982f['model']),_0x1ab11b=_0x10abbf['before'];'rename'==_0x10abbf['action']&&_0x1514b5['push']({'key':en,'newValue':_0x10abbf['name'],'oldValue':_0x1ab11b['name'],'range':_0x2a02f6});for(const [_0xf6bbb4,_0x5e6b3e]of _0x1ab11b['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0xf6bbb4))continue;const _0x3e9d45=_0x10abbf['attributes']['get'](_0xf6bbb4);_0x5e6b3e!==_0x3e9d45&&_0x1514b5['push']({'key':_0xf6bbb4,'newValue':_0x3e9d45,'oldValue':_0x5e6b3e,'range':_0x2a02f6});}for(const [_0x321309,_0x56a808]of _0x10abbf['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x321309)&&(_0x1ab11b['attributes']['has'](_0x321309)||_0x1514b5['push']({'key':_0x321309,'newValue':_0x56a808,'oldValue':null,'range':_0x2a02f6}));}0x0!=_0x1514b5['length']&&_0x36982f['model']['enqueueChange'](_0x2b7c78,_0x110380=>{const _0x593d0c=_0x25321b();for(const {range:_0x31c194,key:_0x45729d,oldValue:_0x365a51,newValue:_0xde0289}of _0x1514b5)this['markAttributeChange'](_0x31c194,_0x45729d,_0x365a51,_0xde0289,{'groupId':_0x593d0c});this['_reduceExistingSuggestions'](_0x110380,_0x1514b5);});},{'priority':'lowest'}),_0x36982f['model']['markers']['on']('update:suggestion',(_0x16cc5f,_0x4e9be3,_0x257aef)=>{if(null==_0x257aef){const {id:_0x4249a5}=tt(_0x4e9be3['name']),_0x2eb1f9=this['_suggestions']['get'](_0x4249a5);_0x2eb1f9&&_0x2eb1f9['addMarkerName'](_0x4e9be3['name']);}}),_0x36982f['model']['document']['on']('change:data',()=>{const _0x673276=Array['from'](_0x36982f['model']['document']['differ']['getChangedMarkers']())['filter'](_0x22897b=>'suggestion'===tt(_0x22897b['name'])['group']);if(0x0===_0x673276['length'])return;_0x673276['sort']((_0x107d45,_0x2958b6)=>{const _0x2f0882=_0x107d45['data']['oldRange'],_0x2db858=_0x2958b6['data']['oldRange'];return null===_0x2f0882&&null===_0x2db858?0x0:null===_0x2f0882&&null!==_0x2db858?-0x1:null!==_0x2f0882&&null===_0x2db858?0x1:_0x2f0882['start']['isBefore'](_0x2db858['start'])?-0x1:0x1;});const _0x499cf3=new Set(),_0x163fca=new Set();for(const {name:_0x1d7767,data:_0x316e97}of _0x673276){const {id:_0x178652}=tt(_0x1d7767);if(null===_0x316e97['oldRange']){const _0x1c312c=this['_handleNewSuggestionMarker'](_0x1d7767);_0x163fca['add'](_0x1c312c);}else{const _0x5a6283=this['_suggestions']['get'](_0x178652);null!==_0x316e97['newRange']||_0x5a6283['isInContent']?(_0x499cf3['add'](_0x5a6283['head']),_0x163fca['add'](_0x5a6283)):this['_removeSuggestion'](_0x5a6283);}}_0x163fca['size']>0x0&&this['_refreshSuggestionsChain'](_0x163fca);for(const _0x4f19f5 of _0x499cf3)this['fire']('suggestionChanged',_0x4f19f5);}),_0x36982f['model']['on']('applyOperation',(_0x16199c,_0x4e616a)=>{const _0x1152d5=_0x4e616a[0x0];if(!this['_suggestions']['size'])return;if(!_0x1152d5['isDocumentOperation'])return;if(_0x1152d5['batch']['isUndo']||!_0x1152d5['batch']['isLocal'])return;let _0x578e0e,_0x48effa;switch(_0x1152d5['type']){case'insert':_0x578e0e=_0x36982f['model']['createPositionAt'](_0x1152d5['position']),_0x48effa=_0x578e0e['getShiftedBy'](_0x1152d5['howMany']);break;case'split':_0x578e0e=_0x36982f['model']['createPositionAt'](_0x1152d5['splitPosition']),_0x48effa=_0x36982f['model']['createPositionAt'](_0x1152d5['moveTargetPosition']);break;case'move':_0x578e0e=_0x36982f['model']['createPositionAt'](_0x1152d5['targetPosition']),_0x48effa=_0x578e0e['getShiftedBy'](_0x1152d5['howMany']);break;default:return;}const _0x160162=_0x36982f['model']['createRange'](_0x578e0e,_0x48effa);_0x36982f['model']['change'](()=>{for(const {suggestion:_0x2e0af9,meta:_0x3369b6}of this['_findSuggestions'](_0x160162)){if(_0x2e0af9['isMultiRange'])continue;if('formatInline'==_0x2e0af9['type'])continue;const _0x4614e0=this['_getAttributeKey'](_0x2e0af9);if(_0x4614e0&&this['_suggestionsConversion']['isBlockAttribute'](_0x4614e0)&&'split'!=_0x1152d5['type'])continue;const _0x53d8c3=_0x2e0af9['data']&&_0x2e0af9['data']['multipleBlocks'];('formatBlock'!=_0x2e0af9['type']||'split'==_0x1152d5['type']&&!_0x53d8c3)&&(_0x3369b6['containsRangeInObject']||'insertion'==_0x2e0af9['type']&&_0x3369b6['isOwn']||_0x2e0af9['getFirstRange']()['containsRange'](_0x160162)&&this['_breakSuggestionMarker'](_0x2e0af9,_0x578e0e,_0x48effa));}});},{'priority':'lowest'}),_0x36982f['model']['on']('deleteContent',(_0x424607,_0x555a73)=>{const _0x57871f=_0x555a73[0x0],_0x3630a1=_0x555a73[0x1];if(_0x3630a1&&_0x3630a1['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x57871f['isCollapsed'])return;const _0x2910f6=_0x36982f['model']['schema'],{start:_0x15b4df,end:_0x4d8101}=_0x57871f['getFirstRange'](),_0x57fe48=_0x15b4df['nodeAfter']&&_0x2910f6['isLimit'](_0x15b4df['nodeAfter'])?null:_0x2910f6['getNearestSelectionRange'](_0x15b4df,'forward'),_0x26ddae=_0x4d8101['nodeBefore']&&_0x2910f6['isLimit'](_0x4d8101['nodeBefore'])?null:_0x2910f6['getNearestSelectionRange'](_0x4d8101,'backward'),_0x3fdc39=_0x36982f['model']['createRange'](_0x57fe48?_0x57fe48['start']:_0x15b4df,_0x26ddae?_0x26ddae['end']:_0x4d8101);_0x36982f['model']['change'](_0x30322b=>{this['markDeletion'](_0x3fdc39);const _0x1708f3=_0x36982f['model']['schema']['getNearestSelectionRange'](_0x3fdc39['start']);_0x57871f['is']('documentSelection')?_0x30322b['setSelection'](_0x1708f3):_0x57871f['setTo'](_0x1708f3);}),_0x424607['stop']();},{'priority':_0x535ad9['normal']+0xa}),_0x36982f['model']['on']('insertContent',(_0x33123a,_0xb9e5d4)=>{const _0x31b79b=_0xb9e5d4[_0xb9e5d4['length']-0x1];_0x31b79b&&_0x31b79b['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x36982f['model']['change'](()=>{let _0x560557=_0x36982f['model']['insertContent'](_0xb9e5d4[0x0],_0xb9e5d4[0x1],_0xb9e5d4[0x2],{'forceDefaultExecution':!0x0});if(!_0x560557)return;_0x33123a['return']=_0x560557['clone']();const _0x55f697=_0x560557['end']['nodeBefore'],_0x266361=_0x36982f['model']['schema'];_0x55f697&&_0x266361['isBlock'](_0x55f697)&&!_0x266361['isObject'](_0x55f697)&&(_0x560557=_0x36982f['model']['createRange'](_0x560557['start'],_0x36982f['model']['createPositionAt'](_0x55f697,'end'))),this['markInsertion'](_0x560557);}),_0x33123a['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x4eccc6=new Tt(_0x36982f,this['_suggestions']);_0x36982f['commands']['add']('acceptSuggestion',_0x4eccc6),this['enableCommand']('acceptSuggestion');const _0x418c2d=new _t(_0x36982f,this['_suggestions']);_0x36982f['commands']['add']('discardSuggestion',_0x418c2d),this['enableCommand']('discardSuggestion'),_0x36982f['commands']['add']('acceptAllSuggestions',new Ct(_0x36982f,_0x4eccc6,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x36982f['commands']['add']('discardAllSuggestions',new Ct(_0x36982f,_0x418c2d,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x36982f['commands']['add']('acceptSelectedSuggestions',new Rt(_0x36982f,_0x4eccc6,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x36982f['commands']['add']('discardSelectedSuggestions',new Rt(_0x36982f,_0x418c2d,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x3a479c=_0x36982f['plugins']['get'](_0x4522ba);this['listenTo'](_0x3a479c,'addComment',(_0x336899,{threadId:_0x354186})=>{const _0x368075=this['_suggestions']['get'](_0x354186);_0x368075&&_0x368075['commentThread']&&0x1===_0x368075['commentThread']['length']&&this['_updateSuggestionData'](_0x354186,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x3a479c,'removeComment',(_0x5b1b63,{threadId:_0x447186})=>{const _0x1020db=this['_suggestions']['get'](_0x447186);_0x1020db&&_0x1020db['commentThread']&&!_0x1020db['commentThread']['length']&&this['_updateSuggestionData'](_0x447186,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x309504){const _0x59dd75='RBcXdGf567mNjK9DTpP0Iyi3gea8ZvzlE4bFuWrwsH1hnOSLqkY2MQJxoVAUtC',_0x316464=0x78de0,_0x4dfd71=window['Date']['now'](),_0x1fa564=_0x309504['editor'],_0x8e96ab=new window['Promise'](_0x41f76d=>{_0x1fa564['once']('ready',_0x41f76d);}),_0x3d66a0={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x349635=_0x1fa564['config']['get']('licenseKey');async function _0xadcbd0(){let _0xf7a11a,_0x2968b2=null,_0x364b16=null;try{return'GPL'==_0x349635?'NotAllowed':(_0xf7a11a=_0x585daf(),_0xf7a11a?(_0xf7a11a['usageEndpoint']&&(_0x364b16=_0x5dce27(_0xf7a11a['usageEndpoint'],_0xf7a11a['jti'])),await _0x3de92d()?_0x4e2e0d()?_0x47a755()?'Expired':_0x461236()?('evaluation'==_0xf7a11a['licenseType']&&(_0x2968b2=_0x4a277e('EvaluationLimit')),await _0x445c23()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x47a755(){const _0x182060=['evaluation','trial']['includes'](_0xf7a11a['licenseType'])?_0x4dfd71/0x3e8:0xe10*_0x316464;return _0xf7a11a['exp']<_0x182060;}function _0x4e2e0d(){const _0x59b45f=_0xf7a11a['features'];if(!_0x59b45f)return!0x1;if(_0x59b45f['includes']('*'))return!0x0;if(_0x59b45f['includes']('TC'))return!0x0;if(_0x59b45f['includes']('RTC')){if(_0x3257ed())return!0x0;if(_0xc0030a()||_0x1a7297())return!0x0;}return!0x1;}function _0x461236(){const _0x7554c7=_0xf7a11a['licensedHosts'];if(!_0x7554c7||0x0==_0x7554c7['length'])return!0x0;const {hostname:_0x33c372}=new URL(window['location']['href']);if(_0x7554c7['includes'](_0x33c372))return!0x0;const _0x2a55eb=_0x33c372['split']('.');return _0x7554c7['filter'](_0x142e67=>_0x142e67['includes']('*'))['map'](_0x3ee1f4=>_0x3ee1f4['split']('.'))['filter'](_0x562205=>_0x562205['length']<=_0x2a55eb['length'])['map'](_0x1c78a1=>Array(_0x2a55eb['length']-_0x1c78a1['length'])['fill']('*'===_0x1c78a1[0x0]?'*':'')['concat'](_0x1c78a1))['some'](_0x488a23=>_0x2a55eb['every']((_0x111547,_0x4532da)=>_0x488a23[_0x4532da]===_0x111547||'*'===_0x488a23[_0x4532da]));}function _0x445c23(){return _0x2968b2&&_0x364b16?new window['Promise']((_0x2f89c5,_0x5d6874)=>{_0x2968b2['then'](_0x2f89c5,_0x5d6874),_0x364b16['then'](_0x4850f1=>{'Valid'!=_0x4850f1&&_0x2f89c5(_0x4850f1);},_0x5d6874);}):_0x2968b2||_0x364b16||'Valid';}}function _0x5dce27(_0xb1457,_0x5788d5){return new window['Promise'](_0x1d0db8=>{if(_0x1ebfc1())return _0x1d0db8('Valid');_0x4ab012(),_0x1fa564['decorate']('_sendUsageRequest');let _0x18c6f7=!0x1;const _0x23aba5=_0x25321b();function _0x3474f8(_0x1bdd50){return!!_0x1bdd50&&('object'==typeof _0x1bdd50||'function'==typeof _0x1bdd50)&&'function'==typeof _0x1bdd50['then']&&'function'==typeof _0x1bdd50['catch'];}function _0x103a74(_0x2e4a7a){_0x5c4d17(_0x2e4a7a)['then'](_0x98d032=>_0x98d032&&'ok'==_0x98d032['status']?_0x294cd9(_0x455299(_0x23aba5+_0x5788d5))!=_0x98d032['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x229e47=>(_0x2d260a(),_0x229e47),()=>{const _0x23c691=_0x5c8fc7();return null==_0x23c691?(_0x2d260a(),'Valid'):_0x4dfd71-_0x23c691>0x240c8400?'UsageLimit':'Valid';})['then'](_0x1d0db8)['catch'](()=>{_0x1d0db8('UsageLimit');});const _0x5e0abe=0x36ee80;function _0x2d260a(){const _0x533157='llct-'+_0x294cd9(_0x455299(_0xb1457)),_0x602aaf=_0x175a1b(_0x294cd9(window['Math']['ceil'](_0x4dfd71/_0x5e0abe)));window['localStorage']['setItem'](_0x533157,_0x602aaf);}function _0x5c8fc7(){const _0x1fc8b0='llct-'+_0x294cd9(_0x455299(_0xb1457)),_0x4d2299=window['localStorage']['getItem'](_0x1fc8b0);return _0x4d2299?window['parseInt'](_0x175a1b(_0x4d2299),0x10)*_0x5e0abe:null;}function _0x5c4d17(_0x4cf943){return new window['Promise']((_0xa6f720,_0x1a90bf)=>{_0x4cf943['then'](_0xa6f720,_0x1a90bf),window['setTimeout'](_0x1a90bf,0x1d4c0);});}}_0x1fa564['on']('_sendUsageRequest',(_0x2e5d05,_0x520f9e)=>{if(_0x520f9e[0x0]!=_0xb1457)return _0x1d0db8('UsageLimit');_0x520f9e[0x1]={..._0x520f9e[0x1],'requestId':_0x23aba5};},{'priority':'high'}),_0x1fa564['on']('_sendUsageRequest',_0x36865d=>{_0x3474f8(_0x36865d['return'])&&(_0x18c6f7=!0x0,_0x103a74(_0x36865d['return']));},{'priority':'low'}),_0x8e96ab['then'](()=>{_0x18c6f7||_0x1d0db8('UsageLimit');});});function _0x1ebfc1(){return'auto'==_0x1fa564['editing']['view']['_overlayModeHint'];}function _0x4ab012(){_0x1fa564['editing']['view']['_overlayModeHint']='auto';}}function _0x4a277e(_0x25c308){const _0x2807a8=[new window['Promise'](_0x1dcc70=>setTimeout(_0x1dcc70,0x93ecc)),_0x8e96ab['then'](()=>new window['Promise'](_0x2fd137=>{let _0x381c42=0x0;_0x1fa564['model']['on']('applyOperation',(_0x2ad20b,_0x55bc7a)=>{_0x55bc7a[0x0]['isDocumentOperation']&&_0x381c42++,0x5e8==_0x381c42&&(_0x2fd137(),_0x2ad20b['off']());});}))];return window['Promise']['race'](_0x2807a8)['then'](()=>_0x25c308);}async function _0x36d4fe(){await _0x8e96ab,_0x1fa564['model']['change']=_0x57ea7e,_0x1fa564['model']['enqueueChange']=_0x57ea7e,_0x1fa564['enableReadOnlyMode']('model');}function _0x3257ed(){return _0x52baa9('WebSocketGateway')&&'connected'==_0x4e1167('WebSocketGateway')['state'];}function _0xc0030a(){return _0x52baa9('RevisionViewerIntegration');}function _0x1a7297(){return _0x52baa9('TrackChangesDataGetter');}function _0x3dbaec(_0xf4e759){const _0x1317e3=_0x102696();_0x1fa564[_0x1317e3]='trackChangesLicenseKey'+_0xf4e759,'Valid'!=_0xf4e759&&_0x36d4fe();}function _0x102696(){const _0x19f8bd=window['String'](window['performance']['now']())['replace']('.','');let _0x11c547='R';for(let _0x58188f=0x0;_0x58188f<_0x19f8bd['length'];_0x58188f+=0x2){let _0x3dcf4a=window['parseInt'](_0x19f8bd['substring'](_0x58188f,_0x58188f+0x2));_0x3dcf4a>=0x3e&&(_0x3dcf4a-=0x3e),_0x11c547+=_0x59dd75[_0x3dcf4a];}return _0x11c547;}function _0x585daf(){const _0x4daca1=_0x349635['split']('.');if(0x3!=_0x4daca1['length'])return null;return _0x25d9c3(_0x4daca1[0x1]);function _0x25d9c3(_0x4464b4){const _0x238565=_0x472f70(_0x4464b4);return _0x238565&&_0x139cb4()?_0x238565:null;function _0x139cb4(){const _0x25f56f=_0x238565['jti'],_0x2076db=window['parseInt'](_0x25f56f['substring'](_0x25f56f['length']-0x8),0x10),_0x4faa1b={..._0x238565,'jti':_0x25f56f['substring'](0x0,_0x25f56f['length']-0x8)};return delete _0x4faa1b['vc'],_0x455299(_0x4faa1b)==_0x2076db;}}}async function _0x3de92d(){let _0x32237e=!0x0;try{const [_0x3c0344,_0x38185f,_0x1ffd35]=_0x349635['split']('.');return _0x3f2a9f(_0x3c0344),await _0x23948a(_0x3c0344,_0x38185f,_0x1ffd35),_0x32237e;}catch{return!0x1;}function _0x3f2a9f(_0xd04cf7){const _0x3aaa54=_0x472f70(_0xd04cf7);_0x3aaa54&&'ES256'==_0x3aaa54['alg']||(_0x32237e=!0x1);}async function _0x23948a(_0x3d3276,_0x27e304,_0x3b7dd9){const _0x1e98d4=window['Uint8Array']['from'](_0x45746c(_0x3b7dd9),_0x3ad84a=>_0x3ad84a['charCodeAt'](0x0)),_0x38d70e=new window['TextEncoder']()['encode'](_0x3d3276+'.'+_0x27e304),_0x3ced4b=window['crypto']['subtle'];if(!_0x3ced4b)return;const _0x371799=await _0x3ced4b['importKey']('jwk',_0x3d66a0,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x3ced4b['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x371799,_0x1e98d4,_0x38d70e)||(_0x32237e=!0x1);}}function _0x472f70(_0x57450b){return _0x57450b['startsWith']('ey')?JSON['parse'](_0x45746c(_0x57450b)):null;}function _0x45746c(_0x50f808){return window['atob'](_0x50f808['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x455299(_0x2e4875){let _0x1884a5=0x1505;function _0x32e2fa(_0x17403c){for(let _0x3f6c84=0x0;_0x3f6c84<_0x17403c['length'];_0x3f6c84++){const _0x20e897=_0x17403c['charCodeAt'](_0x3f6c84);_0x1884a5=(_0x1884a5<<0x5)+_0x1884a5+_0x20e897,_0x1884a5&=_0x1884a5;}}function _0x3bf924(_0x2e8794){Array['isArray'](_0x2e8794)?_0x2e8794['forEach'](_0x3bf924):_0x2e8794&&'object'==typeof _0x2e8794?Object['entries'](_0x2e8794)['sort']()['forEach'](([_0x1a99a9,_0x4a32b6])=>{_0x32e2fa(_0x1a99a9),_0x3bf924(_0x4a32b6);}):_0x32e2fa(window['String'](_0x2e8794));}return _0x3bf924(_0x2e4875),_0x1884a5>>>0x0;}function _0x294cd9(_0x1ea841){return _0x1ea841['toString'](0x10)['padStart'](0x8,'0');}function _0x175a1b(_0x54a9a4){return _0x54a9a4['split']('')['reverse']()['join']('');}function _0x52baa9(_0x18602f){return _0x1fa564['plugins']['has'](_0x18602f);}function _0x4e1167(_0xac9546){return _0x1fa564['plugins']['get'](_0xac9546);}function _0x57ea7e(){}_0x3dbaec(await _0xadcbd0());}(this);}set['adapter'](_0x21088d){if(this['_adapter'])throw new _0x2ca032('track-changes-adapter-already-set',this);this['_adapter']=_0x21088d;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x14641f=!0x1,toJSON:_0x26df80=!0x1}={}){const _0x2f9cde=[];for(const _0x144af1 of this['_suggestions']['values']())_0x14641f&&!_0x144af1['isInContent']||_0x2f9cde['push'](_0x144af1);return _0x26df80?_0x2f9cde['map'](_0x48d6dc=>_0x48d6dc['toJSON']()):_0x2f9cde;}['getSuggestion'](_0x3fde45){const _0x605f51=this['_suggestions']['get'](_0x3fde45);if(!_0x605f51)throw new _0x2ca032('track-changes-suggestion-not-found',this);return _0x605f51;}['hasSuggestion'](_0x16c879){return this['_suggestions']['has'](_0x16c879);}['addSuggestionData'](_0x4566ba){const {authorId:_0x242576,id:_0x33b9e1,originalSuggestionId:_0x2ac103,attributes:_0x175cc1}=_0x4566ba,[_0x36b105,_0x5dc63c]=_0x4566ba['type']['split'](':'),_0x32858f=this['_suggestions']['get'](_0x33b9e1)||this['_createSuggestion'](_0x36b105,_0x5dc63c,_0x33b9e1,_0x242576,_0x175cc1,_0x2ac103);if(this['_addThreadToSuggestion'](_0x32858f),this['_checkSuggestionCorrectness'](_0x32858f,_0x36b105,_0x5dc63c||null,_0x242576),_0x32858f['createdAt']=_0x4566ba['createdAt'],_0x32858f['_isDataLoaded']=!0x0,_0x175cc1&&_0x175cc1['@external']){const _0x593470=_0x175cc1['@external'],_0x5c4e55=this['_getExternalAuthor'](_0x593470['authorName']);_0x32858f['authoredAt']=_0x593470['createdAt'],_0x32858f['author']=_0x5c4e55;}else _0x32858f['authoredAt']=_0x4566ba['createdAt'];switch(_0x4566ba['data']&&(_0x32858f['data']=_0x4566ba['data']),_0x4566ba['attributes']&&(_0x32858f['attributes']=_0x4566ba['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x32858f['_saved']=!0x0),this['_suggestionState']['get'](_0x32858f)){case'notReady':this['_suggestionState']['set'](_0x32858f,'dataReady');break;case'markerReady':_0x32858f['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x32858f])),this['_refreshSuggestionsChain'](new Set([_0x32858f])),this['_suggestionState']['set'](_0x32858f,'ready'),this['fire']('suggestionLoaded',_0x32858f)):this['_suggestionState']['set'](_0x32858f,'removed');}return _0x32858f;}['acceptSuggestion'](_0x2bd8bb){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x15ccd8 of _0x2bd8bb['getAllAdjacentSuggestions']())_0x15ccd8['accept']();});});}['discardSuggestion'](_0x438e7f){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5ea237 of _0x438e7f['getAllAdjacentSuggestions']())_0x5ea237['discard']();});});}['enableCommand'](_0x16c1bc,_0x1777b6){const _0xdbbd08=this['editor']['commands']['get'](_0x16c1bc);if(!_0xdbbd08)throw new _0x2ca032('track-changes-command-not-found',this,{'commandName':_0x16c1bc});if(this['_enabledCommands']['has'](_0xdbbd08))throw new _0x2ca032('track-changes-enable-command-twice',this,{'commandName':_0x16c1bc});this['_enabledCommands']['add'](_0xdbbd08),_0x1777b6&&_0xdbbd08['on']('execute',(_0x4573a8,_0x423f91)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x423f91['length']>0x0&&_0x423f91[_0x423f91['length']-0x1]&&_0x423f91[_0x423f91['length']-0x1]['forceDefaultExecution']?_0x423f91['pop']():(_0x4573a8['return']=_0x1777b6((..._0x5690d1)=>_0xdbbd08['execute'](..._0x5690d1,{'forceDefaultExecution':!0x0}),..._0x423f91),_0x4573a8['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x5734b6){let _0x522af0,_0xef83df;const _0x2cc311=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x522af0=_0x5734b6();}catch(_0x159f23){_0xef83df=_0x159f23;}return _0x2cc311||(this['_isForcedDefaultExecutionBlock']=!0x1),_0xef83df&&_0x2ca032['rethrowUnexpectedError'](_0xef83df,this),_0x522af0;}['markInsertion'](_0x3d4e3c,_0xeb0926=null,_0x39b412={}){if(_0x3d4e3c['isCollapsed'])return null;const _0xf517a5=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x39b412['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x41f9b8,meta:_0x532e4e}of this['_findSuggestions'](_0x3d4e3c,'insertion'))if(_0x532e4e['isOwn']){if(!_0x532e4e['isNextTo']){if(_0x532e4e['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!En(_0x41f9b8,_0x39b412))continue;return _0x41f9b8;}if(En(_0x41f9b8,_0x39b412))return _0x41f9b8;this['_breakSuggestionMarker'](_0x41f9b8,_0x3d4e3c['start'],_0x3d4e3c['end']);break;}if(_0xeb0926==_0x41f9b8['subType']&&En(_0x41f9b8,_0x39b412)){const _0x23ab1a=_0x41f9b8['getFirstRange']();return _0x23ab1a['start']['isEqual'](_0x3d4e3c['end'])?this['_setSuggestionRange'](_0x41f9b8,this['_model']['createRange'](_0x3d4e3c['start'],_0x23ab1a['end'])):this['_setSuggestionRange'](_0x41f9b8,this['_model']['createRange'](_0x23ab1a['start'],_0x3d4e3c['end'])),_0x41f9b8;}}const _0x42fadd=_0x25321b(),_0x2c2602=_0xf517a5['id'],_0x2bd123=_0xeb0926?'insertion:'+_0xeb0926:'insertion',_0x348a90=this['_setSuggestionData']({'id':_0x42fadd,'type':_0x2bd123,'createdAt':new Date(),'authorId':_0x2c2602,'attributes':_0x39b412});return this['_addSuggestionMarker'](_0x2bd123,_0x42fadd,_0x2c2602,_0x3d4e3c),_0x348a90;}['markMultiRangeInsertion'](_0x1486c2,_0x53d904='multi',_0x3e5723={}){const _0x2a278b=this['editor']['plugins']['get']('Users')['me'],_0x101456=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x53d904,'join');this['_trackingSessionId']&&(_0x3e5723['trackingSessionId']=this['_trackingSessionId']);for(const _0x5d2308 of this['getSuggestions']())if(_0x5d2308['author']['id']==_0x2a278b['id']&&'insertion'==_0x5d2308['type']&&_0x5d2308['subType']==_0x53d904&&En(_0x5d2308,_0x3e5723)&&(_0x101456(_0x5d2308['getRanges'](),_0x1486c2)||_0x101456(_0x1486c2,_0x5d2308['getRanges']()))){for(const _0x2fc610 of _0x1486c2)_0x5d2308['addRange'](_0x2fc610);return _0x5d2308;}for(const {suggestion:_0x20271a,meta:_0xeecdf8}of this['_findSuggestions'](_0x1486c2,'insertion')){if(!_0xeecdf8['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0xeecdf8['containsRangeInObject'])continue;if(!En(_0x20271a,_0x3e5723))continue;let _0x363b8d=!0x0;for(const _0x50fcac of _0x20271a['getRanges']())for(const _0x13d9fe of _0x1486c2)if(!_0x50fcac['containsRange'](_0x13d9fe)){_0x363b8d=!0x1;break;}if(_0x363b8d)return _0x20271a;}const _0x51f506=_0x25321b(),_0x5acc0e=_0x2a278b['id'],_0x31e3fc='insertion:'+_0x53d904,_0x41ca76=this['_setSuggestionData']({'id':_0x51f506,'type':_0x31e3fc,'createdAt':new Date(),'authorId':_0x5acc0e,'attributes':_0x3e5723});for(const _0x4fdc43 of _0x1486c2)this['_addSuggestionMarker'](_0x31e3fc,_0x51f506,_0x5acc0e,_0x4fdc43,yt['getMultiRangeId']());return _0x41ca76;}['markInlineFormat'](_0x1f9dbc,_0x1a7387,_0x198c97=null,_0x358d26={}){if(_0x198c97=_0x198c97||cn(_0x1a7387),_0x1f9dbc['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x358d26['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x4d2e7d=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x198c97,'accept');return this['forceDefaultExecution'](()=>_0x4d2e7d([_0x1f9dbc],_0x1a7387,_0x358d26)),null;}const _0x19e8d1=this['editor']['plugins']['get']('Users')['me'],_0x2190fd=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x87a1e,meta:_0x566778}of this['_findSuggestions'](_0x1f9dbc,'insertion'))_0x566778['isOwn']&&!_0x566778['isInsideObject']&&_0x2190fd['push'](..._0x87a1e['getRanges']());}const _0x471a94=function(_0x518bb1,_0x16006b){const _0x439bc4=[];for(const _0x260ed6 of _0x16006b){const _0x224c00=_0x518bb1['getIntersection'](_0x260ed6);_0x224c00&&_0x439bc4['push'](_0x224c00);}return _0x439bc4;}(_0x1f9dbc,_0x2190fd),_0x325b07=function(_0x3ba39c,_0x3dea8a){const _0x54eb4f=[_0x3ba39c];for(const _0x4f61b8 of _0x3dea8a){let _0x13b552=0x0;for(;_0x13b552<_0x54eb4f['length'];){const _0x352f03=_0x54eb4f[_0x13b552]['getDifference'](_0x4f61b8);_0x54eb4f['splice'](_0x13b552,0x1,..._0x352f03),_0x13b552+=_0x352f03['length'];}}return _0x54eb4f;}(_0x1f9dbc,_0x2190fd);_0x471a94['length']&&this['_model']['change'](()=>{for(const _0x391d4c of _0x471a94){const _0x412479=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x198c97,'accept');this['forceDefaultExecution'](()=>_0x412479([_0x391d4c],_0x1a7387,_0x358d26));}});for(const _0x163a72 of _0x325b07){let _0x23256a=null,_0x419088=_0x163a72['start'],_0x558d1d=_0x163a72['end'];for(const {suggestion:_0x1ae3f2,meta:_0x243c20}of this['_findSuggestions'](_0x163a72,'formatInline')){if(!_0x243c20['isOwn'])continue;if(_0x1ae3f2['subType']!=_0x198c97)continue;if(!En(_0x1ae3f2,_0x358d26))continue;const _0x151f70=_0x1ae3f2['getFirstRange']();if(_0x151f70['containsRange'](_0x163a72,!0x0))return null;_0x419088=_0x419088['isBefore'](_0x151f70['start'])?_0x419088:_0x151f70['start'],_0x558d1d=_0x558d1d['isAfter'](_0x151f70['end'])?_0x558d1d:_0x151f70['end'],_0x23256a?_0x151f70['start']['isBefore'](_0x23256a['getFirstRange']()['start'])?(_0x23256a['removeMarkers'](),_0x23256a=_0x1ae3f2):_0x1ae3f2['removeMarkers']():_0x23256a=_0x1ae3f2;}const _0x15f08d=this['_model']['createRange'](_0x419088,_0x558d1d);if(_0x23256a)this['_setSuggestionRange'](_0x23256a,_0x15f08d);else{const _0x33b6a6=_0x25321b(),_0x3fc068=_0x19e8d1['id'];this['_setSuggestionData']({'id':_0x33b6a6,'type':'formatInline:'+_0x198c97,'data':_0x1a7387,'createdAt':new Date(),'authorId':_0x3fc068,'attributes':_0x358d26}),this['_addSuggestionMarker']('formatInline:'+_0x198c97,_0x33b6a6,_0x3fc068,_0x15f08d);}}return null;}['markBlockFormat'](_0x24c6a4,_0x174353,_0x81754b=[],_0x90dddb=null,_0x416156={}){_0x174353['formatGroupId']||(_0x174353['formatGroupId']=_0x174353['commandName']),_0x174353['multipleBlocks']=_0x24c6a4['is']('range'),_0x90dddb=_0x90dddb||cn(_0x174353);const _0x56f441=_0x81754b['map'](_0x4816a7=>gn(_0x4816a7,this['_model'])),_0x41a929=_0x24c6a4['is']('range')?_0x24c6a4:gn(_0x24c6a4,this['_model']);if(this['_trackingSessionId']&&(_0x416156['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x31c073=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x90dddb,'accept');return this['forceDefaultExecution'](()=>_0x31c073([_0x41a929],_0x174353,_0x416156)),null;}_0x56f441['push'](_0x41a929);let _0xd600f4=!0x0;for(const _0x4db087 of _0x56f441)if(!this['_rangeIsInLocalUserInsertion'](_0x4db087)){_0xd600f4=!0x1;break;}if(_0xd600f4&&'always'!==this['_trackFormatChanges']){const _0x4a390f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x90dddb,'accept');return this['forceDefaultExecution'](()=>_0x4a390f([_0x41a929],_0x174353,_0x416156)),null;}let _0x2449b9=null,_0x5e2df1=_0x41a929['start'],_0x2466f0=_0x41a929['end'];for(const {suggestion:_0xb93dc5,meta:_0x5a3f4c}of this['_findSuggestions'](_0x41a929,'formatBlock')){if(!_0x5a3f4c['isOwn'])continue;if(_0x5a3f4c['isNextTo']||_0x5a3f4c['containsRangeInObject']||_0x5a3f4c['isInsideObject'])continue;if(_0xb93dc5['data']['formatGroupId']!=_0x174353['formatGroupId'])continue;if(!En(_0xb93dc5,_0x416156))continue;const _0x256725=_0xb93dc5['getFirstRange']();if(_0xb93dc5['subType']==_0x90dddb){if(_0x256725['containsRange'](_0x41a929,!0x0))return null;_0x5e2df1=_0x5e2df1['isBefore'](_0x256725['start'])?_0x5e2df1:_0x256725['start'],_0x2466f0=_0x2466f0['isAfter'](_0x256725['end'])?_0x2466f0:_0x256725['end'],_0x2449b9?_0x256725['start']['isBefore'](_0x2449b9['getFirstRange']()['start'])?(_0x2449b9['removeMarkers'](),_0x2449b9=_0xb93dc5):_0xb93dc5['removeMarkers']():_0x2449b9=_0xb93dc5;}else{const _0x1c7821=_0x41a929['getIntersection'](_0x256725);this['_cutOutSuggestionMarker'](_0xb93dc5,_0x1c7821);}}const _0x5062b3=this['editor']['plugins']['get']('Users')['me'],_0x5e65fc=_0x25321b(),_0x42e2df=_0x5062b3['id'];if(_0x2449b9)return this['_setSuggestionRange'](_0x2449b9,this['_model']['createRange'](_0x5e2df1,_0x2466f0)),_0x2449b9;{const _0x22d2c2=this['_setSuggestionData']({'id':_0x5e65fc,'type':'formatBlock:'+_0x90dddb,'data':_0x174353,'createdAt':new Date(),'authorId':_0x42e2df,'attributes':_0x416156});return this['_addSuggestionMarker']('formatBlock:'+_0x90dddb,_0x5e65fc,_0x42e2df,this['_model']['createRange'](_0x5e2df1,_0x2466f0)),_0x22d2c2;}}['markMultiRangeBlockFormat'](_0x3e1d1e,_0x524d42,_0x549d06=[],_0x23ef8e=null,_0x5e940a={}){_0x524d42['formatGroupId']||(_0x524d42['formatGroupId']=_0x524d42['commandName']);const _0x235364=_0x3e1d1e[0x0];_0x524d42['multipleBlocks']=_0x235364['is']('range'),_0x23ef8e=_0x23ef8e||cn(_0x524d42);const _0x3ed1be=_0x549d06['map'](_0x382bd9=>gn(_0x382bd9,this['_model'])),_0x551f9e=_0x235364['is']('range')?_0x3e1d1e:_0x3e1d1e['map'](_0x5eceb4=>gn(_0x5eceb4,this['_model']));if(this['_trackingSessionId']&&(_0x5e940a['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x40cf20=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x23ef8e,'accept');return this['forceDefaultExecution'](()=>_0x40cf20(_0x551f9e,_0x524d42,_0x5e940a)),null;}_0x3ed1be['push'](..._0x551f9e);let _0x3eea15=!0x0;for(const _0x408467 of _0x3ed1be)if(!this['_rangeIsInLocalUserInsertion'](_0x408467)){_0x3eea15=!0x1;break;}if(_0x3eea15&&'always'!==this['_trackFormatChanges']){const _0x64e597=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x23ef8e,'accept');return this['forceDefaultExecution'](()=>_0x64e597(_0x551f9e,_0x524d42,_0x5e940a)),null;}const _0x21ef0b=this['editor']['plugins']['get']('Users')['me'];for(const _0x38f158 of this['getSuggestions']()){const _0x31b3dc=_0x38f158['data'];if(_0x38f158['author']['id']!=_0x21ef0b['id'])continue;if('formatBlock'!=_0x38f158['type']||_0x31b3dc['formatGroupId']!=_0x524d42['formatGroupId'])continue;if(!En(_0x38f158,_0x5e940a))continue;const _0x1c85f4=_0x38f158['subType']==_0x23ef8e;for(let _0x3b4d3a=0x0;_0x3b4d3a<_0x551f9e['length'];_0x3b4d3a++){const _0x1b3f67=_0x551f9e[_0x3b4d3a];for(const _0x4fe583 of _0x38f158['getMarkers']()){const _0x3c085d=_0x4fe583['getRange']();if(_0x1b3f67['isEqual'](_0x3c085d)){_0x1c85f4?(_0x551f9e['splice'](_0x3b4d3a,0x1),_0x3b4d3a--):_0x38f158['removeMarker'](_0x4fe583['name']);break;}}}}if(0x0==_0x551f9e['length'])return null;const _0x2ec6c4=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x23ef8e,'join');for(const _0x2eabbc of this['getSuggestions']()){const _0x29dfb3=_0x2eabbc['data'];if(_0x2eabbc['author']['id']==_0x21ef0b['id']&&('formatBlock'==_0x2eabbc['type']&&_0x29dfb3['formatGroupId']==_0x524d42['formatGroupId']&&_0x2eabbc['subType']==_0x23ef8e&&En(_0x2eabbc,_0x5e940a)&&(_0x2ec6c4(_0x2eabbc['getRanges'](),_0x551f9e)||_0x2ec6c4(_0x551f9e,_0x2eabbc['getRanges']())))){for(const _0x1d09e0 of _0x551f9e)_0x2eabbc['addRange'](_0x1d09e0);return _0x2eabbc;}}const _0x3352ca=_0x25321b(),_0xfcd526=_0x21ef0b['id'],_0x494261='formatBlock:'+_0x23ef8e,_0x5ba507=this['_setSuggestionData']({'id':_0x3352ca,'type':_0x494261,'data':_0x524d42,'createdAt':new Date(),'authorId':_0xfcd526,'attributes':_0x5e940a});for(const _0x12fd60 of _0x551f9e)this['_addSuggestionMarker'](_0x494261,_0x3352ca,_0xfcd526,_0x12fd60,yt['getMultiRangeId']());return _0x5ba507;}['markDeletion'](_0x2871fa,_0x483790=null,_0x4f8e01={}){if(_0x2871fa['isCollapsed'])return null;const _0x259e57=this['editor']['plugins']['get']('Users')['me'],_0x4084c5=new rt(_0x2871fa['start'],_0x2871fa['end']);this['_trackingSessionId']&&(_0x4f8e01['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x495caa,meta:_0x5448b4}of this['_findSuggestions'](_0x4084c5,'insertion'))if(_0x5448b4['isOwn']&&!_0x5448b4['isNextTo']){if(_0x495caa['isMultiRange']){const _0xb0df03=_0x495caa['getRanges']()['filter'](_0x214fa9=>'$graveyard'!=_0x214fa9['root']['rootName']);if(_0xb0df03['every'](_0x17a3f7=>_0x4084c5['containsRange'](_0x17a3f7,!0x0))&&_0x495caa['discard'](),_0xb0df03['some'](_0x32b242=>_0x32b242['containsRange'](_0x4084c5,!0x0))){const _0x1bef50=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x483790,'accept');return this['forceDefaultExecution'](()=>_0x1bef50([_0x4084c5],null,_0x4f8e01)),null;}}else{const _0x55d372=_0x4084c5['getIntersection'](_0x495caa['getFirstRange']());null!==_0x55d372&&_0x495caa['_onDiscard']([_0x55d372],null,_0x4f8e01);}}if(_0x4084c5['detach'](),_0x4084c5['isCollapsed']||'$graveyard'==_0x4084c5['root']['rootName'])return null;let _0xf8f599=null,_0x52fdcc=_0x4084c5['start'],_0x643d55=_0x4084c5['end'];const _0xcae41e=this['_findSuggestions'](_0x4084c5,'deletion');for(const {suggestion:_0x139bba,meta:_0x4938bc}of _0xcae41e){const _0x13f2c8=this['_model']['createRange'](_0x52fdcc,_0x643d55);if(_0x4938bc['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4938bc['containsRangeInObject']&&!_0x4938bc['isInsideObject'])){if(_0x139bba['isMultiRange']){if(!En(_0x139bba,_0x4f8e01))continue;let _0xd95c69=!0x0;for(const _0x230cdc of _0x139bba['getRanges']()){if(_0x230cdc['containsRange'](_0x13f2c8,!0x0))return _0x139bba;_0x13f2c8['containsRange'](_0x230cdc)||(_0xd95c69=!0x1);}_0xd95c69&&_0x139bba['discard']();}else{const _0x2e81ee=_0x139bba['getFirstRange']();if(_0x2e81ee['containsRange'](_0x13f2c8,!0x0))return _0x139bba;if(!En(_0x139bba,_0x4f8e01)){_0x13f2c8['containsRange'](_0x2e81ee)?_0x139bba['removeMarkers']():_0x2e81ee['containsPosition'](_0x52fdcc)?_0x52fdcc=_0x2e81ee['end']:_0x2e81ee['containsPosition'](_0x643d55)&&(_0x643d55=_0x2e81ee['start']);continue;}_0x52fdcc=_0x52fdcc['isBefore'](_0x2e81ee['start'])?_0x52fdcc:_0x2e81ee['start'],_0x643d55=_0x643d55['isAfter'](_0x2e81ee['end'])?_0x643d55:_0x2e81ee['end'],_0x4f8e01=Object['assign']({},_0x139bba['attributes']),_0xf8f599?_0x2e81ee['start']['isBefore'](_0xf8f599['getFirstRange']()['start'])?(_0xf8f599['removeMarkers'](),_0xf8f599=_0x139bba):_0x139bba['removeMarkers']():_0xf8f599=_0x139bba;}}}if(_0xf8f599)return this['_setSuggestionRange'](_0xf8f599,this['_model']['createRange'](_0x52fdcc,_0x643d55)),_0xf8f599;{const _0x452687=_0x25321b(),_0x12cc07=this['_model']['createRange'](_0x52fdcc,_0x643d55),_0x4f4948=_0x259e57['id'],_0x58a513=_0x483790?'deletion:'+_0x483790:'deletion',_0x4cbc75=this['_setSuggestionData']({'id':_0x452687,'type':_0x58a513,'createdAt':new Date(),'authorId':_0x4f4948,'attributes':_0x4f8e01});return this['_addSuggestionMarker'](_0x58a513,_0x452687,_0x4f4948,_0x12cc07),_0x4cbc75;}}['markMultiRangeDeletion'](_0x485162,_0x37819f='multi',_0x52a1d1={}){const _0x884812=this['editor']['plugins']['get']('Users')['me'],_0x163b4b=_0x485162['map'](_0x4335ad=>new rt(_0x4335ad['start'],_0x4335ad['end'])),_0x58b4b6=new Set();this['_trackingSessionId']&&(_0x52a1d1['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x29bead,meta:_0x1e2d9b}of this['_findSuggestions'](_0x163b4b,'insertion'))_0x1e2d9b['isOwn']&&!_0x1e2d9b['isNextTo']&&_0x58b4b6['add'](_0x29bead);for(const _0x26c258 of _0x58b4b6)if(_0x26c258['isMultiRange']){const _0x55b637=_0x26c258['getRanges']();if(_0x26c258['attributes']&&_0x26c258['attributes']['skipNestingCheck']||_0x55b637['every'](_0x13a4d9=>_0x163b4b['some'](_0x57561f=>_0x57561f['containsRange'](_0x13a4d9,!0x0)))&&_0x26c258['discard'](),_0x163b4b['every'](_0x15bc1b=>_0x55b637['some'](_0x30d7cf=>_0x30d7cf['containsRange'](_0x15bc1b,!0x0)))){const _0x36d63d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x37819f,'accept');return this['forceDefaultExecution'](()=>_0x36d63d(_0x485162,null,_0x52a1d1)),null;}}else{const _0x39f6ef=_0x26c258['getFirstRange']();if(_0x163b4b['some'](_0x3f464a=>_0x3f464a['containsRange'](_0x39f6ef,!0x0))&&_0x26c258['discard'](),_0x163b4b['every'](_0x1c66cf=>_0x39f6ef['containsRange'](_0x1c66cf,!0x0))){const _0x2386d9=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x37819f,'accept');return this['forceDefaultExecution'](()=>_0x2386d9(_0x163b4b,null,_0x52a1d1)),null;}}const _0x1bc194=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x37819f,'join');let _0x52a35f=null;for(const _0x1c5567 of this['getSuggestions']())if(_0x1c5567['author']['id']==_0x884812['id']&&_0x1c5567['isInContent']&&'deletion'==_0x1c5567['type']&&_0x1c5567['subType']==_0x37819f&&En(_0x1c5567,_0x52a1d1)&&(_0x1bc194(_0x1c5567['getRanges'](),_0x163b4b)||_0x1bc194(_0x163b4b,_0x1c5567['getRanges']()))){if(_0x52a35f){if(_0x1c5567['commentThread']&&_0x1c5567['commentThread']['length'])continue;for(const _0x30b5f6 of _0x1c5567['getRanges']())_0x52a35f['isIntersectingWithRange'](_0x30b5f6)||_0x52a35f['addRange'](_0x30b5f6);_0x1c5567['removeMarkers']();}else{_0x52a35f=_0x1c5567;for(const _0x4d967c of _0x163b4b)_0x1c5567['isIntersectingWithRange'](_0x4d967c)||_0x1c5567['addRange'](_0x4d967c);}}if(_0x52a35f)return _0x52a35f;_0x58b4b6['clear']();for(const {suggestion:_0x57d6a0,meta:_0x3448ad}of this['_findSuggestions'](_0x163b4b,'deletion'))_0x3448ad['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3448ad['containsRangeInObject']&&!_0x3448ad['isInsideObject'])&&En(_0x57d6a0,_0x52a1d1)&&_0x58b4b6['add'](_0x57d6a0);for(const _0x880026 of _0x58b4b6){const _0x1d3078=_0x880026['getRanges']();if((!_0x52a1d1||!_0x52a1d1['skipNestingCheck'])&&_0x163b4b['every'](_0x48f4e2=>_0x1d3078['some'](_0x51c8cc=>_0x51c8cc['containsRange'](_0x48f4e2,!0x0))))return _0x880026;_0x880026['attributes']&&_0x880026['attributes']['skipNestingCheck']||_0x1d3078['every'](_0x50f784=>_0x163b4b['some'](_0x218a9d=>_0x218a9d['containsRange'](_0x50f784,!0x0)))&&_0x880026['discard']();}const _0x3da3a8=_0x25321b(),_0x121d70=_0x884812['id'],_0x5b3526='deletion:'+_0x37819f,_0x1be9d9=this['_setSuggestionData']({'id':_0x3da3a8,'type':_0x5b3526,'createdAt':new Date(),'authorId':_0x121d70,'attributes':_0x52a1d1});for(const _0x228740 of _0x163b4b)_0x228740['detach'](),_0x228740['isCollapsed']||'$graveyard'==_0x228740['root']['rootName']||this['_addSuggestionMarker'](_0x5b3526,_0x3da3a8,_0x121d70,_0x228740,yt['getMultiRangeId']());return _0x1be9d9;}['markAttributeChange'](_0x57d2d1,_0x2023fa,_0xb9a44f,_0x3693a8,_0x4d3703){if(_0x57d2d1['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x59829e=this['editor']['plugins']['get']('Users')['me']['id'],_0x1beb36=Array['from'](this['_suggestions']['values']())['filter'](_0x4e673a=>'attribute'==_0x4e673a['type']&&_0x4e673a['data']['key']==_0x2023fa&&_0x4e673a['isIntersectingWithRange'](_0x57d2d1));if(this['_trackingSessionId']&&(_0x4d3703['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x356581=this['_findSuggestions'](_0x57d2d1,'insertion')['filter'](({meta:_0x355f3a})=>_0x355f3a['isOwn']&&!_0x355f3a['isInsideObject']&&!_0x355f3a['isNextTo'])['map'](({suggestion:_0x387e3b})=>_0x387e3b);_0x1beb36['unshift'](..._0x356581);}const _0x275cb9=new Map([[_0x57d2d1,_0xb9a44f]]);for(const _0x483fa7 of _0x1beb36){const _0x4a86cd='attribute'==_0x483fa7['type']?_0x483fa7['data']['oldValue']:void 0x0,_0x39a492=_0x483fa7['getFirstRange'](),_0x628fa2=Array['from'](_0x275cb9['keys']())['find'](_0x58ef1c=>_0x58ef1c['isIntersecting'](_0x39a492));if(!_0x628fa2)continue;const _0x1d4ae4=_0x628fa2['getDifference'](_0x39a492);this['_suggestionsConversion']['isBlockAttribute'](_0x2023fa)&&'insertion'==_0x483fa7['type']&&0x0!=_0x1d4ae4['length']||(_0x275cb9['delete'](_0x628fa2),_0x1d4ae4['forEach'](_0x3d20fc=>{_0x275cb9['set'](_0x3d20fc,_0xb9a44f);}),'insertion'!=_0x483fa7['type']&&_0x4a86cd!=_0x3693a8&&_0x275cb9['set'](_0x628fa2['getIntersection'](_0x39a492),_0x4a86cd));}const _0x1c46d7=[];for(const [_0x3dfb9f,_0x24ab31]of _0x275cb9){const _0x23b337=_0x25321b(),_0x27579e={'key':_0x2023fa,'oldValue':_0x24ab31,'newValue':_0x3693a8};_0x2023fa['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':_0x2023fa});const _0x3fa180=('attribute:'+_0x2023fa+'|'+cn({'newValue':_0x3693a8}))['substring'](0x0,0x3c),_0x59160e=this['_setSuggestionData']({'id':_0x23b337,'type':_0x3fa180,'data':_0x27579e,'createdAt':new Date(),'authorId':_0x59829e,'attributes':_0x4d3703});_0x1c46d7['push'](_0x59160e),this['_addSuggestionMarker'](_0x3fa180,_0x23b337,_0x59829e,_0x3dfb9f);}return _0x1c46d7;}['enableDefaultAttributesIntegration'](_0x5b371a){this['enableCommand'](_0x5b371a,(_0x1fca4b,..._0x13cf3e)=>{this['recordAttributeChanges'](()=>{_0x1fca4b(..._0x13cf3e);});});}['startTrackingSession'](_0xa17e5b){return this['_trackingSessionId']=void 0x0!==_0xa17e5b?_0xa17e5b:_0x25321b(),this['_trackingSessionId'];}['_getAttributeKey'](_0x4413cb){return'attribute'==_0x4413cb['type']?_n(_0x4413cb['subType']):null;}['_applyOperationsAsSuggestions'](_0x45a936){if(0x0==_0x45a936['length'])return;const _0x24bdee=this['editor'],_0x4bd288=_0x24bdee['plugins']['get'](_0x3e0605),_0x840870=[],_0x2617ed=_0x37fb7d=>{const _0x5621fe=_0x37fb7d['_aiSource'];return _0x5621fe?{'@ai':{'type':_0x5621fe}}:{};},_0x5c14a7=(_0x255dd4,_0x56d0f8,_0x4ef210)=>{for(let _0x2007d6=_0x56d0f8;_0x2007d6<_0x255dd4['operations']['length'];_0x2007d6++){const _0x227743=_0x255dd4['operations'][_0x2007d6];'marker'===_0x227743['type']&&(_0x227743['_aiSource']=_0x4ef210);}};_0x24bdee['model']['change'](_0x5b5476=>{for(let _0x256fa5=0x0;_0x256fa5<_0x45a936['length'];_0x256fa5++){const _0x2f99cf=_0x45a936[_0x256fa5],_0x4b865d=_0x2f99cf['_aiSource'],_0x508983=_0x5b5476['batch']['operations']['length'];if(_0x2f99cf['baseVersion']=_0x24bdee['model']['document']['version'],_0x2f99cf['isDocumentOperation']=!0x0,_0x4bd288['isMarkedRemoveOperation'](_0x2f99cf)){const _0x5ecfc6=_0x575b19(_0x2f99cf['newRange'],_0x24bdee['model']);_0x840870['unshift']({'range':rt['fromRange'](_0x5ecfc6),'opAttributes':_0x2617ed(_0x2f99cf),'aiSource':_0x4b865d});}else{switch(_0x2f99cf['type']){case'rename':{const _0x3f0556=_0x2f99cf['oldName'],_0x561960=_0x2f99cf['newName'];if(_0x3f0556==_0x561960)break;_0x5b5476['batch']['addOperation'](_0x2f99cf),_0x24bdee['model']['applyOperation'](_0x2f99cf);const _0xe2c34='$elementName',_0x3e8db3=_0x2f99cf['position'],_0x24b922=_0x24bdee['model']['createRange'](_0x3e8db3,_0x24bdee['model']['createPositionAt'](_0x3e8db3['nodeAfter'],'end'));this['markAttributeChange'](_0x24b922,_0xe2c34,_0x3f0556,_0x561960,{..._0x2617ed(_0x2f99cf),'groupId':_0x25321b()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x52ff33=_0x2f99cf['oldValue'],_0x3a3c01=_0x2f99cf['newValue'];if(_0x52ff33==_0x3a3c01)break;_0x5b5476['batch']['addOperation'](_0x2f99cf),_0x24bdee['model']['applyOperation'](_0x2f99cf);const _0x434f6f=_0x2f99cf['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x434f6f))break;const _0x22b421=_0x575b19(_0x2f99cf['range'],_0x24bdee['model']);this['markAttributeChange'](_0x22b421,_0x434f6f,_0x52ff33,_0x3a3c01,{..._0x2617ed(_0x2f99cf),'groupId':_0x25321b()});break;}case'insert':{if(_0x5b5476['batch']['addOperation'](_0x2f99cf),_0x24bdee['model']['applyOperation'](_0x2f99cf),_0x45a936[_0x256fa5+0x1]&&'move'==_0x45a936[_0x256fa5+0x1]['type'])break;const _0x8816a=_0x2f99cf['position'],_0x49c511=_0x2f99cf['howMany'],_0x4a3830=_0x575b19(_0x24bdee['model']['createRange'](_0x8816a,_0x8816a['getShiftedBy'](_0x49c511)),_0x24bdee['model']);this['markInsertion'](_0x4a3830,null,{..._0x2617ed(_0x2f99cf)});break;}case'split':{_0x5b5476['batch']['addOperation'](_0x2f99cf),_0x24bdee['model']['applyOperation'](_0x2f99cf);const _0x32824d=_0x2f99cf['splitPosition'],_0x408263=_0x2f99cf['moveTargetPosition'],_0x5f57d7=_0x24bdee['model']['createRange'](_0x32824d,_0x408263);this['markInsertion'](_0x5f57d7,null,{..._0x2617ed(_0x2f99cf)});break;}case'move':case'remove':_0x5b5476['batch']['addOperation'](_0x2f99cf),_0x24bdee['model']['applyOperation'](_0x2f99cf);}_0x4b865d&&_0x5c14a7(_0x5b5476['batch'],_0x508983,_0x4b865d);}}for(const {range:_0x48ec18,opAttributes:_0x778c9,aiSource:_0x6c6dc2}of _0x840870){const _0x5ba482=_0x5b5476['batch']['operations']['length'];_0x48ec18['detach'](),this['markDeletion'](_0x48ec18,null,{..._0x778c9}),_0x6c6dc2&&_0x5c14a7(_0x5b5476['batch'],_0x5ba482,_0x6c6dc2);}});}['_setSuggestionRange'](_0x457c19,_0x2c3ab5){const _0xb4d0d4=_0x457c19['getFirstMarker']();this['_model']['change'](_0x4e1b0d=>{_0x4e1b0d['updateMarker'](_0xb4d0d4,{'range':_0x2c3ab5});});}['_addThreadToSuggestion'](_0x4c2d8e){const _0x13709f=_0x4c2d8e['id'],_0x1be6d6=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x13709f)||this['_commentsRepository']['addCommentThread']({'channelId':_0x1be6d6,'threadId':_0x13709f,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1daaa5=this['_commentsRepository']['getCommentThread'](_0x13709f);_0x1daaa5['unbind']('isRemovable'),_0x1daaa5['isRemovable']=!0x1,_0x4c2d8e['commentThread']=_0x1daaa5;}['_checkSuggestionCorrectness'](_0x5323ba,_0x446d08,_0x5d165b,_0x593571){if(_0x5323ba['type']!=_0x446d08||_0x5323ba['subType']!=_0x5d165b||_0x5323ba['creator']['id']!=_0x593571)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x2ca032('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x4f0727,_0x53b752){const _0x56ae48=_0x4f0727['getFirstRange']();if(_0x53b752['isEqual'](_0x56ae48))_0x4f0727['removeMarkers']();else{if(_0x56ae48['containsRange'](_0x53b752)){const _0x17a752=this['_model']['createPositionAt'](_0x53b752['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4f0727,this['_model']['createRange'](_0x56ae48['start'],_0x17a752));const _0x34c9ec=_0x25321b(),_0x58c6cf=_0x4f0727['creator']['id'],_0x296fe4=_0x4f0727['type']+':'+_0x4f0727['subType'];this['_setSuggestionData']({'id':_0x34c9ec,'type':_0x296fe4,'createdAt':new Date(),'authorId':_0x58c6cf,'data':_0x4f0727['data'],'attributes':_0x4f0727['attributes']});const _0x470db3=this['_model']['createPositionAt'](_0x53b752['end']['parent'],'after'),_0x57356a=this['_model']['createRange'](_0x470db3,_0x56ae48['end']);this['_addSuggestionMarker'](_0x296fe4,_0x34c9ec,_0x58c6cf,_0x57356a);}else{if(_0x56ae48['containsPosition'](_0x53b752['start'])){const _0x3e2b13=this['_model']['createPositionAt'](_0x53b752['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4f0727,this['_model']['createRange'](_0x56ae48['start'],_0x3e2b13));}else{const _0x1121be=this['_model']['createPositionAt'](_0x53b752['end']['parent'],'after');this['_setSuggestionRange'](_0x4f0727,this['_model']['createRange'](_0x1121be,_0x56ae48['end']));}}}}['_rangeIsInLocalUserInsertion'](_0xd07040){for(const {suggestion:_0x173eb6,meta:_0x666b2e}of this['_findSuggestions'](_0xd07040,'insertion')){if(!_0x666b2e['isOwn'])continue;const _0x56843a=_0x173eb6['getRanges']();for(const _0x59196e of _0x56843a)if(!_0xd07040['getDifference'](_0x59196e)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x270b3c){return this['editor']['plugins']['get']('Users')['getUser'](_0x270b3c);}['_getExternalAuthor'](_0x539ddf){const _0x4da4ad=this['editor']['plugins']['get']('Users'),_0x270f84=_0x46f71b('external:'+_0x539ddf),_0x4b64e0=_0x4da4ad['getUser'](_0x270f84);return _0x4b64e0||_0x4da4ad['addUser']({'id':_0x270f84,'name':_0x539ddf});}['_createSuggestion'](_0x1d4436,_0x5122be,_0x581fd2,_0x278a04,_0x78fb4,_0x46a050){const _0x528010=this['_getAuthorFromId'](_0x278a04);if(!_0x528010)throw new _0x2ca032('track-changes-user-not-found',this,{'authorId':_0x278a04,'suggestionId':_0x581fd2});const _0x4a1211=this['_suggestionFactory']['buildSuggestion'](_0x1d4436,_0x5122be,_0x581fd2,_0x528010,_0x78fb4,_0x4f188d=>{this['_updateSuggestionData'](_0x581fd2,{'attributes':_0x4f188d});const _0x17f2cf=this['getSuggestion'](_0x581fd2);this['_joinWithAdjacentSuggestions'](new Set([_0x17f2cf])),this['_refreshSuggestionsChain'](new Set([_0x17f2cf]));},_0x46a050);return this['listenTo'](_0x4a1211,'accept',()=>{this['_updateSuggestionData'](_0x581fd2,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x4a1211,'discard',()=>{this['_updateSuggestionData'](_0x581fd2,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x581fd2,_0x4a1211),this['_suggestionState']['set'](_0x4a1211,'notReady'),_0x4a1211;}['_breakSuggestionMarker'](_0x2cfd70,_0x2c4e7c,_0x531f03){const _0x222a30=_0x2cfd70['getFirstRange'](),_0x36051e=_0x222a30['start'],_0x146997=_0x222a30['end'];this['_setSuggestionRange'](_0x2cfd70,this['_model']['createRange'](_0x36051e,_0x2c4e7c));const _0x4f24a1=_0x25321b(),_0x2d6332=_0x2cfd70['creator']['id'],_0x1c4752=_0x2cfd70['type']+(_0x2cfd70['subType']?':'+_0x2cfd70['subType']:'');this['_setSuggestionData']({'id':_0x4f24a1,'type':_0x1c4752,'createdAt':new Date(),'authorId':_0x2d6332,'originalSuggestionId':_0x2cfd70['_originalSuggestionId']||_0x2cfd70['id'],'attributes':_0x2cfd70['attributes'],'data':_0x2cfd70['data']});const _0x26d017=this['_getAttributeKey'](_0x2cfd70);('formatBlock'==_0x2cfd70['type']||_0x26d017&&this['_suggestionsConversion']['isBlockAttribute'](_0x26d017))&&(_0x531f03=this['_model']['createPositionBefore'](_0x531f03['parent'])),this['_addSuggestionMarker'](_0x1c4752,_0x4f24a1,_0x2d6332,this['_model']['createRange'](_0x531f03,_0x146997));}['_findSuggestions'](_0x5761e6,_0x16da7e=null){const _0x2fea29=[],_0x41f456=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x5761e6)||(_0x5761e6=[_0x5761e6]);for(const _0x53ee63 of this['getSuggestions']()){if(!_0x53ee63['isInContent'])continue;if(_0x16da7e&&_0x53ee63['type']!=_0x16da7e)continue;let _0x1f45de=!0x1;for(const _0x2b2c18 of _0x53ee63['getRanges']()){for(const _0x330532 of _0x5761e6){const _0x4c2096=_0x330532['start']['isEqual'](_0x2b2c18['end'])||_0x330532['end']['isEqual'](_0x2b2c18['start']);if(_0x4c2096||_0x330532['getIntersection'](_0x2b2c18)){const _0x53ed05=_0x330532['containsRange'](_0x2b2c18)&&rn(this['_model']['schema'],_0x2b2c18['start'],_0x330532),_0x4d5c69=_0x2b2c18['containsRange'](_0x330532)&&rn(this['_model']['schema'],_0x330532['start'],_0x2b2c18);_0x2fea29['push']({'suggestion':_0x53ee63,'meta':{'isOwn':_0x41f456==_0x53ee63['author'],'isNextTo':_0x4c2096,'isInsideObject':_0x53ed05,'containsRangeInObject':_0x4d5c69}}),_0x1f45de=!0x0;break;}}if(_0x1f45de)break;}}return _0x2fea29;}['_addSuggestionMarker'](_0x132c1f,_0x4332e4,_0x9175d4,_0x2778dc,_0x231668){this['_model']['change'](_0x4b8536=>{let _0x1f1145='suggestion:'+_0x132c1f+':'+_0x4332e4+':'+_0x9175d4;_0x231668&&(_0x1f1145=_0x1f1145+':'+_0x231668),_0x4b8536['addMarker'](_0x1f1145,{'range':_0x2778dc,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0xbc0b5b){const _0x51b90c=_0xbc0b5b['previous'],_0x57c30a=_0xbc0b5b['next'];_0xbc0b5b['previous']=null,_0xbc0b5b['next']=null,null!=_0x51b90c&&_0x51b90c['next']==_0xbc0b5b&&(_0x51b90c['next']=_0x57c30a),null!=_0x57c30a&&_0x57c30a['previous']==_0xbc0b5b&&(_0x57c30a['previous']=_0x51b90c),'ready'==this['_suggestionState']['get'](_0xbc0b5b)&&(this['_suggestionState']['set'](_0xbc0b5b,'removed'),this['fire']('suggestionUnloaded',_0xbc0b5b,_0x51b90c,_0x57c30a));}['_setSuggestionData'](_0x1206ef){const _0x17eb31=_0x1206ef['id'],_0x3a7dad=this['addSuggestionData'](_0x1206ef);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x5c387e=this['editor']['plugins']['get']('PendingActions'),_0x31bdf9=_0x3a7dad['hasComments'],_0xa1be9a=_0x3a7dad['subType']?_0x3a7dad['type']+':'+_0x3a7dad['subType']:_0x3a7dad['type'],_0x417e28=this['editor']['locale'],_0x2e6c4c=_0x5c387e['add'](St(_0x417e28,'PENDING_ACTION_SUGGESTION')),_0x10d1da={'id':_0x17eb31,'type':_0xa1be9a,'hasComments':_0x31bdf9,'data':_0x1206ef['data']||null,'originalSuggestionId':_0x1206ef['originalSuggestionId']||null,'attributes':_0x3a7dad['attributes']};this['_adapter']['addSuggestion'](_0x10d1da)['then'](_0x14c7f0=>{_0x3a7dad['_saved']=!0x0,_0x5c387e['remove'](_0x2e6c4c),_0x14c7f0&&_0x14c7f0['createdAt']&&(this['_suggestions']['get'](_0x17eb31)['createdAt']=_0x14c7f0['createdAt']);})['catch'](_0x30851b=>{throw _0x195bce('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x3a7dad['discard']();}),_0x3a7dad['stopListening'](),this['_suggestions']['delete'](_0x3a7dad['id']),this['_suggestionState']['delete'](_0x3a7dad),_0x30851b;});}return _0x3a7dad;}['_updateSuggestionData'](_0x56a2b2,_0x384693){const _0x3cef16=this['editor']['plugins']['get']('PendingActions'),_0xd24e32=this['getSuggestion'](_0x56a2b2);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0xd24e32['_saved']){const _0x18fbb5=_0x3cef16['add'](St(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x56a2b2,_0x384693)['then'](()=>{_0x3cef16['remove'](_0x18fbb5);});}else _0xd24e32['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x56a2b2,_0x384693);});}}['_getSuggestionData'](_0x567678){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x2ca032('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x567678);}['_handleNewSuggestionMarker'](_0x5ac1cc){const {id:_0x5cae97,type:_0x51b01e,subType:_0x430d45,authorId:_0x2c102c}=tt(_0x5ac1cc),_0x1d49bc=this['_suggestions']['get'](_0x5cae97)||this['_createSuggestion'](_0x51b01e,_0x430d45,_0x5cae97,_0x2c102c,{});switch(this['_checkSuggestionCorrectness'](_0x1d49bc,_0x51b01e,_0x430d45,_0x2c102c),this['_suggestionState']['get'](_0x1d49bc)){case'notReady':this['_getSuggestionData'](_0x5cae97)['then'](_0x537ab7=>{let _0x192bc2=Promise['resolve']();_0x537ab7['hasComments']&&(_0x192bc2=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x5cae97})),_0x192bc2['then'](()=>{this['addSuggestionData'](_0x537ab7)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x1d49bc,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x5cae97,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x1d49bc,'ready'),this['fire']('suggestionLoaded',_0x1d49bc);break;case'ready':this['fire']('suggestionChanged',_0x1d49bc);}return _0x1d49bc['addMarkerName'](_0x5ac1cc),_0x1d49bc;}['_refreshSuggestionsChain'](_0x349878){const _0x22b22e=Array['from'](_0x349878),_0x3dccf4=_0x22b22e['filter'](_0x1029bd=>'attribute'==_0x1029bd['type']);this['_refreshAttributeSuggestionsChain'](_0x3dccf4);const _0x2bd7e1=_0x22b22e['filter'](_0x57f007=>!_0x57f007['isMultiRange']&&'attribute'!=_0x57f007['type']),_0x417ac4=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3538ce=>!_0x3538ce['isMultiRange']&&'attribute'!=_0x3538ce['type']),_0x4e733b=_0x417ac4['filter'](_0x148d35=>!_0x349878['has'](_0x148d35)),_0x248094=new Map(_0x417ac4['map'](_0x1afac0=>[_0x1afac0,this['_suggestionFactory']['getSuggestionCallback'](_0x1afac0['type'],_0x1afac0['subType'],'chain')])),_0x326e38=new Map(_0x417ac4['map'](_0x45e32f=>[_0x45e32f,_0x45e32f['getFirstRange']()])),_0x416e93=new Set(),_0x57c7f1=new Set();for(let _0x5a1ad7=0x0;_0x5a1ad7<_0x2bd7e1['length'];_0x5a1ad7++)_0x4af438(_0x2bd7e1[_0x5a1ad7],_0x2bd7e1,_0x5a1ad7+0x1);for(let _0x15dc9d=0x0;_0x15dc9d<_0x2bd7e1['length'];_0x15dc9d++)_0x4af438(_0x2bd7e1[_0x15dc9d],_0x4e733b,0x0);const _0x4cff24=new Set();for(let _0x3ac84f=0x0;_0x3ac84f<_0x2bd7e1['length'];_0x3ac84f++){const _0x38d533=_0x2bd7e1[_0x3ac84f];!_0x57c7f1['has'](_0x38d533)&&_0x38d533['previous']&&(_0x4cff24['add'](_0x38d533['previous']),_0x38d533['previous']['next']===_0x38d533&&(_0x38d533['previous']['next']=null),_0x38d533['previous']=null),!_0x416e93['has'](_0x38d533)&&_0x38d533['next']&&(_0x4cff24['add'](_0x38d533['next']),_0x38d533['next']['previous']===_0x38d533&&(_0x38d533['next']['previous']=null),_0x38d533['next']=null);}function _0x4af438(_0x4f9baa,_0x51193c,_0x115b6f){for(let _0x167444=_0x115b6f;_0x167444<_0x51193c['length'];_0x167444++){const _0x47fb5e=_0x4f7f44(_0x4f9baa,_0x51193c[_0x167444]);_0x47fb5e&&(_0x47fb5e[0x0]['next']=_0x47fb5e[0x1],_0x47fb5e[0x1]['previous']=_0x47fb5e[0x0],_0x416e93['add'](_0x47fb5e[0x0]),_0x57c7f1['add'](_0x47fb5e[0x1]));}}function _0x4f7f44(_0x5651cf,_0x30fa34){if(_0x5651cf['author']['id']!==_0x30fa34['author']['id'])return null;const _0x510fbc=_0x248094['get'](_0x5651cf)(_0x5651cf,_0x30fa34,_0x326e38['get'](_0x5651cf),_0x326e38['get'](_0x30fa34));return _0x510fbc&&_0x248094['get'](_0x30fa34)(_0x5651cf,_0x30fa34,_0x326e38['get'](_0x5651cf),_0x326e38['get'](_0x30fa34))?_0x510fbc[0x1]['commentThread']&&_0x510fbc[0x1]['commentThread']['length']?null:_0x510fbc:null;}_0x4cff24['size']&&this['_refreshSuggestionsChain'](_0x4cff24);}['_refreshAttributeSuggestionsChain'](_0x1ed79f){if(0x0==_0x1ed79f['length'])return;const _0x1c6c6c=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x49c760=>'attribute'==_0x49c760['type']&&_0x49c760['_isDataLoaded']),_0x34ce73=[],_0x521514=new Map();for(const _0x509778 of _0x1c6c6c){const _0xc657f6=_0x46f71b(_0x509778['attributes']);_0x521514['has'](_0xc657f6)||(_0x521514['set'](_0xc657f6,_0x34ce73['length']),_0x34ce73['push']([])),_0x34ce73[_0x521514['get'](_0xc657f6)]['push'](_0x509778);}!(function(){_0x34ce73['sort']((_0x24b6d4,_0x2ba3a7)=>{const _0x1a4511=_0x24b6d4[0x0]['createdAt'],_0xa52c77=_0x2ba3a7[0x0]['createdAt'];return _0x1a4511==_0xa52c77?_0x24b6d4[0x0]['attributes']['groupId']<_0x2ba3a7[0x0]['attributes']['groupId']?-0x1:0x1:_0x1a4511<_0xa52c77?-0x1:0x1;});for(const _0x4d8e73 of _0x34ce73)_0x4d8e73['sort']((_0x3a352d,_0x5b5128)=>_0x3a352d['id']<_0x5b5128['id']?-0x1:0x1);}());for(let _0x14851a=0x0;_0x14851a<_0x34ce73['length'];_0x14851a++){if(0x0==_0x34ce73[_0x14851a]['length'])continue;const _0x3feece=[];for(let _0x20d761=_0x14851a+0x1;_0x20d761<_0x34ce73['length'];_0x20d761++)0x0!=_0x34ce73[_0x20d761]['length']&&_0x546e6e(_0x34ce73[_0x14851a],_0x34ce73[_0x20d761])&&_0x3feece['push'](_0x20d761);for(const _0x5b577f of _0x3feece)_0x34ce73[_0x14851a]=_0x34ce73[_0x14851a]['concat'](_0x34ce73[_0x5b577f]),_0x34ce73[_0x5b577f]=[];}for(const _0xfb06ca of _0x34ce73)for(let _0x19ebe9=0x0;_0x19ebe9<_0xfb06ca['length'];_0x19ebe9++){const _0x1a0086=_0xfb06ca[_0x19ebe9+0x1]||null;_0xfb06ca[_0x19ebe9]['next']!==_0x1a0086&&(_0xfb06ca[_0x19ebe9]['next']=_0x1a0086);}for(const _0x3909fe of _0x34ce73)for(let _0x2e7815=0x0;_0x2e7815<_0x3909fe['length'];_0x2e7815++){const _0x5a0384=_0x3909fe[_0x2e7815-0x1]||null;_0x3909fe[_0x2e7815]['previous']!==_0x5a0384&&(_0x3909fe[_0x2e7815]['previous']=_0x5a0384);}function _0x546e6e(_0x1517b5,_0x331a1e){return(_0x1517b5[0x0]['attributes']['groupId']===_0x331a1e[0x0]['attributes']['groupId']||_0x1517b5[0x0]['author']===_0x331a1e[0x0]['author'])&&(!!function(_0x3696ee,_0x5b5c95){return!_0x3696ee['hasComments']&&!_0x5b5c95['hasComments']||(!_0x3696ee['hasComments']||!_0x5b5c95['hasComments'])&&(!!(_0x3696ee['hasComments']&&_0x5b5c95['createdAt']<_0x3696ee['commentThread']['comments']['get'](0x0)['createdAt'])||!!(_0x5b5c95['hasComments']&&_0x3696ee['createdAt']<_0x5b5c95['commentThread']['comments']['get'](0x0)['createdAt']));}(_0x1517b5[0x0],_0x331a1e[0x0])&&(!!ct(lt(_0x1517b5[0x0]['attributes'],['groupId','trackingSessionId']),lt(_0x331a1e[0x0]['attributes'],['groupId','trackingSessionId']))&&(_0x1517b5[0x0]['attributes']['groupId']==_0x331a1e[0x0]['attributes']['groupId']||_0x1517b5[0x0]['attributes']['trackingSessionId']===_0x331a1e[0x0]['attributes']['trackingSessionId']&&(!!_0x1517b5['every'](_0x225a0b=>_0x331a1e['some'](_0x1bb1d4=>_0x225a0b['getFirstRange']()['isEqual'](_0x1bb1d4['getFirstRange']())))&&_0x331a1e['every'](_0x1421df=>_0x1517b5['some'](_0x4099a7=>_0x1421df['getFirstRange']()['isEqual'](_0x4099a7['getFirstRange']())))))));}}['_joinWithAdjacentSuggestions'](_0x3095cb){const _0x131835=Array['from'](_0x3095cb),_0x29666b=this['getSuggestions']({'skipNotAttached':!0x0}),_0x1b33f1=_0x29666b['filter'](_0x989976=>!_0x3095cb['has'](_0x989976)),_0x45c16d=new Map(_0x131835['map'](_0x283e66=>[_0x283e66,this['_suggestionFactory']['getSuggestionCallback'](_0x283e66['type'],_0x283e66['subType'],'join')])),_0x4455b9=new Map(_0x29666b['map'](_0x2caaa1=>[_0x2caaa1,_0x2caaa1['getRanges']()]));for(let _0x14946c=0x0;_0x14946c<_0x131835['length'];_0x14946c++)if(_0x4e944d(this,_0x131835[_0x14946c],_0x131835,_0x14946c+0x1))return!0x0;for(let _0x4e1dd5=0x0;_0x4e1dd5<_0x131835['length'];_0x4e1dd5++)if(_0x4e944d(this,_0x131835[_0x4e1dd5],_0x1b33f1,0x0))return!0x0;return!0x1;function _0x4e944d(_0x130b4a,_0x4aec77,_0x26dee1,_0x76fdf0){for(let _0x120e95=_0x76fdf0;_0x120e95<_0x26dee1['length'];_0x120e95++){const _0x64f6b2=_0x26dee1[_0x120e95];if(_0x64f6b2['type']!==_0x4aec77['type']||_0x64f6b2['author']['id']!==_0x4aec77['author']['id']||_0x64f6b2['subType']!==_0x4aec77['subType'])continue;if(!mn(_0x4aec77,_0x64f6b2))continue;if('attribute'==_0x4aec77['type']&&_0x4aec77['data']['oldValue']!=_0x64f6b2['data']['oldValue'])continue;if('attribute'==_0x4aec77['type']&&_0x130b4a['_suggestionsConversion']['isBlockAttribute'](_0x4aec77['data']['key']))continue;if('formatBlock'==_0x4aec77['type']){const _0x5d44ac=_0x130b4a['editor']['model'],_0x41a5b5=_0x4aec77['getContainedElement']();if(_0x41a5b5&&(_0x5d44ac['schema']['isObject'](_0x41a5b5)||_0x5d44ac['schema']['isLimit'](_0x41a5b5)))continue;}const _0xaf58fd=_0x45c16d['get'](_0x4aec77),_0x2f9d39=_0x4455b9['get'](_0x4aec77),_0x5a790e=_0x4455b9['get'](_0x64f6b2),_0x33a22a=_0x4aec77['commentThread']&&_0x4aec77['commentThread']['length'],_0x185032=_0x64f6b2['commentThread']&&_0x64f6b2['commentThread']['length'];if(!_0x33a22a&&_0xaf58fd(_0x5a790e,_0x2f9d39))return _0x130b4a['_joinSuggestions'](_0x64f6b2,_0x4aec77),_0x4455b9['delete'](_0x4aec77),!0x0;if(!_0x185032&&_0xaf58fd(_0x2f9d39,_0x5a790e))return _0x130b4a['_joinSuggestions'](_0x4aec77,_0x64f6b2),_0x4455b9['delete'](_0x64f6b2),!0x0;}return!0x1;}}['_joinSuggestions'](_0x5d0dc8,_0xd55ebc){if(_0x5d0dc8['isMultiRange']){for(const _0x5b944d of _0xd55ebc['getRanges']())_0x5d0dc8['addRange'](_0x5b944d);}else{const _0x76ba64=_0xd55ebc['getFirstRange']()['end'];this['_setSuggestionRange'](_0x5d0dc8,this['_model']['createRange'](_0x5d0dc8['getFirstRange']()['start'],_0x76ba64));}_0xd55ebc['removeMarkers']();}['_getMarkerAnnouncementText'](_0x2ac5a4,_0x44cf2c,_0x5973dc){const _0x47a7a6=_0x2ac5a4['startsWith']('format')||_0x2ac5a4['startsWith']('attribute')?'FORMATTING':_0x2ac5a4['toUpperCase']();return St(this['editor']['locale'],_0x44cf2c+'_'+_0x47a7a6+'_SUGGESTION_ANNOUNCEMENT',_0x5973dc);}['_initAriaMarkerChangeAnnouncements'](){const _0x5b18c2=this['editor'];if(!_0x5b18c2['ui'])return;const {ariaLiveAnnouncer:_0x2614b9}=_0x5b18c2['ui'];et(this['_model'],({left:_0x57668f,entered:_0xea3da1})=>{for(const _0x4aff66 of _0x57668f){const {group:_0x406c54,type:_0xa85478}=tt(_0x4aff66['name']);if('suggestion'===_0x406c54){_0x2614b9['announce'](this['_getMarkerAnnouncementText'](_0xa85478,'LEAVE'));break;}}for(const _0xa0ca22 of _0xea3da1){const {group:_0x21b1c4,type:_0xf46437}=tt(_0xa0ca22['name']);if('suggestion'===_0x21b1c4){_0x2614b9['announce'](this['_getMarkerAnnouncementText'](_0xf46437,'ENTER',_0x5b231d(_0x27b811)));break;}}});}['_processAttributeChanges'](_0x35ce29){if(this['_recordAttributeSuggestions'])return!0x1;const _0x3ea707=this['editor'],_0x18e222=_0x3ea707['model']['document']['differ']['getChanges']();if(0x0==_0x18e222['length'])return!0x1;const _0x1fea24=[],_0x4e79cb=_0x18e222['filter'](_0x524a86=>'attribute'==_0x524a86['type']),_0x53a5e9=_0x18e222['filter'](_0x117e05=>'insert'==_0x117e05['type']&&'$text'!=_0x117e05['name']),_0xd90625=_0x18e222['filter'](_0x3e5298=>'remove'==_0x3e5298['type']&&'$text'!=_0x3e5298['name']);for(const _0x4851b2 of _0x4e79cb)_0x1fea24['push']({'key':_0x4851b2['attributeKey'],'newValue':_0x4851b2['attributeNewValue'],'oldValue':_0x4851b2['attributeOldValue'],'range':hn(_0x4851b2['range'],_0x3ea707['model'])});for(const _0x5c3e88 of _0x53a5e9){const _0xc6cf8f=_0xd90625['find'](_0x1a28ec=>_0x1a28ec['position']['isEqual'](_0x5c3e88['position']));_0xc6cf8f&&_0x1fea24['push']({'key':en,'newValue':_0x5c3e88['name'],'oldValue':_0xc6cf8f['name'],'range':_0x3ea707['model']['createRangeOn'](_0x5c3e88['position']['nodeAfter'])});}return 0x0!=_0x1fea24['length']&&this['_reduceExistingSuggestions'](_0x35ce29,_0x1fea24);}['_processAttributeSuggestions'](_0x40783a){let _0x24f1b5=!0x1;const _0x40aaa0=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x30940a=>_0x30940a['data']['newRange']&&_0x30940a['name']['startsWith']('suggestion:attribute:'));for(const _0x208d7e of _0x40aaa0){const {subType:_0x216635,id:_0xecb761}=tt(_0x208d7e['name']),_0x49a4fa=_0x216635['split']('|')[0x0];for(const _0x6d3b13 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x6d3b13['id']!=_0xecb761&&'attribute'==_0x6d3b13['type']&&_0x6d3b13['data']&&_0x6d3b13['data']['key']==_0x49a4fa&&_0x6d3b13['getFirstRange']()['isIntersecting'](_0x208d7e['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x6d3b13,_0x208d7e['data']['newRange'],_0x40783a),_0x24f1b5=!0x0);}return _0x24f1b5;}['recordAttributeChanges'](_0x579b25){this['_recordAttributeSuggestions']=!0x0,_0x579b25();}['_reduceExistingSuggestions'](_0x80a502,_0x19cec8){if(0x0==_0x19cec8['length'])return!0x1;let _0x3cb7f9=!0x1;for(const _0x1aa512 of _0x19cec8){const _0x15a5cc=this['_findSuggestions'](_0x1aa512['range'],'attribute')['filter'](_0x5a62a0=>!_0x5a62a0['meta']['isNextTo'])['map'](_0x1fd50f=>_0x1fd50f['suggestion']),_0x10ec07=_0x46f71b({'newValue':_0x1aa512['newValue']});_0x15a5cc['filter'](_0x1b62d3=>{const [_0xe8d17a,_0x15ce93]=_0x1b62d3['subType']['split']('|');return _0xe8d17a==_0x1aa512['key']&&_0x15ce93!=_0x10ec07;})['forEach'](_0x363965=>{this['_reduceSuggestionAttributeRange'](_0x363965,_0x1aa512['range'],_0x80a502),_0x3cb7f9=!0x0;});}return _0x3cb7f9;}['_reduceSuggestionAttributeRange'](_0x4b035f,_0x4dfe0e,_0x332c11){const _0x126f9b=_0x4b035f['getFirstRange']()['getDifference'](_0x4dfe0e);0x0!==_0x126f9b['length']?0x1!==_0x126f9b['length']?this['_breakSuggestionMarker'](_0x4b035f,_0x4dfe0e['start'],_0x4dfe0e['end']):this['_setSuggestionRange'](_0x4b035f,_0x126f9b[0x0]):_0x332c11['removeMarker'](_0x4b035f['getFirstMarker']());}},sn=class{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x5021ff){this['_editor']=_0x5021ff,this['_model']=_0x5021ff['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x516cf4,_0x229152,_0x52315f,_0x1d94b7,_0x471238,_0x46aabf,_0xe24e31){return new yt(this['_model'],{'type':_0x516cf4,'subType':_0x229152,'id':_0x52315f,'originalSuggestionId':_0xe24e31,'author':_0x1d94b7,'creator':_0x1d94b7,'attributes':_0x471238,'onAttributesChange':_0x46aabf,'onAccept':(..._0x13fa38)=>this['getSuggestionCallback'](_0x516cf4,_0x229152,'accept')(..._0x13fa38),'onDiscard':(..._0x5c9ede)=>this['getSuggestionCallback'](_0x516cf4,_0x229152,'discard')(..._0x5c9ede)});}['registerCustomCallback'](_0xb57bc7,_0x9a29ce,_0x486bda,_0x497d9a){const _0x327085=_0xb57bc7+':'+_0x9a29ce+':'+_0x486bda;this['_customCallbacks']['set'](_0x327085,_0x497d9a);}['getSuggestionCallback'](_0x347b44,_0x489175,_0xfe45d3){const _0x388678=_0x347b44+':'+_0x489175+':'+_0xfe45d3;return this['_customCallbacks']['get'](_0x388678)||this['_defaultCallbacks']['get'](_0x347b44+':'+_0xfe45d3);}['_registerDefaultCallbacks'](){const _0x7607d8=()=>!0x1,_0x31e45f=_0x4af147=>{_0x4af147['sort']((_0x27761a,_0x5e7bbd)=>_0x27761a['start']['isBefore'](_0x5e7bbd['start'])?0x1:-0x1),this['_model']['change'](_0x3db8fa=>{for(const _0x361c5b of _0x4af147){let _0x55055d;_0x55055d=_0x361c5b['end']['isAtEnd']&&_0x361c5b['end']['parent']==_0x361c5b['start']['nodeAfter']?_0x3db8fa['createSelection'](_0x361c5b['start']['nodeAfter'],'on'):_0x3db8fa['createSelection'](_0x361c5b),this['_model']['deleteContent'](_0x55055d,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x15c16d=(_0x3d135b,_0x4e758c)=>{_0x4e758c&&this['_model']['change'](_0x23b83b=>{const {commandName:_0x552260,commandParams:_0x39c4dc=[]}=_0x4e758c,_0x489362=_0x3d135b['map'](_0x18556f=>(on(_0x18556f)&&(_0x18556f=this['_model']['createRange'](_0x18556f['end'])),_0x18556f))['filter'](_0x171351=>'$graveyard'!==_0x171351['root']['rootName']);if(_0x489362['length']<0x1)return;const _0x5515cb=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x3b7008=>rt['fromRange'](_0x3b7008));_0x23b83b['setSelection'](_0x489362);for(const _0x2e2e68 of this['_editor']['commands']['commands']())_0x2e2e68['refresh']();_0x39c4dc['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x552260,..._0x39c4dc);const _0x5904c5=_0x5515cb['filter'](_0x202823=>'$graveyard'!=_0x202823['root']['rootName']);_0x5904c5['length']>0x0&&_0x23b83b['setSelection'](_0x5904c5);for(const _0x3b0a46 of _0x5515cb)_0x3b0a46['detach']();});},_0xfee49b=(_0xc02b96,_0x4e53a6)=>0x1==_0xc02b96['length']&&0x1==_0x4e53a6['length']&&_0xc02b96[0x0]['end']['isEqual'](_0x4e53a6[0x0]['start']),_0x576bb4=(_0x57c738,_0x2e1b2e,_0x3c1800,_0x31ea8f)=>fn(_0x57c738,_0x2e1b2e,_0x3c1800,_0x31ea8f)?[_0x57c738,_0x2e1b2e]:fn(_0x2e1b2e,_0x57c738,_0x31ea8f,_0x3c1800)?[_0x2e1b2e,_0x57c738]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x7607d8),this['_defaultCallbacks']['set']('insertion:discard',_0x31e45f),this['_defaultCallbacks']['set']('insertion:join',_0xfee49b),this['_defaultCallbacks']['set']('insertion:chain',_0x576bb4),this['_defaultCallbacks']['set']('deletion:accept',_0x31e45f),this['_defaultCallbacks']['set']('deletion:discard',_0x7607d8),this['_defaultCallbacks']['set']('deletion:join',_0xfee49b),this['_defaultCallbacks']['set']('deletion:chain',_0x576bb4),this['_defaultCallbacks']['set']('formatInline:accept',_0x15c16d),this['_defaultCallbacks']['set']('formatInline:discard',_0x7607d8),this['_defaultCallbacks']['set']('formatInline:join',_0xfee49b),this['_defaultCallbacks']['set']('formatInline:chain',_0x7607d8),this['_defaultCallbacks']['set']('formatBlock:accept',_0x15c16d),this['_defaultCallbacks']['set']('formatBlock:discard',_0x7607d8),this['_defaultCallbacks']['set']('formatBlock:join',_0xfee49b),this['_defaultCallbacks']['set']('formatBlock:chain',_0x7607d8),this['_defaultCallbacks']['set']('attribute:accept',_0x7607d8),this['_defaultCallbacks']['set']('attribute:discard',(_0x3eca64,_0x4ac7c9)=>{if(!_0x4ac7c9)return;const _0x3550ca=this['_editor']['plugins']['get'](_0x3c4484);this['_model']['change'](_0x4daa87=>{if('$elementName'==_0x4ac7c9['key'])for(const _0x47a8dd of _0x3eca64){const _0x140a53=_0x47a8dd['start']['nodeAfter'],_0x3c5c26=_0x4ac7c9['oldValue'];_0x4daa87['rename'](_0x140a53,_0x3c5c26);}else{if(_0x3550ca['isBlockAttribute'](_0x4ac7c9['key'])){for(const _0x82c1cc of _0x3eca64)void 0x0!==_0x4ac7c9['oldValue']?_0x4daa87['setAttribute'](_0x4ac7c9['key'],_0x4ac7c9['oldValue'],_0x82c1cc['start']['nodeAfter']):_0x4daa87['removeAttribute'](_0x4ac7c9['key'],_0x82c1cc['start']['nodeAfter']);}else{for(const _0x224941 of _0x3eca64)_0x4ac7c9['oldValue']?_0x4daa87['setAttribute'](_0x4ac7c9['key'],_0x4ac7c9['oldValue'],_0x224941):_0x4daa87['removeAttribute'](_0x4ac7c9['key'],_0x224941);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0xfee49b);}};function rn(_0x3c5385,_0x256e31,_0xba633d){for(const _0x1d3832 of _0x256e31['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x1d3832['root']==_0x1d3832)return!0x1;if(!_0xba633d['containsItem'](_0x1d3832))return!0x1;if(_0x3c5385['isObject'](_0x1d3832)||_0x3c5385['isLimit'](_0x1d3832))return!0x0;}return!0x1;}function on(_0x646b2f){return _0x646b2f['end']['parent']==_0x646b2f['start']['nodeAfter']&&_0x646b2f['end']['isAtStart'];}function an(_0x6b0e51,_0x20f4d1,_0x4bfbb0,_0x34366f){const _0x8efb89=_0x56524d=>!_0x56524d['item']['is']('$textProxy')&&!_0x34366f['isObject'](_0x56524d['item']),_0x43041d=_0x6b0e51['start']['getLastMatchingPosition'](_0x8efb89),_0x30d829=_0x6b0e51['end']['getLastMatchingPosition'](_0x8efb89,{'direction':'backward'});return(!_0x6b0e51['start']['isEqual'](_0x43041d)||!_0x6b0e51['end']['isEqual'](_0x30d829))&&(_0x43041d['isBefore'](_0x30d829)?_0x4bfbb0['updateMarker'](_0x20f4d1,{'range':_0x4bfbb0['createRange'](_0x43041d,_0x30d829)}):_0x4bfbb0['removeMarker'](_0x20f4d1),!0x0);}function cn(_0x40bcf1){return _0x46f71b(_0x40bcf1);}function ln(_0x203708){const _0x33b983=_0x203708['start']['nodeAfter'];return _0x33b983&&_0x33b983['is']('element');}function un(_0x4a9e16){return on(_0x4a9e16)||function(_0x26c892){return _0x26c892['start']['parent']==_0x26c892['end']['nodeBefore']&&_0x26c892['start']['isAtEnd'];}(_0x4a9e16);}function dn(_0x333575,_0x3e77ea){try{const _0x417d18=_0x333575['getRange']();for(const _0x898b49 of _0x3e77ea)if(_0x333575!==_0x898b49&&_0x417d18&&_0x417d18['isIntersecting'](_0x898b49['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function hn(_0x49f8d7,_0x345e27){return null==_0x49f8d7['end']['nodeBefore']&&_0x49f8d7['end']['parent']==_0x49f8d7['start']['nodeAfter']?gn(_0x49f8d7['start']['nodeAfter'],_0x345e27):_0x49f8d7;}function gn(_0x6559fc,_0x2b3e19){const _0xb97c66=_0x2b3e19['schema']['isObject'](_0x6559fc)||_0x2b3e19['schema']['isSelectable'](_0x6559fc);return _0x2b3e19['createRange'](_0x2b3e19['createPositionAt'](_0x6559fc,'before'),_0xb97c66?_0x2b3e19['createPositionAfter'](_0x6559fc):_0x2b3e19['createPositionAt'](_0x6559fc,'end'));}function fn(_0x3b1151,_0x10209b,_0x39dcb4,_0x1f504f){return!!mn(_0x3b1151,_0x10209b)&&_0x39dcb4['end']['isEqual'](_0x1f504f['start']);}function mn(_0x5d22b3,_0x2731b1){if(!_0x5d22b3['_isDataLoaded']||!_0x2731b1['_isDataLoaded'])return!0x1;const _0x35036d=new Set(Object['keys'](_0x5d22b3['attributes'])),_0x38bf92=new Set(Object['keys'](_0x2731b1['attributes']));if(_0x35036d['delete']('groupId'),_0x38bf92['delete']('groupId'),0x0==_0x35036d['size']&&0x0==_0x38bf92['size'])return!0x0;if(_0x35036d['size']!=_0x38bf92['size'])return!0x1;const _0x2dbbcf={..._0x5d22b3['attributes']},_0x214f92={..._0x2731b1['attributes']};return delete _0x2dbbcf['groupId'],delete _0x214f92['groupId'],JSON['stringify'](_0x2dbbcf)==JSON['stringify'](_0x214f92);}function En(_0xbbb49,_0x2e6e5a){const _0x456eb1=Tn(_0xbbb49['attributes']),_0x51e10c=Tn(_0x2e6e5a);if(!_0xbbb49['_isDataLoaded'])return!0x1;if(!ct(_0x456eb1['@ai'],_0x51e10c['@ai']))return!0x1;for(const _0x56e288 of Object['keys'](_0x51e10c))if(!ct(_0x456eb1[_0x56e288],_0x51e10c[_0x56e288]))return!0x1;return!0x0;}function Tn(_0x49f404){const _0x2b048a=Object['assign']({},_0x49f404);return delete _0x2b048a['skipNestingCheck'],delete _0x2b048a['tablePasteChainId'],_0x2b048a;}function _n(_0x3570ca){return _0x3570ca['split']('|')[0x0];}const pn=/* #__PURE__ -- @preserve */
|
|
26
|
-
_0x58d8b4();var Ln=class extends pn{['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x185f1f,_0x20cd3b,_0x144100,_0xb5145f){super(),this['model']=_0x20cd3b,this['view']=_0x144100,this['commentThreadController']=_0xb5145f,this['_editor']=_0x185f1f,this['_acceptCommand']=_0x185f1f['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x185f1f['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x564dda,_0x4bfc6f)=>_0x564dda||_0x4bfc6f),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x410ddc=>_0x410ddc&&this['_editor']['model']['canEditAt'](_0x20cd3b['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x2ea66c=>_0x2ea66c&&this['_editor']['model']['canEditAt'](_0x20cd3b['getRanges']())),this['_pendingAction']=null,_0x144100['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x144100,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x144100,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x144100,'change:isDirty',()=>{_0x144100['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 _0x3b2d73=St(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x3b2d73);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}},In=class extends _0x48ea13{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x33eb50,_0x48632b,_0x245291,_0x3b7952){super(_0x33eb50),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x3f75ca(_0x33eb50,St(_0x33eb50,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x48632b['authoredAt']),this['bind']('authoredAt')['to'](_0x48632b),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',_0x48632b,'authoredAt',this,'descriptionParts',(_0x3cb893,_0x1223b4,_0x30a1b0)=>{const _0x57aecf=_0x30a1b0['map'](_0x19589c=>pt(_0x19589c['content']))['join']('.\x20')+'.',_0x31691a=_0x48632b['aiSource']&&'author'===_0x3b7952['showAISource']?_0x3b7952['aiAuthor']['name']:_0x48632b['author']['name'],_0x37b74a=St(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x3cb893-0x1,_0x31691a,_0x1223b4?_0x3b7952['formatDateTime'](_0x1223b4):'',new DOMParser()['parseFromString'](_0x57aecf,'text/html')['body']['textContent']]);return _0x48632b['aiSource']&&'pill'===_0x3b7952['showAISource']?_0x37b74a+'\x20'+St(this['locale'],'AI_SOURCE_PILL_TOOLTIP'):_0x37b74a;}),this['focusables']=new _0x7d9825(),this['focusTracker']=new _0x446810(),this['keystrokes']=new _0x2a1141(),this['focusCycler']=new _0x8d07ec({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x1f385b=>_0x1f385b['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x48632b,this['_localUser']=_0x245291,this['_config']=_0x3b7952,_0x3b7952['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x2b984e(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x1059b3}=this['_config'];this['commentsListView']=new _0x1059b3(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',_0x727d60=>_0x727d60+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x3ad9cc,_0x1f2344)=>_0x3ad9cc||!!_0x1f2344);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x12782c}=this['_config'],_0x1291cf=new _0x12782c(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x4ce52f=_0x1291cf['commentInputView'];return _0x1291cf['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x4ce52f,'value',(_0x5a1174,_0x593f6e,_0x34df9f)=>!!_0x34df9f||_0x5a1174&&!_0x593f6e),_0x4ce52f['on']('submit',(_0x2b37b8,_0x14a874)=>{this['fire']('addComment',_0x14a874),_0x4ce52f['editor']['setData']('');}),_0x4ce52f['on']('cancel',()=>this['focus']()),_0x4ce52f['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x1291cf;}},An=class extends In{['suggestionView'];['_descriptionElement'];constructor(_0x1689b7,_0x26aebb,_0x365f9f,_0x5bfb60){super(_0x1689b7,_0x26aebb,_0x365f9f,_0x5bfb60),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x3ae01e=>_0x3ae01e&&_0x3ae01e[0x0]?_0x3ae01e[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x23b04b,_0x558e15)=>{let _0xbab3db='';for(const _0x5c6970 of _0x23b04b)_0xbab3db+='<p>'+pt(_0x5c6970['content'],_0x5c6970['color'])+'</p>';return _0x558e15?_0xbab3db:nt(_0xbab3db,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x5bfb60['SuggestionView'](_0x1689b7,_0x26aebb,{'formatDateTime':_0x5bfb60['formatDateTime'],'showAISource':_0x5bfb60['showAISource'],'aiAuthor':_0x5bfb60['aiAuthor']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x5b71d1=this['bindTemplate'],_0x56cef0=[this['suggestionView']];return this['commentsListView']&&_0x56cef0['push'](this['commentsListView']),this['commentThreadInputView']&&_0x56cef0['push'](this['commentThreadInputView']),_0x56cef0['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x5b71d1['if']('isActive','ck-suggestion-wrapper--active'),_0x5b71d1['to']('type',_0x4f00f9=>'ck-suggestion-'+_0x4f00f9),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':_0x5b71d1['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x56cef0};}['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));}},bn=class extends _0x48ea13{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x47ff78,_0x392148,_0x3c1018){super(_0x47ff78),this['_model']=_0x392148,this['_config']=_0x3c1018,this['set']('description',''),this['bind']('authoredAt')['to'](_0x392148),this['acceptButton']=this['_createButton'](St(_0x47ff78,'Accept\x20suggestion'),_0x245124,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](St(_0x47ff78,'Discard\x20suggestion'),_0x4b29b8,'ck-suggestion--discard','discardSuggestion','sw');const _0x4ab315=!!_0x392148['aiSource']&&'author'===_0x3c1018['showAISource'],_0x11ad6a=_0x4ab315?this['_createAIUser'](_0x3c1018['aiAuthor']):_0x392148['author'],_0x55e074=_0x4ab315&&!_0x3c1018['aiAuthor']['avatar']?_0x3f7edc:void 0x0;this['userView']=new _0x3c0295(_0x47ff78,_0x11ad6a,this['getUserViewNotificationText'](),_0x55e074),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x7d9825([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x446810(),this['keystrokes']=new _0x2a1141(),this['focusCycler']=new _0x8d07ec({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0xe0715b=>_0xe0715b['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x3accb9=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x3accb9['innerHTML']=this['description'],this['on']('change:description',(_0x5efc90,_0x1072e2,_0x35aa5d)=>{_0x3accb9['innerHTML']=_0x35aa5d;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x2b4df5=this['bindTemplate'],_0x4faa1a=[{'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':_0x2b4df5['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x2b4df5['to']('authoredAt',_0x5af285=>this['_config']['formatDateTime'](_0x5af285))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];if(this['_model']['isExternal']&&_0x4faa1a['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),this['_model']['aiSource']&&this['_config']['showAISource']){const _0x2bc8bd=new _0x22ac6f(this['locale']);_0x2bc8bd['set']({'icon':_0x1c2ddb,'label':St(this['locale'],'AI_SOURCE_PILL_LABEL'),'tooltip':St(this['locale'],'AI_SOURCE_PILL_TOOLTIP'),'class':'ck-pill_ai'}),_0x4faa1a['push']({'tag':'div','attributes':{'class':['ck-suggestion__ai-source-pill']},'children':[_0x2bc8bd]});}return{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x4faa1a}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?St(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):St(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?St(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):St(this['locale'],'EXTERNAL_SUGGESTION');}['_createAIUser'](_0x493f5d){return new _0x20d5ba({'id':'ck-ai-author','name':_0x493f5d['name'],'avatar':_0x493f5d['avatar'],'color':new _0x4df9c0(0x0)});}['_createButton'](_0x4e1847,_0x8e8d2b,_0x588095,_0x3e7e6b,_0x4b52c4){const _0x36ae39=new _0x3cd450(this['locale']);return _0x36ae39['set']({'label':_0x4e1847,'icon':_0x8e8d2b,'tooltip':!0x0,'tooltipPosition':_0x4b52c4}),_0x36ae39['extendTemplate']({'attributes':{'class':_0x588095}}),_0x36ae39['on']('execute',()=>{this['fire'](_0x3e7e6b,this['_model']['id']);}),_0x36ae39;}['_setupKeyboardNavigation'](){const _0x29e306=this['element'];this['keystrokes']['listenTo'](_0x29e306);for(const _0x421448 of this['focusables'])this['focusTracker']['add'](_0x421448['element']),this['keystrokes']['listenTo'](_0x421448['element']);this['keystrokes']['set']('enter',(_0x16924e,_0x5468da)=>{_0x29e306===_0x16924e['target']&&(this['focusCycler']['focusFirst'](),_0x5468da());}),this['keystrokes']['set']('esc',(_0x589e1f,_0x1979c6)=>{_0x29e306!==_0x589e1f['target']&&(this['focus'](),_0x1979c6());});}},kn=class extends _0x1a4f44{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[nn,_0x20c4f0,_0x4522ba,_0xd6c75c,_0x5a64bd];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x327de2){super(_0x327de2),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0xf20f93=this['editor']['config'];_0xf20f93['define']('trackChanges.SuggestionThreadView',An),_0xf20f93['define']('trackChanges.SuggestionView',bn),_0xf20f93['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0xf20f93['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x134683,_0x18e9dd){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x204c15,_0x45e26d]of this['_handleControllerBuffer']){const _0x3cf322=this['_suggestionToController']['has'](_0x204c15);_0x3cf322||_0x45e26d?_0x3cf322&&_0x45e26d&&this['_destroyController'](_0x204c15):this['_initializeController'](_0x204c15);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0x5a64bd)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x134683,_0x18e9dd);}['init'](){const _0x16eaee=this['editor'],_0x146580=_0x16eaee['plugins']['get'](nn),_0x739645=_0x16eaee['plugins']['get'](_0xd6c75c),_0x8c992f=_0x16eaee['plugins']['get'](_0x5a64bd),_0x152a6c=_0x16eaee['plugins']['get'](_0x4522ba);this['_addUIComponentsToFactory'](),_0x8c992f['addSourceCollector'](()=>{const _0x2fc445=[];for(const [_0x4e7c62,_0x5ba6e6]of Array['from'](this['_suggestionToController'])){const _0x1420ad=_0x4e7c62['getAllAdjacentSuggestions'](),_0x1b33ed=[];for(const _0x12ef3b of _0x1420ad){if(!_0x12ef3b['isInContent'])continue;if(_0x12ef3b['isMultiRange']){_0x1b33ed['push'](..._0x12ef3b['getRanges']());continue;}const _0x52de24=_0x12ef3b['getFirstRange']();if(_0x1b33ed['length']>0x0){const _0x22fa3c=_0x1b33ed[0x0]['getJoined'](_0x52de24);if(_0x22fa3c){_0x1b33ed[0x0]=_0x22fa3c;continue;}}_0x1b33ed['push'](_0x52de24);}_0x2fc445['push']([_0x5ba6e6['view'],_0x1b33ed]);}return _0x2fc445;}),this['listenTo'](_0x146580,'suggestionLoaded',(_0x37369c,_0x30f5b4)=>{this['listenTo'](_0x30f5b4,'change:previous',(_0x1e543b,_0x14b692,_0x2276f6,_0x281504)=>{_0x30f5b4['isInContent']&&(null==_0x2276f6?(this['_updateController'](_0x281504['head']),this['_handleSuggestionControllerDelayed'](_0x30f5b4,!0x1)):(this['_updateController'](_0x2276f6['head']),null==_0x281504&&this['_handleSuggestionControllerDelayed'](_0x30f5b4,!0x0)));}),null!==_0x30f5b4['previous']?this['_updateController'](_0x30f5b4['head']):this['_handleSuggestionControllerDelayed'](_0x30f5b4,!0x1);}),this['listenTo'](_0x146580,'suggestionUnloaded',(_0x4c2821,_0x57ecd2,_0x5802dc)=>{this['stopListening'](_0x57ecd2,'change:previous'),this['_handleControllerBuffer']['delete'](_0x57ecd2),this['_suggestionToController']['has'](_0x57ecd2)&&this['_destroyController'](_0x57ecd2),_0x5802dc&&this['_updateController'](_0x5802dc['head']);}),this['listenTo'](_0x146580,'suggestionChanged',(_0x333d73,_0x2f1ae4)=>{this['_updateController'](_0x2f1ae4);}),this['listenTo'](_0x739645,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x152a6c,'addComment',(_0x4566ee,{threadId:_0x2c4d1c,isFromAdapter:_0x544878})=>{if(_0x544878||!_0x146580['hasSuggestion'](_0x2c4d1c))return;const _0x2ec784=_0x146580['getSuggestion'](_0x2c4d1c);this['_suggestionToController']['get'](_0x2ec784)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3d2a28=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2620f5;for(const _0x16c4a8 in _0x3d2a28){const _0x2233cc=_0x16c4a8,_0xe74179=_0x3d2a28[_0x2233cc];if('trackChangesLicenseKeyValid'==_0xe74179||'trackChangesLicenseKeyInvalid'==_0xe74179||'trackChangesLicenseKeyExpired'==_0xe74179||'trackChangesLicenseKeyDomainLimit'==_0xe74179||'trackChangesLicenseKeyNotAllowed'==_0xe74179||'trackChangesLicenseKeyEvaluationLimit'==_0xe74179||'trackChangesLicenseKeyUsageLimit'==_0xe74179){delete _0x3d2a28[_0x2233cc],_0x2620f5=_0xe74179,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x2620f5&&_0x3d2a28['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x2620f5&&_0x3d2a28['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x2620f5&&_0x3d2a28['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x2620f5&&_0x3d2a28['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x2620f5&&_0x3d2a28['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x2620f5&&_0x3d2a28['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x1e1c48){const _0x2d51fe=this['_suggestionToController']['get'](_0x1e1c48);return _0x2d51fe&&this['editor']['plugins']['get'](_0xd6c75c)['getByInnerView'](_0x2d51fe['view'])||null;}['getSuggestionForAnnotation'](_0x235061){const _0x566e5e=this['_viewToController']['get'](_0x235061['innerView']);return _0x566e5e?_0x566e5e['model']:null;}['_refreshActiveMarkers'](){const _0x16c98f=this['editor']['plugins']['get'](_0xd6c75c),_0x369e65=this['editor']['plugins']['get'](nn),_0x3b69b1=Array['from'](_0x16c98f['activeAnnotations'],_0x5ef0f5=>_0x5ef0f5['innerView'])['filter'](_0xdb67a=>this['_viewToController']['has'](_0xdb67a)),_0x319f17=[];for(const _0x50575d of _0x3b69b1){const _0x25973e=this['_viewToController']['get'](_0x50575d)['model']['getAllAdjacentSuggestions']();_0x319f17['push'](..._0x25973e['reduce']((_0x3fd7bb,_0x23bcd8)=>[..._0x3fd7bb,..._0x23bcd8['getMarkerNames']()],[]));}_0x369e65['activeMarkers']=_0x319f17;}['_addUIComponentsToFactory'](){const _0x1362ef=this['editor'],_0x159604=_0x1362ef['locale'],_0x4da3eb=St(_0x159604,'Track\x20changes'),_0x3a6e75=new _0x5b3a50([{'type':'switchbutton','model':new _0x351d43({'withText':!0x0,'isToggleable':!0x0,'label':_0x4da3eb,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x351d43({'withText':!0x0,'label':St(_0x159604,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x351d43({'withText':!0x0,'label':St(_0x159604,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x351d43({'withText':!0x0,'label':St(_0x159604,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x351d43({'withText':!0x0,'label':St(_0x159604,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x1362ef['plugins']['has']('TrackChangesPreview')&&_0x3a6e75['addMany']([{'type':'separator'},{'type':'button','model':new _0x351d43({'withText':!0x0,'label':St(_0x159604,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x9f98be of _0x3a6e75)if(Cn(_0x9f98be)){const _0x4421e9=_0x1362ef['commands']['get'](_0x9f98be['model']['commandName']);_0x9f98be['model']['bind']('isOn','isEnabled')['to'](_0x4421e9,'value','isEnabled');}_0x1362ef['ui']['componentFactory']['add']('trackChanges',_0x31a7cd=>this['_createToolbarButton'](_0x31a7cd,_0x3a6e75,_0x4da3eb)),_0x1362ef['ui']['componentFactory']['add']('menuBar:trackChanges',_0x1fc8b1=>this['_createMenuBarMenu'](_0x1fc8b1,_0x3a6e75,_0x4da3eb));}['_createToolbarButton'](_0x35eb0f,_0x4b32b5,_0x32bd43){const _0x3fc01e=_0x216eb4(_0x35eb0f,_0x85046c),_0x5a2331=this['editor']['commands']['get']('trackChanges');_0x3fc01e['buttonView']['set']({'tooltip':_0x32bd43,'label':_0x32bd43,'icon':_0x1dccf5}),_0x3fc01e['buttonView']['bind']('isOn')['to'](_0x5a2331,'value'),_0x3fc01e['buttonView']['on']('execute',()=>{_0x5a2331['execute'](),this['editor']['editing']['view']['focus']();}),_0x4de4ff(_0x3fc01e,_0x4b32b5,{'role':'menu'});const _0x173d8a=[];for(const _0x3f4747 of _0x4b32b5)Cn(_0x3f4747)&&_0x173d8a['push'](this['editor']['commands']['get'](_0x3f4747['model']['commandName']));const _0x27f80a=_0x3fc01e['buttonView'];return _0x27f80a['actionView']['unbind']('isEnabled'),_0x27f80a['arrowView']['unbind']('isEnabled'),_0x27f80a['actionView']['bind']('isEnabled')['to'](_0x5a2331,'isEnabled'),_0x27f80a['arrowView']['bind']('isEnabled')['toMany'](_0x173d8a,'isEnabled',(..._0x5b2aef)=>_0x5b2aef['some'](_0x1e5c92=>_0x1e5c92)),_0x3fc01e['on']('execute',_0x41f638=>{this['editor']['execute'](_0x41f638['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x3fc01e;}['_createMenuBarMenu'](_0x945f97,_0x58b4ae,_0x8e4f1a){const _0x12e3d8=new _0x4ed3f0(_0x945f97),_0x4feb36=this['editor']['commands']['get']('trackChanges');_0x12e3d8['buttonView']['set']({'label':_0x8e4f1a,'icon':_0x1dccf5});const _0x1130ee=new _0xf9905d(_0x945f97);for(const _0x5e506d of _0x58b4ae){if('separator'==_0x5e506d['type']){_0x1130ee['items']['add'](new _0x351e1e(_0x945f97));continue;}const _0x504e1f=new _0x2010b4(_0x945f97,_0x12e3d8),_0x3117d9=new _0x109bbe(_0x945f97),_0x7e0eb1=_0x5e506d['model'];_0x3117d9['bind'](...Object['keys'](_0x7e0eb1))['to'](_0x7e0eb1),_0x3117d9['delegate']('execute')['to'](_0x12e3d8),_0x3117d9['on']('execute',()=>{this['editor']['execute'](_0x7e0eb1['commandName']),this['editor']['editing']['view']['focus']();}),_0x504e1f['children']['add'](_0x3117d9),_0x1130ee['items']['add'](_0x504e1f);}return _0x12e3d8['bind']('isEnabled')['to'](_0x4feb36,'isEnabled'),_0x12e3d8['panelView']['children']['add'](_0x1130ee),_0x12e3d8;}['_initializeController'](_0x4ae337){const _0x246418=this['editor'],_0x41cb67=_0x246418['config'],_0x1f11f1=_0x246418['plugins']['get'](_0xd6c75c),_0x29ca4c=_0x246418['plugins']['get'](_0x4522ba),_0x1a8b3d=_0x246418['plugins']['get'](_0x5a64bd),_0x341b40=_0x246418['plugins']['get'](_0x20c4f0)['me'],_0x3335dd=_0x41cb67['get']('trackChanges')['SuggestionThreadView'],_0x582b29=_0x41cb67['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x5db12d,CommentThreadInputView:_0xf9020e}=_0x246418['plugins']['get']('CommentsUI');let _0x4f015a,_0x4a7d7a,_0x489cca;this['_annotationViews']['has'](_0x4ae337['id'])?(_0x4a7d7a=this['_annotationViews']['get'](_0x4ae337['id']),_0x4f015a=_0x4a7d7a['mainView']):(_0x4f015a=new _0x3335dd(_0x246418['locale'],_0x4ae337,_0x341b40,{'disableComments':this['_disableComments'],'editorConfig':{..._0x41cb67['get']('comments.editorConfig'),'licenseKey':_0x41cb67['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x41cb67['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x41cb67['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x41cb67['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x48f7cd(_0x41cb67['get']('locale'),_0x246418['locale']),'CommentView':_0x41cb67['get']('comments')['CommentView'],'CommentsListView':_0x5db12d,'CommentThreadInputView':_0xf9020e,'SuggestionView':_0x582b29,'showAISource':_0x41cb67['get']('trackChanges.showAISource')||null,'aiAuthor':{..._0x41cb67['get']('trackChanges.aiAuthor'),'name':_0x41cb67['get']('trackChanges.aiAuthor')?.['name']||St(_0x246418['locale'],'AI_AUTHOR_DEFAULT_NAME')}}),_0x4f015a['suggestionView']['acceptButton']['on']('execute',()=>{_0x246418['editing']['view']['focus']();}),_0x4f015a['suggestionView']['discardButton']['on']('execute',()=>{_0x246418['editing']['view']['focus']();}),_0x4a7d7a=_0x1f11f1['createAnnotationView'](this['editor']['locale'],_0x4f015a),_0x4a7d7a['bind']('isDirty')['to'](_0x4f015a,'isDirty'),_0x4a7d7a['bind']('length')['to'](_0x4f015a),_0x4a7d7a['bind']('type')['to'](_0x4f015a,'type',_0x1e5187=>'suggestion-'+_0x1e5187),_0x4f015a['on']('escape',()=>{_0x489cca['fire']('escape');}),this['_annotationViews']['set'](_0x4ae337['id'],_0x4a7d7a));const _0x5e18ae=_0x29ca4c['createCommentThreadController'](_0x4ae337['commentThread'],_0x4f015a),_0x217dd7=new Ln(_0x246418,_0x4ae337,_0x4f015a,_0x5e18ae),_0x37fae3=_0x4ae337['getAllAdjacentSuggestions']()['filter'](_0x562ef7=>_0x562ef7['isInContent']);_0x4f015a['descriptionParts']=_0x246418['plugins']['get'](nn)['descriptionFactory']['getDescriptions'](_0x37fae3),this['_suggestionToController']['set'](_0x4ae337,_0x217dd7),this['_viewToController']['set'](_0x4f015a,_0x217dd7);const _0x66981e=()=>{const _0x2ffbc8=[],_0x459253=_0x4ae337['getAllAdjacentSuggestions']()['filter'](_0x4f1631=>_0x4f1631['isInContent']);for(const _0x19e445 of _0x459253)_0x2ffbc8['push'](..._0x19e445['getMarkers']());return _0x358226(_0x246418['editing'],_0x2ffbc8);};_0x489cca=_0x1f11f1['createAnnotation']({'view':_0x4a7d7a,'target':_0x66981e,'type':()=>'suggestion-'+_0x217dd7['view']['type'],'isVisible':!!_0x66981e()}),_0x29ca4c['_bindAnnotationToEditors'](_0x4f015a,_0x489cca),_0x1f11f1['add'](_0x489cca),_0x1a8b3d['registerAnnotation'](_0x489cca);}['_destroyController'](_0x29220a){const _0x27cf1c=this['editor']['plugins']['get'](_0x4522ba),_0x2e2fec=this['editor']['plugins']['get'](_0xd6c75c),_0x47c7ab=this['_suggestionToController']['get'](_0x29220a),_0x19ce8d=_0x47c7ab['view'],_0x518b35=_0x2e2fec['getByInnerView'](_0x19ce8d);_0x27cf1c['_unbindEditors'](_0x19ce8d),_0x518b35&&_0x2e2fec['remove'](_0x518b35),this['_suggestionToController']['delete'](_0x29220a),this['_viewToController']['delete'](_0x19ce8d),_0x47c7ab['destroy']();}['_updateController'](_0x3616f9){if(!_0x3616f9['isInContent']||!this['_suggestionToController']['has'](_0x3616f9))return;const _0x1d73ab=this['editor']['plugins']['get'](nn),_0x52a958=this['_suggestionToController']['get'](_0x3616f9),_0x3cfab5=_0x3616f9['getAllAdjacentSuggestions']();_0x52a958['view']['descriptionParts']=_0x1d73ab['descriptionFactory']['getDescriptions'](_0x3cfab5);}['destroy'](){for(const _0x3e4691 of this['_suggestionToController']['keys']())this['_destroyController'](_0x3e4691);for(const _0x2d91de of this['_annotationViews']['values']())_0x2d91de['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}};function Cn(_0x1b3c91){return'model'in _0x1b3c91;}var Rn=class extends _0x1a4f44{static get['requires'](){return[nn,kn,_0x287dc5];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x46b53e){this['editor']['plugins']['get'](nn)['adapter']=_0x46b53e;}get['adapter'](){return this['editor']['plugins']['get'](nn)['adapter'];}['addSuggestion'](_0x45c9ef){return this['editor']['plugins']['get'](nn)['addSuggestionData'](_0x45c9ef);}['getSuggestions']({skipNotAttached:_0x238ef8=!0x1,toJSON:_0x421f15=!0x1}={}){return this['editor']['plugins']['get'](nn)['getSuggestions']({'skipNotAttached':_0x238ef8,'toJSON':_0x421f15});}['getSuggestion'](_0x27146b){return this['editor']['plugins']['get'](nn)['getSuggestion'](_0x27146b);}};const Nn=['Pagination'];var yn=class extends _0x1a4f44{static get['requires'](){return[nn];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x474701=this['editor'];if(_0x474701['config']['define']('trackChangesData.editorCreator',_0x3e891c=>{const _0x2be7cf=_0x474701['model']['document']['getRootNames']()['reduce']((_0x19d428,_0x314e9c)=>(_0x19d428[_0x314e9c]='',_0x19d428),{});return _0x474701['constructor']['create'](_0x2be7cf,_0x3e891c);}),'function'!=typeof _0x474701['config']['get']('trackChangesData')['editorCreator'])throw new _0x2ca032('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x282b5a){return On(this['editor'],!0x0,_0x282b5a);}['getDataWithDiscardedSuggestions'](_0x523802){return On(this['editor'],!0x1,_0x523802);}},Sn=class extends _0x1a4f44{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3e597e){super(_0x3e597e),this['result']='end',_0x3e597e['editing']['view']['_overlayModeHint']='auto',_0x3e597e['_sendUsageRequest']=()=>window['Promise']['resolve']({'status':'ok'});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}};function Mn(_0x30cabc){return void 0x0!==_0x30cabc['getRootsAttributes'];}async function On(_0x4902cb,_0x33933d,_0x58d894){const _0x5c2d8a=_0x3e4906(_0x4902cb,Nn);if(_0x5c2d8a['plugins']['push'](nn,Sn),Mn(_0x4902cb)){_0x5c2d8a['roots']=Object['create'](null);for(const _0x475a41 of _0x4902cb['model']['document']['getRootNames']())_0x5c2d8a['roots'][_0x475a41]={'modelAttributes':_0x4902cb['getRootAttributes'](_0x475a41)};}const _0xf2a073=document['createDocumentFragment'](),_0x19a352=_0x4902cb['config']['get']('trackChangesData')['editorCreator'],_0x356d9f=await _0x19a352(_0x5c2d8a,()=>function(_0x4aca29){const _0x4aab3d=document['createElement']('div');return _0x4aca29['appendChild'](_0x4aab3d),_0x4aab3d;}(_0xf2a073));!function(_0x121a61,_0x3597c1){const _0x1133f9=_0x121a61['model']['document']['getRootNames']()['reduce']((_0x19ba7b,_0x499672)=>(_0x19ba7b[_0x499672]=_0x121a61['data']['get']({'rootName':_0x499672}),_0x19ba7b),{}),_0x3f2e6a=_0x121a61['plugins']['get']('Users')['users']['map'](_0x533219=>({'id':_0x533219['id'],'name':_0x533219['name']})),_0x2d1414=_0x121a61['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x99ed74=_0x121a61['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3bdd7d=_0x3597c1['plugins']['get']('Users'),_0x474447=_0x3597c1['plugins']['get']('TrackChangesEditing'),_0x365c3b=_0x3597c1['plugins']['get']('CommentsRepository');for(const _0x5ad842 of _0x365c3b['getCommentThreads']())_0x5ad842['remove']();for(const _0x1f036b of _0x3f2e6a)_0x3bdd7d['getUser'](_0x1f036b['id'])||_0x3bdd7d['addUser'](_0x1f036b);_0x3bdd7d['me']||_0x3bdd7d['useAnonymousUser']();for(const _0x4cf324 of _0x99ed74)_0x365c3b['addCommentThread'](_0x4cf324);for(const _0x1a8316 of _0x2d1414)_0x474447['addSuggestionData'](_0x1a8316);_0x3597c1['data']['set'](_0x1133f9);}(_0x4902cb,_0x356d9f),_0x356d9f['execute'](_0x33933d?'acceptAllSuggestions':'discardAllSuggestions');const _0x200d1d=Mn(_0x356d9f)?_0x356d9f['getFullData'](_0x58d894):_0x356d9f['data']['get'](_0x58d894);return await _0x356d9f['destroy'](),_0x200d1d;}var wn=class extends _0x48ea13{['options'];constructor(_0x17a607,_0x3d9c27){super(_0x17a607),this['options']=_0x3d9c27,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'](_0x5f5cbb,_0x4f0010){if(!this['element'])return;const _0x4ed86c=[];for(const [_0x2ab1f0,_0x5a1a93]of _0x5f5cbb){const _0x1ce0ce=document['createElement']('div');_0x1ce0ce['setAttribute']('data-ck-root-name',_0x2ab1f0),_0x1ce0ce['className']=_0x5a1a93['classes']+'\x20ck-track-changes-preview__root-container',_0x1ce0ce['innerHTML']=_0x5a1a93['content'],_0x4ed86c['push'](_0x1ce0ce);}_0x4f0010(this['element'],_0x4ed86c),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}},Fn=class extends _0x56fea7{constructor(_0x17296b){super(_0x17296b),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0xd2f20e=this['editor'],_0x3bb9bf=_0xd2f20e['locale'],_0x2f6e40=_0xd2f20e['plugins']['get']('Dialog');let _0x1dc765;const _0x52efc6=function(_0x410071){const _0x4c8434={};if('editables'in _0x410071['ui']['view']){for(const [_0x37553c,_0x506b48]of Object['entries'](_0x410071['ui']['view']['editables']))_0x4c8434[_0x37553c]=_0x506b48['element'];}else _0x4c8434[_0x410071['model']['document']['getRootNames']()[0x0]]=_0x410071['ui']['view']['editable']['element'];return _0x4c8434;}(_0xd2f20e),_0x137e61=function(_0x21521f){let _0x421dcd=0x0;for(const _0x301a32 of Object['values'](_0x21521f))_0x421dcd=Math['max'](_0x421dcd,_0x301a32['getBoundingClientRect']()['width']);let _0x538417=0x0;for(const _0x4e362b of Object['values'](_0x21521f))_0x538417+=_0x4e362b['getBoundingClientRect']()['height'];const _0xa99f8a=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']);return{'width':_0x421dcd,'height':Math['min'](_0x538417,_0xa99f8a)};}(_0x52efc6);_0x2f6e40['show']({'id':'finalContentPreview','title':St(_0x3bb9bf,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new wn(_0x3bb9bf,{'dialogRects':_0x137e61}),'onHide':()=>{_0x1dc765['detachFromDom']();},'onShow':()=>{_0xd2f20e['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x24b305=>{const _0x41828d=this['_standarizeRootsData'](_0x24b305,_0xd2f20e,_0x52efc6);_0x2f6e40['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x41828d,_0xd2f20e['config']['get']('trackChanges.preview.renderFunction'));}),_0x1dc765=new _0x1608a4(_0x3bb9bf,[_0x2f6e40['view']]),_0x1dc765['attachToDom'](),_0x1dc765['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0xd2f20e['once']('destroy',()=>{_0x1dc765['detachFromDom']();});const _0xdfa9d9=_0x2f6e40['view']['headerView']['class'];_0x2f6e40['view']['headerView']['class']=_0xdfa9d9?_0xdfa9d9+'\x20ck-reset_all':'ck-reset_all',_0x2f6e40['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x2f6e40['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x1b1de6=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x1e905c=_0x1b1de6['previewMode'],_0x4fb647={};if('$labels'===_0x1e905c){for(const _0x41b300 of _0x1b1de6['getMergeFieldsIds']())_0x4fb647[_0x41b300]=_0x1b1de6['getLabel'](_0x41b300)||_0x41b300;}else{const _0x46e21a='$defaultValues'===_0x1e905c?_0x1b1de6['getDefaultValues']():_0x1b1de6['getDataSetValues'](_0x1e905c,!0x0);for(const _0x306312 of Object['entries'](_0x46e21a)){const [_0x18dfe0,_0x1ebc6c]=_0x306312;_0x4fb647[_0x18dfe0]=null!==_0x1ebc6c?_0x1ebc6c:_0x1b1de6['getLabel'](_0x18dfe0)||_0x18dfe0;}}return{'mergeFieldsData':_0x4fb647};}['_standarizeRootsData'](_0x313ebc,_0x4ed24b,_0x210fa0){let _0x3ad11e;_0x3ad11e='string'==typeof _0x313ebc?{[_0x4ed24b['model']['document']['getRootNames']()[0x0]]:_0x313ebc}:_0x313ebc;const _0x14d878=this['_fixMediaEmbeds'](_0x3ad11e,_0x4ed24b);return function(_0x57197f,_0x5a06cc){for(const [_0x51cc3c,_0x3e5cf8]of _0x57197f)_0x3e5cf8['classes']=_0x5a06cc[_0x51cc3c]['classList']['value']['replace']('ck-focused','');return _0x57197f;}(this['_sortRoots'](_0x4ed24b)['reduce']((_0x438b6f,_0x1c46e2)=>(_0x438b6f['push']([_0x1c46e2,{'content':_0x14d878[_0x1c46e2],'classes':''}]),_0x438b6f),[]),_0x210fa0);}['_fixMediaEmbeds'](_0x3469bf,_0x15b51a){if(!_0x15b51a['plugins']['has']('MediaEmbedEditing'))return _0x3469bf;const _0x2e59d1=_0x15b51a['plugins']['get']('MediaEmbedEditing');for(const [_0x50bfba,_0x389f83]of Object['entries'](_0x3469bf)){const _0x92d079=document['createElement']('div');_0x92d079['innerHTML']=_0x389f83,_0x92d079['querySelectorAll']('figure.media')['forEach'](_0x9206fe=>{const _0x49004=_0x9206fe['querySelector']('oembed');if(_0x49004){const _0x57a145=_0x49004['getAttribute']('url');if(_0x57a145){const _0x260c5f=_0x2e59d1['registry']['getMediaViewElement'](new ot(_0x15b51a['editing']['view']['document']),_0x57a145,{'elementName':'','renderForEditingView':!0x0}),_0x16282a=document['createElement']('div');_0x16282a['classList']['add']('ck-media__wrapper'),_0x260c5f['render'](_0x16282a,_0x15b51a['editing']['view']['domConverter']),_0x49004['replaceWith'](_0x16282a);}}}),_0x3469bf[_0x50bfba]=_0x92d079['innerHTML'];}return _0x3469bf;}['_sortRoots'](_0xb8061e){if(!function(_0x1aa97e){return void 0x0!==_0x1aa97e['getRootsAttributes'];}(_0xb8061e))return _0xb8061e['model']['document']['getRootNames']();const _0x589179=[],_0x2d78c7=new Map();for(const _0x4b13e0 of _0xb8061e['model']['document']['getRootNames']()){const _0x1e20fc=_0xb8061e['editing']['view']['getDomRoot'](_0x4b13e0)['getClientRects']()['item'](0x0);_0x589179['push'](_0x4b13e0),_0x2d78c7['set'](_0x4b13e0,_0x1e20fc);}return _0x589179['sort']((_0x3e301e,_0x1720ba)=>{const _0x1dda33=_0x2d78c7['get'](_0x3e301e),_0x30dc60=_0x2d78c7['get'](_0x1720ba);return _0x1dda33['y']-_0x30dc60['y']||_0x1dda33['x']-_0x30dc60['x'];}),_0x589179;}},Bn=class extends _0x1a4f44{static get['requires'](){return[yn,_0x47b59f];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xfad26d){super(_0xfad26d),_0xfad26d['commands']['add']('previewFinalContent',new Fn(this['editor'])),_0xfad26d['config']['define']('trackChanges.preview.renderFunction',(_0xedd5f8,_0x5765af)=>{for(const _0x2179b9 of _0x5765af)_0xedd5f8['appendChild'](_0x2179b9);});}};export{Tt as AcceptSuggestionCommand,In as BaseSuggestionThreadView,_t as DiscardSuggestionCommand,Ct as ExecuteOnAllSuggestionsCommand,Rt as ExecuteOnSelectedSuggestionsCommand,Fn as PreviewFinalContentCommand,yt as Suggestion,Mt as SuggestionDescriptionFactory,An as SuggestionThreadView,bn as SuggestionView,Rn as TrackChanges,Et as TrackChangesCommand,yn as TrackChangesData,Sn as TrackChangesDataGetter,nn as TrackChangesEditing,Bn as TrackChangesPreview,kn as TrackChangesUI};
|
|
23
|
+
import{Command as _0x4028e2,PendingActions as _0x41b01e,Plugin as _0x2b9af7}from'@ckeditor/ckeditor5-core';import{Annotations as _0x31fd62,Comments as _0x3bd3b4,CommentsRepository as _0x3b47da,EditorAnnotations as _0x58281b}from'@ckeditor/ckeditor5-comments';import{CKEditorError as _0x5b3612,Collection as _0x4f8170,FocusTracker as _0x18e433,KeystrokeHandler as _0x4d6c25,ObservableMixin as _0xde5e1b,getEnvKeystrokeText as _0x25ca27,insertToPriorityArray as _0xd92657,logWarning as _0xd5a78a,priorities as _0x3483a6,uid as _0x16a774}from'@ckeditor/ckeditor5-utils';import{IconAIAuthor as _0x174ddc,IconCancel as _0x3c3152,IconCheck as _0x5627ed,IconSparkle as _0x27a403,IconTrackChanges as _0x560cd2}from'@ckeditor/ckeditor5-icons';import{BodyCollection as _0x5e1923,Dialog as _0x4ca6f3,FocusCycler as _0x2cb205,ListSeparatorView as _0x5d7318,MenuBarMenuListItemButtonView as _0x90c963,MenuBarMenuListItemView as _0x327b56,MenuBarMenuListView as _0x2f66c6,MenuBarMenuView as _0x146f59,SplitButtonView as _0x4f7ec2,UIModel as _0x38417d,View as _0x21406f,ViewCollection as _0x2ae260,addListToDropdown as _0x399ffc,createDropdown as _0x2ba01b,normalizeColorOptions as _0x5de7fc}from'@ckeditor/ckeditor5-ui';import{AriaDescriptionView as _0xfaa767,CollaborationUserColor as _0x27e6c4,DocumentCompare as _0xa07744,FOCUS_ANNOTATION_KEYSTROKE as _0xcced64,LateFocusButtonView as _0x37b090,PillView as _0x34b4de,SuggestionsConversion as _0x5bf169,User as _0x36d007,UserView as _0x2af109,Users as _0x1f47e3,fixElementSuggestionRange as _0x969e63,getAllMarkersDomElementsSorted as _0x1b7b6d,getDateTimeFormatter as _0x90042a,hashObject as _0x214776,sanitizeEditorConfig as _0x2e53f2,setupThreadKeyboardNavigation as _0x242884,splitSuggestionMarkerName as tt,surroundingMarkersDetector as et,trimHtml as nt}from'@ckeditor/ckeditor5-collaboration-core';import{ModelElement as it,ModelLivePosition as st,ModelLiveRange as rt,ViewDowncastWriter as ot}from'@ckeditor/ckeditor5-engine';import{cloneDeep as at,isEqual as ct,omit as lt,set as ut,unset as dt}from'es-toolkit/compat';import{Delete as ht,Input as gt}from'@ckeditor/ckeditor5-typing';import{Enter as ft}from'@ckeditor/ckeditor5-enter';import{ClipboardPipeline as mt}from'@ckeditor/ckeditor5-clipboard';var Et=class extends _0x4028e2{['_enabledCommands'];constructor(_0x4b736d,_0x979500){super(_0x4b736d),this['_enabledCommands']=_0x979500,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 _0x3cbe64 of this['editor']['commands']['commands']())_0x3cbe64['affectsData']&&!this['_enabledCommands']['has'](_0x3cbe64)&&_0x3cbe64['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x552081 of this['editor']['commands']['commands']())_0x552081['affectsData']&&!this['_enabledCommands']['has'](_0x552081)&&_0x552081['clearForceDisabled']('TrackChangesCommand');}},Tt=class extends _0x4028e2{['_suggestions'];constructor(_0x1e0153,_0xd4d73e){super(_0x1e0153),this['_suggestions']=_0xd4d73e,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5c537a){const _0x30b937=this['_suggestions']['get'](_0x5c537a);if(!_0x30b937)throw new _0x5b3612('track-changes-accept-suggestion-not-found',this);const _0x4ce3bb=_0x30b937['getRanges']();this['editor']['model']['canEditAt'](_0x4ce3bb)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x30b937);}},_t=class extends _0x4028e2{['_suggestions'];constructor(_0x189557,_0x3783ea){super(_0x189557),this['_suggestions']=_0x3783ea,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5d5fe2){const _0x5599d4=this['_suggestions']['get'](_0x5d5fe2);if(!_0x5599d4)throw new _0x5b3612('track-changes-discard-suggestion-not-found',this);const _0x5a2506=_0x5599d4['getRanges']();this['editor']['model']['canEditAt'](_0x5a2506)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x5599d4);}};function pt(_0x3bd23e,_0xbb5f5){let _0x59bf76='';return _0x59bf76+=_0x3bd23e['split']('*')['map']((_0x3e08ec,_0x5e341b)=>_0x5e341b%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+Lt(_0x3e08ec)+'</span>':Lt(_0x3e08ec))['join'](''),_0xbb5f5&&(_0x59bf76+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0xbb5f5['value']+'\x22\x20title=\x22'+_0xbb5f5['title']+'\x22></span>'),_0x59bf76;}function Lt(_0x43ed13){const _0x4f0120=document['createElement']('span');return _0x4f0120['innerText']=_0x43ed13,_0x4f0120['innerHTML'];}function It(_0x4f2221){return _0x4f2221['sort']((_0x3dcc9c,_0x4ad170)=>'attribute'===_0x3dcc9c['type']&&'attribute'!==_0x4ad170['type']?-0x1:'attribute'!==_0x3dcc9c['type']&&'attribute'===_0x4ad170['type']?0x1:'deletion'==_0x3dcc9c['type']&&'deletion'!=_0x4ad170['type']?-0x1:'deletion'!=_0x3dcc9c['type']&&'deletion'==_0x4ad170['type']?0x1:0x0);}function At(_0x596139,_0x545b5f){let _0x316506,_0xb66668=0x0;const _0x5031a8=[],_0x592b43=_0x545b5f['schema'];for(;_0xb66668<_0x596139['length'];){const _0x44f95e=_0x596139[_0xb66668],_0x2a7189=_0x596139[_0xb66668+0x1];_0x316506||(_0x316506=_0x545b5f['createPositionBefore'](_0x44f95e)),bt(_0x545b5f,_0x44f95e,_0x2a7189)||(_0x5031a8['push'](_0x545b5f['createRange'](_0x316506,_0x592b43['isObject'](_0x44f95e)?_0x545b5f['createPositionAfter'](_0x44f95e):_0x545b5f['createPositionAt'](_0x44f95e,'end'))),_0x316506=null),_0xb66668++;}return _0x5031a8;}function bt(_0x2025c9,_0x3b32cb,_0x50edb0){if(!_0x50edb0)return!0x1;const _0x58fcf6=_0x2025c9['createPositionAfter'](_0x3b32cb),_0xed0f53=_0x2025c9['createPositionBefore'](_0x50edb0);return _0x58fcf6['isTouching'](_0xed0f53);}function kt(_0x2b16b7,_0x5d0f20,_0x566bb8){for(;_0x566bb8['length'];){const _0x490399=_0x566bb8['splice'](0x0,0x64);_0x2b16b7['change'](()=>{for(const _0x10ccc0 of _0x490399)_0x10ccc0['isInContent']&&_0x5d0f20['execute'](_0x10ccc0['id']);});}}var Ct=class extends _0x4028e2{['_command'];['_suggestions'];constructor(_0x34f514,_0x287b3c,_0x5bb5af){super(_0x34f514),this['_command']=_0x287b3c,this['_suggestions']=_0x5bb5af,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x115db7=Array['from'](this['_suggestions']['values']())['some'](_0x11dc91=>_0x11dc91['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x115db7;}['execute'](){const _0x1e2d14=It(Array['from'](this['_suggestions']['values']()));for(const _0x5370bd of _0x1e2d14){const _0x183925=_0x5370bd['getRanges']();if(!this['editor']['model']['canEditAt'](_0x183925))return;}kt(this['editor']['model'],this['_command'],_0x1e2d14);}},Rt=class extends _0x4028e2{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x1c9caf,_0x151f18,_0x5087e6){super(_0x1c9caf),this['_command']=_0x151f18,this['_suggestions']=_0x5087e6,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3a5705=this['editor']['model']['document']['selection'],_0x33d308=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x2c883c,_0x5f43f0){const _0x56021a=Array['from'](_0x2c883c['getRanges']()),_0x5d36f7=new Set();for(const _0x2381fa of _0x5f43f0)if(_0x2381fa['isInContent']){for(const _0x526fc4 of _0x56021a)for(const _0x48e678 of _0x2381fa['getRanges']())(_0x526fc4['isIntersecting'](_0x48e678)||_0x2c883c['isCollapsed']&&!_0x2381fa['isMultiRange']&&_0x2381fa['next']&&_0x48e678['end']['isTouching'](_0x526fc4['start']))&&_0x5d36f7['add'](_0x2381fa);}return _0x5d36f7;}(_0x3a5705,_0x33d308),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x58b065=It(Array['from'](this['_selectedSuggestions']));for(const _0x343288 of _0x58b065){const _0x3de60f=_0x343288['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3de60f))return;}kt(this['editor']['model'],this['_command'],_0x58b065);}};const Nt=/* #__PURE__ -- @preserve */
|
|
24
|
+
_0xde5e1b();var yt=class Suggestion extends Nt{['id'];['type'];['subType'];['author'];['creator'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x1386f5,_0x5e4163){super(),this['id']=_0x5e4163['id'],this['type']=_0x5e4163['type'],this['subType']=_0x5e4163['subType']||null,this['author']=_0x5e4163['author'],this['creator']=_0x5e4163['creator']||_0x5e4163['author'],this['data']=null,this['_originalSuggestionId']=_0x5e4163['originalSuggestionId']||null,this['_model']=_0x1386f5,this['_onAccept']=_0x5e4163['onAccept'],this['_onDiscard']=_0x5e4163['onDiscard'],this['_onAttributesChange']=_0x5e4163['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x5e4163['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get['isExternal'](){return Boolean(this['attributes']&&this['attributes']['@external']);}get['aiSource'](){return this['attributes']&&this['attributes']['@ai']?.['type']||null;}get['head'](){let _0x11f888=this;for(;_0x11f888['previous'];)_0x11f888=_0x11f888['previous'];return _0x11f888;}get['hasComments'](){return!!this['commentThread']&&this['commentThread']['length']>0x0;}get['isMultiRange'](){return 0x0!=this['_markerNames']['size']&&0x6==Array['from'](this['_markerNames'])[0x0]['split'](':')['length'];}get['isInContent'](){return null!==this['getFirstMarker']();}['addMarkerName'](_0x37b26f){this['_markerNames']['add'](_0x37b26f);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x4a31b5=>this['_model']['markers']['get'](_0x4a31b5))['filter'](_0x15cf9a=>_0x15cf9a);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x376d20=>{for(const _0x265e77 of this['getMarkers']())_0x376d20['removeMarker'](_0x265e77);}),this['_markerNames']['clear']();}['removeMarker'](_0x2f5a77){this['_model']['change'](_0x5c5ab8=>{_0x5c5ab8['removeMarker'](_0x2f5a77);}),this['_markerNames']['delete'](_0x2f5a77);}['addRange'](_0x244aa8){const _0x331e16='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+Suggestion['getMultiRangeId']();this['addMarkerName'](_0x331e16),this['_model']['change'](_0x64d145=>{_0x64d145['addMarker'](_0x331e16,{'range':_0x244aa8,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x4a925f){for(const _0x4ff35d of this['getRanges']())if(_0x4ff35d['isIntersecting'](_0x4a925f))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x4119e3=>_0x4119e3['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x5b17bd,_0x5ad85e)=>[..._0x5b17bd,..._0x5ad85e['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x293f40=this['getRanges']();if(0x1!=_0x293f40['length'])return null;const _0x2491d9=_0x293f40[0x0],_0x4879b7=_0x2491d9['start']['nodeAfter'],_0xe1037b=_0x2491d9['end']['nodeBefore'];return _0x4879b7 instanceof it?_0x4879b7!=_0xe1037b?null:_0x4879b7: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 _0x2e3dd0=[];let _0x4ec728=this['head'];for(;_0x4ec728;)_0x2e3dd0['push'](_0x4ec728),_0x4ec728=_0x4ec728['next'];return _0x2e3dd0;}['setAttribute'](_0x3c633b,_0x2a8e58){const _0x9abf54=at(this['attributes']);ut(_0x9abf54,_0x3c633b,_0x2a8e58),ct(_0x9abf54,this['attributes'])||(this['attributes']=_0x9abf54,this['_onAttributesChange'](_0x9abf54));}['removeAttribute'](_0x581e41){const _0x5e6562=at(this['attributes']);dt(_0x5e6562,_0x581e41),ct(_0x5e6562,this['attributes'])||(this['attributes']=_0x5e6562,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 _0x16a774()['substr'](0x1,0x5);}};function St(_0x584fd6,_0x758082,_0x1eb5d2){const _0x582d2d=_0x584fd6['t'],t=_0x584fd6['t'];switch(_0x758082){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',_0x1eb5d2);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x1eb5d2);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x1eb5d2);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x1eb5d2);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x1eb5d2);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',_0x1eb5d2);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x1eb5d2);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',_0x1eb5d2);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x1eb5d2);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x1eb5d2);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x1eb5d2);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x1eb5d2);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x1eb5d2);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x1eb5d2);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x1eb5d2);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x1eb5d2);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x1eb5d2);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x1eb5d2);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x1eb5d2);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x1eb5d2);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x1eb5d2);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x1eb5d2);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x1eb5d2);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x1eb5d2);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x1eb5d2);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'},_0x1eb5d2);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x1eb5d2);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x1eb5d2);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x1eb5d2);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x1eb5d2);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x1eb5d2);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x1eb5d2);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x1eb5d2);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});case'ELEMENT_RAW_HTML':return t({'string':'raw\x20HTML','id':'ELEMENT_RAW_HTML'});case'ELEMENT_HTML_TAG':return t({'string':'%1\x20element','plural':'%0\x20%1\x20elements','id':'ELEMENT_HTML_TAG'},_0x1eb5d2);case'FORMAT_RAW_HTML_CONTENT':return t({'string':'raw\x20HTML\x20content','id':'FORMAT_RAW_HTML_CONTENT'});case'FORMAT_HTML_CLASS':return t({'string':'style','id':'FORMAT_HTML_CLASS'});case'FORMAT_HTML_ATTRIBUTE':return t({'string':'metadata','id':'FORMAT_HTML_ATTRIBUTE'});case'FORMAT_HTML_LIST_ITEM':return t({'string':'list\x20item\x20HTML','id':'FORMAT_HTML_LIST_ITEM'});case'FORMAT_HTML_BULLETED_LIST':return t({'string':'list\x20HTML','id':'FORMAT_HTML_BULLETED_LIST'});case'FORMAT_HTML_NUMBERED_LIST':return t({'string':'list\x20HTML','id':'FORMAT_HTML_NUMBERED_LIST'});case'ELEMENT_CAPTION':return t({'string':'caption','id':'ELEMENT_CAPTION'});case'ELEMENT_HORIZONTAL_LINE':return t({'string':'horizontal\x20line','plural':'%0\x20horizontal\x20lines','id':'ELEMENT_HORIZONTAL_LINE'},_0x1eb5d2);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x1eb5d2);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x1eb5d2);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x1eb5d2);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x1eb5d2);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'},_0x1eb5d2);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x1eb5d2);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'},_0x1eb5d2);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_FOOTER_ROW':return t({'string':'footer\x20row','id':'FORMAT_FOOTER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_MEDIA_SIZE':return t({'string':'media\x20size','id':'FORMAT_MEDIA_SIZE'});case'FORMAT_MEDIA_ALIGN_LEFT':return t({'string':'align\x20left','id':'FORMAT_MEDIA_ALIGN_LEFT'});case'FORMAT_MEDIA_ALIGN_BLOCK_LEFT':return t({'string':'align\x20block\x20left','id':'FORMAT_MEDIA_ALIGN_BLOCK_LEFT'});case'FORMAT_MEDIA_ALIGN_CENTER':return t({'string':'align\x20center','id':'FORMAT_MEDIA_ALIGN_CENTER'});case'FORMAT_MEDIA_ALIGN_BLOCK_RIGHT':return t({'string':'align\x20block\x20right','id':'FORMAT_MEDIA_ALIGN_BLOCK_RIGHT'});case'FORMAT_MEDIA_ALIGN_RIGHT':return t({'string':'align\x20right','id':'FORMAT_MEDIA_ALIGN_RIGHT'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_TYPE':return t({'string':'table\x20cell\x20type','id':'FORMAT_TABLE_CELL_TYPE'});case'FORMAT_FOOTNOTES_LIST_STYLE':return t({'string':'footnotes\x20list\x20style','id':'FORMAT_FOOTNOTES_LIST_STYLE'});case'FORMAT_FOOTNOTES_LIST_START':return t({'string':'footnotes\x20list\x20start','id':'FORMAT_FOOTNOTES_LIST_START'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x1eb5d2);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x1eb5d2);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'},_0x1eb5d2);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x1eb5d2);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'},_0x1eb5d2);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x1eb5d2);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x1eb5d2);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x1eb5d2);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x1eb5d2);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x1eb5d2);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'},_0x1eb5d2);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x1eb5d2);case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'AI_SOURCE_PILL_LABEL':return t({'string':'AI-generated','id':'AI_SOURCE_PILL_LABEL'});case'AI_SOURCE_PILL_TOOLTIP':return t({'string':'This\x20suggestion\x20was\x20proposed\x20by\x20AI.','id':'AI_SOURCE_PILL_TOOLTIP'});case'AI_AUTHOR_DEFAULT_NAME':return t({'string':'AI\x20Assistant','id':'AI_AUTHOR_DEFAULT_NAME'});case'EXTERNAL_AVATAR':return _0x582d2d({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x1eb5d2);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x582d2d({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x1eb5d2);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x1eb5d2);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'},_0x1eb5d2);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'},_0x1eb5d2);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'},_0x1eb5d2);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x758082;}}var Mt=class{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x42fd84,_0x3587e4){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x42fd84,this['_locale']=_0x3587e4;}['getDescriptions'](_0x323d12){const _0x509c50=[],_0x24f489=new Set(),_0x18ee91=new Set();for(let _0x3a7f2f=0x0;_0x3a7f2f<_0x323d12['length'];_0x3a7f2f++){const _0x46363d=_0x323d12[_0x3a7f2f];if(!_0x46363d['isInContent'])continue;const _0x4a55cb=this['_handleCustomCallbackDescription'](_0x46363d);if(_0x4a55cb){if(null!=_0x46363d['subType']){if(_0x24f489['has'](_0x46363d['subType']))continue;_0x24f489['add'](_0x46363d['subType']);}_0x509c50['push'](_0x4a55cb);}else{if('attribute'==_0x46363d['type']){const _0x4d76e8=_0x46363d['data']['key'];if(_0x18ee91['has'](_0x4d76e8))continue;_0x18ee91['add'](_0x46363d['data']['key']),'$elementName'==_0x4d76e8?this['_handleRenameSuggestionDescription'](_0x509c50,_0x46363d):this['_handleAttributeSuggestionDescription'](_0x509c50,_0x46363d);continue;}'insertion'!=_0x46363d['type']&&'deletion'!=_0x46363d['type']||this['_handleInsertRemoveSuggestionDescription'](_0x509c50,_0x46363d,_0x323d12[_0x3a7f2f+0x1]);}}return this['_resolveDescriptionItems'](_0x509c50);}['registerDescriptionCallback'](_0x4f3b93){this['_customCallbacks']['push'](_0x4f3b93);}['registerElementLabel'](_0x19e7e9,_0x314767,_0x4418c6=_0x3483a6['normal']){'function'==typeof _0x19e7e9?_0xd92657(this['_itemLabelsCallbacks'],{'matchingCallback':_0x19e7e9,'label':_0x314767,'priority':_0x4418c6}):this['_itemLabels']['set'](_0x19e7e9,_0x314767);}['registerAttributeLabel'](_0x39c908,_0x2cab7a){this['_attributeLabels']['set'](_0x39c908,_0x2cab7a);}['getItemLabel'](_0x4b6f88,_0x3852dc=0x1){let _0x525170;for(const _0x228662 of this['_itemLabelsCallbacks'])if(_0x228662['matchingCallback'](_0x4b6f88)){_0x525170=_0x228662['label'];break;}return _0x525170||(_0x525170=this['_itemLabels']['get'](_0x4b6f88['name'])),_0x525170?_0x525170(_0x3852dc):0x1!==_0x3852dc?_0x3852dc+'\x20'+_0x4b6f88['name']+'s':''+_0x4b6f88['name'];}['_addDescriptionItems'](_0xc7756,_0x39813c){const _0x5884e5=_0x39813c['getFirstRange']()['getWalker'](),_0x22fa81='insertion'==_0x39813c['type']?'add':'remove';for(const _0x4f76ab of _0x5884e5){const _0x32dfd5=_0x4f76ab['item'],_0x90b449=_0xc7756[_0xc7756['length']-0x1];if(_0x32dfd5['is']('$textProxy'))_0x90b449&&_0x90b449['type']['indexOf']('Container')>-0x1&&_0xc7756['pop'](),_0x90b449&&'text'==_0x90b449['type']?_0x90b449[_0x22fa81]+=_0x32dfd5['data']:_0xc7756['push']({'type':'text','add':'add'==_0x22fa81?_0x32dfd5['data']:'','remove':'remove'==_0x22fa81?_0x32dfd5['data']:''});else{if(this['_schema']['isObject'](_0x32dfd5)){const _0x5a98b9=_0x32dfd5;if(_0x90b449&&_0x90b449['type']['indexOf']('Container')>-0x1&&_0xc7756['pop'](),'elementEnd'==_0x4f76ab['type'])continue;_0x90b449&&_0x90b449['type']==_0x22fa81+'Object'&&_0x90b449['element']['name']==_0x5a98b9['name']?_0x90b449['quantity']++:_0xc7756['push']({'type':_0x22fa81+'Object','element':_0x5a98b9,'quantity':0x1}),_0x5884e5['skip'](_0x3f0362=>!('elementEnd'==_0x3f0362['type']&&_0x3f0362['item']==_0x32dfd5));}else{if(this['_schema']['checkChild'](_0x32dfd5,'$text')||_0x32dfd5['is']('element','softBreak')){const _0x3d1e4f=_0x32dfd5;if('add'==_0x22fa81&&'elementStart'==_0x4f76ab['type']||'remove'==_0x22fa81&&'elementEnd'==_0x4f76ab['type'])continue;if(_0x90b449&&-0x1==_0x90b449['type']['indexOf']('Container')){'text'==_0x90b449['type']&&(_0x90b449[_0x22fa81]+='\x0a');continue;}let _0x47af6f;if(_0x47af6f='add'==_0x22fa81?_0x3d1e4f['nextSibling']&&!this['_schema']['isObject'](_0x3d1e4f['nextSibling'])?_0x3d1e4f['nextSibling']:null:_0x3d1e4f['previousSibling']&&!this['_schema']['isObject'](_0x3d1e4f['previousSibling'])?_0x3d1e4f['previousSibling']:null,_0x3d1e4f['isEmpty']||_0x47af6f&&_0x47af6f['isEmpty']){const _0x3c4471=_0x47af6f&&_0x47af6f['isEmpty']?_0x47af6f:_0x3d1e4f;_0x90b449&&_0x90b449['type']==_0x22fa81+'EmptyContainer'&&_0x90b449['element']['name']==_0x3c4471['name']?_0x90b449['quantity']++:_0xc7756['push']({'type':_0x22fa81+'EmptyContainer','element':_0x3c4471,'quantity':0x1});}else _0xc7756['push']({'type':_0x22fa81+'Container','element':_0x3d1e4f});}}}}}['_resolveDescriptionItems'](_0x5e6ff6){const _0x1d30f8=this['_locale'],_0xd1625d=[],_0x31b93c=[],_0x3fa430=[];for(const _0x19927a of _0x5e6ff6)switch(_0x19927a['type']){case'text':if(_0x19927a['add']=_0x19927a['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x19927a['remove']=_0x19927a['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x19927a['add']&&''!=_0x19927a['remove']){_0xd1625d['push']({'type':'replace','content':St(_0x1d30f8,'REPLACE_TEXT',['\x22'+_0x19927a['remove']+'\x22','\x22'+_0x19927a['add']+'\x22'])});continue;}if(null!=_0x19927a['add']['match'](/^ +$/)){_0xd1625d['push']({'type':'insertion','content':St(_0x1d30f8,'*Insert:*\x20%0',St(_0x1d30f8,'ELEMENT_SPACE',_0x19927a['add']['length']))});continue;}if(null!=_0x19927a['remove']['match'](/^ +$/)){_0xd1625d['push']({'type':'deletion','content':St(_0x1d30f8,'*Remove:*\x20%0',St(_0x1d30f8,'ELEMENT_SPACE',_0x19927a['remove']['length']))});continue;}if(''!=_0x19927a['add']){_0xd1625d['push']({'type':'insertion','content':St(_0x1d30f8,'*Insert:*\x20%0','\x22'+_0x19927a['add']+'\x22')});continue;}_0xd1625d['push']({'type':'deletion','content':St(_0x1d30f8,'*Remove:*\x20%0','\x22'+_0x19927a['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0xd1625d['push']({'type':'insertion','content':St(_0x1d30f8,'*Insert:*\x20%0',this['getItemLabel'](_0x19927a['element'],_0x19927a['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0xd1625d['push']({'type':'deletion','content':St(_0x1d30f8,'*Remove:*\x20%0',this['getItemLabel'](_0x19927a['element'],_0x19927a['quantity']))});continue;case'addContainer':_0xd1625d['push']({'type':'insertion','content':St(_0x1d30f8,'*Split:*\x20%0',this['getItemLabel'](_0x19927a['element'],_0x19927a['quantity']))});continue;case'removeContainer':_0xd1625d['push']({'type':'deletion','content':St(_0x1d30f8,'*Merge:*\x20%0',this['getItemLabel'](_0x19927a['element'],_0x19927a['quantity']))});continue;case'addFormat':_0x31b93c['push'](_0x19927a['key']);continue;case'removeFormat':_0x3fa430['push'](_0x19927a['key']);continue;default:_0xd1625d['push'](_0x19927a);}if(_0x31b93c['length']){const _0x3911d7=_0x31b93c['map'](_0x1affee=>this['_attributeLabels']['has'](_0x1affee)?this['_attributeLabels']['get'](_0x1affee):_0x1affee)['join'](',\x20');_0xd1625d['push']({'type':'format','content':St(this['_locale'],'*Set\x20format:*\x20%0',_0x3911d7)});}if(_0x3fa430['length']){const _0x468f5b=_0x3fa430['map'](_0x36e7fc=>this['_attributeLabels']['has'](_0x36e7fc)?this['_attributeLabels']['get'](_0x36e7fc):_0x36e7fc)['join'](',\x20');_0xd1625d['push']({'type':'format','content':St(this['_locale'],'*Remove\x20format:*\x20%0',_0x468f5b)});}return _0xd1625d;}['_handleCustomCallbackDescription'](_0x3be922){for(const _0x23aefc of this['_customCallbacks']){const _0x4ddeec=_0x23aefc(_0x3be922);if(_0x4ddeec&&'type'in _0x4ddeec)return _0x4ddeec;}}['_handleAttributeSuggestionDescription'](_0x211047,_0x28c79f){const _0x68733b=_0x28c79f['data'],_0x2cbd55=void 0x0===_0x68733b['newValue']?'removeFormat':'addFormat';_0x211047['push']({'type':_0x2cbd55,'key':_0x68733b['key']});}['_handleRenameSuggestionDescription'](_0x199190,_0x39a90e){_0x199190['push']({'type':'format','content':St(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x39a90e['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x53038e,_0x35ee5c,_0x34acf1){if(this['_addDescriptionItems'](_0x53038e,_0x35ee5c),_0x34acf1&&_0x34acf1['getFirstRange']()&&!_0x35ee5c['getFirstRange']()['end']['isEqual'](_0x34acf1['getFirstRange']()['start'])){const _0x57b1af=_0x53038e[_0x53038e['length']-0x1],_0x1ccf5d='insertion'==_0x35ee5c['type']?'add':'remove';_0x57b1af&&'text'==_0x57b1af['type']&&(_0x57b1af[_0x1ccf5d]+='\x0a');}}},Ot=class extends _0x2b9af7{['afterInit'](){const _0x1b7cbf=this['editor'],_0x384a7d=_0x1b7cbf['plugins']['get']('TrackChangesEditing');_0x1b7cbf['commands']['get']('showAIAssistant')&&_0x384a7d['enableCommand']('showAIAssistant');}},wt=class extends _0x2b9af7{['afterInit'](){const _0x4477c1=this['editor'],_0x543f26=_0x4477c1['plugins']['get']('TrackChangesEditing');_0x4477c1['commands']['get']('toggleAi')&&_0x543f26['enableCommand']('toggleAi');}},Ft=class extends _0x2b9af7{['afterInit'](){const _0x495535=this['editor'],_0x518ed4=_0x495535['plugins']['get']('TrackChangesEditing');_0x495535['commands']['get']('aiQuickAction')&&_0x518ed4['enableCommand']('aiQuickAction');}},Bt=class extends _0x2b9af7{['afterInit'](){const _0x58e824=this['editor'],_0x5f2a38=_0x58e824['locale'];if(!_0x58e824['plugins']['has']('AlignmentEditing'))return;const _0x25a82f=_0x58e824['plugins']['get']('TrackChangesEditing');_0x25a82f['enableDefaultAttributesIntegration']('alignment'),_0x25a82f['descriptionFactory']['registerAttributeLabel']('alignment',St(_0x5f2a38,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x162b04=this['editor'],_0x3eb5bc=_0x162b04['locale'];_0x162b04['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x13f7ea=>{if('formatBlock'!=_0x13f7ea['type'])return;const {data:_0x59e3a8}=_0x13f7ea;if(_0x59e3a8&&'alignment'==_0x59e3a8['commandName']){const _0x2c5d14=_0x59e3a8['commandParams'][0x0]['value'];return{'type':'format','content':St(_0x3eb5bc,'*Format:*\x20%0',function(_0x6a2fa6){switch(_0x6a2fa6){case'left':return St(_0x3eb5bc,'FORMAT_ALIGN_TO_LEFT');case'right':return St(_0x3eb5bc,'FORMAT_ALIGN_TO_RIGHT');case'center':return St(_0x3eb5bc,'FORMAT_ALIGN_TO_CENTER');case'justify':return St(_0x3eb5bc,'FORMAT_JUSTIFY_TEXT');}}(_0x2c5d14))};}});}};const vt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];var Dt=class extends _0x2b9af7{['afterInit'](){const _0x42c78d=this['editor'],_0x3dc383=_0x42c78d['plugins']['get']('TrackChangesEditing'),_0x2f03c6=_0x42c78d['locale'];for(const _0x39a1fe of vt){if(!_0x42c78d['plugins']['has'](_0x39a1fe))continue;const _0xa443b8=_0x39a1fe['slice'](0x0,-0x7)['toLowerCase'](),_0x48236f='FORMAT_'+_0xa443b8['toUpperCase']();_0x3dc383['enableDefaultAttributesIntegration'](_0xa443b8),_0x3dc383['descriptionFactory']['registerAttributeLabel'](_0xa443b8,St(_0x2f03c6,_0x48236f));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1376c8=this['editor'],_0x27c085=_0x1376c8['locale'],_0x49722a=_0x1376c8['plugins']['get']('TrackChangesEditing');function _0x5a4acf(_0x5afc4f,_0x3aa101){_0x49722a['descriptionFactory']['registerDescriptionCallback'](_0x20c47b=>{if('formatInline'!=_0x20c47b['type'])return;const {data:_0x52eddd}=_0x20c47b;return _0x52eddd&&_0x52eddd['commandName']===_0x5afc4f?_0x52eddd['commandParams'][0x0]['forceValue']?{'type':'format','content':St(_0x27c085,'*Format:*\x20%0',_0x3aa101)}:{'type':'format','content':St(_0x27c085,'*Remove\x20format:*\x20%0',_0x3aa101)}:void 0x0;});}_0x5a4acf('bold',St(_0x27c085,'FORMAT_BOLD')),_0x5a4acf('italic',St(_0x27c085,'FORMAT_ITALIC')),_0x5a4acf('underline',St(_0x27c085,'FORMAT_UNDERLINE')),_0x5a4acf('code',St(_0x27c085,'FORMAT_CODE')),_0x5a4acf('strikethrough',St(_0x27c085,'FORMAT_STRIKETHROUGH')),_0x5a4acf('subscript',St(_0x27c085,'FORMAT_SUBSCRIPT')),_0x5a4acf('superscript',St(_0x27c085,'FORMAT_SUPERSCRIPT'));}},Ut=class extends _0x2b9af7{['afterInit'](){const _0x5ca74d=this['editor'],_0x404ddc=_0x5ca74d['locale'];if(!_0x5ca74d['plugins']['has']('BlockQuoteEditing'))return;const _0x15b159=_0x5ca74d['plugins']['get']('TrackChangesEditing'),_0x31c106=this['editor']['commands']['get']('blockQuote');_0x15b159['enableCommand']('blockQuote',(_0x2f8746,_0x250c15={})=>{const _0x2701bc=this['editor']['model']['document']['selection'],_0x54cc04=_0x250c15&&void 0x0!==_0x250c15['forceValue']?_0x250c15['forceValue']:!_0x31c106['value'];let _0x50862f=[];_0x50862f=At(_0x54cc04?Array['from'](_0x2701bc['getSelectedBlocks']())['filter'](_0x59e046=>Pt(_0x59e046)||function(_0x195241,_0xb0779e){const _0x27e829=_0xb0779e['createContext'](_0x195241['parent']);return!!_0xb0779e['checkChild'](_0x27e829,'blockQuote')&&!!_0xb0779e['checkChild'](_0x27e829['push']('blockQuote'),_0x195241);}(_0x59e046,this['editor']['model']['schema'])):Array['from'](_0x2701bc['getSelectedBlocks']())['filter'](_0x3fa582=>Pt(_0x3fa582)),_0x5ca74d['model']),_0x5ca74d['model']['change'](()=>{for(const _0x302f01 of _0x50862f)_0x15b159['markBlockFormat'](_0x302f01,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x54cc04}]});});}),_0x15b159['descriptionFactory']['registerDescriptionCallback'](_0x5e76d8=>{const {data:_0x87b489}=_0x5e76d8;if(_0x87b489&&'blockQuote'==_0x87b489['commandName']){const _0x44f742=St(_0x404ddc,'ELEMENT_BLOCK_QUOTE');return _0x87b489['commandParams'][0x0]['forceValue']?{'type':'format','content':St(_0x404ddc,'*Set\x20format:*\x20%0',_0x44f742)}:{'type':'format','content':St(_0x404ddc,'*Remove\x20format:*\x20%0',_0x44f742)};}});}};function Pt(_0x3fff34){return'blockQuote'==_0x3fff34['parent']['name'];}var xt=class extends _0x2b9af7{['afterInit'](){const _0x59cb2f=this['editor'],_0x4d63a3=_0x59cb2f['locale'],_0x329918=_0x59cb2f['plugins']['get']('TrackChangesEditing');_0x59cb2f['plugins']['has']('BookmarkEditing')&&(_0x329918['enableCommand']('insertBookmark'),_0x329918['enableDefaultAttributesIntegration']('updateBookmark'),_0x329918['descriptionFactory']['registerDescriptionCallback'](_0x589e8f=>{if('insertion'!=_0x589e8f['type']&&'deletion'!=_0x589e8f['type']&&'attribute'!=_0x589e8f['type'])return;const _0xb1e50a=_0x589e8f['getContainedElement']();if(null==_0xb1e50a)return;if(!_0xb1e50a['is']('element','bookmark'))return;const _0x16c7cd=_0xb1e50a['getAttribute']('bookmarkId');if('insertion'==_0x589e8f['type'])return{'type':'insertion','content':St(_0x4d63a3,'*Insert:*\x20%0','\x22'+_0x16c7cd+'\x22\x20'+St(_0x4d63a3,'ELEMENT_BOOKMARK'))};if('deletion'==_0x589e8f['type'])return{'type':'deletion','content':St(_0x4d63a3,'*Remove:*\x20%0','\x22'+_0x16c7cd+'\x22\x20'+St(_0x4d63a3,'ELEMENT_BOOKMARK'))};const {data:_0x5dc8dc}=_0x589e8f;return _0x5dc8dc&&'bookmarkId'==_0x5dc8dc['key']?{'type':'format','content':St(_0x4d63a3,'*Set\x20bookmark:*\x20%0','\x22'+_0x5dc8dc['newValue']+'\x22')}:void 0x0;}));}},Gt=class extends _0x2b9af7{['afterInit'](){const _0x54191b=this['editor'];_0x54191b['plugins']['has']('CaseChange')&&(_0x54191b['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x54191b['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x54191b['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}},Ht=class extends _0x2b9af7{['afterInit'](){const _0x57d60d=this['editor'];_0x57d60d['commands']['get']('ckbox')&&_0x57d60d['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}},$t=class extends _0x2b9af7{['afterInit'](){const _0x20a788=this['editor'];if(!_0x20a788['plugins']['has']('CodeBlock'))return;const _0x19fd90=_0x20a788['plugins']['get']('TrackChangesEditing'),_0x590489=_0x20a788['locale'],_0x9bbfe6=_0x20a788['config']['get']('codeBlock')['languages'],_0x5e530d=_0x20a788['commands']['get']('codeBlock');_0x19fd90['enableCommand']('indentCodeBlock'),_0x19fd90['enableCommand']('outdentCodeBlock'),_0x19fd90['enableCommand']('codeBlock',(_0x127dca,_0x4dcacd={})=>{const _0x48b02f=_0x20a788['model'],_0x911dce=_0x20a788['model']['document']['selection'],_0x20ae30=_0x4dcacd&&void 0x0!==_0x4dcacd['forceValue']?_0x4dcacd['forceValue']:!_0x5e530d['value'];let _0x2e2174;_0x4dcacd['language']||(_0x4dcacd['language']=_0x9bbfe6[0x0]['language']),_0x2e2174=_0x20ae30?Array['from'](_0x911dce['getSelectedBlocks']())['filter'](_0x52ce5a=>{return Vt(_0x52ce5a)||(_0xb11d3a=_0x52ce5a,_0x264930=_0x48b02f['schema'],!_0xb11d3a['is']('rootElement')&&!_0x264930['isLimit'](_0xb11d3a)&&_0x264930['checkChild'](_0xb11d3a['parent'],'codeBlock'));var _0xb11d3a,_0x264930;}):Array['from'](_0x911dce['getSelectedBlocks']())['filter'](_0x27251c=>Vt(_0x27251c));const _0x58880a=At(_0x2e2174,_0x48b02f);_0x48b02f['change'](()=>{for(const _0x257303 of _0x58880a)_0x19fd90['markBlockFormat'](_0x257303,{'commandName':'codeBlock','commandParams':[{..._0x4dcacd,'forceValue':_0x20ae30}],'formatGroupId':'blockName'});});}),(_0x19fd90['descriptionFactory']['registerElementLabel']('codeBlock',_0x1c2ddc=>St(_0x590489,'ELEMENT_CODE_BLOCK',_0x1c2ddc)),_0x19fd90['descriptionFactory']['registerDescriptionCallback'](_0x56d27d=>{if('formatBlock'!=_0x56d27d['type'])return;const _0xbb6f1=_0x590489['t'],{data:_0x41b21e}=_0x56d27d;if(!_0x41b21e||'codeBlock'!=_0x41b21e['commandName'])return;const _0x5ce1a3=_0x41b21e['commandParams'][0x0]['language'],_0x59f63a=_0xbb6f1(_0x9bbfe6['find'](_0x264744=>_0x264744['language']===_0x5ce1a3)['label'])['toLowerCase']();return _0x41b21e['commandParams'][0x0]['forceValue']?{'type':'format','content':St(_0x590489,'*Set\x20format:*\x20%0',St(_0x590489,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x59f63a+')')}:{'type':'format','content':St(_0x590489,'*Remove\x20format:*\x20%0',St(_0x590489,'ELEMENT_CODE_BLOCK',0x1))};}));}};function Vt(_0x4bb5ac){return'codeBlock'==_0x4bb5ac['name'];}var Wt=class extends _0x2b9af7{['afterInit'](){const _0x19121f=this['editor'];_0x19121f['plugins']['has']('CommentsEditing')&&_0x19121f['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}},jt=class extends _0x2b9af7{static get['requires'](){return[ht];}['init'](){const _0xac99b5=this['editor'],_0x4769c7=_0xac99b5['plugins']['get']('TrackChangesEditing');_0x4769c7['enableCommand']('delete');const _0x40d038=_0xac99b5['commands']['get']('deleteForward');_0x4769c7['enableCommand']('deleteForward',(_0x3046fe,_0x46230a={})=>{const _0x61a2aa=_0xac99b5['model']['createSelection'](_0xac99b5['model']['document']['selection']);_0x61a2aa['isCollapsed']&&_0xac99b5['model']['modifySelection'](_0x61a2aa,{'direction':'forward','unit':_0x46230a['unit']});const _0xf02bba=_0x61a2aa['getFirstRange'](),_0x4da91b=rt['fromRange'](_0xf02bba);let _0x1f2bb9;_0x3046fe(_0x46230a),_0x1f2bb9='$graveyard'==_0x4da91b['root']['rootName']?_0xac99b5['model']['createRange'](_0xf02bba['start']):_0xac99b5['model']['createRange'](_0x4da91b['start'],_0x4da91b['end']),_0x4da91b['detach'](),_0xac99b5['model']['enqueueChange'](_0x40d038['buffer']['batch'],_0xaca849=>{_0x40d038['buffer']['lock'](),_0xaca849['setSelection'](_0xaca849['createRange'](_0x1f2bb9['end'])),_0x40d038['buffer']['unlock']();});});}},Kt=class extends _0x2b9af7{['afterInit'](){const _0x314237=this['editor'];if(!_0x314237['plugins']['has']('ListEditing'))return;const _0x1eac74=_0x314237['locale'],_0x3b7e2f=_0x314237['plugins']['get']('TrackChangesEditing'),_0x28339d=_0x314237['plugins']['has']('TodoListEditing'),_0x427d55=!!_0x314237['config']['get']('list.multiBlock');function _0x9b7e8(_0x26ebe6){return{'type':'format','content':''+St(_0x1eac74,'*Set\x20format:*\x20%0',_0x26ebe6)};}function _0x18ae31(_0x5dd4cc){return{'type':'format','content':''+St(_0x1eac74,'*Remove\x20format:*\x20%0',_0x5dd4cc)};}_0x3b7e2f['enableDefaultAttributesIntegration']('numberedList'),_0x3b7e2f['enableDefaultAttributesIntegration']('bulletedList'),_0x3b7e2f['enableDefaultAttributesIntegration']('customNumberedList'),_0x3b7e2f['enableDefaultAttributesIntegration']('customBulletedList'),_0x3b7e2f['enableDefaultAttributesIntegration']('indentList'),_0x3b7e2f['enableDefaultAttributesIntegration']('outdentList'),_0x3b7e2f['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x3b7e2f['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x427d55&&(_0x3b7e2f['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x3b7e2f['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x28339d&&(_0x3b7e2f['enableDefaultAttributesIntegration']('todoList'),_0x3b7e2f['enableDefaultAttributesIntegration']('checkTodoList'),_0x3b7e2f['descriptionFactory']['registerDescriptionCallback'](_0x147cc4=>{const {data:_0x2c4a14}=_0x147cc4;if(_0x2c4a14&&'todoListChecked'==_0x2c4a14['key'])return{'type':'format','content':_0x2c4a14['newValue']?St(_0x1eac74,'*Check\x20item*'):St(_0x1eac74,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x103f11=>{if(_0x103f11['batch']['isUndo'])return!0x1;let _0x558d67=!0x1;const _0x1a28d1=_0x3b7e2f['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x216556=>'todoListChecked'===_0x3b7e2f['_getAttributeKey'](_0x216556));for(const _0x4e3db6 of _0x1a28d1)'todo'!=_0x4e3db6['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x3b7e2f['_findSuggestions'](_0x4e3db6['getFirstRange'](),'attribute')['find'](_0x36f729=>'listType'===_0x3b7e2f['_getAttributeKey'](_0x36f729['suggestion']))||(_0x103f11['removeMarker'](_0x4e3db6['getFirstMarker']()),_0x558d67=!0x0));return _0x558d67;})),_0x3b7e2f['descriptionFactory']['registerAttributeLabel']('listIndent',St(_0x1eac74,'FORMAT_INDENT'));const _0x3aa6bf={'type':'format','content':''};_0x3b7e2f['descriptionFactory']['registerDescriptionCallback'](_0x128aaf=>{const {data:_0x4ccb1a}=_0x128aaf;if(!_0x4ccb1a||'listType'!=_0x4ccb1a['key'])return;let _0x1c5364=_0x128aaf['head'];for(;_0x1c5364;){if(_0x1c5364['data']&&(('listStyle'==_0x1c5364['data']['key']||'listMarkerStyle'==_0x1c5364['data']['key'])&&(_0x1c5364['data']['newValue']&&'default'!=_0x1c5364['data']['newValue']||'default'!=_0x1c5364['data']['oldValue']&&!_0x4ccb1a['newValue'])||!_0x427d55&&'$elementName'==_0x1c5364['data']['key']))return _0x3aa6bf;_0x1c5364=_0x1c5364['next'];}if(null==_0x4ccb1a['newValue'])switch(_0x4ccb1a['oldValue']){case'bulleted':return _0x18ae31(St(_0x1eac74,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x18ae31(St(_0x1eac74,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x18ae31(St(_0x1eac74,'ELEMENT_TODO_LIST'));}switch(_0x4ccb1a['newValue']){case'bulleted':return _0x9b7e8(St(_0x1eac74,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x9b7e8(St(_0x1eac74,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x9b7e8(St(_0x1eac74,'ELEMENT_TODO_LIST'));}}),_0x3b7e2f['descriptionFactory']['registerDescriptionCallback'](_0x1d8dbe=>{const {data:_0x5e752a}=_0x1d8dbe;if(_0x5e752a&&'listIndent'==_0x5e752a['key'])return null==_0x5e752a['newValue']||null==_0x5e752a['oldValue']&&0x0==_0x5e752a['newValue']?_0x3aa6bf:void 0x0;}),_0x3b7e2f['descriptionFactory']['registerDescriptionCallback'](_0x273e08=>{if('attribute'!=_0x273e08['type'])return;const {data:_0x43b250}=_0x273e08;if(!_0x43b250||'listItemId'!=_0x43b250['key'])return;const _0x33fcfc=zt(_0x273e08);return'newValue'==_0x33fcfc?{'type':'format','content':St(_0x1eac74,'*Merge:*\x20list\x20item')}:'oldValue'==_0x33fcfc?{'type':'format','content':St(_0x1eac74,'*Split:*\x20list\x20item')}:_0x3aa6bf;}),_0x314237['model']['document']['registerPostFixer'](_0x16fcef=>this['listItemIdFixer'](_0x16fcef)),_0x314237['model']['document']['registerPostFixer'](_0x50666e=>this['noTrackChangesFixer'](_0x50666e)),_0x314237['model']['document']['on']('change:data',(_0x24dd83,_0x2db8b7)=>{if(_0x2db8b7['isUndo']||!_0x2db8b7['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x32fa3a){if(_0x32fa3a['batch']['isUndo']||!_0x32fa3a['batch']['isLocal'])return!0x1;let _0x2344fa=!0x1;const _0x585696=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x541551=>_0x541551['data']&&'listItemId'==_0x541551['data']['key'])['filter'](_0x2cfd6a=>_0x2cfd6a['data']['newValue']&&_0x2cfd6a['data']['oldValue']);for(const _0x3206bc of _0x585696)zt(_0x3206bc)||(_0x32fa3a['removeMarker'](_0x3206bc['getFirstMarker']()),_0x2344fa=!0x0);return _0x2344fa;}['noTrackChangesFixer'](_0x292a5d){if(_0x292a5d['batch']['isUndo']||!_0x292a5d['batch']['isLocal'])return!0x1;const _0x1a7015=this['editor']['model']['document']['differ'],_0x51409e=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x51409e['trackChangesCommand']['value'])return!0x1;let _0x32eb48=!0x1;const _0x52ab6f=new Set(['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes']),_0x3893d5=_0x1a7015['getChanges']()['filter'](_0x1c1103=>'attribute'==_0x1c1103['type'])['filter'](_0x273469=>_0x52ab6f['has'](_0x273469['attributeKey']));if(0x0==_0x3893d5['length'])return _0x32eb48;const _0x5929db=new Set(_0x1a7015['getMarkersToAdd']()['filter'](_0x169329=>{if(!_0x169329['name']['startsWith']('suggestion:attribute:'))return!0x1;const _0x4618d1=tt(_0x169329['name'])['subType']['split']('|')[0x0];return _0x52ab6f['has'](_0x4618d1);})['map'](_0x1df458=>tt(_0x1df458['name'])['id']));for(const _0x2c7a86 of _0x3893d5){const _0xa02783=_0x51409e['_findSuggestions'](_0x2c7a86['range'],'attribute')['filter'](_0x882fa2=>{if(_0x882fa2['meta']['isNextTo'])return!0x1;if(_0x5929db['has'](_0x882fa2['suggestion']['id']))return!0x1;const _0x7a375c=_0x51409e['_getAttributeKey'](_0x882fa2['suggestion']);return _0x52ab6f['has'](_0x7a375c);})['map'](_0x11b918=>_0x11b918['suggestion']);if(_0xa02783['length']){for(const _0x9a470d of _0xa02783)_0x292a5d['removeMarker'](_0x9a470d['getFirstMarker']());_0x32eb48=!0x0;}}return _0x32eb48;}['assureChains'](){const _0x3148cf=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1788c0=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes'];let _0x3125bd;const _0x45c13a=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3ed7e9=>{if(_0x3ed7e9['data']['oldRange']||!_0x3ed7e9['data']['newRange'])return null;if(!_0x3ed7e9['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x2b3cc8}=tt(_0x3ed7e9['name']);if(!_0x3148cf['hasSuggestion'](_0x2b3cc8))return null;const _0x7f6a19=_0x3148cf['getSuggestion'](_0x2b3cc8);return _0x1788c0['includes'](_0x7f6a19['data']['key']);})['map'](_0x3b283e=>{const {id:_0x3405ed}=tt(_0x3b283e['name']),_0x169c02=_0x3148cf['getSuggestion'](_0x3405ed);return _0x3125bd=_0x169c02['attributes']['groupId'],_0x169c02['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x45c13a['size'])return;const _0x561e88=_0x3148cf['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x41280b=>'attribute'==_0x41280b['type']&&_0x41280b['data']&&_0x1788c0['includes'](_0x41280b['data']['key'])&&_0x41280b['attributes']['groupId']!=_0x3125bd)['map'](_0x4ed441=>({'listItem':_0x4ed441['getFirstRange']()['start']['nodeAfter'],'groupId':_0x4ed441['attributes']['groupId']})),_0x1e1332=new Set();for(const {groupId:_0x2568f3,listItem:_0x462e49}of _0x561e88)_0x45c13a['has'](_0x462e49)&&_0x1e1332['add'](_0x2568f3);for(const _0x2d5601 of _0x3148cf['getSuggestions']())_0x1e1332['has'](_0x2d5601['attributes']['groupId'])&&_0x2d5601['setAttribute']('groupId',_0x3125bd);}['_supportLegacySuggestions'](){const _0x5c37f1=this['editor'],_0x7c71fd=_0x5c37f1['locale'],_0x41fd12=_0x5c37f1['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x41fd12['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x3d4076,_0x5b0c02){const _0x32acd3=[];for(let _0x3636f5 of _0x3d4076)_0x3636f5['start']['nodeAfter']===_0x3636f5['end']['parent']&&(_0x3636f5=_0x5c37f1['model']['createRange'](_0x5c37f1['model']['createPositionAt'](_0x3636f5['start']['nodeAfter'],0x0))),_0x32acd3['push'](_0x3636f5);_0x5c37f1['model']['change'](_0x374732=>{const _0x543456=_0x5c37f1['model']['document']['selection'],_0xc03790=Array['from'](_0x543456['getRanges']())['map'](_0x195178=>rt['fromRange'](_0x195178));_0x374732['setSelection'](_0x32acd3),_0x5c37f1['commands']['get'](_0x5b0c02['commandName'])['refresh'](),_0x5b0c02['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x5c37f1['execute'](_0x5b0c02['commandName'],..._0x5b0c02['commandParams']),_0x374732['setSelection'](_0xc03790);for(const _0xcb5c5e of _0xc03790)_0xcb5c5e['detach']();});}),_0x41fd12['descriptionFactory']['registerElementLabel'](function(_0x59adcf){const _0x24e5a8=!_0x5c37f1['model']['schema']['isObject'](_0x59adcf),_0x2682d2=_0x59adcf['previousSibling'],_0x42db85=_0x59adcf['nextSibling'],_0x1191bd=_0x59adcf['getAttribute']('listItemId'),_0x52a52e=!_0x2682d2||_0x2682d2['getAttribute']('listItemId')!==_0x1191bd,_0xa31148=!_0x42db85||_0x42db85['getAttribute']('listItemId')!==_0x1191bd;return _0x24e5a8&&Boolean(_0x1191bd)&&_0x52a52e&&_0xa31148;},_0x576684=>St(_0x7c71fd,'ELEMENT_LIST_ITEM',_0x576684));}['_registerLegacyDescription'](){const _0x302e31=this['editor'],_0x5c475f=_0x302e31['locale'];function _0x3c6212(_0x2d885a){const _0x8aaeef=_0x302e31['commands']['get']('bulletedList')['value'],_0x317f5e=_0x302e31['commands']['get']('numberedList')['value'];return'numberedList'===_0x2d885a?_0x8aaeef:_0x317f5e;}_0x302e31['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x6efb3b){if('formatBlock'!=_0x6efb3b['type'])return;const {data:_0x4cc236}=_0x6efb3b;if(!_0x4cc236)return;let _0x121c78,_0x5f1bbd,_0x3aad0b,_0x2e0a1a;switch(_0x4cc236['commandName']){case'bulletedList':_0x3aad0b=_0x4cc236['commandParams'][0x0]['forceValue'],_0x2e0a1a=_0x3c6212(_0x4cc236['commandName']),_0x121c78=_0x3aad0b?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2e0a1a&&_0x302e31['config']['get']('list.multiBlock')||(_0x121c78='*Change\x20to:*\x20%0'),_0x5f1bbd={'type':'format','content':St(_0x5c475f,_0x121c78,St(_0x5c475f,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x3aad0b=_0x4cc236['commandParams'][0x0]['forceValue'],_0x2e0a1a=_0x3c6212(_0x4cc236['commandName']),_0x121c78=_0x3aad0b?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2e0a1a&&_0x302e31['config']['get']('list.multiBlock')||(_0x121c78='*Change\x20to:*\x20%0'),_0x5f1bbd={'type':'format','content':St(_0x5c475f,_0x121c78,St(_0x5c475f,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x121c78='*Indent:*\x20%0',_0x5f1bbd={'type':'format','content':St(_0x5c475f,_0x121c78,St(_0x5c475f,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x121c78=function(_0x11f4b1){const _0x5517da=_0x11f4b1['getFirstRange']();let _0x5be60a=_0x5517da['start']['nodeAfter'];for(;_0x5be60a&&_0x5517da['containsItem'](_0x5be60a);){if(_0x5be60a['getAttribute']('listIndent')>0x0)return!0x1;_0x5be60a=_0x5be60a['nextSibling'];}return!0x0;}(_0x6efb3b)?St(_0x5c475f,'*Format:*\x20remove\x20from\x20%0',St(_0x5c475f,function(_0x4e2bf2){return'ELEMENT_'+_0x4e2bf2['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x6efb3b))):St(_0x5c475f,'*Outdent:*\x20%0',St(_0x5c475f,'ELEMENT_LIST_ITEM')),_0x5f1bbd={'type':'format','content':_0x121c78};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x4cc236['multipleBlocks']&&(_0x121c78='*Merge:*\x20%0',_0x5f1bbd={'type':'deletion','content':St(_0x5c475f,_0x121c78,St(_0x5c475f,'ELEMENT_LIST_ITEM'))});}return _0x5f1bbd;});}};function zt(_0x381677){let _0x3aca29=_0x381677['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x3aca29;){const _0x3d339f=_0x3aca29['getAttribute']('listItemId');if(!_0x3d339f)return!0x1;if(_0x3d339f==_0x381677['data']['newValue'])return'newValue';if(_0x3d339f==_0x381677['data']['oldValue'])return'oldValue';_0x3aca29=_0x3aca29['previousSibling'];}return!0x1;}var Xt=class extends _0x2b9af7{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x7d272d=this['editor']['config']['get']('list.properties'),_0x2be433=this['editor']['plugins']['get']('TrackChangesEditing');_0x7d272d['styles']&&_0x2be433['enableDefaultAttributesIntegration']('listStyle'),_0x7d272d['reversed']&&_0x2be433['enableDefaultAttributesIntegration']('listReversed'),_0x7d272d['startIndex']&&_0x2be433['enableDefaultAttributesIntegration']('listStart');const _0x5ea9fd={'type':'format','content':''};_0x2be433['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0xea672=this['editor']['locale'];_0x2be433['descriptionFactory']['registerAttributeLabel']('listReversed',St(_0xea672,'FORMAT_LIST_REVERSED')),_0x2be433['descriptionFactory']['registerDescriptionCallback'](_0x5c14a6=>{const {data:_0x1857dc}=_0x5c14a6;if(_0x1857dc&&'listReversed'==_0x1857dc['key'])return null==_0x1857dc['newValue']||0x0==_0x1857dc['newValue']&&null==_0x1857dc['oldValue']?_0x5ea9fd:void 0x0;}),_0x2be433['descriptionFactory']['registerAttributeLabel']('listStart',St(_0xea672,'FORMAT_LIST_START')),_0x2be433['descriptionFactory']['registerDescriptionCallback'](_0x578294=>{const {data:_0x23751f}=_0x578294;if(_0x23751f&&'listStart'==_0x23751f['key'])return null==_0x23751f['newValue']||0x1==_0x23751f['newValue']&&null==_0x23751f['oldValue']?_0x5ea9fd:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x5a3d78=>{if(_0x5a3d78['batch']['isUndo'])return!0x1;let _0x51614f=!0x1;const _0x5530da=_0x2be433['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x317bd2=>{const _0xf0324=_0x2be433['_getAttributeKey'](_0x317bd2);return'listStart'==_0xf0324||'listReversed'==_0xf0324;});for(const _0x354214 of _0x5530da){const _0x38dc88=_0x354214['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');'numbered'!=_0x38dc88&&'customNumbered'!=_0x38dc88&&(_0x2be433['_findSuggestions'](_0x354214['getFirstRange'](),'attribute')['find'](_0x575f94=>'listType'==_0x2be433['_getAttributeKey'](_0x575f94['suggestion']))||(_0x5a3d78['removeMarker'](_0x354214['getFirstMarker']()),_0x51614f=!0x0));}return _0x51614f;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x3019f3){const _0xb4dcc0=this['editor']['locale'],{data:_0x437df2}=_0x3019f3,_0x3d3b4c={'type':'format','content':''};if(!_0x437df2||'listStyle'!=_0x437df2['key'])return;if(!_0x437df2['oldValue'])return'default'==_0x437df2['newValue']?_0x3d3b4c:{'type':'format','content':''+St(_0xb4dcc0,'*Set\x20format:*\x20%0',St(_0xb4dcc0,this['_getTranslationKeyForListStyle'](_0x437df2['newValue'])))};if(!_0x437df2['newValue']){if('default'==_0x437df2['oldValue'])return _0x3d3b4c;let _0x12731e=_0x3019f3['head'];for(;_0x12731e;){if(_0x12731e['data']&&'listType'==_0x12731e['data']['key']&&_0x12731e['data']['newValue'])return _0x3d3b4c;_0x12731e=_0x12731e['next'];}return{'type':'format','content':''+St(_0xb4dcc0,'*Remove\x20format:*\x20%0',St(_0xb4dcc0,this['_getTranslationKeyForListStyle'](_0x437df2['oldValue'])))};}if('default'!=_0x437df2['newValue'])return{'type':'format','content':''+St(_0xb4dcc0,'*Set\x20format:*\x20%0',St(_0xb4dcc0,this['_getTranslationKeyForListStyle'](_0x437df2['newValue'])))};let _0xbbee87=_0x3019f3['head'];for(;_0xbbee87;){if(_0xbbee87['data']&&'listType'==_0xbbee87['data']['key']&&_0xbbee87['data']['newValue']&&_0xbbee87['data']['oldValue'])return _0x3d3b4c;_0xbbee87=_0xbbee87['next'];}return{'type':'format','content':St(_0xb4dcc0,'*Set\x20format:*\x20%0',St(_0xb4dcc0,'ELEMENT_'+_0x3019f3['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x4aeb49=this['editor'],_0x268e3b=_0x4aeb49['locale'];_0x4aeb49['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xa81f6e=>{if('formatBlock'!=_0xa81f6e['type'])return;const {data:_0x8a8e1d}=_0xa81f6e;if(!_0x8a8e1d)return;let _0x58261e,_0x2c53c9;switch(_0x8a8e1d['commandName']){case'listStyle':_0x58261e='*Change\x20to:*\x20%0',_0x2c53c9={'type':'format','content':St(_0x268e3b,_0x58261e,St(_0x268e3b,this['_getTranslationKeyForListStyle'](_0x8a8e1d['commandParams'][0x0]['type'])))};break;case'listReversed':_0x58261e=_0x8a8e1d['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2c53c9={'type':'format','content':St(_0x268e3b,_0x58261e)};break;case'listStart':_0x58261e='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2c53c9={'type':'format','content':St(_0x268e3b,_0x58261e,_0x8a8e1d['commandParams'][0x0]['startIndex'])};}return _0x2c53c9;});}['_getTranslationKeyForListStyle'](_0x31e533){return'ELEMENT_'+(_0x12db90=_0x31e533,qt['includes'](_0x12db90)?'bulleted':Yt['includes'](_0x12db90)?'numbered':null)['toUpperCase']()+'_LIST_'+_0x31e533['toUpperCase']()['replace'](/-/g,'_');var _0x12db90;}};const qt=['disc','circle','square'],Yt=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];var Qt=class extends _0x2b9af7{['afterInit'](){const _0x207cfa=this['editor'];_0x207cfa['commands']['get']('emoji')&&_0x207cfa['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}},Zt=class extends _0x2b9af7{static get['requires'](){return[ft];}['init'](){const _0x4b01e6=this['editor'],_0xda1181=_0x4b01e6['plugins']['get']('TrackChangesEditing'),_0xb411a7=_0x4b01e6['commands']['get']('enter');_0xda1181['enableCommand']('enter',()=>{_0x4b01e6['model']['change'](_0x57a54d=>{const _0x237139=_0x4b01e6['model']['document']['selection'],_0x2a6b17=_0x237139['getFirstPosition'](),_0x52d39f=rt['fromRange'](_0x237139['getFirstRange']());if(_0xb411a7['enterBlock'](_0x57a54d)){const _0x14a1a0=_0x4b01e6['model']['createPositionAt'](_0x2a6b17['parent']['nextSibling'],0x0),_0x4a330d=_0x57a54d['createRange'](_0x2a6b17,_0x14a1a0);_0xda1181['markInsertion'](_0x4a330d);}else _0x57a54d['setSelection'](_0x57a54d['createRange'](_0x52d39f['end']));_0x52d39f['detach'](),_0xb411a7['fire']('afterExecute',{'writer':_0x57a54d});});});}},Jt=class extends _0x2b9af7{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x14688f=this['editor']['plugins']['get']('TrackChangesEditing');_0x14688f['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x14688f['enableCommand']('findNext'),_0x14688f['enableCommand']('findPrevious'),_0x14688f['enableCommand']('replace'),_0x14688f['enableCommand']('replaceAll');}['handleFindCommand'](_0x4cd6a0,_0x1128db,_0x41cc71={}){const _0x567f84=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x4cd6a0(_0x1ba7d1=>{let _0x319890=('string'==typeof _0x1128db?_0x567f84['findByTextCallback'](_0x1128db,_0x41cc71):_0x1128db)(_0x1ba7d1);Array['isArray'](_0x319890)&&(_0x319890={'results':_0x319890,'searchText':'string'==typeof _0x1128db?_0x1128db:''});const _0x1a985d=_0x319890['results']['filter'](_0x448cd5=>!0x1===this['_isInDeletionRange'](_0x448cd5,_0x1ba7d1['item']));return{..._0x319890,'results':_0x1a985d};},_0x41cc71);}['_isInDeletionRange'](_0x8c118e,_0x3ab272){const _0x577d13=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3ab272,_0x8c118e['start']),this['editor']['model']['createPositionAt'](_0x3ab272,_0x8c118e['end']));for(const _0x5de901 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x577d13['getIntersection'](_0x5de901['getRange']()))return!0x0;return!0x1;}};const te=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];var ee=class extends _0x2b9af7{['afterInit'](){const _0x2c8e70=this['editor']['locale'],_0x1636d2=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x461cfb,commandName:_0x5e09f9}of te)this['editor']['plugins']['has'](_0x461cfb)&&_0x1636d2['enableDefaultAttributesIntegration'](_0x5e09f9);_0x1636d2['descriptionFactory']['registerAttributeLabel']('fontSize',St(_0x2c8e70,'FORMAT_FONT_SIZE')),_0x1636d2['descriptionFactory']['registerAttributeLabel']('fontFamily',St(_0x2c8e70,'FORMAT_FONT_FAMILY')),_0x1636d2['descriptionFactory']['registerAttributeLabel']('fontColor',St(_0x2c8e70,'FORMAT_FONT_COLOR')),_0x1636d2['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',St(_0x2c8e70,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x101d84=this['editor'],_0x5281d8=_0x101d84['locale'];_0x101d84['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3f8bac=>{const _0x5548c6=_0x5281d8['t'];if('formatInline'!=_0x3f8bac['type'])return;const {data:_0x1a7671}=_0x3f8bac;if(null!=_0x1a7671){if('fontSize'==_0x1a7671['commandName']){const _0x5a9006=_0x1a7671['commandParams'][0x0]['value'];if(_0x5a9006){const _0x2a1339=this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x5bf870=>_0x5bf870['model']==_0x5a9006)['title'];return{'type':'format','content':St(_0x5281d8,'*Set\x20font\x20size:*\x20%0',_0x5548c6(_0x2a1339)['toLowerCase']())};}return{'type':'format','content':St(_0x5281d8,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x1a7671['commandName']){const _0x3a7dd9=_0x1a7671['commandParams'][0x0]['value'];return _0x3a7dd9?{'type':'format','content':St(_0x5281d8,'*Set\x20font\x20family:*\x20%0',_0x3a7dd9)}:{'type':'format','content':St(_0x5281d8,'*Reset\x20font\x20family*')};}if('fontColor'==_0x1a7671['commandName']){const _0x2bb59a=_0x1a7671['commandParams'][0x0]['value'];if(_0x2bb59a){const _0x500244=_0x5de7fc(this['editor']['config']['get']('fontColor.colors'))['find'](_0x26898f=>_0x26898f['model']==_0x2bb59a);let _0x22ff42=_0x2bb59a,_0x353ae1='';return _0x500244&&(_0x22ff42=_0x500244['label'],_0x353ae1=_0x5548c6(_0x22ff42)['toLowerCase']()),{'type':'format','content':St(_0x5281d8,'*Set\x20font\x20color:*\x20%0',_0x353ae1)['trim'](),'color':{'value':_0x2bb59a,'title':_0x353ae1||_0x22ff42}};}return{'type':'format','content':St(_0x5281d8,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x1a7671['commandName']){const _0x42a958=_0x1a7671['commandParams'][0x0]['value'];if(_0x42a958){const _0x2f9b30=_0x5de7fc(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x65ce3b=>_0x65ce3b['model']==_0x42a958);let _0x1bc901=_0x42a958,_0x2e86fc='';return _0x2f9b30&&(_0x1bc901=_0x2f9b30['label'],_0x2e86fc=_0x5548c6(_0x1bc901)['toLowerCase']()),{'type':'format','content':St(_0x5281d8,'*Set\x20font\x20background\x20color:*\x20%0',_0x2e86fc)['trim'](),'color':{'value':_0x42a958,'title':_0x2e86fc||_0x1bc901}};}return{'type':'format','content':St(_0x5281d8,'*Reset\x20font\x20background\x20color*')};}}});}},ne=class extends _0x2b9af7{['afterInit'](){const {plugins:_0x105b1d}=this['editor'];_0x105b1d['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x105b1d['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x45952f,plugins:_0x48e6c8,commands:_0x365652}=this['editor'],_0x48688e=_0x48e6c8['get']('TrackChangesEditing');_0x365652['get']('footnotesStyle')&&_0x48688e['enableDefaultAttributesIntegration']('footnotesStyle'),_0x365652['get']('footnotesStart')&&_0x48688e['enableDefaultAttributesIntegration']('footnotesStart'),_0x48688e['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',St(_0x45952f,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x48688e['descriptionFactory']['registerAttributeLabel']('footnotesListStart',St(_0x45952f,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x26022a=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x328e0e,commands:_0x1cebcb}=this['editor'];_0x1cebcb['get']('insertFootnote')&&_0x26022a['enableCommand']('insertFootnote'),_0x26022a['descriptionFactory']['registerElementLabel']('footnoteRef',_0x33a9f5=>St(_0x328e0e,'ELEMENT_FOOTNOTE_REF',_0x33a9f5)),_0x26022a['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x17cd0f=>St(_0x328e0e,'ELEMENT_FOOTNOTE_DEFINITION',_0x17cd0f)),_0x26022a['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x525dca=>St(_0x328e0e,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x525dca));}},ie=class extends _0x2b9af7{['afterInit'](){const _0x545b3d=this['editor'],_0x263788=_0x545b3d['plugins']['get']('TrackChangesEditing'),_0x4c35c7=_0x545b3d['commands']['get']('copyFormat'),_0x1ccb98=_0x545b3d['commands']['get']('pasteFormat');_0x4c35c7&&_0x1ccb98&&(_0x263788['enableDefaultAttributesIntegration']('pasteFormat'),_0x263788['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x23d6cf=this['editor'],_0x9a6483=_0x23d6cf['locale'];_0x23d6cf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3b1f11=>{if('formatBlock'!=_0x3b1f11['type']&&'formatInline'!=_0x3b1f11['type'])return;const {data:_0x3bdbca}=_0x3b1f11;if(_0x3bdbca&&'pasteFormat'===_0x3bdbca['commandName']){const _0x295cca=[],_0x18dcf5=_0x3bdbca['commandParams'][0x0];for(const [_0x3a47c4,_0x9f500e]of Object['entries'](_0x18dcf5))_0x295cca['push'](se(_0x23d6cf,_0x3a47c4,_0x9f500e));return _0x295cca['length']?{'type':'format','content':St(_0x9a6483,'*Set\x20format\x20to:*\x20%0',_0x295cca['join'](',\x20'))}:{'type':'format','content':St(_0x9a6483,'*Remove\x20all\x20formatting*')};}});}};function se(_0x1304bf,_0x3f963b,_0x2a6c0b){const _0x4fa892=_0x1304bf['locale']['t'],_0x29c3ed=_0x3f963b['split'](/(?=[A-Z])/)['join']('\x20'),_0x401b77=_0x4fa892(_0x29c3ed['charAt'](0x0)['toUpperCase']()+_0x29c3ed['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x2a6c0b)return _0x401b77;if('fontColor'===_0x3f963b||'fontBackgroundColor'===_0x3f963b){const _0xba6fa1=_0x5de7fc(_0x1304bf['config']['get']('fontColor.colors'))['find'](_0x2f29d7=>_0x2f29d7['model']==_0x2a6c0b);return _0x401b77+'\x20('+(_0xba6fa1?_0x4fa892(_0xba6fa1['label'])['toLowerCase']():_0x2a6c0b)+')';}if('fontSize'===_0x3f963b&&isNaN(parseFloat(_0x2a6c0b))){const _0x1ca7cd=_0x1304bf['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x1304bf['config']['get']('fontSize.options'))['find'](_0x389500=>_0x389500['model']==_0x2a6c0b);return _0x401b77+'\x20('+(_0x1ca7cd?_0x4fa892(_0x1ca7cd['title'])['toLowerCase']():_0x2a6c0b)+')';}return _0x401b77+'\x20('+_0x2a6c0b+')';}var re=class extends _0x2b9af7{['afterInit'](){const _0x2b04c2=this['editor'];if(!_0x2b04c2['plugins']['has']('GeneralHtmlSupport')||!_0x2b04c2['plugins']['has']('DataSchema'))return;const _0x399d75=_0x2b04c2['plugins']['get']('TrackChangesEditing'),_0x3bc901=_0x2b04c2['plugins']['get']('GeneralHtmlSupport'),_0xba19d2=_0x2b04c2['plugins']['get']('DataSchema'),_0x3659ff=_0x2b04c2['locale'],_0x46bef0=new Set(['htmlContent']);for(const _0x4a46ac of _0xba19d2['getDefinitionsForView'](/.*/,!0x1)){const _0x2e7ec5=_0x4a46ac['view'],_0x4c9189=_0x3bc901['getGhsAttributeNameForElement'](_0x2e7ec5);_0x46bef0['add'](_0x4c9189),!_0x4a46ac['isInline']||_0x4a46ac['isObject']||'appliesToBlock'in _0x4a46ac&&_0x4a46ac['appliesToBlock']||_0x399d75['descriptionFactory']['registerAttributeLabel'](_0x4c9189,_0x2e7ec5),_0x4a46ac['model']['startsWith']('html')&&_0x399d75['descriptionFactory']['registerElementLabel'](_0x4a46ac['model'],_0x213c12=>St(_0x3659ff,'ELEMENT_HTML_TAG',[_0x213c12,_0x2e7ec5]));}_0x399d75['descriptionFactory']['registerAttributeLabel']('htmlContent',St(_0x3659ff,'FORMAT_RAW_HTML_CONTENT')),_0x399d75['descriptionFactory']['registerAttributeLabel']('htmlLiAttributes',St(_0x3659ff,'FORMAT_HTML_LIST_ITEM')),_0x399d75['descriptionFactory']['registerAttributeLabel']('htmlUlAttributes',St(_0x3659ff,'FORMAT_HTML_BULLETED_LIST')),_0x399d75['descriptionFactory']['registerAttributeLabel']('htmlOlAttributes',St(_0x3659ff,'FORMAT_HTML_NUMBERED_LIST')),_0x399d75['descriptionFactory']['registerDescriptionCallback'](_0x1992cb=>{if('attribute'!==_0x1992cb['type'])return;const _0x1a4ea7=_0x1992cb['data'];if(!_0x1a4ea7||!_0x46bef0['has'](_0x1a4ea7['key']))return;if('htmlContent'===_0x1a4ea7['key'])return{'type':'format','content':St(_0x3659ff,'*Change\x20%0\x20content*',St(_0x3659ff,'ELEMENT_RAW_HTML'))};const {setItems:_0x5db28e,removeItems:_0x3e2ea0}=function(_0x5abdd2,_0x3b37a5,_0x81939){const _0x30e8c8=[],_0x5280b7=[],_0x4d7f5c=_0x5abdd2['styles']??{},_0x5c03a2=_0x3b37a5['styles']??{};for(const _0x25f9f9 of new Set([...Object['keys'](_0x4d7f5c),...Object['keys'](_0x5c03a2)]))_0x4d7f5c[_0x25f9f9]!==_0x5c03a2[_0x25f9f9]&&(void 0x0===_0x5c03a2[_0x25f9f9]?_0x5280b7['push'](_0x25f9f9):_0x30e8c8['push'](_0x25f9f9+'\x20('+_0x5c03a2[_0x25f9f9]+')'));const _0x48e683=St(_0x81939,'FORMAT_HTML_CLASS'),_0x39723c=new Set(_0x5abdd2['classes']??[]),_0x2561e9=new Set(_0x3b37a5['classes']??[]),_0x19f946=[..._0x2561e9]['some'](_0x35b11f=>!_0x39723c['has'](_0x35b11f)),_0x3b427e=[..._0x39723c]['some'](_0x476f08=>!_0x2561e9['has'](_0x476f08));_0x19f946&&_0x30e8c8['push'](_0x48e683),_0x3b427e&&_0x5280b7['push'](_0x48e683);const _0x5c06ec=St(_0x81939,'FORMAT_HTML_ATTRIBUTE'),_0x263a7b=_0x5abdd2['attributes']??{},_0x1421a9=_0x3b37a5['attributes']??{};let _0x34d62b=!0x1,_0x1bdf71=!0x1;for(const _0x32e567 of new Set([...Object['keys'](_0x263a7b),...Object['keys'](_0x1421a9)]))_0x263a7b[_0x32e567]!==_0x1421a9[_0x32e567]&&(void 0x0===_0x1421a9[_0x32e567]?_0x1bdf71=!0x0:_0x34d62b=!0x0);return _0x34d62b&&_0x30e8c8['push'](_0x5c06ec),_0x1bdf71&&_0x5280b7['push'](_0x5c06ec),{'setItems':_0x30e8c8,'removeItems':_0x5280b7};}(_0x1a4ea7['oldValue']??{},_0x1a4ea7['newValue']??{},_0x3659ff);if(!_0x5db28e['length']&&!_0x3e2ea0['length'])return;const _0x333b93=[];return _0x5db28e['length']&&_0x333b93['push'](St(_0x3659ff,'*Set\x20format:*\x20%0',_0x5db28e['join'](',\x20'))),_0x3e2ea0['length']&&_0x333b93['push'](St(_0x3659ff,'*Remove\x20format:*\x20%0',_0x3e2ea0['join'](',\x20'))),{'type':'format','content':_0x333b93['join']('\x0a')};});}},oe=class extends _0x2b9af7{['_headingOptions'];['afterInit'](){const _0x4e334f=this['editor'];if(!_0x4e334f['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x4e334f['config']['get']('heading.options');const _0x2fe55f=_0x4e334f['locale'],_0x533dfb=_0x4e334f['plugins']['get']('TrackChangesEditing');_0x533dfb['enableDefaultAttributesIntegration']('heading');for(const _0x4bd8ea of this['_headingOptions'])'paragraph'!=_0x4bd8ea['model']&&_0x533dfb['descriptionFactory']['registerElementLabel'](_0x4bd8ea['model'],_0x280e6e=>{const _0x4b84a6=this['_getHeadingLevel'](_0x4bd8ea['model']);return null!==_0x4b84a6?_0x165243(_0x280e6e,_0x4b84a6):_0x557b51(_0x280e6e,_0x4bd8ea['title']);});function _0x165243(_0xf7d323,_0x3ba26d){return St(_0x2fe55f,'ELEMENT_HEADING',[_0xf7d323,_0x3ba26d]);}function _0x557b51(_0x59ee04,_0x48b777){return St(_0x2fe55f,'ELEMENT_HEADING_CUSTOM',[_0x59ee04,_0x48b777]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4ecf64=this['editor'],_0x8957b5=_0x4ecf64['locale'];function _0x5cc162(_0x513dbd,_0x2ae041){return St(_0x8957b5,'ELEMENT_HEADING_CUSTOM',[_0x513dbd,_0x2ae041]);}_0x4ecf64['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x147ccf=>{if('formatBlock'!=_0x147ccf['type'])return;const {data:_0x4e7e46}=_0x147ccf;if(_0x4e7e46&&'heading'==_0x4e7e46['commandName']){const _0x1c742f=_0x4e7e46['commandParams'][0x0]['value'],_0x166fd1=this['_getHeadingLevel'](_0x1c742f);if(null!==_0x166fd1)return{'type':'format','content':St(_0x8957b5,'*Change\x20to:*\x20%0',(_0x5cba6a=0x1,_0x56037f=_0x166fd1,St(_0x8957b5,'ELEMENT_HEADING',[_0x5cba6a,_0x56037f])))};const _0xb2bf4f=this['_headingOptions']['find'](_0x24d50c=>_0x24d50c['model']===_0x1c742f)['title'];return{'type':'format','content':St(_0x8957b5,'*Change\x20to:*\x20%0',_0x5cc162(0x1,_0xb2bf4f))};}var _0x5cba6a,_0x56037f;});}['_getHeadingLevel'](_0x2577d0){const _0xe0ff45=_0x2577d0['match'](/^heading(\d+)/);if(_0xe0ff45)return _0xe0ff45[0x1];const _0x1298e0=this['_headingOptions']?.['find'](_0x4adde0=>_0x4adde0['model']==_0x2577d0);if(_0x1298e0&&_0x1298e0['view']){const _0x147acd=_0x1298e0['view'],_0x2a4199=(_0x147acd['name']??_0x147acd)['match'](/^h(\d+)/);if(_0x2a4199)return _0x2a4199[0x1];}return null;}},ae=class extends _0x2b9af7{['afterInit'](){const _0x3aa36e=this['editor'];if(!_0x3aa36e['plugins']['has']('HighlightEditing'))return;const _0x523849=_0x3aa36e['plugins']['get']('TrackChangesEditing'),_0x336c65=_0x3aa36e['locale'];_0x523849['enableDefaultAttributesIntegration']('highlight'),_0x523849['descriptionFactory']['registerAttributeLabel']('highlight',St(_0x336c65,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x25aced=this['editor'],_0x1fce94=_0x25aced['locale'];_0x25aced['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1319b4=>{if('formatInline'!=_0x1319b4['type'])return;const {data:_0x4f0081}=_0x1319b4;if(_0x4f0081&&'highlight'==_0x4f0081['commandName']){const _0x166570=_0x1fce94['t'],_0x207803=_0x4f0081['commandParams'][0x0]['value'];if(_0x207803){const _0x548cae=_0x25aced['config']['get']('highlight.options')['find'](_0x151b04=>_0x151b04['model']==_0x207803);return{'type':'format','content':St(_0x1fce94,'*Set\x20highlight:*\x20%0',_0x166570(_0x548cae['title'])['toLowerCase']()),'color':{'value':_0x548cae['color'],'title':_0x548cae['title']}};}return{'type':'format','content':St(_0x1fce94,'*Remove\x20highlight*',St(_0x1fce94,'FORMAT_HIGHLIGHT'))};}});}},ce=class extends _0x2b9af7{['afterInit'](){const _0x23224b=this['editor'];if(!_0x23224b['plugins']['has']('HorizontalLineEditing'))return;_0x23224b['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x14e62e=_0x23224b['plugins']['get']('TrackChangesEditing'),_0x23ca7b=_0x23224b['locale'];_0x14e62e['descriptionFactory']['registerElementLabel']('horizontalLine',_0x3cc370=>St(_0x23ca7b,'ELEMENT_HORIZONTAL_LINE',_0x3cc370));}},le=class extends _0x2b9af7{['afterInit'](){const _0x538555=this['editor'];if(!_0x538555['plugins']['has']('HtmlEmbed'))return;const _0xe760ce=_0x538555['plugins']['get']('TrackChangesEditing'),_0x44b6df=_0x538555['locale'];_0xe760ce['descriptionFactory']['registerElementLabel']('rawHtml',_0x59ae27=>St(_0x44b6df,'ELEMENT_HTML_EMBED',_0x59ae27)),_0xe760ce['enableDefaultAttributesIntegration']('htmlEmbed'),_0xe760ce['descriptionFactory']['registerDescriptionCallback'](_0x52b6fa=>{if('attribute'!=_0x52b6fa['type'])return;const {data:_0x5e12a4}=_0x52b6fa;return _0x5e12a4&&'value'==_0x5e12a4['key']&&_0x52b6fa['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')?{'type':'format','content':St(_0x44b6df,'*Change\x20%0\x20content*',St(_0x44b6df,'ELEMENT_HTML_EMBED'))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x37702b=this['editor'],_0x5ca02d=_0x37702b['locale'];_0x37702b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x23daea=>{if('formatBlock'!=_0x23daea['type'])return;const {data:_0x166bdc}=_0x23daea;return _0x166bdc&&'htmlEmbed'==_0x166bdc['commandName']?{'type':'format','content':St(_0x5ca02d,'*Change\x20%0\x20content*',St(_0x5ca02d,'ELEMENT_HTML_EMBED'))}:void 0x0;});}},ue=class extends _0x2b9af7{['afterInit'](){const _0x28bb07=this['editor'];if(!_0x28bb07['plugins']['has']('ImageEditing'))return;const _0xfee4bc=_0x28bb07['plugins']['get']('TrackChangesEditing'),_0x5aabdd=_0x28bb07['plugins']['get']('ImageUtils'),_0x7a1c93=_0x28bb07['locale'];_0xfee4bc['enableCommand']('insertImage'),_0xfee4bc['descriptionFactory']['registerElementLabel']('imageBlock',_0x9a5f83=>St(_0x7a1c93,'ELEMENT_IMAGE',_0x9a5f83)),_0xfee4bc['descriptionFactory']['registerElementLabel']('imageInline',_0x2890ab=>St(_0x7a1c93,'ELEMENT_INLINE_IMAGE',_0x2890ab)),_0xfee4bc['descriptionFactory']['registerElementLabel']('caption',()=>St(_0x7a1c93,'ELEMENT_CAPTION')),_0x28bb07['plugins']['has']('ImageUploadEditing')&&_0xfee4bc['enableCommand']('uploadImage'),_0x28bb07['plugins']['has']('ImageBlockEditing')&&_0x28bb07['plugins']['has']('ImageInlineEditing')&&(_0xfee4bc['enableCommand']('imageTypeInline',(_0x25b3f1,_0x3f7830)=>{const _0x96544a=_0x5aabdd['getClosestSelectedImageElement'](_0x28bb07['model']['document']['selection']);_0x28bb07['model']['change'](()=>{_0xfee4bc['markBlockFormat'](_0x96544a,{'commandName':'imageTypeInline','commandParams':[_0x3f7830]},[],'convertBlockImageToInline');});}),_0xfee4bc['enableCommand']('imageTypeBlock',(_0x50eedd,_0x4f38f3)=>{_0x28bb07['model']['change'](_0x43226f=>{let _0x34b714=_0x5aabdd['getClosestSelectedImageElement'](_0x28bb07['model']['document']['selection']),_0x388c3e=_0x43226f['createRangeOn'](_0x34b714);const _0x19b7a7=st['fromPosition'](_0x388c3e['start'],'toPrevious'),_0x5e6d8d=st['fromPosition'](_0x388c3e['end'],'toNext');_0xfee4bc['forceDefaultExecution'](()=>_0x50eedd(_0x4f38f3)),_0x34b714=_0x5aabdd['getClosestSelectedImageElement'](_0x28bb07['model']['document']['selection']),_0x388c3e=_0x43226f['createRangeOn'](_0x34b714);const _0x5b0029=_0x43226f['createRange'](_0x19b7a7,_0x5e6d8d);_0x19b7a7['detach'](),_0x5e6d8d['detach'](),_0xfee4bc['markBlockFormat'](_0x34b714,{'commandName':'imageTypeInline','commandParams':[_0x4f38f3]},[],'convertInlineImageToBlock'),_0x5b0029['start']['isBefore'](_0x388c3e['start'])&&_0xfee4bc['markInsertion'](_0x43226f['createRange'](_0x5b0029['start'],_0x388c3e['start']),'convertInlineImageToBlock'),_0x388c3e['end']['isBefore'](_0x5b0029['end'])&&_0xfee4bc['markInsertion'](_0x43226f['createRange'](_0x388c3e['end'],_0x5b0029['end']),'convertInlineImageToBlock');});}),_0xfee4bc['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0xfee4bc['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0xfee4bc['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0xfee4bc['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0xfee4bc['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0xfee4bc['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x2f5adb])=>{const _0x13212e=_0xfee4bc['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x2a0591=_0x2f5adb['start'],_0x2c067f=_0x2f5adb['end'];const _0x325052=_0x28bb07['model']['schema']['getNearestSelectionRange'](_0x2a0591,'backward'),_0x55174e=_0x28bb07['model']['schema']['getNearestSelectionRange'](_0x2c067f,'forward');_0x325052['isCollapsed']&&(_0x2a0591=_0x325052['start']),_0x55174e['isCollapsed']&&(_0x2c067f=_0x55174e['end']),_0x13212e([_0x28bb07['model']['createRange'](_0x2a0591,_0x2c067f)]);}),_0xfee4bc['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x54c5a9),_0xfee4bc['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x54c5a9)),_0x28bb07['plugins']['has']('ImageCaptionEditing')&&(_0xfee4bc['enableCommand']('toggleImageCaption',(_0x1b1394,_0x71bce7)=>{const _0x52afa1=_0x28bb07['plugins']['get']('ImageCaptionUtils');let _0x5e7db0=_0x5aabdd['getClosestSelectedImageElement'](_0x28bb07['model']['document']['selection']),_0x26cc7e=_0x52afa1['getCaptionFromImageModelElement'](_0x5e7db0);_0x28bb07['model']['change'](()=>{if(_0x26cc7e)return void _0xfee4bc['markDeletion'](_0x28bb07['model']['createRangeOn'](_0x26cc7e));const _0x1eaf97=_0x5aabdd['isBlockImage'](_0x5e7db0);_0x1b1394(_0x71bce7),_0x5e7db0=_0x5aabdd['getClosestSelectedImageElement'](_0x28bb07['model']['document']['selection']),_0x26cc7e=_0x52afa1['getCaptionFromImageModelElement'](_0x5e7db0),_0xfee4bc['markInsertion'](_0x28bb07['model']['createRangeOn'](_0x26cc7e),_0x1eaf97?null:'imageCaption');});}),_0xfee4bc['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x54c5a9));const _0x1e5973=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x444392(_0x17e9ab,_0x2d02cf){const _0x2f31e1=_0x1e5973['findIndex'](({type:_0x20a54e,subType:_0x472cf9})=>_0x17e9ab['type']==_0x20a54e&&_0x17e9ab['subType']==_0x472cf9),_0x5160fc=_0x1e5973['findIndex'](({type:_0x1dd915,subType:_0x198b6c})=>_0x2d02cf['type']==_0x1dd915&&_0x2d02cf['subType']==_0x198b6c);if(_0x2f31e1<0x0||_0x5160fc<0x0)return!0x1;const _0x4bd2fb=_0x17e9ab['getFirstRange'](),_0x4201c4=_0x2d02cf['getFirstRange']();if((0x0==_0x2f31e1||0x1==_0x2f31e1)&&0x2==_0x5160fc&&_0x4bd2fb['isIntersecting'](_0x4201c4))return!0x0;if(0x2==_0x2f31e1&&0x3==_0x5160fc){const _0x4331f5=_0xfee4bc['_findSuggestions'](_0x4bd2fb,'insertion')['filter'](({suggestion:_0x8e1fb3,meta:_0x7bdb2e})=>_0x7bdb2e['isOwn']&&'convertInlineImageToBlock'==_0x8e1fb3['subType']);if(_0x4331f5['length']>0x1&&_0x4201c4['end']['isEqual'](_0x4bd2fb['start']))return!0x0;if(0x1==_0x4331f5['length']&&(_0x4bd2fb['start']['isEqual'](_0x4201c4['end'])||_0x4bd2fb['end']['isEqual'](_0x4201c4['start'])))return!0x0;}if(0x3==_0x2f31e1&&0x3==_0x5160fc&&_0x4bd2fb['start']['isBefore'](_0x4201c4['start'])){const _0x316356=_0x4bd2fb['end']['nodeAfter'],_0x358ce4=_0x4201c4['start']['nodeBefore'];return _0x5aabdd['isBlockImage'](_0x316356)&&_0x316356===_0x358ce4;}return!0x1;}function _0x54c5a9(_0x54ad71,_0x1cae13){return _0x444392(_0x54ad71,_0x1cae13)?[_0x54ad71,_0x1cae13]:_0x444392(_0x1cae13,_0x54ad71)?[_0x1cae13,_0x54ad71]:null;}_0x28bb07['plugins']['has']('ImageResize')&&(_0xfee4bc['enableDefaultAttributesIntegration']('resizeImage'),_0xfee4bc['descriptionFactory']['registerAttributeLabel']('resizedWidth',St(_0x7a1c93,'FORMAT_IMAGE_SIZE'))),_0x28bb07['plugins']['has']('ImageTextAlternativeEditing')&&_0xfee4bc['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x28bb07['plugins']['has']('PictureEditing')&&_0xfee4bc['descriptionFactory']['registerDescriptionCallback'](_0x1a6d39=>{if('attribute'!=_0x1a6d39['type'])return;const {data:_0x1f802b}=_0x1a6d39;return _0x1f802b&&'sources'==_0x1f802b['key']?{'type':'format','content':''}:void 0x0;}),_0x28bb07['plugins']['has']('ImageSizeAttributes')&&_0xfee4bc['descriptionFactory']['registerDescriptionCallback'](_0x5958ed=>{if('attribute'!=_0x5958ed['type'])return;const {data:_0x5dc13c}=_0x5958ed;return!_0x5dc13c||'width'!=_0x5dc13c['key']&&'height'!=_0x5dc13c['key']?void 0x0:{'type':'format','content':''};}),_0xfee4bc['descriptionFactory']['registerDescriptionCallback'](_0x3d9d74=>{if(_0x1e5973['find'](({type:_0x17284e,subType:_0x19473e})=>_0x3d9d74['type']==_0x17284e&&_0x3d9d74['subType']==_0x19473e))return _0x3d9d74['previous']?{}:void 0x0;}),_0xfee4bc['descriptionFactory']['registerDescriptionCallback'](_0x4d705f=>{if('insertion'==_0x4d705f['type']||'deletion'==_0x4d705f['type']){const _0x38bda6=_0x4d705f['getContainedElement']();if(_0x38bda6&&_0x38bda6['is']('element','caption'))return{'type':'insertion'==_0x4d705f['type']?'addObject':'removeObject','element':_0x38bda6,'quantity':0x1};}}),_0xfee4bc['descriptionFactory']['registerDescriptionCallback'](_0x3cf642=>'formatBlock'==_0x3cf642['type']&&'convertInlineImageToBlock'==_0x3cf642['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x3cf642['type']&&'convertBlockImageToInline'==_0x3cf642['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0xfee4bc['descriptionFactory']['registerDescriptionCallback'](_0xe4b2be=>{if('attribute'!=_0xe4b2be['type'])return;const {data:_0x51108e}=_0xe4b2be;if(!_0x51108e||'alt'!=_0x51108e['key'])return;const _0x697645=_0x51108e['newValue'];return _0x697645?{'type':'format','content':St(_0x7a1c93,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x697645+'\x22')}:{'type':'format','content':St(_0x7a1c93,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x94009=this['editor'],_0x13fd58=_0x94009['locale'];_0x94009['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ab1fd=>{if('formatBlock'!=_0x4ab1fd['type']&&'formatInline'!=_0x4ab1fd['type'])return;const {data:_0x4080c5}=_0x4ab1fd;if(_0x4080c5){if('imageTextAlternative'==_0x4080c5['commandName']){const _0xb1a2ec=_0x4080c5['commandParams'][0x0]['newValue'];return _0xb1a2ec?{'type':'format','content':St(_0x13fd58,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xb1a2ec+'\x22')}:{'type':'format','content':St(_0x13fd58,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x4080c5['commandName']){const _0x192a4d=_0x4080c5['commandParams'][0x0]['width'];return _0x192a4d?{'type':'format','content':St(_0x13fd58,'*Set\x20image\x20width:*\x20%0',_0x192a4d)}:{'type':'format','content':St(_0x13fd58,'*Reset\x20image\x20width*')};}}});}},de=class extends _0x2b9af7{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x2b6394=this['editor']['locale'],_0x4da051=this['editor']['plugins']['get']('TrackChangesEditing');_0x4da051['enableDefaultAttributesIntegration']('replaceImageSource'),_0x4da051['descriptionFactory']['registerDescriptionCallback'](_0xb5ed57=>{if('attribute'!=_0xb5ed57['type'])return;const {data:_0x3fc704}=_0xb5ed57;return _0x3fc704&&'src'==_0x3fc704['key']?_0x3fc704['newValue']&&_0x3fc704['oldValue']?{'type':'format','content':St(_0x2b6394,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x55916a=this['editor']['plugins']['get']('TrackChangesEditing');_0x55916a['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x55916a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x55916a['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x55916a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x12f181=this['editor'],_0x1a41fe=_0x12f181['locale'];_0x12f181['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3031fd=>{if('formatBlock'!=_0x3031fd['type']&&'formatInline'!=_0x3031fd['type'])return;const {data:_0x5938c1}=_0x3031fd;return _0x5938c1&&'replaceImageSource'==_0x5938c1['commandName']?{'type':'format','content':St(_0x1a41fe,'*Format:*\x20replace\x20image\x20URL')}:void 0x0;});}},he=class extends _0x2b9af7{['afterInit'](){const _0x5a4c04=this['editor'];if(!_0x5a4c04['plugins']['has']('ImageStyleEditing'))return;const _0x453e63=_0x5a4c04['plugins']['get']('TrackChangesEditing'),_0x28ac9a=_0x5a4c04['plugins']['get']('ImageUtils'),_0x43e53a={};_0x453e63['enableCommand']('imageStyle',(_0x4ac5ed,_0x46b3a2)=>{const _0x4ffbf7=_0x5a4c04['plugins']['get']('Users')['me'],_0x3166fe=_0x5a4c04['commands']['get']('imageStyle');let _0x3288b1=_0x28ac9a['getClosestSelectedImageElement'](_0x5a4c04['model']['document']['selection']),_0x184a50=_0x5a4c04['model']['createRangeOn'](_0x3288b1),_0xeb945d=_0x3166fe['value'];if(_0xeb945d==_0x46b3a2['value'])return;if(_0x46b3a2['value']&&_0x28ac9a['isInlineImage'](_0x3288b1)&&!_0x3166fe['isStyleEnabled'](_0x46b3a2['value']))return;const _0x464c15={'commandName':'imageStyle','commandParams':[_0x46b3a2],'formatGroupId':_0x16a774()};_0x5a4c04['model']['change'](()=>{if(_0x453e63['getSuggestions']()['filter'](_0x1ebf75=>_0x1ebf75['isInContent']&&_0x4ffbf7==_0x1ebf75['author']&&('formatBlock'==_0x1ebf75['type']||'formatInline'==_0x1ebf75['type'])&&('imageStylePreApply'==_0x1ebf75['subType']||'imageStylePostApply'==_0x1ebf75['subType'])&&_0x1ebf75['getFirstRange']()['isEqual'](_0x184a50))['forEach'](_0x3c9661=>_0x453e63['discardSuggestion'](_0x3c9661['head'])),_0x3288b1=_0x28ac9a['getClosestSelectedImageElement'](_0x5a4c04['model']['document']['selection']),_0x184a50=_0x5a4c04['model']['createRangeOn'](_0x3288b1),_0x3166fe['refresh'](),_0x5a4c04['commands']['get']('imageTypeInline')['refresh'](),_0x5a4c04['commands']['get']('imageTypeBlock')['refresh'](),_0xeb945d=_0x3166fe['value'],_0xeb945d!=_0x46b3a2['value'])return _0x28ac9a['isInlineImage'](_0x3288b1)&&_0x3166fe['shouldConvertImageType'](_0x46b3a2['value'],_0x3288b1)?(_0x4ac5ed({..._0x46b3a2,'setImageSizes':!0x1}),_0x3288b1=_0x28ac9a['getClosestSelectedImageElement'](_0x5a4c04['model']['document']['selection']),void _0x453e63['markBlockFormat'](_0x3288b1,{..._0x464c15,'commandReversedParams':[{'value':_0xeb945d||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x28ac9a['isBlockImage'](_0x3288b1)?_0x453e63['markBlockFormat'](_0x3288b1,_0x464c15,[],'imageStylePostApply'):_0x453e63['markInlineFormat'](_0x184a50,_0x464c15,'imageStylePostApply'));});});for(const _0x413387 of _0x5a4c04['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x43e53a[_0x413387['name']]=_0x413387['title']['toLowerCase']();_0x453e63['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x453e63['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x453e63['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x453e63['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x4bb666])=>{_0x28ac9a['setImageNaturalSizeAttributes'](_0x4bb666['getContainedElement']());}),_0x453e63['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2a50fc,_0x28c39e)=>{_0x453e63['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2a50fc,{'commandName':_0x28c39e['commandName'],'commandParams':_0x28c39e['commandReversedParams']});}),_0x453e63['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x2bd3be,_0x5eaf23){return _0x53832f(_0x2bd3be,_0x5eaf23)?[_0x2bd3be,_0x5eaf23]:_0x53832f(_0x5eaf23,_0x2bd3be)?[_0x5eaf23,_0x2bd3be]:null;});const _0x3f4641=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x53832f(_0x5f3829,_0x5f3628){const _0x3da6df=_0x3f4641['findIndex'](({type:_0xc56e67,subType:_0x3e35e0})=>_0x5f3829['type']==_0xc56e67&&_0x5f3829['subType']==_0x3e35e0),_0x39c579=_0x3f4641['findIndex'](({type:_0x166be4,subType:_0x3d1b46})=>_0x5f3628['type']==_0x166be4&&_0x5f3628['subType']==_0x3d1b46);if(_0x3da6df<0x0||_0x39c579<0x0)return!0x1;const _0x46e9d0=_0x5f3829['getFirstRange'](),_0x4a090b=_0x5f3628['getFirstRange']();if((0x0==_0x3da6df||0x1==_0x3da6df)&&0x2==_0x39c579&&_0x46e9d0['isIntersecting'](_0x4a090b))return!0x0;if(0x2==_0x3da6df&&0x3==_0x39c579){const _0x76b396=_0x453e63['_findSuggestions'](_0x46e9d0,'insertion')['filter'](({suggestion:_0x149318,meta:_0x2b8103})=>_0x2b8103['isOwn']&&'convertInlineImageToBlock'==_0x149318['subType']);if(_0x76b396['length']>0x1&&_0x4a090b['end']['isEqual'](_0x46e9d0['start']))return!0x0;if(0x1==_0x76b396['length']&&(_0x46e9d0['start']['isEqual'](_0x4a090b['end'])||_0x46e9d0['end']['isEqual'](_0x4a090b['start'])))return!0x0;}if(0x3==_0x3da6df&&0x3==_0x39c579&&_0x46e9d0['start']['isBefore'](_0x4a090b['start'])){const _0x5b6a50=_0x46e9d0['end']['nodeAfter'],_0x506b9f=_0x4a090b['start']['nodeBefore'];return _0x28ac9a['isBlockImage'](_0x5b6a50)&&_0x5b6a50===_0x506b9f;}return!0x1;}_0x5a4c04['model']['document']['registerPostFixer'](()=>{let _0x1069ae=!0x1;const _0x4c1e42=Array['from'](_0x5a4c04['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xac1686,data:_0x5463dd}of _0x4c1e42){const {group:_0x8c728e,type:_0x4697d8,subType:_0x583c30,id:_0xe2fbab}=tt(_0xac1686);if('suggestion'==_0x8c728e&&_0x453e63['hasSuggestion'](_0xe2fbab)){if('formatBlock'==_0x4697d8&&('imageStylePreApply'==_0x583c30||'imageStylePostApply'==_0x583c30)){const _0xc4da51=_0x453e63['getSuggestion'](_0xe2fbab);if(_0x5463dd['newRange']){const _0xd03fa7=_0xc4da51['getFirstRange']()['getContainedElement']();if(_0x28ac9a['isBlockImage'](_0xd03fa7))continue;_0x453e63['discardSuggestion'](_0xc4da51),_0x1069ae=!0x0;}}if('insertion'==_0x4697d8&&'imageCaption'==_0x583c30&&!_0x5463dd['newRange']){const _0x26ea0e=_0x453e63['getSuggestion'](_0xe2fbab);_0x26ea0e['next']&&_0x26ea0e['next']['isInContent']&&(_0x453e63['discardSuggestion'](_0x26ea0e['next']),_0x1069ae=!0x0);}}}return _0x1069ae;}),this['_registerLegacyDescription'](_0x43e53a);}['_registerLegacyDescription'](_0x5978e9){const _0x536106=this['editor'],_0x120bce=_0x536106['locale'];_0x536106['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3cf34e=>{if('formatBlock'!=_0x3cf34e['type']&&'formatInline'!=_0x3cf34e['type'])return;const {data:_0x546078}=_0x3cf34e;if(!_0x546078||'imageStyle'!=_0x546078['commandName'])return;const _0x251b4c=_0x546078['commandParams'][0x0]['value'];return _0x3bb4d4('side'===_0x251b4c?St(_0x120bce,'FORMAT_SIDE_IMAGE'):_0x5978e9[_0x251b4c]||_0x251b4c);function _0x3bb4d4(_0x450a66){return{'type':'format','content':St(_0x120bce,'*Format:*\x20%0',_0x450a66)};}});}},ge=class extends _0x2b9af7{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x53dd3f){super(_0x53dd3f),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x229bda=this['editor'],_0x3c9434=_0x229bda['commands']['get']('importWord'),_0x2b3c23=_0x229bda['commands']['get']('trackChanges');_0x3c9434&&(_0x3c9434['on']('execute',(_0x5ef525,[,_0x4b2da4])=>{this['_trackChangesValueDuringImport']=_0x2b3c23['value'],_0x4b2da4['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x3c9434,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x3c9434,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x2b3c23['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x229bda['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x34b121,_0x355b3d){const {suggestions:_0x5938de}=_0x355b3d,_0x55ddb3=this['editor']['commands']['get']('trackChanges'),_0x114192=_0x55ddb3['value'];this['_trackChangesValueDuringImport']!==_0x114192&&(_0x55ddb3['execute'](),this['_trackChangesExecuted']=!0x0),_0x5938de&&_0x5938de['forEach'](({id:_0x5b0340,type:_0x1f71f0,author:_0x142823,created_at:_0x1231bf})=>{const _0x12aa6c={'id':_0x5b0340,'type':_0x1f71f0,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x142823,'createdAt':_0x1231bf?new Date(_0x1231bf):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x12aa6c);});}},fe=class extends _0x2b9af7{['afterInit'](){const _0x1325bd=this['editor'],_0x12e00d=_0x1325bd['plugins']['get']('TrackChangesEditing');if(_0x1325bd['plugins']['has']('IndentEditing')&&(_0x12e00d['enableCommand']('indent'),_0x12e00d['enableCommand']('outdent')),_0x1325bd['plugins']['has']('IndentBlock')){for(const _0x4c55ab of['indentBlock','outdentBlock'])_0x12e00d['enableDefaultAttributesIntegration'](_0x4c55ab);if(_0x1325bd['plugins']['has']('ListEditing')){for(const _0x45cc60 of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x12e00d['enableDefaultAttributesIntegration'](_0x45cc60);}}const _0x3a1ff7=_0x1325bd['locale'];_0x12e00d['descriptionFactory']['registerAttributeLabel']('blockIndent',St(_0x3a1ff7,'FORMAT_INDENT')),_0x12e00d['descriptionFactory']['registerAttributeLabel']('blockIndentList',St(_0x3a1ff7,'FORMAT_INDENT')),_0x12e00d['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',St(_0x3a1ff7,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xc398b7=this['editor'],_0x82ec74=_0xc398b7['locale'],_0x47658a=_0xc398b7['plugins']['get']('TrackChangesEditing');_0x47658a['descriptionFactory']['registerDescriptionCallback'](_0x1a4c87=>{if('formatBlock'!=_0x1a4c87['type'])return;const {data:_0x548113}=_0x1a4c87;if(!_0x548113)return;if('indentBlock'!=_0x548113['commandName']&&'outdentBlock'!=_0x548113['commandName'])return;const _0x49349a=_0x1a4c87['getItems']()[0x0],_0x49aa44=_0x47658a['descriptionFactory']['getItemLabel'](_0x49349a);return'indentBlock'==_0x548113['commandName']?{'type':'format','content':St(_0x82ec74,'*Indent:*\x20%0',_0x49aa44)}:'outdentBlock'==_0x548113['commandName']?{'type':'format','content':St(_0x82ec74,'*Outdent:*\x20%0',_0x49aa44)}:void 0x0;});}},me=class extends _0x2b9af7{static get['requires'](){return[gt];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}},Ee=class extends _0x2b9af7{['afterInit'](){const _0x49d57e=this['editor'];if(!_0x49d57e['plugins']['has']('LinkEditing'))return;const _0xe8d123=_0x49d57e['plugins']['get']('TrackChangesEditing'),_0x135426=_0x49d57e['commands']['get']('link');_0xe8d123['enableDefaultAttributesIntegration']('link'),_0xe8d123['enableDefaultAttributesIntegration']('unlink');for(const _0x22a895 of _0x135426['manualDecorators'])_0xe8d123['descriptionFactory']['registerAttributeLabel'](_0x22a895['id'],'link\x20('+_0x22a895['label']['toLowerCase']()+')');_0xe8d123['descriptionFactory']['registerDescriptionCallback'](_0x32a372=>{if('attribute'!=_0x32a372['type'])return;const {data:_0x22390d}=_0x32a372;if(!_0x22390d||'linkHref'!=_0x22390d['key'])return;const _0x3384ca=_0x22390d['newValue'],_0x3de6b8=_0x49d57e['locale'];return{'type':'format','content':null==_0x3384ca?St(_0x3de6b8,'*Remove\x20link*'):St(_0x3de6b8,'*Set\x20link:*\x20%0','\x22'+_0x3384ca+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2c9f3b=this['editor'],_0x10814a=_0x2c9f3b['locale'];_0x2c9f3b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x306184=>{if('formatInline'!=_0x306184['type'])return;const {data:_0x4569e4}=_0x306184;if(_0x4569e4){if('link'==_0x4569e4['commandName']){const _0x2571f4=_0x4569e4['commandParams'][0x0];return{'type':'format','content':St(_0x10814a,'*Set\x20link:*\x20%0','\x22'+_0x2571f4+'\x22')};}return'unlink'==_0x4569e4['commandName']?{'type':'format','content':St(_0x10814a,'*Remove\x20link*')}:void 0x0;}});}},Te=class extends _0x2b9af7{['afterInit'](){const _0x4b8c77=this['editor'],_0x3dc709=_0x4b8c77['locale'];if(!_0x4b8c77['plugins']['has']('LegacyListEditing'))return;const _0x2c07ab=_0x4b8c77['plugins']['get']('TrackChangesEditing'),_0x406668=_0x4b8c77['plugins']['has']('LegacyTodoListEditing');function _0x2b2441(_0x148248){return()=>{const _0x1ad261=_0x4b8c77['model']['document']['selection'],_0x39fb34=_0x4b8c77['commands']['get'](_0x148248);if(_0x39fb34['value'])return void _0x4b8c77['execute']('paragraph',{});const _0x44f81a=_0x148248['slice'](0x0,-0x4),_0x54ff0d=function(_0x376b3b,_0x1c008d,_0x5b8fa6){let _0x2a8e60=Array['from'](_0x376b3b)['filter'](_0x36bf9f=>function(_0x3d929b,_0x1ac6b5){return _0x1ac6b5['checkChild'](_0x3d929b['parent'],'listItem')&&!_0x1ac6b5['isObject'](_0x3d929b);}(_0x36bf9f,_0x5b8fa6));_0x2a8e60=_0x2a8e60['filter'](_0x534046=>!_0x534046['is']('element','listItem')||_0x534046['getAttribute']('listType')!=_0x1c008d);const _0x3cef00=new Set();for(const _0x4b0f28 of _0x2a8e60)_0x4b0f28['is']('element','listItem')?_0x3cef00['add'](_e(_0x4b0f28)):_0x3cef00['add'](_0x4b0f28);return Array['from'](_0x3cef00);}(_0x1ad261['getSelectedBlocks'](),_0x44f81a,_0x4b8c77['model']['schema']);_0x4b8c77['model']['change'](()=>{for(const _0x4661c5 of _0x54ff0d)_0x2c07ab['markBlockFormat'](_0x4661c5,{'commandName':_0x148248,'commandParams':[{'forceValue':!_0x39fb34['value']}],'formatGroupId':'blockName'},pe(_0x4661c5));});};}function _0x3a0aff(_0x4248fb){return()=>{const _0x5a785c=function(_0x148cf2){let _0x225dac=Array['from'](_0x148cf2);const _0x371e26=_0x225dac['findIndex'](_0x19a8d1=>'listItem'!=_0x19a8d1['name']);return _0x371e26>-0x1&&(_0x225dac=_0x225dac['slice'](0x0,_0x371e26)),_0x225dac;}(_0x4b8c77['model']['document']['selection']['getSelectedBlocks']()),_0x5c4d25=_0x4b8c77['model']['createRange'](_0x4b8c77['model']['createPositionAt'](_0x5a785c[0x0],'before'),_0x4b8c77['model']['createPositionAt'](_0x5a785c[_0x5a785c['length']-0x1],'end'));_0x4b8c77['model']['change'](()=>{_0x2c07ab['markBlockFormat'](_0x5c4d25,{'commandName':_0x4248fb,'commandParams':[],'formatGroupId':'listIndent'},function(_0x142594){const _0x46f9d5=new Set();for(const _0x328f1e of _0x142594){let _0x35e896=_0x328f1e['nextSibling'];for(;_0x35e896&&_0x35e896['getAttribute']('listIndent')>_0x328f1e['getAttribute']('listIndent');)_0x46f9d5['add'](_0x35e896),_0x35e896=_0x35e896['nextSibling'];}return Array['from'](_0x46f9d5);}(_0x5a785c));});};}_0x2c07ab['enableCommand']('numberedList',_0x2b2441('numberedList')),_0x2c07ab['enableCommand']('bulletedList',_0x2b2441('bulletedList')),_0x406668&&_0x2c07ab['enableCommand']('todoList',_0x2b2441('todoList')),_0x2c07ab['enableCommand']('indentList',_0x3a0aff('indentList')),_0x2c07ab['enableCommand']('outdentList',_0x3a0aff('outdentList')),_0x406668&&_0x2c07ab['enableCommand']('checkTodoList',()=>{const _0x190948=_0x4b8c77['commands']['get']('checkTodoList'),_0x29fc99=Array['from'](_0x190948['_selectedElements']);_0x29fc99['filter'](_0x13f7bb=>_0x13f7bb['getAttribute']('todoListChecked')!=_0x190948['value']),_0x4b8c77['model']['change'](()=>{for(const _0x521c9a of _0x29fc99)_0x2c07ab['markBlockFormat'](_0x521c9a,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x190948['value']}]});});}),_0x2c07ab['descriptionFactory']['registerElementLabel']('listItem',_0x3ef509=>St(_0x3dc709,'ELEMENT_LIST_ITEM',_0x3ef509)),_0x2c07ab['descriptionFactory']['registerDescriptionCallback'](_0x192cd0=>{if('formatBlock'!=_0x192cd0['type']&&'formatInline'!=_0x192cd0['type'])return;const {data:_0x5b6bff}=_0x192cd0;if(_0x5b6bff){if('numberedList'==_0x5b6bff['commandName']||'bulletedList'==_0x5b6bff['commandName']||'todoList'==_0x5b6bff['commandName'])switch(_0x5b6bff['commandName']['replace']('List','')){case'bulleted':return _0x23ebf3(St(_0x3dc709,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x23ebf3(St(_0x3dc709,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x23ebf3(St(_0x3dc709,'ELEMENT_TODO_LIST'));}if('indentList'==_0x5b6bff['commandName'])return{'type':'format','content':St(_0x3dc709,'*Indent:*\x20%0',St(_0x3dc709,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x5b6bff['commandName'])return{'type':'format','content':St(_0x3dc709,'*Outdent:*\x20%0',St(_0x3dc709,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x5b6bff['commandName'])return _0x5b6bff['commandParams'][0x0]['forceValue']?{'type':'format','content':St(_0x3dc709,'*Check\x20item*')}:{'type':'format','content':St(_0x3dc709,'*Uncheck\x20item*')};}function _0x23ebf3(_0x40b33d){return{'type':'format','content':St(_0x3dc709,'*Change\x20to:*\x20%0',_0x40b33d)};}});}};function _e(_0x32aeb2){const _0x25d7d6=_0x32aeb2['getAttribute']('listIndent');if(0x0==_0x25d7d6)return _0x32aeb2;let _0x42d07d=_0x32aeb2;for(;_0x32aeb2['previousSibling']&&_0x32aeb2['previousSibling']['is']('element','listItem');){const _0xdc7c9e=_0x32aeb2['previousSibling']['getAttribute']('listIndent');if(_0xdc7c9e==_0x25d7d6)_0x42d07d=_0x32aeb2['previousSibling'];else{if(_0xdc7c9e<_0x25d7d6)break;}_0x32aeb2=_0x32aeb2['previousSibling'];}return _0x42d07d;}function pe(_0x4c174d){const _0x44475c=[];if(_0x4c174d['is']('element','listItem')&&_0x4c174d['getAttribute']('listIndent')>0x0){let _0x580092=_0x4c174d['nextSibling'];for(;_0x580092&&'listItem'==_0x580092['name']&&_0x580092['getAttribute']('listIndent')==_0x4c174d['getAttribute']('listIndent');)_0x44475c['push'](_0x580092),_0x580092=_0x580092['nextSibling'];}return _0x44475c;}var Le=class extends _0x2b9af7{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x55baeb=this['editor']['config']['get']('list.properties'),_0x556491=this['editor']['plugins']['get']('TrackChangesEditing');_0x55baeb['styles']&&_0x556491['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x55baeb['reversed']&&_0x556491['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x55baeb['startIndex']&&_0x556491['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x556491['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x3c2901,_0x174fdd={}){const _0x4046dc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x22f2fe=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x4046dc['markMultiRangeBlockFormat'](_0x22f2fe,{'commandName':'listStyle','commandParams':[{'type':_0x174fdd['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0xbd01ba,_0x1cb609={}){const _0x2570c4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1dd41d=this['_getSuggestionBlocks'](_0x306a65=>_0x306a65['is']('element','listItem')&&'numbered'===_0x306a65['getAttribute']('listType'));if(_0x1dd41d['length']<0x1)return;const _0x2de25b=_0x1dd41d['map'](_0x4b92c5=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4b92c5,'before'),this['editor']['model']['createPositionAt'](_0x4b92c5,0x0)));this['editor']['model']['change'](()=>{_0x2570c4['markMultiRangeBlockFormat'](_0x2de25b,{'commandName':'listReversed','commandParams':[{'reversed':_0x1cb609['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x287c03,_0x451dd1={}){const _0x58c695=this['editor']['plugins']['get']('TrackChangesEditing'),_0xea022c=this['_getSuggestionBlocks'](_0x158d15=>_0x158d15['is']('element','listItem')&&'numbered'===_0x158d15['getAttribute']('listType'));if(_0xea022c['length']<0x1)return;const _0x54762f=_0xea022c['map'](_0x365f45=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x365f45,'before'),this['editor']['model']['createPositionAt'](_0x365f45,0x0)));this['editor']['model']['change'](()=>{_0x58c695['markMultiRangeBlockFormat'](_0x54762f,{'commandName':'listStart','commandParams':[{'startIndex':_0x451dd1['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x16fe28){if('formatBlock'!=_0x16fe28['type']&&'formatInline'!=_0x16fe28['type'])return;const _0x586415=this['editor']['locale'],{data:_0xabf5ea}=_0x16fe28;if(!_0xabf5ea)return;let _0x4646de,_0x576796;switch(_0xabf5ea['commandName']){case'listStyle':_0x4646de='*Change\x20to:*\x20%0',_0x576796={'type':'format','content':St(_0x586415,_0x4646de,St(_0x586415,this['_getTranslationKeyForListStyle'](_0xabf5ea['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4646de=_0xabf5ea['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x576796={'type':'format','content':St(_0x586415,_0x4646de)};break;case'listStart':_0x4646de='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x576796={'type':'format','content':St(_0x586415,_0x4646de,_0xabf5ea['commandParams'][0x0]['startIndex'])};}return _0x576796;}['_getSuggestionBlocksForListStyle'](){const _0x752277=this['editor']['plugins']['get']('LegacyListUtils');let _0x5cb8a5=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x5cb8a5[0x0]?.['is']('element','listItem')&&_0x5cb8a5['unshift'](..._0x752277['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x5cb8a5[_0x5cb8a5['length']-0x1]?.['is']('element','listItem')&&_0x5cb8a5['push'](..._0x752277['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x5cb8a5=[...new Set(_0x5cb8a5)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x5cb8a5=_0x5cb8a5['filter'](_0x2aeffa=>_0x2aeffa['is']('element','listItem'))),_0x5cb8a5;}['_getSuggestionBlocks'](_0x15e366){const _0x2c38f8=this['editor']['plugins']['get']('LegacyListUtils');let _0x1436c9=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x15e366)['map'](_0x678603=>{const _0x4edc4e=this['editor']['model']['createPositionAt'](_0x678603,0x0);return[..._0x2c38f8['getSiblingNodes'](_0x4edc4e,'backward'),..._0x2c38f8['getSiblingNodes'](_0x4edc4e,'forward')];})['flat']();return _0x1436c9=[...new Set(_0x1436c9)],_0x1436c9;}['_getTranslationKeyForListStyle'](_0x412eb0){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x412eb0)||'default')['toUpperCase']()+'_LIST_'+_0x412eb0['toUpperCase']()['replace'](/-/g,'_');}},Ie=class extends _0x2b9af7{['afterInit'](){const _0x4103d4=this['editor'];if(!_0x4103d4['plugins']['has']('MediaEmbedEditing'))return;const _0x136717=_0x4103d4['plugins']['get']('TrackChangesEditing'),_0x1d8078=_0x4103d4['locale'];_0x136717['enableCommand']('mediaEmbed'),_0x136717['descriptionFactory']['registerElementLabel']('media',_0x770d3c=>St(_0x1d8078,'ELEMENT_MEDIA',_0x770d3c)),_0x4103d4['plugins']['has']('MediaEmbedResizeEditing')&&(_0x136717['enableDefaultAttributesIntegration']('resizeMediaEmbed'),_0x136717['descriptionFactory']['registerDescriptionCallback'](_0x52c5f4=>{if('attribute'!=_0x52c5f4['type'])return;const {data:_0x4b5a4e}=_0x52c5f4;if(!_0x4b5a4e||'resizedWidth'!=_0x4b5a4e['key'])return;const _0x6e040=_0x52c5f4['getContainedElement']();return _0x6e040&&_0x6e040['is']('element','media')?{'type':'format','content':St(_0x1d8078,'*Set\x20format:*\x20%0',St(_0x1d8078,'FORMAT_MEDIA_SIZE'))}:void 0x0;}));}},Ae=class extends _0x2b9af7{['afterInit'](){const _0x5afc4a=this['editor'];if(!_0x5afc4a['plugins']['has']('MediaEmbedStyleEditing'))return;const _0x2d6f08=_0x5afc4a['plugins']['get']('TrackChangesEditing'),_0x1725e7=_0x5afc4a['locale'],_0x59993a=_0x5afc4a['plugins']['get']('MediaEmbedStyleEditing'),_0x1acabe={};for(const _0x5dcc8e of _0x59993a['normalizedStyles'])_0x1acabe[_0x5dcc8e['name']]=_0x5dcc8e['title']['toLowerCase']();const _0x494626=_0x59993a['normalizedStyles']['find'](_0x5f5385=>_0x5f5385['isDefault'])?.['name'];_0x2d6f08['enableCommand']('mediaStyle',(_0x43251b,_0x40c7ff)=>{const _0x4df96c=_0x5afc4a['plugins']['get']('Users')['me'],_0x156b5e=_0x5afc4a['commands']['get']('mediaStyle'),_0x329a6b=function(_0x17f999){const _0x208fa4=_0x17f999['model']['document']['selection']['getSelectedElement']();return _0x208fa4&&_0x208fa4['is']('element','media')?_0x208fa4:null;}(_0x5afc4a);if(!_0x329a6b)return;const _0x4e4bd3=_0x5afc4a['model']['createRangeOn'](_0x329a6b);let _0x491df6=_0x156b5e['value'];if(_0x491df6==_0x40c7ff['value'])return;const _0x28ac31={'commandName':'mediaStyle','commandParams':[_0x40c7ff],'formatGroupId':_0x16a774()};_0x5afc4a['model']['change'](()=>{_0x2d6f08['getSuggestions']()['filter'](_0x455238=>_0x455238['isInContent']&&_0x4df96c==_0x455238['author']&&'formatBlock'==_0x455238['type']&&'mediaStylePostApply'==_0x455238['subType']&&_0x455238['getFirstRange']()['isEqual'](_0x4e4bd3))['forEach'](_0x1c27fa=>_0x2d6f08['discardSuggestion'](_0x1c27fa['head'])),_0x156b5e['refresh'](),_0x491df6=_0x156b5e['value'],_0x491df6!=_0x40c7ff['value']&&_0x2d6f08['markBlockFormat'](_0x329a6b,{..._0x28ac31,'commandReversedParams':[{'value':'string'==typeof _0x491df6?_0x491df6:null}]},[],'mediaStylePostApply');});}),_0x2d6f08['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','join',()=>!0x1),_0x2d6f08['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','discard',(_0x3eeef5,_0x685ef)=>{_0x2d6f08['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x3eeef5,{'commandName':_0x685ef['commandName'],'commandParams':_0x685ef['commandReversedParams']});}),_0x2d6f08['descriptionFactory']['registerDescriptionCallback'](_0x23bb36=>{if('formatBlock'!=_0x23bb36['type'])return;const {data:_0x28eb1d}=_0x23bb36;if(!_0x28eb1d||'mediaStyle'!=_0x28eb1d['commandName'])return;const _0x15e6b4=_0x28eb1d['commandParams'][0x0]['value']||_0x494626;return _0x15e6b4?{'type':'format','content':St(_0x1725e7,'*Format:*\x20%0',_0x1acabe[_0x15e6b4]||_0x15e6b4)}:void 0x0;});}},be=class extends _0x2b9af7{['afterInit'](){const _0x1f6294=this['editor'];_0x1f6294['plugins']['has']('MentionEditing')&&_0x1f6294['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}},ke=class extends _0x2b9af7{['afterInit'](){const _0x37e791=this['editor'];if(!_0x37e791['plugins']['has']('MergeFieldsEditing'))return;const _0x54ef6c=_0x37e791['plugins']['get']('TrackChangesEditing'),_0x36c943=_0x37e791['locale'];_0x54ef6c['enableCommand']('insertMergeField'),_0x54ef6c['enableCommand']('insertMergeFieldBlock'),_0x54ef6c['enableCommand']('insertMergeFieldImage'),_0x54ef6c['descriptionFactory']['registerElementLabel']('mergeField',_0x10056f=>St(_0x36c943,'ELEMENT_MERGE_FIELD',_0x10056f)),_0x54ef6c['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x2099d1=>St(_0x36c943,'ELEMENT_MERGE_FIELD',_0x2099d1)),_0x54ef6c['descriptionFactory']['registerDescriptionCallback'](_0x30c58b=>{if('insertion'!=_0x30c58b['type']&&'deletion'!=_0x30c58b['type'])return;const _0x4f97d2=_0x30c58b['getContainedElement']();if(null==_0x4f97d2)return;const _0x164530=_0x37e791['plugins']['get']('MergeFieldsEditing');let _0xbcdec9;switch(_0x164530['getMergeFieldType'](_0x4f97d2)){case null:return;case'image':{const _0x5d0959=_0x164530['unwrapAffixes'](_0x4f97d2['getAttribute']('src'));_0xbcdec9=_0x164530['getLabel'](_0x5d0959)||_0x5d0959;break;}default:{const _0xf945e0=_0x4f97d2['getAttribute']('id');_0xbcdec9=_0x164530['getLabel'](_0xf945e0)||_0xf945e0;break;}}return'insertion'==_0x30c58b['type']?{'type':'insertion','content':St(_0x36c943,'*Insert:*\x20%0','\x22'+_0xbcdec9+'\x22\x20'+St(_0x36c943,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':St(_0x36c943,'*Remove:*\x20%0','\x22'+_0xbcdec9+'\x22\x20'+St(_0x36c943,'ELEMENT_MERGE_FIELD'))};});}},Ce=class extends _0x2b9af7{['afterInit'](){const _0x5ee97b=this['editor'],_0x249e59=_0x5ee97b['plugins']['get']('TrackChangesEditing');_0x5ee97b['plugins']['has']('MultiLevelList')&&(_0x249e59['enableDefaultAttributesIntegration']('multiLevelList'),_0x249e59['descriptionFactory']['registerDescriptionCallback'](_0x42a533=>this['handleDescriptions'](_0x42a533)));}['handleDescriptions'](_0x4d475b){const _0x259787=this['editor']['locale'],{data:_0x4bcdad}=_0x4d475b,_0x5d12f9={'type':'format','content':''};if(_0x4bcdad&&'listMarkerStyle'==_0x4bcdad['key']){if(!_0x4bcdad['oldValue'])return{'type':'format','content':St(_0x259787,'*Set\x20format:*\x20%0',St(_0x259787,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4bcdad['newValue']+')'};if(!_0x4bcdad['newValue']){let _0x56fca3=_0x4d475b['head'];for(;_0x56fca3;){if(_0x56fca3['data']&&'listType'==_0x56fca3['data']['key']&&_0x56fca3['data']['newValue'])return _0x5d12f9;_0x56fca3=_0x56fca3['next'];}return{'type':'format','content':St(_0x259787,'*Remove\x20format:*\x20%0',St(_0x259787,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4bcdad['oldValue']+')'};}}}},Re=class extends _0x2b9af7{['afterInit'](){const _0x347b30=this['editor'];if(!_0x347b30['plugins']['has']('PageBreakEditing'))return;_0x347b30['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x584dfe=_0x347b30['plugins']['get']('TrackChangesEditing'),_0x622ae7=_0x347b30['locale'];_0x584dfe['descriptionFactory']['registerElementLabel']('pageBreak',_0x179ddd=>St(_0x622ae7,'ELEMENT_PAGE_BREAK',_0x179ddd));}},Ne=class extends _0x2b9af7{['afterInit'](){const _0x21ab2c=this['editor'];if(!_0x21ab2c['plugins']['has']('Paragraph'))return;const _0x2aae8d=_0x21ab2c['locale'],_0x477f37=_0x21ab2c['plugins']['get']('TrackChangesEditing');_0x477f37['descriptionFactory']['registerElementLabel']('paragraph',_0x229c01=>St(_0x2aae8d,'ELEMENT_PARAGRAPH',_0x229c01)),_0x477f37['enableDefaultAttributesIntegration']('paragraph'),_0x477f37['enableCommand']('insertParagraph');const _0x50de54=_0x477f37['descriptionFactory'];_0x50de54['registerDescriptionCallback'](_0x16519d=>{if('insertion'!==_0x16519d['type'])return;const {start:_0x527433,end:_0x591d95}=_0x16519d['getFirstRange']();if(!_0x527433['isTouching'](_0x591d95)||!_0x527433['nodeAfter'])return;const _0x130ac5=_0x21ab2c['model']['schema'],_0x5c8d7a=_0x527433['nodeAfter'];return _0x130ac5['isBlock'](_0x5c8d7a)&&!_0x130ac5['isLimit'](_0x5c8d7a)&&_0x130ac5['checkChild'](_0x5c8d7a,'$text')?{'type':'insertion','content':St(_0x2aae8d,'*Insert:*\x20%0',_0x50de54['getItemLabel'](_0x5c8d7a,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5eb8c3=this['editor'],_0x4598a7=_0x5eb8c3['locale'];_0x5eb8c3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1db319=>{if('formatBlock'!=_0x1db319['type'])return;const {data:_0x26b245}=_0x1db319;return _0x26b245&&'paragraph'==_0x26b245['commandName']?{'type':'format','content':St(_0x4598a7,'*Change\x20to:*\x20%0',St(_0x4598a7,'ELEMENT_PARAGRAPH'))}:void 0x0;});}},ye=class extends _0x2b9af7{['afterInit'](){const _0x355607=this['editor'];_0x355607['commands']['get']('replaceSource')&&_0x355607['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}},Se=class extends _0x2b9af7{['afterInit'](){const _0x31ce8d=this['editor'];_0x31ce8d['plugins']['has']('RemoveFormatEditing')&&(_0x31ce8d['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x566c17=this['editor'];_0x566c17['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x254475=>{if('formatBlock'!=_0x254475['type']&&'formatInline'!=_0x254475['type'])return;const {data:_0x35a581}=_0x254475;return _0x35a581&&'removeFormat'==_0x35a581['commandName']?{'type':'format','content':St(_0x566c17['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}},Me=class extends _0x2b9af7{['afterInit'](){const _0x222e0c=this['editor'];if(!_0x222e0c['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x33f822=_0x222e0c['plugins']['get']('TrackChangesEditing');_0x33f822['enableCommand']('goToPreviousRestrictedEditingException'),_0x33f822['enableCommand']('goToNextRestrictedEditingException');const _0x5ea4db=_0x222e0c['plugins']['get']('RestrictedEditingModeEditing');_0x5ea4db['enableCommand']('trackChanges'),_0x5ea4db['enableCommand']('acceptSuggestion'),_0x5ea4db['enableCommand']('discardSuggestion'),_0x5ea4db['enableCommand']('acceptAllSuggestions'),_0x5ea4db['enableCommand']('discardAllSuggestions'),_0x5ea4db['enableCommand']('acceptSelectedSuggestions'),_0x5ea4db['enableCommand']('discardSelectedSuggestions');}},Oe=class extends _0x2b9af7{['afterInit'](){const _0x5e5797=this['editor'];if(!_0x5e5797['plugins']['has']('ShiftEnter'))return;const _0x2bfc42=_0x5e5797['plugins']['get']('TrackChangesEditing');_0x2bfc42['enableCommand']('shiftEnter'),_0x2bfc42['descriptionFactory']['registerElementLabel']('softBreak',_0x1104b4=>St(_0x5e5797['locale'],'ELEMENT_LINE_BREAK',_0x1104b4));}};function we(_0x35e83f,_0x3a3236,_0x1e70ae){const _0x58ddf7=[];for(const _0x519c6c of _0x3a3236['getItems']())_0x519c6c['hasAttribute'](_0x35e83f)&&_0x58ddf7['push'](_0x1e70ae['createRangeOn'](_0x519c6c));return _0x58ddf7;}var Fe=class extends _0x2b9af7{['afterInit'](){const _0x397040=this['editor'],_0x58564e=_0x397040['plugins']['get']('TrackChangesEditing');_0x397040['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x58564e['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x38accf=this['editor'],_0x5bf66d=_0x38accf['model'],_0x529187=_0x38accf['locale'],_0x28d7a2=_0x38accf['plugins']['get']('TrackChangesEditing'),_0x3a2214='restrictedEditingException',_0x3d6b2e=_0x38accf['commands']['get'](_0x3a2214);_0x28d7a2['enableCommand'](_0x3a2214,(_0x3d5ad9,_0x194eed={})=>{const _0x1d59bc=_0x5bf66d['document']['selection'];if(_0x1d59bc['isCollapsed'])return void _0x3d5ad9(_0x194eed);const _0x21ac30=void 0x0!==_0x194eed['forceValue']?_0x194eed['forceValue']:!_0x3d6b2e['value'];_0x5bf66d['change'](()=>{const _0x4d896a=Array['from'](_0x1d59bc['getRanges']());for(const _0x20f85c of _0x4d896a){const _0x43d5bf=_0x21ac30?[_0x20f85c]:we(_0x3a2214,_0x20f85c,_0x5bf66d);for(const _0x2aa18e of _0x43d5bf)_0x28d7a2['markInlineFormat'](_0x2aa18e,{'commandName':_0x3a2214,'commandParams':[{'forceValue':_0x21ac30}]});}});}),_0x28d7a2['descriptionFactory']['registerDescriptionCallback'](_0x284eed=>{if('formatBlock'!=_0x284eed['type']&&'formatInline'!=_0x284eed['type'])return;const {data:_0x19ce61}=_0x284eed;return _0x19ce61&&_0x19ce61['commandName']==_0x3a2214?_0x19ce61['commandParams'][0x0]['forceValue']?{'type':'format','content':St(_0x529187,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':St(_0x529187,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x54d7c7=this['editor'],_0x1d0d2c=_0x54d7c7['locale'],_0x312c82=_0x54d7c7['plugins']['get']('TrackChangesEditing'),_0x20e33e='restrictedEditingExceptionBlock',_0x21dc85=this['editor']['commands']['get'](_0x20e33e);_0x312c82['enableCommand'](_0x20e33e,(_0x1ef00d,_0x3b009c={})=>{const _0x312bac=this['editor']['model']['document']['selection'],_0x4a2b5c=_0x3b009c&&void 0x0!==_0x3b009c['forceValue']?_0x3b009c['forceValue']:!_0x21dc85['value'];let _0x5000eb=[];_0x5000eb=At(_0x4a2b5c?Array['from'](_0x312bac['getSelectedBlocks']())['filter'](_0x1e9b24=>function(_0x3477a5){return!!_0x3477a5['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x1e9b24)||function(_0x118e20,_0x5cc94f){const _0x4cc3da=_0x5cc94f['createContext'](_0x118e20['parent']);return!!_0x5cc94f['checkChild'](_0x4cc3da,'restrictedEditingException')&&!!_0x5cc94f['checkChild'](_0x4cc3da['push']('restrictedEditingException'),_0x118e20);}(_0x1e9b24,this['editor']['model']['schema'])):Array['from'](_0x312bac['getSelectedBlocks']())['map'](_0x39f586=>function(_0x4075ff){let _0x2daf45=_0x4075ff;for(;_0x2daf45['parent'];){if('restrictedEditingException'==_0x2daf45['parent']['name'])return _0x2daf45;_0x2daf45=_0x2daf45['parent'];}return null;}(_0x39f586))['filter'](_0x5b4f05=>!!_0x5b4f05),_0x54d7c7['model']),_0x54d7c7['model']['change'](()=>{for(const _0x3b5d82 of _0x5000eb)_0x312c82['markBlockFormat'](_0x3b5d82,{'commandName':_0x20e33e,'commandParams':[{'forceValue':_0x4a2b5c}]});});}),_0x312c82['descriptionFactory']['registerDescriptionCallback'](_0x226a1c=>{const {data:_0x8cb1cc}=_0x226a1c;if(_0x8cb1cc&&_0x8cb1cc['commandName']==_0x20e33e)return _0x8cb1cc['commandParams'][0x0]['forceValue']?{'type':'format','content':St(_0x1d0d2c,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':St(_0x1d0d2c,'FORMAT_RESTRICTED_DISABLED')};});}},Be=class extends _0x2b9af7{['afterInit'](){const _0x42433c=this['editor'];_0x42433c['plugins']['has']('Style')&&_0x42433c['plugins']['has']('DataSchema')&&(_0x42433c['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('style'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x2f8645=this['editor'],_0x12c57b=_0x2f8645['locale'];_0x2f8645['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x44100e=>{if('formatBlock'!=_0x44100e['type']&&'formatInline'!=_0x44100e['type'])return;const {data:_0x593f02}=_0x44100e;return _0x593f02&&'style'===_0x593f02['commandName']?_0x593f02['commandParams'][0x0]['forceValue']?{'type':'format','content':St(_0x12c57b,'*Set\x20format:*\x20%0',_0x593f02['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':St(_0x12c57b,'*Remove\x20format:*\x20%0',_0x593f02['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}},ve=class extends _0x2b9af7{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x232be7){super(_0x232be7),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x311f29=this['editor'],_0x1e6486=_0x311f29['model']['document']['selection'];if(!_0x311f29['plugins']['has']('TableEditing'))return;const _0x5f3953=_0x311f29['locale'],_0x4cd06=_0x311f29['plugins']['get']('TrackChangesEditing'),_0x368c41=_0x311f29['plugins']['get']('TableUtils');_0x4cd06['descriptionFactory']['registerElementLabel']('table',_0x26e19a=>St(_0x5f3953,'ELEMENT_TABLE',_0x26e19a)),this['_setupColumnsRowsFixing'](),_0x4cd06['enableCommand']('insertTable'),_0x4cd06['enableCommand']('selectTableRow'),_0x4cd06['enableCommand']('selectTableColumn');for(const _0x2c4ac3 of['insertTableRowAbove','insertTableRowBelow']){const _0x224f5b=_0x311f29['commands']['get'](_0x2c4ac3);_0x4cd06['enableCommand'](_0x2c4ac3,_0x101f60=>{_0x311f29['model']['change'](_0x567b02=>{_0x101f60();const _0x3c530e='above'===_0x224f5b['order'],_0x5572b4=_0x368c41['getSelectionAffectedTableCells'](_0x1e6486),_0x155dba=_0x368c41['getRowIndexes'](_0x5572b4),_0x1c9ae6=_0x3c530e?_0x155dba['first']-0x1:_0x155dba['last']+0x1,_0x26b417=_0x5572b4[0x0]['findAncestor']('table'),_0x300779=_0x368c41['createTableWalker'](_0x26b417,{'startRow':_0x1c9ae6,'endRow':_0x1c9ae6}),_0x8a71cf=Array['from'](_0x300779)['map'](_0x22c1d1=>_0x567b02['createRangeOn'](_0x22c1d1['cell']));_0x4cd06['markMultiRangeInsertion'](_0x8a71cf,'tableRow');});});}for(const _0x5bea6e of['insertTableColumnLeft','insertTableColumnRight']){const _0x8611c2=_0x311f29['commands']['get'](_0x5bea6e);_0x4cd06['enableCommand'](_0x5bea6e,_0x4bdbde=>{_0x311f29['model']['change'](_0x4c4665=>{_0x4bdbde();const _0x46698f='left'===_0x8611c2['order'],_0x5c1ef7=_0x368c41['getSelectionAffectedTableCells'](_0x1e6486),_0x2f37b9=_0x368c41['getColumnIndexes'](_0x5c1ef7),_0x1f1927=_0x46698f?_0x2f37b9['first']-0x1:_0x2f37b9['last']+0x1,_0x1ab87c=_0x5c1ef7[0x0]['findAncestor']('table'),_0x3be27d=_0x368c41['createTableWalker'](_0x1ab87c,{'startRow':0x0,'column':_0x1f1927,'includeAllSlots':!0x1}),_0x21a601=Array['from'](_0x3be27d)['map'](_0x5047be=>_0x4c4665['createRangeOn'](_0x5047be['cell']));_0x4cd06['markMultiRangeInsertion'](_0x21a601,'tableColumn');});});}for(const _0x5f03a0 of['removeTableRow','removeTableColumn']){const _0x1ad7cd=_0x5f03a0['substr'](0xb),_0x4f938e=_0x1ad7cd['toLowerCase'](),_0x3f34cf=_0x4f938e['substr'](0x0,0x3)+'span',_0xf6e22b='table'+_0x1ad7cd,_0x2bec85='min'+_0x1ad7cd,_0x323e24='max'+_0x1ad7cd;_0x4cd06['enableCommand'](_0x5f03a0,()=>{_0x311f29['model']['change'](_0x334093=>{const _0x29357=_0x368c41['getSelectionAffectedTableCells'](_0x1e6486),_0x30e0e5=_0x29357[0x0]['findAncestor']('table');let _0x59592f;if('removeTableRow'==_0x5f03a0){const _0x4a7786=_0x368c41['getRowIndexes'](_0x29357);_0x59592f={'startRow':_0x4a7786['first'],'endRow':_0x4a7786['last'],'includeAllSlots':!0x0};}else{const _0x3f0738=_0x368c41['getColumnIndexes'](_0x29357);_0x59592f={'startColumn':_0x3f0738['first'],'endColumn':_0x3f0738['last'],'includeAllSlots':!0x0};}const _0x23be60=_0x368c41['createTableWalker'](_0x30e0e5,_0x59592f),_0x48663d=Array['from'](_0x23be60)['map'](({cell:_0x431fbd})=>_0x431fbd),_0x1ac781=De(_0x48663d['filter'](_0x46a6ef=>_0x46a6ef['hasAttribute'](_0x3f34cf))),_0x5c7dab=De(_0x48663d['filter'](_0x53efbc=>!_0x53efbc['hasAttribute'](_0x3f34cf)))['map'](_0x3b632f=>_0x334093['createRangeOn'](_0x3b632f)),_0x1a0b17=_0x4cd06['markMultiRangeDeletion'](_0x5c7dab,_0xf6e22b);if(_0x1a0b17&&('tableRow'==_0x1a0b17['subType']||'tableColumn'==_0x1a0b17['subType'])){const _0x258e2b=this['_getSuggestionCoords'](_0x1a0b17);for(const _0x3b3cc0 of _0x1ac781){const _0x852197=_0x334093['createRangeOn'](_0x3b3cc0),_0x565be1=_0x368c41['getCellLocation'](_0x3b3cc0),_0x1c8f44=_0x3b3cc0['getAttribute'](_0x3f34cf)-0x1,_0x4368fb=_0x258e2b[_0x2bec85],_0xa4d696=_0x258e2b[_0x323e24];_0x4368fb<=_0x565be1[_0x4f938e]&&_0x565be1[_0x4f938e]+_0x1c8f44<=_0xa4d696&&_0x1a0b17['addRange'](_0x852197);}}});});}function _0x195052(_0x5a6e15){const _0x444aa2=Array['from'](_0x1e6486['getRanges']())['map'](_0x4ea4be=>rt['fromRange'](_0x4ea4be));_0x311f29['model']['change'](_0xefd62d=>{const _0x37c591=_0xefd62d['batch'];_0x5a6e15=_0x5a6e15['filter'](_0x1a7c30=>'$graveyard'!=_0x1a7c30['root']['rootName']),_0xefd62d['setSelection'](_0x5a6e15),_0x311f29['commands']['get']('removeTableRow')['refresh'](),_0x311f29['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x311f29['model']['enqueueChange'](()=>{_0x311f29['model']['enqueueChange'](_0x37c591,_0x4d61fc=>{const _0x2ac38=_0x444aa2['filter'](_0x592cce=>'$graveyard'!=_0x592cce['root']['rootName']);_0x2ac38['length']>0x0&&_0x4d61fc['setSelection'](_0x2ac38);for(const _0xfcff7f of _0x444aa2)_0xfcff7f['detach']();});});});}function _0x198dc6(_0x19b27e){_0x311f29['model']['change'](_0x345903=>{const _0x1f0949=Array['from'](_0x1e6486['getRanges']())['map'](_0x4c005b=>rt['fromRange'](_0x4c005b)),_0x3a86f6=[];for(const _0x3d2178 of _0x19b27e)for(const _0x12c757 of _0x3d2178['getItems']({'shallow':!0x0}))_0x3a86f6['push'](_0x12c757);for(const _0x1fdecc of _0x3a86f6)'$graveyard'!=_0x1fdecc['root']['rootName']&&(_0x345903['setSelection'](_0x345903['createPositionAt'](_0x1fdecc,0x0)),_0x311f29['commands']['get']('removeTableColumn')['refresh'](),_0x311f29['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x532be7=_0x1f0949['filter'](_0x94ccc8=>'$graveyard'!=_0x94ccc8['root']['rootName']);_0x532be7['length']>0x0&&_0x345903['setSelection'](_0x532be7);for(const _0x346338 of _0x1f0949)_0x346338['detach']();});}function _0x380f16(_0x30cfd8,_0x4f3265){return _0x4f3265['every'](_0x1fcbc0=>_0x30cfd8['some'](_0x5a79b8=>_0x5a79b8['end']['isEqual'](_0x1fcbc0['start'])||_0x1fcbc0['end']['isEqual'](_0x5a79b8['start'])));}function _0x5408a7(_0x531a4c,_0x581e4c){return!_0x531a4c['some'](_0x4f59ff=>_0x581e4c['some'](_0xd76d08=>_0x4f59ff['isIntersecting'](_0xd76d08)))&&_0x531a4c['some'](_0x2bd59d=>_0x581e4c['some'](_0x5c6a0c=>_0x2bd59d['end']['isTouching'](_0x5c6a0c['start'])));}_0x4cd06['descriptionFactory']['registerDescriptionCallback'](_0x2273c4=>{if('insertion'!=_0x2273c4['type']&&'deletion'!=_0x2273c4['type'])return;const _0x285037=_0x2273c4['getContainedElement']();if(null!=_0x285037&&_0x285037['is']('element','table')){if('insertion'==_0x2273c4['type']){const _0x244e3c=_0x2273c4['getItems']()['filter'](_0x35c378=>_0x35c378['is']('$textProxy'))['map'](_0x13e3d9=>_0x13e3d9['data']);if(_0x244e3c['length'])return{'type':'insertion','content':St(_0x5f3953,'*Insert:*\x20%0',St(_0x5f3953,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x244e3c['join']('\x20')+'\x22'))};}if('deletion'==_0x2273c4['type']){const _0x38963a=_0x2273c4['getItems']()['filter'](_0x379cbc=>_0x379cbc['is']('$textProxy'))['map'](_0x5a825f=>_0x5a825f['data']);if(_0x38963a['length'])return{'type':'deletion','content':St(_0x5f3953,'*Remove:*\x20%0',St(_0x5f3953,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x38963a['join']('\x20')+'\x22'))};}}}),_0x4cd06['descriptionFactory']['registerDescriptionCallback'](_0x2241fb=>{if('tableRow'==_0x2241fb['subType']){const _0x3d9697=_0x2241fb['getItems']()['filter'](_0x31de5c=>_0x31de5c['is']('$textProxy'))['map'](_0x5d27fb=>_0x5d27fb['data']),_0x1db59b=this['_getSuggestionCoords'](_0x2241fb),_0x1d7aaa=_0x1db59b['maxRow']-_0x1db59b['minRow']+0x1;if('insertion'==_0x2241fb['type'])return _0x3d9697['length']?{'type':'insertion','content':St(_0x5f3953,'*Insert:*\x20%0',St(_0x5f3953,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1d7aaa,'\x22'+_0x3d9697['join']('\x20')+'\x22']))}:{'type':'insertion','content':St(_0x5f3953,'*Insert:*\x20%0',St(_0x5f3953,'ELEMENT_TABLE_ROW',_0x1d7aaa))};if('deletion'==_0x2241fb['type'])return _0x3d9697['length']?{'type':'deletion','content':St(_0x5f3953,'*Remove:*\x20%0',St(_0x5f3953,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1d7aaa,'\x22'+_0x3d9697['join']('\x20')+'\x22']))}:{'type':'deletion','content':St(_0x5f3953,'*Remove:*\x20%0',St(_0x5f3953,'ELEMENT_TABLE_ROW',_0x1d7aaa))};}if('tableColumn'==_0x2241fb['subType']){const _0x3ee719=_0x2241fb['getItems']()['filter'](_0x244269=>_0x244269['is']('$textProxy'))['map'](_0x355e32=>_0x355e32['data']),_0x9cd6c7=this['_getSuggestionCoords'](_0x2241fb),_0x2a8e5d=_0x9cd6c7['maxColumn']-_0x9cd6c7['minColumn']+0x1;if('insertion'==_0x2241fb['type'])return _0x3ee719['length']?{'type':'insertion','content':St(_0x5f3953,'*Insert:*\x20%0',St(_0x5f3953,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2a8e5d,'\x22'+_0x3ee719['join']('\x20')+'\x22']))}:{'type':'insertion','content':St(_0x5f3953,'*Insert:*\x20%0',St(_0x5f3953,'ELEMENT_TABLE_COLUMN',_0x2a8e5d))};if('deletion'==_0x2241fb['type'])return _0x3ee719['length']?{'type':'deletion','content':St(_0x5f3953,'*Remove:*\x20%0',St(_0x5f3953,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2a8e5d,'\x22'+_0x3ee719['join']('\x20')+'\x22']))}:{'type':'deletion','content':St(_0x5f3953,'*Remove:*\x20%0',St(_0x5f3953,'ELEMENT_TABLE_COLUMN',_0x2a8e5d))};}}),_0x4cd06['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x195052),_0x4cd06['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x195052),_0x4cd06['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x198dc6),_0x4cd06['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x198dc6),_0x4cd06['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x380f16),_0x4cd06['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x380f16),_0x4cd06['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x5408a7),_0x4cd06['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x5408a7);}['_acceptFormatSuggestionCallbackFactory'](){const _0x17c796=this['editor'],_0x482800=_0x17c796['model']['document']['selection'];return(_0x331dd2,_0x1d486e)=>{_0x17c796['model']['change'](_0x1de997=>{const {commandName:_0x41225b,commandParams:_0x1d403e}=_0x1d486e;let _0x442327=_0x331dd2[0x0]['end']['nodeBefore'];_0x1d403e&&_0x1d403e[0x0]&&!0x1===_0x1d403e[0x0]['forceValue']&&(_0x442327=_0x331dd2[0x0]['start']['nodeAfter']);const _0x5b6b27=_0x1de997['createRangeIn'](_0x442327);if('$graveyard'==_0x5b6b27['root']['rootName'])return;const _0x4ee545=Array['from'](_0x482800['getRanges']())['map'](_0xbcf6d8=>rt['fromRange'](_0xbcf6d8));_0x1de997['setSelection'](_0x5b6b27),_0x17c796['commands']['get'](_0x41225b)['refresh'](),_0x1d403e['push']({'forceDefaultExecution':!0x0}),_0x17c796['execute'](_0x41225b,..._0x1d403e);const _0x150196=_0x4ee545['filter'](_0x56d1e3=>'$graveyard'!=_0x56d1e3['root']['rootName']);_0x150196['length']>0x0&&_0x1de997['setSelection'](_0x150196);for(const _0x5ea51d of _0x4ee545)_0x5ea51d['detach']();});};}['_getCoordsForCells'](_0x337648){const _0x33ecac=this['editor']['plugins']['get']('TableUtils');let _0x49e5cb=Number['MAX_SAFE_INTEGER'],_0x26d641=Number['MIN_SAFE_INTEGER'],_0x10dbbc=Number['MAX_SAFE_INTEGER'],_0x392833=Number['MIN_SAFE_INTEGER'];for(const _0x53e1a7 of _0x337648){if('$graveyard'==_0x53e1a7['root']['rootName'])continue;const {row:_0x1102a6,column:_0x352abb}=_0x33ecac['getCellLocation'](_0x53e1a7),_0x1971b9=_0x53e1a7['hasAttribute']('rowspan')?_0x53e1a7['getAttribute']('rowspan')-0x1:0x0,_0x3ef4d5=_0x53e1a7['hasAttribute']('colspan')?_0x53e1a7['getAttribute']('colspan')-0x1:0x0;_0x49e5cb=_0x1102a6<_0x49e5cb?_0x1102a6:_0x49e5cb,_0x26d641=_0x1102a6+_0x1971b9>_0x26d641?_0x1102a6+_0x1971b9:_0x26d641,_0x10dbbc=_0x352abb<_0x10dbbc?_0x352abb:_0x10dbbc,_0x392833=_0x352abb+_0x3ef4d5>_0x392833?_0x352abb+_0x3ef4d5:_0x392833;}return{'minRow':_0x49e5cb,'maxRow':_0x26d641,'minColumn':_0x10dbbc,'maxColumn':_0x392833};}['_setupColumnsRowsFixing'](){const _0x2002da=this['editor'],_0x3637b6=_0x2002da['plugins']['get']('TrackChangesEditing'),_0x31abec=_0x2002da['plugins']['get']('TableUtils');_0x2002da['model']['document']['on']('change:data',()=>{const _0x15bd40=Array['from'](_0x2002da['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x17ff28,data:_0x409e81}of _0x15bd40){const {group:_0x79a018,id:_0xadd4d4,subType:_0x1fabf9}=tt(_0x17ff28);if('suggestion'!=_0x79a018)continue;if(null!=_0x409e81['oldRange'])continue;const _0x38773c=_0x3637b6['getSuggestion'](_0xadd4d4);this['_tablePostFixingSubtypes']['includes'](_0x1fabf9)&&this['_tableSuggestions']['add'](_0x38773c);}},{'priority':'low'});const _0x328a27=(_0x5c939a,_0x5a85b1)=>{let _0x8c3d94=!0x1;const _0x196f7b=_0x5a85b1['createRangeOn'](_0x5c939a),_0x2a46e1=_0x5c939a['findAncestor']('table'),_0x2ae8e8=_0x31abec['getCellLocation'](_0x5c939a);for(const _0x5c7017 of this['_tableSuggestions']){const _0x5da7a4=_0x5c7017['subType'],_0x54bed8=_0x5da7a4['startsWith']('tablePaste'),_0x1a8249=_0x5da7a4['substr'](_0x54bed8?0xa:0x5),_0x35fb1f=_0x1a8249['toLowerCase'](),_0x592846=_0x35fb1f['substr'](0x0,0x3)+'span',_0x5b5b90='min'+_0x1a8249,_0x4f216f='max'+_0x1a8249;if(!_0x5c7017['isInContent'])continue;if(_0x2a46e1!=_0x5c7017['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x5c7017['isIntersectingWithRange'](_0x196f7b))continue;const _0x53c180=_0x5c939a['hasAttribute'](_0x592846)?_0x5c939a['getAttribute'](_0x592846)-0x1:0x0,_0x51cf69=this['_getSuggestionCoords'](_0x5c7017),_0xecce7f=_0x51cf69[_0x5b5b90],_0x410074=_0x51cf69[_0x4f216f];_0xecce7f<=_0x2ae8e8[_0x35fb1f]&&_0x2ae8e8[_0x35fb1f]+_0x53c180<=_0x410074&&(_0x5c7017['addRange'](_0x196f7b),_0x8c3d94=!0x0);}return _0x8c3d94;};_0x2002da['model']['document']['registerPostFixer'](_0x5a6cea=>{let _0x4052c9=!0x1;for(const _0x5e3e2a of _0x2002da['model']['document']['differ']['getChanges']())if('insert'==_0x5e3e2a['type']){if('tableRow'==_0x5e3e2a['name']){for(const _0x482a3e of _0x5e3e2a['position']['nodeAfter']['getChildren']())_0x4052c9=_0x4052c9||_0x328a27(_0x482a3e,_0x5a6cea);}else'tableCell'==_0x5e3e2a['name']&&(_0x4052c9=_0x4052c9||_0x328a27(_0x5e3e2a['position']['nodeAfter'],_0x5a6cea));}return _0x4052c9;});}['_getSuggestionCoords'](_0xb91035){return this['_getCoordsForCells'](_0xb91035['getRanges']()['map'](_0x28612f=>_0x28612f['start']['nodeAfter']));}};function De(_0x111198){return Array['from'](new Set(_0x111198)['values']());}var Ue=class extends _0x2b9af7{static get['requires'](){return[ve];}['afterInit'](){const _0x4f1222=this['editor'],_0x2c285a=_0x4f1222['model']['document']['selection'],_0x45d2cc=_0x4f1222['locale'];if(!_0x4f1222['plugins']['has']('TableEditing'))return;const _0x276d5f=_0x4f1222['plugins']['get']('TrackChangesEditing'),_0x93b1a=_0x4f1222['plugins']['get']('TableUtils'),_0x303e69=_0x4f1222['plugins']['get'](ve);_0x303e69['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x276d5f['enableCommand']('mergeTableCells',()=>{const _0x5dc587=_0x93b1a['getSelectionAffectedTableCells'](_0x4f1222['model']['document']['selection']);_0x4f1222['model']['change'](()=>{_0x276d5f['markMultiRangeBlockFormat'](_0x5dc587,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x4f1222['commands']['get']('mergeTableCells')['on']('execute',(_0x396594,_0x49cb5d)=>{_0x4f1222['commands']['get']('trackChanges')['value']&&(_0x49cb5d['length']>0x0&&_0x49cb5d[_0x49cb5d['length']-0x1]&&_0x49cb5d[_0x49cb5d['length']-0x1]['forceDefaultExecution']||_0x276d5f['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x396594['stop']());},{'priority':'highest'});for(const _0x32cd6a of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0xf6c7b3=_0x4f1222['commands']['get'](_0x32cd6a);_0x276d5f['enableCommand'](_0x32cd6a,()=>{const _0x509190=_0x4f1222['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2905d9=>_0x2905d9['is']('element','tableCell')),_0x1f6974=_0xf6c7b3['value'];_0x4f1222['model']['change'](()=>{_0x276d5f['markMultiRangeBlockFormat']([_0x509190,_0x1f6974],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x49b26e of['splitTableCellVertically','splitTableCellHorizontally']){const _0x18729b=_0x4f1222['commands']['get'](_0x49b26e);_0x276d5f['enableCommand'](_0x49b26e,()=>{const _0x1277f9=_0x93b1a['getSelectionAffectedTableCells'](_0x4f1222['model']['document']['selection'])[0x0],_0x1daf5a=_0x1277f9['findAncestor']('table'),{column:_0x253eaf,row:_0x4eb8d0}=_0x93b1a['getCellLocation'](_0x1277f9);let _0x3aeaf1=[];if('horizontally'==_0x18729b['direction']){const _0x2af73d=_0x93b1a['createTableWalker'](_0x1daf5a,{'startRow':_0x4eb8d0,'endRow':_0x4eb8d0,'includeAllSlots':!0x0});_0x3aeaf1=Array['from'](_0x2af73d)['map'](_0x5e023d=>_0x5e023d['cell']);}else{const _0x799220=_0x93b1a['createTableWalker'](_0x1daf5a,{'column':_0x253eaf,'includeAllSlots':!0x0});_0x3aeaf1=Array['from'](_0x799220)['map'](_0x89e1d5=>_0x89e1d5['cell']);}_0x4f1222['model']['change'](_0x23428d=>{_0x276d5f['markBlockFormat'](_0x23428d['createRangeOn'](_0x1277f9),{'commandName':_0x49b26e,'commandParams':[]},_0x3aeaf1,_0x49b26e);});});}_0x276d5f['descriptionFactory']['registerDescriptionCallback'](_0x3b5b95=>{if('formatBlock'!=_0x3b5b95['type']&&'formatInline'!=_0x3b5b95['type'])return;const {data:_0x2f948b}=_0x3b5b95;return _0x2f948b&&'mergeTableCells'==_0x2f948b['commandName']?{'type':'format','content':St(_0x45d2cc,'*Merge\x20cells*')}:void 0x0;}),_0x276d5f['descriptionFactory']['registerDescriptionCallback'](_0x1f8e86=>{if('formatBlock'!=_0x1f8e86['type']&&'formatInline'!=_0x1f8e86['type'])return;const {data:_0x38e74e}=_0x1f8e86;return _0x38e74e?'splitTableCellVertically'==_0x38e74e['commandName']?{'type':'format','content':St(_0x45d2cc,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x38e74e['commandName']?{'type':'format','content':St(_0x45d2cc,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x22d40b=_0x303e69['_acceptFormatSuggestionCallbackFactory']();for(const _0x5698e0 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x276d5f['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5698e0,'accept',_0x22d40b);for(const _0x4bf69a of['splitTableCellVertically','splitTableCellHorizontally'])_0x276d5f['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4bf69a,'accept',_0x22d40b);_0x276d5f['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0xfa51ce=>{_0x4f1222['model']['change'](_0x1e9fd3=>{const _0x518130=Array['from'](_0x2c285a['getRanges']())['map'](_0x44c7f9=>rt['fromRange'](_0x44c7f9));_0x1e9fd3['setSelection'](_0xfa51ce),_0x4f1222['commands']['get']('mergeTableCells')['refresh'](),_0x4f1222['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x411e67=_0x518130['filter'](_0x315353=>'$graveyard'!=_0x315353['root']['rootName']);_0x411e67['length']>0x0&&_0x1e9fd3['setSelection'](_0x411e67);for(const _0xf135e3 of _0x518130)_0xf135e3['detach']();});});for(const _0x125e1d of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x14ed5f=_0x4f1222['commands']['get'](_0x125e1d);_0x14ed5f['on']('set:isEnabled',(_0x3fb8a1,_0x5e2877,_0x42cf11)=>{if(_0x42cf11){const _0x4c5cfc=_0x4f1222['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4e6935=>_0x4e6935['is']('element','tableCell'));this['_areMergableCells'](_0x14ed5f['value'],_0x4c5cfc)||(_0x3fb8a1['return']=!0x1,_0x3fb8a1['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x233c99=this['editor']['commands']['get']('mergeTableCells'),_0x38a371=this['editor']['plugins']['get']('TableUtils');if(!_0x233c99['isEnabled'])return!0x1;const _0x9710c=_0x38a371['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x34886d of _0x9710c)for(const _0x3c7454 of _0x9710c)if(_0x34886d!=_0x3c7454&&!this['_areMergableCells'](_0x34886d,_0x3c7454))return!0x1;return!0x0;}['_areMergableCells'](_0x42126f,_0x542f76){const _0x4089f0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x165bc0=this['editor']['model']['createRangeOn'](_0x42126f),_0x20e07f=this['editor']['model']['createRangeOn'](_0x542f76),_0x232387=new Set(),_0x24b048=new Set();for(const _0x7a0679 of _0x4089f0['getSuggestions']())if(('insertion'==_0x7a0679['type']||'deletion'==_0x7a0679['type']||'mergeTableCells'==_0x7a0679['subType'])&&_0x7a0679['isInContent']){for(const _0x29c5e4 of _0x7a0679['getRanges']())_0x29c5e4['containsRange'](_0x165bc0,!0x0)&&_0x232387['add'](_0x7a0679['type']+':'+_0x7a0679['author']['id']),_0x29c5e4['containsRange'](_0x20e07f,!0x0)&&_0x24b048['add'](_0x7a0679['type']+':'+_0x7a0679['author']['id']);}if(_0x232387['size']!=_0x24b048['size'])return!0x1;for(const _0x273370 of _0x232387)if(!_0x24b048['has'](_0x273370))return!0x1;return!0x0;}},Pe=class extends _0x2b9af7{static get['requires'](){return[ve];}['afterInit'](){const _0x3e4eeb=this['editor'];if(!_0x3e4eeb['plugins']['has']('TableEditing'))return;const _0x124c7b=_0x3e4eeb['locale'],_0x297ed6=_0x3e4eeb['plugins']['get']('TrackChangesEditing');_0x297ed6['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x297ed6['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x297ed6['descriptionFactory']['registerAttributeLabel']('headingRows',St(_0x124c7b,'FORMAT_HEADER_ROW')),_0x297ed6['descriptionFactory']['registerAttributeLabel']('headingColumns',St(_0x124c7b,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1de3af=this['editor']['plugins']['get']('TrackChangesEditing'),_0x17c1b2=this['editor']['plugins']['get'](ve)['_acceptFormatSuggestionCallbackFactory']();_0x1de3af['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x17c1b2),_0x1de3af['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x17c1b2),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x20a2d1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x45dbf5=this['editor']['plugins']['get']('TableUtils');function _0x3c3c64({showActiveMarker:_0x3f1f89=!0x0,setDataAttribute:_0x5c0437=!0x0}={}){return(_0x4d512f,_0x3850d9,_0xb51722)=>{const {type:_0x237b99,id:_0x3b6f07}=tt(_0x3850d9['markerName']);if(!_0x20a2d1['hasSuggestion'](_0x3b6f07))return;const _0x17b7c6=_0x20a2d1['getSuggestion'](_0x3b6f07),_0x4e897d=_0x17b7c6['data'];if('formatBlock'!=_0x17b7c6['type']||!_0x4e897d||'setTableColumnHeader'!=_0x4e897d['commandName'])return;if(_0x3850d9['item'])return void _0x4d512f['stop']();if(!_0xb51722['consumable']['consume'](_0x3850d9['markerRange'],_0x4d512f['name']))return;const _0x42c92d=_0x3850d9['markerRange']['start']['nodeAfter'],_0x2c7e3a=_0x3850d9['markerRange']['end']['nodeBefore'],_0x26a7a8=_0x42c92d['parent']['parent'],{column:_0x351a0c}=_0x45dbf5['getCellLocation'](_0x42c92d),{column:_0x338425}=_0x45dbf5['getCellLocation'](_0x2c7e3a);for(let _0x434d58=_0x351a0c;_0x434d58<=_0x338425;_0x434d58++){const _0x1fa7a9=_0x45dbf5['createTableWalker'](_0x26a7a8,{'column':_0x434d58,'includeAllSlots':!0x1});for(const _0xc392df of _0x1fa7a9){const _0x3a7851=_0xc392df['cell'],_0xf0946b=_0xb51722['mapper']['toViewElement'](_0x3a7851);_0xb51722['writer']['addClass']('ck-suggestion-marker-'+_0x237b99,_0xf0946b),_0x5c0437&&_0xb51722['writer']['setAttribute']('data-suggestion',_0x3b6f07,_0xf0946b),_0xb51722['mapper']['bindElementToMarker'](_0xf0946b,_0x3850d9['markerName']),_0x3f1f89&&(_0x20a2d1['activeMarkers']['includes'](_0x3850d9['markerName'])?_0xb51722['writer']['addClass']('ck-suggestion-marker--active',_0xf0946b):_0xb51722['writer']['removeClass']('ck-suggestion-marker--active',_0xf0946b));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x3c3c64(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x699905,_0xc041c6,_0x45b859)=>{_0x45b859['options']['showSuggestionHighlights']&&_0x3c3c64({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x699905,_0xc041c6,_0x45b859);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0xda9a2,_0x297214,_0x5456e0)=>{const {type:_0x5593a3,id:_0x5640a7}=tt(_0x297214['markerName']);if(!_0x20a2d1['hasSuggestion'](_0x5640a7))return;const _0x17d510=_0x20a2d1['getSuggestion'](_0x5640a7),_0x2f8177=_0x17d510['data'];if('formatBlock'!=_0x17d510['type']||!_0x2f8177||'setTableColumnHeader'!=_0x2f8177['commandName'])return;const _0x51035a=_0x5456e0['mapper']['markerNameToElements'](_0x297214['markerName']);if(_0x51035a){for(const _0x33895e of _0x51035a)_0x5456e0['writer']['removeClass']('ck-suggestion-marker-'+_0x5593a3,_0x33895e),_0x5456e0['writer']['removeClass']('ck-suggestion-marker--active',_0x33895e),_0x5456e0['writer']['removeAttribute']('data-suggestion',_0x33895e),_0x5456e0['mapper']['unbindElementFromMarkerName'](_0x33895e,_0x297214['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0xb7d3ce=this['editor'],_0x51bae0=_0xb7d3ce['locale'];function _0x1a6a3b(_0x126d8e){return{'type':'format','content':St(_0x51bae0,'*Format:*\x20%0',_0x126d8e)};}_0xb7d3ce['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1e4fa2=>{if('formatBlock'!=_0x1e4fa2['type'])return;const {data:_0x59b582}=_0x1e4fa2;return _0x59b582?'setTableRowHeader'==_0x59b582['commandName']?_0x59b582['commandParams'][0x0]['forceValue']?_0x1a6a3b(St(_0x51bae0,'FORMAT_HEADER_ROW')):_0x1a6a3b(St(_0x51bae0,'FORMAT_REGULAR_ROW')):'setTableColumnHeader'==_0x59b582['commandName']?_0x59b582['commandParams'][0x0]['forceValue']?_0x1a6a3b(St(_0x51bae0,'FORMAT_HEADER_COLUMN')):_0x1a6a3b(St(_0x51bae0,'FORMAT_REGULAR_COLUMN')):void 0x0:void 0x0;});}},xe=class extends _0x2b9af7{static get['requires'](){return[ve];}['afterInit'](){const _0x49c831=this['editor'];if(!_0x49c831['plugins']['has']('TableEditing')||!_0x49c831['config']['get']('table.enableFooters'))return;const _0x49ec52=_0x49c831['locale'],_0x493625=_0x49c831['plugins']['get']('TrackChangesEditing');_0x493625['enableDefaultAttributesIntegration']('setTableFooterRow'),_0x493625['descriptionFactory']['registerAttributeLabel']('footerRows',St(_0x49ec52,'FORMAT_FOOTER_ROW'));}},Ge=class extends _0x2b9af7{['afterInit'](){const _0x16d714=this['editor'],_0x2166d0=_0x16d714['locale'],_0x321405=_0x16d714['plugins']['get']('TrackChangesEditing');function _0xff5955(_0x21dad4){return{'type':'format','content':''+St(_0x2166d0,'*Set\x20table\x20type:*\x20%0',_0x21dad4)};}_0x16d714['plugins']['has']('TableLayout')&&(_0x321405['enableCommand']('insertTableLayout'),_0x321405['enableDefaultAttributesIntegration']('tableType'),_0x321405['descriptionFactory']['registerElementLabel'](_0x354ba7=>_0x354ba7['is']('element','table')&&'layout'===_0x354ba7['getAttribute']('tableType'),_0x197337=>St(_0x2166d0,'ELEMENT_LAYOUT_TABLE',_0x197337)),_0x321405['descriptionFactory']['registerDescriptionCallback'](_0x5a851c=>{const {data:_0x2279a3}=_0x5a851c;if(_0x2279a3&&'tableType'==_0x2279a3['key'])switch(_0x2279a3['newValue']){case'layout':return _0xff5955(St(_0x2166d0,'ELEMENT_LAYOUT_TABLE'));case'content':return _0xff5955(St(_0x2166d0,'ELEMENT_CONTENT_TABLE'));}}));}};const He=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],$e=/* #__PURE__ -- @preserve */
|
|
25
|
+
Object['fromEntries'](He['map'](_0x2f3fa7=>[_0x2f3fa7,null]));var Ve=class extends _0x2b9af7{static get['requires'](){return[ve];}['afterInit'](){const _0x2d82f8=this['editor'];if(!_0x2d82f8['plugins']['has']('TableClipboard'))return;const _0x5e5117=_0x2d82f8['plugins']['get']('TrackChangesEditing'),_0x19b294=_0x2d82f8['plugins']['get']('TableUtils'),_0x361f8d=_0x2d82f8['plugins']['get'](ve),_0x812b80=_0x2d82f8['plugins']['get']('TableClipboard'),_0x145d72=_0x2d82f8['plugins']['get']('TableSelection'),_0x476aca=_0x2d82f8['plugins']['get'](mt);_0x361f8d['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x2d82f8['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x2d82f8['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x55451f=null,_0x3466bc=!0x1;_0x476aca['on']('contentInsertion',(_0xbe5def,_0x1abb59)=>{_0x3466bc='paste'===_0x1abb59['method'];}),_0x2d82f8['model']['on']('insertContent',(_0x498181,_0x3f668e)=>{if(!_0x3466bc&&null===_0x145d72['getSelectedTableCells']())return;const [_0x3a98d,_0x323d18]=_0x3f668e,_0x124380=_0x3f668e[_0x3f668e['length']-0x1];_0x124380&&_0x124380['forceDefaultExecution']||_0x5e5117['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x296975,_0x33422f,_0x37ba7d,_0x53a9e0,_0x4668bc){if(_0x33422f&&!_0x33422f['is']('documentSelection'))return!0x1;const _0xcd63ba=_0x4668bc['getTableIfOnlyTableInContent'](_0x296975,_0x37ba7d);if(!_0xcd63ba||!je(_0xcd63ba,void 0x0,_0x53a9e0))return!0x1;const _0x3e3dc4=_0x53a9e0['getSelectionAffectedTableCells'](_0x37ba7d['document']['selection']);if(!_0x3e3dc4['length'])return!0x1;const _0x2a655b=_0x3e3dc4[0x0]['findAncestor']('table'),_0x3e3b25=_0x53a9e0['getRowIndexes'](_0x3e3dc4),_0x36fb41=_0x53a9e0['getColumnIndexes'](_0x3e3dc4),_0x37fcc9={'startRow':_0x3e3b25['first'],'endRow':_0x3e3b25['last'],'startColumn':_0x36fb41['first'],'endColumn':_0x36fb41['last']};return 0x1==_0x3e3dc4['length']&&(_0x37fcc9['endRow']+=_0x53a9e0['getRows'](_0xcd63ba)-0x1,_0x37fcc9['endColumn']+=_0x53a9e0['getColumns'](_0xcd63ba)-0x1),je(_0x2a655b,_0x37fcc9,_0x53a9e0);}(_0x3a98d,_0x323d18,_0x2d82f8['model'],_0x19b294,_0x812b80)&&(_0x498181['stop'](),_0x55451f={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x2d82f8['model']['change'](()=>{_0x2d82f8['model']['insertContent'](_0x3f668e[0x0],_0x3f668e[0x1],_0x3f668e[0x2],{'forceDefaultExecution':!0x0});const _0xf3f6c9=_0x16a774(),{rowInsertionRanges:_0x43f0af,columnInsertionRanges:_0x29eabb,insertionRanges:_0x3b869b,deletionRanges:_0x7908b4,cells:_0x64dea5}=_0x55451f;_0x43f0af['length']&&_0x5e5117['markMultiRangeInsertion'](_0x43f0af,'tablePasteRow',{'tablePasteChainId':_0xf3f6c9}),_0x29eabb['length']&&_0x5e5117['markMultiRangeInsertion'](_0x29eabb,'tablePasteColumn',{'tablePasteChainId':_0xf3f6c9}),_0x3b869b['length']&&(_0x5e5117['markMultiRangeInsertion'](_0x3b869b,'tablePaste',{'tablePasteChainId':_0xf3f6c9,'skipNestingCheck':!0x0}),_0x3b869b['forEach'](_0x2e93c6=>_0x2e93c6['detach']?.())),_0x7908b4['length']&&(_0x5e5117['markMultiRangeDeletion'](_0x7908b4,'tablePaste',{'tablePasteChainId':_0xf3f6c9,'skipNestingCheck':!0x0}),_0x7908b4['forEach'](_0x29ed29=>_0x29ed29['detach']?.()));const _0x405b3e=_0x5e5117['markMultiRangeBlockFormat'](_0x64dea5['map'](({element:_0x33582a})=>_0x33582a),{'formatGroupId':_0x16a774()},[],'tablePasteCell',{'tablePasteChainId':_0xf3f6c9});if(_0x405b3e){const _0x5a7176=_0x405b3e['getMarkers'](),_0x2876be=[];for(const {element:_0x3ecc7e,attributes:_0x20f14d}of _0x64dea5){if(!_0x20f14d)continue;const _0x10a2d3=_0x2d82f8['model']['createRangeOn'](_0x3ecc7e),_0x83aa7d=_0x5a7176['find'](_0x41a81a=>_0x41a81a['getRange']()['isEqual'](_0x10a2d3));_0x83aa7d&&_0x2876be['push']([_0x83aa7d['name'],_0x20f14d]);}_0x2876be['length']&&_0x405b3e['setAttribute']('markerAttributes',Object['fromEntries'](_0x2876be));}_0x55451f=null;}));},{'priority':_0x3483a6['high']+0xa}),_0x476aca['on']('contentInsertion',()=>{_0x3466bc=!0x1;},{'priority':'lowest'}),_0x2d82f8['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x5726d3,_0x1d30df)=>{const [_0x2404f4,_0x9970c5,,_0x118cce]=_0x1d30df;if(!_0x55451f)return;_0x5726d3['stop']();const _0x121e48=_0x2404f4['cell'],_0x12737c=_0x9970c5,_0x35836d=We(_0x121e48),_0x1c357e=We(_0x12737c);_0x5726d3['return']=_0x121e48;let _0x396c65=null,_0xacb661=null;if(_0x1c357e||_0x35836d){if(_0x35836d&&!_0x1c357e){_0x118cce['remove'](_0x121e48['getChild'](0x0));for(const _0x3063b7 of Array['from'](_0x12737c['getChildren']()))_0x118cce['insert'](_0x3063b7,_0x121e48,'end');const _0x213d9a=_0x55451f['rowInsertionIndexes']['includes'](_0x2404f4['row']),_0x54afba=_0x55451f['columnInsertionIndexes']['includes'](_0x2404f4['column']);_0x213d9a||_0x54afba||(_0x396c65=rt['fromRange'](_0x118cce['createRangeIn'](_0x121e48)));}else _0x1c357e&&!_0x35836d&&(_0xacb661=_0x118cce['createRangeIn'](_0x121e48));}else{const _0x287cb7=_0x118cce['createElement']('tableCellSuggestion'),_0x4d045f=_0x118cce['createElement']('tableCellSuggestion');_0x118cce['wrap'](_0x118cce['createRangeIn'](_0x121e48),_0x4d045f),_0x118cce['insert'](_0x287cb7,_0x121e48,0x0);for(const _0x1c0b7a of Array['from'](_0x12737c['getChildren']()))_0x118cce['insert'](_0x1c0b7a,_0x287cb7,'end');_0x396c65=rt['fromRange'](_0x118cce['createRangeOn'](_0x287cb7)),_0xacb661=rt['fromRange'](_0x118cce['createRangeOn'](_0x4d045f));}const _0x55c28d=Array['from'](_0x12737c['getAttributes']())['filter'](([_0x1ab905])=>He['includes'](_0x1ab905));_0x55451f['cells']['push']({'element':_0x121e48,'attributes':_0x55c28d['length']?Object['fromEntries'](_0x55c28d):null}),_0x396c65&&_0x55451f['insertionRanges']['push'](_0x396c65),_0xacb661&&_0x55451f['deletionRanges']['push'](_0xacb661);},{'priority':'high'}),_0x19b294['on']('insertColumns',(_0x33f86d,_0x5cb044)=>{const [_0x58ebea,_0x21c22b={}]=_0x5cb044;if(!_0x55451f)return;const _0x11461b=_0x21c22b['at']||0x0,_0x38a93b=_0x21c22b['columns']||0x1;_0x55451f['columnInsertionIndexes']=new Array(_0x38a93b)['fill'](_0x11461b)['map']((_0x523591,_0x3bcd4c)=>_0x523591+_0x3bcd4c);for(const {cell:_0x2b71e6}of _0x19b294['createTableWalker'](_0x58ebea,{'startColumn':_0x11461b,'endColumn':_0x11461b+_0x38a93b-0x1}))_0x55451f['columnInsertionRanges']['push'](_0x2d82f8['model']['createRangeOn'](_0x2b71e6));},{'priority':'low'}),_0x19b294['on']('insertRows',(_0x52fc00,_0x57410d)=>{const [_0x495ed5,_0x38448b={}]=_0x57410d;if(!_0x55451f)return;const _0x1e4513=_0x38448b['at']||0x0,_0x4bbb1e=_0x38448b['rows']||0x1;_0x55451f['rowInsertionIndexes']=new Array(_0x4bbb1e)['fill'](_0x1e4513)['map']((_0x2c671b,_0x3d76a1)=>_0x2c671b+_0x3d76a1);for(const {cell:_0x1ef026}of _0x19b294['createTableWalker'](_0x495ed5,{'startRow':_0x1e4513,'endRow':_0x1e4513+_0x4bbb1e-0x1}))_0x55451f['rowInsertionRanges']['push'](_0x2d82f8['model']['createRangeOn'](_0x1ef026));},{'priority':'low'}),_0x5e5117['descriptionFactory']['registerDescriptionCallback'](_0x36fb83=>{if(_0x36fb83['subType']&&_0x36fb83['subType']['startsWith']('tablePaste'))return _0x36fb83['previous']?{}:{'type':'insertion','content':St(_0x2d82f8['locale'],'*Replace\x20table\x20cells*')};});const _0x209b55=()=>!0x1;for(const _0x50adf4 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x5e5117['_suggestionFactory']['registerCustomCallback']('insertion',_0x50adf4,'join',_0x209b55),_0x5e5117['_suggestionFactory']['registerCustomCallback']('deletion',_0x50adf4,'join',_0x209b55),_0x5e5117['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x50adf4,'join',_0x209b55);_0x5e5117['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x209b55),_0x5e5117['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x73fdd2,_0x5740af,_0x5b1c65)=>{const _0x21eee4=_0x73fdd2['map'](_0x439f96=>_0x439f96['getContainedElement']())['filter'](_0x34f871=>_0x34f871),_0x588d03=new Map(_0x21eee4['map'](_0x5b5e1d=>[_0x5b5e1d,null]));if(_0x55451f){for(const {element:_0x2ace80,attributes:_0x26b413}of _0x55451f['cells'])_0x26b413&&_0x588d03['set'](_0x2ace80,_0x26b413);}else{if(_0x5b1c65&&_0x5b1c65['markerAttributes'])for(const [_0x32bb5d,_0xb04142]of Object['entries'](_0x5b1c65['markerAttributes'])){const _0x1a761e=_0x2d82f8['model']['markers']['get'](_0x32bb5d),_0x339e00=_0x1a761e?_0x1a761e['getRange']()['getContainedElement']():null;_0x339e00&&_0x588d03['set'](_0x339e00,_0xb04142);}}_0x2d82f8['model']['change'](_0x13a62e=>{for(const [_0x1dffc5,_0x1507f4]of _0x588d03)_0x13a62e['setAttributes']({...$e,..._0x1507f4},_0x1dffc5);});});const _0x5f437e=(_0x576471,_0x20504c)=>{_0x5e5117['_suggestionFactory']['registerCustomCallback'](_0x576471,'tablePaste',_0x20504c,(_0x399442,_0x5915b5,_0x50869f)=>{_0x2d82f8['model']['change'](_0x5e594e=>{const _0xc9f6e1=[];for(const _0x58828f of _0x399442){const _0x2f327c=_0x58828f['start']['nodeAfter'];_0x2f327c['is']('element','tableCellSuggestion')&&_0xc9f6e1['push'](_0x2f327c);}_0x5e5117['_suggestionFactory']['getSuggestionCallback'](_0x576471,null,_0x20504c)(_0x399442,_0x5915b5,_0x50869f);for(const _0x2be920 of _0xc9f6e1)'$graveyard'!=_0x2be920['root']['rootName']&&_0x5e594e['unwrap'](_0x2be920);});});};_0x5f437e('insertion','accept'),_0x5f437e('insertion','discard'),_0x5f437e('deletion','accept'),_0x5f437e('deletion','discard'),_0x5e5117['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x1d920c=>{const _0xf0d95b=_0x1d920c['map'](_0x31f525=>_0x31f525['getContainedElement']()),_0x19722a=_0xf0d95b[0x0]['findAncestor']('table'),{minRow:_0x54fe11,maxRow:_0x2fd053}=_0x361f8d['_getCoordsForCells'](_0xf0d95b);_0x19b294['removeRows'](_0x19722a,{'at':_0x54fe11,'rows':_0x2fd053-_0x54fe11+0x1});}),_0x5e5117['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x354726=>{const _0x1b9d4d=_0x354726['map'](_0x476d88=>_0x476d88['getContainedElement']()),_0x3862d3=_0x1b9d4d[0x0]['findAncestor']('table'),{minColumn:_0x354827,maxColumn:_0x1ecd4b}=_0x361f8d['_getCoordsForCells'](_0x1b9d4d);_0x19b294['removeColumns'](_0x3862d3,{'at':_0x354827,'columns':_0x1ecd4b-_0x354827+0x1});});const _0x11f2f0=(_0x8e2a41,_0x1b75da)=>{if(!_0x1b75da['subType']||!_0x1b75da['subType']['startsWith']('tablePaste'))return;const _0x252c87=_0x1b75da['attributes']['tablePasteChainId'],_0x2aa38f=_0x5e5117['getSuggestions']()['filter'](_0x2e55c0=>_0x2e55c0['isInContent']&&_0x2e55c0['attributes']&&_0x2e55c0['attributes']['tablePasteChainId']==_0x252c87);_0x2aa38f['length']&&_0x1b75da['getAllAdjacentSuggestions']()['length']!=_0x2aa38f['length']&&_0x2aa38f['reduce']((_0x29e78e,_0x256762)=>(_0x29e78e['next']=_0x256762,_0x256762['previous']=_0x29e78e,_0x256762));};function _0x60f0a3(_0x546204,_0x3c11df=!0x0){const {id:_0x5afc8f,authorId:_0x512ac0}=tt(_0x546204['markerName']),_0xf53fb4=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x14dc7e=_0x5e5117['activeMarkers']['includes'](_0x546204['markerName']);return _0x14dc7e&&_0xf53fb4['push']('ck-suggestion-marker--active'),{'classes':_0xf53fb4,'attributes':{'data-suggestion':_0x5afc8f,'data-author-id':_0x512ac0},'priority':_0x14dc7e&&_0x3c11df?0xbc2:0xbb8};}_0x5e5117['on']('suggestionLoaded',_0x11f2f0,{'priority':'high'}),_0x5e5117['on']('suggestionUnloaded',_0x11f2f0,{'priority':'high'}),_0x2d82f8['model']['document']['registerPostFixer'](()=>{let _0x59e24e=!0x1;const _0x3748ed=Array['from'](_0x2d82f8['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x55e139,data:_0x30368f}of _0x3748ed){const {group:_0x553320,type:_0x137684,id:_0x1a2238}=tt(_0x55e139);if('suggestion'!=_0x553320||'deletion'!=_0x137684||_0x30368f['oldRange'])continue;if(!_0x5e5117['hasSuggestion'](_0x1a2238))continue;const _0x4aab3c=_0x5e5117['getSuggestion'](_0x1a2238)['getRanges'](),_0x3d532d=_0x2d82f8['plugins']['get']('Users')['me'];for(const _0x4385a8 of _0x5e5117['getSuggestions']())if(_0x4385a8['isInContent']&&_0x4385a8['author']==_0x3d532d&&'formatBlock'==_0x4385a8['type']&&'tablePasteCell'==_0x4385a8['subType']&&_0x4385a8['getRanges']()['every'](_0x36e5fc=>_0x4aab3c['some'](_0x32fdbc=>_0x32fdbc['containsRange'](_0x36e5fc,!0x0)))){for(const _0x3958ea of _0x4385a8['getAllAdjacentSuggestions']())_0x3958ea['isInContent']&&(_0x3958ea['discard'](),_0x59e24e=!0x0);}}return _0x59e24e;}),_0x2d82f8['model']['document']['registerPostFixer'](_0x4bc9e5=>{const _0x44cb80=_0x2d82f8['commands']['get']('redo');if(!_0x44cb80||!_0x44cb80['_createdBatches']['has'](_0x4bc9e5['batch']))return!0x1;let _0x7093ae=!0x1;const _0x15a624=_0x2d82f8['plugins']['get']('Users')['me'],_0x1d020c=_0x2d82f8['model']['document']['differ']['getChanges'](),_0x37f651=Array['from'](_0x2d82f8['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x3d1826,data:_0x4dc53c})=>{const {group:_0x56e0b5,subType:_0x2f8032,authorId:_0x5941bf}=tt(_0x3d1826);return'suggestion'==_0x56e0b5&&'tablePaste'==_0x2f8032&&_0x5941bf==_0x15a624['id']&&!_0x4dc53c['oldRange'];});for(const _0x1d5d39 of _0x1d020c){if('insert'!=_0x1d5d39['type']||'tableCellSuggestion'!=_0x1d5d39['name']||0x1!=_0x1d5d39['length'])continue;const _0x20d82c=_0x4bc9e5['createRange'](_0x1d5d39['position'],_0x1d5d39['position']['getShiftedBy'](0x1));if(!_0x37f651['find'](({data:_0x2f9716})=>_0x2f9716['newRange']['isEqual'](_0x20d82c))){for(const {name:_0x3243bb,data:_0x2b2655}of _0x37f651)if(_0x20d82c['containsRange'](_0x2b2655['newRange'])){_0x4bc9e5['updateMarker'](_0x3243bb,{'range':_0x20d82c}),_0x7093ae=!0x0;break;}}}return _0x7093ae;}),_0x2d82f8['model']['document']['registerPostFixer'](_0x365ffe=>{let _0x3b1cb9=!0x1;const _0x53bc0d=_0x2d82f8['plugins']['get']('Users')['me'],_0xad07fb=_0x5e5117['getSuggestions']()['filter'](_0xaae5df=>_0xaae5df['isInContent']&&_0xaae5df['author']==_0x53bc0d),_0x19539c=new Set(),_0x1f5e3f=new Set();for(const _0x2cf1eb of _0xad07fb)if('tablePaste'==_0x2cf1eb['subType'])for(const _0x158dfe of _0x2cf1eb['getMarkers']()){const _0xe6b957=_0x158dfe['getRange']()['getContainedElement']();if(_0xe6b957){if(_0xe6b957['is']('element','tableCellSuggestion')&&We(_0xe6b957)){_0x2cf1eb['removeMarker'](_0x158dfe['name']),_0x19539c['add'](_0xe6b957),_0x3b1cb9=!0x0;const _0x564339=_0xe6b957['nextSibling'],_0xca45b7=_0xe6b957['previousSibling'],_0x3a53db=_0x564339&&_0x564339['is']('element','tableCellSuggestion'),_0x3c9bd8=_0xca45b7&&_0xca45b7['is']('element','tableCellSuggestion');_0x3a53db&&!_0x19539c['has'](_0x564339)&&_0x1f5e3f['add'](_0x564339),_0x3c9bd8&&!_0x19539c['has'](_0xca45b7)&&_0x1f5e3f['add'](_0xca45b7);}else _0xe6b957['is']('element','paragraph')&&_0xe6b957['isEmpty']&&(_0x2cf1eb['removeMarker'](_0x158dfe['name']),_0x3b1cb9=!0x0);}}else{if('tablePasteCell'==_0x2cf1eb['subType']){if(!_0x2cf1eb['attributes']||!_0x2cf1eb['attributes']['tablePasteChainId'])continue;const _0x3f5341=_0x2cf1eb['attributes']['markerAttributes'];if(_0x3f5341&&Object['keys'](_0x3f5341)['length'])continue;const _0x14e7aa=_0x2cf1eb['attributes']['tablePasteChainId'];let _0x917688=!0x0,_0x2551b2=!0x0;for(const _0x269610 of _0xad07fb)if(_0x269610['subType']&&_0x269610['subType']['startsWith']('tablePaste')){if(!_0x269610['attributes']['tablePasteChainId']){_0x2551b2=!0x1;break;}if(_0x269610['id']!=_0x2cf1eb['id']&&_0x269610['attributes']['tablePasteChainId']==_0x14e7aa){_0x917688=!0x1;break;}}_0x2551b2&&_0x917688&&(_0x2cf1eb['removeMarkers'](),_0x3b1cb9=!0x0);}}for(const _0xbfab9b of _0x19539c)_0x365ffe['remove'](_0xbfab9b);for(const _0x53af65 of _0x1f5e3f)_0x365ffe['unwrap'](_0x53af65);return _0x3b1cb9;}),_0x2d82f8['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x539078=>_0x60f0a3(_0x539078),'converterPriority':'high'}),_0x2d82f8['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0xba1c63,_0x3d0de2)=>_0x3d0de2['options']['showSuggestionHighlights']?_0x60f0a3(_0xba1c63,!0x1):null,'converterPriority':'high'});const _0x26b520=_0x2d82f8['editing']['view'];this['listenTo'](_0x26b520['document'],'clipboardOutput',(_0xe69dfa,_0x27347e)=>{const _0x121bbf=[];for(const _0x1280e9 of _0x26b520['createRangeIn'](_0x27347e['content'])['getItems']())_0x1280e9['is']('element','suggestion-td')&&_0x121bbf['push'](_0x1280e9);_0x26b520['change'](_0x42f5ea=>{for(const _0x280a50 of _0x121bbf)_0x42f5ea['move'](_0x42f5ea['createRangeIn'](_0x280a50),_0x42f5ea['createPositionBefore'](_0x280a50)),_0x42f5ea['remove'](_0x280a50);});});}};function We(_0x290f9f){if(_0x290f9f['isEmpty'])return!0x0;const _0x441d2=_0x290f9f['getChild'](0x0);return _0x441d2['is']('element','paragraph')&&_0x441d2['isEmpty'];}function je(_0x243408,_0x44df76={},_0x45f8d7){for(const {isAnchor:_0x5932dc,cellHeight:_0x3336dd,cellWidth:_0x519044}of _0x45f8d7['createTableWalker'](_0x243408,{'includeAllSlots':!0x0,..._0x44df76}))if(!_0x5932dc||0x1!=_0x3336dd||0x1!=_0x519044)return!0x1;return!0x0;}var Ke=class extends _0x2b9af7{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x41b345=this['editor']['plugins']['get']('TrackChangesEditing');_0x41b345['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x41b345['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x41b345['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x41b345['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x41b345['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x41b345['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x3d1e64,_0x1e9496){const _0x4a2179=this['editor']['plugins']['get']('TrackChangesEditing'),_0x23a3f9=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x1692d0=_0x1e9496['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x3268b5=_0x23a3f9['getColumnGroupElement'](_0x1692d0);let _0x4195ff=_0x3268b5?_0x23a3f9['getTableColumnsWidths'](_0x3268b5):null,_0x25afb9=_0x1692d0['getAttribute']('tableWidth')||null;const _0x3709c5=_0x1e9496['tableWidth']||_0x25afb9,_0x593244=_0x1e9496['columnWidths']||_0x4195ff,_0x2fc574=this['editor']['plugins']['get']('Users')['me'];for(const _0x8fd0bd of _0x4a2179['getSuggestions']()){const _0x3eb54c=_0x8fd0bd['getContainedElement']();if('resizeTable'===_0x8fd0bd['subType']&&_0x3eb54c===_0x1692d0){_0x8fd0bd['author']!==_0x2fc574&&_0x8fd0bd['discard']();const _0x32481d=_0x8fd0bd['data']['commandParams'];_0x25afb9=_0x32481d[0x0]['tableWidth'],_0x4195ff=_0x32481d[0x0]['columnWidths'];break;}}_0x3d1e64({'table':_0x1692d0,'tableWidth':_0x3709c5,'columnWidths':_0x593244}),_0x4a2179['markBlockFormat'](_0x1692d0,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x25afb9,'columnWidths':_0x4195ff}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x518be7){if('formatBlock'!=_0x518be7['type']&&'formatInline'!=_0x518be7['type'])return;const {data:_0x3b63a9}=_0x518be7;return _0x3b63a9&&'resizeTable'===_0x3b63a9['formatGroupId']?{'type':'format','content':St(this['editor']['locale'],'*Format:*\x20resize\x20table')}:void 0x0;}},ze=class extends _0x2b9af7{['afterInit'](){const _0x316631=this['editor'];_0x316631['plugins']['has']('Template')&&_0x316631['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}},Xe=class extends _0x2b9af7{['afterInit'](){const _0x50737f=this['editor'];if(!_0x50737f['commands']['get']('insertTableOfContents'))return;_0x50737f['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x12fa61=_0x50737f['plugins']['get']('TrackChangesEditing'),_0x1bb2fb=_0x50737f['locale'];_0x12fa61['descriptionFactory']['registerElementLabel']('tableOfContents',_0x61e7c5=>St(_0x1bb2fb,'ELEMENT_TABLE_OF_CONTENTS',_0x61e7c5));}},qe=class extends _0x2b9af7{['afterInit'](){const _0x2e1eaf=this['editor'];_0x2e1eaf['plugins']['has']('Title')&&(_0x2e1eaf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>St(_0x2e1eaf['locale'],'ELEMENT_TITLE')),_0x2e1eaf['model']['document']['registerPostFixer'](_0x121fe1=>{let _0x30ceca=!0x1;const _0x33f131=Array['from'](_0x2e1eaf['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x182119,data:_0x4e34e6}of _0x33f131){const {group:_0x97a581}=tt(_0x182119);if('suggestion'!==_0x97a581||!_0x4e34e6['newRange'])continue;const _0x197c6e=_0x4e34e6['newRange'],_0x1da676=_0x197c6e['end']['nodeBefore'];if(!_0x1da676||!_0x1da676['is']('element','title-content'))continue;if(!_0x197c6e['start']['isTouching'](_0x197c6e['end']))continue;const _0x3921be=_0x2e1eaf['model']['schema']['getNearestSelectionRange'](_0x197c6e['end'],'forward');if(_0x3921be&&_0x3921be['isCollapsed']){const _0x1642c2=_0x121fe1['createRange'](_0x197c6e['start'],_0x3921be['start']);_0x1642c2['isEqual'](_0x197c6e)||(_0x121fe1['updateMarker'](_0x182119,{'range':_0x1642c2}),_0x30ceca=!0x0);}_0x30ceca||(_0x121fe1['removeMarker'](_0x182119),_0x30ceca=!0x0);}return _0x30ceca;}));}},Ye=class extends _0x2b9af7{['afterInit'](){const _0xe1e6df=this['editor'],_0x57a9a5=_0xe1e6df['plugins']['get']('TrackChangesEditing');_0xe1e6df['plugins']['has']('Uploadcare')&&(_0x57a9a5['enableCommand']('uploadcare'),_0xe1e6df['plugins']['has']('UploadcareImageEdit')&&(_0x57a9a5['enableCommand']('uploadcareImageEdit'),_0x57a9a5['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x57a9a5['descriptionFactory']['registerDescriptionCallback'](_0x36b5a3=>{if('attribute'!=_0x36b5a3['type'])return;const {data:_0xa1e091}=_0x36b5a3;return _0xa1e091&&'uploadcareImageId'==_0xa1e091['key']?{'type':'format','content':''}:void 0x0;})));}},Qe=class extends _0x2b9af7{['afterInit'](){const _0x11e787=this['editor'],_0x49c64e=_0x11e787['plugins']['get']('TrackChangesEditing');_0x11e787['plugins']['has']('UndoEditing')&&(_0x49c64e['enableCommand']('undo'),_0x49c64e['enableCommand']('redo'));}},Ze=class extends _0x2b9af7{static get['requires'](){return[ve];}['afterInit'](){const _0x978943=this['editor'];_0x978943['plugins']['has']('TableCaptionEditing')&&_0x978943['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}},Je=class extends _0x2b9af7{['tableProperties'];['tableCellProperties'];constructor(_0xf3d05f){super(_0xf3d05f),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 _0x5b0600=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x362dae of this['tableProperties'])_0x5b0600['enableCommand'](_0x362dae,(_0xc60f92,_0x168858)=>{const _0x17a447=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x362dae,[_0x17a447],this['tableProperties'],'tableProperties',_0xc60f92,_0x168858);});_0x5b0600['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x5b0600['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5b0600['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x2830ec,_0x4e15a2)=>this['handleDiscardAction'](this['tableProperties'],_0x2830ec,_0x4e15a2)),_0x5b0600['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x5ae285 of this['tableCellProperties'])this['editor']['commands']['get'](_0x5ae285)&&_0x5b0600['enableCommand'](_0x5ae285,(_0x1d9370,_0x280e84)=>{const _0x488d96=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x5ae285,_0x488d96,this['tableCellProperties'],'tableCellProperties',_0x1d9370,_0x280e84);});_0x5b0600['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x5b0600['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5b0600['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x4b04a7,_0x3d360f)=>this['handleDiscardAction'](this['tableCellProperties'],_0x4b04a7,_0x3d360f)),_0x5b0600['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x5b0600['descriptionFactory']['registerAttributeLabel']('tableCellType',St(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x5b0600['descriptionFactory']['registerDescriptionCallback'](_0x23b1d8=>this['handleSuggestionDescription'](_0x23b1d8)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x459192,_0x3299f4,_0x20957a,_0x297780,_0x3fecfb,_0x3f9af9){const _0x1ca52f=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x3f9af9['batch'],()=>{for(const _0x311f3e of _0x3299f4)if(this['_getSuggestion'](_0x311f3e,_0x297780))_0x3fecfb(_0x3f9af9);else{const _0x59458f={};for(const _0x48fab7 of _0x20957a){const _0x31191c=_0x311f3e['getAttribute'](_0x48fab7);void 0x0!==_0x31191c&&(_0x59458f[_0x48fab7]=_0x31191c);}_0x3fecfb(_0x3f9af9),_0x1ca52f['markBlockFormat'](_0x311f3e,{'commandParams':[_0x59458f]},[],_0x297780);}});}['handleDiscardAction'](_0x1919f6,_0x2cb14f,_0x2c3f3e){const _0x2bf733=_0x2cb14f[0x0]['start']['nodeAfter'],_0x176486=_0x2c3f3e['commandParams'][0x0];this['editor']['model']['change'](_0x5eba2b=>{for(const _0xdd69b of _0x1919f6)void 0x0!==_0x176486[_0xdd69b]?_0x5eba2b['setAttribute'](_0xdd69b,_0x176486[_0xdd69b],_0x2bf733):_0x5eba2b['removeAttribute'](_0xdd69b,_0x2bf733);});}['handleSuggestionDescription'](_0x5e71a1){if(_0x5e71a1['data'])switch(_0x5e71a1['subType']){case'tableProperties':return{'type':'format','content':St(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':St(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x4a6145,_0x3636ef){const _0x170130=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x4a3b93 of _0x170130['getSuggestions']({'skipNotAttached':!0x0})){const _0x2dd973=_0x4a3b93['getContainedElement']();if(_0x4a3b93['subType']===_0x3636ef&&_0x2dd973===_0x4a6145)return _0x4a3b93;}return null;}['_registerTablePropertiesAttributes'](){const _0x4807b3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5b5a6b=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x3fe797 of _0x5b5a6b){const _0x5aacf3=_0x3fe797['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x4807b3['descriptionFactory']['registerAttributeLabel'](_0x3fe797,St(this['editor']['locale'],'FORMAT_'+_0x5aacf3));}}},tn=class extends _0x2b9af7{['afterInit'](){const _0x376d21=this['editor'];if(!_0x376d21['plugins']['has']('LineHeight'))return;const _0x2f0147=_0x376d21['plugins']['get']('TrackChangesEditing'),_0x24dbdc=_0x376d21['locale'];_0x2f0147['enableDefaultAttributesIntegration']('lineHeight'),_0x2f0147['descriptionFactory']['registerAttributeLabel']('lineHeight',St(_0x24dbdc,'FORMAT_LINE_HEIGHT'));}};const en='$elementName';var nn=class extends _0x2b9af7{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_suggestionsConversion'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return[_0x3b47da,_0x5bf169,_0x1f47e3,_0x41b01e,_0xa07744,Ot,wt,Ft,Bt,Dt,Ut,xt,Ht,Gt,$t,Wt,jt,Qt,Zt,Jt,ee,ne,ie,re,oe,ae,ce,le,ue,he,de,ge,fe,me,Te,Le,Ce,Ee,Kt,tn,Xt,Ie,Ae,be,ke,Re,Ne,ye,Se,Me,Oe,Fe,Be,ve,Ue,Pe,xe,Ge,Ze,Ve,Ke,Xe,Je,ze,qe,Ye,Qe];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x368ce9){super(_0x368ce9),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x255328,_0x1f03c6,_0x473fd7,_0x376a78)=>{this['_model']['change'](()=>{for(const _0x30c767 of[..._0x376a78,..._0x473fd7])this['_model']['markers']['has'](_0x30c767)&&_0x368ce9['editing']['reconvertMarker'](_0x30c767);});}),this['descriptionFactory']=new Mt(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new sn(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x368ce9['plugins']['get'](_0x3b47da),this['_suggestionsConversion']=_0x368ce9['plugins']['get'](_0x5bf169),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x368ce9['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x368ce9['config']['get']('trackChanges.trackFormatChanges'),_0x368ce9['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x368ce9['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new Et(_0x368ce9,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x264abf=this['editor'];_0x264abf['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x2029e7,{writer:_0x5cb34e})=>{let _0x4ef89b='suggestion:'+_0x2029e7['getAttribute']('suggestion-type')+':'+_0x2029e7['getAttribute']('id');return _0x2029e7['getAttribute']('marker-count')&&(_0x4ef89b+=':'+_0x2029e7['getAttribute']('marker-count')),_0x5cb34e['createElement']('$marker',{'data-name':_0x4ef89b});}}),_0x264abf['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x264abf['model']['document']['registerPostFixer'](_0x4d1555=>{let _0x2613e1=!0x1;const _0x390934=Array['from'](_0x264abf['model']['document']['differ']['getChangedMarkers']()),_0x3ff9a8=new Set();for(const {name:_0x279576,data:_0x371cf8}of _0x390934){const {group:_0x3afdcf,type:_0x3c0bfd,subType:_0x1163c2,id:_0x3c31d2}=tt(_0x279576);if('suggestion'!==_0x3afdcf)continue;const _0xc6ade5=_0x1163c2?'suggestion:'+_0x3c0bfd+':'+_0x1163c2+':'+_0x3c31d2:'suggestion:'+_0x3c0bfd+':'+_0x3c31d2,_0x484d4d=_0x264abf['model']['markers']['getMarkersGroup'](_0xc6ade5),_0x3e0021=_0x264abf['model']['markers']['get'](_0x279576),_0x1ae5ab=this['_suggestions']['get'](_0x3c31d2);if(null!=_0x371cf8['newRange']){'formatInline'==_0x3c0bfd&&(_0x2613e1=_0x2613e1||an(_0x371cf8['newRange'],_0x279576,_0x4d1555,_0x264abf['model']['schema']));const _0x1e31f8='attribute'==_0x3c0bfd&&this['_suggestionsConversion']['isBlockAttribute'](_n(_0x1163c2)),_0x3df6fb='attribute'==_0x3c0bfd&&this['_suggestionsConversion']['isInlineAttribute'](_n(_0x1163c2));if(_0x371cf8['newRange']['isCollapsed']||'$graveyard'==_0x371cf8['newRange']['root']['rootName']||'formatBlock'==_0x3c0bfd&&!ln(_0x371cf8['newRange'])||_0x1e31f8&&!ln(_0x371cf8['newRange'])||_0x3df6fb&&un(_0x371cf8['newRange'])||'deletion'==_0x3c0bfd&&un(_0x371cf8['newRange'])||_0x3e0021&&dn(_0x3e0021,_0x484d4d))_0x4d1555['removeMarker'](_0x279576),_0x2613e1=!0x0;else{if(!_0x1ae5ab||!_0x1ae5ab['isInContent'])continue;if(_0x371cf8['newRange']&&_0x371cf8['oldRange']&&_0x371cf8['newRange']['isEqual'](_0x371cf8['oldRange']))continue;_0x3ff9a8['add'](_0x1ae5ab);}}}return _0x3ff9a8['size']>0x0&&(_0x2613e1=!!this['_joinWithAdjacentSuggestions'](_0x3ff9a8)||_0x2613e1),_0x2613e1;}),_0x264abf['model']['document']['registerPostFixer'](_0x38129b=>{let _0x4cf68f=!0x1;for(const _0x20bfe7 of _0x264abf['model']['document']['differ']['getChanges']())if('insert'==_0x20bfe7['type'])for(const _0x521960 of this['_suggestions']['values']()){if(_0x521960['isMultiRange']||!_0x521960['isInContent'])continue;const _0x598ccd='formatBlock'==_0x521960['type'],_0x448663=this['_getAttributeKey'](_0x521960),_0x2cf0cc=_0x448663&&this['_suggestionsConversion']['isBlockAttribute'](_0x448663);if(!_0x598ccd&&!_0x2cf0cc)continue;const _0x59e1ca=_0x521960['getFirstRange']();if(_0x59e1ca['start']['parent']!=_0x59e1ca['end']['parent']&&!_0x59e1ca['end']['isAtEnd']){const _0x4c9aab=_0x264abf['model']['createPositionAt'](_0x59e1ca['start']['nodeAfter'],'end'),_0x87eb99=_0x264abf['model']['createRange'](_0x59e1ca['start'],_0x4c9aab);_0x38129b['updateMarker'](_0x521960['getFirstMarker'](),{'range':_0x87eb99}),_0x4cf68f=!0x0;}}return _0x4cf68f;}),_0x264abf['model']['document']['registerPostFixer'](_0x13eb46=>this['_processAttributeChanges'](_0x13eb46)),_0x264abf['model']['document']['registerPostFixer'](_0x2fef51=>!_0x2fef51['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x2fef51)),_0x264abf['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x264abf['model']['document']['on']('change:data',(_0x1a2996,_0x180b10)=>{if(!_0x180b10['isLocal']||_0x180b10['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x19cc73=_0x264abf['model']['document']['differ']['getChanges']();if(0x0==_0x19cc73['length'])return;const _0x2a776d=[],_0x5e0f6e=_0x19cc73['filter'](_0xf7214a=>'attribute'==_0xf7214a['type']),_0x19d53b=_0x19cc73['filter'](_0x20faa2=>'insert'==_0x20faa2['type']&&'$text'!=_0x20faa2['name']);for(const _0x5b212b of _0x5e0f6e)this['_suggestionsConversion']['isRegisteredAttribute'](_0x5b212b['attributeKey'])&&_0x2a776d['push']({'key':_0x5b212b['attributeKey'],'newValue':_0x5b212b['attributeNewValue'],'oldValue':_0x5b212b['attributeOldValue'],'range':hn(_0x5b212b['range'],_0x264abf['model'])});for(const _0x3870a0 of _0x19d53b){if('rename'!=_0x3870a0['action']&&'refresh'!=_0x3870a0['action'])continue;const _0x44f240=gn(_0x3870a0['position']['nodeAfter'],_0x264abf['model']),_0x5548b5=_0x3870a0['before'];'rename'==_0x3870a0['action']&&_0x2a776d['push']({'key':en,'newValue':_0x3870a0['name'],'oldValue':_0x5548b5['name'],'range':_0x44f240});for(const [_0x3f5fa4,_0x583928]of _0x5548b5['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x3f5fa4))continue;const _0x302523=_0x3870a0['attributes']['get'](_0x3f5fa4);_0x583928!==_0x302523&&_0x2a776d['push']({'key':_0x3f5fa4,'newValue':_0x302523,'oldValue':_0x583928,'range':_0x44f240});}for(const [_0x1f3b4e,_0x36e4ac]of _0x3870a0['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x1f3b4e)&&(_0x5548b5['attributes']['has'](_0x1f3b4e)||_0x2a776d['push']({'key':_0x1f3b4e,'newValue':_0x36e4ac,'oldValue':null,'range':_0x44f240}));}0x0!=_0x2a776d['length']&&_0x264abf['model']['enqueueChange'](_0x180b10,_0x4bc9db=>{const _0x1e98aa=_0x16a774();for(const {range:_0x34fda6,key:_0xaf2a20,oldValue:_0x548942,newValue:_0x20e1dc}of _0x2a776d)this['markAttributeChange'](_0x34fda6,_0xaf2a20,_0x548942,_0x20e1dc,{'groupId':_0x1e98aa});this['_reduceExistingSuggestions'](_0x4bc9db,_0x2a776d);});},{'priority':'lowest'}),_0x264abf['model']['markers']['on']('update:suggestion',(_0x32762f,_0x48867b,_0x3e56be)=>{if(null==_0x3e56be){const {id:_0x1fd73a}=tt(_0x48867b['name']),_0x42c871=this['_suggestions']['get'](_0x1fd73a);_0x42c871&&_0x42c871['addMarkerName'](_0x48867b['name']);}}),_0x264abf['model']['document']['on']('change:data',()=>{const _0x59a8b5=Array['from'](_0x264abf['model']['document']['differ']['getChangedMarkers']())['filter'](_0x24dc02=>'suggestion'===tt(_0x24dc02['name'])['group']);if(0x0===_0x59a8b5['length'])return;_0x59a8b5['sort']((_0x1a31f0,_0x680b6d)=>{const _0x34e893=_0x1a31f0['data']['oldRange'],_0x41760d=_0x680b6d['data']['oldRange'];return null===_0x34e893&&null===_0x41760d?0x0:null===_0x34e893&&null!==_0x41760d?-0x1:null!==_0x34e893&&null===_0x41760d?0x1:_0x34e893['start']['isBefore'](_0x41760d['start'])?-0x1:0x1;});const _0x4e95e0=new Set(),_0x4daee3=new Set();for(const {name:_0x45ac34,data:_0x33fc4b}of _0x59a8b5){const {id:_0x254556}=tt(_0x45ac34);if(null===_0x33fc4b['oldRange']){const _0x4b2d1d=this['_handleNewSuggestionMarker'](_0x45ac34);_0x4daee3['add'](_0x4b2d1d);}else{const _0x3ef84b=this['_suggestions']['get'](_0x254556);null!==_0x33fc4b['newRange']||_0x3ef84b['isInContent']?(_0x4e95e0['add'](_0x3ef84b['head']),_0x4daee3['add'](_0x3ef84b)):this['_removeSuggestion'](_0x3ef84b);}}_0x4daee3['size']>0x0&&this['_refreshSuggestionsChain'](_0x4daee3);for(const _0x447d64 of _0x4e95e0)this['fire']('suggestionChanged',_0x447d64);}),_0x264abf['model']['on']('applyOperation',(_0x942d89,_0xe18de)=>{const _0x4ed9a3=_0xe18de[0x0];if(!this['_suggestions']['size'])return;if(!_0x4ed9a3['isDocumentOperation'])return;if(_0x4ed9a3['batch']['isUndo']||!_0x4ed9a3['batch']['isLocal'])return;let _0x301ce9,_0x30e125;switch(_0x4ed9a3['type']){case'insert':_0x301ce9=_0x264abf['model']['createPositionAt'](_0x4ed9a3['position']),_0x30e125=_0x301ce9['getShiftedBy'](_0x4ed9a3['howMany']);break;case'split':_0x301ce9=_0x264abf['model']['createPositionAt'](_0x4ed9a3['splitPosition']),_0x30e125=_0x264abf['model']['createPositionAt'](_0x4ed9a3['moveTargetPosition']);break;case'move':_0x301ce9=_0x264abf['model']['createPositionAt'](_0x4ed9a3['targetPosition']),_0x30e125=_0x301ce9['getShiftedBy'](_0x4ed9a3['howMany']);break;default:return;}const _0x307984=_0x264abf['model']['createRange'](_0x301ce9,_0x30e125);_0x264abf['model']['change'](()=>{for(const {suggestion:_0xcd6df2,meta:_0x3a2251}of this['_findSuggestions'](_0x307984)){if(_0xcd6df2['isMultiRange'])continue;if('formatInline'==_0xcd6df2['type'])continue;const _0x5481b3=this['_getAttributeKey'](_0xcd6df2);if(_0x5481b3&&this['_suggestionsConversion']['isBlockAttribute'](_0x5481b3)&&'split'!=_0x4ed9a3['type'])continue;const _0x38875f=_0xcd6df2['data']&&_0xcd6df2['data']['multipleBlocks'];('formatBlock'!=_0xcd6df2['type']||'split'==_0x4ed9a3['type']&&!_0x38875f)&&(_0x3a2251['containsRangeInObject']||'insertion'==_0xcd6df2['type']&&_0x3a2251['isOwn']||_0xcd6df2['getFirstRange']()['containsRange'](_0x307984)&&this['_breakSuggestionMarker'](_0xcd6df2,_0x301ce9,_0x30e125));}});},{'priority':'lowest'}),_0x264abf['model']['on']('deleteContent',(_0x4f53e4,_0x143229)=>{const _0x20d661=_0x143229[0x0],_0xfe17a2=_0x143229[0x1];if(_0xfe17a2&&_0xfe17a2['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x20d661['isCollapsed'])return;const _0x468000=_0x264abf['model']['schema'],{start:_0x457462,end:_0x241f06}=_0x20d661['getFirstRange'](),_0x2a4b77=_0x457462['nodeAfter']&&_0x468000['isLimit'](_0x457462['nodeAfter'])?null:_0x468000['getNearestSelectionRange'](_0x457462,'forward'),_0x46e73d=_0x241f06['nodeBefore']&&_0x468000['isLimit'](_0x241f06['nodeBefore'])?null:_0x468000['getNearestSelectionRange'](_0x241f06,'backward'),_0x452f25=_0x264abf['model']['createRange'](_0x2a4b77?_0x2a4b77['start']:_0x457462,_0x46e73d?_0x46e73d['end']:_0x241f06);_0x264abf['model']['change'](_0x2562e9=>{this['markDeletion'](_0x452f25);const _0x41c084=_0x264abf['model']['schema']['getNearestSelectionRange'](_0x452f25['start']);_0x20d661['is']('documentSelection')?_0x2562e9['setSelection'](_0x41c084):_0x20d661['setTo'](_0x41c084);}),_0x4f53e4['stop']();},{'priority':_0x3483a6['normal']+0xa}),_0x264abf['model']['on']('insertContent',(_0x3e94c9,_0xcf6524)=>{const _0x5ed15b=_0xcf6524[_0xcf6524['length']-0x1];_0x5ed15b&&_0x5ed15b['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x264abf['model']['change'](()=>{let _0x230f87=_0x264abf['model']['insertContent'](_0xcf6524[0x0],_0xcf6524[0x1],_0xcf6524[0x2],{'forceDefaultExecution':!0x0});if(!_0x230f87)return;_0x3e94c9['return']=_0x230f87['clone']();const _0x92b8e1=_0x230f87['end']['nodeBefore'],_0x7aa5da=_0x264abf['model']['schema'];_0x92b8e1&&_0x7aa5da['isBlock'](_0x92b8e1)&&!_0x7aa5da['isObject'](_0x92b8e1)&&(_0x230f87=_0x264abf['model']['createRange'](_0x230f87['start'],_0x264abf['model']['createPositionAt'](_0x92b8e1,'end'))),this['markInsertion'](_0x230f87);}),_0x3e94c9['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x2dea7c=new Tt(_0x264abf,this['_suggestions']);_0x264abf['commands']['add']('acceptSuggestion',_0x2dea7c),this['enableCommand']('acceptSuggestion');const _0x52ddde=new _t(_0x264abf,this['_suggestions']);_0x264abf['commands']['add']('discardSuggestion',_0x52ddde),this['enableCommand']('discardSuggestion'),_0x264abf['commands']['add']('acceptAllSuggestions',new Ct(_0x264abf,_0x2dea7c,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x264abf['commands']['add']('discardAllSuggestions',new Ct(_0x264abf,_0x52ddde,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x264abf['commands']['add']('acceptSelectedSuggestions',new Rt(_0x264abf,_0x2dea7c,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x264abf['commands']['add']('discardSelectedSuggestions',new Rt(_0x264abf,_0x52ddde,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0xe07b18=_0x264abf['plugins']['get'](_0x3b47da);this['listenTo'](_0xe07b18,'addComment',(_0x1b6483,{threadId:_0x154a8b})=>{const _0x23d28f=this['_suggestions']['get'](_0x154a8b);_0x23d28f&&_0x23d28f['commentThread']&&0x1===_0x23d28f['commentThread']['length']&&this['_updateSuggestionData'](_0x154a8b,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0xe07b18,'removeComment',(_0x1dd121,{threadId:_0x155c73})=>{const _0x59a39e=this['_suggestions']['get'](_0x155c73);_0x59a39e&&_0x59a39e['commentThread']&&!_0x59a39e['commentThread']['length']&&this['_updateSuggestionData'](_0x155c73,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x55f22c){const _0x14b571='RBcXdGf567mNjK9DTpP0Iyi3gea8ZvzlE4bFuWrwsH1hnOSLqkY2MQJxoVAUtC',_0x90ddcd=0x78e10,_0x52b46c=window['Date']['now'](),_0x519f05=_0x55f22c['editor'],_0x13e661=new window['Promise'](_0x4b979e=>{_0x519f05['once']('ready',_0x4b979e);}),_0x1128de={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0xf1a2=_0x519f05['config']['get']('licenseKey');async function _0x5e5eaf(){let _0x497424,_0x5147f7=null,_0x51e38d=null;try{return'GPL'==_0xf1a2?'NotAllowed':(_0x497424=_0x1f4846(),_0x497424?(_0x497424['usageEndpoint']&&(_0x51e38d=_0x15eabf(_0x497424['usageEndpoint'],_0x497424['jti'])),await _0x1ee73d()?_0x376572()?_0xb08138()?'Expired':_0x2387ce()?('evaluation'==_0x497424['licenseType']&&(_0x5147f7=_0x48ecbc('EvaluationLimit')),await _0x2a5c79()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0xb08138(){const _0x28f3c8=['evaluation','trial']['includes'](_0x497424['licenseType'])?_0x52b46c/0x3e8:0xe10*_0x90ddcd;return _0x497424['exp']<_0x28f3c8;}function _0x376572(){const _0x31505a=_0x497424['features'];if(!_0x31505a)return!0x1;if(_0x31505a['includes']('*'))return!0x0;if(_0x31505a['includes']('TC'))return!0x0;if(_0x31505a['includes']('RTC')){if(_0x3624b7())return!0x0;if(_0x45d757()||_0xb75f1e())return!0x0;}return!0x1;}function _0x2387ce(){const _0x1800be=_0x497424['licensedHosts'];if(!_0x1800be||0x0==_0x1800be['length'])return!0x0;const {hostname:_0x277fd5}=new URL(window['location']['href']);if(_0x1800be['includes'](_0x277fd5))return!0x0;const _0x2bc054=_0x277fd5['split']('.');return _0x1800be['filter'](_0x4df789=>_0x4df789['includes']('*'))['map'](_0x21a3b5=>_0x21a3b5['split']('.'))['filter'](_0x204ac9=>_0x204ac9['length']<=_0x2bc054['length'])['map'](_0x1cbc12=>Array(_0x2bc054['length']-_0x1cbc12['length'])['fill']('*'===_0x1cbc12[0x0]?'*':'')['concat'](_0x1cbc12))['some'](_0x23a638=>_0x2bc054['every']((_0x2d7d14,_0x188286)=>_0x23a638[_0x188286]===_0x2d7d14||'*'===_0x23a638[_0x188286]));}function _0x2a5c79(){return _0x5147f7&&_0x51e38d?new window['Promise']((_0x4e61fe,_0x54267e)=>{_0x5147f7['then'](_0x4e61fe,_0x54267e),_0x51e38d['then'](_0x59e033=>{'Valid'!=_0x59e033&&_0x4e61fe(_0x59e033);},_0x54267e);}):_0x5147f7||_0x51e38d||'Valid';}}function _0x15eabf(_0x3d0049,_0x2a442b){return new window['Promise'](_0x6cc23d=>{if(_0x43c20b())return _0x6cc23d('Valid');_0xb9873f(),_0x519f05['decorate']('_sendUsageRequest');let _0x392662=!0x1;const _0x38e0f9=_0x16a774();function _0x554cea(_0xef8255){return!!_0xef8255&&('object'==typeof _0xef8255||'function'==typeof _0xef8255)&&'function'==typeof _0xef8255['then']&&'function'==typeof _0xef8255['catch'];}function _0x505e75(_0x4db5c1){_0x581628(_0x4db5c1)['then'](_0xa18388=>_0xa18388&&'ok'==_0xa18388['status']?_0x324cc4(_0x2ae112(_0x38e0f9+_0x2a442b))!=_0xa18388['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x255bc4=>(_0x1abf89(),_0x255bc4),()=>{const _0x1f2363=_0x29c087();return null==_0x1f2363?(_0x1abf89(),'Valid'):_0x52b46c-_0x1f2363>0x240c8400?'UsageLimit':'Valid';})['then'](_0x6cc23d)['catch'](()=>{_0x6cc23d('UsageLimit');});const _0x710569=0x36ee80;function _0x1abf89(){const _0x10dda9='llct-'+_0x324cc4(_0x2ae112(_0x3d0049)),_0x134ac0=_0x16f6ee(_0x324cc4(window['Math']['ceil'](_0x52b46c/_0x710569)));window['localStorage']['setItem'](_0x10dda9,_0x134ac0);}function _0x29c087(){const _0x5a7295='llct-'+_0x324cc4(_0x2ae112(_0x3d0049)),_0x2373ab=window['localStorage']['getItem'](_0x5a7295);return _0x2373ab?window['parseInt'](_0x16f6ee(_0x2373ab),0x10)*_0x710569:null;}function _0x581628(_0x213657){return new window['Promise']((_0x4dbe5d,_0x1a5c70)=>{_0x213657['then'](_0x4dbe5d,_0x1a5c70),window['setTimeout'](_0x1a5c70,0x1d4c0);});}}_0x519f05['on']('_sendUsageRequest',(_0x55f1ea,_0x957c3e)=>{if(_0x957c3e[0x0]!=_0x3d0049)return _0x6cc23d('UsageLimit');_0x957c3e[0x1]={..._0x957c3e[0x1],'requestId':_0x38e0f9};},{'priority':'high'}),_0x519f05['on']('_sendUsageRequest',_0x4b117f=>{_0x554cea(_0x4b117f['return'])&&(_0x392662=!0x0,_0x505e75(_0x4b117f['return']));},{'priority':'low'}),_0x13e661['then'](()=>{_0x392662||_0x6cc23d('UsageLimit');});});function _0x43c20b(){return'auto'==_0x519f05['editing']['view']['_overlayModeHint'];}function _0xb9873f(){_0x519f05['editing']['view']['_overlayModeHint']='auto';}}function _0x48ecbc(_0x467c4a){const _0x54937d=[new window['Promise'](_0x352041=>setTimeout(_0x352041,0x93ecc)),_0x13e661['then'](()=>new window['Promise'](_0x56540e=>{let _0x286c16=0x0;_0x519f05['model']['on']('applyOperation',(_0x70b79b,_0x9d8308)=>{_0x9d8308[0x0]['isDocumentOperation']&&_0x286c16++,0x5e8==_0x286c16&&(_0x56540e(),_0x70b79b['off']());});}))];return window['Promise']['race'](_0x54937d)['then'](()=>_0x467c4a);}async function _0x14947e(){await _0x13e661,_0x519f05['model']['change']=_0x47cd12,_0x519f05['model']['enqueueChange']=_0x47cd12,_0x519f05['enableReadOnlyMode']('model');}function _0x3624b7(){return _0x1d4255('WebSocketGateway')&&'connected'==_0x5a157c('WebSocketGateway')['state'];}function _0x45d757(){return _0x1d4255('RevisionViewerIntegration');}function _0xb75f1e(){return _0x1d4255('TrackChangesDataGetter');}function _0x1313ca(_0x4002e2){const _0x4a0df2=_0x28bdda();_0x519f05[_0x4a0df2]='trackChangesLicenseKey'+_0x4002e2,'Valid'!=_0x4002e2&&_0x14947e();}function _0x28bdda(){const _0x2e07eb=window['String'](window['performance']['now']())['replace']('.','');let _0x521169='R';for(let _0x44002f=0x0;_0x44002f<_0x2e07eb['length'];_0x44002f+=0x2){let _0x5b0922=window['parseInt'](_0x2e07eb['substring'](_0x44002f,_0x44002f+0x2));_0x5b0922>=0x3e&&(_0x5b0922-=0x3e),_0x521169+=_0x14b571[_0x5b0922];}return _0x521169;}function _0x1f4846(){const _0x2d6a45=_0xf1a2['split']('.');if(0x3!=_0x2d6a45['length'])return null;return _0x18f3ca(_0x2d6a45[0x1]);function _0x18f3ca(_0xa346e0){const _0x4c878d=_0x16672a(_0xa346e0);return _0x4c878d&&_0x258e2a()?_0x4c878d:null;function _0x258e2a(){const _0x1b85f9=_0x4c878d['jti'],_0x538e72=window['parseInt'](_0x1b85f9['substring'](_0x1b85f9['length']-0x8),0x10),_0x238a9e={..._0x4c878d,'jti':_0x1b85f9['substring'](0x0,_0x1b85f9['length']-0x8)};return delete _0x238a9e['vc'],_0x2ae112(_0x238a9e)==_0x538e72;}}}async function _0x1ee73d(){let _0x41fb3e=!0x0;try{const [_0x452479,_0xcf51c9,_0x319985]=_0xf1a2['split']('.');return _0x29d509(_0x452479),await _0x3d8955(_0x452479,_0xcf51c9,_0x319985),_0x41fb3e;}catch{return!0x1;}function _0x29d509(_0x18f595){const _0x30ac1b=_0x16672a(_0x18f595);_0x30ac1b&&'ES256'==_0x30ac1b['alg']||(_0x41fb3e=!0x1);}async function _0x3d8955(_0x331f21,_0x3e4be6,_0x8dd32b){const _0x3310c2=window['Uint8Array']['from'](_0x61f777(_0x8dd32b),_0x499856=>_0x499856['charCodeAt'](0x0)),_0x13841f=new window['TextEncoder']()['encode'](_0x331f21+'.'+_0x3e4be6),_0x513a41=window['crypto']['subtle'];if(!_0x513a41)return;const _0x30c60d=await _0x513a41['importKey']('jwk',_0x1128de,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x513a41['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x30c60d,_0x3310c2,_0x13841f)||(_0x41fb3e=!0x1);}}function _0x16672a(_0x3dfa41){return _0x3dfa41['startsWith']('ey')?JSON['parse'](_0x61f777(_0x3dfa41)):null;}function _0x61f777(_0x4660d5){return window['atob'](_0x4660d5['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x2ae112(_0x43d2f2){let _0x48cfd=0x1505;function _0xef1278(_0x295583){for(let _0x3bc8d7=0x0;_0x3bc8d7<_0x295583['length'];_0x3bc8d7++){const _0x150cfe=_0x295583['charCodeAt'](_0x3bc8d7);_0x48cfd=(_0x48cfd<<0x5)+_0x48cfd+_0x150cfe,_0x48cfd&=_0x48cfd;}}function _0x597503(_0x57b0fb){Array['isArray'](_0x57b0fb)?_0x57b0fb['forEach'](_0x597503):_0x57b0fb&&'object'==typeof _0x57b0fb?Object['entries'](_0x57b0fb)['sort']()['forEach'](([_0x213f67,_0xe3afe2])=>{_0xef1278(_0x213f67),_0x597503(_0xe3afe2);}):_0xef1278(window['String'](_0x57b0fb));}return _0x597503(_0x43d2f2),_0x48cfd>>>0x0;}function _0x324cc4(_0x33d37d){return _0x33d37d['toString'](0x10)['padStart'](0x8,'0');}function _0x16f6ee(_0x5eb7bb){return _0x5eb7bb['split']('')['reverse']()['join']('');}function _0x1d4255(_0xbc942e){return _0x519f05['plugins']['has'](_0xbc942e);}function _0x5a157c(_0x4552c9){return _0x519f05['plugins']['get'](_0x4552c9);}function _0x47cd12(){}_0x1313ca(await _0x5e5eaf());}(this);}set['adapter'](_0x36ffbf){if(this['_adapter'])throw new _0x5b3612('track-changes-adapter-already-set',this);this['_adapter']=_0x36ffbf;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x6602c2=!0x1,toJSON:_0x208ff4=!0x1}={}){const _0x1e3c19=[];for(const _0x554647 of this['_suggestions']['values']())_0x6602c2&&!_0x554647['isInContent']||_0x1e3c19['push'](_0x554647);return _0x208ff4?_0x1e3c19['map'](_0x521c5c=>_0x521c5c['toJSON']()):_0x1e3c19;}['getSuggestion'](_0x258964){const _0x16ca4d=this['_suggestions']['get'](_0x258964);if(!_0x16ca4d)throw new _0x5b3612('track-changes-suggestion-not-found',this);return _0x16ca4d;}['hasSuggestion'](_0x4b40ec){return this['_suggestions']['has'](_0x4b40ec);}['addSuggestionData'](_0x363fac){const {authorId:_0x45870f,id:_0x3bf213,originalSuggestionId:_0x27c324,attributes:_0x3a728f}=_0x363fac,[_0x327eba,_0x3a13a5]=_0x363fac['type']['split'](':'),_0x4b1648=this['_suggestions']['get'](_0x3bf213)||this['_createSuggestion'](_0x327eba,_0x3a13a5,_0x3bf213,_0x45870f,_0x3a728f,_0x27c324);if(this['_addThreadToSuggestion'](_0x4b1648),this['_checkSuggestionCorrectness'](_0x4b1648,_0x327eba,_0x3a13a5||null,_0x45870f),_0x4b1648['createdAt']=_0x363fac['createdAt'],_0x4b1648['_isDataLoaded']=!0x0,_0x3a728f&&_0x3a728f['@external']){const _0x3d4f6b=_0x3a728f['@external'],_0x141dd4=this['_getExternalAuthor'](_0x3d4f6b['authorName']);_0x4b1648['authoredAt']=_0x3d4f6b['createdAt'],_0x4b1648['author']=_0x141dd4;}else _0x4b1648['authoredAt']=_0x363fac['createdAt'];switch(_0x363fac['data']&&(_0x4b1648['data']=_0x363fac['data']),_0x363fac['attributes']&&(_0x4b1648['attributes']=_0x363fac['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x4b1648['_saved']=!0x0),this['_suggestionState']['get'](_0x4b1648)){case'notReady':this['_suggestionState']['set'](_0x4b1648,'dataReady');break;case'markerReady':_0x4b1648['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x4b1648])),this['_refreshSuggestionsChain'](new Set([_0x4b1648])),this['_suggestionState']['set'](_0x4b1648,'ready'),this['fire']('suggestionLoaded',_0x4b1648)):this['_suggestionState']['set'](_0x4b1648,'removed');}return _0x4b1648;}['acceptSuggestion'](_0x4e4168){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x338801 of _0x4e4168['getAllAdjacentSuggestions']())_0x338801['accept']();});});}['discardSuggestion'](_0xa6fbdf){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x6eb8a3 of _0xa6fbdf['getAllAdjacentSuggestions']())_0x6eb8a3['discard']();});});}['enableCommand'](_0x1f8cd2,_0x10b196){const _0x23c356=this['editor']['commands']['get'](_0x1f8cd2);if(!_0x23c356)throw new _0x5b3612('track-changes-command-not-found',this,{'commandName':_0x1f8cd2});if(this['_enabledCommands']['has'](_0x23c356))throw new _0x5b3612('track-changes-enable-command-twice',this,{'commandName':_0x1f8cd2});this['_enabledCommands']['add'](_0x23c356),_0x10b196&&_0x23c356['on']('execute',(_0xa30a6f,_0x657da9)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x657da9['length']>0x0&&_0x657da9[_0x657da9['length']-0x1]&&_0x657da9[_0x657da9['length']-0x1]['forceDefaultExecution']?_0x657da9['pop']():(_0xa30a6f['return']=_0x10b196((..._0x4d26b2)=>_0x23c356['execute'](..._0x4d26b2,{'forceDefaultExecution':!0x0}),..._0x657da9),_0xa30a6f['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x2dc31d){let _0x22a9cc,_0x54eb80;const _0x2dbba1=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x22a9cc=_0x2dc31d();}catch(_0xe1886d){_0x54eb80=_0xe1886d;}return _0x2dbba1||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x54eb80&&_0x5b3612['rethrowUnexpectedError'](_0x54eb80,this),_0x22a9cc;}['markInsertion'](_0xdbd4e7,_0x155696=null,_0x5d7564={}){if(_0xdbd4e7['isCollapsed'])return null;const _0x1dc861=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x5d7564['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0xe19c74,meta:_0x5c37b3}of this['_findSuggestions'](_0xdbd4e7,'insertion'))if(_0x5c37b3['isOwn']){if(!_0x5c37b3['isNextTo']){if(_0x5c37b3['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!En(_0xe19c74,_0x5d7564))continue;return _0xe19c74;}if(En(_0xe19c74,_0x5d7564))return _0xe19c74;this['_breakSuggestionMarker'](_0xe19c74,_0xdbd4e7['start'],_0xdbd4e7['end']);break;}if(_0x155696==_0xe19c74['subType']&&En(_0xe19c74,_0x5d7564)){const _0x146732=_0xe19c74['getFirstRange']();return _0x146732['start']['isEqual'](_0xdbd4e7['end'])?this['_setSuggestionRange'](_0xe19c74,this['_model']['createRange'](_0xdbd4e7['start'],_0x146732['end'])):this['_setSuggestionRange'](_0xe19c74,this['_model']['createRange'](_0x146732['start'],_0xdbd4e7['end'])),_0xe19c74;}}const _0x12e190=_0x16a774(),_0x1990fd=_0x1dc861['id'],_0x36f1f7=_0x155696?'insertion:'+_0x155696:'insertion',_0x59d172=this['_setSuggestionData']({'id':_0x12e190,'type':_0x36f1f7,'createdAt':new Date(),'authorId':_0x1990fd,'attributes':_0x5d7564});return this['_addSuggestionMarker'](_0x36f1f7,_0x12e190,_0x1990fd,_0xdbd4e7),_0x59d172;}['markMultiRangeInsertion'](_0x239426,_0x3e4ce2='multi',_0x56993a={}){const _0x424385=this['editor']['plugins']['get']('Users')['me'],_0x55d020=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x3e4ce2,'join');this['_trackingSessionId']&&(_0x56993a['trackingSessionId']=this['_trackingSessionId']);for(const _0xfcbf0c of this['getSuggestions']())if(_0xfcbf0c['author']['id']==_0x424385['id']&&'insertion'==_0xfcbf0c['type']&&_0xfcbf0c['subType']==_0x3e4ce2&&En(_0xfcbf0c,_0x56993a)&&(_0x55d020(_0xfcbf0c['getRanges'](),_0x239426)||_0x55d020(_0x239426,_0xfcbf0c['getRanges']()))){for(const _0x34af99 of _0x239426)_0xfcbf0c['addRange'](_0x34af99);return _0xfcbf0c;}for(const {suggestion:_0x35b67c,meta:_0x10b040}of this['_findSuggestions'](_0x239426,'insertion')){if(!_0x10b040['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x10b040['containsRangeInObject'])continue;if(!En(_0x35b67c,_0x56993a))continue;let _0x2a9178=!0x0;for(const _0x427549 of _0x35b67c['getRanges']())for(const _0x747a5e of _0x239426)if(!_0x427549['containsRange'](_0x747a5e)){_0x2a9178=!0x1;break;}if(_0x2a9178)return _0x35b67c;}const _0x2c20ad=_0x16a774(),_0x52ab92=_0x424385['id'],_0x3227e7='insertion:'+_0x3e4ce2,_0x5758d2=this['_setSuggestionData']({'id':_0x2c20ad,'type':_0x3227e7,'createdAt':new Date(),'authorId':_0x52ab92,'attributes':_0x56993a});for(const _0x1f1a42 of _0x239426)this['_addSuggestionMarker'](_0x3227e7,_0x2c20ad,_0x52ab92,_0x1f1a42,yt['getMultiRangeId']());return _0x5758d2;}['markInlineFormat'](_0x5ba3e4,_0x396a03,_0x41fccd=null,_0x4d4db2={}){if(_0x41fccd=_0x41fccd||cn(_0x396a03),_0x5ba3e4['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x4d4db2['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x4848c4=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x41fccd,'accept');return this['forceDefaultExecution'](()=>_0x4848c4([_0x5ba3e4],_0x396a03,_0x4d4db2)),null;}const _0x3e6a0e=this['editor']['plugins']['get']('Users')['me'],_0x272d52=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x3b7933,meta:_0x34d928}of this['_findSuggestions'](_0x5ba3e4,'insertion'))_0x34d928['isOwn']&&!_0x34d928['isInsideObject']&&_0x272d52['push'](..._0x3b7933['getRanges']());}const _0x558312=function(_0x1df23d,_0x4fc544){const _0x2fde52=[];for(const _0x1bccc6 of _0x4fc544){const _0x4d5ec6=_0x1df23d['getIntersection'](_0x1bccc6);_0x4d5ec6&&_0x2fde52['push'](_0x4d5ec6);}return _0x2fde52;}(_0x5ba3e4,_0x272d52),_0x56589b=function(_0x33ef05,_0x374e30){const _0x3a4e44=[_0x33ef05];for(const _0x458ba3 of _0x374e30){let _0x690a7a=0x0;for(;_0x690a7a<_0x3a4e44['length'];){const _0x43fd11=_0x3a4e44[_0x690a7a]['getDifference'](_0x458ba3);_0x3a4e44['splice'](_0x690a7a,0x1,..._0x43fd11),_0x690a7a+=_0x43fd11['length'];}}return _0x3a4e44;}(_0x5ba3e4,_0x272d52);_0x558312['length']&&this['_model']['change'](()=>{for(const _0x243170 of _0x558312){const _0x33a83c=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x41fccd,'accept');this['forceDefaultExecution'](()=>_0x33a83c([_0x243170],_0x396a03,_0x4d4db2));}});for(const _0x3a4015 of _0x56589b){let _0x416d79=null,_0x310661=_0x3a4015['start'],_0x47ccc1=_0x3a4015['end'];for(const {suggestion:_0x3b12f4,meta:_0x4ee8a1}of this['_findSuggestions'](_0x3a4015,'formatInline')){if(!_0x4ee8a1['isOwn'])continue;if(_0x3b12f4['subType']!=_0x41fccd)continue;if(!En(_0x3b12f4,_0x4d4db2))continue;const _0x3ac5ca=_0x3b12f4['getFirstRange']();if(_0x3ac5ca['containsRange'](_0x3a4015,!0x0))return null;_0x310661=_0x310661['isBefore'](_0x3ac5ca['start'])?_0x310661:_0x3ac5ca['start'],_0x47ccc1=_0x47ccc1['isAfter'](_0x3ac5ca['end'])?_0x47ccc1:_0x3ac5ca['end'],_0x416d79?_0x3ac5ca['start']['isBefore'](_0x416d79['getFirstRange']()['start'])?(_0x416d79['removeMarkers'](),_0x416d79=_0x3b12f4):_0x3b12f4['removeMarkers']():_0x416d79=_0x3b12f4;}const _0x5c3494=this['_model']['createRange'](_0x310661,_0x47ccc1);if(_0x416d79)this['_setSuggestionRange'](_0x416d79,_0x5c3494);else{const _0x1d75f9=_0x16a774(),_0x75f90e=_0x3e6a0e['id'];this['_setSuggestionData']({'id':_0x1d75f9,'type':'formatInline:'+_0x41fccd,'data':_0x396a03,'createdAt':new Date(),'authorId':_0x75f90e,'attributes':_0x4d4db2}),this['_addSuggestionMarker']('formatInline:'+_0x41fccd,_0x1d75f9,_0x75f90e,_0x5c3494);}}return null;}['markBlockFormat'](_0x3d27cb,_0xde94d5,_0x2319cf=[],_0x421cfb=null,_0x29e718={}){_0xde94d5['formatGroupId']||(_0xde94d5['formatGroupId']=_0xde94d5['commandName']),_0xde94d5['multipleBlocks']=_0x3d27cb['is']('range'),_0x421cfb=_0x421cfb||cn(_0xde94d5);const _0x5b9faf=_0x2319cf['map'](_0x19a1f2=>gn(_0x19a1f2,this['_model'])),_0x2b4305=_0x3d27cb['is']('range')?_0x3d27cb:gn(_0x3d27cb,this['_model']);if(this['_trackingSessionId']&&(_0x29e718['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x5a0276=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x421cfb,'accept');return this['forceDefaultExecution'](()=>_0x5a0276([_0x2b4305],_0xde94d5,_0x29e718)),null;}_0x5b9faf['push'](_0x2b4305);let _0x2ab9d8=!0x0;for(const _0x23656d of _0x5b9faf)if(!this['_rangeIsInLocalUserInsertion'](_0x23656d)){_0x2ab9d8=!0x1;break;}if(_0x2ab9d8&&'always'!==this['_trackFormatChanges']){const _0x3acc0b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x421cfb,'accept');return this['forceDefaultExecution'](()=>_0x3acc0b([_0x2b4305],_0xde94d5,_0x29e718)),null;}let _0x564781=null,_0x226de5=_0x2b4305['start'],_0x37cef4=_0x2b4305['end'];for(const {suggestion:_0x74ca1,meta:_0x54db3e}of this['_findSuggestions'](_0x2b4305,'formatBlock')){if(!_0x54db3e['isOwn'])continue;if(_0x54db3e['isNextTo']||_0x54db3e['containsRangeInObject']||_0x54db3e['isInsideObject'])continue;if(_0x74ca1['data']['formatGroupId']!=_0xde94d5['formatGroupId'])continue;if(!En(_0x74ca1,_0x29e718))continue;const _0x1fda36=_0x74ca1['getFirstRange']();if(_0x74ca1['subType']==_0x421cfb){if(_0x1fda36['containsRange'](_0x2b4305,!0x0))return null;_0x226de5=_0x226de5['isBefore'](_0x1fda36['start'])?_0x226de5:_0x1fda36['start'],_0x37cef4=_0x37cef4['isAfter'](_0x1fda36['end'])?_0x37cef4:_0x1fda36['end'],_0x564781?_0x1fda36['start']['isBefore'](_0x564781['getFirstRange']()['start'])?(_0x564781['removeMarkers'](),_0x564781=_0x74ca1):_0x74ca1['removeMarkers']():_0x564781=_0x74ca1;}else{const _0x1d2deb=_0x2b4305['getIntersection'](_0x1fda36);this['_cutOutSuggestionMarker'](_0x74ca1,_0x1d2deb);}}const _0x31833c=this['editor']['plugins']['get']('Users')['me'],_0x4456bb=_0x16a774(),_0x44eab2=_0x31833c['id'];if(_0x564781)return this['_setSuggestionRange'](_0x564781,this['_model']['createRange'](_0x226de5,_0x37cef4)),_0x564781;{const _0x26e94b=this['_setSuggestionData']({'id':_0x4456bb,'type':'formatBlock:'+_0x421cfb,'data':_0xde94d5,'createdAt':new Date(),'authorId':_0x44eab2,'attributes':_0x29e718});return this['_addSuggestionMarker']('formatBlock:'+_0x421cfb,_0x4456bb,_0x44eab2,this['_model']['createRange'](_0x226de5,_0x37cef4)),_0x26e94b;}}['markMultiRangeBlockFormat'](_0x2ce5ae,_0x44aeb8,_0x37b104=[],_0x4ba9de=null,_0x195ea1={}){_0x44aeb8['formatGroupId']||(_0x44aeb8['formatGroupId']=_0x44aeb8['commandName']);const _0x56bbe9=_0x2ce5ae[0x0];_0x44aeb8['multipleBlocks']=_0x56bbe9['is']('range'),_0x4ba9de=_0x4ba9de||cn(_0x44aeb8);const _0x4f206c=_0x37b104['map'](_0x39f2ed=>gn(_0x39f2ed,this['_model'])),_0x153d4f=_0x56bbe9['is']('range')?_0x2ce5ae:_0x2ce5ae['map'](_0xc76b30=>gn(_0xc76b30,this['_model']));if(this['_trackingSessionId']&&(_0x195ea1['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x2926d8=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4ba9de,'accept');return this['forceDefaultExecution'](()=>_0x2926d8(_0x153d4f,_0x44aeb8,_0x195ea1)),null;}_0x4f206c['push'](..._0x153d4f);let _0x4623f0=!0x0;for(const _0x45df68 of _0x4f206c)if(!this['_rangeIsInLocalUserInsertion'](_0x45df68)){_0x4623f0=!0x1;break;}if(_0x4623f0&&'always'!==this['_trackFormatChanges']){const _0x24b646=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4ba9de,'accept');return this['forceDefaultExecution'](()=>_0x24b646(_0x153d4f,_0x44aeb8,_0x195ea1)),null;}const _0x1f527d=this['editor']['plugins']['get']('Users')['me'];for(const _0x1df40d of this['getSuggestions']()){const _0x3a6903=_0x1df40d['data'];if(_0x1df40d['author']['id']!=_0x1f527d['id'])continue;if('formatBlock'!=_0x1df40d['type']||_0x3a6903['formatGroupId']!=_0x44aeb8['formatGroupId'])continue;if(!En(_0x1df40d,_0x195ea1))continue;const _0x1f33de=_0x1df40d['subType']==_0x4ba9de;for(let _0x1fc14d=0x0;_0x1fc14d<_0x153d4f['length'];_0x1fc14d++){const _0x5541f5=_0x153d4f[_0x1fc14d];for(const _0x247dfd of _0x1df40d['getMarkers']()){const _0x3c17f6=_0x247dfd['getRange']();if(_0x5541f5['isEqual'](_0x3c17f6)){_0x1f33de?(_0x153d4f['splice'](_0x1fc14d,0x1),_0x1fc14d--):_0x1df40d['removeMarker'](_0x247dfd['name']);break;}}}}if(0x0==_0x153d4f['length'])return null;const _0x3f9025=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4ba9de,'join');for(const _0x8cc2ad of this['getSuggestions']()){const _0x5a871d=_0x8cc2ad['data'];if(_0x8cc2ad['author']['id']==_0x1f527d['id']&&('formatBlock'==_0x8cc2ad['type']&&_0x5a871d['formatGroupId']==_0x44aeb8['formatGroupId']&&_0x8cc2ad['subType']==_0x4ba9de&&En(_0x8cc2ad,_0x195ea1)&&(_0x3f9025(_0x8cc2ad['getRanges'](),_0x153d4f)||_0x3f9025(_0x153d4f,_0x8cc2ad['getRanges']())))){for(const _0x1e6abe of _0x153d4f)_0x8cc2ad['addRange'](_0x1e6abe);return _0x8cc2ad;}}const _0x4a6666=_0x16a774(),_0x59bc3f=_0x1f527d['id'],_0x532480='formatBlock:'+_0x4ba9de,_0x369ca7=this['_setSuggestionData']({'id':_0x4a6666,'type':_0x532480,'data':_0x44aeb8,'createdAt':new Date(),'authorId':_0x59bc3f,'attributes':_0x195ea1});for(const _0x2365ea of _0x153d4f)this['_addSuggestionMarker'](_0x532480,_0x4a6666,_0x59bc3f,_0x2365ea,yt['getMultiRangeId']());return _0x369ca7;}['markDeletion'](_0x178b20,_0x5b7076=null,_0x588b04={}){if(_0x178b20['isCollapsed'])return null;const _0x41c0c7=this['editor']['plugins']['get']('Users')['me'],_0x1fe403=new rt(_0x178b20['start'],_0x178b20['end']);this['_trackingSessionId']&&(_0x588b04['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x396bc4,meta:_0x3cc402}of this['_findSuggestions'](_0x1fe403,'insertion'))if(_0x3cc402['isOwn']&&!_0x3cc402['isNextTo']){if(_0x396bc4['isMultiRange']){const _0x4af26b=_0x396bc4['getRanges']()['filter'](_0x21c4c0=>'$graveyard'!=_0x21c4c0['root']['rootName']);if(_0x4af26b['every'](_0x5011b0=>_0x1fe403['containsRange'](_0x5011b0,!0x0))&&_0x396bc4['discard'](),_0x4af26b['some'](_0x5e8a4e=>_0x5e8a4e['containsRange'](_0x1fe403,!0x0))){const _0x4cda79=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5b7076,'accept');return this['forceDefaultExecution'](()=>_0x4cda79([_0x1fe403],null,_0x588b04)),null;}}else{const _0x332b29=_0x1fe403['getIntersection'](_0x396bc4['getFirstRange']());null!==_0x332b29&&_0x396bc4['_onDiscard']([_0x332b29],null,_0x588b04);}}if(_0x1fe403['detach'](),_0x1fe403['isCollapsed']||'$graveyard'==_0x1fe403['root']['rootName'])return null;let _0x44dc70=null,_0x55b120=_0x1fe403['start'],_0x36b0ef=_0x1fe403['end'];const _0x3fb6b2=this['_findSuggestions'](_0x1fe403,'deletion');for(const {suggestion:_0x145dab,meta:_0x51ff38}of _0x3fb6b2){const _0x1185fb=this['_model']['createRange'](_0x55b120,_0x36b0ef);if(_0x51ff38['isOwn']&&(this['_mergeNestedSuggestions']||!_0x51ff38['containsRangeInObject']&&!_0x51ff38['isInsideObject'])){if(_0x145dab['isMultiRange']){if(!En(_0x145dab,_0x588b04))continue;let _0x19da44=!0x0;for(const _0x326b66 of _0x145dab['getRanges']()){if(_0x326b66['containsRange'](_0x1185fb,!0x0))return _0x145dab;_0x1185fb['containsRange'](_0x326b66)||(_0x19da44=!0x1);}_0x19da44&&_0x145dab['discard']();}else{const _0x2215ca=_0x145dab['getFirstRange']();if(_0x2215ca['containsRange'](_0x1185fb,!0x0))return _0x145dab;if(!En(_0x145dab,_0x588b04)){_0x1185fb['containsRange'](_0x2215ca)?_0x145dab['removeMarkers']():_0x2215ca['containsPosition'](_0x55b120)?_0x55b120=_0x2215ca['end']:_0x2215ca['containsPosition'](_0x36b0ef)&&(_0x36b0ef=_0x2215ca['start']);continue;}_0x55b120=_0x55b120['isBefore'](_0x2215ca['start'])?_0x55b120:_0x2215ca['start'],_0x36b0ef=_0x36b0ef['isAfter'](_0x2215ca['end'])?_0x36b0ef:_0x2215ca['end'],_0x588b04=Object['assign']({},_0x145dab['attributes']),_0x44dc70?_0x2215ca['start']['isBefore'](_0x44dc70['getFirstRange']()['start'])?(_0x44dc70['removeMarkers'](),_0x44dc70=_0x145dab):_0x145dab['removeMarkers']():_0x44dc70=_0x145dab;}}}if(_0x44dc70)return this['_setSuggestionRange'](_0x44dc70,this['_model']['createRange'](_0x55b120,_0x36b0ef)),_0x44dc70;{const _0x3186dc=_0x16a774(),_0x46a3f0=this['_model']['createRange'](_0x55b120,_0x36b0ef),_0x2998c3=_0x41c0c7['id'],_0x25c3f5=_0x5b7076?'deletion:'+_0x5b7076:'deletion',_0x1d2343=this['_setSuggestionData']({'id':_0x3186dc,'type':_0x25c3f5,'createdAt':new Date(),'authorId':_0x2998c3,'attributes':_0x588b04});return this['_addSuggestionMarker'](_0x25c3f5,_0x3186dc,_0x2998c3,_0x46a3f0),_0x1d2343;}}['markMultiRangeDeletion'](_0x430031,_0x52d03d='multi',_0x56eab0={}){const _0x5b688a=this['editor']['plugins']['get']('Users')['me'],_0x35e04f=_0x430031['map'](_0x290658=>new rt(_0x290658['start'],_0x290658['end'])),_0x405ab1=new Set();this['_trackingSessionId']&&(_0x56eab0['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x2460cc,meta:_0x12aec8}of this['_findSuggestions'](_0x35e04f,'insertion'))_0x12aec8['isOwn']&&!_0x12aec8['isNextTo']&&_0x405ab1['add'](_0x2460cc);for(const _0x3fe2a1 of _0x405ab1)if(_0x3fe2a1['isMultiRange']){const _0x38fa91=_0x3fe2a1['getRanges']();if(_0x3fe2a1['attributes']&&_0x3fe2a1['attributes']['skipNestingCheck']||_0x38fa91['every'](_0x58488c=>_0x35e04f['some'](_0x47053a=>_0x47053a['containsRange'](_0x58488c,!0x0)))&&_0x3fe2a1['discard'](),_0x35e04f['every'](_0x10c6fd=>_0x38fa91['some'](_0x50ad19=>_0x50ad19['containsRange'](_0x10c6fd,!0x0)))){const _0x18dadc=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x52d03d,'accept');return this['forceDefaultExecution'](()=>_0x18dadc(_0x430031,null,_0x56eab0)),null;}}else{const _0x1d377a=_0x3fe2a1['getFirstRange']();if(_0x35e04f['some'](_0x570320=>_0x570320['containsRange'](_0x1d377a,!0x0))&&_0x3fe2a1['discard'](),_0x35e04f['every'](_0x2b5c07=>_0x1d377a['containsRange'](_0x2b5c07,!0x0))){const _0x2f149e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x52d03d,'accept');return this['forceDefaultExecution'](()=>_0x2f149e(_0x35e04f,null,_0x56eab0)),null;}}const _0x1540ef=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x52d03d,'join');let _0x526886=null;for(const _0x35062c of this['getSuggestions']())if(_0x35062c['author']['id']==_0x5b688a['id']&&_0x35062c['isInContent']&&'deletion'==_0x35062c['type']&&_0x35062c['subType']==_0x52d03d&&En(_0x35062c,_0x56eab0)&&(_0x1540ef(_0x35062c['getRanges'](),_0x35e04f)||_0x1540ef(_0x35e04f,_0x35062c['getRanges']()))){if(_0x526886){if(_0x35062c['commentThread']&&_0x35062c['commentThread']['length'])continue;for(const _0x5e767e of _0x35062c['getRanges']())_0x526886['isIntersectingWithRange'](_0x5e767e)||_0x526886['addRange'](_0x5e767e);_0x35062c['removeMarkers']();}else{_0x526886=_0x35062c;for(const _0x55f67b of _0x35e04f)_0x35062c['isIntersectingWithRange'](_0x55f67b)||_0x35062c['addRange'](_0x55f67b);}}if(_0x526886)return _0x526886;_0x405ab1['clear']();for(const {suggestion:_0x76d1de,meta:_0x74b2bc}of this['_findSuggestions'](_0x35e04f,'deletion'))_0x74b2bc['isOwn']&&(this['_mergeNestedSuggestions']||!_0x74b2bc['containsRangeInObject']&&!_0x74b2bc['isInsideObject'])&&En(_0x76d1de,_0x56eab0)&&_0x405ab1['add'](_0x76d1de);for(const _0x4bfd4b of _0x405ab1){const _0x4a611e=_0x4bfd4b['getRanges']();if((!_0x56eab0||!_0x56eab0['skipNestingCheck'])&&_0x35e04f['every'](_0x31c236=>_0x4a611e['some'](_0x3680db=>_0x3680db['containsRange'](_0x31c236,!0x0))))return _0x4bfd4b;_0x4bfd4b['attributes']&&_0x4bfd4b['attributes']['skipNestingCheck']||_0x4a611e['every'](_0x45bec4=>_0x35e04f['some'](_0x350a69=>_0x350a69['containsRange'](_0x45bec4,!0x0)))&&_0x4bfd4b['discard']();}const _0x70591a=_0x16a774(),_0x2b5645=_0x5b688a['id'],_0x2fcb65='deletion:'+_0x52d03d,_0x127bb6=this['_setSuggestionData']({'id':_0x70591a,'type':_0x2fcb65,'createdAt':new Date(),'authorId':_0x2b5645,'attributes':_0x56eab0});for(const _0x21e7ce of _0x35e04f)_0x21e7ce['detach'](),_0x21e7ce['isCollapsed']||'$graveyard'==_0x21e7ce['root']['rootName']||this['_addSuggestionMarker'](_0x2fcb65,_0x70591a,_0x2b5645,_0x21e7ce,yt['getMultiRangeId']());return _0x127bb6;}['markAttributeChange'](_0x319e29,_0x5672da,_0x50ca84,_0x4477ab,_0x499b02){if(_0x319e29['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x356533=this['editor']['plugins']['get']('Users')['me']['id'],_0x336de8=Array['from'](this['_suggestions']['values']())['filter'](_0x48c659=>'attribute'==_0x48c659['type']&&_0x48c659['data']['key']==_0x5672da&&_0x48c659['isIntersectingWithRange'](_0x319e29));if(this['_trackingSessionId']&&(_0x499b02['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x1995df=this['_findSuggestions'](_0x319e29,'insertion')['filter'](({meta:_0xff1861})=>_0xff1861['isOwn']&&!_0xff1861['isInsideObject']&&!_0xff1861['isNextTo'])['map'](({suggestion:_0x53cc71})=>_0x53cc71);_0x336de8['unshift'](..._0x1995df);}const _0x4ff63d=new Map([[_0x319e29,_0x50ca84]]);for(const _0x45cfe3 of _0x336de8){const _0x21bb74='attribute'==_0x45cfe3['type']?_0x45cfe3['data']['oldValue']:void 0x0,_0x31b18e=_0x45cfe3['getFirstRange'](),_0x7a84e1=Array['from'](_0x4ff63d['keys']())['find'](_0x4be41a=>_0x4be41a['isIntersecting'](_0x31b18e));if(!_0x7a84e1)continue;const _0x1f1f50=_0x7a84e1['getDifference'](_0x31b18e);this['_suggestionsConversion']['isBlockAttribute'](_0x5672da)&&'insertion'==_0x45cfe3['type']&&0x0!=_0x1f1f50['length']||(_0x4ff63d['delete'](_0x7a84e1),_0x1f1f50['forEach'](_0x2d758d=>{_0x4ff63d['set'](_0x2d758d,_0x50ca84);}),'insertion'!=_0x45cfe3['type']&&_0x21bb74!=_0x4477ab&&_0x4ff63d['set'](_0x7a84e1['getIntersection'](_0x31b18e),_0x21bb74));}const _0x1cf408=[];for(const [_0x3e79f1,_0x1c8cdb]of _0x4ff63d){const _0x3a18e2=_0x16a774(),_0x56707e={'key':_0x5672da,'oldValue':_0x1c8cdb,'newValue':_0x4477ab};_0x5672da['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':_0x5672da});const _0x295922=('attribute:'+_0x5672da+'|'+cn({'newValue':_0x4477ab}))['substring'](0x0,0x3c),_0x5eb6d6=this['_setSuggestionData']({'id':_0x3a18e2,'type':_0x295922,'data':_0x56707e,'createdAt':new Date(),'authorId':_0x356533,'attributes':_0x499b02});_0x1cf408['push'](_0x5eb6d6),this['_addSuggestionMarker'](_0x295922,_0x3a18e2,_0x356533,_0x3e79f1);}return _0x1cf408;}['enableDefaultAttributesIntegration'](_0x36ecb9){this['enableCommand'](_0x36ecb9,(_0x56b5a5,..._0x34a15c)=>{this['recordAttributeChanges'](()=>{_0x56b5a5(..._0x34a15c);});});}['startTrackingSession'](_0x3487a6){return this['_trackingSessionId']=void 0x0!==_0x3487a6?_0x3487a6:_0x16a774(),this['_trackingSessionId'];}['_getAttributeKey'](_0xe53cfb){return'attribute'==_0xe53cfb['type']?_n(_0xe53cfb['subType']):null;}['_applyOperationsAsSuggestions'](_0x5941aa){if(0x0==_0x5941aa['length'])return;const _0x2315da=this['editor'],_0x4e079a=_0x2315da['plugins']['get'](_0xa07744),_0x14d0d9=[],_0x2f2b9a=_0x25a42e=>{const _0x58ecd5=_0x25a42e['_aiSource'];return _0x58ecd5?{'@ai':{'type':_0x58ecd5}}:{};},_0x556fc0=(_0x3e6282,_0x1e2059,_0x1fd64b)=>{for(let _0x1324e7=_0x1e2059;_0x1324e7<_0x3e6282['operations']['length'];_0x1324e7++){const _0x89b3e1=_0x3e6282['operations'][_0x1324e7];'marker'===_0x89b3e1['type']&&(_0x89b3e1['_aiSource']=_0x1fd64b);}};_0x2315da['model']['change'](_0x4682cc=>{for(let _0x1fc7b9=0x0;_0x1fc7b9<_0x5941aa['length'];_0x1fc7b9++){const _0x11bdde=_0x5941aa[_0x1fc7b9],_0x109930=_0x11bdde['_aiSource'],_0x4b2c09=_0x4682cc['batch']['operations']['length'];if(_0x11bdde['baseVersion']=_0x2315da['model']['document']['version'],_0x11bdde['isDocumentOperation']=!0x0,_0x4e079a['isMarkedRemoveOperation'](_0x11bdde)){const _0x5a2b41=_0x969e63(_0x11bdde['newRange'],_0x2315da['model']);_0x14d0d9['unshift']({'range':rt['fromRange'](_0x5a2b41),'opAttributes':_0x2f2b9a(_0x11bdde),'aiSource':_0x109930});}else{switch(_0x11bdde['type']){case'rename':{const _0x1498bd=_0x11bdde['oldName'],_0x2e0364=_0x11bdde['newName'];if(_0x1498bd==_0x2e0364)break;_0x4682cc['batch']['addOperation'](_0x11bdde),_0x2315da['model']['applyOperation'](_0x11bdde);const _0x13e2f3='$elementName',_0x14aa00=_0x11bdde['position'],_0x3fded1=_0x2315da['model']['createRange'](_0x14aa00,_0x2315da['model']['createPositionAt'](_0x14aa00['nodeAfter'],'end'));this['markAttributeChange'](_0x3fded1,_0x13e2f3,_0x1498bd,_0x2e0364,{..._0x2f2b9a(_0x11bdde),'groupId':_0x16a774()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x5ca73e=_0x11bdde['oldValue'],_0x1e4b28=_0x11bdde['newValue'];if(_0x5ca73e==_0x1e4b28)break;_0x4682cc['batch']['addOperation'](_0x11bdde),_0x2315da['model']['applyOperation'](_0x11bdde);const _0x2d4fb7=_0x11bdde['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x2d4fb7))break;const _0x3f0417=_0x969e63(_0x11bdde['range'],_0x2315da['model']);this['markAttributeChange'](_0x3f0417,_0x2d4fb7,_0x5ca73e,_0x1e4b28,{..._0x2f2b9a(_0x11bdde),'groupId':_0x16a774()});break;}case'insert':{if(_0x4682cc['batch']['addOperation'](_0x11bdde),_0x2315da['model']['applyOperation'](_0x11bdde),_0x5941aa[_0x1fc7b9+0x1]&&'move'==_0x5941aa[_0x1fc7b9+0x1]['type'])break;const _0x34d9f6=_0x11bdde['position'],_0x2b400c=_0x11bdde['howMany'],_0xa0f31b=_0x969e63(_0x2315da['model']['createRange'](_0x34d9f6,_0x34d9f6['getShiftedBy'](_0x2b400c)),_0x2315da['model']);this['markInsertion'](_0xa0f31b,null,{..._0x2f2b9a(_0x11bdde)});break;}case'split':{_0x4682cc['batch']['addOperation'](_0x11bdde),_0x2315da['model']['applyOperation'](_0x11bdde);const _0x3d30bd=_0x11bdde['splitPosition'],_0x312087=_0x11bdde['moveTargetPosition'],_0x2ef129=_0x2315da['model']['createRange'](_0x3d30bd,_0x312087);this['markInsertion'](_0x2ef129,null,{..._0x2f2b9a(_0x11bdde)});break;}case'move':case'remove':_0x4682cc['batch']['addOperation'](_0x11bdde),_0x2315da['model']['applyOperation'](_0x11bdde);}_0x109930&&_0x556fc0(_0x4682cc['batch'],_0x4b2c09,_0x109930);}}for(const {range:_0x5cac0e,opAttributes:_0x104c3d,aiSource:_0x138dd2}of _0x14d0d9){const _0x4a4493=_0x4682cc['batch']['operations']['length'];_0x5cac0e['detach'](),this['markDeletion'](_0x5cac0e,null,{..._0x104c3d}),_0x138dd2&&_0x556fc0(_0x4682cc['batch'],_0x4a4493,_0x138dd2);}});}['_setSuggestionRange'](_0x1e38c8,_0x4836d8){const _0x5305da=_0x1e38c8['getFirstMarker']();this['_model']['change'](_0x11f25d=>{_0x11f25d['updateMarker'](_0x5305da,{'range':_0x4836d8});});}['_addThreadToSuggestion'](_0x234af3){const _0x4f4002=_0x234af3['id'],_0x1968fe=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x4f4002)||this['_commentsRepository']['addCommentThread']({'channelId':_0x1968fe,'threadId':_0x4f4002,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x44eff4=this['_commentsRepository']['getCommentThread'](_0x4f4002);_0x44eff4['unbind']('isRemovable'),_0x44eff4['isRemovable']=!0x1,_0x234af3['commentThread']=_0x44eff4;}['_checkSuggestionCorrectness'](_0x39be0e,_0x26b5ee,_0x11ab5b,_0x301e8a){if(_0x39be0e['type']!=_0x26b5ee||_0x39be0e['subType']!=_0x11ab5b||_0x39be0e['creator']['id']!=_0x301e8a)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x5b3612('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x306a42,_0x272c24){const _0xabc763=_0x306a42['getFirstRange']();if(_0x272c24['isEqual'](_0xabc763))_0x306a42['removeMarkers']();else{if(_0xabc763['containsRange'](_0x272c24)){const _0x130657=this['_model']['createPositionAt'](_0x272c24['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x306a42,this['_model']['createRange'](_0xabc763['start'],_0x130657));const _0x53abf1=_0x16a774(),_0x22dfa4=_0x306a42['creator']['id'],_0x14f726=_0x306a42['type']+':'+_0x306a42['subType'];this['_setSuggestionData']({'id':_0x53abf1,'type':_0x14f726,'createdAt':new Date(),'authorId':_0x22dfa4,'data':_0x306a42['data'],'attributes':_0x306a42['attributes']});const _0x8f6d5=this['_model']['createPositionAt'](_0x272c24['end']['parent'],'after'),_0x5e3c2d=this['_model']['createRange'](_0x8f6d5,_0xabc763['end']);this['_addSuggestionMarker'](_0x14f726,_0x53abf1,_0x22dfa4,_0x5e3c2d);}else{if(_0xabc763['containsPosition'](_0x272c24['start'])){const _0x3ab6a0=this['_model']['createPositionAt'](_0x272c24['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x306a42,this['_model']['createRange'](_0xabc763['start'],_0x3ab6a0));}else{const _0x25a407=this['_model']['createPositionAt'](_0x272c24['end']['parent'],'after');this['_setSuggestionRange'](_0x306a42,this['_model']['createRange'](_0x25a407,_0xabc763['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x42b586){for(const {suggestion:_0xcb9743,meta:_0x201181}of this['_findSuggestions'](_0x42b586,'insertion')){if(!_0x201181['isOwn'])continue;const _0x12da8d=_0xcb9743['getRanges']();for(const _0x651b95 of _0x12da8d)if(!_0x42b586['getDifference'](_0x651b95)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x117bb2){return this['editor']['plugins']['get']('Users')['getUser'](_0x117bb2);}['_getExternalAuthor'](_0x44bef2){const _0x4904ef=this['editor']['plugins']['get']('Users'),_0x5793dc=_0x214776('external:'+_0x44bef2),_0x41fbf4=_0x4904ef['getUser'](_0x5793dc);return _0x41fbf4||_0x4904ef['addUser']({'id':_0x5793dc,'name':_0x44bef2});}['_createSuggestion'](_0x2ceeee,_0x412f03,_0x4d5efb,_0x2943ea,_0x25f997,_0x131208){const _0x249008=this['_getAuthorFromId'](_0x2943ea);if(!_0x249008)throw new _0x5b3612('track-changes-user-not-found',this,{'authorId':_0x2943ea,'suggestionId':_0x4d5efb});const _0xa0656a=this['_suggestionFactory']['buildSuggestion'](_0x2ceeee,_0x412f03,_0x4d5efb,_0x249008,_0x25f997,_0x36f2a9=>{this['_updateSuggestionData'](_0x4d5efb,{'attributes':_0x36f2a9});const _0x4e04e7=this['getSuggestion'](_0x4d5efb);this['_joinWithAdjacentSuggestions'](new Set([_0x4e04e7])),this['_refreshSuggestionsChain'](new Set([_0x4e04e7]));},_0x131208);return this['listenTo'](_0xa0656a,'accept',()=>{this['_updateSuggestionData'](_0x4d5efb,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0xa0656a,'discard',()=>{this['_updateSuggestionData'](_0x4d5efb,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x4d5efb,_0xa0656a),this['_suggestionState']['set'](_0xa0656a,'notReady'),_0xa0656a;}['_breakSuggestionMarker'](_0x12db15,_0xa77b4b,_0x514982){const _0x5b9f54=_0x12db15['getFirstRange'](),_0x57cdf2=_0x5b9f54['start'],_0x538326=_0x5b9f54['end'];this['_setSuggestionRange'](_0x12db15,this['_model']['createRange'](_0x57cdf2,_0xa77b4b));const _0x245ee3=_0x16a774(),_0xfa94fb=_0x12db15['creator']['id'],_0x1aa303=_0x12db15['type']+(_0x12db15['subType']?':'+_0x12db15['subType']:'');this['_setSuggestionData']({'id':_0x245ee3,'type':_0x1aa303,'createdAt':new Date(),'authorId':_0xfa94fb,'originalSuggestionId':_0x12db15['_originalSuggestionId']||_0x12db15['id'],'attributes':_0x12db15['attributes'],'data':_0x12db15['data']});const _0x4af376=this['_getAttributeKey'](_0x12db15);('formatBlock'==_0x12db15['type']||_0x4af376&&this['_suggestionsConversion']['isBlockAttribute'](_0x4af376))&&(_0x514982=this['_model']['createPositionBefore'](_0x514982['parent'])),this['_addSuggestionMarker'](_0x1aa303,_0x245ee3,_0xfa94fb,this['_model']['createRange'](_0x514982,_0x538326));}['_findSuggestions'](_0x326eac,_0xbc9585=null){const _0x447227=[],_0x5bd846=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x326eac)||(_0x326eac=[_0x326eac]);for(const _0x50d841 of this['getSuggestions']()){if(!_0x50d841['isInContent'])continue;if(_0xbc9585&&_0x50d841['type']!=_0xbc9585)continue;let _0x466c2a=!0x1;for(const _0x2543fe of _0x50d841['getRanges']()){for(const _0x37ad92 of _0x326eac){const _0x3794e7=_0x37ad92['start']['isEqual'](_0x2543fe['end'])||_0x37ad92['end']['isEqual'](_0x2543fe['start']);if(_0x3794e7||_0x37ad92['getIntersection'](_0x2543fe)){const _0x206733=_0x37ad92['containsRange'](_0x2543fe)&&rn(this['_model']['schema'],_0x2543fe['start'],_0x37ad92),_0x14711d=_0x2543fe['containsRange'](_0x37ad92)&&rn(this['_model']['schema'],_0x37ad92['start'],_0x2543fe);_0x447227['push']({'suggestion':_0x50d841,'meta':{'isOwn':_0x5bd846==_0x50d841['author'],'isNextTo':_0x3794e7,'isInsideObject':_0x206733,'containsRangeInObject':_0x14711d}}),_0x466c2a=!0x0;break;}}if(_0x466c2a)break;}}return _0x447227;}['_addSuggestionMarker'](_0x238c45,_0x4c122e,_0x31949d,_0x2dbe1d,_0x2d716d){this['_model']['change'](_0x5aceb7=>{let _0x222e6c='suggestion:'+_0x238c45+':'+_0x4c122e+':'+_0x31949d;_0x2d716d&&(_0x222e6c=_0x222e6c+':'+_0x2d716d),_0x5aceb7['addMarker'](_0x222e6c,{'range':_0x2dbe1d,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x2fc2bc){const _0x5a5b37=_0x2fc2bc['previous'],_0x15811a=_0x2fc2bc['next'];_0x2fc2bc['previous']=null,_0x2fc2bc['next']=null,null!=_0x5a5b37&&_0x5a5b37['next']==_0x2fc2bc&&(_0x5a5b37['next']=_0x15811a),null!=_0x15811a&&_0x15811a['previous']==_0x2fc2bc&&(_0x15811a['previous']=_0x5a5b37),'ready'==this['_suggestionState']['get'](_0x2fc2bc)&&(this['_suggestionState']['set'](_0x2fc2bc,'removed'),this['fire']('suggestionUnloaded',_0x2fc2bc,_0x5a5b37,_0x15811a));}['_setSuggestionData'](_0x13a3ba){const _0x4aa69b=_0x13a3ba['id'],_0x1ed3b9=this['addSuggestionData'](_0x13a3ba);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x22b7a9=this['editor']['plugins']['get']('PendingActions'),_0x53c725=_0x1ed3b9['hasComments'],_0x4f3f50=_0x1ed3b9['subType']?_0x1ed3b9['type']+':'+_0x1ed3b9['subType']:_0x1ed3b9['type'],_0x512d70=this['editor']['locale'],_0x1452b3=_0x22b7a9['add'](St(_0x512d70,'PENDING_ACTION_SUGGESTION')),_0x3a8672={'id':_0x4aa69b,'type':_0x4f3f50,'hasComments':_0x53c725,'data':_0x13a3ba['data']||null,'originalSuggestionId':_0x13a3ba['originalSuggestionId']||null,'attributes':_0x1ed3b9['attributes']};this['_adapter']['addSuggestion'](_0x3a8672)['then'](_0x4e47ea=>{_0x1ed3b9['_saved']=!0x0,_0x22b7a9['remove'](_0x1452b3),_0x4e47ea&&_0x4e47ea['createdAt']&&(this['_suggestions']['get'](_0x4aa69b)['createdAt']=_0x4e47ea['createdAt']);})['catch'](_0x3ba5ea=>{throw _0xd5a78a('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x1ed3b9['discard']();}),_0x1ed3b9['stopListening'](),this['_suggestions']['delete'](_0x1ed3b9['id']),this['_suggestionState']['delete'](_0x1ed3b9),_0x3ba5ea;});}return _0x1ed3b9;}['_updateSuggestionData'](_0x5898e5,_0x2058ec){const _0x54ee20=this['editor']['plugins']['get']('PendingActions'),_0xb85525=this['getSuggestion'](_0x5898e5);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0xb85525['_saved']){const _0x1b984d=_0x54ee20['add'](St(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x5898e5,_0x2058ec)['then'](()=>{_0x54ee20['remove'](_0x1b984d);});}else _0xb85525['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x5898e5,_0x2058ec);});}}['_getSuggestionData'](_0x58092b){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x5b3612('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x58092b);}['_handleNewSuggestionMarker'](_0x1583ae){const {id:_0x4d5227,type:_0x1881d2,subType:_0x3155de,authorId:_0x3fc8fe}=tt(_0x1583ae),_0x519721=this['_suggestions']['get'](_0x4d5227)||this['_createSuggestion'](_0x1881d2,_0x3155de,_0x4d5227,_0x3fc8fe,{});switch(this['_checkSuggestionCorrectness'](_0x519721,_0x1881d2,_0x3155de,_0x3fc8fe),this['_suggestionState']['get'](_0x519721)){case'notReady':this['_getSuggestionData'](_0x4d5227)['then'](_0x4c9905=>{let _0x338fe4=Promise['resolve']();_0x4c9905['hasComments']&&(_0x338fe4=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x4d5227})),_0x338fe4['then'](()=>{this['addSuggestionData'](_0x4c9905)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x519721,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x4d5227,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x519721,'ready'),this['fire']('suggestionLoaded',_0x519721);break;case'ready':this['fire']('suggestionChanged',_0x519721);}return _0x519721['addMarkerName'](_0x1583ae),_0x519721;}['_refreshSuggestionsChain'](_0x46caf4){const _0x570f7a=Array['from'](_0x46caf4),_0x1f2869=_0x570f7a['filter'](_0x312948=>'attribute'==_0x312948['type']);this['_refreshAttributeSuggestionsChain'](_0x1f2869);const _0x1d602e=_0x570f7a['filter'](_0x5dd2ca=>!_0x5dd2ca['isMultiRange']&&'attribute'!=_0x5dd2ca['type']),_0x1efeba=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x42a8d9=>!_0x42a8d9['isMultiRange']&&'attribute'!=_0x42a8d9['type']),_0x1a3a26=_0x1efeba['filter'](_0x167a58=>!_0x46caf4['has'](_0x167a58)),_0x140302=new Map(_0x1efeba['map'](_0x1c6588=>[_0x1c6588,this['_suggestionFactory']['getSuggestionCallback'](_0x1c6588['type'],_0x1c6588['subType'],'chain')])),_0x4a9055=new Map(_0x1efeba['map'](_0x4bbb8a=>[_0x4bbb8a,_0x4bbb8a['getFirstRange']()])),_0x3dc107=new Set(),_0x23c181=new Set();for(let _0x109d23=0x0;_0x109d23<_0x1d602e['length'];_0x109d23++)_0x19343f(_0x1d602e[_0x109d23],_0x1d602e,_0x109d23+0x1);for(let _0xa6491=0x0;_0xa6491<_0x1d602e['length'];_0xa6491++)_0x19343f(_0x1d602e[_0xa6491],_0x1a3a26,0x0);const _0x389987=new Set();for(let _0x29517a=0x0;_0x29517a<_0x1d602e['length'];_0x29517a++){const _0x227873=_0x1d602e[_0x29517a];!_0x23c181['has'](_0x227873)&&_0x227873['previous']&&(_0x389987['add'](_0x227873['previous']),_0x227873['previous']['next']===_0x227873&&(_0x227873['previous']['next']=null),_0x227873['previous']=null),!_0x3dc107['has'](_0x227873)&&_0x227873['next']&&(_0x389987['add'](_0x227873['next']),_0x227873['next']['previous']===_0x227873&&(_0x227873['next']['previous']=null),_0x227873['next']=null);}function _0x19343f(_0x1e7662,_0x5b9831,_0x6646f9){for(let _0x26cc54=_0x6646f9;_0x26cc54<_0x5b9831['length'];_0x26cc54++){const _0x5aa452=_0x518692(_0x1e7662,_0x5b9831[_0x26cc54]);_0x5aa452&&(_0x5aa452[0x0]['next']=_0x5aa452[0x1],_0x5aa452[0x1]['previous']=_0x5aa452[0x0],_0x3dc107['add'](_0x5aa452[0x0]),_0x23c181['add'](_0x5aa452[0x1]));}}function _0x518692(_0x2fc4a8,_0x31592e){if(_0x2fc4a8['author']['id']!==_0x31592e['author']['id'])return null;const _0x473523=_0x140302['get'](_0x2fc4a8)(_0x2fc4a8,_0x31592e,_0x4a9055['get'](_0x2fc4a8),_0x4a9055['get'](_0x31592e));return _0x473523&&_0x140302['get'](_0x31592e)(_0x2fc4a8,_0x31592e,_0x4a9055['get'](_0x2fc4a8),_0x4a9055['get'](_0x31592e))?_0x473523[0x1]['commentThread']&&_0x473523[0x1]['commentThread']['length']?null:_0x473523:null;}_0x389987['size']&&this['_refreshSuggestionsChain'](_0x389987);}['_refreshAttributeSuggestionsChain'](_0xf729dc){if(0x0==_0xf729dc['length'])return;const _0x5849f8=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x46a526=>'attribute'==_0x46a526['type']&&_0x46a526['_isDataLoaded']),_0x13e0c9=[],_0x24ee61=new Map();for(const _0x23e658 of _0x5849f8){const _0x466543=_0x214776(_0x23e658['attributes']);_0x24ee61['has'](_0x466543)||(_0x24ee61['set'](_0x466543,_0x13e0c9['length']),_0x13e0c9['push']([])),_0x13e0c9[_0x24ee61['get'](_0x466543)]['push'](_0x23e658);}!(function(){_0x13e0c9['sort']((_0x597324,_0x36a6c6)=>{const _0x47d889=_0x597324[0x0]['createdAt'],_0x83b3be=_0x36a6c6[0x0]['createdAt'];return _0x47d889==_0x83b3be?_0x597324[0x0]['attributes']['groupId']<_0x36a6c6[0x0]['attributes']['groupId']?-0x1:0x1:_0x47d889<_0x83b3be?-0x1:0x1;});for(const _0x23ec22 of _0x13e0c9)_0x23ec22['sort']((_0x547d2a,_0x2948b9)=>_0x547d2a['id']<_0x2948b9['id']?-0x1:0x1);}());for(let _0x6e03d7=0x0;_0x6e03d7<_0x13e0c9['length'];_0x6e03d7++){if(0x0==_0x13e0c9[_0x6e03d7]['length'])continue;const _0x3e88db=[];for(let _0x518d35=_0x6e03d7+0x1;_0x518d35<_0x13e0c9['length'];_0x518d35++)0x0!=_0x13e0c9[_0x518d35]['length']&&_0x857b2c(_0x13e0c9[_0x6e03d7],_0x13e0c9[_0x518d35])&&_0x3e88db['push'](_0x518d35);for(const _0x3a5572 of _0x3e88db)_0x13e0c9[_0x6e03d7]=_0x13e0c9[_0x6e03d7]['concat'](_0x13e0c9[_0x3a5572]),_0x13e0c9[_0x3a5572]=[];}for(const _0x5951cd of _0x13e0c9)for(let _0x1620fa=0x0;_0x1620fa<_0x5951cd['length'];_0x1620fa++){const _0x5bdf77=_0x5951cd[_0x1620fa+0x1]||null;_0x5951cd[_0x1620fa]['next']!==_0x5bdf77&&(_0x5951cd[_0x1620fa]['next']=_0x5bdf77);}for(const _0x78090b of _0x13e0c9)for(let _0x19c5f3=0x0;_0x19c5f3<_0x78090b['length'];_0x19c5f3++){const _0x2375d0=_0x78090b[_0x19c5f3-0x1]||null;_0x78090b[_0x19c5f3]['previous']!==_0x2375d0&&(_0x78090b[_0x19c5f3]['previous']=_0x2375d0);}function _0x857b2c(_0x360a1f,_0x256b90){return(_0x360a1f[0x0]['attributes']['groupId']===_0x256b90[0x0]['attributes']['groupId']||_0x360a1f[0x0]['author']===_0x256b90[0x0]['author'])&&(!!function(_0x583ba4,_0x227390){return!_0x583ba4['hasComments']&&!_0x227390['hasComments']||(!_0x583ba4['hasComments']||!_0x227390['hasComments'])&&(!!(_0x583ba4['hasComments']&&_0x227390['createdAt']<_0x583ba4['commentThread']['comments']['get'](0x0)['createdAt'])||!!(_0x227390['hasComments']&&_0x583ba4['createdAt']<_0x227390['commentThread']['comments']['get'](0x0)['createdAt']));}(_0x360a1f[0x0],_0x256b90[0x0])&&(!!ct(lt(_0x360a1f[0x0]['attributes'],['groupId','trackingSessionId']),lt(_0x256b90[0x0]['attributes'],['groupId','trackingSessionId']))&&(_0x360a1f[0x0]['attributes']['groupId']==_0x256b90[0x0]['attributes']['groupId']||_0x360a1f[0x0]['attributes']['trackingSessionId']===_0x256b90[0x0]['attributes']['trackingSessionId']&&(!!_0x360a1f['every'](_0x257148=>_0x256b90['some'](_0xd63b=>_0x257148['getFirstRange']()['isEqual'](_0xd63b['getFirstRange']())))&&_0x256b90['every'](_0xff7ac7=>_0x360a1f['some'](_0x490a71=>_0xff7ac7['getFirstRange']()['isEqual'](_0x490a71['getFirstRange']())))))));}}['_joinWithAdjacentSuggestions'](_0x21a1b6){const _0x2bd090=Array['from'](_0x21a1b6),_0xdb40ea=this['getSuggestions']({'skipNotAttached':!0x0}),_0x1ee068=_0xdb40ea['filter'](_0x320fe0=>!_0x21a1b6['has'](_0x320fe0)),_0x54d230=new Map(_0x2bd090['map'](_0x2f7e93=>[_0x2f7e93,this['_suggestionFactory']['getSuggestionCallback'](_0x2f7e93['type'],_0x2f7e93['subType'],'join')])),_0x1304ef=new Map(_0xdb40ea['map'](_0x5b02f9=>[_0x5b02f9,_0x5b02f9['getRanges']()]));for(let _0x1c9e14=0x0;_0x1c9e14<_0x2bd090['length'];_0x1c9e14++)if(_0x3c95dc(this,_0x2bd090[_0x1c9e14],_0x2bd090,_0x1c9e14+0x1))return!0x0;for(let _0x545b1d=0x0;_0x545b1d<_0x2bd090['length'];_0x545b1d++)if(_0x3c95dc(this,_0x2bd090[_0x545b1d],_0x1ee068,0x0))return!0x0;return!0x1;function _0x3c95dc(_0x3993d6,_0x561aa6,_0x27c8ca,_0x1927a6){for(let _0x38c307=_0x1927a6;_0x38c307<_0x27c8ca['length'];_0x38c307++){const _0x151425=_0x27c8ca[_0x38c307];if(_0x151425['type']!==_0x561aa6['type']||_0x151425['author']['id']!==_0x561aa6['author']['id']||_0x151425['subType']!==_0x561aa6['subType'])continue;if(!mn(_0x561aa6,_0x151425))continue;if('attribute'==_0x561aa6['type']&&_0x561aa6['data']['oldValue']!=_0x151425['data']['oldValue'])continue;if('attribute'==_0x561aa6['type']&&_0x3993d6['_suggestionsConversion']['isBlockAttribute'](_0x561aa6['data']['key']))continue;if('formatBlock'==_0x561aa6['type']){const _0x182124=_0x3993d6['editor']['model'],_0x42ad03=_0x561aa6['getContainedElement']();if(_0x42ad03&&(_0x182124['schema']['isObject'](_0x42ad03)||_0x182124['schema']['isLimit'](_0x42ad03)))continue;}const _0x1e4311=_0x54d230['get'](_0x561aa6),_0x9ccd03=_0x1304ef['get'](_0x561aa6),_0x5ec225=_0x1304ef['get'](_0x151425),_0x5ef048=_0x561aa6['commentThread']&&_0x561aa6['commentThread']['length'],_0x1ab92b=_0x151425['commentThread']&&_0x151425['commentThread']['length'];if(!_0x5ef048&&_0x1e4311(_0x5ec225,_0x9ccd03))return _0x3993d6['_joinSuggestions'](_0x151425,_0x561aa6),_0x1304ef['delete'](_0x561aa6),!0x0;if(!_0x1ab92b&&_0x1e4311(_0x9ccd03,_0x5ec225))return _0x3993d6['_joinSuggestions'](_0x561aa6,_0x151425),_0x1304ef['delete'](_0x151425),!0x0;}return!0x1;}}['_joinSuggestions'](_0x10eb8d,_0x472a92){if(_0x10eb8d['isMultiRange']){for(const _0x376b8d of _0x472a92['getRanges']())_0x10eb8d['addRange'](_0x376b8d);}else{const _0x2cb7ea=_0x472a92['getFirstRange']()['end'];this['_setSuggestionRange'](_0x10eb8d,this['_model']['createRange'](_0x10eb8d['getFirstRange']()['start'],_0x2cb7ea));}_0x472a92['removeMarkers']();}['_getMarkerAnnouncementText'](_0x11681c,_0x282657,_0x1e2f31){const _0x2c6f42=_0x11681c['startsWith']('format')||_0x11681c['startsWith']('attribute')?'FORMATTING':_0x11681c['toUpperCase']();return St(this['editor']['locale'],_0x282657+'_'+_0x2c6f42+'_SUGGESTION_ANNOUNCEMENT',_0x1e2f31);}['_initAriaMarkerChangeAnnouncements'](){const _0x46633d=this['editor'];if(!_0x46633d['ui'])return;const {ariaLiveAnnouncer:_0x3bf6bf}=_0x46633d['ui'];et(this['_model'],({left:_0xf5dbb1,entered:_0x33001f})=>{for(const _0x170670 of _0xf5dbb1){const {group:_0x2e0462,type:_0x14adbd}=tt(_0x170670['name']);if('suggestion'===_0x2e0462){_0x3bf6bf['announce'](this['_getMarkerAnnouncementText'](_0x14adbd,'LEAVE'));break;}}for(const _0x13eb15 of _0x33001f){const {group:_0x400ff1,type:_0x10c45e}=tt(_0x13eb15['name']);if('suggestion'===_0x400ff1){_0x3bf6bf['announce'](this['_getMarkerAnnouncementText'](_0x10c45e,'ENTER',_0x25ca27(_0xcced64)));break;}}});}['_processAttributeChanges'](_0x3c103c){if(this['_recordAttributeSuggestions'])return!0x1;const _0x3c0012=this['editor'],_0x90e2e6=_0x3c0012['model']['document']['differ']['getChanges']();if(0x0==_0x90e2e6['length'])return!0x1;const _0x666eef=[],_0x3e19e8=_0x90e2e6['filter'](_0x4076a9=>'attribute'==_0x4076a9['type']),_0x2b4a79=_0x90e2e6['filter'](_0x53e53b=>'insert'==_0x53e53b['type']&&'$text'!=_0x53e53b['name']),_0x1d9805=_0x90e2e6['filter'](_0x23cd4e=>'remove'==_0x23cd4e['type']&&'$text'!=_0x23cd4e['name']);for(const _0x38afdc of _0x3e19e8)_0x666eef['push']({'key':_0x38afdc['attributeKey'],'newValue':_0x38afdc['attributeNewValue'],'oldValue':_0x38afdc['attributeOldValue'],'range':hn(_0x38afdc['range'],_0x3c0012['model'])});for(const _0x2d1e24 of _0x2b4a79){const _0x21b674=_0x1d9805['find'](_0x30ef15=>_0x30ef15['position']['isEqual'](_0x2d1e24['position']));_0x21b674&&_0x666eef['push']({'key':en,'newValue':_0x2d1e24['name'],'oldValue':_0x21b674['name'],'range':_0x3c0012['model']['createRangeOn'](_0x2d1e24['position']['nodeAfter'])});}return 0x0!=_0x666eef['length']&&this['_reduceExistingSuggestions'](_0x3c103c,_0x666eef);}['_processAttributeSuggestions'](_0x3424ff){let _0x11fe52=!0x1;const _0x5d5b4b=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4c97bc=>_0x4c97bc['data']['newRange']&&_0x4c97bc['name']['startsWith']('suggestion:attribute:'));for(const _0x31d11a of _0x5d5b4b){const {subType:_0x4697d3,id:_0x24c2f8}=tt(_0x31d11a['name']),_0x39d1f1=_0x4697d3['split']('|')[0x0];for(const _0x18aca4 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x18aca4['id']!=_0x24c2f8&&'attribute'==_0x18aca4['type']&&_0x18aca4['data']&&_0x18aca4['data']['key']==_0x39d1f1&&_0x18aca4['getFirstRange']()['isIntersecting'](_0x31d11a['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x18aca4,_0x31d11a['data']['newRange'],_0x3424ff),_0x11fe52=!0x0);}return _0x11fe52;}['recordAttributeChanges'](_0x57fdc4){this['_recordAttributeSuggestions']=!0x0,_0x57fdc4();}['_reduceExistingSuggestions'](_0x1b4f9c,_0x11c1c4){if(0x0==_0x11c1c4['length'])return!0x1;let _0x157c03=!0x1;for(const _0x27c8f8 of _0x11c1c4){const _0x30efe4=this['_findSuggestions'](_0x27c8f8['range'],'attribute')['filter'](_0x2d7d62=>!_0x2d7d62['meta']['isNextTo'])['map'](_0x3211ba=>_0x3211ba['suggestion']),_0x178989=_0x214776({'newValue':_0x27c8f8['newValue']});_0x30efe4['filter'](_0x1d5b3c=>{const [_0x313c00,_0x39608f]=_0x1d5b3c['subType']['split']('|');return _0x313c00==_0x27c8f8['key']&&_0x39608f!=_0x178989;})['forEach'](_0xbac9a5=>{this['_reduceSuggestionAttributeRange'](_0xbac9a5,_0x27c8f8['range'],_0x1b4f9c),_0x157c03=!0x0;});}return _0x157c03;}['_reduceSuggestionAttributeRange'](_0x17714d,_0x1c7719,_0x4de900){const _0x3a196b=_0x17714d['getFirstRange']()['getDifference'](_0x1c7719);0x0!==_0x3a196b['length']?0x1!==_0x3a196b['length']?this['_breakSuggestionMarker'](_0x17714d,_0x1c7719['start'],_0x1c7719['end']):this['_setSuggestionRange'](_0x17714d,_0x3a196b[0x0]):_0x4de900['removeMarker'](_0x17714d['getFirstMarker']());}},sn=class{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0xbf3f6d){this['_editor']=_0xbf3f6d,this['_model']=_0xbf3f6d['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x22dc32,_0x55c096,_0x2a4885,_0x4f5d90,_0x37ef9d,_0x40c6f2,_0x401e80){return new yt(this['_model'],{'type':_0x22dc32,'subType':_0x55c096,'id':_0x2a4885,'originalSuggestionId':_0x401e80,'author':_0x4f5d90,'creator':_0x4f5d90,'attributes':_0x37ef9d,'onAttributesChange':_0x40c6f2,'onAccept':(..._0x438193)=>this['getSuggestionCallback'](_0x22dc32,_0x55c096,'accept')(..._0x438193),'onDiscard':(..._0x31c632)=>this['getSuggestionCallback'](_0x22dc32,_0x55c096,'discard')(..._0x31c632)});}['registerCustomCallback'](_0x3ac855,_0x525842,_0x4e78e8,_0x4d42e7){const _0x3ca201=_0x3ac855+':'+_0x525842+':'+_0x4e78e8;this['_customCallbacks']['set'](_0x3ca201,_0x4d42e7);}['getSuggestionCallback'](_0x104357,_0x42c825,_0x54dce5){const _0x13d544=_0x104357+':'+_0x42c825+':'+_0x54dce5;return this['_customCallbacks']['get'](_0x13d544)||this['_defaultCallbacks']['get'](_0x104357+':'+_0x54dce5);}['_registerDefaultCallbacks'](){const _0x47c310=()=>!0x1,_0x3bb15b=_0x6b285d=>{_0x6b285d['sort']((_0x5bf365,_0x37f31c)=>_0x5bf365['start']['isBefore'](_0x37f31c['start'])?0x1:-0x1),this['_model']['change'](_0x2a5882=>{for(const _0x2c66b8 of _0x6b285d){let _0x36fd2d;_0x36fd2d=_0x2c66b8['end']['isAtEnd']&&_0x2c66b8['end']['parent']==_0x2c66b8['start']['nodeAfter']?_0x2a5882['createSelection'](_0x2c66b8['start']['nodeAfter'],'on'):_0x2a5882['createSelection'](_0x2c66b8),this['_model']['deleteContent'](_0x36fd2d,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x181e50=(_0x4666ed,_0x5535b0)=>{_0x5535b0&&this['_model']['change'](_0x460d02=>{const {commandName:_0x40dea7,commandParams:_0x2a5a75=[]}=_0x5535b0,_0x36fb38=_0x4666ed['map'](_0x59b428=>(on(_0x59b428)&&(_0x59b428=this['_model']['createRange'](_0x59b428['end'])),_0x59b428))['filter'](_0x1356b0=>'$graveyard'!==_0x1356b0['root']['rootName']);if(_0x36fb38['length']<0x1)return;const _0x8d9a27=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x128c8c=>rt['fromRange'](_0x128c8c));_0x460d02['setSelection'](_0x36fb38);for(const _0x43f9f6 of this['_editor']['commands']['commands']())_0x43f9f6['refresh']();_0x2a5a75['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x40dea7,..._0x2a5a75);const _0x4d09e2=_0x8d9a27['filter'](_0x4193d9=>'$graveyard'!=_0x4193d9['root']['rootName']);_0x4d09e2['length']>0x0&&_0x460d02['setSelection'](_0x4d09e2);for(const _0x3f6ad8 of _0x8d9a27)_0x3f6ad8['detach']();});},_0x2c833f=(_0x3ceabd,_0xfb86bd)=>0x1==_0x3ceabd['length']&&0x1==_0xfb86bd['length']&&_0x3ceabd[0x0]['end']['isEqual'](_0xfb86bd[0x0]['start']),_0x3cb7f4=(_0x127641,_0x7b81de,_0x33e690,_0xdd0148)=>fn(_0x127641,_0x7b81de,_0x33e690,_0xdd0148)?[_0x127641,_0x7b81de]:fn(_0x7b81de,_0x127641,_0xdd0148,_0x33e690)?[_0x7b81de,_0x127641]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x47c310),this['_defaultCallbacks']['set']('insertion:discard',_0x3bb15b),this['_defaultCallbacks']['set']('insertion:join',_0x2c833f),this['_defaultCallbacks']['set']('insertion:chain',_0x3cb7f4),this['_defaultCallbacks']['set']('deletion:accept',_0x3bb15b),this['_defaultCallbacks']['set']('deletion:discard',_0x47c310),this['_defaultCallbacks']['set']('deletion:join',_0x2c833f),this['_defaultCallbacks']['set']('deletion:chain',_0x3cb7f4),this['_defaultCallbacks']['set']('formatInline:accept',_0x181e50),this['_defaultCallbacks']['set']('formatInline:discard',_0x47c310),this['_defaultCallbacks']['set']('formatInline:join',_0x2c833f),this['_defaultCallbacks']['set']('formatInline:chain',_0x47c310),this['_defaultCallbacks']['set']('formatBlock:accept',_0x181e50),this['_defaultCallbacks']['set']('formatBlock:discard',_0x47c310),this['_defaultCallbacks']['set']('formatBlock:join',_0x2c833f),this['_defaultCallbacks']['set']('formatBlock:chain',_0x47c310),this['_defaultCallbacks']['set']('attribute:accept',_0x47c310),this['_defaultCallbacks']['set']('attribute:discard',(_0x2c20ae,_0x5a8b5a)=>{if(!_0x5a8b5a)return;const _0xdca7c0=this['_editor']['plugins']['get'](_0x5bf169);this['_model']['change'](_0x16467f=>{if('$elementName'==_0x5a8b5a['key'])for(const _0x54434f of _0x2c20ae){const _0x372525=_0x54434f['start']['nodeAfter'],_0x5d287e=_0x5a8b5a['oldValue'];_0x16467f['rename'](_0x372525,_0x5d287e);}else{if(_0xdca7c0['isBlockAttribute'](_0x5a8b5a['key'])){for(const _0x1edd02 of _0x2c20ae)void 0x0!==_0x5a8b5a['oldValue']?_0x16467f['setAttribute'](_0x5a8b5a['key'],_0x5a8b5a['oldValue'],_0x1edd02['start']['nodeAfter']):_0x16467f['removeAttribute'](_0x5a8b5a['key'],_0x1edd02['start']['nodeAfter']);}else{for(const _0x5da185 of _0x2c20ae)_0x5a8b5a['oldValue']?_0x16467f['setAttribute'](_0x5a8b5a['key'],_0x5a8b5a['oldValue'],_0x5da185):_0x16467f['removeAttribute'](_0x5a8b5a['key'],_0x5da185);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x2c833f);}};function rn(_0x2610f1,_0x3101fd,_0x39c54c){for(const _0x5bd994 of _0x3101fd['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x5bd994['root']==_0x5bd994)return!0x1;if(!_0x39c54c['containsItem'](_0x5bd994))return!0x1;if(_0x2610f1['isObject'](_0x5bd994)||_0x2610f1['isLimit'](_0x5bd994))return!0x0;}return!0x1;}function on(_0x138c50){return _0x138c50['end']['parent']==_0x138c50['start']['nodeAfter']&&_0x138c50['end']['isAtStart'];}function an(_0x43ac11,_0x44558a,_0x3173bf,_0x21da3b){const _0x1c8bc0=_0x42effe=>!_0x42effe['item']['is']('$textProxy')&&!_0x21da3b['isObject'](_0x42effe['item']),_0x3d8fba=_0x43ac11['start']['getLastMatchingPosition'](_0x1c8bc0),_0x3eaf9a=_0x43ac11['end']['getLastMatchingPosition'](_0x1c8bc0,{'direction':'backward'});return(!_0x43ac11['start']['isEqual'](_0x3d8fba)||!_0x43ac11['end']['isEqual'](_0x3eaf9a))&&(_0x3d8fba['isBefore'](_0x3eaf9a)?_0x3173bf['updateMarker'](_0x44558a,{'range':_0x3173bf['createRange'](_0x3d8fba,_0x3eaf9a)}):_0x3173bf['removeMarker'](_0x44558a),!0x0);}function cn(_0x334357){return _0x214776(_0x334357);}function ln(_0x25db6){const _0x2f2e9c=_0x25db6['start']['nodeAfter'];return _0x2f2e9c&&_0x2f2e9c['is']('element');}function un(_0x59e1cf){return on(_0x59e1cf)||function(_0x4591cb){return _0x4591cb['start']['parent']==_0x4591cb['end']['nodeBefore']&&_0x4591cb['start']['isAtEnd'];}(_0x59e1cf);}function dn(_0x320c8d,_0x100973){try{const _0x4b76ad=_0x320c8d['getRange']();for(const _0x2aa143 of _0x100973)if(_0x320c8d!==_0x2aa143&&_0x4b76ad&&_0x4b76ad['isIntersecting'](_0x2aa143['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function hn(_0x3a6ca4,_0x1cee6f){return null==_0x3a6ca4['end']['nodeBefore']&&_0x3a6ca4['end']['parent']==_0x3a6ca4['start']['nodeAfter']?gn(_0x3a6ca4['start']['nodeAfter'],_0x1cee6f):_0x3a6ca4;}function gn(_0x143384,_0x44d1d2){const _0x555715=_0x44d1d2['schema']['isObject'](_0x143384)||_0x44d1d2['schema']['isSelectable'](_0x143384);return _0x44d1d2['createRange'](_0x44d1d2['createPositionAt'](_0x143384,'before'),_0x555715?_0x44d1d2['createPositionAfter'](_0x143384):_0x44d1d2['createPositionAt'](_0x143384,'end'));}function fn(_0x59329a,_0xfcdd27,_0x21bdf3,_0x376606){return!!mn(_0x59329a,_0xfcdd27)&&_0x21bdf3['end']['isEqual'](_0x376606['start']);}function mn(_0x214697,_0x2bf076){if(!_0x214697['_isDataLoaded']||!_0x2bf076['_isDataLoaded'])return!0x1;const _0x22be39=new Set(Object['keys'](_0x214697['attributes'])),_0xdd4277=new Set(Object['keys'](_0x2bf076['attributes']));if(_0x22be39['delete']('groupId'),_0xdd4277['delete']('groupId'),0x0==_0x22be39['size']&&0x0==_0xdd4277['size'])return!0x0;if(_0x22be39['size']!=_0xdd4277['size'])return!0x1;const _0x289443={..._0x214697['attributes']},_0x25ccd1={..._0x2bf076['attributes']};return delete _0x289443['groupId'],delete _0x25ccd1['groupId'],JSON['stringify'](_0x289443)==JSON['stringify'](_0x25ccd1);}function En(_0x39d499,_0x202daf){const _0xe6dd74=Tn(_0x39d499['attributes']),_0x199874=Tn(_0x202daf);if(!_0x39d499['_isDataLoaded'])return!0x1;if(!ct(_0xe6dd74['@ai'],_0x199874['@ai']))return!0x1;for(const _0xbd5219 of Object['keys'](_0x199874))if(!ct(_0xe6dd74[_0xbd5219],_0x199874[_0xbd5219]))return!0x1;return!0x0;}function Tn(_0xd1577c){const _0x20cafc=Object['assign']({},_0xd1577c);return delete _0x20cafc['skipNestingCheck'],delete _0x20cafc['tablePasteChainId'],_0x20cafc;}function _n(_0x1e167a){return _0x1e167a['split']('|')[0x0];}const pn=/* #__PURE__ -- @preserve */
|
|
26
|
+
_0xde5e1b();var Ln=class extends pn{['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x6689bc,_0x59654d,_0x18da75,_0xb6543a){super(),this['model']=_0x59654d,this['view']=_0x18da75,this['commentThreadController']=_0xb6543a,this['_editor']=_0x6689bc,this['_acceptCommand']=_0x6689bc['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x6689bc['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x9916d5,_0x182c44)=>_0x9916d5||_0x182c44),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x425890=>_0x425890&&this['_editor']['model']['canEditAt'](_0x59654d['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x5691b1=>_0x5691b1&&this['_editor']['model']['canEditAt'](_0x59654d['getRanges']())),this['_pendingAction']=null,_0x18da75['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x18da75,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x18da75,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x18da75,'change:isDirty',()=>{_0x18da75['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 _0xa43bc3=St(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0xa43bc3);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}},In=class extends _0x21406f{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x37679a,_0x14434e,_0x13d39b,_0x33e405){super(_0x37679a),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0xfaa767(_0x37679a,St(_0x37679a,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x14434e['authoredAt']),this['bind']('authoredAt')['to'](_0x14434e),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',_0x14434e,'authoredAt',this,'descriptionParts',(_0x3b464b,_0xed4097,_0x3cd59f)=>{const _0x393c88=_0x3cd59f['map'](_0x3a6cce=>pt(_0x3a6cce['content']))['join']('.\x20')+'.',_0xa786b3=_0x14434e['aiSource']&&'author'===_0x33e405['showAISource']?_0x33e405['aiAuthor']['name']:_0x14434e['author']['name'],_0x5b4831=St(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x3b464b-0x1,_0xa786b3,_0xed4097?_0x33e405['formatDateTime'](_0xed4097):'',new DOMParser()['parseFromString'](_0x393c88,'text/html')['body']['textContent']]);return _0x14434e['aiSource']&&'pill'===_0x33e405['showAISource']?_0x5b4831+'\x20'+St(this['locale'],'AI_SOURCE_PILL_TOOLTIP'):_0x5b4831;}),this['focusables']=new _0x2ae260(),this['focusTracker']=new _0x18e433(),this['keystrokes']=new _0x4d6c25(),this['focusCycler']=new _0x2cb205({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x233665=>_0x233665['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x14434e,this['_localUser']=_0x13d39b,this['_config']=_0x33e405,_0x33e405['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x242884(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x370eed}=this['_config'];this['commentsListView']=new _0x370eed(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',_0x1943ad=>_0x1943ad+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x8f959d,_0xa33476)=>_0x8f959d||!!_0xa33476);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x420282}=this['_config'],_0x2c5e27=new _0x420282(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x158261=_0x2c5e27['commentInputView'];return _0x2c5e27['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x158261,'value',(_0xceef7d,_0x1f76ad,_0x24a4f0)=>!!_0x24a4f0||_0xceef7d&&!_0x1f76ad),_0x158261['on']('submit',(_0x37fab9,_0x3b3ae4)=>{this['fire']('addComment',_0x3b3ae4),_0x158261['editor']['setData']('');}),_0x158261['on']('cancel',()=>this['focus']()),_0x158261['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x2c5e27;}},An=class extends In{['suggestionView'];['_descriptionElement'];constructor(_0x15fa02,_0x461d2e,_0x25c383,_0x3efadf){super(_0x15fa02,_0x461d2e,_0x25c383,_0x3efadf),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x2045d2=>_0x2045d2&&_0x2045d2[0x0]?_0x2045d2[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x14f169,_0x4927ce)=>{let _0x4a4df3='';for(const _0x2ce218 of _0x14f169)_0x4a4df3+='<p>'+pt(_0x2ce218['content'],_0x2ce218['color'])+'</p>';return _0x4927ce?_0x4a4df3:nt(_0x4a4df3,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x3efadf['SuggestionView'](_0x15fa02,_0x461d2e,{'formatDateTime':_0x3efadf['formatDateTime'],'showAISource':_0x3efadf['showAISource'],'aiAuthor':_0x3efadf['aiAuthor']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x4cdb5f=this['bindTemplate'],_0x485a0a=[this['suggestionView']];return this['commentsListView']&&_0x485a0a['push'](this['commentsListView']),this['commentThreadInputView']&&_0x485a0a['push'](this['commentThreadInputView']),_0x485a0a['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x4cdb5f['if']('isActive','ck-suggestion-wrapper--active'),_0x4cdb5f['to']('type',_0xda0273=>'ck-suggestion-'+_0xda0273),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':_0x4cdb5f['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x485a0a};}['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));}},bn=class extends _0x21406f{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x7bc366,_0x666abf,_0x2639d8){super(_0x7bc366),this['_model']=_0x666abf,this['_config']=_0x2639d8,this['set']('description',''),this['bind']('authoredAt')['to'](_0x666abf),this['acceptButton']=this['_createButton'](St(_0x7bc366,'Accept\x20suggestion'),_0x5627ed,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](St(_0x7bc366,'Discard\x20suggestion'),_0x3c3152,'ck-suggestion--discard','discardSuggestion','sw');const _0x5bba9b=!!_0x666abf['aiSource']&&'author'===_0x2639d8['showAISource'],_0x117e87=_0x5bba9b?this['_createAIUser'](_0x2639d8['aiAuthor']):_0x666abf['author'],_0x3b5ddc=_0x5bba9b&&!_0x2639d8['aiAuthor']['avatar']?_0x174ddc:void 0x0;this['userView']=new _0x2af109(_0x7bc366,_0x117e87,this['getUserViewNotificationText'](),_0x3b5ddc),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x2ae260([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x18e433(),this['keystrokes']=new _0x4d6c25(),this['focusCycler']=new _0x2cb205({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x95c8a7=>_0x95c8a7['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x3fe27a=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x3fe27a['innerHTML']=this['description'],this['on']('change:description',(_0x5820aa,_0x2faa84,_0x85609d)=>{_0x3fe27a['innerHTML']=_0x85609d;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x14cd51=this['bindTemplate'],_0x513e03=[{'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':_0x14cd51['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x14cd51['to']('authoredAt',_0x8f8c56=>this['_config']['formatDateTime'](_0x8f8c56))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];if(this['_model']['isExternal']&&_0x513e03['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),this['_model']['aiSource']&&this['_config']['showAISource']){const _0x51e803=new _0x34b4de(this['locale']);_0x51e803['set']({'icon':_0x27a403,'label':St(this['locale'],'AI_SOURCE_PILL_LABEL'),'tooltip':St(this['locale'],'AI_SOURCE_PILL_TOOLTIP'),'class':'ck-pill_ai'}),_0x513e03['push']({'tag':'div','attributes':{'class':['ck-suggestion__ai-source-pill']},'children':[_0x51e803]});}return{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x513e03}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?St(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):St(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?St(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):St(this['locale'],'EXTERNAL_SUGGESTION');}['_createAIUser'](_0x39b75b){return new _0x36d007({'id':'ck-ai-author','name':_0x39b75b['name'],'avatar':_0x39b75b['avatar'],'color':new _0x27e6c4(0x0)});}['_createButton'](_0x858903,_0x20fba1,_0x165987,_0x288c15,_0x2ee79c){const _0x1deb26=new _0x37b090(this['locale']);return _0x1deb26['set']({'label':_0x858903,'icon':_0x20fba1,'tooltip':!0x0,'tooltipPosition':_0x2ee79c}),_0x1deb26['extendTemplate']({'attributes':{'class':_0x165987}}),_0x1deb26['on']('execute',()=>{this['fire'](_0x288c15,this['_model']['id']);}),_0x1deb26;}['_setupKeyboardNavigation'](){const _0x29d6b6=this['element'];this['keystrokes']['listenTo'](_0x29d6b6);for(const _0x598a70 of this['focusables'])this['focusTracker']['add'](_0x598a70['element']),this['keystrokes']['listenTo'](_0x598a70['element']);this['keystrokes']['set']('enter',(_0x271c3e,_0x529301)=>{_0x29d6b6===_0x271c3e['target']&&(this['focusCycler']['focusFirst'](),_0x529301());}),this['keystrokes']['set']('esc',(_0x52a6bd,_0x4e7c93)=>{_0x29d6b6!==_0x52a6bd['target']&&(this['focus'](),_0x4e7c93());});}},kn=class extends _0x2b9af7{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[nn,_0x1f47e3,_0x3b47da,_0x31fd62,_0x58281b];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4e54ff){super(_0x4e54ff),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x499df7=this['editor']['config'];_0x499df7['define']('trackChanges.SuggestionThreadView',An),_0x499df7['define']('trackChanges.SuggestionView',bn),_0x499df7['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x499df7['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0xfd2212,_0x59bdd1){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x16c420,_0x3cad37]of this['_handleControllerBuffer']){const _0x5086ba=this['_suggestionToController']['has'](_0x16c420);_0x5086ba||_0x3cad37?_0x5086ba&&_0x3cad37&&this['_destroyController'](_0x16c420):this['_initializeController'](_0x16c420);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0x58281b)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0xfd2212,_0x59bdd1);}['init'](){const _0x40538b=this['editor'],_0x3855d2=_0x40538b['plugins']['get'](nn),_0x31c60d=_0x40538b['plugins']['get'](_0x31fd62),_0x249c8d=_0x40538b['plugins']['get'](_0x58281b),_0x35e467=_0x40538b['plugins']['get'](_0x3b47da);this['_addUIComponentsToFactory'](),_0x249c8d['addSourceCollector'](()=>{const _0x3eb10c=[];for(const [_0x54ccae,_0x4c6157]of Array['from'](this['_suggestionToController'])){const _0x5b316a=_0x54ccae['getAllAdjacentSuggestions'](),_0x25ac7e=[];for(const _0x48201e of _0x5b316a){if(!_0x48201e['isInContent'])continue;if(_0x48201e['isMultiRange']){_0x25ac7e['push'](..._0x48201e['getRanges']());continue;}const _0x5cd61e=_0x48201e['getFirstRange']();if(_0x25ac7e['length']>0x0){const _0x52c510=_0x25ac7e[0x0]['getJoined'](_0x5cd61e);if(_0x52c510){_0x25ac7e[0x0]=_0x52c510;continue;}}_0x25ac7e['push'](_0x5cd61e);}_0x3eb10c['push']([_0x4c6157['view'],_0x25ac7e]);}return _0x3eb10c;}),this['listenTo'](_0x3855d2,'suggestionLoaded',(_0x481e0a,_0xd1da6a)=>{this['listenTo'](_0xd1da6a,'change:previous',(_0x2cda52,_0x1ada4e,_0x5d401e,_0x11c635)=>{_0xd1da6a['isInContent']&&(null==_0x5d401e?(this['_updateController'](_0x11c635['head']),this['_handleSuggestionControllerDelayed'](_0xd1da6a,!0x1)):(this['_updateController'](_0x5d401e['head']),null==_0x11c635&&this['_handleSuggestionControllerDelayed'](_0xd1da6a,!0x0)));}),null!==_0xd1da6a['previous']?this['_updateController'](_0xd1da6a['head']):this['_handleSuggestionControllerDelayed'](_0xd1da6a,!0x1);}),this['listenTo'](_0x3855d2,'suggestionUnloaded',(_0xf48ee5,_0x30f6b4,_0x13ab48)=>{this['stopListening'](_0x30f6b4,'change:previous'),this['_handleControllerBuffer']['delete'](_0x30f6b4),this['_suggestionToController']['has'](_0x30f6b4)&&this['_destroyController'](_0x30f6b4),_0x13ab48&&this['_updateController'](_0x13ab48['head']);}),this['listenTo'](_0x3855d2,'suggestionChanged',(_0x10852e,_0xf45e4c)=>{this['_updateController'](_0xf45e4c);}),this['listenTo'](_0x31c60d,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x35e467,'addComment',(_0x524b31,{threadId:_0x22eda6,isFromAdapter:_0x2d06fd})=>{if(_0x2d06fd||!_0x3855d2['hasSuggestion'](_0x22eda6))return;const _0x9ab522=_0x3855d2['getSuggestion'](_0x22eda6);this['_suggestionToController']['get'](_0x9ab522)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3c4ef1=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x36f32c;for(const _0x4ad528 in _0x3c4ef1){const _0x24e221=_0x4ad528,_0x464943=_0x3c4ef1[_0x24e221];if('trackChangesLicenseKeyValid'==_0x464943||'trackChangesLicenseKeyInvalid'==_0x464943||'trackChangesLicenseKeyExpired'==_0x464943||'trackChangesLicenseKeyDomainLimit'==_0x464943||'trackChangesLicenseKeyNotAllowed'==_0x464943||'trackChangesLicenseKeyEvaluationLimit'==_0x464943||'trackChangesLicenseKeyUsageLimit'==_0x464943){delete _0x3c4ef1[_0x24e221],_0x36f32c=_0x464943,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x36f32c&&_0x3c4ef1['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x36f32c&&_0x3c4ef1['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x36f32c&&_0x3c4ef1['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x36f32c&&_0x3c4ef1['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x36f32c&&_0x3c4ef1['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x36f32c&&_0x3c4ef1['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x20c5bf){const _0x3304ad=this['_suggestionToController']['get'](_0x20c5bf);return _0x3304ad&&this['editor']['plugins']['get'](_0x31fd62)['getByInnerView'](_0x3304ad['view'])||null;}['getSuggestionForAnnotation'](_0x1dcfd5){const _0x12269f=this['_viewToController']['get'](_0x1dcfd5['innerView']);return _0x12269f?_0x12269f['model']:null;}['_refreshActiveMarkers'](){const _0x19974d=this['editor']['plugins']['get'](_0x31fd62),_0x452a0b=this['editor']['plugins']['get'](nn),_0x2edb30=Array['from'](_0x19974d['activeAnnotations'],_0x3e3efb=>_0x3e3efb['innerView'])['filter'](_0x3fb414=>this['_viewToController']['has'](_0x3fb414)),_0x5ce1e2=[];for(const _0x23ae0e of _0x2edb30){const _0x5153ba=this['_viewToController']['get'](_0x23ae0e)['model']['getAllAdjacentSuggestions']();_0x5ce1e2['push'](..._0x5153ba['reduce']((_0x4177dd,_0x47d899)=>[..._0x4177dd,..._0x47d899['getMarkerNames']()],[]));}_0x452a0b['activeMarkers']=_0x5ce1e2;}['_addUIComponentsToFactory'](){const _0x38fbf3=this['editor'],_0x1380fe=_0x38fbf3['locale'],_0x34a5d6=St(_0x1380fe,'Track\x20changes'),_0x48293f=new _0x4f8170([{'type':'switchbutton','model':new _0x38417d({'withText':!0x0,'isToggleable':!0x0,'label':_0x34a5d6,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x38417d({'withText':!0x0,'label':St(_0x1380fe,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x38417d({'withText':!0x0,'label':St(_0x1380fe,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x38417d({'withText':!0x0,'label':St(_0x1380fe,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x38417d({'withText':!0x0,'label':St(_0x1380fe,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x38fbf3['plugins']['has']('TrackChangesPreview')&&_0x48293f['addMany']([{'type':'separator'},{'type':'button','model':new _0x38417d({'withText':!0x0,'label':St(_0x1380fe,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x5d7e19 of _0x48293f)if(Cn(_0x5d7e19)){const _0x51b121=_0x38fbf3['commands']['get'](_0x5d7e19['model']['commandName']);_0x5d7e19['model']['bind']('isOn','isEnabled')['to'](_0x51b121,'value','isEnabled');}_0x38fbf3['ui']['componentFactory']['add']('trackChanges',_0x2b4a03=>this['_createToolbarButton'](_0x2b4a03,_0x48293f,_0x34a5d6)),_0x38fbf3['ui']['componentFactory']['add']('menuBar:trackChanges',_0x442faa=>this['_createMenuBarMenu'](_0x442faa,_0x48293f,_0x34a5d6));}['_createToolbarButton'](_0x3833fc,_0x592004,_0x48930c){const _0x1ade28=_0x2ba01b(_0x3833fc,_0x4f7ec2),_0x31bd03=this['editor']['commands']['get']('trackChanges');_0x1ade28['buttonView']['set']({'tooltip':_0x48930c,'label':_0x48930c,'icon':_0x560cd2}),_0x1ade28['buttonView']['bind']('isOn')['to'](_0x31bd03,'value'),_0x1ade28['buttonView']['on']('execute',()=>{_0x31bd03['execute'](),this['editor']['editing']['view']['focus']();}),_0x399ffc(_0x1ade28,_0x592004,{'role':'menu'});const _0x1fd495=[];for(const _0x16f15b of _0x592004)Cn(_0x16f15b)&&_0x1fd495['push'](this['editor']['commands']['get'](_0x16f15b['model']['commandName']));const _0xec29d2=_0x1ade28['buttonView'];return _0xec29d2['actionView']['unbind']('isEnabled'),_0xec29d2['arrowView']['unbind']('isEnabled'),_0xec29d2['actionView']['bind']('isEnabled')['to'](_0x31bd03,'isEnabled'),_0xec29d2['arrowView']['bind']('isEnabled')['toMany'](_0x1fd495,'isEnabled',(..._0x1dbc70)=>_0x1dbc70['some'](_0x1538db=>_0x1538db)),_0x1ade28['on']('execute',_0x21089a=>{this['editor']['execute'](_0x21089a['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x1ade28;}['_createMenuBarMenu'](_0xc866bb,_0x20f14c,_0x2b78e2){const _0x2e1d22=new _0x146f59(_0xc866bb),_0x442d60=this['editor']['commands']['get']('trackChanges');_0x2e1d22['buttonView']['set']({'label':_0x2b78e2,'icon':_0x560cd2});const _0x516e41=new _0x2f66c6(_0xc866bb);for(const _0xda80eb of _0x20f14c){if('separator'==_0xda80eb['type']){_0x516e41['items']['add'](new _0x5d7318(_0xc866bb));continue;}const _0x2d6599=new _0x327b56(_0xc866bb,_0x2e1d22),_0x5a6cfd=new _0x90c963(_0xc866bb),_0xbc6279=_0xda80eb['model'];_0x5a6cfd['bind'](...Object['keys'](_0xbc6279))['to'](_0xbc6279),_0x5a6cfd['delegate']('execute')['to'](_0x2e1d22),_0x5a6cfd['on']('execute',()=>{this['editor']['execute'](_0xbc6279['commandName']),this['editor']['editing']['view']['focus']();}),_0x2d6599['children']['add'](_0x5a6cfd),_0x516e41['items']['add'](_0x2d6599);}return _0x2e1d22['bind']('isEnabled')['to'](_0x442d60,'isEnabled'),_0x2e1d22['panelView']['children']['add'](_0x516e41),_0x2e1d22;}['_initializeController'](_0x5e7159){const _0x28b1ea=this['editor'],_0x393990=_0x28b1ea['config'],_0x142ac8=_0x28b1ea['plugins']['get'](_0x31fd62),_0x1beb34=_0x28b1ea['plugins']['get'](_0x3b47da),_0x4e8591=_0x28b1ea['plugins']['get'](_0x58281b),_0x351bb0=_0x28b1ea['plugins']['get'](_0x1f47e3)['me'],_0xa7583e=_0x393990['get']('trackChanges')['SuggestionThreadView'],_0x307117=_0x393990['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x4f7fd9,CommentThreadInputView:_0x241193}=_0x28b1ea['plugins']['get']('CommentsUI');let _0x2b1c0e,_0xc81f42,_0x535bcf;this['_annotationViews']['has'](_0x5e7159['id'])?(_0xc81f42=this['_annotationViews']['get'](_0x5e7159['id']),_0x2b1c0e=_0xc81f42['mainView']):(_0x2b1c0e=new _0xa7583e(_0x28b1ea['locale'],_0x5e7159,_0x351bb0,{'disableComments':this['_disableComments'],'editorConfig':{..._0x393990['get']('comments.editorConfig'),'licenseKey':_0x393990['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x393990['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x393990['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x393990['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x90042a(_0x393990['get']('locale'),_0x28b1ea['locale']),'CommentView':_0x393990['get']('comments')['CommentView'],'CommentsListView':_0x4f7fd9,'CommentThreadInputView':_0x241193,'SuggestionView':_0x307117,'showAISource':_0x393990['get']('trackChanges.showAISource')||null,'aiAuthor':{..._0x393990['get']('trackChanges.aiAuthor'),'name':_0x393990['get']('trackChanges.aiAuthor')?.['name']||St(_0x28b1ea['locale'],'AI_AUTHOR_DEFAULT_NAME')}}),_0x2b1c0e['suggestionView']['acceptButton']['on']('execute',()=>{_0x28b1ea['editing']['view']['focus']();}),_0x2b1c0e['suggestionView']['discardButton']['on']('execute',()=>{_0x28b1ea['editing']['view']['focus']();}),_0xc81f42=_0x142ac8['createAnnotationView'](this['editor']['locale'],_0x2b1c0e),_0xc81f42['bind']('isDirty')['to'](_0x2b1c0e,'isDirty'),_0xc81f42['bind']('length')['to'](_0x2b1c0e),_0xc81f42['bind']('type')['to'](_0x2b1c0e,'type',_0x37b328=>'suggestion-'+_0x37b328),_0x2b1c0e['on']('escape',()=>{_0x535bcf['fire']('escape');}),this['_annotationViews']['set'](_0x5e7159['id'],_0xc81f42));const _0x222675=_0x1beb34['createCommentThreadController'](_0x5e7159['commentThread'],_0x2b1c0e),_0x2a21b3=new Ln(_0x28b1ea,_0x5e7159,_0x2b1c0e,_0x222675),_0x3aa85d=_0x5e7159['getAllAdjacentSuggestions']()['filter'](_0x203089=>_0x203089['isInContent']);_0x2b1c0e['descriptionParts']=_0x28b1ea['plugins']['get'](nn)['descriptionFactory']['getDescriptions'](_0x3aa85d),this['_suggestionToController']['set'](_0x5e7159,_0x2a21b3),this['_viewToController']['set'](_0x2b1c0e,_0x2a21b3);const _0x5da530=()=>{const _0x29b50f=[],_0x158268=_0x5e7159['getAllAdjacentSuggestions']()['filter'](_0x27c113=>_0x27c113['isInContent']);for(const _0x32ca43 of _0x158268)_0x29b50f['push'](..._0x32ca43['getMarkers']());return _0x1b7b6d(_0x28b1ea['editing'],_0x29b50f);};_0x535bcf=_0x142ac8['createAnnotation']({'view':_0xc81f42,'target':_0x5da530,'type':()=>'suggestion-'+_0x2a21b3['view']['type'],'isVisible':!!_0x5da530()}),_0x1beb34['_bindAnnotationToEditors'](_0x2b1c0e,_0x535bcf),_0x142ac8['add'](_0x535bcf),_0x4e8591['registerAnnotation'](_0x535bcf);}['_destroyController'](_0x460fbc){const _0x578fb1=this['editor']['plugins']['get'](_0x3b47da),_0x3d0e97=this['editor']['plugins']['get'](_0x31fd62),_0x46103d=this['_suggestionToController']['get'](_0x460fbc),_0x6ace7c=_0x46103d['view'],_0xfcdfe4=_0x3d0e97['getByInnerView'](_0x6ace7c);_0x578fb1['_unbindEditors'](_0x6ace7c),_0xfcdfe4&&_0x3d0e97['remove'](_0xfcdfe4),this['_suggestionToController']['delete'](_0x460fbc),this['_viewToController']['delete'](_0x6ace7c),_0x46103d['destroy']();}['_updateController'](_0x202760){if(!_0x202760['isInContent']||!this['_suggestionToController']['has'](_0x202760))return;const _0x12738e=this['editor']['plugins']['get'](nn),_0x16e614=this['_suggestionToController']['get'](_0x202760),_0x52d108=_0x202760['getAllAdjacentSuggestions']();_0x16e614['view']['descriptionParts']=_0x12738e['descriptionFactory']['getDescriptions'](_0x52d108);}['destroy'](){for(const _0x326cef of this['_suggestionToController']['keys']())this['_destroyController'](_0x326cef);for(const _0x3c0174 of this['_annotationViews']['values']())_0x3c0174['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}};function Cn(_0x1008ce){return'model'in _0x1008ce;}var Rn=class extends _0x2b9af7{static get['requires'](){return[nn,kn,_0x3bd3b4];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x3b82de){this['editor']['plugins']['get'](nn)['adapter']=_0x3b82de;}get['adapter'](){return this['editor']['plugins']['get'](nn)['adapter'];}['addSuggestion'](_0x2a6222){return this['editor']['plugins']['get'](nn)['addSuggestionData'](_0x2a6222);}['getSuggestions']({skipNotAttached:_0x485e7d=!0x1,toJSON:_0x11fee5=!0x1}={}){return this['editor']['plugins']['get'](nn)['getSuggestions']({'skipNotAttached':_0x485e7d,'toJSON':_0x11fee5});}['getSuggestion'](_0x4dc487){return this['editor']['plugins']['get'](nn)['getSuggestion'](_0x4dc487);}};const Nn=['Pagination'];var yn=class extends _0x2b9af7{static get['requires'](){return[nn];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x2dfa92=this['editor'];if(_0x2dfa92['config']['define']('trackChangesData.editorCreator',_0x39d49a=>{const _0x7dc0af=_0x2dfa92['model']['document']['getRootNames']()['reduce']((_0x5cc2d5,_0x40d1cb)=>(_0x5cc2d5[_0x40d1cb]='',_0x5cc2d5),{});return _0x2dfa92['constructor']['create'](_0x7dc0af,_0x39d49a);}),'function'!=typeof _0x2dfa92['config']['get']('trackChangesData')['editorCreator'])throw new _0x5b3612('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x2c164b){return On(this['editor'],!0x0,_0x2c164b);}['getDataWithDiscardedSuggestions'](_0x283b0e){return On(this['editor'],!0x1,_0x283b0e);}},Sn=class extends _0x2b9af7{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x36d9f4){super(_0x36d9f4),this['result']='end',_0x36d9f4['editing']['view']['_overlayModeHint']='auto',_0x36d9f4['_sendUsageRequest']=()=>window['Promise']['resolve']({'status':'ok'});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}};function Mn(_0x5e6b8b){return void 0x0!==_0x5e6b8b['getRootsAttributes'];}async function On(_0x3780b6,_0x8ece19,_0x40ab22){const _0x3da82f=_0x2e53f2(_0x3780b6,Nn);if(_0x3da82f['plugins']['push'](nn,Sn),Mn(_0x3780b6)){_0x3da82f['roots']=Object['create'](null);for(const _0x2452ed of _0x3780b6['model']['document']['getRootNames']())_0x3da82f['roots'][_0x2452ed]={'modelAttributes':_0x3780b6['getRootAttributes'](_0x2452ed)};}const _0x256f2a=document['createDocumentFragment'](),_0x57e6c7=_0x3780b6['config']['get']('trackChangesData')['editorCreator'],_0x27fa6d=await _0x57e6c7(_0x3da82f,()=>function(_0x53bd15){const _0x2a43ab=document['createElement']('div');return _0x53bd15['appendChild'](_0x2a43ab),_0x2a43ab;}(_0x256f2a));!function(_0x37b14a,_0x34c2ca){const _0x5172ed=_0x37b14a['model']['document']['getRootNames']()['reduce']((_0x26fa54,_0x278550)=>(_0x26fa54[_0x278550]=_0x37b14a['data']['get']({'rootName':_0x278550}),_0x26fa54),{}),_0x19a282=_0x37b14a['plugins']['get']('Users')['users']['map'](_0x4a10c9=>({'id':_0x4a10c9['id'],'name':_0x4a10c9['name']})),_0x1615fc=_0x37b14a['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4cf71e=_0x37b14a['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x584138=_0x34c2ca['plugins']['get']('Users'),_0x36ef77=_0x34c2ca['plugins']['get']('TrackChangesEditing'),_0x42a79f=_0x34c2ca['plugins']['get']('CommentsRepository');for(const _0x4a41fd of _0x42a79f['getCommentThreads']())_0x4a41fd['remove']();for(const _0x3fe1b3 of _0x19a282)_0x584138['getUser'](_0x3fe1b3['id'])||_0x584138['addUser'](_0x3fe1b3);_0x584138['me']||_0x584138['useAnonymousUser']();for(const _0x1438f1 of _0x4cf71e)_0x42a79f['addCommentThread'](_0x1438f1);for(const _0x1ade67 of _0x1615fc)_0x36ef77['addSuggestionData'](_0x1ade67);_0x34c2ca['data']['set'](_0x5172ed);}(_0x3780b6,_0x27fa6d),_0x27fa6d['execute'](_0x8ece19?'acceptAllSuggestions':'discardAllSuggestions');const _0x37d1e8=Mn(_0x27fa6d)?_0x27fa6d['getFullData'](_0x40ab22):_0x27fa6d['data']['get'](_0x40ab22);return await _0x27fa6d['destroy'](),_0x37d1e8;}var wn=class extends _0x21406f{['options'];constructor(_0xdabe40,_0x3462f8){super(_0xdabe40),this['options']=_0x3462f8,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'](_0x5579ad,_0x1797cc){if(!this['element'])return;const _0x11c2d4=[];for(const [_0x374ede,_0x3dc658]of _0x5579ad){const _0x205d4e=document['createElement']('div');_0x205d4e['setAttribute']('data-ck-root-name',_0x374ede),_0x205d4e['className']=_0x3dc658['classes']+'\x20ck-track-changes-preview__root-container',_0x205d4e['innerHTML']=_0x3dc658['content'],_0x11c2d4['push'](_0x205d4e);}_0x1797cc(this['element'],_0x11c2d4),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}},Fn=class extends _0x4028e2{constructor(_0x1711bb){super(_0x1711bb),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x534359=this['editor'],_0x451156=_0x534359['locale'],_0x502db0=_0x534359['plugins']['get']('Dialog');let _0x31d197;const _0x2dff74=function(_0x5465f9){const _0x393479={};if('editables'in _0x5465f9['ui']['view']){for(const [_0x478f5e,_0x37ef22]of Object['entries'](_0x5465f9['ui']['view']['editables']))_0x393479[_0x478f5e]=_0x37ef22['element'];}else _0x393479[_0x5465f9['model']['document']['getRootNames']()[0x0]]=_0x5465f9['ui']['view']['editable']['element'];return _0x393479;}(_0x534359),_0x89e2db=function(_0x120012){let _0x182a77=0x0;for(const _0x1ecb2f of Object['values'](_0x120012))_0x182a77=Math['max'](_0x182a77,_0x1ecb2f['getBoundingClientRect']()['width']);let _0x481a6f=0x0;for(const _0x2d3b4a of Object['values'](_0x120012))_0x481a6f+=_0x2d3b4a['getBoundingClientRect']()['height'];const _0x8db2b5=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']);return{'width':_0x182a77,'height':Math['min'](_0x481a6f,_0x8db2b5)};}(_0x2dff74);_0x502db0['show']({'id':'finalContentPreview','title':St(_0x451156,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new wn(_0x451156,{'dialogRects':_0x89e2db}),'onHide':()=>{_0x31d197['detachFromDom']();},'onShow':()=>{_0x534359['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x46b6fd=>{const _0x710902=this['_standarizeRootsData'](_0x46b6fd,_0x534359,_0x2dff74);_0x502db0['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x710902,_0x534359['config']['get']('trackChanges.preview.renderFunction'));}),_0x31d197=new _0x5e1923(_0x451156,[_0x502db0['view']]),_0x31d197['attachToDom'](),_0x31d197['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x534359['once']('destroy',()=>{_0x31d197['detachFromDom']();});const _0x3c79fe=_0x502db0['view']['headerView']['class'];_0x502db0['view']['headerView']['class']=_0x3c79fe?_0x3c79fe+'\x20ck-reset_all':'ck-reset_all',_0x502db0['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x502db0['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x38f2d6=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x47a45a=_0x38f2d6['previewMode'],_0x30c13b={};if('$labels'===_0x47a45a){for(const _0xed87ce of _0x38f2d6['getMergeFieldsIds']())_0x30c13b[_0xed87ce]=_0x38f2d6['getLabel'](_0xed87ce)||_0xed87ce;}else{const _0x105637='$defaultValues'===_0x47a45a?_0x38f2d6['getDefaultValues']():_0x38f2d6['getDataSetValues'](_0x47a45a,!0x0);for(const _0x1fb131 of Object['entries'](_0x105637)){const [_0x34128a,_0x21a55b]=_0x1fb131;_0x30c13b[_0x34128a]=null!==_0x21a55b?_0x21a55b:_0x38f2d6['getLabel'](_0x34128a)||_0x34128a;}}return{'mergeFieldsData':_0x30c13b};}['_standarizeRootsData'](_0x3e950c,_0xdf7a6b,_0x5219b8){let _0x1ada78;_0x1ada78='string'==typeof _0x3e950c?{[_0xdf7a6b['model']['document']['getRootNames']()[0x0]]:_0x3e950c}:_0x3e950c;const _0x3bfb11=this['_fixMediaEmbeds'](_0x1ada78,_0xdf7a6b);return function(_0x341986,_0x531190){for(const [_0x4680bb,_0x449123]of _0x341986)_0x449123['classes']=_0x531190[_0x4680bb]['classList']['value']['replace']('ck-focused','');return _0x341986;}(this['_sortRoots'](_0xdf7a6b)['reduce']((_0x10fbd0,_0x576ef8)=>(_0x10fbd0['push']([_0x576ef8,{'content':_0x3bfb11[_0x576ef8],'classes':''}]),_0x10fbd0),[]),_0x5219b8);}['_fixMediaEmbeds'](_0x495454,_0x3594b8){if(!_0x3594b8['plugins']['has']('MediaEmbedEditing'))return _0x495454;const _0x509e74=_0x3594b8['plugins']['get']('MediaEmbedEditing');for(const [_0x5c29b7,_0x34965e]of Object['entries'](_0x495454)){const _0x1f31ee=document['createElement']('div');_0x1f31ee['innerHTML']=_0x34965e,_0x1f31ee['querySelectorAll']('figure.media')['forEach'](_0x445c66=>{const _0x28e36e=_0x445c66['querySelector']('oembed');if(_0x28e36e){const _0x5439c4=_0x28e36e['getAttribute']('url');if(_0x5439c4){const _0x427dad=_0x509e74['registry']['getMediaViewElement'](new ot(_0x3594b8['editing']['view']['document']),_0x5439c4,{'elementName':'','renderForEditingView':!0x0}),_0x539a36=document['createElement']('div');_0x539a36['classList']['add']('ck-media__wrapper'),_0x427dad['render'](_0x539a36,_0x3594b8['editing']['view']['domConverter']),_0x28e36e['replaceWith'](_0x539a36);}}}),_0x495454[_0x5c29b7]=_0x1f31ee['innerHTML'];}return _0x495454;}['_sortRoots'](_0x535c6d){if(!function(_0x13b3d2){return void 0x0!==_0x13b3d2['getRootsAttributes'];}(_0x535c6d))return _0x535c6d['model']['document']['getRootNames']();const _0x209cab=[],_0x545fb5=new Map();for(const _0xf4e0a5 of _0x535c6d['model']['document']['getRootNames']()){const _0x2da0fd=_0x535c6d['editing']['view']['getDomRoot'](_0xf4e0a5)['getClientRects']()['item'](0x0);_0x209cab['push'](_0xf4e0a5),_0x545fb5['set'](_0xf4e0a5,_0x2da0fd);}return _0x209cab['sort']((_0x2feb61,_0x121574)=>{const _0x2cdbfa=_0x545fb5['get'](_0x2feb61),_0x4f1509=_0x545fb5['get'](_0x121574);return _0x2cdbfa['y']-_0x4f1509['y']||_0x2cdbfa['x']-_0x4f1509['x'];}),_0x209cab;}},Bn=class extends _0x2b9af7{static get['requires'](){return[yn,_0x4ca6f3];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1c1824){super(_0x1c1824),_0x1c1824['commands']['add']('previewFinalContent',new Fn(this['editor'])),_0x1c1824['config']['define']('trackChanges.preview.renderFunction',(_0x47fcd1,_0x1b4148)=>{for(const _0x4896d7 of _0x1b4148)_0x47fcd1['appendChild'](_0x4896d7);});}};export{Tt as AcceptSuggestionCommand,In as BaseSuggestionThreadView,_t as DiscardSuggestionCommand,Ct as ExecuteOnAllSuggestionsCommand,Rt as ExecuteOnSelectedSuggestionsCommand,Fn as PreviewFinalContentCommand,yt as Suggestion,Mt as SuggestionDescriptionFactory,An as SuggestionThreadView,bn as SuggestionView,Rn as TrackChanges,Et as TrackChangesCommand,yn as TrackChangesData,Sn as TrackChangesDataGetter,nn as TrackChangesEditing,Bn as TrackChangesPreview,kn as TrackChangesUI};
|