@ckeditor/ckeditor5-track-changes 44.1.0-alpha.1 → 44.1.0-alpha.3
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/build/track-changes.js +1 -1
- package/dist/index.js +3 -3
- 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/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 +10 -10
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/index.js +1 -1
- package/src/integrations/aiassistant.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/bookmark.js +1 -1
- package/src/integrations/casechange.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/imagestyle.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/legacylist.js +1 -1
- package/src/integrations/legacylistproperties.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/mergefields.js +1 -1
- package/src/integrations/multilevellist.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +2 -2
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +2 -2
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/ui/view/suggestionview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as Qt,Plugin as
|
|
24
|
-
_0x5e240a(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x113b49,_0x1c8b47){super(),this['id']=_0x1c8b47['id'],this['type']=_0x1c8b47['type'],this['subType']=_0x1c8b47['subType']||null,this['author']=_0x1c8b47['author'],this['creator']=_0x1c8b47['creator']||_0x1c8b47['author'],this['isExternal']=Boolean(_0x1c8b47['attributes']&&_0x1c8b47['attributes']['@external']),this['data']=null,this['_model']=_0x113b49,this['_onAccept']=_0x1c8b47['onAccept'],this['_onDiscard']=_0x1c8b47['onDiscard'],this['_onAttributesChange']=_0x1c8b47['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x1c8b47['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get['head'](){let _0x4a8df6=this;for(;_0x4a8df6['previous'];)_0x4a8df6=_0x4a8df6['previous'];return _0x4a8df6;}get['hasComments'](){return!!this['commentThread']&&this['commentThread']['length']>0x0;}get['isMultiRange'](){if(0x0==this['_markerNames']['size'])return!0x1;return 0x6==Array['from'](this['_markerNames'])[0x0]['split'](':')['length'];}get['isInContent'](){return null!==this['getFirstMarker']();}['addMarkerName'](_0x488c90){this['_markerNames']['add'](_0x488c90);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x3e8463=>this['_model']['markers']['get'](_0x3e8463))['filter'](_0x2a2fb2=>_0x2a2fb2);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x5a923a=>{for(const _0xa354b9 of this['getMarkers']())_0x5a923a['removeMarker'](_0xa354b9);}),this['_markerNames']['clear']();}['removeMarker'](_0x4bd31a){this['_model']['change'](_0x113547=>{_0x113547['removeMarker'](_0x4bd31a);}),this['_markerNames']['delete'](_0x4bd31a);}['addRange'](_0x49d2f5){const _0x1aba62='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x1aba62),this['_model']['change'](_0x1b996f=>{_0x1b996f['addMarker'](_0x1aba62,{'range':_0x49d2f5,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x2803f2){for(const _0x22e1a9 of this['getRanges']())if(_0x22e1a9['isIntersecting'](_0x2803f2))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x35c9c5=>_0x35c9c5['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x46290c,_0x929197)=>[..._0x46290c,..._0x929197['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x382d1c=this['getRanges']();if(0x1!=_0x382d1c['length'])return null;const _0x20357a=_0x382d1c[0x0],_0x3ce74a=_0x20357a['start']['nodeAfter'],_0x20dd56=_0x20357a['end']['nodeBefore'];return _0x3ce74a instanceof _0x61c7b7?_0x3ce74a!=_0x20dd56?null:_0x3ce74a: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 _0x55b222=[];let _0x52bc66=this['head'];for(;_0x52bc66;)_0x55b222['push'](_0x52bc66),_0x52bc66=_0x52bc66['next'];return _0x55b222;}['setAttribute'](_0x5a36f9,_0x1b86b2){const _0x2c8b90=_0x27d82d(this['attributes']);_0x1386f3(_0x2c8b90,_0x5a36f9,_0x1b86b2),_0x4700ac(_0x2c8b90,this['attributes'])||(this['attributes']=_0x2c8b90,this['_onAttributesChange'](_0x2c8b90));}['removeAttribute'](_0x25def0){const _0x3dbf58=_0x27d82d(this['attributes']);_0xd0c7a4(_0x3dbf58,_0x25def0),_0x4700ac(_0x3dbf58,this['attributes'])||(this['attributes']=_0x3dbf58,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 _0x1cdff5()['substr'](0x1,0x5);}}function o(_0x1eb845,_0x1e12d1,_0x3c51c2){const _0x52e39c=_0x1eb845['t'],t=_0x1eb845['t'];switch(_0x1e12d1){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'*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',_0x3c51c2);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x3c51c2);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x3c51c2);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x3c51c2);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x3c51c2);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',_0x3c51c2);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x3c51c2);case'*Replace\x20image\x20URL*':return t('*Replace\x20image\x20URL*');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',_0x3c51c2);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x3c51c2);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x3c51c2);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x3c51c2);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x3c51c2);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x3c51c2);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x3c51c2);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x3c51c2);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x3c51c2);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x3c51c2);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x3c51c2);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x3c51c2);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x3c51c2);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x3c51c2);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x3c51c2);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x3c51c2);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x3c51c2);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'},_0x3c51c2);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x3c51c2);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x3c51c2);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x3c51c2);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x3c51c2);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x3c51c2);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});case'ELEMENT_CAPTION':return t({'string':'caption','id':'ELEMENT_CAPTION'});case'ELEMENT_HORIZONTAL_LINE':return t({'string':'horizontal\x20line','plural':'%0\x20horizontal\x20lines','id':'ELEMENT_HORIZONTAL_LINE'},_0x3c51c2);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x3c51c2);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x3c51c2);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x3c51c2);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x3c51c2);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_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'},_0x3c51c2);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x3c51c2);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'},_0x3c51c2);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_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'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'},_0x3c51c2);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x3c51c2);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'},_0x3c51c2);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x3c51c2);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'},_0x3c51c2);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x3c51c2);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x3c51c2);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'},_0x3c51c2);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x3c51c2);case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'EXTERNAL_AVATAR':return _0x52e39c({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x3c51c2);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x52e39c({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x3c51c2);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x3c51c2);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'},_0x3c51c2);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'},_0x3c51c2);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'},_0x3c51c2);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x1e12d1;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x33ed28,_0x3ac1c8){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x33ed28,this['_locale']=_0x3ac1c8;}['getDescriptions'](_0x4e16a1){const _0x2686f3=[],_0x28a6f7=new Set(),_0x1e7516=new Set();for(let _0x153fbb=0x0;_0x153fbb<_0x4e16a1['length'];_0x153fbb++){const _0x5e6c92=_0x4e16a1[_0x153fbb];if(!_0x5e6c92['isInContent'])continue;const _0x4cda05=this['_handleCustomCallbackDescription'](_0x5e6c92);if(_0x4cda05){if(null!=_0x5e6c92['subType']){if(_0x28a6f7['has'](_0x5e6c92['subType']))continue;_0x28a6f7['add'](_0x5e6c92['subType']);}_0x2686f3['push'](_0x4cda05);}else{if('attribute'!=_0x5e6c92['type'])'insertion'!=_0x5e6c92['type']&&'deletion'!=_0x5e6c92['type']||this['_handleInsertRemoveSuggestionDescription'](_0x2686f3,_0x5e6c92,_0x4e16a1[_0x153fbb+0x1]);else{const _0x128d53=_0x5e6c92['data']['key'];if(_0x1e7516['has'](_0x128d53))continue;_0x1e7516['add'](_0x5e6c92['data']['key']),_0x128d53==m?this['_handleRenameSuggestionDescription'](_0x2686f3,_0x5e6c92):this['_handleAttributeSuggestionDescription'](_0x2686f3,_0x5e6c92);}}}return this['_resolveDescriptionItems'](_0x2686f3);}['registerDescriptionCallback'](_0x44d8cd){this['_customCallbacks']['push'](_0x44d8cd);}['registerElementLabel'](_0x1d3ecf,_0x4ee7cc,_0x1e6aed=_0x2e7237['normal']){'function'==typeof _0x1d3ecf?_0x113a93(this['_itemLabelsCallbacks'],{'matchingCallback':_0x1d3ecf,'label':_0x4ee7cc,'priority':_0x1e6aed}):this['_itemLabels']['set'](_0x1d3ecf,_0x4ee7cc);}['registerAttributeLabel'](_0x3b59e8,_0x613ed6){this['_attributeLabels']['set'](_0x3b59e8,_0x613ed6);}['getItemLabel'](_0x783b4f,_0xb32dd=0x1){let _0x56d867;for(const _0x1c74ea of this['_itemLabelsCallbacks'])if(_0x1c74ea['matchingCallback'](_0x783b4f)){_0x56d867=_0x1c74ea['label'];break;}return _0x56d867||(_0x56d867=this['_itemLabels']['get'](_0x783b4f['name'])),_0x56d867?_0x56d867(_0xb32dd):0x1!==_0xb32dd?_0xb32dd+'\x20'+_0x783b4f['name']+'s':''+_0x783b4f['name'];}['_addDescriptionItems'](_0x4219bb,_0x5d7972){const _0x1277b0=_0x5d7972['getFirstRange']()['getWalker'](),_0x24b17e='insertion'==_0x5d7972['type']?'add':'remove';for(const _0x17f87d of _0x1277b0){const _0x4d566c=_0x17f87d['item'],_0x44798e=_0x4219bb[_0x4219bb['length']-0x1];if(_0x4d566c['is']('$textProxy'))_0x44798e&&_0x44798e['type']['indexOf']('Container')>-0x1&&_0x4219bb['pop'](),_0x44798e&&'text'==_0x44798e['type']?_0x44798e[_0x24b17e]+=_0x4d566c['data']:_0x4219bb['push']({'type':'text','add':'add'==_0x24b17e?_0x4d566c['data']:'','remove':'remove'==_0x24b17e?_0x4d566c['data']:''});else{if(this['_schema']['isObject'](_0x4d566c)){const _0x3dbbc8=_0x4d566c;if(_0x44798e&&_0x44798e['type']['indexOf']('Container')>-0x1&&_0x4219bb['pop'](),'elementEnd'==_0x17f87d['type'])continue;_0x44798e&&_0x44798e['type']==_0x24b17e+'Object'&&_0x44798e['element']['name']==_0x3dbbc8['name']?_0x44798e['quantity']++:_0x4219bb['push']({'type':_0x24b17e+'Object','element':_0x3dbbc8,'quantity':0x1}),_0x1277b0['skip'](_0x364ce3=>!('elementEnd'==_0x364ce3['type']&&_0x364ce3['item']==_0x4d566c));}else{if(this['_schema']['checkChild'](_0x4d566c,'$text')||_0x4d566c['is']('element','softBreak')){const _0x517ff3=_0x4d566c;if('add'==_0x24b17e&&'elementStart'==_0x17f87d['type']||'remove'==_0x24b17e&&'elementEnd'==_0x17f87d['type'])continue;if(_0x44798e&&-0x1==_0x44798e['type']['indexOf']('Container')){'text'==_0x44798e['type']&&(_0x44798e[_0x24b17e]+='\x0a');continue;}let _0x31ddff;if(_0x31ddff='add'==_0x24b17e?_0x517ff3['nextSibling']&&!this['_schema']['isObject'](_0x517ff3['nextSibling'])?_0x517ff3['nextSibling']:null:_0x517ff3['previousSibling']&&!this['_schema']['isObject'](_0x517ff3['previousSibling'])?_0x517ff3['previousSibling']:null,_0x517ff3['isEmpty']||_0x31ddff&&_0x31ddff['isEmpty']){const _0x756c65=_0x31ddff&&_0x31ddff['isEmpty']?_0x31ddff:_0x517ff3;_0x44798e&&_0x44798e['type']==_0x24b17e+'EmptyContainer'&&_0x44798e['element']['name']==_0x756c65['name']?_0x44798e['quantity']++:_0x4219bb['push']({'type':_0x24b17e+'EmptyContainer','element':_0x756c65,'quantity':0x1});}else _0x4219bb['push']({'type':_0x24b17e+'Container','element':_0x517ff3});}}}}}['_resolveDescriptionItems'](_0x5bba7f){const _0x14ae2d=this['_locale'],_0x1dcebf=[],_0x4b269d=[],_0x6bfaad=[];for(const _0x3420e2 of _0x5bba7f)switch(_0x3420e2['type']){case'text':if(_0x3420e2['add']=_0x3420e2['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x3420e2['remove']=_0x3420e2['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x3420e2['add']&&''!=_0x3420e2['remove']){_0x1dcebf['push']({'type':'replace','content':o(_0x14ae2d,'REPLACE_TEXT',['\x22'+_0x3420e2['remove']+'\x22','\x22'+_0x3420e2['add']+'\x22'])});continue;}if(null!=_0x3420e2['add']['match'](/^ +$/)){_0x1dcebf['push']({'type':'insertion','content':o(_0x14ae2d,'*Insert:*\x20%0',o(_0x14ae2d,'ELEMENT_SPACE',_0x3420e2['add']['length']))});continue;}if(null!=_0x3420e2['remove']['match'](/^ +$/)){_0x1dcebf['push']({'type':'deletion','content':o(_0x14ae2d,'*Remove:*\x20%0',o(_0x14ae2d,'ELEMENT_SPACE',_0x3420e2['remove']['length']))});continue;}if(''!=_0x3420e2['add']){_0x1dcebf['push']({'type':'insertion','content':o(_0x14ae2d,'*Insert:*\x20%0','\x22'+_0x3420e2['add']+'\x22')});continue;}_0x1dcebf['push']({'type':'deletion','content':o(_0x14ae2d,'*Remove:*\x20%0','\x22'+_0x3420e2['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x1dcebf['push']({'type':'insertion','content':o(_0x14ae2d,'*Insert:*\x20%0',this['getItemLabel'](_0x3420e2['element'],_0x3420e2['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x1dcebf['push']({'type':'deletion','content':o(_0x14ae2d,'*Remove:*\x20%0',this['getItemLabel'](_0x3420e2['element'],_0x3420e2['quantity']))});continue;case'addContainer':_0x1dcebf['push']({'type':'insertion','content':o(_0x14ae2d,'*Split:*\x20%0',this['getItemLabel'](_0x3420e2['element'],_0x3420e2['quantity']))});continue;case'removeContainer':_0x1dcebf['push']({'type':'deletion','content':o(_0x14ae2d,'*Merge:*\x20%0',this['getItemLabel'](_0x3420e2['element'],_0x3420e2['quantity']))});continue;case'addFormat':_0x4b269d['push'](_0x3420e2['key']);continue;case'removeFormat':_0x6bfaad['push'](_0x3420e2['key']);continue;default:_0x1dcebf['push'](_0x3420e2);}if(_0x4b269d['length']){const _0x584086=_0x4b269d['map'](_0x52a94a=>this['_attributeLabels']['has'](_0x52a94a)?this['_attributeLabels']['get'](_0x52a94a):_0x52a94a)['join'](',\x20');_0x1dcebf['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x584086)});}if(_0x6bfaad['length']){const _0x476e5d=_0x6bfaad['map'](_0x4ce37c=>this['_attributeLabels']['has'](_0x4ce37c)?this['_attributeLabels']['get'](_0x4ce37c):_0x4ce37c)['join'](',\x20');_0x1dcebf['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x476e5d)});}return _0x1dcebf;}['_handleCustomCallbackDescription'](_0x1e963a){for(const _0x39018b of this['_customCallbacks']){const _0x586e6e=_0x39018b(_0x1e963a);if(_0x586e6e&&'type'in _0x586e6e)return _0x586e6e;}}['_handleAttributeSuggestionDescription'](_0x8dadf6,_0x35b084){const _0x5f5af7=_0x35b084['data'],_0x3c8053=void 0x0===_0x5f5af7['newValue']?'removeFormat':'addFormat';_0x8dadf6['push']({'type':_0x3c8053,'key':_0x5f5af7['key']});}['_handleRenameSuggestionDescription'](_0x154cdd,_0x1444b9){_0x154cdd['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x1444b9['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x59708c,_0x4bbd15,_0x36d869){if(this['_addDescriptionItems'](_0x59708c,_0x4bbd15),_0x36d869&&_0x36d869['getFirstRange']()&&!_0x4bbd15['getFirstRange']()['end']['isEqual'](_0x36d869['getFirstRange']()['start'])){const _0xdc039a=_0x59708c[_0x59708c['length']-0x1],_0x5eceef='insertion'==_0x4bbd15['type']?'add':'remove';_0xdc039a&&'text'==_0xdc039a['type']&&(_0xdc039a[_0x5eceef]+='\x0a');}}}class U extends _0x3c70aa{['afterInit'](){const _0x4b1ea6=this['editor'],_0x1662bf=_0x4b1ea6['plugins']['get']('TrackChangesEditing');_0x4b1ea6['commands']['get']('showAIAssistant')&&_0x1662bf['enableCommand']('showAIAssistant');}}class V extends _0x3c70aa{['afterInit'](){const _0x1ab935=this['editor'],_0x3a2955=_0x1ab935['locale'];if(!_0x1ab935['plugins']['has']('AlignmentEditing'))return;const _0x319964=_0x1ab935['plugins']['get']('TrackChangesEditing');_0x319964['enableDefaultAttributesIntegration']('alignment'),_0x319964['registerBlockAttribute']('alignment'),_0x319964['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x3a2955,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1064de=this['editor'],_0x31342b=_0x1064de['locale'];_0x1064de['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5e1ede=>{if('formatBlock'!=_0x5e1ede['type'])return;const {data:_0xa856ce}=_0x5e1ede;if(_0xa856ce&&'alignment'==_0xa856ce['commandName']){const _0x2651f=_0xa856ce['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x31342b,'*Format:*\x20%0',function(_0xd138a7){switch(_0xd138a7){case'left':return o(_0x31342b,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x31342b,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x31342b,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x31342b,'FORMAT_JUSTIFY_TEXT');}}(_0x2651f))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x3c70aa{['afterInit'](){const _0x5558db=this['editor'],_0x1b28c7=_0x5558db['plugins']['get']('TrackChangesEditing'),_0x3a27a8=_0x5558db['locale'];for(const _0x1a13cb of Zt){if(!_0x5558db['plugins']['has'](_0x1a13cb))continue;const _0xe1e05a=_0x1a13cb['slice'](0x0,-0x7)['toLowerCase'](),_0x44a2b3='FORMAT_'+_0xe1e05a['toUpperCase']();_0x1b28c7['enableDefaultAttributesIntegration'](_0xe1e05a),_0x1b28c7['registerInlineAttribute'](_0xe1e05a),_0x1b28c7['descriptionFactory']['registerAttributeLabel'](_0xe1e05a,o(_0x3a27a8,_0x44a2b3));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4da0b2=this['editor'],_0x547944=_0x4da0b2['locale'],_0xe3fad6=_0x4da0b2['plugins']['get']('TrackChangesEditing');function _0x1299ae(_0x2353a5,_0x57dc01){_0xe3fad6['descriptionFactory']['registerDescriptionCallback'](_0x2a8485=>{if('formatInline'!=_0x2a8485['type'])return;const {data:_0xd98a10}=_0x2a8485;return _0xd98a10&&_0xd98a10['commandName']===_0x2353a5?_0xd98a10['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x547944,'*Format:*\x20%0',_0x57dc01)}:{'type':'format','content':o(_0x547944,'*Remove\x20format:*\x20%0',_0x57dc01)}:void 0x0;});}_0x1299ae('bold',o(_0x547944,'FORMAT_BOLD')),_0x1299ae('italic',o(_0x547944,'FORMAT_ITALIC')),_0x1299ae('underline',o(_0x547944,'FORMAT_UNDERLINE')),_0x1299ae('code',o(_0x547944,'FORMAT_CODE')),_0x1299ae('strikethrough',o(_0x547944,'FORMAT_STRIKETHROUGH')),_0x1299ae('subscript',o(_0x547944,'FORMAT_SUBSCRIPT')),_0x1299ae('superscript',o(_0x547944,'FORMAT_SUPERSCRIPT'));}}class F extends _0x3c70aa{['afterInit'](){const _0x2a6d37=this['editor'],_0x549baa=_0x2a6d37['locale'];if(!_0x2a6d37['plugins']['has']('BlockQuoteEditing'))return;const _0x471f25=_0x2a6d37['plugins']['get']('TrackChangesEditing'),_0x458cd4=this['editor']['commands']['get']('blockQuote');_0x471f25['enableCommand']('blockQuote',(_0x1c8e50,_0xa866c0={})=>{const _0x1e71f9=this['editor']['model']['document']['selection'],_0x3ba080=_0xa866c0&&void 0x0!==_0xa866c0['forceValue']?_0xa866c0['forceValue']:!_0x458cd4['value'];let _0xe5a176=[];if(_0x3ba080){const _0xfb4d99=Array['from'](_0x1e71f9['getSelectedBlocks']())['filter'](_0x56f6be=>oo(_0x56f6be)||function(_0x3b5982,_0x13fb62){const _0x3d13cd=_0x13fb62['checkChild'](_0x3b5982['parent'],'blockQuote'),_0x3136b3=_0x13fb62['checkChild'](['$root','blockQuote'],_0x3b5982);return _0x3d13cd&&_0x3136b3;}(_0x56f6be,this['editor']['model']['schema']));_0xe5a176=to(_0xfb4d99,_0x2a6d37['model']);}else{const _0x2f2968=Array['from'](_0x1e71f9['getSelectedBlocks']())['filter'](_0xb449f9=>oo(_0xb449f9));_0xe5a176=to(_0x2f2968,_0x2a6d37['model']);}_0x2a6d37['model']['change'](()=>{for(const _0x429cb4 of _0xe5a176)_0x471f25['markBlockFormat'](_0x429cb4,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x3ba080}]});});}),_0x471f25['descriptionFactory']['registerDescriptionCallback'](_0x46e472=>{const {data:_0x56fdec}=_0x46e472;if(_0x56fdec&&'blockQuote'==_0x56fdec['commandName']){const _0x100fa8=o(_0x549baa,'ELEMENT_BLOCK_QUOTE');return _0x56fdec['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x549baa,'*Set\x20format:*\x20%0',_0x100fa8)}:{'type':'format','content':o(_0x549baa,'*Remove\x20format:*\x20%0',_0x100fa8)};}});}}function oo(_0x48d99b){return'blockQuote'==_0x48d99b['parent']['name'];}class L extends _0x3c70aa{['afterInit'](){const _0x264d37=this['editor'],_0x36b626=_0x264d37['locale'],_0x3b2bd7=_0x264d37['plugins']['get']('TrackChangesEditing');_0x264d37['plugins']['has']('BookmarkEditing')&&(_0x3b2bd7['enableCommand']('insertBookmark'),_0x3b2bd7['enableDefaultAttributesIntegration']('updateBookmark'),_0x3b2bd7['registerBlockAttribute']('bookmarkId'),_0x3b2bd7['descriptionFactory']['registerDescriptionCallback'](_0x13de5f=>{if('insertion'!=_0x13de5f['type']&&'deletion'!=_0x13de5f['type']&&'attribute'!=_0x13de5f['type'])return;const _0x724b6e=_0x13de5f['getContainedElement']();if(null==_0x724b6e)return;if(!_0x724b6e['is']('element','bookmark'))return;const _0x4e4a99=_0x724b6e['getAttribute']('bookmarkId');if('insertion'==_0x13de5f['type'])return{'type':'insertion','content':o(_0x36b626,'*Insert:*\x20%0','\x22'+_0x4e4a99+'\x22\x20'+o(_0x36b626,'ELEMENT_BOOKMARK'))};if('deletion'==_0x13de5f['type'])return{'type':'deletion','content':o(_0x36b626,'*Remove:*\x20%0','\x22'+_0x4e4a99+'\x22\x20'+o(_0x36b626,'ELEMENT_BOOKMARK'))};const {data:_0x32adf7}=_0x13de5f;if(!_0x32adf7||'bookmarkId'!=_0x32adf7['key'])return;return{'type':'format','content':o(_0x36b626,'*Set\x20bookmark:*\x20%0','\x22'+_0x32adf7['newValue']+'\x22')};}));}}class J extends _0x3c70aa{['afterInit'](){const _0x27df4b=this['editor'];_0x27df4b['plugins']['has']('CaseChange')&&(_0x27df4b['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x27df4b['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x27df4b['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x3c70aa{['afterInit'](){const _0x55ffd9=this['editor'];_0x55ffd9['commands']['get']('ckbox')&&_0x55ffd9['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x3c70aa{['afterInit'](){const _0x43de06=this['editor'];if(!_0x43de06['plugins']['has']('CodeBlock'))return;const _0x2d2c01=_0x43de06['plugins']['get']('TrackChangesEditing'),_0x24fe78=_0x43de06['locale'],_0x4fa5e1=_0x43de06['config']['get']('codeBlock')['languages'],_0x6ed662=_0x43de06['commands']['get']('codeBlock');_0x2d2c01['enableCommand']('indentCodeBlock'),_0x2d2c01['enableCommand']('outdentCodeBlock'),_0x2d2c01['enableCommand']('codeBlock',(_0x2a8e27,_0xda2123={})=>{const _0x2c726c=_0x43de06['model'],_0x5c1136=_0x43de06['model']['document']['selection'],_0x116a5c=_0xda2123&&void 0x0!==_0xda2123['forceValue']?_0xda2123['forceValue']:!_0x6ed662['value'];let _0x684b9d;_0xda2123['language']||(_0xda2123['language']=_0x4fa5e1[0x0]['language']),_0x684b9d=_0x116a5c?Array['from'](_0x5c1136['getSelectedBlocks']())['filter'](_0x184e76=>eo(_0x184e76)||function(_0x598b35,_0x3d5111){if(_0x598b35['is']('rootElement')||_0x3d5111['isLimit'](_0x598b35))return!0x1;return _0x3d5111['checkChild'](_0x598b35['parent'],'codeBlock');}(_0x184e76,_0x2c726c['schema'])):Array['from'](_0x5c1136['getSelectedBlocks']())['filter'](_0x549254=>eo(_0x549254));const _0x4db2db=to(_0x684b9d,_0x2c726c);_0x2c726c['change'](()=>{for(const _0x385be0 of _0x4db2db)_0x2d2c01['markBlockFormat'](_0x385be0,{'commandName':'codeBlock','commandParams':[{..._0xda2123,'forceValue':_0x116a5c}],'formatGroupId':'blockName'});});}),(_0x2d2c01['descriptionFactory']['registerElementLabel']('codeBlock',_0x209f2f=>o(_0x24fe78,'ELEMENT_CODE_BLOCK',_0x209f2f)),_0x2d2c01['descriptionFactory']['registerDescriptionCallback'](_0x27895a=>{if('formatBlock'!=_0x27895a['type'])return;const _0x2f0b97=_0x24fe78['t'],{data:_0x4be0d1}=_0x27895a;if(!_0x4be0d1||'codeBlock'!=_0x4be0d1['commandName'])return;const _0x52493a=_0x4be0d1['commandParams'][0x0]['language'],_0x16dcbd=_0x2f0b97(_0x4fa5e1['find'](_0x543c2f=>_0x543c2f['language']===_0x52493a)['label'])['toLowerCase']();return _0x4be0d1['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x24fe78,'*Set\x20format:*\x20%0',o(_0x24fe78,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x16dcbd+')')}:{'type':'format','content':o(_0x24fe78,'*Remove\x20format:*\x20%0',o(_0x24fe78,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x1b39a1){return'codeBlock'==_0x1b39a1['name'];}class z extends _0x3c70aa{['afterInit'](){const _0x55b6c1=this['editor'];if(!_0x55b6c1['plugins']['has']('CommentsEditing'))return;_0x55b6c1['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x383691,_0x16e4ad,_0x4fca01){const _0x9f90e6=[];for(const _0x556b67 of _0x16e4ad['getItems']())_0x556b67['hasAttribute'](_0x383691)&&_0x9f90e6['push'](_0x4fca01['createRangeOn'](_0x556b67));return _0x9f90e6;}function Ne(_0x51bbad,_0x66a6b8,{showActiveMarker:_0x3b0ead=!0x0}={}){const _0x232845=_0x51bbad['plugins']['get']('TrackChangesEditing');return(_0x3ba3cf,_0x3d8f11,_0x225595)=>{if(!_0x225595['consumable']['test'](_0x3d8f11['markerRange'],_0x3ba3cf['name']))return;const _0x530fa4=_0x3d8f11['markerRange']['getWalker'](),_0x192e60=_0x3d8f11['markerRange']['start'],_0x3b3934=_0x51bbad['model']['schema'];let _0x3afb6b=null,_0x4a839b=null,_0x4ea640=!0x1,_0x1bf96a=!0x1;for(const _0x3a245e of _0x530fa4){const _0x138bd0=_0x3a245e['item'];_0x4ea640=_0x4ea640||_0x3b3934['isContent'](_0x138bd0);const _0x8854ab=_0x225595['mapper']['toViewElement'](_0x138bd0);if(_0x8854ab&&_0x8854ab['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3a245e['type']&&(_0x3b3934['isBlock'](_0x138bd0)&&!_0x3b3934['isLimit'](_0x138bd0)&&(_0x138bd0['nextSibling']||_0x192e60['isAtEnd']?_0x3afb6b&&_0x3afb6b['parent']==_0x138bd0||(_0x3afb6b=_0x138bd0,_0x5eb6da(_0x3a245e['previousPosition']),_0x1bf96a=!0x0):_0x4a839b=_0x4a839b||_0x3a245e['previousPosition']));}function _0x5eb6da(_0xe7dc80){const {authorId:_0x44a894}=_0x232845['_splitMarkerName'](_0x3d8f11['markerName']),_0x236e64=_0x225595['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x66a6b8,'data-author-id':_0x44a894}),_0xe72774=_0x225595['mapper']['toViewPosition'](_0xe7dc80);_0x3b0ead&&_0x232845['activeMarkers']['includes'](_0x3d8f11['markerName'])&&_0x225595['writer']['addClass']('ck-suggestion-marker--active',_0x236e64),_0x225595['writer']['insert'](_0xe72774,_0x236e64),_0x225595['mapper']['bindElementToMarker'](_0x236e64,_0x3d8f11['markerName']);}_0x4ea640||_0x1bf96a||!_0x4a839b||_0x5eb6da(_0x4a839b);};}class K extends _0x3c70aa{static get['requires'](){return[_0x1f0ed5];}['init'](){const _0xe9b941=this['editor'],_0xf05007=_0xe9b941['plugins']['get']('TrackChangesEditing');_0xf05007['enableCommand']('delete');const _0x1dced9=_0xe9b941['commands']['get']('deleteForward');_0xf05007['enableCommand']('deleteForward',(_0xb84170,_0x23062c={})=>{const _0x27392b=_0xe9b941['model']['createSelection'](_0xe9b941['model']['document']['selection']);_0x27392b['isCollapsed']&&_0xe9b941['model']['modifySelection'](_0x27392b,{'direction':'forward','unit':_0x23062c['unit']});const _0x2642f6=_0x27392b['getFirstRange'](),_0x188241=_0x4fb46f['fromRange'](_0x2642f6);let _0x1fc517;_0xb84170(_0x23062c),_0x1fc517='$graveyard'==_0x188241['root']['rootName']?_0xe9b941['model']['createRange'](_0x2642f6['start']):_0xe9b941['model']['createRange'](_0x188241['start'],_0x188241['end']),_0x188241['detach'](),_0xe9b941['model']['enqueueChange'](_0x1dced9['buffer']['batch'],_0x4d14c2=>{_0x1dced9['buffer']['lock'](),_0x4d14c2['setSelection'](_0x4d14c2['createRange'](_0x1fc517['end'])),_0x1dced9['buffer']['unlock']();});}),_0xe9b941['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Ne(_0xe9b941,'merge'),{'priority':'high'}),_0xe9b941['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x30bd00,_0x223e90,_0x105287)=>{_0x105287['options']['showSuggestionHighlights']&&Ne(_0xe9b941,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x30bd00,_0x223e90,_0x105287);},{'priority':'high'}),_0xe9b941['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x1b2433,_0x17d898,_0x17304c)=>{const _0x4ea00d=_0x17304c['mapper']['markerNameToElements'](_0x17d898['markerName']);if(_0x4ea00d){for(const _0x4902a9 of _0x4ea00d)_0x4902a9['is']('uiElement')&&(_0x17304c['mapper']['unbindElementFromMarkerName'](_0x4902a9,_0x17d898['markerName']),_0x17304c['writer']['remove'](_0x4902a9));}},{'priority':'high'});}}class W extends _0x3c70aa{['afterInit'](){const _0x3a0cc7=this['editor'];if(!_0x3a0cc7['plugins']['has']('ListEditing'))return;const _0x5decee=_0x3a0cc7['locale'],_0x4aff1b=_0x3a0cc7['plugins']['get']('TrackChangesEditing'),_0x5e2b6b=_0x3a0cc7['plugins']['has']('TodoListEditing'),_0x3895a2=!!_0x3a0cc7['config']['get']('list.multiBlock');function _0x151e57(_0x42336f){return{'type':'format','content':''+o(_0x5decee,'*Set\x20format:*\x20%0',_0x42336f)};}function _0x3bec3a(_0x3064c9){return{'type':'format','content':''+o(_0x5decee,'*Remove\x20format:*\x20%0',_0x3064c9)};}_0x4aff1b['enableDefaultAttributesIntegration']('numberedList'),_0x4aff1b['enableDefaultAttributesIntegration']('bulletedList'),_0x4aff1b['enableDefaultAttributesIntegration']('customNumberedList'),_0x4aff1b['enableDefaultAttributesIntegration']('customBulletedList'),_0x4aff1b['enableDefaultAttributesIntegration']('indentList'),_0x4aff1b['enableDefaultAttributesIntegration']('outdentList'),_0x4aff1b['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x4aff1b['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x4aff1b['registerBlockAttribute']('listItemId'),_0x4aff1b['registerBlockAttribute']('listType'),_0x4aff1b['registerBlockAttribute']('listIndent'),_0x3895a2&&(_0x4aff1b['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x4aff1b['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x5e2b6b&&(_0x4aff1b['enableDefaultAttributesIntegration']('todoList'),_0x4aff1b['enableDefaultAttributesIntegration']('checkTodoList'),_0x4aff1b['registerBlockAttribute']('todoListChecked'),_0x4aff1b['descriptionFactory']['registerDescriptionCallback'](_0x31a5ca=>{const {data:_0x4b0e4e}=_0x31a5ca;if(_0x4b0e4e&&'todoListChecked'==_0x4b0e4e['key'])return{'type':'format','content':_0x4b0e4e['newValue']?o(_0x5decee,'*Check\x20item*'):o(_0x5decee,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x54aba5=>{if(_0x54aba5['batch']['isUndo'])return!0x1;let _0x4a4c83=!0x1;const _0x1f0d06=_0x4aff1b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x9c58ee=>'todoListChecked'===_0x4aff1b['_getAttributeKey'](_0x9c58ee));for(const _0x2e9df4 of _0x1f0d06){'todo'!=_0x2e9df4['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x4aff1b['_findSuggestions'](_0x2e9df4['getFirstRange'](),'attribute')['find'](_0x5991d3=>'listType'===_0x4aff1b['_getAttributeKey'](_0x5991d3['suggestion']))||(_0x54aba5['removeMarker'](_0x2e9df4['getFirstMarker']()),_0x4a4c83=!0x0));}return _0x4a4c83;})),_0x4aff1b['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x5decee,'FORMAT_INDENT'));const _0x528de4={'type':'format','content':''};_0x4aff1b['descriptionFactory']['registerDescriptionCallback'](_0x397b8c=>{const {data:_0x5ddae6}=_0x397b8c;if(!_0x5ddae6||'listType'!=_0x5ddae6['key'])return;let _0x3366cb=_0x397b8c['head'];for(;_0x3366cb;){if(_0x3366cb['data']&&(('listStyle'==_0x3366cb['data']['key']||'listMarkerStyle'==_0x3366cb['data']['key'])&&(_0x3366cb['data']['newValue']&&'default'!=_0x3366cb['data']['newValue']||'default'!=_0x3366cb['data']['oldValue']&&!_0x5ddae6['newValue'])||!_0x3895a2&&_0x3366cb['data']['key']==m))return _0x528de4;_0x3366cb=_0x3366cb['next'];}if(null==_0x5ddae6['newValue'])switch(_0x5ddae6['oldValue']){case'bulleted':return _0x3bec3a(o(_0x5decee,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3bec3a(o(_0x5decee,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3bec3a(o(_0x5decee,'ELEMENT_TODO_LIST'));}switch(_0x5ddae6['newValue']){case'bulleted':return _0x151e57(o(_0x5decee,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x151e57(o(_0x5decee,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x151e57(o(_0x5decee,'ELEMENT_TODO_LIST'));}}),_0x4aff1b['descriptionFactory']['registerDescriptionCallback'](_0x4dafe4=>{const {data:_0x451cb6}=_0x4dafe4;if(_0x451cb6&&'listIndent'==_0x451cb6['key'])return null==_0x451cb6['newValue']||null==_0x451cb6['oldValue']&&0x0==_0x451cb6['newValue']?_0x528de4:void 0x0;}),_0x4aff1b['descriptionFactory']['registerDescriptionCallback'](_0x5ae368=>{if('attribute'!=_0x5ae368['type'])return;const {data:_0x2fb236}=_0x5ae368;if(!_0x2fb236||'listItemId'!=_0x2fb236['key'])return;const _0x12804f=Te(_0x5ae368);return'newValue'==_0x12804f?{'type':'format','content':o(_0x5decee,'*Merge:*\x20list\x20item')}:'oldValue'==_0x12804f?{'type':'format','content':o(_0x5decee,'*Split:*\x20list\x20item')}:_0x528de4;}),_0x3a0cc7['model']['document']['registerPostFixer'](_0x3c3db4=>this['listItemIdFixer'](_0x3c3db4)),_0x3a0cc7['model']['document']['registerPostFixer'](_0x4f068c=>this['noTrackChangesFixer'](_0x4f068c)),_0x3a0cc7['model']['document']['on']('change:data',(_0x3dbc58,_0x5d252b)=>{if(_0x5d252b['isUndo']||!_0x5d252b['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x19b12b){if(_0x19b12b['batch']['isUndo']||!_0x19b12b['batch']['isLocal'])return!0x1;let _0x3207b4=!0x1;const _0x272f53=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x73d4d5=>_0x73d4d5['data']&&'listItemId'==_0x73d4d5['data']['key'])['filter'](_0x39edbc=>_0x39edbc['data']['newValue']&&_0x39edbc['data']['oldValue']);for(const _0x2a76ca of _0x272f53)Te(_0x2a76ca)||(_0x19b12b['removeMarker'](_0x2a76ca['getFirstMarker']()),_0x3207b4=!0x0);return _0x3207b4;}['noTrackChangesFixer'](_0x47ab91){if(_0x47ab91['batch']['isUndo']||!_0x47ab91['batch']['isLocal'])return!0x1;const _0x2d3df8=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x2d3df8['trackChangesCommand']['value'])return!0x1;let _0x3c910a=!0x1;const _0x30b1f6=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x15c6ad=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x3ba784=>'attribute'==_0x3ba784['type'])['filter'](_0x134c5b=>_0x30b1f6['includes'](_0x134c5b['attributeKey']));if(0x0==_0x15c6ad['length'])return _0x3c910a;for(const _0x2894e2 of _0x15c6ad){const _0x1bd334=_0x2d3df8['_findSuggestions'](_0x2894e2['range'],'attribute')['filter'](_0x53b994=>!_0x53b994['meta']['isNextTo'])['map'](_0x489006=>_0x489006['suggestion'])['filter'](_0x1c2ecb=>{const _0x4c6334=_0x2d3df8['_getAttributeKey'](_0x1c2ecb);return _0x30b1f6['includes'](_0x4c6334);});if(_0x1bd334['length']){for(const _0x4e86d3 of _0x1bd334)_0x47ab91['removeMarker'](_0x4e86d3['getFirstMarker']());_0x3c910a=!0x0;}}return _0x3c910a;}['assureChains'](){const _0x441b59=this['editor']['plugins']['get']('TrackChangesEditing'),_0x29c2cd=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x23ce61;const _0x516b4c=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5d3bb7=>{if(_0x5d3bb7['data']['oldRange']||!_0x5d3bb7['data']['newRange'])return null;if(!_0x5d3bb7['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x35a889}=_0x441b59['_splitMarkerName'](_0x5d3bb7['name']);if(!_0x441b59['hasSuggestion'](_0x35a889))return null;const _0x1ece02=_0x441b59['getSuggestion'](_0x35a889);return _0x29c2cd['includes'](_0x1ece02['data']['key']);})['map'](_0x39572d=>{const {id:_0x1a7727}=_0x441b59['_splitMarkerName'](_0x39572d['name']),_0x1d3907=_0x441b59['getSuggestion'](_0x1a7727);return _0x23ce61=_0x1d3907['attributes']['groupId'],_0x1d3907['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x516b4c['size'])return;const _0x14c699=_0x441b59['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x14671f=>'attribute'==_0x14671f['type']&&_0x14671f['data']&&_0x29c2cd['includes'](_0x14671f['data']['key'])&&_0x14671f['attributes']['groupId']!=_0x23ce61)['map'](_0x184316=>({'listItem':_0x184316['getFirstRange']()['start']['nodeAfter'],'groupId':_0x184316['attributes']['groupId']})),_0x2cf358=new Set();for(const {groupId:_0x2e04d4,listItem:_0x5f21a4}of _0x14c699)_0x516b4c['has'](_0x5f21a4)&&_0x2cf358['add'](_0x2e04d4);for(const _0x304f71 of _0x441b59['getSuggestions']())_0x2cf358['has'](_0x304f71['attributes']['groupId'])&&_0x304f71['setAttribute']('groupId',_0x23ce61);}['_supportLegacySuggestions'](){const _0x37a077=this['editor'],_0x3f0bf0=_0x37a077['locale'],_0x56f1d6=_0x37a077['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x56f1d6['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x4d62ad,_0x101fc2){const _0x174362=[];for(let _0x201118 of _0x4d62ad)_0x201118['start']['nodeAfter']===_0x201118['end']['parent']&&(_0x201118=_0x37a077['model']['createRange'](_0x37a077['model']['createPositionAt'](_0x201118['start']['nodeAfter'],0x0))),_0x174362['push'](_0x201118);_0x37a077['model']['change'](_0x388c79=>{const _0x200819=_0x37a077['model']['document']['selection'],_0x5593db=Array['from'](_0x200819['getRanges']())['map'](_0x14386b=>_0x4fb46f['fromRange'](_0x14386b));_0x388c79['setSelection'](_0x174362),_0x37a077['commands']['get'](_0x101fc2['commandName'])['refresh'](),_0x101fc2['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x37a077['execute'](_0x101fc2['commandName'],..._0x101fc2['commandParams']),_0x388c79['setSelection'](_0x5593db);for(const _0x393705 of _0x5593db)_0x393705['detach']();});}),_0x56f1d6['descriptionFactory']['registerElementLabel'](function(_0x21241f){const _0x3cfafd=!_0x37a077['model']['schema']['isObject'](_0x21241f),_0x13eee6=_0x21241f['previousSibling'],_0x41f8ec=_0x21241f['nextSibling'],_0x1bb3b4=_0x21241f['getAttribute']('listItemId'),_0x2fcdd9=!_0x13eee6||_0x13eee6['getAttribute']('listItemId')!==_0x1bb3b4,_0x35d54b=!_0x41f8ec||_0x41f8ec['getAttribute']('listItemId')!==_0x1bb3b4;return _0x3cfafd&&Boolean(_0x1bb3b4)&&_0x2fcdd9&&_0x35d54b;},_0x23d4ab=>o(_0x3f0bf0,'ELEMENT_LIST_ITEM',_0x23d4ab));}['_registerLegacyDescription'](){const _0x51f061=this['editor'],_0x4a98e2=_0x51f061['locale'];function _0x330149(_0x1c9e86){const _0x3274cc=_0x51f061['commands']['get']('bulletedList')['value'],_0x559d1d=_0x51f061['commands']['get']('numberedList')['value'];return'numberedList'===_0x1c9e86?_0x3274cc:_0x559d1d;}_0x51f061['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x4d1963){if('formatBlock'!=_0x4d1963['type'])return;const {data:_0x1e1b7e}=_0x4d1963;if(!_0x1e1b7e)return;let _0x4667fb,_0x21e83c,_0xc403fb,_0x13953b;switch(_0x1e1b7e['commandName']){case'bulletedList':_0xc403fb=_0x1e1b7e['commandParams'][0x0]['forceValue'],_0x13953b=_0x330149(_0x1e1b7e['commandName']),_0x4667fb=_0xc403fb?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x13953b&&_0x51f061['config']['get']('list.multiBlock')||(_0x4667fb='*Change\x20to:*\x20%0'),_0x21e83c={'type':'format','content':o(_0x4a98e2,_0x4667fb,o(_0x4a98e2,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0xc403fb=_0x1e1b7e['commandParams'][0x0]['forceValue'],_0x13953b=_0x330149(_0x1e1b7e['commandName']),_0x4667fb=_0xc403fb?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x13953b&&_0x51f061['config']['get']('list.multiBlock')||(_0x4667fb='*Change\x20to:*\x20%0'),_0x21e83c={'type':'format','content':o(_0x4a98e2,_0x4667fb,o(_0x4a98e2,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x4667fb='*Indent:*\x20%0',_0x21e83c={'type':'format','content':o(_0x4a98e2,_0x4667fb,o(_0x4a98e2,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x4667fb=function(_0x1e8ec6){const _0x11e8a7=_0x1e8ec6['getFirstRange']();let _0x407957=_0x11e8a7['start']['nodeAfter'];for(;_0x407957&&_0x11e8a7['containsItem'](_0x407957);){if(_0x407957['getAttribute']('listIndent')>0x0)return!0x1;_0x407957=_0x407957['nextSibling'];}return!0x0;}(_0x4d1963)?o(_0x4a98e2,'*Format:*\x20remove\x20from\x20%0',o(_0x4a98e2,function(_0x1836d8){return'ELEMENT_'+_0x1836d8['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x4d1963))):o(_0x4a98e2,'*Outdent:*\x20%0',o(_0x4a98e2,'ELEMENT_LIST_ITEM')),_0x21e83c={'type':'format','content':_0x4667fb};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x1e1b7e['multipleBlocks']&&(_0x4667fb='*Merge:*\x20%0',_0x21e83c={'type':'deletion','content':o(_0x4a98e2,_0x4667fb,o(_0x4a98e2,'ELEMENT_LIST_ITEM'))});}return _0x21e83c;});}}function Te(_0x5e0a63){let _0x2823ac=_0x5e0a63['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x2823ac;){const _0x483193=_0x2823ac['getAttribute']('listItemId');if(!_0x483193)return!0x1;if(_0x483193==_0x5e0a63['data']['newValue'])return'newValue';if(_0x483193==_0x5e0a63['data']['oldValue'])return'oldValue';_0x2823ac=_0x2823ac['previousSibling'];}return!0x1;}class ye extends _0x3c70aa{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x249199=this['editor']['config']['get']('list.properties'),_0xc6988f=this['editor']['plugins']['get']('TrackChangesEditing');_0x249199['styles']&&(_0xc6988f['enableDefaultAttributesIntegration']('listStyle'),_0xc6988f['registerBlockAttribute']('listStyle')),_0x249199['reversed']&&(_0xc6988f['enableDefaultAttributesIntegration']('listReversed'),_0xc6988f['registerBlockAttribute']('listReversed')),_0x249199['startIndex']&&(_0xc6988f['enableDefaultAttributesIntegration']('listStart'),_0xc6988f['registerBlockAttribute']('listStart'));const _0x3ac9d8={'type':'format','content':''};_0xc6988f['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x29b88c=this['editor']['locale'];_0xc6988f['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x29b88c,'FORMAT_LIST_REVERSED')),_0xc6988f['descriptionFactory']['registerDescriptionCallback'](_0x214e33=>{const {data:_0x1aec18}=_0x214e33;if(_0x1aec18&&'listReversed'==_0x1aec18['key'])return null==_0x1aec18['newValue']||0x0==_0x1aec18['newValue']&&null==_0x1aec18['oldValue']?_0x3ac9d8:void 0x0;}),_0xc6988f['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x29b88c,'FORMAT_LIST_START')),_0xc6988f['descriptionFactory']['registerDescriptionCallback'](_0x369a62=>{const {data:_0x5d6d90}=_0x369a62;if(_0x5d6d90&&'listStart'==_0x5d6d90['key'])return null==_0x5d6d90['newValue']||0x1==_0x5d6d90['newValue']&&null==_0x5d6d90['oldValue']?_0x3ac9d8:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x1daa21=>{if(_0x1daa21['batch']['isUndo'])return!0x1;let _0x56e1ed=!0x1;const _0x1ea193=_0xc6988f['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x258225=>{const _0x380d55=_0xc6988f['_getAttributeKey'](_0x258225);return'listStart'==_0x380d55||'listReversed'==_0x380d55;});for(const _0xe3c253 of _0x1ea193){const _0x225f1e=_0xe3c253['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x225f1e||'customNumbered'==_0x225f1e)continue;_0xc6988f['_findSuggestions'](_0xe3c253['getFirstRange'](),'attribute')['find'](_0x1221cd=>'listType'==_0xc6988f['_getAttributeKey'](_0x1221cd['suggestion']))||(_0x1daa21['removeMarker'](_0xe3c253['getFirstMarker']()),_0x56e1ed=!0x0);}return _0x56e1ed;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x1c81ba){const _0x2fc56d=this['editor']['locale'],{data:_0xd0cb7d}=_0x1c81ba,_0x473f8b={'type':'format','content':''};if(!_0xd0cb7d||'listStyle'!=_0xd0cb7d['key'])return;if(!_0xd0cb7d['oldValue'])return'default'==_0xd0cb7d['newValue']?_0x473f8b:{'type':'format','content':''+o(_0x2fc56d,'*Set\x20format:*\x20%0',o(_0x2fc56d,this['_getTranslationKeyForListStyle'](_0xd0cb7d['newValue'])))};if(!_0xd0cb7d['newValue']){if('default'==_0xd0cb7d['oldValue'])return _0x473f8b;let _0x2f59d6=_0x1c81ba['head'];for(;_0x2f59d6;){if(_0x2f59d6['data']&&'listType'==_0x2f59d6['data']['key']&&_0x2f59d6['data']['newValue'])return _0x473f8b;_0x2f59d6=_0x2f59d6['next'];}return{'type':'format','content':''+o(_0x2fc56d,'*Remove\x20format:*\x20%0',o(_0x2fc56d,this['_getTranslationKeyForListStyle'](_0xd0cb7d['oldValue'])))};}if('default'!=_0xd0cb7d['newValue'])return{'type':'format','content':''+o(_0x2fc56d,'*Set\x20format:*\x20%0',o(_0x2fc56d,this['_getTranslationKeyForListStyle'](_0xd0cb7d['newValue'])))};let _0x4cb0ce=_0x1c81ba['head'];for(;_0x4cb0ce;){if(_0x4cb0ce['data']&&'listType'==_0x4cb0ce['data']['key']&&_0x4cb0ce['data']['newValue']&&_0x4cb0ce['data']['oldValue'])return _0x473f8b;_0x4cb0ce=_0x4cb0ce['next'];}return{'type':'format','content':o(_0x2fc56d,'*Set\x20format:*\x20%0',o(_0x2fc56d,'ELEMENT_'+_0x1c81ba['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x307e80=this['editor'],_0x5400d1=_0x307e80['locale'];_0x307e80['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5ea13a=>{if('formatBlock'!=_0x5ea13a['type'])return;const {data:_0x1efaf7}=_0x5ea13a;if(!_0x1efaf7)return;let _0x238cb2,_0x5c2d7e;switch(_0x1efaf7['commandName']){case'listStyle':_0x238cb2='*Change\x20to:*\x20%0',_0x5c2d7e={'type':'format','content':o(_0x5400d1,_0x238cb2,o(_0x5400d1,this['_getTranslationKeyForListStyle'](_0x1efaf7['commandParams'][0x0]['type'])))};break;case'listReversed':_0x238cb2=_0x1efaf7['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5c2d7e={'type':'format','content':o(_0x5400d1,_0x238cb2)};break;case'listStart':_0x238cb2='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5c2d7e={'type':'format','content':o(_0x5400d1,_0x238cb2,_0x1efaf7['commandParams'][0x0]['startIndex'])};}return _0x5c2d7e;});}['_getTranslationKeyForListStyle'](_0x34eb78){return'ELEMENT_'+function(_0x1a95e1){if(Se['includes'](_0x1a95e1))return'bulleted';if(_e['includes'](_0x1a95e1))return'numbered';return null;}(_0x34eb78)['toUpperCase']()+'_LIST_'+_0x34eb78['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x3c70aa{static get['requires'](){return[_0x491ab7];}['init'](){const _0x53c48c=this['editor'],_0x43d78c=_0x53c48c['plugins']['get']('TrackChangesEditing'),_0x586369=_0x53c48c['commands']['get']('enter');_0x43d78c['enableCommand']('enter',()=>{_0x53c48c['model']['change'](_0x543d0b=>{const _0x154f24=_0x53c48c['model']['document']['selection'],_0x3a3a8e=_0x154f24['getFirstPosition'](),_0x2369c8=_0x4fb46f['fromRange'](_0x154f24['getFirstRange']());if(_0x586369['enterBlock'](_0x543d0b)){const _0xa60dec=_0x53c48c['model']['createPositionAt'](_0x3a3a8e['parent']['nextSibling'],0x0),_0x34b539=_0x543d0b['createRange'](_0x3a3a8e,_0xa60dec);_0x43d78c['markInsertion'](_0x34b539);}else _0x543d0b['setSelection'](_0x543d0b['createRange'](_0x2369c8['end']));_0x2369c8['detach'](),_0x586369['fire']('afterExecute',{'writer':_0x543d0b});});}),_0x53c48c['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Ne(_0x53c48c,'split'),{'priority':'high'}),_0x53c48c['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0xbb108b,_0x3e4911,_0x361f16)=>{const _0xa128a5=_0x361f16['mapper']['markerNameToElements'](_0x3e4911['markerName']);if(_0xa128a5){for(const _0x5b771c of _0xa128a5)_0x5b771c['hasClass']('ck-suggestion-marker-split')&&(_0x361f16['mapper']['unbindElementFromMarkerName'](_0x5b771c,_0x3e4911['markerName']),_0x361f16['writer']['remove'](_0x5b771c));}},{'priority':'high'}),_0x53c48c['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x54300d,_0x1ddf0e,_0x4093ea)=>{_0x4093ea['options']['showSuggestionHighlights']&&Ne(_0x53c48c,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x54300d,_0x1ddf0e,_0x4093ea);},{'priority':'high'});}}class Y extends _0x3c70aa{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x1faeea=this['editor']['plugins']['get']('TrackChangesEditing');_0x1faeea['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x1faeea['enableCommand']('findNext'),_0x1faeea['enableCommand']('findPrevious'),_0x1faeea['enableCommand']('replace'),_0x1faeea['enableCommand']('replaceAll');}['handleFindCommand'](_0x389923,_0x46cadb,_0x3e734e={}){const _0x5928f2=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x389923(_0xc04054=>{let _0x3cac76=('string'==typeof _0x46cadb?_0x5928f2['findByTextCallback'](_0x46cadb,_0x3e734e):_0x46cadb)(_0xc04054);Array['isArray'](_0x3cac76)&&(_0x3cac76={'results':_0x3cac76,'searchText':'string'==typeof _0x46cadb?_0x46cadb:''});const _0x5ead84=_0x3cac76['results']['filter'](_0x1a6ca9=>!0x1===this['_isInDeletionRange'](_0x1a6ca9,_0xc04054['item']));return{..._0x3cac76,'results':_0x5ead84};},_0x3e734e);}['_isInDeletionRange'](_0x7c0edf,_0x94dc56){const _0x1e62a1=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x94dc56,_0x7c0edf['start']),this['editor']['model']['createPositionAt'](_0x94dc56,_0x7c0edf['end']));for(const _0x150c52 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x1e62a1['getIntersection'](_0x150c52['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0x3c70aa{['afterInit'](){const _0xffa734=this['editor']['locale'],_0x73ad3d=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x21b96a,commandName:_0x28158b}of ro)this['editor']['plugins']['has'](_0x21b96a)&&(_0x73ad3d['enableDefaultAttributesIntegration'](_0x28158b),_0x73ad3d['registerInlineAttribute'](_0x28158b));_0x73ad3d['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0xffa734,'FORMAT_FONT_SIZE')),_0x73ad3d['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0xffa734,'FORMAT_FONT_FAMILY')),_0x73ad3d['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0xffa734,'FORMAT_FONT_COLOR')),_0x73ad3d['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0xffa734,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x7edb9f=this['editor'],_0x318a6c=_0x7edb9f['locale'];_0x7edb9f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x432db7=>{const _0x3c49c4=_0x318a6c['t'];if('formatInline'!=_0x432db7['type'])return;const {data:_0x5bc5d1}=_0x432db7;if(null!=_0x5bc5d1){if('fontSize'==_0x5bc5d1['commandName']){const _0x1d7a2c=_0x5bc5d1['commandParams'][0x0]['value'];if(_0x1d7a2c){const _0x22cd36=_0x3c49c4(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0xde177c=>_0xde177c['model']==_0x1d7a2c)['title'])['toLowerCase']();return{'type':'format','content':o(_0x318a6c,'*Set\x20font\x20size:*\x20%0',_0x22cd36)};}return{'type':'format','content':o(_0x318a6c,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x5bc5d1['commandName']){const _0x1b06c2=_0x5bc5d1['commandParams'][0x0]['value'];return _0x1b06c2?{'type':'format','content':o(_0x318a6c,'*Set\x20font\x20family:*\x20%0',_0x1b06c2)}:{'type':'format','content':o(_0x318a6c,'*Reset\x20font\x20family*')};}if('fontColor'==_0x5bc5d1['commandName']){const _0x2ad3a3=_0x5bc5d1['commandParams'][0x0]['value'];if(_0x2ad3a3){const _0x1c181f=_0x17ec29(this['editor']['config']['get']('fontColor.colors'))['find'](_0x516ba8=>_0x516ba8['model']==_0x2ad3a3);let _0x53e116=_0x2ad3a3,_0x5c5f8e='';return _0x1c181f&&(_0x53e116=_0x1c181f['label'],_0x5c5f8e=_0x3c49c4(_0x53e116)['toLowerCase']()),{'type':'format','content':o(_0x318a6c,'*Set\x20font\x20color:*\x20%0',_0x5c5f8e)['trim'](),'color':{'value':_0x2ad3a3,'title':_0x5c5f8e||_0x53e116}};}return{'type':'format','content':o(_0x318a6c,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x5bc5d1['commandName']){const _0xdcceb1=_0x5bc5d1['commandParams'][0x0]['value'];if(_0xdcceb1){const _0x3cda2a=_0x17ec29(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x5b5029=>_0x5b5029['model']==_0xdcceb1);let _0x3dd2e6=_0xdcceb1,_0x4eb809='';return _0x3cda2a&&(_0x3dd2e6=_0x3cda2a['label'],_0x4eb809=_0x3c49c4(_0x3dd2e6)['toLowerCase']()),{'type':'format','content':o(_0x318a6c,'*Set\x20font\x20background\x20color:*\x20%0',_0x4eb809)['trim'](),'color':{'value':_0xdcceb1,'title':_0x4eb809||_0x3dd2e6}};}return{'type':'format','content':o(_0x318a6c,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x3c70aa{['afterInit'](){const _0x4f43fd=this['editor'],_0x2acf33=_0x4f43fd['plugins']['get']('TrackChangesEditing'),_0x5b6033=_0x4f43fd['commands']['get']('copyFormat'),_0x111d36=_0x4f43fd['commands']['get']('pasteFormat');_0x5b6033&&_0x111d36&&(_0x2acf33['enableDefaultAttributesIntegration']('pasteFormat'),_0x2acf33['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x51979a=this['editor'],_0x89168e=_0x51979a['locale'];_0x51979a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x597acb=>{if('formatBlock'!=_0x597acb['type']&&'formatInline'!=_0x597acb['type'])return;const {data:_0x3c4f8b}=_0x597acb;if(_0x3c4f8b&&'pasteFormat'===_0x3c4f8b['commandName']){const _0x4b7000=[],_0x2c8198=_0x3c4f8b['commandParams'][0x0];for(const [_0xfe22aa,_0x32a4c5]of Object['entries'](_0x2c8198))_0x4b7000['push'](so(_0x51979a,_0xfe22aa,_0x32a4c5));return _0x4b7000['length']?{'type':'format','content':o(_0x89168e,'*Set\x20format\x20to:*\x20%0',_0x4b7000['join'](',\x20'))}:{'type':'format','content':o(_0x89168e,'*Remove\x20all\x20formatting*')};}});}}function so(_0x36642e,_0x4473f2,_0xa6a28){const _0x16651f=_0x36642e['locale']['t'],_0x5913d8=_0x4473f2['split'](/(?=[A-Z])/)['join']('\x20'),_0x5041b4=_0x16651f(_0x5913d8['charAt'](0x0)['toUpperCase']()+_0x5913d8['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0xa6a28)return _0x5041b4;if('fontColor'===_0x4473f2||'fontBackgroundColor'===_0x4473f2){const _0x449641=_0x17ec29(_0x36642e['config']['get']('fontColor.colors'))['find'](_0x219967=>_0x219967['model']==_0xa6a28);return _0x5041b4+'\x20('+(_0x449641?_0x16651f(_0x449641['label'])['toLowerCase']():_0xa6a28)+')';}if('fontSize'===_0x4473f2&&isNaN(parseFloat(_0xa6a28))){const _0x4f6119=_0x36642e['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x36642e['config']['get']('fontSize.options'))['find'](_0x7a870=>_0x7a870['model']==_0xa6a28);return _0x5041b4+'\x20('+(_0x4f6119?_0x16651f(_0x4f6119['title'])['toLowerCase']():_0xa6a28)+')';}return _0x5041b4+'\x20('+_0xa6a28+')';}class nt extends _0x3c70aa{['_headingOptions'];['afterInit'](){const _0xd0f93a=this['editor'];if(!_0xd0f93a['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0xd0f93a['config']['get']('heading.options');const _0x1413a9=_0xd0f93a['locale'],_0x906c13=_0xd0f93a['plugins']['get']('TrackChangesEditing');_0x906c13['enableDefaultAttributesIntegration']('heading');for(const _0x52e5af of this['_headingOptions'])'paragraph'!=_0x52e5af['model']&&_0x906c13['descriptionFactory']['registerElementLabel'](_0x52e5af['model'],_0x10d64c=>{const _0x1032c8=this['_getHeadingLevel'](_0x52e5af['model']);return null!==_0x1032c8?_0x225c00(_0x10d64c,_0x1032c8):_0x3e5c4b(_0x10d64c,_0x52e5af['title']);});function _0x225c00(_0x30ef52,_0x469048){return o(_0x1413a9,'ELEMENT_HEADING',[_0x30ef52,_0x469048]);}function _0x3e5c4b(_0x56c60f,_0x1a0232){return o(_0x1413a9,'ELEMENT_HEADING_CUSTOM',[_0x56c60f,_0x1a0232]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1b21e2=this['editor'],_0x5608ee=_0x1b21e2['locale'];function _0x1f7272(_0x5ac7a0,_0x3e7ea2){return o(_0x5608ee,'ELEMENT_HEADING_CUSTOM',[_0x5ac7a0,_0x3e7ea2]);}_0x1b21e2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1e8aaa=>{if('formatBlock'!=_0x1e8aaa['type'])return;const {data:_0x35ab6c}=_0x1e8aaa;if(_0x35ab6c&&'heading'==_0x35ab6c['commandName']){const _0x5e04e0=_0x35ab6c['commandParams'][0x0]['value'],_0x3f8e05=this['_getHeadingLevel'](_0x5e04e0);if(null!==_0x3f8e05)return{'type':'format','content':o(_0x5608ee,'*Change\x20to:*\x20%0',(_0x14196c=0x1,_0x2e37ae=_0x3f8e05,o(_0x5608ee,'ELEMENT_HEADING',[_0x14196c,_0x2e37ae])))};const _0x87e171=this['_headingOptions']['find'](_0x300f7a=>_0x300f7a['model']===_0x5e04e0)['title'];return{'type':'format','content':o(_0x5608ee,'*Change\x20to:*\x20%0',_0x1f7272(0x1,_0x87e171))};}var _0x14196c,_0x2e37ae;});}['_getHeadingLevel'](_0x19783f){const _0x22c2a9=_0x19783f['match'](/^heading(\d+)/);if(_0x22c2a9)return _0x22c2a9[0x1];const _0x56d279=this['_headingOptions']?.['find'](_0x11a471=>_0x11a471['model']==_0x19783f);if(_0x56d279&&_0x56d279['view']){const _0x64e665=_0x56d279['view'],_0x4199c7=(_0x64e665['name']??_0x64e665)['match'](/^h(\d+)/);if(_0x4199c7)return _0x4199c7[0x1];}return null;}}class it extends _0x3c70aa{['afterInit'](){const _0x4fed66=this['editor'];if(!_0x4fed66['plugins']['has']('HighlightEditing'))return;const _0xe5539=_0x4fed66['plugins']['get']('TrackChangesEditing'),_0x480dd9=_0x4fed66['locale'];_0xe5539['enableDefaultAttributesIntegration']('highlight'),_0xe5539['registerInlineAttribute']('highlight'),_0xe5539['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x480dd9,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x16968c=this['editor'],_0x1cff72=_0x16968c['locale'];_0x16968c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4782f9=>{if('formatInline'!=_0x4782f9['type'])return;const {data:_0x5a8822}=_0x4782f9;if(_0x5a8822&&'highlight'==_0x5a8822['commandName']){const _0x1a35c1=_0x1cff72['t'],_0x4a8e3e=_0x5a8822['commandParams'][0x0]['value'];if(_0x4a8e3e){const _0x2caa33=_0x16968c['config']['get']('highlight.options')['find'](_0x294154=>_0x294154['model']==_0x4a8e3e),_0x22b8f8=_0x1a35c1(_0x2caa33['title'])['toLowerCase']();return{'type':'format','content':o(_0x1cff72,'*Set\x20highlight:*\x20%0',_0x22b8f8),'color':{'value':_0x2caa33['color'],'title':_0x2caa33['title']}};}return{'type':'format','content':o(_0x1cff72,'*Remove\x20highlight*',o(_0x1cff72,'FORMAT_HIGHLIGHT'))};}});}}class et extends _0x3c70aa{['afterInit'](){const _0x3fd665=this['editor'];if(!_0x3fd665['plugins']['has']('HorizontalLineEditing'))return;_0x3fd665['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x203fe6=_0x3fd665['plugins']['get']('TrackChangesEditing'),_0x4228b6=_0x3fd665['locale'];_0x203fe6['descriptionFactory']['registerElementLabel']('horizontalLine',_0x101c15=>o(_0x4228b6,'ELEMENT_HORIZONTAL_LINE',_0x101c15)),_0x3fd665['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x4e51c8,{writer:_0x5a74b2,options:_0x4294e4})=>{if(!_0x4294e4['showSuggestionHighlights'])return null;const _0x456b9b=_0x5a74b2['createContainerElement']('div'),_0x436326=_0x5a74b2['createEmptyElement']('hr');return _0x5a74b2['addClass']('ck-horizontal-line',_0x456b9b),_0x5a74b2['insert'](_0x5a74b2['createPositionAt'](_0x456b9b,0x0),_0x436326),_0x456b9b;},'converterPriority':'high'});}}class st extends _0x3c70aa{['afterInit'](){const _0x36b932=this['editor'];if(!_0x36b932['plugins']['has']('HtmlEmbed'))return;const _0x2161a9=_0x36b932['plugins']['get']('TrackChangesEditing'),_0x521bea=_0x36b932['locale'];_0x2161a9['descriptionFactory']['registerElementLabel']('rawHtml',_0x50d5f3=>o(_0x521bea,'ELEMENT_HTML_EMBED',_0x50d5f3)),_0x2161a9['enableDefaultAttributesIntegration']('htmlEmbed'),_0x2161a9['registerBlockAttribute']('value'),_0x2161a9['descriptionFactory']['registerDescriptionCallback'](_0x5a2629=>{if('attribute'!=_0x5a2629['type'])return;const {data:_0x4dc3d0}=_0x5a2629;if(_0x4dc3d0&&'value'==_0x4dc3d0['key']&&_0x5a2629['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x3cb65b=o(_0x521bea,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x521bea,'*Change\x20%0\x20content*',_0x3cb65b)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x41e433=this['editor'],_0x4b6a0c=_0x41e433['locale'];_0x41e433['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x26b658=>{if('formatBlock'!=_0x26b658['type'])return;const {data:_0x2164f0}=_0x26b658;if(_0x2164f0&&'htmlEmbed'==_0x2164f0['commandName']){const _0x2bd1fd=o(_0x4b6a0c,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x4b6a0c,'*Change\x20%0\x20content*',_0x2bd1fd)};}});}}class ot extends _0x3c70aa{['afterInit'](){const _0x553302=this['editor'];if(!_0x553302['plugins']['has']('ImageEditing'))return;const _0x133c8b=_0x553302['plugins']['get']('TrackChangesEditing'),_0x583b73=_0x553302['plugins']['get']('ImageUtils'),_0x532004=_0x553302['locale'];_0x133c8b['enableCommand']('insertImage'),_0x133c8b['descriptionFactory']['registerElementLabel']('imageBlock',_0x3500bd=>o(_0x532004,'ELEMENT_IMAGE',_0x3500bd)),_0x133c8b['descriptionFactory']['registerElementLabel']('imageInline',_0x9e456e=>o(_0x532004,'ELEMENT_INLINE_IMAGE',_0x9e456e)),_0x133c8b['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x532004,'ELEMENT_CAPTION')),_0x553302['plugins']['has']('ImageUploadEditing')&&_0x133c8b['enableCommand']('uploadImage'),_0x553302['plugins']['has']('ImageBlockEditing')&&_0x553302['plugins']['has']('ImageInlineEditing')&&(_0x133c8b['enableCommand']('imageTypeInline',(_0x5ec528,_0x19c635)=>{const _0x27a91a=_0x583b73['getClosestSelectedImageElement'](_0x553302['model']['document']['selection']);_0x553302['model']['change'](()=>{_0x133c8b['markBlockFormat'](_0x27a91a,{'commandName':'imageTypeInline','commandParams':[_0x19c635]},[],'convertBlockImageToInline');});}),_0x133c8b['enableCommand']('imageTypeBlock',(_0x32ea31,_0x50bb79)=>{_0x553302['model']['change'](_0x22b4b7=>{let _0x39b7c1=_0x583b73['getClosestSelectedImageElement'](_0x553302['model']['document']['selection']),_0xf1b3a0=_0x22b4b7['createRangeOn'](_0x39b7c1);const _0x2f9c76=_0x4537ad['fromPosition'](_0xf1b3a0['start'],'toPrevious'),_0x5114dc=_0x4537ad['fromPosition'](_0xf1b3a0['end'],'toNext');_0x133c8b['forceDefaultExecution'](()=>_0x32ea31(_0x50bb79)),_0x39b7c1=_0x583b73['getClosestSelectedImageElement'](_0x553302['model']['document']['selection']),_0xf1b3a0=_0x22b4b7['createRangeOn'](_0x39b7c1);const _0x244613=_0x22b4b7['createRange'](_0x2f9c76,_0x5114dc);_0x2f9c76['detach'](),_0x5114dc['detach'](),_0x133c8b['markBlockFormat'](_0x39b7c1,{'commandName':'imageTypeInline','commandParams':[_0x50bb79]},[],'convertInlineImageToBlock'),_0x244613['start']['isBefore'](_0xf1b3a0['start'])&&_0x133c8b['markInsertion'](_0x22b4b7['createRange'](_0x244613['start'],_0xf1b3a0['start']),'convertInlineImageToBlock'),_0xf1b3a0['end']['isBefore'](_0x244613['end'])&&_0x133c8b['markInsertion'](_0x22b4b7['createRange'](_0xf1b3a0['end'],_0x244613['end']),'convertInlineImageToBlock');});}),_0x133c8b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x133c8b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x133c8b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x133c8b['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x133c8b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x133c8b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x176699])=>{const _0x1507ea=_0x133c8b['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x3ff8d3=_0x176699['start'],_0x54fb5e=_0x176699['end'];const _0x96306=_0x553302['model']['schema']['getNearestSelectionRange'](_0x3ff8d3,'backward'),_0x11d177=_0x553302['model']['schema']['getNearestSelectionRange'](_0x54fb5e,'forward');_0x96306['isCollapsed']&&(_0x3ff8d3=_0x96306['start']),_0x11d177['isCollapsed']&&(_0x54fb5e=_0x11d177['end']),_0x1507ea([_0x553302['model']['createRange'](_0x3ff8d3,_0x54fb5e)]);}),_0x133c8b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0xd4818),_0x133c8b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0xd4818)),_0x553302['plugins']['has']('ImageCaptionEditing')&&(_0x133c8b['enableCommand']('toggleImageCaption',(_0x207e16,_0x3a1c8d)=>{const _0x1713d=_0x553302['plugins']['get']('ImageCaptionUtils');let _0x4e99ba=_0x583b73['getClosestSelectedImageElement'](_0x553302['model']['document']['selection']),_0x149626=_0x1713d['getCaptionFromImageModelElement'](_0x4e99ba);_0x553302['model']['change'](()=>{if(_0x149626)return void _0x133c8b['markDeletion'](_0x553302['model']['createRangeOn'](_0x149626));const _0x41c11=_0x583b73['isBlockImage'](_0x4e99ba);_0x207e16(_0x3a1c8d),_0x4e99ba=_0x583b73['getClosestSelectedImageElement'](_0x553302['model']['document']['selection']),_0x149626=_0x1713d['getCaptionFromImageModelElement'](_0x4e99ba),_0x133c8b['markInsertion'](_0x553302['model']['createRangeOn'](_0x149626),_0x41c11?null:'imageCaption');});}),_0x133c8b['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0xd4818));const _0x4e0374=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x967dcd(_0x3c3fad,_0x1a52c6){const _0x2f122d=_0x4e0374['findIndex'](({type:_0x10f3dd,subType:_0x366097})=>_0x3c3fad['type']==_0x10f3dd&&_0x3c3fad['subType']==_0x366097),_0xf33376=_0x4e0374['findIndex'](({type:_0x16956e,subType:_0x51105f})=>_0x1a52c6['type']==_0x16956e&&_0x1a52c6['subType']==_0x51105f);if(_0x2f122d<0x0||_0xf33376<0x0)return!0x1;const _0x23d9e8=_0x3c3fad['getFirstRange'](),_0x26ad35=_0x1a52c6['getFirstRange']();if((0x0==_0x2f122d||0x1==_0x2f122d)&&0x2==_0xf33376&&_0x23d9e8['isIntersecting'](_0x26ad35))return!0x0;if(0x2==_0x2f122d&&0x3==_0xf33376){const _0x516d9b=_0x133c8b['_findSuggestions'](_0x23d9e8,'insertion')['filter'](({suggestion:_0x569ceb,meta:_0x24d317})=>_0x24d317['isOwn']&&'convertInlineImageToBlock'==_0x569ceb['subType']);if(_0x516d9b['length']>0x1&&_0x26ad35['end']['isEqual'](_0x23d9e8['start']))return!0x0;if(0x1==_0x516d9b['length']&&(_0x23d9e8['start']['isEqual'](_0x26ad35['end'])||_0x23d9e8['end']['isEqual'](_0x26ad35['start'])))return!0x0;}if(0x3==_0x2f122d&&0x3==_0xf33376&&_0x23d9e8['start']['isBefore'](_0x26ad35['start'])){const _0x46908e=_0x23d9e8['end']['nodeAfter'],_0x1d8fc8=_0x26ad35['start']['nodeBefore'];return _0x583b73['isBlockImage'](_0x46908e)&&_0x46908e===_0x1d8fc8;}return!0x1;}function _0xd4818(_0x14abc0,_0x559112){return _0x967dcd(_0x14abc0,_0x559112)?[_0x14abc0,_0x559112]:_0x967dcd(_0x559112,_0x14abc0)?[_0x559112,_0x14abc0]:null;}_0x553302['plugins']['has']('ImageResize')&&(_0x133c8b['enableDefaultAttributesIntegration']('resizeImage'),_0x133c8b['registerBlockAttribute']('resizedWidth'),_0x133c8b['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x532004,'FORMAT_IMAGE_SIZE'))),_0x553302['plugins']['has']('ImageTextAlternativeEditing')&&(_0x133c8b['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x133c8b['registerBlockAttribute']('alt')),_0x133c8b['descriptionFactory']['registerDescriptionCallback'](_0x5422bf=>{if(!!_0x4e0374['find'](({type:_0x41a541,subType:_0x4f40f3})=>_0x5422bf['type']==_0x41a541&&_0x5422bf['subType']==_0x4f40f3))return _0x5422bf['previous']?{}:void 0x0;}),_0x133c8b['descriptionFactory']['registerDescriptionCallback'](_0x50fbe4=>{if('insertion'==_0x50fbe4['type']||'deletion'==_0x50fbe4['type']){const _0x1a8722=_0x50fbe4['getContainedElement']();if(_0x1a8722&&_0x1a8722['is']('element','caption'))return{'type':'insertion'==_0x50fbe4['type']?'addObject':'removeObject','element':_0x1a8722,'quantity':0x1};}}),_0x133c8b['descriptionFactory']['registerDescriptionCallback'](_0x3fe781=>'formatBlock'==_0x3fe781['type']&&'convertInlineImageToBlock'==_0x3fe781['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x3fe781['type']&&'convertBlockImageToInline'==_0x3fe781['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x133c8b['descriptionFactory']['registerDescriptionCallback'](_0x3572ee=>{if('attribute'!=_0x3572ee['type'])return;const {data:_0x3905fb}=_0x3572ee;if(!_0x3905fb||'alt'!=_0x3905fb['key'])return;const _0x23848f=_0x3905fb['newValue'];return _0x23848f?{'type':'format','content':o(_0x532004,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x23848f+'\x22')}:{'type':'format','content':o(_0x532004,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xe880ef=this['editor'],_0x50b679=_0xe880ef['locale'];_0xe880ef['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xb952f4=>{if('formatBlock'!=_0xb952f4['type']&&'formatInline'!=_0xb952f4['type'])return;const {data:_0x1dac57}=_0xb952f4;if(_0x1dac57){if('imageTextAlternative'==_0x1dac57['commandName']){const _0x7227de=_0x1dac57['commandParams'][0x0]['newValue'];return _0x7227de?{'type':'format','content':o(_0x50b679,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x7227de+'\x22')}:{'type':'format','content':o(_0x50b679,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x1dac57['commandName']){const _0xe59186=_0x1dac57['commandParams'][0x0]['width'];return _0xe59186?{'type':'format','content':o(_0x50b679,'*Set\x20image\x20width:*\x20%0',_0xe59186)}:{'type':'format','content':o(_0x50b679,'*Reset\x20image\x20width*')};}}});}}class rt extends _0x3c70aa{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x4d83e2=this['editor']['locale'],_0x32caf8=this['editor']['plugins']['get']('TrackChangesEditing');_0x32caf8['enableDefaultAttributesIntegration']('replaceImageSource'),_0x32caf8['registerBlockAttribute']('src'),_0x32caf8['descriptionFactory']['registerDescriptionCallback'](_0x183b3f=>{if('attribute'!=_0x183b3f['type'])return;const {data:_0x140a6}=_0x183b3f;return _0x140a6&&'src'==_0x140a6['key']?_0x140a6['newValue']&&_0x140a6['oldValue']?{'type':'format','content':o(_0x4d83e2,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x593ab8=this['editor']['plugins']['get']('TrackChangesEditing');_0x593ab8['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x593ab8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x593ab8['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x593ab8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x234865=this['editor'],_0x2ef543=_0x234865['locale'];_0x234865['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5058cd=>{if('formatBlock'!=_0x5058cd['type']&&'formatInline'!=_0x5058cd['type'])return;const {data:_0x5bcf6f}=_0x5058cd;if(!_0x5bcf6f||'replaceImageSource'!=_0x5bcf6f['commandName'])return;return{'type':'format','content':o(_0x2ef543,'*Format:*\x20replace\x20image\x20URL')};});}}class at extends _0x3c70aa{['afterInit'](){const _0xd09028=this['editor'];if(!_0xd09028['plugins']['has']('ImageStyleEditing'))return;const _0x6d722d=_0xd09028['plugins']['get']('TrackChangesEditing'),_0x5c98be=_0xd09028['plugins']['get']('ImageUtils'),_0x19da1c={};_0x6d722d['enableCommand']('imageStyle',(_0x20074f,_0x4a6ae6)=>{const _0xcdba03=_0xd09028['plugins']['get']('Users')['me'],_0x23294d=_0xd09028['commands']['get']('imageStyle');let _0x6399ec=_0x5c98be['getClosestSelectedImageElement'](_0xd09028['model']['document']['selection']),_0x3715c5=_0xd09028['model']['createRangeOn'](_0x6399ec),_0x22a9fc=_0x23294d['value'];if(_0x22a9fc==_0x4a6ae6['value'])return;const _0x47625d={'commandName':'imageStyle','commandParams':[_0x4a6ae6],'formatGroupId':_0x1cdff5()};_0xd09028['model']['change'](()=>{if(_0x6d722d['getSuggestions']()['filter'](_0x5a1cd5=>_0x5a1cd5['isInContent']&&_0xcdba03==_0x5a1cd5['author']&&('formatBlock'==_0x5a1cd5['type']||'formatInline'==_0x5a1cd5['type'])&&('imageStylePreApply'==_0x5a1cd5['subType']||'imageStylePostApply'==_0x5a1cd5['subType'])&&_0x5a1cd5['getFirstRange']()['isEqual'](_0x3715c5))['forEach'](_0x2c3011=>_0x6d722d['discardSuggestion'](_0x2c3011['head'])),_0x6399ec=_0x5c98be['getClosestSelectedImageElement'](_0xd09028['model']['document']['selection']),_0x3715c5=_0xd09028['model']['createRangeOn'](_0x6399ec),_0x23294d['refresh'](),_0xd09028['commands']['get']('imageTypeInline')['refresh'](),_0xd09028['commands']['get']('imageTypeBlock')['refresh'](),_0x22a9fc=_0x23294d['value'],_0x22a9fc!=_0x4a6ae6['value'])return _0x5c98be['isInlineImage'](_0x6399ec)&&_0x23294d['shouldConvertImageType'](_0x4a6ae6['value'],_0x6399ec)?(_0x20074f({..._0x4a6ae6,'setImageSizes':!0x1}),_0x6399ec=_0x5c98be['getClosestSelectedImageElement'](_0xd09028['model']['document']['selection']),void _0x6d722d['markBlockFormat'](_0x6399ec,{..._0x47625d,'commandReversedParams':[{'value':_0x22a9fc||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x5c98be['isBlockImage'](_0x6399ec)?_0x6d722d['markBlockFormat'](_0x6399ec,_0x47625d,[],'imageStylePostApply'):_0x6d722d['markInlineFormat'](_0x3715c5,_0x47625d,'imageStylePostApply'));});});for(const _0x1c68c3 of _0xd09028['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x19da1c[_0x1c68c3['name']]=_0x1c68c3['title']['toLowerCase']();_0x6d722d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x6d722d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x6d722d['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x6d722d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x5c5276])=>{_0x5c98be['setImageNaturalSizeAttributes'](_0x5c5276['getContainedElement']());}),_0x6d722d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x51d575,_0xe1dbf7)=>{_0x6d722d['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x51d575,{'commandName':_0xe1dbf7['commandName'],'commandParams':_0xe1dbf7['commandReversedParams']});}),_0x6d722d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x4282f8,_0xd064ed){if(_0x4bdd21(_0x4282f8,_0xd064ed))return[_0x4282f8,_0xd064ed];if(_0x4bdd21(_0xd064ed,_0x4282f8))return[_0xd064ed,_0x4282f8];return null;});const _0xc2636d=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4bdd21(_0x3c536c,_0x26b3f5){const _0x416459=_0xc2636d['findIndex'](({type:_0x475af1,subType:_0x33d41b})=>_0x3c536c['type']==_0x475af1&&_0x3c536c['subType']==_0x33d41b),_0x33a0d3=_0xc2636d['findIndex'](({type:_0x66f1da,subType:_0x2ebc43})=>_0x26b3f5['type']==_0x66f1da&&_0x26b3f5['subType']==_0x2ebc43);if(_0x416459<0x0||_0x33a0d3<0x0)return!0x1;const _0x32753d=_0x3c536c['getFirstRange'](),_0x23c9f7=_0x26b3f5['getFirstRange']();if((0x0==_0x416459||0x1==_0x416459)&&0x2==_0x33a0d3&&_0x32753d['isIntersecting'](_0x23c9f7))return!0x0;if(0x2==_0x416459&&0x3==_0x33a0d3){const _0x2aa5b9=_0x6d722d['_findSuggestions'](_0x32753d,'insertion')['filter'](({suggestion:_0x435170,meta:_0x36e50e})=>_0x36e50e['isOwn']&&'convertInlineImageToBlock'==_0x435170['subType']);if(_0x2aa5b9['length']>0x1&&_0x23c9f7['end']['isEqual'](_0x32753d['start']))return!0x0;if(0x1==_0x2aa5b9['length']&&(_0x32753d['start']['isEqual'](_0x23c9f7['end'])||_0x32753d['end']['isEqual'](_0x23c9f7['start'])))return!0x0;}if(0x3==_0x416459&&0x3==_0x33a0d3&&_0x32753d['start']['isBefore'](_0x23c9f7['start'])){const _0x232d82=_0x32753d['end']['nodeAfter'],_0x1f5913=_0x23c9f7['start']['nodeBefore'];return _0x5c98be['isBlockImage'](_0x232d82)&&_0x232d82===_0x1f5913;}return!0x1;}_0xd09028['model']['document']['registerPostFixer'](()=>{let _0x1204ea=!0x1;const _0x3b2ef7=Array['from'](_0xd09028['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2d9604,data:_0x11d983}of _0x3b2ef7){const {group:_0x3470f8,type:_0x149df7,subType:_0x44632e,id:_0x24e78}=_0x6d722d['_splitMarkerName'](_0x2d9604);if('suggestion'==_0x3470f8&&_0x6d722d['hasSuggestion'](_0x24e78)){if('formatBlock'==_0x149df7&&('imageStylePreApply'==_0x44632e||'imageStylePostApply'==_0x44632e)){const _0x107873=_0x6d722d['getSuggestion'](_0x24e78);if(_0x11d983['newRange']){const _0x3e970b=_0x107873['getFirstRange']()['getContainedElement']();if(_0x5c98be['isBlockImage'](_0x3e970b))continue;_0x6d722d['discardSuggestion'](_0x107873),_0x1204ea=!0x0;}}if('insertion'==_0x149df7&&'imageCaption'==_0x44632e&&!_0x11d983['newRange']){const _0x13fd75=_0x6d722d['getSuggestion'](_0x24e78);_0x13fd75['next']&&_0x13fd75['next']['isInContent']&&(_0x6d722d['discardSuggestion'](_0x13fd75['next']),_0x1204ea=!0x0);}}}return _0x1204ea;}),this['_registerLegacyDescription'](_0x19da1c);}['_registerLegacyDescription'](_0x264e0e){const _0x384fac=this['editor'],_0x2c9645=_0x384fac['locale'];_0x384fac['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e0dc5=>{if('formatBlock'!=_0x3e0dc5['type']&&'formatInline'!=_0x3e0dc5['type'])return;const {data:_0x5b39d3}=_0x3e0dc5;if(!_0x5b39d3||'imageStyle'!=_0x5b39d3['commandName'])return;const _0x23476c=_0x5b39d3['commandParams'][0x0]['value'];return _0x4055ea('side'===_0x23476c?o(_0x2c9645,'FORMAT_SIDE_IMAGE'):_0x264e0e[_0x23476c]||_0x23476c);function _0x4055ea(_0x109607){return{'type':'format','content':o(_0x2c9645,'*Format:*\x20%0',_0x109607)};}});}}class ct extends _0x3c70aa{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x17d22c){super(_0x17d22c),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x21ae21=this['editor'],_0x171861=_0x21ae21['commands']['get']('importWord'),_0x33aab6=_0x21ae21['commands']['get']('trackChanges');_0x171861&&(_0x171861['on']('execute',(_0x4fa0d1,[,_0x10dcf1])=>{this['_trackChangesValueDuringImport']=_0x33aab6['value'],_0x10dcf1['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x171861,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x171861,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x33aab6['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x21ae21['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x2de807,_0x2f5110){const {suggestions:_0x355026}=_0x2f5110,_0x588ed9=this['editor']['commands']['get']('trackChanges'),_0x33b00c=_0x588ed9['value'];this['_trackChangesValueDuringImport']!==_0x33b00c&&(_0x588ed9['execute'](),this['_trackChangesExecuted']=!0x0),_0x355026&&_0x355026['forEach'](({id:_0x168f32,type:_0x4b04cb,author:_0x7a0603,created_at:_0x4bf89b})=>{const _0x1539f8={'id':_0x168f32,'type':_0x4b04cb,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x7a0603,'createdAt':_0x4bf89b?new Date(_0x4bf89b):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x1539f8);});}}class ut extends _0x3c70aa{['afterInit'](){const _0x93a4df=this['editor'],_0x474551=_0x93a4df['plugins']['get']('TrackChangesEditing');if(_0x93a4df['plugins']['has']('IndentEditing')&&(_0x474551['enableCommand']('indent'),_0x474551['enableCommand']('outdent')),_0x93a4df['plugins']['has']('IndentBlock')){for(const _0x28d215 of['indentBlock','outdentBlock'])_0x474551['enableDefaultAttributesIntegration'](_0x28d215);}const _0x167100=_0x93a4df['locale'];_0x474551['registerBlockAttribute']('blockIndent'),_0x474551['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x167100,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3e0264=this['editor'],_0x2d2bc5=_0x3e0264['locale'],_0x42e254=_0x3e0264['plugins']['get']('TrackChangesEditing');_0x42e254['descriptionFactory']['registerDescriptionCallback'](_0x2bc2c7=>{if('formatBlock'!=_0x2bc2c7['type'])return;const {data:_0xb31e89}=_0x2bc2c7;if(!_0xb31e89)return;if('indentBlock'!=_0xb31e89['commandName']&&'outdentBlock'!=_0xb31e89['commandName'])return;const _0x58ae0b=_0x2bc2c7['getItems']()[0x0],_0x553919=_0x42e254['descriptionFactory']['getItemLabel'](_0x58ae0b);return'indentBlock'==_0xb31e89['commandName']?{'type':'format','content':o(_0x2d2bc5,'*Indent:*\x20%0',_0x553919)}:'outdentBlock'==_0xb31e89['commandName']?{'type':'format','content':o(_0x2d2bc5,'*Outdent:*\x20%0',_0x553919)}:void 0x0;});}}class ft extends _0x3c70aa{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x3c70aa{['afterInit'](){const _0x1e7b22=this['editor'];if(!_0x1e7b22['plugins']['has']('LinkEditing'))return;const _0x14b786=_0x1e7b22['plugins']['get']('TrackChangesEditing'),_0x42dbd8=_0x1e7b22['commands']['get']('link');_0x14b786['enableDefaultAttributesIntegration']('link'),_0x14b786['enableDefaultAttributesIntegration']('unlink'),_0x14b786['registerInlineAttribute']('linkHref');for(const _0x5e0d61 of _0x42dbd8['manualDecorators'])_0x14b786['registerInlineAttribute'](_0x5e0d61['id']),_0x14b786['descriptionFactory']['registerAttributeLabel'](_0x5e0d61['id'],'link\x20('+_0x5e0d61['label']['toLowerCase']()+')');_0x14b786['descriptionFactory']['registerDescriptionCallback'](_0x102e22=>{if('attribute'!=_0x102e22['type'])return;const {data:_0x495406}=_0x102e22;if(!_0x495406||'linkHref'!=_0x495406['key'])return;const _0x49bf5d=_0x495406['newValue'],_0x4d2f0e=_0x1e7b22['locale'];return{'type':'format','content':null==_0x49bf5d?o(_0x4d2f0e,'*Remove\x20link*'):o(_0x4d2f0e,'*Set\x20link:*\x20%0','\x22'+_0x49bf5d+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3829cd=this['editor'],_0x44aa65=_0x3829cd['locale'];_0x3829cd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x308e54=>{if('formatInline'!=_0x308e54['type'])return;const {data:_0x18033b}=_0x308e54;if(_0x18033b){if('link'==_0x18033b['commandName']){const _0xcd3470=_0x18033b['commandParams'][0x0];return{'type':'format','content':o(_0x44aa65,'*Set\x20link:*\x20%0','\x22'+_0xcd3470+'\x22')};}return'unlink'==_0x18033b['commandName']?{'type':'format','content':o(_0x44aa65,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x3c70aa{['afterInit'](){const _0x4dbce4=this['editor'],_0x14c17e=_0x4dbce4['locale'];if(!_0x4dbce4['plugins']['has']('LegacyListEditing'))return;const _0x2ea407=_0x4dbce4['plugins']['get']('TrackChangesEditing'),_0x516ff2=_0x4dbce4['plugins']['has']('LegacyTodoListEditing');function _0x34b8c2(_0x5760d5){return()=>{const _0x2533bd=_0x4dbce4['model']['document']['selection'],_0x3f68f2=_0x4dbce4['commands']['get'](_0x5760d5);if(_0x3f68f2['value'])return void _0x4dbce4['execute']('paragraph',{});const _0x4b3dca=_0x5760d5['slice'](0x0,-0x4),_0x5c7e42=function(_0x1afc6a,_0x3b5b03,_0x266a23){let _0x4f9024=Array['from'](_0x1afc6a)['filter'](_0x7c927d=>function(_0x369f07,_0xab7d3){return _0xab7d3['checkChild'](_0x369f07['parent'],'listItem')&&!_0xab7d3['isObject'](_0x369f07);}(_0x7c927d,_0x266a23));_0x4f9024=_0x4f9024['filter'](_0x1618db=>!_0x1618db['is']('element','listItem')||_0x1618db['getAttribute']('listType')!=_0x3b5b03);const _0x1c134d=new Set();for(const _0x5bf96b of _0x4f9024)_0x5bf96b['is']('element','listItem')?_0x1c134d['add'](Le(_0x5bf96b)):_0x1c134d['add'](_0x5bf96b);return Array['from'](_0x1c134d);}(_0x2533bd['getSelectedBlocks'](),_0x4b3dca,_0x4dbce4['model']['schema']);_0x4dbce4['model']['change'](()=>{for(const _0x9bb1b of _0x5c7e42)_0x2ea407['markBlockFormat'](_0x9bb1b,{'commandName':_0x5760d5,'commandParams':[{'forceValue':!_0x3f68f2['value']}],'formatGroupId':'blockName'},Ee(_0x9bb1b));});};}function _0x563953(_0x1e4c5a){return()=>{const _0x54f164=function(_0x326ad3){let _0x42cb92=Array['from'](_0x326ad3);const _0x5bef1f=_0x42cb92['findIndex'](_0x1de034=>'listItem'!=_0x1de034['name']);return _0x5bef1f>-0x1&&(_0x42cb92=_0x42cb92['slice'](0x0,_0x5bef1f)),_0x42cb92;}(_0x4dbce4['model']['document']['selection']['getSelectedBlocks']()),_0x347cbe=_0x4dbce4['model']['createRange'](_0x4dbce4['model']['createPositionAt'](_0x54f164[0x0],'before'),_0x4dbce4['model']['createPositionAt'](_0x54f164[_0x54f164['length']-0x1],'end'));_0x4dbce4['model']['change'](()=>{_0x2ea407['markBlockFormat'](_0x347cbe,{'commandName':_0x1e4c5a,'commandParams':[],'formatGroupId':'listIndent'},function(_0x1fa086){const _0x10fd6e=new Set();for(const _0x126811 of _0x1fa086){let _0x2f1ca4=_0x126811['nextSibling'];for(;_0x2f1ca4&&_0x2f1ca4['getAttribute']('listIndent')>_0x126811['getAttribute']('listIndent');)_0x10fd6e['add'](_0x2f1ca4),_0x2f1ca4=_0x2f1ca4['nextSibling'];}return Array['from'](_0x10fd6e);}(_0x54f164));});};}_0x2ea407['enableCommand']('numberedList',_0x34b8c2('numberedList')),_0x2ea407['enableCommand']('bulletedList',_0x34b8c2('bulletedList')),_0x516ff2&&_0x2ea407['enableCommand']('todoList',_0x34b8c2('todoList')),_0x2ea407['enableCommand']('indentList',_0x563953('indentList')),_0x2ea407['enableCommand']('outdentList',_0x563953('outdentList')),_0x516ff2&&_0x2ea407['enableCommand']('checkTodoList',()=>{const _0x207ab4=_0x4dbce4['commands']['get']('checkTodoList'),_0x40b627=Array['from'](_0x207ab4['_selectedElements']);_0x40b627['filter'](_0x2d7e8e=>_0x2d7e8e['getAttribute']('todoListChecked')!=_0x207ab4['value']),_0x4dbce4['model']['change'](()=>{for(const _0x3f9ee7 of _0x40b627)_0x2ea407['markBlockFormat'](_0x3f9ee7,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x207ab4['value']}]});});}),_0x2ea407['descriptionFactory']['registerElementLabel']('listItem',_0x4f8a06=>o(_0x14c17e,'ELEMENT_LIST_ITEM',_0x4f8a06)),_0x2ea407['descriptionFactory']['registerDescriptionCallback'](_0x23f0cf=>{if('formatBlock'!=_0x23f0cf['type']&&'formatInline'!=_0x23f0cf['type'])return;const {data:_0x2225bc}=_0x23f0cf;if(_0x2225bc){if('numberedList'==_0x2225bc['commandName']||'bulletedList'==_0x2225bc['commandName']||'todoList'==_0x2225bc['commandName'])switch(_0x2225bc['commandName']['replace']('List','')){case'bulleted':return _0x9382d7(o(_0x14c17e,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x9382d7(o(_0x14c17e,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x9382d7(o(_0x14c17e,'ELEMENT_TODO_LIST'));}if('indentList'==_0x2225bc['commandName'])return{'type':'format','content':o(_0x14c17e,'*Indent:*\x20%0',o(_0x14c17e,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x2225bc['commandName'])return{'type':'format','content':o(_0x14c17e,'*Outdent:*\x20%0',o(_0x14c17e,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x2225bc['commandName'])return _0x2225bc['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x14c17e,'*Check\x20item*')}:{'type':'format','content':o(_0x14c17e,'*Uncheck\x20item*')};}function _0x9382d7(_0x4c9e63){return{'type':'format','content':o(_0x14c17e,'*Change\x20to:*\x20%0',_0x4c9e63)};}});}}function Le(_0x28d299){const _0x442074=_0x28d299['getAttribute']('listIndent');if(0x0==_0x442074)return _0x28d299;let _0x170c6e=_0x28d299;for(;_0x28d299['previousSibling']&&_0x28d299['previousSibling']['is']('element','listItem');){const _0x5476f1=_0x28d299['previousSibling']['getAttribute']('listIndent');if(_0x5476f1==_0x442074)_0x170c6e=_0x28d299['previousSibling'];else{if(_0x5476f1<_0x442074)break;}_0x28d299=_0x28d299['previousSibling'];}return _0x170c6e;}function Ee(_0x2bba20){const _0x502ab8=[];if(_0x2bba20['is']('element','listItem')&&_0x2bba20['getAttribute']('listIndent')>0x0){let _0x59ca1e=_0x2bba20['nextSibling'];for(;_0x59ca1e&&'listItem'==_0x59ca1e['name']&&_0x59ca1e['getAttribute']('listIndent')==_0x2bba20['getAttribute']('listIndent');)_0x502ab8['push'](_0x59ca1e),_0x59ca1e=_0x59ca1e['nextSibling'];}return _0x502ab8;}class Q extends _0x3c70aa{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x5101a8=this['editor']['config']['get']('list.properties'),_0x4972de=this['editor']['plugins']['get']('TrackChangesEditing');_0x5101a8['styles']&&_0x4972de['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x5101a8['reversed']&&_0x4972de['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x5101a8['startIndex']&&_0x4972de['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x4972de['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x6812bb,_0x347f7d={}){const _0x186a2e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2ec92e=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x186a2e['markMultiRangeBlockFormat'](_0x2ec92e,{'commandName':'listStyle','commandParams':[{'type':_0x347f7d['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0xa51b51,_0x21db1f={}){const _0x1baa00=this['editor']['plugins']['get']('TrackChangesEditing'),_0x184ffc=this['_getSuggestionBlocks'](_0x580779=>_0x580779['is']('element','listItem')&&'numbered'===_0x580779['getAttribute']('listType'));if(_0x184ffc['length']<0x1)return;const _0x5eb14a=_0x184ffc['map'](_0x5d16b8=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5d16b8,'before'),this['editor']['model']['createPositionAt'](_0x5d16b8,0x0)));this['editor']['model']['change'](()=>{_0x1baa00['markMultiRangeBlockFormat'](_0x5eb14a,{'commandName':'listReversed','commandParams':[{'reversed':_0x21db1f['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x2448de,_0x2cbd0f={}){const _0x590e8c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x700cbc=this['_getSuggestionBlocks'](_0xfc6253=>_0xfc6253['is']('element','listItem')&&'numbered'===_0xfc6253['getAttribute']('listType'));if(_0x700cbc['length']<0x1)return;const _0x13a84f=_0x700cbc['map'](_0xfd611=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xfd611,'before'),this['editor']['model']['createPositionAt'](_0xfd611,0x0)));this['editor']['model']['change'](()=>{_0x590e8c['markMultiRangeBlockFormat'](_0x13a84f,{'commandName':'listStart','commandParams':[{'startIndex':_0x2cbd0f['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x323d3e){if('formatBlock'!=_0x323d3e['type']&&'formatInline'!=_0x323d3e['type'])return;const _0xf1e62d=this['editor']['locale'],{data:_0x32d647}=_0x323d3e;if(!_0x32d647)return;let _0x57213e,_0x256979;switch(_0x32d647['commandName']){case'listStyle':_0x57213e='*Change\x20to:*\x20%0',_0x256979={'type':'format','content':o(_0xf1e62d,_0x57213e,o(_0xf1e62d,this['_getTranslationKeyForListStyle'](_0x32d647['commandParams'][0x0]['type'])))};break;case'listReversed':_0x57213e=_0x32d647['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x256979={'type':'format','content':o(_0xf1e62d,_0x57213e)};break;case'listStart':_0x57213e='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x256979={'type':'format','content':o(_0xf1e62d,_0x57213e,_0x32d647['commandParams'][0x0]['startIndex'])};}return _0x256979;}['_getSuggestionBlocksForListStyle'](){const _0x3442b3=this['editor']['plugins']['get']('LegacyListUtils');let _0x481ad1=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x481ad1[0x0]?.['is']('element','listItem')&&_0x481ad1['unshift'](..._0x3442b3['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x481ad1[_0x481ad1['length']-0x1]?.['is']('element','listItem')&&_0x481ad1['push'](..._0x3442b3['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x481ad1=[...new Set(_0x481ad1)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x481ad1=_0x481ad1['filter'](_0x36a1d9=>_0x36a1d9['is']('element','listItem'))),_0x481ad1;}['_getSuggestionBlocks'](_0x1ebd68){const _0x44af02=this['editor']['plugins']['get']('LegacyListUtils');let _0x217dbe=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x1ebd68)['map'](_0x1fee67=>{const _0x427c47=this['editor']['model']['createPositionAt'](_0x1fee67,0x0);return[..._0x44af02['getSiblingNodes'](_0x427c47,'backward'),..._0x44af02['getSiblingNodes'](_0x427c47,'forward')];})['flat']();return _0x217dbe=[...new Set(_0x217dbe)],_0x217dbe;}['_getTranslationKeyForListStyle'](_0x4dac0b){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x4dac0b)||'default')['toUpperCase']()+'_LIST_'+_0x4dac0b['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x3c70aa{['afterInit'](){const _0x5719a0=this['editor'];if(!_0x5719a0['plugins']['has']('MediaEmbedEditing'))return;const _0x5c0bc4=_0x5719a0['plugins']['get']('TrackChangesEditing'),_0x1bc4c2=_0x5719a0['locale'];_0x5c0bc4['enableCommand']('mediaEmbed'),_0x5c0bc4['descriptionFactory']['registerElementLabel']('media',_0x3847d3=>o(_0x1bc4c2,'ELEMENT_MEDIA',_0x3847d3)),_0x5719a0['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x2a6196,{writer:_0x1929b8,options:_0x4d1813})=>{if(_0x4d1813['showSuggestionHighlights'])return _0x1929b8['createEmptyElement']('div');},'converterPriority':'high'}),_0x5719a0['data']['downcastDispatcher']['on']('attribute:url:media',(_0x380023,_0x1f5e11,_0x35dac7)=>{_0x35dac7['options']['showSuggestionHighlights']&&_0x380023['stop']();},{'priority':'high'});}}class mt extends _0x3c70aa{['afterInit'](){const _0x30b15e=this['editor'];_0x30b15e['plugins']['has']('MentionEditing')&&_0x30b15e['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class pt extends _0x3c70aa{['afterInit'](){const _0x540a33=this['editor'];if(!_0x540a33['plugins']['has']('MergeFieldsEditing'))return;_0x540a33['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x540a33['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0xf03c9e=_0x540a33['plugins']['get']('TrackChangesEditing'),_0x348b1c=_0x540a33['locale'];_0xf03c9e['descriptionFactory']['registerElementLabel']('mergeField',_0x5c1f8f=>o(_0x348b1c,'ELEMENT_MERGE_FIELD',_0x5c1f8f)),_0xf03c9e['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x5c7186=>o(_0x348b1c,'ELEMENT_MERGE_FIELD',_0x5c7186)),_0xf03c9e['descriptionFactory']['registerDescriptionCallback'](_0x321f48=>{if('insertion'!=_0x321f48['type']&&'deletion'!=_0x321f48['type'])return;const _0x217718=_0x321f48['getContainedElement']();if(null==_0x217718)return;if(!_0x217718['is']('element','mergeField')&&!_0x217718['is']('element','mergeFieldBlock'))return;const _0x3f8fa1=_0x540a33['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x217718['getAttribute']('id'));return'insertion'==_0x321f48['type']?{'type':'insertion','content':o(_0x348b1c,'*Insert:*\x20%0','\x22'+_0x3f8fa1+'\x22\x20'+o(_0x348b1c,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x348b1c,'*Remove:*\x20%0','\x22'+_0x3f8fa1+'\x22\x20'+o(_0x348b1c,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x3c70aa{['afterInit'](){const _0x36738c=this['editor'],_0x25c40d=_0x36738c['plugins']['get']('TrackChangesEditing');_0x36738c['plugins']['has']('MultiLevelList')&&(_0x25c40d['enableDefaultAttributesIntegration']('multiLevelList'),_0x25c40d['registerBlockAttribute']('listMarkerStyle'),_0x25c40d['descriptionFactory']['registerDescriptionCallback'](_0x1ca2c3=>this['handleDescriptions'](_0x1ca2c3)));}['handleDescriptions'](_0x3d3175){const _0x1b36aa=this['editor']['locale'],{data:_0x2f6efd}=_0x3d3175,_0x373f7d={'type':'format','content':''};if(_0x2f6efd&&'listMarkerStyle'==_0x2f6efd['key']){if(!_0x2f6efd['oldValue'])return{'type':'format','content':o(_0x1b36aa,'*Set\x20format:*\x20%0',o(_0x1b36aa,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2f6efd['newValue']+')'};if(!_0x2f6efd['newValue']){let _0x22c44a=_0x3d3175['head'];for(;_0x22c44a;){if(_0x22c44a['data']&&'listType'==_0x22c44a['data']['key']&&_0x22c44a['data']['newValue'])return _0x373f7d;_0x22c44a=_0x22c44a['next'];}return{'type':'format','content':o(_0x1b36aa,'*Remove\x20format:*\x20%0',o(_0x1b36aa,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2f6efd['oldValue']+')'};}}}}class kt extends _0x3c70aa{['afterInit'](){const _0x35be02=this['editor'];if(!_0x35be02['plugins']['has']('PageBreakEditing'))return;_0x35be02['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x103947=_0x35be02['plugins']['get']('TrackChangesEditing'),_0xfb643e=_0x35be02['locale'];_0x103947['descriptionFactory']['registerElementLabel']('pageBreak',_0x54eaf7=>o(_0xfb643e,'ELEMENT_PAGE_BREAK',_0x54eaf7));}}class bt extends _0x3c70aa{['afterInit'](){const _0xc2482a=this['editor'];if(!_0xc2482a['plugins']['has']('Paragraph'))return;const _0x24efed=_0xc2482a['locale'],_0x24123c=_0xc2482a['plugins']['get']('TrackChangesEditing');_0x24123c['descriptionFactory']['registerElementLabel']('paragraph',_0x656f67=>o(_0x24efed,'ELEMENT_PARAGRAPH',_0x656f67)),_0x24123c['enableDefaultAttributesIntegration']('paragraph'),_0x24123c['enableCommand']('insertParagraph'),_0xc2482a['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0xc2482a),{'priority':'highest'}),_0xc2482a['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3b4b1e,_0x77f889,_0x1ee201)=>{_0x1ee201['options']['showSuggestionHighlights']&&nr(_0xc2482a,{'showActiveMarker':!0x1})(_0x3b4b1e,_0x77f889,_0x1ee201);},{'priority':'highest'});const _0x27e64f=_0x24123c['descriptionFactory'];_0x27e64f['registerDescriptionCallback'](_0x518cdc=>{if('insertion'!==_0x518cdc['type'])return;const {start:_0x47d439,end:_0x23902d}=_0x518cdc['getFirstRange']();if(!_0x47d439['isTouching'](_0x23902d)||!_0x47d439['nodeAfter'])return;const _0xc949ab=_0xc2482a['model']['schema'],_0x252ecd=_0x47d439['nodeAfter'];return _0xc949ab['isBlock'](_0x252ecd)&&!_0xc949ab['isLimit'](_0x252ecd)&&_0xc949ab['checkChild'](_0x252ecd,'$text')?{'type':'insertion','content':o(_0x24efed,'*Insert:*\x20%0',_0x27e64f['getItemLabel'](_0x252ecd,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x457243=this['editor'],_0x43978e=_0x457243['locale'];_0x457243['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x203cee=>{if('formatBlock'!=_0x203cee['type'])return;const {data:_0x51bfb1}=_0x203cee;return _0x51bfb1&&'paragraph'==_0x51bfb1['commandName']?{'type':'format','content':o(_0x43978e,'*Change\x20to:*\x20%0',o(_0x43978e,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x1e1998,{showActiveMarker:_0x3af4fb=!0x0}={}){return(_0x4a2b2e,_0x26325b,_0x5e721b)=>{const _0x5ca6a4=_0x1e1998['plugins']['get']('TrackChangesEditing'),_0x9d26fc=_0x26325b['markerRange']['start'],_0x9a04f1=_0x26325b['markerRange']['end'],_0x4ffccf=_0x1e1998['model']['schema'];if(!_0x9d26fc['isTouching'](_0x9a04f1)||!_0x9d26fc['nodeAfter'])return;const _0x16e59a=_0x9d26fc['nodeAfter'];if(_0x4ffccf['isBlock'](_0x16e59a)&&!_0x4ffccf['isLimit'](_0x16e59a)&&_0x4ffccf['checkChild'](_0x16e59a,'$text')){if(!_0x5e721b['consumable']['consume'](_0x26325b['markerRange'],_0x4a2b2e['name']))return;const {authorId:_0x52a3f1}=_0x5ca6a4['_splitMarkerName'](_0x26325b['markerName']),_0x331b87=_0x5e721b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x52a3f1}),_0x367408=_0x5e721b['mapper']['toViewPosition'](_0x9a04f1);_0x3af4fb&&_0x5ca6a4['activeMarkers']['includes'](_0x26325b['markerName'])&&_0x5e721b['writer']['addClass']('ck-suggestion-marker--active',_0x331b87),_0x5e721b['writer']['insert'](_0x367408,_0x331b87),_0x5e721b['mapper']['bindElementToMarker'](_0x331b87,_0x26325b['markerName']);}};}class yt extends _0x3c70aa{['afterInit'](){const _0x29a481=this['editor'];if(!_0x29a481['plugins']['has']('RemoveFormatEditing'))return;_0x29a481['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xdcafec=this['editor'];_0xdcafec['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3173f9=>{if('formatBlock'!=_0x3173f9['type']&&'formatInline'!=_0x3173f9['type'])return;const {data:_0x9b37ae}=_0x3173f9;return _0x9b37ae&&'removeFormat'==_0x9b37ae['commandName']?{'type':'format','content':o(_0xdcafec['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class jt extends _0x3c70aa{['afterInit'](){const _0x344b6b=this['editor'];if(!_0x344b6b['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x49da31=_0x344b6b['plugins']['get']('TrackChangesEditing');_0x49da31['enableCommand']('goToPreviousRestrictedEditingException'),_0x49da31['enableCommand']('goToNextRestrictedEditingException');const _0x105bf3=_0x344b6b['plugins']['get']('RestrictedEditingModeEditing');_0x105bf3['enableCommand']('trackChanges'),_0x105bf3['enableCommand']('acceptSuggestion'),_0x105bf3['enableCommand']('discardSuggestion'),_0x105bf3['enableCommand']('acceptAllSuggestions'),_0x105bf3['enableCommand']('discardAllSuggestions'),_0x105bf3['enableCommand']('acceptSelectedSuggestions'),_0x105bf3['enableCommand']('discardSelectedSuggestions');}}class St extends _0x3c70aa{static get['requires'](){return[_0x4f65e3];}['init'](){const _0x5ea887=this['editor'],_0x473b05=_0x5ea887['plugins']['get']('TrackChangesEditing');_0x473b05['enableCommand']('shiftEnter'),_0x5ea887['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ke(_0x5ea887),{'priority':'high'}),_0x5ea887['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ke(_0x5ea887),{'priority':'high'}),_0x5ea887['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x26de7e,_0x52d0b4,_0x57635d)=>{_0x57635d['options']['showSuggestionHighlights']&&ke(_0x5ea887,{'showActiveMarker':!0x1})(_0x26de7e,_0x52d0b4,_0x57635d);}),_0x473b05['descriptionFactory']['registerElementLabel']('softBreak',_0x1b3d1f=>o(_0x5ea887['locale'],'ELEMENT_LINE_BREAK',_0x1b3d1f));}}function ke(_0x5a7837,{showActiveMarker:_0x5d4736=!0x0}={}){return(_0x46c336,_0x1a8c42,_0x1e1db7)=>{const _0x19f294=_0x5a7837['plugins']['get']('TrackChangesEditing');if(!_0x1e1db7['consumable']['test'](_0x1a8c42['markerRange'],_0x46c336['name']))return;const _0x1f0a2b=_0x5a7837['model'];for(const _0x227058 of _0x1a8c42['markerRange']['getItems']()){if(!_0x227058['is']('element','softBreak'))continue;const _0x5893a9='deletion'==_0x1a8c42['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x53805b}=_0x19f294['_splitMarkerName'](_0x1a8c42['markerName']),_0x511d17=_0x1e1db7['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5893a9,'data-author-id':_0x53805b}),_0x298661=_0x1e1db7['mapper']['toViewPosition'](_0x1f0a2b['createPositionBefore'](_0x227058));_0x5d4736&&_0x19f294['activeMarkers']['includes'](_0x1a8c42['markerName'])&&_0x1e1db7['writer']['addClass']('ck-suggestion-marker--active',_0x511d17),_0x1e1db7['writer']['insert'](_0x298661,_0x511d17),_0x1e1db7['mapper']['bindElementToMarker'](_0x511d17,_0x1a8c42['markerName']);}};}class At extends _0x3c70aa{['afterInit'](){const _0x59b5a0=this['editor'],_0x2e6337=_0x59b5a0['model'],_0xb39d39=_0x59b5a0['locale'];if(!_0x59b5a0['plugins']['has']('StandardEditingModeEditing'))return;const _0x518a45=_0x59b5a0['plugins']['get']('TrackChangesEditing'),_0x580397='restrictedEditingException',_0x646ea2=_0x59b5a0['commands']['get'](_0x580397);_0x518a45['enableCommand'](_0x580397,(_0x2338a3,_0x17cf53={})=>{const _0x1834d1=_0x2e6337['document']['selection'];if(_0x1834d1['isCollapsed'])return void _0x2338a3(_0x17cf53);const _0x429795=void 0x0!==_0x17cf53['forceValue']?_0x17cf53['forceValue']:!_0x646ea2['value'];_0x2e6337['change'](()=>{const _0x3e7391=Array['from'](_0x1834d1['getRanges']());for(const _0x405dc8 of _0x3e7391){const _0x4b3094=_0x429795?[_0x405dc8]:io(_0x580397,_0x405dc8,_0x2e6337);for(const _0x3134da of _0x4b3094)_0x518a45['markInlineFormat'](_0x3134da,{'commandName':_0x580397,'commandParams':[{'forceValue':_0x429795}]});}});}),_0x518a45['descriptionFactory']['registerDescriptionCallback'](_0xc4eed=>{if('formatBlock'!=_0xc4eed['type']&&'formatInline'!=_0xc4eed['type'])return;const {data:_0x4ec2c5}=_0xc4eed;return _0x4ec2c5&&_0x4ec2c5['commandName']==_0x580397?_0x4ec2c5['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xb39d39,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0xb39d39,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x3c70aa{['afterInit'](){const _0x20cdad=this['editor'];if(!_0x20cdad['plugins']['has']('Style')||!_0x20cdad['plugins']['has']('DataSchema'))return;const _0x592672=_0x20cdad['plugins']['get']('TrackChangesEditing'),_0x20db88=_0x20cdad['locale'],_0x50a431=_0x20cdad['config']['get']('style')||{},_0x27614a=_0x20cdad['plugins']['get']('GeneralHtmlSupport'),_0x2d664e=_0x20cdad['plugins']['get']('StyleUtils')['normalizeConfig'](_0x20cdad['plugins']['get']('DataSchema'),_0x50a431['definitions']);_0x592672['enableDefaultAttributesIntegration']('style');const _0x4740e6=new Set();for(const _0x490bf5 of _0x2d664e['block']){const _0x3844b6=_0x27614a['getGhsAttributeNameForElement'](_0x490bf5['element']);_0x4740e6['add'](_0x3844b6);}const _0x1116a2=new Set();for(const _0x5f3692 of _0x2d664e['inline']){const _0x2c17cb=_0x27614a['getGhsAttributeNameForElement'](_0x5f3692['element']);_0x1116a2['add'](_0x2c17cb);for(const _0x367e71 of _0x5f3692['ghsAttributes'])_0x1116a2['add'](_0x367e71);}for(const _0x4bebd3 of _0x4740e6)_0x592672['registerBlockAttribute'](_0x4bebd3),_0x592672['descriptionFactory']['registerAttributeLabel'](_0x4bebd3,o(_0x20db88,'FORMAT_STYLE'));for(const _0xd73bf2 of _0x1116a2)_0x592672['registerInlineAttribute'](_0xd73bf2),_0x592672['descriptionFactory']['registerAttributeLabel'](_0xd73bf2,o(_0x20db88,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5b0a7e=this['editor'],_0x427c00=_0x5b0a7e['locale'];_0x5b0a7e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x185a02=>{if('formatBlock'!=_0x185a02['type']&&'formatInline'!=_0x185a02['type'])return;const {data:_0x4e25ef}=_0x185a02;return _0x4e25ef&&'style'===_0x4e25ef['commandName']?_0x4e25ef['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x427c00,'*Set\x20format:*\x20%0',_0x4e25ef['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x427c00,'*Remove\x20format:*\x20%0',_0x4e25ef['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class vt extends _0x3c70aa{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x3d5ab2){super(_0x3d5ab2),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x83c00d=this['editor'],_0x9d34f4=_0x83c00d['model']['document']['selection'];if(!_0x83c00d['plugins']['has']('TableEditing'))return;const _0x1f145a=_0x83c00d['locale'],_0x557fc6=_0x83c00d['plugins']['get']('TrackChangesEditing'),_0x421b6c=_0x83c00d['plugins']['get']('TableUtils');_0x557fc6['descriptionFactory']['registerElementLabel']('table',_0x2c517f=>o(_0x1f145a,'ELEMENT_TABLE',_0x2c517f)),this['_setupColumnsRowsFixing'](),_0x557fc6['enableCommand']('insertTable'),_0x557fc6['enableCommand']('selectTableRow'),_0x557fc6['enableCommand']('selectTableColumn');for(const _0x492c86 of['insertTableRowAbove','insertTableRowBelow']){const _0x467f7d=_0x83c00d['commands']['get'](_0x492c86);_0x557fc6['enableCommand'](_0x492c86,_0x356b03=>{_0x83c00d['model']['change'](_0x548b9e=>{_0x356b03();const _0x1c64a5='above'===_0x467f7d['order'],_0x5eb77e=_0x421b6c['getSelectionAffectedTableCells'](_0x9d34f4),_0x5ed9fd=_0x421b6c['getRowIndexes'](_0x5eb77e),_0x3c803b=_0x1c64a5?_0x5ed9fd['first']-0x1:_0x5ed9fd['last']+0x1,_0x138a5e=_0x5eb77e[0x0]['findAncestor']('table'),_0x435ca4=_0x421b6c['createTableWalker'](_0x138a5e,{'startRow':_0x3c803b,'endRow':_0x3c803b}),_0x20b66b=Array['from'](_0x435ca4)['map'](_0x56d29c=>_0x548b9e['createRangeOn'](_0x56d29c['cell']));_0x557fc6['markMultiRangeInsertion'](_0x20b66b,'tableRow');});});}for(const _0x565727 of['insertTableColumnLeft','insertTableColumnRight']){const _0x4c713e=_0x83c00d['commands']['get'](_0x565727);_0x557fc6['enableCommand'](_0x565727,_0xf12580=>{_0x83c00d['model']['change'](_0x2e7f85=>{_0xf12580();const _0x103c01='left'===_0x4c713e['order'],_0x3b5bf5=_0x421b6c['getSelectionAffectedTableCells'](_0x9d34f4),_0x4c44a5=_0x421b6c['getColumnIndexes'](_0x3b5bf5),_0x4d76c5=_0x103c01?_0x4c44a5['first']-0x1:_0x4c44a5['last']+0x1,_0x5d61ce=_0x3b5bf5[0x0]['findAncestor']('table'),_0x27614d=_0x421b6c['createTableWalker'](_0x5d61ce,{'startRow':0x0,'column':_0x4d76c5,'includeAllSlots':!0x1}),_0x1f7f2e=Array['from'](_0x27614d)['map'](_0x507ccc=>_0x2e7f85['createRangeOn'](_0x507ccc['cell']));_0x557fc6['markMultiRangeInsertion'](_0x1f7f2e,'tableColumn');});});}for(const _0x1cc285 of['removeTableRow','removeTableColumn']){const _0x21ad82=_0x1cc285['substr'](0xb),_0xb16562=_0x21ad82['toLowerCase'](),_0x26e1b5=_0xb16562['substr'](0x0,0x3)+'span',_0x5e71b9='table'+_0x21ad82,_0x473270='min'+_0x21ad82,_0xc92906='max'+_0x21ad82;_0x557fc6['enableCommand'](_0x1cc285,()=>{_0x83c00d['model']['change'](_0x62153b=>{const _0x3efcad=_0x421b6c['getSelectionAffectedTableCells'](_0x9d34f4),_0x5526d6=_0x3efcad[0x0]['findAncestor']('table');let _0xcb9580;if('removeTableRow'==_0x1cc285){const _0x26939d=_0x421b6c['getRowIndexes'](_0x3efcad);_0xcb9580={'startRow':_0x26939d['first'],'endRow':_0x26939d['last'],'includeAllSlots':!0x0};}else{const _0x236d2b=_0x421b6c['getColumnIndexes'](_0x3efcad);_0xcb9580={'startColumn':_0x236d2b['first'],'endColumn':_0x236d2b['last'],'includeAllSlots':!0x0};}const _0x2d8d05=_0x421b6c['createTableWalker'](_0x5526d6,_0xcb9580),_0x145a97=Array['from'](_0x2d8d05)['map'](({cell:_0x4fbd4d})=>_0x4fbd4d),_0x2e33f7=Re(_0x145a97['filter'](_0x234835=>_0x234835['hasAttribute'](_0x26e1b5))),_0x7b22ef=Re(_0x145a97['filter'](_0x2651a8=>!_0x2651a8['hasAttribute'](_0x26e1b5)))['map'](_0x582ab1=>_0x62153b['createRangeOn'](_0x582ab1)),_0x1a668a=_0x557fc6['markMultiRangeDeletion'](_0x7b22ef,_0x5e71b9);if(_0x1a668a&&('tableRow'==_0x1a668a['subType']||'tableColumn'==_0x1a668a['subType'])){const _0x2f4208=this['_getSuggestionCoords'](_0x1a668a);for(const _0x92310b of _0x2e33f7){const _0x9cf49e=_0x62153b['createRangeOn'](_0x92310b),_0x34f772=_0x421b6c['getCellLocation'](_0x92310b),_0x232e9f=_0x92310b['getAttribute'](_0x26e1b5)-0x1,_0x16fbbe=_0x2f4208[_0x473270],_0x195502=_0x2f4208[_0xc92906];_0x16fbbe<=_0x34f772[_0xb16562]&&_0x34f772[_0xb16562]+_0x232e9f<=_0x195502&&_0x1a668a['addRange'](_0x9cf49e);}}});});}function _0x292058(_0x2fb9a2){const _0x661583=Array['from'](_0x9d34f4['getRanges']())['map'](_0x2d933e=>_0x4fb46f['fromRange'](_0x2d933e));_0x83c00d['model']['change'](_0xbe9e68=>{const _0x1c9073=_0xbe9e68['batch'];_0x2fb9a2=_0x2fb9a2['filter'](_0x2d7ecf=>'$graveyard'!=_0x2d7ecf['root']['rootName']),_0xbe9e68['setSelection'](_0x2fb9a2),_0x83c00d['commands']['get']('removeTableRow')['refresh'](),_0x83c00d['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x83c00d['model']['enqueueChange'](()=>{_0x83c00d['model']['enqueueChange'](_0x1c9073,_0x41fca6=>{const _0x7d2a25=_0x661583['filter'](_0x4c39f7=>'$graveyard'!=_0x4c39f7['root']['rootName']);_0x7d2a25['length']>0x0&&_0x41fca6['setSelection'](_0x7d2a25);for(const _0x17cbe9 of _0x661583)_0x17cbe9['detach']();});});});}function _0x38f40b(_0x3e78a9){_0x83c00d['model']['change'](_0x45eb3a=>{const _0x34c291=Array['from'](_0x9d34f4['getRanges']())['map'](_0x225f4d=>_0x4fb46f['fromRange'](_0x225f4d)),_0x2a9cc1=[];for(const _0x3a7656 of _0x3e78a9)for(const _0x1d8f16 of _0x3a7656['getItems']({'shallow':!0x0}))_0x2a9cc1['push'](_0x1d8f16);for(const _0x583c95 of _0x2a9cc1)'$graveyard'!=_0x583c95['root']['rootName']&&(_0x45eb3a['setSelection'](_0x45eb3a['createPositionAt'](_0x583c95,0x0)),_0x83c00d['commands']['get']('removeTableColumn')['refresh'](),_0x83c00d['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x582708=_0x34c291['filter'](_0x57e427=>'$graveyard'!=_0x57e427['root']['rootName']);_0x582708['length']>0x0&&_0x45eb3a['setSelection'](_0x582708);for(const _0x22fa7e of _0x34c291)_0x22fa7e['detach']();});}function _0x25c67b(_0x29bcee,_0x283039){return _0x283039['every'](_0x388ddc=>_0x29bcee['some'](_0x56acf8=>_0x56acf8['end']['isEqual'](_0x388ddc['start'])||_0x388ddc['end']['isEqual'](_0x56acf8['start'])));}function _0x581db7(_0x1badce,_0x2b56d0){return!_0x1badce['some'](_0xec621=>_0x2b56d0['some'](_0x53cda3=>_0xec621['isIntersecting'](_0x53cda3)))&&_0x1badce['some'](_0xbc3c23=>_0x2b56d0['some'](_0x35fde9=>_0xbc3c23['end']['isTouching'](_0x35fde9['start'])));}_0x83c00d['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x50d7a2,_0x47445d,_0x4fa80f)=>{if(!_0x4fa80f['options']['showSuggestionHighlights'])return;const _0x2a82e2=_0x47445d['item'];if(!_0x2a82e2)return;const _0x54759e=_0x4fa80f['mapper']['toViewElement'](_0x2a82e2);function _0x2f0c1b(_0x13aaf7){return Array['isArray'](_0x13aaf7)?_0x13aaf7:[_0x13aaf7];}_0x54759e&&'tableCell'===_0x2a82e2['name']&&_0x504615(_0x54759e,_0x4fa80f['writer'],(_0x2d9dce,_0xb5516d,_0x1fbf3e)=>_0x1fbf3e['addClass'](_0x2f0c1b(_0xb5516d['classes']),_0x2d9dce),(_0x3ebe98,_0x114ffc,_0x59c8e2)=>_0x59c8e2['removeClass'](_0x2f0c1b(_0x114ffc['classes']),_0x3ebe98));},{'priority':'highest'}),_0x557fc6['descriptionFactory']['registerDescriptionCallback'](_0x1e8f5e=>{if('insertion'!=_0x1e8f5e['type']&&'deletion'!=_0x1e8f5e['type'])return;const _0x10f140=_0x1e8f5e['getContainedElement']();if(null!=_0x10f140&&_0x10f140['is']('element','table')){if('insertion'==_0x1e8f5e['type']){const _0x27266f=_0x1e8f5e['getItems']()['filter'](_0x23033a=>_0x23033a['is']('$textProxy'))['map'](_0x544eab=>_0x544eab['data']);if(_0x27266f['length'])return{'type':'insertion','content':o(_0x1f145a,'*Insert:*\x20%0',o(_0x1f145a,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x27266f['join']('\x20')+'\x22'))};}if('deletion'==_0x1e8f5e['type']){const _0x1b0d0a=_0x1e8f5e['getItems']()['filter'](_0x3ea586=>_0x3ea586['is']('$textProxy'))['map'](_0x352a9c=>_0x352a9c['data']);if(_0x1b0d0a['length'])return{'type':'deletion','content':o(_0x1f145a,'*Remove:*\x20%0',o(_0x1f145a,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1b0d0a['join']('\x20')+'\x22'))};}}}),_0x557fc6['descriptionFactory']['registerDescriptionCallback'](_0x5797d3=>{if('tableRow'==_0x5797d3['subType']){const _0x57ad05=_0x5797d3['getItems']()['filter'](_0x1db8a3=>_0x1db8a3['is']('$textProxy'))['map'](_0x424f12=>_0x424f12['data']),_0x3c1e4e=this['_getSuggestionCoords'](_0x5797d3),_0xbbd68a=_0x3c1e4e['maxRow']-_0x3c1e4e['minRow']+0x1;if('insertion'==_0x5797d3['type'])return _0x57ad05['length']?{'type':'insertion','content':o(_0x1f145a,'*Insert:*\x20%0',o(_0x1f145a,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xbbd68a,'\x22'+_0x57ad05['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x1f145a,'*Insert:*\x20%0',o(_0x1f145a,'ELEMENT_TABLE_ROW',_0xbbd68a))};if('deletion'==_0x5797d3['type'])return _0x57ad05['length']?{'type':'deletion','content':o(_0x1f145a,'*Remove:*\x20%0',o(_0x1f145a,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xbbd68a,'\x22'+_0x57ad05['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x1f145a,'*Remove:*\x20%0',o(_0x1f145a,'ELEMENT_TABLE_ROW',_0xbbd68a))};}if('tableColumn'==_0x5797d3['subType']){const _0x59dc59=_0x5797d3['getItems']()['filter'](_0x3ad620=>_0x3ad620['is']('$textProxy'))['map'](_0x35fd7a=>_0x35fd7a['data']),_0x49c007=this['_getSuggestionCoords'](_0x5797d3),_0x1bcb7a=_0x49c007['maxColumn']-_0x49c007['minColumn']+0x1;if('insertion'==_0x5797d3['type'])return _0x59dc59['length']?{'type':'insertion','content':o(_0x1f145a,'*Insert:*\x20%0',o(_0x1f145a,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1bcb7a,'\x22'+_0x59dc59['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x1f145a,'*Insert:*\x20%0',o(_0x1f145a,'ELEMENT_TABLE_COLUMN',_0x1bcb7a))};if('deletion'==_0x5797d3['type'])return _0x59dc59['length']?{'type':'deletion','content':o(_0x1f145a,'*Remove:*\x20%0',o(_0x1f145a,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1bcb7a,'\x22'+_0x59dc59['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x1f145a,'*Remove:*\x20%0',o(_0x1f145a,'ELEMENT_TABLE_COLUMN',_0x1bcb7a))};}}),_0x557fc6['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x292058),_0x557fc6['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x292058),_0x557fc6['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x38f40b),_0x557fc6['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x38f40b),_0x557fc6['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x25c67b),_0x557fc6['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x25c67b),_0x557fc6['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x581db7),_0x557fc6['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x581db7);}['_acceptFormatSuggestionCallbackFactory'](){const _0x5bc281=this['editor'],_0x2b9a20=_0x5bc281['model']['document']['selection'];return(_0x23242a,_0x1e9d13)=>{_0x5bc281['model']['change'](_0x18de69=>{const {commandName:_0x136a0d,commandParams:_0x306a22}=_0x1e9d13;let _0xc19757=_0x23242a[0x0]['end']['nodeBefore'];_0x306a22&&_0x306a22[0x0]&&!0x1===_0x306a22[0x0]['forceValue']&&(_0xc19757=_0x23242a[0x0]['start']['nodeAfter']);const _0x51d914=_0x18de69['createRangeIn'](_0xc19757);if('$graveyard'==_0x51d914['root']['rootName'])return;const _0x652420=Array['from'](_0x2b9a20['getRanges']())['map'](_0x44a65e=>_0x4fb46f['fromRange'](_0x44a65e));_0x18de69['setSelection'](_0x51d914),_0x5bc281['commands']['get'](_0x136a0d)['refresh'](),_0x306a22['push']({'forceDefaultExecution':!0x0}),_0x5bc281['execute'](_0x136a0d,..._0x306a22);const _0x3e56bb=_0x652420['filter'](_0x23783c=>'$graveyard'!=_0x23783c['root']['rootName']);_0x3e56bb['length']>0x0&&_0x18de69['setSelection'](_0x3e56bb);for(const _0x421cfd of _0x652420)_0x421cfd['detach']();});};}['_getCoordsForCells'](_0x4c4baa){const _0xc942d5=this['editor']['plugins']['get']('TableUtils');let _0x2b8a3e=Number['MAX_SAFE_INTEGER'],_0x1e0f98=Number['MIN_SAFE_INTEGER'],_0x4eed99=Number['MAX_SAFE_INTEGER'],_0x9cc327=Number['MIN_SAFE_INTEGER'];for(const _0x6e0031 of _0x4c4baa){if('$graveyard'==_0x6e0031['root']['rootName'])continue;const {row:_0x29e7dc,column:_0x379fc5}=_0xc942d5['getCellLocation'](_0x6e0031),_0x36b90d=_0x6e0031['hasAttribute']('rowspan')?_0x6e0031['getAttribute']('rowspan')-0x1:0x0,_0x347a6d=_0x6e0031['hasAttribute']('colspan')?_0x6e0031['getAttribute']('colspan')-0x1:0x0;_0x2b8a3e=_0x29e7dc<_0x2b8a3e?_0x29e7dc:_0x2b8a3e,_0x1e0f98=_0x29e7dc+_0x36b90d>_0x1e0f98?_0x29e7dc+_0x36b90d:_0x1e0f98,_0x4eed99=_0x379fc5<_0x4eed99?_0x379fc5:_0x4eed99,_0x9cc327=_0x379fc5+_0x347a6d>_0x9cc327?_0x379fc5+_0x347a6d:_0x9cc327;}return{'minRow':_0x2b8a3e,'maxRow':_0x1e0f98,'minColumn':_0x4eed99,'maxColumn':_0x9cc327};}['_setupColumnsRowsFixing'](){const _0x155594=this['editor'],_0x4033af=_0x155594['plugins']['get']('TrackChangesEditing'),_0xdb448d=_0x155594['plugins']['get']('TableUtils');_0x155594['model']['document']['on']('change:data',()=>{const _0x1da5a3=Array['from'](_0x155594['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3faead,data:_0x4a0fd2}of _0x1da5a3){const {group:_0x2612c5,id:_0x5a96b5,subType:_0x595f0f}=_0x4033af['_splitMarkerName'](_0x3faead);if('suggestion'!=_0x2612c5)continue;if(null!=_0x4a0fd2['oldRange'])continue;const _0x670e47=_0x4033af['getSuggestion'](_0x5a96b5);this['_tablePostFixingSubtypes']['includes'](_0x595f0f)&&this['_tableSuggestions']['add'](_0x670e47);}},{'priority':'low'});const _0x81683e=(_0x19801f,_0x79d7fc)=>{let _0x1bc345=!0x1;const _0x39b3cc=_0x79d7fc['createRangeOn'](_0x19801f),_0x137cd6=_0x19801f['findAncestor']('table'),_0x417ecb=_0xdb448d['getCellLocation'](_0x19801f);for(const _0x25e575 of this['_tableSuggestions']){const _0x2a60f7=_0x25e575['subType'],_0x2b1560=_0x2a60f7['startsWith']('tablePaste'),_0x2d2fab=_0x2a60f7['substr'](_0x2b1560?0xa:0x5),_0x3e30ef=_0x2d2fab['toLowerCase'](),_0x2cf503=_0x3e30ef['substr'](0x0,0x3)+'span',_0x2c8487='min'+_0x2d2fab,_0x37a08c='max'+_0x2d2fab;if(!_0x25e575['isInContent'])continue;if(_0x137cd6!=_0x25e575['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x25e575['isIntersectingWithRange'](_0x39b3cc))continue;const _0xf7be17=_0x19801f['hasAttribute'](_0x2cf503)?_0x19801f['getAttribute'](_0x2cf503)-0x1:0x0,_0x44536f=this['_getSuggestionCoords'](_0x25e575),_0x2d4334=_0x44536f[_0x2c8487],_0x59a183=_0x44536f[_0x37a08c];_0x2d4334<=_0x417ecb[_0x3e30ef]&&_0x417ecb[_0x3e30ef]+_0xf7be17<=_0x59a183&&(_0x25e575['addRange'](_0x39b3cc),_0x1bc345=!0x0);}return _0x1bc345;};_0x155594['model']['document']['registerPostFixer'](_0xc6a02b=>{let _0x51e77b=!0x1;for(const _0x5a630a of _0x155594['model']['document']['differ']['getChanges']())if('insert'==_0x5a630a['type']){if('tableRow'==_0x5a630a['name']){for(const _0xcb1388 of _0x5a630a['position']['nodeAfter']['getChildren']())_0x51e77b=_0x51e77b||_0x81683e(_0xcb1388,_0xc6a02b);}else'tableCell'==_0x5a630a['name']&&(_0x51e77b=_0x51e77b||_0x81683e(_0x5a630a['position']['nodeAfter'],_0xc6a02b));}return _0x51e77b;});}['_getSuggestionCoords'](_0x284dbe){return this['_getCoordsForCells'](_0x284dbe['getRanges']()['map'](_0x21d6e7=>_0x21d6e7['start']['nodeAfter']));}}function Re(_0x40cb02){return Array['from'](new Set(_0x40cb02)['values']());}class _t extends _0x3c70aa{static get['requires'](){return[vt];}['afterInit'](){const _0x333af5=this['editor'],_0x385b27=_0x333af5['model']['document']['selection'],_0x733ec7=_0x333af5['locale'];if(!_0x333af5['plugins']['has']('TableEditing'))return;const _0x402f05=_0x333af5['plugins']['get']('TrackChangesEditing'),_0x27d73c=_0x333af5['plugins']['get']('TableUtils'),_0x59ba8c=_0x333af5['plugins']['get'](vt);_0x59ba8c['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x402f05['enableCommand']('mergeTableCells',()=>{const _0x544044=_0x27d73c['getSelectionAffectedTableCells'](_0x333af5['model']['document']['selection']);_0x333af5['model']['change'](()=>{_0x402f05['markMultiRangeBlockFormat'](_0x544044,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x333af5['commands']['get']('mergeTableCells')['on']('execute',(_0x24d509,_0x3777cb)=>{_0x333af5['commands']['get']('trackChanges')['value']&&(_0x3777cb['length']>0x0&&_0x3777cb[_0x3777cb['length']-0x1]&&_0x3777cb[_0x3777cb['length']-0x1]['forceDefaultExecution']||_0x402f05['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x24d509['stop']());},{'priority':'highest'});for(const _0x1848ad of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x41b49a=_0x333af5['commands']['get'](_0x1848ad);_0x402f05['enableCommand'](_0x1848ad,()=>{const _0x326c0e=_0x333af5['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x41e0b0=>_0x41e0b0['is']('element','tableCell')),_0x11d4b7=_0x41b49a['value'];_0x333af5['model']['change'](()=>{_0x402f05['markMultiRangeBlockFormat']([_0x326c0e,_0x11d4b7],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0xc6b75d of['splitTableCellVertically','splitTableCellHorizontally']){const _0x205fdf=_0x333af5['commands']['get'](_0xc6b75d);_0x402f05['enableCommand'](_0xc6b75d,()=>{const _0x41020f=_0x27d73c['getSelectionAffectedTableCells'](_0x333af5['model']['document']['selection'])[0x0],_0x592ed2=_0x41020f['findAncestor']('table'),{column:_0x297ea9,row:_0x3b90bf}=_0x27d73c['getCellLocation'](_0x41020f);let _0x3d6168=[];if('horizontally'==_0x205fdf['direction']){const _0x2e5a65=_0x27d73c['createTableWalker'](_0x592ed2,{'startRow':_0x3b90bf,'endRow':_0x3b90bf,'includeAllSlots':!0x0});_0x3d6168=Array['from'](_0x2e5a65)['map'](_0x2f00a6=>_0x2f00a6['cell']);}else{const _0x2cd9b1=_0x27d73c['createTableWalker'](_0x592ed2,{'column':_0x297ea9,'includeAllSlots':!0x0});_0x3d6168=Array['from'](_0x2cd9b1)['map'](_0x4e56b4=>_0x4e56b4['cell']);}_0x333af5['model']['change'](_0x6a8cb9=>{_0x402f05['markBlockFormat'](_0x6a8cb9['createRangeOn'](_0x41020f),{'commandName':_0xc6b75d,'commandParams':[]},_0x3d6168,_0xc6b75d);});});}_0x402f05['descriptionFactory']['registerDescriptionCallback'](_0x2ae265=>{if('formatBlock'!=_0x2ae265['type']&&'formatInline'!=_0x2ae265['type'])return;const {data:_0x43d152}=_0x2ae265;return _0x43d152&&'mergeTableCells'==_0x43d152['commandName']?{'type':'format','content':o(_0x733ec7,'*Merge\x20cells*')}:void 0x0;}),_0x402f05['descriptionFactory']['registerDescriptionCallback'](_0x43f65f=>{if('formatBlock'!=_0x43f65f['type']&&'formatInline'!=_0x43f65f['type'])return;const {data:_0x49a352}=_0x43f65f;return _0x49a352?'splitTableCellVertically'==_0x49a352['commandName']?{'type':'format','content':o(_0x733ec7,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x49a352['commandName']?{'type':'format','content':o(_0x733ec7,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x12a612=_0x59ba8c['_acceptFormatSuggestionCallbackFactory']();for(const _0x48bc86 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x402f05['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x48bc86,'accept',_0x12a612);for(const _0x149e68 of['splitTableCellVertically','splitTableCellHorizontally'])_0x402f05['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x149e68,'accept',_0x12a612);_0x402f05['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x226da5=>{_0x333af5['model']['change'](_0x1dca79=>{const _0x2a3998=Array['from'](_0x385b27['getRanges']())['map'](_0xf30284=>_0x4fb46f['fromRange'](_0xf30284));_0x1dca79['setSelection'](_0x226da5),_0x333af5['commands']['get']('mergeTableCells')['refresh'](),_0x333af5['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x13d37a=_0x2a3998['filter'](_0x1d2c6c=>'$graveyard'!=_0x1d2c6c['root']['rootName']);_0x13d37a['length']>0x0&&_0x1dca79['setSelection'](_0x13d37a);for(const _0x4704a5 of _0x2a3998)_0x4704a5['detach']();});});for(const _0x3e3ec3 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x64d63f=_0x333af5['commands']['get'](_0x3e3ec3);_0x64d63f['on']('set:isEnabled',(_0x282921,_0xa60a27,_0x4cff3f)=>{if(_0x4cff3f){const _0x190610=_0x333af5['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2ba5cd=>_0x2ba5cd['is']('element','tableCell'));this['_areMergableCells'](_0x64d63f['value'],_0x190610)||(_0x282921['return']=!0x1,_0x282921['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x497706=this['editor']['commands']['get']('mergeTableCells'),_0x2da67b=this['editor']['plugins']['get']('TableUtils');if(!_0x497706['isEnabled'])return!0x1;const _0x29ee8d=_0x2da67b['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x53464c of _0x29ee8d)for(const _0x573dfc of _0x29ee8d)if(_0x53464c!=_0x573dfc&&!this['_areMergableCells'](_0x53464c,_0x573dfc))return!0x1;return!0x0;}['_areMergableCells'](_0x4905f2,_0x5ec5a2){const _0x5afbe6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4220c3=this['editor']['model']['createRangeOn'](_0x4905f2),_0x5a24d5=this['editor']['model']['createRangeOn'](_0x5ec5a2),_0xa8d9dc=new Set(),_0x39c1ec=new Set();for(const _0x136059 of _0x5afbe6['getSuggestions']())if(('insertion'==_0x136059['type']||'deletion'==_0x136059['type']||'mergeTableCells'==_0x136059['subType'])&&_0x136059['isInContent']){for(const _0x1bcd34 of _0x136059['getRanges']())_0x1bcd34['containsRange'](_0x4220c3,!0x0)&&_0xa8d9dc['add'](_0x136059['type']+':'+_0x136059['author']['id']),_0x1bcd34['containsRange'](_0x5a24d5,!0x0)&&_0x39c1ec['add'](_0x136059['type']+':'+_0x136059['author']['id']);}if(_0xa8d9dc['size']!=_0x39c1ec['size'])return!0x1;for(const _0x1c66dc of _0xa8d9dc)if(!_0x39c1ec['has'](_0x1c66dc))return!0x1;return!0x0;}}class Ct extends _0x3c70aa{static get['requires'](){return[vt];}['afterInit'](){const _0x2c1099=this['editor'];if(!_0x2c1099['plugins']['has']('TableEditing'))return;const _0x23430a=_0x2c1099['locale'],_0x2d332e=_0x2c1099['plugins']['get']('TrackChangesEditing');_0x2d332e['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x2d332e['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x2d332e['registerBlockAttribute']('headingRows'),_0x2d332e['registerBlockAttribute']('headingColumns'),_0x2d332e['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x23430a,'FORMAT_HEADER_ROW')),_0x2d332e['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x23430a,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1b94bf=this['editor']['plugins']['get']('TrackChangesEditing'),_0x395ebe=this['editor']['plugins']['get']('TableUtils'),_0x36456e=this['editor']['plugins']['get'](vt)['_acceptFormatSuggestionCallbackFactory']();function _0x41b25e({showActiveMarker:_0x269050=!0x0,setDataAttribute:_0x25c0fa=!0x0}={}){return(_0x2543ab,_0x30166f,_0xaa77c4)=>{const {type:_0x3015cf,id:_0x541182}=_0x1b94bf['_splitMarkerName'](_0x30166f['markerName']),_0x2c9bba=_0x1b94bf['getSuggestion'](_0x541182),_0x4ff370=_0x2c9bba['data'];if('formatBlock'!=_0x2c9bba['type']||!_0x4ff370||'setTableColumnHeader'!=_0x4ff370['commandName'])return;if(_0x30166f['item'])return void _0x2543ab['stop']();if(!_0xaa77c4['consumable']['consume'](_0x30166f['markerRange'],_0x2543ab['name']))return;const _0x5c6c40=_0x30166f['markerRange']['start']['nodeAfter'],_0x1f7cbb=_0x30166f['markerRange']['end']['nodeBefore'],_0x5696b2=_0x5c6c40['parent']['parent'],{column:_0x95e233}=_0x395ebe['getCellLocation'](_0x5c6c40),{column:_0x3324a3}=_0x395ebe['getCellLocation'](_0x1f7cbb);for(let _0x878a61=_0x95e233;_0x878a61<=_0x3324a3;_0x878a61++){const _0x3a5535=_0x395ebe['createTableWalker'](_0x5696b2,{'column':_0x878a61,'includeAllSlots':!0x1});for(const _0x2f43ac of _0x3a5535){const _0x5db8d5=_0x2f43ac['cell'],_0x251a63=_0xaa77c4['mapper']['toViewElement'](_0x5db8d5);_0xaa77c4['writer']['addClass']('ck-suggestion-marker-'+_0x3015cf,_0x251a63),_0x25c0fa&&_0xaa77c4['writer']['setAttribute']('data-suggestion',_0x541182,_0x251a63),_0xaa77c4['mapper']['bindElementToMarker'](_0x251a63,_0x30166f['markerName']),_0x269050&&(_0x1b94bf['activeMarkers']['includes'](_0x30166f['markerName'])?_0xaa77c4['writer']['addClass']('ck-suggestion-marker--active',_0x251a63):_0xaa77c4['writer']['removeClass']('ck-suggestion-marker--active',_0x251a63));}}};}_0x1b94bf['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x36456e),_0x1b94bf['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x36456e),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x41b25e(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4c335b,_0x22eea7,_0x5b5e27)=>{_0x5b5e27['options']['showSuggestionHighlights']&&_0x41b25e({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x4c335b,_0x22eea7,_0x5b5e27);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0xbddf6d,_0x50b68e,_0x389a4b)=>{const {type:_0x297160,id:_0x158409}=_0x1b94bf['_splitMarkerName'](_0x50b68e['markerName']),_0x39c9cf=_0x1b94bf['getSuggestion'](_0x158409),_0x545246=_0x39c9cf['data'];if('formatBlock'!=_0x39c9cf['type']||!_0x545246||'setTableColumnHeader'!=_0x545246['commandName'])return;const _0x14fd68=_0x389a4b['mapper']['markerNameToElements'](_0x50b68e['markerName']);if(_0x14fd68){for(const _0x1985cb of _0x14fd68)_0x389a4b['writer']['removeClass']('ck-suggestion-marker-'+_0x297160,_0x1985cb),_0x389a4b['writer']['removeClass']('ck-suggestion-marker--active',_0x1985cb),_0x389a4b['writer']['removeAttribute']('data-suggestion',_0x1985cb),_0x389a4b['mapper']['unbindElementFromMarkerName'](_0x1985cb,_0x50b68e['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x57dbe5=this['editor'],_0x240281=_0x57dbe5['locale'];function _0x51392b(_0x420a9){return{'type':'format','content':o(_0x240281,'*Format:*\x20%0',_0x420a9)};}_0x57dbe5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xa89217=>{if('formatBlock'!=_0xa89217['type'])return;const {data:_0x320d71}=_0xa89217;if(_0x320d71){if('setTableRowHeader'==_0x320d71['commandName']){const _0x135ccd=_0x320d71['commandParams'][0x0]['forceValue'];return _0x51392b(o(_0x240281,_0x135ccd?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x320d71['commandName']){const _0x5615a7=_0x320d71['commandParams'][0x0]['forceValue'];return _0x51392b(o(_0x240281,_0x5615a7?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const we=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],ve=Object['fromEntries'](we['map'](_0xa64975=>[_0xa64975,null]));class Nt extends _0x3c70aa{static get['requires'](){return[vt];}['afterInit'](){const _0x6a36fe=this['editor'];if(!_0x6a36fe['plugins']['has']('TableClipboard'))return;const _0x219c46=_0x6a36fe['plugins']['get']('TrackChangesEditing'),_0x3db237=_0x6a36fe['plugins']['get']('TableUtils'),_0x506dba=_0x6a36fe['plugins']['get'](vt),_0x569205=_0x6a36fe['plugins']['get']('TableClipboard');_0x506dba['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x6a36fe['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x6a36fe['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x42d72b=null;_0x6a36fe['model']['on']('insertContent',(_0x4e14b1,_0x242d54)=>{const [_0x2433d0,_0x4bd0da]=_0x242d54,_0x572cc7=_0x242d54[_0x242d54['length']-0x1];_0x572cc7&&_0x572cc7['forceDefaultExecution']||_0x219c46['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x48c672,_0x44e010,_0x4605d2,_0x4ee8aa,_0x580a85){if(_0x44e010&&!_0x44e010['is']('documentSelection'))return!0x1;const _0x3e1ef7=_0x580a85['getTableIfOnlyTableInContent'](_0x48c672,_0x4605d2);if(!_0x3e1ef7||!Ae(_0x3e1ef7,void 0x0,_0x4ee8aa))return!0x1;const _0x3f7de7=_0x4ee8aa['getSelectionAffectedTableCells'](_0x4605d2['document']['selection']);if(!_0x3f7de7['length'])return!0x1;const _0x43796f=_0x3f7de7[0x0]['findAncestor']('table'),_0x41ad98=_0x4ee8aa['getRowIndexes'](_0x3f7de7),_0x227f17=_0x4ee8aa['getColumnIndexes'](_0x3f7de7),_0x45ddd3={'startRow':_0x41ad98['first'],'endRow':_0x41ad98['last'],'startColumn':_0x227f17['first'],'endColumn':_0x227f17['last']};return 0x1==_0x3f7de7['length']&&(_0x45ddd3['endRow']+=_0x4ee8aa['getRows'](_0x3e1ef7)-0x1,_0x45ddd3['endColumn']+=_0x4ee8aa['getColumns'](_0x3e1ef7)-0x1),Ae(_0x43796f,_0x45ddd3,_0x4ee8aa);}(_0x2433d0,_0x4bd0da,_0x6a36fe['model'],_0x3db237,_0x569205)&&(_0x4e14b1['stop'](),_0x42d72b={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x6a36fe['model']['change'](()=>{_0x6a36fe['model']['insertContent'](_0x242d54[0x0],_0x242d54[0x1],_0x242d54[0x2],{'forceDefaultExecution':!0x0});const _0x3e8c1f=_0x1cdff5(),{rowInsertionRanges:_0x4893c4,columnInsertionRanges:_0x3752c7,insertionRanges:_0x46c67f,deletionRanges:_0x41e3ac,cells:_0x13260f}=_0x42d72b;_0x4893c4['length']&&_0x219c46['markMultiRangeInsertion'](_0x4893c4,'tablePasteRow',{'tablePasteChainId':_0x3e8c1f}),_0x3752c7['length']&&_0x219c46['markMultiRangeInsertion'](_0x3752c7,'tablePasteColumn',{'tablePasteChainId':_0x3e8c1f}),_0x46c67f['length']&&(_0x219c46['markMultiRangeInsertion'](_0x46c67f,'tablePaste',{'tablePasteChainId':_0x3e8c1f,'skipNestingCheck':!0x0}),_0x46c67f['forEach'](_0x456033=>_0x456033['detach']?.())),_0x41e3ac['length']&&(_0x219c46['markMultiRangeDeletion'](_0x41e3ac,'tablePaste',{'tablePasteChainId':_0x3e8c1f,'skipNestingCheck':!0x0}),_0x41e3ac['forEach'](_0xba6fe2=>_0xba6fe2['detach']?.()));const _0x210e44=_0x219c46['markMultiRangeBlockFormat'](_0x13260f['map'](({element:_0x3e4124})=>_0x3e4124),{'formatGroupId':_0x1cdff5()},[],'tablePasteCell',{'tablePasteChainId':_0x3e8c1f});if(_0x210e44){const _0x1df6da=_0x210e44['getMarkers'](),_0x208248=[];for(const {element:_0x589bd3,attributes:_0x1c22f6}of _0x13260f){if(!_0x1c22f6)continue;const _0x839f60=_0x6a36fe['model']['createRangeOn'](_0x589bd3),_0x2bedfc=_0x1df6da['find'](_0x5cb31=>_0x5cb31['getRange']()['isEqual'](_0x839f60));_0x2bedfc&&_0x208248['push']([_0x2bedfc['name'],_0x1c22f6]);}_0x208248['length']&&_0x210e44['setAttribute']('markerAttributes',Object['fromEntries'](_0x208248));}_0x42d72b=null;}));},{'priority':_0x2e7237['high']+0xa}),_0x6a36fe['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x400553,_0x24b050)=>{const [_0x171c0d,_0x1fa247,,_0x19b968]=_0x24b050;if(!_0x42d72b)return;_0x400553['stop']();const _0x1a616a=_0x171c0d['cell'],_0x5a4de9=_0x1fa247,_0x1c65a3=je(_0x1a616a),_0x7dee4f=je(_0x5a4de9);_0x400553['return']=_0x1a616a;let _0x7da853=null,_0x418a9f=null;if(_0x7dee4f||_0x1c65a3){if(_0x1c65a3&&!_0x7dee4f){_0x19b968['remove'](_0x1a616a['getChild'](0x0));for(const _0x2e013f of Array['from'](_0x5a4de9['getChildren']()))_0x19b968['insert'](_0x2e013f,_0x1a616a,'end');const _0x291975=_0x42d72b['rowInsertionIndexes']['includes'](_0x171c0d['row']),_0x5b236c=_0x42d72b['columnInsertionIndexes']['includes'](_0x171c0d['column']);_0x291975||_0x5b236c||(_0x7da853=_0x4fb46f['fromRange'](_0x19b968['createRangeIn'](_0x1a616a)));}else _0x7dee4f&&!_0x1c65a3&&(_0x418a9f=_0x19b968['createRangeIn'](_0x1a616a));}else{const _0x3eec32=_0x19b968['createElement']('tableCellSuggestion'),_0x3ae939=_0x19b968['createElement']('tableCellSuggestion');_0x19b968['wrap'](_0x19b968['createRangeIn'](_0x1a616a),_0x3ae939),_0x19b968['insert'](_0x3eec32,_0x1a616a,0x0);for(const _0x205b14 of Array['from'](_0x5a4de9['getChildren']()))_0x19b968['insert'](_0x205b14,_0x3eec32,'end');_0x7da853=_0x4fb46f['fromRange'](_0x19b968['createRangeOn'](_0x3eec32)),_0x418a9f=_0x4fb46f['fromRange'](_0x19b968['createRangeOn'](_0x3ae939));}const _0x294e76=Array['from'](_0x5a4de9['getAttributes']())['filter'](([_0x35f570])=>we['includes'](_0x35f570));_0x42d72b['cells']['push']({'element':_0x1a616a,'attributes':_0x294e76['length']?Object['fromEntries'](_0x294e76):null}),_0x7da853&&_0x42d72b['insertionRanges']['push'](_0x7da853),_0x418a9f&&_0x42d72b['deletionRanges']['push'](_0x418a9f);},{'priority':'high'}),_0x3db237['on']('insertColumns',(_0x59cf90,_0x56f684)=>{const [_0x21c6d1,_0x4eb3c9={}]=_0x56f684;if(!_0x42d72b)return;const _0x3c5c5a=_0x4eb3c9['at']||0x0,_0x4ba6ef=_0x4eb3c9['columns']||0x1;_0x42d72b['columnInsertionIndexes']=new Array(_0x4ba6ef)['fill'](_0x3c5c5a)['map']((_0x1c9c55,_0x30a3c3)=>_0x1c9c55+_0x30a3c3);for(const {cell:_0x52e93e}of _0x3db237['createTableWalker'](_0x21c6d1,{'startColumn':_0x3c5c5a,'endColumn':_0x3c5c5a+_0x4ba6ef-0x1}))_0x42d72b['columnInsertionRanges']['push'](_0x6a36fe['model']['createRangeOn'](_0x52e93e));},{'priority':'low'}),_0x3db237['on']('insertRows',(_0x2bd0aa,_0x23bb43)=>{const [_0x388155,_0x2e49fc={}]=_0x23bb43;if(!_0x42d72b)return;const _0x510479=_0x2e49fc['at']||0x0,_0x1a70a5=_0x2e49fc['rows']||0x1;_0x42d72b['rowInsertionIndexes']=new Array(_0x1a70a5)['fill'](_0x510479)['map']((_0x1fd26f,_0x20ed24)=>_0x1fd26f+_0x20ed24);for(const {cell:_0x2683a8}of _0x3db237['createTableWalker'](_0x388155,{'startRow':_0x510479,'endRow':_0x510479+_0x1a70a5-0x1}))_0x42d72b['rowInsertionRanges']['push'](_0x6a36fe['model']['createRangeOn'](_0x2683a8));},{'priority':'low'}),_0x219c46['descriptionFactory']['registerDescriptionCallback'](_0x2758e8=>{if(_0x2758e8['subType']&&_0x2758e8['subType']['startsWith']('tablePaste'))return _0x2758e8['previous']?{}:{'type':'insertion','content':o(_0x6a36fe['locale'],'*Replace\x20table\x20cells*')};});const _0x56aa49=()=>!0x1;for(const _0x677a5b of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x219c46['_suggestionFactory']['registerCustomCallback']('insertion',_0x677a5b,'join',_0x56aa49),_0x219c46['_suggestionFactory']['registerCustomCallback']('deletion',_0x677a5b,'join',_0x56aa49),_0x219c46['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x677a5b,'join',_0x56aa49);_0x219c46['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x56aa49),_0x219c46['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x5c6638,_0x459f77,_0xc411d)=>{const _0x175ae7=_0x5c6638['map'](_0x3bc78b=>_0x3bc78b['getContainedElement']())['filter'](_0x5f0bc9=>_0x5f0bc9),_0x113b54=new Map(_0x175ae7['map'](_0x524266=>[_0x524266,null]));if(_0x42d72b){for(const {element:_0x11267d,attributes:_0x3c7c05}of _0x42d72b['cells'])_0x3c7c05&&_0x113b54['set'](_0x11267d,_0x3c7c05);}else{if(_0xc411d&&_0xc411d['markerAttributes'])for(const [_0x14bce6,_0x803811]of Object['entries'](_0xc411d['markerAttributes'])){const _0x18dac9=_0x6a36fe['model']['markers']['get'](_0x14bce6),_0x23ea63=_0x18dac9?_0x18dac9['getRange']()['getContainedElement']():null;_0x23ea63&&_0x113b54['set'](_0x23ea63,_0x803811);}}_0x6a36fe['model']['change'](_0x13bfe0=>{for(const [_0x33d63c,_0x21735c]of _0x113b54)_0x13bfe0['setAttributes']({...ve,..._0x21735c},_0x33d63c);});});const _0x35a3ec=(_0x173402,_0x12db2c)=>{_0x219c46['_suggestionFactory']['registerCustomCallback'](_0x173402,'tablePaste',_0x12db2c,(_0x40a238,_0x407414,_0x320959)=>{_0x6a36fe['model']['change'](_0x31ded5=>{const _0x1baaad=[];for(const _0x124380 of _0x40a238){const _0x23f926=_0x124380['start']['nodeAfter'];_0x23f926['is']('element','tableCellSuggestion')&&_0x1baaad['push'](_0x23f926);}_0x219c46['_suggestionFactory']['getSuggestionCallback'](_0x173402,null,_0x12db2c)(_0x40a238,_0x407414,_0x320959);for(const _0x1b8008 of _0x1baaad)'$graveyard'!=_0x1b8008['root']['rootName']&&_0x31ded5['unwrap'](_0x1b8008);});});};_0x35a3ec('insertion','accept'),_0x35a3ec('insertion','discard'),_0x35a3ec('deletion','accept'),_0x35a3ec('deletion','discard'),_0x219c46['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x3f372e=>{const _0x35fc80=_0x3f372e['map'](_0x5bbf36=>_0x5bbf36['getContainedElement']()),_0x569d34=_0x35fc80[0x0]['findAncestor']('table'),{minRow:_0x1b1929,maxRow:_0x159678}=_0x506dba['_getCoordsForCells'](_0x35fc80);_0x3db237['removeRows'](_0x569d34,{'at':_0x1b1929,'rows':_0x159678-_0x1b1929+0x1});}),_0x219c46['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x3b70d4=>{const _0x1b5e61=_0x3b70d4['map'](_0x428827=>_0x428827['getContainedElement']()),_0x37b268=_0x1b5e61[0x0]['findAncestor']('table'),{minColumn:_0x3b453a,maxColumn:_0x4a8c00}=_0x506dba['_getCoordsForCells'](_0x1b5e61);_0x3db237['removeColumns'](_0x37b268,{'at':_0x3b453a,'columns':_0x4a8c00-_0x3b453a+0x1});});const _0x35bcfc=(_0x1b7ce4,_0x2e6ea1)=>{if(!_0x2e6ea1['subType']||!_0x2e6ea1['subType']['startsWith']('tablePaste'))return;const _0x2d488d=_0x2e6ea1['attributes']['tablePasteChainId'],_0x16dc05=_0x219c46['getSuggestions']()['filter'](_0x48397b=>_0x48397b['isInContent']&&_0x48397b['attributes']&&_0x48397b['attributes']['tablePasteChainId']==_0x2d488d);_0x16dc05['length']&&_0x2e6ea1['getAllAdjacentSuggestions']()['length']!=_0x16dc05['length']&&_0x16dc05['reduce']((_0x2cfb6b,_0x5cd27a)=>(_0x2cfb6b['next']=_0x5cd27a,_0x5cd27a['previous']=_0x2cfb6b,_0x5cd27a));};function _0x3c5be3(_0x4bd5a9,_0xb1a62=!0x0){const {id:_0x40a590,authorId:_0x2e69f0}=_0x219c46['_splitMarkerName'](_0x4bd5a9['markerName']),_0x33b4ad=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x5b6c76=_0x219c46['activeMarkers']['includes'](_0x4bd5a9['markerName']);return _0x5b6c76&&_0x33b4ad['push']('ck-suggestion-marker--active'),{'classes':_0x33b4ad,'attributes':{'data-suggestion':_0x40a590,'data-author-id':_0x2e69f0},'priority':_0x5b6c76&&_0xb1a62?0xbc2:0xbb8};}_0x219c46['on']('suggestionLoaded',_0x35bcfc,{'priority':'high'}),_0x219c46['on']('suggestionUnloaded',_0x35bcfc,{'priority':'high'}),_0x6a36fe['model']['document']['registerPostFixer'](()=>{let _0x5b40a2=!0x1;const _0x2b7b8e=Array['from'](_0x6a36fe['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x48e318,data:_0x23b864}of _0x2b7b8e){const {group:_0xac20d9,type:_0x86b44,id:_0x4ca7a4}=_0x219c46['_splitMarkerName'](_0x48e318);if('suggestion'!=_0xac20d9||'deletion'!=_0x86b44||_0x23b864['oldRange'])continue;if(!_0x219c46['hasSuggestion'](_0x4ca7a4))continue;const _0x5749cc=_0x219c46['getSuggestion'](_0x4ca7a4)['getRanges'](),_0x5530bc=_0x6a36fe['plugins']['get']('Users')['me'];for(const _0x544c96 of _0x219c46['getSuggestions']()){if(!_0x544c96['isInContent']||_0x544c96['author']!=_0x5530bc)continue;if('formatBlock'!=_0x544c96['type']||'tablePasteCell'!=_0x544c96['subType'])continue;if(_0x544c96['getRanges']()['every'](_0x1f2717=>_0x5749cc['some'](_0x37131e=>_0x37131e['containsRange'](_0x1f2717,!0x0)))){for(const _0x1cdee9 of _0x544c96['getAllAdjacentSuggestions']())_0x1cdee9['isInContent']&&(_0x1cdee9['discard'](),_0x5b40a2=!0x0);}}}return _0x5b40a2;}),_0x6a36fe['model']['document']['registerPostFixer'](_0x188d79=>{const _0x5dd870=_0x6a36fe['commands']['get']('redo');if(!_0x5dd870||!_0x5dd870['_createdBatches']['has'](_0x188d79['batch']))return!0x1;let _0x2f4a1a=!0x1;const _0x4eb3a8=_0x6a36fe['plugins']['get']('Users')['me'],_0x44e42e=_0x6a36fe['model']['document']['differ']['getChanges'](),_0x317a1a=Array['from'](_0x6a36fe['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0xc6405a,data:_0xf34eb1})=>{const {group:_0x203a14,subType:_0x56c4f9,authorId:_0x10cf20}=_0x219c46['_splitMarkerName'](_0xc6405a);return'suggestion'==_0x203a14&&'tablePaste'==_0x56c4f9&&_0x10cf20==_0x4eb3a8['id']&&!_0xf34eb1['oldRange'];});for(const _0x1f7419 of _0x44e42e){if('insert'!=_0x1f7419['type']||'tableCellSuggestion'!=_0x1f7419['name']||0x1!=_0x1f7419['length'])continue;const _0x395e6d=_0x188d79['createRange'](_0x1f7419['position'],_0x1f7419['position']['getShiftedBy'](0x1));if(!_0x317a1a['find'](({data:_0x5494f1})=>_0x5494f1['newRange']['isEqual'](_0x395e6d))){for(const {name:_0x35212a,data:_0x406bcc}of _0x317a1a)if(_0x395e6d['containsRange'](_0x406bcc['newRange'])){_0x188d79['updateMarker'](_0x35212a,{'range':_0x395e6d}),_0x2f4a1a=!0x0;break;}}}return _0x2f4a1a;}),_0x6a36fe['model']['document']['registerPostFixer'](_0x472df7=>{let _0x2fa87a=!0x1;const _0x34cf13=_0x6a36fe['plugins']['get']('Users')['me'],_0x1108e3=_0x219c46['getSuggestions']()['filter'](_0x25f3cd=>_0x25f3cd['isInContent']&&_0x25f3cd['author']==_0x34cf13),_0x479e35=new Set(),_0x188006=new Set();for(const _0x5c176b of _0x1108e3)if('tablePaste'==_0x5c176b['subType'])for(const _0x520db5 of _0x5c176b['getMarkers']()){const _0xf0a08d=_0x520db5['getRange']()['getContainedElement']();if(_0xf0a08d){if(_0xf0a08d['is']('element','tableCellSuggestion')&&je(_0xf0a08d)){_0x5c176b['removeMarker'](_0x520db5['name']),_0x479e35['add'](_0xf0a08d),_0x2fa87a=!0x0;const _0x4af753=_0xf0a08d['nextSibling'],_0x141273=_0xf0a08d['previousSibling'],_0x42a7da=_0x4af753&&_0x4af753['is']('element','tableCellSuggestion'),_0x22ac9c=_0x141273&&_0x141273['is']('element','tableCellSuggestion');_0x42a7da&&!_0x479e35['has'](_0x4af753)&&_0x188006['add'](_0x4af753),_0x22ac9c&&!_0x479e35['has'](_0x141273)&&_0x188006['add'](_0x141273);}else _0xf0a08d['is']('element','paragraph')&&_0xf0a08d['isEmpty']&&(_0x5c176b['removeMarker'](_0x520db5['name']),_0x2fa87a=!0x0);}}else{if('tablePasteCell'==_0x5c176b['subType']){if(!_0x5c176b['attributes']||!_0x5c176b['attributes']['tablePasteChainId'])continue;const _0x4d6303=_0x5c176b['attributes']['markerAttributes'];if(_0x4d6303&&Object['keys'](_0x4d6303)['length'])continue;const _0x34ff39=_0x5c176b['attributes']['tablePasteChainId'];let _0x2e0b08=!0x0,_0x3d96c0=!0x0;for(const _0x6bf105 of _0x1108e3)if(_0x6bf105['subType']&&_0x6bf105['subType']['startsWith']('tablePaste')){if(!_0x6bf105['attributes']['tablePasteChainId']){_0x3d96c0=!0x1;break;}if(_0x6bf105['id']!=_0x5c176b['id']&&_0x6bf105['attributes']['tablePasteChainId']==_0x34ff39){_0x2e0b08=!0x1;break;}}_0x3d96c0&&_0x2e0b08&&(_0x5c176b['removeMarkers'](),_0x2fa87a=!0x0);}}for(const _0x5923e9 of _0x479e35)_0x472df7['remove'](_0x5923e9);for(const _0x17bf21 of _0x188006)_0x472df7['unwrap'](_0x17bf21);return _0x2fa87a;}),_0x6a36fe['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x94bc24=>_0x3c5be3(_0x94bc24),'converterPriority':'high'}),_0x6a36fe['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x112305,_0x2472ed)=>_0x2472ed['options']['showSuggestionHighlights']?_0x3c5be3(_0x112305,!0x1):null,'converterPriority':'high'});const _0x57a4e0=_0x6a36fe['editing']['view'];this['listenTo'](_0x57a4e0['document'],'clipboardOutput',(_0x360528,_0xe3ea48)=>{const _0x89bb74=[];for(const _0x1e2117 of _0x57a4e0['createRangeIn'](_0xe3ea48['content'])['getItems']())_0x1e2117['is']('element','suggestion-td')&&_0x89bb74['push'](_0x1e2117);_0x57a4e0['change'](_0x2017d5=>{for(const _0x415fa7 of _0x89bb74)_0x2017d5['move'](_0x2017d5['createRangeIn'](_0x415fa7),_0x2017d5['createPositionBefore'](_0x415fa7)),_0x2017d5['remove'](_0x415fa7);});});}}function je(_0x8d79f9){if(_0x8d79f9['isEmpty'])return!0x0;const _0x1a5421=_0x8d79f9['getChild'](0x0);return _0x1a5421['is']('element','paragraph')&&_0x1a5421['isEmpty'];}function Ae(_0x2a1f66,_0x41d52b={},_0x385f39){for(const {isAnchor:_0x33aa58,cellHeight:_0x2eac8e,cellWidth:_0x2d6657}of _0x385f39['createTableWalker'](_0x2a1f66,{'includeAllSlots':!0x0,..._0x41d52b}))if(!_0x33aa58||0x1!=_0x2eac8e||0x1!=_0x2d6657)return!0x1;return!0x0;}class Dt extends _0x3c70aa{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x5056bd=this['editor']['plugins']['get']('TrackChangesEditing');_0x5056bd['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x5056bd['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x5056bd['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5056bd['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x5056bd['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x5056bd['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x5d1960,_0x29a565){const _0x15ade2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4a4591=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x2ed94f=_0x29a565['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x56aa18=_0x4a4591['getColumnGroupElement'](_0x2ed94f);let _0x3e27d4=_0x56aa18?_0x4a4591['getTableColumnsWidths'](_0x56aa18):null,_0x44e61d=_0x2ed94f['getAttribute']('tableWidth')||null;const _0x257c1b=_0x29a565['tableWidth']||_0x44e61d,_0xfe9fb=_0x29a565['columnWidths']||_0x3e27d4,_0xb56fe3=this['editor']['plugins']['get']('Users')['me'];for(const _0x45fded of _0x15ade2['getSuggestions']()){const _0x30f193=_0x45fded['getContainedElement']();if('resizeTable'===_0x45fded['subType']&&_0x30f193===_0x2ed94f){_0x45fded['author']!==_0xb56fe3&&_0x45fded['discard']();const _0x524653=_0x45fded['data']['commandParams'];_0x44e61d=_0x524653[0x0]['tableWidth'],_0x3e27d4=_0x524653[0x0]['columnWidths'];break;}}_0x5d1960({'table':_0x2ed94f,'tableWidth':_0x257c1b,'columnWidths':_0xfe9fb}),_0x15ade2['markBlockFormat'](_0x2ed94f,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x44e61d,'columnWidths':_0x3e27d4}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x2a971c){if('formatBlock'!=_0x2a971c['type']&&'formatInline'!=_0x2a971c['type'])return;const {data:_0x319aae}=_0x2a971c;if(_0x319aae&&'resizeTable'===_0x319aae['formatGroupId']){const _0x565a4a='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x565a4a)};}}}class Mt extends _0x3c70aa{['afterInit'](){const _0x162e78=this['editor'];_0x162e78['plugins']['has']('Template')&&_0x162e78['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x3c70aa{['afterInit'](){const _0x46e9f7=this['editor'];if(!_0x46e9f7['commands']['get']('insertTableOfContents'))return;_0x46e9f7['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x1e45c3=_0x46e9f7['plugins']['get']('TrackChangesEditing'),_0xdcfcb6=_0x46e9f7['locale'];_0x1e45c3['descriptionFactory']['registerElementLabel']('tableOfContents',_0x1ec3a8=>o(_0xdcfcb6,'ELEMENT_TABLE_OF_CONTENTS',_0x1ec3a8));}}class Bt extends _0x3c70aa{['afterInit'](){const _0x2674ae=this['editor'];if(!_0x2674ae['plugins']['has']('Title'))return;const _0x5b3980=_0x2674ae['plugins']['get']('TrackChangesEditing');_0x5b3980['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x2674ae['locale'],'ELEMENT_TITLE')),_0x2674ae['model']['document']['registerPostFixer'](_0x28a00e=>{let _0x263e40=!0x1;const _0x2fc797=Array['from'](_0x2674ae['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x58d22a,data:_0x441e07}of _0x2fc797){const {group:_0x41b356}=_0x5b3980['_splitMarkerName'](_0x58d22a);if('suggestion'!==_0x41b356||!_0x441e07['newRange'])continue;const _0x463929=_0x441e07['newRange'],_0x5acc9d=_0x463929['end']['nodeBefore'];if(!_0x5acc9d||!_0x5acc9d['is']('element','title-content'))continue;if(!_0x463929['start']['isTouching'](_0x463929['end']))continue;const _0x38b832=_0x2674ae['model']['schema']['getNearestSelectionRange'](_0x463929['end'],'forward');if(_0x38b832&&_0x38b832['isCollapsed']){const _0x4195ee=_0x28a00e['createRange'](_0x463929['start'],_0x38b832['start']);_0x4195ee['isEqual'](_0x463929)||(_0x28a00e['updateMarker'](_0x58d22a,{'range':_0x4195ee}),_0x263e40=!0x0);}_0x263e40||(_0x28a00e['removeMarker'](_0x58d22a),_0x263e40=!0x0);}return _0x263e40;});}}class Ot extends _0x3c70aa{['afterInit'](){const _0xab5c80=this['editor'],_0x31764f=_0xab5c80['plugins']['get']('TrackChangesEditing');_0xab5c80['plugins']['has']('UndoEditing')&&(_0x31764f['enableCommand']('undo'),_0x31764f['enableCommand']('redo'));}}class Rt extends _0x3c70aa{static get['requires'](){return[vt];}['afterInit'](){const _0x3f2881=this['editor'];if(!_0x3f2881['plugins']['has']('TableCaptionEditing'))return;_0x3f2881['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Tt extends _0x3c70aa{['tableProperties'];['tableCellProperties'];constructor(_0x5d99ba){super(_0x5d99ba),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x2ea044=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0xa3b446 of this['tableProperties'])_0x2ea044['enableCommand'](_0xa3b446,(_0x2cc0ff,_0xc8f829)=>{const _0x5ed987=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0xa3b446,[_0x5ed987],this['tableProperties'],'tableProperties',_0x2cc0ff,_0xc8f829);});_0x2ea044['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x2ea044['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2ea044['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x218c08,_0x336b20)=>this['handleDiscardAction'](this['tableProperties'],_0x218c08,_0x336b20)),_0x2ea044['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x54bb15 of this['tableCellProperties'])_0x2ea044['enableCommand'](_0x54bb15,(_0x2c5b77,_0x5348c2)=>{const _0x71aa71=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x54bb15,_0x71aa71,this['tableCellProperties'],'tableCellProperties',_0x2c5b77,_0x5348c2);});_0x2ea044['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x2ea044['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2ea044['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x4e1883,_0x423f7d)=>this['handleDiscardAction'](this['tableCellProperties'],_0x4e1883,_0x423f7d)),_0x2ea044['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x2ea044['descriptionFactory']['registerDescriptionCallback'](_0x2fc64a=>this['handleSuggestionDescription'](_0x2fc64a));}['_handlePropertyChange'](_0x2301a9,_0x1c8d73,_0x27adcd,_0x192052,_0x46bd5f,_0x4ac5f4){const _0x19bfe9=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x4ac5f4['batch'],()=>{for(const _0x14108e of _0x1c8d73){if(this['_getSuggestion'](_0x14108e,_0x192052))_0x46bd5f(_0x4ac5f4);else{const _0xb2a572={};for(const _0x396795 of _0x27adcd){const _0x1eb906=_0x14108e['getAttribute'](_0x396795);void 0x0!==_0x1eb906&&(_0xb2a572[_0x396795]=_0x1eb906);}_0x46bd5f(_0x4ac5f4),_0x19bfe9['markBlockFormat'](_0x14108e,{'commandParams':[_0xb2a572]},[],_0x192052);}}});}['handleDiscardAction'](_0x1c1a0a,_0xe9773b,_0x164cdf){const _0x5b09b5=_0xe9773b[0x0]['start']['nodeAfter'],_0x13a173=_0x164cdf['commandParams'][0x0];this['editor']['model']['change'](_0x28589f=>{for(const _0x254634 of _0x1c1a0a)void 0x0!==_0x13a173[_0x254634]?_0x28589f['setAttribute'](_0x254634,_0x13a173[_0x254634],_0x5b09b5):_0x28589f['removeAttribute'](_0x254634,_0x5b09b5);});}['handleSuggestionDescription'](_0x3e281a){if(_0x3e281a['data'])switch(_0x3e281a['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x2df2e8,_0x2daf98){const _0x3eff34=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x5a3fab of _0x3eff34['getSuggestions']({'skipNotAttached':!0x0})){const _0x20c407=_0x5a3fab['getContainedElement']();if(_0x5a3fab['subType']===_0x2daf98&&_0x20c407===_0x2df2e8)return _0x5a3fab;}return null;}}const m='$elementName';class p extends _0x3c70aa{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x561e78,_0x4b0c5c,U,V,G,F,L,H,J,q,z,K,X,Y,Z,tt,nt,it,et,st,ot,at,rt,ct,ut,ft,lt,Q,wt,ht,W,ye,dt,mt,pt,kt,bt,yt,jt,St,At,It,vt,_t,Ct,Rt,Nt,Dt,$t,Tt,Mt,Bt,Ot];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x19345e){super(_0x19345e),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x510523,_0x570ffc,_0x24b50e,_0x35eba3)=>{this['_model']['change'](()=>{for(const _0x4fa2eb of[..._0x35eba3,..._0x24b50e])this['_model']['markers']['has'](_0x4fa2eb)&&_0x19345e['editing']['reconvertMarker'](_0x4fa2eb);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Et(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x19345e['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x19345e['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x19345e['config']['get']('trackChanges.trackFormatChanges'),_0x19345e['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x19345e['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x19345e,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0xed6412=this['editor'],_0x256a59=(_0x4b5e7c,_0x50ec48)=>{if('attribute'!=_0x4b5e7c)return'ck-suggestion-marker-'+_0x4b5e7c;const _0x2916d4=_0x50ec48['split']('|')[0x0];return this['_isBlockAttribute'](_0x2916d4)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0xed6412['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x1ceec6=>{const {id:_0x34f47d,authorId:_0x2ada34,type:_0x1a3479,subType:_0x25b9ca}=this['_splitMarkerName'](_0x1ceec6['markerName']),_0xe1ddd3=['ck-suggestion-marker',_0x256a59(_0x1a3479,_0x25b9ca)];let _0x1b7696=0xbb8;return this['activeMarkers']['includes'](_0x1ceec6['markerName'])&&(_0xe1ddd3['push']('ck-suggestion-marker--active'),_0x1b7696=0xbc2),'deletion'==_0x1a3479&&(_0x1b7696+=0x5),{'classes':_0xe1ddd3,'attributes':{'data-suggestion':_0x34f47d,'data-author-id':_0x2ada34},'priority':_0x1b7696};}}),_0xed6412['conversion']['for']('dataDowncast')['add'](_0x45023a=>{_0x45023a['on']('addMarker:suggestion',(_0x27dd10,_0x5cd1d7,_0x4db6e5)=>{if(!_0x4db6e5['options']['showSuggestionHighlights'])return;const _0x48389e=_0x5cd1d7['item'];if(!_0x48389e)return;const _0x1d9f78=_0x4db6e5['mapper']['toViewElement'](_0x48389e);_0xed6412['model']['schema']['isObject'](_0x48389e)&&_0x1d9f78&&!_0x1d9f78['getCustomProperty']('widget')&&_0x1d9f78['is']('containerElement')&&_0xf63f8c(_0x1d9f78,_0x4db6e5['writer']);},{'priority':'high'});}),_0xed6412['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x23b92c,_0x4f8b32)=>{if(!_0x4f8b32['options']['showSuggestionHighlights'])return null;const {type:_0xa5e26,subType:_0x4ce9ce}=this['_splitMarkerName'](_0x23b92c['markerName']);return{'classes':['ck-suggestion-marker',_0x256a59(_0xa5e26,_0x4ce9ce)],'priority':0xbb8};}});const _0x295a85=({showActiveMarkers:_0x2458e6=!0x0,isAttributeSuggestion:_0x5f58e6=!0x1}={})=>(_0x2865b9,_0xc10443,_0x5a396b)=>{if(!_0xc10443['item'])return;const {id:_0x3eda28,authorId:_0x262371}=this['_splitMarkerName'](_0xc10443['markerName']);if(_0x5f58e6){const _0x2fee3d=this['_suggestions']['get'](_0x3eda28),_0x195d68=this['_getAttributeKey'](_0x2fee3d);if(!this['_isBlockAttribute'](_0x195d68))return;}if(_0xc10443['item']['is']('selection'))return void _0x5a396b['consumable']['consume'](_0xc10443['item'],_0x2865b9['name']);const _0x1e23e5=_0x5a396b['mapper']['toViewElement'](_0xc10443['item']);if(_0xc10443['item']['is']('element')&&_0xed6412['model']['schema']['isBlock'](_0xc10443['item'])&&!_0x1e23e5['getCustomProperty']('addHighlight')){_0x5a396b['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x1e23e5),_0x5a396b['writer']['setAttribute']('data-suggestion',_0x3eda28,_0x1e23e5),_0x5a396b['writer']['setAttribute']('data-author-id',_0x262371,_0x1e23e5),_0x5a396b['mapper']['bindElementToMarker'](_0x1e23e5,_0xc10443['markerName']),_0x2458e6&&(this['activeMarkers']['includes'](_0xc10443['markerName'])?_0x5a396b['writer']['addClass']('ck-suggestion-marker--active',_0x1e23e5):_0x5a396b['writer']['removeClass']('ck-suggestion-marker--active',_0x1e23e5));for(const _0x4cc2da of _0xed6412['model']['createRangeIn'](_0xc10443['item'])['getItems']())_0x5a396b['consumable']['consume'](_0x4cc2da,_0x2865b9['name']);_0x5a396b['consumable']['consume'](_0xc10443['item'],_0x2865b9['name']);}};_0xed6412['conversion']['for']('dataDowncast')['add'](_0x5c4615=>{_0x5c4615['on']('addMarker:suggestion:formatBlock',(_0x546314,_0x3e5ff2,_0x5e697e)=>{_0x5e697e['options']['showSuggestionHighlights']&&_0x295a85({'showActiveMarkers':!0x1})(_0x546314,_0x3e5ff2,_0x5e697e);},{'priority':'highest'});}),_0xed6412['conversion']['for']('dataDowncast')['add'](_0x2a7e77=>{_0x2a7e77['on']('addMarker:suggestion:attribute',(_0x433553,_0x3fe439,_0x4fd54f)=>{_0x4fd54f['options']['showSuggestionHighlights']&&_0x295a85({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x433553,_0x3fe439,_0x4fd54f);},{'priority':'highest'});}),_0xed6412['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x3bf830,_0x2f5de3)=>_0x2f5de3['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x3bf830['substr'](0xb)}}),_0xed6412['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x3475cd,{writer:_0x1b06ac})=>{let _0x26dc89='suggestion:'+_0x3475cd['getAttribute']('suggestion-type')+':'+_0x3475cd['getAttribute']('id');return _0x3475cd['getAttribute']('marker-count')&&(_0x26dc89+=':'+_0x3475cd['getAttribute']('marker-count')),_0x1b06ac['createElement']('$marker',{'data-name':_0x26dc89});}}),_0xed6412['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0xed6412['conversion']['for']('editingDowncast')['add'](_0x5f05f3=>{_0x5f05f3['on']('addMarker:suggestion:formatBlock',_0x295a85(),{'priority':'high'});}),_0xed6412['conversion']['for']('editingDowncast')['add'](_0x414368=>{_0x414368['on']('addMarker:suggestion:attribute',_0x295a85({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0xed6412['conversion']['for']('editingDowncast')['add'](_0x51d474=>{_0x51d474['on']('removeMarker:suggestion:formatBlock',(_0x4aaa6b,_0x955a05,_0x212408)=>{const _0x7891be=_0x212408['mapper']['markerNameToElements'](_0x955a05['markerName']);if(_0x7891be){for(const _0x16876e of _0x7891be)_0x16876e['getCustomProperty']('addHighlight')||(_0x212408['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x16876e),_0x212408['writer']['removeAttribute']('data-suggestion',_0x16876e),_0x212408['writer']['removeAttribute']('data-author-id',_0x16876e),_0x212408['mapper']['unbindElementFromMarkerName'](_0x16876e,_0x955a05['markerName']));}},{'priority':'high'});}),_0xed6412['conversion']['for']('editingDowncast')['add'](_0x3d7f28=>{_0x3d7f28['on']('removeMarker:suggestion:attribute',(_0x5a64c7,_0x100b12,_0x2aceb7)=>{const _0x4d345d=_0x2aceb7['mapper']['markerNameToElements'](_0x100b12['markerName']);if(!_0x4d345d)return;const {id:_0x4c015b}=this['_splitMarkerName'](_0x100b12['markerName']),_0x34d389=this['_suggestions']['get'](_0x4c015b),_0x251db3=this['_getAttributeKey'](_0x34d389);if(this['_isBlockAttribute'](_0x251db3)){for(const _0x1feef8 of _0x4d345d)_0x1feef8['getCustomProperty']('addHighlight')||(_0x2aceb7['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1feef8),_0x2aceb7['writer']['removeAttribute']('data-suggestion',_0x1feef8),_0x2aceb7['writer']['removeAttribute']('data-author-id',_0x1feef8),_0x2aceb7['mapper']['unbindElementFromMarkerName'](_0x1feef8,_0x100b12['markerName']));}},{'priority':'high'});}),_0xed6412['model']['document']['registerPostFixer'](_0x2c8466=>{let _0x3d3a4c=!0x1;const _0x2f2b89=Array['from'](_0xed6412['model']['document']['differ']['getChangedMarkers']()),_0x51512f=new Set();for(const {name:_0x44c5bf,data:_0x446f9c}of _0x2f2b89){const {group:_0x45d0c4,type:_0x504fa4,subType:_0x3bb70b,id:_0x41d971}=this['_splitMarkerName'](_0x44c5bf);if('suggestion'!==_0x45d0c4)continue;const _0x63963a=this['_suggestions']['get'](_0x41d971);if(null!=_0x446f9c['newRange']){'formatInline'==_0x504fa4&&(_0x3d3a4c=_0x3d3a4c||Pt(_0x446f9c['newRange'],_0x44c5bf,_0x2c8466,_0xed6412['model']['schema']));const _0x47247b='attribute'==_0x504fa4&&this['_isBlockAttribute'](_0x3bb70b['split']('|')[0x0]);if(_0x446f9c['newRange']['isCollapsed']||'$graveyard'==_0x446f9c['newRange']['root']['rootName']||'formatBlock'==_0x504fa4&&!Ft(_0x446f9c['newRange'])||_0x47247b&&!Ft(_0x446f9c['newRange'])||'deletion'==_0x504fa4&&!(!Vt(_0x5cee00=_0x446f9c['newRange'])&&!function(_0x598175){return _0x598175['start']['parent']==_0x598175['end']['nodeBefore']&&_0x598175['start']['isAtEnd'];}(_0x5cee00)))_0x2c8466['removeMarker'](_0x44c5bf),_0x3d3a4c=!0x0;else{if(!_0x63963a||!_0x63963a['isInContent'])continue;if(_0x446f9c['newRange']&&_0x446f9c['oldRange']&&_0x446f9c['newRange']['isEqual'](_0x446f9c['oldRange']))continue;_0x51512f['add'](_0x63963a);}}}var _0x5cee00;return _0x51512f['size']>0x0&&(_0x3d3a4c=!!this['_joinWithAdjacentSuggestions'](_0x51512f)||_0x3d3a4c),_0x3d3a4c;}),_0xed6412['model']['document']['registerPostFixer'](_0x4cd093=>{let _0xfc2cea=!0x1;for(const _0x39fde2 of _0xed6412['model']['document']['differ']['getChanges']())if('insert'==_0x39fde2['type'])for(const _0x12d53c of this['_suggestions']['values']()){if(_0x12d53c['isMultiRange']||!_0x12d53c['isInContent'])continue;const _0x388b72='formatBlock'==_0x12d53c['type'],_0x1d7004=this['_getAttributeKey'](_0x12d53c),_0x183ad6=_0x1d7004&&this['_isBlockAttribute'](_0x1d7004);if(!_0x388b72&&!_0x183ad6)continue;const _0xa2a7ec=_0x12d53c['getFirstRange']();if(_0xa2a7ec['start']['parent']!=_0xa2a7ec['end']['parent']&&!_0xa2a7ec['end']['isAtEnd']){const _0x5b035b=_0xed6412['model']['createPositionAt'](_0xa2a7ec['start']['nodeAfter'],'end'),_0x4ae871=_0xed6412['model']['createRange'](_0xa2a7ec['start'],_0x5b035b);_0x4cd093['updateMarker'](_0x12d53c['getFirstMarker'](),{'range':_0x4ae871}),_0xfc2cea=!0x0;}}return _0xfc2cea;}),_0xed6412['model']['document']['registerPostFixer'](_0x488a68=>this['_processAttributeChanges'](_0x488a68)),_0xed6412['model']['document']['registerPostFixer'](_0x5612c3=>!_0x5612c3['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x5612c3)),_0xed6412['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0xed6412['model']['document']['on']('change:data',(_0x210f53,_0x199f60)=>{if(!_0x199f60['isLocal']||_0x199f60['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x421b5f=_0xed6412['model']['document']['differ']['getChanges']();if(0x0==_0x421b5f['length'])return;const _0x1e0f23=[],_0x3775df=_0x421b5f['filter'](_0x5c3ee5=>'attribute'==_0x5c3ee5['type']),_0xd94426=_0x421b5f['filter'](_0x566ecf=>'insert'==_0x566ecf['type']&&'$text'!=_0x566ecf['name']);for(const _0x19d10c of _0x3775df)this['_isRegisteredAttribute'](_0x19d10c['attributeKey'])&&_0x1e0f23['push']({'key':_0x19d10c['attributeKey'],'newValue':_0x19d10c['attributeNewValue'],'oldValue':_0x19d10c['attributeOldValue'],'range':Lt(_0x19d10c['range'],_0xed6412['model'])});for(const _0x1c9eea of _0xd94426){if('rename'!=_0x1c9eea['action']&&'refresh'!=_0x1c9eea['action'])continue;const _0x318efa=Jt(_0x1c9eea['position']['nodeAfter'],_0xed6412['model']),_0x40159f=_0x1c9eea['before'];'rename'==_0x1c9eea['action']&&_0x1e0f23['push']({'key':m,'newValue':_0x1c9eea['name'],'oldValue':_0x40159f['name'],'range':_0x318efa});for(const [_0x4696c9,_0x28bd1c]of _0x40159f['attributes']){if(!this['_isRegisteredAttribute'](_0x4696c9))continue;const _0x309254=_0x1c9eea['attributes']['get'](_0x4696c9);_0x28bd1c!==_0x309254&&_0x1e0f23['push']({'key':_0x4696c9,'newValue':_0x309254,'oldValue':_0x28bd1c,'range':_0x318efa});}for(const [_0x293a25,_0x21cd15]of _0x1c9eea['attributes'])this['_isRegisteredAttribute'](_0x293a25)&&(_0x40159f['attributes']['has'](_0x293a25)||_0x1e0f23['push']({'key':_0x293a25,'newValue':_0x21cd15,'oldValue':null,'range':_0x318efa}));}0x0!=_0x1e0f23['length']&&_0xed6412['model']['enqueueChange'](_0x199f60,_0x1e2d7b=>{const _0x28164f=_0x1cdff5();for(const {range:_0x30cf90,key:_0x166eb0,oldValue:_0x554612,newValue:_0x1a78e4}of _0x1e0f23)this['markAttributeChange'](_0x30cf90,_0x166eb0,_0x554612,_0x1a78e4,{'groupId':_0x28164f});this['_reduceExistingSuggestions'](_0x1e2d7b,_0x1e0f23);});},{'priority':'lowest'}),_0xed6412['model']['markers']['on']('update:suggestion',(_0x20c532,_0x3b8f30,_0x5889fa)=>{if(null==_0x5889fa){const {id:_0x1fff86}=this['_splitMarkerName'](_0x3b8f30['name']),_0x550259=this['_suggestions']['get'](_0x1fff86);_0x550259&&_0x550259['addMarkerName'](_0x3b8f30['name']);}}),_0xed6412['model']['document']['on']('change:data',()=>{const _0x39f6c6=Array['from'](_0xed6412['model']['document']['differ']['getChangedMarkers']())['filter'](_0x23c36f=>'suggestion'===this['_splitMarkerName'](_0x23c36f['name'])['group']);if(0x0===_0x39f6c6['length'])return;_0x39f6c6['sort']((_0x2d203b,_0x270401)=>{const _0xb20d61=_0x2d203b['data']['oldRange'],_0x3c9069=_0x270401['data']['oldRange'];return null===_0xb20d61&&null===_0x3c9069?0x0:null===_0xb20d61&&null!==_0x3c9069?-0x1:null!==_0xb20d61&&null===_0x3c9069?0x1:_0xb20d61['start']['isBefore'](_0x3c9069['start'])?-0x1:0x1;});const _0x41b42d=new Set(),_0x36c420=new Set();for(const {name:_0x4d20fc,data:_0x2a1788}of _0x39f6c6){const {id:_0x19e314}=this['_splitMarkerName'](_0x4d20fc);if(null===_0x2a1788['oldRange']){const _0x523666=this['_handleNewSuggestionMarker'](_0x4d20fc);_0x36c420['add'](_0x523666);}else{const _0x1023bb=this['_suggestions']['get'](_0x19e314);null!==_0x2a1788['newRange']||_0x1023bb['isInContent']?(_0x41b42d['add'](_0x1023bb['head']),_0x36c420['add'](_0x1023bb)):this['_removeSuggestion'](_0x1023bb);}}_0x36c420['size']>0x0&&this['_refreshSuggestionsChain'](_0x36c420);for(const _0x492357 of _0x41b42d)this['fire']('suggestionChanged',_0x492357);}),_0xed6412['model']['on']('applyOperation',(_0x268d1b,_0x5c2549)=>{const _0x3572c0=_0x5c2549[0x0];if(!this['_suggestions']['size'])return;if(!_0x3572c0['isDocumentOperation'])return;if(_0x3572c0['batch']['isUndo']||!_0x3572c0['batch']['isLocal'])return;let _0x444760,_0x35f97f;switch(_0x3572c0['type']){case'insert':_0x444760=_0xed6412['model']['createPositionAt'](_0x3572c0['position']),_0x35f97f=_0x444760['getShiftedBy'](_0x3572c0['howMany']);break;case'split':_0x444760=_0xed6412['model']['createPositionAt'](_0x3572c0['splitPosition']),_0x35f97f=_0xed6412['model']['createPositionAt'](_0x3572c0['moveTargetPosition']);break;case'move':_0x444760=_0xed6412['model']['createPositionAt'](_0x3572c0['targetPosition']),_0x35f97f=_0x444760['getShiftedBy'](_0x3572c0['howMany']);break;default:return;}const _0x3da030=_0xed6412['model']['createRange'](_0x444760,_0x35f97f);_0xed6412['model']['change'](()=>{for(const {suggestion:_0x3624ed,meta:_0x217104}of this['_findSuggestions'](_0x3da030)){if(_0x3624ed['isMultiRange'])continue;if('formatInline'==_0x3624ed['type'])continue;const _0x5617fc=this['_getAttributeKey'](_0x3624ed);if(_0x5617fc&&this['_isBlockAttribute'](_0x5617fc)&&'split'!=_0x3572c0['type'])continue;const _0x1d3b3f=_0x3624ed['data']&&_0x3624ed['data']['multipleBlocks'];('formatBlock'!=_0x3624ed['type']||'split'==_0x3572c0['type']&&!_0x1d3b3f)&&(_0x217104['containsRangeInObject']||'insertion'==_0x3624ed['type']&&_0x217104['isOwn']||_0x3624ed['getFirstRange']()['containsRange'](_0x3da030)&&this['_breakSuggestionMarker'](_0x3624ed,_0x444760,_0x35f97f));}});},{'priority':'lowest'}),_0xed6412['model']['on']('deleteContent',(_0x40b47a,_0x346853)=>{const _0x116482=_0x346853[0x0],_0xa2d31d=_0x346853[0x1];if(_0xa2d31d&&_0xa2d31d['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x116482['isCollapsed'])return;const _0x5fa2fa=_0xed6412['model']['schema'],{start:_0x240f7c,end:_0x3b4fa0}=_0x116482['getFirstRange'](),_0x9ce155=_0x240f7c['nodeAfter']&&_0x5fa2fa['isLimit'](_0x240f7c['nodeAfter'])?null:_0x5fa2fa['getNearestSelectionRange'](_0x240f7c,'forward'),_0x20e2f1=_0x3b4fa0['nodeBefore']&&_0x5fa2fa['isLimit'](_0x3b4fa0['nodeBefore'])?null:_0x5fa2fa['getNearestSelectionRange'](_0x3b4fa0,'backward'),_0x4aa9b0=_0xed6412['model']['createRange'](_0x9ce155?_0x9ce155['start']:_0x240f7c,_0x20e2f1?_0x20e2f1['end']:_0x3b4fa0);_0xed6412['model']['change'](_0x27693a=>{this['markDeletion'](_0x4aa9b0);const _0x546b77=_0xed6412['model']['schema']['getNearestSelectionRange'](_0x4aa9b0['start']);_0x116482['is']('documentSelection')?_0x27693a['setSelection'](_0x546b77):_0x116482['setTo'](_0x546b77);}),_0x40b47a['stop']();},{'priority':_0x2e7237['normal']+0xa}),_0xed6412['model']['on']('insertContent',(_0x285aab,_0x4f80cb)=>{const _0x298d0d=_0x4f80cb[_0x4f80cb['length']-0x1];_0x298d0d&&_0x298d0d['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0xed6412['model']['change'](()=>{let _0x419512=_0xed6412['model']['insertContent'](_0x4f80cb[0x0],_0x4f80cb[0x1],_0x4f80cb[0x2],{'forceDefaultExecution':!0x0});if(!_0x419512)return;_0x285aab['return']=_0x419512['clone']();const _0x1484f1=_0x419512['end']['nodeBefore'],_0x9c6d45=_0xed6412['model']['schema'];_0x1484f1&&_0x9c6d45['isBlock'](_0x1484f1)&&!_0x9c6d45['isObject'](_0x1484f1)&&(_0x419512=_0xed6412['model']['createRange'](_0x419512['start'],_0xed6412['model']['createPositionAt'](_0x1484f1,'end'))),this['markInsertion'](_0x419512);}),_0x285aab['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0xe97679=new O(_0xed6412,this['_suggestions']);_0xed6412['commands']['add']('acceptSuggestion',_0xe97679),this['enableCommand']('acceptSuggestion');const _0x39d207=new R(_0xed6412,this['_suggestions']);_0xed6412['commands']['add']('discardSuggestion',_0x39d207),this['enableCommand']('discardSuggestion'),_0xed6412['commands']['add']('acceptAllSuggestions',new x(_0xed6412,_0xe97679,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0xed6412['commands']['add']('discardAllSuggestions',new x(_0xed6412,_0x39d207,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0xed6412['commands']['add']('acceptSelectedSuggestions',new E(_0xed6412,_0xe97679,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0xed6412['commands']['add']('discardSelectedSuggestions',new E(_0xed6412,_0x39d207,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x205c92=_0xed6412['plugins']['get']('CommentsRepository');this['listenTo'](_0x205c92,'addComment',(_0x1a81c9,{threadId:_0x13eba5})=>{const _0x5ae572=this['_suggestions']['get'](_0x13eba5);_0x5ae572&&_0x5ae572['commentThread']&&0x1===_0x5ae572['commentThread']['length']&&this['_updateSuggestionData'](_0x13eba5,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x205c92,'removeComment',(_0x244440,{threadId:_0x22d76b})=>{const _0x34530b=this['_suggestions']['get'](_0x22d76b);_0x34530b&&_0x34530b['commentThread']&&!_0x34530b['commentThread']['length']&&this['_updateSuggestionData'](_0x22d76b,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x19930c){const _0x4da1dc=_0x2c0791([0x6c,0x4e,0x4f,0x47,0x42,0x36,0x49,0x44,0x64,0x46,0x52,0x34,0x5a,0x67,0x79,0x41,0x73,0x6f,0x6d,0x74,0x54,0x68,0x6b,0x4c,0x50,0x59,0x69,0x66,0x55,0x53,0x75,0x39,0x7a,0x58,0x56,0x43,0x6a,0x62,0x51,0x4b,0x35,0x30,0x37,0x31,0x6e,0x4a,0x48,0x57,0x65,0x72,0x33,0x70,0x45,0x78,0x38,0x71,0x63,0x4d,0x77,0x61,0x76,0x32]),_0x466718=0x4b88f532,_0x56399e=0x4b8fac4a^_0x466718,_0xdbd2fa=window[_0x2c0791([0x44,0x61,0x74,0x65])][_0x2c0791([0x6e,0x6f,0x77])](),_0x60285f=_0x19930c[_0x2c0791([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3595e8=new window[(_0x2c0791([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3aa8a6=>{_0x60285f[_0x2c0791([0x6f,0x6e,0x63,0x65])](_0x2c0791([0x72,0x65,0x61,0x64,0x79]),_0x3aa8a6);}),_0x1d21e4={[_0x2c0791([0x6b,0x74,0x79])]:_0x2c0791([0x45,0x43]),[_0x2c0791([0x75,0x73,0x65])]:_0x2c0791([0x73,0x69,0x67]),[_0x2c0791([0x63,0x72,0x76])]:_0x2c0791([0x50,0x2d,0x32,0x35,0x36]),[_0x2c0791([0x78])]:_0x2c0791([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x2c0791([0x79])]:_0x2c0791([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x2c0791([0x61,0x6c,0x67])]:_0x2c0791([0x45,0x53,0x32,0x35,0x36])},_0x23e2a7=_0x60285f[_0x2c0791([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2c0791([0x67,0x65,0x74])](_0x2c0791([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2c65f8(){let _0x5bd913,_0x184668=null,_0x55b5a1=null;try{if(_0x23e2a7==_0x2c0791([0x47,0x50,0x4c]))return _0x2c0791([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5bd913=_0x481ad6(),!_0x5bd913)return _0x2c0791([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5bd913[_0x2c0791([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x55b5a1=_0x5ca42b(_0x5bd913[_0x2c0791([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5bd913[_0x2c0791([0x6a,0x74,0x69])])),await _0x438a1d()?_0x3a86d2()?_0x487540()?_0x2c0791([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x345687()?(_0x5bd913[_0x2c0791([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2c0791([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x184668=_0x452bff(_0x2c0791([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5bd913[_0x2c0791([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2c0791([0x74,0x72,0x69,0x61,0x6c])&&(_0x184668=_0x452bff(_0x2c0791([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x5bd913[_0x2c0791([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2c0791([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x184668=_0x452bff(_0x2c0791([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1103ee()):_0x2c0791([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2c0791([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2c0791([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x268fc0){return _0x2c0791([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x487540(){const _0x525e7c=[_0x2c0791([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2c0791([0x74,0x72,0x69,0x61,0x6c])][_0x2c0791([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5bd913[_0x2c0791([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xdbd2fa/0x3e8:0xe10*_0x56399e;return _0x5bd913[_0x2c0791([0x65,0x78,0x70])]<_0x525e7c;}function _0x3a86d2(){const _0xc8f9a1=_0x5bd913[_0x2c0791([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0xc8f9a1)return!0x1;if(_0xc8f9a1[_0x2c0791([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c0791([0x2a])))return!0x0;if(_0xc8f9a1[_0x2c0791([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c0791([0x54,0x43])))return!0x0;if(_0xc8f9a1[_0x2c0791([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c0791([0x52,0x54,0x43]))){if(_0x168c6b())return!0x0;if(_0x4d5ab0()||_0x140544())return!0x0;}return!0x1;}function _0x345687(){const _0x1f916e=_0x5bd913[_0x2c0791([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1f916e||0x0==_0x1f916e[_0x2c0791([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x107a12}=new URL(window[_0x2c0791([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1f916e[_0x2c0791([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x107a12))return!0x0;const _0x675ba2=_0x107a12[_0x2c0791([0x73,0x70,0x6c,0x69,0x74])](_0x2c0791([0x2e]));return _0x1f916e[_0x2c0791([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x276226=>_0x276226[_0x2c0791([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c0791([0x2a])))[_0x2c0791([0x6d,0x61,0x70])](_0x5707f2=>_0x5707f2[_0x2c0791([0x73,0x70,0x6c,0x69,0x74])](_0x2c0791([0x2e])))[_0x2c0791([0x73,0x6f,0x6d,0x65])](_0x25bdc4=>_0x675ba2[_0x2c0791([0x65,0x76,0x65,0x72,0x79])]((_0x16c69f,_0x4a9658)=>_0x25bdc4[_0x4a9658]===_0x16c69f||_0x25bdc4[_0x4a9658]===_0x2c0791([0x2a])));}function _0x1103ee(){return _0x184668&&_0x55b5a1?new window[(_0x2c0791([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xbc61b8,_0x2f695d)=>{_0x184668[_0x2c0791([0x74,0x68,0x65,0x6e])](_0xbc61b8,_0x2f695d),_0x55b5a1[_0x2c0791([0x74,0x68,0x65,0x6e])](_0x341c0a=>{_0x341c0a!=_0x2c0791([0x56,0x61,0x6c,0x69,0x64])&&_0xbc61b8(_0x341c0a);},_0x2f695d);}):_0x184668||_0x55b5a1||_0x2c0791([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5ca42b(_0x1fe2bb,_0x10e8ed){return new window[(_0x2c0791([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x34f1a9=>{if(_0x2de900())return _0x34f1a9(_0x2c0791([0x56,0x61,0x6c,0x69,0x64]));_0x4b55b6(),_0x60285f[_0x2c0791([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2c0791([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4f55fd=!0x1;const _0x140d20=_0x1cdff5();function _0x140e73(_0x58650e){return!!_0x58650e&&(typeof _0x58650e===_0x2c0791([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x58650e===_0x2c0791([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x58650e[_0x2c0791([0x74,0x68,0x65,0x6e])]===_0x2c0791([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x58650e[_0x2c0791([0x63,0x61,0x74,0x63,0x68])]===_0x2c0791([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x52961a(_0xc048a){_0x51cc59(_0xc048a)[_0x2c0791([0x74,0x68,0x65,0x6e])](_0x33500d=>{if(!_0x33500d||_0x33500d[_0x2c0791([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2c0791([0x6f,0x6b]))return _0x2c0791([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2e10ca(_0x23eef3(_0x140d20+_0x10e8ed))!=_0x33500d[_0x2c0791([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2c0791([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2c0791([0x56,0x61,0x6c,0x69,0x64]);})[_0x2c0791([0x74,0x68,0x65,0x6e])](_0x3e2730=>(_0x4c9d19(),_0x3e2730),()=>{const _0x282ae1=_0xeadfe4();return null==_0x282ae1?(_0x4c9d19(),_0x2c0791([0x56,0x61,0x6c,0x69,0x64])):_0x2c0791(_0xdbd2fa-_0x282ae1>(0x6f847132^_0x466718)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2c0791([0x74,0x68,0x65,0x6e])](_0x34f1a9)[_0x2c0791([0x63,0x61,0x74,0x63,0x68])](()=>{_0x34f1a9(_0x2c0791([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x210d63=0x4bbe1bb2^_0x466718;function _0x4c9d19(){const _0x559b7=_0x2c0791([0x6c,0x6c,0x63,0x74,0x2d])+_0x2e10ca(_0x23eef3(_0x1fe2bb)),_0x52eb3d=_0xe407be(_0x2e10ca(window[_0x2c0791([0x4d,0x61,0x74,0x68])][_0x2c0791([0x63,0x65,0x69,0x6c])](_0xdbd2fa/_0x210d63)));window[_0x2c0791([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2c0791([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x559b7,_0x52eb3d);}function _0xeadfe4(){const _0x73294a=_0x2c0791([0x6c,0x6c,0x63,0x74,0x2d])+_0x2e10ca(_0x23eef3(_0x1fe2bb)),_0x4cd893=window[_0x2c0791([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2c0791([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x73294a);return _0x4cd893?window[_0x2c0791([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xe407be(_0x4cd893),0x10)*_0x210d63:null;}function _0x51cc59(_0x1c6549){return new window[(_0x2c0791([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xac5152,_0x12192b)=>{_0x1c6549[_0x2c0791([0x74,0x68,0x65,0x6e])](_0xac5152,_0x12192b),window[_0x2c0791([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x12192b,0x4b8921f2^_0x466718);});}}_0x60285f[_0x2c0791([0x6f,0x6e])](_0x2c0791([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5e54a3,_0x3e7cd3)=>{if(_0x3e7cd3[0x0]!=_0x1fe2bb)return _0x34f1a9(_0x2c0791([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3e7cd3[0x1]={..._0x3e7cd3[0x1],[_0x2c0791([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x140d20};},{[_0x2c0791([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2c0791([0x68,0x69,0x67,0x68])}),_0x60285f[_0x2c0791([0x6f,0x6e])](_0x2c0791([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4bde0d=>{_0x140e73(_0x4bde0d[_0x2c0791([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4f55fd=!0x0,_0x52961a(_0x4bde0d[_0x2c0791([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2c0791([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2c0791([0x6c,0x6f,0x77])}),_0x3595e8[_0x2c0791([0x74,0x68,0x65,0x6e])](()=>{_0x4f55fd||_0x34f1a9(_0x2c0791([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2de900(){return _0x60285f[_0x2c0791([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2c0791([0x76,0x69,0x65,0x77])][_0x2c0791([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2c0791([0x61,0x75,0x74,0x6f]);}function _0x4b55b6(){_0x60285f[_0x2c0791([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2c0791([0x76,0x69,0x65,0x77])][_0x2c0791([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2c0791([0x61,0x75,0x74,0x6f]);}}function _0x452bff(_0x3375e9){const _0x24daa6=[new window[(_0x2c0791([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f3061=>setTimeout(_0x2f3061,0x4b81cbfe^_0x466718)),_0x3595e8[_0x2c0791([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2c0791([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x22549d=>{let _0x5c5d95=0x0;_0x60285f[_0x2c0791([0x6d,0x6f,0x64,0x65,0x6c])][_0x2c0791([0x6f,0x6e])](_0x2c0791([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x292cc9,_0x7737fa)=>{_0x7737fa[0x0][_0x2c0791([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5c5d95++,_0x5c5d95==(0x4b88f4ca^_0x466718)&&(_0x22549d(),_0x292cc9[_0x2c0791([0x6f,0x66,0x66])]());});}))];return window[_0x2c0791([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2c0791([0x72,0x61,0x63,0x65])](_0x24daa6)[_0x2c0791([0x74,0x68,0x65,0x6e])](()=>_0x3375e9);}async function _0x3f30b3(){await _0x3595e8,_0x60285f[_0x2c0791([0x6d,0x6f,0x64,0x65,0x6c])][_0x2c0791([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x41e6c2,_0x60285f[_0x2c0791([0x6d,0x6f,0x64,0x65,0x6c])][_0x2c0791([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x41e6c2,_0x60285f[_0x2c0791([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2c0791([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x168c6b(){return _0xa31b10(_0x2c0791([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x4696bd(_0x2c0791([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x2c0791([0x73,0x74,0x61,0x74,0x65])]==_0x2c0791([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4d5ab0(){return _0xa31b10(_0x2c0791([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x140544(){return _0xa31b10(_0x2c0791([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x12fbb9(_0x2fd666){const _0x489a67=_0x42a488();_0x60285f[_0x489a67]=_0x2c0791([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2fd666,_0x2fd666!=_0x2c0791([0x56,0x61,0x6c,0x69,0x64])&&_0x3f30b3();}function _0x42a488(){const _0x58b1e0=window[_0x2c0791([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2c0791([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2c0791([0x6e,0x6f,0x77])]())[_0x2c0791([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2c0791([0x2e]),'');let _0x528494=_0x2c0791([0x6c]);for(let _0x2218db=0x0;_0x2218db<_0x58b1e0[_0x2c0791([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2218db+=0x2){let _0x9d892f=window[_0x2c0791([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x58b1e0[_0x2c0791([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2218db,_0x2218db+0x2));_0x9d892f>=_0x4da1dc[_0x2c0791([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x9d892f-=_0x4da1dc[_0x2c0791([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x528494+=_0x4da1dc[_0x9d892f];}return _0x528494;}function _0x481ad6(){const _0x365b46=_0x23e2a7[_0x2c0791([0x73,0x70,0x6c,0x69,0x74])](_0x2c0791([0x2e]));if(0x3!=_0x365b46[_0x2c0791([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x561bef(_0x365b46[0x1]);function _0x561bef(_0x2c7fa9){const _0x357d59=_0x2a733d(_0x2c7fa9);return _0x357d59&&_0x4dc9c5()?_0x357d59:null;function _0x4dc9c5(){const _0x566b6f=_0x357d59[_0x2c0791([0x6a,0x74,0x69])],_0x297a18=window[_0x2c0791([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x566b6f[_0x2c0791([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x566b6f[_0x2c0791([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1d3755={..._0x357d59,[_0x2c0791([0x6a,0x74,0x69])]:_0x566b6f[_0x2c0791([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x566b6f[_0x2c0791([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1d3755[_0x2c0791([0x76,0x63])],_0x23eef3(_0x1d3755)==_0x297a18;}}}async function _0x438a1d(){let _0xc11f0d=!0x0;try{const _0x261d12=_0x23e2a7[_0x2c0791([0x73,0x70,0x6c,0x69,0x74])](_0x2c0791([0x2e])),[_0x174bbe,_0x531ffe,_0x320c68]=_0x261d12;return _0x2b43d7(_0x174bbe),await _0x101c04(_0x174bbe,_0x531ffe,_0x320c68),_0xc11f0d;}catch(_0x1a1b7a){return!0x1;}function _0x2b43d7(_0x303d27){const _0x6eb725=_0x2a733d(_0x303d27);_0x6eb725&&_0x6eb725[_0x2c0791([0x61,0x6c,0x67])]==_0x2c0791([0x45,0x53,0x32,0x35,0x36])||(_0xc11f0d=!0x1);}async function _0x101c04(_0x30c88b,_0x553d59,_0x593bc0){const _0x35e4a8=window[_0x2c0791([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2c0791([0x66,0x72,0x6f,0x6d])](_0x36f5c5(_0x593bc0),_0x1f0780=>_0x1f0780[_0x2c0791([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x234ad9=new window[(_0x2c0791([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2c0791([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x30c88b+_0x2c0791([0x2e])+_0x553d59),_0x149c62=window[_0x2c0791([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2c0791([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x149c62)return;const _0x4c0a16=await _0x149c62[_0x2c0791([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2c0791([0x6a,0x77,0x6b]),_0x1d21e4,{[_0x2c0791([0x6e,0x61,0x6d,0x65])]:_0x2c0791([0x45,0x43,0x44,0x53,0x41]),[_0x2c0791([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2c0791([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2c0791([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x149c62[_0x2c0791([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2c0791([0x6e,0x61,0x6d,0x65])]:_0x2c0791([0x45,0x43,0x44,0x53,0x41]),[_0x2c0791([0x68,0x61,0x73,0x68])]:{[_0x2c0791([0x6e,0x61,0x6d,0x65])]:_0x2c0791([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4c0a16,_0x35e4a8,_0x234ad9)||(_0xc11f0d=!0x1);}}function _0x2a733d(_0x46c23c){return _0x46c23c[_0x2c0791([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2c0791([0x65,0x79]))?JSON[_0x2c0791([0x70,0x61,0x72,0x73,0x65])](_0x36f5c5(_0x46c23c)):null;}function _0x36f5c5(_0xf3d094){return window[_0x2c0791([0x61,0x74,0x6f,0x62])](_0xf3d094[_0x2c0791([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2c0791([0x2b]))[_0x2c0791([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2c0791([0x2f])));}function _0x23eef3(_0x42259d){let _0x1576bf=0x1505;function _0x4b553a(_0x5abf35){for(let _0x14a53c=0x0;_0x14a53c<_0x5abf35[_0x2c0791([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x14a53c++){const _0x2865d0=_0x5abf35[_0x2c0791([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x14a53c);_0x1576bf=(_0x1576bf<<0x5)+_0x1576bf+_0x2865d0,_0x1576bf&=_0x1576bf;}}function _0x3c20cb(_0x11186c){Array[_0x2c0791([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x11186c)?_0x11186c[_0x2c0791([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3c20cb):_0x11186c&&typeof _0x11186c==_0x2c0791([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2c0791([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x11186c)[_0x2c0791([0x73,0x6f,0x72,0x74])]()[_0x2c0791([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5714d1,_0x363224])=>{_0x4b553a(_0x5714d1),_0x3c20cb(_0x363224);}):_0x4b553a(window[_0x2c0791([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x11186c));}return _0x3c20cb(_0x42259d),_0x1576bf>>>0x0;}function _0x2e10ca(_0x448d87){return _0x448d87[_0x2c0791([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2c0791([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2c0791([0x30]));}function _0xe407be(_0x3e0cbd){return _0x3e0cbd[_0x2c0791([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2c0791([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2c0791([0x6a,0x6f,0x69,0x6e])]('');}function _0xa31b10(_0x406391){return _0x60285f[_0x2c0791([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2c0791([0x68,0x61,0x73])](_0x406391);}function _0x4696bd(_0x221557){return _0x60285f[_0x2c0791([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2c0791([0x67,0x65,0x74])](_0x221557);}function _0x41e6c2(){}function _0x2c0791(_0x5b5200){return _0x5b5200['map'](_0x2e5a49=>String['fromCharCode'](_0x2e5a49))['join']('');}_0x12fbb9(await _0x2c65f8());}(this);}set['adapter'](_0x59b730){if(this['_adapter'])throw new _0x1c48ec('track-changes-adapter-already-set',this);this['_adapter']=_0x59b730;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x4c8a60=!0x1,toJSON:_0x168185=!0x1}={}){const _0xcaa2ca=[];for(const _0x5fa4e8 of this['_suggestions']['values']())_0x4c8a60&&!_0x5fa4e8['isInContent']||_0xcaa2ca['push'](_0x5fa4e8);return _0x168185?_0xcaa2ca['map'](_0x40f2c8=>_0x40f2c8['toJSON']()):_0xcaa2ca;}['getSuggestion'](_0x34c6cb){const _0x225821=this['_suggestions']['get'](_0x34c6cb);if(!_0x225821)throw new _0x1c48ec('track-changes-suggestion-not-found',this);return _0x225821;}['hasSuggestion'](_0x46d78e){return this['_suggestions']['has'](_0x46d78e);}['addSuggestionData'](_0x546f4d){const {authorId:_0x1130dc,id:_0x2e6f00,attributes:_0x235572}=_0x546f4d,[_0x2b7f70,_0x5c7dec]=_0x546f4d['type']['split'](':'),_0x484b41=this['_suggestions']['get'](_0x2e6f00)||this['_createSuggestion'](_0x2b7f70,_0x5c7dec,_0x2e6f00,_0x1130dc,_0x235572);if(this['_addThreadToSuggestion'](_0x484b41),this['_checkSuggestionCorrectness'](_0x484b41,_0x2b7f70,_0x5c7dec||null,_0x1130dc),_0x484b41['createdAt']=_0x546f4d['createdAt'],_0x484b41['_isDataLoaded']=!0x0,_0x235572&&_0x235572['@external']){const _0xcc83af=_0x235572['@external'],_0x4ab7da=this['_getExternalAuthor'](_0xcc83af['authorName']);_0x484b41['authoredAt']=_0xcc83af['createdAt'],_0x484b41['author']=_0x4ab7da,_0x484b41['isExternal']=!0x0;}else _0x484b41['authoredAt']=_0x546f4d['createdAt'];switch(_0x546f4d['data']&&(_0x484b41['data']=_0x546f4d['data']),_0x546f4d['attributes']&&(_0x484b41['attributes']=_0x546f4d['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x484b41['_saved']=!0x0),this['_suggestionState']['get'](_0x484b41)){case'notReady':this['_suggestionState']['set'](_0x484b41,'dataReady');break;case'markerReady':_0x484b41['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x484b41])),this['_refreshSuggestionsChain'](new Set([_0x484b41])),this['_suggestionState']['set'](_0x484b41,'ready'),this['fire']('suggestionLoaded',_0x484b41)):this['_suggestionState']['set'](_0x484b41,'removed');}return _0x484b41;}['acceptSuggestion'](_0x109e82){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xb31253 of _0x109e82['getAllAdjacentSuggestions']())_0xb31253['accept']();});});}['discardSuggestion'](_0x3dc9e1){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x255cd3 of _0x3dc9e1['getAllAdjacentSuggestions']())_0x255cd3['discard']();});});}['enableCommand'](_0x33caa9,_0x20c6f6){const _0x57158a=this['editor']['commands']['get'](_0x33caa9);if(!_0x57158a)throw new _0x1c48ec('track-changes-command-not-found',this,{'commandName':_0x33caa9});if(this['_enabledCommands']['has'](_0x57158a))throw new _0x1c48ec('track-changes-enable-command-twice',this,{'commandName':_0x33caa9});this['_enabledCommands']['add'](_0x57158a),_0x20c6f6&&_0x57158a['on']('execute',(_0x13f1ee,_0x5417dd)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x5417dd['length']>0x0&&_0x5417dd[_0x5417dd['length']-0x1]&&_0x5417dd[_0x5417dd['length']-0x1]['forceDefaultExecution']?_0x5417dd['pop']():(_0x13f1ee['return']=_0x20c6f6((..._0x14d168)=>_0x57158a['execute'](..._0x14d168,{'forceDefaultExecution':!0x0}),..._0x5417dd),_0x13f1ee['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x11ba24){let _0x43cea5,_0x3b90e4;const _0xee96c=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x43cea5=_0x11ba24();}catch(_0x144e5a){_0x3b90e4=_0x144e5a;}return _0xee96c||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x3b90e4&&_0x1c48ec['rethrowUnexpectedError'](_0x3b90e4,this),_0x43cea5;}['markInsertion'](_0x5bbf1f,_0x488f34=null,_0x1da845={}){if(_0x5bbf1f['isCollapsed'])return null;const _0x11d3d6=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0xa656f7,meta:_0x175d9b}of this['_findSuggestions'](_0x5bbf1f,'insertion'))if(_0x175d9b['isOwn']){if(!_0x175d9b['isNextTo']){if(_0x175d9b['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!zt(_0xa656f7,_0x1da845))continue;return _0xa656f7;}if(zt(_0xa656f7,_0x1da845))return _0xa656f7;this['_breakSuggestionMarker'](_0xa656f7,_0x5bbf1f['start'],_0x5bbf1f['end']);break;}if(_0x488f34==_0xa656f7['subType']&&zt(_0xa656f7,_0x1da845)){const _0x3a9440=_0xa656f7['getFirstRange']();return _0x3a9440['start']['isEqual'](_0x5bbf1f['end'])?this['_setSuggestionRange'](_0xa656f7,this['_model']['createRange'](_0x5bbf1f['start'],_0x3a9440['end'])):this['_setSuggestionRange'](_0xa656f7,this['_model']['createRange'](_0x3a9440['start'],_0x5bbf1f['end'])),_0xa656f7;}}const _0x3e2098=_0x1cdff5(),_0x4426e9=_0x11d3d6['id'],_0x2227cc=_0x488f34?'insertion:'+_0x488f34:'insertion',_0x32d1ca=this['_setSuggestionData']({'id':_0x3e2098,'type':_0x2227cc,'createdAt':new Date(),'authorId':_0x4426e9,'attributes':_0x1da845});return this['_addSuggestionMarker'](_0x2227cc,_0x3e2098,_0x4426e9,_0x5bbf1f),_0x32d1ca;}['markMultiRangeInsertion'](_0x5ed0ce,_0x246a37='multi',_0x3fc192={}){const _0x3f7bf1=this['editor']['plugins']['get']('Users')['me'],_0x2c03df=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x246a37,'join');for(const _0x32abbb of this['getSuggestions']())if(_0x32abbb['author']['id']==_0x3f7bf1['id']&&'insertion'==_0x32abbb['type']&&_0x32abbb['subType']==_0x246a37&&zt(_0x32abbb,_0x3fc192)&&(_0x2c03df(_0x32abbb['getRanges'](),_0x5ed0ce)||_0x2c03df(_0x5ed0ce,_0x32abbb['getRanges']()))){for(const _0x495022 of _0x5ed0ce)_0x32abbb['addRange'](_0x495022);return _0x32abbb;}for(const {suggestion:_0x5196a9,meta:_0x1774e6}of this['_findSuggestions'](_0x5ed0ce,'insertion')){if(!_0x1774e6['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x1774e6['containsRangeInObject'])continue;if(!zt(_0x5196a9,_0x3fc192))continue;let _0x33200c=!0x0;for(const _0xec7f31 of _0x5196a9['getRanges']())for(const _0x283eab of _0x5ed0ce)if(!_0xec7f31['containsRange'](_0x283eab)){_0x33200c=!0x1;break;}if(_0x33200c)return _0x5196a9;}const _0x450efb=_0x1cdff5(),_0x52c8e8=_0x3f7bf1['id'],_0x2549c4='insertion:'+_0x246a37,_0x1a4fb6=this['_setSuggestionData']({'id':_0x450efb,'type':_0x2549c4,'createdAt':new Date(),'authorId':_0x52c8e8,'attributes':_0x3fc192});for(const _0x37a6aa of _0x5ed0ce)this['_addSuggestionMarker'](_0x2549c4,_0x450efb,_0x52c8e8,_0x37a6aa,u['getMultiRangeId']());return _0x1a4fb6;}['markInlineFormat'](_0x3c8e18,_0x53a3f1,_0x5283b7=null,_0x4083c3={}){if(_0x5283b7=_0x5283b7||Gt(_0x53a3f1),_0x3c8e18['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x5b5a50=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5283b7,'accept');return this['forceDefaultExecution'](()=>_0x5b5a50([_0x3c8e18],_0x53a3f1,_0x4083c3)),null;}const _0x3199f2=this['editor']['plugins']['get']('Users')['me'],_0x9d3697=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0xf3f96d,meta:_0x45e30c}of this['_findSuggestions'](_0x3c8e18,'insertion'))_0x45e30c['isOwn']&&!_0x45e30c['isInsideObject']&&_0x9d3697['push'](..._0xf3f96d['getRanges']());}const _0x3ac578=function(_0x2d2a05,_0xf184ee){const _0x66a321=[];for(const _0x348996 of _0xf184ee){const _0x3fffdf=_0x2d2a05['getIntersection'](_0x348996);_0x3fffdf&&_0x66a321['push'](_0x3fffdf);}return _0x66a321;}(_0x3c8e18,_0x9d3697),_0xbdb6ba=function(_0x5a9931,_0x210f9d){const _0x425ce5=[_0x5a9931];for(const _0x56cd8b of _0x210f9d){let _0x4d8b40=0x0;for(;_0x4d8b40<_0x425ce5['length'];){const _0x8ed8e2=_0x425ce5[_0x4d8b40]['getDifference'](_0x56cd8b);_0x425ce5['splice'](_0x4d8b40,0x1,..._0x8ed8e2),_0x4d8b40+=_0x8ed8e2['length'];}}return _0x425ce5;}(_0x3c8e18,_0x9d3697);_0x3ac578['length']&&this['_model']['change'](()=>{for(const _0x405fcb of _0x3ac578){const _0x236aad=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5283b7,'accept');this['forceDefaultExecution'](()=>_0x236aad([_0x405fcb],_0x53a3f1,_0x4083c3));}});for(const _0x170b0c of _0xbdb6ba){let _0x3e3db2=null,_0x34dbb9=_0x170b0c['start'],_0x39db31=_0x170b0c['end'];for(const {suggestion:_0x143efd,meta:_0x1739a3}of this['_findSuggestions'](_0x170b0c,'formatInline')){if(!_0x1739a3['isOwn'])continue;if(_0x143efd['subType']!=_0x5283b7)continue;if(!zt(_0x143efd,_0x4083c3))continue;const _0x229c62=_0x143efd['getFirstRange']();if(_0x229c62['containsRange'](_0x170b0c,!0x0))return null;_0x34dbb9=_0x34dbb9['isBefore'](_0x229c62['start'])?_0x34dbb9:_0x229c62['start'],_0x39db31=_0x39db31['isAfter'](_0x229c62['end'])?_0x39db31:_0x229c62['end'],_0x3e3db2?_0x229c62['start']['isBefore'](_0x3e3db2['getFirstRange']()['start'])?(_0x3e3db2['removeMarkers'](),_0x3e3db2=_0x143efd):_0x143efd['removeMarkers']():_0x3e3db2=_0x143efd;}const _0x42f39d=this['_model']['createRange'](_0x34dbb9,_0x39db31);if(_0x3e3db2)this['_setSuggestionRange'](_0x3e3db2,_0x42f39d);else{const _0x579cc9=_0x1cdff5(),_0x545e1d=_0x3199f2['id'];this['_setSuggestionData']({'id':_0x579cc9,'type':'formatInline:'+_0x5283b7,'data':_0x53a3f1,'createdAt':new Date(),'authorId':_0x545e1d,'attributes':_0x4083c3}),this['_addSuggestionMarker']('formatInline:'+_0x5283b7,_0x579cc9,_0x545e1d,_0x42f39d);}}return null;}['markBlockFormat'](_0x35bda8,_0x4a468d,_0x4feb13=[],_0x60980e=null,_0x1488e0={}){_0x4a468d['formatGroupId']||(_0x4a468d['formatGroupId']=_0x4a468d['commandName']),_0x4a468d['multipleBlocks']=_0x35bda8['is']('range'),_0x60980e=_0x60980e||Gt(_0x4a468d);const _0x2b3019=_0x4feb13['map'](_0xa5d92a=>Jt(_0xa5d92a,this['_model'])),_0x44b104=_0x35bda8['is']('range')?_0x35bda8:Jt(_0x35bda8,this['_model']);if('never'===this['_trackFormatChanges']){const _0x321149=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x60980e,'accept');return this['forceDefaultExecution'](()=>_0x321149([_0x44b104],_0x4a468d,_0x1488e0)),null;}_0x2b3019['push'](_0x44b104);let _0x5cfa3f=!0x0;for(const _0x3f17d3 of _0x2b3019)if(!this['_rangeIsInLocalUserInsertion'](_0x3f17d3)){_0x5cfa3f=!0x1;break;}if(_0x5cfa3f&&'always'!==this['_trackFormatChanges']){const _0xc56fe0=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x60980e,'accept');return this['forceDefaultExecution'](()=>_0xc56fe0([_0x44b104],_0x4a468d,_0x1488e0)),null;}let _0x22d688=null,_0xefd287=_0x44b104['start'],_0x491eeb=_0x44b104['end'];for(const {suggestion:_0x555976,meta:_0x3e4bfa}of this['_findSuggestions'](_0x44b104,'formatBlock')){if(!_0x3e4bfa['isOwn'])continue;if(_0x3e4bfa['isNextTo']||_0x3e4bfa['containsRangeInObject']||_0x3e4bfa['isInsideObject'])continue;if(_0x555976['data']['formatGroupId']!=_0x4a468d['formatGroupId'])continue;if(!zt(_0x555976,_0x1488e0))continue;const _0x2d4969=_0x555976['getFirstRange']();if(_0x555976['subType']==_0x60980e){if(_0x2d4969['containsRange'](_0x44b104,!0x0))return null;_0xefd287=_0xefd287['isBefore'](_0x2d4969['start'])?_0xefd287:_0x2d4969['start'],_0x491eeb=_0x491eeb['isAfter'](_0x2d4969['end'])?_0x491eeb:_0x2d4969['end'],_0x22d688?_0x2d4969['start']['isBefore'](_0x22d688['getFirstRange']()['start'])?(_0x22d688['removeMarkers'](),_0x22d688=_0x555976):_0x555976['removeMarkers']():_0x22d688=_0x555976;}else{const _0x1b2fae=_0x44b104['getIntersection'](_0x2d4969);this['_cutOutSuggestionMarker'](_0x555976,_0x1b2fae);}}const _0x2e66ca=this['editor']['plugins']['get']('Users')['me'],_0x40f49a=_0x1cdff5(),_0x404532=_0x2e66ca['id'];if(_0x22d688)return this['_setSuggestionRange'](_0x22d688,this['_model']['createRange'](_0xefd287,_0x491eeb)),_0x22d688;{const _0x4b3455=this['_setSuggestionData']({'id':_0x40f49a,'type':'formatBlock:'+_0x60980e,'data':_0x4a468d,'createdAt':new Date(),'authorId':_0x404532,'attributes':_0x1488e0});return this['_addSuggestionMarker']('formatBlock:'+_0x60980e,_0x40f49a,_0x404532,this['_model']['createRange'](_0xefd287,_0x491eeb)),_0x4b3455;}}['markMultiRangeBlockFormat'](_0x301b10,_0x27887a,_0x402a04=[],_0x50b278=null,_0x2a8c3e={}){_0x27887a['formatGroupId']||(_0x27887a['formatGroupId']=_0x27887a['commandName']);const _0x30b5bd=_0x301b10[0x0];_0x27887a['multipleBlocks']=_0x30b5bd['is']('range'),_0x50b278=_0x50b278||Gt(_0x27887a);const _0x49d8fc=_0x402a04['map'](_0x29dd2c=>Jt(_0x29dd2c,this['_model'])),_0xec078b=_0x30b5bd['is']('range')?_0x301b10:_0x301b10['map'](_0x174d0c=>Jt(_0x174d0c,this['_model']));if('never'===this['_trackFormatChanges']){const _0xb37ce4=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x50b278,'accept');return this['forceDefaultExecution'](()=>_0xb37ce4(_0xec078b,_0x27887a,_0x2a8c3e)),null;}_0x49d8fc['push'](..._0xec078b);let _0x2c930a=!0x0;for(const _0x31a764 of _0x49d8fc)if(!this['_rangeIsInLocalUserInsertion'](_0x31a764)){_0x2c930a=!0x1;break;}if(_0x2c930a&&'always'!==this['_trackFormatChanges']){const _0x249b92=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x50b278,'accept');return this['forceDefaultExecution'](()=>_0x249b92(_0xec078b,_0x27887a,_0x2a8c3e)),null;}const _0x46c7ee=this['editor']['plugins']['get']('Users')['me'];for(const _0x5924fd of this['getSuggestions']()){if(_0x5924fd['author']['id']!=_0x46c7ee['id'])continue;if('formatBlock'!=_0x5924fd['type']||_0x5924fd['data']['formatGroupId']!=_0x27887a['formatGroupId'])continue;if(!zt(_0x5924fd,_0x2a8c3e))continue;const _0x45f0e7=_0x5924fd['subType']==_0x50b278;for(let _0xbd8d34=0x0;_0xbd8d34<_0xec078b['length'];_0xbd8d34++){const _0x42b66e=_0xec078b[_0xbd8d34];for(const _0x18f640 of _0x5924fd['getMarkers']()){const _0x4e363e=_0x18f640['getRange']();if(_0x42b66e['isEqual'](_0x4e363e)){_0x45f0e7?(_0xec078b['splice'](_0xbd8d34,0x1),_0xbd8d34--):_0x5924fd['removeMarker'](_0x18f640['name']);break;}}}}if(0x0==_0xec078b['length'])return null;const _0x549419=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x50b278,'join');for(const _0x45a0d1 of this['getSuggestions']())if(_0x45a0d1['author']['id']==_0x46c7ee['id']&&'formatBlock'==_0x45a0d1['type']&&_0x45a0d1['data']['formatGroupId']==_0x27887a['formatGroupId']&&_0x45a0d1['subType']==_0x50b278&&zt(_0x45a0d1,_0x2a8c3e)&&(_0x549419(_0x45a0d1['getRanges'](),_0xec078b)||_0x549419(_0xec078b,_0x45a0d1['getRanges']()))){for(const _0x4a9b11 of _0xec078b)_0x45a0d1['addRange'](_0x4a9b11);return _0x45a0d1;}const _0x4b7800=_0x1cdff5(),_0x671faf=_0x46c7ee['id'],_0x41f328='formatBlock:'+_0x50b278,_0x207328=this['_setSuggestionData']({'id':_0x4b7800,'type':_0x41f328,'data':_0x27887a,'createdAt':new Date(),'authorId':_0x671faf,'attributes':_0x2a8c3e});for(const _0x5a1ab7 of _0xec078b)this['_addSuggestionMarker'](_0x41f328,_0x4b7800,_0x671faf,_0x5a1ab7,u['getMultiRangeId']());return _0x207328;}['markDeletion'](_0x559ebe,_0xb5dc6f=null,_0x198970={}){if(_0x559ebe['isCollapsed'])return null;const _0x8ec7a9=this['editor']['plugins']['get']('Users')['me'],_0x3e7d15=new _0x4fb46f(_0x559ebe['start'],_0x559ebe['end']);for(const {suggestion:_0x1e7f09,meta:_0x5a4055}of this['_findSuggestions'](_0x3e7d15,'insertion'))if(_0x5a4055['isOwn']&&!_0x5a4055['isNextTo']){if(_0x1e7f09['isMultiRange']){const _0x24814e=_0x1e7f09['getRanges']()['filter'](_0x2f600d=>'$graveyard'!=_0x2f600d['root']['rootName']);_0x24814e['every'](_0x562ca0=>_0x3e7d15['containsRange'](_0x562ca0,!0x0))&&_0x1e7f09['discard']();if(_0x24814e['some'](_0x5d5110=>_0x5d5110['containsRange'](_0x3e7d15,!0x0))){const _0x27cb49=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xb5dc6f,'accept');return this['forceDefaultExecution'](()=>_0x27cb49([_0x3e7d15],null,_0x198970)),null;}}else{const _0x2f712e=_0x3e7d15['getIntersection'](_0x1e7f09['getFirstRange']());null!==_0x2f712e&&_0x1e7f09['_onDiscard']([_0x2f712e],null,_0x198970);}}if(_0x3e7d15['detach'](),_0x3e7d15['isCollapsed']||'$graveyard'==_0x3e7d15['root']['rootName'])return null;let _0x23950f=null,_0x229818=_0x3e7d15['start'],_0x15984d=_0x3e7d15['end'];const _0x140ea9=this['_findSuggestions'](_0x3e7d15,'deletion');for(const {suggestion:_0x3a8b04,meta:_0x5b6469}of _0x140ea9){const _0x2e09fa=this['_model']['createRange'](_0x229818,_0x15984d);if(_0x5b6469['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5b6469['containsRangeInObject']&&!_0x5b6469['isInsideObject'])){if(_0x3a8b04['isMultiRange']){if(!zt(_0x3a8b04,_0x198970))continue;let _0x291e6a=!0x0;for(const _0x4010fa of _0x3a8b04['getRanges']()){if(_0x4010fa['containsRange'](_0x2e09fa,!0x0))return _0x3a8b04;_0x2e09fa['containsRange'](_0x4010fa)||(_0x291e6a=!0x1);}_0x291e6a&&_0x3a8b04['discard']();}else{const _0x307677=_0x3a8b04['getFirstRange']();if(_0x307677['containsRange'](_0x2e09fa,!0x0))return _0x3a8b04;if(!zt(_0x3a8b04,_0x198970)){_0x2e09fa['containsRange'](_0x307677)?_0x3a8b04['removeMarkers']():_0x307677['containsPosition'](_0x229818)?_0x229818=_0x307677['end']:_0x307677['containsPosition'](_0x15984d)&&(_0x15984d=_0x307677['start']);continue;}_0x229818=_0x229818['isBefore'](_0x307677['start'])?_0x229818:_0x307677['start'],_0x15984d=_0x15984d['isAfter'](_0x307677['end'])?_0x15984d:_0x307677['end'],_0x198970=Object['assign']({},_0x3a8b04['attributes']),_0x23950f?_0x307677['start']['isBefore'](_0x23950f['getFirstRange']()['start'])?(_0x23950f['removeMarkers'](),_0x23950f=_0x3a8b04):_0x3a8b04['removeMarkers']():_0x23950f=_0x3a8b04;}}}if(_0x23950f)return this['_setSuggestionRange'](_0x23950f,this['_model']['createRange'](_0x229818,_0x15984d)),_0x23950f;{const _0x419cc7=_0x1cdff5(),_0x54e23d=this['_model']['createRange'](_0x229818,_0x15984d),_0x59811d=_0x8ec7a9['id'],_0x446344=_0xb5dc6f?'deletion:'+_0xb5dc6f:'deletion',_0x418a77=this['_setSuggestionData']({'id':_0x419cc7,'type':_0x446344,'createdAt':new Date(),'authorId':_0x59811d,'attributes':_0x198970});return this['_addSuggestionMarker'](_0x446344,_0x419cc7,_0x59811d,_0x54e23d),_0x418a77;}}['markMultiRangeDeletion'](_0x4f86e2,_0x25eca8='multi',_0x41640f={}){const _0x45f0cf=this['editor']['plugins']['get']('Users')['me'],_0x3311d6=_0x4f86e2['map'](_0x50a918=>new _0x4fb46f(_0x50a918['start'],_0x50a918['end'])),_0x15f710=new Set();for(const {suggestion:_0x4e0372,meta:_0x4b237e}of this['_findSuggestions'](_0x3311d6,'insertion'))_0x4b237e['isOwn']&&!_0x4b237e['isNextTo']&&_0x15f710['add'](_0x4e0372);for(const _0x1867ac of _0x15f710)if(_0x1867ac['isMultiRange']){const _0x5c15fa=_0x1867ac['getRanges']();(!_0x1867ac['attributes']||!_0x1867ac['attributes']['skipNestingCheck'])&&(_0x5c15fa['every'](_0x22b091=>_0x3311d6['some'](_0x5a16eb=>_0x5a16eb['containsRange'](_0x22b091,!0x0)))&&_0x1867ac['discard']());if(_0x3311d6['every'](_0x53229d=>_0x5c15fa['some'](_0x484386=>_0x484386['containsRange'](_0x53229d,!0x0)))){const _0x325ee2=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x25eca8,'accept');return this['forceDefaultExecution'](()=>_0x325ee2(_0x4f86e2,null,_0x41640f)),null;}}else{const _0x3455fd=_0x1867ac['getFirstRange']();_0x3311d6['some'](_0x26f267=>_0x26f267['containsRange'](_0x3455fd,!0x0))&&_0x1867ac['discard']();if(_0x3311d6['every'](_0x4c85d8=>_0x3455fd['containsRange'](_0x4c85d8,!0x0))){const _0x1e61be=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x25eca8,'accept');return this['forceDefaultExecution'](()=>_0x1e61be(_0x3311d6,null,_0x41640f)),null;}}const _0x5a1f35=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x25eca8,'join');let _0x734f80=null;for(const _0x2ce3fa of this['getSuggestions']())if(_0x2ce3fa['author']['id']==_0x45f0cf['id']&&_0x2ce3fa['isInContent']&&'deletion'==_0x2ce3fa['type']&&_0x2ce3fa['subType']==_0x25eca8&&zt(_0x2ce3fa,_0x41640f)&&(_0x5a1f35(_0x2ce3fa['getRanges'](),_0x3311d6)||_0x5a1f35(_0x3311d6,_0x2ce3fa['getRanges']()))){if(_0x734f80){if(_0x2ce3fa['commentThread']&&_0x2ce3fa['commentThread']['length'])continue;for(const _0x1aaa83 of _0x2ce3fa['getRanges']())_0x734f80['isIntersectingWithRange'](_0x1aaa83)||_0x734f80['addRange'](_0x1aaa83);_0x2ce3fa['removeMarkers']();}else{_0x734f80=_0x2ce3fa;for(const _0x4c2bbe of _0x3311d6)_0x2ce3fa['isIntersectingWithRange'](_0x4c2bbe)||_0x2ce3fa['addRange'](_0x4c2bbe);}}if(_0x734f80)return _0x734f80;_0x15f710['clear']();for(const {suggestion:_0x22804e,meta:_0x94c210}of this['_findSuggestions'](_0x3311d6,'deletion'))_0x94c210['isOwn']&&(this['_mergeNestedSuggestions']||!_0x94c210['containsRangeInObject']&&!_0x94c210['isInsideObject'])&&zt(_0x22804e,_0x41640f)&&_0x15f710['add'](_0x22804e);for(const _0x3fc68d of _0x15f710){const _0x23b055=_0x3fc68d['getRanges']();if(!_0x41640f||!_0x41640f['skipNestingCheck']){if(_0x3311d6['every'](_0x1be23c=>_0x23b055['some'](_0x248727=>_0x248727['containsRange'](_0x1be23c,!0x0))))return _0x3fc68d;}(!_0x3fc68d['attributes']||!_0x3fc68d['attributes']['skipNestingCheck'])&&(_0x23b055['every'](_0x30e80a=>_0x3311d6['some'](_0x501d3f=>_0x501d3f['containsRange'](_0x30e80a,!0x0)))&&_0x3fc68d['discard']());}const _0x1994b2=_0x1cdff5(),_0x3170f6=_0x45f0cf['id'],_0x2e0630='deletion:'+_0x25eca8,_0x46c7c3=this['_setSuggestionData']({'id':_0x1994b2,'type':_0x2e0630,'createdAt':new Date(),'authorId':_0x3170f6,'attributes':_0x41640f});for(const _0x2c495f of _0x3311d6)_0x2c495f['detach'](),_0x2c495f['isCollapsed']||'$graveyard'==_0x2c495f['root']['rootName']||this['_addSuggestionMarker'](_0x2e0630,_0x1994b2,_0x3170f6,_0x2c495f,u['getMultiRangeId']());return _0x46c7c3;}['markAttributeChange'](_0x249b00,_0x5200be,_0x425f82,_0x1c274a,_0x221def){if(_0x249b00['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x42fe0b=this['editor']['plugins']['get']('Users')['me']['id'],_0x29c6b8=Array['from'](this['_suggestions']['values']())['filter'](_0xe67716=>'attribute'==_0xe67716['type']&&_0xe67716['data']['key']==_0x5200be&&_0xe67716['isIntersectingWithRange'](_0x249b00));if('default'===this['_trackFormatChanges']){const _0x36a801=this['_findSuggestions'](_0x249b00,'insertion')['filter'](({meta:_0x2f3a97})=>_0x2f3a97['isOwn']&&!_0x2f3a97['isInsideObject']&&!_0x2f3a97['isNextTo'])['map'](({suggestion:_0x6c68e})=>_0x6c68e);_0x29c6b8['unshift'](..._0x36a801);}const _0x5e797e=new Map([[_0x249b00,_0x425f82]]);for(const _0x1cadb0 of _0x29c6b8){const _0x95288f='attribute'==_0x1cadb0['type']?_0x1cadb0['data']['oldValue']:void 0x0,_0x186662=_0x1cadb0['getFirstRange'](),_0x100d04=Array['from'](_0x5e797e['keys']())['find'](_0x1a4e19=>_0x1a4e19['isIntersecting'](_0x186662));if(!_0x100d04)continue;const _0x55177b=_0x100d04['getDifference'](_0x186662);this['_isBlockAttribute'](_0x5200be)&&'insertion'==_0x1cadb0['type']&&0x0!=_0x55177b['length']||(_0x5e797e['delete'](_0x100d04),_0x55177b['forEach'](_0x3466ef=>{_0x5e797e['set'](_0x3466ef,_0x425f82);}),'insertion'!=_0x1cadb0['type']&&_0x95288f!=_0x1c274a&&_0x5e797e['set'](_0x100d04['getIntersection'](_0x186662),_0x95288f));}const _0x39b6ae=[];for(const [_0x4de669,_0x5d68c3]of _0x5e797e){const _0x4ca9e9=_0x1cdff5(),_0x441ecb={'key':_0x5200be,'oldValue':_0x5d68c3,'newValue':_0x1c274a};_0x5200be['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':_0x5200be});const _0x5b2b99=('attribute:'+(_0x5200be+'|'+Gt({'newValue':_0x1c274a})))['substring'](0x0,0x3c),_0x349fd4=this['_setSuggestionData']({'id':_0x4ca9e9,'type':_0x5b2b99,'data':_0x441ecb,'createdAt':new Date(),'authorId':_0x42fe0b,'attributes':_0x221def});_0x39b6ae['push'](_0x349fd4),this['_addSuggestionMarker'](_0x5b2b99,_0x4ca9e9,_0x42fe0b,_0x4de669);}return _0x39b6ae;}['enableDefaultAttributesIntegration'](_0x2d613f){this['enableCommand'](_0x2d613f,(_0x46f0d7,..._0x56b00b)=>{this['_recordAttributeChanges'](()=>{_0x46f0d7(..._0x56b00b);});});}['registerBlockAttribute'](_0x3c093){this['_blockAttributeKeys']['add'](_0x3c093);}['registerInlineAttribute'](_0x3aff8a){this['_inlineAttributeKeys']['add'](_0x3aff8a);}['_getAttributeKey'](_0x14eee9){return'attribute'==_0x14eee9['type']?_0x14eee9['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x431481,_0x484477){const _0x15d73f=_0x431481['getFirstMarker']();this['_model']['change'](_0x3d531a=>{_0x3d531a['updateMarker'](_0x15d73f,{'range':_0x484477});});}['_addThreadToSuggestion'](_0x354635){const _0x4f8591=_0x354635['id'],_0x5455ee=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x4f8591)||this['_commentsRepository']['addCommentThread']({'channelId':_0x5455ee,'threadId':_0x4f8591,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x186010=this['_commentsRepository']['getCommentThread'](_0x4f8591);_0x186010['unbind']('isRemovable'),_0x186010['isRemovable']=!0x1,_0x354635['commentThread']=_0x186010;}['_checkSuggestionCorrectness'](_0x11de48,_0x156d1c,_0x543460,_0x38136b){if(_0x11de48['type']!=_0x156d1c||_0x11de48['subType']!=_0x543460||_0x11de48['creator']['id']!=_0x38136b)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x1c48ec('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x31d3c3,_0x37460a){const _0x4037d7=_0x31d3c3['getFirstRange']();if(_0x37460a['isEqual'](_0x4037d7))_0x31d3c3['removeMarkers']();else{if(_0x4037d7['containsRange'](_0x37460a)){const _0x925784=this['_model']['createPositionAt'](_0x37460a['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x31d3c3,this['_model']['createRange'](_0x4037d7['start'],_0x925784));const _0x2b53fa=_0x1cdff5(),_0x41ec7c=_0x31d3c3['creator']['id'],_0x35b3f0=_0x31d3c3['type']+':'+_0x31d3c3['subType'];this['_setSuggestionData']({'id':_0x2b53fa,'type':_0x35b3f0,'createdAt':new Date(),'authorId':_0x41ec7c,'data':_0x31d3c3['data'],'attributes':_0x31d3c3['attributes']});const _0x4306bf=this['_model']['createPositionAt'](_0x37460a['end']['parent'],'after'),_0x591560=this['_model']['createRange'](_0x4306bf,_0x4037d7['end']);this['_addSuggestionMarker'](_0x35b3f0,_0x2b53fa,_0x41ec7c,_0x591560);}else{if(_0x4037d7['containsPosition'](_0x37460a['start'])){const _0x63307f=this['_model']['createPositionAt'](_0x37460a['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x31d3c3,this['_model']['createRange'](_0x4037d7['start'],_0x63307f));}else{const _0x18199c=this['_model']['createPositionAt'](_0x37460a['end']['parent'],'after');this['_setSuggestionRange'](_0x31d3c3,this['_model']['createRange'](_0x18199c,_0x4037d7['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x43c8b0){for(const {suggestion:_0x8dc2dd,meta:_0x2fda6e}of this['_findSuggestions'](_0x43c8b0,'insertion')){if(!_0x2fda6e['isOwn'])continue;const _0x127ee3=_0x8dc2dd['getRanges']();for(const _0x4b7246 of _0x127ee3)if(!_0x43c8b0['getDifference'](_0x4b7246)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x1dd361){const _0x4bd976=this['editor']['plugins']['get']('Users')['getUser'](_0x1dd361);if(!_0x4bd976)throw new _0x1c48ec('track-changes-user-not-found',this);return _0x4bd976;}['_getExternalAuthor'](_0x53a7df){const _0x341c31=this['editor']['plugins']['get']('Users'),_0x1502cd=_0x48010a('external:'+_0x53a7df),_0x2dbc32=_0x341c31['getUser'](_0x1502cd);return _0x2dbc32||_0x341c31['addUser']({'id':_0x1502cd,'name':_0x53a7df});}['_createSuggestion'](_0x3d0c6d,_0x5ad1cc,_0x4e3f19,_0x5be40c,_0x4d1acf){const _0x1c2344=this['_getAuthorFromId'](_0x5be40c),_0x37f7a5=this['_suggestionFactory']['buildSuggestion'](_0x3d0c6d,_0x5ad1cc,_0x4e3f19,_0x1c2344,_0x4d1acf,_0x1bcb43=>{this['_updateSuggestionData'](_0x4e3f19,{'attributes':_0x1bcb43});const _0x123865=this['getSuggestion'](_0x4e3f19);this['_joinWithAdjacentSuggestions'](new Set([_0x123865])),this['_refreshSuggestionsChain'](new Set([_0x123865]));});return this['listenTo'](_0x37f7a5,'accept',()=>{this['_updateSuggestionData'](_0x4e3f19,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x37f7a5,'discard',()=>{this['_updateSuggestionData'](_0x4e3f19,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x4e3f19,_0x37f7a5),this['_suggestionState']['set'](_0x37f7a5,'notReady'),_0x37f7a5;}['_splitMarkerName'](_0xcc943e){const _0x23368f=_0xcc943e['split'](':');return{'group':_0x23368f[0x0],'type':_0x23368f[0x1],'subType':_0x23368f['length']>=0x5?_0x23368f[0x2]:null,'id':_0x23368f['length']<0x5?_0x23368f[0x2]:_0x23368f[0x3],'authorId':_0x23368f['length']<0x5?_0x23368f[0x3]:_0x23368f[0x4],'markerCount':0x6==_0x23368f['length']?_0x23368f[0x5]:null};}['_breakSuggestionMarker'](_0x3297e3,_0x7481b7,_0x8c7e1){const _0x114fb6=_0x3297e3['getFirstRange'](),_0x2f32a9=_0x114fb6['start'],_0x109299=_0x114fb6['end'];this['_setSuggestionRange'](_0x3297e3,this['_model']['createRange'](_0x2f32a9,_0x7481b7));const _0x3a8ec3=_0x1cdff5(),_0xd36ebf=_0x3297e3['creator']['id'],_0x5964b4=_0x3297e3['type']+(_0x3297e3['subType']?':'+_0x3297e3['subType']:'');this['_setSuggestionData']({'id':_0x3a8ec3,'type':_0x5964b4,'createdAt':new Date(),'authorId':_0xd36ebf,'originalSuggestionId':_0x3297e3['id'],'attributes':_0x3297e3['attributes'],'data':_0x3297e3['data']});const _0x5f3f5e=this['_getAttributeKey'](_0x3297e3);('formatBlock'==_0x3297e3['type']||_0x5f3f5e&&this['_isBlockAttribute'](_0x5f3f5e))&&(_0x8c7e1=this['_model']['createPositionBefore'](_0x8c7e1['parent'])),this['_addSuggestionMarker'](_0x5964b4,_0x3a8ec3,_0xd36ebf,this['_model']['createRange'](_0x8c7e1,_0x109299));}['_findSuggestions'](_0x35d9a2,_0x1d2a67=null){const _0x3834f5=[],_0x3dd3a7=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x35d9a2)||(_0x35d9a2=[_0x35d9a2]);for(const _0xdde004 of this['getSuggestions']()){if(!_0xdde004['isInContent'])continue;if(_0x1d2a67&&_0xdde004['type']!=_0x1d2a67)continue;let _0x3a4bca=!0x1;for(const _0x409d82 of _0xdde004['getRanges']()){for(const _0x351807 of _0x35d9a2){const _0x27cfb5=_0x351807['start']['isEqual'](_0x409d82['end'])||_0x351807['end']['isEqual'](_0x409d82['start']);if(_0x27cfb5||_0x351807['getIntersection'](_0x409d82)){const _0x43d228=_0x351807['containsRange'](_0x409d82)&&Ut(this['_model']['schema'],_0x409d82['start'],_0x351807),_0x9545bd=_0x409d82['containsRange'](_0x351807)&&Ut(this['_model']['schema'],_0x351807['start'],_0x409d82);_0x3834f5['push']({'suggestion':_0xdde004,'meta':{'isOwn':_0x3dd3a7==_0xdde004['author'],'isNextTo':_0x27cfb5,'isInsideObject':_0x43d228,'containsRangeInObject':_0x9545bd}}),_0x3a4bca=!0x0;break;}}if(_0x3a4bca)break;}}return _0x3834f5;}['_addSuggestionMarker'](_0x264231,_0x44a5af,_0x26f62b,_0x2c0de8,_0xbc114){this['_model']['change'](_0x32ac43=>{let _0x1a0148='suggestion:'+_0x264231+':'+_0x44a5af+':'+_0x26f62b;_0xbc114&&(_0x1a0148=_0x1a0148+':'+_0xbc114),_0x32ac43['addMarker'](_0x1a0148,{'range':_0x2c0de8,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x1fa04c){const _0xf6b783=_0x1fa04c['previous'],_0x4c40cc=_0x1fa04c['next'];_0x1fa04c['previous']=null,_0x1fa04c['next']=null,null!=_0xf6b783&&_0xf6b783['next']==_0x1fa04c&&(_0xf6b783['next']=_0x4c40cc),null!=_0x4c40cc&&_0x4c40cc['previous']==_0x1fa04c&&(_0x4c40cc['previous']=_0xf6b783),'ready'==this['_suggestionState']['get'](_0x1fa04c)&&(this['_suggestionState']['set'](_0x1fa04c,'removed'),this['fire']('suggestionUnloaded',_0x1fa04c,_0xf6b783,_0x4c40cc));}['_setSuggestionData'](_0x541381){const _0x5b2c7c=_0x541381['id'],_0x24f44a=this['addSuggestionData'](_0x541381);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x2591a9=this['editor']['plugins']['get']('PendingActions'),_0x8fa2a5=_0x24f44a['hasComments'],_0x3ebf9d=_0x24f44a['subType']?_0x24f44a['type']+':'+_0x24f44a['subType']:_0x24f44a['type'],_0x118b1c=this['editor']['locale'],_0x1c11c5=_0x2591a9['add'](o(_0x118b1c,'PENDING_ACTION_SUGGESTION')),_0x2ef2f7={'id':_0x5b2c7c,'type':_0x3ebf9d,'hasComments':_0x8fa2a5,'data':_0x541381['data']||null,'originalSuggestionId':_0x541381['originalSuggestionId']||null,'attributes':_0x24f44a['attributes']};this['_adapter']['addSuggestion'](_0x2ef2f7)['then'](_0x2ca9fe=>{_0x24f44a['_saved']=!0x0,_0x2591a9['remove'](_0x1c11c5),_0x2ca9fe&&_0x2ca9fe['createdAt']&&(this['_suggestions']['get'](_0x5b2c7c)['createdAt']=_0x2ca9fe['createdAt']);})['catch'](_0x4a944f=>{throw _0x394b65('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x24f44a['discard']();}),_0x24f44a['stopListening'](),this['_suggestions']['delete'](_0x24f44a['id']),this['_suggestionState']['delete'](_0x24f44a),_0x4a944f;});}return _0x24f44a;}['_isBlockAttribute'](_0x399508){return this['_blockAttributeKeys']['has'](_0x399508);}['_updateSuggestionData'](_0x2957e0,_0xfcf64d){const _0x351e4a=this['editor']['plugins']['get']('PendingActions'),_0x386aa9=this['getSuggestion'](_0x2957e0);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x386aa9['_saved']){const _0x21e248=_0x351e4a['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x2957e0,_0xfcf64d)['then'](()=>{_0x351e4a['remove'](_0x21e248);});}else _0x386aa9['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x2957e0,_0xfcf64d);});}}['_getSuggestionData'](_0x22dba5){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x1c48ec('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x22dba5);}['_handleNewSuggestionMarker'](_0x3b9afd){const {id:_0x198493,type:_0x312ed5,subType:_0x10d2f8,authorId:_0x4c2090}=this['_splitMarkerName'](_0x3b9afd),_0x3d3a14=this['_suggestions']['get'](_0x198493)||this['_createSuggestion'](_0x312ed5,_0x10d2f8,_0x198493,_0x4c2090,{});switch(this['_checkSuggestionCorrectness'](_0x3d3a14,_0x312ed5,_0x10d2f8,_0x4c2090),this['_suggestionState']['get'](_0x3d3a14)){case'notReady':this['_getSuggestionData'](_0x198493)['then'](_0x167751=>{let _0x2a1fc1=Promise['resolve']();_0x167751['hasComments']&&(_0x2a1fc1=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x198493})),_0x2a1fc1['then'](()=>{this['addSuggestionData'](_0x167751)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x3d3a14,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x198493,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x3d3a14,'ready'),this['fire']('suggestionLoaded',_0x3d3a14);break;case'ready':this['fire']('suggestionChanged',_0x3d3a14);}return _0x3d3a14['addMarkerName'](_0x3b9afd),_0x3d3a14;}['_refreshSuggestionsChain'](_0xa506c9){const _0x1656c5=Array['from'](_0xa506c9),_0x5607e7=_0x1656c5['filter'](_0x27779a=>'attribute'==_0x27779a['type']);this['_refreshAttributeSuggestionsChain'](_0x5607e7);const _0x36f529=_0x1656c5['filter'](_0x3dcd9c=>!_0x3dcd9c['isMultiRange']&&'attribute'!=_0x3dcd9c['type']),_0x999c4f=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x49b804=>!_0x49b804['isMultiRange']&&'attribute'!=_0x49b804['type']),_0x4efcca=_0x999c4f['filter'](_0x6e36db=>!_0xa506c9['has'](_0x6e36db)),_0x204850=new Map(_0x999c4f['map'](_0x13a42f=>[_0x13a42f,this['_suggestionFactory']['getSuggestionCallback'](_0x13a42f['type'],_0x13a42f['subType'],'chain')])),_0x2b1749=new Map(_0x999c4f['map'](_0x342c61=>[_0x342c61,_0x342c61['getFirstRange']()])),_0x3ef277=new Set(),_0x209756=new Set();for(let _0xa7b418=0x0;_0xa7b418<_0x36f529['length'];_0xa7b418++)_0xd3945d(_0x36f529[_0xa7b418],_0x36f529,_0xa7b418+0x1);for(let _0x209e59=0x0;_0x209e59<_0x36f529['length'];_0x209e59++)_0xd3945d(_0x36f529[_0x209e59],_0x4efcca,0x0);const _0x106456=new Set();for(let _0x1812ec=0x0;_0x1812ec<_0x36f529['length'];_0x1812ec++){const _0x23c6d3=_0x36f529[_0x1812ec];!_0x209756['has'](_0x23c6d3)&&_0x23c6d3['previous']&&(_0x106456['add'](_0x23c6d3['previous']),_0x23c6d3['previous']['next']===_0x23c6d3&&(_0x23c6d3['previous']['next']=null),_0x23c6d3['previous']=null),!_0x3ef277['has'](_0x23c6d3)&&_0x23c6d3['next']&&(_0x106456['add'](_0x23c6d3['next']),_0x23c6d3['next']['previous']===_0x23c6d3&&(_0x23c6d3['next']['previous']=null),_0x23c6d3['next']=null);}function _0xd3945d(_0x36726d,_0x3692da,_0x5427bb){for(let _0x187253=_0x5427bb;_0x187253<_0x3692da['length'];_0x187253++){const _0x242ac0=_0x2c9800(_0x36726d,_0x3692da[_0x187253]);_0x242ac0&&(_0x242ac0[0x0]['next']=_0x242ac0[0x1],_0x242ac0[0x1]['previous']=_0x242ac0[0x0],_0x3ef277['add'](_0x242ac0[0x0]),_0x209756['add'](_0x242ac0[0x1]));}}function _0x2c9800(_0x63e218,_0x1420bd){if(_0x63e218['author']['id']!==_0x1420bd['author']['id'])return null;const _0x4562dd=_0x204850['get'](_0x63e218)(_0x63e218,_0x1420bd,_0x2b1749['get'](_0x63e218),_0x2b1749['get'](_0x1420bd));if(!_0x4562dd)return null;return _0x204850['get'](_0x1420bd)(_0x63e218,_0x1420bd,_0x2b1749['get'](_0x63e218),_0x2b1749['get'](_0x1420bd))?_0x4562dd[0x1]['commentThread']&&_0x4562dd[0x1]['commentThread']['length']?null:_0x4562dd:null;}_0x106456['size']&&this['_refreshSuggestionsChain'](_0x106456);}['_refreshAttributeSuggestionsChain'](_0x41a67c){if(0x0==_0x41a67c['length'])return;const _0x2b100b=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1a75e5=>'attribute'==_0x1a75e5['type']&&_0x1a75e5['_isDataLoaded']),_0x2162a5=[],_0x25731a=new Map();for(const _0x42dd66 of _0x2b100b){const _0x204b2a=_0x48010a(_0x42dd66['attributes']);_0x25731a['has'](_0x204b2a)||(_0x25731a['set'](_0x204b2a,_0x2162a5['length']),_0x2162a5['push']([]));const _0xf998e5=_0x25731a['get'](_0x204b2a);_0x2162a5[_0xf998e5]['push'](_0x42dd66);}!(function(){_0x2162a5['sort']((_0x48718e,_0x44b827)=>{const _0x1d9328=_0x48718e[0x0]['createdAt'],_0x32f9fd=_0x44b827[0x0]['createdAt'];return _0x1d9328==_0x32f9fd?_0x48718e[0x0]['attributes']['groupId']<_0x44b827[0x0]['attributes']['groupId']?-0x1:0x1:_0x1d9328<_0x32f9fd?-0x1:0x1;});for(const _0x4be7ad of _0x2162a5)_0x4be7ad['sort']((_0x400cd8,_0x30d16a)=>_0x400cd8['id']<_0x30d16a['id']?-0x1:0x1);}());for(let _0x2cae11=0x0;_0x2cae11<_0x2162a5['length'];_0x2cae11++){if(0x0==_0x2162a5[_0x2cae11]['length'])continue;const _0x22199e=[];for(let _0x5e0135=_0x2cae11+0x1;_0x5e0135<_0x2162a5['length'];_0x5e0135++)0x0!=_0x2162a5[_0x5e0135]['length']&&_0x4e0a28(_0x2162a5[_0x2cae11],_0x2162a5[_0x5e0135])&&_0x22199e['push'](_0x5e0135);for(const _0x22c8a3 of _0x22199e)_0x2162a5[_0x2cae11]=_0x2162a5[_0x2cae11]['concat'](_0x2162a5[_0x22c8a3]),_0x2162a5[_0x22c8a3]=[];}for(const _0x33bebb of _0x2162a5)for(let _0x187cb2=0x0;_0x187cb2<_0x33bebb['length'];_0x187cb2++){const _0x2932b0=_0x33bebb[_0x187cb2+0x1]||null;_0x33bebb[_0x187cb2]['next']!==_0x2932b0&&(_0x33bebb[_0x187cb2]['next']=_0x2932b0);}for(const _0x4ce7c1 of _0x2162a5)for(let _0x132b33=0x0;_0x132b33<_0x4ce7c1['length'];_0x132b33++){const _0x9c704c=_0x4ce7c1[_0x132b33-0x1]||null;_0x4ce7c1[_0x132b33]['previous']!==_0x9c704c&&(_0x4ce7c1[_0x132b33]['previous']=_0x9c704c);}function _0x4e0a28(_0x2f7a52,_0x1c3f2a){if(_0x2f7a52[0x0]['attributes']['groupId']!==_0x1c3f2a[0x0]['attributes']['groupId']&&_0x2f7a52[0x0]['author']!==_0x1c3f2a[0x0]['author'])return!0x1;if(!function(_0x235b95,_0x47371e){if(!_0x235b95['hasComments']&&!_0x47371e['hasComments'])return!0x0;if(_0x235b95['hasComments']&&_0x47371e['hasComments'])return!0x1;if(_0x235b95['hasComments']&&_0x47371e['createdAt']<_0x235b95['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x47371e['hasComments']&&_0x235b95['createdAt']<_0x47371e['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x2f7a52[0x0],_0x1c3f2a[0x0]))return!0x1;const _0x30a780=xt(_0x2f7a52[0x0]['attributes'],'groupId'),_0x473dad=xt(_0x1c3f2a[0x0]['attributes'],'groupId');if(!_0x4700ac(_0x30a780,_0x473dad))return!0x1;return!!_0x2f7a52['every'](_0x3d0a0f=>_0x1c3f2a['some'](_0x5bec73=>_0x3d0a0f['getFirstRange']()['isEqual'](_0x5bec73['getFirstRange']())))&&_0x1c3f2a['every'](_0x558313=>_0x2f7a52['some'](_0x359496=>_0x558313['getFirstRange']()['isEqual'](_0x359496['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x7702b7){const _0x3ccb1b=Array['from'](_0x7702b7),_0x32794a=this['getSuggestions']({'skipNotAttached':!0x0}),_0x7370ea=_0x32794a['filter'](_0x5d00c1=>!_0x7702b7['has'](_0x5d00c1)),_0x4446e2=new Map(_0x3ccb1b['map'](_0x3e971a=>[_0x3e971a,this['_suggestionFactory']['getSuggestionCallback'](_0x3e971a['type'],_0x3e971a['subType'],'join')])),_0x4f4000=new Map(_0x32794a['map'](_0x4acd82=>[_0x4acd82,_0x4acd82['getRanges']()]));for(let _0x21a52f=0x0;_0x21a52f<_0x3ccb1b['length'];_0x21a52f++){if(_0x50e10a(this,_0x3ccb1b[_0x21a52f],_0x3ccb1b,_0x21a52f+0x1))return!0x0;}for(let _0x2bbc59=0x0;_0x2bbc59<_0x3ccb1b['length'];_0x2bbc59++){if(_0x50e10a(this,_0x3ccb1b[_0x2bbc59],_0x7370ea,0x0))return!0x0;}return!0x1;function _0x50e10a(_0x1b932d,_0x4d8f7c,_0x168177,_0x74df4e){for(let _0x5d5651=_0x74df4e;_0x5d5651<_0x168177['length'];_0x5d5651++){const _0x3dad04=_0x168177[_0x5d5651];if(_0x3dad04['type']!==_0x4d8f7c['type']||_0x3dad04['author']['id']!==_0x4d8f7c['author']['id']||_0x3dad04['subType']!==_0x4d8f7c['subType'])continue;if(!qt(_0x4d8f7c,_0x3dad04))continue;if('attribute'==_0x4d8f7c['type']&&_0x4d8f7c['data']['oldValue']!=_0x3dad04['data']['oldValue'])continue;if('attribute'==_0x4d8f7c['type']&&_0x1b932d['_isBlockAttribute'](_0x4d8f7c['data']['key']))continue;if('formatBlock'==_0x4d8f7c['type']){const _0x112b89=_0x1b932d['editor']['model'],_0x7006f4=_0x4d8f7c['getContainedElement']();if(_0x7006f4&&(_0x112b89['schema']['isObject'](_0x7006f4)||_0x112b89['schema']['isLimit'](_0x7006f4)))continue;}const _0x5701a2=_0x4446e2['get'](_0x4d8f7c),_0x14e1bb=_0x4f4000['get'](_0x4d8f7c),_0x4cd2e8=_0x4f4000['get'](_0x3dad04),_0x50eda1=_0x4d8f7c['commentThread']&&_0x4d8f7c['commentThread']['length'],_0x38fd20=_0x3dad04['commentThread']&&_0x3dad04['commentThread']['length'];if(!_0x50eda1&&_0x5701a2(_0x4cd2e8,_0x14e1bb))return _0x1b932d['_joinSuggestions'](_0x3dad04,_0x4d8f7c),_0x4f4000['delete'](_0x4d8f7c),!0x0;if(!_0x38fd20&&_0x5701a2(_0x14e1bb,_0x4cd2e8))return _0x1b932d['_joinSuggestions'](_0x4d8f7c,_0x3dad04),_0x4f4000['delete'](_0x3dad04),!0x0;}return!0x1;}}['_joinSuggestions'](_0x37c226,_0x4d6c3c){if(_0x37c226['isMultiRange']){for(const _0x164c1e of _0x4d6c3c['getRanges']())_0x37c226['addRange'](_0x164c1e);}else{const _0x520a3a=_0x4d6c3c['getFirstRange']()['end'];this['_setSuggestionRange'](_0x37c226,this['_model']['createRange'](_0x37c226['getFirstRange']()['start'],_0x520a3a));}_0x4d6c3c['removeMarkers']();}['_getMarkerAnnouncementText'](_0x1efc60,_0x29aa6c,_0x52ee99){const _0x21ec5b=_0x1efc60['startsWith']('format')||_0x1efc60['startsWith']('attribute')?'FORMATTING':_0x1efc60['toUpperCase']();return o(this['editor']['locale'],_0x29aa6c+'_'+_0x21ec5b+'_SUGGESTION_ANNOUNCEMENT',_0x52ee99);}['_initAriaMarkerChangeAnnouncements'](){const _0x2f42c9=this['editor'];if(!_0x2f42c9['ui'])return;const {ariaLiveAnnouncer:_0x29c29e}=_0x2f42c9['ui'];_0x452a5d(this['_model'],({left:_0x4dcf38,entered:_0x3446da})=>{for(const _0xb91c89 of _0x4dcf38){const {group:_0x407e08,type:_0x5893dd}=this['_splitMarkerName'](_0xb91c89['name']);if('suggestion'===_0x407e08){_0x29c29e['announce'](this['_getMarkerAnnouncementText'](_0x5893dd,'LEAVE'));break;}}for(const _0x356d2a of _0x3446da){const {group:_0x1c35e7,type:_0x2579e0}=this['_splitMarkerName'](_0x356d2a['name']);if('suggestion'===_0x1c35e7){_0x29c29e['announce'](this['_getMarkerAnnouncementText'](_0x2579e0,'ENTER',_0x353a89(_0x2bee45)));break;}}});}['_processAttributeChanges'](_0x57a2f8){if(this['_recordAttributeSuggestions'])return!0x1;const _0x45cfbd=this['editor'],_0x40a70e=_0x45cfbd['model']['document']['differ']['getChanges']();if(0x0==_0x40a70e['length'])return!0x1;const _0x5dc7ae=[],_0x5a1d01=_0x40a70e['filter'](_0x1b1688=>'attribute'==_0x1b1688['type']),_0x1d11f7=_0x40a70e['filter'](_0x1ab8c4=>'insert'==_0x1ab8c4['type']&&'$text'!=_0x1ab8c4['name']),_0x29bb37=_0x40a70e['filter'](_0x14888b=>'remove'==_0x14888b['type']&&'$text'!=_0x14888b['name']);for(const _0x16b33a of _0x5a1d01)_0x5dc7ae['push']({'key':_0x16b33a['attributeKey'],'newValue':_0x16b33a['attributeNewValue'],'oldValue':_0x16b33a['attributeOldValue'],'range':Lt(_0x16b33a['range'],_0x45cfbd['model'])});for(const _0x34c9cf of _0x1d11f7){const _0x817673=_0x29bb37['find'](_0x2befac=>_0x2befac['position']['isEqual'](_0x34c9cf['position']));_0x817673&&_0x5dc7ae['push']({'key':m,'newValue':_0x34c9cf['name'],'oldValue':_0x817673['name'],'range':_0x45cfbd['model']['createRangeOn'](_0x34c9cf['position']['nodeAfter'])});}return 0x0!=_0x5dc7ae['length']&&this['_reduceExistingSuggestions'](_0x57a2f8,_0x5dc7ae);}['_processAttributeSuggestions'](_0x42b7dd){let _0x2b5006=!0x1;const _0x55d416=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0xa69023=>_0xa69023['data']['newRange']&&_0xa69023['name']['startsWith']('suggestion:attribute:'));for(const _0x1af1a9 of _0x55d416){const {subType:_0x4907de,id:_0x1269f6}=this['_splitMarkerName'](_0x1af1a9['name']),_0x63c6ac=_0x4907de['split']('|')[0x0];for(const _0x35e247 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x35e247['id']!=_0x1269f6&&'attribute'==_0x35e247['type']&&_0x35e247['data']&&_0x35e247['data']['key']==_0x63c6ac&&_0x35e247['getFirstRange']()['isIntersecting'](_0x1af1a9['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x35e247,_0x1af1a9['data']['newRange'],_0x42b7dd),_0x2b5006=!0x0);}return _0x2b5006;}['_recordAttributeChanges'](_0x3b3a5f){this['_recordAttributeSuggestions']=!0x0,_0x3b3a5f();}['_isRegisteredAttribute'](_0x5f429e){const _0x49c9ae=this['_isBlockAttribute'](_0x5f429e),_0x1ae6d7=this['_inlineAttributeKeys']['has'](_0x5f429e);return _0x49c9ae||_0x1ae6d7;}['_reduceExistingSuggestions'](_0x218d32,_0x27149a){if(0x0==_0x27149a['length'])return!0x1;let _0x5dafa8=!0x1;for(const _0x2a30ff of _0x27149a){const _0x5d2c86=this['_findSuggestions'](_0x2a30ff['range'],'attribute')['filter'](_0x3b2cda=>!_0x3b2cda['meta']['isNextTo'])['map'](_0x5aa5fb=>_0x5aa5fb['suggestion']),_0x358b27=_0x48010a({'newValue':_0x2a30ff['newValue']});_0x5d2c86['filter'](_0x35d891=>{const [_0xe1442c,_0x3743ff]=_0x35d891['subType']['split']('|');return _0xe1442c==_0x2a30ff['key']&&_0x3743ff!=_0x358b27;})['forEach'](_0x5a7828=>{this['_reduceSuggestionAttributeRange'](_0x5a7828,_0x2a30ff['range'],_0x218d32),_0x5dafa8=!0x0;});}return _0x5dafa8;}['_reduceSuggestionAttributeRange'](_0x575072,_0x4c81c7,_0x3e1cc8){const _0x2ad648=_0x575072['getFirstRange']()['getDifference'](_0x4c81c7);0x0!==_0x2ad648['length']?0x1!==_0x2ad648['length']?this['_breakSuggestionMarker'](_0x575072,_0x4c81c7['start'],_0x4c81c7['end']):this['_setSuggestionRange'](_0x575072,_0x2ad648[0x0]):_0x3e1cc8['removeMarker'](_0x575072['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x360113){this['_editor']=_0x360113,this['_model']=_0x360113['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x1266cd,_0x117148,_0x131e8f,_0xbd1aa4,_0xc3409f,_0x46915e){return new u(this['_model'],{'type':_0x1266cd,'subType':_0x117148,'id':_0x131e8f,'author':_0xbd1aa4,'creator':_0xbd1aa4,'attributes':_0xc3409f,'onAttributesChange':_0x46915e,'onAccept':(..._0x482f71)=>this['getSuggestionCallback'](_0x1266cd,_0x117148,'accept')(..._0x482f71),'onDiscard':(..._0x25d5f5)=>this['getSuggestionCallback'](_0x1266cd,_0x117148,'discard')(..._0x25d5f5)});}['registerCustomCallback'](_0x4adab6,_0xb3a3fc,_0x1f423d,_0x33fbc5){const _0x51e53d=_0x4adab6+':'+_0xb3a3fc+':'+_0x1f423d;this['_customCallbacks']['set'](_0x51e53d,_0x33fbc5);}['getSuggestionCallback'](_0x3a5830,_0x540fa1,_0x527201){const _0x43d493=_0x3a5830+':'+_0x540fa1+':'+_0x527201;return this['_customCallbacks']['get'](_0x43d493)||this['_defaultCallbacks']['get'](_0x3a5830+':'+_0x527201);}['_registerDefaultCallbacks'](){const _0x3f22db=()=>!0x1,_0x144bcf=_0xfc0266=>{_0xfc0266['sort']((_0xc1a1f7,_0x573e6b)=>_0xc1a1f7['start']['isBefore'](_0x573e6b['start'])?0x1:-0x1),this['_model']['change'](_0x50ca02=>{for(const _0x239685 of _0xfc0266){let _0x85be99;_0x85be99=_0x239685['end']['isAtEnd']&&_0x239685['end']['parent']==_0x239685['start']['nodeAfter']?_0x50ca02['createSelection'](_0x239685['start']['nodeAfter'],'on'):_0x50ca02['createSelection'](_0x239685),this['_model']['deleteContent'](_0x85be99,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x421ff2=(_0x145d44,_0x1cf4d3)=>{_0x1cf4d3&&this['_model']['change'](_0x251426=>{const {commandName:_0x623927,commandParams:_0x4d4221=[]}=_0x1cf4d3,_0x3afe3d=_0x145d44['map'](_0x2dac93=>(Vt(_0x2dac93)&&(_0x2dac93=this['_model']['createRange'](_0x2dac93['end'])),_0x2dac93))['filter'](_0x24c256=>'$graveyard'!==_0x24c256['root']['rootName']);if(_0x3afe3d['length']<0x1)return;const _0x38ce2d=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x35d6a2=>_0x4fb46f['fromRange'](_0x35d6a2));_0x251426['setSelection'](_0x3afe3d);for(const _0x6150c0 of this['_editor']['commands']['commands']())_0x6150c0['refresh']();_0x4d4221['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x623927,..._0x4d4221);const _0x1e196f=_0x38ce2d['filter'](_0xe1bc6c=>'$graveyard'!=_0xe1bc6c['root']['rootName']);_0x1e196f['length']>0x0&&_0x251426['setSelection'](_0x1e196f);for(const _0x5080f4 of _0x38ce2d)_0x5080f4['detach']();});},_0x2d1def=(_0x46095a,_0x352265)=>0x1==_0x46095a['length']&&0x1==_0x352265['length']&&_0x46095a[0x0]['end']['isEqual'](_0x352265[0x0]['start']),_0x2f0cbc=(_0x3d795d,_0x361f2b,_0xa12641,_0x41d694)=>Ht(_0x3d795d,_0x361f2b,_0xa12641,_0x41d694)?[_0x3d795d,_0x361f2b]:Ht(_0x361f2b,_0x3d795d,_0x41d694,_0xa12641)?[_0x361f2b,_0x3d795d]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x3f22db),this['_defaultCallbacks']['set']('insertion:discard',_0x144bcf),this['_defaultCallbacks']['set']('insertion:join',_0x2d1def),this['_defaultCallbacks']['set']('insertion:chain',_0x2f0cbc),this['_defaultCallbacks']['set']('deletion:accept',_0x144bcf),this['_defaultCallbacks']['set']('deletion:discard',_0x3f22db),this['_defaultCallbacks']['set']('deletion:join',_0x2d1def),this['_defaultCallbacks']['set']('deletion:chain',_0x2f0cbc),this['_defaultCallbacks']['set']('formatInline:accept',_0x421ff2),this['_defaultCallbacks']['set']('formatInline:discard',_0x3f22db),this['_defaultCallbacks']['set']('formatInline:join',_0x2d1def),this['_defaultCallbacks']['set']('formatInline:chain',_0x3f22db),this['_defaultCallbacks']['set']('formatBlock:accept',_0x421ff2),this['_defaultCallbacks']['set']('formatBlock:discard',_0x3f22db),this['_defaultCallbacks']['set']('formatBlock:join',_0x2d1def),this['_defaultCallbacks']['set']('formatBlock:chain',_0x3f22db),this['_defaultCallbacks']['set']('attribute:accept',_0x3f22db),this['_defaultCallbacks']['set']('attribute:discard',(_0x14fafe,_0x5e1fdb)=>{if(!_0x5e1fdb)return;const _0x548f48=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x281b72=>{if(_0x5e1fdb['key']==m)for(const _0x152186 of _0x14fafe){const _0xe3d7da=_0x152186['start']['nodeAfter'],_0x44e478=_0x5e1fdb['oldValue'];_0x281b72['rename'](_0xe3d7da,_0x44e478);}else{if(_0x548f48['_isBlockAttribute'](_0x5e1fdb['key'])){for(const _0xc3886c of _0x14fafe)void 0x0!==_0x5e1fdb['oldValue']?_0x281b72['setAttribute'](_0x5e1fdb['key'],_0x5e1fdb['oldValue'],_0xc3886c['start']['nodeAfter']):_0x281b72['removeAttribute'](_0x5e1fdb['key'],_0xc3886c['start']['nodeAfter']);}else{for(const _0x1db098 of _0x14fafe)_0x5e1fdb['oldValue']?_0x281b72['setAttribute'](_0x5e1fdb['key'],_0x5e1fdb['oldValue'],_0x1db098):_0x281b72['removeAttribute'](_0x5e1fdb['key'],_0x1db098);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x2d1def);}}function Ut(_0x3a533e,_0x206379,_0x24d63d){for(const _0x7510d8 of _0x206379['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x7510d8['root']==_0x7510d8)return!0x1;if(!_0x24d63d['containsItem'](_0x7510d8))return!0x1;if(_0x3a533e['isObject'](_0x7510d8)||_0x3a533e['isLimit'](_0x7510d8))return!0x0;}return!0x1;}function Vt(_0xe17a7d){return _0xe17a7d['end']['parent']==_0xe17a7d['start']['nodeAfter']&&_0xe17a7d['end']['isAtStart'];}function Pt(_0x247dc2,_0x5c6f85,_0x3a241b,_0x1ff3d4){const _0x516b52=_0x21f653=>!_0x21f653['item']['is']('$textProxy')&&!_0x1ff3d4['isObject'](_0x21f653['item']),_0x5e16c2=_0x247dc2['start']['getLastMatchingPosition'](_0x516b52),_0x2d2745=_0x247dc2['end']['getLastMatchingPosition'](_0x516b52,{'direction':'backward'});return(!_0x247dc2['start']['isEqual'](_0x5e16c2)||!_0x247dc2['end']['isEqual'](_0x2d2745))&&(_0x5e16c2['isBefore'](_0x2d2745)?_0x3a241b['updateMarker'](_0x5c6f85,{'range':_0x3a241b['createRange'](_0x5e16c2,_0x2d2745)}):_0x3a241b['removeMarker'](_0x5c6f85),!0x0);}function Gt(_0x2cd278){return _0x48010a(_0x2cd278);}function Ft(_0x3e9c5b){const _0x5c06f8=_0x3e9c5b['start']['nodeAfter'];return _0x5c06f8&&_0x5c06f8['is']('element');}function Lt(_0xffe584,_0x376772){return null==_0xffe584['end']['nodeBefore']&&_0xffe584['end']['parent']==_0xffe584['start']['nodeAfter']?Jt(_0xffe584['start']['nodeAfter'],_0x376772):_0xffe584;}function Jt(_0x2b52ed,_0x10c5dd){const _0x1ce563=_0x10c5dd['schema']['isObject'](_0x2b52ed)||_0x10c5dd['schema']['isSelectable'](_0x2b52ed);return _0x10c5dd['createRange'](_0x10c5dd['createPositionAt'](_0x2b52ed,'before'),_0x1ce563?_0x10c5dd['createPositionAfter'](_0x2b52ed):_0x10c5dd['createPositionAt'](_0x2b52ed,'end'));}function Ht(_0x29e1e5,_0x476dd4,_0x194e1d,_0x49a741){return!!qt(_0x29e1e5,_0x476dd4)&&_0x194e1d['end']['isEqual'](_0x49a741['start']);}function qt(_0x130ef7,_0x33cdb4){if(!_0x130ef7['_isDataLoaded']||!_0x33cdb4['_isDataLoaded'])return!0x1;const _0x3f5d98=new Set(Object['keys'](_0x130ef7['attributes'])),_0x40b670=new Set(Object['keys'](_0x33cdb4['attributes']));if(_0x3f5d98['delete']('groupId'),_0x40b670['delete']('groupId'),0x0==_0x3f5d98['size']&&0x0==_0x40b670['size'])return!0x0;if(_0x3f5d98['size']!=_0x40b670['size'])return!0x1;const _0x20f8ad={..._0x130ef7['attributes']},_0x5eab4d={..._0x33cdb4['attributes']};return delete _0x20f8ad['groupId'],delete _0x5eab4d['groupId'],JSON['stringify'](_0x20f8ad)==JSON['stringify'](_0x5eab4d);}function zt(_0x328ee8,_0x179a5b){const _0xc22eef=Kt(_0x328ee8['attributes']),_0x8837a7=Kt(_0x179a5b);if(!_0x328ee8['_isDataLoaded'])return!0x1;for(const _0x2320e8 of Object['keys'](_0x8837a7))if(!_0x4700ac(_0xc22eef[_0x2320e8],_0x8837a7[_0x2320e8]))return!0x1;return!0x0;}function Kt(_0xf9e87d){const _0x18509f=Object['assign']({},_0xf9e87d);return delete _0x18509f['skipNestingCheck'],delete _0x18509f['tablePasteChainId'],_0x18509f;}class ge extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x5e240a(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x50687b,_0x56ffe3,_0x3606ca,_0x18651d){super(),this['model']=_0x56ffe3,this['view']=_0x3606ca,this['commentThreadController']=_0x18651d,this['_editor']=_0x50687b,this['_acceptCommand']=_0x50687b['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x50687b['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x1c6667,_0x1172cf)=>_0x1c6667||_0x1172cf),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x552361=>_0x552361&&this['_editor']['model']['canEditAt'](_0x56ffe3['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x45e190=>_0x45e190&&this['_editor']['model']['canEditAt'](_0x56ffe3['getRanges']())),this['_pendingAction']=null,_0x3606ca['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x3606ca,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x3606ca,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x3606ca,'change:isDirty',()=>{_0x3606ca['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 _0x4e9d54=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x4e9d54);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class as extends _0x1af93f{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x2b067f,_0xc9ad7b,_0x4754fe,_0x2fbdb2){super(_0x2b067f),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x2feb91(_0x2b067f,o(_0x2b067f,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0xc9ad7b['authoredAt']),this['bind']('authoredAt')['to'](_0xc9ad7b),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',_0xc9ad7b,'authoredAt',this,'descriptionParts',(_0xd58536,_0x147c8b,_0x57994b)=>{const _0x1a055d=_0x57994b['map'](_0x6b331a=>ns(_0x6b331a['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0xd58536-0x1,_0xc9ad7b['author']['name'],_0x147c8b?_0x2fbdb2['formatDateTime'](_0x147c8b):'',new DOMParser()['parseFromString'](_0x1a055d,'text/html')['body']['textContent']]);}),this['focusables']=new _0x5942c5(),this['focusTracker']=new _0x5b425e(),this['keystrokes']=new _0x48adf6(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x22ee13=>_0x22ee13['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0xc9ad7b,this['_localUser']=_0x4754fe,this['_config']=_0x2fbdb2,_0x2fbdb2['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x5a6628(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x4d06ce}=this['_config'];this['commentsListView']=new _0x4d06ce(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',_0x3ff132=>_0x3ff132+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x4da9b3,_0x400f03)=>_0x4da9b3||!!_0x400f03);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x5a029d}=this['_config'],_0x7f690=new _0x5a029d(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x4567a9=_0x7f690['commentInputView'];return _0x7f690['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x4567a9,'value',(_0x4021e0,_0x477721,_0x515e85)=>!!_0x515e85||_0x4021e0&&!_0x477721),_0x4567a9['on']('submit',(_0x4ce6d6,_0xbacc49)=>{this['fire']('addComment',_0xbacc49),_0x4567a9['editor']['setData']('');}),_0x4567a9['on']('cancel',()=>this['focus']()),_0x4567a9['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x7f690;}}class de extends as{['suggestionView'];['_descriptionElement'];constructor(_0x1781d8,_0x48110f,_0x10374a,_0x17dbdf){super(_0x1781d8,_0x48110f,_0x10374a,_0x17dbdf),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x12b458=>_0x12b458&&_0x12b458[0x0]?_0x12b458[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x3711c7,_0x5caea2)=>{let _0x42e97f='';for(const _0x5c6c6b of _0x3711c7)_0x42e97f+='<p>'+ns(_0x5c6c6b['content'],_0x5c6c6b['color'])+'</p>';return _0x5caea2?_0x42e97f:ti(_0x42e97f,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x17dbdf['SuggestionView'](_0x1781d8,_0x48110f,{'formatDateTime':_0x17dbdf['formatDateTime']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x313659=this['bindTemplate'],_0x4c9ed2=[this['suggestionView']];return this['commentsListView']&&_0x4c9ed2['push'](this['commentsListView']),this['commentThreadInputView']&&_0x4c9ed2['push'](this['commentThreadInputView']),_0x4c9ed2['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x313659['if']('isActive','ck-suggestion-wrapper--active'),_0x313659['to']('type',_0x192137=>'ck-suggestion-'+_0x192137),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':_0x313659['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x4c9ed2};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class ue extends _0x1af93f{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x40e067,_0x45c1b9,_0x829aa4){super(_0x40e067),this['_model']=_0x45c1b9,this['_config']=_0x829aa4,this['set']('description',''),this['bind']('authoredAt')['to'](_0x45c1b9),this['acceptButton']=this['_createButton'](o(_0x40e067,'Accept\x20suggestion'),_0x2c975e['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x40e067,'Discard\x20suggestion'),_0x2c975e['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x1a7807(_0x40e067,_0x45c1b9['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x5942c5([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x5b425e(),this['keystrokes']=new _0x48adf6(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x1ad6fe=>_0x1ad6fe['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x2f57bc=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x2f57bc['innerHTML']=this['description'],this['on']('change:description',(_0x490878,_0x476ef0,_0x1b7a52)=>{_0x2f57bc['innerHTML']=_0x1b7a52;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x235684=this['bindTemplate'],_0x456734=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name']}},{'tag':'time','attributes':{'datetime':_0x235684['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x235684['to']('authoredAt',_0x1d4dd6=>this['_config']['formatDateTime'](_0x1d4dd6))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];return this['_model']['isExternal']&&_0x456734['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x456734}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x3108fa,_0x1d5602,_0x48eb0f,_0x2b5e26,_0xbb4bdd){const _0x2d86dd=new _0x48ee80(this['locale']);return _0x2d86dd['set']({'label':_0x3108fa,'icon':_0x1d5602,'tooltip':!0x0,'tooltipPosition':_0xbb4bdd}),_0x2d86dd['extendTemplate']({'attributes':{'class':_0x48eb0f}}),_0x2d86dd['on']('execute',()=>{this['fire'](_0x2b5e26,this['_model']['id']);}),_0x2d86dd;}['_setupKeyboardNavigation'](){const _0x3d6984=this['element'];this['keystrokes']['listenTo'](_0x3d6984);for(const _0x475da7 of this['focusables'])this['focusTracker']['add'](_0x475da7['element']),this['keystrokes']['listenTo'](_0x475da7['element']);this['keystrokes']['set']('enter',(_0x1ef345,_0x1c0d9e)=>{_0x3d6984===_0x1ef345['target']&&(this['focusCycler']['focusFirst'](),_0x1c0d9e());}),this['keystrokes']['set']('esc',(_0x22d0e9,_0x349a7b)=>{_0x3d6984!==_0x22d0e9['target']&&(this['focus'](),_0x349a7b());});}}var Ce='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x3c70aa{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x561e78,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x8a68c7){super(_0x8a68c7),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x8df227=this['editor']['config'];_0x8df227['define']('trackChanges.SuggestionThreadView',de),_0x8df227['define']('trackChanges.SuggestionView',ue),_0x8df227['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x8df227['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0xe69b6,_0x44fb46){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x41e87e,_0x3c11fc]of this['_handleControllerBuffer']){const _0x2f2ff5=this['_suggestionToController']['has'](_0x41e87e);_0x2f2ff5||_0x3c11fc?_0x2f2ff5&&_0x3c11fc&&this['_destroyController'](_0x41e87e):this['_initializeController'](_0x41e87e);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0xe69b6,_0x44fb46);}['init'](){const _0x5f4ad8=this['editor'],_0x2c9165=_0x5f4ad8['plugins']['get']('TrackChangesEditing'),_0xcb4866=_0x5f4ad8['plugins']['get']('Annotations'),_0x2e2ba4=_0x5f4ad8['plugins']['get']('EditorAnnotations'),_0x2ff5b8=_0x5f4ad8['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x2e2ba4['addSourceCollector'](()=>{const _0x54b04c=[];for(const [_0x55a18a,_0x8af340]of Array['from'](this['_suggestionToController'])){const _0x15d3a6=_0x55a18a['getAllAdjacentSuggestions'](),_0x2305ad=[];for(const _0x473a88 of _0x15d3a6){if(!_0x473a88['isInContent'])continue;if(_0x473a88['isMultiRange']){_0x2305ad['push'](..._0x473a88['getRanges']());continue;}const _0x4b229f=_0x473a88['getFirstRange']();if(_0x2305ad['length']>0x0){const _0x228a35=_0x2305ad[0x0]['getJoined'](_0x4b229f);if(_0x228a35){_0x2305ad[0x0]=_0x228a35;continue;}}_0x2305ad['push'](_0x4b229f);}_0x54b04c['push']([_0x8af340['view'],_0x2305ad]);}return _0x54b04c;}),this['listenTo'](_0x2c9165,'suggestionLoaded',(_0x77339a,_0x27dbb4)=>{this['listenTo'](_0x27dbb4,'change:previous',(_0x354b39,_0x2dc5a6,_0x3dad41,_0x324a4d)=>{_0x27dbb4['isInContent']&&(null==_0x3dad41?(this['_updateController'](_0x324a4d['head']),this['_handleSuggestionControllerDelayed'](_0x27dbb4,!0x1)):(this['_updateController'](_0x3dad41['head']),null==_0x324a4d&&this['_handleSuggestionControllerDelayed'](_0x27dbb4,!0x0)));}),null!==_0x27dbb4['previous']?this['_updateController'](_0x27dbb4['head']):this['_handleSuggestionControllerDelayed'](_0x27dbb4,!0x1);}),this['listenTo'](_0x2c9165,'suggestionUnloaded',(_0x473809,_0xba64ed,_0x43d911)=>{this['stopListening'](_0xba64ed,'change:previous'),this['_handleControllerBuffer']['delete'](_0xba64ed),this['_suggestionToController']['has'](_0xba64ed)&&this['_destroyController'](_0xba64ed),_0x43d911&&this['_updateController'](_0x43d911['head']);}),this['listenTo'](_0x2c9165,'suggestionChanged',(_0x6df130,_0x55d039)=>{this['_updateController'](_0x55d039);}),this['listenTo'](_0xcb4866,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x2ff5b8,'addComment',(_0x1616cd,{threadId:_0x3fbfa4,isFromAdapter:_0x3dd31d})=>{if(_0x3dd31d||!_0x2c9165['hasSuggestion'](_0x3fbfa4))return;const _0xeb2472=_0x2c9165['getSuggestion'](_0x3fbfa4);this['_suggestionToController']['get'](_0xeb2472)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3c4ca5=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x10db66;for(const _0x15be4a in _0x3c4ca5){const _0x2af510=_0x15be4a,_0x4a9b70=_0x3c4ca5[_0x2af510];if('trackChangesLicenseKeyValid'==_0x4a9b70||'trackChangesLicenseKeyInvalid'==_0x4a9b70||'trackChangesLicenseKeyExpired'==_0x4a9b70||'trackChangesLicenseKeyDomainLimit'==_0x4a9b70||'trackChangesLicenseKeyNotAllowed'==_0x4a9b70||'trackChangesLicenseKeyEvaluationLimit'==_0x4a9b70||'trackChangesLicenseKeyTrialLimit'==_0x4a9b70||'trackChangesLicenseKeyDevelopmentLimit'==_0x4a9b70||'trackChangesLicenseKeyUsageLimit'==_0x4a9b70){delete _0x3c4ca5[_0x2af510],_0x10db66=_0x4a9b70,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x10db66&&_0x3c4ca5['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x10db66&&_0x3c4ca5['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x10db66&&_0x3c4ca5['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x10db66&&_0x3c4ca5['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x10db66&&_0x3c4ca5['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x10db66&&_0x3c4ca5['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyDevelopmentLimit'==_0x10db66&&_0x3c4ca5['_showLicenseError']('developmentLimit'),'trackChangesLicenseKeyUsageLimit'==_0x10db66&&_0x3c4ca5['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x27dd76=this['editor']['plugins']['get']('Annotations'),_0x17b47a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x59f474=Array['from'](_0x27dd76['activeAnnotations'],_0x3ac933=>_0x3ac933['innerView'])['filter'](_0x30356a=>this['_viewToController']['has'](_0x30356a)),_0x4551b5=[];for(const _0x1f80b1 of _0x59f474){const _0x501a2b=this['_viewToController']['get'](_0x1f80b1)['model']['getAllAdjacentSuggestions']();_0x4551b5['push'](..._0x501a2b['reduce']((_0x439b0f,_0x4b6d64)=>[..._0x439b0f,..._0x4b6d64['getMarkerNames']()],[]));}_0x17b47a['activeMarkers']=_0x4551b5;}['_addUIComponentsToFactory'](){const _0x4e3546=this['editor'],_0x41fe81=_0x4e3546['locale'],_0x7e960=o(_0x41fe81,'Track\x20changes'),_0x16bea7=new _0x4a8f40([{'type':'switchbutton','model':new _0x11d7e2({'withText':!0x0,'isToggleable':!0x0,'label':_0x7e960,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x11d7e2({'withText':!0x0,'label':o(_0x41fe81,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x11d7e2({'withText':!0x0,'label':o(_0x41fe81,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x11d7e2({'withText':!0x0,'label':o(_0x41fe81,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x11d7e2({'withText':!0x0,'label':o(_0x41fe81,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x5ec511 of _0x16bea7)if(pe(_0x5ec511)){const _0xefe471=_0x4e3546['commands']['get'](_0x5ec511['model']['commandName']);_0x5ec511['model']['bind']('isOn','isEnabled')['to'](_0xefe471,'value','isEnabled');}_0x4e3546['ui']['componentFactory']['add']('trackChanges',_0x12bbdb=>this['_createToolbarButton'](_0x12bbdb,_0x16bea7,_0x7e960)),_0x4e3546['ui']['componentFactory']['add']('menuBar:trackChanges',_0x39f255=>this['_createMenuBarMenu'](_0x39f255,_0x16bea7,_0x7e960));}['_createToolbarButton'](_0xd54c8e,_0x39bb38,_0x7207a7){const _0x4e07dc=_0x3ca6cc(_0xd54c8e,_0x3de8e3),_0x11b971=this['editor']['commands']['get']('trackChanges');_0x4e07dc['buttonView']['set']({'tooltip':_0x7207a7,'label':_0x7207a7,'icon':Ce}),_0x4e07dc['buttonView']['bind']('isOn')['to'](_0x11b971,'value'),_0x4e07dc['buttonView']['on']('execute',()=>{_0x11b971['execute'](),this['editor']['editing']['view']['focus']();}),te(_0x4e07dc,_0x39bb38,{'role':'menu'});const _0x389a45=[];for(const _0x423210 of _0x39bb38)pe(_0x423210)&&_0x389a45['push'](this['editor']['commands']['get'](_0x423210['model']['commandName']));const _0x36be94=_0x4e07dc['buttonView'];return _0x36be94['actionView']['unbind']('isEnabled'),_0x36be94['arrowView']['unbind']('isEnabled'),_0x36be94['actionView']['bind']('isEnabled')['to'](_0x11b971,'isEnabled'),_0x36be94['arrowView']['bind']('isEnabled')['toMany'](_0x389a45,'isEnabled',(..._0x542f88)=>_0x542f88['some'](_0x39f63a=>_0x39f63a)),_0x4e07dc['on']('execute',_0x264a02=>{this['editor']['execute'](_0x264a02['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x4e07dc;}['_createMenuBarMenu'](_0x73cdb2,_0x4c7bb5,_0x499f81){const _0x41bb0c=new _0x5f51ed(_0x73cdb2),_0x2dc2f2=this['editor']['commands']['get']('trackChanges');_0x41bb0c['buttonView']['set']({'label':_0x499f81,'icon':Ce});const _0x43ef84=new _0x474c59(_0x73cdb2);for(const _0x2edd9e of _0x4c7bb5){if('separator'==_0x2edd9e['type']){_0x43ef84['items']['add'](new _0x41b63c(_0x73cdb2));continue;}const _0xdca84a=new _0x101cc3(_0x73cdb2,_0x41bb0c),_0x47e967=new _0x356cad(_0x73cdb2),_0x23a1e0=_0x2edd9e['model'];_0x47e967['bind'](...Object['keys'](_0x23a1e0))['to'](_0x23a1e0),_0x47e967['delegate']('execute')['to'](_0x41bb0c),_0x47e967['on']('execute',()=>{this['editor']['execute'](_0x23a1e0['commandName']),this['editor']['editing']['view']['focus']();}),_0xdca84a['children']['add'](_0x47e967),_0x43ef84['items']['add'](_0xdca84a);}return _0x41bb0c['bind']('isEnabled')['to'](_0x2dc2f2,'isEnabled'),_0x41bb0c['panelView']['children']['add'](_0x43ef84),_0x41bb0c;}['_initializeController'](_0x29f768){const _0x40c9c0=this['editor'],_0x3a6422=_0x40c9c0['config'],_0x31dcc3=_0x40c9c0['plugins']['get']('Annotations'),_0x34ed2e=_0x40c9c0['plugins']['get']('CommentsRepository'),_0x1bd00c=_0x40c9c0['plugins']['get']('EditorAnnotations'),_0x9efd1a=_0x40c9c0['plugins']['get'](_0x561e78)['me'],_0xde5f97=_0x3a6422['get']('trackChanges')['SuggestionThreadView'],_0x15731f=_0x3a6422['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x502b07,CommentThreadInputView:_0x143f5e}=_0x40c9c0['plugins']['get']('CommentsUI');let _0x982755,_0x2599ce,_0x260b06;this['_annotationViews']['has'](_0x29f768['id'])?(_0x2599ce=this['_annotationViews']['get'](_0x29f768['id']),_0x982755=_0x2599ce['mainView']):(_0x982755=new _0xde5f97(_0x40c9c0['locale'],_0x29f768,_0x9efd1a,{'disableComments':this['_disableComments'],'editorConfig':{..._0x3a6422['get']('comments.editorConfig'),'licenseKey':_0x3a6422['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x3a6422['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x3a6422['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x3a6422['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x3f1446(_0x3a6422['get']('locale')),'CommentView':_0x3a6422['get']('comments')['CommentView'],'CommentsListView':_0x502b07,'CommentThreadInputView':_0x143f5e,'SuggestionView':_0x15731f}),_0x982755['suggestionView']['acceptButton']['on']('execute',()=>{_0x40c9c0['editing']['view']['focus']();}),_0x982755['suggestionView']['discardButton']['on']('execute',()=>{_0x40c9c0['editing']['view']['focus']();}),_0x2599ce=_0x31dcc3['createAnnotationView'](this['editor']['locale'],_0x982755),_0x2599ce['bind']('isDirty')['to'](_0x982755,'isDirty'),_0x2599ce['bind']('length')['to'](_0x982755),_0x2599ce['bind']('type')['to'](_0x982755,'type',_0x473ed3=>'suggestion-'+_0x473ed3),_0x982755['on']('escape',()=>{_0x260b06['fire']('escape');}),this['_annotationViews']['set'](_0x29f768['id'],_0x2599ce));const _0x5477de=_0x34ed2e['createCommentThreadController'](_0x29f768['commentThread'],_0x982755),_0x2d9535=new ge(_0x40c9c0,_0x29f768,_0x982755,_0x5477de),_0x596c03=_0x29f768['getAllAdjacentSuggestions']()['filter'](_0x3604b2=>_0x3604b2['isInContent']);_0x982755['descriptionParts']=_0x40c9c0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x596c03),this['_suggestionToController']['set'](_0x29f768,_0x2d9535),this['_viewToController']['set'](_0x982755,_0x2d9535),_0x260b06=_0x31dcc3['createAnnotation']({'view':_0x2599ce,'target':()=>{const _0x29d74b=[],_0xecb51b=_0x29f768['getAllAdjacentSuggestions']()['filter'](_0x51f000=>_0x51f000['isInContent']);for(const _0x57d329 of _0xecb51b)_0x29d74b['push'](..._0x57d329['getMarkers']());return _0xd1bf56(_0x40c9c0['editing'],_0x29d74b);},'type':()=>'suggestion-'+_0x2d9535['view']['type']}),_0x34ed2e['_bindAnnotationToEditors'](_0x982755,_0x260b06),_0x31dcc3['add'](_0x260b06),_0x1bd00c['registerAnnotation'](_0x260b06);}['_destroyController'](_0x44fdaa){const _0x31eda2=this['editor']['plugins']['get']('CommentsRepository'),_0x578943=this['editor']['plugins']['get']('Annotations'),_0x1cac03=this['_suggestionToController']['get'](_0x44fdaa),_0x3b0954=_0x1cac03['view'],_0x3587e4=_0x578943['getByInnerView'](_0x3b0954);_0x31eda2['_unbindEditors'](_0x3b0954),_0x3587e4&&_0x578943['remove'](_0x3587e4),this['_suggestionToController']['delete'](_0x44fdaa),this['_viewToController']['delete'](_0x3b0954),_0x1cac03['destroy']();}['_updateController'](_0x2d566f){if(!_0x2d566f['isInContent']||!this['_suggestionToController']['has'](_0x2d566f))return;const _0xf0e9a8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4959dd=this['_suggestionToController']['get'](_0x2d566f),_0x2c3f36=_0x2d566f['getAllAdjacentSuggestions']();_0x4959dd['view']['descriptionParts']=_0xf0e9a8['descriptionFactory']['getDescriptions'](_0x2c3f36);}['destroy'](){for(const _0x57d56a of this['_suggestionToController']['keys']())this['_destroyController'](_0x57d56a);for(const _0x3447c3 of this['_annotationViews']['values']())_0x3447c3['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function pe(_0xfc2268){return'model'in _0xfc2268;}class k extends _0x3c70aa{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x11b206){this['editor']['plugins']['get'](p)['adapter']=_0x11b206;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0xfb046){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0xfb046);}['getSuggestions']({skipNotAttached:_0x17af5d=!0x1,toJSON:_0x23c387=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x17af5d,'toJSON':_0x23c387});}['getSuggestion'](_0x111dc0){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x111dc0);}}const w=['Pagination'];class T extends _0x3c70aa{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x562861=this['editor'];if(_0x562861['config']['define']('trackChangesData.editorCreator',_0xe36a80=>{const _0x5359ed=_0x562861['model']['document']['getRootNames']()['reduce']((_0x1a9a3d,_0x110935)=>(_0x1a9a3d[_0x110935]='',_0x1a9a3d),{});return _0x562861['constructor']['create'](_0x5359ed,_0xe36a80);}),'function'!=typeof _0x562861['config']['get']('trackChangesData')['editorCreator'])throw new _0x1c48ec('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0xf320c0){return N(this['editor'],!0x0,_0xf320c0);}['getDataWithDiscardedSuggestions'](_0x28ca7a){return N(this['editor'],!0x1,_0x28ca7a);}}class D extends _0x3c70aa{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x21ef87){function _0x3d8319(_0x345dd1){return _0x345dd1['map'](_0x54ff47=>String['fromCharCode'](_0x54ff47))['join']('');}super(_0x21ef87),this['result']='end',_0x21ef87[_0x3d8319([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3d8319([0x76,0x69,0x65,0x77])][_0x3d8319([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3d8319([0x61,0x75,0x74,0x6f]),_0x21ef87[_0x3d8319([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x3d8319([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3d8319([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x3d8319([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x3d8319([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function v(_0x2bfa2b){return void 0x0!==_0x2bfa2b['getRootsAttributes'];}async function N(_0x315c06,_0x370dae,_0x3f9468){const _0xa7a463=_0x56139c(_0x315c06,w);_0xa7a463['plugins']['push'](p,D),_0xa7a463['rootsAttributes']=v(_0x315c06)?_0x315c06['getRootsAttributes']():void 0x0;const _0x374434=document['createDocumentFragment'](),_0x198879=_0x315c06['config']['get']('trackChangesData')['editorCreator'],_0x4ca637=await _0x198879(_0xa7a463,()=>function(_0x88a254){const _0x3d6599=document['createElement']('div');return _0x88a254['appendChild'](_0x3d6599),_0x3d6599;}(_0x374434));!function(_0x251600,_0x4f240c){const _0x107662=_0x251600['model']['document']['getRootNames']()['reduce']((_0x237791,_0x94daf7)=>(_0x237791[_0x94daf7]=_0x251600['data']['get']({'rootName':_0x94daf7}),_0x237791),{}),_0x27015c=_0x251600['plugins']['get']('Users')['users']['map'](_0x18c978=>({'id':_0x18c978['id'],'name':_0x18c978['name']})),_0x5ce987=_0x251600['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2383a7=_0x251600['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1420df=_0x4f240c['plugins']['get']('Users'),_0x15684e=_0x4f240c['plugins']['get']('TrackChangesEditing'),_0x119fde=_0x4f240c['plugins']['get']('CommentsRepository');for(const _0x2ddb01 of _0x119fde['getCommentThreads']())_0x2ddb01['remove']();for(const _0x528a51 of _0x27015c)_0x1420df['getUser'](_0x528a51['id'])||_0x1420df['addUser'](_0x528a51);_0x1420df['me']||_0x1420df['useAnonymousUser']();for(const _0x4045a9 of _0x2383a7)_0x119fde['addCommentThread'](_0x4045a9);for(const _0x553cf5 of _0x5ce987)_0x15684e['addSuggestionData'](_0x553cf5);_0x4f240c['data']['set'](_0x107662);}(_0x315c06,_0x4ca637),_0x4ca637['execute'](_0x370dae?'acceptAllSuggestions':'discardAllSuggestions');const _0x49aa81=v(_0x4ca637)?_0x4ca637['getFullData'](_0x3f9468):_0x4ca637['data']['get'](_0x3f9468);return await _0x4ca637['destroy'](),_0x49aa81;}export{as as BaseSuggestionThreadView,u as Suggestion,de as SuggestionThreadView,ue as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing};
|
|
23
|
+
import{Command as Qt,Plugin as _0x1a8d41,PendingActions as _0x1216bf,icons as _0x17dfe6}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x3e1631,ObservableMixin as _0x202400,uid as _0x2d895c,insertToPriorityArray as _0x440e6c,priorities as _0x33fff0,logWarning as _0x49b789,getEnvKeystrokeText as _0x5e421e,FocusTracker as _0x4a23c5,KeystrokeHandler as _0x3e3b67,Collection as _0x17dd7e}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x1ee506,View as _0xa25bf7,ViewCollection as _0x4ca41b,FocusCycler as ts,ViewModel as _0x21f38b,createDropdown as _0x3def1e,SplitButtonView as _0x4c437f,addListToDropdown as te,MenuBarMenuView as _0x5322a7,MenuBarMenuListView as _0x35bbff,ListSeparatorView as _0x4e1e14,MenuBarMenuListItemView as _0x5e26ef,MenuBarMenuListItemButtonView as _0x3f9e9d}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x13f3e8,hashObject as _0x8f40a1,surroundingMarkersDetector as _0xbbac63,FOCUS_ANNOTATION_KEYSTROKE as _0x471202,AriaDescriptionView as _0x277183,setupThreadKeyboardNavigation as _0x135e20,trimHtml as ti,UserView as _0x285333,LateFocusButtonView as _0x644c1d,getDateTimeFormatter as _0x1b6053,getAllMarkersDomElementsSorted as _0x403b26,sanitizeEditorConfig as _0x1644a5}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x4e311f,LiveRange as _0x4b1aef,LivePosition as _0x268cfa}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x15c908,toWidget as _0x5f0450}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x45c518,set as _0x94932c,isEqual as _0xf684d1,unset as _0x4fcc0c,omit as xt}from'lodash-es';import{Delete as _0x16cbb0,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x2d90c1,ShiftEnter as _0x411e1a}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends Qt{['_enabledCommands'];constructor(_0xc67249,_0x3cdb4e){super(_0xc67249),this['_enabledCommands']=_0x3cdb4e,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 _0x431d4f of this['editor']['commands']['commands']())_0x431d4f['affectsData']&&!this['_enabledCommands']['has'](_0x431d4f)&&_0x431d4f['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x3ba022 of this['editor']['commands']['commands']())_0x3ba022['affectsData']&&!this['_enabledCommands']['has'](_0x3ba022)&&_0x3ba022['clearForceDisabled']('TrackChangesCommand');}}class O extends Qt{['_suggestions'];constructor(_0x2497c6,_0x5ec2d0){super(_0x2497c6),this['_suggestions']=_0x5ec2d0,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4d1eb7){const _0x19325f=this['_suggestions']['get'](_0x4d1eb7);if(!_0x19325f)throw new _0x3e1631('track-changes-accept-suggestion-not-found',this);const _0x1ae294=_0x19325f['getRanges']();this['editor']['model']['canEditAt'](_0x1ae294)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x19325f);}}class R extends Qt{['_suggestions'];constructor(_0x3d0a47,_0xe5c7e1){super(_0x3d0a47),this['_suggestions']=_0xe5c7e1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x70504b){const _0xace69f=this['_suggestions']['get'](_0x70504b);if(!_0xace69f)throw new _0x3e1631('track-changes-discard-suggestion-not-found',this);const _0x5f4a96=_0xace69f['getRanges']();this['editor']['model']['canEditAt'](_0x5f4a96)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0xace69f);}}function ns(_0x358364,_0x299c91){let _0x371422='';return _0x371422+=_0x358364['split']('*')['map']((_0x15305a,_0x5b1250)=>_0x5b1250%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x15305a)+'</span>':nn(_0x15305a))['join'](''),_0x299c91&&(_0x371422+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x299c91['value']+'\x22\x20title=\x22'+_0x299c91['title']+'\x22></span>'),_0x371422;}function nn(_0x5aae38){const _0x549d32=document['createElement']('span');return _0x549d32['innerText']=_0x5aae38,_0x549d32['innerHTML'];}function Wt(_0x4f6cf4){return _0x4f6cf4['sort']((_0x52c2a1,_0x754e1a)=>'deletion'==_0x52c2a1['type']&&'deletion'!=_0x754e1a['type']?-0x1:'deletion'!=_0x52c2a1['type']&&'deletion'==_0x754e1a['type']?0x1:0x0);}function to(_0x3ed928,_0x43aa5b){let _0x34e296,_0x1161e0=0x0;const _0x4b5021=[],_0x1acc74=_0x43aa5b['schema'];for(;_0x1161e0<_0x3ed928['length'];){const _0x674d5a=_0x3ed928[_0x1161e0],_0x2bd79b=_0x3ed928[_0x1161e0+0x1];_0x34e296||(_0x34e296=_0x43aa5b['createPositionBefore'](_0x674d5a)),on(_0x43aa5b,_0x674d5a,_0x2bd79b)||(_0x4b5021['push'](_0x43aa5b['createRange'](_0x34e296,_0x1acc74['isObject'](_0x674d5a)?_0x43aa5b['createPositionAfter'](_0x674d5a):_0x43aa5b['createPositionAt'](_0x674d5a,'end'))),_0x34e296=null),_0x1161e0++;}return _0x4b5021;}function on(_0x19cbc1,_0x5c56dc,_0x4d4301){if(!_0x4d4301)return!0x1;const _0x53346b=_0x19cbc1['createPositionAfter'](_0x5c56dc),_0x24f247=_0x19cbc1['createPositionBefore'](_0x4d4301);return _0x53346b['isTouching'](_0x24f247);}function Xt(_0x4f1942,_0x1e66c0,_0x17de32){for(;_0x17de32['length'];){const _0x15ecb6=_0x17de32['splice'](0x0,0x64);_0x4f1942['change'](()=>{for(const _0x5bf155 of _0x15ecb6)_0x5bf155['isInContent']&&_0x1e66c0['execute'](_0x5bf155['id']);});}}class x extends Qt{['_command'];['_suggestions'];constructor(_0x10e0d2,_0x291e86,_0x660272){super(_0x10e0d2),this['_command']=_0x291e86,this['_suggestions']=_0x660272,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x4fff34=Array['from'](this['_suggestions']['values']())['some'](_0x59f75d=>_0x59f75d['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x4fff34;}['execute'](){const _0x12ac8c=Wt(Array['from'](this['_suggestions']['values']()));for(const _0x4235ac of _0x12ac8c){const _0x230e38=_0x4235ac['getRanges']();if(!this['editor']['model']['canEditAt'](_0x230e38))return;}Xt(this['editor']['model'],this['_command'],_0x12ac8c);}}class E extends Qt{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x1a1a09,_0x17892d,_0x23b1c4){super(_0x1a1a09),this['_command']=_0x17892d,this['_suggestions']=_0x23b1c4,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x19c234=this['editor']['model']['document']['selection'],_0x6fdbbc=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x564ef5,_0x1f5521){const _0x22f911=Array['from'](_0x564ef5['getRanges']()),_0x4715c8=new Set();for(const _0x2d07cc of _0x1f5521)if(_0x2d07cc['isInContent']){for(const _0x48ffb7 of _0x22f911)for(const _0x45a7f5 of _0x2d07cc['getRanges']())(_0x48ffb7['isIntersecting'](_0x45a7f5)||_0x564ef5['isCollapsed']&&!_0x2d07cc['isMultiRange']&&_0x2d07cc['next']&&_0x45a7f5['end']['isTouching'](_0x48ffb7['start']))&&_0x4715c8['add'](_0x2d07cc);}return _0x4715c8;}(_0x19c234,_0x6fdbbc),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x4a414e=Wt(Array['from'](this['_selectedSuggestions']));for(const _0x371b17 of _0x4a414e){const _0x4aeac9=_0x371b17['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4aeac9))return;}Xt(this['editor']['model'],this['_command'],_0x4a414e);}}class u extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x202400(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x33ba08,_0x595dbb){super(),this['id']=_0x595dbb['id'],this['type']=_0x595dbb['type'],this['subType']=_0x595dbb['subType']||null,this['author']=_0x595dbb['author'],this['creator']=_0x595dbb['creator']||_0x595dbb['author'],this['isExternal']=Boolean(_0x595dbb['attributes']&&_0x595dbb['attributes']['@external']),this['data']=null,this['_model']=_0x33ba08,this['_onAccept']=_0x595dbb['onAccept'],this['_onDiscard']=_0x595dbb['onDiscard'],this['_onAttributesChange']=_0x595dbb['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x595dbb['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get['head'](){let _0x1a2472=this;for(;_0x1a2472['previous'];)_0x1a2472=_0x1a2472['previous'];return _0x1a2472;}get['hasComments'](){return!!this['commentThread']&&this['commentThread']['length']>0x0;}get['isMultiRange'](){if(0x0==this['_markerNames']['size'])return!0x1;return 0x6==Array['from'](this['_markerNames'])[0x0]['split'](':')['length'];}get['isInContent'](){return null!==this['getFirstMarker']();}['addMarkerName'](_0x3716e4){this['_markerNames']['add'](_0x3716e4);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x390d89=>this['_model']['markers']['get'](_0x390d89))['filter'](_0x5bef5a=>_0x5bef5a);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x457d0f=>{for(const _0x2fc8be of this['getMarkers']())_0x457d0f['removeMarker'](_0x2fc8be);}),this['_markerNames']['clear']();}['removeMarker'](_0x4283cd){this['_model']['change'](_0x330a41=>{_0x330a41['removeMarker'](_0x4283cd);}),this['_markerNames']['delete'](_0x4283cd);}['addRange'](_0x2fa53f){const _0x370f18='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x370f18),this['_model']['change'](_0x32d7df=>{_0x32d7df['addMarker'](_0x370f18,{'range':_0x2fa53f,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x5cb200){for(const _0x7426d1 of this['getRanges']())if(_0x7426d1['isIntersecting'](_0x5cb200))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x1dbe79=>_0x1dbe79['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x204be9,_0x3a0618)=>[..._0x204be9,..._0x3a0618['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x5137b0=this['getRanges']();if(0x1!=_0x5137b0['length'])return null;const _0x23f684=_0x5137b0[0x0],_0xefe8ef=_0x23f684['start']['nodeAfter'],_0x5e2a8e=_0x23f684['end']['nodeBefore'];return _0xefe8ef instanceof _0x4e311f?_0xefe8ef!=_0x5e2a8e?null:_0xefe8ef: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 _0x579a4e=[];let _0x51c5b8=this['head'];for(;_0x51c5b8;)_0x579a4e['push'](_0x51c5b8),_0x51c5b8=_0x51c5b8['next'];return _0x579a4e;}['setAttribute'](_0x9565c3,_0x54658e){const _0x3bde5c=_0x45c518(this['attributes']);_0x94932c(_0x3bde5c,_0x9565c3,_0x54658e),_0xf684d1(_0x3bde5c,this['attributes'])||(this['attributes']=_0x3bde5c,this['_onAttributesChange'](_0x3bde5c));}['removeAttribute'](_0xb989d1){const _0x408f4e=_0x45c518(this['attributes']);_0x4fcc0c(_0x408f4e,_0xb989d1),_0xf684d1(_0x408f4e,this['attributes'])||(this['attributes']=_0x408f4e,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 _0x2d895c()['substr'](0x1,0x5);}}function o(_0x34761d,_0x41b1a4,_0x43f1d1){const _0x469e7b=_0x34761d['t'],t=_0x34761d['t'];switch(_0x41b1a4){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'*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',_0x43f1d1);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x43f1d1);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x43f1d1);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x43f1d1);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x43f1d1);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',_0x43f1d1);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x43f1d1);case'*Replace\x20image\x20URL*':return t('*Replace\x20image\x20URL*');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',_0x43f1d1);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x43f1d1);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x43f1d1);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x43f1d1);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x43f1d1);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x43f1d1);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x43f1d1);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x43f1d1);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x43f1d1);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x43f1d1);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x43f1d1);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x43f1d1);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x43f1d1);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x43f1d1);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x43f1d1);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x43f1d1);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x43f1d1);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'},_0x43f1d1);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x43f1d1);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x43f1d1);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x43f1d1);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x43f1d1);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x43f1d1);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});case'ELEMENT_CAPTION':return t({'string':'caption','id':'ELEMENT_CAPTION'});case'ELEMENT_HORIZONTAL_LINE':return t({'string':'horizontal\x20line','plural':'%0\x20horizontal\x20lines','id':'ELEMENT_HORIZONTAL_LINE'},_0x43f1d1);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x43f1d1);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x43f1d1);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x43f1d1);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x43f1d1);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_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'},_0x43f1d1);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x43f1d1);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'},_0x43f1d1);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_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'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'},_0x43f1d1);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x43f1d1);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'},_0x43f1d1);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x43f1d1);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'},_0x43f1d1);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x43f1d1);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x43f1d1);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'},_0x43f1d1);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x43f1d1);case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'EXTERNAL_AVATAR':return _0x469e7b({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x43f1d1);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x469e7b({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x43f1d1);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x43f1d1);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'},_0x43f1d1);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'},_0x43f1d1);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'},_0x43f1d1);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x41b1a4;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x336b42,_0x5063f5){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x336b42,this['_locale']=_0x5063f5;}['getDescriptions'](_0x44d422){const _0x2183b1=[],_0x115b32=new Set(),_0x1b70d9=new Set();for(let _0x233ed2=0x0;_0x233ed2<_0x44d422['length'];_0x233ed2++){const _0x5ab805=_0x44d422[_0x233ed2];if(!_0x5ab805['isInContent'])continue;const _0x139e34=this['_handleCustomCallbackDescription'](_0x5ab805);if(_0x139e34){if(null!=_0x5ab805['subType']){if(_0x115b32['has'](_0x5ab805['subType']))continue;_0x115b32['add'](_0x5ab805['subType']);}_0x2183b1['push'](_0x139e34);}else{if('attribute'!=_0x5ab805['type'])'insertion'!=_0x5ab805['type']&&'deletion'!=_0x5ab805['type']||this['_handleInsertRemoveSuggestionDescription'](_0x2183b1,_0x5ab805,_0x44d422[_0x233ed2+0x1]);else{const _0x626dc3=_0x5ab805['data']['key'];if(_0x1b70d9['has'](_0x626dc3))continue;_0x1b70d9['add'](_0x5ab805['data']['key']),_0x626dc3==m?this['_handleRenameSuggestionDescription'](_0x2183b1,_0x5ab805):this['_handleAttributeSuggestionDescription'](_0x2183b1,_0x5ab805);}}}return this['_resolveDescriptionItems'](_0x2183b1);}['registerDescriptionCallback'](_0x488975){this['_customCallbacks']['push'](_0x488975);}['registerElementLabel'](_0x20f5d0,_0x3e3fa6,_0x5e543d=_0x33fff0['normal']){'function'==typeof _0x20f5d0?_0x440e6c(this['_itemLabelsCallbacks'],{'matchingCallback':_0x20f5d0,'label':_0x3e3fa6,'priority':_0x5e543d}):this['_itemLabels']['set'](_0x20f5d0,_0x3e3fa6);}['registerAttributeLabel'](_0x436f90,_0x124bb6){this['_attributeLabels']['set'](_0x436f90,_0x124bb6);}['getItemLabel'](_0xc5d489,_0x1e90d3=0x1){let _0x117578;for(const _0x472c92 of this['_itemLabelsCallbacks'])if(_0x472c92['matchingCallback'](_0xc5d489)){_0x117578=_0x472c92['label'];break;}return _0x117578||(_0x117578=this['_itemLabels']['get'](_0xc5d489['name'])),_0x117578?_0x117578(_0x1e90d3):0x1!==_0x1e90d3?_0x1e90d3+'\x20'+_0xc5d489['name']+'s':''+_0xc5d489['name'];}['_addDescriptionItems'](_0x2aff6e,_0x3db370){const _0x54e5a2=_0x3db370['getFirstRange']()['getWalker'](),_0x20a1b7='insertion'==_0x3db370['type']?'add':'remove';for(const _0x24d4dd of _0x54e5a2){const _0x139500=_0x24d4dd['item'],_0x5ac080=_0x2aff6e[_0x2aff6e['length']-0x1];if(_0x139500['is']('$textProxy'))_0x5ac080&&_0x5ac080['type']['indexOf']('Container')>-0x1&&_0x2aff6e['pop'](),_0x5ac080&&'text'==_0x5ac080['type']?_0x5ac080[_0x20a1b7]+=_0x139500['data']:_0x2aff6e['push']({'type':'text','add':'add'==_0x20a1b7?_0x139500['data']:'','remove':'remove'==_0x20a1b7?_0x139500['data']:''});else{if(this['_schema']['isObject'](_0x139500)){const _0xc0ec7d=_0x139500;if(_0x5ac080&&_0x5ac080['type']['indexOf']('Container')>-0x1&&_0x2aff6e['pop'](),'elementEnd'==_0x24d4dd['type'])continue;_0x5ac080&&_0x5ac080['type']==_0x20a1b7+'Object'&&_0x5ac080['element']['name']==_0xc0ec7d['name']?_0x5ac080['quantity']++:_0x2aff6e['push']({'type':_0x20a1b7+'Object','element':_0xc0ec7d,'quantity':0x1}),_0x54e5a2['skip'](_0x53be94=>!('elementEnd'==_0x53be94['type']&&_0x53be94['item']==_0x139500));}else{if(this['_schema']['checkChild'](_0x139500,'$text')||_0x139500['is']('element','softBreak')){const _0x31075e=_0x139500;if('add'==_0x20a1b7&&'elementStart'==_0x24d4dd['type']||'remove'==_0x20a1b7&&'elementEnd'==_0x24d4dd['type'])continue;if(_0x5ac080&&-0x1==_0x5ac080['type']['indexOf']('Container')){'text'==_0x5ac080['type']&&(_0x5ac080[_0x20a1b7]+='\x0a');continue;}let _0x2567ba;if(_0x2567ba='add'==_0x20a1b7?_0x31075e['nextSibling']&&!this['_schema']['isObject'](_0x31075e['nextSibling'])?_0x31075e['nextSibling']:null:_0x31075e['previousSibling']&&!this['_schema']['isObject'](_0x31075e['previousSibling'])?_0x31075e['previousSibling']:null,_0x31075e['isEmpty']||_0x2567ba&&_0x2567ba['isEmpty']){const _0x4ae07f=_0x2567ba&&_0x2567ba['isEmpty']?_0x2567ba:_0x31075e;_0x5ac080&&_0x5ac080['type']==_0x20a1b7+'EmptyContainer'&&_0x5ac080['element']['name']==_0x4ae07f['name']?_0x5ac080['quantity']++:_0x2aff6e['push']({'type':_0x20a1b7+'EmptyContainer','element':_0x4ae07f,'quantity':0x1});}else _0x2aff6e['push']({'type':_0x20a1b7+'Container','element':_0x31075e});}}}}}['_resolveDescriptionItems'](_0x28820f){const _0x18aa28=this['_locale'],_0x932589=[],_0x2844a5=[],_0x64220d=[];for(const _0x3c9b5c of _0x28820f)switch(_0x3c9b5c['type']){case'text':if(_0x3c9b5c['add']=_0x3c9b5c['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x3c9b5c['remove']=_0x3c9b5c['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x3c9b5c['add']&&''!=_0x3c9b5c['remove']){_0x932589['push']({'type':'replace','content':o(_0x18aa28,'REPLACE_TEXT',['\x22'+_0x3c9b5c['remove']+'\x22','\x22'+_0x3c9b5c['add']+'\x22'])});continue;}if(null!=_0x3c9b5c['add']['match'](/^ +$/)){_0x932589['push']({'type':'insertion','content':o(_0x18aa28,'*Insert:*\x20%0',o(_0x18aa28,'ELEMENT_SPACE',_0x3c9b5c['add']['length']))});continue;}if(null!=_0x3c9b5c['remove']['match'](/^ +$/)){_0x932589['push']({'type':'deletion','content':o(_0x18aa28,'*Remove:*\x20%0',o(_0x18aa28,'ELEMENT_SPACE',_0x3c9b5c['remove']['length']))});continue;}if(''!=_0x3c9b5c['add']){_0x932589['push']({'type':'insertion','content':o(_0x18aa28,'*Insert:*\x20%0','\x22'+_0x3c9b5c['add']+'\x22')});continue;}_0x932589['push']({'type':'deletion','content':o(_0x18aa28,'*Remove:*\x20%0','\x22'+_0x3c9b5c['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x932589['push']({'type':'insertion','content':o(_0x18aa28,'*Insert:*\x20%0',this['getItemLabel'](_0x3c9b5c['element'],_0x3c9b5c['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x932589['push']({'type':'deletion','content':o(_0x18aa28,'*Remove:*\x20%0',this['getItemLabel'](_0x3c9b5c['element'],_0x3c9b5c['quantity']))});continue;case'addContainer':_0x932589['push']({'type':'insertion','content':o(_0x18aa28,'*Split:*\x20%0',this['getItemLabel'](_0x3c9b5c['element'],_0x3c9b5c['quantity']))});continue;case'removeContainer':_0x932589['push']({'type':'deletion','content':o(_0x18aa28,'*Merge:*\x20%0',this['getItemLabel'](_0x3c9b5c['element'],_0x3c9b5c['quantity']))});continue;case'addFormat':_0x2844a5['push'](_0x3c9b5c['key']);continue;case'removeFormat':_0x64220d['push'](_0x3c9b5c['key']);continue;default:_0x932589['push'](_0x3c9b5c);}if(_0x2844a5['length']){const _0x4f988e=_0x2844a5['map'](_0x81b021=>this['_attributeLabels']['has'](_0x81b021)?this['_attributeLabels']['get'](_0x81b021):_0x81b021)['join'](',\x20');_0x932589['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x4f988e)});}if(_0x64220d['length']){const _0x3eba4f=_0x64220d['map'](_0x4f4bfc=>this['_attributeLabels']['has'](_0x4f4bfc)?this['_attributeLabels']['get'](_0x4f4bfc):_0x4f4bfc)['join'](',\x20');_0x932589['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x3eba4f)});}return _0x932589;}['_handleCustomCallbackDescription'](_0x43a5d8){for(const _0x22e9f9 of this['_customCallbacks']){const _0x51f5ba=_0x22e9f9(_0x43a5d8);if(_0x51f5ba&&'type'in _0x51f5ba)return _0x51f5ba;}}['_handleAttributeSuggestionDescription'](_0x521f48,_0x3440d4){const _0x2a1cfc=_0x3440d4['data'],_0x1b74ac=void 0x0===_0x2a1cfc['newValue']?'removeFormat':'addFormat';_0x521f48['push']({'type':_0x1b74ac,'key':_0x2a1cfc['key']});}['_handleRenameSuggestionDescription'](_0x24ee1c,_0x323ce0){_0x24ee1c['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x323ce0['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x3973e6,_0x2d3749,_0x525036){if(this['_addDescriptionItems'](_0x3973e6,_0x2d3749),_0x525036&&_0x525036['getFirstRange']()&&!_0x2d3749['getFirstRange']()['end']['isEqual'](_0x525036['getFirstRange']()['start'])){const _0x226388=_0x3973e6[_0x3973e6['length']-0x1],_0x3b1da3='insertion'==_0x2d3749['type']?'add':'remove';_0x226388&&'text'==_0x226388['type']&&(_0x226388[_0x3b1da3]+='\x0a');}}}class U extends _0x1a8d41{['afterInit'](){const _0x3143a2=this['editor'],_0x3ac730=_0x3143a2['plugins']['get']('TrackChangesEditing');_0x3143a2['commands']['get']('showAIAssistant')&&_0x3ac730['enableCommand']('showAIAssistant');}}class V extends _0x1a8d41{['afterInit'](){const _0x7f024=this['editor'],_0xcc11bc=_0x7f024['locale'];if(!_0x7f024['plugins']['has']('AlignmentEditing'))return;const _0x5ea60f=_0x7f024['plugins']['get']('TrackChangesEditing');_0x5ea60f['enableDefaultAttributesIntegration']('alignment'),_0x5ea60f['registerBlockAttribute']('alignment'),_0x5ea60f['descriptionFactory']['registerAttributeLabel']('alignment',o(_0xcc11bc,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2a954c=this['editor'],_0x50a58e=_0x2a954c['locale'];_0x2a954c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1257bc=>{if('formatBlock'!=_0x1257bc['type'])return;const {data:_0x7b422e}=_0x1257bc;if(_0x7b422e&&'alignment'==_0x7b422e['commandName']){const _0x268851=_0x7b422e['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x50a58e,'*Format:*\x20%0',function(_0x4f0614){switch(_0x4f0614){case'left':return o(_0x50a58e,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x50a58e,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x50a58e,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x50a58e,'FORMAT_JUSTIFY_TEXT');}}(_0x268851))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x1a8d41{['afterInit'](){const _0xff51f=this['editor'],_0x535438=_0xff51f['plugins']['get']('TrackChangesEditing'),_0x2be9fa=_0xff51f['locale'];for(const _0x4a1fcd of Zt){if(!_0xff51f['plugins']['has'](_0x4a1fcd))continue;const _0x346911=_0x4a1fcd['slice'](0x0,-0x7)['toLowerCase'](),_0x566798='FORMAT_'+_0x346911['toUpperCase']();_0x535438['enableDefaultAttributesIntegration'](_0x346911),_0x535438['registerInlineAttribute'](_0x346911),_0x535438['descriptionFactory']['registerAttributeLabel'](_0x346911,o(_0x2be9fa,_0x566798));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1b0def=this['editor'],_0x1cbdc5=_0x1b0def['locale'],_0x5e7abc=_0x1b0def['plugins']['get']('TrackChangesEditing');function _0x60bfa6(_0x47b3f4,_0x12eb53){_0x5e7abc['descriptionFactory']['registerDescriptionCallback'](_0x4308ca=>{if('formatInline'!=_0x4308ca['type'])return;const {data:_0x11c181}=_0x4308ca;return _0x11c181&&_0x11c181['commandName']===_0x47b3f4?_0x11c181['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1cbdc5,'*Format:*\x20%0',_0x12eb53)}:{'type':'format','content':o(_0x1cbdc5,'*Remove\x20format:*\x20%0',_0x12eb53)}:void 0x0;});}_0x60bfa6('bold',o(_0x1cbdc5,'FORMAT_BOLD')),_0x60bfa6('italic',o(_0x1cbdc5,'FORMAT_ITALIC')),_0x60bfa6('underline',o(_0x1cbdc5,'FORMAT_UNDERLINE')),_0x60bfa6('code',o(_0x1cbdc5,'FORMAT_CODE')),_0x60bfa6('strikethrough',o(_0x1cbdc5,'FORMAT_STRIKETHROUGH')),_0x60bfa6('subscript',o(_0x1cbdc5,'FORMAT_SUBSCRIPT')),_0x60bfa6('superscript',o(_0x1cbdc5,'FORMAT_SUPERSCRIPT'));}}class F extends _0x1a8d41{['afterInit'](){const _0x223ad4=this['editor'],_0x369b87=_0x223ad4['locale'];if(!_0x223ad4['plugins']['has']('BlockQuoteEditing'))return;const _0x4715a4=_0x223ad4['plugins']['get']('TrackChangesEditing'),_0x5bf2be=this['editor']['commands']['get']('blockQuote');_0x4715a4['enableCommand']('blockQuote',(_0x39e9db,_0x490475={})=>{const _0x25864a=this['editor']['model']['document']['selection'],_0x2eddd3=_0x490475&&void 0x0!==_0x490475['forceValue']?_0x490475['forceValue']:!_0x5bf2be['value'];let _0x858de7=[];if(_0x2eddd3){const _0x4da118=Array['from'](_0x25864a['getSelectedBlocks']())['filter'](_0x136040=>oo(_0x136040)||function(_0x59607d,_0x4481cc){const _0x395be6=_0x4481cc['checkChild'](_0x59607d['parent'],'blockQuote'),_0x20d3e2=_0x4481cc['checkChild'](['$root','blockQuote'],_0x59607d);return _0x395be6&&_0x20d3e2;}(_0x136040,this['editor']['model']['schema']));_0x858de7=to(_0x4da118,_0x223ad4['model']);}else{const _0x4b286e=Array['from'](_0x25864a['getSelectedBlocks']())['filter'](_0x871784=>oo(_0x871784));_0x858de7=to(_0x4b286e,_0x223ad4['model']);}_0x223ad4['model']['change'](()=>{for(const _0x3cdc80 of _0x858de7)_0x4715a4['markBlockFormat'](_0x3cdc80,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x2eddd3}]});});}),_0x4715a4['descriptionFactory']['registerDescriptionCallback'](_0x318143=>{const {data:_0x15e476}=_0x318143;if(_0x15e476&&'blockQuote'==_0x15e476['commandName']){const _0x2d59b9=o(_0x369b87,'ELEMENT_BLOCK_QUOTE');return _0x15e476['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x369b87,'*Set\x20format:*\x20%0',_0x2d59b9)}:{'type':'format','content':o(_0x369b87,'*Remove\x20format:*\x20%0',_0x2d59b9)};}});}}function oo(_0x57efac){return'blockQuote'==_0x57efac['parent']['name'];}class L extends _0x1a8d41{['afterInit'](){const _0xf92633=this['editor'],_0x4c4adc=_0xf92633['locale'],_0x3870ab=_0xf92633['plugins']['get']('TrackChangesEditing');_0xf92633['plugins']['has']('BookmarkEditing')&&(_0x3870ab['enableCommand']('insertBookmark'),_0x3870ab['enableDefaultAttributesIntegration']('updateBookmark'),_0x3870ab['registerBlockAttribute']('bookmarkId'),_0x3870ab['descriptionFactory']['registerDescriptionCallback'](_0x3d339e=>{if('insertion'!=_0x3d339e['type']&&'deletion'!=_0x3d339e['type']&&'attribute'!=_0x3d339e['type'])return;const _0x295086=_0x3d339e['getContainedElement']();if(null==_0x295086)return;if(!_0x295086['is']('element','bookmark'))return;const _0x21e17f=_0x295086['getAttribute']('bookmarkId');if('insertion'==_0x3d339e['type'])return{'type':'insertion','content':o(_0x4c4adc,'*Insert:*\x20%0','\x22'+_0x21e17f+'\x22\x20'+o(_0x4c4adc,'ELEMENT_BOOKMARK'))};if('deletion'==_0x3d339e['type'])return{'type':'deletion','content':o(_0x4c4adc,'*Remove:*\x20%0','\x22'+_0x21e17f+'\x22\x20'+o(_0x4c4adc,'ELEMENT_BOOKMARK'))};const {data:_0x4fc083}=_0x3d339e;if(!_0x4fc083||'bookmarkId'!=_0x4fc083['key'])return;return{'type':'format','content':o(_0x4c4adc,'*Set\x20bookmark:*\x20%0','\x22'+_0x4fc083['newValue']+'\x22')};}));}}class J extends _0x1a8d41{['afterInit'](){const _0x5112ed=this['editor'];_0x5112ed['plugins']['has']('CaseChange')&&(_0x5112ed['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x5112ed['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x5112ed['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x1a8d41{['afterInit'](){const _0x5d47ce=this['editor'];_0x5d47ce['commands']['get']('ckbox')&&_0x5d47ce['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x1a8d41{['afterInit'](){const _0x1550ca=this['editor'];if(!_0x1550ca['plugins']['has']('CodeBlock'))return;const _0x11400f=_0x1550ca['plugins']['get']('TrackChangesEditing'),_0x2fd408=_0x1550ca['locale'],_0x7e7ed6=_0x1550ca['config']['get']('codeBlock')['languages'],_0x68ef7e=_0x1550ca['commands']['get']('codeBlock');_0x11400f['enableCommand']('indentCodeBlock'),_0x11400f['enableCommand']('outdentCodeBlock'),_0x11400f['enableCommand']('codeBlock',(_0x5826e2,_0x3e7d44={})=>{const _0x2bfc2d=_0x1550ca['model'],_0x590d43=_0x1550ca['model']['document']['selection'],_0x4f28c0=_0x3e7d44&&void 0x0!==_0x3e7d44['forceValue']?_0x3e7d44['forceValue']:!_0x68ef7e['value'];let _0x5a3510;_0x3e7d44['language']||(_0x3e7d44['language']=_0x7e7ed6[0x0]['language']),_0x5a3510=_0x4f28c0?Array['from'](_0x590d43['getSelectedBlocks']())['filter'](_0x48999a=>eo(_0x48999a)||function(_0x44c059,_0x24daf6){if(_0x44c059['is']('rootElement')||_0x24daf6['isLimit'](_0x44c059))return!0x1;return _0x24daf6['checkChild'](_0x44c059['parent'],'codeBlock');}(_0x48999a,_0x2bfc2d['schema'])):Array['from'](_0x590d43['getSelectedBlocks']())['filter'](_0x391c32=>eo(_0x391c32));const _0xd4b2d8=to(_0x5a3510,_0x2bfc2d);_0x2bfc2d['change'](()=>{for(const _0x2bfee9 of _0xd4b2d8)_0x11400f['markBlockFormat'](_0x2bfee9,{'commandName':'codeBlock','commandParams':[{..._0x3e7d44,'forceValue':_0x4f28c0}],'formatGroupId':'blockName'});});}),(_0x11400f['descriptionFactory']['registerElementLabel']('codeBlock',_0x1efb94=>o(_0x2fd408,'ELEMENT_CODE_BLOCK',_0x1efb94)),_0x11400f['descriptionFactory']['registerDescriptionCallback'](_0x1698cf=>{if('formatBlock'!=_0x1698cf['type'])return;const _0x10d6d7=_0x2fd408['t'],{data:_0x56a2f1}=_0x1698cf;if(!_0x56a2f1||'codeBlock'!=_0x56a2f1['commandName'])return;const _0x4b051a=_0x56a2f1['commandParams'][0x0]['language'],_0x233162=_0x10d6d7(_0x7e7ed6['find'](_0x2c876b=>_0x2c876b['language']===_0x4b051a)['label'])['toLowerCase']();return _0x56a2f1['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2fd408,'*Set\x20format:*\x20%0',o(_0x2fd408,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x233162+')')}:{'type':'format','content':o(_0x2fd408,'*Remove\x20format:*\x20%0',o(_0x2fd408,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x40e475){return'codeBlock'==_0x40e475['name'];}class z extends _0x1a8d41{['afterInit'](){const _0x1a63bf=this['editor'];if(!_0x1a63bf['plugins']['has']('CommentsEditing'))return;_0x1a63bf['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x19f593,_0x1f7db9,_0x28c462){const _0x1f239c=[];for(const _0x43c215 of _0x1f7db9['getItems']())_0x43c215['hasAttribute'](_0x19f593)&&_0x1f239c['push'](_0x28c462['createRangeOn'](_0x43c215));return _0x1f239c;}function Ne(_0x357a33,_0x4b44b5,{showActiveMarker:_0x1c2300=!0x0}={}){const _0x3715d0=_0x357a33['plugins']['get']('TrackChangesEditing');return(_0x385ccc,_0x1e64b3,_0x206b0f)=>{if(!_0x206b0f['consumable']['test'](_0x1e64b3['markerRange'],_0x385ccc['name']))return;const _0x1b1739=_0x1e64b3['markerRange']['getWalker'](),_0x51ab2f=_0x1e64b3['markerRange']['start'],_0x42ad83=_0x357a33['model']['schema'];let _0x43aefd=null,_0x389831=null,_0x1113a7=!0x1,_0x4735ee=!0x1;for(const _0x5ac777 of _0x1b1739){const _0x106a5c=_0x5ac777['item'];_0x1113a7=_0x1113a7||_0x42ad83['isContent'](_0x106a5c);const _0x191f90=_0x206b0f['mapper']['toViewElement'](_0x106a5c);if(_0x191f90&&_0x191f90['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5ac777['type']&&(_0x42ad83['isBlock'](_0x106a5c)&&!_0x42ad83['isLimit'](_0x106a5c)&&(_0x106a5c['nextSibling']||_0x51ab2f['isAtEnd']?_0x43aefd&&_0x43aefd['parent']==_0x106a5c||(_0x43aefd=_0x106a5c,_0x38e7fd(_0x5ac777['previousPosition']),_0x4735ee=!0x0):_0x389831=_0x389831||_0x5ac777['previousPosition']));}function _0x38e7fd(_0x32c3e9){const {authorId:_0x3d2e86}=_0x3715d0['_splitMarkerName'](_0x1e64b3['markerName']),_0x25353c=_0x206b0f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4b44b5,'data-author-id':_0x3d2e86}),_0x18c499=_0x206b0f['mapper']['toViewPosition'](_0x32c3e9);_0x1c2300&&_0x3715d0['activeMarkers']['includes'](_0x1e64b3['markerName'])&&_0x206b0f['writer']['addClass']('ck-suggestion-marker--active',_0x25353c),_0x206b0f['writer']['insert'](_0x18c499,_0x25353c),_0x206b0f['mapper']['bindElementToMarker'](_0x25353c,_0x1e64b3['markerName']);}_0x1113a7||_0x4735ee||!_0x389831||_0x38e7fd(_0x389831);};}class K extends _0x1a8d41{static get['requires'](){return[_0x16cbb0];}['init'](){const _0x5246cb=this['editor'],_0x83b837=_0x5246cb['plugins']['get']('TrackChangesEditing');_0x83b837['enableCommand']('delete');const _0x1a338e=_0x5246cb['commands']['get']('deleteForward');_0x83b837['enableCommand']('deleteForward',(_0xc852bf,_0xe7238d={})=>{const _0x3a3fd0=_0x5246cb['model']['createSelection'](_0x5246cb['model']['document']['selection']);_0x3a3fd0['isCollapsed']&&_0x5246cb['model']['modifySelection'](_0x3a3fd0,{'direction':'forward','unit':_0xe7238d['unit']});const _0x4dd956=_0x3a3fd0['getFirstRange'](),_0x1d73d8=_0x4b1aef['fromRange'](_0x4dd956);let _0xe2cc63;_0xc852bf(_0xe7238d),_0xe2cc63='$graveyard'==_0x1d73d8['root']['rootName']?_0x5246cb['model']['createRange'](_0x4dd956['start']):_0x5246cb['model']['createRange'](_0x1d73d8['start'],_0x1d73d8['end']),_0x1d73d8['detach'](),_0x5246cb['model']['enqueueChange'](_0x1a338e['buffer']['batch'],_0x1c1422=>{_0x1a338e['buffer']['lock'](),_0x1c1422['setSelection'](_0x1c1422['createRange'](_0xe2cc63['end'])),_0x1a338e['buffer']['unlock']();});}),_0x5246cb['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Ne(_0x5246cb,'merge'),{'priority':'high'}),_0x5246cb['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x2614ae,_0x153e5c,_0x1beaa1)=>{_0x1beaa1['options']['showSuggestionHighlights']&&Ne(_0x5246cb,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x2614ae,_0x153e5c,_0x1beaa1);},{'priority':'high'}),_0x5246cb['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x19b7a8,_0x3cc2d5,_0x34a290)=>{const _0x58f6f7=_0x34a290['mapper']['markerNameToElements'](_0x3cc2d5['markerName']);if(_0x58f6f7){for(const _0x5a1b8f of _0x58f6f7)_0x5a1b8f['is']('uiElement')&&(_0x34a290['mapper']['unbindElementFromMarkerName'](_0x5a1b8f,_0x3cc2d5['markerName']),_0x34a290['writer']['remove'](_0x5a1b8f));}},{'priority':'high'});}}class W extends _0x1a8d41{['afterInit'](){const _0xb75311=this['editor'];if(!_0xb75311['plugins']['has']('ListEditing'))return;const _0x4e24a8=_0xb75311['locale'],_0x3777e0=_0xb75311['plugins']['get']('TrackChangesEditing'),_0x200f30=_0xb75311['plugins']['has']('TodoListEditing'),_0x4cb020=!!_0xb75311['config']['get']('list.multiBlock');function _0x488104(_0x2cf5b3){return{'type':'format','content':''+o(_0x4e24a8,'*Set\x20format:*\x20%0',_0x2cf5b3)};}function _0x402424(_0x1aca53){return{'type':'format','content':''+o(_0x4e24a8,'*Remove\x20format:*\x20%0',_0x1aca53)};}_0x3777e0['enableDefaultAttributesIntegration']('numberedList'),_0x3777e0['enableDefaultAttributesIntegration']('bulletedList'),_0x3777e0['enableDefaultAttributesIntegration']('customNumberedList'),_0x3777e0['enableDefaultAttributesIntegration']('customBulletedList'),_0x3777e0['enableDefaultAttributesIntegration']('indentList'),_0x3777e0['enableDefaultAttributesIntegration']('outdentList'),_0x3777e0['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x3777e0['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x3777e0['registerBlockAttribute']('listItemId'),_0x3777e0['registerBlockAttribute']('listType'),_0x3777e0['registerBlockAttribute']('listIndent'),_0x4cb020&&(_0x3777e0['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x3777e0['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x200f30&&(_0x3777e0['enableDefaultAttributesIntegration']('todoList'),_0x3777e0['enableDefaultAttributesIntegration']('checkTodoList'),_0x3777e0['registerBlockAttribute']('todoListChecked'),_0x3777e0['descriptionFactory']['registerDescriptionCallback'](_0x56c885=>{const {data:_0x1c976f}=_0x56c885;if(_0x1c976f&&'todoListChecked'==_0x1c976f['key'])return{'type':'format','content':_0x1c976f['newValue']?o(_0x4e24a8,'*Check\x20item*'):o(_0x4e24a8,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x5ba86a=>{if(_0x5ba86a['batch']['isUndo'])return!0x1;let _0x560059=!0x1;const _0x56ce2b=_0x3777e0['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x45d22e=>'todoListChecked'===_0x3777e0['_getAttributeKey'](_0x45d22e));for(const _0x3bfc81 of _0x56ce2b){'todo'!=_0x3bfc81['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x3777e0['_findSuggestions'](_0x3bfc81['getFirstRange'](),'attribute')['find'](_0x38c547=>'listType'===_0x3777e0['_getAttributeKey'](_0x38c547['suggestion']))||(_0x5ba86a['removeMarker'](_0x3bfc81['getFirstMarker']()),_0x560059=!0x0));}return _0x560059;})),_0x3777e0['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x4e24a8,'FORMAT_INDENT'));const _0x2ae497={'type':'format','content':''};_0x3777e0['descriptionFactory']['registerDescriptionCallback'](_0x577b5d=>{const {data:_0x39790c}=_0x577b5d;if(!_0x39790c||'listType'!=_0x39790c['key'])return;let _0x4fd4eb=_0x577b5d['head'];for(;_0x4fd4eb;){if(_0x4fd4eb['data']&&(('listStyle'==_0x4fd4eb['data']['key']||'listMarkerStyle'==_0x4fd4eb['data']['key'])&&(_0x4fd4eb['data']['newValue']&&'default'!=_0x4fd4eb['data']['newValue']||'default'!=_0x4fd4eb['data']['oldValue']&&!_0x39790c['newValue'])||!_0x4cb020&&_0x4fd4eb['data']['key']==m))return _0x2ae497;_0x4fd4eb=_0x4fd4eb['next'];}if(null==_0x39790c['newValue'])switch(_0x39790c['oldValue']){case'bulleted':return _0x402424(o(_0x4e24a8,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x402424(o(_0x4e24a8,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x402424(o(_0x4e24a8,'ELEMENT_TODO_LIST'));}switch(_0x39790c['newValue']){case'bulleted':return _0x488104(o(_0x4e24a8,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x488104(o(_0x4e24a8,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x488104(o(_0x4e24a8,'ELEMENT_TODO_LIST'));}}),_0x3777e0['descriptionFactory']['registerDescriptionCallback'](_0x487f9d=>{const {data:_0x2aef4e}=_0x487f9d;if(_0x2aef4e&&'listIndent'==_0x2aef4e['key'])return null==_0x2aef4e['newValue']||null==_0x2aef4e['oldValue']&&0x0==_0x2aef4e['newValue']?_0x2ae497:void 0x0;}),_0x3777e0['descriptionFactory']['registerDescriptionCallback'](_0x58047b=>{if('attribute'!=_0x58047b['type'])return;const {data:_0x476fdd}=_0x58047b;if(!_0x476fdd||'listItemId'!=_0x476fdd['key'])return;const _0x40bbd2=Te(_0x58047b);return'newValue'==_0x40bbd2?{'type':'format','content':o(_0x4e24a8,'*Merge:*\x20list\x20item')}:'oldValue'==_0x40bbd2?{'type':'format','content':o(_0x4e24a8,'*Split:*\x20list\x20item')}:_0x2ae497;}),_0xb75311['model']['document']['registerPostFixer'](_0x3d877d=>this['listItemIdFixer'](_0x3d877d)),_0xb75311['model']['document']['registerPostFixer'](_0x15ec5a=>this['noTrackChangesFixer'](_0x15ec5a)),_0xb75311['model']['document']['on']('change:data',(_0x1edd60,_0xe34925)=>{if(_0xe34925['isUndo']||!_0xe34925['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x5e518e){if(_0x5e518e['batch']['isUndo']||!_0x5e518e['batch']['isLocal'])return!0x1;let _0x354b60=!0x1;const _0x3cdd9f=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x45a240=>_0x45a240['data']&&'listItemId'==_0x45a240['data']['key'])['filter'](_0x1ab6ff=>_0x1ab6ff['data']['newValue']&&_0x1ab6ff['data']['oldValue']);for(const _0x54ba00 of _0x3cdd9f)Te(_0x54ba00)||(_0x5e518e['removeMarker'](_0x54ba00['getFirstMarker']()),_0x354b60=!0x0);return _0x354b60;}['noTrackChangesFixer'](_0x38557c){if(_0x38557c['batch']['isUndo']||!_0x38557c['batch']['isLocal'])return!0x1;const _0xd67403=this['editor']['plugins']['get']('TrackChangesEditing');if(_0xd67403['trackChangesCommand']['value'])return!0x1;let _0x195156=!0x1;const _0x704e70=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x2e86ac=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x10ec3a=>'attribute'==_0x10ec3a['type'])['filter'](_0x2e8538=>_0x704e70['includes'](_0x2e8538['attributeKey']));if(0x0==_0x2e86ac['length'])return _0x195156;for(const _0x12fc75 of _0x2e86ac){const _0x39fbf5=_0xd67403['_findSuggestions'](_0x12fc75['range'],'attribute')['filter'](_0x17145d=>!_0x17145d['meta']['isNextTo'])['map'](_0x18af09=>_0x18af09['suggestion'])['filter'](_0x137ad6=>{const _0x3e5915=_0xd67403['_getAttributeKey'](_0x137ad6);return _0x704e70['includes'](_0x3e5915);});if(_0x39fbf5['length']){for(const _0xf24f45 of _0x39fbf5)_0x38557c['removeMarker'](_0xf24f45['getFirstMarker']());_0x195156=!0x0;}}return _0x195156;}['assureChains'](){const _0x485f1e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x26700e=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x43cccc;const _0x4744d5=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x407600=>{if(_0x407600['data']['oldRange']||!_0x407600['data']['newRange'])return null;if(!_0x407600['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0xc227f6}=_0x485f1e['_splitMarkerName'](_0x407600['name']);if(!_0x485f1e['hasSuggestion'](_0xc227f6))return null;const _0x596f4a=_0x485f1e['getSuggestion'](_0xc227f6);return _0x26700e['includes'](_0x596f4a['data']['key']);})['map'](_0x5bcc1f=>{const {id:_0x22267b}=_0x485f1e['_splitMarkerName'](_0x5bcc1f['name']),_0x56b88e=_0x485f1e['getSuggestion'](_0x22267b);return _0x43cccc=_0x56b88e['attributes']['groupId'],_0x56b88e['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x4744d5['size'])return;const _0x4df852=_0x485f1e['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x32c393=>'attribute'==_0x32c393['type']&&_0x32c393['data']&&_0x26700e['includes'](_0x32c393['data']['key'])&&_0x32c393['attributes']['groupId']!=_0x43cccc)['map'](_0x369dc8=>({'listItem':_0x369dc8['getFirstRange']()['start']['nodeAfter'],'groupId':_0x369dc8['attributes']['groupId']})),_0x1cbb3d=new Set();for(const {groupId:_0x4d4ff9,listItem:_0x4950e4}of _0x4df852)_0x4744d5['has'](_0x4950e4)&&_0x1cbb3d['add'](_0x4d4ff9);for(const _0x19ffa4 of _0x485f1e['getSuggestions']())_0x1cbb3d['has'](_0x19ffa4['attributes']['groupId'])&&_0x19ffa4['setAttribute']('groupId',_0x43cccc);}['_supportLegacySuggestions'](){const _0x3d2422=this['editor'],_0x51ca7c=_0x3d2422['locale'],_0x39ad20=_0x3d2422['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x39ad20['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x535229,_0x29a91b){const _0x503524=[];for(let _0x5c2b7b of _0x535229)_0x5c2b7b['start']['nodeAfter']===_0x5c2b7b['end']['parent']&&(_0x5c2b7b=_0x3d2422['model']['createRange'](_0x3d2422['model']['createPositionAt'](_0x5c2b7b['start']['nodeAfter'],0x0))),_0x503524['push'](_0x5c2b7b);_0x3d2422['model']['change'](_0x41cef4=>{const _0x1762cf=_0x3d2422['model']['document']['selection'],_0x58e36c=Array['from'](_0x1762cf['getRanges']())['map'](_0x44d8b1=>_0x4b1aef['fromRange'](_0x44d8b1));_0x41cef4['setSelection'](_0x503524),_0x3d2422['commands']['get'](_0x29a91b['commandName'])['refresh'](),_0x29a91b['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x3d2422['execute'](_0x29a91b['commandName'],..._0x29a91b['commandParams']),_0x41cef4['setSelection'](_0x58e36c);for(const _0x358211 of _0x58e36c)_0x358211['detach']();});}),_0x39ad20['descriptionFactory']['registerElementLabel'](function(_0x608dc5){const _0x1a4203=!_0x3d2422['model']['schema']['isObject'](_0x608dc5),_0x1243be=_0x608dc5['previousSibling'],_0x20baae=_0x608dc5['nextSibling'],_0x5517a7=_0x608dc5['getAttribute']('listItemId'),_0x4ea83a=!_0x1243be||_0x1243be['getAttribute']('listItemId')!==_0x5517a7,_0x4c3a71=!_0x20baae||_0x20baae['getAttribute']('listItemId')!==_0x5517a7;return _0x1a4203&&Boolean(_0x5517a7)&&_0x4ea83a&&_0x4c3a71;},_0x519838=>o(_0x51ca7c,'ELEMENT_LIST_ITEM',_0x519838));}['_registerLegacyDescription'](){const _0x48e031=this['editor'],_0xb62837=_0x48e031['locale'];function _0x12a6c0(_0x4c12c5){const _0x1e83f5=_0x48e031['commands']['get']('bulletedList')['value'],_0x619ccb=_0x48e031['commands']['get']('numberedList')['value'];return'numberedList'===_0x4c12c5?_0x1e83f5:_0x619ccb;}_0x48e031['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x3be770){if('formatBlock'!=_0x3be770['type'])return;const {data:_0x46bdd9}=_0x3be770;if(!_0x46bdd9)return;let _0x931c5f,_0x5c8635,_0x4dd5a4,_0x149a55;switch(_0x46bdd9['commandName']){case'bulletedList':_0x4dd5a4=_0x46bdd9['commandParams'][0x0]['forceValue'],_0x149a55=_0x12a6c0(_0x46bdd9['commandName']),_0x931c5f=_0x4dd5a4?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x149a55&&_0x48e031['config']['get']('list.multiBlock')||(_0x931c5f='*Change\x20to:*\x20%0'),_0x5c8635={'type':'format','content':o(_0xb62837,_0x931c5f,o(_0xb62837,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x4dd5a4=_0x46bdd9['commandParams'][0x0]['forceValue'],_0x149a55=_0x12a6c0(_0x46bdd9['commandName']),_0x931c5f=_0x4dd5a4?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x149a55&&_0x48e031['config']['get']('list.multiBlock')||(_0x931c5f='*Change\x20to:*\x20%0'),_0x5c8635={'type':'format','content':o(_0xb62837,_0x931c5f,o(_0xb62837,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x931c5f='*Indent:*\x20%0',_0x5c8635={'type':'format','content':o(_0xb62837,_0x931c5f,o(_0xb62837,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x931c5f=function(_0x4013f0){const _0x334bbe=_0x4013f0['getFirstRange']();let _0x44b83c=_0x334bbe['start']['nodeAfter'];for(;_0x44b83c&&_0x334bbe['containsItem'](_0x44b83c);){if(_0x44b83c['getAttribute']('listIndent')>0x0)return!0x1;_0x44b83c=_0x44b83c['nextSibling'];}return!0x0;}(_0x3be770)?o(_0xb62837,'*Format:*\x20remove\x20from\x20%0',o(_0xb62837,function(_0x5a8bde){return'ELEMENT_'+_0x5a8bde['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x3be770))):o(_0xb62837,'*Outdent:*\x20%0',o(_0xb62837,'ELEMENT_LIST_ITEM')),_0x5c8635={'type':'format','content':_0x931c5f};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x46bdd9['multipleBlocks']&&(_0x931c5f='*Merge:*\x20%0',_0x5c8635={'type':'deletion','content':o(_0xb62837,_0x931c5f,o(_0xb62837,'ELEMENT_LIST_ITEM'))});}return _0x5c8635;});}}function Te(_0x38e383){let _0x55278a=_0x38e383['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x55278a;){const _0x42bc06=_0x55278a['getAttribute']('listItemId');if(!_0x42bc06)return!0x1;if(_0x42bc06==_0x38e383['data']['newValue'])return'newValue';if(_0x42bc06==_0x38e383['data']['oldValue'])return'oldValue';_0x55278a=_0x55278a['previousSibling'];}return!0x1;}class ye extends _0x1a8d41{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x3f0409=this['editor']['config']['get']('list.properties'),_0x4b52db=this['editor']['plugins']['get']('TrackChangesEditing');_0x3f0409['styles']&&(_0x4b52db['enableDefaultAttributesIntegration']('listStyle'),_0x4b52db['registerBlockAttribute']('listStyle')),_0x3f0409['reversed']&&(_0x4b52db['enableDefaultAttributesIntegration']('listReversed'),_0x4b52db['registerBlockAttribute']('listReversed')),_0x3f0409['startIndex']&&(_0x4b52db['enableDefaultAttributesIntegration']('listStart'),_0x4b52db['registerBlockAttribute']('listStart'));const _0x1c2b3e={'type':'format','content':''};_0x4b52db['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x2418ee=this['editor']['locale'];_0x4b52db['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x2418ee,'FORMAT_LIST_REVERSED')),_0x4b52db['descriptionFactory']['registerDescriptionCallback'](_0x5022b7=>{const {data:_0x28d5ea}=_0x5022b7;if(_0x28d5ea&&'listReversed'==_0x28d5ea['key'])return null==_0x28d5ea['newValue']||0x0==_0x28d5ea['newValue']&&null==_0x28d5ea['oldValue']?_0x1c2b3e:void 0x0;}),_0x4b52db['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x2418ee,'FORMAT_LIST_START')),_0x4b52db['descriptionFactory']['registerDescriptionCallback'](_0x1d3c9b=>{const {data:_0x349f56}=_0x1d3c9b;if(_0x349f56&&'listStart'==_0x349f56['key'])return null==_0x349f56['newValue']||0x1==_0x349f56['newValue']&&null==_0x349f56['oldValue']?_0x1c2b3e:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x175566=>{if(_0x175566['batch']['isUndo'])return!0x1;let _0x32655e=!0x1;const _0x2b2bd5=_0x4b52db['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5c4ad7=>{const _0x5d61af=_0x4b52db['_getAttributeKey'](_0x5c4ad7);return'listStart'==_0x5d61af||'listReversed'==_0x5d61af;});for(const _0x4c1f5c of _0x2b2bd5){const _0x5be55e=_0x4c1f5c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x5be55e||'customNumbered'==_0x5be55e)continue;_0x4b52db['_findSuggestions'](_0x4c1f5c['getFirstRange'](),'attribute')['find'](_0x1926b8=>'listType'==_0x4b52db['_getAttributeKey'](_0x1926b8['suggestion']))||(_0x175566['removeMarker'](_0x4c1f5c['getFirstMarker']()),_0x32655e=!0x0);}return _0x32655e;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x33b05a){const _0x59784f=this['editor']['locale'],{data:_0x500583}=_0x33b05a,_0x2f54f5={'type':'format','content':''};if(!_0x500583||'listStyle'!=_0x500583['key'])return;if(!_0x500583['oldValue'])return'default'==_0x500583['newValue']?_0x2f54f5:{'type':'format','content':''+o(_0x59784f,'*Set\x20format:*\x20%0',o(_0x59784f,this['_getTranslationKeyForListStyle'](_0x500583['newValue'])))};if(!_0x500583['newValue']){if('default'==_0x500583['oldValue'])return _0x2f54f5;let _0x1e1bd5=_0x33b05a['head'];for(;_0x1e1bd5;){if(_0x1e1bd5['data']&&'listType'==_0x1e1bd5['data']['key']&&_0x1e1bd5['data']['newValue'])return _0x2f54f5;_0x1e1bd5=_0x1e1bd5['next'];}return{'type':'format','content':''+o(_0x59784f,'*Remove\x20format:*\x20%0',o(_0x59784f,this['_getTranslationKeyForListStyle'](_0x500583['oldValue'])))};}if('default'!=_0x500583['newValue'])return{'type':'format','content':''+o(_0x59784f,'*Set\x20format:*\x20%0',o(_0x59784f,this['_getTranslationKeyForListStyle'](_0x500583['newValue'])))};let _0x175f2b=_0x33b05a['head'];for(;_0x175f2b;){if(_0x175f2b['data']&&'listType'==_0x175f2b['data']['key']&&_0x175f2b['data']['newValue']&&_0x175f2b['data']['oldValue'])return _0x2f54f5;_0x175f2b=_0x175f2b['next'];}return{'type':'format','content':o(_0x59784f,'*Set\x20format:*\x20%0',o(_0x59784f,'ELEMENT_'+_0x33b05a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x46af7b=this['editor'],_0x4a565a=_0x46af7b['locale'];_0x46af7b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e956f=>{if('formatBlock'!=_0x3e956f['type'])return;const {data:_0x3806d8}=_0x3e956f;if(!_0x3806d8)return;let _0x3efe6b,_0x4da4aa;switch(_0x3806d8['commandName']){case'listStyle':_0x3efe6b='*Change\x20to:*\x20%0',_0x4da4aa={'type':'format','content':o(_0x4a565a,_0x3efe6b,o(_0x4a565a,this['_getTranslationKeyForListStyle'](_0x3806d8['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3efe6b=_0x3806d8['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4da4aa={'type':'format','content':o(_0x4a565a,_0x3efe6b)};break;case'listStart':_0x3efe6b='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4da4aa={'type':'format','content':o(_0x4a565a,_0x3efe6b,_0x3806d8['commandParams'][0x0]['startIndex'])};}return _0x4da4aa;});}['_getTranslationKeyForListStyle'](_0x2a0727){return'ELEMENT_'+function(_0x37cc25){if(Se['includes'](_0x37cc25))return'bulleted';if(_e['includes'](_0x37cc25))return'numbered';return null;}(_0x2a0727)['toUpperCase']()+'_LIST_'+_0x2a0727['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x1a8d41{static get['requires'](){return[_0x2d90c1];}['init'](){const _0x4334c9=this['editor'],_0x4f85da=_0x4334c9['plugins']['get']('TrackChangesEditing'),_0x1d445e=_0x4334c9['commands']['get']('enter');_0x4f85da['enableCommand']('enter',()=>{_0x4334c9['model']['change'](_0x6da1a1=>{const _0x4d5d85=_0x4334c9['model']['document']['selection'],_0x4271e2=_0x4d5d85['getFirstPosition'](),_0x2ceb8f=_0x4b1aef['fromRange'](_0x4d5d85['getFirstRange']());if(_0x1d445e['enterBlock'](_0x6da1a1)){const _0x7a643=_0x4334c9['model']['createPositionAt'](_0x4271e2['parent']['nextSibling'],0x0),_0x6564a6=_0x6da1a1['createRange'](_0x4271e2,_0x7a643);_0x4f85da['markInsertion'](_0x6564a6);}else _0x6da1a1['setSelection'](_0x6da1a1['createRange'](_0x2ceb8f['end']));_0x2ceb8f['detach'](),_0x1d445e['fire']('afterExecute',{'writer':_0x6da1a1});});}),_0x4334c9['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Ne(_0x4334c9,'split'),{'priority':'high'}),_0x4334c9['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x27efcc,_0x46e710,_0x5eb298)=>{const _0x50fb54=_0x5eb298['mapper']['markerNameToElements'](_0x46e710['markerName']);if(_0x50fb54){for(const _0x72dcea of _0x50fb54)_0x72dcea['hasClass']('ck-suggestion-marker-split')&&(_0x5eb298['mapper']['unbindElementFromMarkerName'](_0x72dcea,_0x46e710['markerName']),_0x5eb298['writer']['remove'](_0x72dcea));}},{'priority':'high'}),_0x4334c9['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3ff19a,_0x5f6e37,_0xb30f41)=>{_0xb30f41['options']['showSuggestionHighlights']&&Ne(_0x4334c9,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x3ff19a,_0x5f6e37,_0xb30f41);},{'priority':'high'});}}class Y extends _0x1a8d41{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x289b66=this['editor']['plugins']['get']('TrackChangesEditing');_0x289b66['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x289b66['enableCommand']('findNext'),_0x289b66['enableCommand']('findPrevious'),_0x289b66['enableCommand']('replace'),_0x289b66['enableCommand']('replaceAll');}['handleFindCommand'](_0xcf131e,_0x3d1b67,_0x3763b0={}){const _0x37b5b9=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0xcf131e(_0x4dc8a6=>{let _0x11d77d=('string'==typeof _0x3d1b67?_0x37b5b9['findByTextCallback'](_0x3d1b67,_0x3763b0):_0x3d1b67)(_0x4dc8a6);Array['isArray'](_0x11d77d)&&(_0x11d77d={'results':_0x11d77d,'searchText':'string'==typeof _0x3d1b67?_0x3d1b67:''});const _0xff655b=_0x11d77d['results']['filter'](_0x5815a2=>!0x1===this['_isInDeletionRange'](_0x5815a2,_0x4dc8a6['item']));return{..._0x11d77d,'results':_0xff655b};},_0x3763b0);}['_isInDeletionRange'](_0x2b6b0d,_0xcc7251){const _0x1c5d9f=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xcc7251,_0x2b6b0d['start']),this['editor']['model']['createPositionAt'](_0xcc7251,_0x2b6b0d['end']));for(const _0x29b53d of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x1c5d9f['getIntersection'](_0x29b53d['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0x1a8d41{['afterInit'](){const _0x1f2b60=this['editor']['locale'],_0x37e044=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x1e6c4e,commandName:_0x4caab6}of ro)this['editor']['plugins']['has'](_0x1e6c4e)&&(_0x37e044['enableDefaultAttributesIntegration'](_0x4caab6),_0x37e044['registerInlineAttribute'](_0x4caab6));_0x37e044['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x1f2b60,'FORMAT_FONT_SIZE')),_0x37e044['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x1f2b60,'FORMAT_FONT_FAMILY')),_0x37e044['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x1f2b60,'FORMAT_FONT_COLOR')),_0x37e044['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x1f2b60,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x158621=this['editor'],_0x30d660=_0x158621['locale'];_0x158621['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x16cb5e=>{const _0x54f8a5=_0x30d660['t'];if('formatInline'!=_0x16cb5e['type'])return;const {data:_0xb51091}=_0x16cb5e;if(null!=_0xb51091){if('fontSize'==_0xb51091['commandName']){const _0x8111f8=_0xb51091['commandParams'][0x0]['value'];if(_0x8111f8){const _0x3359fd=_0x54f8a5(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x4c87d9=>_0x4c87d9['model']==_0x8111f8)['title'])['toLowerCase']();return{'type':'format','content':o(_0x30d660,'*Set\x20font\x20size:*\x20%0',_0x3359fd)};}return{'type':'format','content':o(_0x30d660,'*Reset\x20font\x20size*')};}if('fontFamily'==_0xb51091['commandName']){const _0x29b9f4=_0xb51091['commandParams'][0x0]['value'];return _0x29b9f4?{'type':'format','content':o(_0x30d660,'*Set\x20font\x20family:*\x20%0',_0x29b9f4)}:{'type':'format','content':o(_0x30d660,'*Reset\x20font\x20family*')};}if('fontColor'==_0xb51091['commandName']){const _0x3e11e8=_0xb51091['commandParams'][0x0]['value'];if(_0x3e11e8){const _0x313337=_0x1ee506(this['editor']['config']['get']('fontColor.colors'))['find'](_0x7f4d89=>_0x7f4d89['model']==_0x3e11e8);let _0x5e278f=_0x3e11e8,_0x1572aa='';return _0x313337&&(_0x5e278f=_0x313337['label'],_0x1572aa=_0x54f8a5(_0x5e278f)['toLowerCase']()),{'type':'format','content':o(_0x30d660,'*Set\x20font\x20color:*\x20%0',_0x1572aa)['trim'](),'color':{'value':_0x3e11e8,'title':_0x1572aa||_0x5e278f}};}return{'type':'format','content':o(_0x30d660,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0xb51091['commandName']){const _0x39f0d2=_0xb51091['commandParams'][0x0]['value'];if(_0x39f0d2){const _0x27bc28=_0x1ee506(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x3f2e9c=>_0x3f2e9c['model']==_0x39f0d2);let _0x59f847=_0x39f0d2,_0x172c5b='';return _0x27bc28&&(_0x59f847=_0x27bc28['label'],_0x172c5b=_0x54f8a5(_0x59f847)['toLowerCase']()),{'type':'format','content':o(_0x30d660,'*Set\x20font\x20background\x20color:*\x20%0',_0x172c5b)['trim'](),'color':{'value':_0x39f0d2,'title':_0x172c5b||_0x59f847}};}return{'type':'format','content':o(_0x30d660,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x1a8d41{['afterInit'](){const _0x28e736=this['editor'],_0x3b7a41=_0x28e736['plugins']['get']('TrackChangesEditing'),_0x4d087e=_0x28e736['commands']['get']('copyFormat'),_0x1799ea=_0x28e736['commands']['get']('pasteFormat');_0x4d087e&&_0x1799ea&&(_0x3b7a41['enableDefaultAttributesIntegration']('pasteFormat'),_0x3b7a41['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x31199a=this['editor'],_0x3e6b96=_0x31199a['locale'];_0x31199a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2b1775=>{if('formatBlock'!=_0x2b1775['type']&&'formatInline'!=_0x2b1775['type'])return;const {data:_0x5a67d8}=_0x2b1775;if(_0x5a67d8&&'pasteFormat'===_0x5a67d8['commandName']){const _0x33ac8c=[],_0x41dead=_0x5a67d8['commandParams'][0x0];for(const [_0xa3a8c8,_0xdbb139]of Object['entries'](_0x41dead))_0x33ac8c['push'](so(_0x31199a,_0xa3a8c8,_0xdbb139));return _0x33ac8c['length']?{'type':'format','content':o(_0x3e6b96,'*Set\x20format\x20to:*\x20%0',_0x33ac8c['join'](',\x20'))}:{'type':'format','content':o(_0x3e6b96,'*Remove\x20all\x20formatting*')};}});}}function so(_0x1f0cce,_0x294eec,_0x667488){const _0x2161e1=_0x1f0cce['locale']['t'],_0x464607=_0x294eec['split'](/(?=[A-Z])/)['join']('\x20'),_0x118979=_0x2161e1(_0x464607['charAt'](0x0)['toUpperCase']()+_0x464607['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x667488)return _0x118979;if('fontColor'===_0x294eec||'fontBackgroundColor'===_0x294eec){const _0x21f530=_0x1ee506(_0x1f0cce['config']['get']('fontColor.colors'))['find'](_0x538dcd=>_0x538dcd['model']==_0x667488);return _0x118979+'\x20('+(_0x21f530?_0x2161e1(_0x21f530['label'])['toLowerCase']():_0x667488)+')';}if('fontSize'===_0x294eec&&isNaN(parseFloat(_0x667488))){const _0x1e7c71=_0x1f0cce['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x1f0cce['config']['get']('fontSize.options'))['find'](_0x374a89=>_0x374a89['model']==_0x667488);return _0x118979+'\x20('+(_0x1e7c71?_0x2161e1(_0x1e7c71['title'])['toLowerCase']():_0x667488)+')';}return _0x118979+'\x20('+_0x667488+')';}class nt extends _0x1a8d41{['_headingOptions'];['afterInit'](){const _0x4353e1=this['editor'];if(!_0x4353e1['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x4353e1['config']['get']('heading.options');const _0x5c32a7=_0x4353e1['locale'],_0x16fcff=_0x4353e1['plugins']['get']('TrackChangesEditing');_0x16fcff['enableDefaultAttributesIntegration']('heading');for(const _0x355612 of this['_headingOptions'])'paragraph'!=_0x355612['model']&&_0x16fcff['descriptionFactory']['registerElementLabel'](_0x355612['model'],_0x5135c2=>{const _0xeb748d=this['_getHeadingLevel'](_0x355612['model']);return null!==_0xeb748d?_0x298ed0(_0x5135c2,_0xeb748d):_0x290948(_0x5135c2,_0x355612['title']);});function _0x298ed0(_0x5660bd,_0x56d906){return o(_0x5c32a7,'ELEMENT_HEADING',[_0x5660bd,_0x56d906]);}function _0x290948(_0xf65d5e,_0x27c705){return o(_0x5c32a7,'ELEMENT_HEADING_CUSTOM',[_0xf65d5e,_0x27c705]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5bc184=this['editor'],_0x3e1cf9=_0x5bc184['locale'];function _0x437269(_0x3a4a84,_0x41ab52){return o(_0x3e1cf9,'ELEMENT_HEADING_CUSTOM',[_0x3a4a84,_0x41ab52]);}_0x5bc184['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2f6d2a=>{if('formatBlock'!=_0x2f6d2a['type'])return;const {data:_0x4fc608}=_0x2f6d2a;if(_0x4fc608&&'heading'==_0x4fc608['commandName']){const _0x45539f=_0x4fc608['commandParams'][0x0]['value'],_0x1b7d07=this['_getHeadingLevel'](_0x45539f);if(null!==_0x1b7d07)return{'type':'format','content':o(_0x3e1cf9,'*Change\x20to:*\x20%0',(_0x5bc06f=0x1,_0x43814d=_0x1b7d07,o(_0x3e1cf9,'ELEMENT_HEADING',[_0x5bc06f,_0x43814d])))};const _0x161b84=this['_headingOptions']['find'](_0x29ede7=>_0x29ede7['model']===_0x45539f)['title'];return{'type':'format','content':o(_0x3e1cf9,'*Change\x20to:*\x20%0',_0x437269(0x1,_0x161b84))};}var _0x5bc06f,_0x43814d;});}['_getHeadingLevel'](_0x514575){const _0x4ab802=_0x514575['match'](/^heading(\d+)/);if(_0x4ab802)return _0x4ab802[0x1];const _0x388259=this['_headingOptions']?.['find'](_0x1c938e=>_0x1c938e['model']==_0x514575);if(_0x388259&&_0x388259['view']){const _0x2699e2=_0x388259['view'],_0x4c7d81=(_0x2699e2['name']??_0x2699e2)['match'](/^h(\d+)/);if(_0x4c7d81)return _0x4c7d81[0x1];}return null;}}class it extends _0x1a8d41{['afterInit'](){const _0x3c21ae=this['editor'];if(!_0x3c21ae['plugins']['has']('HighlightEditing'))return;const _0x3ff52a=_0x3c21ae['plugins']['get']('TrackChangesEditing'),_0x3a4b66=_0x3c21ae['locale'];_0x3ff52a['enableDefaultAttributesIntegration']('highlight'),_0x3ff52a['registerInlineAttribute']('highlight'),_0x3ff52a['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x3a4b66,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x510273=this['editor'],_0x2dce52=_0x510273['locale'];_0x510273['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x38e33c=>{if('formatInline'!=_0x38e33c['type'])return;const {data:_0xee9ba0}=_0x38e33c;if(_0xee9ba0&&'highlight'==_0xee9ba0['commandName']){const _0x4840ae=_0x2dce52['t'],_0x3e9650=_0xee9ba0['commandParams'][0x0]['value'];if(_0x3e9650){const _0x50ba7d=_0x510273['config']['get']('highlight.options')['find'](_0x16eeaa=>_0x16eeaa['model']==_0x3e9650),_0x4c3079=_0x4840ae(_0x50ba7d['title'])['toLowerCase']();return{'type':'format','content':o(_0x2dce52,'*Set\x20highlight:*\x20%0',_0x4c3079),'color':{'value':_0x50ba7d['color'],'title':_0x50ba7d['title']}};}return{'type':'format','content':o(_0x2dce52,'*Remove\x20highlight*',o(_0x2dce52,'FORMAT_HIGHLIGHT'))};}});}}class et extends _0x1a8d41{['afterInit'](){const _0x28ad08=this['editor'];if(!_0x28ad08['plugins']['has']('HorizontalLineEditing'))return;_0x28ad08['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0xd5770c=_0x28ad08['plugins']['get']('TrackChangesEditing'),_0x4376cb=_0x28ad08['locale'];_0xd5770c['descriptionFactory']['registerElementLabel']('horizontalLine',_0xb82e8c=>o(_0x4376cb,'ELEMENT_HORIZONTAL_LINE',_0xb82e8c)),_0x28ad08['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x2f5e9e,{writer:_0x637596,options:_0x536169})=>{if(!_0x536169['showSuggestionHighlights'])return null;const _0x4889e4=_0x637596['createContainerElement']('div'),_0x159741=_0x637596['createEmptyElement']('hr');return _0x637596['addClass']('ck-horizontal-line',_0x4889e4),_0x637596['insert'](_0x637596['createPositionAt'](_0x4889e4,0x0),_0x159741),_0x4889e4;},'converterPriority':'high'});}}class st extends _0x1a8d41{['afterInit'](){const _0x3184ed=this['editor'];if(!_0x3184ed['plugins']['has']('HtmlEmbed'))return;const _0x295ab2=_0x3184ed['plugins']['get']('TrackChangesEditing'),_0x351937=_0x3184ed['locale'];_0x295ab2['descriptionFactory']['registerElementLabel']('rawHtml',_0x5ae223=>o(_0x351937,'ELEMENT_HTML_EMBED',_0x5ae223)),_0x295ab2['enableDefaultAttributesIntegration']('htmlEmbed'),_0x295ab2['registerBlockAttribute']('value'),_0x295ab2['descriptionFactory']['registerDescriptionCallback'](_0x1a74e1=>{if('attribute'!=_0x1a74e1['type'])return;const {data:_0x1bb9b7}=_0x1a74e1;if(_0x1bb9b7&&'value'==_0x1bb9b7['key']&&_0x1a74e1['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x44369f=o(_0x351937,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x351937,'*Change\x20%0\x20content*',_0x44369f)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x132655=this['editor'],_0x135e54=_0x132655['locale'];_0x132655['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x119b13=>{if('formatBlock'!=_0x119b13['type'])return;const {data:_0x45c525}=_0x119b13;if(_0x45c525&&'htmlEmbed'==_0x45c525['commandName']){const _0x2b0474=o(_0x135e54,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x135e54,'*Change\x20%0\x20content*',_0x2b0474)};}});}}class ot extends _0x1a8d41{['afterInit'](){const _0x5b0b88=this['editor'];if(!_0x5b0b88['plugins']['has']('ImageEditing'))return;const _0x258884=_0x5b0b88['plugins']['get']('TrackChangesEditing'),_0x415a16=_0x5b0b88['plugins']['get']('ImageUtils'),_0x11f0ab=_0x5b0b88['locale'];_0x258884['enableCommand']('insertImage'),_0x258884['descriptionFactory']['registerElementLabel']('imageBlock',_0x3d724e=>o(_0x11f0ab,'ELEMENT_IMAGE',_0x3d724e)),_0x258884['descriptionFactory']['registerElementLabel']('imageInline',_0x6eb5be=>o(_0x11f0ab,'ELEMENT_INLINE_IMAGE',_0x6eb5be)),_0x258884['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x11f0ab,'ELEMENT_CAPTION')),_0x5b0b88['plugins']['has']('ImageUploadEditing')&&_0x258884['enableCommand']('uploadImage'),_0x5b0b88['plugins']['has']('ImageBlockEditing')&&_0x5b0b88['plugins']['has']('ImageInlineEditing')&&(_0x258884['enableCommand']('imageTypeInline',(_0x3b5934,_0x593028)=>{const _0x33a4db=_0x415a16['getClosestSelectedImageElement'](_0x5b0b88['model']['document']['selection']);_0x5b0b88['model']['change'](()=>{_0x258884['markBlockFormat'](_0x33a4db,{'commandName':'imageTypeInline','commandParams':[_0x593028]},[],'convertBlockImageToInline');});}),_0x258884['enableCommand']('imageTypeBlock',(_0x24ce4a,_0x436b8e)=>{_0x5b0b88['model']['change'](_0x1a6b9d=>{let _0x4992c1=_0x415a16['getClosestSelectedImageElement'](_0x5b0b88['model']['document']['selection']),_0x4ac232=_0x1a6b9d['createRangeOn'](_0x4992c1);const _0x5ba65d=_0x268cfa['fromPosition'](_0x4ac232['start'],'toPrevious'),_0x1f33b5=_0x268cfa['fromPosition'](_0x4ac232['end'],'toNext');_0x258884['forceDefaultExecution'](()=>_0x24ce4a(_0x436b8e)),_0x4992c1=_0x415a16['getClosestSelectedImageElement'](_0x5b0b88['model']['document']['selection']),_0x4ac232=_0x1a6b9d['createRangeOn'](_0x4992c1);const _0x7db926=_0x1a6b9d['createRange'](_0x5ba65d,_0x1f33b5);_0x5ba65d['detach'](),_0x1f33b5['detach'](),_0x258884['markBlockFormat'](_0x4992c1,{'commandName':'imageTypeInline','commandParams':[_0x436b8e]},[],'convertInlineImageToBlock'),_0x7db926['start']['isBefore'](_0x4ac232['start'])&&_0x258884['markInsertion'](_0x1a6b9d['createRange'](_0x7db926['start'],_0x4ac232['start']),'convertInlineImageToBlock'),_0x4ac232['end']['isBefore'](_0x7db926['end'])&&_0x258884['markInsertion'](_0x1a6b9d['createRange'](_0x4ac232['end'],_0x7db926['end']),'convertInlineImageToBlock');});}),_0x258884['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x258884['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x258884['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x258884['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x258884['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x258884['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x4e0821])=>{const _0x1211f9=_0x258884['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0xcb326b=_0x4e0821['start'],_0x5d3949=_0x4e0821['end'];const _0x5b4a44=_0x5b0b88['model']['schema']['getNearestSelectionRange'](_0xcb326b,'backward'),_0x46bed8=_0x5b0b88['model']['schema']['getNearestSelectionRange'](_0x5d3949,'forward');_0x5b4a44['isCollapsed']&&(_0xcb326b=_0x5b4a44['start']),_0x46bed8['isCollapsed']&&(_0x5d3949=_0x46bed8['end']),_0x1211f9([_0x5b0b88['model']['createRange'](_0xcb326b,_0x5d3949)]);}),_0x258884['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x507c06),_0x258884['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x507c06)),_0x5b0b88['plugins']['has']('ImageCaptionEditing')&&(_0x258884['enableCommand']('toggleImageCaption',(_0x46d56a,_0x49062f)=>{const _0x2fdbda=_0x5b0b88['plugins']['get']('ImageCaptionUtils');let _0x358078=_0x415a16['getClosestSelectedImageElement'](_0x5b0b88['model']['document']['selection']),_0x3f8fb6=_0x2fdbda['getCaptionFromImageModelElement'](_0x358078);_0x5b0b88['model']['change'](()=>{if(_0x3f8fb6)return void _0x258884['markDeletion'](_0x5b0b88['model']['createRangeOn'](_0x3f8fb6));const _0x3db8c7=_0x415a16['isBlockImage'](_0x358078);_0x46d56a(_0x49062f),_0x358078=_0x415a16['getClosestSelectedImageElement'](_0x5b0b88['model']['document']['selection']),_0x3f8fb6=_0x2fdbda['getCaptionFromImageModelElement'](_0x358078),_0x258884['markInsertion'](_0x5b0b88['model']['createRangeOn'](_0x3f8fb6),_0x3db8c7?null:'imageCaption');});}),_0x258884['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x507c06));const _0x5b1e4a=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x16af12(_0x2be5ec,_0x440178){const _0x4b06a1=_0x5b1e4a['findIndex'](({type:_0x2d78cb,subType:_0x4bc588})=>_0x2be5ec['type']==_0x2d78cb&&_0x2be5ec['subType']==_0x4bc588),_0x58b716=_0x5b1e4a['findIndex'](({type:_0x4c8edb,subType:_0x237e67})=>_0x440178['type']==_0x4c8edb&&_0x440178['subType']==_0x237e67);if(_0x4b06a1<0x0||_0x58b716<0x0)return!0x1;const _0x3a1245=_0x2be5ec['getFirstRange'](),_0x1a1b3e=_0x440178['getFirstRange']();if((0x0==_0x4b06a1||0x1==_0x4b06a1)&&0x2==_0x58b716&&_0x3a1245['isIntersecting'](_0x1a1b3e))return!0x0;if(0x2==_0x4b06a1&&0x3==_0x58b716){const _0xcf4e0f=_0x258884['_findSuggestions'](_0x3a1245,'insertion')['filter'](({suggestion:_0x4e5f16,meta:_0x15607d})=>_0x15607d['isOwn']&&'convertInlineImageToBlock'==_0x4e5f16['subType']);if(_0xcf4e0f['length']>0x1&&_0x1a1b3e['end']['isEqual'](_0x3a1245['start']))return!0x0;if(0x1==_0xcf4e0f['length']&&(_0x3a1245['start']['isEqual'](_0x1a1b3e['end'])||_0x3a1245['end']['isEqual'](_0x1a1b3e['start'])))return!0x0;}if(0x3==_0x4b06a1&&0x3==_0x58b716&&_0x3a1245['start']['isBefore'](_0x1a1b3e['start'])){const _0x3155a6=_0x3a1245['end']['nodeAfter'],_0x275507=_0x1a1b3e['start']['nodeBefore'];return _0x415a16['isBlockImage'](_0x3155a6)&&_0x3155a6===_0x275507;}return!0x1;}function _0x507c06(_0x58d9fd,_0x1d88fc){return _0x16af12(_0x58d9fd,_0x1d88fc)?[_0x58d9fd,_0x1d88fc]:_0x16af12(_0x1d88fc,_0x58d9fd)?[_0x1d88fc,_0x58d9fd]:null;}_0x5b0b88['plugins']['has']('ImageResize')&&(_0x258884['enableDefaultAttributesIntegration']('resizeImage'),_0x258884['registerBlockAttribute']('resizedWidth'),_0x258884['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x11f0ab,'FORMAT_IMAGE_SIZE'))),_0x5b0b88['plugins']['has']('ImageTextAlternativeEditing')&&(_0x258884['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x258884['registerBlockAttribute']('alt')),_0x258884['descriptionFactory']['registerDescriptionCallback'](_0x21e318=>{if(!!_0x5b1e4a['find'](({type:_0x180feb,subType:_0x11504e})=>_0x21e318['type']==_0x180feb&&_0x21e318['subType']==_0x11504e))return _0x21e318['previous']?{}:void 0x0;}),_0x258884['descriptionFactory']['registerDescriptionCallback'](_0x236ff9=>{if('insertion'==_0x236ff9['type']||'deletion'==_0x236ff9['type']){const _0x22eab9=_0x236ff9['getContainedElement']();if(_0x22eab9&&_0x22eab9['is']('element','caption'))return{'type':'insertion'==_0x236ff9['type']?'addObject':'removeObject','element':_0x22eab9,'quantity':0x1};}}),_0x258884['descriptionFactory']['registerDescriptionCallback'](_0x393056=>'formatBlock'==_0x393056['type']&&'convertInlineImageToBlock'==_0x393056['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x393056['type']&&'convertBlockImageToInline'==_0x393056['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x258884['descriptionFactory']['registerDescriptionCallback'](_0x55dded=>{if('attribute'!=_0x55dded['type'])return;const {data:_0x3ab6e4}=_0x55dded;if(!_0x3ab6e4||'alt'!=_0x3ab6e4['key'])return;const _0xce3f87=_0x3ab6e4['newValue'];return _0xce3f87?{'type':'format','content':o(_0x11f0ab,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xce3f87+'\x22')}:{'type':'format','content':o(_0x11f0ab,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x37c32e=this['editor'],_0x49cdfe=_0x37c32e['locale'];_0x37c32e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3934c8=>{if('formatBlock'!=_0x3934c8['type']&&'formatInline'!=_0x3934c8['type'])return;const {data:_0x3f52f9}=_0x3934c8;if(_0x3f52f9){if('imageTextAlternative'==_0x3f52f9['commandName']){const _0x430a1e=_0x3f52f9['commandParams'][0x0]['newValue'];return _0x430a1e?{'type':'format','content':o(_0x49cdfe,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x430a1e+'\x22')}:{'type':'format','content':o(_0x49cdfe,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x3f52f9['commandName']){const _0x3f97a2=_0x3f52f9['commandParams'][0x0]['width'];return _0x3f97a2?{'type':'format','content':o(_0x49cdfe,'*Set\x20image\x20width:*\x20%0',_0x3f97a2)}:{'type':'format','content':o(_0x49cdfe,'*Reset\x20image\x20width*')};}}});}}class rt extends _0x1a8d41{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x455581=this['editor']['locale'],_0x342376=this['editor']['plugins']['get']('TrackChangesEditing');_0x342376['enableDefaultAttributesIntegration']('replaceImageSource'),_0x342376['registerBlockAttribute']('src'),_0x342376['descriptionFactory']['registerDescriptionCallback'](_0x52b953=>{if('attribute'!=_0x52b953['type'])return;const {data:_0x1913d6}=_0x52b953;return _0x1913d6&&'src'==_0x1913d6['key']?_0x1913d6['newValue']&&_0x1913d6['oldValue']?{'type':'format','content':o(_0x455581,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x49312e=this['editor']['plugins']['get']('TrackChangesEditing');_0x49312e['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x49312e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x49312e['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x49312e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2266de=this['editor'],_0x850d78=_0x2266de['locale'];_0x2266de['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x33d955=>{if('formatBlock'!=_0x33d955['type']&&'formatInline'!=_0x33d955['type'])return;const {data:_0x476859}=_0x33d955;if(!_0x476859||'replaceImageSource'!=_0x476859['commandName'])return;return{'type':'format','content':o(_0x850d78,'*Format:*\x20replace\x20image\x20URL')};});}}class at extends _0x1a8d41{['afterInit'](){const _0x2f33bf=this['editor'];if(!_0x2f33bf['plugins']['has']('ImageStyleEditing'))return;const _0x55f911=_0x2f33bf['plugins']['get']('TrackChangesEditing'),_0xbaf85d=_0x2f33bf['plugins']['get']('ImageUtils'),_0x129175={};_0x55f911['enableCommand']('imageStyle',(_0x2b0601,_0x37c583)=>{const _0x50828b=_0x2f33bf['plugins']['get']('Users')['me'],_0x5eed52=_0x2f33bf['commands']['get']('imageStyle');let _0x11072f=_0xbaf85d['getClosestSelectedImageElement'](_0x2f33bf['model']['document']['selection']),_0x259c74=_0x2f33bf['model']['createRangeOn'](_0x11072f),_0x21ddac=_0x5eed52['value'];if(_0x21ddac==_0x37c583['value'])return;const _0xe6f65={'commandName':'imageStyle','commandParams':[_0x37c583],'formatGroupId':_0x2d895c()};_0x2f33bf['model']['change'](()=>{if(_0x55f911['getSuggestions']()['filter'](_0x1e254f=>_0x1e254f['isInContent']&&_0x50828b==_0x1e254f['author']&&('formatBlock'==_0x1e254f['type']||'formatInline'==_0x1e254f['type'])&&('imageStylePreApply'==_0x1e254f['subType']||'imageStylePostApply'==_0x1e254f['subType'])&&_0x1e254f['getFirstRange']()['isEqual'](_0x259c74))['forEach'](_0xa46455=>_0x55f911['discardSuggestion'](_0xa46455['head'])),_0x11072f=_0xbaf85d['getClosestSelectedImageElement'](_0x2f33bf['model']['document']['selection']),_0x259c74=_0x2f33bf['model']['createRangeOn'](_0x11072f),_0x5eed52['refresh'](),_0x2f33bf['commands']['get']('imageTypeInline')['refresh'](),_0x2f33bf['commands']['get']('imageTypeBlock')['refresh'](),_0x21ddac=_0x5eed52['value'],_0x21ddac!=_0x37c583['value'])return _0xbaf85d['isInlineImage'](_0x11072f)&&_0x5eed52['shouldConvertImageType'](_0x37c583['value'],_0x11072f)?(_0x2b0601({..._0x37c583,'setImageSizes':!0x1}),_0x11072f=_0xbaf85d['getClosestSelectedImageElement'](_0x2f33bf['model']['document']['selection']),void _0x55f911['markBlockFormat'](_0x11072f,{..._0xe6f65,'commandReversedParams':[{'value':_0x21ddac||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0xbaf85d['isBlockImage'](_0x11072f)?_0x55f911['markBlockFormat'](_0x11072f,_0xe6f65,[],'imageStylePostApply'):_0x55f911['markInlineFormat'](_0x259c74,_0xe6f65,'imageStylePostApply'));});});for(const _0x137160 of _0x2f33bf['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x129175[_0x137160['name']]=_0x137160['title']['toLowerCase']();_0x55f911['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x55f911['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x55f911['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x55f911['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x257f16])=>{_0xbaf85d['setImageNaturalSizeAttributes'](_0x257f16['getContainedElement']());}),_0x55f911['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x355662,_0x4bb694)=>{_0x55f911['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x355662,{'commandName':_0x4bb694['commandName'],'commandParams':_0x4bb694['commandReversedParams']});}),_0x55f911['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x5abacd,_0x1da87b){if(_0x2cbeec(_0x5abacd,_0x1da87b))return[_0x5abacd,_0x1da87b];if(_0x2cbeec(_0x1da87b,_0x5abacd))return[_0x1da87b,_0x5abacd];return null;});const _0x85a20b=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2cbeec(_0x45fe41,_0x4367e8){const _0x4fe33d=_0x85a20b['findIndex'](({type:_0x5ce801,subType:_0x22e5e4})=>_0x45fe41['type']==_0x5ce801&&_0x45fe41['subType']==_0x22e5e4),_0xa37728=_0x85a20b['findIndex'](({type:_0x2e9b2f,subType:_0x12d18f})=>_0x4367e8['type']==_0x2e9b2f&&_0x4367e8['subType']==_0x12d18f);if(_0x4fe33d<0x0||_0xa37728<0x0)return!0x1;const _0x5f4d71=_0x45fe41['getFirstRange'](),_0x9997f6=_0x4367e8['getFirstRange']();if((0x0==_0x4fe33d||0x1==_0x4fe33d)&&0x2==_0xa37728&&_0x5f4d71['isIntersecting'](_0x9997f6))return!0x0;if(0x2==_0x4fe33d&&0x3==_0xa37728){const _0x20c811=_0x55f911['_findSuggestions'](_0x5f4d71,'insertion')['filter'](({suggestion:_0x40f0af,meta:_0x802ae3})=>_0x802ae3['isOwn']&&'convertInlineImageToBlock'==_0x40f0af['subType']);if(_0x20c811['length']>0x1&&_0x9997f6['end']['isEqual'](_0x5f4d71['start']))return!0x0;if(0x1==_0x20c811['length']&&(_0x5f4d71['start']['isEqual'](_0x9997f6['end'])||_0x5f4d71['end']['isEqual'](_0x9997f6['start'])))return!0x0;}if(0x3==_0x4fe33d&&0x3==_0xa37728&&_0x5f4d71['start']['isBefore'](_0x9997f6['start'])){const _0x22f872=_0x5f4d71['end']['nodeAfter'],_0x18968e=_0x9997f6['start']['nodeBefore'];return _0xbaf85d['isBlockImage'](_0x22f872)&&_0x22f872===_0x18968e;}return!0x1;}_0x2f33bf['model']['document']['registerPostFixer'](()=>{let _0x1afce5=!0x1;const _0x430f58=Array['from'](_0x2f33bf['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x17489a,data:_0x3758f6}of _0x430f58){const {group:_0x834189,type:_0x23f365,subType:_0x52f3ac,id:_0x3cfeb2}=_0x55f911['_splitMarkerName'](_0x17489a);if('suggestion'==_0x834189&&_0x55f911['hasSuggestion'](_0x3cfeb2)){if('formatBlock'==_0x23f365&&('imageStylePreApply'==_0x52f3ac||'imageStylePostApply'==_0x52f3ac)){const _0xfe2920=_0x55f911['getSuggestion'](_0x3cfeb2);if(_0x3758f6['newRange']){const _0x5216f1=_0xfe2920['getFirstRange']()['getContainedElement']();if(_0xbaf85d['isBlockImage'](_0x5216f1))continue;_0x55f911['discardSuggestion'](_0xfe2920),_0x1afce5=!0x0;}}if('insertion'==_0x23f365&&'imageCaption'==_0x52f3ac&&!_0x3758f6['newRange']){const _0x53fafb=_0x55f911['getSuggestion'](_0x3cfeb2);_0x53fafb['next']&&_0x53fafb['next']['isInContent']&&(_0x55f911['discardSuggestion'](_0x53fafb['next']),_0x1afce5=!0x0);}}}return _0x1afce5;}),this['_registerLegacyDescription'](_0x129175);}['_registerLegacyDescription'](_0x440884){const _0x1545b5=this['editor'],_0x16d47f=_0x1545b5['locale'];_0x1545b5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x57bf40=>{if('formatBlock'!=_0x57bf40['type']&&'formatInline'!=_0x57bf40['type'])return;const {data:_0x19efbd}=_0x57bf40;if(!_0x19efbd||'imageStyle'!=_0x19efbd['commandName'])return;const _0x162d57=_0x19efbd['commandParams'][0x0]['value'];return _0x2d0bc4('side'===_0x162d57?o(_0x16d47f,'FORMAT_SIDE_IMAGE'):_0x440884[_0x162d57]||_0x162d57);function _0x2d0bc4(_0xd23327){return{'type':'format','content':o(_0x16d47f,'*Format:*\x20%0',_0xd23327)};}});}}class ct extends _0x1a8d41{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x4d5e43){super(_0x4d5e43),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x7aa9b3=this['editor'],_0x512fb2=_0x7aa9b3['commands']['get']('importWord'),_0x40b734=_0x7aa9b3['commands']['get']('trackChanges');_0x512fb2&&(_0x512fb2['on']('execute',(_0x77eb9c,[,_0x2222cb])=>{this['_trackChangesValueDuringImport']=_0x40b734['value'],_0x2222cb['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x512fb2,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x512fb2,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x40b734['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x7aa9b3['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x2899a0,_0x504f31){const {suggestions:_0x10f588}=_0x504f31,_0x130c47=this['editor']['commands']['get']('trackChanges'),_0x1eacfb=_0x130c47['value'];this['_trackChangesValueDuringImport']!==_0x1eacfb&&(_0x130c47['execute'](),this['_trackChangesExecuted']=!0x0),_0x10f588&&_0x10f588['forEach'](({id:_0x506736,type:_0x37dc1a,author:_0x3ad488,created_at:_0x42cb35})=>{const _0x19642f={'id':_0x506736,'type':_0x37dc1a,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x3ad488,'createdAt':_0x42cb35?new Date(_0x42cb35):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x19642f);});}}class ut extends _0x1a8d41{['afterInit'](){const _0x42a232=this['editor'],_0x424365=_0x42a232['plugins']['get']('TrackChangesEditing');if(_0x42a232['plugins']['has']('IndentEditing')&&(_0x424365['enableCommand']('indent'),_0x424365['enableCommand']('outdent')),_0x42a232['plugins']['has']('IndentBlock')){for(const _0x5c7bfe of['indentBlock','outdentBlock'])_0x424365['enableDefaultAttributesIntegration'](_0x5c7bfe);}const _0x49026d=_0x42a232['locale'];_0x424365['registerBlockAttribute']('blockIndent'),_0x424365['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x49026d,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x46f71e=this['editor'],_0x5bed1e=_0x46f71e['locale'],_0x576ea8=_0x46f71e['plugins']['get']('TrackChangesEditing');_0x576ea8['descriptionFactory']['registerDescriptionCallback'](_0x118131=>{if('formatBlock'!=_0x118131['type'])return;const {data:_0x5486f9}=_0x118131;if(!_0x5486f9)return;if('indentBlock'!=_0x5486f9['commandName']&&'outdentBlock'!=_0x5486f9['commandName'])return;const _0x3d6af3=_0x118131['getItems']()[0x0],_0x1a1c7d=_0x576ea8['descriptionFactory']['getItemLabel'](_0x3d6af3);return'indentBlock'==_0x5486f9['commandName']?{'type':'format','content':o(_0x5bed1e,'*Indent:*\x20%0',_0x1a1c7d)}:'outdentBlock'==_0x5486f9['commandName']?{'type':'format','content':o(_0x5bed1e,'*Outdent:*\x20%0',_0x1a1c7d)}:void 0x0;});}}class ft extends _0x1a8d41{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x1a8d41{['afterInit'](){const _0x3258d5=this['editor'];if(!_0x3258d5['plugins']['has']('LinkEditing'))return;const _0x397434=_0x3258d5['plugins']['get']('TrackChangesEditing'),_0x23597c=_0x3258d5['commands']['get']('link');_0x397434['enableDefaultAttributesIntegration']('link'),_0x397434['enableDefaultAttributesIntegration']('unlink'),_0x397434['registerInlineAttribute']('linkHref');for(const _0x270386 of _0x23597c['manualDecorators'])_0x397434['registerInlineAttribute'](_0x270386['id']),_0x397434['descriptionFactory']['registerAttributeLabel'](_0x270386['id'],'link\x20('+_0x270386['label']['toLowerCase']()+')');_0x397434['descriptionFactory']['registerDescriptionCallback'](_0x4783c8=>{if('attribute'!=_0x4783c8['type'])return;const {data:_0x4e4e30}=_0x4783c8;if(!_0x4e4e30||'linkHref'!=_0x4e4e30['key'])return;const _0x296ac3=_0x4e4e30['newValue'],_0x4e9c1f=_0x3258d5['locale'];return{'type':'format','content':null==_0x296ac3?o(_0x4e9c1f,'*Remove\x20link*'):o(_0x4e9c1f,'*Set\x20link:*\x20%0','\x22'+_0x296ac3+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1e3ba5=this['editor'],_0x56aef1=_0x1e3ba5['locale'];_0x1e3ba5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x997985=>{if('formatInline'!=_0x997985['type'])return;const {data:_0x5c14b7}=_0x997985;if(_0x5c14b7){if('link'==_0x5c14b7['commandName']){const _0x4cb7d4=_0x5c14b7['commandParams'][0x0];return{'type':'format','content':o(_0x56aef1,'*Set\x20link:*\x20%0','\x22'+_0x4cb7d4+'\x22')};}return'unlink'==_0x5c14b7['commandName']?{'type':'format','content':o(_0x56aef1,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x1a8d41{['afterInit'](){const _0xd0abe7=this['editor'],_0x5e93cd=_0xd0abe7['locale'];if(!_0xd0abe7['plugins']['has']('LegacyListEditing'))return;const _0xc06901=_0xd0abe7['plugins']['get']('TrackChangesEditing'),_0x4606de=_0xd0abe7['plugins']['has']('LegacyTodoListEditing');function _0x243acf(_0x24d55d){return()=>{const _0x35d3b3=_0xd0abe7['model']['document']['selection'],_0x448455=_0xd0abe7['commands']['get'](_0x24d55d);if(_0x448455['value'])return void _0xd0abe7['execute']('paragraph',{});const _0x25e472=_0x24d55d['slice'](0x0,-0x4),_0x52b3ec=function(_0x30416c,_0x1da794,_0x44d26f){let _0x46f2f8=Array['from'](_0x30416c)['filter'](_0x1a9265=>function(_0x45f92d,_0xedd47a){return _0xedd47a['checkChild'](_0x45f92d['parent'],'listItem')&&!_0xedd47a['isObject'](_0x45f92d);}(_0x1a9265,_0x44d26f));_0x46f2f8=_0x46f2f8['filter'](_0x22e324=>!_0x22e324['is']('element','listItem')||_0x22e324['getAttribute']('listType')!=_0x1da794);const _0x1a05e4=new Set();for(const _0x5d2edf of _0x46f2f8)_0x5d2edf['is']('element','listItem')?_0x1a05e4['add'](Le(_0x5d2edf)):_0x1a05e4['add'](_0x5d2edf);return Array['from'](_0x1a05e4);}(_0x35d3b3['getSelectedBlocks'](),_0x25e472,_0xd0abe7['model']['schema']);_0xd0abe7['model']['change'](()=>{for(const _0x395293 of _0x52b3ec)_0xc06901['markBlockFormat'](_0x395293,{'commandName':_0x24d55d,'commandParams':[{'forceValue':!_0x448455['value']}],'formatGroupId':'blockName'},Ee(_0x395293));});};}function _0x51a3c6(_0x4821df){return()=>{const _0x5d4493=function(_0x51080e){let _0x1d0852=Array['from'](_0x51080e);const _0x597130=_0x1d0852['findIndex'](_0xa90b1c=>'listItem'!=_0xa90b1c['name']);return _0x597130>-0x1&&(_0x1d0852=_0x1d0852['slice'](0x0,_0x597130)),_0x1d0852;}(_0xd0abe7['model']['document']['selection']['getSelectedBlocks']()),_0x59219e=_0xd0abe7['model']['createRange'](_0xd0abe7['model']['createPositionAt'](_0x5d4493[0x0],'before'),_0xd0abe7['model']['createPositionAt'](_0x5d4493[_0x5d4493['length']-0x1],'end'));_0xd0abe7['model']['change'](()=>{_0xc06901['markBlockFormat'](_0x59219e,{'commandName':_0x4821df,'commandParams':[],'formatGroupId':'listIndent'},function(_0x3cbee4){const _0x432959=new Set();for(const _0x515e2e of _0x3cbee4){let _0x380cb7=_0x515e2e['nextSibling'];for(;_0x380cb7&&_0x380cb7['getAttribute']('listIndent')>_0x515e2e['getAttribute']('listIndent');)_0x432959['add'](_0x380cb7),_0x380cb7=_0x380cb7['nextSibling'];}return Array['from'](_0x432959);}(_0x5d4493));});};}_0xc06901['enableCommand']('numberedList',_0x243acf('numberedList')),_0xc06901['enableCommand']('bulletedList',_0x243acf('bulletedList')),_0x4606de&&_0xc06901['enableCommand']('todoList',_0x243acf('todoList')),_0xc06901['enableCommand']('indentList',_0x51a3c6('indentList')),_0xc06901['enableCommand']('outdentList',_0x51a3c6('outdentList')),_0x4606de&&_0xc06901['enableCommand']('checkTodoList',()=>{const _0xab7d7d=_0xd0abe7['commands']['get']('checkTodoList'),_0x58c84a=Array['from'](_0xab7d7d['_selectedElements']);_0x58c84a['filter'](_0x245ff1=>_0x245ff1['getAttribute']('todoListChecked')!=_0xab7d7d['value']),_0xd0abe7['model']['change'](()=>{for(const _0x10053b of _0x58c84a)_0xc06901['markBlockFormat'](_0x10053b,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0xab7d7d['value']}]});});}),_0xc06901['descriptionFactory']['registerElementLabel']('listItem',_0x5a9283=>o(_0x5e93cd,'ELEMENT_LIST_ITEM',_0x5a9283)),_0xc06901['descriptionFactory']['registerDescriptionCallback'](_0x255c55=>{if('formatBlock'!=_0x255c55['type']&&'formatInline'!=_0x255c55['type'])return;const {data:_0x30e4ff}=_0x255c55;if(_0x30e4ff){if('numberedList'==_0x30e4ff['commandName']||'bulletedList'==_0x30e4ff['commandName']||'todoList'==_0x30e4ff['commandName'])switch(_0x30e4ff['commandName']['replace']('List','')){case'bulleted':return _0x347fcb(o(_0x5e93cd,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x347fcb(o(_0x5e93cd,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x347fcb(o(_0x5e93cd,'ELEMENT_TODO_LIST'));}if('indentList'==_0x30e4ff['commandName'])return{'type':'format','content':o(_0x5e93cd,'*Indent:*\x20%0',o(_0x5e93cd,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x30e4ff['commandName'])return{'type':'format','content':o(_0x5e93cd,'*Outdent:*\x20%0',o(_0x5e93cd,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x30e4ff['commandName'])return _0x30e4ff['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5e93cd,'*Check\x20item*')}:{'type':'format','content':o(_0x5e93cd,'*Uncheck\x20item*')};}function _0x347fcb(_0x4138de){return{'type':'format','content':o(_0x5e93cd,'*Change\x20to:*\x20%0',_0x4138de)};}});}}function Le(_0x52ada7){const _0x4bcdba=_0x52ada7['getAttribute']('listIndent');if(0x0==_0x4bcdba)return _0x52ada7;let _0x104694=_0x52ada7;for(;_0x52ada7['previousSibling']&&_0x52ada7['previousSibling']['is']('element','listItem');){const _0x5bf5d5=_0x52ada7['previousSibling']['getAttribute']('listIndent');if(_0x5bf5d5==_0x4bcdba)_0x104694=_0x52ada7['previousSibling'];else{if(_0x5bf5d5<_0x4bcdba)break;}_0x52ada7=_0x52ada7['previousSibling'];}return _0x104694;}function Ee(_0x3cf58b){const _0x50b05e=[];if(_0x3cf58b['is']('element','listItem')&&_0x3cf58b['getAttribute']('listIndent')>0x0){let _0x152e8b=_0x3cf58b['nextSibling'];for(;_0x152e8b&&'listItem'==_0x152e8b['name']&&_0x152e8b['getAttribute']('listIndent')==_0x3cf58b['getAttribute']('listIndent');)_0x50b05e['push'](_0x152e8b),_0x152e8b=_0x152e8b['nextSibling'];}return _0x50b05e;}class Q extends _0x1a8d41{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x21381e=this['editor']['config']['get']('list.properties'),_0x5a92ce=this['editor']['plugins']['get']('TrackChangesEditing');_0x21381e['styles']&&_0x5a92ce['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x21381e['reversed']&&_0x5a92ce['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x21381e['startIndex']&&_0x5a92ce['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x5a92ce['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0xea4cf3,_0x3f13b7={}){const _0x34a5c7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1e5790=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x34a5c7['markMultiRangeBlockFormat'](_0x1e5790,{'commandName':'listStyle','commandParams':[{'type':_0x3f13b7['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x15ac9a,_0x94ea7b={}){const _0x2cec75=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3ea456=this['_getSuggestionBlocks'](_0x4d22e2=>_0x4d22e2['is']('element','listItem')&&'numbered'===_0x4d22e2['getAttribute']('listType'));if(_0x3ea456['length']<0x1)return;const _0x1c916a=_0x3ea456['map'](_0x387bfa=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x387bfa,'before'),this['editor']['model']['createPositionAt'](_0x387bfa,0x0)));this['editor']['model']['change'](()=>{_0x2cec75['markMultiRangeBlockFormat'](_0x1c916a,{'commandName':'listReversed','commandParams':[{'reversed':_0x94ea7b['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x4266f4,_0x1b682c={}){const _0x1010a2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x445289=this['_getSuggestionBlocks'](_0x2cb89f=>_0x2cb89f['is']('element','listItem')&&'numbered'===_0x2cb89f['getAttribute']('listType'));if(_0x445289['length']<0x1)return;const _0xedc0be=_0x445289['map'](_0x413f18=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x413f18,'before'),this['editor']['model']['createPositionAt'](_0x413f18,0x0)));this['editor']['model']['change'](()=>{_0x1010a2['markMultiRangeBlockFormat'](_0xedc0be,{'commandName':'listStart','commandParams':[{'startIndex':_0x1b682c['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x1d54db){if('formatBlock'!=_0x1d54db['type']&&'formatInline'!=_0x1d54db['type'])return;const _0x25024d=this['editor']['locale'],{data:_0x3696d1}=_0x1d54db;if(!_0x3696d1)return;let _0x248703,_0x2f2388;switch(_0x3696d1['commandName']){case'listStyle':_0x248703='*Change\x20to:*\x20%0',_0x2f2388={'type':'format','content':o(_0x25024d,_0x248703,o(_0x25024d,this['_getTranslationKeyForListStyle'](_0x3696d1['commandParams'][0x0]['type'])))};break;case'listReversed':_0x248703=_0x3696d1['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2f2388={'type':'format','content':o(_0x25024d,_0x248703)};break;case'listStart':_0x248703='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2f2388={'type':'format','content':o(_0x25024d,_0x248703,_0x3696d1['commandParams'][0x0]['startIndex'])};}return _0x2f2388;}['_getSuggestionBlocksForListStyle'](){const _0x258450=this['editor']['plugins']['get']('LegacyListUtils');let _0x4ffe65=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x4ffe65[0x0]?.['is']('element','listItem')&&_0x4ffe65['unshift'](..._0x258450['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x4ffe65[_0x4ffe65['length']-0x1]?.['is']('element','listItem')&&_0x4ffe65['push'](..._0x258450['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x4ffe65=[...new Set(_0x4ffe65)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x4ffe65=_0x4ffe65['filter'](_0x423aab=>_0x423aab['is']('element','listItem'))),_0x4ffe65;}['_getSuggestionBlocks'](_0x3ef071){const _0x25cf98=this['editor']['plugins']['get']('LegacyListUtils');let _0x4ceff6=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x3ef071)['map'](_0x4d8b1a=>{const _0x357022=this['editor']['model']['createPositionAt'](_0x4d8b1a,0x0);return[..._0x25cf98['getSiblingNodes'](_0x357022,'backward'),..._0x25cf98['getSiblingNodes'](_0x357022,'forward')];})['flat']();return _0x4ceff6=[...new Set(_0x4ceff6)],_0x4ceff6;}['_getTranslationKeyForListStyle'](_0x495b95){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x495b95)||'default')['toUpperCase']()+'_LIST_'+_0x495b95['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x1a8d41{['afterInit'](){const _0x504062=this['editor'];if(!_0x504062['plugins']['has']('MediaEmbedEditing'))return;const _0xe5e0ae=_0x504062['plugins']['get']('TrackChangesEditing'),_0x3e6b67=_0x504062['locale'];_0xe5e0ae['enableCommand']('mediaEmbed'),_0xe5e0ae['descriptionFactory']['registerElementLabel']('media',_0x23bfc4=>o(_0x3e6b67,'ELEMENT_MEDIA',_0x23bfc4)),_0x504062['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x349d01,{writer:_0x5b7c3d,options:_0x30deea})=>{if(_0x30deea['showSuggestionHighlights'])return _0x5b7c3d['createEmptyElement']('div');},'converterPriority':'high'}),_0x504062['data']['downcastDispatcher']['on']('attribute:url:media',(_0x37b356,_0x2890d4,_0x379b6b)=>{_0x379b6b['options']['showSuggestionHighlights']&&_0x37b356['stop']();},{'priority':'high'});}}class mt extends _0x1a8d41{['afterInit'](){const _0x432b92=this['editor'];_0x432b92['plugins']['has']('MentionEditing')&&_0x432b92['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class pt extends _0x1a8d41{['afterInit'](){const _0x1db60c=this['editor'];if(!_0x1db60c['plugins']['has']('MergeFieldsEditing'))return;_0x1db60c['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x1db60c['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x4fc2d4=_0x1db60c['plugins']['get']('TrackChangesEditing'),_0x37703d=_0x1db60c['locale'];_0x4fc2d4['descriptionFactory']['registerElementLabel']('mergeField',_0x5528ac=>o(_0x37703d,'ELEMENT_MERGE_FIELD',_0x5528ac)),_0x4fc2d4['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x199968=>o(_0x37703d,'ELEMENT_MERGE_FIELD',_0x199968)),_0x4fc2d4['descriptionFactory']['registerDescriptionCallback'](_0x40c161=>{if('insertion'!=_0x40c161['type']&&'deletion'!=_0x40c161['type'])return;const _0x1f05ed=_0x40c161['getContainedElement']();if(null==_0x1f05ed)return;if(!_0x1f05ed['is']('element','mergeField')&&!_0x1f05ed['is']('element','mergeFieldBlock'))return;const _0xcc5ba5=_0x1db60c['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x1f05ed['getAttribute']('id'));return'insertion'==_0x40c161['type']?{'type':'insertion','content':o(_0x37703d,'*Insert:*\x20%0','\x22'+_0xcc5ba5+'\x22\x20'+o(_0x37703d,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x37703d,'*Remove:*\x20%0','\x22'+_0xcc5ba5+'\x22\x20'+o(_0x37703d,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x1a8d41{['afterInit'](){const _0x1b57d6=this['editor'],_0x945fea=_0x1b57d6['plugins']['get']('TrackChangesEditing');_0x1b57d6['plugins']['has']('MultiLevelList')&&(_0x945fea['enableDefaultAttributesIntegration']('multiLevelList'),_0x945fea['registerBlockAttribute']('listMarkerStyle'),_0x945fea['descriptionFactory']['registerDescriptionCallback'](_0xd5e725=>this['handleDescriptions'](_0xd5e725)));}['handleDescriptions'](_0x297f4d){const _0x484ba4=this['editor']['locale'],{data:_0x3dec9e}=_0x297f4d,_0x4547da={'type':'format','content':''};if(_0x3dec9e&&'listMarkerStyle'==_0x3dec9e['key']){if(!_0x3dec9e['oldValue'])return{'type':'format','content':o(_0x484ba4,'*Set\x20format:*\x20%0',o(_0x484ba4,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3dec9e['newValue']+')'};if(!_0x3dec9e['newValue']){let _0x111d8f=_0x297f4d['head'];for(;_0x111d8f;){if(_0x111d8f['data']&&'listType'==_0x111d8f['data']['key']&&_0x111d8f['data']['newValue'])return _0x4547da;_0x111d8f=_0x111d8f['next'];}return{'type':'format','content':o(_0x484ba4,'*Remove\x20format:*\x20%0',o(_0x484ba4,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3dec9e['oldValue']+')'};}}}}class kt extends _0x1a8d41{['afterInit'](){const _0x10ea75=this['editor'];if(!_0x10ea75['plugins']['has']('PageBreakEditing'))return;_0x10ea75['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x44b566=_0x10ea75['plugins']['get']('TrackChangesEditing'),_0x16e4ce=_0x10ea75['locale'];_0x44b566['descriptionFactory']['registerElementLabel']('pageBreak',_0x2162e0=>o(_0x16e4ce,'ELEMENT_PAGE_BREAK',_0x2162e0));}}class bt extends _0x1a8d41{['afterInit'](){const _0x5dca0b=this['editor'];if(!_0x5dca0b['plugins']['has']('Paragraph'))return;const _0x15bd12=_0x5dca0b['locale'],_0x195088=_0x5dca0b['plugins']['get']('TrackChangesEditing');_0x195088['descriptionFactory']['registerElementLabel']('paragraph',_0x2aec84=>o(_0x15bd12,'ELEMENT_PARAGRAPH',_0x2aec84)),_0x195088['enableDefaultAttributesIntegration']('paragraph'),_0x195088['enableCommand']('insertParagraph'),_0x5dca0b['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x5dca0b),{'priority':'highest'}),_0x5dca0b['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x56bfa2,_0x557baa,_0x4204db)=>{_0x4204db['options']['showSuggestionHighlights']&&nr(_0x5dca0b,{'showActiveMarker':!0x1})(_0x56bfa2,_0x557baa,_0x4204db);},{'priority':'highest'});const _0x27b075=_0x195088['descriptionFactory'];_0x27b075['registerDescriptionCallback'](_0x5b03d0=>{if('insertion'!==_0x5b03d0['type'])return;const {start:_0x1b99c2,end:_0x58b832}=_0x5b03d0['getFirstRange']();if(!_0x1b99c2['isTouching'](_0x58b832)||!_0x1b99c2['nodeAfter'])return;const _0x369221=_0x5dca0b['model']['schema'],_0x1b3349=_0x1b99c2['nodeAfter'];return _0x369221['isBlock'](_0x1b3349)&&!_0x369221['isLimit'](_0x1b3349)&&_0x369221['checkChild'](_0x1b3349,'$text')?{'type':'insertion','content':o(_0x15bd12,'*Insert:*\x20%0',_0x27b075['getItemLabel'](_0x1b3349,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1cea05=this['editor'],_0x31c975=_0x1cea05['locale'];_0x1cea05['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x337a86=>{if('formatBlock'!=_0x337a86['type'])return;const {data:_0x5d3788}=_0x337a86;return _0x5d3788&&'paragraph'==_0x5d3788['commandName']?{'type':'format','content':o(_0x31c975,'*Change\x20to:*\x20%0',o(_0x31c975,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x45f624,{showActiveMarker:_0x322ca0=!0x0}={}){return(_0x17ab64,_0x321c43,_0x46ed92)=>{const _0x52c101=_0x45f624['plugins']['get']('TrackChangesEditing'),_0x44fe22=_0x321c43['markerRange']['start'],_0x5e5b84=_0x321c43['markerRange']['end'],_0x14ab4c=_0x45f624['model']['schema'];if(!_0x44fe22['isTouching'](_0x5e5b84)||!_0x44fe22['nodeAfter'])return;const _0x50847c=_0x44fe22['nodeAfter'];if(_0x14ab4c['isBlock'](_0x50847c)&&!_0x14ab4c['isLimit'](_0x50847c)&&_0x14ab4c['checkChild'](_0x50847c,'$text')){if(!_0x46ed92['consumable']['consume'](_0x321c43['markerRange'],_0x17ab64['name']))return;const {authorId:_0x3bf8d4}=_0x52c101['_splitMarkerName'](_0x321c43['markerName']),_0x587fe6=_0x46ed92['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x3bf8d4}),_0x5be54e=_0x46ed92['mapper']['toViewPosition'](_0x5e5b84);_0x322ca0&&_0x52c101['activeMarkers']['includes'](_0x321c43['markerName'])&&_0x46ed92['writer']['addClass']('ck-suggestion-marker--active',_0x587fe6),_0x46ed92['writer']['insert'](_0x5be54e,_0x587fe6),_0x46ed92['mapper']['bindElementToMarker'](_0x587fe6,_0x321c43['markerName']);}};}class yt extends _0x1a8d41{['afterInit'](){const _0x1ce3ff=this['editor'];if(!_0x1ce3ff['plugins']['has']('RemoveFormatEditing'))return;_0x1ce3ff['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2fe0f6=this['editor'];_0x2fe0f6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x48cb50=>{if('formatBlock'!=_0x48cb50['type']&&'formatInline'!=_0x48cb50['type'])return;const {data:_0x20427a}=_0x48cb50;return _0x20427a&&'removeFormat'==_0x20427a['commandName']?{'type':'format','content':o(_0x2fe0f6['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class jt extends _0x1a8d41{['afterInit'](){const _0x3039ce=this['editor'];if(!_0x3039ce['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x511e7a=_0x3039ce['plugins']['get']('TrackChangesEditing');_0x511e7a['enableCommand']('goToPreviousRestrictedEditingException'),_0x511e7a['enableCommand']('goToNextRestrictedEditingException');const _0x11436e=_0x3039ce['plugins']['get']('RestrictedEditingModeEditing');_0x11436e['enableCommand']('trackChanges'),_0x11436e['enableCommand']('acceptSuggestion'),_0x11436e['enableCommand']('discardSuggestion'),_0x11436e['enableCommand']('acceptAllSuggestions'),_0x11436e['enableCommand']('discardAllSuggestions'),_0x11436e['enableCommand']('acceptSelectedSuggestions'),_0x11436e['enableCommand']('discardSelectedSuggestions');}}class St extends _0x1a8d41{static get['requires'](){return[_0x411e1a];}['init'](){const _0x32cfab=this['editor'],_0x58d28b=_0x32cfab['plugins']['get']('TrackChangesEditing');_0x58d28b['enableCommand']('shiftEnter'),_0x32cfab['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ke(_0x32cfab),{'priority':'high'}),_0x32cfab['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ke(_0x32cfab),{'priority':'high'}),_0x32cfab['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x47cbcc,_0x2f6c5c,_0x30ad80)=>{_0x30ad80['options']['showSuggestionHighlights']&&ke(_0x32cfab,{'showActiveMarker':!0x1})(_0x47cbcc,_0x2f6c5c,_0x30ad80);}),_0x58d28b['descriptionFactory']['registerElementLabel']('softBreak',_0x2a7ccd=>o(_0x32cfab['locale'],'ELEMENT_LINE_BREAK',_0x2a7ccd));}}function ke(_0x254784,{showActiveMarker:_0x7f37ce=!0x0}={}){return(_0x2f8788,_0x1352be,_0x3113d2)=>{const _0x241cc5=_0x254784['plugins']['get']('TrackChangesEditing');if(!_0x3113d2['consumable']['test'](_0x1352be['markerRange'],_0x2f8788['name']))return;const _0x6e9183=_0x254784['model'];for(const _0x5d8074 of _0x1352be['markerRange']['getItems']()){if(!_0x5d8074['is']('element','softBreak'))continue;const _0xff1890='deletion'==_0x1352be['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0xfd31c0}=_0x241cc5['_splitMarkerName'](_0x1352be['markerName']),_0x48e9a3=_0x3113d2['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xff1890,'data-author-id':_0xfd31c0}),_0x512cf1=_0x3113d2['mapper']['toViewPosition'](_0x6e9183['createPositionBefore'](_0x5d8074));_0x7f37ce&&_0x241cc5['activeMarkers']['includes'](_0x1352be['markerName'])&&_0x3113d2['writer']['addClass']('ck-suggestion-marker--active',_0x48e9a3),_0x3113d2['writer']['insert'](_0x512cf1,_0x48e9a3),_0x3113d2['mapper']['bindElementToMarker'](_0x48e9a3,_0x1352be['markerName']);}};}class At extends _0x1a8d41{['afterInit'](){const _0x2d83dd=this['editor'],_0x1e5f7a=_0x2d83dd['model'],_0x121fcd=_0x2d83dd['locale'];if(!_0x2d83dd['plugins']['has']('StandardEditingModeEditing'))return;const _0x1868f8=_0x2d83dd['plugins']['get']('TrackChangesEditing'),_0x2d2a8f='restrictedEditingException',_0x462f0b=_0x2d83dd['commands']['get'](_0x2d2a8f);_0x1868f8['enableCommand'](_0x2d2a8f,(_0x59a842,_0x3504e2={})=>{const _0x124ea4=_0x1e5f7a['document']['selection'];if(_0x124ea4['isCollapsed'])return void _0x59a842(_0x3504e2);const _0x5d6841=void 0x0!==_0x3504e2['forceValue']?_0x3504e2['forceValue']:!_0x462f0b['value'];_0x1e5f7a['change'](()=>{const _0x50b9bc=Array['from'](_0x124ea4['getRanges']());for(const _0x486691 of _0x50b9bc){const _0x48a095=_0x5d6841?[_0x486691]:io(_0x2d2a8f,_0x486691,_0x1e5f7a);for(const _0x5255da of _0x48a095)_0x1868f8['markInlineFormat'](_0x5255da,{'commandName':_0x2d2a8f,'commandParams':[{'forceValue':_0x5d6841}]});}});}),_0x1868f8['descriptionFactory']['registerDescriptionCallback'](_0x34a394=>{if('formatBlock'!=_0x34a394['type']&&'formatInline'!=_0x34a394['type'])return;const {data:_0x26ab50}=_0x34a394;return _0x26ab50&&_0x26ab50['commandName']==_0x2d2a8f?_0x26ab50['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x121fcd,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x121fcd,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x1a8d41{['afterInit'](){const _0x7c700d=this['editor'];if(!_0x7c700d['plugins']['has']('Style')||!_0x7c700d['plugins']['has']('DataSchema'))return;const _0x1f8fbc=_0x7c700d['plugins']['get']('TrackChangesEditing'),_0x1d8cf3=_0x7c700d['locale'],_0x1db8e6=_0x7c700d['config']['get']('style')||{},_0xecc6b=_0x7c700d['plugins']['get']('GeneralHtmlSupport'),_0x44ee0b=_0x7c700d['plugins']['get']('StyleUtils')['normalizeConfig'](_0x7c700d['plugins']['get']('DataSchema'),_0x1db8e6['definitions']);_0x1f8fbc['enableDefaultAttributesIntegration']('style');const _0x107c8f=new Set();for(const _0x46215c of _0x44ee0b['block']){const _0x45b4b1=_0xecc6b['getGhsAttributeNameForElement'](_0x46215c['element']);_0x107c8f['add'](_0x45b4b1);}const _0x4a9d43=new Set();for(const _0x2fad73 of _0x44ee0b['inline']){const _0x2fa6fa=_0xecc6b['getGhsAttributeNameForElement'](_0x2fad73['element']);_0x4a9d43['add'](_0x2fa6fa);for(const _0x40841b of _0x2fad73['ghsAttributes'])_0x4a9d43['add'](_0x40841b);}for(const _0x2947bd of _0x107c8f)_0x1f8fbc['registerBlockAttribute'](_0x2947bd),_0x1f8fbc['descriptionFactory']['registerAttributeLabel'](_0x2947bd,o(_0x1d8cf3,'FORMAT_STYLE'));for(const _0x2e4545 of _0x4a9d43)_0x1f8fbc['registerInlineAttribute'](_0x2e4545),_0x1f8fbc['descriptionFactory']['registerAttributeLabel'](_0x2e4545,o(_0x1d8cf3,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5dccb1=this['editor'],_0x12c4e3=_0x5dccb1['locale'];_0x5dccb1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5bb72f=>{if('formatBlock'!=_0x5bb72f['type']&&'formatInline'!=_0x5bb72f['type'])return;const {data:_0x192729}=_0x5bb72f;return _0x192729&&'style'===_0x192729['commandName']?_0x192729['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x12c4e3,'*Set\x20format:*\x20%0',_0x192729['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x12c4e3,'*Remove\x20format:*\x20%0',_0x192729['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class vt extends _0x1a8d41{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x28b696){super(_0x28b696),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x43af51=this['editor'],_0xcd3579=_0x43af51['model']['document']['selection'];if(!_0x43af51['plugins']['has']('TableEditing'))return;const _0x40c39c=_0x43af51['locale'],_0xe0a16a=_0x43af51['plugins']['get']('TrackChangesEditing'),_0x33d659=_0x43af51['plugins']['get']('TableUtils');_0xe0a16a['descriptionFactory']['registerElementLabel']('table',_0x1a239b=>o(_0x40c39c,'ELEMENT_TABLE',_0x1a239b)),this['_setupColumnsRowsFixing'](),_0xe0a16a['enableCommand']('insertTable'),_0xe0a16a['enableCommand']('selectTableRow'),_0xe0a16a['enableCommand']('selectTableColumn');for(const _0x3dcc47 of['insertTableRowAbove','insertTableRowBelow']){const _0x1d5360=_0x43af51['commands']['get'](_0x3dcc47);_0xe0a16a['enableCommand'](_0x3dcc47,_0x3733a3=>{_0x43af51['model']['change'](_0x3b2fbe=>{_0x3733a3();const _0x43154a='above'===_0x1d5360['order'],_0x3fbe61=_0x33d659['getSelectionAffectedTableCells'](_0xcd3579),_0x24da03=_0x33d659['getRowIndexes'](_0x3fbe61),_0x37c9d=_0x43154a?_0x24da03['first']-0x1:_0x24da03['last']+0x1,_0x5e4dfc=_0x3fbe61[0x0]['findAncestor']('table'),_0xe89179=_0x33d659['createTableWalker'](_0x5e4dfc,{'startRow':_0x37c9d,'endRow':_0x37c9d}),_0x37240b=Array['from'](_0xe89179)['map'](_0x22a267=>_0x3b2fbe['createRangeOn'](_0x22a267['cell']));_0xe0a16a['markMultiRangeInsertion'](_0x37240b,'tableRow');});});}for(const _0x4f39e1 of['insertTableColumnLeft','insertTableColumnRight']){const _0x2e3c9a=_0x43af51['commands']['get'](_0x4f39e1);_0xe0a16a['enableCommand'](_0x4f39e1,_0x5b4a03=>{_0x43af51['model']['change'](_0x360e30=>{_0x5b4a03();const _0x2e974a='left'===_0x2e3c9a['order'],_0x413956=_0x33d659['getSelectionAffectedTableCells'](_0xcd3579),_0x16cf4f=_0x33d659['getColumnIndexes'](_0x413956),_0x3401b4=_0x2e974a?_0x16cf4f['first']-0x1:_0x16cf4f['last']+0x1,_0x17c367=_0x413956[0x0]['findAncestor']('table'),_0x281890=_0x33d659['createTableWalker'](_0x17c367,{'startRow':0x0,'column':_0x3401b4,'includeAllSlots':!0x1}),_0x4282eb=Array['from'](_0x281890)['map'](_0x3ab5ff=>_0x360e30['createRangeOn'](_0x3ab5ff['cell']));_0xe0a16a['markMultiRangeInsertion'](_0x4282eb,'tableColumn');});});}for(const _0x5ee97a of['removeTableRow','removeTableColumn']){const _0x51320d=_0x5ee97a['substr'](0xb),_0x4f5653=_0x51320d['toLowerCase'](),_0x41fd9a=_0x4f5653['substr'](0x0,0x3)+'span',_0xb4d3c9='table'+_0x51320d,_0x1e25ea='min'+_0x51320d,_0x3ef8d4='max'+_0x51320d;_0xe0a16a['enableCommand'](_0x5ee97a,()=>{_0x43af51['model']['change'](_0x2817b3=>{const _0x822f13=_0x33d659['getSelectionAffectedTableCells'](_0xcd3579),_0x104e1a=_0x822f13[0x0]['findAncestor']('table');let _0x21c084;if('removeTableRow'==_0x5ee97a){const _0x517aca=_0x33d659['getRowIndexes'](_0x822f13);_0x21c084={'startRow':_0x517aca['first'],'endRow':_0x517aca['last'],'includeAllSlots':!0x0};}else{const _0x18885d=_0x33d659['getColumnIndexes'](_0x822f13);_0x21c084={'startColumn':_0x18885d['first'],'endColumn':_0x18885d['last'],'includeAllSlots':!0x0};}const _0x4ce788=_0x33d659['createTableWalker'](_0x104e1a,_0x21c084),_0x15fbc4=Array['from'](_0x4ce788)['map'](({cell:_0x2701c5})=>_0x2701c5),_0x4eb1de=Re(_0x15fbc4['filter'](_0x5b8f4f=>_0x5b8f4f['hasAttribute'](_0x41fd9a))),_0x296dcf=Re(_0x15fbc4['filter'](_0x41a891=>!_0x41a891['hasAttribute'](_0x41fd9a)))['map'](_0x5e54fe=>_0x2817b3['createRangeOn'](_0x5e54fe)),_0x1cef8a=_0xe0a16a['markMultiRangeDeletion'](_0x296dcf,_0xb4d3c9);if(_0x1cef8a&&('tableRow'==_0x1cef8a['subType']||'tableColumn'==_0x1cef8a['subType'])){const _0x3312fa=this['_getSuggestionCoords'](_0x1cef8a);for(const _0x34f9a1 of _0x4eb1de){const _0x350b5e=_0x2817b3['createRangeOn'](_0x34f9a1),_0x1efd28=_0x33d659['getCellLocation'](_0x34f9a1),_0x34bb73=_0x34f9a1['getAttribute'](_0x41fd9a)-0x1,_0x4be2d7=_0x3312fa[_0x1e25ea],_0x1a1bf1=_0x3312fa[_0x3ef8d4];_0x4be2d7<=_0x1efd28[_0x4f5653]&&_0x1efd28[_0x4f5653]+_0x34bb73<=_0x1a1bf1&&_0x1cef8a['addRange'](_0x350b5e);}}});});}function _0x411e02(_0x4dbf67){const _0x457986=Array['from'](_0xcd3579['getRanges']())['map'](_0x5e327f=>_0x4b1aef['fromRange'](_0x5e327f));_0x43af51['model']['change'](_0x3d9b2e=>{const _0x4c3174=_0x3d9b2e['batch'];_0x4dbf67=_0x4dbf67['filter'](_0x3bbe5c=>'$graveyard'!=_0x3bbe5c['root']['rootName']),_0x3d9b2e['setSelection'](_0x4dbf67),_0x43af51['commands']['get']('removeTableRow')['refresh'](),_0x43af51['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x43af51['model']['enqueueChange'](()=>{_0x43af51['model']['enqueueChange'](_0x4c3174,_0xdf5829=>{const _0x3c6f3d=_0x457986['filter'](_0x185509=>'$graveyard'!=_0x185509['root']['rootName']);_0x3c6f3d['length']>0x0&&_0xdf5829['setSelection'](_0x3c6f3d);for(const _0x2238a8 of _0x457986)_0x2238a8['detach']();});});});}function _0x313262(_0x5031b9){_0x43af51['model']['change'](_0x19f66a=>{const _0x4ea073=Array['from'](_0xcd3579['getRanges']())['map'](_0x31ce8f=>_0x4b1aef['fromRange'](_0x31ce8f)),_0x240b76=[];for(const _0x5391cb of _0x5031b9)for(const _0x18c7b8 of _0x5391cb['getItems']({'shallow':!0x0}))_0x240b76['push'](_0x18c7b8);for(const _0x3c7e06 of _0x240b76)'$graveyard'!=_0x3c7e06['root']['rootName']&&(_0x19f66a['setSelection'](_0x19f66a['createPositionAt'](_0x3c7e06,0x0)),_0x43af51['commands']['get']('removeTableColumn')['refresh'](),_0x43af51['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x188a62=_0x4ea073['filter'](_0x56b984=>'$graveyard'!=_0x56b984['root']['rootName']);_0x188a62['length']>0x0&&_0x19f66a['setSelection'](_0x188a62);for(const _0x3f1c1a of _0x4ea073)_0x3f1c1a['detach']();});}function _0x4a6c87(_0x5d166c,_0x51d7ac){return _0x51d7ac['every'](_0x558e1=>_0x5d166c['some'](_0x3acbf5=>_0x3acbf5['end']['isEqual'](_0x558e1['start'])||_0x558e1['end']['isEqual'](_0x3acbf5['start'])));}function _0x18162a(_0x2f881d,_0x18f165){return!_0x2f881d['some'](_0x1fee13=>_0x18f165['some'](_0x255fac=>_0x1fee13['isIntersecting'](_0x255fac)))&&_0x2f881d['some'](_0x3edc6d=>_0x18f165['some'](_0x2eb1c0=>_0x3edc6d['end']['isTouching'](_0x2eb1c0['start'])));}_0x43af51['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x35d74a,_0x289626,_0x2ad3aa)=>{if(!_0x2ad3aa['options']['showSuggestionHighlights'])return;const _0x391cf2=_0x289626['item'];if(!_0x391cf2)return;const _0x2f4dae=_0x2ad3aa['mapper']['toViewElement'](_0x391cf2);function _0x256b91(_0x48d351){return Array['isArray'](_0x48d351)?_0x48d351:[_0x48d351];}_0x2f4dae&&'tableCell'===_0x391cf2['name']&&_0x15c908(_0x2f4dae,_0x2ad3aa['writer'],(_0x4b01b7,_0x37ef1f,_0x1cc3c6)=>_0x1cc3c6['addClass'](_0x256b91(_0x37ef1f['classes']),_0x4b01b7),(_0x338262,_0x3b11f1,_0x312b49)=>_0x312b49['removeClass'](_0x256b91(_0x3b11f1['classes']),_0x338262));},{'priority':'highest'}),_0xe0a16a['descriptionFactory']['registerDescriptionCallback'](_0x42bf2f=>{if('insertion'!=_0x42bf2f['type']&&'deletion'!=_0x42bf2f['type'])return;const _0x52f2cf=_0x42bf2f['getContainedElement']();if(null!=_0x52f2cf&&_0x52f2cf['is']('element','table')){if('insertion'==_0x42bf2f['type']){const _0x4e84ec=_0x42bf2f['getItems']()['filter'](_0x5860df=>_0x5860df['is']('$textProxy'))['map'](_0x1b315b=>_0x1b315b['data']);if(_0x4e84ec['length'])return{'type':'insertion','content':o(_0x40c39c,'*Insert:*\x20%0',o(_0x40c39c,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4e84ec['join']('\x20')+'\x22'))};}if('deletion'==_0x42bf2f['type']){const _0x52c2c4=_0x42bf2f['getItems']()['filter'](_0x4e7096=>_0x4e7096['is']('$textProxy'))['map'](_0x3a40cf=>_0x3a40cf['data']);if(_0x52c2c4['length'])return{'type':'deletion','content':o(_0x40c39c,'*Remove:*\x20%0',o(_0x40c39c,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x52c2c4['join']('\x20')+'\x22'))};}}}),_0xe0a16a['descriptionFactory']['registerDescriptionCallback'](_0x4d7219=>{if('tableRow'==_0x4d7219['subType']){const _0x5dee01=_0x4d7219['getItems']()['filter'](_0x36f250=>_0x36f250['is']('$textProxy'))['map'](_0x2cec25=>_0x2cec25['data']),_0x3c09aa=this['_getSuggestionCoords'](_0x4d7219),_0x412287=_0x3c09aa['maxRow']-_0x3c09aa['minRow']+0x1;if('insertion'==_0x4d7219['type'])return _0x5dee01['length']?{'type':'insertion','content':o(_0x40c39c,'*Insert:*\x20%0',o(_0x40c39c,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x412287,'\x22'+_0x5dee01['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x40c39c,'*Insert:*\x20%0',o(_0x40c39c,'ELEMENT_TABLE_ROW',_0x412287))};if('deletion'==_0x4d7219['type'])return _0x5dee01['length']?{'type':'deletion','content':o(_0x40c39c,'*Remove:*\x20%0',o(_0x40c39c,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x412287,'\x22'+_0x5dee01['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x40c39c,'*Remove:*\x20%0',o(_0x40c39c,'ELEMENT_TABLE_ROW',_0x412287))};}if('tableColumn'==_0x4d7219['subType']){const _0x3dcea9=_0x4d7219['getItems']()['filter'](_0x29daf4=>_0x29daf4['is']('$textProxy'))['map'](_0x56ef59=>_0x56ef59['data']),_0x44d352=this['_getSuggestionCoords'](_0x4d7219),_0xbcdea0=_0x44d352['maxColumn']-_0x44d352['minColumn']+0x1;if('insertion'==_0x4d7219['type'])return _0x3dcea9['length']?{'type':'insertion','content':o(_0x40c39c,'*Insert:*\x20%0',o(_0x40c39c,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0xbcdea0,'\x22'+_0x3dcea9['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x40c39c,'*Insert:*\x20%0',o(_0x40c39c,'ELEMENT_TABLE_COLUMN',_0xbcdea0))};if('deletion'==_0x4d7219['type'])return _0x3dcea9['length']?{'type':'deletion','content':o(_0x40c39c,'*Remove:*\x20%0',o(_0x40c39c,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0xbcdea0,'\x22'+_0x3dcea9['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x40c39c,'*Remove:*\x20%0',o(_0x40c39c,'ELEMENT_TABLE_COLUMN',_0xbcdea0))};}}),_0xe0a16a['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x411e02),_0xe0a16a['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x411e02),_0xe0a16a['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x313262),_0xe0a16a['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x313262),_0xe0a16a['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x4a6c87),_0xe0a16a['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x4a6c87),_0xe0a16a['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x18162a),_0xe0a16a['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x18162a);}['_acceptFormatSuggestionCallbackFactory'](){const _0x2c6e1f=this['editor'],_0x273aea=_0x2c6e1f['model']['document']['selection'];return(_0x1d96f7,_0x520d32)=>{_0x2c6e1f['model']['change'](_0x461b09=>{const {commandName:_0x2d9129,commandParams:_0x11b055}=_0x520d32;let _0x33170d=_0x1d96f7[0x0]['end']['nodeBefore'];_0x11b055&&_0x11b055[0x0]&&!0x1===_0x11b055[0x0]['forceValue']&&(_0x33170d=_0x1d96f7[0x0]['start']['nodeAfter']);const _0x45266e=_0x461b09['createRangeIn'](_0x33170d);if('$graveyard'==_0x45266e['root']['rootName'])return;const _0x4f9a7f=Array['from'](_0x273aea['getRanges']())['map'](_0x333014=>_0x4b1aef['fromRange'](_0x333014));_0x461b09['setSelection'](_0x45266e),_0x2c6e1f['commands']['get'](_0x2d9129)['refresh'](),_0x11b055['push']({'forceDefaultExecution':!0x0}),_0x2c6e1f['execute'](_0x2d9129,..._0x11b055);const _0x5b4321=_0x4f9a7f['filter'](_0x389e4d=>'$graveyard'!=_0x389e4d['root']['rootName']);_0x5b4321['length']>0x0&&_0x461b09['setSelection'](_0x5b4321);for(const _0x5ba384 of _0x4f9a7f)_0x5ba384['detach']();});};}['_getCoordsForCells'](_0x58e6cb){const _0x141e4a=this['editor']['plugins']['get']('TableUtils');let _0x5deaf6=Number['MAX_SAFE_INTEGER'],_0x45c0e3=Number['MIN_SAFE_INTEGER'],_0x37530f=Number['MAX_SAFE_INTEGER'],_0x58c4fc=Number['MIN_SAFE_INTEGER'];for(const _0x445dce of _0x58e6cb){if('$graveyard'==_0x445dce['root']['rootName'])continue;const {row:_0x1fed51,column:_0xc77c55}=_0x141e4a['getCellLocation'](_0x445dce),_0x77abb1=_0x445dce['hasAttribute']('rowspan')?_0x445dce['getAttribute']('rowspan')-0x1:0x0,_0x496dd3=_0x445dce['hasAttribute']('colspan')?_0x445dce['getAttribute']('colspan')-0x1:0x0;_0x5deaf6=_0x1fed51<_0x5deaf6?_0x1fed51:_0x5deaf6,_0x45c0e3=_0x1fed51+_0x77abb1>_0x45c0e3?_0x1fed51+_0x77abb1:_0x45c0e3,_0x37530f=_0xc77c55<_0x37530f?_0xc77c55:_0x37530f,_0x58c4fc=_0xc77c55+_0x496dd3>_0x58c4fc?_0xc77c55+_0x496dd3:_0x58c4fc;}return{'minRow':_0x5deaf6,'maxRow':_0x45c0e3,'minColumn':_0x37530f,'maxColumn':_0x58c4fc};}['_setupColumnsRowsFixing'](){const _0x386455=this['editor'],_0x59e1bf=_0x386455['plugins']['get']('TrackChangesEditing'),_0x3ba2a4=_0x386455['plugins']['get']('TableUtils');_0x386455['model']['document']['on']('change:data',()=>{const _0x755407=Array['from'](_0x386455['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x409a78,data:_0x1b716a}of _0x755407){const {group:_0x14e00e,id:_0x3aa0d3,subType:_0x5561d6}=_0x59e1bf['_splitMarkerName'](_0x409a78);if('suggestion'!=_0x14e00e)continue;if(null!=_0x1b716a['oldRange'])continue;const _0x24500b=_0x59e1bf['getSuggestion'](_0x3aa0d3);this['_tablePostFixingSubtypes']['includes'](_0x5561d6)&&this['_tableSuggestions']['add'](_0x24500b);}},{'priority':'low'});const _0x7924c4=(_0x295e81,_0x2ddc74)=>{let _0x4026c1=!0x1;const _0x256877=_0x2ddc74['createRangeOn'](_0x295e81),_0x49686e=_0x295e81['findAncestor']('table'),_0x4ad50f=_0x3ba2a4['getCellLocation'](_0x295e81);for(const _0x5650d1 of this['_tableSuggestions']){const _0x4d947b=_0x5650d1['subType'],_0x47ded9=_0x4d947b['startsWith']('tablePaste'),_0x566be6=_0x4d947b['substr'](_0x47ded9?0xa:0x5),_0x59a8eb=_0x566be6['toLowerCase'](),_0x463846=_0x59a8eb['substr'](0x0,0x3)+'span',_0x5c4856='min'+_0x566be6,_0x4b0729='max'+_0x566be6;if(!_0x5650d1['isInContent'])continue;if(_0x49686e!=_0x5650d1['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x5650d1['isIntersectingWithRange'](_0x256877))continue;const _0x18e2a0=_0x295e81['hasAttribute'](_0x463846)?_0x295e81['getAttribute'](_0x463846)-0x1:0x0,_0x2875f2=this['_getSuggestionCoords'](_0x5650d1),_0x8e61b4=_0x2875f2[_0x5c4856],_0x1a6895=_0x2875f2[_0x4b0729];_0x8e61b4<=_0x4ad50f[_0x59a8eb]&&_0x4ad50f[_0x59a8eb]+_0x18e2a0<=_0x1a6895&&(_0x5650d1['addRange'](_0x256877),_0x4026c1=!0x0);}return _0x4026c1;};_0x386455['model']['document']['registerPostFixer'](_0x5461e8=>{let _0x5b0698=!0x1;for(const _0x56bb9a of _0x386455['model']['document']['differ']['getChanges']())if('insert'==_0x56bb9a['type']){if('tableRow'==_0x56bb9a['name']){for(const _0x348007 of _0x56bb9a['position']['nodeAfter']['getChildren']())_0x5b0698=_0x5b0698||_0x7924c4(_0x348007,_0x5461e8);}else'tableCell'==_0x56bb9a['name']&&(_0x5b0698=_0x5b0698||_0x7924c4(_0x56bb9a['position']['nodeAfter'],_0x5461e8));}return _0x5b0698;});}['_getSuggestionCoords'](_0x3d1674){return this['_getCoordsForCells'](_0x3d1674['getRanges']()['map'](_0x4cf6ec=>_0x4cf6ec['start']['nodeAfter']));}}function Re(_0x418d9e){return Array['from'](new Set(_0x418d9e)['values']());}class _t extends _0x1a8d41{static get['requires'](){return[vt];}['afterInit'](){const _0x310ac4=this['editor'],_0x5a412f=_0x310ac4['model']['document']['selection'],_0x3c836d=_0x310ac4['locale'];if(!_0x310ac4['plugins']['has']('TableEditing'))return;const _0x1e2b3b=_0x310ac4['plugins']['get']('TrackChangesEditing'),_0x2aa3b9=_0x310ac4['plugins']['get']('TableUtils'),_0x4503c8=_0x310ac4['plugins']['get'](vt);_0x4503c8['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x1e2b3b['enableCommand']('mergeTableCells',()=>{const _0x32d31e=_0x2aa3b9['getSelectionAffectedTableCells'](_0x310ac4['model']['document']['selection']);_0x310ac4['model']['change'](()=>{_0x1e2b3b['markMultiRangeBlockFormat'](_0x32d31e,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x310ac4['commands']['get']('mergeTableCells')['on']('execute',(_0x245de3,_0x4332bf)=>{_0x310ac4['commands']['get']('trackChanges')['value']&&(_0x4332bf['length']>0x0&&_0x4332bf[_0x4332bf['length']-0x1]&&_0x4332bf[_0x4332bf['length']-0x1]['forceDefaultExecution']||_0x1e2b3b['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x245de3['stop']());},{'priority':'highest'});for(const _0xfac70c of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x33d575=_0x310ac4['commands']['get'](_0xfac70c);_0x1e2b3b['enableCommand'](_0xfac70c,()=>{const _0x4b5ab1=_0x310ac4['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x14e7ec=>_0x14e7ec['is']('element','tableCell')),_0x449c2a=_0x33d575['value'];_0x310ac4['model']['change'](()=>{_0x1e2b3b['markMultiRangeBlockFormat']([_0x4b5ab1,_0x449c2a],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x184520 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x53a06b=_0x310ac4['commands']['get'](_0x184520);_0x1e2b3b['enableCommand'](_0x184520,()=>{const _0x2cfc30=_0x2aa3b9['getSelectionAffectedTableCells'](_0x310ac4['model']['document']['selection'])[0x0],_0x366c10=_0x2cfc30['findAncestor']('table'),{column:_0x397e5d,row:_0x5933e0}=_0x2aa3b9['getCellLocation'](_0x2cfc30);let _0x508904=[];if('horizontally'==_0x53a06b['direction']){const _0x493abc=_0x2aa3b9['createTableWalker'](_0x366c10,{'startRow':_0x5933e0,'endRow':_0x5933e0,'includeAllSlots':!0x0});_0x508904=Array['from'](_0x493abc)['map'](_0x562507=>_0x562507['cell']);}else{const _0x5dc681=_0x2aa3b9['createTableWalker'](_0x366c10,{'column':_0x397e5d,'includeAllSlots':!0x0});_0x508904=Array['from'](_0x5dc681)['map'](_0x45b378=>_0x45b378['cell']);}_0x310ac4['model']['change'](_0x98155e=>{_0x1e2b3b['markBlockFormat'](_0x98155e['createRangeOn'](_0x2cfc30),{'commandName':_0x184520,'commandParams':[]},_0x508904,_0x184520);});});}_0x1e2b3b['descriptionFactory']['registerDescriptionCallback'](_0x1dc9ad=>{if('formatBlock'!=_0x1dc9ad['type']&&'formatInline'!=_0x1dc9ad['type'])return;const {data:_0x652495}=_0x1dc9ad;return _0x652495&&'mergeTableCells'==_0x652495['commandName']?{'type':'format','content':o(_0x3c836d,'*Merge\x20cells*')}:void 0x0;}),_0x1e2b3b['descriptionFactory']['registerDescriptionCallback'](_0x224733=>{if('formatBlock'!=_0x224733['type']&&'formatInline'!=_0x224733['type'])return;const {data:_0x1cee2e}=_0x224733;return _0x1cee2e?'splitTableCellVertically'==_0x1cee2e['commandName']?{'type':'format','content':o(_0x3c836d,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x1cee2e['commandName']?{'type':'format','content':o(_0x3c836d,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x44f382=_0x4503c8['_acceptFormatSuggestionCallbackFactory']();for(const _0x5634f1 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x1e2b3b['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5634f1,'accept',_0x44f382);for(const _0x49753c of['splitTableCellVertically','splitTableCellHorizontally'])_0x1e2b3b['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x49753c,'accept',_0x44f382);_0x1e2b3b['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x297217=>{_0x310ac4['model']['change'](_0x95bcd3=>{const _0x8d2fa6=Array['from'](_0x5a412f['getRanges']())['map'](_0x2e6cf2=>_0x4b1aef['fromRange'](_0x2e6cf2));_0x95bcd3['setSelection'](_0x297217),_0x310ac4['commands']['get']('mergeTableCells')['refresh'](),_0x310ac4['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x537264=_0x8d2fa6['filter'](_0x1b50e9=>'$graveyard'!=_0x1b50e9['root']['rootName']);_0x537264['length']>0x0&&_0x95bcd3['setSelection'](_0x537264);for(const _0x96a093 of _0x8d2fa6)_0x96a093['detach']();});});for(const _0x1813c8 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x2eb7fb=_0x310ac4['commands']['get'](_0x1813c8);_0x2eb7fb['on']('set:isEnabled',(_0x3103af,_0x24aed0,_0x563f31)=>{if(_0x563f31){const _0x28710e=_0x310ac4['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1759d8=>_0x1759d8['is']('element','tableCell'));this['_areMergableCells'](_0x2eb7fb['value'],_0x28710e)||(_0x3103af['return']=!0x1,_0x3103af['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x5bd49d=this['editor']['commands']['get']('mergeTableCells'),_0x2a42e8=this['editor']['plugins']['get']('TableUtils');if(!_0x5bd49d['isEnabled'])return!0x1;const _0x2c2fc8=_0x2a42e8['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x4cadc7 of _0x2c2fc8)for(const _0x1fb57f of _0x2c2fc8)if(_0x4cadc7!=_0x1fb57f&&!this['_areMergableCells'](_0x4cadc7,_0x1fb57f))return!0x1;return!0x0;}['_areMergableCells'](_0x2a5c79,_0x1f9fbe){const _0x126f7f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1750ee=this['editor']['model']['createRangeOn'](_0x2a5c79),_0x1b621b=this['editor']['model']['createRangeOn'](_0x1f9fbe),_0x467144=new Set(),_0x58fa00=new Set();for(const _0x36d772 of _0x126f7f['getSuggestions']())if(('insertion'==_0x36d772['type']||'deletion'==_0x36d772['type']||'mergeTableCells'==_0x36d772['subType'])&&_0x36d772['isInContent']){for(const _0x4843fe of _0x36d772['getRanges']())_0x4843fe['containsRange'](_0x1750ee,!0x0)&&_0x467144['add'](_0x36d772['type']+':'+_0x36d772['author']['id']),_0x4843fe['containsRange'](_0x1b621b,!0x0)&&_0x58fa00['add'](_0x36d772['type']+':'+_0x36d772['author']['id']);}if(_0x467144['size']!=_0x58fa00['size'])return!0x1;for(const _0x392b60 of _0x467144)if(!_0x58fa00['has'](_0x392b60))return!0x1;return!0x0;}}class Ct extends _0x1a8d41{static get['requires'](){return[vt];}['afterInit'](){const _0xed1ba6=this['editor'];if(!_0xed1ba6['plugins']['has']('TableEditing'))return;const _0x42114b=_0xed1ba6['locale'],_0x132016=_0xed1ba6['plugins']['get']('TrackChangesEditing');_0x132016['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x132016['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x132016['registerBlockAttribute']('headingRows'),_0x132016['registerBlockAttribute']('headingColumns'),_0x132016['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x42114b,'FORMAT_HEADER_ROW')),_0x132016['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x42114b,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x370501=this['editor']['plugins']['get']('TrackChangesEditing'),_0xe0bed6=this['editor']['plugins']['get']('TableUtils'),_0x46b5ba=this['editor']['plugins']['get'](vt)['_acceptFormatSuggestionCallbackFactory']();function _0x4e2c1e({showActiveMarker:_0x4c6a5e=!0x0,setDataAttribute:_0x2ab1a1=!0x0}={}){return(_0x2410be,_0x503f7d,_0x29af9a)=>{const {type:_0x2d29d9,id:_0x4f2277}=_0x370501['_splitMarkerName'](_0x503f7d['markerName']),_0x187d06=_0x370501['getSuggestion'](_0x4f2277),_0x7c648b=_0x187d06['data'];if('formatBlock'!=_0x187d06['type']||!_0x7c648b||'setTableColumnHeader'!=_0x7c648b['commandName'])return;if(_0x503f7d['item'])return void _0x2410be['stop']();if(!_0x29af9a['consumable']['consume'](_0x503f7d['markerRange'],_0x2410be['name']))return;const _0x7e5ae1=_0x503f7d['markerRange']['start']['nodeAfter'],_0xf18ecc=_0x503f7d['markerRange']['end']['nodeBefore'],_0x44a16a=_0x7e5ae1['parent']['parent'],{column:_0x3c9b34}=_0xe0bed6['getCellLocation'](_0x7e5ae1),{column:_0x57b0ab}=_0xe0bed6['getCellLocation'](_0xf18ecc);for(let _0x4ec9c4=_0x3c9b34;_0x4ec9c4<=_0x57b0ab;_0x4ec9c4++){const _0x20959c=_0xe0bed6['createTableWalker'](_0x44a16a,{'column':_0x4ec9c4,'includeAllSlots':!0x1});for(const _0x375c12 of _0x20959c){const _0x10ae72=_0x375c12['cell'],_0x2f57e5=_0x29af9a['mapper']['toViewElement'](_0x10ae72);_0x29af9a['writer']['addClass']('ck-suggestion-marker-'+_0x2d29d9,_0x2f57e5),_0x2ab1a1&&_0x29af9a['writer']['setAttribute']('data-suggestion',_0x4f2277,_0x2f57e5),_0x29af9a['mapper']['bindElementToMarker'](_0x2f57e5,_0x503f7d['markerName']),_0x4c6a5e&&(_0x370501['activeMarkers']['includes'](_0x503f7d['markerName'])?_0x29af9a['writer']['addClass']('ck-suggestion-marker--active',_0x2f57e5):_0x29af9a['writer']['removeClass']('ck-suggestion-marker--active',_0x2f57e5));}}};}_0x370501['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x46b5ba),_0x370501['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x46b5ba),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x4e2c1e(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x49eafe,_0x2e95a4,_0x59a4ed)=>{_0x59a4ed['options']['showSuggestionHighlights']&&_0x4e2c1e({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x49eafe,_0x2e95a4,_0x59a4ed);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x13edb9,_0x565ae8,_0x204bda)=>{const {type:_0x4d0a88,id:_0x28c834}=_0x370501['_splitMarkerName'](_0x565ae8['markerName']),_0x1b0216=_0x370501['getSuggestion'](_0x28c834),_0x4d18e4=_0x1b0216['data'];if('formatBlock'!=_0x1b0216['type']||!_0x4d18e4||'setTableColumnHeader'!=_0x4d18e4['commandName'])return;const _0x555c9c=_0x204bda['mapper']['markerNameToElements'](_0x565ae8['markerName']);if(_0x555c9c){for(const _0x527a64 of _0x555c9c)_0x204bda['writer']['removeClass']('ck-suggestion-marker-'+_0x4d0a88,_0x527a64),_0x204bda['writer']['removeClass']('ck-suggestion-marker--active',_0x527a64),_0x204bda['writer']['removeAttribute']('data-suggestion',_0x527a64),_0x204bda['mapper']['unbindElementFromMarkerName'](_0x527a64,_0x565ae8['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x76f80b=this['editor'],_0x42dc57=_0x76f80b['locale'];function _0x30468b(_0x39e954){return{'type':'format','content':o(_0x42dc57,'*Format:*\x20%0',_0x39e954)};}_0x76f80b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3fbe10=>{if('formatBlock'!=_0x3fbe10['type'])return;const {data:_0x1456be}=_0x3fbe10;if(_0x1456be){if('setTableRowHeader'==_0x1456be['commandName']){const _0x41fd0b=_0x1456be['commandParams'][0x0]['forceValue'];return _0x30468b(o(_0x42dc57,_0x41fd0b?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x1456be['commandName']){const _0x3e35e3=_0x1456be['commandParams'][0x0]['forceValue'];return _0x30468b(o(_0x42dc57,_0x3e35e3?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const we=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],ve=Object['fromEntries'](we['map'](_0x201d18=>[_0x201d18,null]));class Nt extends _0x1a8d41{static get['requires'](){return[vt];}['afterInit'](){const _0x527c1c=this['editor'];if(!_0x527c1c['plugins']['has']('TableClipboard'))return;const _0xda14ea=_0x527c1c['plugins']['get']('TrackChangesEditing'),_0x8ac161=_0x527c1c['plugins']['get']('TableUtils'),_0x245ae9=_0x527c1c['plugins']['get'](vt),_0xb35a8a=_0x527c1c['plugins']['get']('TableClipboard');_0x245ae9['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x527c1c['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x527c1c['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x60d1c=null;_0x527c1c['model']['on']('insertContent',(_0x24d9e3,_0x5814da)=>{const [_0x508bcd,_0x360d42]=_0x5814da,_0x1ea5b9=_0x5814da[_0x5814da['length']-0x1];_0x1ea5b9&&_0x1ea5b9['forceDefaultExecution']||_0xda14ea['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x21684a,_0x8c155a,_0x2a3d23,_0x3efca8,_0x412fa2){if(_0x8c155a&&!_0x8c155a['is']('documentSelection'))return!0x1;const _0x583bff=_0x412fa2['getTableIfOnlyTableInContent'](_0x21684a,_0x2a3d23);if(!_0x583bff||!Ae(_0x583bff,void 0x0,_0x3efca8))return!0x1;const _0x157322=_0x3efca8['getSelectionAffectedTableCells'](_0x2a3d23['document']['selection']);if(!_0x157322['length'])return!0x1;const _0x1fae8b=_0x157322[0x0]['findAncestor']('table'),_0x31d3a6=_0x3efca8['getRowIndexes'](_0x157322),_0x5150d8=_0x3efca8['getColumnIndexes'](_0x157322),_0x320399={'startRow':_0x31d3a6['first'],'endRow':_0x31d3a6['last'],'startColumn':_0x5150d8['first'],'endColumn':_0x5150d8['last']};return 0x1==_0x157322['length']&&(_0x320399['endRow']+=_0x3efca8['getRows'](_0x583bff)-0x1,_0x320399['endColumn']+=_0x3efca8['getColumns'](_0x583bff)-0x1),Ae(_0x1fae8b,_0x320399,_0x3efca8);}(_0x508bcd,_0x360d42,_0x527c1c['model'],_0x8ac161,_0xb35a8a)&&(_0x24d9e3['stop'](),_0x60d1c={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x527c1c['model']['change'](()=>{_0x527c1c['model']['insertContent'](_0x5814da[0x0],_0x5814da[0x1],_0x5814da[0x2],{'forceDefaultExecution':!0x0});const _0x4fad07=_0x2d895c(),{rowInsertionRanges:_0x286de6,columnInsertionRanges:_0x33f9c0,insertionRanges:_0x926c2e,deletionRanges:_0x147b65,cells:_0x4eea7b}=_0x60d1c;_0x286de6['length']&&_0xda14ea['markMultiRangeInsertion'](_0x286de6,'tablePasteRow',{'tablePasteChainId':_0x4fad07}),_0x33f9c0['length']&&_0xda14ea['markMultiRangeInsertion'](_0x33f9c0,'tablePasteColumn',{'tablePasteChainId':_0x4fad07}),_0x926c2e['length']&&(_0xda14ea['markMultiRangeInsertion'](_0x926c2e,'tablePaste',{'tablePasteChainId':_0x4fad07,'skipNestingCheck':!0x0}),_0x926c2e['forEach'](_0x4edeb8=>_0x4edeb8['detach']?.())),_0x147b65['length']&&(_0xda14ea['markMultiRangeDeletion'](_0x147b65,'tablePaste',{'tablePasteChainId':_0x4fad07,'skipNestingCheck':!0x0}),_0x147b65['forEach'](_0x37d378=>_0x37d378['detach']?.()));const _0x48ea6f=_0xda14ea['markMultiRangeBlockFormat'](_0x4eea7b['map'](({element:_0x3e78c1})=>_0x3e78c1),{'formatGroupId':_0x2d895c()},[],'tablePasteCell',{'tablePasteChainId':_0x4fad07});if(_0x48ea6f){const _0x58ac13=_0x48ea6f['getMarkers'](),_0x378a3a=[];for(const {element:_0x166c29,attributes:_0x2a661f}of _0x4eea7b){if(!_0x2a661f)continue;const _0x3a2be9=_0x527c1c['model']['createRangeOn'](_0x166c29),_0x24ff66=_0x58ac13['find'](_0x270d40=>_0x270d40['getRange']()['isEqual'](_0x3a2be9));_0x24ff66&&_0x378a3a['push']([_0x24ff66['name'],_0x2a661f]);}_0x378a3a['length']&&_0x48ea6f['setAttribute']('markerAttributes',Object['fromEntries'](_0x378a3a));}_0x60d1c=null;}));},{'priority':_0x33fff0['high']+0xa}),_0x527c1c['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x13da03,_0x34d149)=>{const [_0x4b7813,_0x7086bc,,_0xd39d63]=_0x34d149;if(!_0x60d1c)return;_0x13da03['stop']();const _0x4b91f6=_0x4b7813['cell'],_0x4e9af2=_0x7086bc,_0x27401b=je(_0x4b91f6),_0x1108d3=je(_0x4e9af2);_0x13da03['return']=_0x4b91f6;let _0x4410e8=null,_0x4a3a92=null;if(_0x1108d3||_0x27401b){if(_0x27401b&&!_0x1108d3){_0xd39d63['remove'](_0x4b91f6['getChild'](0x0));for(const _0x2151c1 of Array['from'](_0x4e9af2['getChildren']()))_0xd39d63['insert'](_0x2151c1,_0x4b91f6,'end');const _0x367a57=_0x60d1c['rowInsertionIndexes']['includes'](_0x4b7813['row']),_0x32d41f=_0x60d1c['columnInsertionIndexes']['includes'](_0x4b7813['column']);_0x367a57||_0x32d41f||(_0x4410e8=_0x4b1aef['fromRange'](_0xd39d63['createRangeIn'](_0x4b91f6)));}else _0x1108d3&&!_0x27401b&&(_0x4a3a92=_0xd39d63['createRangeIn'](_0x4b91f6));}else{const _0x5d8c83=_0xd39d63['createElement']('tableCellSuggestion'),_0x16c5d1=_0xd39d63['createElement']('tableCellSuggestion');_0xd39d63['wrap'](_0xd39d63['createRangeIn'](_0x4b91f6),_0x16c5d1),_0xd39d63['insert'](_0x5d8c83,_0x4b91f6,0x0);for(const _0x50b4f8 of Array['from'](_0x4e9af2['getChildren']()))_0xd39d63['insert'](_0x50b4f8,_0x5d8c83,'end');_0x4410e8=_0x4b1aef['fromRange'](_0xd39d63['createRangeOn'](_0x5d8c83)),_0x4a3a92=_0x4b1aef['fromRange'](_0xd39d63['createRangeOn'](_0x16c5d1));}const _0x81b1ed=Array['from'](_0x4e9af2['getAttributes']())['filter'](([_0x179a9d])=>we['includes'](_0x179a9d));_0x60d1c['cells']['push']({'element':_0x4b91f6,'attributes':_0x81b1ed['length']?Object['fromEntries'](_0x81b1ed):null}),_0x4410e8&&_0x60d1c['insertionRanges']['push'](_0x4410e8),_0x4a3a92&&_0x60d1c['deletionRanges']['push'](_0x4a3a92);},{'priority':'high'}),_0x8ac161['on']('insertColumns',(_0xea70a,_0xee550)=>{const [_0x5716eb,_0x54d65d={}]=_0xee550;if(!_0x60d1c)return;const _0x8aa4e6=_0x54d65d['at']||0x0,_0xe32c35=_0x54d65d['columns']||0x1;_0x60d1c['columnInsertionIndexes']=new Array(_0xe32c35)['fill'](_0x8aa4e6)['map']((_0x5ab173,_0x3166c0)=>_0x5ab173+_0x3166c0);for(const {cell:_0x570510}of _0x8ac161['createTableWalker'](_0x5716eb,{'startColumn':_0x8aa4e6,'endColumn':_0x8aa4e6+_0xe32c35-0x1}))_0x60d1c['columnInsertionRanges']['push'](_0x527c1c['model']['createRangeOn'](_0x570510));},{'priority':'low'}),_0x8ac161['on']('insertRows',(_0x445db0,_0x373582)=>{const [_0x490269,_0xd00fb0={}]=_0x373582;if(!_0x60d1c)return;const _0x270258=_0xd00fb0['at']||0x0,_0x32df6a=_0xd00fb0['rows']||0x1;_0x60d1c['rowInsertionIndexes']=new Array(_0x32df6a)['fill'](_0x270258)['map']((_0x1a4d4,_0x5f0f69)=>_0x1a4d4+_0x5f0f69);for(const {cell:_0x70dd91}of _0x8ac161['createTableWalker'](_0x490269,{'startRow':_0x270258,'endRow':_0x270258+_0x32df6a-0x1}))_0x60d1c['rowInsertionRanges']['push'](_0x527c1c['model']['createRangeOn'](_0x70dd91));},{'priority':'low'}),_0xda14ea['descriptionFactory']['registerDescriptionCallback'](_0x12f594=>{if(_0x12f594['subType']&&_0x12f594['subType']['startsWith']('tablePaste'))return _0x12f594['previous']?{}:{'type':'insertion','content':o(_0x527c1c['locale'],'*Replace\x20table\x20cells*')};});const _0x469db1=()=>!0x1;for(const _0x156db3 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0xda14ea['_suggestionFactory']['registerCustomCallback']('insertion',_0x156db3,'join',_0x469db1),_0xda14ea['_suggestionFactory']['registerCustomCallback']('deletion',_0x156db3,'join',_0x469db1),_0xda14ea['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x156db3,'join',_0x469db1);_0xda14ea['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x469db1),_0xda14ea['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x41ea13,_0x3494eb,_0x35d881)=>{const _0x5c97c1=_0x41ea13['map'](_0x18339e=>_0x18339e['getContainedElement']())['filter'](_0x2f6917=>_0x2f6917),_0x2c2879=new Map(_0x5c97c1['map'](_0x1fa7cb=>[_0x1fa7cb,null]));if(_0x60d1c){for(const {element:_0x265857,attributes:_0x11ee67}of _0x60d1c['cells'])_0x11ee67&&_0x2c2879['set'](_0x265857,_0x11ee67);}else{if(_0x35d881&&_0x35d881['markerAttributes'])for(const [_0x2c75be,_0x3a240d]of Object['entries'](_0x35d881['markerAttributes'])){const _0x513493=_0x527c1c['model']['markers']['get'](_0x2c75be),_0x3668b6=_0x513493?_0x513493['getRange']()['getContainedElement']():null;_0x3668b6&&_0x2c2879['set'](_0x3668b6,_0x3a240d);}}_0x527c1c['model']['change'](_0x4f9c8e=>{for(const [_0x5f00a6,_0x43daf9]of _0x2c2879)_0x4f9c8e['setAttributes']({...ve,..._0x43daf9},_0x5f00a6);});});const _0x4623d8=(_0x5a51ae,_0x424c4c)=>{_0xda14ea['_suggestionFactory']['registerCustomCallback'](_0x5a51ae,'tablePaste',_0x424c4c,(_0x44760a,_0x2ea168,_0x69722f)=>{_0x527c1c['model']['change'](_0xb1684c=>{const _0x1708d6=[];for(const _0x428047 of _0x44760a){const _0x61dc68=_0x428047['start']['nodeAfter'];_0x61dc68['is']('element','tableCellSuggestion')&&_0x1708d6['push'](_0x61dc68);}_0xda14ea['_suggestionFactory']['getSuggestionCallback'](_0x5a51ae,null,_0x424c4c)(_0x44760a,_0x2ea168,_0x69722f);for(const _0x53f038 of _0x1708d6)'$graveyard'!=_0x53f038['root']['rootName']&&_0xb1684c['unwrap'](_0x53f038);});});};_0x4623d8('insertion','accept'),_0x4623d8('insertion','discard'),_0x4623d8('deletion','accept'),_0x4623d8('deletion','discard'),_0xda14ea['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x930327=>{const _0x24fc86=_0x930327['map'](_0x6caa08=>_0x6caa08['getContainedElement']()),_0x545d9e=_0x24fc86[0x0]['findAncestor']('table'),{minRow:_0x172edd,maxRow:_0x1219b5}=_0x245ae9['_getCoordsForCells'](_0x24fc86);_0x8ac161['removeRows'](_0x545d9e,{'at':_0x172edd,'rows':_0x1219b5-_0x172edd+0x1});}),_0xda14ea['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x330c0d=>{const _0x57bd77=_0x330c0d['map'](_0x315be=>_0x315be['getContainedElement']()),_0x307776=_0x57bd77[0x0]['findAncestor']('table'),{minColumn:_0x176ce4,maxColumn:_0xc6778b}=_0x245ae9['_getCoordsForCells'](_0x57bd77);_0x8ac161['removeColumns'](_0x307776,{'at':_0x176ce4,'columns':_0xc6778b-_0x176ce4+0x1});});const _0x589e4c=(_0x59f988,_0x51b8cd)=>{if(!_0x51b8cd['subType']||!_0x51b8cd['subType']['startsWith']('tablePaste'))return;const _0x2beac9=_0x51b8cd['attributes']['tablePasteChainId'],_0x11994d=_0xda14ea['getSuggestions']()['filter'](_0x3465a7=>_0x3465a7['isInContent']&&_0x3465a7['attributes']&&_0x3465a7['attributes']['tablePasteChainId']==_0x2beac9);_0x11994d['length']&&_0x51b8cd['getAllAdjacentSuggestions']()['length']!=_0x11994d['length']&&_0x11994d['reduce']((_0x5842ac,_0x9af68c)=>(_0x5842ac['next']=_0x9af68c,_0x9af68c['previous']=_0x5842ac,_0x9af68c));};function _0x2f44eb(_0x1465e6,_0x18092a=!0x0){const {id:_0x3ed5d4,authorId:_0xcc3dcc}=_0xda14ea['_splitMarkerName'](_0x1465e6['markerName']),_0x570440=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0xf06e91=_0xda14ea['activeMarkers']['includes'](_0x1465e6['markerName']);return _0xf06e91&&_0x570440['push']('ck-suggestion-marker--active'),{'classes':_0x570440,'attributes':{'data-suggestion':_0x3ed5d4,'data-author-id':_0xcc3dcc},'priority':_0xf06e91&&_0x18092a?0xbc2:0xbb8};}_0xda14ea['on']('suggestionLoaded',_0x589e4c,{'priority':'high'}),_0xda14ea['on']('suggestionUnloaded',_0x589e4c,{'priority':'high'}),_0x527c1c['model']['document']['registerPostFixer'](()=>{let _0x957db4=!0x1;const _0x1d83a2=Array['from'](_0x527c1c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x31bbeb,data:_0x9665d0}of _0x1d83a2){const {group:_0x3bb3d6,type:_0x59cd1f,id:_0x36c315}=_0xda14ea['_splitMarkerName'](_0x31bbeb);if('suggestion'!=_0x3bb3d6||'deletion'!=_0x59cd1f||_0x9665d0['oldRange'])continue;if(!_0xda14ea['hasSuggestion'](_0x36c315))continue;const _0x51b43c=_0xda14ea['getSuggestion'](_0x36c315)['getRanges'](),_0x32652a=_0x527c1c['plugins']['get']('Users')['me'];for(const _0x3ece13 of _0xda14ea['getSuggestions']()){if(!_0x3ece13['isInContent']||_0x3ece13['author']!=_0x32652a)continue;if('formatBlock'!=_0x3ece13['type']||'tablePasteCell'!=_0x3ece13['subType'])continue;if(_0x3ece13['getRanges']()['every'](_0x425540=>_0x51b43c['some'](_0x2e2590=>_0x2e2590['containsRange'](_0x425540,!0x0)))){for(const _0x400e78 of _0x3ece13['getAllAdjacentSuggestions']())_0x400e78['isInContent']&&(_0x400e78['discard'](),_0x957db4=!0x0);}}}return _0x957db4;}),_0x527c1c['model']['document']['registerPostFixer'](_0x24ef79=>{const _0x1d97bd=_0x527c1c['commands']['get']('redo');if(!_0x1d97bd||!_0x1d97bd['_createdBatches']['has'](_0x24ef79['batch']))return!0x1;let _0x1546bb=!0x1;const _0x4eaeea=_0x527c1c['plugins']['get']('Users')['me'],_0x3d6377=_0x527c1c['model']['document']['differ']['getChanges'](),_0x1de914=Array['from'](_0x527c1c['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x23f309,data:_0x437fb6})=>{const {group:_0x331f0a,subType:_0x1322cf,authorId:_0x20fb52}=_0xda14ea['_splitMarkerName'](_0x23f309);return'suggestion'==_0x331f0a&&'tablePaste'==_0x1322cf&&_0x20fb52==_0x4eaeea['id']&&!_0x437fb6['oldRange'];});for(const _0xcdf4a7 of _0x3d6377){if('insert'!=_0xcdf4a7['type']||'tableCellSuggestion'!=_0xcdf4a7['name']||0x1!=_0xcdf4a7['length'])continue;const _0x2750dc=_0x24ef79['createRange'](_0xcdf4a7['position'],_0xcdf4a7['position']['getShiftedBy'](0x1));if(!_0x1de914['find'](({data:_0x478888})=>_0x478888['newRange']['isEqual'](_0x2750dc))){for(const {name:_0x1434fe,data:_0x2cfe3b}of _0x1de914)if(_0x2750dc['containsRange'](_0x2cfe3b['newRange'])){_0x24ef79['updateMarker'](_0x1434fe,{'range':_0x2750dc}),_0x1546bb=!0x0;break;}}}return _0x1546bb;}),_0x527c1c['model']['document']['registerPostFixer'](_0x50bc54=>{let _0x2e882c=!0x1;const _0x141730=_0x527c1c['plugins']['get']('Users')['me'],_0xd1bb45=_0xda14ea['getSuggestions']()['filter'](_0x244f99=>_0x244f99['isInContent']&&_0x244f99['author']==_0x141730),_0xd612f3=new Set(),_0x531e54=new Set();for(const _0x2a2a49 of _0xd1bb45)if('tablePaste'==_0x2a2a49['subType'])for(const _0x5cba2c of _0x2a2a49['getMarkers']()){const _0x46c726=_0x5cba2c['getRange']()['getContainedElement']();if(_0x46c726){if(_0x46c726['is']('element','tableCellSuggestion')&&je(_0x46c726)){_0x2a2a49['removeMarker'](_0x5cba2c['name']),_0xd612f3['add'](_0x46c726),_0x2e882c=!0x0;const _0x334e23=_0x46c726['nextSibling'],_0xe2050f=_0x46c726['previousSibling'],_0x54b1d7=_0x334e23&&_0x334e23['is']('element','tableCellSuggestion'),_0x2c6ce4=_0xe2050f&&_0xe2050f['is']('element','tableCellSuggestion');_0x54b1d7&&!_0xd612f3['has'](_0x334e23)&&_0x531e54['add'](_0x334e23),_0x2c6ce4&&!_0xd612f3['has'](_0xe2050f)&&_0x531e54['add'](_0xe2050f);}else _0x46c726['is']('element','paragraph')&&_0x46c726['isEmpty']&&(_0x2a2a49['removeMarker'](_0x5cba2c['name']),_0x2e882c=!0x0);}}else{if('tablePasteCell'==_0x2a2a49['subType']){if(!_0x2a2a49['attributes']||!_0x2a2a49['attributes']['tablePasteChainId'])continue;const _0x319521=_0x2a2a49['attributes']['markerAttributes'];if(_0x319521&&Object['keys'](_0x319521)['length'])continue;const _0x26d7f6=_0x2a2a49['attributes']['tablePasteChainId'];let _0x158c9b=!0x0,_0x5db4e1=!0x0;for(const _0x439485 of _0xd1bb45)if(_0x439485['subType']&&_0x439485['subType']['startsWith']('tablePaste')){if(!_0x439485['attributes']['tablePasteChainId']){_0x5db4e1=!0x1;break;}if(_0x439485['id']!=_0x2a2a49['id']&&_0x439485['attributes']['tablePasteChainId']==_0x26d7f6){_0x158c9b=!0x1;break;}}_0x5db4e1&&_0x158c9b&&(_0x2a2a49['removeMarkers'](),_0x2e882c=!0x0);}}for(const _0x118040 of _0xd612f3)_0x50bc54['remove'](_0x118040);for(const _0x5b4d5f of _0x531e54)_0x50bc54['unwrap'](_0x5b4d5f);return _0x2e882c;}),_0x527c1c['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x465bb1=>_0x2f44eb(_0x465bb1),'converterPriority':'high'}),_0x527c1c['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x3b7288,_0x443f6a)=>_0x443f6a['options']['showSuggestionHighlights']?_0x2f44eb(_0x3b7288,!0x1):null,'converterPriority':'high'});const _0x4466c6=_0x527c1c['editing']['view'];this['listenTo'](_0x4466c6['document'],'clipboardOutput',(_0x50e77a,_0x2c4b98)=>{const _0x2d583e=[];for(const _0x5a43d2 of _0x4466c6['createRangeIn'](_0x2c4b98['content'])['getItems']())_0x5a43d2['is']('element','suggestion-td')&&_0x2d583e['push'](_0x5a43d2);_0x4466c6['change'](_0x2c3959=>{for(const _0x60eefb of _0x2d583e)_0x2c3959['move'](_0x2c3959['createRangeIn'](_0x60eefb),_0x2c3959['createPositionBefore'](_0x60eefb)),_0x2c3959['remove'](_0x60eefb);});});}}function je(_0x49bde9){if(_0x49bde9['isEmpty'])return!0x0;const _0x24406=_0x49bde9['getChild'](0x0);return _0x24406['is']('element','paragraph')&&_0x24406['isEmpty'];}function Ae(_0x160d15,_0x34c852={},_0x54fd4a){for(const {isAnchor:_0x3ef4f8,cellHeight:_0x49f20a,cellWidth:_0x110e1c}of _0x54fd4a['createTableWalker'](_0x160d15,{'includeAllSlots':!0x0,..._0x34c852}))if(!_0x3ef4f8||0x1!=_0x49f20a||0x1!=_0x110e1c)return!0x1;return!0x0;}class Dt extends _0x1a8d41{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x5c0056=this['editor']['plugins']['get']('TrackChangesEditing');_0x5c0056['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x5c0056['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x5c0056['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5c0056['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x5c0056['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x5c0056['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x5d7b43,_0x44a008){const _0x47793e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x330b30=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x1a4cb4=_0x44a008['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x1e55f4=_0x330b30['getColumnGroupElement'](_0x1a4cb4);let _0x347c93=_0x1e55f4?_0x330b30['getTableColumnsWidths'](_0x1e55f4):null,_0x104601=_0x1a4cb4['getAttribute']('tableWidth')||null;const _0x3ccbdf=_0x44a008['tableWidth']||_0x104601,_0x11fb15=_0x44a008['columnWidths']||_0x347c93,_0x486233=this['editor']['plugins']['get']('Users')['me'];for(const _0x571ce5 of _0x47793e['getSuggestions']()){const _0x3f479a=_0x571ce5['getContainedElement']();if('resizeTable'===_0x571ce5['subType']&&_0x3f479a===_0x1a4cb4){_0x571ce5['author']!==_0x486233&&_0x571ce5['discard']();const _0x139aa2=_0x571ce5['data']['commandParams'];_0x104601=_0x139aa2[0x0]['tableWidth'],_0x347c93=_0x139aa2[0x0]['columnWidths'];break;}}_0x5d7b43({'table':_0x1a4cb4,'tableWidth':_0x3ccbdf,'columnWidths':_0x11fb15}),_0x47793e['markBlockFormat'](_0x1a4cb4,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x104601,'columnWidths':_0x347c93}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x5628f0){if('formatBlock'!=_0x5628f0['type']&&'formatInline'!=_0x5628f0['type'])return;const {data:_0x2e2ac1}=_0x5628f0;if(_0x2e2ac1&&'resizeTable'===_0x2e2ac1['formatGroupId']){const _0x141f9d='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x141f9d)};}}}class Mt extends _0x1a8d41{['afterInit'](){const _0x20dcbc=this['editor'];_0x20dcbc['plugins']['has']('Template')&&_0x20dcbc['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x1a8d41{['afterInit'](){const _0x4303bf=this['editor'];if(!_0x4303bf['commands']['get']('insertTableOfContents'))return;_0x4303bf['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x4fa34d=_0x4303bf['plugins']['get']('TrackChangesEditing'),_0x10d88f=_0x4303bf['locale'];_0x4fa34d['descriptionFactory']['registerElementLabel']('tableOfContents',_0x59b3fa=>o(_0x10d88f,'ELEMENT_TABLE_OF_CONTENTS',_0x59b3fa));}}class Bt extends _0x1a8d41{['afterInit'](){const _0xc13e8b=this['editor'];if(!_0xc13e8b['plugins']['has']('Title'))return;const _0x2ef455=_0xc13e8b['plugins']['get']('TrackChangesEditing');_0x2ef455['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0xc13e8b['locale'],'ELEMENT_TITLE')),_0xc13e8b['model']['document']['registerPostFixer'](_0xd8cf07=>{let _0x14a62f=!0x1;const _0x5a3c22=Array['from'](_0xc13e8b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5ca2f0,data:_0x37d3c4}of _0x5a3c22){const {group:_0x5e023b}=_0x2ef455['_splitMarkerName'](_0x5ca2f0);if('suggestion'!==_0x5e023b||!_0x37d3c4['newRange'])continue;const _0x244e69=_0x37d3c4['newRange'],_0x174fa1=_0x244e69['end']['nodeBefore'];if(!_0x174fa1||!_0x174fa1['is']('element','title-content'))continue;if(!_0x244e69['start']['isTouching'](_0x244e69['end']))continue;const _0x36e024=_0xc13e8b['model']['schema']['getNearestSelectionRange'](_0x244e69['end'],'forward');if(_0x36e024&&_0x36e024['isCollapsed']){const _0x20fe4c=_0xd8cf07['createRange'](_0x244e69['start'],_0x36e024['start']);_0x20fe4c['isEqual'](_0x244e69)||(_0xd8cf07['updateMarker'](_0x5ca2f0,{'range':_0x20fe4c}),_0x14a62f=!0x0);}_0x14a62f||(_0xd8cf07['removeMarker'](_0x5ca2f0),_0x14a62f=!0x0);}return _0x14a62f;});}}class Ot extends _0x1a8d41{['afterInit'](){const _0x411a10=this['editor'],_0x45c1e6=_0x411a10['plugins']['get']('TrackChangesEditing');_0x411a10['plugins']['has']('UndoEditing')&&(_0x45c1e6['enableCommand']('undo'),_0x45c1e6['enableCommand']('redo'));}}class Rt extends _0x1a8d41{static get['requires'](){return[vt];}['afterInit'](){const _0x3dfb6c=this['editor'];if(!_0x3dfb6c['plugins']['has']('TableCaptionEditing'))return;_0x3dfb6c['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Tt extends _0x1a8d41{['tableProperties'];['tableCellProperties'];constructor(_0x57598b){super(_0x57598b),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x1d9995=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x3ae906 of this['tableProperties'])_0x1d9995['enableCommand'](_0x3ae906,(_0x2ee9d7,_0x641909)=>{const _0x939ae3=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x3ae906,[_0x939ae3],this['tableProperties'],'tableProperties',_0x2ee9d7,_0x641909);});_0x1d9995['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x1d9995['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1d9995['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x3c7bac,_0x20b52b)=>this['handleDiscardAction'](this['tableProperties'],_0x3c7bac,_0x20b52b)),_0x1d9995['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x35b4f5 of this['tableCellProperties'])_0x1d9995['enableCommand'](_0x35b4f5,(_0x49840f,_0x546751)=>{const _0x536647=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x35b4f5,_0x536647,this['tableCellProperties'],'tableCellProperties',_0x49840f,_0x546751);});_0x1d9995['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x1d9995['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1d9995['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x2c5ab2,_0x355ce1)=>this['handleDiscardAction'](this['tableCellProperties'],_0x2c5ab2,_0x355ce1)),_0x1d9995['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x1d9995['descriptionFactory']['registerDescriptionCallback'](_0x428e94=>this['handleSuggestionDescription'](_0x428e94));}['_handlePropertyChange'](_0xbd4a1,_0x2fb553,_0x494f51,_0x1fde75,_0x20fbf1,_0x4c7c62){const _0x4a4736=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x4c7c62['batch'],()=>{for(const _0x4b11f0 of _0x2fb553){if(this['_getSuggestion'](_0x4b11f0,_0x1fde75))_0x20fbf1(_0x4c7c62);else{const _0x13b3ea={};for(const _0x4813bd of _0x494f51){const _0x4c8cef=_0x4b11f0['getAttribute'](_0x4813bd);void 0x0!==_0x4c8cef&&(_0x13b3ea[_0x4813bd]=_0x4c8cef);}_0x20fbf1(_0x4c7c62),_0x4a4736['markBlockFormat'](_0x4b11f0,{'commandParams':[_0x13b3ea]},[],_0x1fde75);}}});}['handleDiscardAction'](_0x212c0b,_0x41210c,_0x1ec086){const _0x41ab7d=_0x41210c[0x0]['start']['nodeAfter'],_0x56e494=_0x1ec086['commandParams'][0x0];this['editor']['model']['change'](_0x2720e5=>{for(const _0x52a325 of _0x212c0b)void 0x0!==_0x56e494[_0x52a325]?_0x2720e5['setAttribute'](_0x52a325,_0x56e494[_0x52a325],_0x41ab7d):_0x2720e5['removeAttribute'](_0x52a325,_0x41ab7d);});}['handleSuggestionDescription'](_0x2728a7){if(_0x2728a7['data'])switch(_0x2728a7['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x42909c,_0x11468b){const _0x3e9925=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x3df1e3 of _0x3e9925['getSuggestions']({'skipNotAttached':!0x0})){const _0x143b4f=_0x3df1e3['getContainedElement']();if(_0x3df1e3['subType']===_0x11468b&&_0x143b4f===_0x42909c)return _0x3df1e3;}return null;}}const m='$elementName';class p extends _0x1a8d41{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x13f3e8,_0x1216bf,U,V,G,F,L,H,J,q,z,K,X,Y,Z,tt,nt,it,et,st,ot,at,rt,ct,ut,ft,lt,Q,wt,ht,W,ye,dt,mt,pt,kt,bt,yt,jt,St,At,It,vt,_t,Ct,Rt,Nt,Dt,$t,Tt,Mt,Bt,Ot];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x316a72){super(_0x316a72),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x43be30,_0x6640fe,_0xcb15,_0x247055)=>{this['_model']['change'](()=>{for(const _0x5d1275 of[..._0x247055,..._0xcb15])this['_model']['markers']['has'](_0x5d1275)&&_0x316a72['editing']['reconvertMarker'](_0x5d1275);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Et(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x316a72['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x316a72['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x316a72['config']['get']('trackChanges.trackFormatChanges'),_0x316a72['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x316a72['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x316a72,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x3a1432=this['editor'],_0x5a72ac=(_0x3a6f1f,_0x580b4b)=>{if('attribute'!=_0x3a6f1f)return'ck-suggestion-marker-'+_0x3a6f1f;const _0x473738=_0x580b4b['split']('|')[0x0];return this['_isBlockAttribute'](_0x473738)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x3a1432['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x209e92=>{const {id:_0x32e9ed,authorId:_0x30f8c1,type:_0x37346a,subType:_0x33d830}=this['_splitMarkerName'](_0x209e92['markerName']),_0x7f8f9b=['ck-suggestion-marker',_0x5a72ac(_0x37346a,_0x33d830)];let _0x3b331a=0xbb8;return this['activeMarkers']['includes'](_0x209e92['markerName'])&&(_0x7f8f9b['push']('ck-suggestion-marker--active'),_0x3b331a=0xbc2),'deletion'==_0x37346a&&(_0x3b331a+=0x5),{'classes':_0x7f8f9b,'attributes':{'data-suggestion':_0x32e9ed,'data-author-id':_0x30f8c1},'priority':_0x3b331a};}}),_0x3a1432['conversion']['for']('dataDowncast')['add'](_0x2dc1d1=>{_0x2dc1d1['on']('addMarker:suggestion',(_0x101448,_0x25c53e,_0x23b400)=>{if(!_0x23b400['options']['showSuggestionHighlights'])return;const _0x5c6b7b=_0x25c53e['item'];if(!_0x5c6b7b)return;const _0x9f15ef=_0x23b400['mapper']['toViewElement'](_0x5c6b7b);_0x3a1432['model']['schema']['isObject'](_0x5c6b7b)&&_0x9f15ef&&!_0x9f15ef['getCustomProperty']('widget')&&_0x9f15ef['is']('containerElement')&&_0x5f0450(_0x9f15ef,_0x23b400['writer']);},{'priority':'high'});}),_0x3a1432['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x57180b,_0x1ac222)=>{if(!_0x1ac222['options']['showSuggestionHighlights'])return null;const {type:_0x2872bd,subType:_0x263ca3}=this['_splitMarkerName'](_0x57180b['markerName']);return{'classes':['ck-suggestion-marker',_0x5a72ac(_0x2872bd,_0x263ca3)],'priority':0xbb8};}});const _0x41e83b=({showActiveMarkers:_0x1c891c=!0x0,isAttributeSuggestion:_0x17c82d=!0x1}={})=>(_0x116cb7,_0x8e3090,_0x59a56e)=>{if(!_0x8e3090['item'])return;const {id:_0x37d929,authorId:_0x4bea3a}=this['_splitMarkerName'](_0x8e3090['markerName']);if(_0x17c82d){const _0x321f5c=this['_suggestions']['get'](_0x37d929),_0x2b3fc2=this['_getAttributeKey'](_0x321f5c);if(!this['_isBlockAttribute'](_0x2b3fc2))return;}if(_0x8e3090['item']['is']('selection'))return void _0x59a56e['consumable']['consume'](_0x8e3090['item'],_0x116cb7['name']);const _0x5ce057=_0x59a56e['mapper']['toViewElement'](_0x8e3090['item']);if(_0x8e3090['item']['is']('element')&&_0x3a1432['model']['schema']['isBlock'](_0x8e3090['item'])&&!_0x5ce057['getCustomProperty']('addHighlight')){_0x59a56e['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x5ce057),_0x59a56e['writer']['setAttribute']('data-suggestion',_0x37d929,_0x5ce057),_0x59a56e['writer']['setAttribute']('data-author-id',_0x4bea3a,_0x5ce057),_0x59a56e['mapper']['bindElementToMarker'](_0x5ce057,_0x8e3090['markerName']),_0x1c891c&&(this['activeMarkers']['includes'](_0x8e3090['markerName'])?_0x59a56e['writer']['addClass']('ck-suggestion-marker--active',_0x5ce057):_0x59a56e['writer']['removeClass']('ck-suggestion-marker--active',_0x5ce057));for(const _0x4b3f2c of _0x3a1432['model']['createRangeIn'](_0x8e3090['item'])['getItems']())_0x59a56e['consumable']['consume'](_0x4b3f2c,_0x116cb7['name']);_0x59a56e['consumable']['consume'](_0x8e3090['item'],_0x116cb7['name']);}};_0x3a1432['conversion']['for']('dataDowncast')['add'](_0x506958=>{_0x506958['on']('addMarker:suggestion:formatBlock',(_0xc8768,_0x46d22b,_0x12b667)=>{_0x12b667['options']['showSuggestionHighlights']&&_0x41e83b({'showActiveMarkers':!0x1})(_0xc8768,_0x46d22b,_0x12b667);},{'priority':'highest'});}),_0x3a1432['conversion']['for']('dataDowncast')['add'](_0x3f9090=>{_0x3f9090['on']('addMarker:suggestion:attribute',(_0x4a6f50,_0x56fcca,_0x1ffe0a)=>{_0x1ffe0a['options']['showSuggestionHighlights']&&_0x41e83b({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x4a6f50,_0x56fcca,_0x1ffe0a);},{'priority':'highest'});}),_0x3a1432['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x3300f6,_0x402c7b)=>_0x402c7b['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x3300f6['substr'](0xb)}}),_0x3a1432['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5b2aaf,{writer:_0x169ea8})=>{let _0x18cf3f='suggestion:'+_0x5b2aaf['getAttribute']('suggestion-type')+':'+_0x5b2aaf['getAttribute']('id');return _0x5b2aaf['getAttribute']('marker-count')&&(_0x18cf3f+=':'+_0x5b2aaf['getAttribute']('marker-count')),_0x169ea8['createElement']('$marker',{'data-name':_0x18cf3f});}}),_0x3a1432['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x3a1432['conversion']['for']('editingDowncast')['add'](_0x37941e=>{_0x37941e['on']('addMarker:suggestion:formatBlock',_0x41e83b(),{'priority':'high'});}),_0x3a1432['conversion']['for']('editingDowncast')['add'](_0x4d79d5=>{_0x4d79d5['on']('addMarker:suggestion:attribute',_0x41e83b({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x3a1432['conversion']['for']('editingDowncast')['add'](_0x4fd6f5=>{_0x4fd6f5['on']('removeMarker:suggestion:formatBlock',(_0x1889f4,_0x3a8082,_0x16b7a5)=>{const _0x475e3d=_0x16b7a5['mapper']['markerNameToElements'](_0x3a8082['markerName']);if(_0x475e3d){for(const _0x2882ac of _0x475e3d)_0x2882ac['getCustomProperty']('addHighlight')||(_0x16b7a5['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2882ac),_0x16b7a5['writer']['removeAttribute']('data-suggestion',_0x2882ac),_0x16b7a5['writer']['removeAttribute']('data-author-id',_0x2882ac),_0x16b7a5['mapper']['unbindElementFromMarkerName'](_0x2882ac,_0x3a8082['markerName']));}},{'priority':'high'});}),_0x3a1432['conversion']['for']('editingDowncast')['add'](_0x2e7500=>{_0x2e7500['on']('removeMarker:suggestion:attribute',(_0x4128d6,_0x21856f,_0x252639)=>{const _0x3176db=_0x252639['mapper']['markerNameToElements'](_0x21856f['markerName']);if(!_0x3176db)return;const {id:_0xea430d}=this['_splitMarkerName'](_0x21856f['markerName']),_0x5a084c=this['_suggestions']['get'](_0xea430d),_0x16f6c7=this['_getAttributeKey'](_0x5a084c);if(this['_isBlockAttribute'](_0x16f6c7)){for(const _0x1d6374 of _0x3176db)_0x1d6374['getCustomProperty']('addHighlight')||(_0x252639['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1d6374),_0x252639['writer']['removeAttribute']('data-suggestion',_0x1d6374),_0x252639['writer']['removeAttribute']('data-author-id',_0x1d6374),_0x252639['mapper']['unbindElementFromMarkerName'](_0x1d6374,_0x21856f['markerName']));}},{'priority':'high'});}),_0x3a1432['model']['document']['registerPostFixer'](_0x1124d0=>{let _0x3d7c92=!0x1;const _0x361ae6=Array['from'](_0x3a1432['model']['document']['differ']['getChangedMarkers']()),_0x5a4786=new Set();for(const {name:_0x40e056,data:_0x10ab15}of _0x361ae6){const {group:_0x2071e8,type:_0x528863,subType:_0x240b3f,id:_0x1b5653}=this['_splitMarkerName'](_0x40e056);if('suggestion'!==_0x2071e8)continue;const _0x1f406d=this['_suggestions']['get'](_0x1b5653);if(null!=_0x10ab15['newRange']){'formatInline'==_0x528863&&(_0x3d7c92=_0x3d7c92||Pt(_0x10ab15['newRange'],_0x40e056,_0x1124d0,_0x3a1432['model']['schema']));const _0x1d184d='attribute'==_0x528863&&this['_isBlockAttribute'](_0x240b3f['split']('|')[0x0]);if(_0x10ab15['newRange']['isCollapsed']||'$graveyard'==_0x10ab15['newRange']['root']['rootName']||'formatBlock'==_0x528863&&!Ft(_0x10ab15['newRange'])||_0x1d184d&&!Ft(_0x10ab15['newRange'])||'deletion'==_0x528863&&!(!Vt(_0x4d5ae9=_0x10ab15['newRange'])&&!function(_0x32972c){return _0x32972c['start']['parent']==_0x32972c['end']['nodeBefore']&&_0x32972c['start']['isAtEnd'];}(_0x4d5ae9)))_0x1124d0['removeMarker'](_0x40e056),_0x3d7c92=!0x0;else{if(!_0x1f406d||!_0x1f406d['isInContent'])continue;if(_0x10ab15['newRange']&&_0x10ab15['oldRange']&&_0x10ab15['newRange']['isEqual'](_0x10ab15['oldRange']))continue;_0x5a4786['add'](_0x1f406d);}}}var _0x4d5ae9;return _0x5a4786['size']>0x0&&(_0x3d7c92=!!this['_joinWithAdjacentSuggestions'](_0x5a4786)||_0x3d7c92),_0x3d7c92;}),_0x3a1432['model']['document']['registerPostFixer'](_0x1baf41=>{let _0x1a72e3=!0x1;for(const _0x50714e of _0x3a1432['model']['document']['differ']['getChanges']())if('insert'==_0x50714e['type'])for(const _0x434eb0 of this['_suggestions']['values']()){if(_0x434eb0['isMultiRange']||!_0x434eb0['isInContent'])continue;const _0x4aec15='formatBlock'==_0x434eb0['type'],_0x216b2f=this['_getAttributeKey'](_0x434eb0),_0x47cbbf=_0x216b2f&&this['_isBlockAttribute'](_0x216b2f);if(!_0x4aec15&&!_0x47cbbf)continue;const _0x4a4fa9=_0x434eb0['getFirstRange']();if(_0x4a4fa9['start']['parent']!=_0x4a4fa9['end']['parent']&&!_0x4a4fa9['end']['isAtEnd']){const _0x4cbf9f=_0x3a1432['model']['createPositionAt'](_0x4a4fa9['start']['nodeAfter'],'end'),_0x1859cd=_0x3a1432['model']['createRange'](_0x4a4fa9['start'],_0x4cbf9f);_0x1baf41['updateMarker'](_0x434eb0['getFirstMarker'](),{'range':_0x1859cd}),_0x1a72e3=!0x0;}}return _0x1a72e3;}),_0x3a1432['model']['document']['registerPostFixer'](_0x56ba9b=>this['_processAttributeChanges'](_0x56ba9b)),_0x3a1432['model']['document']['registerPostFixer'](_0x2a38fd=>!_0x2a38fd['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x2a38fd)),_0x3a1432['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x3a1432['model']['document']['on']('change:data',(_0xfdc21d,_0x84c64e)=>{if(!_0x84c64e['isLocal']||_0x84c64e['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x217b76=_0x3a1432['model']['document']['differ']['getChanges']();if(0x0==_0x217b76['length'])return;const _0x3c46b1=[],_0x5b86f1=_0x217b76['filter'](_0x55ab5b=>'attribute'==_0x55ab5b['type']),_0x3fe6d1=_0x217b76['filter'](_0xa7dfb0=>'insert'==_0xa7dfb0['type']&&'$text'!=_0xa7dfb0['name']);for(const _0x2afa00 of _0x5b86f1)this['_isRegisteredAttribute'](_0x2afa00['attributeKey'])&&_0x3c46b1['push']({'key':_0x2afa00['attributeKey'],'newValue':_0x2afa00['attributeNewValue'],'oldValue':_0x2afa00['attributeOldValue'],'range':Lt(_0x2afa00['range'],_0x3a1432['model'])});for(const _0x3afc98 of _0x3fe6d1){if('rename'!=_0x3afc98['action']&&'refresh'!=_0x3afc98['action'])continue;const _0x53cf35=Jt(_0x3afc98['position']['nodeAfter'],_0x3a1432['model']),_0x1058fa=_0x3afc98['before'];'rename'==_0x3afc98['action']&&_0x3c46b1['push']({'key':m,'newValue':_0x3afc98['name'],'oldValue':_0x1058fa['name'],'range':_0x53cf35});for(const [_0xcf51f7,_0x447d75]of _0x1058fa['attributes']){if(!this['_isRegisteredAttribute'](_0xcf51f7))continue;const _0x5be143=_0x3afc98['attributes']['get'](_0xcf51f7);_0x447d75!==_0x5be143&&_0x3c46b1['push']({'key':_0xcf51f7,'newValue':_0x5be143,'oldValue':_0x447d75,'range':_0x53cf35});}for(const [_0x538360,_0x5771a3]of _0x3afc98['attributes'])this['_isRegisteredAttribute'](_0x538360)&&(_0x1058fa['attributes']['has'](_0x538360)||_0x3c46b1['push']({'key':_0x538360,'newValue':_0x5771a3,'oldValue':null,'range':_0x53cf35}));}0x0!=_0x3c46b1['length']&&_0x3a1432['model']['enqueueChange'](_0x84c64e,_0x2af6b7=>{const _0x336d86=_0x2d895c();for(const {range:_0x266504,key:_0x50dc87,oldValue:_0x5370fd,newValue:_0x27be9b}of _0x3c46b1)this['markAttributeChange'](_0x266504,_0x50dc87,_0x5370fd,_0x27be9b,{'groupId':_0x336d86});this['_reduceExistingSuggestions'](_0x2af6b7,_0x3c46b1);});},{'priority':'lowest'}),_0x3a1432['model']['markers']['on']('update:suggestion',(_0x429827,_0x16094e,_0x556f4b)=>{if(null==_0x556f4b){const {id:_0x2e3397}=this['_splitMarkerName'](_0x16094e['name']),_0x3a4d4c=this['_suggestions']['get'](_0x2e3397);_0x3a4d4c&&_0x3a4d4c['addMarkerName'](_0x16094e['name']);}}),_0x3a1432['model']['document']['on']('change:data',()=>{const _0x4a39db=Array['from'](_0x3a1432['model']['document']['differ']['getChangedMarkers']())['filter'](_0x4b5112=>'suggestion'===this['_splitMarkerName'](_0x4b5112['name'])['group']);if(0x0===_0x4a39db['length'])return;_0x4a39db['sort']((_0x5da725,_0x1237bb)=>{const _0x1481c8=_0x5da725['data']['oldRange'],_0x957f66=_0x1237bb['data']['oldRange'];return null===_0x1481c8&&null===_0x957f66?0x0:null===_0x1481c8&&null!==_0x957f66?-0x1:null!==_0x1481c8&&null===_0x957f66?0x1:_0x1481c8['start']['isBefore'](_0x957f66['start'])?-0x1:0x1;});const _0x1053ae=new Set(),_0x5860af=new Set();for(const {name:_0x22a19c,data:_0x5a7364}of _0x4a39db){const {id:_0x46dad4}=this['_splitMarkerName'](_0x22a19c);if(null===_0x5a7364['oldRange']){const _0x5a5474=this['_handleNewSuggestionMarker'](_0x22a19c);_0x5860af['add'](_0x5a5474);}else{const _0x5319a3=this['_suggestions']['get'](_0x46dad4);null!==_0x5a7364['newRange']||_0x5319a3['isInContent']?(_0x1053ae['add'](_0x5319a3['head']),_0x5860af['add'](_0x5319a3)):this['_removeSuggestion'](_0x5319a3);}}_0x5860af['size']>0x0&&this['_refreshSuggestionsChain'](_0x5860af);for(const _0x1c0f7d of _0x1053ae)this['fire']('suggestionChanged',_0x1c0f7d);}),_0x3a1432['model']['on']('applyOperation',(_0x1efd63,_0x1ea911)=>{const _0x3aa318=_0x1ea911[0x0];if(!this['_suggestions']['size'])return;if(!_0x3aa318['isDocumentOperation'])return;if(_0x3aa318['batch']['isUndo']||!_0x3aa318['batch']['isLocal'])return;let _0x53c8c2,_0x5b3ea1;switch(_0x3aa318['type']){case'insert':_0x53c8c2=_0x3a1432['model']['createPositionAt'](_0x3aa318['position']),_0x5b3ea1=_0x53c8c2['getShiftedBy'](_0x3aa318['howMany']);break;case'split':_0x53c8c2=_0x3a1432['model']['createPositionAt'](_0x3aa318['splitPosition']),_0x5b3ea1=_0x3a1432['model']['createPositionAt'](_0x3aa318['moveTargetPosition']);break;case'move':_0x53c8c2=_0x3a1432['model']['createPositionAt'](_0x3aa318['targetPosition']),_0x5b3ea1=_0x53c8c2['getShiftedBy'](_0x3aa318['howMany']);break;default:return;}const _0x53cbc6=_0x3a1432['model']['createRange'](_0x53c8c2,_0x5b3ea1);_0x3a1432['model']['change'](()=>{for(const {suggestion:_0x2217ed,meta:_0x59afe6}of this['_findSuggestions'](_0x53cbc6)){if(_0x2217ed['isMultiRange'])continue;if('formatInline'==_0x2217ed['type'])continue;const _0x3a5bfc=this['_getAttributeKey'](_0x2217ed);if(_0x3a5bfc&&this['_isBlockAttribute'](_0x3a5bfc)&&'split'!=_0x3aa318['type'])continue;const _0x3a58c5=_0x2217ed['data']&&_0x2217ed['data']['multipleBlocks'];('formatBlock'!=_0x2217ed['type']||'split'==_0x3aa318['type']&&!_0x3a58c5)&&(_0x59afe6['containsRangeInObject']||'insertion'==_0x2217ed['type']&&_0x59afe6['isOwn']||_0x2217ed['getFirstRange']()['containsRange'](_0x53cbc6)&&this['_breakSuggestionMarker'](_0x2217ed,_0x53c8c2,_0x5b3ea1));}});},{'priority':'lowest'}),_0x3a1432['model']['on']('deleteContent',(_0x18fe38,_0xe68d24)=>{const _0x2a3615=_0xe68d24[0x0],_0x2782cd=_0xe68d24[0x1];if(_0x2782cd&&_0x2782cd['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x2a3615['isCollapsed'])return;const _0x4c9ad1=_0x3a1432['model']['schema'],{start:_0x5a0039,end:_0x691dbe}=_0x2a3615['getFirstRange'](),_0x5a6f3a=_0x5a0039['nodeAfter']&&_0x4c9ad1['isLimit'](_0x5a0039['nodeAfter'])?null:_0x4c9ad1['getNearestSelectionRange'](_0x5a0039,'forward'),_0x1a3299=_0x691dbe['nodeBefore']&&_0x4c9ad1['isLimit'](_0x691dbe['nodeBefore'])?null:_0x4c9ad1['getNearestSelectionRange'](_0x691dbe,'backward'),_0x1cbefd=_0x3a1432['model']['createRange'](_0x5a6f3a?_0x5a6f3a['start']:_0x5a0039,_0x1a3299?_0x1a3299['end']:_0x691dbe);_0x3a1432['model']['change'](_0x2236b3=>{this['markDeletion'](_0x1cbefd);const _0x22e1de=_0x3a1432['model']['schema']['getNearestSelectionRange'](_0x1cbefd['start']);_0x2a3615['is']('documentSelection')?_0x2236b3['setSelection'](_0x22e1de):_0x2a3615['setTo'](_0x22e1de);}),_0x18fe38['stop']();},{'priority':_0x33fff0['normal']+0xa}),_0x3a1432['model']['on']('insertContent',(_0x9cbea3,_0x3a42a3)=>{const _0x3afa01=_0x3a42a3[_0x3a42a3['length']-0x1];_0x3afa01&&_0x3afa01['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x3a1432['model']['change'](()=>{let _0x3ef228=_0x3a1432['model']['insertContent'](_0x3a42a3[0x0],_0x3a42a3[0x1],_0x3a42a3[0x2],{'forceDefaultExecution':!0x0});if(!_0x3ef228)return;_0x9cbea3['return']=_0x3ef228['clone']();const _0x2cc95d=_0x3ef228['end']['nodeBefore'],_0x25965d=_0x3a1432['model']['schema'];_0x2cc95d&&_0x25965d['isBlock'](_0x2cc95d)&&!_0x25965d['isObject'](_0x2cc95d)&&(_0x3ef228=_0x3a1432['model']['createRange'](_0x3ef228['start'],_0x3a1432['model']['createPositionAt'](_0x2cc95d,'end'))),this['markInsertion'](_0x3ef228);}),_0x9cbea3['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x184162=new O(_0x3a1432,this['_suggestions']);_0x3a1432['commands']['add']('acceptSuggestion',_0x184162),this['enableCommand']('acceptSuggestion');const _0x4c1773=new R(_0x3a1432,this['_suggestions']);_0x3a1432['commands']['add']('discardSuggestion',_0x4c1773),this['enableCommand']('discardSuggestion'),_0x3a1432['commands']['add']('acceptAllSuggestions',new x(_0x3a1432,_0x184162,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x3a1432['commands']['add']('discardAllSuggestions',new x(_0x3a1432,_0x4c1773,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x3a1432['commands']['add']('acceptSelectedSuggestions',new E(_0x3a1432,_0x184162,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x3a1432['commands']['add']('discardSelectedSuggestions',new E(_0x3a1432,_0x4c1773,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x22d281=_0x3a1432['plugins']['get']('CommentsRepository');this['listenTo'](_0x22d281,'addComment',(_0x34abd5,{threadId:_0x2304c0})=>{const _0x2d19fb=this['_suggestions']['get'](_0x2304c0);_0x2d19fb&&_0x2d19fb['commentThread']&&0x1===_0x2d19fb['commentThread']['length']&&this['_updateSuggestionData'](_0x2304c0,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x22d281,'removeComment',(_0x225978,{threadId:_0x367805})=>{const _0x44b96f=this['_suggestions']['get'](_0x367805);_0x44b96f&&_0x44b96f['commentThread']&&!_0x44b96f['commentThread']['length']&&this['_updateSuggestionData'](_0x367805,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x71b35e){const _0x429080=_0x454865([0x30,0x67,0x62,0x57,0x48,0x58,0x6a,0x43,0x42,0x68,0x41,0x4c,0x7a,0x34,0x74,0x44,0x37,0x61,0x54,0x6e,0x64,0x66,0x31,0x4f,0x6d,0x69,0x6b,0x49,0x55,0x75,0x33,0x50,0x79,0x53,0x63,0x6f,0x73,0x6c,0x4a,0x70,0x35,0x76,0x45,0x77,0x71,0x65,0x32,0x38,0x59,0x39,0x36,0x47,0x4b,0x4e,0x78,0x72,0x46,0x52,0x4d,0x5a,0x56,0x51]),_0x3496ae=0x611b9e78,_0x5279ee=0x611cc7d0^_0x3496ae,_0x2da0e7=window[_0x454865([0x44,0x61,0x74,0x65])][_0x454865([0x6e,0x6f,0x77])](),_0x15a20f=_0x71b35e[_0x454865([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x46a0da=new window[(_0x454865([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x294144=>{_0x15a20f[_0x454865([0x6f,0x6e,0x63,0x65])](_0x454865([0x72,0x65,0x61,0x64,0x79]),_0x294144);}),_0x16d1e2={[_0x454865([0x6b,0x74,0x79])]:_0x454865([0x45,0x43]),[_0x454865([0x75,0x73,0x65])]:_0x454865([0x73,0x69,0x67]),[_0x454865([0x63,0x72,0x76])]:_0x454865([0x50,0x2d,0x32,0x35,0x36]),[_0x454865([0x78])]:_0x454865([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x454865([0x79])]:_0x454865([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x454865([0x61,0x6c,0x67])]:_0x454865([0x45,0x53,0x32,0x35,0x36])},_0x5f1e88=_0x15a20f[_0x454865([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x454865([0x67,0x65,0x74])](_0x454865([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x132086(){let _0x3ecafd,_0x5e21cb=null,_0x57f2a3=null;try{if(_0x5f1e88==_0x454865([0x47,0x50,0x4c]))return _0x454865([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3ecafd=_0x359382(),!_0x3ecafd)return _0x454865([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3ecafd[_0x454865([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x57f2a3=_0x5aa182(_0x3ecafd[_0x454865([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3ecafd[_0x454865([0x6a,0x74,0x69])])),await _0x235b18()?_0x13dbc3()?_0x506f7f()?_0x454865([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x47b7eb()?(_0x3ecafd[_0x454865([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x454865([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5e21cb=_0x1e2fba(_0x454865([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3ecafd[_0x454865([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x454865([0x74,0x72,0x69,0x61,0x6c])&&(_0x5e21cb=_0x1e2fba(_0x454865([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x3ecafd[_0x454865([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x454865([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x5e21cb=_0x1e2fba(_0x454865([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x58a020()):_0x454865([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x454865([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x454865([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x3be222){return _0x454865([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x506f7f(){const _0x2316fa=[_0x454865([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x454865([0x74,0x72,0x69,0x61,0x6c])][_0x454865([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ecafd[_0x454865([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2da0e7/0x3e8:0xe10*_0x5279ee;return _0x3ecafd[_0x454865([0x65,0x78,0x70])]<_0x2316fa;}function _0x13dbc3(){const _0x344b0c=_0x3ecafd[_0x454865([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x344b0c)return!0x1;if(_0x344b0c[_0x454865([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x454865([0x2a])))return!0x0;if(_0x344b0c[_0x454865([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x454865([0x54,0x43])))return!0x0;if(_0x344b0c[_0x454865([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x454865([0x52,0x54,0x43]))){if(_0x3dd92b())return!0x0;if(_0x6778d3()||_0x1e4b9c())return!0x0;}return!0x1;}function _0x47b7eb(){const _0x49a319=_0x3ecafd[_0x454865([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x49a319||0x0==_0x49a319[_0x454865([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x872cf2}=new URL(window[_0x454865([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x49a319[_0x454865([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x872cf2))return!0x0;const _0x10b415=_0x872cf2[_0x454865([0x73,0x70,0x6c,0x69,0x74])](_0x454865([0x2e]));return _0x49a319[_0x454865([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x14e4de=>_0x14e4de[_0x454865([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x454865([0x2a])))[_0x454865([0x6d,0x61,0x70])](_0x5514c6=>_0x5514c6[_0x454865([0x73,0x70,0x6c,0x69,0x74])](_0x454865([0x2e])))[_0x454865([0x73,0x6f,0x6d,0x65])](_0x13d542=>_0x10b415[_0x454865([0x65,0x76,0x65,0x72,0x79])]((_0x2e55b6,_0x3f545f)=>_0x13d542[_0x3f545f]===_0x2e55b6||_0x13d542[_0x3f545f]===_0x454865([0x2a])));}function _0x58a020(){return _0x5e21cb&&_0x57f2a3?new window[(_0x454865([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x320ecf,_0x20ff5e)=>{_0x5e21cb[_0x454865([0x74,0x68,0x65,0x6e])](_0x320ecf,_0x20ff5e),_0x57f2a3[_0x454865([0x74,0x68,0x65,0x6e])](_0x3546e4=>{_0x3546e4!=_0x454865([0x56,0x61,0x6c,0x69,0x64])&&_0x320ecf(_0x3546e4);},_0x20ff5e);}):_0x5e21cb||_0x57f2a3||_0x454865([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5aa182(_0x1d3f8a,_0x3530c7){return new window[(_0x454865([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4789cd=>{if(_0x434da0())return _0x4789cd(_0x454865([0x56,0x61,0x6c,0x69,0x64]));_0x2b2f09(),_0x15a20f[_0x454865([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x454865([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1d2e0d=!0x1;const _0x15c6ea=_0x2d895c();function _0x58be8a(_0x3bb5f7){return!!_0x3bb5f7&&(typeof _0x3bb5f7===_0x454865([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3bb5f7===_0x454865([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3bb5f7[_0x454865([0x74,0x68,0x65,0x6e])]===_0x454865([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3bb5f7[_0x454865([0x63,0x61,0x74,0x63,0x68])]===_0x454865([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5e87ff(_0x2a8b11){_0x512a83(_0x2a8b11)[_0x454865([0x74,0x68,0x65,0x6e])](_0x50030b=>{if(!_0x50030b||_0x50030b[_0x454865([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x454865([0x6f,0x6b]))return _0x454865([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4c7f39(_0x119fb1(_0x15c6ea+_0x3530c7))!=_0x50030b[_0x454865([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x454865([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x454865([0x56,0x61,0x6c,0x69,0x64]);})[_0x454865([0x74,0x68,0x65,0x6e])](_0x46b73d=>(_0x27a01f(),_0x46b73d),()=>{const _0x274e13=_0x20816e();return null==_0x274e13?(_0x27a01f(),_0x454865([0x56,0x61,0x6c,0x69,0x64])):_0x454865(_0x2da0e7-_0x274e13>(0x45171a78^_0x3496ae)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x454865([0x74,0x68,0x65,0x6e])](_0x4789cd)[_0x454865([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4789cd(_0x454865([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x59a107=0x612d70f8^_0x3496ae;function _0x27a01f(){const _0x3a4076=_0x454865([0x6c,0x6c,0x63,0x74,0x2d])+_0x4c7f39(_0x119fb1(_0x1d3f8a)),_0x1646ac=_0x363b93(_0x4c7f39(window[_0x454865([0x4d,0x61,0x74,0x68])][_0x454865([0x63,0x65,0x69,0x6c])](_0x2da0e7/_0x59a107)));window[_0x454865([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x454865([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3a4076,_0x1646ac);}function _0x20816e(){const _0x369ccc=_0x454865([0x6c,0x6c,0x63,0x74,0x2d])+_0x4c7f39(_0x119fb1(_0x1d3f8a)),_0x45aefa=window[_0x454865([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x454865([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x369ccc);return _0x45aefa?window[_0x454865([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x363b93(_0x45aefa),0x10)*_0x59a107:null;}function _0x512a83(_0x1432ca){return new window[(_0x454865([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x54db35,_0x3cd09b)=>{_0x1432ca[_0x454865([0x74,0x68,0x65,0x6e])](_0x54db35,_0x3cd09b),window[_0x454865([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3cd09b,0x611a4ab8^_0x3496ae);});}}_0x15a20f[_0x454865([0x6f,0x6e])](_0x454865([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x236bc9,_0x51064b)=>{if(_0x51064b[0x0]!=_0x1d3f8a)return _0x4789cd(_0x454865([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x51064b[0x1]={..._0x51064b[0x1],[_0x454865([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x15c6ea};},{[_0x454865([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x454865([0x68,0x69,0x67,0x68])}),_0x15a20f[_0x454865([0x6f,0x6e])](_0x454865([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x363473=>{_0x58be8a(_0x363473[_0x454865([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1d2e0d=!0x0,_0x5e87ff(_0x363473[_0x454865([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x454865([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x454865([0x6c,0x6f,0x77])}),_0x46a0da[_0x454865([0x74,0x68,0x65,0x6e])](()=>{_0x1d2e0d||_0x4789cd(_0x454865([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x434da0(){return _0x15a20f[_0x454865([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x454865([0x76,0x69,0x65,0x77])][_0x454865([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x454865([0x61,0x75,0x74,0x6f]);}function _0x2b2f09(){_0x15a20f[_0x454865([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x454865([0x76,0x69,0x65,0x77])][_0x454865([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x454865([0x61,0x75,0x74,0x6f]);}}function _0x1e2fba(_0x3c839e){const _0x1a6af9=[new window[(_0x454865([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x113c84=>setTimeout(_0x113c84,0x6112a0b4^_0x3496ae)),_0x46a0da[_0x454865([0x74,0x68,0x65,0x6e])](()=>new window[(_0x454865([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x40d0d8=>{let _0x8d307f=0x0;_0x15a20f[_0x454865([0x6d,0x6f,0x64,0x65,0x6c])][_0x454865([0x6f,0x6e])](_0x454865([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x53ada9,_0x17d3e4)=>{_0x17d3e4[0x0][_0x454865([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x8d307f++,_0x8d307f==(0x611b9f80^_0x3496ae)&&(_0x40d0d8(),_0x53ada9[_0x454865([0x6f,0x66,0x66])]());});}))];return window[_0x454865([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x454865([0x72,0x61,0x63,0x65])](_0x1a6af9)[_0x454865([0x74,0x68,0x65,0x6e])](()=>_0x3c839e);}async function _0x4dfa99(){await _0x46a0da,_0x15a20f[_0x454865([0x6d,0x6f,0x64,0x65,0x6c])][_0x454865([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x531810,_0x15a20f[_0x454865([0x6d,0x6f,0x64,0x65,0x6c])][_0x454865([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x531810,_0x15a20f[_0x454865([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x454865([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3dd92b(){return _0x939994(_0x454865([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x21b2c6(_0x454865([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x454865([0x73,0x74,0x61,0x74,0x65])]==_0x454865([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x6778d3(){return _0x939994(_0x454865([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x1e4b9c(){return _0x939994(_0x454865([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x3795d0(_0xe1a538){const _0x500c2d=_0x2a1330();_0x15a20f[_0x500c2d]=_0x454865([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xe1a538,_0xe1a538!=_0x454865([0x56,0x61,0x6c,0x69,0x64])&&_0x4dfa99();}function _0x2a1330(){const _0x517784=window[_0x454865([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x454865([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x454865([0x6e,0x6f,0x77])]())[_0x454865([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x454865([0x2e]),'');let _0x5e1719=_0x454865([0x67]);for(let _0x1a3bd2=0x0;_0x1a3bd2<_0x517784[_0x454865([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1a3bd2+=0x2){let _0x501d63=window[_0x454865([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x517784[_0x454865([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1a3bd2,_0x1a3bd2+0x2));_0x501d63>=_0x429080[_0x454865([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x501d63-=_0x429080[_0x454865([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5e1719+=_0x429080[_0x501d63];}return _0x5e1719;}function _0x359382(){const _0x2b8a9b=_0x5f1e88[_0x454865([0x73,0x70,0x6c,0x69,0x74])](_0x454865([0x2e]));if(0x3!=_0x2b8a9b[_0x454865([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3480ab(_0x2b8a9b[0x1]);function _0x3480ab(_0x5e9f79){const _0x42dad8=_0x459ecc(_0x5e9f79);return _0x42dad8&&_0x3eac34()?_0x42dad8:null;function _0x3eac34(){const _0x27193a=_0x42dad8[_0x454865([0x6a,0x74,0x69])],_0x116337=window[_0x454865([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x27193a[_0x454865([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x27193a[_0x454865([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x59eb7b={..._0x42dad8,[_0x454865([0x6a,0x74,0x69])]:_0x27193a[_0x454865([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x27193a[_0x454865([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x59eb7b[_0x454865([0x76,0x63])],_0x119fb1(_0x59eb7b)==_0x116337;}}}async function _0x235b18(){let _0x1664e9=!0x0;try{const _0x3abdbe=_0x5f1e88[_0x454865([0x73,0x70,0x6c,0x69,0x74])](_0x454865([0x2e])),[_0x4e7bfe,_0x46fcfb,_0x190372]=_0x3abdbe;return _0x3efe20(_0x4e7bfe),await _0x460e8c(_0x4e7bfe,_0x46fcfb,_0x190372),_0x1664e9;}catch(_0x17de5b){return!0x1;}function _0x3efe20(_0x103dfb){const _0x40363b=_0x459ecc(_0x103dfb);_0x40363b&&_0x40363b[_0x454865([0x61,0x6c,0x67])]==_0x454865([0x45,0x53,0x32,0x35,0x36])||(_0x1664e9=!0x1);}async function _0x460e8c(_0x5f0f61,_0x4fa9c8,_0xe0c47a){const _0x491ba9=window[_0x454865([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x454865([0x66,0x72,0x6f,0x6d])](_0x222ccf(_0xe0c47a),_0x5e6a08=>_0x5e6a08[_0x454865([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x35188f=new window[(_0x454865([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x454865([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5f0f61+_0x454865([0x2e])+_0x4fa9c8),_0x5f476c=window[_0x454865([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x454865([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5f476c)return;const _0x2657c5=await _0x5f476c[_0x454865([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x454865([0x6a,0x77,0x6b]),_0x16d1e2,{[_0x454865([0x6e,0x61,0x6d,0x65])]:_0x454865([0x45,0x43,0x44,0x53,0x41]),[_0x454865([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x454865([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x454865([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5f476c[_0x454865([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x454865([0x6e,0x61,0x6d,0x65])]:_0x454865([0x45,0x43,0x44,0x53,0x41]),[_0x454865([0x68,0x61,0x73,0x68])]:{[_0x454865([0x6e,0x61,0x6d,0x65])]:_0x454865([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2657c5,_0x491ba9,_0x35188f)||(_0x1664e9=!0x1);}}function _0x459ecc(_0x28c7e2){return _0x28c7e2[_0x454865([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x454865([0x65,0x79]))?JSON[_0x454865([0x70,0x61,0x72,0x73,0x65])](_0x222ccf(_0x28c7e2)):null;}function _0x222ccf(_0x587593){return window[_0x454865([0x61,0x74,0x6f,0x62])](_0x587593[_0x454865([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x454865([0x2b]))[_0x454865([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x454865([0x2f])));}function _0x119fb1(_0x4fb7ae){let _0x44541f=0x1505;function _0x399f47(_0x2f2492){for(let _0x14dea8=0x0;_0x14dea8<_0x2f2492[_0x454865([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x14dea8++){const _0xeae11c=_0x2f2492[_0x454865([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x14dea8);_0x44541f=(_0x44541f<<0x5)+_0x44541f+_0xeae11c,_0x44541f&=_0x44541f;}}function _0x463a47(_0x2bc0f4){Array[_0x454865([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2bc0f4)?_0x2bc0f4[_0x454865([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x463a47):_0x2bc0f4&&typeof _0x2bc0f4==_0x454865([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x454865([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2bc0f4)[_0x454865([0x73,0x6f,0x72,0x74])]()[_0x454865([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x44c775,_0x3528e7])=>{_0x399f47(_0x44c775),_0x463a47(_0x3528e7);}):_0x399f47(window[_0x454865([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2bc0f4));}return _0x463a47(_0x4fb7ae),_0x44541f>>>0x0;}function _0x4c7f39(_0x8a26d4){return _0x8a26d4[_0x454865([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x454865([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x454865([0x30]));}function _0x363b93(_0x17c4db){return _0x17c4db[_0x454865([0x73,0x70,0x6c,0x69,0x74])]('')[_0x454865([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x454865([0x6a,0x6f,0x69,0x6e])]('');}function _0x939994(_0x5b31e4){return _0x15a20f[_0x454865([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x454865([0x68,0x61,0x73])](_0x5b31e4);}function _0x21b2c6(_0x69fe04){return _0x15a20f[_0x454865([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x454865([0x67,0x65,0x74])](_0x69fe04);}function _0x531810(){}function _0x454865(_0x11ef2c){return _0x11ef2c['map'](_0x567c06=>String['fromCharCode'](_0x567c06))['join']('');}_0x3795d0(await _0x132086());}(this);}set['adapter'](_0x29bca5){if(this['_adapter'])throw new _0x3e1631('track-changes-adapter-already-set',this);this['_adapter']=_0x29bca5;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x3143b8=!0x1,toJSON:_0x3e785f=!0x1}={}){const _0x443f1c=[];for(const _0x5f14b7 of this['_suggestions']['values']())_0x3143b8&&!_0x5f14b7['isInContent']||_0x443f1c['push'](_0x5f14b7);return _0x3e785f?_0x443f1c['map'](_0x4bb964=>_0x4bb964['toJSON']()):_0x443f1c;}['getSuggestion'](_0x549cb3){const _0x4d18d6=this['_suggestions']['get'](_0x549cb3);if(!_0x4d18d6)throw new _0x3e1631('track-changes-suggestion-not-found',this);return _0x4d18d6;}['hasSuggestion'](_0x4a6758){return this['_suggestions']['has'](_0x4a6758);}['addSuggestionData'](_0x33c286){const {authorId:_0x593ca3,id:_0x50736c,attributes:_0x34eac0}=_0x33c286,[_0x3e90b8,_0x2b806e]=_0x33c286['type']['split'](':'),_0x41e06f=this['_suggestions']['get'](_0x50736c)||this['_createSuggestion'](_0x3e90b8,_0x2b806e,_0x50736c,_0x593ca3,_0x34eac0);if(this['_addThreadToSuggestion'](_0x41e06f),this['_checkSuggestionCorrectness'](_0x41e06f,_0x3e90b8,_0x2b806e||null,_0x593ca3),_0x41e06f['createdAt']=_0x33c286['createdAt'],_0x41e06f['_isDataLoaded']=!0x0,_0x34eac0&&_0x34eac0['@external']){const _0x4e5190=_0x34eac0['@external'],_0x51fa37=this['_getExternalAuthor'](_0x4e5190['authorName']);_0x41e06f['authoredAt']=_0x4e5190['createdAt'],_0x41e06f['author']=_0x51fa37,_0x41e06f['isExternal']=!0x0;}else _0x41e06f['authoredAt']=_0x33c286['createdAt'];switch(_0x33c286['data']&&(_0x41e06f['data']=_0x33c286['data']),_0x33c286['attributes']&&(_0x41e06f['attributes']=_0x33c286['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x41e06f['_saved']=!0x0),this['_suggestionState']['get'](_0x41e06f)){case'notReady':this['_suggestionState']['set'](_0x41e06f,'dataReady');break;case'markerReady':_0x41e06f['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x41e06f])),this['_refreshSuggestionsChain'](new Set([_0x41e06f])),this['_suggestionState']['set'](_0x41e06f,'ready'),this['fire']('suggestionLoaded',_0x41e06f)):this['_suggestionState']['set'](_0x41e06f,'removed');}return _0x41e06f;}['acceptSuggestion'](_0x409f71){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4a1e16 of _0x409f71['getAllAdjacentSuggestions']())_0x4a1e16['accept']();});});}['discardSuggestion'](_0x57f283){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x12cb18 of _0x57f283['getAllAdjacentSuggestions']())_0x12cb18['discard']();});});}['enableCommand'](_0x39cfe1,_0x3f4797){const _0x40d185=this['editor']['commands']['get'](_0x39cfe1);if(!_0x40d185)throw new _0x3e1631('track-changes-command-not-found',this,{'commandName':_0x39cfe1});if(this['_enabledCommands']['has'](_0x40d185))throw new _0x3e1631('track-changes-enable-command-twice',this,{'commandName':_0x39cfe1});this['_enabledCommands']['add'](_0x40d185),_0x3f4797&&_0x40d185['on']('execute',(_0x596d5f,_0x195623)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x195623['length']>0x0&&_0x195623[_0x195623['length']-0x1]&&_0x195623[_0x195623['length']-0x1]['forceDefaultExecution']?_0x195623['pop']():(_0x596d5f['return']=_0x3f4797((..._0x2ff2b2)=>_0x40d185['execute'](..._0x2ff2b2,{'forceDefaultExecution':!0x0}),..._0x195623),_0x596d5f['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x155acc){let _0x5b739f,_0x830a76;const _0xff8eb3=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x5b739f=_0x155acc();}catch(_0x59a2dc){_0x830a76=_0x59a2dc;}return _0xff8eb3||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x830a76&&_0x3e1631['rethrowUnexpectedError'](_0x830a76,this),_0x5b739f;}['markInsertion'](_0x4e71a3,_0xd656b9=null,_0x14769b={}){if(_0x4e71a3['isCollapsed'])return null;const _0x468e81=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x54bbf0,meta:_0x25fe9d}of this['_findSuggestions'](_0x4e71a3,'insertion'))if(_0x25fe9d['isOwn']){if(!_0x25fe9d['isNextTo']){if(_0x25fe9d['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!zt(_0x54bbf0,_0x14769b))continue;return _0x54bbf0;}if(zt(_0x54bbf0,_0x14769b))return _0x54bbf0;this['_breakSuggestionMarker'](_0x54bbf0,_0x4e71a3['start'],_0x4e71a3['end']);break;}if(_0xd656b9==_0x54bbf0['subType']&&zt(_0x54bbf0,_0x14769b)){const _0x177945=_0x54bbf0['getFirstRange']();return _0x177945['start']['isEqual'](_0x4e71a3['end'])?this['_setSuggestionRange'](_0x54bbf0,this['_model']['createRange'](_0x4e71a3['start'],_0x177945['end'])):this['_setSuggestionRange'](_0x54bbf0,this['_model']['createRange'](_0x177945['start'],_0x4e71a3['end'])),_0x54bbf0;}}const _0x2c9b3e=_0x2d895c(),_0xd3c552=_0x468e81['id'],_0x31a5ca=_0xd656b9?'insertion:'+_0xd656b9:'insertion',_0x3e5741=this['_setSuggestionData']({'id':_0x2c9b3e,'type':_0x31a5ca,'createdAt':new Date(),'authorId':_0xd3c552,'attributes':_0x14769b});return this['_addSuggestionMarker'](_0x31a5ca,_0x2c9b3e,_0xd3c552,_0x4e71a3),_0x3e5741;}['markMultiRangeInsertion'](_0x1868cb,_0x32d30a='multi',_0x51551c={}){const _0x250558=this['editor']['plugins']['get']('Users')['me'],_0x1933af=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x32d30a,'join');for(const _0xf2bfa9 of this['getSuggestions']())if(_0xf2bfa9['author']['id']==_0x250558['id']&&'insertion'==_0xf2bfa9['type']&&_0xf2bfa9['subType']==_0x32d30a&&zt(_0xf2bfa9,_0x51551c)&&(_0x1933af(_0xf2bfa9['getRanges'](),_0x1868cb)||_0x1933af(_0x1868cb,_0xf2bfa9['getRanges']()))){for(const _0x1de390 of _0x1868cb)_0xf2bfa9['addRange'](_0x1de390);return _0xf2bfa9;}for(const {suggestion:_0x5763e0,meta:_0x2d49c3}of this['_findSuggestions'](_0x1868cb,'insertion')){if(!_0x2d49c3['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x2d49c3['containsRangeInObject'])continue;if(!zt(_0x5763e0,_0x51551c))continue;let _0x2234e7=!0x0;for(const _0x3050d5 of _0x5763e0['getRanges']())for(const _0x39f525 of _0x1868cb)if(!_0x3050d5['containsRange'](_0x39f525)){_0x2234e7=!0x1;break;}if(_0x2234e7)return _0x5763e0;}const _0x21821b=_0x2d895c(),_0x35626e=_0x250558['id'],_0x55da8a='insertion:'+_0x32d30a,_0x3e1002=this['_setSuggestionData']({'id':_0x21821b,'type':_0x55da8a,'createdAt':new Date(),'authorId':_0x35626e,'attributes':_0x51551c});for(const _0x2a3e82 of _0x1868cb)this['_addSuggestionMarker'](_0x55da8a,_0x21821b,_0x35626e,_0x2a3e82,u['getMultiRangeId']());return _0x3e1002;}['markInlineFormat'](_0x2590cb,_0x184b26,_0x16b7fc=null,_0x270e3c={}){if(_0x16b7fc=_0x16b7fc||Gt(_0x184b26),_0x2590cb['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x55450e=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x16b7fc,'accept');return this['forceDefaultExecution'](()=>_0x55450e([_0x2590cb],_0x184b26,_0x270e3c)),null;}const _0x9d01a2=this['editor']['plugins']['get']('Users')['me'],_0x2984e0=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x5b9946,meta:_0x56de6f}of this['_findSuggestions'](_0x2590cb,'insertion'))_0x56de6f['isOwn']&&!_0x56de6f['isInsideObject']&&_0x2984e0['push'](..._0x5b9946['getRanges']());}const _0x3459b5=function(_0x13fc33,_0x459e9d){const _0x33bf84=[];for(const _0x3e455a of _0x459e9d){const _0x5b3b76=_0x13fc33['getIntersection'](_0x3e455a);_0x5b3b76&&_0x33bf84['push'](_0x5b3b76);}return _0x33bf84;}(_0x2590cb,_0x2984e0),_0x4bbd6a=function(_0x255028,_0x2c3444){const _0x43828b=[_0x255028];for(const _0x2befcf of _0x2c3444){let _0x44054f=0x0;for(;_0x44054f<_0x43828b['length'];){const _0x20ebc5=_0x43828b[_0x44054f]['getDifference'](_0x2befcf);_0x43828b['splice'](_0x44054f,0x1,..._0x20ebc5),_0x44054f+=_0x20ebc5['length'];}}return _0x43828b;}(_0x2590cb,_0x2984e0);_0x3459b5['length']&&this['_model']['change'](()=>{for(const _0x28ad84 of _0x3459b5){const _0x582f9a=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x16b7fc,'accept');this['forceDefaultExecution'](()=>_0x582f9a([_0x28ad84],_0x184b26,_0x270e3c));}});for(const _0x1f9f39 of _0x4bbd6a){let _0xffce6=null,_0x14d0d7=_0x1f9f39['start'],_0x48027b=_0x1f9f39['end'];for(const {suggestion:_0x2db85b,meta:_0x2b1d89}of this['_findSuggestions'](_0x1f9f39,'formatInline')){if(!_0x2b1d89['isOwn'])continue;if(_0x2db85b['subType']!=_0x16b7fc)continue;if(!zt(_0x2db85b,_0x270e3c))continue;const _0x4ecd89=_0x2db85b['getFirstRange']();if(_0x4ecd89['containsRange'](_0x1f9f39,!0x0))return null;_0x14d0d7=_0x14d0d7['isBefore'](_0x4ecd89['start'])?_0x14d0d7:_0x4ecd89['start'],_0x48027b=_0x48027b['isAfter'](_0x4ecd89['end'])?_0x48027b:_0x4ecd89['end'],_0xffce6?_0x4ecd89['start']['isBefore'](_0xffce6['getFirstRange']()['start'])?(_0xffce6['removeMarkers'](),_0xffce6=_0x2db85b):_0x2db85b['removeMarkers']():_0xffce6=_0x2db85b;}const _0x3023e4=this['_model']['createRange'](_0x14d0d7,_0x48027b);if(_0xffce6)this['_setSuggestionRange'](_0xffce6,_0x3023e4);else{const _0x2edc99=_0x2d895c(),_0x147da2=_0x9d01a2['id'];this['_setSuggestionData']({'id':_0x2edc99,'type':'formatInline:'+_0x16b7fc,'data':_0x184b26,'createdAt':new Date(),'authorId':_0x147da2,'attributes':_0x270e3c}),this['_addSuggestionMarker']('formatInline:'+_0x16b7fc,_0x2edc99,_0x147da2,_0x3023e4);}}return null;}['markBlockFormat'](_0x183701,_0x2839de,_0x43e6bc=[],_0x55d447=null,_0x46dcbf={}){_0x2839de['formatGroupId']||(_0x2839de['formatGroupId']=_0x2839de['commandName']),_0x2839de['multipleBlocks']=_0x183701['is']('range'),_0x55d447=_0x55d447||Gt(_0x2839de);const _0x59f710=_0x43e6bc['map'](_0x3f3eb6=>Jt(_0x3f3eb6,this['_model'])),_0x35a2af=_0x183701['is']('range')?_0x183701:Jt(_0x183701,this['_model']);if('never'===this['_trackFormatChanges']){const _0x35cc9a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x55d447,'accept');return this['forceDefaultExecution'](()=>_0x35cc9a([_0x35a2af],_0x2839de,_0x46dcbf)),null;}_0x59f710['push'](_0x35a2af);let _0x549df9=!0x0;for(const _0xc39730 of _0x59f710)if(!this['_rangeIsInLocalUserInsertion'](_0xc39730)){_0x549df9=!0x1;break;}if(_0x549df9&&'always'!==this['_trackFormatChanges']){const _0xf6dfa4=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x55d447,'accept');return this['forceDefaultExecution'](()=>_0xf6dfa4([_0x35a2af],_0x2839de,_0x46dcbf)),null;}let _0x1d2462=null,_0x28e45a=_0x35a2af['start'],_0x33ab78=_0x35a2af['end'];for(const {suggestion:_0x3e5ea6,meta:_0x32c2a1}of this['_findSuggestions'](_0x35a2af,'formatBlock')){if(!_0x32c2a1['isOwn'])continue;if(_0x32c2a1['isNextTo']||_0x32c2a1['containsRangeInObject']||_0x32c2a1['isInsideObject'])continue;if(_0x3e5ea6['data']['formatGroupId']!=_0x2839de['formatGroupId'])continue;if(!zt(_0x3e5ea6,_0x46dcbf))continue;const _0x19a27b=_0x3e5ea6['getFirstRange']();if(_0x3e5ea6['subType']==_0x55d447){if(_0x19a27b['containsRange'](_0x35a2af,!0x0))return null;_0x28e45a=_0x28e45a['isBefore'](_0x19a27b['start'])?_0x28e45a:_0x19a27b['start'],_0x33ab78=_0x33ab78['isAfter'](_0x19a27b['end'])?_0x33ab78:_0x19a27b['end'],_0x1d2462?_0x19a27b['start']['isBefore'](_0x1d2462['getFirstRange']()['start'])?(_0x1d2462['removeMarkers'](),_0x1d2462=_0x3e5ea6):_0x3e5ea6['removeMarkers']():_0x1d2462=_0x3e5ea6;}else{const _0x7e3e55=_0x35a2af['getIntersection'](_0x19a27b);this['_cutOutSuggestionMarker'](_0x3e5ea6,_0x7e3e55);}}const _0x282420=this['editor']['plugins']['get']('Users')['me'],_0x4e6400=_0x2d895c(),_0x45765e=_0x282420['id'];if(_0x1d2462)return this['_setSuggestionRange'](_0x1d2462,this['_model']['createRange'](_0x28e45a,_0x33ab78)),_0x1d2462;{const _0x10c0e7=this['_setSuggestionData']({'id':_0x4e6400,'type':'formatBlock:'+_0x55d447,'data':_0x2839de,'createdAt':new Date(),'authorId':_0x45765e,'attributes':_0x46dcbf});return this['_addSuggestionMarker']('formatBlock:'+_0x55d447,_0x4e6400,_0x45765e,this['_model']['createRange'](_0x28e45a,_0x33ab78)),_0x10c0e7;}}['markMultiRangeBlockFormat'](_0x532ccf,_0x24a489,_0x3d727c=[],_0x2143fa=null,_0x46c292={}){_0x24a489['formatGroupId']||(_0x24a489['formatGroupId']=_0x24a489['commandName']);const _0x41a420=_0x532ccf[0x0];_0x24a489['multipleBlocks']=_0x41a420['is']('range'),_0x2143fa=_0x2143fa||Gt(_0x24a489);const _0x32096d=_0x3d727c['map'](_0x10c4b7=>Jt(_0x10c4b7,this['_model'])),_0x31cb9d=_0x41a420['is']('range')?_0x532ccf:_0x532ccf['map'](_0x3173cc=>Jt(_0x3173cc,this['_model']));if('never'===this['_trackFormatChanges']){const _0x58454d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2143fa,'accept');return this['forceDefaultExecution'](()=>_0x58454d(_0x31cb9d,_0x24a489,_0x46c292)),null;}_0x32096d['push'](..._0x31cb9d);let _0x304aa0=!0x0;for(const _0x4e71b8 of _0x32096d)if(!this['_rangeIsInLocalUserInsertion'](_0x4e71b8)){_0x304aa0=!0x1;break;}if(_0x304aa0&&'always'!==this['_trackFormatChanges']){const _0x196d04=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2143fa,'accept');return this['forceDefaultExecution'](()=>_0x196d04(_0x31cb9d,_0x24a489,_0x46c292)),null;}const _0x28f2d2=this['editor']['plugins']['get']('Users')['me'];for(const _0x28cea7 of this['getSuggestions']()){if(_0x28cea7['author']['id']!=_0x28f2d2['id'])continue;if('formatBlock'!=_0x28cea7['type']||_0x28cea7['data']['formatGroupId']!=_0x24a489['formatGroupId'])continue;if(!zt(_0x28cea7,_0x46c292))continue;const _0x2ec6ca=_0x28cea7['subType']==_0x2143fa;for(let _0x4dd45e=0x0;_0x4dd45e<_0x31cb9d['length'];_0x4dd45e++){const _0x176b82=_0x31cb9d[_0x4dd45e];for(const _0x3666db of _0x28cea7['getMarkers']()){const _0x3a3cca=_0x3666db['getRange']();if(_0x176b82['isEqual'](_0x3a3cca)){_0x2ec6ca?(_0x31cb9d['splice'](_0x4dd45e,0x1),_0x4dd45e--):_0x28cea7['removeMarker'](_0x3666db['name']);break;}}}}if(0x0==_0x31cb9d['length'])return null;const _0x434274=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2143fa,'join');for(const _0x50ce62 of this['getSuggestions']())if(_0x50ce62['author']['id']==_0x28f2d2['id']&&'formatBlock'==_0x50ce62['type']&&_0x50ce62['data']['formatGroupId']==_0x24a489['formatGroupId']&&_0x50ce62['subType']==_0x2143fa&&zt(_0x50ce62,_0x46c292)&&(_0x434274(_0x50ce62['getRanges'](),_0x31cb9d)||_0x434274(_0x31cb9d,_0x50ce62['getRanges']()))){for(const _0x573b80 of _0x31cb9d)_0x50ce62['addRange'](_0x573b80);return _0x50ce62;}const _0x5e4341=_0x2d895c(),_0x4ebe09=_0x28f2d2['id'],_0x41dc96='formatBlock:'+_0x2143fa,_0x37a107=this['_setSuggestionData']({'id':_0x5e4341,'type':_0x41dc96,'data':_0x24a489,'createdAt':new Date(),'authorId':_0x4ebe09,'attributes':_0x46c292});for(const _0x38e685 of _0x31cb9d)this['_addSuggestionMarker'](_0x41dc96,_0x5e4341,_0x4ebe09,_0x38e685,u['getMultiRangeId']());return _0x37a107;}['markDeletion'](_0x46aead,_0x19b5f7=null,_0x917d9d={}){if(_0x46aead['isCollapsed'])return null;const _0x232855=this['editor']['plugins']['get']('Users')['me'],_0x3af4ea=new _0x4b1aef(_0x46aead['start'],_0x46aead['end']);for(const {suggestion:_0x4c409f,meta:_0x1744ec}of this['_findSuggestions'](_0x3af4ea,'insertion'))if(_0x1744ec['isOwn']&&!_0x1744ec['isNextTo']){if(_0x4c409f['isMultiRange']){const _0x4d4306=_0x4c409f['getRanges']()['filter'](_0x15f6ee=>'$graveyard'!=_0x15f6ee['root']['rootName']);_0x4d4306['every'](_0x53387e=>_0x3af4ea['containsRange'](_0x53387e,!0x0))&&_0x4c409f['discard']();if(_0x4d4306['some'](_0x4f0f46=>_0x4f0f46['containsRange'](_0x3af4ea,!0x0))){const _0x119db8=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x19b5f7,'accept');return this['forceDefaultExecution'](()=>_0x119db8([_0x3af4ea],null,_0x917d9d)),null;}}else{const _0x1f8508=_0x3af4ea['getIntersection'](_0x4c409f['getFirstRange']());null!==_0x1f8508&&_0x4c409f['_onDiscard']([_0x1f8508],null,_0x917d9d);}}if(_0x3af4ea['detach'](),_0x3af4ea['isCollapsed']||'$graveyard'==_0x3af4ea['root']['rootName'])return null;let _0x2888ca=null,_0x3c5fe1=_0x3af4ea['start'],_0x310c61=_0x3af4ea['end'];const _0x5c728c=this['_findSuggestions'](_0x3af4ea,'deletion');for(const {suggestion:_0x1e4970,meta:_0x6ebbcf}of _0x5c728c){const _0x2d75f0=this['_model']['createRange'](_0x3c5fe1,_0x310c61);if(_0x6ebbcf['isOwn']&&(this['_mergeNestedSuggestions']||!_0x6ebbcf['containsRangeInObject']&&!_0x6ebbcf['isInsideObject'])){if(_0x1e4970['isMultiRange']){if(!zt(_0x1e4970,_0x917d9d))continue;let _0x59af1c=!0x0;for(const _0x20a9a7 of _0x1e4970['getRanges']()){if(_0x20a9a7['containsRange'](_0x2d75f0,!0x0))return _0x1e4970;_0x2d75f0['containsRange'](_0x20a9a7)||(_0x59af1c=!0x1);}_0x59af1c&&_0x1e4970['discard']();}else{const _0x162078=_0x1e4970['getFirstRange']();if(_0x162078['containsRange'](_0x2d75f0,!0x0))return _0x1e4970;if(!zt(_0x1e4970,_0x917d9d)){_0x2d75f0['containsRange'](_0x162078)?_0x1e4970['removeMarkers']():_0x162078['containsPosition'](_0x3c5fe1)?_0x3c5fe1=_0x162078['end']:_0x162078['containsPosition'](_0x310c61)&&(_0x310c61=_0x162078['start']);continue;}_0x3c5fe1=_0x3c5fe1['isBefore'](_0x162078['start'])?_0x3c5fe1:_0x162078['start'],_0x310c61=_0x310c61['isAfter'](_0x162078['end'])?_0x310c61:_0x162078['end'],_0x917d9d=Object['assign']({},_0x1e4970['attributes']),_0x2888ca?_0x162078['start']['isBefore'](_0x2888ca['getFirstRange']()['start'])?(_0x2888ca['removeMarkers'](),_0x2888ca=_0x1e4970):_0x1e4970['removeMarkers']():_0x2888ca=_0x1e4970;}}}if(_0x2888ca)return this['_setSuggestionRange'](_0x2888ca,this['_model']['createRange'](_0x3c5fe1,_0x310c61)),_0x2888ca;{const _0x341d6c=_0x2d895c(),_0x46177b=this['_model']['createRange'](_0x3c5fe1,_0x310c61),_0xc34845=_0x232855['id'],_0x5eb048=_0x19b5f7?'deletion:'+_0x19b5f7:'deletion',_0x456d26=this['_setSuggestionData']({'id':_0x341d6c,'type':_0x5eb048,'createdAt':new Date(),'authorId':_0xc34845,'attributes':_0x917d9d});return this['_addSuggestionMarker'](_0x5eb048,_0x341d6c,_0xc34845,_0x46177b),_0x456d26;}}['markMultiRangeDeletion'](_0x14e240,_0x1fba7b='multi',_0x4bbc46={}){const _0x4ec1da=this['editor']['plugins']['get']('Users')['me'],_0x5394b9=_0x14e240['map'](_0x4188db=>new _0x4b1aef(_0x4188db['start'],_0x4188db['end'])),_0x28802a=new Set();for(const {suggestion:_0x4f72fc,meta:_0x158b9d}of this['_findSuggestions'](_0x5394b9,'insertion'))_0x158b9d['isOwn']&&!_0x158b9d['isNextTo']&&_0x28802a['add'](_0x4f72fc);for(const _0x49a9a9 of _0x28802a)if(_0x49a9a9['isMultiRange']){const _0x3834c9=_0x49a9a9['getRanges']();(!_0x49a9a9['attributes']||!_0x49a9a9['attributes']['skipNestingCheck'])&&(_0x3834c9['every'](_0x4a9644=>_0x5394b9['some'](_0x521691=>_0x521691['containsRange'](_0x4a9644,!0x0)))&&_0x49a9a9['discard']());if(_0x5394b9['every'](_0x39779f=>_0x3834c9['some'](_0x58273c=>_0x58273c['containsRange'](_0x39779f,!0x0)))){const _0x23057f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1fba7b,'accept');return this['forceDefaultExecution'](()=>_0x23057f(_0x14e240,null,_0x4bbc46)),null;}}else{const _0x559c1d=_0x49a9a9['getFirstRange']();_0x5394b9['some'](_0x2c5445=>_0x2c5445['containsRange'](_0x559c1d,!0x0))&&_0x49a9a9['discard']();if(_0x5394b9['every'](_0x1dd0f3=>_0x559c1d['containsRange'](_0x1dd0f3,!0x0))){const _0x5e808e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1fba7b,'accept');return this['forceDefaultExecution'](()=>_0x5e808e(_0x5394b9,null,_0x4bbc46)),null;}}const _0x487312=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1fba7b,'join');let _0x594b67=null;for(const _0x49c726 of this['getSuggestions']())if(_0x49c726['author']['id']==_0x4ec1da['id']&&_0x49c726['isInContent']&&'deletion'==_0x49c726['type']&&_0x49c726['subType']==_0x1fba7b&&zt(_0x49c726,_0x4bbc46)&&(_0x487312(_0x49c726['getRanges'](),_0x5394b9)||_0x487312(_0x5394b9,_0x49c726['getRanges']()))){if(_0x594b67){if(_0x49c726['commentThread']&&_0x49c726['commentThread']['length'])continue;for(const _0x1c0b6f of _0x49c726['getRanges']())_0x594b67['isIntersectingWithRange'](_0x1c0b6f)||_0x594b67['addRange'](_0x1c0b6f);_0x49c726['removeMarkers']();}else{_0x594b67=_0x49c726;for(const _0x3ec582 of _0x5394b9)_0x49c726['isIntersectingWithRange'](_0x3ec582)||_0x49c726['addRange'](_0x3ec582);}}if(_0x594b67)return _0x594b67;_0x28802a['clear']();for(const {suggestion:_0x7925b1,meta:_0x1a59a4}of this['_findSuggestions'](_0x5394b9,'deletion'))_0x1a59a4['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1a59a4['containsRangeInObject']&&!_0x1a59a4['isInsideObject'])&&zt(_0x7925b1,_0x4bbc46)&&_0x28802a['add'](_0x7925b1);for(const _0x4d414d of _0x28802a){const _0x3198d5=_0x4d414d['getRanges']();if(!_0x4bbc46||!_0x4bbc46['skipNestingCheck']){if(_0x5394b9['every'](_0x48ebc9=>_0x3198d5['some'](_0x4b1b34=>_0x4b1b34['containsRange'](_0x48ebc9,!0x0))))return _0x4d414d;}(!_0x4d414d['attributes']||!_0x4d414d['attributes']['skipNestingCheck'])&&(_0x3198d5['every'](_0x3ecf13=>_0x5394b9['some'](_0x2b9b01=>_0x2b9b01['containsRange'](_0x3ecf13,!0x0)))&&_0x4d414d['discard']());}const _0x14d3b0=_0x2d895c(),_0x4d5d0e=_0x4ec1da['id'],_0x1e05c2='deletion:'+_0x1fba7b,_0x45fcdd=this['_setSuggestionData']({'id':_0x14d3b0,'type':_0x1e05c2,'createdAt':new Date(),'authorId':_0x4d5d0e,'attributes':_0x4bbc46});for(const _0x574339 of _0x5394b9)_0x574339['detach'](),_0x574339['isCollapsed']||'$graveyard'==_0x574339['root']['rootName']||this['_addSuggestionMarker'](_0x1e05c2,_0x14d3b0,_0x4d5d0e,_0x574339,u['getMultiRangeId']());return _0x45fcdd;}['markAttributeChange'](_0x311f69,_0x138522,_0xdf3f95,_0xc697a9,_0x861da7){if(_0x311f69['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x4f1853=this['editor']['plugins']['get']('Users')['me']['id'],_0x3bb94f=Array['from'](this['_suggestions']['values']())['filter'](_0x14ba4c=>'attribute'==_0x14ba4c['type']&&_0x14ba4c['data']['key']==_0x138522&&_0x14ba4c['isIntersectingWithRange'](_0x311f69));if('default'===this['_trackFormatChanges']){const _0x424c84=this['_findSuggestions'](_0x311f69,'insertion')['filter'](({meta:_0x3ce8b9})=>_0x3ce8b9['isOwn']&&!_0x3ce8b9['isInsideObject']&&!_0x3ce8b9['isNextTo'])['map'](({suggestion:_0x4b93ef})=>_0x4b93ef);_0x3bb94f['unshift'](..._0x424c84);}const _0x2af3a0=new Map([[_0x311f69,_0xdf3f95]]);for(const _0x2a1163 of _0x3bb94f){const _0x49ac03='attribute'==_0x2a1163['type']?_0x2a1163['data']['oldValue']:void 0x0,_0x4f903c=_0x2a1163['getFirstRange'](),_0x347122=Array['from'](_0x2af3a0['keys']())['find'](_0x48724e=>_0x48724e['isIntersecting'](_0x4f903c));if(!_0x347122)continue;const _0x817e9e=_0x347122['getDifference'](_0x4f903c);this['_isBlockAttribute'](_0x138522)&&'insertion'==_0x2a1163['type']&&0x0!=_0x817e9e['length']||(_0x2af3a0['delete'](_0x347122),_0x817e9e['forEach'](_0x28315d=>{_0x2af3a0['set'](_0x28315d,_0xdf3f95);}),'insertion'!=_0x2a1163['type']&&_0x49ac03!=_0xc697a9&&_0x2af3a0['set'](_0x347122['getIntersection'](_0x4f903c),_0x49ac03));}const _0x5b917b=[];for(const [_0x447a81,_0x5b62c6]of _0x2af3a0){const _0x1475af=_0x2d895c(),_0x19f9ef={'key':_0x138522,'oldValue':_0x5b62c6,'newValue':_0xc697a9};_0x138522['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':_0x138522});const _0x366d6b=('attribute:'+(_0x138522+'|'+Gt({'newValue':_0xc697a9})))['substring'](0x0,0x3c),_0x19a684=this['_setSuggestionData']({'id':_0x1475af,'type':_0x366d6b,'data':_0x19f9ef,'createdAt':new Date(),'authorId':_0x4f1853,'attributes':_0x861da7});_0x5b917b['push'](_0x19a684),this['_addSuggestionMarker'](_0x366d6b,_0x1475af,_0x4f1853,_0x447a81);}return _0x5b917b;}['enableDefaultAttributesIntegration'](_0xd3e3b0){this['enableCommand'](_0xd3e3b0,(_0x497eb7,..._0x181e17)=>{this['_recordAttributeChanges'](()=>{_0x497eb7(..._0x181e17);});});}['registerBlockAttribute'](_0x26300b){this['_blockAttributeKeys']['add'](_0x26300b);}['registerInlineAttribute'](_0x211e21){this['_inlineAttributeKeys']['add'](_0x211e21);}['_getAttributeKey'](_0x3d6289){return'attribute'==_0x3d6289['type']?_0x3d6289['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x521706,_0x4b5f03){const _0x990cf8=_0x521706['getFirstMarker']();this['_model']['change'](_0x29b7b1=>{_0x29b7b1['updateMarker'](_0x990cf8,{'range':_0x4b5f03});});}['_addThreadToSuggestion'](_0x54831a){const _0x3c911a=_0x54831a['id'],_0x4f8ca7=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x3c911a)||this['_commentsRepository']['addCommentThread']({'channelId':_0x4f8ca7,'threadId':_0x3c911a,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x4bb25b=this['_commentsRepository']['getCommentThread'](_0x3c911a);_0x4bb25b['unbind']('isRemovable'),_0x4bb25b['isRemovable']=!0x1,_0x54831a['commentThread']=_0x4bb25b;}['_checkSuggestionCorrectness'](_0x32b6b4,_0x4bc3dd,_0x26ce09,_0x4ab5ae){if(_0x32b6b4['type']!=_0x4bc3dd||_0x32b6b4['subType']!=_0x26ce09||_0x32b6b4['creator']['id']!=_0x4ab5ae)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x3e1631('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x3f675a,_0x5253ed){const _0x234bc0=_0x3f675a['getFirstRange']();if(_0x5253ed['isEqual'](_0x234bc0))_0x3f675a['removeMarkers']();else{if(_0x234bc0['containsRange'](_0x5253ed)){const _0x73ed81=this['_model']['createPositionAt'](_0x5253ed['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3f675a,this['_model']['createRange'](_0x234bc0['start'],_0x73ed81));const _0x51e512=_0x2d895c(),_0x5e00ec=_0x3f675a['creator']['id'],_0x4ec9fb=_0x3f675a['type']+':'+_0x3f675a['subType'];this['_setSuggestionData']({'id':_0x51e512,'type':_0x4ec9fb,'createdAt':new Date(),'authorId':_0x5e00ec,'data':_0x3f675a['data'],'attributes':_0x3f675a['attributes']});const _0x353730=this['_model']['createPositionAt'](_0x5253ed['end']['parent'],'after'),_0x5847dd=this['_model']['createRange'](_0x353730,_0x234bc0['end']);this['_addSuggestionMarker'](_0x4ec9fb,_0x51e512,_0x5e00ec,_0x5847dd);}else{if(_0x234bc0['containsPosition'](_0x5253ed['start'])){const _0x2e4ee4=this['_model']['createPositionAt'](_0x5253ed['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3f675a,this['_model']['createRange'](_0x234bc0['start'],_0x2e4ee4));}else{const _0x4d2a83=this['_model']['createPositionAt'](_0x5253ed['end']['parent'],'after');this['_setSuggestionRange'](_0x3f675a,this['_model']['createRange'](_0x4d2a83,_0x234bc0['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x2e7f33){for(const {suggestion:_0x45495a,meta:_0x1836af}of this['_findSuggestions'](_0x2e7f33,'insertion')){if(!_0x1836af['isOwn'])continue;const _0xc6cb88=_0x45495a['getRanges']();for(const _0x1f1e8b of _0xc6cb88)if(!_0x2e7f33['getDifference'](_0x1f1e8b)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x2e24b6){const _0x4eac7b=this['editor']['plugins']['get']('Users')['getUser'](_0x2e24b6);if(!_0x4eac7b)throw new _0x3e1631('track-changes-user-not-found',this);return _0x4eac7b;}['_getExternalAuthor'](_0x2a22e5){const _0x83da8b=this['editor']['plugins']['get']('Users'),_0x13264b=_0x8f40a1('external:'+_0x2a22e5),_0x17317b=_0x83da8b['getUser'](_0x13264b);return _0x17317b||_0x83da8b['addUser']({'id':_0x13264b,'name':_0x2a22e5});}['_createSuggestion'](_0x38e3ae,_0x4b537b,_0xe11c13,_0x41e5f4,_0x1616f9){const _0x47ddab=this['_getAuthorFromId'](_0x41e5f4),_0x1523bf=this['_suggestionFactory']['buildSuggestion'](_0x38e3ae,_0x4b537b,_0xe11c13,_0x47ddab,_0x1616f9,_0x2158ed=>{this['_updateSuggestionData'](_0xe11c13,{'attributes':_0x2158ed});const _0x26ed8e=this['getSuggestion'](_0xe11c13);this['_joinWithAdjacentSuggestions'](new Set([_0x26ed8e])),this['_refreshSuggestionsChain'](new Set([_0x26ed8e]));});return this['listenTo'](_0x1523bf,'accept',()=>{this['_updateSuggestionData'](_0xe11c13,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x1523bf,'discard',()=>{this['_updateSuggestionData'](_0xe11c13,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0xe11c13,_0x1523bf),this['_suggestionState']['set'](_0x1523bf,'notReady'),_0x1523bf;}['_splitMarkerName'](_0x2f3234){const _0x3dd842=_0x2f3234['split'](':');return{'group':_0x3dd842[0x0],'type':_0x3dd842[0x1],'subType':_0x3dd842['length']>=0x5?_0x3dd842[0x2]:null,'id':_0x3dd842['length']<0x5?_0x3dd842[0x2]:_0x3dd842[0x3],'authorId':_0x3dd842['length']<0x5?_0x3dd842[0x3]:_0x3dd842[0x4],'markerCount':0x6==_0x3dd842['length']?_0x3dd842[0x5]:null};}['_breakSuggestionMarker'](_0x90771c,_0x19dc68,_0x563fde){const _0x15864d=_0x90771c['getFirstRange'](),_0x519fe6=_0x15864d['start'],_0x4eff81=_0x15864d['end'];this['_setSuggestionRange'](_0x90771c,this['_model']['createRange'](_0x519fe6,_0x19dc68));const _0x5a6d8d=_0x2d895c(),_0x2b981e=_0x90771c['creator']['id'],_0x4a8d4f=_0x90771c['type']+(_0x90771c['subType']?':'+_0x90771c['subType']:'');this['_setSuggestionData']({'id':_0x5a6d8d,'type':_0x4a8d4f,'createdAt':new Date(),'authorId':_0x2b981e,'originalSuggestionId':_0x90771c['id'],'attributes':_0x90771c['attributes'],'data':_0x90771c['data']});const _0x6e5ac4=this['_getAttributeKey'](_0x90771c);('formatBlock'==_0x90771c['type']||_0x6e5ac4&&this['_isBlockAttribute'](_0x6e5ac4))&&(_0x563fde=this['_model']['createPositionBefore'](_0x563fde['parent'])),this['_addSuggestionMarker'](_0x4a8d4f,_0x5a6d8d,_0x2b981e,this['_model']['createRange'](_0x563fde,_0x4eff81));}['_findSuggestions'](_0x1b10ce,_0x3348ce=null){const _0x3fbc82=[],_0x3c64ea=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x1b10ce)||(_0x1b10ce=[_0x1b10ce]);for(const _0x12fa22 of this['getSuggestions']()){if(!_0x12fa22['isInContent'])continue;if(_0x3348ce&&_0x12fa22['type']!=_0x3348ce)continue;let _0x3331b2=!0x1;for(const _0x8aae45 of _0x12fa22['getRanges']()){for(const _0x407e58 of _0x1b10ce){const _0xb91710=_0x407e58['start']['isEqual'](_0x8aae45['end'])||_0x407e58['end']['isEqual'](_0x8aae45['start']);if(_0xb91710||_0x407e58['getIntersection'](_0x8aae45)){const _0x33fa8d=_0x407e58['containsRange'](_0x8aae45)&&Ut(this['_model']['schema'],_0x8aae45['start'],_0x407e58),_0x5110cc=_0x8aae45['containsRange'](_0x407e58)&&Ut(this['_model']['schema'],_0x407e58['start'],_0x8aae45);_0x3fbc82['push']({'suggestion':_0x12fa22,'meta':{'isOwn':_0x3c64ea==_0x12fa22['author'],'isNextTo':_0xb91710,'isInsideObject':_0x33fa8d,'containsRangeInObject':_0x5110cc}}),_0x3331b2=!0x0;break;}}if(_0x3331b2)break;}}return _0x3fbc82;}['_addSuggestionMarker'](_0x26298c,_0x17e639,_0x1959b4,_0x44bf03,_0x287b8a){this['_model']['change'](_0x433d48=>{let _0x1ca183='suggestion:'+_0x26298c+':'+_0x17e639+':'+_0x1959b4;_0x287b8a&&(_0x1ca183=_0x1ca183+':'+_0x287b8a),_0x433d48['addMarker'](_0x1ca183,{'range':_0x44bf03,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0xe0705c){const _0x465258=_0xe0705c['previous'],_0x3ca7a5=_0xe0705c['next'];_0xe0705c['previous']=null,_0xe0705c['next']=null,null!=_0x465258&&_0x465258['next']==_0xe0705c&&(_0x465258['next']=_0x3ca7a5),null!=_0x3ca7a5&&_0x3ca7a5['previous']==_0xe0705c&&(_0x3ca7a5['previous']=_0x465258),'ready'==this['_suggestionState']['get'](_0xe0705c)&&(this['_suggestionState']['set'](_0xe0705c,'removed'),this['fire']('suggestionUnloaded',_0xe0705c,_0x465258,_0x3ca7a5));}['_setSuggestionData'](_0x33159b){const _0x25cae5=_0x33159b['id'],_0x283fa1=this['addSuggestionData'](_0x33159b);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x9f2d96=this['editor']['plugins']['get']('PendingActions'),_0x2df6dc=_0x283fa1['hasComments'],_0x11cd5c=_0x283fa1['subType']?_0x283fa1['type']+':'+_0x283fa1['subType']:_0x283fa1['type'],_0x12896d=this['editor']['locale'],_0x57d73e=_0x9f2d96['add'](o(_0x12896d,'PENDING_ACTION_SUGGESTION')),_0xfe5148={'id':_0x25cae5,'type':_0x11cd5c,'hasComments':_0x2df6dc,'data':_0x33159b['data']||null,'originalSuggestionId':_0x33159b['originalSuggestionId']||null,'attributes':_0x283fa1['attributes']};this['_adapter']['addSuggestion'](_0xfe5148)['then'](_0x5cf141=>{_0x283fa1['_saved']=!0x0,_0x9f2d96['remove'](_0x57d73e),_0x5cf141&&_0x5cf141['createdAt']&&(this['_suggestions']['get'](_0x25cae5)['createdAt']=_0x5cf141['createdAt']);})['catch'](_0x3c2bb9=>{throw _0x49b789('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x283fa1['discard']();}),_0x283fa1['stopListening'](),this['_suggestions']['delete'](_0x283fa1['id']),this['_suggestionState']['delete'](_0x283fa1),_0x3c2bb9;});}return _0x283fa1;}['_isBlockAttribute'](_0x4a8879){return this['_blockAttributeKeys']['has'](_0x4a8879);}['_updateSuggestionData'](_0x25dc0f,_0x5e4cbf){const _0x67ee92=this['editor']['plugins']['get']('PendingActions'),_0x50147a=this['getSuggestion'](_0x25dc0f);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x50147a['_saved']){const _0x396df7=_0x67ee92['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x25dc0f,_0x5e4cbf)['then'](()=>{_0x67ee92['remove'](_0x396df7);});}else _0x50147a['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x25dc0f,_0x5e4cbf);});}}['_getSuggestionData'](_0x4f55a4){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x3e1631('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x4f55a4);}['_handleNewSuggestionMarker'](_0x5a78f0){const {id:_0x736614,type:_0x2b5e90,subType:_0x445977,authorId:_0x53032a}=this['_splitMarkerName'](_0x5a78f0),_0x22386a=this['_suggestions']['get'](_0x736614)||this['_createSuggestion'](_0x2b5e90,_0x445977,_0x736614,_0x53032a,{});switch(this['_checkSuggestionCorrectness'](_0x22386a,_0x2b5e90,_0x445977,_0x53032a),this['_suggestionState']['get'](_0x22386a)){case'notReady':this['_getSuggestionData'](_0x736614)['then'](_0xd91e19=>{let _0x349b76=Promise['resolve']();_0xd91e19['hasComments']&&(_0x349b76=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x736614})),_0x349b76['then'](()=>{this['addSuggestionData'](_0xd91e19)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x22386a,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x736614,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x22386a,'ready'),this['fire']('suggestionLoaded',_0x22386a);break;case'ready':this['fire']('suggestionChanged',_0x22386a);}return _0x22386a['addMarkerName'](_0x5a78f0),_0x22386a;}['_refreshSuggestionsChain'](_0x3cecc0){const _0x318e85=Array['from'](_0x3cecc0),_0x2771b4=_0x318e85['filter'](_0x2f68ea=>'attribute'==_0x2f68ea['type']);this['_refreshAttributeSuggestionsChain'](_0x2771b4);const _0x258900=_0x318e85['filter'](_0x337393=>!_0x337393['isMultiRange']&&'attribute'!=_0x337393['type']),_0x1fce45=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2c9099=>!_0x2c9099['isMultiRange']&&'attribute'!=_0x2c9099['type']),_0x2a8e94=_0x1fce45['filter'](_0x8a7297=>!_0x3cecc0['has'](_0x8a7297)),_0x2b1a64=new Map(_0x1fce45['map'](_0x367e25=>[_0x367e25,this['_suggestionFactory']['getSuggestionCallback'](_0x367e25['type'],_0x367e25['subType'],'chain')])),_0x2b2e4b=new Map(_0x1fce45['map'](_0x35144f=>[_0x35144f,_0x35144f['getFirstRange']()])),_0xacad8e=new Set(),_0x4c88d4=new Set();for(let _0x355454=0x0;_0x355454<_0x258900['length'];_0x355454++)_0x2b2d4d(_0x258900[_0x355454],_0x258900,_0x355454+0x1);for(let _0x3a5d14=0x0;_0x3a5d14<_0x258900['length'];_0x3a5d14++)_0x2b2d4d(_0x258900[_0x3a5d14],_0x2a8e94,0x0);const _0x39e2dc=new Set();for(let _0x3555c6=0x0;_0x3555c6<_0x258900['length'];_0x3555c6++){const _0x31d777=_0x258900[_0x3555c6];!_0x4c88d4['has'](_0x31d777)&&_0x31d777['previous']&&(_0x39e2dc['add'](_0x31d777['previous']),_0x31d777['previous']['next']===_0x31d777&&(_0x31d777['previous']['next']=null),_0x31d777['previous']=null),!_0xacad8e['has'](_0x31d777)&&_0x31d777['next']&&(_0x39e2dc['add'](_0x31d777['next']),_0x31d777['next']['previous']===_0x31d777&&(_0x31d777['next']['previous']=null),_0x31d777['next']=null);}function _0x2b2d4d(_0x4881ef,_0x2047e9,_0x2a9ee9){for(let _0x3fe39d=_0x2a9ee9;_0x3fe39d<_0x2047e9['length'];_0x3fe39d++){const _0x46744d=_0x45671a(_0x4881ef,_0x2047e9[_0x3fe39d]);_0x46744d&&(_0x46744d[0x0]['next']=_0x46744d[0x1],_0x46744d[0x1]['previous']=_0x46744d[0x0],_0xacad8e['add'](_0x46744d[0x0]),_0x4c88d4['add'](_0x46744d[0x1]));}}function _0x45671a(_0x4f985b,_0xc0f768){if(_0x4f985b['author']['id']!==_0xc0f768['author']['id'])return null;const _0x339d59=_0x2b1a64['get'](_0x4f985b)(_0x4f985b,_0xc0f768,_0x2b2e4b['get'](_0x4f985b),_0x2b2e4b['get'](_0xc0f768));if(!_0x339d59)return null;return _0x2b1a64['get'](_0xc0f768)(_0x4f985b,_0xc0f768,_0x2b2e4b['get'](_0x4f985b),_0x2b2e4b['get'](_0xc0f768))?_0x339d59[0x1]['commentThread']&&_0x339d59[0x1]['commentThread']['length']?null:_0x339d59:null;}_0x39e2dc['size']&&this['_refreshSuggestionsChain'](_0x39e2dc);}['_refreshAttributeSuggestionsChain'](_0xbd8c38){if(0x0==_0xbd8c38['length'])return;const _0x2b7b34=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x45f687=>'attribute'==_0x45f687['type']&&_0x45f687['_isDataLoaded']),_0x333b04=[],_0x2c61b5=new Map();for(const _0x1cd6d9 of _0x2b7b34){const _0x4ed034=_0x8f40a1(_0x1cd6d9['attributes']);_0x2c61b5['has'](_0x4ed034)||(_0x2c61b5['set'](_0x4ed034,_0x333b04['length']),_0x333b04['push']([]));const _0x139c2c=_0x2c61b5['get'](_0x4ed034);_0x333b04[_0x139c2c]['push'](_0x1cd6d9);}!(function(){_0x333b04['sort']((_0x57c0ed,_0x4ecd80)=>{const _0x4f542c=_0x57c0ed[0x0]['createdAt'],_0x3aac41=_0x4ecd80[0x0]['createdAt'];return _0x4f542c==_0x3aac41?_0x57c0ed[0x0]['attributes']['groupId']<_0x4ecd80[0x0]['attributes']['groupId']?-0x1:0x1:_0x4f542c<_0x3aac41?-0x1:0x1;});for(const _0x16f0f5 of _0x333b04)_0x16f0f5['sort']((_0x295c28,_0x3a80b9)=>_0x295c28['id']<_0x3a80b9['id']?-0x1:0x1);}());for(let _0x505180=0x0;_0x505180<_0x333b04['length'];_0x505180++){if(0x0==_0x333b04[_0x505180]['length'])continue;const _0x46c3c5=[];for(let _0x61bbee=_0x505180+0x1;_0x61bbee<_0x333b04['length'];_0x61bbee++)0x0!=_0x333b04[_0x61bbee]['length']&&_0x433d6d(_0x333b04[_0x505180],_0x333b04[_0x61bbee])&&_0x46c3c5['push'](_0x61bbee);for(const _0x15847c of _0x46c3c5)_0x333b04[_0x505180]=_0x333b04[_0x505180]['concat'](_0x333b04[_0x15847c]),_0x333b04[_0x15847c]=[];}for(const _0x249312 of _0x333b04)for(let _0x4d3d98=0x0;_0x4d3d98<_0x249312['length'];_0x4d3d98++){const _0x5bb6aa=_0x249312[_0x4d3d98+0x1]||null;_0x249312[_0x4d3d98]['next']!==_0x5bb6aa&&(_0x249312[_0x4d3d98]['next']=_0x5bb6aa);}for(const _0x3cbfed of _0x333b04)for(let _0x471c45=0x0;_0x471c45<_0x3cbfed['length'];_0x471c45++){const _0xe70ebb=_0x3cbfed[_0x471c45-0x1]||null;_0x3cbfed[_0x471c45]['previous']!==_0xe70ebb&&(_0x3cbfed[_0x471c45]['previous']=_0xe70ebb);}function _0x433d6d(_0x339bf1,_0x502ab4){if(_0x339bf1[0x0]['attributes']['groupId']!==_0x502ab4[0x0]['attributes']['groupId']&&_0x339bf1[0x0]['author']!==_0x502ab4[0x0]['author'])return!0x1;if(!function(_0x400d5e,_0x5b7b36){if(!_0x400d5e['hasComments']&&!_0x5b7b36['hasComments'])return!0x0;if(_0x400d5e['hasComments']&&_0x5b7b36['hasComments'])return!0x1;if(_0x400d5e['hasComments']&&_0x5b7b36['createdAt']<_0x400d5e['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x5b7b36['hasComments']&&_0x400d5e['createdAt']<_0x5b7b36['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x339bf1[0x0],_0x502ab4[0x0]))return!0x1;const _0xfd3834=xt(_0x339bf1[0x0]['attributes'],'groupId'),_0x498860=xt(_0x502ab4[0x0]['attributes'],'groupId');if(!_0xf684d1(_0xfd3834,_0x498860))return!0x1;return!!_0x339bf1['every'](_0x2806ca=>_0x502ab4['some'](_0x5d2e93=>_0x2806ca['getFirstRange']()['isEqual'](_0x5d2e93['getFirstRange']())))&&_0x502ab4['every'](_0xd57e9d=>_0x339bf1['some'](_0x459c80=>_0xd57e9d['getFirstRange']()['isEqual'](_0x459c80['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x4ddac7){const _0xa45f8d=Array['from'](_0x4ddac7),_0x21ba2b=this['getSuggestions']({'skipNotAttached':!0x0}),_0x2083ca=_0x21ba2b['filter'](_0xa4f62d=>!_0x4ddac7['has'](_0xa4f62d)),_0xdfdf28=new Map(_0xa45f8d['map'](_0x107970=>[_0x107970,this['_suggestionFactory']['getSuggestionCallback'](_0x107970['type'],_0x107970['subType'],'join')])),_0x1be610=new Map(_0x21ba2b['map'](_0x3347c8=>[_0x3347c8,_0x3347c8['getRanges']()]));for(let _0x2b3e9d=0x0;_0x2b3e9d<_0xa45f8d['length'];_0x2b3e9d++){if(_0x231fc8(this,_0xa45f8d[_0x2b3e9d],_0xa45f8d,_0x2b3e9d+0x1))return!0x0;}for(let _0x41425b=0x0;_0x41425b<_0xa45f8d['length'];_0x41425b++){if(_0x231fc8(this,_0xa45f8d[_0x41425b],_0x2083ca,0x0))return!0x0;}return!0x1;function _0x231fc8(_0x4217c1,_0x477a00,_0x4461da,_0x324be7){for(let _0x4a971c=_0x324be7;_0x4a971c<_0x4461da['length'];_0x4a971c++){const _0xf9bddf=_0x4461da[_0x4a971c];if(_0xf9bddf['type']!==_0x477a00['type']||_0xf9bddf['author']['id']!==_0x477a00['author']['id']||_0xf9bddf['subType']!==_0x477a00['subType'])continue;if(!qt(_0x477a00,_0xf9bddf))continue;if('attribute'==_0x477a00['type']&&_0x477a00['data']['oldValue']!=_0xf9bddf['data']['oldValue'])continue;if('attribute'==_0x477a00['type']&&_0x4217c1['_isBlockAttribute'](_0x477a00['data']['key']))continue;if('formatBlock'==_0x477a00['type']){const _0x1273bc=_0x4217c1['editor']['model'],_0x4e3b71=_0x477a00['getContainedElement']();if(_0x4e3b71&&(_0x1273bc['schema']['isObject'](_0x4e3b71)||_0x1273bc['schema']['isLimit'](_0x4e3b71)))continue;}const _0x177f66=_0xdfdf28['get'](_0x477a00),_0x337b21=_0x1be610['get'](_0x477a00),_0x30d333=_0x1be610['get'](_0xf9bddf),_0x5a7c6e=_0x477a00['commentThread']&&_0x477a00['commentThread']['length'],_0x5a1721=_0xf9bddf['commentThread']&&_0xf9bddf['commentThread']['length'];if(!_0x5a7c6e&&_0x177f66(_0x30d333,_0x337b21))return _0x4217c1['_joinSuggestions'](_0xf9bddf,_0x477a00),_0x1be610['delete'](_0x477a00),!0x0;if(!_0x5a1721&&_0x177f66(_0x337b21,_0x30d333))return _0x4217c1['_joinSuggestions'](_0x477a00,_0xf9bddf),_0x1be610['delete'](_0xf9bddf),!0x0;}return!0x1;}}['_joinSuggestions'](_0x6efabf,_0x58d148){if(_0x6efabf['isMultiRange']){for(const _0x1deb7a of _0x58d148['getRanges']())_0x6efabf['addRange'](_0x1deb7a);}else{const _0x594bac=_0x58d148['getFirstRange']()['end'];this['_setSuggestionRange'](_0x6efabf,this['_model']['createRange'](_0x6efabf['getFirstRange']()['start'],_0x594bac));}_0x58d148['removeMarkers']();}['_getMarkerAnnouncementText'](_0x10d3b8,_0x1bdc05,_0x54e6a4){const _0x291ca6=_0x10d3b8['startsWith']('format')||_0x10d3b8['startsWith']('attribute')?'FORMATTING':_0x10d3b8['toUpperCase']();return o(this['editor']['locale'],_0x1bdc05+'_'+_0x291ca6+'_SUGGESTION_ANNOUNCEMENT',_0x54e6a4);}['_initAriaMarkerChangeAnnouncements'](){const _0x2f92bd=this['editor'];if(!_0x2f92bd['ui'])return;const {ariaLiveAnnouncer:_0x130be1}=_0x2f92bd['ui'];_0xbbac63(this['_model'],({left:_0x85e9aa,entered:_0x1691db})=>{for(const _0x560b10 of _0x85e9aa){const {group:_0x142f67,type:_0x19f79b}=this['_splitMarkerName'](_0x560b10['name']);if('suggestion'===_0x142f67){_0x130be1['announce'](this['_getMarkerAnnouncementText'](_0x19f79b,'LEAVE'));break;}}for(const _0xcd25f of _0x1691db){const {group:_0x46a2c9,type:_0x2dfd15}=this['_splitMarkerName'](_0xcd25f['name']);if('suggestion'===_0x46a2c9){_0x130be1['announce'](this['_getMarkerAnnouncementText'](_0x2dfd15,'ENTER',_0x5e421e(_0x471202)));break;}}});}['_processAttributeChanges'](_0x41bb5d){if(this['_recordAttributeSuggestions'])return!0x1;const _0xd1516c=this['editor'],_0x14539e=_0xd1516c['model']['document']['differ']['getChanges']();if(0x0==_0x14539e['length'])return!0x1;const _0x4f5c2b=[],_0x111ace=_0x14539e['filter'](_0x4832bb=>'attribute'==_0x4832bb['type']),_0x12c1e1=_0x14539e['filter'](_0x499ea9=>'insert'==_0x499ea9['type']&&'$text'!=_0x499ea9['name']),_0x229f16=_0x14539e['filter'](_0xc794cb=>'remove'==_0xc794cb['type']&&'$text'!=_0xc794cb['name']);for(const _0xd3249f of _0x111ace)_0x4f5c2b['push']({'key':_0xd3249f['attributeKey'],'newValue':_0xd3249f['attributeNewValue'],'oldValue':_0xd3249f['attributeOldValue'],'range':Lt(_0xd3249f['range'],_0xd1516c['model'])});for(const _0x1cc8b4 of _0x12c1e1){const _0x281184=_0x229f16['find'](_0x1f12c2=>_0x1f12c2['position']['isEqual'](_0x1cc8b4['position']));_0x281184&&_0x4f5c2b['push']({'key':m,'newValue':_0x1cc8b4['name'],'oldValue':_0x281184['name'],'range':_0xd1516c['model']['createRangeOn'](_0x1cc8b4['position']['nodeAfter'])});}return 0x0!=_0x4f5c2b['length']&&this['_reduceExistingSuggestions'](_0x41bb5d,_0x4f5c2b);}['_processAttributeSuggestions'](_0x4f9108){let _0x26f78f=!0x1;const _0x4e82ca=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x175e63=>_0x175e63['data']['newRange']&&_0x175e63['name']['startsWith']('suggestion:attribute:'));for(const _0x457773 of _0x4e82ca){const {subType:_0x4119ac,id:_0x7976f4}=this['_splitMarkerName'](_0x457773['name']),_0x177e14=_0x4119ac['split']('|')[0x0];for(const _0x4cb00c of this['getSuggestions']({'skipNotAttached':!0x0}))_0x4cb00c['id']!=_0x7976f4&&'attribute'==_0x4cb00c['type']&&_0x4cb00c['data']&&_0x4cb00c['data']['key']==_0x177e14&&_0x4cb00c['getFirstRange']()['isIntersecting'](_0x457773['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x4cb00c,_0x457773['data']['newRange'],_0x4f9108),_0x26f78f=!0x0);}return _0x26f78f;}['_recordAttributeChanges'](_0x2a5a74){this['_recordAttributeSuggestions']=!0x0,_0x2a5a74();}['_isRegisteredAttribute'](_0x280d56){const _0xbfce38=this['_isBlockAttribute'](_0x280d56),_0x279a66=this['_inlineAttributeKeys']['has'](_0x280d56);return _0xbfce38||_0x279a66;}['_reduceExistingSuggestions'](_0x3ab3c5,_0x3d3b01){if(0x0==_0x3d3b01['length'])return!0x1;let _0x3aaa64=!0x1;for(const _0x34f0a4 of _0x3d3b01){const _0x576108=this['_findSuggestions'](_0x34f0a4['range'],'attribute')['filter'](_0x189de0=>!_0x189de0['meta']['isNextTo'])['map'](_0x2f4fa1=>_0x2f4fa1['suggestion']),_0x3af47a=_0x8f40a1({'newValue':_0x34f0a4['newValue']});_0x576108['filter'](_0x4ba4bf=>{const [_0x12b386,_0x4daf0f]=_0x4ba4bf['subType']['split']('|');return _0x12b386==_0x34f0a4['key']&&_0x4daf0f!=_0x3af47a;})['forEach'](_0x4880c8=>{this['_reduceSuggestionAttributeRange'](_0x4880c8,_0x34f0a4['range'],_0x3ab3c5),_0x3aaa64=!0x0;});}return _0x3aaa64;}['_reduceSuggestionAttributeRange'](_0x5a706e,_0x28f8cf,_0x2362f0){const _0x110a46=_0x5a706e['getFirstRange']()['getDifference'](_0x28f8cf);0x0!==_0x110a46['length']?0x1!==_0x110a46['length']?this['_breakSuggestionMarker'](_0x5a706e,_0x28f8cf['start'],_0x28f8cf['end']):this['_setSuggestionRange'](_0x5a706e,_0x110a46[0x0]):_0x2362f0['removeMarker'](_0x5a706e['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x5aa6c1){this['_editor']=_0x5aa6c1,this['_model']=_0x5aa6c1['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x51926f,_0x2b4f34,_0x2fe58a,_0x215984,_0x17ea2f,_0x48e0f7){return new u(this['_model'],{'type':_0x51926f,'subType':_0x2b4f34,'id':_0x2fe58a,'author':_0x215984,'creator':_0x215984,'attributes':_0x17ea2f,'onAttributesChange':_0x48e0f7,'onAccept':(..._0x114c87)=>this['getSuggestionCallback'](_0x51926f,_0x2b4f34,'accept')(..._0x114c87),'onDiscard':(..._0x41bac5)=>this['getSuggestionCallback'](_0x51926f,_0x2b4f34,'discard')(..._0x41bac5)});}['registerCustomCallback'](_0x19143c,_0x322794,_0x2b6439,_0x5c3c3a){const _0x18ffa3=_0x19143c+':'+_0x322794+':'+_0x2b6439;this['_customCallbacks']['set'](_0x18ffa3,_0x5c3c3a);}['getSuggestionCallback'](_0x213e6f,_0x4dd70f,_0x2ab6cc){const _0x17b55e=_0x213e6f+':'+_0x4dd70f+':'+_0x2ab6cc;return this['_customCallbacks']['get'](_0x17b55e)||this['_defaultCallbacks']['get'](_0x213e6f+':'+_0x2ab6cc);}['_registerDefaultCallbacks'](){const _0x307507=()=>!0x1,_0x246007=_0xdd925a=>{_0xdd925a['sort']((_0x408daa,_0x36f418)=>_0x408daa['start']['isBefore'](_0x36f418['start'])?0x1:-0x1),this['_model']['change'](_0x519f7e=>{for(const _0x17af40 of _0xdd925a){let _0x55f89f;_0x55f89f=_0x17af40['end']['isAtEnd']&&_0x17af40['end']['parent']==_0x17af40['start']['nodeAfter']?_0x519f7e['createSelection'](_0x17af40['start']['nodeAfter'],'on'):_0x519f7e['createSelection'](_0x17af40),this['_model']['deleteContent'](_0x55f89f,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x43afa4=(_0xdda251,_0x514d8f)=>{_0x514d8f&&this['_model']['change'](_0x4d1f00=>{const {commandName:_0x1b92f5,commandParams:_0x3d3606=[]}=_0x514d8f,_0x2a7fe8=_0xdda251['map'](_0xe42977=>(Vt(_0xe42977)&&(_0xe42977=this['_model']['createRange'](_0xe42977['end'])),_0xe42977))['filter'](_0x4c9978=>'$graveyard'!==_0x4c9978['root']['rootName']);if(_0x2a7fe8['length']<0x1)return;const _0x4bf7c2=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x55a986=>_0x4b1aef['fromRange'](_0x55a986));_0x4d1f00['setSelection'](_0x2a7fe8);for(const _0x390d29 of this['_editor']['commands']['commands']())_0x390d29['refresh']();_0x3d3606['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x1b92f5,..._0x3d3606);const _0x1b464b=_0x4bf7c2['filter'](_0x5492ae=>'$graveyard'!=_0x5492ae['root']['rootName']);_0x1b464b['length']>0x0&&_0x4d1f00['setSelection'](_0x1b464b);for(const _0xd9646c of _0x4bf7c2)_0xd9646c['detach']();});},_0x32f273=(_0xbfd8b,_0x57bf1f)=>0x1==_0xbfd8b['length']&&0x1==_0x57bf1f['length']&&_0xbfd8b[0x0]['end']['isEqual'](_0x57bf1f[0x0]['start']),_0x39eee4=(_0x1fb427,_0x265258,_0xffb1c2,_0x3ef11b)=>Ht(_0x1fb427,_0x265258,_0xffb1c2,_0x3ef11b)?[_0x1fb427,_0x265258]:Ht(_0x265258,_0x1fb427,_0x3ef11b,_0xffb1c2)?[_0x265258,_0x1fb427]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x307507),this['_defaultCallbacks']['set']('insertion:discard',_0x246007),this['_defaultCallbacks']['set']('insertion:join',_0x32f273),this['_defaultCallbacks']['set']('insertion:chain',_0x39eee4),this['_defaultCallbacks']['set']('deletion:accept',_0x246007),this['_defaultCallbacks']['set']('deletion:discard',_0x307507),this['_defaultCallbacks']['set']('deletion:join',_0x32f273),this['_defaultCallbacks']['set']('deletion:chain',_0x39eee4),this['_defaultCallbacks']['set']('formatInline:accept',_0x43afa4),this['_defaultCallbacks']['set']('formatInline:discard',_0x307507),this['_defaultCallbacks']['set']('formatInline:join',_0x32f273),this['_defaultCallbacks']['set']('formatInline:chain',_0x307507),this['_defaultCallbacks']['set']('formatBlock:accept',_0x43afa4),this['_defaultCallbacks']['set']('formatBlock:discard',_0x307507),this['_defaultCallbacks']['set']('formatBlock:join',_0x32f273),this['_defaultCallbacks']['set']('formatBlock:chain',_0x307507),this['_defaultCallbacks']['set']('attribute:accept',_0x307507),this['_defaultCallbacks']['set']('attribute:discard',(_0x395187,_0x41d236)=>{if(!_0x41d236)return;const _0x5ba0b5=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x5150dc=>{if(_0x41d236['key']==m)for(const _0x12864c of _0x395187){const _0x403935=_0x12864c['start']['nodeAfter'],_0x4c929f=_0x41d236['oldValue'];_0x5150dc['rename'](_0x403935,_0x4c929f);}else{if(_0x5ba0b5['_isBlockAttribute'](_0x41d236['key'])){for(const _0x25181c of _0x395187)void 0x0!==_0x41d236['oldValue']?_0x5150dc['setAttribute'](_0x41d236['key'],_0x41d236['oldValue'],_0x25181c['start']['nodeAfter']):_0x5150dc['removeAttribute'](_0x41d236['key'],_0x25181c['start']['nodeAfter']);}else{for(const _0x4ef696 of _0x395187)_0x41d236['oldValue']?_0x5150dc['setAttribute'](_0x41d236['key'],_0x41d236['oldValue'],_0x4ef696):_0x5150dc['removeAttribute'](_0x41d236['key'],_0x4ef696);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x32f273);}}function Ut(_0x59e866,_0x2731da,_0x5a909d){for(const _0x2bc894 of _0x2731da['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2bc894['root']==_0x2bc894)return!0x1;if(!_0x5a909d['containsItem'](_0x2bc894))return!0x1;if(_0x59e866['isObject'](_0x2bc894)||_0x59e866['isLimit'](_0x2bc894))return!0x0;}return!0x1;}function Vt(_0x7ce479){return _0x7ce479['end']['parent']==_0x7ce479['start']['nodeAfter']&&_0x7ce479['end']['isAtStart'];}function Pt(_0x2d1ac9,_0x21e156,_0x57d02f,_0xd47416){const _0x2fb787=_0x22ee94=>!_0x22ee94['item']['is']('$textProxy')&&!_0xd47416['isObject'](_0x22ee94['item']),_0x4c716f=_0x2d1ac9['start']['getLastMatchingPosition'](_0x2fb787),_0x3da222=_0x2d1ac9['end']['getLastMatchingPosition'](_0x2fb787,{'direction':'backward'});return(!_0x2d1ac9['start']['isEqual'](_0x4c716f)||!_0x2d1ac9['end']['isEqual'](_0x3da222))&&(_0x4c716f['isBefore'](_0x3da222)?_0x57d02f['updateMarker'](_0x21e156,{'range':_0x57d02f['createRange'](_0x4c716f,_0x3da222)}):_0x57d02f['removeMarker'](_0x21e156),!0x0);}function Gt(_0x4af036){return _0x8f40a1(_0x4af036);}function Ft(_0x40dbdc){const _0x489790=_0x40dbdc['start']['nodeAfter'];return _0x489790&&_0x489790['is']('element');}function Lt(_0xb05cfe,_0xee4d8b){return null==_0xb05cfe['end']['nodeBefore']&&_0xb05cfe['end']['parent']==_0xb05cfe['start']['nodeAfter']?Jt(_0xb05cfe['start']['nodeAfter'],_0xee4d8b):_0xb05cfe;}function Jt(_0x1b6099,_0x1ba32a){const _0x29c15e=_0x1ba32a['schema']['isObject'](_0x1b6099)||_0x1ba32a['schema']['isSelectable'](_0x1b6099);return _0x1ba32a['createRange'](_0x1ba32a['createPositionAt'](_0x1b6099,'before'),_0x29c15e?_0x1ba32a['createPositionAfter'](_0x1b6099):_0x1ba32a['createPositionAt'](_0x1b6099,'end'));}function Ht(_0x41cfc9,_0x40d927,_0x9485b5,_0x469084){return!!qt(_0x41cfc9,_0x40d927)&&_0x9485b5['end']['isEqual'](_0x469084['start']);}function qt(_0x4f631d,_0x8a57f5){if(!_0x4f631d['_isDataLoaded']||!_0x8a57f5['_isDataLoaded'])return!0x1;const _0x2f1717=new Set(Object['keys'](_0x4f631d['attributes'])),_0x20c59a=new Set(Object['keys'](_0x8a57f5['attributes']));if(_0x2f1717['delete']('groupId'),_0x20c59a['delete']('groupId'),0x0==_0x2f1717['size']&&0x0==_0x20c59a['size'])return!0x0;if(_0x2f1717['size']!=_0x20c59a['size'])return!0x1;const _0x21014f={..._0x4f631d['attributes']},_0x436604={..._0x8a57f5['attributes']};return delete _0x21014f['groupId'],delete _0x436604['groupId'],JSON['stringify'](_0x21014f)==JSON['stringify'](_0x436604);}function zt(_0x5cc9fe,_0x44cfc0){const _0x5682b8=Kt(_0x5cc9fe['attributes']),_0x36a62b=Kt(_0x44cfc0);if(!_0x5cc9fe['_isDataLoaded'])return!0x1;for(const _0x167e4c of Object['keys'](_0x36a62b))if(!_0xf684d1(_0x5682b8[_0x167e4c],_0x36a62b[_0x167e4c]))return!0x1;return!0x0;}function Kt(_0xe8ffb8){const _0x31c63d=Object['assign']({},_0xe8ffb8);return delete _0x31c63d['skipNestingCheck'],delete _0x31c63d['tablePasteChainId'],_0x31c63d;}class ge extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x202400(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x472c07,_0x3975f9,_0x4fe14f,_0x4ce18a){super(),this['model']=_0x3975f9,this['view']=_0x4fe14f,this['commentThreadController']=_0x4ce18a,this['_editor']=_0x472c07,this['_acceptCommand']=_0x472c07['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x472c07['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x21b5f6,_0x5b936b)=>_0x21b5f6||_0x5b936b),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x3508d4=>_0x3508d4&&this['_editor']['model']['canEditAt'](_0x3975f9['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x2812cc=>_0x2812cc&&this['_editor']['model']['canEditAt'](_0x3975f9['getRanges']())),this['_pendingAction']=null,_0x4fe14f['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x4fe14f,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x4fe14f,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x4fe14f,'change:isDirty',()=>{_0x4fe14f['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 _0x653b71=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x653b71);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class as extends _0xa25bf7{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x436fc1,_0x4d5989,_0x2f705a,_0x1b2522){super(_0x436fc1),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x277183(_0x436fc1,o(_0x436fc1,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x4d5989['authoredAt']),this['bind']('authoredAt')['to'](_0x4d5989),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',_0x4d5989,'authoredAt',this,'descriptionParts',(_0x461541,_0x2eef9e,_0x207ede)=>{const _0x54aee7=_0x207ede['map'](_0x788c2f=>ns(_0x788c2f['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x461541-0x1,_0x4d5989['author']['name'],_0x2eef9e?_0x1b2522['formatDateTime'](_0x2eef9e):'',new DOMParser()['parseFromString'](_0x54aee7,'text/html')['body']['textContent']]);}),this['focusables']=new _0x4ca41b(),this['focusTracker']=new _0x4a23c5(),this['keystrokes']=new _0x3e3b67(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x5e1692=>_0x5e1692['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x4d5989,this['_localUser']=_0x2f705a,this['_config']=_0x1b2522,_0x1b2522['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x135e20(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x33a8db}=this['_config'];this['commentsListView']=new _0x33a8db(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',_0x419c31=>_0x419c31+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x11732a,_0x2c226e)=>_0x11732a||!!_0x2c226e);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x36f966}=this['_config'],_0x192be3=new _0x36f966(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x14c8f5=_0x192be3['commentInputView'];return _0x192be3['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x14c8f5,'value',(_0x1b8dc2,_0x1b41cb,_0x1470de)=>!!_0x1470de||_0x1b8dc2&&!_0x1b41cb),_0x14c8f5['on']('submit',(_0x10e338,_0x45227e)=>{this['fire']('addComment',_0x45227e),_0x14c8f5['editor']['setData']('');}),_0x14c8f5['on']('cancel',()=>this['focus']()),_0x14c8f5['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x192be3;}}class de extends as{['suggestionView'];['_descriptionElement'];constructor(_0x4002b4,_0x20fe6e,_0x1725c2,_0x964503){super(_0x4002b4,_0x20fe6e,_0x1725c2,_0x964503),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0xfd9153=>_0xfd9153&&_0xfd9153[0x0]?_0xfd9153[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x53bd42,_0x3ade88)=>{let _0x1990c7='';for(const _0x576095 of _0x53bd42)_0x1990c7+='<p>'+ns(_0x576095['content'],_0x576095['color'])+'</p>';return _0x3ade88?_0x1990c7:ti(_0x1990c7,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x964503['SuggestionView'](_0x4002b4,_0x20fe6e,{'formatDateTime':_0x964503['formatDateTime']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x2e73e8=this['bindTemplate'],_0x1b6fb1=[this['suggestionView']];return this['commentsListView']&&_0x1b6fb1['push'](this['commentsListView']),this['commentThreadInputView']&&_0x1b6fb1['push'](this['commentThreadInputView']),_0x1b6fb1['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x2e73e8['if']('isActive','ck-suggestion-wrapper--active'),_0x2e73e8['to']('type',_0x41b4bc=>'ck-suggestion-'+_0x41b4bc),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':_0x2e73e8['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x1b6fb1};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class ue extends _0xa25bf7{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x5d734a,_0x994681,_0x2d7642){super(_0x5d734a),this['_model']=_0x994681,this['_config']=_0x2d7642,this['set']('description',''),this['bind']('authoredAt')['to'](_0x994681),this['acceptButton']=this['_createButton'](o(_0x5d734a,'Accept\x20suggestion'),_0x17dfe6['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x5d734a,'Discard\x20suggestion'),_0x17dfe6['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x285333(_0x5d734a,_0x994681['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x4ca41b([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x4a23c5(),this['keystrokes']=new _0x3e3b67(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x11c5be=>_0x11c5be['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x2118c3=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x2118c3['innerHTML']=this['description'],this['on']('change:description',(_0x202a96,_0xc97a87,_0x3f24bf)=>{_0x2118c3['innerHTML']=_0x3f24bf;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x22e94b=this['bindTemplate'],_0xa8eb0d=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name']}},{'tag':'time','attributes':{'datetime':_0x22e94b['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x22e94b['to']('authoredAt',_0x38e929=>this['_config']['formatDateTime'](_0x38e929))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];return this['_model']['isExternal']&&_0xa8eb0d['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0xa8eb0d}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x799ec1,_0x3f4eab,_0x35e77b,_0x137625,_0x136872){const _0x3b381d=new _0x644c1d(this['locale']);return _0x3b381d['set']({'label':_0x799ec1,'icon':_0x3f4eab,'tooltip':!0x0,'tooltipPosition':_0x136872}),_0x3b381d['extendTemplate']({'attributes':{'class':_0x35e77b}}),_0x3b381d['on']('execute',()=>{this['fire'](_0x137625,this['_model']['id']);}),_0x3b381d;}['_setupKeyboardNavigation'](){const _0x390c5d=this['element'];this['keystrokes']['listenTo'](_0x390c5d);for(const _0x4bc56e of this['focusables'])this['focusTracker']['add'](_0x4bc56e['element']),this['keystrokes']['listenTo'](_0x4bc56e['element']);this['keystrokes']['set']('enter',(_0x1be2a9,_0x3bfb7e)=>{_0x390c5d===_0x1be2a9['target']&&(this['focusCycler']['focusFirst'](),_0x3bfb7e());}),this['keystrokes']['set']('esc',(_0x1c2609,_0x4a8410)=>{_0x390c5d!==_0x1c2609['target']&&(this['focus'](),_0x4a8410());});}}var Ce='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x1a8d41{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x13f3e8,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1ff67a){super(_0x1ff67a),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x1eac85=this['editor']['config'];_0x1eac85['define']('trackChanges.SuggestionThreadView',de),_0x1eac85['define']('trackChanges.SuggestionView',ue),_0x1eac85['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x1eac85['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x490d16,_0xc0fe72){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x40ef70,_0x522f99]of this['_handleControllerBuffer']){const _0x523edf=this['_suggestionToController']['has'](_0x40ef70);_0x523edf||_0x522f99?_0x523edf&&_0x522f99&&this['_destroyController'](_0x40ef70):this['_initializeController'](_0x40ef70);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x490d16,_0xc0fe72);}['init'](){const _0x420071=this['editor'],_0x51c4d6=_0x420071['plugins']['get']('TrackChangesEditing'),_0x4a1cc0=_0x420071['plugins']['get']('Annotations'),_0x39d860=_0x420071['plugins']['get']('EditorAnnotations'),_0x3b4490=_0x420071['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x39d860['addSourceCollector'](()=>{const _0x48dc24=[];for(const [_0x2fc8b7,_0x492dbf]of Array['from'](this['_suggestionToController'])){const _0x33d024=_0x2fc8b7['getAllAdjacentSuggestions'](),_0x1e3b15=[];for(const _0x5084ec of _0x33d024){if(!_0x5084ec['isInContent'])continue;if(_0x5084ec['isMultiRange']){_0x1e3b15['push'](..._0x5084ec['getRanges']());continue;}const _0x5bf926=_0x5084ec['getFirstRange']();if(_0x1e3b15['length']>0x0){const _0x9ff28a=_0x1e3b15[0x0]['getJoined'](_0x5bf926);if(_0x9ff28a){_0x1e3b15[0x0]=_0x9ff28a;continue;}}_0x1e3b15['push'](_0x5bf926);}_0x48dc24['push']([_0x492dbf['view'],_0x1e3b15]);}return _0x48dc24;}),this['listenTo'](_0x51c4d6,'suggestionLoaded',(_0x34ddfc,_0x10d11a)=>{this['listenTo'](_0x10d11a,'change:previous',(_0x281d0e,_0x588997,_0x353674,_0x4b5747)=>{_0x10d11a['isInContent']&&(null==_0x353674?(this['_updateController'](_0x4b5747['head']),this['_handleSuggestionControllerDelayed'](_0x10d11a,!0x1)):(this['_updateController'](_0x353674['head']),null==_0x4b5747&&this['_handleSuggestionControllerDelayed'](_0x10d11a,!0x0)));}),null!==_0x10d11a['previous']?this['_updateController'](_0x10d11a['head']):this['_handleSuggestionControllerDelayed'](_0x10d11a,!0x1);}),this['listenTo'](_0x51c4d6,'suggestionUnloaded',(_0x3c3b63,_0x100ba3,_0x3d97e1)=>{this['stopListening'](_0x100ba3,'change:previous'),this['_handleControllerBuffer']['delete'](_0x100ba3),this['_suggestionToController']['has'](_0x100ba3)&&this['_destroyController'](_0x100ba3),_0x3d97e1&&this['_updateController'](_0x3d97e1['head']);}),this['listenTo'](_0x51c4d6,'suggestionChanged',(_0x4b6f52,_0x464665)=>{this['_updateController'](_0x464665);}),this['listenTo'](_0x4a1cc0,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x3b4490,'addComment',(_0x331eb4,{threadId:_0x41527e,isFromAdapter:_0x2b3947})=>{if(_0x2b3947||!_0x51c4d6['hasSuggestion'](_0x41527e))return;const _0x505a40=_0x51c4d6['getSuggestion'](_0x41527e);this['_suggestionToController']['get'](_0x505a40)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3c4e3d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4a463a;for(const _0xb6b6a1 in _0x3c4e3d){const _0x5ca4aa=_0xb6b6a1,_0x313fda=_0x3c4e3d[_0x5ca4aa];if('trackChangesLicenseKeyValid'==_0x313fda||'trackChangesLicenseKeyInvalid'==_0x313fda||'trackChangesLicenseKeyExpired'==_0x313fda||'trackChangesLicenseKeyDomainLimit'==_0x313fda||'trackChangesLicenseKeyNotAllowed'==_0x313fda||'trackChangesLicenseKeyEvaluationLimit'==_0x313fda||'trackChangesLicenseKeyTrialLimit'==_0x313fda||'trackChangesLicenseKeyDevelopmentLimit'==_0x313fda||'trackChangesLicenseKeyUsageLimit'==_0x313fda){delete _0x3c4e3d[_0x5ca4aa],_0x4a463a=_0x313fda,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x4a463a&&_0x3c4e3d['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x4a463a&&_0x3c4e3d['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x4a463a&&_0x3c4e3d['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x4a463a&&_0x3c4e3d['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x4a463a&&_0x3c4e3d['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x4a463a&&_0x3c4e3d['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyDevelopmentLimit'==_0x4a463a&&_0x3c4e3d['_showLicenseError']('developmentLimit'),'trackChangesLicenseKeyUsageLimit'==_0x4a463a&&_0x3c4e3d['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x39133f=this['editor']['plugins']['get']('Annotations'),_0x5c7f7d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x34dad1=Array['from'](_0x39133f['activeAnnotations'],_0x179b0d=>_0x179b0d['innerView'])['filter'](_0x10d270=>this['_viewToController']['has'](_0x10d270)),_0x174f4b=[];for(const _0x3e3869 of _0x34dad1){const _0x4b7a4b=this['_viewToController']['get'](_0x3e3869)['model']['getAllAdjacentSuggestions']();_0x174f4b['push'](..._0x4b7a4b['reduce']((_0x5bb99b,_0x4909d5)=>[..._0x5bb99b,..._0x4909d5['getMarkerNames']()],[]));}_0x5c7f7d['activeMarkers']=_0x174f4b;}['_addUIComponentsToFactory'](){const _0x1ba869=this['editor'],_0x24c48a=_0x1ba869['locale'],_0x1c3667=o(_0x24c48a,'Track\x20changes'),_0x116e16=new _0x17dd7e([{'type':'switchbutton','model':new _0x21f38b({'withText':!0x0,'isToggleable':!0x0,'label':_0x1c3667,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x21f38b({'withText':!0x0,'label':o(_0x24c48a,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x21f38b({'withText':!0x0,'label':o(_0x24c48a,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x21f38b({'withText':!0x0,'label':o(_0x24c48a,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x21f38b({'withText':!0x0,'label':o(_0x24c48a,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x87701e of _0x116e16)if(pe(_0x87701e)){const _0xbf4215=_0x1ba869['commands']['get'](_0x87701e['model']['commandName']);_0x87701e['model']['bind']('isOn','isEnabled')['to'](_0xbf4215,'value','isEnabled');}_0x1ba869['ui']['componentFactory']['add']('trackChanges',_0x188b39=>this['_createToolbarButton'](_0x188b39,_0x116e16,_0x1c3667)),_0x1ba869['ui']['componentFactory']['add']('menuBar:trackChanges',_0xdee052=>this['_createMenuBarMenu'](_0xdee052,_0x116e16,_0x1c3667));}['_createToolbarButton'](_0x41edca,_0x5c2b7d,_0x476f49){const _0x3bc138=_0x3def1e(_0x41edca,_0x4c437f),_0x568608=this['editor']['commands']['get']('trackChanges');_0x3bc138['buttonView']['set']({'tooltip':_0x476f49,'label':_0x476f49,'icon':Ce}),_0x3bc138['buttonView']['bind']('isOn')['to'](_0x568608,'value'),_0x3bc138['buttonView']['on']('execute',()=>{_0x568608['execute'](),this['editor']['editing']['view']['focus']();}),te(_0x3bc138,_0x5c2b7d,{'role':'menu'});const _0x5b83f8=[];for(const _0x378d28 of _0x5c2b7d)pe(_0x378d28)&&_0x5b83f8['push'](this['editor']['commands']['get'](_0x378d28['model']['commandName']));const _0x1adc5b=_0x3bc138['buttonView'];return _0x1adc5b['actionView']['unbind']('isEnabled'),_0x1adc5b['arrowView']['unbind']('isEnabled'),_0x1adc5b['actionView']['bind']('isEnabled')['to'](_0x568608,'isEnabled'),_0x1adc5b['arrowView']['bind']('isEnabled')['toMany'](_0x5b83f8,'isEnabled',(..._0x57bc37)=>_0x57bc37['some'](_0x285073=>_0x285073)),_0x3bc138['on']('execute',_0xbf82ec=>{this['editor']['execute'](_0xbf82ec['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x3bc138;}['_createMenuBarMenu'](_0x1cce64,_0x1aa107,_0x4ddb35){const _0x20e1ba=new _0x5322a7(_0x1cce64),_0xd7d76f=this['editor']['commands']['get']('trackChanges');_0x20e1ba['buttonView']['set']({'label':_0x4ddb35,'icon':Ce});const _0x3280a0=new _0x35bbff(_0x1cce64);for(const _0x49db3f of _0x1aa107){if('separator'==_0x49db3f['type']){_0x3280a0['items']['add'](new _0x4e1e14(_0x1cce64));continue;}const _0x1dd7ff=new _0x5e26ef(_0x1cce64,_0x20e1ba),_0x5c0376=new _0x3f9e9d(_0x1cce64),_0x5082b9=_0x49db3f['model'];_0x5c0376['bind'](...Object['keys'](_0x5082b9))['to'](_0x5082b9),_0x5c0376['delegate']('execute')['to'](_0x20e1ba),_0x5c0376['on']('execute',()=>{this['editor']['execute'](_0x5082b9['commandName']),this['editor']['editing']['view']['focus']();}),_0x1dd7ff['children']['add'](_0x5c0376),_0x3280a0['items']['add'](_0x1dd7ff);}return _0x20e1ba['bind']('isEnabled')['to'](_0xd7d76f,'isEnabled'),_0x20e1ba['panelView']['children']['add'](_0x3280a0),_0x20e1ba;}['_initializeController'](_0x2955cd){const _0x15453e=this['editor'],_0x2e8a65=_0x15453e['config'],_0x3179ec=_0x15453e['plugins']['get']('Annotations'),_0xc90b33=_0x15453e['plugins']['get']('CommentsRepository'),_0x54cc49=_0x15453e['plugins']['get']('EditorAnnotations'),_0x58fcca=_0x15453e['plugins']['get'](_0x13f3e8)['me'],_0xb9e1b4=_0x2e8a65['get']('trackChanges')['SuggestionThreadView'],_0x82ccdd=_0x2e8a65['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x2623b0,CommentThreadInputView:_0x1760c5}=_0x15453e['plugins']['get']('CommentsUI');let _0xc70a5,_0x15bcaf,_0x40e5d5;this['_annotationViews']['has'](_0x2955cd['id'])?(_0x15bcaf=this['_annotationViews']['get'](_0x2955cd['id']),_0xc70a5=_0x15bcaf['mainView']):(_0xc70a5=new _0xb9e1b4(_0x15453e['locale'],_0x2955cd,_0x58fcca,{'disableComments':this['_disableComments'],'editorConfig':{..._0x2e8a65['get']('comments.editorConfig'),'licenseKey':_0x2e8a65['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x2e8a65['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x2e8a65['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x2e8a65['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x1b6053(_0x2e8a65['get']('locale')),'CommentView':_0x2e8a65['get']('comments')['CommentView'],'CommentsListView':_0x2623b0,'CommentThreadInputView':_0x1760c5,'SuggestionView':_0x82ccdd}),_0xc70a5['suggestionView']['acceptButton']['on']('execute',()=>{_0x15453e['editing']['view']['focus']();}),_0xc70a5['suggestionView']['discardButton']['on']('execute',()=>{_0x15453e['editing']['view']['focus']();}),_0x15bcaf=_0x3179ec['createAnnotationView'](this['editor']['locale'],_0xc70a5),_0x15bcaf['bind']('isDirty')['to'](_0xc70a5,'isDirty'),_0x15bcaf['bind']('length')['to'](_0xc70a5),_0x15bcaf['bind']('type')['to'](_0xc70a5,'type',_0x5b4f33=>'suggestion-'+_0x5b4f33),_0xc70a5['on']('escape',()=>{_0x40e5d5['fire']('escape');}),this['_annotationViews']['set'](_0x2955cd['id'],_0x15bcaf));const _0x80a3b5=_0xc90b33['createCommentThreadController'](_0x2955cd['commentThread'],_0xc70a5),_0x461a9c=new ge(_0x15453e,_0x2955cd,_0xc70a5,_0x80a3b5),_0x477894=_0x2955cd['getAllAdjacentSuggestions']()['filter'](_0x484f06=>_0x484f06['isInContent']);_0xc70a5['descriptionParts']=_0x15453e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x477894),this['_suggestionToController']['set'](_0x2955cd,_0x461a9c),this['_viewToController']['set'](_0xc70a5,_0x461a9c),_0x40e5d5=_0x3179ec['createAnnotation']({'view':_0x15bcaf,'target':()=>{const _0x309aec=[],_0x216132=_0x2955cd['getAllAdjacentSuggestions']()['filter'](_0x12d5d9=>_0x12d5d9['isInContent']);for(const _0x5eeebb of _0x216132)_0x309aec['push'](..._0x5eeebb['getMarkers']());return _0x403b26(_0x15453e['editing'],_0x309aec);},'type':()=>'suggestion-'+_0x461a9c['view']['type']}),_0xc90b33['_bindAnnotationToEditors'](_0xc70a5,_0x40e5d5),_0x3179ec['add'](_0x40e5d5),_0x54cc49['registerAnnotation'](_0x40e5d5);}['_destroyController'](_0x303424){const _0x59c21a=this['editor']['plugins']['get']('CommentsRepository'),_0x3e3959=this['editor']['plugins']['get']('Annotations'),_0x4d08c4=this['_suggestionToController']['get'](_0x303424),_0x567fd8=_0x4d08c4['view'],_0x4ac845=_0x3e3959['getByInnerView'](_0x567fd8);_0x59c21a['_unbindEditors'](_0x567fd8),_0x4ac845&&_0x3e3959['remove'](_0x4ac845),this['_suggestionToController']['delete'](_0x303424),this['_viewToController']['delete'](_0x567fd8),_0x4d08c4['destroy']();}['_updateController'](_0x2693e4){if(!_0x2693e4['isInContent']||!this['_suggestionToController']['has'](_0x2693e4))return;const _0x41204f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x170c44=this['_suggestionToController']['get'](_0x2693e4),_0x44a1f9=_0x2693e4['getAllAdjacentSuggestions']();_0x170c44['view']['descriptionParts']=_0x41204f['descriptionFactory']['getDescriptions'](_0x44a1f9);}['destroy'](){for(const _0x32a049 of this['_suggestionToController']['keys']())this['_destroyController'](_0x32a049);for(const _0x29ce9e of this['_annotationViews']['values']())_0x29ce9e['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function pe(_0xaae326){return'model'in _0xaae326;}class k extends _0x1a8d41{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x537a79){this['editor']['plugins']['get'](p)['adapter']=_0x537a79;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x2f7ae1){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x2f7ae1);}['getSuggestions']({skipNotAttached:_0x4c8a30=!0x1,toJSON:_0x5c507e=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x4c8a30,'toJSON':_0x5c507e});}['getSuggestion'](_0x131fa9){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x131fa9);}}const w=['Pagination'];class T extends _0x1a8d41{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x4ceae9=this['editor'];if(_0x4ceae9['config']['define']('trackChangesData.editorCreator',_0xfde0ff=>{const _0x10d0d3=_0x4ceae9['model']['document']['getRootNames']()['reduce']((_0x53dbd0,_0x3e2e50)=>(_0x53dbd0[_0x3e2e50]='',_0x53dbd0),{});return _0x4ceae9['constructor']['create'](_0x10d0d3,_0xfde0ff);}),'function'!=typeof _0x4ceae9['config']['get']('trackChangesData')['editorCreator'])throw new _0x3e1631('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x3bc442){return N(this['editor'],!0x0,_0x3bc442);}['getDataWithDiscardedSuggestions'](_0x586b1b){return N(this['editor'],!0x1,_0x586b1b);}}class D extends _0x1a8d41{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x50449d){function _0x3f003f(_0x34f43b){return _0x34f43b['map'](_0x575cf8=>String['fromCharCode'](_0x575cf8))['join']('');}super(_0x50449d),this['result']='end',_0x50449d[_0x3f003f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3f003f([0x76,0x69,0x65,0x77])][_0x3f003f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3f003f([0x61,0x75,0x74,0x6f]),_0x50449d[_0x3f003f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x3f003f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3f003f([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x3f003f([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x3f003f([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function v(_0x269b91){return void 0x0!==_0x269b91['getRootsAttributes'];}async function N(_0x3c4cac,_0x350db2,_0x42cc44){const _0x5272cc=_0x1644a5(_0x3c4cac,w);_0x5272cc['plugins']['push'](p,D),_0x5272cc['rootsAttributes']=v(_0x3c4cac)?_0x3c4cac['getRootsAttributes']():void 0x0;const _0x26331f=document['createDocumentFragment'](),_0x1b9945=_0x3c4cac['config']['get']('trackChangesData')['editorCreator'],_0x28fd64=await _0x1b9945(_0x5272cc,()=>function(_0x2d5689){const _0x2ab442=document['createElement']('div');return _0x2d5689['appendChild'](_0x2ab442),_0x2ab442;}(_0x26331f));!function(_0xe1ae3,_0x235d93){const _0x3fd34a=_0xe1ae3['model']['document']['getRootNames']()['reduce']((_0x2d73b1,_0x1d4d95)=>(_0x2d73b1[_0x1d4d95]=_0xe1ae3['data']['get']({'rootName':_0x1d4d95}),_0x2d73b1),{}),_0x3e6518=_0xe1ae3['plugins']['get']('Users')['users']['map'](_0x41f8de=>({'id':_0x41f8de['id'],'name':_0x41f8de['name']})),_0x2e7e0a=_0xe1ae3['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x24abca=_0xe1ae3['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x56b6f5=_0x235d93['plugins']['get']('Users'),_0x3cd26a=_0x235d93['plugins']['get']('TrackChangesEditing'),_0x1b8df=_0x235d93['plugins']['get']('CommentsRepository');for(const _0x7a9f41 of _0x1b8df['getCommentThreads']())_0x7a9f41['remove']();for(const _0x547717 of _0x3e6518)_0x56b6f5['getUser'](_0x547717['id'])||_0x56b6f5['addUser'](_0x547717);_0x56b6f5['me']||_0x56b6f5['useAnonymousUser']();for(const _0x59dd31 of _0x24abca)_0x1b8df['addCommentThread'](_0x59dd31);for(const _0x55ebd2 of _0x2e7e0a)_0x3cd26a['addSuggestionData'](_0x55ebd2);_0x235d93['data']['set'](_0x3fd34a);}(_0x3c4cac,_0x28fd64),_0x28fd64['execute'](_0x350db2?'acceptAllSuggestions':'discardAllSuggestions');const _0x2bc38f=v(_0x28fd64)?_0x28fd64['getFullData'](_0x42cc44):_0x28fd64['data']['get'](_0x42cc44);return await _0x28fd64['destroy'](),_0x2bc38f;}export{as as BaseSuggestionThreadView,u as Suggestion,de as SuggestionThreadView,ue as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing};
|