@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20250413.0 → 0.0.0-nightly-20250416.0
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/build/translations/fr.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/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/lang/translations/fr.po +1 -1
- package/package.json +27 -27
- 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/previewfinalcontentcommand.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/emoji.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/replacesourcecommand.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/tablelayout.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/uploadcare.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/trackchangespreview.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/ui/view/trackchangespreviewview.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
|
|
24
|
-
_0x578840(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0xfa76d3,_0x17323d){super(),this['id']=_0x17323d['id'],this['type']=_0x17323d['type'],this['subType']=_0x17323d['subType']||null,this['author']=_0x17323d['author'],this['creator']=_0x17323d['creator']||_0x17323d['author'],this['isExternal']=Boolean(_0x17323d['attributes']&&_0x17323d['attributes']['@external']),this['data']=null,this['_model']=_0xfa76d3,this['_onAccept']=_0x17323d['onAccept'],this['_onDiscard']=_0x17323d['onDiscard'],this['_onAttributesChange']=_0x17323d['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x17323d['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 _0x457a2d=this;for(;_0x457a2d['previous'];)_0x457a2d=_0x457a2d['previous'];return _0x457a2d;}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'](_0x58968f){this['_markerNames']['add'](_0x58968f);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x38ec8f=>this['_model']['markers']['get'](_0x38ec8f))['filter'](_0x21b2c0=>_0x21b2c0);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x356ac6=>{for(const _0x1c8036 of this['getMarkers']())_0x356ac6['removeMarker'](_0x1c8036);}),this['_markerNames']['clear']();}['removeMarker'](_0x13a16d){this['_model']['change'](_0x280480=>{_0x280480['removeMarker'](_0x13a16d);}),this['_markerNames']['delete'](_0x13a16d);}['addRange'](_0x3f0cbf){const _0x566840='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x566840),this['_model']['change'](_0x4e31dc=>{_0x4e31dc['addMarker'](_0x566840,{'range':_0x3f0cbf,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x14b5c4){for(const _0x3cb21a of this['getRanges']())if(_0x3cb21a['isIntersecting'](_0x14b5c4))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x2486e0=>_0x2486e0['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x4cbffa,_0x554ecf)=>[..._0x4cbffa,..._0x554ecf['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x40b495=this['getRanges']();if(0x1!=_0x40b495['length'])return null;const _0x2573d6=_0x40b495[0x0],_0x10ed0b=_0x2573d6['start']['nodeAfter'],_0x963258=_0x2573d6['end']['nodeBefore'];return _0x10ed0b instanceof _0x5f02d6?_0x10ed0b!=_0x963258?null:_0x10ed0b: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 _0x43579a=[];let _0xed62c0=this['head'];for(;_0xed62c0;)_0x43579a['push'](_0xed62c0),_0xed62c0=_0xed62c0['next'];return _0x43579a;}['setAttribute'](_0x5e3fa1,_0x5b2e75){const _0x208f42=_0x178faa(this['attributes']);_0x1b71e0(_0x208f42,_0x5e3fa1,_0x5b2e75),_0x1693da(_0x208f42,this['attributes'])||(this['attributes']=_0x208f42,this['_onAttributesChange'](_0x208f42));}['removeAttribute'](_0x5e7251){const _0x126b43=_0x178faa(this['attributes']);_0x24e4c3(_0x126b43,_0x5e7251),_0x1693da(_0x126b43,this['attributes'])||(this['attributes']=_0x126b43,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 _0x52a841()['substr'](0x1,0x5);}}function c(_0x3624ac,_0x2590c0,_0x12fd61){const _0x1cca77=_0x3624ac['t'],t=_0x3624ac['t'];switch(_0x2590c0){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'Preview\x20final\x20content':return t('Preview\x20final\x20content');case'Final\x20content\x20preview':return t('Final\x20content\x20preview');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x12fd61);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x12fd61);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x12fd61);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x12fd61);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x12fd61);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',_0x12fd61);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x12fd61);case'*Replace\x20image*':return t('*Replace\x20image*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x12fd61);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x12fd61);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x12fd61);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x12fd61);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x12fd61);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x12fd61);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x12fd61);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x12fd61);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x12fd61);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x12fd61);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x12fd61);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x12fd61);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x12fd61);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x12fd61);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x12fd61);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x12fd61);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x12fd61);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x12fd61);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'},_0x12fd61);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x12fd61);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x12fd61);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x12fd61);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x12fd61);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x12fd61);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x12fd61);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x12fd61);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'},_0x12fd61);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x12fd61);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x12fd61);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x12fd61);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x12fd61);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'},_0x12fd61);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x12fd61);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'},_0x12fd61);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'},_0x12fd61);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x12fd61);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'},_0x12fd61);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x12fd61);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'},_0x12fd61);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x12fd61);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x12fd61);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'},_0x12fd61);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x12fd61);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 _0x1cca77({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x12fd61);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x1cca77({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x12fd61);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x12fd61);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'},_0x12fd61);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'},_0x12fd61);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'},_0x12fd61);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x2590c0;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x10ad11,_0x54b518){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x10ad11,this['_locale']=_0x54b518;}['getDescriptions'](_0x10681d){const _0x535c25=[],_0x4ad440=new Set(),_0x211068=new Set();for(let _0x1adcd4=0x0;_0x1adcd4<_0x10681d['length'];_0x1adcd4++){const _0x4380de=_0x10681d[_0x1adcd4];if(!_0x4380de['isInContent'])continue;const _0x26f32c=this['_handleCustomCallbackDescription'](_0x4380de);if(_0x26f32c){if(null!=_0x4380de['subType']){if(_0x4ad440['has'](_0x4380de['subType']))continue;_0x4ad440['add'](_0x4380de['subType']);}_0x535c25['push'](_0x26f32c);}else{if('attribute'!=_0x4380de['type'])'insertion'!=_0x4380de['type']&&'deletion'!=_0x4380de['type']||this['_handleInsertRemoveSuggestionDescription'](_0x535c25,_0x4380de,_0x10681d[_0x1adcd4+0x1]);else{const _0xe320ef=_0x4380de['data']['key'];if(_0x211068['has'](_0xe320ef))continue;_0x211068['add'](_0x4380de['data']['key']),_0xe320ef==u?this['_handleRenameSuggestionDescription'](_0x535c25,_0x4380de):this['_handleAttributeSuggestionDescription'](_0x535c25,_0x4380de);}}}return this['_resolveDescriptionItems'](_0x535c25);}['registerDescriptionCallback'](_0x5326f8){this['_customCallbacks']['push'](_0x5326f8);}['registerElementLabel'](_0x576b75,_0xd7ebb,_0x8fa0bf=_0x3605c8['normal']){'function'==typeof _0x576b75?_0x16c448(this['_itemLabelsCallbacks'],{'matchingCallback':_0x576b75,'label':_0xd7ebb,'priority':_0x8fa0bf}):this['_itemLabels']['set'](_0x576b75,_0xd7ebb);}['registerAttributeLabel'](_0x1e68e3,_0x909d19){this['_attributeLabels']['set'](_0x1e68e3,_0x909d19);}['getItemLabel'](_0x33a274,_0xfa521b=0x1){let _0x11356b;for(const _0x1aaf0d of this['_itemLabelsCallbacks'])if(_0x1aaf0d['matchingCallback'](_0x33a274)){_0x11356b=_0x1aaf0d['label'];break;}return _0x11356b||(_0x11356b=this['_itemLabels']['get'](_0x33a274['name'])),_0x11356b?_0x11356b(_0xfa521b):0x1!==_0xfa521b?_0xfa521b+'\x20'+_0x33a274['name']+'s':''+_0x33a274['name'];}['_addDescriptionItems'](_0xc8ba0f,_0x34341e){const _0x5f5a54=_0x34341e['getFirstRange']()['getWalker'](),_0xdf3306='insertion'==_0x34341e['type']?'add':'remove';for(const _0x3066dd of _0x5f5a54){const _0x3133bb=_0x3066dd['item'],_0x27a6f2=_0xc8ba0f[_0xc8ba0f['length']-0x1];if(_0x3133bb['is']('$textProxy'))_0x27a6f2&&_0x27a6f2['type']['indexOf']('Container')>-0x1&&_0xc8ba0f['pop'](),_0x27a6f2&&'text'==_0x27a6f2['type']?_0x27a6f2[_0xdf3306]+=_0x3133bb['data']:_0xc8ba0f['push']({'type':'text','add':'add'==_0xdf3306?_0x3133bb['data']:'','remove':'remove'==_0xdf3306?_0x3133bb['data']:''});else{if(this['_schema']['isObject'](_0x3133bb)){const _0x36dba2=_0x3133bb;if(_0x27a6f2&&_0x27a6f2['type']['indexOf']('Container')>-0x1&&_0xc8ba0f['pop'](),'elementEnd'==_0x3066dd['type'])continue;_0x27a6f2&&_0x27a6f2['type']==_0xdf3306+'Object'&&_0x27a6f2['element']['name']==_0x36dba2['name']?_0x27a6f2['quantity']++:_0xc8ba0f['push']({'type':_0xdf3306+'Object','element':_0x36dba2,'quantity':0x1}),_0x5f5a54['skip'](_0x44f785=>!('elementEnd'==_0x44f785['type']&&_0x44f785['item']==_0x3133bb));}else{if(this['_schema']['checkChild'](_0x3133bb,'$text')||_0x3133bb['is']('element','softBreak')){const _0x1039e1=_0x3133bb;if('add'==_0xdf3306&&'elementStart'==_0x3066dd['type']||'remove'==_0xdf3306&&'elementEnd'==_0x3066dd['type'])continue;if(_0x27a6f2&&-0x1==_0x27a6f2['type']['indexOf']('Container')){'text'==_0x27a6f2['type']&&(_0x27a6f2[_0xdf3306]+='\x0a');continue;}let _0x39185b;if(_0x39185b='add'==_0xdf3306?_0x1039e1['nextSibling']&&!this['_schema']['isObject'](_0x1039e1['nextSibling'])?_0x1039e1['nextSibling']:null:_0x1039e1['previousSibling']&&!this['_schema']['isObject'](_0x1039e1['previousSibling'])?_0x1039e1['previousSibling']:null,_0x1039e1['isEmpty']||_0x39185b&&_0x39185b['isEmpty']){const _0x3acfdf=_0x39185b&&_0x39185b['isEmpty']?_0x39185b:_0x1039e1;_0x27a6f2&&_0x27a6f2['type']==_0xdf3306+'EmptyContainer'&&_0x27a6f2['element']['name']==_0x3acfdf['name']?_0x27a6f2['quantity']++:_0xc8ba0f['push']({'type':_0xdf3306+'EmptyContainer','element':_0x3acfdf,'quantity':0x1});}else _0xc8ba0f['push']({'type':_0xdf3306+'Container','element':_0x1039e1});}}}}}['_resolveDescriptionItems'](_0x4930a8){const _0x243d01=this['_locale'],_0x22fc7b=[],_0x28b521=[],_0x2cc3f3=[];for(const _0x2e412b of _0x4930a8)switch(_0x2e412b['type']){case'text':if(_0x2e412b['add']=_0x2e412b['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x2e412b['remove']=_0x2e412b['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x2e412b['add']&&''!=_0x2e412b['remove']){_0x22fc7b['push']({'type':'replace','content':c(_0x243d01,'REPLACE_TEXT',['\x22'+_0x2e412b['remove']+'\x22','\x22'+_0x2e412b['add']+'\x22'])});continue;}if(null!=_0x2e412b['add']['match'](/^ +$/)){_0x22fc7b['push']({'type':'insertion','content':c(_0x243d01,'*Insert:*\x20%0',c(_0x243d01,'ELEMENT_SPACE',_0x2e412b['add']['length']))});continue;}if(null!=_0x2e412b['remove']['match'](/^ +$/)){_0x22fc7b['push']({'type':'deletion','content':c(_0x243d01,'*Remove:*\x20%0',c(_0x243d01,'ELEMENT_SPACE',_0x2e412b['remove']['length']))});continue;}if(''!=_0x2e412b['add']){_0x22fc7b['push']({'type':'insertion','content':c(_0x243d01,'*Insert:*\x20%0','\x22'+_0x2e412b['add']+'\x22')});continue;}_0x22fc7b['push']({'type':'deletion','content':c(_0x243d01,'*Remove:*\x20%0','\x22'+_0x2e412b['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x22fc7b['push']({'type':'insertion','content':c(_0x243d01,'*Insert:*\x20%0',this['getItemLabel'](_0x2e412b['element'],_0x2e412b['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x22fc7b['push']({'type':'deletion','content':c(_0x243d01,'*Remove:*\x20%0',this['getItemLabel'](_0x2e412b['element'],_0x2e412b['quantity']))});continue;case'addContainer':_0x22fc7b['push']({'type':'insertion','content':c(_0x243d01,'*Split:*\x20%0',this['getItemLabel'](_0x2e412b['element'],_0x2e412b['quantity']))});continue;case'removeContainer':_0x22fc7b['push']({'type':'deletion','content':c(_0x243d01,'*Merge:*\x20%0',this['getItemLabel'](_0x2e412b['element'],_0x2e412b['quantity']))});continue;case'addFormat':_0x28b521['push'](_0x2e412b['key']);continue;case'removeFormat':_0x2cc3f3['push'](_0x2e412b['key']);continue;default:_0x22fc7b['push'](_0x2e412b);}if(_0x28b521['length']){const _0x267f06=_0x28b521['map'](_0x379012=>this['_attributeLabels']['has'](_0x379012)?this['_attributeLabels']['get'](_0x379012):_0x379012)['join'](',\x20');_0x22fc7b['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x267f06)});}if(_0x2cc3f3['length']){const _0x3eff1d=_0x2cc3f3['map'](_0x6b39f0=>this['_attributeLabels']['has'](_0x6b39f0)?this['_attributeLabels']['get'](_0x6b39f0):_0x6b39f0)['join'](',\x20');_0x22fc7b['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x3eff1d)});}return _0x22fc7b;}['_handleCustomCallbackDescription'](_0x2eb165){for(const _0x4c40c1 of this['_customCallbacks']){const _0x3e6fb6=_0x4c40c1(_0x2eb165);if(_0x3e6fb6&&'type'in _0x3e6fb6)return _0x3e6fb6;}}['_handleAttributeSuggestionDescription'](_0x262545,_0x944004){const _0x18c0e1=_0x944004['data'],_0x2d2c20=void 0x0===_0x18c0e1['newValue']?'removeFormat':'addFormat';_0x262545['push']({'type':_0x2d2c20,'key':_0x18c0e1['key']});}['_handleRenameSuggestionDescription'](_0x2deceb,_0x4f1680){_0x2deceb['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x4f1680['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x3b8efe,_0x39d8b9,_0x1c6e58){if(this['_addDescriptionItems'](_0x3b8efe,_0x39d8b9),_0x1c6e58&&_0x1c6e58['getFirstRange']()&&!_0x39d8b9['getFirstRange']()['end']['isEqual'](_0x1c6e58['getFirstRange']()['start'])){const _0x20b134=_0x3b8efe[_0x3b8efe['length']-0x1],_0x13800d='insertion'==_0x39d8b9['type']?'add':'remove';_0x20b134&&'text'==_0x20b134['type']&&(_0x20b134[_0x13800d]+='\x0a');}}}class U extends _0x47d2c1{['afterInit'](){const _0x5d76de=this['editor'],_0x472275=_0x5d76de['plugins']['get']('TrackChangesEditing');_0x5d76de['commands']['get']('showAIAssistant')&&_0x472275['enableCommand']('showAIAssistant');}}class V extends _0x47d2c1{['afterInit'](){const _0x1b02de=this['editor'],_0x1a3c56=_0x1b02de['locale'];if(!_0x1b02de['plugins']['has']('AlignmentEditing'))return;const _0x4f75a4=_0x1b02de['plugins']['get']('TrackChangesEditing');_0x4f75a4['enableDefaultAttributesIntegration']('alignment'),_0x4f75a4['registerBlockAttribute']('alignment'),_0x4f75a4['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x1a3c56,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x16437e=this['editor'],_0x9482b2=_0x16437e['locale'];_0x16437e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4efc45=>{if('formatBlock'!=_0x4efc45['type'])return;const {data:_0x22ed19}=_0x4efc45;if(_0x22ed19&&'alignment'==_0x22ed19['commandName']){const _0x13fbe1=_0x22ed19['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x9482b2,'*Format:*\x20%0',function(_0x2f1640){switch(_0x2f1640){case'left':return c(_0x9482b2,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x9482b2,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x9482b2,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x9482b2,'FORMAT_JUSTIFY_TEXT');}}(_0x13fbe1))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x47d2c1{['afterInit'](){const _0x433d57=this['editor'],_0x22c811=_0x433d57['plugins']['get']('TrackChangesEditing'),_0xeefe22=_0x433d57['locale'];for(const _0x4f981f of Zt){if(!_0x433d57['plugins']['has'](_0x4f981f))continue;const _0x24adff=_0x4f981f['slice'](0x0,-0x7)['toLowerCase'](),_0x4bbf3a='FORMAT_'+_0x24adff['toUpperCase']();_0x22c811['enableDefaultAttributesIntegration'](_0x24adff),_0x22c811['registerInlineAttribute'](_0x24adff),_0x22c811['descriptionFactory']['registerAttributeLabel'](_0x24adff,c(_0xeefe22,_0x4bbf3a));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xe77e89=this['editor'],_0x5cb6b6=_0xe77e89['locale'],_0x174393=_0xe77e89['plugins']['get']('TrackChangesEditing');function _0x469f4f(_0x55a961,_0x48456b){_0x174393['descriptionFactory']['registerDescriptionCallback'](_0x5e4004=>{if('formatInline'!=_0x5e4004['type'])return;const {data:_0x1b8896}=_0x5e4004;return _0x1b8896&&_0x1b8896['commandName']===_0x55a961?_0x1b8896['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x5cb6b6,'*Format:*\x20%0',_0x48456b)}:{'type':'format','content':c(_0x5cb6b6,'*Remove\x20format:*\x20%0',_0x48456b)}:void 0x0;});}_0x469f4f('bold',c(_0x5cb6b6,'FORMAT_BOLD')),_0x469f4f('italic',c(_0x5cb6b6,'FORMAT_ITALIC')),_0x469f4f('underline',c(_0x5cb6b6,'FORMAT_UNDERLINE')),_0x469f4f('code',c(_0x5cb6b6,'FORMAT_CODE')),_0x469f4f('strikethrough',c(_0x5cb6b6,'FORMAT_STRIKETHROUGH')),_0x469f4f('subscript',c(_0x5cb6b6,'FORMAT_SUBSCRIPT')),_0x469f4f('superscript',c(_0x5cb6b6,'FORMAT_SUPERSCRIPT'));}}class G extends _0x47d2c1{['afterInit'](){const _0x4155f6=this['editor'],_0x3aebcb=_0x4155f6['locale'];if(!_0x4155f6['plugins']['has']('BlockQuoteEditing'))return;const _0x13dc1e=_0x4155f6['plugins']['get']('TrackChangesEditing'),_0x1da2db=this['editor']['commands']['get']('blockQuote');_0x13dc1e['enableCommand']('blockQuote',(_0x53c596,_0x155679={})=>{const _0x32cefe=this['editor']['model']['document']['selection'],_0x16d3a6=_0x155679&&void 0x0!==_0x155679['forceValue']?_0x155679['forceValue']:!_0x1da2db['value'];let _0x12bd3d=[];if(_0x16d3a6){const _0x35cfbe=Array['from'](_0x32cefe['getSelectedBlocks']())['filter'](_0x5cd6fe=>oo(_0x5cd6fe)||function(_0xe3a188,_0x96099c){const _0x10978e=_0x96099c['checkChild'](_0xe3a188['parent'],'blockQuote'),_0x26dd8a=_0x96099c['checkChild'](['$root','blockQuote'],_0xe3a188);return _0x10978e&&_0x26dd8a;}(_0x5cd6fe,this['editor']['model']['schema']));_0x12bd3d=to(_0x35cfbe,_0x4155f6['model']);}else{const _0x520dcc=Array['from'](_0x32cefe['getSelectedBlocks']())['filter'](_0x231e46=>oo(_0x231e46));_0x12bd3d=to(_0x520dcc,_0x4155f6['model']);}_0x4155f6['model']['change'](()=>{for(const _0x5d1535 of _0x12bd3d)_0x13dc1e['markBlockFormat'](_0x5d1535,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x16d3a6}]});});}),_0x13dc1e['descriptionFactory']['registerDescriptionCallback'](_0x1f1050=>{const {data:_0x4f5872}=_0x1f1050;if(_0x4f5872&&'blockQuote'==_0x4f5872['commandName']){const _0x241bfb=c(_0x3aebcb,'ELEMENT_BLOCK_QUOTE');return _0x4f5872['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x3aebcb,'*Set\x20format:*\x20%0',_0x241bfb)}:{'type':'format','content':c(_0x3aebcb,'*Remove\x20format:*\x20%0',_0x241bfb)};}});}}function oo(_0x36f7cd){return'blockQuote'==_0x36f7cd['parent']['name'];}class L extends _0x47d2c1{['afterInit'](){const _0x6a13ca=this['editor'],_0x5bf9e4=_0x6a13ca['locale'],_0x5b05fc=_0x6a13ca['plugins']['get']('TrackChangesEditing');_0x6a13ca['plugins']['has']('BookmarkEditing')&&(_0x5b05fc['enableCommand']('insertBookmark'),_0x5b05fc['enableDefaultAttributesIntegration']('updateBookmark'),_0x5b05fc['registerBlockAttribute']('bookmarkId'),_0x5b05fc['descriptionFactory']['registerDescriptionCallback'](_0x2096de=>{if('insertion'!=_0x2096de['type']&&'deletion'!=_0x2096de['type']&&'attribute'!=_0x2096de['type'])return;const _0x1915e9=_0x2096de['getContainedElement']();if(null==_0x1915e9)return;if(!_0x1915e9['is']('element','bookmark'))return;const _0x1a4791=_0x1915e9['getAttribute']('bookmarkId');if('insertion'==_0x2096de['type'])return{'type':'insertion','content':c(_0x5bf9e4,'*Insert:*\x20%0','\x22'+_0x1a4791+'\x22\x20'+c(_0x5bf9e4,'ELEMENT_BOOKMARK'))};if('deletion'==_0x2096de['type'])return{'type':'deletion','content':c(_0x5bf9e4,'*Remove:*\x20%0','\x22'+_0x1a4791+'\x22\x20'+c(_0x5bf9e4,'ELEMENT_BOOKMARK'))};const {data:_0x36e121}=_0x2096de;if(!_0x36e121||'bookmarkId'!=_0x36e121['key'])return;return{'type':'format','content':c(_0x5bf9e4,'*Set\x20bookmark:*\x20%0','\x22'+_0x36e121['newValue']+'\x22')};}));}}class J extends _0x47d2c1{['afterInit'](){const _0x24a92b=this['editor'];_0x24a92b['plugins']['has']('CaseChange')&&(_0x24a92b['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x24a92b['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x24a92b['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x47d2c1{['afterInit'](){const _0x12027b=this['editor'];_0x12027b['commands']['get']('ckbox')&&_0x12027b['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x47d2c1{['afterInit'](){const _0x59bc22=this['editor'];if(!_0x59bc22['plugins']['has']('CodeBlock'))return;const _0xf7d0ad=_0x59bc22['plugins']['get']('TrackChangesEditing'),_0x4ce4ab=_0x59bc22['locale'],_0x28717e=_0x59bc22['config']['get']('codeBlock')['languages'],_0x255dd6=_0x59bc22['commands']['get']('codeBlock');_0xf7d0ad['enableCommand']('indentCodeBlock'),_0xf7d0ad['enableCommand']('outdentCodeBlock'),_0xf7d0ad['enableCommand']('codeBlock',(_0x4c04f2,_0x3c2d2a={})=>{const _0x26fc70=_0x59bc22['model'],_0x3a480c=_0x59bc22['model']['document']['selection'],_0x1c34ed=_0x3c2d2a&&void 0x0!==_0x3c2d2a['forceValue']?_0x3c2d2a['forceValue']:!_0x255dd6['value'];let _0x5ddda5;_0x3c2d2a['language']||(_0x3c2d2a['language']=_0x28717e[0x0]['language']),_0x5ddda5=_0x1c34ed?Array['from'](_0x3a480c['getSelectedBlocks']())['filter'](_0x45b150=>eo(_0x45b150)||function(_0x3b592a,_0x525394){if(_0x3b592a['is']('rootElement')||_0x525394['isLimit'](_0x3b592a))return!0x1;return _0x525394['checkChild'](_0x3b592a['parent'],'codeBlock');}(_0x45b150,_0x26fc70['schema'])):Array['from'](_0x3a480c['getSelectedBlocks']())['filter'](_0xd121ab=>eo(_0xd121ab));const _0x1a3282=to(_0x5ddda5,_0x26fc70);_0x26fc70['change'](()=>{for(const _0x4f280e of _0x1a3282)_0xf7d0ad['markBlockFormat'](_0x4f280e,{'commandName':'codeBlock','commandParams':[{..._0x3c2d2a,'forceValue':_0x1c34ed}],'formatGroupId':'blockName'});});}),(_0xf7d0ad['descriptionFactory']['registerElementLabel']('codeBlock',_0x3860f5=>c(_0x4ce4ab,'ELEMENT_CODE_BLOCK',_0x3860f5)),_0xf7d0ad['descriptionFactory']['registerDescriptionCallback'](_0x5a1ce2=>{if('formatBlock'!=_0x5a1ce2['type'])return;const _0x2bf6bf=_0x4ce4ab['t'],{data:_0x2f56c4}=_0x5a1ce2;if(!_0x2f56c4||'codeBlock'!=_0x2f56c4['commandName'])return;const _0x34b381=_0x2f56c4['commandParams'][0x0]['language'],_0x3f61bc=_0x2bf6bf(_0x28717e['find'](_0x2f2eb8=>_0x2f2eb8['language']===_0x34b381)['label'])['toLowerCase']();return _0x2f56c4['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x4ce4ab,'*Set\x20format:*\x20%0',c(_0x4ce4ab,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x3f61bc+')')}:{'type':'format','content':c(_0x4ce4ab,'*Remove\x20format:*\x20%0',c(_0x4ce4ab,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x1cd31e){return'codeBlock'==_0x1cd31e['name'];}class q extends _0x47d2c1{['afterInit'](){const _0x2f32b3=this['editor'];if(!_0x2f32b3['plugins']['has']('CommentsEditing'))return;_0x2f32b3['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x484c0f,_0x204a88,_0x5b13f4){const _0x17c09a=[];for(const _0xa0fa80 of _0x204a88['getItems']())_0xa0fa80['hasAttribute'](_0x484c0f)&&_0x17c09a['push'](_0x5b13f4['createRangeOn'](_0xa0fa80));return _0x17c09a;}function Fe(_0xc5764b,_0x3d24ea,{showActiveMarker:_0x1be65b=!0x0}={}){const _0x85705b=_0xc5764b['plugins']['get']('TrackChangesEditing');return(_0x2db8a7,_0x457d8a,_0x27784b)=>{if(!_0x27784b['consumable']['test'](_0x457d8a['markerRange'],_0x2db8a7['name']))return;const _0x49ae88=_0x457d8a['markerRange']['getWalker'](),_0x2997ce=_0x457d8a['markerRange']['start'],_0x255788=_0xc5764b['model']['schema'];let _0x3c3a10=null,_0x278a7a=null,_0x589e9b=!0x1,_0x1402a7=!0x1;for(const _0x470bd1 of _0x49ae88){const _0x1f2519=_0x470bd1['item'];_0x589e9b=_0x589e9b||_0x255788['isContent'](_0x1f2519);const _0x4fcdd2=_0x27784b['mapper']['toViewElement'](_0x1f2519);if(_0x4fcdd2&&_0x4fcdd2['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x470bd1['type']&&(_0x255788['isBlock'](_0x1f2519)&&!_0x255788['isLimit'](_0x1f2519)&&(_0x1f2519['nextSibling']||_0x2997ce['isAtEnd']?_0x3c3a10&&_0x3c3a10['parent']==_0x1f2519||(_0x3c3a10=_0x1f2519,_0x301211(_0x470bd1['previousPosition']),_0x1402a7=!0x0):_0x278a7a=_0x278a7a||_0x470bd1['previousPosition']));}function _0x301211(_0x2d1413){const {authorId:_0x545dbc}=_0x85705b['_splitMarkerName'](_0x457d8a['markerName']),_0x2b99a1=_0x27784b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3d24ea,'data-author-id':_0x545dbc}),_0x6ffa4a=_0x27784b['mapper']['toViewPosition'](_0x2d1413);_0x1be65b&&_0x85705b['activeMarkers']['includes'](_0x457d8a['markerName'])&&_0x27784b['writer']['addClass']('ck-suggestion-marker--active',_0x2b99a1),_0x27784b['writer']['insert'](_0x6ffa4a,_0x2b99a1),_0x27784b['mapper']['bindElementToMarker'](_0x2b99a1,_0x457d8a['markerName']);}_0x589e9b||_0x1402a7||!_0x278a7a||_0x301211(_0x278a7a);};}class z extends _0x47d2c1{static get['requires'](){return[_0x2aecd4];}['init'](){const _0x5b0c08=this['editor'],_0x2a4443=_0x5b0c08['plugins']['get']('TrackChangesEditing');_0x2a4443['enableCommand']('delete');const _0x122942=_0x5b0c08['commands']['get']('deleteForward');_0x2a4443['enableCommand']('deleteForward',(_0x14b191,_0x2c83d4={})=>{const _0x4be952=_0x5b0c08['model']['createSelection'](_0x5b0c08['model']['document']['selection']);_0x4be952['isCollapsed']&&_0x5b0c08['model']['modifySelection'](_0x4be952,{'direction':'forward','unit':_0x2c83d4['unit']});const _0x71dcad=_0x4be952['getFirstRange'](),_0x43ff21=_0x248df8['fromRange'](_0x71dcad);let _0x5ad813;_0x14b191(_0x2c83d4),_0x5ad813='$graveyard'==_0x43ff21['root']['rootName']?_0x5b0c08['model']['createRange'](_0x71dcad['start']):_0x5b0c08['model']['createRange'](_0x43ff21['start'],_0x43ff21['end']),_0x43ff21['detach'](),_0x5b0c08['model']['enqueueChange'](_0x122942['buffer']['batch'],_0x10a0fd=>{_0x122942['buffer']['lock'](),_0x10a0fd['setSelection'](_0x10a0fd['createRange'](_0x5ad813['end'])),_0x122942['buffer']['unlock']();});}),_0x5b0c08['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0x5b0c08,'merge'),{'priority':'high'}),_0x5b0c08['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x6b6bb4,_0x8bfd48,_0x298d3c)=>{_0x298d3c['options']['showSuggestionHighlights']&&Fe(_0x5b0c08,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x6b6bb4,_0x8bfd48,_0x298d3c);},{'priority':'high'}),_0x5b0c08['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x2910ea,_0x4ea152,_0x5af20d)=>{const _0x253fc0=_0x5af20d['mapper']['markerNameToElements'](_0x4ea152['markerName']);if(_0x253fc0){for(const _0x352a0a of _0x253fc0)_0x352a0a['is']('uiElement')&&(_0x5af20d['mapper']['unbindElementFromMarkerName'](_0x352a0a,_0x4ea152['markerName']),_0x5af20d['writer']['remove'](_0x352a0a));}},{'priority':'high'});}}class W extends _0x47d2c1{['afterInit'](){const _0x6c2f45=this['editor'];if(!_0x6c2f45['plugins']['has']('ListEditing'))return;const _0xd9cb84=_0x6c2f45['locale'],_0x29b1fe=_0x6c2f45['plugins']['get']('TrackChangesEditing'),_0x1ca29b=_0x6c2f45['plugins']['has']('TodoListEditing'),_0x50e6c8=!!_0x6c2f45['config']['get']('list.multiBlock');function _0x1ed940(_0x4eb6a0){return{'type':'format','content':''+c(_0xd9cb84,'*Set\x20format:*\x20%0',_0x4eb6a0)};}function _0x3799fc(_0x61bd9){return{'type':'format','content':''+c(_0xd9cb84,'*Remove\x20format:*\x20%0',_0x61bd9)};}_0x29b1fe['enableDefaultAttributesIntegration']('numberedList'),_0x29b1fe['enableDefaultAttributesIntegration']('bulletedList'),_0x29b1fe['enableDefaultAttributesIntegration']('customNumberedList'),_0x29b1fe['enableDefaultAttributesIntegration']('customBulletedList'),_0x29b1fe['enableDefaultAttributesIntegration']('indentList'),_0x29b1fe['enableDefaultAttributesIntegration']('outdentList'),_0x29b1fe['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x29b1fe['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x29b1fe['registerBlockAttribute']('listItemId'),_0x29b1fe['registerBlockAttribute']('listType'),_0x29b1fe['registerBlockAttribute']('listIndent'),_0x50e6c8&&(_0x29b1fe['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x29b1fe['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x1ca29b&&(_0x29b1fe['enableDefaultAttributesIntegration']('todoList'),_0x29b1fe['enableDefaultAttributesIntegration']('checkTodoList'),_0x29b1fe['registerBlockAttribute']('todoListChecked'),_0x29b1fe['descriptionFactory']['registerDescriptionCallback'](_0x491346=>{const {data:_0x42ddcb}=_0x491346;if(_0x42ddcb&&'todoListChecked'==_0x42ddcb['key'])return{'type':'format','content':_0x42ddcb['newValue']?c(_0xd9cb84,'*Check\x20item*'):c(_0xd9cb84,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x16d433=>{if(_0x16d433['batch']['isUndo'])return!0x1;let _0x483279=!0x1;const _0x4e6a9d=_0x29b1fe['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5db4ce=>'todoListChecked'===_0x29b1fe['_getAttributeKey'](_0x5db4ce));for(const _0x4b7ab6 of _0x4e6a9d){'todo'!=_0x4b7ab6['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x29b1fe['_findSuggestions'](_0x4b7ab6['getFirstRange'](),'attribute')['find'](_0x2cead7=>'listType'===_0x29b1fe['_getAttributeKey'](_0x2cead7['suggestion']))||(_0x16d433['removeMarker'](_0x4b7ab6['getFirstMarker']()),_0x483279=!0x0));}return _0x483279;})),_0x29b1fe['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0xd9cb84,'FORMAT_INDENT'));const _0x529e5a={'type':'format','content':''};_0x29b1fe['descriptionFactory']['registerDescriptionCallback'](_0x41d8c1=>{const {data:_0x521844}=_0x41d8c1;if(!_0x521844||'listType'!=_0x521844['key'])return;let _0x1e4292=_0x41d8c1['head'];for(;_0x1e4292;){if(_0x1e4292['data']&&(('listStyle'==_0x1e4292['data']['key']||'listMarkerStyle'==_0x1e4292['data']['key'])&&(_0x1e4292['data']['newValue']&&'default'!=_0x1e4292['data']['newValue']||'default'!=_0x1e4292['data']['oldValue']&&!_0x521844['newValue'])||!_0x50e6c8&&_0x1e4292['data']['key']==u))return _0x529e5a;_0x1e4292=_0x1e4292['next'];}if(null==_0x521844['newValue'])switch(_0x521844['oldValue']){case'bulleted':return _0x3799fc(c(_0xd9cb84,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3799fc(c(_0xd9cb84,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3799fc(c(_0xd9cb84,'ELEMENT_TODO_LIST'));}switch(_0x521844['newValue']){case'bulleted':return _0x1ed940(c(_0xd9cb84,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1ed940(c(_0xd9cb84,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1ed940(c(_0xd9cb84,'ELEMENT_TODO_LIST'));}}),_0x29b1fe['descriptionFactory']['registerDescriptionCallback'](_0x15940c=>{const {data:_0x4042c0}=_0x15940c;if(_0x4042c0&&'listIndent'==_0x4042c0['key'])return null==_0x4042c0['newValue']||null==_0x4042c0['oldValue']&&0x0==_0x4042c0['newValue']?_0x529e5a:void 0x0;}),_0x29b1fe['descriptionFactory']['registerDescriptionCallback'](_0x5ba879=>{if('attribute'!=_0x5ba879['type'])return;const {data:_0x54c589}=_0x5ba879;if(!_0x54c589||'listItemId'!=_0x54c589['key'])return;const _0x23c96d=Te(_0x5ba879);return'newValue'==_0x23c96d?{'type':'format','content':c(_0xd9cb84,'*Merge:*\x20list\x20item')}:'oldValue'==_0x23c96d?{'type':'format','content':c(_0xd9cb84,'*Split:*\x20list\x20item')}:_0x529e5a;}),_0x6c2f45['model']['document']['registerPostFixer'](_0x154c73=>this['listItemIdFixer'](_0x154c73)),_0x6c2f45['model']['document']['registerPostFixer'](_0x30450e=>this['noTrackChangesFixer'](_0x30450e)),_0x6c2f45['model']['document']['on']('change:data',(_0x5e06dd,_0x1f6205)=>{if(_0x1f6205['isUndo']||!_0x1f6205['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x21928a){if(_0x21928a['batch']['isUndo']||!_0x21928a['batch']['isLocal'])return!0x1;let _0x5e960f=!0x1;const _0x159859=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1fd584=>_0x1fd584['data']&&'listItemId'==_0x1fd584['data']['key'])['filter'](_0x3e2e3a=>_0x3e2e3a['data']['newValue']&&_0x3e2e3a['data']['oldValue']);for(const _0x95cb5c of _0x159859)Te(_0x95cb5c)||(_0x21928a['removeMarker'](_0x95cb5c['getFirstMarker']()),_0x5e960f=!0x0);return _0x5e960f;}['noTrackChangesFixer'](_0x268330){if(_0x268330['batch']['isUndo']||!_0x268330['batch']['isLocal'])return!0x1;const _0x2b85a1=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x2b85a1['trackChangesCommand']['value'])return!0x1;let _0x4afbc0=!0x1;const _0x46a0ff=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x199311=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x24f67e=>'attribute'==_0x24f67e['type'])['filter'](_0x3837aa=>_0x46a0ff['includes'](_0x3837aa['attributeKey']));if(0x0==_0x199311['length'])return _0x4afbc0;for(const _0x12c018 of _0x199311){const _0x3d6698=_0x2b85a1['_findSuggestions'](_0x12c018['range'],'attribute')['filter'](_0x113552=>!_0x113552['meta']['isNextTo'])['map'](_0xafe4a7=>_0xafe4a7['suggestion'])['filter'](_0x570370=>{const _0x19f677=_0x2b85a1['_getAttributeKey'](_0x570370);return _0x46a0ff['includes'](_0x19f677);});if(_0x3d6698['length']){for(const _0x9479ff of _0x3d6698)_0x268330['removeMarker'](_0x9479ff['getFirstMarker']());_0x4afbc0=!0x0;}}return _0x4afbc0;}['assureChains'](){const _0x30ef93=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4ae855=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x5e3277;const _0x1f5cbf=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x695082=>{if(_0x695082['data']['oldRange']||!_0x695082['data']['newRange'])return null;if(!_0x695082['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x253ddf}=_0x30ef93['_splitMarkerName'](_0x695082['name']);if(!_0x30ef93['hasSuggestion'](_0x253ddf))return null;const _0x33204a=_0x30ef93['getSuggestion'](_0x253ddf);return _0x4ae855['includes'](_0x33204a['data']['key']);})['map'](_0x373b63=>{const {id:_0x1920f8}=_0x30ef93['_splitMarkerName'](_0x373b63['name']),_0x3e79f0=_0x30ef93['getSuggestion'](_0x1920f8);return _0x5e3277=_0x3e79f0['attributes']['groupId'],_0x3e79f0['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x1f5cbf['size'])return;const _0xdcaa0a=_0x30ef93['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x418f36=>'attribute'==_0x418f36['type']&&_0x418f36['data']&&_0x4ae855['includes'](_0x418f36['data']['key'])&&_0x418f36['attributes']['groupId']!=_0x5e3277)['map'](_0x4fd7e7=>({'listItem':_0x4fd7e7['getFirstRange']()['start']['nodeAfter'],'groupId':_0x4fd7e7['attributes']['groupId']})),_0x54e986=new Set();for(const {groupId:_0x1e9c45,listItem:_0x3ff085}of _0xdcaa0a)_0x1f5cbf['has'](_0x3ff085)&&_0x54e986['add'](_0x1e9c45);for(const _0x49325e of _0x30ef93['getSuggestions']())_0x54e986['has'](_0x49325e['attributes']['groupId'])&&_0x49325e['setAttribute']('groupId',_0x5e3277);}['_supportLegacySuggestions'](){const _0x14abb1=this['editor'],_0x63a93c=_0x14abb1['locale'],_0x5b9762=_0x14abb1['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x5b9762['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x277613,_0x455ad5){const _0x1b036f=[];for(let _0x2d3f4b of _0x277613)_0x2d3f4b['start']['nodeAfter']===_0x2d3f4b['end']['parent']&&(_0x2d3f4b=_0x14abb1['model']['createRange'](_0x14abb1['model']['createPositionAt'](_0x2d3f4b['start']['nodeAfter'],0x0))),_0x1b036f['push'](_0x2d3f4b);_0x14abb1['model']['change'](_0x9a9422=>{const _0x30942=_0x14abb1['model']['document']['selection'],_0x458ede=Array['from'](_0x30942['getRanges']())['map'](_0x3bce14=>_0x248df8['fromRange'](_0x3bce14));_0x9a9422['setSelection'](_0x1b036f),_0x14abb1['commands']['get'](_0x455ad5['commandName'])['refresh'](),_0x455ad5['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x14abb1['execute'](_0x455ad5['commandName'],..._0x455ad5['commandParams']),_0x9a9422['setSelection'](_0x458ede);for(const _0x45f7ab of _0x458ede)_0x45f7ab['detach']();});}),_0x5b9762['descriptionFactory']['registerElementLabel'](function(_0x569ebc){const _0x3f3422=!_0x14abb1['model']['schema']['isObject'](_0x569ebc),_0x5bd688=_0x569ebc['previousSibling'],_0x2dfd35=_0x569ebc['nextSibling'],_0x6d4bbf=_0x569ebc['getAttribute']('listItemId'),_0x5746cb=!_0x5bd688||_0x5bd688['getAttribute']('listItemId')!==_0x6d4bbf,_0x58c133=!_0x2dfd35||_0x2dfd35['getAttribute']('listItemId')!==_0x6d4bbf;return _0x3f3422&&Boolean(_0x6d4bbf)&&_0x5746cb&&_0x58c133;},_0x4fef9a=>c(_0x63a93c,'ELEMENT_LIST_ITEM',_0x4fef9a));}['_registerLegacyDescription'](){const _0x2b99d7=this['editor'],_0x4cf3cd=_0x2b99d7['locale'];function _0x30d3fb(_0x3cc9ec){const _0x3cbcbf=_0x2b99d7['commands']['get']('bulletedList')['value'],_0xf7c89=_0x2b99d7['commands']['get']('numberedList')['value'];return'numberedList'===_0x3cc9ec?_0x3cbcbf:_0xf7c89;}_0x2b99d7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x257c66){if('formatBlock'!=_0x257c66['type'])return;const {data:_0x507380}=_0x257c66;if(!_0x507380)return;let _0x170746,_0x3d122b,_0x2905f1,_0x322bb6;switch(_0x507380['commandName']){case'bulletedList':_0x2905f1=_0x507380['commandParams'][0x0]['forceValue'],_0x322bb6=_0x30d3fb(_0x507380['commandName']),_0x170746=_0x2905f1?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x322bb6&&_0x2b99d7['config']['get']('list.multiBlock')||(_0x170746='*Change\x20to:*\x20%0'),_0x3d122b={'type':'format','content':c(_0x4cf3cd,_0x170746,c(_0x4cf3cd,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x2905f1=_0x507380['commandParams'][0x0]['forceValue'],_0x322bb6=_0x30d3fb(_0x507380['commandName']),_0x170746=_0x2905f1?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x322bb6&&_0x2b99d7['config']['get']('list.multiBlock')||(_0x170746='*Change\x20to:*\x20%0'),_0x3d122b={'type':'format','content':c(_0x4cf3cd,_0x170746,c(_0x4cf3cd,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x170746='*Indent:*\x20%0',_0x3d122b={'type':'format','content':c(_0x4cf3cd,_0x170746,c(_0x4cf3cd,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x170746=function(_0x23474){const _0x5a784a=_0x23474['getFirstRange']();let _0x5bebd5=_0x5a784a['start']['nodeAfter'];for(;_0x5bebd5&&_0x5a784a['containsItem'](_0x5bebd5);){if(_0x5bebd5['getAttribute']('listIndent')>0x0)return!0x1;_0x5bebd5=_0x5bebd5['nextSibling'];}return!0x0;}(_0x257c66)?c(_0x4cf3cd,'*Format:*\x20remove\x20from\x20%0',c(_0x4cf3cd,function(_0x10c82d){return'ELEMENT_'+_0x10c82d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x257c66))):c(_0x4cf3cd,'*Outdent:*\x20%0',c(_0x4cf3cd,'ELEMENT_LIST_ITEM')),_0x3d122b={'type':'format','content':_0x170746};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x507380['multipleBlocks']&&(_0x170746='*Merge:*\x20%0',_0x3d122b={'type':'deletion','content':c(_0x4cf3cd,_0x170746,c(_0x4cf3cd,'ELEMENT_LIST_ITEM'))});}return _0x3d122b;});}}function Te(_0x4a4cbb){let _0x41d62f=_0x4a4cbb['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x41d62f;){const _0x27f9c7=_0x41d62f['getAttribute']('listItemId');if(!_0x27f9c7)return!0x1;if(_0x27f9c7==_0x4a4cbb['data']['newValue'])return'newValue';if(_0x27f9c7==_0x4a4cbb['data']['oldValue'])return'oldValue';_0x41d62f=_0x41d62f['previousSibling'];}return!0x1;}class Se extends _0x47d2c1{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x42466d=this['editor']['config']['get']('list.properties'),_0x4379fb=this['editor']['plugins']['get']('TrackChangesEditing');_0x42466d['styles']&&(_0x4379fb['enableDefaultAttributesIntegration']('listStyle'),_0x4379fb['registerBlockAttribute']('listStyle')),_0x42466d['reversed']&&(_0x4379fb['enableDefaultAttributesIntegration']('listReversed'),_0x4379fb['registerBlockAttribute']('listReversed')),_0x42466d['startIndex']&&(_0x4379fb['enableDefaultAttributesIntegration']('listStart'),_0x4379fb['registerBlockAttribute']('listStart'));const _0x4b83d3={'type':'format','content':''};_0x4379fb['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0xc2b2a6=this['editor']['locale'];_0x4379fb['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0xc2b2a6,'FORMAT_LIST_REVERSED')),_0x4379fb['descriptionFactory']['registerDescriptionCallback'](_0x14245e=>{const {data:_0x321eec}=_0x14245e;if(_0x321eec&&'listReversed'==_0x321eec['key'])return null==_0x321eec['newValue']||0x0==_0x321eec['newValue']&&null==_0x321eec['oldValue']?_0x4b83d3:void 0x0;}),_0x4379fb['descriptionFactory']['registerAttributeLabel']('listStart',c(_0xc2b2a6,'FORMAT_LIST_START')),_0x4379fb['descriptionFactory']['registerDescriptionCallback'](_0x577943=>{const {data:_0x40b6b5}=_0x577943;if(_0x40b6b5&&'listStart'==_0x40b6b5['key'])return null==_0x40b6b5['newValue']||0x1==_0x40b6b5['newValue']&&null==_0x40b6b5['oldValue']?_0x4b83d3:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x19d38a=>{if(_0x19d38a['batch']['isUndo'])return!0x1;let _0x4e3990=!0x1;const _0x21fd61=_0x4379fb['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x10c66f=>{const _0x32a38b=_0x4379fb['_getAttributeKey'](_0x10c66f);return'listStart'==_0x32a38b||'listReversed'==_0x32a38b;});for(const _0x30b6e2 of _0x21fd61){const _0x2ba643=_0x30b6e2['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x2ba643||'customNumbered'==_0x2ba643)continue;_0x4379fb['_findSuggestions'](_0x30b6e2['getFirstRange'](),'attribute')['find'](_0x208604=>'listType'==_0x4379fb['_getAttributeKey'](_0x208604['suggestion']))||(_0x19d38a['removeMarker'](_0x30b6e2['getFirstMarker']()),_0x4e3990=!0x0);}return _0x4e3990;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x23b759){const _0x1c11e7=this['editor']['locale'],{data:_0x586f5c}=_0x23b759,_0x3e41b1={'type':'format','content':''};if(!_0x586f5c||'listStyle'!=_0x586f5c['key'])return;if(!_0x586f5c['oldValue'])return'default'==_0x586f5c['newValue']?_0x3e41b1:{'type':'format','content':''+c(_0x1c11e7,'*Set\x20format:*\x20%0',c(_0x1c11e7,this['_getTranslationKeyForListStyle'](_0x586f5c['newValue'])))};if(!_0x586f5c['newValue']){if('default'==_0x586f5c['oldValue'])return _0x3e41b1;let _0x4c4e1e=_0x23b759['head'];for(;_0x4c4e1e;){if(_0x4c4e1e['data']&&'listType'==_0x4c4e1e['data']['key']&&_0x4c4e1e['data']['newValue'])return _0x3e41b1;_0x4c4e1e=_0x4c4e1e['next'];}return{'type':'format','content':''+c(_0x1c11e7,'*Remove\x20format:*\x20%0',c(_0x1c11e7,this['_getTranslationKeyForListStyle'](_0x586f5c['oldValue'])))};}if('default'!=_0x586f5c['newValue'])return{'type':'format','content':''+c(_0x1c11e7,'*Set\x20format:*\x20%0',c(_0x1c11e7,this['_getTranslationKeyForListStyle'](_0x586f5c['newValue'])))};let _0x776bad=_0x23b759['head'];for(;_0x776bad;){if(_0x776bad['data']&&'listType'==_0x776bad['data']['key']&&_0x776bad['data']['newValue']&&_0x776bad['data']['oldValue'])return _0x3e41b1;_0x776bad=_0x776bad['next'];}return{'type':'format','content':c(_0x1c11e7,'*Set\x20format:*\x20%0',c(_0x1c11e7,'ELEMENT_'+_0x23b759['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x255e9e=this['editor'],_0x2210d3=_0x255e9e['locale'];_0x255e9e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x52ab62=>{if('formatBlock'!=_0x52ab62['type'])return;const {data:_0x15dd12}=_0x52ab62;if(!_0x15dd12)return;let _0x5bb415,_0x4f6a5a;switch(_0x15dd12['commandName']){case'listStyle':_0x5bb415='*Change\x20to:*\x20%0',_0x4f6a5a={'type':'format','content':c(_0x2210d3,_0x5bb415,c(_0x2210d3,this['_getTranslationKeyForListStyle'](_0x15dd12['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5bb415=_0x15dd12['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4f6a5a={'type':'format','content':c(_0x2210d3,_0x5bb415)};break;case'listStart':_0x5bb415='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4f6a5a={'type':'format','content':c(_0x2210d3,_0x5bb415,_0x15dd12['commandParams'][0x0]['startIndex'])};}return _0x4f6a5a;});}['_getTranslationKeyForListStyle'](_0x32038a){return'ELEMENT_'+function(_0x2f4940){if(_e['includes'](_0x2f4940))return'bulleted';if(Re['includes'](_0x2f4940))return'numbered';return null;}(_0x32038a)['toUpperCase']()+'_LIST_'+_0x32038a['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x47d2c1{['afterInit'](){const _0x4a9ff4=this['editor'];_0x4a9ff4['commands']['get']('emoji')&&_0x4a9ff4['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x47d2c1{static get['requires'](){return[_0x143ea0];}['init'](){const _0x3bf473=this['editor'],_0x4e40a1=_0x3bf473['plugins']['get']('TrackChangesEditing'),_0x523404=_0x3bf473['commands']['get']('enter');_0x4e40a1['enableCommand']('enter',()=>{_0x3bf473['model']['change'](_0x236531=>{const _0x2f46d7=_0x3bf473['model']['document']['selection'],_0x4e851a=_0x2f46d7['getFirstPosition'](),_0x561f16=_0x248df8['fromRange'](_0x2f46d7['getFirstRange']());if(_0x523404['enterBlock'](_0x236531)){const _0x131d28=_0x3bf473['model']['createPositionAt'](_0x4e851a['parent']['nextSibling'],0x0),_0x3a047d=_0x236531['createRange'](_0x4e851a,_0x131d28);_0x4e40a1['markInsertion'](_0x3a047d);}else _0x236531['setSelection'](_0x236531['createRange'](_0x561f16['end']));_0x561f16['detach'](),_0x523404['fire']('afterExecute',{'writer':_0x236531});});}),_0x3bf473['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0x3bf473,'split'),{'priority':'high'}),_0x3bf473['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x36cbc8,_0x15b8f3,_0x195d18)=>{const _0x428456=_0x195d18['mapper']['markerNameToElements'](_0x15b8f3['markerName']);if(_0x428456){for(const _0x3929b6 of _0x428456)_0x3929b6['hasClass']('ck-suggestion-marker-split')&&(_0x195d18['mapper']['unbindElementFromMarkerName'](_0x3929b6,_0x15b8f3['markerName']),_0x195d18['writer']['remove'](_0x3929b6));}},{'priority':'high'}),_0x3bf473['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x223d8d,_0x59c12f,_0x301ecc)=>{_0x301ecc['options']['showSuggestionHighlights']&&Fe(_0x3bf473,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x223d8d,_0x59c12f,_0x301ecc);},{'priority':'high'});}}class Z extends _0x47d2c1{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x27f1b9=this['editor']['plugins']['get']('TrackChangesEditing');_0x27f1b9['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x27f1b9['enableCommand']('findNext'),_0x27f1b9['enableCommand']('findPrevious'),_0x27f1b9['enableCommand']('replace'),_0x27f1b9['enableCommand']('replaceAll');}['handleFindCommand'](_0x20ec16,_0x5b9d38,_0x3ef8e8={}){const _0x3418ab=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x20ec16(_0x1f1240=>{let _0x2ecf89=('string'==typeof _0x5b9d38?_0x3418ab['findByTextCallback'](_0x5b9d38,_0x3ef8e8):_0x5b9d38)(_0x1f1240);Array['isArray'](_0x2ecf89)&&(_0x2ecf89={'results':_0x2ecf89,'searchText':'string'==typeof _0x5b9d38?_0x5b9d38:''});const _0x4a32d6=_0x2ecf89['results']['filter'](_0x4eeede=>!0x1===this['_isInDeletionRange'](_0x4eeede,_0x1f1240['item']));return{..._0x2ecf89,'results':_0x4a32d6};},_0x3ef8e8);}['_isInDeletionRange'](_0x3df3bf,_0x52cfed){const _0x3a2e7f=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x52cfed,_0x3df3bf['start']),this['editor']['model']['createPositionAt'](_0x52cfed,_0x3df3bf['end']));for(const _0x3409a9 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x3a2e7f['getIntersection'](_0x3409a9['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x47d2c1{['afterInit'](){const _0x248c19=this['editor']['locale'],_0xff4d91=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x2623bc,commandName:_0x1a3b2b}of ro)this['editor']['plugins']['has'](_0x2623bc)&&(_0xff4d91['enableDefaultAttributesIntegration'](_0x1a3b2b),_0xff4d91['registerInlineAttribute'](_0x1a3b2b));_0xff4d91['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x248c19,'FORMAT_FONT_SIZE')),_0xff4d91['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x248c19,'FORMAT_FONT_FAMILY')),_0xff4d91['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x248c19,'FORMAT_FONT_COLOR')),_0xff4d91['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x248c19,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4d04e3=this['editor'],_0x18fb5f=_0x4d04e3['locale'];_0x4d04e3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3004f8=>{const _0x5977b1=_0x18fb5f['t'];if('formatInline'!=_0x3004f8['type'])return;const {data:_0x58b363}=_0x3004f8;if(null!=_0x58b363){if('fontSize'==_0x58b363['commandName']){const _0x334d2c=_0x58b363['commandParams'][0x0]['value'];if(_0x334d2c){const _0x2e3aa0=_0x5977b1(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x39fc7c=>_0x39fc7c['model']==_0x334d2c)['title'])['toLowerCase']();return{'type':'format','content':c(_0x18fb5f,'*Set\x20font\x20size:*\x20%0',_0x2e3aa0)};}return{'type':'format','content':c(_0x18fb5f,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x58b363['commandName']){const _0x53486b=_0x58b363['commandParams'][0x0]['value'];return _0x53486b?{'type':'format','content':c(_0x18fb5f,'*Set\x20font\x20family:*\x20%0',_0x53486b)}:{'type':'format','content':c(_0x18fb5f,'*Reset\x20font\x20family*')};}if('fontColor'==_0x58b363['commandName']){const _0x52ba94=_0x58b363['commandParams'][0x0]['value'];if(_0x52ba94){const _0x454db5=_0x3c76e3(this['editor']['config']['get']('fontColor.colors'))['find'](_0x642e=>_0x642e['model']==_0x52ba94);let _0x49c162=_0x52ba94,_0x2a58c6='';return _0x454db5&&(_0x49c162=_0x454db5['label'],_0x2a58c6=_0x5977b1(_0x49c162)['toLowerCase']()),{'type':'format','content':c(_0x18fb5f,'*Set\x20font\x20color:*\x20%0',_0x2a58c6)['trim'](),'color':{'value':_0x52ba94,'title':_0x2a58c6||_0x49c162}};}return{'type':'format','content':c(_0x18fb5f,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x58b363['commandName']){const _0x45ea9a=_0x58b363['commandParams'][0x0]['value'];if(_0x45ea9a){const _0x5c84e6=_0x3c76e3(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x1ed9fd=>_0x1ed9fd['model']==_0x45ea9a);let _0x38a3be=_0x45ea9a,_0x5ef7c6='';return _0x5c84e6&&(_0x38a3be=_0x5c84e6['label'],_0x5ef7c6=_0x5977b1(_0x38a3be)['toLowerCase']()),{'type':'format','content':c(_0x18fb5f,'*Set\x20font\x20background\x20color:*\x20%0',_0x5ef7c6)['trim'](),'color':{'value':_0x45ea9a,'title':_0x5ef7c6||_0x38a3be}};}return{'type':'format','content':c(_0x18fb5f,'*Reset\x20font\x20background\x20color*')};}}});}}class et extends _0x47d2c1{['afterInit'](){const _0xbcaf5d=this['editor'],_0x5cf98b=_0xbcaf5d['plugins']['get']('TrackChangesEditing'),_0x362841=_0xbcaf5d['commands']['get']('copyFormat'),_0x4bb06a=_0xbcaf5d['commands']['get']('pasteFormat');_0x362841&&_0x4bb06a&&(_0x5cf98b['enableDefaultAttributesIntegration']('pasteFormat'),_0x5cf98b['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0xd27441=this['editor'],_0x143bad=_0xd27441['locale'];_0xd27441['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x35f4c3=>{if('formatBlock'!=_0x35f4c3['type']&&'formatInline'!=_0x35f4c3['type'])return;const {data:_0x54ccb7}=_0x35f4c3;if(_0x54ccb7&&'pasteFormat'===_0x54ccb7['commandName']){const _0x485e27=[],_0xfe1b7a=_0x54ccb7['commandParams'][0x0];for(const [_0x476446,_0x317a51]of Object['entries'](_0xfe1b7a))_0x485e27['push'](so(_0xd27441,_0x476446,_0x317a51));return _0x485e27['length']?{'type':'format','content':c(_0x143bad,'*Set\x20format\x20to:*\x20%0',_0x485e27['join'](',\x20'))}:{'type':'format','content':c(_0x143bad,'*Remove\x20all\x20formatting*')};}});}}function so(_0x1a2ba0,_0x243212,_0xae91fe){const _0x211340=_0x1a2ba0['locale']['t'],_0x3c4f76=_0x243212['split'](/(?=[A-Z])/)['join']('\x20'),_0x365d28=_0x211340(_0x3c4f76['charAt'](0x0)['toUpperCase']()+_0x3c4f76['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0xae91fe)return _0x365d28;if('fontColor'===_0x243212||'fontBackgroundColor'===_0x243212){const _0x547751=_0x3c76e3(_0x1a2ba0['config']['get']('fontColor.colors'))['find'](_0x72fd27=>_0x72fd27['model']==_0xae91fe);return _0x365d28+'\x20('+(_0x547751?_0x211340(_0x547751['label'])['toLowerCase']():_0xae91fe)+')';}if('fontSize'===_0x243212&&isNaN(parseFloat(_0xae91fe))){const _0x420682=_0x1a2ba0['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x1a2ba0['config']['get']('fontSize.options'))['find'](_0x80986f=>_0x80986f['model']==_0xae91fe);return _0x365d28+'\x20('+(_0x420682?_0x211340(_0x420682['title'])['toLowerCase']():_0xae91fe)+')';}return _0x365d28+'\x20('+_0xae91fe+')';}class nt extends _0x47d2c1{['_headingOptions'];['afterInit'](){const _0x29c516=this['editor'];if(!_0x29c516['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x29c516['config']['get']('heading.options');const _0x41ca71=_0x29c516['locale'],_0x58664e=_0x29c516['plugins']['get']('TrackChangesEditing');_0x58664e['enableDefaultAttributesIntegration']('heading');for(const _0x880584 of this['_headingOptions'])'paragraph'!=_0x880584['model']&&_0x58664e['descriptionFactory']['registerElementLabel'](_0x880584['model'],_0x2405b6=>{const _0x3d9aa0=this['_getHeadingLevel'](_0x880584['model']);return null!==_0x3d9aa0?_0x17c69e(_0x2405b6,_0x3d9aa0):_0x2724d9(_0x2405b6,_0x880584['title']);});function _0x17c69e(_0x186a10,_0x4a0b9d){return c(_0x41ca71,'ELEMENT_HEADING',[_0x186a10,_0x4a0b9d]);}function _0x2724d9(_0x3f14b2,_0x3b9f22){return c(_0x41ca71,'ELEMENT_HEADING_CUSTOM',[_0x3f14b2,_0x3b9f22]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x276249=this['editor'],_0x100a4f=_0x276249['locale'];function _0x5ecd56(_0x12af8a,_0x13d62a){return c(_0x100a4f,'ELEMENT_HEADING_CUSTOM',[_0x12af8a,_0x13d62a]);}_0x276249['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x538bda=>{if('formatBlock'!=_0x538bda['type'])return;const {data:_0x52b18b}=_0x538bda;if(_0x52b18b&&'heading'==_0x52b18b['commandName']){const _0x4f88f6=_0x52b18b['commandParams'][0x0]['value'],_0x34ac1c=this['_getHeadingLevel'](_0x4f88f6);if(null!==_0x34ac1c)return{'type':'format','content':c(_0x100a4f,'*Change\x20to:*\x20%0',(_0x351cfe=0x1,_0x11022a=_0x34ac1c,c(_0x100a4f,'ELEMENT_HEADING',[_0x351cfe,_0x11022a])))};const _0x2ecd3c=this['_headingOptions']['find'](_0x4463cc=>_0x4463cc['model']===_0x4f88f6)['title'];return{'type':'format','content':c(_0x100a4f,'*Change\x20to:*\x20%0',_0x5ecd56(0x1,_0x2ecd3c))};}var _0x351cfe,_0x11022a;});}['_getHeadingLevel'](_0x219592){const _0x3ac1d4=_0x219592['match'](/^heading(\d+)/);if(_0x3ac1d4)return _0x3ac1d4[0x1];const _0x24e07c=this['_headingOptions']?.['find'](_0x2d1d0a=>_0x2d1d0a['model']==_0x219592);if(_0x24e07c&&_0x24e07c['view']){const _0x537ef7=_0x24e07c['view'],_0x3b8b40=(_0x537ef7['name']??_0x537ef7)['match'](/^h(\d+)/);if(_0x3b8b40)return _0x3b8b40[0x1];}return null;}}class it extends _0x47d2c1{['afterInit'](){const _0x493d4c=this['editor'];if(!_0x493d4c['plugins']['has']('HighlightEditing'))return;const _0x48367c=_0x493d4c['plugins']['get']('TrackChangesEditing'),_0x774717=_0x493d4c['locale'];_0x48367c['enableDefaultAttributesIntegration']('highlight'),_0x48367c['registerInlineAttribute']('highlight'),_0x48367c['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x774717,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x491b11=this['editor'],_0x3b18ea=_0x491b11['locale'];_0x491b11['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x302476=>{if('formatInline'!=_0x302476['type'])return;const {data:_0x3331d1}=_0x302476;if(_0x3331d1&&'highlight'==_0x3331d1['commandName']){const _0x32a67e=_0x3b18ea['t'],_0x4443f2=_0x3331d1['commandParams'][0x0]['value'];if(_0x4443f2){const _0x4c8a8b=_0x491b11['config']['get']('highlight.options')['find'](_0x4dbf54=>_0x4dbf54['model']==_0x4443f2),_0x57dc94=_0x32a67e(_0x4c8a8b['title'])['toLowerCase']();return{'type':'format','content':c(_0x3b18ea,'*Set\x20highlight:*\x20%0',_0x57dc94),'color':{'value':_0x4c8a8b['color'],'title':_0x4c8a8b['title']}};}return{'type':'format','content':c(_0x3b18ea,'*Remove\x20highlight*',c(_0x3b18ea,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x47d2c1{['afterInit'](){const _0x422356=this['editor'];if(!_0x422356['plugins']['has']('HorizontalLineEditing'))return;_0x422356['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0xbdcecd=_0x422356['plugins']['get']('TrackChangesEditing'),_0x402b45=_0x422356['locale'];_0xbdcecd['descriptionFactory']['registerElementLabel']('horizontalLine',_0x33a7f5=>c(_0x402b45,'ELEMENT_HORIZONTAL_LINE',_0x33a7f5)),_0x422356['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x258835,{writer:_0x43a2f2,options:_0x250bb2})=>{if(!_0x250bb2['showSuggestionHighlights'])return null;const _0x1fb369=_0x43a2f2['createContainerElement']('div'),_0x5e1447=_0x43a2f2['createEmptyElement']('hr');return _0x43a2f2['addClass']('ck-horizontal-line',_0x1fb369),_0x43a2f2['insert'](_0x43a2f2['createPositionAt'](_0x1fb369,0x0),_0x5e1447),_0x1fb369;},'converterPriority':'high'});}}class ot extends _0x47d2c1{['afterInit'](){const _0x51ceae=this['editor'];if(!_0x51ceae['plugins']['has']('HtmlEmbed'))return;const _0x2c7325=_0x51ceae['plugins']['get']('TrackChangesEditing'),_0x5365cd=_0x51ceae['locale'];_0x2c7325['descriptionFactory']['registerElementLabel']('rawHtml',_0x1cec45=>c(_0x5365cd,'ELEMENT_HTML_EMBED',_0x1cec45)),_0x2c7325['enableDefaultAttributesIntegration']('htmlEmbed'),_0x2c7325['registerBlockAttribute']('value'),_0x2c7325['descriptionFactory']['registerDescriptionCallback'](_0x23108e=>{if('attribute'!=_0x23108e['type'])return;const {data:_0x4d2119}=_0x23108e;if(_0x4d2119&&'value'==_0x4d2119['key']&&_0x23108e['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x16c40d=c(_0x5365cd,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x5365cd,'*Change\x20%0\x20content*',_0x16c40d)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x128722=this['editor'],_0x5674d3=_0x128722['locale'];_0x128722['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x24dabc=>{if('formatBlock'!=_0x24dabc['type'])return;const {data:_0x14ac62}=_0x24dabc;if(_0x14ac62&&'htmlEmbed'==_0x14ac62['commandName']){const _0x5aa3a1=c(_0x5674d3,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x5674d3,'*Change\x20%0\x20content*',_0x5aa3a1)};}});}}class rt extends _0x47d2c1{['afterInit'](){const _0x1e188f=this['editor'];if(!_0x1e188f['plugins']['has']('ImageEditing'))return;const _0x55ae6d=_0x1e188f['plugins']['get']('TrackChangesEditing'),_0x44a873=_0x1e188f['plugins']['get']('ImageUtils'),_0x19e4db=_0x1e188f['locale'];_0x55ae6d['enableCommand']('insertImage'),_0x55ae6d['descriptionFactory']['registerElementLabel']('imageBlock',_0x10ecbf=>c(_0x19e4db,'ELEMENT_IMAGE',_0x10ecbf)),_0x55ae6d['descriptionFactory']['registerElementLabel']('imageInline',_0xcb431c=>c(_0x19e4db,'ELEMENT_INLINE_IMAGE',_0xcb431c)),_0x55ae6d['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x19e4db,'ELEMENT_CAPTION')),_0x1e188f['plugins']['has']('ImageUploadEditing')&&_0x55ae6d['enableCommand']('uploadImage'),_0x1e188f['plugins']['has']('ImageBlockEditing')&&_0x1e188f['plugins']['has']('ImageInlineEditing')&&(_0x55ae6d['enableCommand']('imageTypeInline',(_0x1c1ffb,_0x12041e)=>{const _0x8ce9b4=_0x44a873['getClosestSelectedImageElement'](_0x1e188f['model']['document']['selection']);_0x1e188f['model']['change'](()=>{_0x55ae6d['markBlockFormat'](_0x8ce9b4,{'commandName':'imageTypeInline','commandParams':[_0x12041e]},[],'convertBlockImageToInline');});}),_0x55ae6d['enableCommand']('imageTypeBlock',(_0x5c0114,_0x6f6c7b)=>{_0x1e188f['model']['change'](_0x5b3897=>{let _0x283f69=_0x44a873['getClosestSelectedImageElement'](_0x1e188f['model']['document']['selection']),_0x3337c4=_0x5b3897['createRangeOn'](_0x283f69);const _0x21b432=_0x37a1ef['fromPosition'](_0x3337c4['start'],'toPrevious'),_0x22d837=_0x37a1ef['fromPosition'](_0x3337c4['end'],'toNext');_0x55ae6d['forceDefaultExecution'](()=>_0x5c0114(_0x6f6c7b)),_0x283f69=_0x44a873['getClosestSelectedImageElement'](_0x1e188f['model']['document']['selection']),_0x3337c4=_0x5b3897['createRangeOn'](_0x283f69);const _0x37324f=_0x5b3897['createRange'](_0x21b432,_0x22d837);_0x21b432['detach'](),_0x22d837['detach'](),_0x55ae6d['markBlockFormat'](_0x283f69,{'commandName':'imageTypeInline','commandParams':[_0x6f6c7b]},[],'convertInlineImageToBlock'),_0x37324f['start']['isBefore'](_0x3337c4['start'])&&_0x55ae6d['markInsertion'](_0x5b3897['createRange'](_0x37324f['start'],_0x3337c4['start']),'convertInlineImageToBlock'),_0x3337c4['end']['isBefore'](_0x37324f['end'])&&_0x55ae6d['markInsertion'](_0x5b3897['createRange'](_0x3337c4['end'],_0x37324f['end']),'convertInlineImageToBlock');});}),_0x55ae6d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x55ae6d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x55ae6d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x55ae6d['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x55ae6d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x55ae6d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x4aec1a])=>{const _0x520840=_0x55ae6d['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x45b290=_0x4aec1a['start'],_0x134ea3=_0x4aec1a['end'];const _0x4605e9=_0x1e188f['model']['schema']['getNearestSelectionRange'](_0x45b290,'backward'),_0x4622f3=_0x1e188f['model']['schema']['getNearestSelectionRange'](_0x134ea3,'forward');_0x4605e9['isCollapsed']&&(_0x45b290=_0x4605e9['start']),_0x4622f3['isCollapsed']&&(_0x134ea3=_0x4622f3['end']),_0x520840([_0x1e188f['model']['createRange'](_0x45b290,_0x134ea3)]);}),_0x55ae6d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x18fcd8),_0x55ae6d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x18fcd8)),_0x1e188f['plugins']['has']('ImageCaptionEditing')&&(_0x55ae6d['enableCommand']('toggleImageCaption',(_0x64a31e,_0x419b58)=>{const _0x2a6260=_0x1e188f['plugins']['get']('ImageCaptionUtils');let _0x368eb3=_0x44a873['getClosestSelectedImageElement'](_0x1e188f['model']['document']['selection']),_0x18f2c6=_0x2a6260['getCaptionFromImageModelElement'](_0x368eb3);_0x1e188f['model']['change'](()=>{if(_0x18f2c6)return void _0x55ae6d['markDeletion'](_0x1e188f['model']['createRangeOn'](_0x18f2c6));const _0x20a922=_0x44a873['isBlockImage'](_0x368eb3);_0x64a31e(_0x419b58),_0x368eb3=_0x44a873['getClosestSelectedImageElement'](_0x1e188f['model']['document']['selection']),_0x18f2c6=_0x2a6260['getCaptionFromImageModelElement'](_0x368eb3),_0x55ae6d['markInsertion'](_0x1e188f['model']['createRangeOn'](_0x18f2c6),_0x20a922?null:'imageCaption');});}),_0x55ae6d['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x18fcd8));const _0x55ee61=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x59e28c(_0xfa65a8,_0x7bbb6a){const _0x4dc27d=_0x55ee61['findIndex'](({type:_0x53d751,subType:_0x8958ec})=>_0xfa65a8['type']==_0x53d751&&_0xfa65a8['subType']==_0x8958ec),_0x3d2db3=_0x55ee61['findIndex'](({type:_0x5c0264,subType:_0x13ba2d})=>_0x7bbb6a['type']==_0x5c0264&&_0x7bbb6a['subType']==_0x13ba2d);if(_0x4dc27d<0x0||_0x3d2db3<0x0)return!0x1;const _0x2e985b=_0xfa65a8['getFirstRange'](),_0x1c794e=_0x7bbb6a['getFirstRange']();if((0x0==_0x4dc27d||0x1==_0x4dc27d)&&0x2==_0x3d2db3&&_0x2e985b['isIntersecting'](_0x1c794e))return!0x0;if(0x2==_0x4dc27d&&0x3==_0x3d2db3){const _0xdd12d5=_0x55ae6d['_findSuggestions'](_0x2e985b,'insertion')['filter'](({suggestion:_0x18ba86,meta:_0x54d7cf})=>_0x54d7cf['isOwn']&&'convertInlineImageToBlock'==_0x18ba86['subType']);if(_0xdd12d5['length']>0x1&&_0x1c794e['end']['isEqual'](_0x2e985b['start']))return!0x0;if(0x1==_0xdd12d5['length']&&(_0x2e985b['start']['isEqual'](_0x1c794e['end'])||_0x2e985b['end']['isEqual'](_0x1c794e['start'])))return!0x0;}if(0x3==_0x4dc27d&&0x3==_0x3d2db3&&_0x2e985b['start']['isBefore'](_0x1c794e['start'])){const _0x251351=_0x2e985b['end']['nodeAfter'],_0x2f00b6=_0x1c794e['start']['nodeBefore'];return _0x44a873['isBlockImage'](_0x251351)&&_0x251351===_0x2f00b6;}return!0x1;}function _0x18fcd8(_0x15adb3,_0x42e6cd){return _0x59e28c(_0x15adb3,_0x42e6cd)?[_0x15adb3,_0x42e6cd]:_0x59e28c(_0x42e6cd,_0x15adb3)?[_0x42e6cd,_0x15adb3]:null;}_0x1e188f['plugins']['has']('ImageResize')&&(_0x55ae6d['enableDefaultAttributesIntegration']('resizeImage'),_0x55ae6d['registerBlockAttribute']('resizedWidth'),_0x55ae6d['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x19e4db,'FORMAT_IMAGE_SIZE'))),_0x1e188f['plugins']['has']('ImageTextAlternativeEditing')&&(_0x55ae6d['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x55ae6d['registerBlockAttribute']('alt')),_0x1e188f['plugins']['has']('PictureEditing')&&(_0x55ae6d['registerBlockAttribute']('sources'),_0x55ae6d['descriptionFactory']['registerDescriptionCallback'](_0x3b0023=>{if('attribute'!=_0x3b0023['type'])return;const {data:_0x1629e0}=_0x3b0023;return _0x1629e0&&'sources'==_0x1629e0['key']?{'type':'format','content':''}:void 0x0;})),_0x1e188f['plugins']['has']('ImageSizeAttributes')&&(_0x55ae6d['registerBlockAttribute']('width'),_0x55ae6d['registerBlockAttribute']('height'),_0x55ae6d['descriptionFactory']['registerDescriptionCallback'](_0x1e9689=>{if('attribute'!=_0x1e9689['type'])return;const {data:_0x11e2ba}=_0x1e9689;return!_0x11e2ba||'width'!=_0x11e2ba['key']&&'height'!=_0x11e2ba['key']?void 0x0:{'type':'format','content':''};})),_0x55ae6d['descriptionFactory']['registerDescriptionCallback'](_0x13bcc7=>{if(!!_0x55ee61['find'](({type:_0x1a565a,subType:_0x3b1b5a})=>_0x13bcc7['type']==_0x1a565a&&_0x13bcc7['subType']==_0x3b1b5a))return _0x13bcc7['previous']?{}:void 0x0;}),_0x55ae6d['descriptionFactory']['registerDescriptionCallback'](_0xb21f97=>{if('insertion'==_0xb21f97['type']||'deletion'==_0xb21f97['type']){const _0x2d6e3b=_0xb21f97['getContainedElement']();if(_0x2d6e3b&&_0x2d6e3b['is']('element','caption'))return{'type':'insertion'==_0xb21f97['type']?'addObject':'removeObject','element':_0x2d6e3b,'quantity':0x1};}}),_0x55ae6d['descriptionFactory']['registerDescriptionCallback'](_0x58ed58=>'formatBlock'==_0x58ed58['type']&&'convertInlineImageToBlock'==_0x58ed58['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x58ed58['type']&&'convertBlockImageToInline'==_0x58ed58['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x55ae6d['descriptionFactory']['registerDescriptionCallback'](_0x167d6d=>{if('attribute'!=_0x167d6d['type'])return;const {data:_0xf348f5}=_0x167d6d;if(!_0xf348f5||'alt'!=_0xf348f5['key'])return;const _0x110f70=_0xf348f5['newValue'];return _0x110f70?{'type':'format','content':c(_0x19e4db,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x110f70+'\x22')}:{'type':'format','content':c(_0x19e4db,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xe3e38a=this['editor'],_0x5c2155=_0xe3e38a['locale'];_0xe3e38a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2882c8=>{if('formatBlock'!=_0x2882c8['type']&&'formatInline'!=_0x2882c8['type'])return;const {data:_0x442a30}=_0x2882c8;if(_0x442a30){if('imageTextAlternative'==_0x442a30['commandName']){const _0x2c0538=_0x442a30['commandParams'][0x0]['newValue'];return _0x2c0538?{'type':'format','content':c(_0x5c2155,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2c0538+'\x22')}:{'type':'format','content':c(_0x5c2155,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x442a30['commandName']){const _0x1a13ea=_0x442a30['commandParams'][0x0]['width'];return _0x1a13ea?{'type':'format','content':c(_0x5c2155,'*Set\x20image\x20width:*\x20%0',_0x1a13ea)}:{'type':'format','content':c(_0x5c2155,'*Reset\x20image\x20width*')};}}});}}class at extends _0x47d2c1{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x5de222=this['editor']['locale'],_0x4dcaa3=this['editor']['plugins']['get']('TrackChangesEditing');_0x4dcaa3['enableDefaultAttributesIntegration']('replaceImageSource'),_0x4dcaa3['registerBlockAttribute']('src'),_0x4dcaa3['descriptionFactory']['registerDescriptionCallback'](_0x472e65=>{if('attribute'!=_0x472e65['type'])return;const {data:_0x5d0c22}=_0x472e65;return _0x5d0c22&&'src'==_0x5d0c22['key']?_0x5d0c22['newValue']&&_0x5d0c22['oldValue']?{'type':'format','content':c(_0x5de222,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0xaa7ff9=this['editor']['plugins']['get']('TrackChangesEditing');_0xaa7ff9['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0xaa7ff9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xaa7ff9['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0xaa7ff9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xd794c1=this['editor'],_0x1596ec=_0xd794c1['locale'];_0xd794c1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2fc8f3=>{if('formatBlock'!=_0x2fc8f3['type']&&'formatInline'!=_0x2fc8f3['type'])return;const {data:_0x3ac6db}=_0x2fc8f3;if(!_0x3ac6db||'replaceImageSource'!=_0x3ac6db['commandName'])return;return{'type':'format','content':c(_0x1596ec,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x47d2c1{['afterInit'](){const _0x32a5d4=this['editor'];if(!_0x32a5d4['plugins']['has']('ImageStyleEditing'))return;const _0x2f3227=_0x32a5d4['plugins']['get']('TrackChangesEditing'),_0x194bff=_0x32a5d4['plugins']['get']('ImageUtils'),_0x195b0f={};_0x2f3227['enableCommand']('imageStyle',(_0x215367,_0x3e0a70)=>{const _0x26aaee=_0x32a5d4['plugins']['get']('Users')['me'],_0x44f0d0=_0x32a5d4['commands']['get']('imageStyle');let _0x3f31c3=_0x194bff['getClosestSelectedImageElement'](_0x32a5d4['model']['document']['selection']),_0x318859=_0x32a5d4['model']['createRangeOn'](_0x3f31c3),_0x26a7df=_0x44f0d0['value'];if(_0x26a7df==_0x3e0a70['value'])return;const _0x3b4029={'commandName':'imageStyle','commandParams':[_0x3e0a70],'formatGroupId':_0x52a841()};_0x32a5d4['model']['change'](()=>{if(_0x2f3227['getSuggestions']()['filter'](_0x26074d=>_0x26074d['isInContent']&&_0x26aaee==_0x26074d['author']&&('formatBlock'==_0x26074d['type']||'formatInline'==_0x26074d['type'])&&('imageStylePreApply'==_0x26074d['subType']||'imageStylePostApply'==_0x26074d['subType'])&&_0x26074d['getFirstRange']()['isEqual'](_0x318859))['forEach'](_0x2ffef5=>_0x2f3227['discardSuggestion'](_0x2ffef5['head'])),_0x3f31c3=_0x194bff['getClosestSelectedImageElement'](_0x32a5d4['model']['document']['selection']),_0x318859=_0x32a5d4['model']['createRangeOn'](_0x3f31c3),_0x44f0d0['refresh'](),_0x32a5d4['commands']['get']('imageTypeInline')['refresh'](),_0x32a5d4['commands']['get']('imageTypeBlock')['refresh'](),_0x26a7df=_0x44f0d0['value'],_0x26a7df!=_0x3e0a70['value'])return _0x194bff['isInlineImage'](_0x3f31c3)&&_0x44f0d0['shouldConvertImageType'](_0x3e0a70['value'],_0x3f31c3)?(_0x215367({..._0x3e0a70,'setImageSizes':!0x1}),_0x3f31c3=_0x194bff['getClosestSelectedImageElement'](_0x32a5d4['model']['document']['selection']),void _0x2f3227['markBlockFormat'](_0x3f31c3,{..._0x3b4029,'commandReversedParams':[{'value':_0x26a7df||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x194bff['isBlockImage'](_0x3f31c3)?_0x2f3227['markBlockFormat'](_0x3f31c3,_0x3b4029,[],'imageStylePostApply'):_0x2f3227['markInlineFormat'](_0x318859,_0x3b4029,'imageStylePostApply'));});});for(const _0x55a70d of _0x32a5d4['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x195b0f[_0x55a70d['name']]=_0x55a70d['title']['toLowerCase']();_0x2f3227['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x2f3227['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x2f3227['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x2f3227['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x35f9ee])=>{_0x194bff['setImageNaturalSizeAttributes'](_0x35f9ee['getContainedElement']());}),_0x2f3227['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x84015b,_0x2ec911)=>{_0x2f3227['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x84015b,{'commandName':_0x2ec911['commandName'],'commandParams':_0x2ec911['commandReversedParams']});}),_0x2f3227['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x220585,_0x54e460){if(_0x81f6e4(_0x220585,_0x54e460))return[_0x220585,_0x54e460];if(_0x81f6e4(_0x54e460,_0x220585))return[_0x54e460,_0x220585];return null;});const _0x4ab4fb=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x81f6e4(_0x3a8f73,_0x2e711d){const _0x4fa2f2=_0x4ab4fb['findIndex'](({type:_0x4ac708,subType:_0x3cab95})=>_0x3a8f73['type']==_0x4ac708&&_0x3a8f73['subType']==_0x3cab95),_0x7f4f75=_0x4ab4fb['findIndex'](({type:_0x3bb4a1,subType:_0x3f8a0e})=>_0x2e711d['type']==_0x3bb4a1&&_0x2e711d['subType']==_0x3f8a0e);if(_0x4fa2f2<0x0||_0x7f4f75<0x0)return!0x1;const _0x3cc784=_0x3a8f73['getFirstRange'](),_0x2ba5f5=_0x2e711d['getFirstRange']();if((0x0==_0x4fa2f2||0x1==_0x4fa2f2)&&0x2==_0x7f4f75&&_0x3cc784['isIntersecting'](_0x2ba5f5))return!0x0;if(0x2==_0x4fa2f2&&0x3==_0x7f4f75){const _0x4f1172=_0x2f3227['_findSuggestions'](_0x3cc784,'insertion')['filter'](({suggestion:_0x133912,meta:_0x1eafac})=>_0x1eafac['isOwn']&&'convertInlineImageToBlock'==_0x133912['subType']);if(_0x4f1172['length']>0x1&&_0x2ba5f5['end']['isEqual'](_0x3cc784['start']))return!0x0;if(0x1==_0x4f1172['length']&&(_0x3cc784['start']['isEqual'](_0x2ba5f5['end'])||_0x3cc784['end']['isEqual'](_0x2ba5f5['start'])))return!0x0;}if(0x3==_0x4fa2f2&&0x3==_0x7f4f75&&_0x3cc784['start']['isBefore'](_0x2ba5f5['start'])){const _0x5a5f82=_0x3cc784['end']['nodeAfter'],_0x4dfc9b=_0x2ba5f5['start']['nodeBefore'];return _0x194bff['isBlockImage'](_0x5a5f82)&&_0x5a5f82===_0x4dfc9b;}return!0x1;}_0x32a5d4['model']['document']['registerPostFixer'](()=>{let _0x2eac6c=!0x1;const _0x1c4903=Array['from'](_0x32a5d4['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x135852,data:_0x388d40}of _0x1c4903){const {group:_0x3184ad,type:_0x4057bd,subType:_0x48d03c,id:_0x59cc9b}=_0x2f3227['_splitMarkerName'](_0x135852);if('suggestion'==_0x3184ad&&_0x2f3227['hasSuggestion'](_0x59cc9b)){if('formatBlock'==_0x4057bd&&('imageStylePreApply'==_0x48d03c||'imageStylePostApply'==_0x48d03c)){const _0x3d3cea=_0x2f3227['getSuggestion'](_0x59cc9b);if(_0x388d40['newRange']){const _0xfb1407=_0x3d3cea['getFirstRange']()['getContainedElement']();if(_0x194bff['isBlockImage'](_0xfb1407))continue;_0x2f3227['discardSuggestion'](_0x3d3cea),_0x2eac6c=!0x0;}}if('insertion'==_0x4057bd&&'imageCaption'==_0x48d03c&&!_0x388d40['newRange']){const _0x4db226=_0x2f3227['getSuggestion'](_0x59cc9b);_0x4db226['next']&&_0x4db226['next']['isInContent']&&(_0x2f3227['discardSuggestion'](_0x4db226['next']),_0x2eac6c=!0x0);}}}return _0x2eac6c;}),this['_registerLegacyDescription'](_0x195b0f);}['_registerLegacyDescription'](_0x2c8df7){const _0x597464=this['editor'],_0x1539c6=_0x597464['locale'];_0x597464['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x14cb08=>{if('formatBlock'!=_0x14cb08['type']&&'formatInline'!=_0x14cb08['type'])return;const {data:_0x1a3bc4}=_0x14cb08;if(!_0x1a3bc4||'imageStyle'!=_0x1a3bc4['commandName'])return;const _0x3b6daa=_0x1a3bc4['commandParams'][0x0]['value'];return _0x2b2a1a('side'===_0x3b6daa?c(_0x1539c6,'FORMAT_SIDE_IMAGE'):_0x2c8df7[_0x3b6daa]||_0x3b6daa);function _0x2b2a1a(_0x8ceda1){return{'type':'format','content':c(_0x1539c6,'*Format:*\x20%0',_0x8ceda1)};}});}}class ut extends _0x47d2c1{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0xd9d125){super(_0xd9d125),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x5bc711=this['editor'],_0x297316=_0x5bc711['commands']['get']('importWord'),_0x964df=_0x5bc711['commands']['get']('trackChanges');_0x297316&&(_0x297316['on']('execute',(_0x31ec3d,[,_0x31f9e5])=>{this['_trackChangesValueDuringImport']=_0x964df['value'],_0x31f9e5['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x297316,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x297316,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x964df['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x5bc711['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x4e2eb9,_0x32d6b9){const {suggestions:_0x20394d}=_0x32d6b9,_0x52dd04=this['editor']['commands']['get']('trackChanges'),_0x252404=_0x52dd04['value'];this['_trackChangesValueDuringImport']!==_0x252404&&(_0x52dd04['execute'](),this['_trackChangesExecuted']=!0x0),_0x20394d&&_0x20394d['forEach'](({id:_0x3b5f40,type:_0x1f0564,author:_0xb68e61,created_at:_0x68fa25})=>{const _0x529b2a={'id':_0x3b5f40,'type':_0x1f0564,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0xb68e61,'createdAt':_0x68fa25?new Date(_0x68fa25):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x529b2a);});}}class ft extends _0x47d2c1{['afterInit'](){const _0x21e9b=this['editor'],_0x2b110e=_0x21e9b['plugins']['get']('TrackChangesEditing');if(_0x21e9b['plugins']['has']('IndentEditing')&&(_0x2b110e['enableCommand']('indent'),_0x2b110e['enableCommand']('outdent')),_0x21e9b['plugins']['has']('IndentBlock')){for(const _0x1688d8 of['indentBlock','outdentBlock'])_0x2b110e['enableDefaultAttributesIntegration'](_0x1688d8);}const _0x526e22=_0x21e9b['locale'];_0x2b110e['registerBlockAttribute']('blockIndent'),_0x2b110e['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x526e22,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x289119=this['editor'],_0x2cefc9=_0x289119['locale'],_0x131e2d=_0x289119['plugins']['get']('TrackChangesEditing');_0x131e2d['descriptionFactory']['registerDescriptionCallback'](_0xfe7ad=>{if('formatBlock'!=_0xfe7ad['type'])return;const {data:_0x547c2d}=_0xfe7ad;if(!_0x547c2d)return;if('indentBlock'!=_0x547c2d['commandName']&&'outdentBlock'!=_0x547c2d['commandName'])return;const _0x1bb035=_0xfe7ad['getItems']()[0x0],_0x2c173a=_0x131e2d['descriptionFactory']['getItemLabel'](_0x1bb035);return'indentBlock'==_0x547c2d['commandName']?{'type':'format','content':c(_0x2cefc9,'*Indent:*\x20%0',_0x2c173a)}:'outdentBlock'==_0x547c2d['commandName']?{'type':'format','content':c(_0x2cefc9,'*Outdent:*\x20%0',_0x2c173a)}:void 0x0;});}}class ht extends _0x47d2c1{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x47d2c1{['afterInit'](){const _0x4745c6=this['editor'];if(!_0x4745c6['plugins']['has']('LinkEditing'))return;const _0x14ab07=_0x4745c6['plugins']['get']('TrackChangesEditing'),_0xfc70d8=_0x4745c6['commands']['get']('link');_0x14ab07['enableDefaultAttributesIntegration']('link'),_0x14ab07['enableDefaultAttributesIntegration']('unlink'),_0x14ab07['registerInlineAttribute']('linkHref');for(const _0x2515fb of _0xfc70d8['manualDecorators'])_0x14ab07['registerInlineAttribute'](_0x2515fb['id']),_0x14ab07['descriptionFactory']['registerAttributeLabel'](_0x2515fb['id'],'link\x20('+_0x2515fb['label']['toLowerCase']()+')');_0x14ab07['descriptionFactory']['registerDescriptionCallback'](_0x14267d=>{if('attribute'!=_0x14267d['type'])return;const {data:_0x17f3e1}=_0x14267d;if(!_0x17f3e1||'linkHref'!=_0x17f3e1['key'])return;const _0x4a0ad2=_0x17f3e1['newValue'],_0x1a4ed1=_0x4745c6['locale'];return{'type':'format','content':null==_0x4a0ad2?c(_0x1a4ed1,'*Remove\x20link*'):c(_0x1a4ed1,'*Set\x20link:*\x20%0','\x22'+_0x4a0ad2+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2d84d9=this['editor'],_0x5b5945=_0x2d84d9['locale'];_0x2d84d9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4124d5=>{if('formatInline'!=_0x4124d5['type'])return;const {data:_0x5202a7}=_0x4124d5;if(_0x5202a7){if('link'==_0x5202a7['commandName']){const _0x138d77=_0x5202a7['commandParams'][0x0];return{'type':'format','content':c(_0x5b5945,'*Set\x20link:*\x20%0','\x22'+_0x138d77+'\x22')};}return'unlink'==_0x5202a7['commandName']?{'type':'format','content':c(_0x5b5945,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x47d2c1{['afterInit'](){const _0x138788=this['editor'],_0x4ce8ed=_0x138788['locale'];if(!_0x138788['plugins']['has']('LegacyListEditing'))return;const _0x38272a=_0x138788['plugins']['get']('TrackChangesEditing'),_0x36f900=_0x138788['plugins']['has']('LegacyTodoListEditing');function _0x254e5f(_0x2038dd){return()=>{const _0x17ddb0=_0x138788['model']['document']['selection'],_0x179268=_0x138788['commands']['get'](_0x2038dd);if(_0x179268['value'])return void _0x138788['execute']('paragraph',{});const _0x1b654a=_0x2038dd['slice'](0x0,-0x4),_0x2370d2=function(_0x4a5ef0,_0x295049,_0x4cb827){let _0x653055=Array['from'](_0x4a5ef0)['filter'](_0x8d1239=>function(_0x5151c0,_0x4f44d1){return _0x4f44d1['checkChild'](_0x5151c0['parent'],'listItem')&&!_0x4f44d1['isObject'](_0x5151c0);}(_0x8d1239,_0x4cb827));_0x653055=_0x653055['filter'](_0x4792ef=>!_0x4792ef['is']('element','listItem')||_0x4792ef['getAttribute']('listType')!=_0x295049);const _0x2666fd=new Set();for(const _0x4cc854 of _0x653055)_0x4cc854['is']('element','listItem')?_0x2666fd['add'](Le(_0x4cc854)):_0x2666fd['add'](_0x4cc854);return Array['from'](_0x2666fd);}(_0x17ddb0['getSelectedBlocks'](),_0x1b654a,_0x138788['model']['schema']);_0x138788['model']['change'](()=>{for(const _0x5db435 of _0x2370d2)_0x38272a['markBlockFormat'](_0x5db435,{'commandName':_0x2038dd,'commandParams':[{'forceValue':!_0x179268['value']}],'formatGroupId':'blockName'},Ee(_0x5db435));});};}function _0x372822(_0x122b2d){return()=>{const _0xf76e75=function(_0x247370){let _0x2d52b8=Array['from'](_0x247370);const _0x67786c=_0x2d52b8['findIndex'](_0x181fcd=>'listItem'!=_0x181fcd['name']);return _0x67786c>-0x1&&(_0x2d52b8=_0x2d52b8['slice'](0x0,_0x67786c)),_0x2d52b8;}(_0x138788['model']['document']['selection']['getSelectedBlocks']()),_0x3359df=_0x138788['model']['createRange'](_0x138788['model']['createPositionAt'](_0xf76e75[0x0],'before'),_0x138788['model']['createPositionAt'](_0xf76e75[_0xf76e75['length']-0x1],'end'));_0x138788['model']['change'](()=>{_0x38272a['markBlockFormat'](_0x3359df,{'commandName':_0x122b2d,'commandParams':[],'formatGroupId':'listIndent'},function(_0x3b74d9){const _0x47deb6=new Set();for(const _0xcb4630 of _0x3b74d9){let _0x12436b=_0xcb4630['nextSibling'];for(;_0x12436b&&_0x12436b['getAttribute']('listIndent')>_0xcb4630['getAttribute']('listIndent');)_0x47deb6['add'](_0x12436b),_0x12436b=_0x12436b['nextSibling'];}return Array['from'](_0x47deb6);}(_0xf76e75));});};}_0x38272a['enableCommand']('numberedList',_0x254e5f('numberedList')),_0x38272a['enableCommand']('bulletedList',_0x254e5f('bulletedList')),_0x36f900&&_0x38272a['enableCommand']('todoList',_0x254e5f('todoList')),_0x38272a['enableCommand']('indentList',_0x372822('indentList')),_0x38272a['enableCommand']('outdentList',_0x372822('outdentList')),_0x36f900&&_0x38272a['enableCommand']('checkTodoList',()=>{const _0x50dc3a=_0x138788['commands']['get']('checkTodoList'),_0x34aad2=Array['from'](_0x50dc3a['_selectedElements']);_0x34aad2['filter'](_0x4432ba=>_0x4432ba['getAttribute']('todoListChecked')!=_0x50dc3a['value']),_0x138788['model']['change'](()=>{for(const _0x4575b6 of _0x34aad2)_0x38272a['markBlockFormat'](_0x4575b6,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x50dc3a['value']}]});});}),_0x38272a['descriptionFactory']['registerElementLabel']('listItem',_0x29805b=>c(_0x4ce8ed,'ELEMENT_LIST_ITEM',_0x29805b)),_0x38272a['descriptionFactory']['registerDescriptionCallback'](_0xc16605=>{if('formatBlock'!=_0xc16605['type']&&'formatInline'!=_0xc16605['type'])return;const {data:_0x2fb40e}=_0xc16605;if(_0x2fb40e){if('numberedList'==_0x2fb40e['commandName']||'bulletedList'==_0x2fb40e['commandName']||'todoList'==_0x2fb40e['commandName'])switch(_0x2fb40e['commandName']['replace']('List','')){case'bulleted':return _0x649641(c(_0x4ce8ed,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x649641(c(_0x4ce8ed,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x649641(c(_0x4ce8ed,'ELEMENT_TODO_LIST'));}if('indentList'==_0x2fb40e['commandName'])return{'type':'format','content':c(_0x4ce8ed,'*Indent:*\x20%0',c(_0x4ce8ed,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x2fb40e['commandName'])return{'type':'format','content':c(_0x4ce8ed,'*Outdent:*\x20%0',c(_0x4ce8ed,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x2fb40e['commandName'])return _0x2fb40e['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x4ce8ed,'*Check\x20item*')}:{'type':'format','content':c(_0x4ce8ed,'*Uncheck\x20item*')};}function _0x649641(_0x3208e3){return{'type':'format','content':c(_0x4ce8ed,'*Change\x20to:*\x20%0',_0x3208e3)};}});}}function Le(_0x303bbe){const _0x1602e0=_0x303bbe['getAttribute']('listIndent');if(0x0==_0x1602e0)return _0x303bbe;let _0x1f7a9a=_0x303bbe;for(;_0x303bbe['previousSibling']&&_0x303bbe['previousSibling']['is']('element','listItem');){const _0x101e97=_0x303bbe['previousSibling']['getAttribute']('listIndent');if(_0x101e97==_0x1602e0)_0x1f7a9a=_0x303bbe['previousSibling'];else{if(_0x101e97<_0x1602e0)break;}_0x303bbe=_0x303bbe['previousSibling'];}return _0x1f7a9a;}function Ee(_0x46e2b2){const _0x63f0da=[];if(_0x46e2b2['is']('element','listItem')&&_0x46e2b2['getAttribute']('listIndent')>0x0){let _0x54821f=_0x46e2b2['nextSibling'];for(;_0x54821f&&'listItem'==_0x54821f['name']&&_0x54821f['getAttribute']('listIndent')==_0x46e2b2['getAttribute']('listIndent');)_0x63f0da['push'](_0x54821f),_0x54821f=_0x54821f['nextSibling'];}return _0x63f0da;}class Q extends _0x47d2c1{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x26da55=this['editor']['config']['get']('list.properties'),_0x9b93d=this['editor']['plugins']['get']('TrackChangesEditing');_0x26da55['styles']&&_0x9b93d['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x26da55['reversed']&&_0x9b93d['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x26da55['startIndex']&&_0x9b93d['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x9b93d['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x156ab7,_0x32ca50={}){const _0x36d85a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x280c06=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x36d85a['markMultiRangeBlockFormat'](_0x280c06,{'commandName':'listStyle','commandParams':[{'type':_0x32ca50['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x15351b,_0x219262={}){const _0x2c290a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x53a082=this['_getSuggestionBlocks'](_0x27d96d=>_0x27d96d['is']('element','listItem')&&'numbered'===_0x27d96d['getAttribute']('listType'));if(_0x53a082['length']<0x1)return;const _0x56bd16=_0x53a082['map'](_0x31d33c=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x31d33c,'before'),this['editor']['model']['createPositionAt'](_0x31d33c,0x0)));this['editor']['model']['change'](()=>{_0x2c290a['markMultiRangeBlockFormat'](_0x56bd16,{'commandName':'listReversed','commandParams':[{'reversed':_0x219262['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0xa61b8b,_0x1ab52c={}){const _0xaa3432=this['editor']['plugins']['get']('TrackChangesEditing'),_0x58bb02=this['_getSuggestionBlocks'](_0x55f1ae=>_0x55f1ae['is']('element','listItem')&&'numbered'===_0x55f1ae['getAttribute']('listType'));if(_0x58bb02['length']<0x1)return;const _0x4596bb=_0x58bb02['map'](_0x4310a4=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4310a4,'before'),this['editor']['model']['createPositionAt'](_0x4310a4,0x0)));this['editor']['model']['change'](()=>{_0xaa3432['markMultiRangeBlockFormat'](_0x4596bb,{'commandName':'listStart','commandParams':[{'startIndex':_0x1ab52c['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x247cec){if('formatBlock'!=_0x247cec['type']&&'formatInline'!=_0x247cec['type'])return;const _0x44304f=this['editor']['locale'],{data:_0x1499ae}=_0x247cec;if(!_0x1499ae)return;let _0x4e7e00,_0x2e730c;switch(_0x1499ae['commandName']){case'listStyle':_0x4e7e00='*Change\x20to:*\x20%0',_0x2e730c={'type':'format','content':c(_0x44304f,_0x4e7e00,c(_0x44304f,this['_getTranslationKeyForListStyle'](_0x1499ae['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4e7e00=_0x1499ae['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2e730c={'type':'format','content':c(_0x44304f,_0x4e7e00)};break;case'listStart':_0x4e7e00='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2e730c={'type':'format','content':c(_0x44304f,_0x4e7e00,_0x1499ae['commandParams'][0x0]['startIndex'])};}return _0x2e730c;}['_getSuggestionBlocksForListStyle'](){const _0x3d0da1=this['editor']['plugins']['get']('LegacyListUtils');let _0x2c0c57=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x2c0c57[0x0]?.['is']('element','listItem')&&_0x2c0c57['unshift'](..._0x3d0da1['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x2c0c57[_0x2c0c57['length']-0x1]?.['is']('element','listItem')&&_0x2c0c57['push'](..._0x3d0da1['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x2c0c57=[...new Set(_0x2c0c57)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x2c0c57=_0x2c0c57['filter'](_0x298d7b=>_0x298d7b['is']('element','listItem'))),_0x2c0c57;}['_getSuggestionBlocks'](_0x28e903){const _0x2c7f19=this['editor']['plugins']['get']('LegacyListUtils');let _0x43829a=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x28e903)['map'](_0x547c5f=>{const _0x23f89e=this['editor']['model']['createPositionAt'](_0x547c5f,0x0);return[..._0x2c7f19['getSiblingNodes'](_0x23f89e,'backward'),..._0x2c7f19['getSiblingNodes'](_0x23f89e,'forward')];})['flat']();return _0x43829a=[...new Set(_0x43829a)],_0x43829a;}['_getTranslationKeyForListStyle'](_0x3268f8){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x3268f8)||'default')['toUpperCase']()+'_LIST_'+_0x3268f8['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x47d2c1{['afterInit'](){const _0x5e073d=this['editor'];if(!_0x5e073d['plugins']['has']('MediaEmbedEditing'))return;const _0x51a577=_0x5e073d['plugins']['get']('TrackChangesEditing'),_0x27063c=_0x5e073d['locale'];_0x51a577['enableCommand']('mediaEmbed'),_0x51a577['descriptionFactory']['registerElementLabel']('media',_0x5b9f7b=>c(_0x27063c,'ELEMENT_MEDIA',_0x5b9f7b)),_0x5e073d['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x2b8605,{writer:_0x4bf832,options:_0x2b74f3})=>{if(_0x2b74f3['showSuggestionHighlights'])return _0x4bf832['createEmptyElement']('div');},'converterPriority':'high'}),_0x5e073d['data']['downcastDispatcher']['on']('attribute:url:media',(_0x5b2e93,_0x35ca40,_0x4a82b0)=>{_0x4a82b0['options']['showSuggestionHighlights']&&_0x5b2e93['stop']();},{'priority':'high'});}}class pt extends _0x47d2c1{['afterInit'](){const _0x23366c=this['editor'];_0x23366c['plugins']['has']('MentionEditing')&&_0x23366c['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x47d2c1{['afterInit'](){const _0xcab3e6=this['editor'];if(!_0xcab3e6['plugins']['has']('MergeFieldsEditing'))return;const _0x52fa4a=_0xcab3e6['plugins']['get']('TrackChangesEditing'),_0x20b060=_0xcab3e6['locale'];_0x52fa4a['enableCommand']('insertMergeField'),_0x52fa4a['enableCommand']('insertMergeFieldBlock'),_0x52fa4a['enableCommand']('insertMergeFieldImage'),_0x52fa4a['descriptionFactory']['registerElementLabel']('mergeField',_0x56cc9c=>c(_0x20b060,'ELEMENT_MERGE_FIELD',_0x56cc9c)),_0x52fa4a['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x377838=>c(_0x20b060,'ELEMENT_MERGE_FIELD',_0x377838)),_0x52fa4a['descriptionFactory']['registerDescriptionCallback'](_0x4c4c0b=>{if('insertion'!=_0x4c4c0b['type']&&'deletion'!=_0x4c4c0b['type'])return;const _0x3e57da=_0x4c4c0b['getContainedElement']();if(null==_0x3e57da)return;const _0x2b1def=_0xcab3e6['plugins']['get']('MergeFieldsEditing');let _0x1c7288;switch(_0x2b1def['getMergeFieldType'](_0x3e57da)){case null:return;case'image':{const _0x7a5983=_0x2b1def['unwrapAffixes'](_0x3e57da['getAttribute']('src'));_0x1c7288=_0x2b1def['getLabel'](_0x7a5983)||_0x7a5983;break;}default:{const _0x1abec2=_0x3e57da['getAttribute']('id');_0x1c7288=_0x2b1def['getLabel'](_0x1abec2)||_0x1abec2;break;}}return'insertion'==_0x4c4c0b['type']?{'type':'insertion','content':c(_0x20b060,'*Insert:*\x20%0','\x22'+_0x1c7288+'\x22\x20'+c(_0x20b060,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x20b060,'*Remove:*\x20%0','\x22'+_0x1c7288+'\x22\x20'+c(_0x20b060,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x47d2c1{['afterInit'](){const _0x3338b3=this['editor'],_0x4205a7=_0x3338b3['plugins']['get']('TrackChangesEditing');_0x3338b3['plugins']['has']('MultiLevelList')&&(_0x4205a7['enableDefaultAttributesIntegration']('multiLevelList'),_0x4205a7['registerBlockAttribute']('listMarkerStyle'),_0x4205a7['descriptionFactory']['registerDescriptionCallback'](_0x4ca825=>this['handleDescriptions'](_0x4ca825)));}['handleDescriptions'](_0x48151d){const _0x303b74=this['editor']['locale'],{data:_0x31ca11}=_0x48151d,_0x26f6ce={'type':'format','content':''};if(_0x31ca11&&'listMarkerStyle'==_0x31ca11['key']){if(!_0x31ca11['oldValue'])return{'type':'format','content':c(_0x303b74,'*Set\x20format:*\x20%0',c(_0x303b74,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x31ca11['newValue']+')'};if(!_0x31ca11['newValue']){let _0x5a17e7=_0x48151d['head'];for(;_0x5a17e7;){if(_0x5a17e7['data']&&'listType'==_0x5a17e7['data']['key']&&_0x5a17e7['data']['newValue'])return _0x26f6ce;_0x5a17e7=_0x5a17e7['next'];}return{'type':'format','content':c(_0x303b74,'*Remove\x20format:*\x20%0',c(_0x303b74,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x31ca11['oldValue']+')'};}}}}class bt extends _0x47d2c1{['afterInit'](){const _0x15c359=this['editor'];if(!_0x15c359['plugins']['has']('PageBreakEditing'))return;_0x15c359['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x46485d=_0x15c359['plugins']['get']('TrackChangesEditing'),_0x29db23=_0x15c359['locale'];_0x46485d['descriptionFactory']['registerElementLabel']('pageBreak',_0x2844a4=>c(_0x29db23,'ELEMENT_PAGE_BREAK',_0x2844a4));}}class yt extends _0x47d2c1{['afterInit'](){const _0x181c1b=this['editor'];if(!_0x181c1b['plugins']['has']('Paragraph'))return;const _0x1eab00=_0x181c1b['locale'],_0x4afb00=_0x181c1b['plugins']['get']('TrackChangesEditing');_0x4afb00['descriptionFactory']['registerElementLabel']('paragraph',_0x200451=>c(_0x1eab00,'ELEMENT_PARAGRAPH',_0x200451)),_0x4afb00['enableDefaultAttributesIntegration']('paragraph'),_0x4afb00['enableCommand']('insertParagraph'),_0x181c1b['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x181c1b),{'priority':'highest'}),_0x181c1b['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x59b797,_0x4bcdc2,_0x2031f5)=>{_0x2031f5['options']['showSuggestionHighlights']&&nr(_0x181c1b,{'showActiveMarker':!0x1})(_0x59b797,_0x4bcdc2,_0x2031f5);},{'priority':'highest'});const _0x2c82ab=_0x4afb00['descriptionFactory'];_0x2c82ab['registerDescriptionCallback'](_0x58ea1f=>{if('insertion'!==_0x58ea1f['type'])return;const {start:_0x3ac9c5,end:_0x205376}=_0x58ea1f['getFirstRange']();if(!_0x3ac9c5['isTouching'](_0x205376)||!_0x3ac9c5['nodeAfter'])return;const _0x383b32=_0x181c1b['model']['schema'],_0x2ba0a8=_0x3ac9c5['nodeAfter'];return _0x383b32['isBlock'](_0x2ba0a8)&&!_0x383b32['isLimit'](_0x2ba0a8)&&_0x383b32['checkChild'](_0x2ba0a8,'$text')?{'type':'insertion','content':c(_0x1eab00,'*Insert:*\x20%0',_0x2c82ab['getItemLabel'](_0x2ba0a8,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x112d05=this['editor'],_0x150254=_0x112d05['locale'];_0x112d05['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4996b2=>{if('formatBlock'!=_0x4996b2['type'])return;const {data:_0x40964d}=_0x4996b2;return _0x40964d&&'paragraph'==_0x40964d['commandName']?{'type':'format','content':c(_0x150254,'*Change\x20to:*\x20%0',c(_0x150254,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x11ac39,{showActiveMarker:_0x20a194=!0x0}={}){return(_0x3f501d,_0x50a398,_0x414c2a)=>{const _0x4899cb=_0x11ac39['plugins']['get']('TrackChangesEditing'),_0x21df4f=_0x50a398['markerRange']['start'],_0x3f1406=_0x50a398['markerRange']['end'],_0x3e89ec=_0x11ac39['model']['schema'];if(!_0x21df4f['isTouching'](_0x3f1406)||!_0x21df4f['nodeAfter'])return;const _0x4575a1=_0x21df4f['nodeAfter'];if(_0x3e89ec['isBlock'](_0x4575a1)&&!_0x3e89ec['isLimit'](_0x4575a1)&&_0x3e89ec['checkChild'](_0x4575a1,'$text')){if(!_0x414c2a['consumable']['consume'](_0x50a398['markerRange'],_0x3f501d['name']))return;const {authorId:_0x38de27}=_0x4899cb['_splitMarkerName'](_0x50a398['markerName']),_0x5e54f8=_0x414c2a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x38de27}),_0x526f97=_0x414c2a['mapper']['toViewPosition'](_0x3f1406);_0x20a194&&_0x4899cb['activeMarkers']['includes'](_0x50a398['markerName'])&&_0x414c2a['writer']['addClass']('ck-suggestion-marker--active',_0x5e54f8),_0x414c2a['writer']['insert'](_0x526f97,_0x5e54f8),_0x414c2a['mapper']['bindElementToMarker'](_0x5e54f8,_0x50a398['markerName']);}};}class jt extends _0x47d2c1{['afterInit'](){const _0x179bec=this['editor'];_0x179bec['commands']['get']('replaceSource')&&_0x179bec['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x47d2c1{['afterInit'](){const _0xa23f61=this['editor'];if(!_0xa23f61['plugins']['has']('RemoveFormatEditing'))return;_0xa23f61['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x374cba=this['editor'];_0x374cba['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x419bae=>{if('formatBlock'!=_0x419bae['type']&&'formatInline'!=_0x419bae['type'])return;const {data:_0x2c0561}=_0x419bae;return _0x2c0561&&'removeFormat'==_0x2c0561['commandName']?{'type':'format','content':c(_0x374cba['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x47d2c1{['afterInit'](){const _0x4facc4=this['editor'];if(!_0x4facc4['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x1ceff9=_0x4facc4['plugins']['get']('TrackChangesEditing');_0x1ceff9['enableCommand']('goToPreviousRestrictedEditingException'),_0x1ceff9['enableCommand']('goToNextRestrictedEditingException');const _0x53cf79=_0x4facc4['plugins']['get']('RestrictedEditingModeEditing');_0x53cf79['enableCommand']('trackChanges'),_0x53cf79['enableCommand']('acceptSuggestion'),_0x53cf79['enableCommand']('discardSuggestion'),_0x53cf79['enableCommand']('acceptAllSuggestions'),_0x53cf79['enableCommand']('discardAllSuggestions'),_0x53cf79['enableCommand']('acceptSelectedSuggestions'),_0x53cf79['enableCommand']('discardSelectedSuggestions');}}class It extends _0x47d2c1{['afterInit'](){const _0x5670fe=this['editor'];if(!_0x5670fe['plugins']['has']('ShiftEnter'))return;const _0x10c087=_0x5670fe['plugins']['get']('TrackChangesEditing');_0x10c087['enableCommand']('shiftEnter'),_0x5670fe['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x5670fe),{'priority':'high'}),_0x5670fe['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x5670fe),{'priority':'high'}),_0x5670fe['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x30f258,_0x2a4499,_0x26b80c)=>{_0x26b80c['options']['showSuggestionHighlights']&&je(_0x5670fe,{'showActiveMarker':!0x1})(_0x30f258,_0x2a4499,_0x26b80c);}),_0x10c087['descriptionFactory']['registerElementLabel']('softBreak',_0x121c3c=>c(_0x5670fe['locale'],'ELEMENT_LINE_BREAK',_0x121c3c));}}function je(_0x2fd059,{showActiveMarker:_0xb3b13d=!0x0}={}){return(_0x261506,_0x44fe8e,_0x16f085)=>{const _0x656112=_0x2fd059['plugins']['get']('TrackChangesEditing');if(!_0x16f085['consumable']['test'](_0x44fe8e['markerRange'],_0x261506['name']))return;const _0x4a3e7f=_0x2fd059['model'];for(const _0x1e34de of _0x44fe8e['markerRange']['getItems']()){if(!_0x1e34de['is']('element','softBreak'))continue;const _0x45855d='deletion'==_0x44fe8e['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x784ea8}=_0x656112['_splitMarkerName'](_0x44fe8e['markerName']),_0x1e6b4d=_0x16f085['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x45855d,'data-author-id':_0x784ea8}),_0x512be6=_0x16f085['mapper']['toViewPosition'](_0x4a3e7f['createPositionBefore'](_0x1e34de));_0xb3b13d&&_0x656112['activeMarkers']['includes'](_0x44fe8e['markerName'])&&_0x16f085['writer']['addClass']('ck-suggestion-marker--active',_0x1e6b4d),_0x16f085['writer']['insert'](_0x512be6,_0x1e6b4d),_0x16f085['mapper']['bindElementToMarker'](_0x1e6b4d,_0x44fe8e['markerName']);}};}class _t extends _0x47d2c1{['afterInit'](){const _0x4c7e88=this['editor'],_0x3247a6=_0x4c7e88['model'],_0xa8a90e=_0x4c7e88['locale'];if(!_0x4c7e88['plugins']['has']('StandardEditingModeEditing'))return;const _0x1c4599=_0x4c7e88['plugins']['get']('TrackChangesEditing'),_0x2227d5='restrictedEditingException',_0x5bdb34=_0x4c7e88['commands']['get'](_0x2227d5);_0x1c4599['enableCommand'](_0x2227d5,(_0x20f06b,_0x4bc57c={})=>{const _0x17edb3=_0x3247a6['document']['selection'];if(_0x17edb3['isCollapsed'])return void _0x20f06b(_0x4bc57c);const _0x1593b5=void 0x0!==_0x4bc57c['forceValue']?_0x4bc57c['forceValue']:!_0x5bdb34['value'];_0x3247a6['change'](()=>{const _0x3dd41b=Array['from'](_0x17edb3['getRanges']());for(const _0x5a9d7a of _0x3dd41b){const _0x40a11a=_0x1593b5?[_0x5a9d7a]:io(_0x2227d5,_0x5a9d7a,_0x3247a6);for(const _0x4dc0f4 of _0x40a11a)_0x1c4599['markInlineFormat'](_0x4dc0f4,{'commandName':_0x2227d5,'commandParams':[{'forceValue':_0x1593b5}]});}});}),_0x1c4599['descriptionFactory']['registerDescriptionCallback'](_0x2d32bd=>{if('formatBlock'!=_0x2d32bd['type']&&'formatInline'!=_0x2d32bd['type'])return;const {data:_0x428728}=_0x2d32bd;return _0x428728&&_0x428728['commandName']==_0x2227d5?_0x428728['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0xa8a90e,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0xa8a90e,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x47d2c1{['afterInit'](){const _0x594eea=this['editor'];if(!_0x594eea['plugins']['has']('Style')||!_0x594eea['plugins']['has']('DataSchema'))return;const _0x4a10c0=_0x594eea['plugins']['get']('TrackChangesEditing'),_0x519ad0=_0x594eea['locale'],_0x43bba0=_0x594eea['config']['get']('style')||{},_0x54025f=_0x594eea['plugins']['get']('GeneralHtmlSupport'),_0x2c0fb1=_0x594eea['plugins']['get']('StyleUtils')['normalizeConfig'](_0x594eea['plugins']['get']('DataSchema'),_0x43bba0['definitions']);_0x4a10c0['enableDefaultAttributesIntegration']('style');const _0x9306=new Set();for(const _0x1aad2c of _0x2c0fb1['block']){const _0x3ec62e=_0x54025f['getGhsAttributeNameForElement'](_0x1aad2c['element']);_0x9306['add'](_0x3ec62e);}const _0x50c6b8=new Set();for(const _0x527806 of _0x2c0fb1['inline']){const _0x4b2d7e=_0x54025f['getGhsAttributeNameForElement'](_0x527806['element']);_0x50c6b8['add'](_0x4b2d7e);for(const _0xd45dc4 of _0x527806['ghsAttributes'])_0x50c6b8['add'](_0xd45dc4);}for(const _0x36f487 of _0x9306)_0x4a10c0['registerBlockAttribute'](_0x36f487),_0x4a10c0['descriptionFactory']['registerAttributeLabel'](_0x36f487,c(_0x519ad0,'FORMAT_STYLE'));for(const _0x1629da of _0x50c6b8)_0x4a10c0['registerInlineAttribute'](_0x1629da),_0x4a10c0['descriptionFactory']['registerAttributeLabel'](_0x1629da,c(_0x519ad0,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5ad095=this['editor'],_0x5ad6b6=_0x5ad095['locale'];_0x5ad095['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x13430f=>{if('formatBlock'!=_0x13430f['type']&&'formatInline'!=_0x13430f['type'])return;const {data:_0x18209b}=_0x13430f;return _0x18209b&&'style'===_0x18209b['commandName']?_0x18209b['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x5ad6b6,'*Set\x20format:*\x20%0',_0x18209b['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x5ad6b6,'*Remove\x20format:*\x20%0',_0x18209b['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x47d2c1{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x4279e2){super(_0x4279e2),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0xc098b3=this['editor'],_0x5edde2=_0xc098b3['model']['document']['selection'];if(!_0xc098b3['plugins']['has']('TableEditing'))return;const _0x1dcf82=_0xc098b3['locale'],_0x33e96d=_0xc098b3['plugins']['get']('TrackChangesEditing'),_0x271d16=_0xc098b3['plugins']['get']('TableUtils');_0x33e96d['descriptionFactory']['registerElementLabel']('table',_0x46a799=>c(_0x1dcf82,'ELEMENT_TABLE',_0x46a799)),this['_setupColumnsRowsFixing'](),_0x33e96d['enableCommand']('insertTable'),_0x33e96d['enableCommand']('selectTableRow'),_0x33e96d['enableCommand']('selectTableColumn');for(const _0x2b1906 of['insertTableRowAbove','insertTableRowBelow']){const _0x103ac7=_0xc098b3['commands']['get'](_0x2b1906);_0x33e96d['enableCommand'](_0x2b1906,_0x38e2b2=>{_0xc098b3['model']['change'](_0x55f4b3=>{_0x38e2b2();const _0x2630dc='above'===_0x103ac7['order'],_0x251e43=_0x271d16['getSelectionAffectedTableCells'](_0x5edde2),_0x27b5cf=_0x271d16['getRowIndexes'](_0x251e43),_0x178534=_0x2630dc?_0x27b5cf['first']-0x1:_0x27b5cf['last']+0x1,_0x1ca9d2=_0x251e43[0x0]['findAncestor']('table'),_0x41f1dc=_0x271d16['createTableWalker'](_0x1ca9d2,{'startRow':_0x178534,'endRow':_0x178534}),_0x27f590=Array['from'](_0x41f1dc)['map'](_0x443277=>_0x55f4b3['createRangeOn'](_0x443277['cell']));_0x33e96d['markMultiRangeInsertion'](_0x27f590,'tableRow');});});}for(const _0x38f131 of['insertTableColumnLeft','insertTableColumnRight']){const _0x47e16b=_0xc098b3['commands']['get'](_0x38f131);_0x33e96d['enableCommand'](_0x38f131,_0x52f6f6=>{_0xc098b3['model']['change'](_0x222a28=>{_0x52f6f6();const _0x51f6f9='left'===_0x47e16b['order'],_0x4a8376=_0x271d16['getSelectionAffectedTableCells'](_0x5edde2),_0x98a78a=_0x271d16['getColumnIndexes'](_0x4a8376),_0x1fff75=_0x51f6f9?_0x98a78a['first']-0x1:_0x98a78a['last']+0x1,_0x3feddc=_0x4a8376[0x0]['findAncestor']('table'),_0x31a177=_0x271d16['createTableWalker'](_0x3feddc,{'startRow':0x0,'column':_0x1fff75,'includeAllSlots':!0x1}),_0x33fe77=Array['from'](_0x31a177)['map'](_0xadeb97=>_0x222a28['createRangeOn'](_0xadeb97['cell']));_0x33e96d['markMultiRangeInsertion'](_0x33fe77,'tableColumn');});});}for(const _0x5a85fe of['removeTableRow','removeTableColumn']){const _0x47e613=_0x5a85fe['substr'](0xb),_0x458c24=_0x47e613['toLowerCase'](),_0x4cf108=_0x458c24['substr'](0x0,0x3)+'span',_0x47467f='table'+_0x47e613,_0x3ebbdb='min'+_0x47e613,_0x551651='max'+_0x47e613;_0x33e96d['enableCommand'](_0x5a85fe,()=>{_0xc098b3['model']['change'](_0x611aa1=>{const _0x37a492=_0x271d16['getSelectionAffectedTableCells'](_0x5edde2),_0x29c1db=_0x37a492[0x0]['findAncestor']('table');let _0x44cd8b;if('removeTableRow'==_0x5a85fe){const _0x272404=_0x271d16['getRowIndexes'](_0x37a492);_0x44cd8b={'startRow':_0x272404['first'],'endRow':_0x272404['last'],'includeAllSlots':!0x0};}else{const _0x4622c0=_0x271d16['getColumnIndexes'](_0x37a492);_0x44cd8b={'startColumn':_0x4622c0['first'],'endColumn':_0x4622c0['last'],'includeAllSlots':!0x0};}const _0x144b5e=_0x271d16['createTableWalker'](_0x29c1db,_0x44cd8b),_0x591a8c=Array['from'](_0x144b5e)['map'](({cell:_0x274c07})=>_0x274c07),_0x11029a=Ne(_0x591a8c['filter'](_0x56c72=>_0x56c72['hasAttribute'](_0x4cf108))),_0x289bd1=Ne(_0x591a8c['filter'](_0x82b979=>!_0x82b979['hasAttribute'](_0x4cf108)))['map'](_0x51fe30=>_0x611aa1['createRangeOn'](_0x51fe30)),_0x47da57=_0x33e96d['markMultiRangeDeletion'](_0x289bd1,_0x47467f);if(_0x47da57&&('tableRow'==_0x47da57['subType']||'tableColumn'==_0x47da57['subType'])){const _0x31dbdd=this['_getSuggestionCoords'](_0x47da57);for(const _0x5b7cf6 of _0x11029a){const _0x3d8eac=_0x611aa1['createRangeOn'](_0x5b7cf6),_0xe4dae6=_0x271d16['getCellLocation'](_0x5b7cf6),_0x198b18=_0x5b7cf6['getAttribute'](_0x4cf108)-0x1,_0x3cd254=_0x31dbdd[_0x3ebbdb],_0x17a223=_0x31dbdd[_0x551651];_0x3cd254<=_0xe4dae6[_0x458c24]&&_0xe4dae6[_0x458c24]+_0x198b18<=_0x17a223&&_0x47da57['addRange'](_0x3d8eac);}}});});}function _0x32f725(_0x80b000){const _0x1e4e8c=Array['from'](_0x5edde2['getRanges']())['map'](_0x42973e=>_0x248df8['fromRange'](_0x42973e));_0xc098b3['model']['change'](_0x3d0d81=>{const _0x4caabd=_0x3d0d81['batch'];_0x80b000=_0x80b000['filter'](_0x4ebfe4=>'$graveyard'!=_0x4ebfe4['root']['rootName']),_0x3d0d81['setSelection'](_0x80b000),_0xc098b3['commands']['get']('removeTableRow')['refresh'](),_0xc098b3['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0xc098b3['model']['enqueueChange'](()=>{_0xc098b3['model']['enqueueChange'](_0x4caabd,_0x1a389a=>{const _0x2fa208=_0x1e4e8c['filter'](_0x2dae2f=>'$graveyard'!=_0x2dae2f['root']['rootName']);_0x2fa208['length']>0x0&&_0x1a389a['setSelection'](_0x2fa208);for(const _0x28c551 of _0x1e4e8c)_0x28c551['detach']();});});});}function _0x9ce7bc(_0x56153d){_0xc098b3['model']['change'](_0x200b0d=>{const _0x43d9de=Array['from'](_0x5edde2['getRanges']())['map'](_0x80728b=>_0x248df8['fromRange'](_0x80728b)),_0x39829c=[];for(const _0x3b75de of _0x56153d)for(const _0x32d3b6 of _0x3b75de['getItems']({'shallow':!0x0}))_0x39829c['push'](_0x32d3b6);for(const _0x37d029 of _0x39829c)'$graveyard'!=_0x37d029['root']['rootName']&&(_0x200b0d['setSelection'](_0x200b0d['createPositionAt'](_0x37d029,0x0)),_0xc098b3['commands']['get']('removeTableColumn')['refresh'](),_0xc098b3['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x3ce8f8=_0x43d9de['filter'](_0x46771c=>'$graveyard'!=_0x46771c['root']['rootName']);_0x3ce8f8['length']>0x0&&_0x200b0d['setSelection'](_0x3ce8f8);for(const _0x2b8425 of _0x43d9de)_0x2b8425['detach']();});}function _0x2074d1(_0x4e6552,_0xbbbe29){return _0xbbbe29['every'](_0x3f1596=>_0x4e6552['some'](_0x3af54d=>_0x3af54d['end']['isEqual'](_0x3f1596['start'])||_0x3f1596['end']['isEqual'](_0x3af54d['start'])));}function _0x54a344(_0x4219a7,_0x198b55){return!_0x4219a7['some'](_0x45ab2a=>_0x198b55['some'](_0x3448d5=>_0x45ab2a['isIntersecting'](_0x3448d5)))&&_0x4219a7['some'](_0x428a9a=>_0x198b55['some'](_0x54a368=>_0x428a9a['end']['isTouching'](_0x54a368['start'])));}_0xc098b3['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2e2c1f,_0x551097,_0x5d8348)=>{if(!_0x5d8348['options']['showSuggestionHighlights'])return;const _0x52cbe4=_0x551097['item'];if(!_0x52cbe4)return;const _0x6aadcb=_0x5d8348['mapper']['toViewElement'](_0x52cbe4);function _0x125191(_0xb39aa6){return Array['isArray'](_0xb39aa6)?_0xb39aa6:[_0xb39aa6];}_0x6aadcb&&'tableCell'===_0x52cbe4['name']&&_0x39bcee(_0x6aadcb,_0x5d8348['writer'],(_0x3098e3,_0x3a132b,_0x410a98)=>_0x410a98['addClass'](_0x125191(_0x3a132b['classes']),_0x3098e3),(_0x4e453a,_0x516b32,_0x2ffe3c)=>_0x2ffe3c['removeClass'](_0x125191(_0x516b32['classes']),_0x4e453a));},{'priority':'highest'}),_0x33e96d['descriptionFactory']['registerDescriptionCallback'](_0x19ad3e=>{if('insertion'!=_0x19ad3e['type']&&'deletion'!=_0x19ad3e['type'])return;const _0x228a25=_0x19ad3e['getContainedElement']();if(null!=_0x228a25&&_0x228a25['is']('element','table')){if('insertion'==_0x19ad3e['type']){const _0x179a21=_0x19ad3e['getItems']()['filter'](_0x39d21a=>_0x39d21a['is']('$textProxy'))['map'](_0x321b8f=>_0x321b8f['data']);if(_0x179a21['length'])return{'type':'insertion','content':c(_0x1dcf82,'*Insert:*\x20%0',c(_0x1dcf82,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x179a21['join']('\x20')+'\x22'))};}if('deletion'==_0x19ad3e['type']){const _0x499bc5=_0x19ad3e['getItems']()['filter'](_0x2d8e39=>_0x2d8e39['is']('$textProxy'))['map'](_0x2b262b=>_0x2b262b['data']);if(_0x499bc5['length'])return{'type':'deletion','content':c(_0x1dcf82,'*Remove:*\x20%0',c(_0x1dcf82,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x499bc5['join']('\x20')+'\x22'))};}}}),_0x33e96d['descriptionFactory']['registerDescriptionCallback'](_0x579858=>{if('tableRow'==_0x579858['subType']){const _0x5f8a1c=_0x579858['getItems']()['filter'](_0x1acaff=>_0x1acaff['is']('$textProxy'))['map'](_0x34f0ac=>_0x34f0ac['data']),_0x365875=this['_getSuggestionCoords'](_0x579858),_0x1ea65b=_0x365875['maxRow']-_0x365875['minRow']+0x1;if('insertion'==_0x579858['type'])return _0x5f8a1c['length']?{'type':'insertion','content':c(_0x1dcf82,'*Insert:*\x20%0',c(_0x1dcf82,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1ea65b,'\x22'+_0x5f8a1c['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x1dcf82,'*Insert:*\x20%0',c(_0x1dcf82,'ELEMENT_TABLE_ROW',_0x1ea65b))};if('deletion'==_0x579858['type'])return _0x5f8a1c['length']?{'type':'deletion','content':c(_0x1dcf82,'*Remove:*\x20%0',c(_0x1dcf82,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1ea65b,'\x22'+_0x5f8a1c['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x1dcf82,'*Remove:*\x20%0',c(_0x1dcf82,'ELEMENT_TABLE_ROW',_0x1ea65b))};}if('tableColumn'==_0x579858['subType']){const _0x592897=_0x579858['getItems']()['filter'](_0x3ed4c6=>_0x3ed4c6['is']('$textProxy'))['map'](_0x5ed9df=>_0x5ed9df['data']),_0x3aa06b=this['_getSuggestionCoords'](_0x579858),_0x53ff38=_0x3aa06b['maxColumn']-_0x3aa06b['minColumn']+0x1;if('insertion'==_0x579858['type'])return _0x592897['length']?{'type':'insertion','content':c(_0x1dcf82,'*Insert:*\x20%0',c(_0x1dcf82,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x53ff38,'\x22'+_0x592897['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x1dcf82,'*Insert:*\x20%0',c(_0x1dcf82,'ELEMENT_TABLE_COLUMN',_0x53ff38))};if('deletion'==_0x579858['type'])return _0x592897['length']?{'type':'deletion','content':c(_0x1dcf82,'*Remove:*\x20%0',c(_0x1dcf82,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x53ff38,'\x22'+_0x592897['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x1dcf82,'*Remove:*\x20%0',c(_0x1dcf82,'ELEMENT_TABLE_COLUMN',_0x53ff38))};}}),_0x33e96d['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x32f725),_0x33e96d['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x32f725),_0x33e96d['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x9ce7bc),_0x33e96d['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x9ce7bc),_0x33e96d['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x2074d1),_0x33e96d['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x2074d1),_0x33e96d['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x54a344),_0x33e96d['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x54a344);}['_acceptFormatSuggestionCallbackFactory'](){const _0x26d87d=this['editor'],_0x1e6c03=_0x26d87d['model']['document']['selection'];return(_0x51c76f,_0x4b019c)=>{_0x26d87d['model']['change'](_0x469664=>{const {commandName:_0x472f06,commandParams:_0x5e38a9}=_0x4b019c;let _0x434204=_0x51c76f[0x0]['end']['nodeBefore'];_0x5e38a9&&_0x5e38a9[0x0]&&!0x1===_0x5e38a9[0x0]['forceValue']&&(_0x434204=_0x51c76f[0x0]['start']['nodeAfter']);const _0x113d04=_0x469664['createRangeIn'](_0x434204);if('$graveyard'==_0x113d04['root']['rootName'])return;const _0x4c671e=Array['from'](_0x1e6c03['getRanges']())['map'](_0x2abc61=>_0x248df8['fromRange'](_0x2abc61));_0x469664['setSelection'](_0x113d04),_0x26d87d['commands']['get'](_0x472f06)['refresh'](),_0x5e38a9['push']({'forceDefaultExecution':!0x0}),_0x26d87d['execute'](_0x472f06,..._0x5e38a9);const _0x45a7cf=_0x4c671e['filter'](_0x31a98a=>'$graveyard'!=_0x31a98a['root']['rootName']);_0x45a7cf['length']>0x0&&_0x469664['setSelection'](_0x45a7cf);for(const _0x4c216d of _0x4c671e)_0x4c216d['detach']();});};}['_getCoordsForCells'](_0x492489){const _0x4c8651=this['editor']['plugins']['get']('TableUtils');let _0x159e8e=Number['MAX_SAFE_INTEGER'],_0x2e4847=Number['MIN_SAFE_INTEGER'],_0x1e3a48=Number['MAX_SAFE_INTEGER'],_0x5619dd=Number['MIN_SAFE_INTEGER'];for(const _0x3cdf37 of _0x492489){if('$graveyard'==_0x3cdf37['root']['rootName'])continue;const {row:_0x4d9144,column:_0xd6d548}=_0x4c8651['getCellLocation'](_0x3cdf37),_0x48e8d2=_0x3cdf37['hasAttribute']('rowspan')?_0x3cdf37['getAttribute']('rowspan')-0x1:0x0,_0x1bedbb=_0x3cdf37['hasAttribute']('colspan')?_0x3cdf37['getAttribute']('colspan')-0x1:0x0;_0x159e8e=_0x4d9144<_0x159e8e?_0x4d9144:_0x159e8e,_0x2e4847=_0x4d9144+_0x48e8d2>_0x2e4847?_0x4d9144+_0x48e8d2:_0x2e4847,_0x1e3a48=_0xd6d548<_0x1e3a48?_0xd6d548:_0x1e3a48,_0x5619dd=_0xd6d548+_0x1bedbb>_0x5619dd?_0xd6d548+_0x1bedbb:_0x5619dd;}return{'minRow':_0x159e8e,'maxRow':_0x2e4847,'minColumn':_0x1e3a48,'maxColumn':_0x5619dd};}['_setupColumnsRowsFixing'](){const _0x5d0a5b=this['editor'],_0x5d5295=_0x5d0a5b['plugins']['get']('TrackChangesEditing'),_0x4c7ec4=_0x5d0a5b['plugins']['get']('TableUtils');_0x5d0a5b['model']['document']['on']('change:data',()=>{const _0x3d8ee9=Array['from'](_0x5d0a5b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x584570,data:_0x11861e}of _0x3d8ee9){const {group:_0x24b6af,id:_0x4628fc,subType:_0x107a75}=_0x5d5295['_splitMarkerName'](_0x584570);if('suggestion'!=_0x24b6af)continue;if(null!=_0x11861e['oldRange'])continue;const _0x172695=_0x5d5295['getSuggestion'](_0x4628fc);this['_tablePostFixingSubtypes']['includes'](_0x107a75)&&this['_tableSuggestions']['add'](_0x172695);}},{'priority':'low'});const _0xd61de2=(_0x2791cf,_0x4ae00f)=>{let _0x53e7e3=!0x1;const _0x5595d6=_0x4ae00f['createRangeOn'](_0x2791cf),_0x5dff3a=_0x2791cf['findAncestor']('table'),_0x195553=_0x4c7ec4['getCellLocation'](_0x2791cf);for(const _0x4b8257 of this['_tableSuggestions']){const _0x447cae=_0x4b8257['subType'],_0xf50f9a=_0x447cae['startsWith']('tablePaste'),_0x2621ff=_0x447cae['substr'](_0xf50f9a?0xa:0x5),_0x4f8333=_0x2621ff['toLowerCase'](),_0x333c8b=_0x4f8333['substr'](0x0,0x3)+'span',_0x1c3443='min'+_0x2621ff,_0x115c34='max'+_0x2621ff;if(!_0x4b8257['isInContent'])continue;if(_0x5dff3a!=_0x4b8257['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x4b8257['isIntersectingWithRange'](_0x5595d6))continue;const _0x2a0103=_0x2791cf['hasAttribute'](_0x333c8b)?_0x2791cf['getAttribute'](_0x333c8b)-0x1:0x0,_0x248a59=this['_getSuggestionCoords'](_0x4b8257),_0x33a4ba=_0x248a59[_0x1c3443],_0x16acd1=_0x248a59[_0x115c34];_0x33a4ba<=_0x195553[_0x4f8333]&&_0x195553[_0x4f8333]+_0x2a0103<=_0x16acd1&&(_0x4b8257['addRange'](_0x5595d6),_0x53e7e3=!0x0);}return _0x53e7e3;};_0x5d0a5b['model']['document']['registerPostFixer'](_0x2358dc=>{let _0x329795=!0x1;for(const _0x270a41 of _0x5d0a5b['model']['document']['differ']['getChanges']())if('insert'==_0x270a41['type']){if('tableRow'==_0x270a41['name']){for(const _0x47f973 of _0x270a41['position']['nodeAfter']['getChildren']())_0x329795=_0x329795||_0xd61de2(_0x47f973,_0x2358dc);}else'tableCell'==_0x270a41['name']&&(_0x329795=_0x329795||_0xd61de2(_0x270a41['position']['nodeAfter'],_0x2358dc));}return _0x329795;});}['_getSuggestionCoords'](_0x1eeb33){return this['_getCoordsForCells'](_0x1eeb33['getRanges']()['map'](_0x41863c=>_0x41863c['start']['nodeAfter']));}}function Ne(_0x3e3a2d){return Array['from'](new Set(_0x3e3a2d)['values']());}class Nt extends _0x47d2c1{static get['requires'](){return[Ct];}['afterInit'](){const _0x2f7a5f=this['editor'],_0x51b96f=_0x2f7a5f['model']['document']['selection'],_0x475987=_0x2f7a5f['locale'];if(!_0x2f7a5f['plugins']['has']('TableEditing'))return;const _0x39a86d=_0x2f7a5f['plugins']['get']('TrackChangesEditing'),_0x44a543=_0x2f7a5f['plugins']['get']('TableUtils'),_0x24a86e=_0x2f7a5f['plugins']['get'](Ct);_0x24a86e['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x39a86d['enableCommand']('mergeTableCells',()=>{const _0x4a915a=_0x44a543['getSelectionAffectedTableCells'](_0x2f7a5f['model']['document']['selection']);_0x2f7a5f['model']['change'](()=>{_0x39a86d['markMultiRangeBlockFormat'](_0x4a915a,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x2f7a5f['commands']['get']('mergeTableCells')['on']('execute',(_0x2db2af,_0x5a43e0)=>{_0x2f7a5f['commands']['get']('trackChanges')['value']&&(_0x5a43e0['length']>0x0&&_0x5a43e0[_0x5a43e0['length']-0x1]&&_0x5a43e0[_0x5a43e0['length']-0x1]['forceDefaultExecution']||_0x39a86d['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x2db2af['stop']());},{'priority':'highest'});for(const _0x3998c2 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x42a9c6=_0x2f7a5f['commands']['get'](_0x3998c2);_0x39a86d['enableCommand'](_0x3998c2,()=>{const _0xb5c816=_0x2f7a5f['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4f4594=>_0x4f4594['is']('element','tableCell')),_0x1ae107=_0x42a9c6['value'];_0x2f7a5f['model']['change'](()=>{_0x39a86d['markMultiRangeBlockFormat']([_0xb5c816,_0x1ae107],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x2608e7 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x4bea1c=_0x2f7a5f['commands']['get'](_0x2608e7);_0x39a86d['enableCommand'](_0x2608e7,()=>{const _0x19ccb6=_0x44a543['getSelectionAffectedTableCells'](_0x2f7a5f['model']['document']['selection'])[0x0],_0x1b0123=_0x19ccb6['findAncestor']('table'),{column:_0x26a90b,row:_0x591230}=_0x44a543['getCellLocation'](_0x19ccb6);let _0x34578a=[];if('horizontally'==_0x4bea1c['direction']){const _0x506993=_0x44a543['createTableWalker'](_0x1b0123,{'startRow':_0x591230,'endRow':_0x591230,'includeAllSlots':!0x0});_0x34578a=Array['from'](_0x506993)['map'](_0xb96b25=>_0xb96b25['cell']);}else{const _0x3c0313=_0x44a543['createTableWalker'](_0x1b0123,{'column':_0x26a90b,'includeAllSlots':!0x0});_0x34578a=Array['from'](_0x3c0313)['map'](_0x2dccbb=>_0x2dccbb['cell']);}_0x2f7a5f['model']['change'](_0x3e2e4f=>{_0x39a86d['markBlockFormat'](_0x3e2e4f['createRangeOn'](_0x19ccb6),{'commandName':_0x2608e7,'commandParams':[]},_0x34578a,_0x2608e7);});});}_0x39a86d['descriptionFactory']['registerDescriptionCallback'](_0x3a49d5=>{if('formatBlock'!=_0x3a49d5['type']&&'formatInline'!=_0x3a49d5['type'])return;const {data:_0x55c2a2}=_0x3a49d5;return _0x55c2a2&&'mergeTableCells'==_0x55c2a2['commandName']?{'type':'format','content':c(_0x475987,'*Merge\x20cells*')}:void 0x0;}),_0x39a86d['descriptionFactory']['registerDescriptionCallback'](_0x4d29cd=>{if('formatBlock'!=_0x4d29cd['type']&&'formatInline'!=_0x4d29cd['type'])return;const {data:_0x3febc0}=_0x4d29cd;return _0x3febc0?'splitTableCellVertically'==_0x3febc0['commandName']?{'type':'format','content':c(_0x475987,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x3febc0['commandName']?{'type':'format','content':c(_0x475987,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x15244d=_0x24a86e['_acceptFormatSuggestionCallbackFactory']();for(const _0x3b536a of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x39a86d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3b536a,'accept',_0x15244d);for(const _0x4bf2bd of['splitTableCellVertically','splitTableCellHorizontally'])_0x39a86d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4bf2bd,'accept',_0x15244d);_0x39a86d['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x4ec9ae=>{_0x2f7a5f['model']['change'](_0x4627c6=>{const _0x40f6db=Array['from'](_0x51b96f['getRanges']())['map'](_0x733865=>_0x248df8['fromRange'](_0x733865));_0x4627c6['setSelection'](_0x4ec9ae),_0x2f7a5f['commands']['get']('mergeTableCells')['refresh'](),_0x2f7a5f['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x309eb2=_0x40f6db['filter'](_0x2abc18=>'$graveyard'!=_0x2abc18['root']['rootName']);_0x309eb2['length']>0x0&&_0x4627c6['setSelection'](_0x309eb2);for(const _0x31595c of _0x40f6db)_0x31595c['detach']();});});for(const _0x5f149c of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x48e54e=_0x2f7a5f['commands']['get'](_0x5f149c);_0x48e54e['on']('set:isEnabled',(_0x4950fb,_0x240cb6,_0x3dd52e)=>{if(_0x3dd52e){const _0x5e5962=_0x2f7a5f['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xbb0f0f=>_0xbb0f0f['is']('element','tableCell'));this['_areMergableCells'](_0x48e54e['value'],_0x5e5962)||(_0x4950fb['return']=!0x1,_0x4950fb['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x294388=this['editor']['commands']['get']('mergeTableCells'),_0x1d96f7=this['editor']['plugins']['get']('TableUtils');if(!_0x294388['isEnabled'])return!0x1;const _0x52fec2=_0x1d96f7['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x3205bd of _0x52fec2)for(const _0x26475a of _0x52fec2)if(_0x3205bd!=_0x26475a&&!this['_areMergableCells'](_0x3205bd,_0x26475a))return!0x1;return!0x0;}['_areMergableCells'](_0x8678d6,_0x368bea){const _0x1048e2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3ef511=this['editor']['model']['createRangeOn'](_0x8678d6),_0x162b81=this['editor']['model']['createRangeOn'](_0x368bea),_0x3f0979=new Set(),_0x468f0b=new Set();for(const _0x5b8c79 of _0x1048e2['getSuggestions']())if(('insertion'==_0x5b8c79['type']||'deletion'==_0x5b8c79['type']||'mergeTableCells'==_0x5b8c79['subType'])&&_0x5b8c79['isInContent']){for(const _0x14f233 of _0x5b8c79['getRanges']())_0x14f233['containsRange'](_0x3ef511,!0x0)&&_0x3f0979['add'](_0x5b8c79['type']+':'+_0x5b8c79['author']['id']),_0x14f233['containsRange'](_0x162b81,!0x0)&&_0x468f0b['add'](_0x5b8c79['type']+':'+_0x5b8c79['author']['id']);}if(_0x3f0979['size']!=_0x468f0b['size'])return!0x1;for(const _0x4fe1bb of _0x3f0979)if(!_0x468f0b['has'](_0x4fe1bb))return!0x1;return!0x0;}}class Dt extends _0x47d2c1{static get['requires'](){return[Ct];}['afterInit'](){const _0x39f3aa=this['editor'];if(!_0x39f3aa['plugins']['has']('TableEditing'))return;const _0x9bb0c2=_0x39f3aa['locale'],_0x28ab4b=_0x39f3aa['plugins']['get']('TrackChangesEditing');_0x28ab4b['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x28ab4b['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x28ab4b['registerBlockAttribute']('headingRows'),_0x28ab4b['registerBlockAttribute']('headingColumns'),_0x28ab4b['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x9bb0c2,'FORMAT_HEADER_ROW')),_0x28ab4b['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x9bb0c2,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x470e73=this['editor']['plugins']['get']('TrackChangesEditing'),_0x470a73=this['editor']['plugins']['get']('TableUtils'),_0x4e48d9=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x35ac49({showActiveMarker:_0x9e33e5=!0x0,setDataAttribute:_0x1c0f35=!0x0}={}){return(_0x2cba1a,_0x3d36aa,_0x4fb6ca)=>{const {type:_0x222bb6,id:_0x22c43d}=_0x470e73['_splitMarkerName'](_0x3d36aa['markerName']),_0x13fa77=_0x470e73['getSuggestion'](_0x22c43d),_0x2bee59=_0x13fa77['data'];if('formatBlock'!=_0x13fa77['type']||!_0x2bee59||'setTableColumnHeader'!=_0x2bee59['commandName'])return;if(_0x3d36aa['item'])return void _0x2cba1a['stop']();if(!_0x4fb6ca['consumable']['consume'](_0x3d36aa['markerRange'],_0x2cba1a['name']))return;const _0x603109=_0x3d36aa['markerRange']['start']['nodeAfter'],_0x16ab2b=_0x3d36aa['markerRange']['end']['nodeBefore'],_0x44abef=_0x603109['parent']['parent'],{column:_0x4513dc}=_0x470a73['getCellLocation'](_0x603109),{column:_0x9cdf23}=_0x470a73['getCellLocation'](_0x16ab2b);for(let _0xf33627=_0x4513dc;_0xf33627<=_0x9cdf23;_0xf33627++){const _0x180c1d=_0x470a73['createTableWalker'](_0x44abef,{'column':_0xf33627,'includeAllSlots':!0x1});for(const _0x1d1526 of _0x180c1d){const _0x366b99=_0x1d1526['cell'],_0x1ec2e8=_0x4fb6ca['mapper']['toViewElement'](_0x366b99);_0x4fb6ca['writer']['addClass']('ck-suggestion-marker-'+_0x222bb6,_0x1ec2e8),_0x1c0f35&&_0x4fb6ca['writer']['setAttribute']('data-suggestion',_0x22c43d,_0x1ec2e8),_0x4fb6ca['mapper']['bindElementToMarker'](_0x1ec2e8,_0x3d36aa['markerName']),_0x9e33e5&&(_0x470e73['activeMarkers']['includes'](_0x3d36aa['markerName'])?_0x4fb6ca['writer']['addClass']('ck-suggestion-marker--active',_0x1ec2e8):_0x4fb6ca['writer']['removeClass']('ck-suggestion-marker--active',_0x1ec2e8));}}};}_0x470e73['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x4e48d9),_0x470e73['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x4e48d9),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x35ac49(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x358f73,_0x22ca68,_0x5190b2)=>{_0x5190b2['options']['showSuggestionHighlights']&&_0x35ac49({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x358f73,_0x22ca68,_0x5190b2);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x5a405a,_0x258e9c,_0xcfd84c)=>{const {type:_0x2b68a3,id:_0x152faa}=_0x470e73['_splitMarkerName'](_0x258e9c['markerName']),_0x36b96f=_0x470e73['getSuggestion'](_0x152faa),_0x1d7d27=_0x36b96f['data'];if('formatBlock'!=_0x36b96f['type']||!_0x1d7d27||'setTableColumnHeader'!=_0x1d7d27['commandName'])return;const _0x178a44=_0xcfd84c['mapper']['markerNameToElements'](_0x258e9c['markerName']);if(_0x178a44){for(const _0x2496dd of _0x178a44)_0xcfd84c['writer']['removeClass']('ck-suggestion-marker-'+_0x2b68a3,_0x2496dd),_0xcfd84c['writer']['removeClass']('ck-suggestion-marker--active',_0x2496dd),_0xcfd84c['writer']['removeAttribute']('data-suggestion',_0x2496dd),_0xcfd84c['mapper']['unbindElementFromMarkerName'](_0x2496dd,_0x258e9c['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3a254f=this['editor'],_0x904c79=_0x3a254f['locale'];function _0x5295f4(_0x72531e){return{'type':'format','content':c(_0x904c79,'*Format:*\x20%0',_0x72531e)};}_0x3a254f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x373a45=>{if('formatBlock'!=_0x373a45['type'])return;const {data:_0x3b1eea}=_0x373a45;if(_0x3b1eea){if('setTableRowHeader'==_0x3b1eea['commandName']){const _0x5d168f=_0x3b1eea['commandParams'][0x0]['forceValue'];return _0x5295f4(c(_0x904c79,_0x5d168f?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x3b1eea['commandName']){const _0x197189=_0x3b1eea['commandParams'][0x0]['forceValue'];return _0x5295f4(c(_0x904c79,_0x197189?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Ye extends _0x47d2c1{['afterInit'](){const _0x3c091e=this['editor'],_0x2a3f96=_0x3c091e['locale'],_0x461d5f=_0x3c091e['plugins']['get']('TrackChangesEditing');function _0x4fa91b(_0x1abd12){return{'type':'format','content':''+c(_0x2a3f96,'*Set\x20table\x20type:*\x20%0',_0x1abd12)};}_0x3c091e['plugins']['has']('TableLayout')&&(_0x461d5f['enableCommand']('insertTableLayout'),_0x461d5f['enableDefaultAttributesIntegration']('tableType'),_0x461d5f['registerBlockAttribute']('tableType'),_0x461d5f['descriptionFactory']['registerElementLabel'](_0x54ace3=>_0x54ace3['is']('element','table')&&'layout'===_0x54ace3['getAttribute']('tableType'),_0xa26728=>c(_0x2a3f96,'ELEMENT_LAYOUT_TABLE',_0xa26728)),_0x461d5f['descriptionFactory']['registerDescriptionCallback'](_0x361962=>{const {data:_0x35c1c9}=_0x361962;if(_0x35c1c9&&'tableType'==_0x35c1c9['key'])switch(_0x35c1c9['newValue']){case'layout':return _0x4fa91b(c(_0x2a3f96,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x4fa91b(c(_0x2a3f96,'ELEMENT_CONTENT_TABLE'));}}));}}const xe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Oe=Object['fromEntries'](xe['map'](_0x56c6d4=>[_0x56c6d4,null]));class $t extends _0x47d2c1{static get['requires'](){return[Ct];}['afterInit'](){const _0x1b1598=this['editor'];if(!_0x1b1598['plugins']['has']('TableClipboard'))return;const _0x1ff566=_0x1b1598['plugins']['get']('TrackChangesEditing'),_0x3b96eb=_0x1b1598['plugins']['get']('TableUtils'),_0x50535c=_0x1b1598['plugins']['get'](Ct),_0x4c272b=_0x1b1598['plugins']['get']('TableClipboard'),_0x15d9a4=_0x1b1598['plugins']['get']('TableSelection'),_0x1faf03=_0x1b1598['plugins']['get'](_0x2ce8bf);_0x50535c['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x1b1598['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x1b1598['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x794ba2=null,_0x2228b1=!0x1;_0x1faf03['on']('contentInsertion',(_0x33b6e2,_0x51d258)=>{_0x2228b1='paste'===_0x51d258['method'];}),_0x1b1598['model']['on']('insertContent',(_0x41f524,_0x492086)=>{if(!_0x2228b1&&null===_0x15d9a4['getSelectedTableCells']())return;const [_0x343c96,_0x141c22]=_0x492086,_0x4e8426=_0x492086[_0x492086['length']-0x1];_0x4e8426&&_0x4e8426['forceDefaultExecution']||_0x1ff566['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0xfd2aa9,_0x4a92e5,_0x38516c,_0x3cc5fb,_0x4f8ad5){if(_0x4a92e5&&!_0x4a92e5['is']('documentSelection'))return!0x1;const _0x5f3ece=_0x4f8ad5['getTableIfOnlyTableInContent'](_0xfd2aa9,_0x38516c);if(!_0x5f3ece||!De(_0x5f3ece,void 0x0,_0x3cc5fb))return!0x1;const _0x570164=_0x3cc5fb['getSelectionAffectedTableCells'](_0x38516c['document']['selection']);if(!_0x570164['length'])return!0x1;const _0x2d8ec3=_0x570164[0x0]['findAncestor']('table'),_0x21edfe=_0x3cc5fb['getRowIndexes'](_0x570164),_0x1e5bed=_0x3cc5fb['getColumnIndexes'](_0x570164),_0x22e4e3={'startRow':_0x21edfe['first'],'endRow':_0x21edfe['last'],'startColumn':_0x1e5bed['first'],'endColumn':_0x1e5bed['last']};return 0x1==_0x570164['length']&&(_0x22e4e3['endRow']+=_0x3cc5fb['getRows'](_0x5f3ece)-0x1,_0x22e4e3['endColumn']+=_0x3cc5fb['getColumns'](_0x5f3ece)-0x1),De(_0x2d8ec3,_0x22e4e3,_0x3cc5fb);}(_0x343c96,_0x141c22,_0x1b1598['model'],_0x3b96eb,_0x4c272b)&&(_0x41f524['stop'](),_0x794ba2={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x1b1598['model']['change'](()=>{_0x1b1598['model']['insertContent'](_0x492086[0x0],_0x492086[0x1],_0x492086[0x2],{'forceDefaultExecution':!0x0});const _0xe8aa3e=_0x52a841(),{rowInsertionRanges:_0x4b0bf2,columnInsertionRanges:_0xf8ef7f,insertionRanges:_0x28c385,deletionRanges:_0x37ee91,cells:_0x2496dc}=_0x794ba2;_0x4b0bf2['length']&&_0x1ff566['markMultiRangeInsertion'](_0x4b0bf2,'tablePasteRow',{'tablePasteChainId':_0xe8aa3e}),_0xf8ef7f['length']&&_0x1ff566['markMultiRangeInsertion'](_0xf8ef7f,'tablePasteColumn',{'tablePasteChainId':_0xe8aa3e}),_0x28c385['length']&&(_0x1ff566['markMultiRangeInsertion'](_0x28c385,'tablePaste',{'tablePasteChainId':_0xe8aa3e,'skipNestingCheck':!0x0}),_0x28c385['forEach'](_0x5e4e33=>_0x5e4e33['detach']?.())),_0x37ee91['length']&&(_0x1ff566['markMultiRangeDeletion'](_0x37ee91,'tablePaste',{'tablePasteChainId':_0xe8aa3e,'skipNestingCheck':!0x0}),_0x37ee91['forEach'](_0x5e877e=>_0x5e877e['detach']?.()));const _0x1060d1=_0x1ff566['markMultiRangeBlockFormat'](_0x2496dc['map'](({element:_0x22a04b})=>_0x22a04b),{'formatGroupId':_0x52a841()},[],'tablePasteCell',{'tablePasteChainId':_0xe8aa3e});if(_0x1060d1){const _0x491359=_0x1060d1['getMarkers'](),_0x4ca0ac=[];for(const {element:_0x3ee77f,attributes:_0xfcb0c5}of _0x2496dc){if(!_0xfcb0c5)continue;const _0xa96dd0=_0x1b1598['model']['createRangeOn'](_0x3ee77f),_0x34d67b=_0x491359['find'](_0x113883=>_0x113883['getRange']()['isEqual'](_0xa96dd0));_0x34d67b&&_0x4ca0ac['push']([_0x34d67b['name'],_0xfcb0c5]);}_0x4ca0ac['length']&&_0x1060d1['setAttribute']('markerAttributes',Object['fromEntries'](_0x4ca0ac));}_0x794ba2=null;}));},{'priority':_0x3605c8['high']+0xa}),_0x1faf03['on']('contentInsertion',()=>{_0x2228b1=!0x1;},{'priority':'lowest'}),_0x1b1598['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x525654,_0x354076)=>{const [_0x530848,_0x2674ea,,_0x31a574]=_0x354076;if(!_0x794ba2)return;_0x525654['stop']();const _0x2da00a=_0x530848['cell'],_0x492bcb=_0x2674ea,_0x487fdf=Ue(_0x2da00a),_0x19c466=Ue(_0x492bcb);_0x525654['return']=_0x2da00a;let _0x5f2aec=null,_0x34e622=null;if(_0x19c466||_0x487fdf){if(_0x487fdf&&!_0x19c466){_0x31a574['remove'](_0x2da00a['getChild'](0x0));for(const _0x8a8678 of Array['from'](_0x492bcb['getChildren']()))_0x31a574['insert'](_0x8a8678,_0x2da00a,'end');const _0x456c3f=_0x794ba2['rowInsertionIndexes']['includes'](_0x530848['row']),_0x44ffc2=_0x794ba2['columnInsertionIndexes']['includes'](_0x530848['column']);_0x456c3f||_0x44ffc2||(_0x5f2aec=_0x248df8['fromRange'](_0x31a574['createRangeIn'](_0x2da00a)));}else _0x19c466&&!_0x487fdf&&(_0x34e622=_0x31a574['createRangeIn'](_0x2da00a));}else{const _0x592bc4=_0x31a574['createElement']('tableCellSuggestion'),_0x2034e4=_0x31a574['createElement']('tableCellSuggestion');_0x31a574['wrap'](_0x31a574['createRangeIn'](_0x2da00a),_0x2034e4),_0x31a574['insert'](_0x592bc4,_0x2da00a,0x0);for(const _0x55e9db of Array['from'](_0x492bcb['getChildren']()))_0x31a574['insert'](_0x55e9db,_0x592bc4,'end');_0x5f2aec=_0x248df8['fromRange'](_0x31a574['createRangeOn'](_0x592bc4)),_0x34e622=_0x248df8['fromRange'](_0x31a574['createRangeOn'](_0x2034e4));}const _0x4c150=Array['from'](_0x492bcb['getAttributes']())['filter'](([_0x135ff3])=>xe['includes'](_0x135ff3));_0x794ba2['cells']['push']({'element':_0x2da00a,'attributes':_0x4c150['length']?Object['fromEntries'](_0x4c150):null}),_0x5f2aec&&_0x794ba2['insertionRanges']['push'](_0x5f2aec),_0x34e622&&_0x794ba2['deletionRanges']['push'](_0x34e622);},{'priority':'high'}),_0x3b96eb['on']('insertColumns',(_0x8144f0,_0x358b1b)=>{const [_0x2f6b81,_0x4fa93b={}]=_0x358b1b;if(!_0x794ba2)return;const _0x190811=_0x4fa93b['at']||0x0,_0x4092f1=_0x4fa93b['columns']||0x1;_0x794ba2['columnInsertionIndexes']=new Array(_0x4092f1)['fill'](_0x190811)['map']((_0x44f7a4,_0x43a16f)=>_0x44f7a4+_0x43a16f);for(const {cell:_0x188c48}of _0x3b96eb['createTableWalker'](_0x2f6b81,{'startColumn':_0x190811,'endColumn':_0x190811+_0x4092f1-0x1}))_0x794ba2['columnInsertionRanges']['push'](_0x1b1598['model']['createRangeOn'](_0x188c48));},{'priority':'low'}),_0x3b96eb['on']('insertRows',(_0x35614d,_0x5b9232)=>{const [_0x173aaa,_0x115d86={}]=_0x5b9232;if(!_0x794ba2)return;const _0x295364=_0x115d86['at']||0x0,_0x79b8f9=_0x115d86['rows']||0x1;_0x794ba2['rowInsertionIndexes']=new Array(_0x79b8f9)['fill'](_0x295364)['map']((_0x3bceac,_0x2e9d6f)=>_0x3bceac+_0x2e9d6f);for(const {cell:_0x4d962d}of _0x3b96eb['createTableWalker'](_0x173aaa,{'startRow':_0x295364,'endRow':_0x295364+_0x79b8f9-0x1}))_0x794ba2['rowInsertionRanges']['push'](_0x1b1598['model']['createRangeOn'](_0x4d962d));},{'priority':'low'}),_0x1ff566['descriptionFactory']['registerDescriptionCallback'](_0x13fce=>{if(_0x13fce['subType']&&_0x13fce['subType']['startsWith']('tablePaste'))return _0x13fce['previous']?{}:{'type':'insertion','content':c(_0x1b1598['locale'],'*Replace\x20table\x20cells*')};});const _0x114a72=()=>!0x1;for(const _0x4d7c7e of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x1ff566['_suggestionFactory']['registerCustomCallback']('insertion',_0x4d7c7e,'join',_0x114a72),_0x1ff566['_suggestionFactory']['registerCustomCallback']('deletion',_0x4d7c7e,'join',_0x114a72),_0x1ff566['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4d7c7e,'join',_0x114a72);_0x1ff566['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x114a72),_0x1ff566['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x3a8456,_0x3ac924,_0x113b38)=>{const _0x40bcd9=_0x3a8456['map'](_0x5ebb29=>_0x5ebb29['getContainedElement']())['filter'](_0x3c774e=>_0x3c774e),_0x7c9f64=new Map(_0x40bcd9['map'](_0x11220c=>[_0x11220c,null]));if(_0x794ba2){for(const {element:_0x5d678e,attributes:_0x355394}of _0x794ba2['cells'])_0x355394&&_0x7c9f64['set'](_0x5d678e,_0x355394);}else{if(_0x113b38&&_0x113b38['markerAttributes'])for(const [_0x41ff3d,_0x1852e7]of Object['entries'](_0x113b38['markerAttributes'])){const _0x1b0218=_0x1b1598['model']['markers']['get'](_0x41ff3d),_0x57a22f=_0x1b0218?_0x1b0218['getRange']()['getContainedElement']():null;_0x57a22f&&_0x7c9f64['set'](_0x57a22f,_0x1852e7);}}_0x1b1598['model']['change'](_0xd1380e=>{for(const [_0x2ad857,_0x37381c]of _0x7c9f64)_0xd1380e['setAttributes']({...Oe,..._0x37381c},_0x2ad857);});});const _0x1ececb=(_0xe709cc,_0x1d7d41)=>{_0x1ff566['_suggestionFactory']['registerCustomCallback'](_0xe709cc,'tablePaste',_0x1d7d41,(_0x336c97,_0x5c2d8b,_0x47b61f)=>{_0x1b1598['model']['change'](_0x473c07=>{const _0x54bc8b=[];for(const _0x160cac of _0x336c97){const _0x558302=_0x160cac['start']['nodeAfter'];_0x558302['is']('element','tableCellSuggestion')&&_0x54bc8b['push'](_0x558302);}_0x1ff566['_suggestionFactory']['getSuggestionCallback'](_0xe709cc,null,_0x1d7d41)(_0x336c97,_0x5c2d8b,_0x47b61f);for(const _0x25eb7 of _0x54bc8b)'$graveyard'!=_0x25eb7['root']['rootName']&&_0x473c07['unwrap'](_0x25eb7);});});};_0x1ececb('insertion','accept'),_0x1ececb('insertion','discard'),_0x1ececb('deletion','accept'),_0x1ececb('deletion','discard'),_0x1ff566['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x444d4d=>{const _0x1d61cb=_0x444d4d['map'](_0x2ce221=>_0x2ce221['getContainedElement']()),_0x5963fa=_0x1d61cb[0x0]['findAncestor']('table'),{minRow:_0x2e7a4c,maxRow:_0xf7876f}=_0x50535c['_getCoordsForCells'](_0x1d61cb);_0x3b96eb['removeRows'](_0x5963fa,{'at':_0x2e7a4c,'rows':_0xf7876f-_0x2e7a4c+0x1});}),_0x1ff566['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x117d25=>{const _0x1fa318=_0x117d25['map'](_0x29a0b6=>_0x29a0b6['getContainedElement']()),_0x1ed452=_0x1fa318[0x0]['findAncestor']('table'),{minColumn:_0x3be330,maxColumn:_0x4131a3}=_0x50535c['_getCoordsForCells'](_0x1fa318);_0x3b96eb['removeColumns'](_0x1ed452,{'at':_0x3be330,'columns':_0x4131a3-_0x3be330+0x1});});const _0x27abfb=(_0x48189c,_0x5ec30e)=>{if(!_0x5ec30e['subType']||!_0x5ec30e['subType']['startsWith']('tablePaste'))return;const _0x33c045=_0x5ec30e['attributes']['tablePasteChainId'],_0x5df7a3=_0x1ff566['getSuggestions']()['filter'](_0x56b534=>_0x56b534['isInContent']&&_0x56b534['attributes']&&_0x56b534['attributes']['tablePasteChainId']==_0x33c045);_0x5df7a3['length']&&_0x5ec30e['getAllAdjacentSuggestions']()['length']!=_0x5df7a3['length']&&_0x5df7a3['reduce']((_0x56759d,_0xf70fa7)=>(_0x56759d['next']=_0xf70fa7,_0xf70fa7['previous']=_0x56759d,_0xf70fa7));};function _0x1f5695(_0x936e85,_0x43a049=!0x0){const {id:_0x341295,authorId:_0x13fc65}=_0x1ff566['_splitMarkerName'](_0x936e85['markerName']),_0x3233dd=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x7e5d45=_0x1ff566['activeMarkers']['includes'](_0x936e85['markerName']);return _0x7e5d45&&_0x3233dd['push']('ck-suggestion-marker--active'),{'classes':_0x3233dd,'attributes':{'data-suggestion':_0x341295,'data-author-id':_0x13fc65},'priority':_0x7e5d45&&_0x43a049?0xbc2:0xbb8};}_0x1ff566['on']('suggestionLoaded',_0x27abfb,{'priority':'high'}),_0x1ff566['on']('suggestionUnloaded',_0x27abfb,{'priority':'high'}),_0x1b1598['model']['document']['registerPostFixer'](()=>{let _0x22c699=!0x1;const _0x2aff78=Array['from'](_0x1b1598['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x46611b,data:_0x3ecfb4}of _0x2aff78){const {group:_0x44a58f,type:_0xafedb7,id:_0x5a3372}=_0x1ff566['_splitMarkerName'](_0x46611b);if('suggestion'!=_0x44a58f||'deletion'!=_0xafedb7||_0x3ecfb4['oldRange'])continue;if(!_0x1ff566['hasSuggestion'](_0x5a3372))continue;const _0x19e56d=_0x1ff566['getSuggestion'](_0x5a3372)['getRanges'](),_0x2e5ec7=_0x1b1598['plugins']['get']('Users')['me'];for(const _0x818a28 of _0x1ff566['getSuggestions']()){if(!_0x818a28['isInContent']||_0x818a28['author']!=_0x2e5ec7)continue;if('formatBlock'!=_0x818a28['type']||'tablePasteCell'!=_0x818a28['subType'])continue;if(_0x818a28['getRanges']()['every'](_0x5a8f42=>_0x19e56d['some'](_0x1ff36b=>_0x1ff36b['containsRange'](_0x5a8f42,!0x0)))){for(const _0x2ef803 of _0x818a28['getAllAdjacentSuggestions']())_0x2ef803['isInContent']&&(_0x2ef803['discard'](),_0x22c699=!0x0);}}}return _0x22c699;}),_0x1b1598['model']['document']['registerPostFixer'](_0x14d398=>{const _0x516b0b=_0x1b1598['commands']['get']('redo');if(!_0x516b0b||!_0x516b0b['_createdBatches']['has'](_0x14d398['batch']))return!0x1;let _0x297e13=!0x1;const _0x4125ca=_0x1b1598['plugins']['get']('Users')['me'],_0x1f1113=_0x1b1598['model']['document']['differ']['getChanges'](),_0x2d72c=Array['from'](_0x1b1598['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x276533,data:_0x3ebf42})=>{const {group:_0x5e9461,subType:_0x1e1388,authorId:_0x35707a}=_0x1ff566['_splitMarkerName'](_0x276533);return'suggestion'==_0x5e9461&&'tablePaste'==_0x1e1388&&_0x35707a==_0x4125ca['id']&&!_0x3ebf42['oldRange'];});for(const _0xbf9308 of _0x1f1113){if('insert'!=_0xbf9308['type']||'tableCellSuggestion'!=_0xbf9308['name']||0x1!=_0xbf9308['length'])continue;const _0x5e20cb=_0x14d398['createRange'](_0xbf9308['position'],_0xbf9308['position']['getShiftedBy'](0x1));if(!_0x2d72c['find'](({data:_0x4cf005})=>_0x4cf005['newRange']['isEqual'](_0x5e20cb))){for(const {name:_0x1ddc08,data:_0x5ba9e2}of _0x2d72c)if(_0x5e20cb['containsRange'](_0x5ba9e2['newRange'])){_0x14d398['updateMarker'](_0x1ddc08,{'range':_0x5e20cb}),_0x297e13=!0x0;break;}}}return _0x297e13;}),_0x1b1598['model']['document']['registerPostFixer'](_0x2f60ce=>{let _0xdfce83=!0x1;const _0x267f85=_0x1b1598['plugins']['get']('Users')['me'],_0x37064f=_0x1ff566['getSuggestions']()['filter'](_0xa9bf85=>_0xa9bf85['isInContent']&&_0xa9bf85['author']==_0x267f85),_0x17fb20=new Set(),_0x3ef6a7=new Set();for(const _0x56f85e of _0x37064f)if('tablePaste'==_0x56f85e['subType'])for(const _0x1da77a of _0x56f85e['getMarkers']()){const _0xab5f46=_0x1da77a['getRange']()['getContainedElement']();if(_0xab5f46){if(_0xab5f46['is']('element','tableCellSuggestion')&&Ue(_0xab5f46)){_0x56f85e['removeMarker'](_0x1da77a['name']),_0x17fb20['add'](_0xab5f46),_0xdfce83=!0x0;const _0x74510e=_0xab5f46['nextSibling'],_0xb90ea0=_0xab5f46['previousSibling'],_0x326743=_0x74510e&&_0x74510e['is']('element','tableCellSuggestion'),_0x36c269=_0xb90ea0&&_0xb90ea0['is']('element','tableCellSuggestion');_0x326743&&!_0x17fb20['has'](_0x74510e)&&_0x3ef6a7['add'](_0x74510e),_0x36c269&&!_0x17fb20['has'](_0xb90ea0)&&_0x3ef6a7['add'](_0xb90ea0);}else _0xab5f46['is']('element','paragraph')&&_0xab5f46['isEmpty']&&(_0x56f85e['removeMarker'](_0x1da77a['name']),_0xdfce83=!0x0);}}else{if('tablePasteCell'==_0x56f85e['subType']){if(!_0x56f85e['attributes']||!_0x56f85e['attributes']['tablePasteChainId'])continue;const _0x4c7fdc=_0x56f85e['attributes']['markerAttributes'];if(_0x4c7fdc&&Object['keys'](_0x4c7fdc)['length'])continue;const _0x206708=_0x56f85e['attributes']['tablePasteChainId'];let _0x1a9ac5=!0x0,_0x21c200=!0x0;for(const _0x1b6d83 of _0x37064f)if(_0x1b6d83['subType']&&_0x1b6d83['subType']['startsWith']('tablePaste')){if(!_0x1b6d83['attributes']['tablePasteChainId']){_0x21c200=!0x1;break;}if(_0x1b6d83['id']!=_0x56f85e['id']&&_0x1b6d83['attributes']['tablePasteChainId']==_0x206708){_0x1a9ac5=!0x1;break;}}_0x21c200&&_0x1a9ac5&&(_0x56f85e['removeMarkers'](),_0xdfce83=!0x0);}}for(const _0x17f631 of _0x17fb20)_0x2f60ce['remove'](_0x17f631);for(const _0xe6524a of _0x3ef6a7)_0x2f60ce['unwrap'](_0xe6524a);return _0xdfce83;}),_0x1b1598['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x248723=>_0x1f5695(_0x248723),'converterPriority':'high'}),_0x1b1598['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x1ea103,_0x3951c9)=>_0x3951c9['options']['showSuggestionHighlights']?_0x1f5695(_0x1ea103,!0x1):null,'converterPriority':'high'});const _0x1d96ce=_0x1b1598['editing']['view'];this['listenTo'](_0x1d96ce['document'],'clipboardOutput',(_0x1e1521,_0x2ea921)=>{const _0x487b35=[];for(const _0x977808 of _0x1d96ce['createRangeIn'](_0x2ea921['content'])['getItems']())_0x977808['is']('element','suggestion-td')&&_0x487b35['push'](_0x977808);_0x1d96ce['change'](_0x8d0186=>{for(const _0xc2c24c of _0x487b35)_0x8d0186['move'](_0x8d0186['createRangeIn'](_0xc2c24c),_0x8d0186['createPositionBefore'](_0xc2c24c)),_0x8d0186['remove'](_0xc2c24c);});});}}function Ue(_0x455a22){if(_0x455a22['isEmpty'])return!0x0;const _0x86a916=_0x455a22['getChild'](0x0);return _0x86a916['is']('element','paragraph')&&_0x86a916['isEmpty'];}function De(_0x4d4ead,_0x370059={},_0x14bb28){for(const {isAnchor:_0x119fed,cellHeight:_0x3b851f,cellWidth:_0x3de132}of _0x14bb28['createTableWalker'](_0x4d4ead,{'includeAllSlots':!0x0,..._0x370059}))if(!_0x119fed||0x1!=_0x3b851f||0x1!=_0x3de132)return!0x1;return!0x0;}class Bt extends _0x47d2c1{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x254996=this['editor']['plugins']['get']('TrackChangesEditing');_0x254996['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x254996['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x254996['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x254996['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x254996['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x254996['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x846fe4,_0x26f5a8){const _0x15b9ba=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5242f2=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x2fb599=_0x26f5a8['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x26ac43=_0x5242f2['getColumnGroupElement'](_0x2fb599);let _0xf9fbb7=_0x26ac43?_0x5242f2['getTableColumnsWidths'](_0x26ac43):null,_0x290d29=_0x2fb599['getAttribute']('tableWidth')||null;const _0x50311c=_0x26f5a8['tableWidth']||_0x290d29,_0x272a8e=_0x26f5a8['columnWidths']||_0xf9fbb7,_0x1e9cc4=this['editor']['plugins']['get']('Users')['me'];for(const _0x3ca069 of _0x15b9ba['getSuggestions']()){const _0x4c3ab5=_0x3ca069['getContainedElement']();if('resizeTable'===_0x3ca069['subType']&&_0x4c3ab5===_0x2fb599){_0x3ca069['author']!==_0x1e9cc4&&_0x3ca069['discard']();const _0x328173=_0x3ca069['data']['commandParams'];_0x290d29=_0x328173[0x0]['tableWidth'],_0xf9fbb7=_0x328173[0x0]['columnWidths'];break;}}_0x846fe4({'table':_0x2fb599,'tableWidth':_0x50311c,'columnWidths':_0x272a8e}),_0x15b9ba['markBlockFormat'](_0x2fb599,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x290d29,'columnWidths':_0xf9fbb7}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0xaeee5d){if('formatBlock'!=_0xaeee5d['type']&&'formatInline'!=_0xaeee5d['type'])return;const {data:_0x53533b}=_0xaeee5d;if(_0x53533b&&'resizeTable'===_0x53533b['formatGroupId']){const _0x1dbb0d='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x1dbb0d)};}}}class Ot extends _0x47d2c1{['afterInit'](){const _0x2ae40d=this['editor'];_0x2ae40d['plugins']['has']('Template')&&_0x2ae40d['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Rt extends _0x47d2c1{['afterInit'](){const _0xb8528e=this['editor'];if(!_0xb8528e['commands']['get']('insertTableOfContents'))return;_0xb8528e['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x3e1cd7=_0xb8528e['plugins']['get']('TrackChangesEditing'),_0x2e8f16=_0xb8528e['locale'];_0x3e1cd7['descriptionFactory']['registerElementLabel']('tableOfContents',_0x1ab7cd=>c(_0x2e8f16,'ELEMENT_TABLE_OF_CONTENTS',_0x1ab7cd));}}class xt extends _0x47d2c1{['afterInit'](){const _0x1960aa=this['editor'];if(!_0x1960aa['plugins']['has']('Title'))return;const _0x4702b5=_0x1960aa['plugins']['get']('TrackChangesEditing');_0x4702b5['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x1960aa['locale'],'ELEMENT_TITLE')),_0x1960aa['model']['document']['registerPostFixer'](_0x36fcc2=>{let _0x396c51=!0x1;const _0x51230b=Array['from'](_0x1960aa['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x46b268,data:_0x1191ca}of _0x51230b){const {group:_0x5f2729}=_0x4702b5['_splitMarkerName'](_0x46b268);if('suggestion'!==_0x5f2729||!_0x1191ca['newRange'])continue;const _0x2b5511=_0x1191ca['newRange'],_0x10e1ee=_0x2b5511['end']['nodeBefore'];if(!_0x10e1ee||!_0x10e1ee['is']('element','title-content'))continue;if(!_0x2b5511['start']['isTouching'](_0x2b5511['end']))continue;const _0x116330=_0x1960aa['model']['schema']['getNearestSelectionRange'](_0x2b5511['end'],'forward');if(_0x116330&&_0x116330['isCollapsed']){const _0x6c1250=_0x36fcc2['createRange'](_0x2b5511['start'],_0x116330['start']);_0x6c1250['isEqual'](_0x2b5511)||(_0x36fcc2['updateMarker'](_0x46b268,{'range':_0x6c1250}),_0x396c51=!0x0);}_0x396c51||(_0x36fcc2['removeMarker'](_0x46b268),_0x396c51=!0x0);}return _0x396c51;});}}class Tt extends _0x47d2c1{['afterInit'](){const _0x19cadb=this['editor'],_0x2047df=_0x19cadb['plugins']['get']('TrackChangesEditing');_0x19cadb['plugins']['has']('Uploadcare')&&(_0x2047df['enableCommand']('uploadcare'),_0x19cadb['plugins']['has']('UploadcareImageEdit')&&(_0x2047df['enableCommand']('uploadcareImageEdit'),_0x2047df['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x2047df['registerBlockAttribute']('uploadcareImageId'),_0x2047df['descriptionFactory']['registerDescriptionCallback'](_0xe376ab=>{if('attribute'!=_0xe376ab['type'])return;const {data:_0x2510a5}=_0xe376ab;return _0x2510a5&&'uploadcareImageId'==_0x2510a5['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x47d2c1{['afterInit'](){const _0x9a9959=this['editor'],_0x5de760=_0x9a9959['plugins']['get']('TrackChangesEditing');_0x9a9959['plugins']['has']('UndoEditing')&&(_0x5de760['enableCommand']('undo'),_0x5de760['enableCommand']('redo'));}}class Ut extends _0x47d2c1{static get['requires'](){return[Ct];}['afterInit'](){const _0x25c442=this['editor'];if(!_0x25c442['plugins']['has']('TableCaptionEditing'))return;_0x25c442['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x47d2c1{['tableProperties'];['tableCellProperties'];constructor(_0x1b97e3){super(_0x1b97e3),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 _0x2d0273=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0xbdf70c of this['tableProperties'])_0x2d0273['enableCommand'](_0xbdf70c,(_0x3a7b21,_0xe476e6)=>{const _0xa9ce03=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0xbdf70c,[_0xa9ce03],this['tableProperties'],'tableProperties',_0x3a7b21,_0xe476e6);});_0x2d0273['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x2d0273['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2d0273['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x4bf371,_0x1ae7e0)=>this['handleDiscardAction'](this['tableProperties'],_0x4bf371,_0x1ae7e0)),_0x2d0273['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x1b83ff of this['tableCellProperties'])_0x2d0273['enableCommand'](_0x1b83ff,(_0x1b0fe2,_0x3f43a2)=>{const _0x2a6c7b=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x1b83ff,_0x2a6c7b,this['tableCellProperties'],'tableCellProperties',_0x1b0fe2,_0x3f43a2);});_0x2d0273['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x2d0273['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2d0273['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x1e52fe,_0x81db1e)=>this['handleDiscardAction'](this['tableCellProperties'],_0x1e52fe,_0x81db1e)),_0x2d0273['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x2d0273['descriptionFactory']['registerDescriptionCallback'](_0x52a443=>this['handleSuggestionDescription'](_0x52a443));}['_handlePropertyChange'](_0x4d9b2e,_0x226323,_0x27c785,_0x25543f,_0x3f8ab3,_0x48d1eb){const _0x470cac=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x48d1eb['batch'],()=>{for(const _0x41fe13 of _0x226323){if(this['_getSuggestion'](_0x41fe13,_0x25543f))_0x3f8ab3(_0x48d1eb);else{const _0x2bfac7={};for(const _0x25d1f2 of _0x27c785){const _0x3c40b1=_0x41fe13['getAttribute'](_0x25d1f2);void 0x0!==_0x3c40b1&&(_0x2bfac7[_0x25d1f2]=_0x3c40b1);}_0x3f8ab3(_0x48d1eb),_0x470cac['markBlockFormat'](_0x41fe13,{'commandParams':[_0x2bfac7]},[],_0x25543f);}}});}['handleDiscardAction'](_0x31b83a,_0x4218e0,_0x3aae0e){const _0x15baa5=_0x4218e0[0x0]['start']['nodeAfter'],_0x29ae5f=_0x3aae0e['commandParams'][0x0];this['editor']['model']['change'](_0xcc425b=>{for(const _0x2a347f of _0x31b83a)void 0x0!==_0x29ae5f[_0x2a347f]?_0xcc425b['setAttribute'](_0x2a347f,_0x29ae5f[_0x2a347f],_0x15baa5):_0xcc425b['removeAttribute'](_0x2a347f,_0x15baa5);});}['handleSuggestionDescription'](_0x1ab0b0){if(_0x1ab0b0['data'])switch(_0x1ab0b0['subType']){case'tableProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x3c34a0,_0x323f28){const _0x2ca07d=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x5b4120 of _0x2ca07d['getSuggestions']({'skipNotAttached':!0x0})){const _0x2adcaf=_0x5b4120['getContainedElement']();if(_0x5b4120['subType']===_0x323f28&&_0x2adcaf===_0x3c34a0)return _0x5b4120;}return null;}}const u='$elementName';class p extends _0x47d2c1{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x5a2168,_0x5e7bc1,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,et,nt,it,st,ot,rt,ct,at,ut,ft,ht,gt,Q,kt,lt,W,Se,dt,pt,wt,bt,yt,jt,St,At,It,_t,vt,Ct,Nt,Dt,Ye,Ut,$t,Bt,Rt,Vt,Ot,xt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x453258){super(_0x453258),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x2f2403,_0x5ee785,_0x56aee2,_0x2a6def)=>{this['_model']['change'](()=>{for(const _0x715c7f of[..._0x2a6def,..._0x56aee2])this['_model']['markers']['has'](_0x715c7f)&&_0x453258['editing']['reconvertMarker'](_0x715c7f);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Pt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x453258['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([u]),this['_inlineAttributeKeys']=new Set(),_0x453258['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x453258['config']['get']('trackChanges.trackFormatChanges'),_0x453258['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x453258['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x453258,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0xa01ea0=this['editor'],_0x44c8a1=(_0x3e1de2,_0x48ccf6)=>{if('attribute'!=_0x3e1de2)return'ck-suggestion-marker-'+_0x3e1de2;const _0x441718=_0x48ccf6['split']('|')[0x0];return this['_isBlockAttribute'](_0x441718)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0xa01ea0['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x20dd7e=>{const {id:_0x20e8e2,authorId:_0x5395b6,type:_0x571de7,subType:_0x4dfc1b}=this['_splitMarkerName'](_0x20dd7e['markerName']),_0x3392dd=['ck-suggestion-marker',_0x44c8a1(_0x571de7,_0x4dfc1b)];let _0x2d61d0=0xbb8;return this['activeMarkers']['includes'](_0x20dd7e['markerName'])&&(_0x3392dd['push']('ck-suggestion-marker--active'),_0x2d61d0=0xbc2),'deletion'==_0x571de7&&(_0x2d61d0+=0x5),{'classes':_0x3392dd,'attributes':{'data-suggestion':_0x20e8e2,'data-author-id':_0x5395b6},'priority':_0x2d61d0};}}),_0xa01ea0['conversion']['for']('dataDowncast')['add'](_0x2fe7d4=>{_0x2fe7d4['on']('addMarker:suggestion',(_0x1d0ff8,_0x13f575,_0x57f05c)=>{if(!_0x57f05c['options']['showSuggestionHighlights'])return;const _0x2d8ab4=_0x13f575['item'];if(!_0x2d8ab4)return;const _0x8ee414=_0x57f05c['mapper']['toViewElement'](_0x2d8ab4);_0xa01ea0['model']['schema']['isObject'](_0x2d8ab4)&&_0x8ee414&&!_0x8ee414['getCustomProperty']('widget')&&_0x8ee414['is']('containerElement')&&_0x38b8eb(_0x8ee414,_0x57f05c['writer']);},{'priority':'high'});}),_0xa01ea0['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x4f351d,_0x54765e)=>{if(!_0x54765e['options']['showSuggestionHighlights'])return null;const {type:_0x443372,subType:_0x3c0de3}=this['_splitMarkerName'](_0x4f351d['markerName']);return{'classes':['ck-suggestion-marker',_0x44c8a1(_0x443372,_0x3c0de3)],'priority':0xbb8};}});const _0x4fbfa5=({showActiveMarkers:_0xa551ae=!0x0,isAttributeSuggestion:_0x1e2f0f=!0x1}={})=>(_0x443a7c,_0x216d50,_0x5b0581)=>{if(!_0x216d50['item'])return;const {id:_0x56b95b,authorId:_0x51aa6c}=this['_splitMarkerName'](_0x216d50['markerName']);if(_0x1e2f0f){const _0x2341f2=this['_suggestions']['get'](_0x56b95b),_0x4a3e7a=this['_getAttributeKey'](_0x2341f2);if(!this['_isBlockAttribute'](_0x4a3e7a))return;}if(_0x216d50['item']['is']('selection'))return void _0x5b0581['consumable']['consume'](_0x216d50['item'],_0x443a7c['name']);const _0x46b3a7=_0x5b0581['mapper']['toViewElement'](_0x216d50['item']);if(_0x216d50['item']['is']('element')&&_0xa01ea0['model']['schema']['isBlock'](_0x216d50['item'])&&!_0x46b3a7['getCustomProperty']('addHighlight')){_0x5b0581['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x46b3a7),_0x5b0581['writer']['setAttribute']('data-suggestion',_0x56b95b,_0x46b3a7),_0x5b0581['writer']['setAttribute']('data-author-id',_0x51aa6c,_0x46b3a7),_0x5b0581['mapper']['bindElementToMarker'](_0x46b3a7,_0x216d50['markerName']),_0xa551ae&&(this['activeMarkers']['includes'](_0x216d50['markerName'])?_0x5b0581['writer']['addClass']('ck-suggestion-marker--active',_0x46b3a7):_0x5b0581['writer']['removeClass']('ck-suggestion-marker--active',_0x46b3a7));for(const _0x1c3d43 of _0xa01ea0['model']['createRangeIn'](_0x216d50['item'])['getItems']())_0x5b0581['consumable']['consume'](_0x1c3d43,_0x443a7c['name']);_0x5b0581['consumable']['consume'](_0x216d50['item'],_0x443a7c['name']);}};_0xa01ea0['conversion']['for']('dataDowncast')['add'](_0x51df3a=>{_0x51df3a['on']('addMarker:suggestion:formatBlock',(_0x5eb06e,_0x5d9df0,_0x31a3e2)=>{_0x31a3e2['options']['showSuggestionHighlights']&&_0x4fbfa5({'showActiveMarkers':!0x1})(_0x5eb06e,_0x5d9df0,_0x31a3e2);},{'priority':'highest'});}),_0xa01ea0['conversion']['for']('dataDowncast')['add'](_0x17d1ac=>{_0x17d1ac['on']('addMarker:suggestion:attribute',(_0x330e39,_0x4e371e,_0x46161c)=>{_0x46161c['options']['showSuggestionHighlights']&&_0x4fbfa5({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x330e39,_0x4e371e,_0x46161c);},{'priority':'highest'});}),_0xa01ea0['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x313fac,_0x5ddead)=>_0x5ddead['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x313fac['substr'](0xb)}}),_0xa01ea0['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x55ef97,{writer:_0x40ade5})=>{let _0x409c71='suggestion:'+_0x55ef97['getAttribute']('suggestion-type')+':'+_0x55ef97['getAttribute']('id');return _0x55ef97['getAttribute']('marker-count')&&(_0x409c71+=':'+_0x55ef97['getAttribute']('marker-count')),_0x40ade5['createElement']('$marker',{'data-name':_0x409c71});}}),_0xa01ea0['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0xa01ea0['conversion']['for']('editingDowncast')['add'](_0xd4b6b7=>{_0xd4b6b7['on']('addMarker:suggestion:formatBlock',_0x4fbfa5(),{'priority':'high'});}),_0xa01ea0['conversion']['for']('editingDowncast')['add'](_0xa22582=>{_0xa22582['on']('addMarker:suggestion:attribute',_0x4fbfa5({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0xa01ea0['conversion']['for']('editingDowncast')['add'](_0x178e82=>{_0x178e82['on']('removeMarker:suggestion:formatBlock',(_0x3138b9,_0x4630fc,_0xf3183c)=>{const _0x29087c=_0xf3183c['mapper']['markerNameToElements'](_0x4630fc['markerName']);if(_0x29087c){for(const _0x38be24 of _0x29087c)_0x38be24['getCustomProperty']('addHighlight')||(_0xf3183c['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x38be24),_0xf3183c['writer']['removeAttribute']('data-suggestion',_0x38be24),_0xf3183c['writer']['removeAttribute']('data-author-id',_0x38be24),_0xf3183c['mapper']['unbindElementFromMarkerName'](_0x38be24,_0x4630fc['markerName']));}},{'priority':'high'});}),_0xa01ea0['conversion']['for']('editingDowncast')['add'](_0x58a843=>{_0x58a843['on']('removeMarker:suggestion:attribute',(_0x41f45f,_0x4d082d,_0x21baa5)=>{const _0x56cde8=_0x21baa5['mapper']['markerNameToElements'](_0x4d082d['markerName']);if(!_0x56cde8)return;const {id:_0x1ae706}=this['_splitMarkerName'](_0x4d082d['markerName']),_0x46000f=this['_suggestions']['get'](_0x1ae706),_0x13e424=this['_getAttributeKey'](_0x46000f);if(this['_isBlockAttribute'](_0x13e424)){for(const _0x544ea8 of _0x56cde8)_0x544ea8['getCustomProperty']('addHighlight')||(_0x21baa5['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x544ea8),_0x21baa5['writer']['removeAttribute']('data-suggestion',_0x544ea8),_0x21baa5['writer']['removeAttribute']('data-author-id',_0x544ea8),_0x21baa5['mapper']['unbindElementFromMarkerName'](_0x544ea8,_0x4d082d['markerName']));}},{'priority':'high'});}),_0xa01ea0['model']['document']['registerPostFixer'](_0xf453df=>{let _0x24c772=!0x1;const _0x9e5bf9=Array['from'](_0xa01ea0['model']['document']['differ']['getChangedMarkers']()),_0x1d779b=new Set();for(const {name:_0x466885,data:_0x55a0a8}of _0x9e5bf9){const {group:_0x3153c9,type:_0x19459c,subType:_0x433203,id:_0x5290c0}=this['_splitMarkerName'](_0x466885);if('suggestion'!==_0x3153c9)continue;const _0x335027=this['_suggestions']['get'](_0x5290c0);if(null!=_0x55a0a8['newRange']){'formatInline'==_0x19459c&&(_0x24c772=_0x24c772||Jt(_0x55a0a8['newRange'],_0x466885,_0xf453df,_0xa01ea0['model']['schema']));const _0x93d77d='attribute'==_0x19459c&&this['_isBlockAttribute'](_0x433203['split']('|')[0x0]);if(_0x55a0a8['newRange']['isCollapsed']||'$graveyard'==_0x55a0a8['newRange']['root']['rootName']||'formatBlock'==_0x19459c&&!Ht(_0x55a0a8['newRange'])||_0x93d77d&&!Ht(_0x55a0a8['newRange'])||'deletion'==_0x19459c&&!(!Lt(_0x46c837=_0x55a0a8['newRange'])&&!function(_0x19945d){return _0x19945d['start']['parent']==_0x19945d['end']['nodeBefore']&&_0x19945d['start']['isAtEnd'];}(_0x46c837)))_0xf453df['removeMarker'](_0x466885),_0x24c772=!0x0;else{if(!_0x335027||!_0x335027['isInContent'])continue;if(_0x55a0a8['newRange']&&_0x55a0a8['oldRange']&&_0x55a0a8['newRange']['isEqual'](_0x55a0a8['oldRange']))continue;_0x1d779b['add'](_0x335027);}}}var _0x46c837;return _0x1d779b['size']>0x0&&(_0x24c772=!!this['_joinWithAdjacentSuggestions'](_0x1d779b)||_0x24c772),_0x24c772;}),_0xa01ea0['model']['document']['registerPostFixer'](_0x48e83c=>{let _0x28e40e=!0x1;for(const _0x4284c2 of _0xa01ea0['model']['document']['differ']['getChanges']())if('insert'==_0x4284c2['type'])for(const _0x382603 of this['_suggestions']['values']()){if(_0x382603['isMultiRange']||!_0x382603['isInContent'])continue;const _0x2afba8='formatBlock'==_0x382603['type'],_0x4c7d4e=this['_getAttributeKey'](_0x382603),_0x1af82d=_0x4c7d4e&&this['_isBlockAttribute'](_0x4c7d4e);if(!_0x2afba8&&!_0x1af82d)continue;const _0x4c5a04=_0x382603['getFirstRange']();if(_0x4c5a04['start']['parent']!=_0x4c5a04['end']['parent']&&!_0x4c5a04['end']['isAtEnd']){const _0x445812=_0xa01ea0['model']['createPositionAt'](_0x4c5a04['start']['nodeAfter'],'end'),_0x128fd1=_0xa01ea0['model']['createRange'](_0x4c5a04['start'],_0x445812);_0x48e83c['updateMarker'](_0x382603['getFirstMarker'](),{'range':_0x128fd1}),_0x28e40e=!0x0;}}return _0x28e40e;}),_0xa01ea0['model']['document']['registerPostFixer'](_0x4cf458=>this['_processAttributeChanges'](_0x4cf458)),_0xa01ea0['model']['document']['registerPostFixer'](_0x4de8b1=>!_0x4de8b1['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x4de8b1)),_0xa01ea0['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0xa01ea0['model']['document']['on']('change:data',(_0xcbabb3,_0x192497)=>{if(!_0x192497['isLocal']||_0x192497['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x10518b=_0xa01ea0['model']['document']['differ']['getChanges']();if(0x0==_0x10518b['length'])return;const _0x5108ee=[],_0xcde14f=_0x10518b['filter'](_0x181497=>'attribute'==_0x181497['type']),_0x54fbc0=_0x10518b['filter'](_0x44ef07=>'insert'==_0x44ef07['type']&&'$text'!=_0x44ef07['name']);for(const _0x519050 of _0xcde14f)this['_isRegisteredAttribute'](_0x519050['attributeKey'])&&_0x5108ee['push']({'key':_0x519050['attributeKey'],'newValue':_0x519050['attributeNewValue'],'oldValue':_0x519050['attributeOldValue'],'range':qt(_0x519050['range'],_0xa01ea0['model'])});for(const _0x13ed67 of _0x54fbc0){if('rename'!=_0x13ed67['action']&&'refresh'!=_0x13ed67['action'])continue;const _0x5e151e=zt(_0x13ed67['position']['nodeAfter'],_0xa01ea0['model']),_0x20b9a8=_0x13ed67['before'];'rename'==_0x13ed67['action']&&_0x5108ee['push']({'key':u,'newValue':_0x13ed67['name'],'oldValue':_0x20b9a8['name'],'range':_0x5e151e});for(const [_0x50e222,_0x360ae7]of _0x20b9a8['attributes']){if(!this['_isRegisteredAttribute'](_0x50e222))continue;const _0x5d8b27=_0x13ed67['attributes']['get'](_0x50e222);_0x360ae7!==_0x5d8b27&&_0x5108ee['push']({'key':_0x50e222,'newValue':_0x5d8b27,'oldValue':_0x360ae7,'range':_0x5e151e});}for(const [_0x16abc1,_0x114a63]of _0x13ed67['attributes'])this['_isRegisteredAttribute'](_0x16abc1)&&(_0x20b9a8['attributes']['has'](_0x16abc1)||_0x5108ee['push']({'key':_0x16abc1,'newValue':_0x114a63,'oldValue':null,'range':_0x5e151e}));}0x0!=_0x5108ee['length']&&_0xa01ea0['model']['enqueueChange'](_0x192497,_0x5c9f4c=>{const _0x4e15ae=_0x52a841();for(const {range:_0x290c05,key:_0x2bf074,oldValue:_0x4e7da9,newValue:_0x442b85}of _0x5108ee)this['markAttributeChange'](_0x290c05,_0x2bf074,_0x4e7da9,_0x442b85,{'groupId':_0x4e15ae});this['_reduceExistingSuggestions'](_0x5c9f4c,_0x5108ee);});},{'priority':'lowest'}),_0xa01ea0['model']['markers']['on']('update:suggestion',(_0x3d2da8,_0x4e342e,_0x5a5f6a)=>{if(null==_0x5a5f6a){const {id:_0x3280dd}=this['_splitMarkerName'](_0x4e342e['name']),_0x4f8c31=this['_suggestions']['get'](_0x3280dd);_0x4f8c31&&_0x4f8c31['addMarkerName'](_0x4e342e['name']);}}),_0xa01ea0['model']['document']['on']('change:data',()=>{const _0x2006ff=Array['from'](_0xa01ea0['model']['document']['differ']['getChangedMarkers']())['filter'](_0x590445=>'suggestion'===this['_splitMarkerName'](_0x590445['name'])['group']);if(0x0===_0x2006ff['length'])return;_0x2006ff['sort']((_0x390149,_0x3ccd25)=>{const _0xbf7c2f=_0x390149['data']['oldRange'],_0x5e42b4=_0x3ccd25['data']['oldRange'];return null===_0xbf7c2f&&null===_0x5e42b4?0x0:null===_0xbf7c2f&&null!==_0x5e42b4?-0x1:null!==_0xbf7c2f&&null===_0x5e42b4?0x1:_0xbf7c2f['start']['isBefore'](_0x5e42b4['start'])?-0x1:0x1;});const _0x2f8acc=new Set(),_0x1eead3=new Set();for(const {name:_0x564066,data:_0x16cfec}of _0x2006ff){const {id:_0x18fc73}=this['_splitMarkerName'](_0x564066);if(null===_0x16cfec['oldRange']){const _0x593c02=this['_handleNewSuggestionMarker'](_0x564066);_0x1eead3['add'](_0x593c02);}else{const _0x64a01e=this['_suggestions']['get'](_0x18fc73);null!==_0x16cfec['newRange']||_0x64a01e['isInContent']?(_0x2f8acc['add'](_0x64a01e['head']),_0x1eead3['add'](_0x64a01e)):this['_removeSuggestion'](_0x64a01e);}}_0x1eead3['size']>0x0&&this['_refreshSuggestionsChain'](_0x1eead3);for(const _0x2f6794 of _0x2f8acc)this['fire']('suggestionChanged',_0x2f6794);}),_0xa01ea0['model']['on']('applyOperation',(_0x1e4f6c,_0x105c8b)=>{const _0x4bbefb=_0x105c8b[0x0];if(!this['_suggestions']['size'])return;if(!_0x4bbefb['isDocumentOperation'])return;if(_0x4bbefb['batch']['isUndo']||!_0x4bbefb['batch']['isLocal'])return;let _0x10c045,_0x2669b8;switch(_0x4bbefb['type']){case'insert':_0x10c045=_0xa01ea0['model']['createPositionAt'](_0x4bbefb['position']),_0x2669b8=_0x10c045['getShiftedBy'](_0x4bbefb['howMany']);break;case'split':_0x10c045=_0xa01ea0['model']['createPositionAt'](_0x4bbefb['splitPosition']),_0x2669b8=_0xa01ea0['model']['createPositionAt'](_0x4bbefb['moveTargetPosition']);break;case'move':_0x10c045=_0xa01ea0['model']['createPositionAt'](_0x4bbefb['targetPosition']),_0x2669b8=_0x10c045['getShiftedBy'](_0x4bbefb['howMany']);break;default:return;}const _0x5d0fa3=_0xa01ea0['model']['createRange'](_0x10c045,_0x2669b8);_0xa01ea0['model']['change'](()=>{for(const {suggestion:_0x40b809,meta:_0x291390}of this['_findSuggestions'](_0x5d0fa3)){if(_0x40b809['isMultiRange'])continue;if('formatInline'==_0x40b809['type'])continue;const _0x4c65f1=this['_getAttributeKey'](_0x40b809);if(_0x4c65f1&&this['_isBlockAttribute'](_0x4c65f1)&&'split'!=_0x4bbefb['type'])continue;const _0x55eaf7=_0x40b809['data']&&_0x40b809['data']['multipleBlocks'];('formatBlock'!=_0x40b809['type']||'split'==_0x4bbefb['type']&&!_0x55eaf7)&&(_0x291390['containsRangeInObject']||'insertion'==_0x40b809['type']&&_0x291390['isOwn']||_0x40b809['getFirstRange']()['containsRange'](_0x5d0fa3)&&this['_breakSuggestionMarker'](_0x40b809,_0x10c045,_0x2669b8));}});},{'priority':'lowest'}),_0xa01ea0['model']['on']('deleteContent',(_0x199272,_0x3d8782)=>{const _0x299267=_0x3d8782[0x0],_0x32adad=_0x3d8782[0x1];if(_0x32adad&&_0x32adad['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x299267['isCollapsed'])return;const _0xaf54f3=_0xa01ea0['model']['schema'],{start:_0x166497,end:_0x47e999}=_0x299267['getFirstRange'](),_0x11cab1=_0x166497['nodeAfter']&&_0xaf54f3['isLimit'](_0x166497['nodeAfter'])?null:_0xaf54f3['getNearestSelectionRange'](_0x166497,'forward'),_0x1a7f7b=_0x47e999['nodeBefore']&&_0xaf54f3['isLimit'](_0x47e999['nodeBefore'])?null:_0xaf54f3['getNearestSelectionRange'](_0x47e999,'backward'),_0x35ccb6=_0xa01ea0['model']['createRange'](_0x11cab1?_0x11cab1['start']:_0x166497,_0x1a7f7b?_0x1a7f7b['end']:_0x47e999);_0xa01ea0['model']['change'](_0x528717=>{this['markDeletion'](_0x35ccb6);const _0x15db55=_0xa01ea0['model']['schema']['getNearestSelectionRange'](_0x35ccb6['start']);_0x299267['is']('documentSelection')?_0x528717['setSelection'](_0x15db55):_0x299267['setTo'](_0x15db55);}),_0x199272['stop']();},{'priority':_0x3605c8['normal']+0xa}),_0xa01ea0['model']['on']('insertContent',(_0x2b175f,_0x542414)=>{const _0x27bce0=_0x542414[_0x542414['length']-0x1];_0x27bce0&&_0x27bce0['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0xa01ea0['model']['change'](()=>{let _0x56f56f=_0xa01ea0['model']['insertContent'](_0x542414[0x0],_0x542414[0x1],_0x542414[0x2],{'forceDefaultExecution':!0x0});if(!_0x56f56f)return;_0x2b175f['return']=_0x56f56f['clone']();const _0x62b1=_0x56f56f['end']['nodeBefore'],_0x3cbb82=_0xa01ea0['model']['schema'];_0x62b1&&_0x3cbb82['isBlock'](_0x62b1)&&!_0x3cbb82['isObject'](_0x62b1)&&(_0x56f56f=_0xa01ea0['model']['createRange'](_0x56f56f['start'],_0xa01ea0['model']['createPositionAt'](_0x62b1,'end'))),this['markInsertion'](_0x56f56f);}),_0x2b175f['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x20f4ed=new O(_0xa01ea0,this['_suggestions']);_0xa01ea0['commands']['add']('acceptSuggestion',_0x20f4ed),this['enableCommand']('acceptSuggestion');const _0xbfa7ca=new R(_0xa01ea0,this['_suggestions']);_0xa01ea0['commands']['add']('discardSuggestion',_0xbfa7ca),this['enableCommand']('discardSuggestion'),_0xa01ea0['commands']['add']('acceptAllSuggestions',new x(_0xa01ea0,_0x20f4ed,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0xa01ea0['commands']['add']('discardAllSuggestions',new x(_0xa01ea0,_0xbfa7ca,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0xa01ea0['commands']['add']('acceptSelectedSuggestions',new E(_0xa01ea0,_0x20f4ed,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0xa01ea0['commands']['add']('discardSelectedSuggestions',new E(_0xa01ea0,_0xbfa7ca,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x368780=_0xa01ea0['plugins']['get']('CommentsRepository');this['listenTo'](_0x368780,'addComment',(_0x3e6aa4,{threadId:_0x57bf2b})=>{const _0x29ea0a=this['_suggestions']['get'](_0x57bf2b);_0x29ea0a&&_0x29ea0a['commentThread']&&0x1===_0x29ea0a['commentThread']['length']&&this['_updateSuggestionData'](_0x57bf2b,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x368780,'removeComment',(_0x3cf498,{threadId:_0xe92888})=>{const _0x51d623=this['_suggestions']['get'](_0xe92888);_0x51d623&&_0x51d623['commentThread']&&!_0x51d623['commentThread']['length']&&this['_updateSuggestionData'](_0xe92888,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x3ee2af){const _0x4a35b9=_0xd08d04([0x4e,0x55,0x30,0x45,0x33,0x79,0x36,0x6c,0x77,0x53,0x56,0x66,0x5a,0x41,0x52,0x4d,0x75,0x63,0x4f,0x62,0x72,0x78,0x71,0x32,0x46,0x6e,0x44,0x58,0x64,0x43,0x4b,0x6b,0x67,0x76,0x68,0x34,0x57,0x61,0x6f,0x38,0x50,0x7a,0x4a,0x51,0x37,0x65,0x39,0x59,0x74,0x6d,0x31,0x69,0x4c,0x54,0x73,0x47,0x48,0x6a,0x42,0x70,0x49,0x35]),_0x3641d4=0x648487dd,_0x12091d=0x6483e335^_0x3641d4,_0x2e046b=window[_0xd08d04([0x44,0x61,0x74,0x65])][_0xd08d04([0x6e,0x6f,0x77])](),_0x58a426=_0x3ee2af[_0xd08d04([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x30adba=new window[(_0xd08d04([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1b5510=>{_0x58a426[_0xd08d04([0x6f,0x6e,0x63,0x65])](_0xd08d04([0x72,0x65,0x61,0x64,0x79]),_0x1b5510);}),_0xafd3bb={[_0xd08d04([0x6b,0x74,0x79])]:_0xd08d04([0x45,0x43]),[_0xd08d04([0x75,0x73,0x65])]:_0xd08d04([0x73,0x69,0x67]),[_0xd08d04([0x63,0x72,0x76])]:_0xd08d04([0x50,0x2d,0x32,0x35,0x36]),[_0xd08d04([0x78])]:_0xd08d04([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]),[_0xd08d04([0x79])]:_0xd08d04([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]),[_0xd08d04([0x61,0x6c,0x67])]:_0xd08d04([0x45,0x53,0x32,0x35,0x36])},_0x8006b8=_0x58a426[_0xd08d04([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xd08d04([0x67,0x65,0x74])](_0xd08d04([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5debb0(){let _0x5567f7,_0x43dc5f=null,_0x33d2f8=null;try{if(_0x8006b8==_0xd08d04([0x47,0x50,0x4c]))return _0xd08d04([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5567f7=_0x1ae4c0(),!_0x5567f7)return _0xd08d04([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5567f7[_0xd08d04([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x33d2f8=_0x8ff1f0(_0x5567f7[_0xd08d04([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5567f7[_0xd08d04([0x6a,0x74,0x69])])),await _0xbe010a()?_0xcb3c0a()?_0x4bbced()?_0xd08d04([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x116d78()?(_0x5567f7[_0xd08d04([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xd08d04([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x43dc5f=_0x5a228a(_0xd08d04([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5567f7[_0xd08d04([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xd08d04([0x74,0x72,0x69,0x61,0x6c])&&(_0x43dc5f=_0x5a228a(_0xd08d04([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x432524()):_0xd08d04([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xd08d04([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xd08d04([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x54a5a1){return _0xd08d04([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4bbced(){const _0x5ab3a4=[_0xd08d04([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xd08d04([0x74,0x72,0x69,0x61,0x6c])][_0xd08d04([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5567f7[_0xd08d04([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2e046b/0x3e8:0xe10*_0x12091d;return _0x5567f7[_0xd08d04([0x65,0x78,0x70])]<_0x5ab3a4;}function _0xcb3c0a(){const _0x48c5ca=_0x5567f7[_0xd08d04([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x48c5ca)return!0x1;if(_0x48c5ca[_0xd08d04([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd08d04([0x2a])))return!0x0;if(_0x48c5ca[_0xd08d04([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd08d04([0x54,0x43])))return!0x0;if(_0x48c5ca[_0xd08d04([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd08d04([0x52,0x54,0x43]))){if(_0x2a50c1())return!0x0;if(_0x58adc0()||_0xc6356f())return!0x0;}return!0x1;}function _0x116d78(){const _0x34c50a=_0x5567f7[_0xd08d04([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x34c50a||0x0==_0x34c50a[_0xd08d04([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x241574}=new URL(window[_0xd08d04([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x34c50a[_0xd08d04([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x241574))return!0x0;const _0x32a9a5=_0x241574[_0xd08d04([0x73,0x70,0x6c,0x69,0x74])](_0xd08d04([0x2e]));return _0x34c50a[_0xd08d04([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2ecdaf=>_0x2ecdaf[_0xd08d04([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd08d04([0x2a])))[_0xd08d04([0x6d,0x61,0x70])](_0x346820=>_0x346820[_0xd08d04([0x73,0x70,0x6c,0x69,0x74])](_0xd08d04([0x2e])))[_0xd08d04([0x73,0x6f,0x6d,0x65])](_0x3533e7=>_0x32a9a5[_0xd08d04([0x65,0x76,0x65,0x72,0x79])]((_0x10e147,_0x2386fc)=>_0x3533e7[_0x2386fc]===_0x10e147||_0x3533e7[_0x2386fc]===_0xd08d04([0x2a])));}function _0x432524(){return _0x43dc5f&&_0x33d2f8?new window[(_0xd08d04([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3bea4d,_0x3219b0)=>{_0x43dc5f[_0xd08d04([0x74,0x68,0x65,0x6e])](_0x3bea4d,_0x3219b0),_0x33d2f8[_0xd08d04([0x74,0x68,0x65,0x6e])](_0x3b683c=>{_0x3b683c!=_0xd08d04([0x56,0x61,0x6c,0x69,0x64])&&_0x3bea4d(_0x3b683c);},_0x3219b0);}):_0x43dc5f||_0x33d2f8||_0xd08d04([0x56,0x61,0x6c,0x69,0x64]);}}function _0x8ff1f0(_0x2f37d6,_0x240ae9){return new window[(_0xd08d04([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x29ce3c=>{if(_0x5487a8())return _0x29ce3c(_0xd08d04([0x56,0x61,0x6c,0x69,0x64]));_0x3c317a(),_0x58a426[_0xd08d04([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xd08d04([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3fabde=!0x1;const _0x2f3046=_0x52a841();function _0x593bca(_0x533c8c){return!!_0x533c8c&&(typeof _0x533c8c===_0xd08d04([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x533c8c===_0xd08d04([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x533c8c[_0xd08d04([0x74,0x68,0x65,0x6e])]===_0xd08d04([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x533c8c[_0xd08d04([0x63,0x61,0x74,0x63,0x68])]===_0xd08d04([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x460d04(_0x5063ad){_0x38c667(_0x5063ad)[_0xd08d04([0x74,0x68,0x65,0x6e])](_0x1520da=>{if(!_0x1520da||_0x1520da[_0xd08d04([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xd08d04([0x6f,0x6b]))return _0xd08d04([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x36dd5c(_0x1f6223(_0x2f3046+_0x240ae9))!=_0x1520da[_0xd08d04([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xd08d04([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xd08d04([0x56,0x61,0x6c,0x69,0x64]);})[_0xd08d04([0x74,0x68,0x65,0x6e])](_0x36de37=>(_0x4303f7(),_0x36de37),()=>{const _0x32545c=_0x4b5b38();return null==_0x32545c?(_0x4303f7(),_0xd08d04([0x56,0x61,0x6c,0x69,0x64])):_0xd08d04(_0x2e046b-_0x32545c>(0x408803dd^_0x3641d4)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xd08d04([0x74,0x68,0x65,0x6e])](_0x29ce3c)[_0xd08d04([0x63,0x61,0x74,0x63,0x68])](()=>{_0x29ce3c(_0xd08d04([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x21d05d=0x64b2695d^_0x3641d4;function _0x4303f7(){const _0xcedcb2=_0xd08d04([0x6c,0x6c,0x63,0x74,0x2d])+_0x36dd5c(_0x1f6223(_0x2f37d6)),_0x2771da=_0xff6bfb(_0x36dd5c(window[_0xd08d04([0x4d,0x61,0x74,0x68])][_0xd08d04([0x63,0x65,0x69,0x6c])](_0x2e046b/_0x21d05d)));window[_0xd08d04([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xd08d04([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xcedcb2,_0x2771da);}function _0x4b5b38(){const _0x266ba0=_0xd08d04([0x6c,0x6c,0x63,0x74,0x2d])+_0x36dd5c(_0x1f6223(_0x2f37d6)),_0x458047=window[_0xd08d04([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xd08d04([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x266ba0);return _0x458047?window[_0xd08d04([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xff6bfb(_0x458047),0x10)*_0x21d05d:null;}function _0x38c667(_0xed77b5){return new window[(_0xd08d04([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x384dfe,_0x552720)=>{_0xed77b5[_0xd08d04([0x74,0x68,0x65,0x6e])](_0x384dfe,_0x552720),window[_0xd08d04([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x552720,0x6485531d^_0x3641d4);});}}_0x58a426[_0xd08d04([0x6f,0x6e])](_0xd08d04([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x28f9fc,_0x3c0d00)=>{if(_0x3c0d00[0x0]!=_0x2f37d6)return _0x29ce3c(_0xd08d04([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3c0d00[0x1]={..._0x3c0d00[0x1],[_0xd08d04([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2f3046};},{[_0xd08d04([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xd08d04([0x68,0x69,0x67,0x68])}),_0x58a426[_0xd08d04([0x6f,0x6e])](_0xd08d04([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x52c78c=>{_0x593bca(_0x52c78c[_0xd08d04([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3fabde=!0x0,_0x460d04(_0x52c78c[_0xd08d04([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xd08d04([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xd08d04([0x6c,0x6f,0x77])}),_0x30adba[_0xd08d04([0x74,0x68,0x65,0x6e])](()=>{_0x3fabde||_0x29ce3c(_0xd08d04([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5487a8(){return _0x58a426[_0xd08d04([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xd08d04([0x76,0x69,0x65,0x77])][_0xd08d04([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xd08d04([0x61,0x75,0x74,0x6f]);}function _0x3c317a(){_0x58a426[_0xd08d04([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xd08d04([0x76,0x69,0x65,0x77])][_0xd08d04([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xd08d04([0x61,0x75,0x74,0x6f]);}}function _0x5a228a(_0x1401d0){const _0x3a641f=[new window[(_0xd08d04([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3962ff=>setTimeout(_0x3962ff,0x648db911^_0x3641d4)),_0x30adba[_0xd08d04([0x74,0x68,0x65,0x6e])](()=>new window[(_0xd08d04([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2c0c14=>{let _0x1ad851=0x0;_0x58a426[_0xd08d04([0x6d,0x6f,0x64,0x65,0x6c])][_0xd08d04([0x6f,0x6e])](_0xd08d04([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4ab1d1,_0x2390bf)=>{_0x2390bf[0x0][_0xd08d04([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1ad851++,_0x1ad851==(0x64848625^_0x3641d4)&&(_0x2c0c14(),_0x4ab1d1[_0xd08d04([0x6f,0x66,0x66])]());});}))];return window[_0xd08d04([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xd08d04([0x72,0x61,0x63,0x65])](_0x3a641f)[_0xd08d04([0x74,0x68,0x65,0x6e])](()=>_0x1401d0);}async function _0x5bcd6f(){await _0x30adba,_0x58a426[_0xd08d04([0x6d,0x6f,0x64,0x65,0x6c])][_0xd08d04([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x515641,_0x58a426[_0xd08d04([0x6d,0x6f,0x64,0x65,0x6c])][_0xd08d04([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x515641,_0x58a426[_0xd08d04([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xd08d04([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2a50c1(){return _0x16c2ed(_0xd08d04([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x39edd8(_0xd08d04([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0xd08d04([0x73,0x74,0x61,0x74,0x65])]==_0xd08d04([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x58adc0(){return _0x16c2ed(_0xd08d04([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 _0xc6356f(){return _0x16c2ed(_0xd08d04([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x422256(_0x59fa02){const _0x5b3a66=_0x1cde0a();_0x58a426[_0x5b3a66]=_0xd08d04([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x59fa02,_0x59fa02!=_0xd08d04([0x56,0x61,0x6c,0x69,0x64])&&_0x5bcd6f();}function _0x1cde0a(){const _0x417e11=window[_0xd08d04([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xd08d04([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xd08d04([0x6e,0x6f,0x77])]())[_0xd08d04([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xd08d04([0x2e]),'');let _0x5f0639=_0xd08d04([0x4e]);for(let _0x15cfd9=0x0;_0x15cfd9<_0x417e11[_0xd08d04([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x15cfd9+=0x2){let _0x42d97b=window[_0xd08d04([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x417e11[_0xd08d04([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x15cfd9,_0x15cfd9+0x2));_0x42d97b>=_0x4a35b9[_0xd08d04([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x42d97b-=_0x4a35b9[_0xd08d04([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5f0639+=_0x4a35b9[_0x42d97b];}return _0x5f0639;}function _0x1ae4c0(){const _0x3a82e9=_0x8006b8[_0xd08d04([0x73,0x70,0x6c,0x69,0x74])](_0xd08d04([0x2e]));if(0x3!=_0x3a82e9[_0xd08d04([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3c2472(_0x3a82e9[0x1]);function _0x3c2472(_0x50c98d){const _0x14750e=_0x24cd64(_0x50c98d);return _0x14750e&&_0x47d743()?_0x14750e:null;function _0x47d743(){const _0x5ce54a=_0x14750e[_0xd08d04([0x6a,0x74,0x69])],_0x594b1c=window[_0xd08d04([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5ce54a[_0xd08d04([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5ce54a[_0xd08d04([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x8a0023={..._0x14750e,[_0xd08d04([0x6a,0x74,0x69])]:_0x5ce54a[_0xd08d04([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5ce54a[_0xd08d04([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x8a0023[_0xd08d04([0x76,0x63])],_0x1f6223(_0x8a0023)==_0x594b1c;}}}async function _0xbe010a(){let _0x40de51=!0x0;try{const _0x5455d0=_0x8006b8[_0xd08d04([0x73,0x70,0x6c,0x69,0x74])](_0xd08d04([0x2e])),[_0x10383f,_0x51a2bd,_0x33156c]=_0x5455d0;return _0x5f0128(_0x10383f),await _0x397a02(_0x10383f,_0x51a2bd,_0x33156c),_0x40de51;}catch(_0x582535){return!0x1;}function _0x5f0128(_0x2d79ce){const _0x31cc41=_0x24cd64(_0x2d79ce);_0x31cc41&&_0x31cc41[_0xd08d04([0x61,0x6c,0x67])]==_0xd08d04([0x45,0x53,0x32,0x35,0x36])||(_0x40de51=!0x1);}async function _0x397a02(_0x3081e6,_0x50606b,_0x233954){const _0x2b8b7d=window[_0xd08d04([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xd08d04([0x66,0x72,0x6f,0x6d])](_0x247755(_0x233954),_0x49ebf3=>_0x49ebf3[_0xd08d04([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x768299=new window[(_0xd08d04([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xd08d04([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3081e6+_0xd08d04([0x2e])+_0x50606b),_0x2edbb6=window[_0xd08d04([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xd08d04([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2edbb6)return;const _0x1f4395=await _0x2edbb6[_0xd08d04([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xd08d04([0x6a,0x77,0x6b]),_0xafd3bb,{[_0xd08d04([0x6e,0x61,0x6d,0x65])]:_0xd08d04([0x45,0x43,0x44,0x53,0x41]),[_0xd08d04([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xd08d04([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xd08d04([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2edbb6[_0xd08d04([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xd08d04([0x6e,0x61,0x6d,0x65])]:_0xd08d04([0x45,0x43,0x44,0x53,0x41]),[_0xd08d04([0x68,0x61,0x73,0x68])]:{[_0xd08d04([0x6e,0x61,0x6d,0x65])]:_0xd08d04([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1f4395,_0x2b8b7d,_0x768299)||(_0x40de51=!0x1);}}function _0x24cd64(_0xbf58c8){return _0xbf58c8[_0xd08d04([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xd08d04([0x65,0x79]))?JSON[_0xd08d04([0x70,0x61,0x72,0x73,0x65])](_0x247755(_0xbf58c8)):null;}function _0x247755(_0x527057){return window[_0xd08d04([0x61,0x74,0x6f,0x62])](_0x527057[_0xd08d04([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xd08d04([0x2b]))[_0xd08d04([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xd08d04([0x2f])));}function _0x1f6223(_0x57dbfd){let _0x21591a=0x1505;function _0x2b042c(_0xfa248f){for(let _0x407261=0x0;_0x407261<_0xfa248f[_0xd08d04([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x407261++){const _0x4c4d71=_0xfa248f[_0xd08d04([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x407261);_0x21591a=(_0x21591a<<0x5)+_0x21591a+_0x4c4d71,_0x21591a&=_0x21591a;}}function _0x368ef3(_0x3b2582){Array[_0xd08d04([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3b2582)?_0x3b2582[_0xd08d04([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x368ef3):_0x3b2582&&typeof _0x3b2582==_0xd08d04([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xd08d04([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3b2582)[_0xd08d04([0x73,0x6f,0x72,0x74])]()[_0xd08d04([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2d25c8,_0xf6fc86])=>{_0x2b042c(_0x2d25c8),_0x368ef3(_0xf6fc86);}):_0x2b042c(window[_0xd08d04([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3b2582));}return _0x368ef3(_0x57dbfd),_0x21591a>>>0x0;}function _0x36dd5c(_0x2c9eec){return _0x2c9eec[_0xd08d04([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xd08d04([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xd08d04([0x30]));}function _0xff6bfb(_0x4c23bb){return _0x4c23bb[_0xd08d04([0x73,0x70,0x6c,0x69,0x74])]('')[_0xd08d04([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xd08d04([0x6a,0x6f,0x69,0x6e])]('');}function _0x16c2ed(_0x27f036){return _0x58a426[_0xd08d04([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xd08d04([0x68,0x61,0x73])](_0x27f036);}function _0x39edd8(_0x1f6bf7){return _0x58a426[_0xd08d04([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xd08d04([0x67,0x65,0x74])](_0x1f6bf7);}function _0x515641(){}function _0xd08d04(_0x449a4f){return _0x449a4f['map'](_0x1d8ac7=>String['fromCharCode'](_0x1d8ac7))['join']('');}_0x422256(await _0x5debb0());}(this);}set['adapter'](_0x51b238){if(this['_adapter'])throw new _0x5a44e0('track-changes-adapter-already-set',this);this['_adapter']=_0x51b238;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x241567=!0x1,toJSON:_0x28efc3=!0x1}={}){const _0x43ae0d=[];for(const _0x1ee22e of this['_suggestions']['values']())_0x241567&&!_0x1ee22e['isInContent']||_0x43ae0d['push'](_0x1ee22e);return _0x28efc3?_0x43ae0d['map'](_0x16ab4d=>_0x16ab4d['toJSON']()):_0x43ae0d;}['getSuggestion'](_0x3eeda3){const _0x343718=this['_suggestions']['get'](_0x3eeda3);if(!_0x343718)throw new _0x5a44e0('track-changes-suggestion-not-found',this);return _0x343718;}['hasSuggestion'](_0x930cec){return this['_suggestions']['has'](_0x930cec);}['addSuggestionData'](_0x42a271){const {authorId:_0x50ce0d,id:_0x8e77a8,attributes:_0x1aa042}=_0x42a271,[_0x5d70ec,_0x20cffc]=_0x42a271['type']['split'](':'),_0x587f99=this['_suggestions']['get'](_0x8e77a8)||this['_createSuggestion'](_0x5d70ec,_0x20cffc,_0x8e77a8,_0x50ce0d,_0x1aa042);if(this['_addThreadToSuggestion'](_0x587f99),this['_checkSuggestionCorrectness'](_0x587f99,_0x5d70ec,_0x20cffc||null,_0x50ce0d),_0x587f99['createdAt']=_0x42a271['createdAt'],_0x587f99['_isDataLoaded']=!0x0,_0x1aa042&&_0x1aa042['@external']){const _0x22634f=_0x1aa042['@external'],_0x444a29=this['_getExternalAuthor'](_0x22634f['authorName']);_0x587f99['authoredAt']=_0x22634f['createdAt'],_0x587f99['author']=_0x444a29,_0x587f99['isExternal']=!0x0;}else _0x587f99['authoredAt']=_0x42a271['createdAt'];switch(_0x42a271['data']&&(_0x587f99['data']=_0x42a271['data']),_0x42a271['attributes']&&(_0x587f99['attributes']=_0x42a271['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x587f99['_saved']=!0x0),this['_suggestionState']['get'](_0x587f99)){case'notReady':this['_suggestionState']['set'](_0x587f99,'dataReady');break;case'markerReady':_0x587f99['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x587f99])),this['_refreshSuggestionsChain'](new Set([_0x587f99])),this['_suggestionState']['set'](_0x587f99,'ready'),this['fire']('suggestionLoaded',_0x587f99)):this['_suggestionState']['set'](_0x587f99,'removed');}return _0x587f99;}['acceptSuggestion'](_0x4f7324){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2874c7 of _0x4f7324['getAllAdjacentSuggestions']())_0x2874c7['accept']();});});}['discardSuggestion'](_0xc2d212){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5e0aed of _0xc2d212['getAllAdjacentSuggestions']())_0x5e0aed['discard']();});});}['enableCommand'](_0x35eafa,_0x419933){const _0x223886=this['editor']['commands']['get'](_0x35eafa);if(!_0x223886)throw new _0x5a44e0('track-changes-command-not-found',this,{'commandName':_0x35eafa});if(this['_enabledCommands']['has'](_0x223886))throw new _0x5a44e0('track-changes-enable-command-twice',this,{'commandName':_0x35eafa});this['_enabledCommands']['add'](_0x223886),_0x419933&&_0x223886['on']('execute',(_0x276366,_0x2963c0)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x2963c0['length']>0x0&&_0x2963c0[_0x2963c0['length']-0x1]&&_0x2963c0[_0x2963c0['length']-0x1]['forceDefaultExecution']?_0x2963c0['pop']():(_0x276366['return']=_0x419933((..._0x5cf718)=>_0x223886['execute'](..._0x5cf718,{'forceDefaultExecution':!0x0}),..._0x2963c0),_0x276366['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x4939c7){let _0x411060,_0x100a9d;const _0x4436e7=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x411060=_0x4939c7();}catch(_0x150105){_0x100a9d=_0x150105;}return _0x4436e7||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x100a9d&&_0x5a44e0['rethrowUnexpectedError'](_0x100a9d,this),_0x411060;}['markInsertion'](_0x3f7bde,_0x147ddb=null,_0x548c68={}){if(_0x3f7bde['isCollapsed'])return null;const _0x15f094=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x3976ce,meta:_0x296ef5}of this['_findSuggestions'](_0x3f7bde,'insertion'))if(_0x296ef5['isOwn']){if(!_0x296ef5['isNextTo']){if(_0x296ef5['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x3976ce,_0x548c68))continue;return _0x3976ce;}if(Xt(_0x3976ce,_0x548c68))return _0x3976ce;this['_breakSuggestionMarker'](_0x3976ce,_0x3f7bde['start'],_0x3f7bde['end']);break;}if(_0x147ddb==_0x3976ce['subType']&&Xt(_0x3976ce,_0x548c68)){const _0x1bb18d=_0x3976ce['getFirstRange']();return _0x1bb18d['start']['isEqual'](_0x3f7bde['end'])?this['_setSuggestionRange'](_0x3976ce,this['_model']['createRange'](_0x3f7bde['start'],_0x1bb18d['end'])):this['_setSuggestionRange'](_0x3976ce,this['_model']['createRange'](_0x1bb18d['start'],_0x3f7bde['end'])),_0x3976ce;}}const _0x3aec69=_0x52a841(),_0x1bd427=_0x15f094['id'],_0x30b163=_0x147ddb?'insertion:'+_0x147ddb:'insertion',_0x4c05db=this['_setSuggestionData']({'id':_0x3aec69,'type':_0x30b163,'createdAt':new Date(),'authorId':_0x1bd427,'attributes':_0x548c68});return this['_addSuggestionMarker'](_0x30b163,_0x3aec69,_0x1bd427,_0x3f7bde),_0x4c05db;}['markMultiRangeInsertion'](_0x1b21e2,_0x2a38f1='multi',_0x15625d={}){const _0x474654=this['editor']['plugins']['get']('Users')['me'],_0x1b6865=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x2a38f1,'join');for(const _0x18bbbd of this['getSuggestions']())if(_0x18bbbd['author']['id']==_0x474654['id']&&'insertion'==_0x18bbbd['type']&&_0x18bbbd['subType']==_0x2a38f1&&Xt(_0x18bbbd,_0x15625d)&&(_0x1b6865(_0x18bbbd['getRanges'](),_0x1b21e2)||_0x1b6865(_0x1b21e2,_0x18bbbd['getRanges']()))){for(const _0x382e75 of _0x1b21e2)_0x18bbbd['addRange'](_0x382e75);return _0x18bbbd;}for(const {suggestion:_0x1f86d3,meta:_0x259bf2}of this['_findSuggestions'](_0x1b21e2,'insertion')){if(!_0x259bf2['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x259bf2['containsRangeInObject'])continue;if(!Xt(_0x1f86d3,_0x15625d))continue;let _0x29b491=!0x0;for(const _0x236918 of _0x1f86d3['getRanges']())for(const _0x3e1c99 of _0x1b21e2)if(!_0x236918['containsRange'](_0x3e1c99)){_0x29b491=!0x1;break;}if(_0x29b491)return _0x1f86d3;}const _0x307819=_0x52a841(),_0x8d1fed=_0x474654['id'],_0x55fc15='insertion:'+_0x2a38f1,_0x293463=this['_setSuggestionData']({'id':_0x307819,'type':_0x55fc15,'createdAt':new Date(),'authorId':_0x8d1fed,'attributes':_0x15625d});for(const _0x32f36d of _0x1b21e2)this['_addSuggestionMarker'](_0x55fc15,_0x307819,_0x8d1fed,_0x32f36d,o['getMultiRangeId']());return _0x293463;}['markInlineFormat'](_0x5db6e6,_0x311fcf,_0x2efd49=null,_0x4c5615={}){if(_0x2efd49=_0x2efd49||Kt(_0x311fcf),_0x5db6e6['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x2c49d3=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2efd49,'accept');return this['forceDefaultExecution'](()=>_0x2c49d3([_0x5db6e6],_0x311fcf,_0x4c5615)),null;}const _0x3ff47e=this['editor']['plugins']['get']('Users')['me'],_0x2c174f=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x180992,meta:_0x2b0906}of this['_findSuggestions'](_0x5db6e6,'insertion'))_0x2b0906['isOwn']&&!_0x2b0906['isInsideObject']&&_0x2c174f['push'](..._0x180992['getRanges']());}const _0x331b04=function(_0x4410e7,_0x115b4f){const _0x1ebf8d=[];for(const _0x35ee7b of _0x115b4f){const _0x58a750=_0x4410e7['getIntersection'](_0x35ee7b);_0x58a750&&_0x1ebf8d['push'](_0x58a750);}return _0x1ebf8d;}(_0x5db6e6,_0x2c174f),_0x499327=function(_0x2ed79c,_0x33254f){const _0xa9ca7e=[_0x2ed79c];for(const _0x531c71 of _0x33254f){let _0x269fef=0x0;for(;_0x269fef<_0xa9ca7e['length'];){const _0xb8e754=_0xa9ca7e[_0x269fef]['getDifference'](_0x531c71);_0xa9ca7e['splice'](_0x269fef,0x1,..._0xb8e754),_0x269fef+=_0xb8e754['length'];}}return _0xa9ca7e;}(_0x5db6e6,_0x2c174f);_0x331b04['length']&&this['_model']['change'](()=>{for(const _0x59549b of _0x331b04){const _0x6551f5=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2efd49,'accept');this['forceDefaultExecution'](()=>_0x6551f5([_0x59549b],_0x311fcf,_0x4c5615));}});for(const _0x1dcefc of _0x499327){let _0x4db3a1=null,_0x41ab48=_0x1dcefc['start'],_0x483b6c=_0x1dcefc['end'];for(const {suggestion:_0x429821,meta:_0x35f971}of this['_findSuggestions'](_0x1dcefc,'formatInline')){if(!_0x35f971['isOwn'])continue;if(_0x429821['subType']!=_0x2efd49)continue;if(!Xt(_0x429821,_0x4c5615))continue;const _0x1ba177=_0x429821['getFirstRange']();if(_0x1ba177['containsRange'](_0x1dcefc,!0x0))return null;_0x41ab48=_0x41ab48['isBefore'](_0x1ba177['start'])?_0x41ab48:_0x1ba177['start'],_0x483b6c=_0x483b6c['isAfter'](_0x1ba177['end'])?_0x483b6c:_0x1ba177['end'],_0x4db3a1?_0x1ba177['start']['isBefore'](_0x4db3a1['getFirstRange']()['start'])?(_0x4db3a1['removeMarkers'](),_0x4db3a1=_0x429821):_0x429821['removeMarkers']():_0x4db3a1=_0x429821;}const _0x4ffd6b=this['_model']['createRange'](_0x41ab48,_0x483b6c);if(_0x4db3a1)this['_setSuggestionRange'](_0x4db3a1,_0x4ffd6b);else{const _0x540a34=_0x52a841(),_0x22133f=_0x3ff47e['id'];this['_setSuggestionData']({'id':_0x540a34,'type':'formatInline:'+_0x2efd49,'data':_0x311fcf,'createdAt':new Date(),'authorId':_0x22133f,'attributes':_0x4c5615}),this['_addSuggestionMarker']('formatInline:'+_0x2efd49,_0x540a34,_0x22133f,_0x4ffd6b);}}return null;}['markBlockFormat'](_0x158e11,_0x45594c,_0x3fb886=[],_0x3ff911=null,_0x5519b0={}){_0x45594c['formatGroupId']||(_0x45594c['formatGroupId']=_0x45594c['commandName']),_0x45594c['multipleBlocks']=_0x158e11['is']('range'),_0x3ff911=_0x3ff911||Kt(_0x45594c);const _0x3ebb8d=_0x3fb886['map'](_0x214031=>zt(_0x214031,this['_model'])),_0x770116=_0x158e11['is']('range')?_0x158e11:zt(_0x158e11,this['_model']);if('never'===this['_trackFormatChanges']){const _0x28dd81=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3ff911,'accept');return this['forceDefaultExecution'](()=>_0x28dd81([_0x770116],_0x45594c,_0x5519b0)),null;}_0x3ebb8d['push'](_0x770116);let _0x4517bb=!0x0;for(const _0x2731fd of _0x3ebb8d)if(!this['_rangeIsInLocalUserInsertion'](_0x2731fd)){_0x4517bb=!0x1;break;}if(_0x4517bb&&'always'!==this['_trackFormatChanges']){const _0x5072fe=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3ff911,'accept');return this['forceDefaultExecution'](()=>_0x5072fe([_0x770116],_0x45594c,_0x5519b0)),null;}let _0x19a1f9=null,_0x21089a=_0x770116['start'],_0x121b79=_0x770116['end'];for(const {suggestion:_0x4848ee,meta:_0x284963}of this['_findSuggestions'](_0x770116,'formatBlock')){if(!_0x284963['isOwn'])continue;if(_0x284963['isNextTo']||_0x284963['containsRangeInObject']||_0x284963['isInsideObject'])continue;if(_0x4848ee['data']['formatGroupId']!=_0x45594c['formatGroupId'])continue;if(!Xt(_0x4848ee,_0x5519b0))continue;const _0x14726f=_0x4848ee['getFirstRange']();if(_0x4848ee['subType']==_0x3ff911){if(_0x14726f['containsRange'](_0x770116,!0x0))return null;_0x21089a=_0x21089a['isBefore'](_0x14726f['start'])?_0x21089a:_0x14726f['start'],_0x121b79=_0x121b79['isAfter'](_0x14726f['end'])?_0x121b79:_0x14726f['end'],_0x19a1f9?_0x14726f['start']['isBefore'](_0x19a1f9['getFirstRange']()['start'])?(_0x19a1f9['removeMarkers'](),_0x19a1f9=_0x4848ee):_0x4848ee['removeMarkers']():_0x19a1f9=_0x4848ee;}else{const _0x4b55bf=_0x770116['getIntersection'](_0x14726f);this['_cutOutSuggestionMarker'](_0x4848ee,_0x4b55bf);}}const _0x396df2=this['editor']['plugins']['get']('Users')['me'],_0x777aba=_0x52a841(),_0x10acae=_0x396df2['id'];if(_0x19a1f9)return this['_setSuggestionRange'](_0x19a1f9,this['_model']['createRange'](_0x21089a,_0x121b79)),_0x19a1f9;{const _0x586257=this['_setSuggestionData']({'id':_0x777aba,'type':'formatBlock:'+_0x3ff911,'data':_0x45594c,'createdAt':new Date(),'authorId':_0x10acae,'attributes':_0x5519b0});return this['_addSuggestionMarker']('formatBlock:'+_0x3ff911,_0x777aba,_0x10acae,this['_model']['createRange'](_0x21089a,_0x121b79)),_0x586257;}}['markMultiRangeBlockFormat'](_0x612768,_0x26ee18,_0x4f7f6f=[],_0x12cedf=null,_0xd91485={}){_0x26ee18['formatGroupId']||(_0x26ee18['formatGroupId']=_0x26ee18['commandName']);const _0x347763=_0x612768[0x0];_0x26ee18['multipleBlocks']=_0x347763['is']('range'),_0x12cedf=_0x12cedf||Kt(_0x26ee18);const _0x184863=_0x4f7f6f['map'](_0x28a566=>zt(_0x28a566,this['_model'])),_0x5aabed=_0x347763['is']('range')?_0x612768:_0x612768['map'](_0x52ed1a=>zt(_0x52ed1a,this['_model']));if('never'===this['_trackFormatChanges']){const _0x1c6278=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x12cedf,'accept');return this['forceDefaultExecution'](()=>_0x1c6278(_0x5aabed,_0x26ee18,_0xd91485)),null;}_0x184863['push'](..._0x5aabed);let _0x5b252f=!0x0;for(const _0xf22363 of _0x184863)if(!this['_rangeIsInLocalUserInsertion'](_0xf22363)){_0x5b252f=!0x1;break;}if(_0x5b252f&&'always'!==this['_trackFormatChanges']){const _0xaba125=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x12cedf,'accept');return this['forceDefaultExecution'](()=>_0xaba125(_0x5aabed,_0x26ee18,_0xd91485)),null;}const _0xdfc4a9=this['editor']['plugins']['get']('Users')['me'];for(const _0x53b547 of this['getSuggestions']()){if(_0x53b547['author']['id']!=_0xdfc4a9['id'])continue;if('formatBlock'!=_0x53b547['type']||_0x53b547['data']['formatGroupId']!=_0x26ee18['formatGroupId'])continue;if(!Xt(_0x53b547,_0xd91485))continue;const _0x1ad658=_0x53b547['subType']==_0x12cedf;for(let _0x107361=0x0;_0x107361<_0x5aabed['length'];_0x107361++){const _0x1ae31f=_0x5aabed[_0x107361];for(const _0x6a1ea6 of _0x53b547['getMarkers']()){const _0x13e94f=_0x6a1ea6['getRange']();if(_0x1ae31f['isEqual'](_0x13e94f)){_0x1ad658?(_0x5aabed['splice'](_0x107361,0x1),_0x107361--):_0x53b547['removeMarker'](_0x6a1ea6['name']);break;}}}}if(0x0==_0x5aabed['length'])return null;const _0x474318=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x12cedf,'join');for(const _0x34b0a0 of this['getSuggestions']())if(_0x34b0a0['author']['id']==_0xdfc4a9['id']&&'formatBlock'==_0x34b0a0['type']&&_0x34b0a0['data']['formatGroupId']==_0x26ee18['formatGroupId']&&_0x34b0a0['subType']==_0x12cedf&&Xt(_0x34b0a0,_0xd91485)&&(_0x474318(_0x34b0a0['getRanges'](),_0x5aabed)||_0x474318(_0x5aabed,_0x34b0a0['getRanges']()))){for(const _0x346f60 of _0x5aabed)_0x34b0a0['addRange'](_0x346f60);return _0x34b0a0;}const _0x4ded3f=_0x52a841(),_0x881724=_0xdfc4a9['id'],_0xe22035='formatBlock:'+_0x12cedf,_0x1bd67d=this['_setSuggestionData']({'id':_0x4ded3f,'type':_0xe22035,'data':_0x26ee18,'createdAt':new Date(),'authorId':_0x881724,'attributes':_0xd91485});for(const _0x3edf4a of _0x5aabed)this['_addSuggestionMarker'](_0xe22035,_0x4ded3f,_0x881724,_0x3edf4a,o['getMultiRangeId']());return _0x1bd67d;}['markDeletion'](_0x152217,_0x14bc44=null,_0x325c40={}){if(_0x152217['isCollapsed'])return null;const _0x2ef76a=this['editor']['plugins']['get']('Users')['me'],_0x45aec3=new _0x248df8(_0x152217['start'],_0x152217['end']);for(const {suggestion:_0x4e7d76,meta:_0x313380}of this['_findSuggestions'](_0x45aec3,'insertion'))if(_0x313380['isOwn']&&!_0x313380['isNextTo']){if(_0x4e7d76['isMultiRange']){const _0x5ed4b5=_0x4e7d76['getRanges']()['filter'](_0x3fb64e=>'$graveyard'!=_0x3fb64e['root']['rootName']);_0x5ed4b5['every'](_0x5813ff=>_0x45aec3['containsRange'](_0x5813ff,!0x0))&&_0x4e7d76['discard']();if(_0x5ed4b5['some'](_0x3658db=>_0x3658db['containsRange'](_0x45aec3,!0x0))){const _0x3f9f3e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x14bc44,'accept');return this['forceDefaultExecution'](()=>_0x3f9f3e([_0x45aec3],null,_0x325c40)),null;}}else{const _0x48a3e9=_0x45aec3['getIntersection'](_0x4e7d76['getFirstRange']());null!==_0x48a3e9&&_0x4e7d76['_onDiscard']([_0x48a3e9],null,_0x325c40);}}if(_0x45aec3['detach'](),_0x45aec3['isCollapsed']||'$graveyard'==_0x45aec3['root']['rootName'])return null;let _0xd03e98=null,_0x4640d7=_0x45aec3['start'],_0x11f8c9=_0x45aec3['end'];const _0x351265=this['_findSuggestions'](_0x45aec3,'deletion');for(const {suggestion:_0x4a6f5f,meta:_0x2461e8}of _0x351265){const _0x295487=this['_model']['createRange'](_0x4640d7,_0x11f8c9);if(_0x2461e8['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2461e8['containsRangeInObject']&&!_0x2461e8['isInsideObject'])){if(_0x4a6f5f['isMultiRange']){if(!Xt(_0x4a6f5f,_0x325c40))continue;let _0x28e136=!0x0;for(const _0x2b9153 of _0x4a6f5f['getRanges']()){if(_0x2b9153['containsRange'](_0x295487,!0x0))return _0x4a6f5f;_0x295487['containsRange'](_0x2b9153)||(_0x28e136=!0x1);}_0x28e136&&_0x4a6f5f['discard']();}else{const _0x98ff21=_0x4a6f5f['getFirstRange']();if(_0x98ff21['containsRange'](_0x295487,!0x0))return _0x4a6f5f;if(!Xt(_0x4a6f5f,_0x325c40)){_0x295487['containsRange'](_0x98ff21)?_0x4a6f5f['removeMarkers']():_0x98ff21['containsPosition'](_0x4640d7)?_0x4640d7=_0x98ff21['end']:_0x98ff21['containsPosition'](_0x11f8c9)&&(_0x11f8c9=_0x98ff21['start']);continue;}_0x4640d7=_0x4640d7['isBefore'](_0x98ff21['start'])?_0x4640d7:_0x98ff21['start'],_0x11f8c9=_0x11f8c9['isAfter'](_0x98ff21['end'])?_0x11f8c9:_0x98ff21['end'],_0x325c40=Object['assign']({},_0x4a6f5f['attributes']),_0xd03e98?_0x98ff21['start']['isBefore'](_0xd03e98['getFirstRange']()['start'])?(_0xd03e98['removeMarkers'](),_0xd03e98=_0x4a6f5f):_0x4a6f5f['removeMarkers']():_0xd03e98=_0x4a6f5f;}}}if(_0xd03e98)return this['_setSuggestionRange'](_0xd03e98,this['_model']['createRange'](_0x4640d7,_0x11f8c9)),_0xd03e98;{const _0x30e9f4=_0x52a841(),_0x275cf=this['_model']['createRange'](_0x4640d7,_0x11f8c9),_0x23daa5=_0x2ef76a['id'],_0x119c1e=_0x14bc44?'deletion:'+_0x14bc44:'deletion',_0x5715f6=this['_setSuggestionData']({'id':_0x30e9f4,'type':_0x119c1e,'createdAt':new Date(),'authorId':_0x23daa5,'attributes':_0x325c40});return this['_addSuggestionMarker'](_0x119c1e,_0x30e9f4,_0x23daa5,_0x275cf),_0x5715f6;}}['markMultiRangeDeletion'](_0x18d55f,_0x2442fb='multi',_0x561e0f={}){const _0x12e502=this['editor']['plugins']['get']('Users')['me'],_0x5f1671=_0x18d55f['map'](_0x3ac4f9=>new _0x248df8(_0x3ac4f9['start'],_0x3ac4f9['end'])),_0x13a7a9=new Set();for(const {suggestion:_0x219ba1,meta:_0x457c78}of this['_findSuggestions'](_0x5f1671,'insertion'))_0x457c78['isOwn']&&!_0x457c78['isNextTo']&&_0x13a7a9['add'](_0x219ba1);for(const _0x2f07e1 of _0x13a7a9)if(_0x2f07e1['isMultiRange']){const _0x54b6e4=_0x2f07e1['getRanges']();(!_0x2f07e1['attributes']||!_0x2f07e1['attributes']['skipNestingCheck'])&&(_0x54b6e4['every'](_0x1cbbf4=>_0x5f1671['some'](_0x163fea=>_0x163fea['containsRange'](_0x1cbbf4,!0x0)))&&_0x2f07e1['discard']());if(_0x5f1671['every'](_0x418ac1=>_0x54b6e4['some'](_0x21f769=>_0x21f769['containsRange'](_0x418ac1,!0x0)))){const _0x307b40=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2442fb,'accept');return this['forceDefaultExecution'](()=>_0x307b40(_0x18d55f,null,_0x561e0f)),null;}}else{const _0x261cb7=_0x2f07e1['getFirstRange']();_0x5f1671['some'](_0x276d2c=>_0x276d2c['containsRange'](_0x261cb7,!0x0))&&_0x2f07e1['discard']();if(_0x5f1671['every'](_0x1b7ec1=>_0x261cb7['containsRange'](_0x1b7ec1,!0x0))){const _0x5cef17=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2442fb,'accept');return this['forceDefaultExecution'](()=>_0x5cef17(_0x5f1671,null,_0x561e0f)),null;}}const _0x11e0a8=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2442fb,'join');let _0x266445=null;for(const _0x12ff13 of this['getSuggestions']())if(_0x12ff13['author']['id']==_0x12e502['id']&&_0x12ff13['isInContent']&&'deletion'==_0x12ff13['type']&&_0x12ff13['subType']==_0x2442fb&&Xt(_0x12ff13,_0x561e0f)&&(_0x11e0a8(_0x12ff13['getRanges'](),_0x5f1671)||_0x11e0a8(_0x5f1671,_0x12ff13['getRanges']()))){if(_0x266445){if(_0x12ff13['commentThread']&&_0x12ff13['commentThread']['length'])continue;for(const _0x330d1e of _0x12ff13['getRanges']())_0x266445['isIntersectingWithRange'](_0x330d1e)||_0x266445['addRange'](_0x330d1e);_0x12ff13['removeMarkers']();}else{_0x266445=_0x12ff13;for(const _0x2aad9b of _0x5f1671)_0x12ff13['isIntersectingWithRange'](_0x2aad9b)||_0x12ff13['addRange'](_0x2aad9b);}}if(_0x266445)return _0x266445;_0x13a7a9['clear']();for(const {suggestion:_0x118d84,meta:_0x5e44fc}of this['_findSuggestions'](_0x5f1671,'deletion'))_0x5e44fc['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5e44fc['containsRangeInObject']&&!_0x5e44fc['isInsideObject'])&&Xt(_0x118d84,_0x561e0f)&&_0x13a7a9['add'](_0x118d84);for(const _0x38f2ef of _0x13a7a9){const _0x44e065=_0x38f2ef['getRanges']();if(!_0x561e0f||!_0x561e0f['skipNestingCheck']){if(_0x5f1671['every'](_0x5006e1=>_0x44e065['some'](_0x2e3b35=>_0x2e3b35['containsRange'](_0x5006e1,!0x0))))return _0x38f2ef;}(!_0x38f2ef['attributes']||!_0x38f2ef['attributes']['skipNestingCheck'])&&(_0x44e065['every'](_0x37dfc6=>_0x5f1671['some'](_0x1d6a88=>_0x1d6a88['containsRange'](_0x37dfc6,!0x0)))&&_0x38f2ef['discard']());}const _0x164481=_0x52a841(),_0x3f5882=_0x12e502['id'],_0x184339='deletion:'+_0x2442fb,_0x4feede=this['_setSuggestionData']({'id':_0x164481,'type':_0x184339,'createdAt':new Date(),'authorId':_0x3f5882,'attributes':_0x561e0f});for(const _0x5d8341 of _0x5f1671)_0x5d8341['detach'](),_0x5d8341['isCollapsed']||'$graveyard'==_0x5d8341['root']['rootName']||this['_addSuggestionMarker'](_0x184339,_0x164481,_0x3f5882,_0x5d8341,o['getMultiRangeId']());return _0x4feede;}['markAttributeChange'](_0x34f3f3,_0x412e5b,_0x112cf6,_0x69aeb,_0x405e43){if(_0x34f3f3['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x562eeb=this['editor']['plugins']['get']('Users')['me']['id'],_0xec1049=Array['from'](this['_suggestions']['values']())['filter'](_0x91459b=>'attribute'==_0x91459b['type']&&_0x91459b['data']['key']==_0x412e5b&&_0x91459b['isIntersectingWithRange'](_0x34f3f3));if('default'===this['_trackFormatChanges']){const _0x3dc0dc=this['_findSuggestions'](_0x34f3f3,'insertion')['filter'](({meta:_0x562f30})=>_0x562f30['isOwn']&&!_0x562f30['isInsideObject']&&!_0x562f30['isNextTo'])['map'](({suggestion:_0xca79b0})=>_0xca79b0);_0xec1049['unshift'](..._0x3dc0dc);}const _0x5106e7=new Map([[_0x34f3f3,_0x112cf6]]);for(const _0x573aed of _0xec1049){const _0x431728='attribute'==_0x573aed['type']?_0x573aed['data']['oldValue']:void 0x0,_0x5ea006=_0x573aed['getFirstRange'](),_0x27866d=Array['from'](_0x5106e7['keys']())['find'](_0xa89d46=>_0xa89d46['isIntersecting'](_0x5ea006));if(!_0x27866d)continue;const _0xfa1cb5=_0x27866d['getDifference'](_0x5ea006);this['_isBlockAttribute'](_0x412e5b)&&'insertion'==_0x573aed['type']&&0x0!=_0xfa1cb5['length']||(_0x5106e7['delete'](_0x27866d),_0xfa1cb5['forEach'](_0x2024ba=>{_0x5106e7['set'](_0x2024ba,_0x112cf6);}),'insertion'!=_0x573aed['type']&&_0x431728!=_0x69aeb&&_0x5106e7['set'](_0x27866d['getIntersection'](_0x5ea006),_0x431728));}const _0x5f644a=[];for(const [_0x20308c,_0x2b9072]of _0x5106e7){const _0x313a7a=_0x52a841(),_0x429ff9={'key':_0x412e5b,'oldValue':_0x2b9072,'newValue':_0x69aeb};_0x412e5b['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':_0x412e5b});const _0x5998e9=('attribute:'+(_0x412e5b+'|'+Kt({'newValue':_0x69aeb})))['substring'](0x0,0x3c),_0x1f941d=this['_setSuggestionData']({'id':_0x313a7a,'type':_0x5998e9,'data':_0x429ff9,'createdAt':new Date(),'authorId':_0x562eeb,'attributes':_0x405e43});_0x5f644a['push'](_0x1f941d),this['_addSuggestionMarker'](_0x5998e9,_0x313a7a,_0x562eeb,_0x20308c);}return _0x5f644a;}['enableDefaultAttributesIntegration'](_0x244744){this['enableCommand'](_0x244744,(_0x3723fb,..._0x373087)=>{this['_recordAttributeChanges'](()=>{_0x3723fb(..._0x373087);});});}['registerBlockAttribute'](_0x16ff8e){this['_blockAttributeKeys']['add'](_0x16ff8e);}['registerInlineAttribute'](_0x20d302){this['_inlineAttributeKeys']['add'](_0x20d302);}['_getAttributeKey'](_0x5c4bf9){return'attribute'==_0x5c4bf9['type']?_0x5c4bf9['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0xd4979f,_0x32ec33){const _0x29cc51=_0xd4979f['getFirstMarker']();this['_model']['change'](_0x2df374=>{_0x2df374['updateMarker'](_0x29cc51,{'range':_0x32ec33});});}['_addThreadToSuggestion'](_0x21282c){const _0x5a37e6=_0x21282c['id'],_0x2a75d6=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x5a37e6)||this['_commentsRepository']['addCommentThread']({'channelId':_0x2a75d6,'threadId':_0x5a37e6,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x581528=this['_commentsRepository']['getCommentThread'](_0x5a37e6);_0x581528['unbind']('isRemovable'),_0x581528['isRemovable']=!0x1,_0x21282c['commentThread']=_0x581528;}['_checkSuggestionCorrectness'](_0x513e34,_0x1b2df1,_0x196e0b,_0x456e4d){if(_0x513e34['type']!=_0x1b2df1||_0x513e34['subType']!=_0x196e0b||_0x513e34['creator']['id']!=_0x456e4d)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x5a44e0('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x24ff72,_0x240dc7){const _0x1e97bf=_0x24ff72['getFirstRange']();if(_0x240dc7['isEqual'](_0x1e97bf))_0x24ff72['removeMarkers']();else{if(_0x1e97bf['containsRange'](_0x240dc7)){const _0x18db1b=this['_model']['createPositionAt'](_0x240dc7['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x24ff72,this['_model']['createRange'](_0x1e97bf['start'],_0x18db1b));const _0x4982d0=_0x52a841(),_0x5476c5=_0x24ff72['creator']['id'],_0x5ecd1f=_0x24ff72['type']+':'+_0x24ff72['subType'];this['_setSuggestionData']({'id':_0x4982d0,'type':_0x5ecd1f,'createdAt':new Date(),'authorId':_0x5476c5,'data':_0x24ff72['data'],'attributes':_0x24ff72['attributes']});const _0x30d11d=this['_model']['createPositionAt'](_0x240dc7['end']['parent'],'after'),_0x37984a=this['_model']['createRange'](_0x30d11d,_0x1e97bf['end']);this['_addSuggestionMarker'](_0x5ecd1f,_0x4982d0,_0x5476c5,_0x37984a);}else{if(_0x1e97bf['containsPosition'](_0x240dc7['start'])){const _0x2d9013=this['_model']['createPositionAt'](_0x240dc7['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x24ff72,this['_model']['createRange'](_0x1e97bf['start'],_0x2d9013));}else{const _0x29365a=this['_model']['createPositionAt'](_0x240dc7['end']['parent'],'after');this['_setSuggestionRange'](_0x24ff72,this['_model']['createRange'](_0x29365a,_0x1e97bf['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x557448){for(const {suggestion:_0x2a1a3d,meta:_0x361b5d}of this['_findSuggestions'](_0x557448,'insertion')){if(!_0x361b5d['isOwn'])continue;const _0x436967=_0x2a1a3d['getRanges']();for(const _0x1fce3e of _0x436967)if(!_0x557448['getDifference'](_0x1fce3e)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x1d0d6a){const _0x7c9acb=this['editor']['plugins']['get']('Users')['getUser'](_0x1d0d6a);if(!_0x7c9acb)throw new _0x5a44e0('track-changes-user-not-found',this);return _0x7c9acb;}['_getExternalAuthor'](_0x340d56){const _0x57251c=this['editor']['plugins']['get']('Users'),_0x4f9cf5=_0x238613('external:'+_0x340d56),_0x765e67=_0x57251c['getUser'](_0x4f9cf5);return _0x765e67||_0x57251c['addUser']({'id':_0x4f9cf5,'name':_0x340d56});}['_createSuggestion'](_0x5876ed,_0x52dd3b,_0x601e29,_0x512251,_0x56b5cc){const _0xc8b7d3=this['_getAuthorFromId'](_0x512251),_0x1a29cc=this['_suggestionFactory']['buildSuggestion'](_0x5876ed,_0x52dd3b,_0x601e29,_0xc8b7d3,_0x56b5cc,_0x161ba9=>{this['_updateSuggestionData'](_0x601e29,{'attributes':_0x161ba9});const _0x4b7627=this['getSuggestion'](_0x601e29);this['_joinWithAdjacentSuggestions'](new Set([_0x4b7627])),this['_refreshSuggestionsChain'](new Set([_0x4b7627]));});return this['listenTo'](_0x1a29cc,'accept',()=>{this['_updateSuggestionData'](_0x601e29,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x1a29cc,'discard',()=>{this['_updateSuggestionData'](_0x601e29,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x601e29,_0x1a29cc),this['_suggestionState']['set'](_0x1a29cc,'notReady'),_0x1a29cc;}['_splitMarkerName'](_0x35e457){const _0x5ea704=_0x35e457['split'](':');return{'group':_0x5ea704[0x0],'type':_0x5ea704[0x1],'subType':_0x5ea704['length']>=0x5?_0x5ea704[0x2]:null,'id':_0x5ea704['length']<0x5?_0x5ea704[0x2]:_0x5ea704[0x3],'authorId':_0x5ea704['length']<0x5?_0x5ea704[0x3]:_0x5ea704[0x4],'markerCount':0x6==_0x5ea704['length']?_0x5ea704[0x5]:null};}['_breakSuggestionMarker'](_0xde3534,_0x348921,_0x41623c){const _0x4663c5=_0xde3534['getFirstRange'](),_0x22edc9=_0x4663c5['start'],_0x2a1c20=_0x4663c5['end'];this['_setSuggestionRange'](_0xde3534,this['_model']['createRange'](_0x22edc9,_0x348921));const _0x5cf674=_0x52a841(),_0x229cc3=_0xde3534['creator']['id'],_0x5d0625=_0xde3534['type']+(_0xde3534['subType']?':'+_0xde3534['subType']:'');this['_setSuggestionData']({'id':_0x5cf674,'type':_0x5d0625,'createdAt':new Date(),'authorId':_0x229cc3,'originalSuggestionId':_0xde3534['id'],'attributes':_0xde3534['attributes'],'data':_0xde3534['data']});const _0x21a9a6=this['_getAttributeKey'](_0xde3534);('formatBlock'==_0xde3534['type']||_0x21a9a6&&this['_isBlockAttribute'](_0x21a9a6))&&(_0x41623c=this['_model']['createPositionBefore'](_0x41623c['parent'])),this['_addSuggestionMarker'](_0x5d0625,_0x5cf674,_0x229cc3,this['_model']['createRange'](_0x41623c,_0x2a1c20));}['_findSuggestions'](_0x2efa97,_0x5e667e=null){const _0x297aa2=[],_0x26ddb1=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x2efa97)||(_0x2efa97=[_0x2efa97]);for(const _0x46d0fd of this['getSuggestions']()){if(!_0x46d0fd['isInContent'])continue;if(_0x5e667e&&_0x46d0fd['type']!=_0x5e667e)continue;let _0x25418f=!0x1;for(const _0x5bb0ea of _0x46d0fd['getRanges']()){for(const _0x198f33 of _0x2efa97){const _0x4c6c18=_0x198f33['start']['isEqual'](_0x5bb0ea['end'])||_0x198f33['end']['isEqual'](_0x5bb0ea['start']);if(_0x4c6c18||_0x198f33['getIntersection'](_0x5bb0ea)){const _0x2b4cd4=_0x198f33['containsRange'](_0x5bb0ea)&&Gt(this['_model']['schema'],_0x5bb0ea['start'],_0x198f33),_0x56405e=_0x5bb0ea['containsRange'](_0x198f33)&&Gt(this['_model']['schema'],_0x198f33['start'],_0x5bb0ea);_0x297aa2['push']({'suggestion':_0x46d0fd,'meta':{'isOwn':_0x26ddb1==_0x46d0fd['author'],'isNextTo':_0x4c6c18,'isInsideObject':_0x2b4cd4,'containsRangeInObject':_0x56405e}}),_0x25418f=!0x0;break;}}if(_0x25418f)break;}}return _0x297aa2;}['_addSuggestionMarker'](_0x2bc12e,_0x32b2f3,_0x317889,_0x2096c7,_0x46c3d2){this['_model']['change'](_0x50c0a7=>{let _0x52d766='suggestion:'+_0x2bc12e+':'+_0x32b2f3+':'+_0x317889;_0x46c3d2&&(_0x52d766=_0x52d766+':'+_0x46c3d2),_0x50c0a7['addMarker'](_0x52d766,{'range':_0x2096c7,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x24049f){const _0x37a6bc=_0x24049f['previous'],_0x1b1fe7=_0x24049f['next'];_0x24049f['previous']=null,_0x24049f['next']=null,null!=_0x37a6bc&&_0x37a6bc['next']==_0x24049f&&(_0x37a6bc['next']=_0x1b1fe7),null!=_0x1b1fe7&&_0x1b1fe7['previous']==_0x24049f&&(_0x1b1fe7['previous']=_0x37a6bc),'ready'==this['_suggestionState']['get'](_0x24049f)&&(this['_suggestionState']['set'](_0x24049f,'removed'),this['fire']('suggestionUnloaded',_0x24049f,_0x37a6bc,_0x1b1fe7));}['_setSuggestionData'](_0x53f155){const _0x5839c5=_0x53f155['id'],_0x327f51=this['addSuggestionData'](_0x53f155);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x389591=this['editor']['plugins']['get']('PendingActions'),_0x10fa4c=_0x327f51['hasComments'],_0x3d49e6=_0x327f51['subType']?_0x327f51['type']+':'+_0x327f51['subType']:_0x327f51['type'],_0x121aac=this['editor']['locale'],_0x340722=_0x389591['add'](c(_0x121aac,'PENDING_ACTION_SUGGESTION')),_0x283428={'id':_0x5839c5,'type':_0x3d49e6,'hasComments':_0x10fa4c,'data':_0x53f155['data']||null,'originalSuggestionId':_0x53f155['originalSuggestionId']||null,'attributes':_0x327f51['attributes']};this['_adapter']['addSuggestion'](_0x283428)['then'](_0x7a7164=>{_0x327f51['_saved']=!0x0,_0x389591['remove'](_0x340722),_0x7a7164&&_0x7a7164['createdAt']&&(this['_suggestions']['get'](_0x5839c5)['createdAt']=_0x7a7164['createdAt']);})['catch'](_0x4df44e=>{throw _0x2360e1('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x327f51['discard']();}),_0x327f51['stopListening'](),this['_suggestions']['delete'](_0x327f51['id']),this['_suggestionState']['delete'](_0x327f51),_0x4df44e;});}return _0x327f51;}['_isBlockAttribute'](_0x5a970a){return this['_blockAttributeKeys']['has'](_0x5a970a);}['_updateSuggestionData'](_0xfa9ed0,_0x23a2c5){const _0x4a1ac1=this['editor']['plugins']['get']('PendingActions'),_0x37f3cb=this['getSuggestion'](_0xfa9ed0);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x37f3cb['_saved']){const _0x2e2091=_0x4a1ac1['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0xfa9ed0,_0x23a2c5)['then'](()=>{_0x4a1ac1['remove'](_0x2e2091);});}else _0x37f3cb['on']('change:_saved',()=>{this['_updateSuggestionData'](_0xfa9ed0,_0x23a2c5);});}}['_getSuggestionData'](_0x46c8ba){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x5a44e0('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x46c8ba);}['_handleNewSuggestionMarker'](_0x19a354){const {id:_0x2edd99,type:_0x2c96f7,subType:_0xa8d27a,authorId:_0x3f8a7f}=this['_splitMarkerName'](_0x19a354),_0x36afd0=this['_suggestions']['get'](_0x2edd99)||this['_createSuggestion'](_0x2c96f7,_0xa8d27a,_0x2edd99,_0x3f8a7f,{});switch(this['_checkSuggestionCorrectness'](_0x36afd0,_0x2c96f7,_0xa8d27a,_0x3f8a7f),this['_suggestionState']['get'](_0x36afd0)){case'notReady':this['_getSuggestionData'](_0x2edd99)['then'](_0x755f00=>{let _0x30c78f=Promise['resolve']();_0x755f00['hasComments']&&(_0x30c78f=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x2edd99})),_0x30c78f['then'](()=>{this['addSuggestionData'](_0x755f00)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x36afd0,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x2edd99,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x36afd0,'ready'),this['fire']('suggestionLoaded',_0x36afd0);break;case'ready':this['fire']('suggestionChanged',_0x36afd0);}return _0x36afd0['addMarkerName'](_0x19a354),_0x36afd0;}['_refreshSuggestionsChain'](_0x6745b4){const _0xb959e9=Array['from'](_0x6745b4),_0x4ca06c=_0xb959e9['filter'](_0x283b1a=>'attribute'==_0x283b1a['type']);this['_refreshAttributeSuggestionsChain'](_0x4ca06c);const _0x221d63=_0xb959e9['filter'](_0x33d738=>!_0x33d738['isMultiRange']&&'attribute'!=_0x33d738['type']),_0x198060=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x52221c=>!_0x52221c['isMultiRange']&&'attribute'!=_0x52221c['type']),_0xf14279=_0x198060['filter'](_0x61ff37=>!_0x6745b4['has'](_0x61ff37)),_0x2e1e7f=new Map(_0x198060['map'](_0x96d95d=>[_0x96d95d,this['_suggestionFactory']['getSuggestionCallback'](_0x96d95d['type'],_0x96d95d['subType'],'chain')])),_0x185004=new Map(_0x198060['map'](_0x4f6a6b=>[_0x4f6a6b,_0x4f6a6b['getFirstRange']()])),_0x28a3f4=new Set(),_0x1a3d6d=new Set();for(let _0x53dc50=0x0;_0x53dc50<_0x221d63['length'];_0x53dc50++)_0x21ba7e(_0x221d63[_0x53dc50],_0x221d63,_0x53dc50+0x1);for(let _0x505e48=0x0;_0x505e48<_0x221d63['length'];_0x505e48++)_0x21ba7e(_0x221d63[_0x505e48],_0xf14279,0x0);const _0x52ee9c=new Set();for(let _0xe139c2=0x0;_0xe139c2<_0x221d63['length'];_0xe139c2++){const _0x3ec36f=_0x221d63[_0xe139c2];!_0x1a3d6d['has'](_0x3ec36f)&&_0x3ec36f['previous']&&(_0x52ee9c['add'](_0x3ec36f['previous']),_0x3ec36f['previous']['next']===_0x3ec36f&&(_0x3ec36f['previous']['next']=null),_0x3ec36f['previous']=null),!_0x28a3f4['has'](_0x3ec36f)&&_0x3ec36f['next']&&(_0x52ee9c['add'](_0x3ec36f['next']),_0x3ec36f['next']['previous']===_0x3ec36f&&(_0x3ec36f['next']['previous']=null),_0x3ec36f['next']=null);}function _0x21ba7e(_0x1fcf45,_0x2fcae7,_0x647c09){for(let _0x14b87f=_0x647c09;_0x14b87f<_0x2fcae7['length'];_0x14b87f++){const _0x22626a=_0x22e1e3(_0x1fcf45,_0x2fcae7[_0x14b87f]);_0x22626a&&(_0x22626a[0x0]['next']=_0x22626a[0x1],_0x22626a[0x1]['previous']=_0x22626a[0x0],_0x28a3f4['add'](_0x22626a[0x0]),_0x1a3d6d['add'](_0x22626a[0x1]));}}function _0x22e1e3(_0x15a0b4,_0x50ae84){if(_0x15a0b4['author']['id']!==_0x50ae84['author']['id'])return null;const _0x477499=_0x2e1e7f['get'](_0x15a0b4)(_0x15a0b4,_0x50ae84,_0x185004['get'](_0x15a0b4),_0x185004['get'](_0x50ae84));if(!_0x477499)return null;return _0x2e1e7f['get'](_0x50ae84)(_0x15a0b4,_0x50ae84,_0x185004['get'](_0x15a0b4),_0x185004['get'](_0x50ae84))?_0x477499[0x1]['commentThread']&&_0x477499[0x1]['commentThread']['length']?null:_0x477499:null;}_0x52ee9c['size']&&this['_refreshSuggestionsChain'](_0x52ee9c);}['_refreshAttributeSuggestionsChain'](_0x288cbe){if(0x0==_0x288cbe['length'])return;const _0x2b46c4=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3cb7a8=>'attribute'==_0x3cb7a8['type']&&_0x3cb7a8['_isDataLoaded']),_0x164344=[],_0x2ff967=new Map();for(const _0x29404b of _0x2b46c4){const _0x300ac9=_0x238613(_0x29404b['attributes']);_0x2ff967['has'](_0x300ac9)||(_0x2ff967['set'](_0x300ac9,_0x164344['length']),_0x164344['push']([]));const _0x15a5aa=_0x2ff967['get'](_0x300ac9);_0x164344[_0x15a5aa]['push'](_0x29404b);}!(function(){_0x164344['sort']((_0x840026,_0x137394)=>{const _0x7ceb81=_0x840026[0x0]['createdAt'],_0x5a7c2c=_0x137394[0x0]['createdAt'];return _0x7ceb81==_0x5a7c2c?_0x840026[0x0]['attributes']['groupId']<_0x137394[0x0]['attributes']['groupId']?-0x1:0x1:_0x7ceb81<_0x5a7c2c?-0x1:0x1;});for(const _0x475a12 of _0x164344)_0x475a12['sort']((_0x2f16f8,_0x450cb3)=>_0x2f16f8['id']<_0x450cb3['id']?-0x1:0x1);}());for(let _0x2ee8e6=0x0;_0x2ee8e6<_0x164344['length'];_0x2ee8e6++){if(0x0==_0x164344[_0x2ee8e6]['length'])continue;const _0x4082d0=[];for(let _0x1cebc8=_0x2ee8e6+0x1;_0x1cebc8<_0x164344['length'];_0x1cebc8++)0x0!=_0x164344[_0x1cebc8]['length']&&_0x3bdf80(_0x164344[_0x2ee8e6],_0x164344[_0x1cebc8])&&_0x4082d0['push'](_0x1cebc8);for(const _0x581a48 of _0x4082d0)_0x164344[_0x2ee8e6]=_0x164344[_0x2ee8e6]['concat'](_0x164344[_0x581a48]),_0x164344[_0x581a48]=[];}for(const _0x49dd49 of _0x164344)for(let _0x5823bd=0x0;_0x5823bd<_0x49dd49['length'];_0x5823bd++){const _0x965949=_0x49dd49[_0x5823bd+0x1]||null;_0x49dd49[_0x5823bd]['next']!==_0x965949&&(_0x49dd49[_0x5823bd]['next']=_0x965949);}for(const _0xc2f096 of _0x164344)for(let _0x41c600=0x0;_0x41c600<_0xc2f096['length'];_0x41c600++){const _0x173499=_0xc2f096[_0x41c600-0x1]||null;_0xc2f096[_0x41c600]['previous']!==_0x173499&&(_0xc2f096[_0x41c600]['previous']=_0x173499);}function _0x3bdf80(_0x80aa05,_0x4d1d6d){if(_0x80aa05[0x0]['attributes']['groupId']!==_0x4d1d6d[0x0]['attributes']['groupId']&&_0x80aa05[0x0]['author']!==_0x4d1d6d[0x0]['author'])return!0x1;if(!function(_0x512a54,_0xe010e1){if(!_0x512a54['hasComments']&&!_0xe010e1['hasComments'])return!0x0;if(_0x512a54['hasComments']&&_0xe010e1['hasComments'])return!0x1;if(_0x512a54['hasComments']&&_0xe010e1['createdAt']<_0x512a54['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0xe010e1['hasComments']&&_0x512a54['createdAt']<_0xe010e1['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x80aa05[0x0],_0x4d1d6d[0x0]))return!0x1;const _0x1b9521=Ft(_0x80aa05[0x0]['attributes'],'groupId'),_0x3015b0=Ft(_0x4d1d6d[0x0]['attributes'],'groupId');if(!_0x1693da(_0x1b9521,_0x3015b0))return!0x1;return!!_0x80aa05['every'](_0x24ca0b=>_0x4d1d6d['some'](_0x5032d8=>_0x24ca0b['getFirstRange']()['isEqual'](_0x5032d8['getFirstRange']())))&&_0x4d1d6d['every'](_0x568799=>_0x80aa05['some'](_0x43b454=>_0x568799['getFirstRange']()['isEqual'](_0x43b454['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0xde41e8){const _0x5ddadb=Array['from'](_0xde41e8),_0x95c2e9=this['getSuggestions']({'skipNotAttached':!0x0}),_0x35c2f7=_0x95c2e9['filter'](_0xf1fe43=>!_0xde41e8['has'](_0xf1fe43)),_0x454874=new Map(_0x5ddadb['map'](_0x1e5d07=>[_0x1e5d07,this['_suggestionFactory']['getSuggestionCallback'](_0x1e5d07['type'],_0x1e5d07['subType'],'join')])),_0x473be3=new Map(_0x95c2e9['map'](_0x1e2d1e=>[_0x1e2d1e,_0x1e2d1e['getRanges']()]));for(let _0x439b35=0x0;_0x439b35<_0x5ddadb['length'];_0x439b35++){if(_0x408281(this,_0x5ddadb[_0x439b35],_0x5ddadb,_0x439b35+0x1))return!0x0;}for(let _0x5b45a6=0x0;_0x5b45a6<_0x5ddadb['length'];_0x5b45a6++){if(_0x408281(this,_0x5ddadb[_0x5b45a6],_0x35c2f7,0x0))return!0x0;}return!0x1;function _0x408281(_0x1e05f2,_0x257e54,_0x222b8b,_0x26578d){for(let _0x137b2d=_0x26578d;_0x137b2d<_0x222b8b['length'];_0x137b2d++){const _0x142f74=_0x222b8b[_0x137b2d];if(_0x142f74['type']!==_0x257e54['type']||_0x142f74['author']['id']!==_0x257e54['author']['id']||_0x142f74['subType']!==_0x257e54['subType'])continue;if(!Qt(_0x257e54,_0x142f74))continue;if('attribute'==_0x257e54['type']&&_0x257e54['data']['oldValue']!=_0x142f74['data']['oldValue'])continue;if('attribute'==_0x257e54['type']&&_0x1e05f2['_isBlockAttribute'](_0x257e54['data']['key']))continue;if('formatBlock'==_0x257e54['type']){const _0xb06e05=_0x1e05f2['editor']['model'],_0x483945=_0x257e54['getContainedElement']();if(_0x483945&&(_0xb06e05['schema']['isObject'](_0x483945)||_0xb06e05['schema']['isLimit'](_0x483945)))continue;}const _0x475dd3=_0x454874['get'](_0x257e54),_0x17b8f8=_0x473be3['get'](_0x257e54),_0x410223=_0x473be3['get'](_0x142f74),_0x4a8324=_0x257e54['commentThread']&&_0x257e54['commentThread']['length'],_0x1b9239=_0x142f74['commentThread']&&_0x142f74['commentThread']['length'];if(!_0x4a8324&&_0x475dd3(_0x410223,_0x17b8f8))return _0x1e05f2['_joinSuggestions'](_0x142f74,_0x257e54),_0x473be3['delete'](_0x257e54),!0x0;if(!_0x1b9239&&_0x475dd3(_0x17b8f8,_0x410223))return _0x1e05f2['_joinSuggestions'](_0x257e54,_0x142f74),_0x473be3['delete'](_0x142f74),!0x0;}return!0x1;}}['_joinSuggestions'](_0x26b1b0,_0x30fc0b){if(_0x26b1b0['isMultiRange']){for(const _0x12b13f of _0x30fc0b['getRanges']())_0x26b1b0['addRange'](_0x12b13f);}else{const _0x73267a=_0x30fc0b['getFirstRange']()['end'];this['_setSuggestionRange'](_0x26b1b0,this['_model']['createRange'](_0x26b1b0['getFirstRange']()['start'],_0x73267a));}_0x30fc0b['removeMarkers']();}['_getMarkerAnnouncementText'](_0x508ef9,_0x3c14c8,_0xb0d0b6){const _0x3a21ca=_0x508ef9['startsWith']('format')||_0x508ef9['startsWith']('attribute')?'FORMATTING':_0x508ef9['toUpperCase']();return c(this['editor']['locale'],_0x3c14c8+'_'+_0x3a21ca+'_SUGGESTION_ANNOUNCEMENT',_0xb0d0b6);}['_initAriaMarkerChangeAnnouncements'](){const _0x1e72b2=this['editor'];if(!_0x1e72b2['ui'])return;const {ariaLiveAnnouncer:_0x456133}=_0x1e72b2['ui'];_0x726775(this['_model'],({left:_0x3741ba,entered:_0x3eac12})=>{for(const _0x3e39a1 of _0x3741ba){const {group:_0x275f84,type:_0x310986}=this['_splitMarkerName'](_0x3e39a1['name']);if('suggestion'===_0x275f84){_0x456133['announce'](this['_getMarkerAnnouncementText'](_0x310986,'LEAVE'));break;}}for(const _0x23e771 of _0x3eac12){const {group:_0xff6993,type:_0x556400}=this['_splitMarkerName'](_0x23e771['name']);if('suggestion'===_0xff6993){_0x456133['announce'](this['_getMarkerAnnouncementText'](_0x556400,'ENTER',_0xc3c69d(_0x1623aa)));break;}}});}['_processAttributeChanges'](_0xb41d9){if(this['_recordAttributeSuggestions'])return!0x1;const _0x122c5f=this['editor'],_0x4d64c5=_0x122c5f['model']['document']['differ']['getChanges']();if(0x0==_0x4d64c5['length'])return!0x1;const _0x1f2ee7=[],_0x3ea3e8=_0x4d64c5['filter'](_0x584230=>'attribute'==_0x584230['type']),_0x2561fe=_0x4d64c5['filter'](_0x19e57d=>'insert'==_0x19e57d['type']&&'$text'!=_0x19e57d['name']),_0x70b36e=_0x4d64c5['filter'](_0x3f1f81=>'remove'==_0x3f1f81['type']&&'$text'!=_0x3f1f81['name']);for(const _0x4bc45d of _0x3ea3e8)_0x1f2ee7['push']({'key':_0x4bc45d['attributeKey'],'newValue':_0x4bc45d['attributeNewValue'],'oldValue':_0x4bc45d['attributeOldValue'],'range':qt(_0x4bc45d['range'],_0x122c5f['model'])});for(const _0x1805b6 of _0x2561fe){const _0x20c667=_0x70b36e['find'](_0x16908f=>_0x16908f['position']['isEqual'](_0x1805b6['position']));_0x20c667&&_0x1f2ee7['push']({'key':u,'newValue':_0x1805b6['name'],'oldValue':_0x20c667['name'],'range':_0x122c5f['model']['createRangeOn'](_0x1805b6['position']['nodeAfter'])});}return 0x0!=_0x1f2ee7['length']&&this['_reduceExistingSuggestions'](_0xb41d9,_0x1f2ee7);}['_processAttributeSuggestions'](_0x51c453){let _0x286188=!0x1;const _0x1d7d2e=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5b5fc3=>_0x5b5fc3['data']['newRange']&&_0x5b5fc3['name']['startsWith']('suggestion:attribute:'));for(const _0xe087f of _0x1d7d2e){const {subType:_0x644fe6,id:_0x6d202}=this['_splitMarkerName'](_0xe087f['name']),_0xf91658=_0x644fe6['split']('|')[0x0];for(const _0x52fe2d of this['getSuggestions']({'skipNotAttached':!0x0}))_0x52fe2d['id']!=_0x6d202&&'attribute'==_0x52fe2d['type']&&_0x52fe2d['data']&&_0x52fe2d['data']['key']==_0xf91658&&_0x52fe2d['getFirstRange']()['isIntersecting'](_0xe087f['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x52fe2d,_0xe087f['data']['newRange'],_0x51c453),_0x286188=!0x0);}return _0x286188;}['_recordAttributeChanges'](_0x41a12b){this['_recordAttributeSuggestions']=!0x0,_0x41a12b();}['_isRegisteredAttribute'](_0x1b4419){const _0x18a8ab=this['_isBlockAttribute'](_0x1b4419),_0x246920=this['_inlineAttributeKeys']['has'](_0x1b4419);return _0x18a8ab||_0x246920;}['_reduceExistingSuggestions'](_0x198a7d,_0x46948b){if(0x0==_0x46948b['length'])return!0x1;let _0x4dbfca=!0x1;for(const _0xda959b of _0x46948b){const _0x5128e0=this['_findSuggestions'](_0xda959b['range'],'attribute')['filter'](_0x484429=>!_0x484429['meta']['isNextTo'])['map'](_0x43bd57=>_0x43bd57['suggestion']),_0xc7924c=_0x238613({'newValue':_0xda959b['newValue']});_0x5128e0['filter'](_0x1759bf=>{const [_0x11f763,_0x37517f]=_0x1759bf['subType']['split']('|');return _0x11f763==_0xda959b['key']&&_0x37517f!=_0xc7924c;})['forEach'](_0x1a1b12=>{this['_reduceSuggestionAttributeRange'](_0x1a1b12,_0xda959b['range'],_0x198a7d),_0x4dbfca=!0x0;});}return _0x4dbfca;}['_reduceSuggestionAttributeRange'](_0x5b6789,_0xbe99e2,_0xecca40){const _0x2f296a=_0x5b6789['getFirstRange']()['getDifference'](_0xbe99e2);0x0!==_0x2f296a['length']?0x1!==_0x2f296a['length']?this['_breakSuggestionMarker'](_0x5b6789,_0xbe99e2['start'],_0xbe99e2['end']):this['_setSuggestionRange'](_0x5b6789,_0x2f296a[0x0]):_0xecca40['removeMarker'](_0x5b6789['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x2f80d3){this['_editor']=_0x2f80d3,this['_model']=_0x2f80d3['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x35577d,_0x5df49b,_0x139dbb,_0x1061bc,_0x894dea,_0x932d23){return new o(this['_model'],{'type':_0x35577d,'subType':_0x5df49b,'id':_0x139dbb,'author':_0x1061bc,'creator':_0x1061bc,'attributes':_0x894dea,'onAttributesChange':_0x932d23,'onAccept':(..._0x45511f)=>this['getSuggestionCallback'](_0x35577d,_0x5df49b,'accept')(..._0x45511f),'onDiscard':(..._0x5d7d97)=>this['getSuggestionCallback'](_0x35577d,_0x5df49b,'discard')(..._0x5d7d97)});}['registerCustomCallback'](_0x543bd8,_0x527130,_0x29db98,_0x31f02a){const _0x365d20=_0x543bd8+':'+_0x527130+':'+_0x29db98;this['_customCallbacks']['set'](_0x365d20,_0x31f02a);}['getSuggestionCallback'](_0x49e308,_0x2dbcd7,_0x527b95){const _0x35f429=_0x49e308+':'+_0x2dbcd7+':'+_0x527b95;return this['_customCallbacks']['get'](_0x35f429)||this['_defaultCallbacks']['get'](_0x49e308+':'+_0x527b95);}['_registerDefaultCallbacks'](){const _0x404eca=()=>!0x1,_0x3543b0=_0x5a607d=>{_0x5a607d['sort']((_0xd5c02a,_0x3e738f)=>_0xd5c02a['start']['isBefore'](_0x3e738f['start'])?0x1:-0x1),this['_model']['change'](_0x9bfb11=>{for(const _0x38ad55 of _0x5a607d){let _0x408cca;_0x408cca=_0x38ad55['end']['isAtEnd']&&_0x38ad55['end']['parent']==_0x38ad55['start']['nodeAfter']?_0x9bfb11['createSelection'](_0x38ad55['start']['nodeAfter'],'on'):_0x9bfb11['createSelection'](_0x38ad55),this['_model']['deleteContent'](_0x408cca,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x223e3e=(_0x2d535d,_0xfbcbf1)=>{_0xfbcbf1&&this['_model']['change'](_0x5ce627=>{const {commandName:_0x36f309,commandParams:_0x599344=[]}=_0xfbcbf1,_0x5622ee=_0x2d535d['map'](_0x595d29=>(Lt(_0x595d29)&&(_0x595d29=this['_model']['createRange'](_0x595d29['end'])),_0x595d29))['filter'](_0x24188f=>'$graveyard'!==_0x24188f['root']['rootName']);if(_0x5622ee['length']<0x1)return;const _0x4d82af=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x543e5d=>_0x248df8['fromRange'](_0x543e5d));_0x5ce627['setSelection'](_0x5622ee);for(const _0x313cb4 of this['_editor']['commands']['commands']())_0x313cb4['refresh']();_0x599344['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x36f309,..._0x599344);const _0x938556=_0x4d82af['filter'](_0x382179=>'$graveyard'!=_0x382179['root']['rootName']);_0x938556['length']>0x0&&_0x5ce627['setSelection'](_0x938556);for(const _0x511194 of _0x4d82af)_0x511194['detach']();});},_0x4c129b=(_0x56c139,_0x1300e9)=>0x1==_0x56c139['length']&&0x1==_0x1300e9['length']&&_0x56c139[0x0]['end']['isEqual'](_0x1300e9[0x0]['start']),_0x2d52b7=(_0x1c400c,_0x14e3af,_0x1d96b1,_0x197555)=>Wt(_0x1c400c,_0x14e3af,_0x1d96b1,_0x197555)?[_0x1c400c,_0x14e3af]:Wt(_0x14e3af,_0x1c400c,_0x197555,_0x1d96b1)?[_0x14e3af,_0x1c400c]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x404eca),this['_defaultCallbacks']['set']('insertion:discard',_0x3543b0),this['_defaultCallbacks']['set']('insertion:join',_0x4c129b),this['_defaultCallbacks']['set']('insertion:chain',_0x2d52b7),this['_defaultCallbacks']['set']('deletion:accept',_0x3543b0),this['_defaultCallbacks']['set']('deletion:discard',_0x404eca),this['_defaultCallbacks']['set']('deletion:join',_0x4c129b),this['_defaultCallbacks']['set']('deletion:chain',_0x2d52b7),this['_defaultCallbacks']['set']('formatInline:accept',_0x223e3e),this['_defaultCallbacks']['set']('formatInline:discard',_0x404eca),this['_defaultCallbacks']['set']('formatInline:join',_0x4c129b),this['_defaultCallbacks']['set']('formatInline:chain',_0x404eca),this['_defaultCallbacks']['set']('formatBlock:accept',_0x223e3e),this['_defaultCallbacks']['set']('formatBlock:discard',_0x404eca),this['_defaultCallbacks']['set']('formatBlock:join',_0x4c129b),this['_defaultCallbacks']['set']('formatBlock:chain',_0x404eca),this['_defaultCallbacks']['set']('attribute:accept',_0x404eca),this['_defaultCallbacks']['set']('attribute:discard',(_0x27f8ee,_0xb1abf1)=>{if(!_0xb1abf1)return;const _0x34d32b=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x9739b0=>{if(_0xb1abf1['key']==u)for(const _0x676a95 of _0x27f8ee){const _0x158dd8=_0x676a95['start']['nodeAfter'],_0x350886=_0xb1abf1['oldValue'];_0x9739b0['rename'](_0x158dd8,_0x350886);}else{if(_0x34d32b['_isBlockAttribute'](_0xb1abf1['key'])){for(const _0x18f02e of _0x27f8ee)void 0x0!==_0xb1abf1['oldValue']?_0x9739b0['setAttribute'](_0xb1abf1['key'],_0xb1abf1['oldValue'],_0x18f02e['start']['nodeAfter']):_0x9739b0['removeAttribute'](_0xb1abf1['key'],_0x18f02e['start']['nodeAfter']);}else{for(const _0x35e0af of _0x27f8ee)_0xb1abf1['oldValue']?_0x9739b0['setAttribute'](_0xb1abf1['key'],_0xb1abf1['oldValue'],_0x35e0af):_0x9739b0['removeAttribute'](_0xb1abf1['key'],_0x35e0af);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x4c129b);}}function Gt(_0x22e388,_0x464ed2,_0x5ee51a){for(const _0x3f8201 of _0x464ed2['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x3f8201['root']==_0x3f8201)return!0x1;if(!_0x5ee51a['containsItem'](_0x3f8201))return!0x1;if(_0x22e388['isObject'](_0x3f8201)||_0x22e388['isLimit'](_0x3f8201))return!0x0;}return!0x1;}function Lt(_0x4fa245){return _0x4fa245['end']['parent']==_0x4fa245['start']['nodeAfter']&&_0x4fa245['end']['isAtStart'];}function Jt(_0x17cd8d,_0xc45401,_0x8cf540,_0x589f3a){const _0xe10bbc=_0x3871df=>!_0x3871df['item']['is']('$textProxy')&&!_0x589f3a['isObject'](_0x3871df['item']),_0x325ff4=_0x17cd8d['start']['getLastMatchingPosition'](_0xe10bbc),_0x574268=_0x17cd8d['end']['getLastMatchingPosition'](_0xe10bbc,{'direction':'backward'});return(!_0x17cd8d['start']['isEqual'](_0x325ff4)||!_0x17cd8d['end']['isEqual'](_0x574268))&&(_0x325ff4['isBefore'](_0x574268)?_0x8cf540['updateMarker'](_0xc45401,{'range':_0x8cf540['createRange'](_0x325ff4,_0x574268)}):_0x8cf540['removeMarker'](_0xc45401),!0x0);}function Kt(_0x20c457){return _0x238613(_0x20c457);}function Ht(_0x184aaf){const _0x3e257b=_0x184aaf['start']['nodeAfter'];return _0x3e257b&&_0x3e257b['is']('element');}function qt(_0x557ac2,_0x36c3c1){return null==_0x557ac2['end']['nodeBefore']&&_0x557ac2['end']['parent']==_0x557ac2['start']['nodeAfter']?zt(_0x557ac2['start']['nodeAfter'],_0x36c3c1):_0x557ac2;}function zt(_0xf272be,_0x3eda84){const _0xf8d4d0=_0x3eda84['schema']['isObject'](_0xf272be)||_0x3eda84['schema']['isSelectable'](_0xf272be);return _0x3eda84['createRange'](_0x3eda84['createPositionAt'](_0xf272be,'before'),_0xf8d4d0?_0x3eda84['createPositionAfter'](_0xf272be):_0x3eda84['createPositionAt'](_0xf272be,'end'));}function Wt(_0x2bee81,_0x409baf,_0x3f2d96,_0x452982){return!!Qt(_0x2bee81,_0x409baf)&&_0x3f2d96['end']['isEqual'](_0x452982['start']);}function Qt(_0x4bbcef,_0xf48ed6){if(!_0x4bbcef['_isDataLoaded']||!_0xf48ed6['_isDataLoaded'])return!0x1;const _0x2071e4=new Set(Object['keys'](_0x4bbcef['attributes'])),_0x8541f4=new Set(Object['keys'](_0xf48ed6['attributes']));if(_0x2071e4['delete']('groupId'),_0x8541f4['delete']('groupId'),0x0==_0x2071e4['size']&&0x0==_0x8541f4['size'])return!0x0;if(_0x2071e4['size']!=_0x8541f4['size'])return!0x1;const _0x162dff={..._0x4bbcef['attributes']},_0x5a0077={..._0xf48ed6['attributes']};return delete _0x162dff['groupId'],delete _0x5a0077['groupId'],JSON['stringify'](_0x162dff)==JSON['stringify'](_0x5a0077);}function Xt(_0x97132,_0x5c40d4){const _0x4b4469=Yt(_0x97132['attributes']),_0x3a2424=Yt(_0x5c40d4);if(!_0x97132['_isDataLoaded'])return!0x1;for(const _0x247991 of Object['keys'](_0x3a2424))if(!_0x1693da(_0x4b4469[_0x247991],_0x3a2424[_0x247991]))return!0x1;return!0x0;}function Yt(_0x196313){const _0x3484e2=Object['assign']({},_0x196313);return delete _0x3484e2['skipNestingCheck'],delete _0x3484e2['tablePasteChainId'],_0x3484e2;}class pe extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x578840(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x3fd3be,_0x5032a9,_0x568a6e,_0x4d6ce5){super(),this['model']=_0x5032a9,this['view']=_0x568a6e,this['commentThreadController']=_0x4d6ce5,this['_editor']=_0x3fd3be,this['_acceptCommand']=_0x3fd3be['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x3fd3be['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x40b504,_0x710f18)=>_0x40b504||_0x710f18),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x8a2ad6=>_0x8a2ad6&&this['_editor']['model']['canEditAt'](_0x5032a9['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x125cc4=>_0x125cc4&&this['_editor']['model']['canEditAt'](_0x5032a9['getRanges']())),this['_pendingAction']=null,_0x568a6e['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x568a6e,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x568a6e,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x568a6e,'change:isDirty',()=>{_0x568a6e['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 _0x306a07=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x306a07);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x2f56c2{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0xb2eba7,_0x11ee01,_0x1387b6,_0x14af3e){super(_0xb2eba7),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0xc7766d(_0xb2eba7,c(_0xb2eba7,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x11ee01['authoredAt']),this['bind']('authoredAt')['to'](_0x11ee01),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',_0x11ee01,'authoredAt',this,'descriptionParts',(_0x4d172c,_0x55d431,_0x146088)=>{const _0x21b569=_0x146088['map'](_0xaf579c=>ls(_0xaf579c['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x4d172c-0x1,_0x11ee01['author']['name'],_0x55d431?_0x14af3e['formatDateTime'](_0x55d431):'',new DOMParser()['parseFromString'](_0x21b569,'text/html')['body']['textContent']]);}),this['focusables']=new _0xa52d86(),this['focusTracker']=new _0x1a643f(),this['keystrokes']=new _0x45c4ca(),this['focusCycler']=new _0x13d6e3({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x56a10c=>_0x56a10c['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x11ee01,this['_localUser']=_0x1387b6,this['_config']=_0x14af3e,_0x14af3e['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x1658f2(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x3d020d}=this['_config'];this['commentsListView']=new _0x3d020d(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',_0x30a8da=>_0x30a8da+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x21e058,_0x28cae0)=>_0x21e058||!!_0x28cae0);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x50f5b9}=this['_config'],_0x304de4=new _0x50f5b9(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x2533fe=_0x304de4['commentInputView'];return _0x304de4['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x2533fe,'value',(_0x3708f9,_0x283c7d,_0x2b1fb8)=>!!_0x2b1fb8||_0x3708f9&&!_0x283c7d),_0x2533fe['on']('submit',(_0x33d364,_0x3e665a)=>{this['fire']('addComment',_0x3e665a),_0x2533fe['editor']['setData']('');}),_0x2533fe['on']('cancel',()=>this['focus']()),_0x2533fe['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x304de4;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x17b11b,_0x672f1d,_0xdb6d91,_0x3e9963){super(_0x17b11b,_0x672f1d,_0xdb6d91,_0x3e9963),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x376fbf=>_0x376fbf&&_0x376fbf[0x0]?_0x376fbf[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x41affb,_0x224de8)=>{let _0x8b1b5a='';for(const _0x3c9932 of _0x41affb)_0x8b1b5a+='<p>'+ls(_0x3c9932['content'],_0x3c9932['color'])+'</p>';return _0x224de8?_0x8b1b5a:ti(_0x8b1b5a,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x3e9963['SuggestionView'](_0x17b11b,_0x672f1d,{'formatDateTime':_0x3e9963['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 _0x542ae3=this['bindTemplate'],_0x14a4f8=[this['suggestionView']];return this['commentsListView']&&_0x14a4f8['push'](this['commentsListView']),this['commentThreadInputView']&&_0x14a4f8['push'](this['commentThreadInputView']),_0x14a4f8['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x542ae3['if']('isActive','ck-suggestion-wrapper--active'),_0x542ae3['to']('type',_0x4ce06d=>'ck-suggestion-'+_0x4ce06d),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':_0x542ae3['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x14a4f8};}['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 we extends _0x2f56c2{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x224dbe,_0x459edb,_0x40dd02){super(_0x224dbe),this['_model']=_0x459edb,this['_config']=_0x40dd02,this['set']('description',''),this['bind']('authoredAt')['to'](_0x459edb),this['acceptButton']=this['_createButton'](c(_0x224dbe,'Accept\x20suggestion'),_0xdf1070,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x224dbe,'Discard\x20suggestion'),_0x2445d1,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x1a3834(_0x224dbe,_0x459edb['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0xa52d86([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x1a643f(),this['keystrokes']=new _0x45c4ca(),this['focusCycler']=new _0x13d6e3({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x3fc27d=>_0x3fc27d['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x1b2cf0=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x1b2cf0['innerHTML']=this['description'],this['on']('change:description',(_0xd2fbad,_0x910f64,_0x5715e3)=>{_0x1b2cf0['innerHTML']=_0x5715e3;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x2c061e=this['bindTemplate'],_0x1a664a=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x2c061e['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x2c061e['to']('authoredAt',_0x5766ae=>this['_config']['formatDateTime'](_0x5766ae))}]}]},{'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']&&_0x1a664a['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':_0x1a664a}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):c(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):c(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x33babb,_0x153b9a,_0x479e94,_0x382969,_0x3c4366){const _0x12b927=new _0x4c3e60(this['locale']);return _0x12b927['set']({'label':_0x33babb,'icon':_0x153b9a,'tooltip':!0x0,'tooltipPosition':_0x3c4366}),_0x12b927['extendTemplate']({'attributes':{'class':_0x479e94}}),_0x12b927['on']('execute',()=>{this['fire'](_0x382969,this['_model']['id']);}),_0x12b927;}['_setupKeyboardNavigation'](){const _0x34b508=this['element'];this['keystrokes']['listenTo'](_0x34b508);for(const _0xdb6ec2 of this['focusables'])this['focusTracker']['add'](_0xdb6ec2['element']),this['keystrokes']['listenTo'](_0xdb6ec2['element']);this['keystrokes']['set']('enter',(_0x5a536f,_0x15e8fd)=>{_0x34b508===_0x5a536f['target']&&(this['focusCycler']['focusFirst'](),_0x15e8fd());}),this['keystrokes']['set']('esc',(_0x3f13ba,_0x3e931e)=>{_0x34b508!==_0x3f13ba['target']&&(this['focus'](),_0x3e931e());});}}class d extends _0x47d2c1{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x5a2168,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x396eb0){super(_0x396eb0),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x1d4303=this['editor']['config'];_0x1d4303['define']('trackChanges.SuggestionThreadView',fe),_0x1d4303['define']('trackChanges.SuggestionView',we),_0x1d4303['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x1d4303['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x451366,_0x2b3cf5){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x363341,_0x18196e]of this['_handleControllerBuffer']){const _0x56084f=this['_suggestionToController']['has'](_0x363341);_0x56084f||_0x18196e?_0x56084f&&_0x18196e&&this['_destroyController'](_0x363341):this['_initializeController'](_0x363341);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x451366,_0x2b3cf5);}['init'](){const _0x637196=this['editor'],_0x1b73d3=_0x637196['plugins']['get']('TrackChangesEditing'),_0x23ace3=_0x637196['plugins']['get']('Annotations'),_0x516930=_0x637196['plugins']['get']('EditorAnnotations'),_0x23741c=_0x637196['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x516930['addSourceCollector'](()=>{const _0x2bc2c0=[];for(const [_0x35b2ca,_0x128fdb]of Array['from'](this['_suggestionToController'])){const _0x1b806f=_0x35b2ca['getAllAdjacentSuggestions'](),_0x95b430=[];for(const _0x524b3e of _0x1b806f){if(!_0x524b3e['isInContent'])continue;if(_0x524b3e['isMultiRange']){_0x95b430['push'](..._0x524b3e['getRanges']());continue;}const _0x2d7bb9=_0x524b3e['getFirstRange']();if(_0x95b430['length']>0x0){const _0x78ffb7=_0x95b430[0x0]['getJoined'](_0x2d7bb9);if(_0x78ffb7){_0x95b430[0x0]=_0x78ffb7;continue;}}_0x95b430['push'](_0x2d7bb9);}_0x2bc2c0['push']([_0x128fdb['view'],_0x95b430]);}return _0x2bc2c0;}),this['listenTo'](_0x1b73d3,'suggestionLoaded',(_0x8def34,_0x3b05e6)=>{this['listenTo'](_0x3b05e6,'change:previous',(_0x252391,_0x551b73,_0x318929,_0x30ba08)=>{_0x3b05e6['isInContent']&&(null==_0x318929?(this['_updateController'](_0x30ba08['head']),this['_handleSuggestionControllerDelayed'](_0x3b05e6,!0x1)):(this['_updateController'](_0x318929['head']),null==_0x30ba08&&this['_handleSuggestionControllerDelayed'](_0x3b05e6,!0x0)));}),null!==_0x3b05e6['previous']?this['_updateController'](_0x3b05e6['head']):this['_handleSuggestionControllerDelayed'](_0x3b05e6,!0x1);}),this['listenTo'](_0x1b73d3,'suggestionUnloaded',(_0x37284d,_0x10eeab,_0x55f3ff)=>{this['stopListening'](_0x10eeab,'change:previous'),this['_handleControllerBuffer']['delete'](_0x10eeab),this['_suggestionToController']['has'](_0x10eeab)&&this['_destroyController'](_0x10eeab),_0x55f3ff&&this['_updateController'](_0x55f3ff['head']);}),this['listenTo'](_0x1b73d3,'suggestionChanged',(_0x1bff1a,_0x48ea05)=>{this['_updateController'](_0x48ea05);}),this['listenTo'](_0x23ace3,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x23741c,'addComment',(_0x574cc1,{threadId:_0x3ad27a,isFromAdapter:_0x2ad07d})=>{if(_0x2ad07d||!_0x1b73d3['hasSuggestion'](_0x3ad27a))return;const _0x356ac5=_0x1b73d3['getSuggestion'](_0x3ad27a);this['_suggestionToController']['get'](_0x356ac5)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x842136=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4a3b46;for(const _0x3f4147 in _0x842136){const _0xeb3f19=_0x3f4147,_0x264cf8=_0x842136[_0xeb3f19];if('trackChangesLicenseKeyValid'==_0x264cf8||'trackChangesLicenseKeyInvalid'==_0x264cf8||'trackChangesLicenseKeyExpired'==_0x264cf8||'trackChangesLicenseKeyDomainLimit'==_0x264cf8||'trackChangesLicenseKeyNotAllowed'==_0x264cf8||'trackChangesLicenseKeyEvaluationLimit'==_0x264cf8||'trackChangesLicenseKeyTrialLimit'==_0x264cf8||'trackChangesLicenseKeyUsageLimit'==_0x264cf8){delete _0x842136[_0xeb3f19],_0x4a3b46=_0x264cf8,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x4a3b46&&_0x842136['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x4a3b46&&_0x842136['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x4a3b46&&_0x842136['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x4a3b46&&_0x842136['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x4a3b46&&_0x842136['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x4a3b46&&_0x842136['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x4a3b46&&_0x842136['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x52e142=this['editor']['plugins']['get']('Annotations'),_0x50a186=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4485d4=Array['from'](_0x52e142['activeAnnotations'],_0x12c21b=>_0x12c21b['innerView'])['filter'](_0x3b9824=>this['_viewToController']['has'](_0x3b9824)),_0x553182=[];for(const _0xe41642 of _0x4485d4){const _0x382aa9=this['_viewToController']['get'](_0xe41642)['model']['getAllAdjacentSuggestions']();_0x553182['push'](..._0x382aa9['reduce']((_0x42bf26,_0x24c86a)=>[..._0x42bf26,..._0x24c86a['getMarkerNames']()],[]));}_0x50a186['activeMarkers']=_0x553182;}['_addUIComponentsToFactory'](){const _0x9de618=this['editor'],_0x26899a=_0x9de618['locale'],_0x122c86=c(_0x26899a,'Track\x20changes'),_0x7b95dc=new _0x157795([{'type':'switchbutton','model':new _0x1da0b9({'withText':!0x0,'isToggleable':!0x0,'label':_0x122c86,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x1da0b9({'withText':!0x0,'label':c(_0x26899a,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1da0b9({'withText':!0x0,'label':c(_0x26899a,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1da0b9({'withText':!0x0,'label':c(_0x26899a,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1da0b9({'withText':!0x0,'label':c(_0x26899a,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x9de618['plugins']['has']('TrackChangesPreview')&&_0x7b95dc['addMany']([{'type':'separator'},{'type':'button','model':new _0x1da0b9({'withText':!0x0,'label':c(_0x26899a,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x3eaf72 of _0x7b95dc)if(ke(_0x3eaf72)){const _0x499d93=_0x9de618['commands']['get'](_0x3eaf72['model']['commandName']);_0x3eaf72['model']['bind']('isOn','isEnabled')['to'](_0x499d93,'value','isEnabled');}_0x9de618['ui']['componentFactory']['add']('trackChanges',_0x5663b3=>this['_createToolbarButton'](_0x5663b3,_0x7b95dc,_0x122c86)),_0x9de618['ui']['componentFactory']['add']('menuBar:trackChanges',_0x4de334=>this['_createMenuBarMenu'](_0x4de334,_0x7b95dc,_0x122c86));}['_createToolbarButton'](_0x5c143f,_0x4e08a9,_0x5a5347){const _0x55c770=_0x5503f9(_0x5c143f,_0x4be32a),_0x17e141=this['editor']['commands']['get']('trackChanges');_0x55c770['buttonView']['set']({'tooltip':_0x5a5347,'label':_0x5a5347,'icon':_0x4af6a7}),_0x55c770['buttonView']['bind']('isOn')['to'](_0x17e141,'value'),_0x55c770['buttonView']['on']('execute',()=>{_0x17e141['execute'](),this['editor']['editing']['view']['focus']();}),_0x23d3cf(_0x55c770,_0x4e08a9,{'role':'menu'});const _0x5daf2c=[];for(const _0x1b7022 of _0x4e08a9)ke(_0x1b7022)&&_0x5daf2c['push'](this['editor']['commands']['get'](_0x1b7022['model']['commandName']));const _0x37c229=_0x55c770['buttonView'];return _0x37c229['actionView']['unbind']('isEnabled'),_0x37c229['arrowView']['unbind']('isEnabled'),_0x37c229['actionView']['bind']('isEnabled')['to'](_0x17e141,'isEnabled'),_0x37c229['arrowView']['bind']('isEnabled')['toMany'](_0x5daf2c,'isEnabled',(..._0x3fd142)=>_0x3fd142['some'](_0x31e47d=>_0x31e47d)),_0x55c770['on']('execute',_0x42279f=>{this['editor']['execute'](_0x42279f['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x55c770;}['_createMenuBarMenu'](_0xe694fd,_0x25dcb7,_0x4a6bba){const _0x2badd2=new _0x127c3b(_0xe694fd),_0x1c7629=this['editor']['commands']['get']('trackChanges');_0x2badd2['buttonView']['set']({'label':_0x4a6bba,'icon':_0x4af6a7});const _0x18389a=new _0x85bcac(_0xe694fd);for(const _0x48a8fc of _0x25dcb7){if('separator'==_0x48a8fc['type']){_0x18389a['items']['add'](new _0xc9264a(_0xe694fd));continue;}const _0x1f629e=new _0xa89152(_0xe694fd,_0x2badd2),_0x4587b7=new _0x5acbda(_0xe694fd),_0x542eee=_0x48a8fc['model'];_0x4587b7['bind'](...Object['keys'](_0x542eee))['to'](_0x542eee),_0x4587b7['delegate']('execute')['to'](_0x2badd2),_0x4587b7['on']('execute',()=>{this['editor']['execute'](_0x542eee['commandName']),this['editor']['editing']['view']['focus']();}),_0x1f629e['children']['add'](_0x4587b7),_0x18389a['items']['add'](_0x1f629e);}return _0x2badd2['bind']('isEnabled')['to'](_0x1c7629,'isEnabled'),_0x2badd2['panelView']['children']['add'](_0x18389a),_0x2badd2;}['_initializeController'](_0x542b08){const _0x26c588=this['editor'],_0x248e41=_0x26c588['config'],_0x392dc3=_0x26c588['plugins']['get']('Annotations'),_0xb2243d=_0x26c588['plugins']['get']('CommentsRepository'),_0x3c3e22=_0x26c588['plugins']['get']('EditorAnnotations'),_0x313a7e=_0x26c588['plugins']['get'](_0x5a2168)['me'],_0x3fb7d2=_0x248e41['get']('trackChanges')['SuggestionThreadView'],_0x3cda9c=_0x248e41['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x341077,CommentThreadInputView:_0x3b716f}=_0x26c588['plugins']['get']('CommentsUI');let _0x4c00eb,_0x5119be,_0x3cbfbb;this['_annotationViews']['has'](_0x542b08['id'])?(_0x5119be=this['_annotationViews']['get'](_0x542b08['id']),_0x4c00eb=_0x5119be['mainView']):(_0x4c00eb=new _0x3fb7d2(_0x26c588['locale'],_0x542b08,_0x313a7e,{'disableComments':this['_disableComments'],'editorConfig':{..._0x248e41['get']('comments.editorConfig'),'licenseKey':_0x248e41['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x248e41['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x248e41['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x248e41['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0xa864b0(_0x248e41['get']('locale'),_0x26c588['locale']),'CommentView':_0x248e41['get']('comments')['CommentView'],'CommentsListView':_0x341077,'CommentThreadInputView':_0x3b716f,'SuggestionView':_0x3cda9c}),_0x4c00eb['suggestionView']['acceptButton']['on']('execute',()=>{_0x26c588['editing']['view']['focus']();}),_0x4c00eb['suggestionView']['discardButton']['on']('execute',()=>{_0x26c588['editing']['view']['focus']();}),_0x5119be=_0x392dc3['createAnnotationView'](this['editor']['locale'],_0x4c00eb),_0x5119be['bind']('isDirty')['to'](_0x4c00eb,'isDirty'),_0x5119be['bind']('length')['to'](_0x4c00eb),_0x5119be['bind']('type')['to'](_0x4c00eb,'type',_0x4c929b=>'suggestion-'+_0x4c929b),_0x4c00eb['on']('escape',()=>{_0x3cbfbb['fire']('escape');}),this['_annotationViews']['set'](_0x542b08['id'],_0x5119be));const _0x2b523d=_0xb2243d['createCommentThreadController'](_0x542b08['commentThread'],_0x4c00eb),_0x231036=new pe(_0x26c588,_0x542b08,_0x4c00eb,_0x2b523d),_0x78949b=_0x542b08['getAllAdjacentSuggestions']()['filter'](_0x4694fa=>_0x4694fa['isInContent']);_0x4c00eb['descriptionParts']=_0x26c588['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x78949b),this['_suggestionToController']['set'](_0x542b08,_0x231036),this['_viewToController']['set'](_0x4c00eb,_0x231036),_0x3cbfbb=_0x392dc3['createAnnotation']({'view':_0x5119be,'target':()=>{const _0x36cb6d=[],_0x540d7d=_0x542b08['getAllAdjacentSuggestions']()['filter'](_0x51e3dd=>_0x51e3dd['isInContent']);for(const _0x484ea3 of _0x540d7d)_0x36cb6d['push'](..._0x484ea3['getMarkers']());return _0x110d2b(_0x26c588['editing'],_0x36cb6d);},'type':()=>'suggestion-'+_0x231036['view']['type']}),_0xb2243d['_bindAnnotationToEditors'](_0x4c00eb,_0x3cbfbb),_0x392dc3['add'](_0x3cbfbb),_0x3c3e22['registerAnnotation'](_0x3cbfbb);}['_destroyController'](_0x422842){const _0x5989bc=this['editor']['plugins']['get']('CommentsRepository'),_0x4d8706=this['editor']['plugins']['get']('Annotations'),_0x2c75b1=this['_suggestionToController']['get'](_0x422842),_0x2a9fb8=_0x2c75b1['view'],_0x1f5b8b=_0x4d8706['getByInnerView'](_0x2a9fb8);_0x5989bc['_unbindEditors'](_0x2a9fb8),_0x1f5b8b&&_0x4d8706['remove'](_0x1f5b8b),this['_suggestionToController']['delete'](_0x422842),this['_viewToController']['delete'](_0x2a9fb8),_0x2c75b1['destroy']();}['_updateController'](_0x1bd020){if(!_0x1bd020['isInContent']||!this['_suggestionToController']['has'](_0x1bd020))return;const _0x12c073=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4a38f5=this['_suggestionToController']['get'](_0x1bd020),_0x4c4dc2=_0x1bd020['getAllAdjacentSuggestions']();_0x4a38f5['view']['descriptionParts']=_0x12c073['descriptionFactory']['getDescriptions'](_0x4c4dc2);}['destroy'](){for(const _0xcac83c of this['_suggestionToController']['keys']())this['_destroyController'](_0xcac83c);for(const _0x2c377b of this['_annotationViews']['values']())_0x2c377b['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x6888b8){return'model'in _0x6888b8;}class k extends _0x47d2c1{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x2d47bf){this['editor']['plugins']['get'](p)['adapter']=_0x2d47bf;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x4054d1){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x4054d1);}['getSuggestions']({skipNotAttached:_0x4c3785=!0x1,toJSON:_0x56b86d=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x4c3785,'toJSON':_0x56b86d});}['getSuggestion'](_0x29dc13){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x29dc13);}}const w=['Pagination'];class T extends _0x47d2c1{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x55badf=this['editor'];if(_0x55badf['config']['define']('trackChangesData.editorCreator',_0x5295de=>{const _0x5ef76a=_0x55badf['model']['document']['getRootNames']()['reduce']((_0x45fa74,_0xadd997)=>(_0x45fa74[_0xadd997]='',_0x45fa74),{});return _0x55badf['constructor']['create'](_0x5ef76a,_0x5295de);}),'function'!=typeof _0x55badf['config']['get']('trackChangesData')['editorCreator'])throw new _0x5a44e0('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x1ebb1e){return N(this['editor'],!0x0,_0x1ebb1e);}['getDataWithDiscardedSuggestions'](_0x40bb6f){return N(this['editor'],!0x1,_0x40bb6f);}}class D extends _0x47d2c1{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xb021e1){function _0x2bc127(_0x3edc0c){return _0x3edc0c['map'](_0x4b736c=>String['fromCharCode'](_0x4b736c))['join']('');}super(_0xb021e1),this['result']='end',_0xb021e1[_0x2bc127([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2bc127([0x76,0x69,0x65,0x77])][_0x2bc127([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2bc127([0x61,0x75,0x74,0x6f]),_0xb021e1[_0x2bc127([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x2bc127([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2bc127([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x2bc127([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x2bc127([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 Ge(_0x3f10fc){return void 0x0!==_0x3f10fc['getRootsAttributes'];}async function N(_0x4081c8,_0x5bd2a4,_0x4675a9){const _0x16fe15=_0x50a02f(_0x4081c8,w);_0x16fe15['plugins']['push'](p,D),_0x16fe15['rootsAttributes']=Ge(_0x4081c8)?_0x4081c8['getRootsAttributes']():void 0x0;const _0x5d594a=document['createDocumentFragment'](),_0x451d6e=_0x4081c8['config']['get']('trackChangesData')['editorCreator'],_0x2fcf0a=await _0x451d6e(_0x16fe15,()=>function(_0x3a7ec9){const _0x156365=document['createElement']('div');return _0x3a7ec9['appendChild'](_0x156365),_0x156365;}(_0x5d594a));!function(_0x5a479b,_0x23e011){const _0x231e9a=_0x5a479b['model']['document']['getRootNames']()['reduce']((_0x3a2870,_0x4138db)=>(_0x3a2870[_0x4138db]=_0x5a479b['data']['get']({'rootName':_0x4138db}),_0x3a2870),{}),_0x561a6a=_0x5a479b['plugins']['get']('Users')['users']['map'](_0x3a49d0=>({'id':_0x3a49d0['id'],'name':_0x3a49d0['name']})),_0x36d018=_0x5a479b['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5dc56f=_0x5a479b['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2e16b1=_0x23e011['plugins']['get']('Users'),_0x5cb94c=_0x23e011['plugins']['get']('TrackChangesEditing'),_0x583f18=_0x23e011['plugins']['get']('CommentsRepository');for(const _0x5460af of _0x583f18['getCommentThreads']())_0x5460af['remove']();for(const _0xd89306 of _0x561a6a)_0x2e16b1['getUser'](_0xd89306['id'])||_0x2e16b1['addUser'](_0xd89306);_0x2e16b1['me']||_0x2e16b1['useAnonymousUser']();for(const _0x201749 of _0x5dc56f)_0x583f18['addCommentThread'](_0x201749);for(const _0x2809ab of _0x36d018)_0x5cb94c['addSuggestionData'](_0x2809ab);_0x23e011['data']['set'](_0x231e9a);}(_0x4081c8,_0x2fcf0a),_0x2fcf0a['execute'](_0x5bd2a4?'acceptAllSuggestions':'discardAllSuggestions');const _0x523735=Ge(_0x2fcf0a)?_0x2fcf0a['getFullData'](_0x4675a9):_0x2fcf0a['data']['get'](_0x4675a9);return await _0x2fcf0a['destroy'](),_0x523735;}class Me extends _0x2f56c2{['options'];constructor(_0x3dc88f,_0x596b0b){super(_0x3dc88f),this['options']=_0x596b0b,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-track-changes-preview'],'tabindex':-0x1}});}['render'](){super['render'](),this['element']['style']['width']=this['options']['dialogRects']['width']+'px',this['element']['style']['height']=this['options']['dialogRects']['height']+'px';}['setPreviewData'](_0xd2fcfb,_0x7a40d0){if(!this['element'])return;const _0x30544a=[];for(const [_0x34e5be,_0x27cada]of _0xd2fcfb){const _0x382ff7=document['createElement']('div');_0x382ff7['setAttribute']('data-ck-root-name',_0x34e5be),_0x382ff7['className']=_0x27cada['classes']+'\x20ck-track-changes-preview__root-container',_0x382ff7['innerHTML']=_0x27cada['content'],_0x30544a['push'](_0x382ff7);}_0x7a40d0(this['element'],_0x30544a),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x1cc85b{constructor(_0x1bf497){super(_0x1bf497),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x11aaa6=this['editor'],_0x195c95=_0x11aaa6['locale'],_0x49cde1=_0x11aaa6['plugins']['get']('Dialog');let _0x30127f;const _0xbafa95=function(_0x286314){const _0x165b78={};if('editables'in _0x286314['ui']['view']){for(const [_0xf21dfb,_0x5e9b49]of Object['entries'](_0x286314['ui']['view']['editables']))_0x165b78[_0xf21dfb]=_0x5e9b49['element'];}else _0x165b78[_0x286314['model']['document']['getRootNames']()[0x0]]=_0x286314['ui']['view']['editable']['element'];return _0x165b78;}(_0x11aaa6),_0x2a5859=function(_0x3902d8){let _0x3de5be=0x0;for(const _0x2fab90 of Object['values'](_0x3902d8))_0x3de5be=Math['max'](_0x3de5be,_0x2fab90['getBoundingClientRect']()['width']);let _0x3f7c72=0x0;for(const _0x17b56a of Object['values'](_0x3902d8))_0x3f7c72+=_0x17b56a['getBoundingClientRect']()['height'];const _0x4dcaf2=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x31f918=Math['min'](_0x3f7c72,_0x4dcaf2);return{'width':_0x3de5be,'height':_0x31f918};}(_0xbafa95);_0x49cde1['show']({'id':'finalContentPreview','title':c(_0x195c95,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x195c95,{'dialogRects':_0x2a5859}),'onHide':()=>{_0x30127f['detachFromDom']();},'onShow':()=>{_0x11aaa6['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x4a764e=>{const _0x2ee9ed=this['_standarizeRootsData'](_0x4a764e,_0x11aaa6,_0xbafa95);_0x49cde1['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x2ee9ed,_0x11aaa6['config']['get']('trackChanges.preview.renderFunction'));}),_0x30127f=new _0x20aeb7(_0x195c95,[_0x49cde1['view']]),_0x30127f['attachToDom'](),_0x30127f['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x11aaa6['once']('destroy',()=>{_0x30127f['detachFromDom']();});const _0x2a5803=_0x49cde1['view']['headerView']['class'];_0x49cde1['view']['headerView']['class']=_0x2a5803?_0x2a5803+'\x20ck-reset_all':'ck-reset_all',_0x49cde1['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x49cde1['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x2ab4a4=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x124052=_0x2ab4a4['previewMode'],_0x1d3212={};if('$labels'===_0x124052){for(const _0x2e0ec3 of _0x2ab4a4['getMergeFieldsIds']())_0x1d3212[_0x2e0ec3]=_0x2ab4a4['getLabel'](_0x2e0ec3)||_0x2e0ec3;}else{const _0x262d73='$defaultValues'===_0x124052?_0x2ab4a4['getDefaultValues']():_0x2ab4a4['getDataSetValues'](_0x124052,!0x0);for(const _0x311138 of Object['entries'](_0x262d73)){const [_0x409162,_0x5964b0]=_0x311138;_0x1d3212[_0x409162]=null!==_0x5964b0?_0x5964b0:_0x2ab4a4['getLabel'](_0x409162)||_0x409162;}}return{'mergeFieldsData':_0x1d3212};}['_standarizeRootsData'](_0x1d0f8d,_0x5068f9,_0xbbac9c){let _0x18f842;if('string'==typeof _0x1d0f8d){const _0x3c35ab=_0x5068f9['model']['document']['getRootNames']()[0x0];_0x18f842={[_0x3c35ab]:_0x1d0f8d};}else _0x18f842=_0x1d0f8d;const _0x4aa49b=this['_fixMediaEmbeds'](_0x18f842,_0x5068f9),_0x191668=function(_0x20fd0c,_0xc466c8){for(const [_0x1f3a4e,_0x2dbd85]of _0x20fd0c)_0x2dbd85['classes']=_0xc466c8[_0x1f3a4e]['classList']['value']['replace']('ck-focused','');return _0x20fd0c;}(this['_sortRoots'](_0x5068f9)['reduce']((_0x1d3053,_0xe5e2e)=>(_0x1d3053['push']([_0xe5e2e,{'content':_0x4aa49b[_0xe5e2e],'classes':''}]),_0x1d3053),[]),_0xbbac9c);return _0x191668;}['_fixMediaEmbeds'](_0x5e0bc0,_0x1da791){if(!_0x1da791['plugins']['has']('MediaEmbedEditing'))return _0x5e0bc0;const _0x3afcc4=_0x1da791['plugins']['get']('MediaEmbedEditing');for(const [_0x26e279,_0x1bcd9f]of Object['entries'](_0x5e0bc0)){const _0x47d7d0=document['createElement']('div');_0x47d7d0['innerHTML']=_0x1bcd9f,(_0x47d7d0['querySelectorAll']('figure.media')['forEach'](_0x13bf02=>{const _0x22e5b3=_0x13bf02['querySelector']('oembed');if(_0x22e5b3){const _0x34172a=_0x22e5b3['getAttribute']('url');if(_0x34172a){const _0x35b788=_0x3afcc4['registry']['getMediaViewElement'](new _0x205a88(_0x1da791['editing']['view']['document']),_0x34172a,{'elementName':'','renderForEditingView':!0x0}),_0x549c52=document['createElement']('div');_0x549c52['classList']['add']('ck-media__wrapper'),_0x35b788['render'](_0x549c52,_0x1da791['editing']['view']['domConverter']),_0x22e5b3['replaceWith'](_0x549c52);}}}),_0x5e0bc0[_0x26e279]=_0x47d7d0['innerHTML']);}return _0x5e0bc0;}['_sortRoots'](_0xdfeebd){if(!function(_0x1871e3){return void 0x0!==_0x1871e3['getRootsAttributes'];}(_0xdfeebd))return _0xdfeebd['model']['document']['getRootNames']();const _0x189b9b=[],_0x5227bc=new Map();for(const _0x5cbd95 of _0xdfeebd['model']['document']['getRootNames']()){const _0x169184=_0xdfeebd['editing']['view']['getDomRoot'](_0x5cbd95)['getClientRects']()['item'](0x0);_0x189b9b['push'](_0x5cbd95),_0x5227bc['set'](_0x5cbd95,_0x169184);}return _0x189b9b['sort']((_0x3942a7,_0x5affa5)=>{const _0x178a94=_0x5227bc['get'](_0x3942a7),_0x387609=_0x5227bc['get'](_0x5affa5);return _0x178a94['y']-_0x387609['y']||_0x178a94['x']-_0x387609['x'];}),_0x189b9b;}}class te extends _0x47d2c1{static get['requires'](){return[T,_0x5c94f7];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x457e77){super(_0x457e77),_0x457e77['commands']['add']('previewFinalContent',new re(this['editor'])),_0x457e77['config']['define']('trackChanges.preview.renderFunction',(_0x31d84c,_0x46b0aa)=>{for(const _0x461fb0 of _0x46b0aa)_0x31d84c['appendChild'](_0x461fb0);});}}export{us as BaseSuggestionThreadView,o as Suggestion,fe as SuggestionThreadView,we as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
|
|
23
|
+
import{Command as _0x569fd9,Plugin as _0x47cef7,PendingActions as _0x3462d3}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x282cc9,ObservableMixin as _0x41a6e0,uid as _0x513c99,priorities as _0x51747c,insertToPriorityArray as _0x2c21c3,logWarning as _0x5936df,getEnvKeystrokeText as _0x5575e9,FocusTracker as _0x344c1c,KeystrokeHandler as _0x1f7efc,Collection as _0x1552c8}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x3ba673,IconCancel as _0xfbbf7f,IconTrackChanges as _0x5cfcb3}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0xc5e4eb,View as _0x2b7e95,ViewCollection as _0x35d84b,FocusCycler as _0x59adf9,ViewModel as _0x5d80b4,createDropdown as _0x4c45d5,SplitButtonView as _0x4c8ce3,addListToDropdown as _0x1d3f3a,MenuBarMenuView as _0x2e6830,MenuBarMenuListView as _0x4044f0,ListSeparatorView as _0x3b3bc5,MenuBarMenuListItemView as _0x4274e7,MenuBarMenuListItemButtonView as _0x2abb55,BodyCollection as _0x312a1f,Dialog as _0x2e6c1d}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x277bbd,hashObject as _0x957ba,surroundingMarkersDetector as _0x5759a6,FOCUS_ANNOTATION_KEYSTROKE as _0x53f1fc,AriaDescriptionView as _0x3e003f,setupThreadKeyboardNavigation as _0x8379d3,trimHtml as ti,UserView as _0x9fd442,LateFocusButtonView as _0x284054,getDateTimeFormatter as _0xf52362,getAllMarkersDomElementsSorted as _0x5ea3c2,sanitizeEditorConfig as _0x1f99b0}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x2de106,LiveRange as _0x163541,LivePosition as _0x860c23,DowncastWriter as _0x62969d}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x1dde5f,toWidget as _0x52e460}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x423007,set as _0x1a9aad,isEqual as _0x5391a0,unset as _0x1fe74a,omit as Ft}from'es-toolkit/compat';import{Delete as _0x2e3690,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x10c1ea}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x5e522e}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x569fd9{['_enabledCommands'];constructor(_0x3ed3f1,_0x94902c){super(_0x3ed3f1),this['_enabledCommands']=_0x94902c,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 _0x2a527a of this['editor']['commands']['commands']())_0x2a527a['affectsData']&&!this['_enabledCommands']['has'](_0x2a527a)&&_0x2a527a['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x37a13c of this['editor']['commands']['commands']())_0x37a13c['affectsData']&&!this['_enabledCommands']['has'](_0x37a13c)&&_0x37a13c['clearForceDisabled']('TrackChangesCommand');}}class O extends _0x569fd9{['_suggestions'];constructor(_0x28da18,_0x256cb0){super(_0x28da18),this['_suggestions']=_0x256cb0,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x371e6c){const _0x4e0c4c=this['_suggestions']['get'](_0x371e6c);if(!_0x4e0c4c)throw new _0x282cc9('track-changes-accept-suggestion-not-found',this);const _0x34d280=_0x4e0c4c['getRanges']();this['editor']['model']['canEditAt'](_0x34d280)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x4e0c4c);}}class R extends _0x569fd9{['_suggestions'];constructor(_0x211da4,_0x3e1946){super(_0x211da4),this['_suggestions']=_0x3e1946,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4ab006){const _0xf5597=this['_suggestions']['get'](_0x4ab006);if(!_0xf5597)throw new _0x282cc9('track-changes-discard-suggestion-not-found',this);const _0x48ee41=_0xf5597['getRanges']();this['editor']['model']['canEditAt'](_0x48ee41)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0xf5597);}}function ls(_0x57e99f,_0x5d7c31){let _0x6b1e35='';return _0x6b1e35+=_0x57e99f['split']('*')['map']((_0x12c296,_0x743a7a)=>_0x743a7a%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x12c296)+'</span>':nn(_0x12c296))['join'](''),_0x5d7c31&&(_0x6b1e35+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x5d7c31['value']+'\x22\x20title=\x22'+_0x5d7c31['title']+'\x22></span>'),_0x6b1e35;}function nn(_0x5f51d2){const _0x308be4=document['createElement']('span');return _0x308be4['innerText']=_0x5f51d2,_0x308be4['innerHTML'];}function ts(_0x5503a2){return _0x5503a2['sort']((_0x503de6,_0xe317c0)=>'deletion'==_0x503de6['type']&&'deletion'!=_0xe317c0['type']?-0x1:'deletion'!=_0x503de6['type']&&'deletion'==_0xe317c0['type']?0x1:0x0);}function to(_0x32a78e,_0x55468e){let _0x40bb0d,_0x7695ad=0x0;const _0x427805=[],_0x58eadd=_0x55468e['schema'];for(;_0x7695ad<_0x32a78e['length'];){const _0x16867d=_0x32a78e[_0x7695ad],_0x269c7c=_0x32a78e[_0x7695ad+0x1];_0x40bb0d||(_0x40bb0d=_0x55468e['createPositionBefore'](_0x16867d)),on(_0x55468e,_0x16867d,_0x269c7c)||(_0x427805['push'](_0x55468e['createRange'](_0x40bb0d,_0x58eadd['isObject'](_0x16867d)?_0x55468e['createPositionAfter'](_0x16867d):_0x55468e['createPositionAt'](_0x16867d,'end'))),_0x40bb0d=null),_0x7695ad++;}return _0x427805;}function on(_0x18275b,_0x55d70b,_0x35942b){if(!_0x35942b)return!0x1;const _0x2712a3=_0x18275b['createPositionAfter'](_0x55d70b),_0x484f67=_0x18275b['createPositionBefore'](_0x35942b);return _0x2712a3['isTouching'](_0x484f67);}function rs(_0xa0ffe5,_0x19975f,_0x2fbf0e){for(;_0x2fbf0e['length'];){const _0x4cc9d7=_0x2fbf0e['splice'](0x0,0x64);_0xa0ffe5['change'](()=>{for(const _0x42bfd7 of _0x4cc9d7)_0x42bfd7['isInContent']&&_0x19975f['execute'](_0x42bfd7['id']);});}}class x extends _0x569fd9{['_command'];['_suggestions'];constructor(_0x125207,_0x8e2486,_0x1a5226){super(_0x125207),this['_command']=_0x8e2486,this['_suggestions']=_0x1a5226,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x2c92d8=Array['from'](this['_suggestions']['values']())['some'](_0xb311d4=>_0xb311d4['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x2c92d8;}['execute'](){const _0x237c36=ts(Array['from'](this['_suggestions']['values']()));for(const _0x5394a7 of _0x237c36){const _0x1914fc=_0x5394a7['getRanges']();if(!this['editor']['model']['canEditAt'](_0x1914fc))return;}rs(this['editor']['model'],this['_command'],_0x237c36);}}class E extends _0x569fd9{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x115e31,_0x39eba5,_0x55cef8){super(_0x115e31),this['_command']=_0x39eba5,this['_suggestions']=_0x55cef8,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x250487=this['editor']['model']['document']['selection'],_0x439d84=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0xdba73c,_0x59cb00){const _0x246daf=Array['from'](_0xdba73c['getRanges']()),_0x325286=new Set();for(const _0x22a31b of _0x59cb00)if(_0x22a31b['isInContent']){for(const _0x2c38da of _0x246daf)for(const _0x4be5fa of _0x22a31b['getRanges']())(_0x2c38da['isIntersecting'](_0x4be5fa)||_0xdba73c['isCollapsed']&&!_0x22a31b['isMultiRange']&&_0x22a31b['next']&&_0x4be5fa['end']['isTouching'](_0x2c38da['start']))&&_0x325286['add'](_0x22a31b);}return _0x325286;}(_0x250487,_0x439d84),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x390444=ts(Array['from'](this['_selectedSuggestions']));for(const _0x20fa29 of _0x390444){const _0xb22f81=_0x20fa29['getRanges']();if(!this['editor']['model']['canEditAt'](_0xb22f81))return;}rs(this['editor']['model'],this['_command'],_0x390444);}}class o extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x41a6e0(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x44b379,_0x17677b){super(),this['id']=_0x17677b['id'],this['type']=_0x17677b['type'],this['subType']=_0x17677b['subType']||null,this['author']=_0x17677b['author'],this['creator']=_0x17677b['creator']||_0x17677b['author'],this['isExternal']=Boolean(_0x17677b['attributes']&&_0x17677b['attributes']['@external']),this['data']=null,this['_model']=_0x44b379,this['_onAccept']=_0x17677b['onAccept'],this['_onDiscard']=_0x17677b['onDiscard'],this['_onAttributesChange']=_0x17677b['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x17677b['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 _0x4c6b0d=this;for(;_0x4c6b0d['previous'];)_0x4c6b0d=_0x4c6b0d['previous'];return _0x4c6b0d;}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'](_0x2baa8c){this['_markerNames']['add'](_0x2baa8c);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x36c832=>this['_model']['markers']['get'](_0x36c832))['filter'](_0x3f5035=>_0x3f5035);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0xf26bcd=>{for(const _0x20caaa of this['getMarkers']())_0xf26bcd['removeMarker'](_0x20caaa);}),this['_markerNames']['clear']();}['removeMarker'](_0x5d149f){this['_model']['change'](_0x396e9e=>{_0x396e9e['removeMarker'](_0x5d149f);}),this['_markerNames']['delete'](_0x5d149f);}['addRange'](_0x4c6fc4){const _0x492433='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x492433),this['_model']['change'](_0x49cf0f=>{_0x49cf0f['addMarker'](_0x492433,{'range':_0x4c6fc4,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x36e6a7){for(const _0x5d8416 of this['getRanges']())if(_0x5d8416['isIntersecting'](_0x36e6a7))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x5937c5=>_0x5937c5['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x107e9e,_0x2a9ca0)=>[..._0x107e9e,..._0x2a9ca0['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x349c0e=this['getRanges']();if(0x1!=_0x349c0e['length'])return null;const _0xa21c79=_0x349c0e[0x0],_0x47eca6=_0xa21c79['start']['nodeAfter'],_0x30c71f=_0xa21c79['end']['nodeBefore'];return _0x47eca6 instanceof _0x2de106?_0x47eca6!=_0x30c71f?null:_0x47eca6: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 _0x3ac830=[];let _0x211573=this['head'];for(;_0x211573;)_0x3ac830['push'](_0x211573),_0x211573=_0x211573['next'];return _0x3ac830;}['setAttribute'](_0x4ba2fc,_0x38ae3a){const _0x6783b7=_0x423007(this['attributes']);_0x1a9aad(_0x6783b7,_0x4ba2fc,_0x38ae3a),_0x5391a0(_0x6783b7,this['attributes'])||(this['attributes']=_0x6783b7,this['_onAttributesChange'](_0x6783b7));}['removeAttribute'](_0x4df764){const _0x45577b=_0x423007(this['attributes']);_0x1fe74a(_0x45577b,_0x4df764),_0x5391a0(_0x45577b,this['attributes'])||(this['attributes']=_0x45577b,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 _0x513c99()['substr'](0x1,0x5);}}function c(_0x149227,_0x55d2b0,_0x463a30){const _0x26f7cb=_0x149227['t'],t=_0x149227['t'];switch(_0x55d2b0){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'Preview\x20final\x20content':return t('Preview\x20final\x20content');case'Final\x20content\x20preview':return t('Final\x20content\x20preview');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x463a30);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x463a30);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x463a30);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x463a30);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x463a30);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',_0x463a30);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x463a30);case'*Replace\x20image*':return t('*Replace\x20image*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x463a30);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x463a30);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x463a30);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x463a30);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x463a30);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x463a30);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x463a30);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x463a30);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x463a30);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x463a30);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x463a30);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x463a30);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x463a30);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x463a30);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x463a30);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x463a30);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x463a30);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x463a30);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'},_0x463a30);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x463a30);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x463a30);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x463a30);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x463a30);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x463a30);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x463a30);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x463a30);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'},_0x463a30);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x463a30);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x463a30);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x463a30);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x463a30);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'},_0x463a30);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x463a30);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'},_0x463a30);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'},_0x463a30);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x463a30);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'},_0x463a30);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x463a30);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'},_0x463a30);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x463a30);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x463a30);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'},_0x463a30);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x463a30);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 _0x26f7cb({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x463a30);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x26f7cb({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x463a30);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x463a30);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'},_0x463a30);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'},_0x463a30);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'},_0x463a30);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x55d2b0;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x2378d7,_0x41eb9e){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x2378d7,this['_locale']=_0x41eb9e;}['getDescriptions'](_0xfe0961){const _0x41484e=[],_0x39c5a7=new Set(),_0x3a4485=new Set();for(let _0x8af8ce=0x0;_0x8af8ce<_0xfe0961['length'];_0x8af8ce++){const _0x2f77b5=_0xfe0961[_0x8af8ce];if(!_0x2f77b5['isInContent'])continue;const _0x4fe5f8=this['_handleCustomCallbackDescription'](_0x2f77b5);if(_0x4fe5f8){if(null!=_0x2f77b5['subType']){if(_0x39c5a7['has'](_0x2f77b5['subType']))continue;_0x39c5a7['add'](_0x2f77b5['subType']);}_0x41484e['push'](_0x4fe5f8);}else{if('attribute'!=_0x2f77b5['type'])'insertion'!=_0x2f77b5['type']&&'deletion'!=_0x2f77b5['type']||this['_handleInsertRemoveSuggestionDescription'](_0x41484e,_0x2f77b5,_0xfe0961[_0x8af8ce+0x1]);else{const _0x12cb8c=_0x2f77b5['data']['key'];if(_0x3a4485['has'](_0x12cb8c))continue;_0x3a4485['add'](_0x2f77b5['data']['key']),_0x12cb8c==u?this['_handleRenameSuggestionDescription'](_0x41484e,_0x2f77b5):this['_handleAttributeSuggestionDescription'](_0x41484e,_0x2f77b5);}}}return this['_resolveDescriptionItems'](_0x41484e);}['registerDescriptionCallback'](_0x286aba){this['_customCallbacks']['push'](_0x286aba);}['registerElementLabel'](_0x51b3bd,_0x2735f7,_0x5418d2=_0x51747c['normal']){'function'==typeof _0x51b3bd?_0x2c21c3(this['_itemLabelsCallbacks'],{'matchingCallback':_0x51b3bd,'label':_0x2735f7,'priority':_0x5418d2}):this['_itemLabels']['set'](_0x51b3bd,_0x2735f7);}['registerAttributeLabel'](_0xb1aad5,_0x443f90){this['_attributeLabels']['set'](_0xb1aad5,_0x443f90);}['getItemLabel'](_0x48c782,_0x55c7ee=0x1){let _0x26be6f;for(const _0x1f3204 of this['_itemLabelsCallbacks'])if(_0x1f3204['matchingCallback'](_0x48c782)){_0x26be6f=_0x1f3204['label'];break;}return _0x26be6f||(_0x26be6f=this['_itemLabels']['get'](_0x48c782['name'])),_0x26be6f?_0x26be6f(_0x55c7ee):0x1!==_0x55c7ee?_0x55c7ee+'\x20'+_0x48c782['name']+'s':''+_0x48c782['name'];}['_addDescriptionItems'](_0x2dd76b,_0x1ca0ce){const _0x50d47d=_0x1ca0ce['getFirstRange']()['getWalker'](),_0xf60a7b='insertion'==_0x1ca0ce['type']?'add':'remove';for(const _0x4c9f0e of _0x50d47d){const _0x2920b5=_0x4c9f0e['item'],_0x4db43e=_0x2dd76b[_0x2dd76b['length']-0x1];if(_0x2920b5['is']('$textProxy'))_0x4db43e&&_0x4db43e['type']['indexOf']('Container')>-0x1&&_0x2dd76b['pop'](),_0x4db43e&&'text'==_0x4db43e['type']?_0x4db43e[_0xf60a7b]+=_0x2920b5['data']:_0x2dd76b['push']({'type':'text','add':'add'==_0xf60a7b?_0x2920b5['data']:'','remove':'remove'==_0xf60a7b?_0x2920b5['data']:''});else{if(this['_schema']['isObject'](_0x2920b5)){const _0x302d2c=_0x2920b5;if(_0x4db43e&&_0x4db43e['type']['indexOf']('Container')>-0x1&&_0x2dd76b['pop'](),'elementEnd'==_0x4c9f0e['type'])continue;_0x4db43e&&_0x4db43e['type']==_0xf60a7b+'Object'&&_0x4db43e['element']['name']==_0x302d2c['name']?_0x4db43e['quantity']++:_0x2dd76b['push']({'type':_0xf60a7b+'Object','element':_0x302d2c,'quantity':0x1}),_0x50d47d['skip'](_0x1d9b0b=>!('elementEnd'==_0x1d9b0b['type']&&_0x1d9b0b['item']==_0x2920b5));}else{if(this['_schema']['checkChild'](_0x2920b5,'$text')||_0x2920b5['is']('element','softBreak')){const _0x5b2854=_0x2920b5;if('add'==_0xf60a7b&&'elementStart'==_0x4c9f0e['type']||'remove'==_0xf60a7b&&'elementEnd'==_0x4c9f0e['type'])continue;if(_0x4db43e&&-0x1==_0x4db43e['type']['indexOf']('Container')){'text'==_0x4db43e['type']&&(_0x4db43e[_0xf60a7b]+='\x0a');continue;}let _0x2fdf1d;if(_0x2fdf1d='add'==_0xf60a7b?_0x5b2854['nextSibling']&&!this['_schema']['isObject'](_0x5b2854['nextSibling'])?_0x5b2854['nextSibling']:null:_0x5b2854['previousSibling']&&!this['_schema']['isObject'](_0x5b2854['previousSibling'])?_0x5b2854['previousSibling']:null,_0x5b2854['isEmpty']||_0x2fdf1d&&_0x2fdf1d['isEmpty']){const _0x3a0ef2=_0x2fdf1d&&_0x2fdf1d['isEmpty']?_0x2fdf1d:_0x5b2854;_0x4db43e&&_0x4db43e['type']==_0xf60a7b+'EmptyContainer'&&_0x4db43e['element']['name']==_0x3a0ef2['name']?_0x4db43e['quantity']++:_0x2dd76b['push']({'type':_0xf60a7b+'EmptyContainer','element':_0x3a0ef2,'quantity':0x1});}else _0x2dd76b['push']({'type':_0xf60a7b+'Container','element':_0x5b2854});}}}}}['_resolveDescriptionItems'](_0x349cbd){const _0x4ba82c=this['_locale'],_0xe9d70f=[],_0x613b9e=[],_0x44e371=[];for(const _0x2ed933 of _0x349cbd)switch(_0x2ed933['type']){case'text':if(_0x2ed933['add']=_0x2ed933['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x2ed933['remove']=_0x2ed933['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x2ed933['add']&&''!=_0x2ed933['remove']){_0xe9d70f['push']({'type':'replace','content':c(_0x4ba82c,'REPLACE_TEXT',['\x22'+_0x2ed933['remove']+'\x22','\x22'+_0x2ed933['add']+'\x22'])});continue;}if(null!=_0x2ed933['add']['match'](/^ +$/)){_0xe9d70f['push']({'type':'insertion','content':c(_0x4ba82c,'*Insert:*\x20%0',c(_0x4ba82c,'ELEMENT_SPACE',_0x2ed933['add']['length']))});continue;}if(null!=_0x2ed933['remove']['match'](/^ +$/)){_0xe9d70f['push']({'type':'deletion','content':c(_0x4ba82c,'*Remove:*\x20%0',c(_0x4ba82c,'ELEMENT_SPACE',_0x2ed933['remove']['length']))});continue;}if(''!=_0x2ed933['add']){_0xe9d70f['push']({'type':'insertion','content':c(_0x4ba82c,'*Insert:*\x20%0','\x22'+_0x2ed933['add']+'\x22')});continue;}_0xe9d70f['push']({'type':'deletion','content':c(_0x4ba82c,'*Remove:*\x20%0','\x22'+_0x2ed933['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0xe9d70f['push']({'type':'insertion','content':c(_0x4ba82c,'*Insert:*\x20%0',this['getItemLabel'](_0x2ed933['element'],_0x2ed933['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0xe9d70f['push']({'type':'deletion','content':c(_0x4ba82c,'*Remove:*\x20%0',this['getItemLabel'](_0x2ed933['element'],_0x2ed933['quantity']))});continue;case'addContainer':_0xe9d70f['push']({'type':'insertion','content':c(_0x4ba82c,'*Split:*\x20%0',this['getItemLabel'](_0x2ed933['element'],_0x2ed933['quantity']))});continue;case'removeContainer':_0xe9d70f['push']({'type':'deletion','content':c(_0x4ba82c,'*Merge:*\x20%0',this['getItemLabel'](_0x2ed933['element'],_0x2ed933['quantity']))});continue;case'addFormat':_0x613b9e['push'](_0x2ed933['key']);continue;case'removeFormat':_0x44e371['push'](_0x2ed933['key']);continue;default:_0xe9d70f['push'](_0x2ed933);}if(_0x613b9e['length']){const _0x100eaa=_0x613b9e['map'](_0x306837=>this['_attributeLabels']['has'](_0x306837)?this['_attributeLabels']['get'](_0x306837):_0x306837)['join'](',\x20');_0xe9d70f['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x100eaa)});}if(_0x44e371['length']){const _0x4fbc6a=_0x44e371['map'](_0x2045cb=>this['_attributeLabels']['has'](_0x2045cb)?this['_attributeLabels']['get'](_0x2045cb):_0x2045cb)['join'](',\x20');_0xe9d70f['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x4fbc6a)});}return _0xe9d70f;}['_handleCustomCallbackDescription'](_0x42d583){for(const _0x554ad7 of this['_customCallbacks']){const _0x21434b=_0x554ad7(_0x42d583);if(_0x21434b&&'type'in _0x21434b)return _0x21434b;}}['_handleAttributeSuggestionDescription'](_0x45e075,_0x4871e2){const _0x5537b5=_0x4871e2['data'],_0x5c3ab3=void 0x0===_0x5537b5['newValue']?'removeFormat':'addFormat';_0x45e075['push']({'type':_0x5c3ab3,'key':_0x5537b5['key']});}['_handleRenameSuggestionDescription'](_0x46391a,_0x20fd68){_0x46391a['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x20fd68['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x3490a2,_0x3352a4,_0x299d8e){if(this['_addDescriptionItems'](_0x3490a2,_0x3352a4),_0x299d8e&&_0x299d8e['getFirstRange']()&&!_0x3352a4['getFirstRange']()['end']['isEqual'](_0x299d8e['getFirstRange']()['start'])){const _0x562673=_0x3490a2[_0x3490a2['length']-0x1],_0x188751='insertion'==_0x3352a4['type']?'add':'remove';_0x562673&&'text'==_0x562673['type']&&(_0x562673[_0x188751]+='\x0a');}}}class U extends _0x47cef7{['afterInit'](){const _0x1e8867=this['editor'],_0x9808f2=_0x1e8867['plugins']['get']('TrackChangesEditing');_0x1e8867['commands']['get']('showAIAssistant')&&_0x9808f2['enableCommand']('showAIAssistant');}}class V extends _0x47cef7{['afterInit'](){const _0x430179=this['editor'],_0x53b59f=_0x430179['locale'];if(!_0x430179['plugins']['has']('AlignmentEditing'))return;const _0x1343ad=_0x430179['plugins']['get']('TrackChangesEditing');_0x1343ad['enableDefaultAttributesIntegration']('alignment'),_0x1343ad['registerBlockAttribute']('alignment'),_0x1343ad['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x53b59f,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5ead15=this['editor'],_0x2dbfe5=_0x5ead15['locale'];_0x5ead15['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x362b92=>{if('formatBlock'!=_0x362b92['type'])return;const {data:_0x239d98}=_0x362b92;if(_0x239d98&&'alignment'==_0x239d98['commandName']){const _0x25a27a=_0x239d98['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x2dbfe5,'*Format:*\x20%0',function(_0x5e9b68){switch(_0x5e9b68){case'left':return c(_0x2dbfe5,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x2dbfe5,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x2dbfe5,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x2dbfe5,'FORMAT_JUSTIFY_TEXT');}}(_0x25a27a))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x47cef7{['afterInit'](){const _0x854175=this['editor'],_0x567e3d=_0x854175['plugins']['get']('TrackChangesEditing'),_0x5167c1=_0x854175['locale'];for(const _0xda0887 of Zt){if(!_0x854175['plugins']['has'](_0xda0887))continue;const _0x230697=_0xda0887['slice'](0x0,-0x7)['toLowerCase'](),_0x28b1e0='FORMAT_'+_0x230697['toUpperCase']();_0x567e3d['enableDefaultAttributesIntegration'](_0x230697),_0x567e3d['registerInlineAttribute'](_0x230697),_0x567e3d['descriptionFactory']['registerAttributeLabel'](_0x230697,c(_0x5167c1,_0x28b1e0));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4d4a93=this['editor'],_0x3300d6=_0x4d4a93['locale'],_0x356fe3=_0x4d4a93['plugins']['get']('TrackChangesEditing');function _0x9e9b82(_0x1d06ed,_0x2f6f85){_0x356fe3['descriptionFactory']['registerDescriptionCallback'](_0x4a3ade=>{if('formatInline'!=_0x4a3ade['type'])return;const {data:_0x1808fb}=_0x4a3ade;return _0x1808fb&&_0x1808fb['commandName']===_0x1d06ed?_0x1808fb['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x3300d6,'*Format:*\x20%0',_0x2f6f85)}:{'type':'format','content':c(_0x3300d6,'*Remove\x20format:*\x20%0',_0x2f6f85)}:void 0x0;});}_0x9e9b82('bold',c(_0x3300d6,'FORMAT_BOLD')),_0x9e9b82('italic',c(_0x3300d6,'FORMAT_ITALIC')),_0x9e9b82('underline',c(_0x3300d6,'FORMAT_UNDERLINE')),_0x9e9b82('code',c(_0x3300d6,'FORMAT_CODE')),_0x9e9b82('strikethrough',c(_0x3300d6,'FORMAT_STRIKETHROUGH')),_0x9e9b82('subscript',c(_0x3300d6,'FORMAT_SUBSCRIPT')),_0x9e9b82('superscript',c(_0x3300d6,'FORMAT_SUPERSCRIPT'));}}class G extends _0x47cef7{['afterInit'](){const _0x21f9dc=this['editor'],_0x3a5f94=_0x21f9dc['locale'];if(!_0x21f9dc['plugins']['has']('BlockQuoteEditing'))return;const _0xb2d665=_0x21f9dc['plugins']['get']('TrackChangesEditing'),_0x39bde9=this['editor']['commands']['get']('blockQuote');_0xb2d665['enableCommand']('blockQuote',(_0xd3245a,_0x4a7315={})=>{const _0x4e9498=this['editor']['model']['document']['selection'],_0x4a0e4b=_0x4a7315&&void 0x0!==_0x4a7315['forceValue']?_0x4a7315['forceValue']:!_0x39bde9['value'];let _0x2a04ef=[];if(_0x4a0e4b){const _0x510463=Array['from'](_0x4e9498['getSelectedBlocks']())['filter'](_0x19c6ad=>oo(_0x19c6ad)||function(_0x2c38f7,_0x3f7dd2){const _0x2a0dc7=_0x3f7dd2['checkChild'](_0x2c38f7['parent'],'blockQuote'),_0x66c78e=_0x3f7dd2['checkChild'](['$root','blockQuote'],_0x2c38f7);return _0x2a0dc7&&_0x66c78e;}(_0x19c6ad,this['editor']['model']['schema']));_0x2a04ef=to(_0x510463,_0x21f9dc['model']);}else{const _0x407fc1=Array['from'](_0x4e9498['getSelectedBlocks']())['filter'](_0x2fda64=>oo(_0x2fda64));_0x2a04ef=to(_0x407fc1,_0x21f9dc['model']);}_0x21f9dc['model']['change'](()=>{for(const _0x4ccc8d of _0x2a04ef)_0xb2d665['markBlockFormat'](_0x4ccc8d,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x4a0e4b}]});});}),_0xb2d665['descriptionFactory']['registerDescriptionCallback'](_0x2ca470=>{const {data:_0x5b8afe}=_0x2ca470;if(_0x5b8afe&&'blockQuote'==_0x5b8afe['commandName']){const _0x4cf4df=c(_0x3a5f94,'ELEMENT_BLOCK_QUOTE');return _0x5b8afe['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x3a5f94,'*Set\x20format:*\x20%0',_0x4cf4df)}:{'type':'format','content':c(_0x3a5f94,'*Remove\x20format:*\x20%0',_0x4cf4df)};}});}}function oo(_0x422f5c){return'blockQuote'==_0x422f5c['parent']['name'];}class L extends _0x47cef7{['afterInit'](){const _0x3e574a=this['editor'],_0x156640=_0x3e574a['locale'],_0x193fc0=_0x3e574a['plugins']['get']('TrackChangesEditing');_0x3e574a['plugins']['has']('BookmarkEditing')&&(_0x193fc0['enableCommand']('insertBookmark'),_0x193fc0['enableDefaultAttributesIntegration']('updateBookmark'),_0x193fc0['registerBlockAttribute']('bookmarkId'),_0x193fc0['descriptionFactory']['registerDescriptionCallback'](_0x3094e9=>{if('insertion'!=_0x3094e9['type']&&'deletion'!=_0x3094e9['type']&&'attribute'!=_0x3094e9['type'])return;const _0x559562=_0x3094e9['getContainedElement']();if(null==_0x559562)return;if(!_0x559562['is']('element','bookmark'))return;const _0x4fbb16=_0x559562['getAttribute']('bookmarkId');if('insertion'==_0x3094e9['type'])return{'type':'insertion','content':c(_0x156640,'*Insert:*\x20%0','\x22'+_0x4fbb16+'\x22\x20'+c(_0x156640,'ELEMENT_BOOKMARK'))};if('deletion'==_0x3094e9['type'])return{'type':'deletion','content':c(_0x156640,'*Remove:*\x20%0','\x22'+_0x4fbb16+'\x22\x20'+c(_0x156640,'ELEMENT_BOOKMARK'))};const {data:_0x587c49}=_0x3094e9;if(!_0x587c49||'bookmarkId'!=_0x587c49['key'])return;return{'type':'format','content':c(_0x156640,'*Set\x20bookmark:*\x20%0','\x22'+_0x587c49['newValue']+'\x22')};}));}}class J extends _0x47cef7{['afterInit'](){const _0x384a82=this['editor'];_0x384a82['plugins']['has']('CaseChange')&&(_0x384a82['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x384a82['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x384a82['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x47cef7{['afterInit'](){const _0x56cf10=this['editor'];_0x56cf10['commands']['get']('ckbox')&&_0x56cf10['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x47cef7{['afterInit'](){const _0x5b7672=this['editor'];if(!_0x5b7672['plugins']['has']('CodeBlock'))return;const _0xf47219=_0x5b7672['plugins']['get']('TrackChangesEditing'),_0x1357c3=_0x5b7672['locale'],_0x213785=_0x5b7672['config']['get']('codeBlock')['languages'],_0x2cabfd=_0x5b7672['commands']['get']('codeBlock');_0xf47219['enableCommand']('indentCodeBlock'),_0xf47219['enableCommand']('outdentCodeBlock'),_0xf47219['enableCommand']('codeBlock',(_0x1727bb,_0x4c23c4={})=>{const _0x4bb02e=_0x5b7672['model'],_0x505052=_0x5b7672['model']['document']['selection'],_0x87bc77=_0x4c23c4&&void 0x0!==_0x4c23c4['forceValue']?_0x4c23c4['forceValue']:!_0x2cabfd['value'];let _0x41b7df;_0x4c23c4['language']||(_0x4c23c4['language']=_0x213785[0x0]['language']),_0x41b7df=_0x87bc77?Array['from'](_0x505052['getSelectedBlocks']())['filter'](_0x294732=>eo(_0x294732)||function(_0x49561d,_0x5dc009){if(_0x49561d['is']('rootElement')||_0x5dc009['isLimit'](_0x49561d))return!0x1;return _0x5dc009['checkChild'](_0x49561d['parent'],'codeBlock');}(_0x294732,_0x4bb02e['schema'])):Array['from'](_0x505052['getSelectedBlocks']())['filter'](_0x4f8716=>eo(_0x4f8716));const _0x37e531=to(_0x41b7df,_0x4bb02e);_0x4bb02e['change'](()=>{for(const _0x407685 of _0x37e531)_0xf47219['markBlockFormat'](_0x407685,{'commandName':'codeBlock','commandParams':[{..._0x4c23c4,'forceValue':_0x87bc77}],'formatGroupId':'blockName'});});}),(_0xf47219['descriptionFactory']['registerElementLabel']('codeBlock',_0xaf6dc1=>c(_0x1357c3,'ELEMENT_CODE_BLOCK',_0xaf6dc1)),_0xf47219['descriptionFactory']['registerDescriptionCallback'](_0x9aeb2e=>{if('formatBlock'!=_0x9aeb2e['type'])return;const _0x381f5f=_0x1357c3['t'],{data:_0x500a38}=_0x9aeb2e;if(!_0x500a38||'codeBlock'!=_0x500a38['commandName'])return;const _0x2a5ea6=_0x500a38['commandParams'][0x0]['language'],_0x23b5e8=_0x381f5f(_0x213785['find'](_0x5aefc2=>_0x5aefc2['language']===_0x2a5ea6)['label'])['toLowerCase']();return _0x500a38['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x1357c3,'*Set\x20format:*\x20%0',c(_0x1357c3,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x23b5e8+')')}:{'type':'format','content':c(_0x1357c3,'*Remove\x20format:*\x20%0',c(_0x1357c3,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x4c79f4){return'codeBlock'==_0x4c79f4['name'];}class q extends _0x47cef7{['afterInit'](){const _0x294a1c=this['editor'];if(!_0x294a1c['plugins']['has']('CommentsEditing'))return;_0x294a1c['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x520644,_0x55a7fc,_0x5cf978){const _0x54440e=[];for(const _0x52bab9 of _0x55a7fc['getItems']())_0x52bab9['hasAttribute'](_0x520644)&&_0x54440e['push'](_0x5cf978['createRangeOn'](_0x52bab9));return _0x54440e;}function Fe(_0x84dd3d,_0x4bd627,{showActiveMarker:_0x53b067=!0x0}={}){const _0x2ca8de=_0x84dd3d['plugins']['get']('TrackChangesEditing');return(_0x15f48a,_0x2bb6a7,_0x10637a)=>{if(!_0x10637a['consumable']['test'](_0x2bb6a7['markerRange'],_0x15f48a['name']))return;const _0x207df5=_0x2bb6a7['markerRange']['getWalker'](),_0x489d4c=_0x2bb6a7['markerRange']['start'],_0x266d63=_0x84dd3d['model']['schema'];let _0x3b8d50=null,_0x119812=null,_0x28e475=!0x1,_0x53d068=!0x1;for(const _0x49c8da of _0x207df5){const _0x54d972=_0x49c8da['item'];_0x28e475=_0x28e475||_0x266d63['isContent'](_0x54d972);const _0xb3171d=_0x10637a['mapper']['toViewElement'](_0x54d972);if(_0xb3171d&&_0xb3171d['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x49c8da['type']&&(_0x266d63['isBlock'](_0x54d972)&&!_0x266d63['isLimit'](_0x54d972)&&(_0x54d972['nextSibling']||_0x489d4c['isAtEnd']?_0x3b8d50&&_0x3b8d50['parent']==_0x54d972||(_0x3b8d50=_0x54d972,_0x4c4881(_0x49c8da['previousPosition']),_0x53d068=!0x0):_0x119812=_0x119812||_0x49c8da['previousPosition']));}function _0x4c4881(_0x5e4e77){const {authorId:_0x28612c}=_0x2ca8de['_splitMarkerName'](_0x2bb6a7['markerName']),_0x466edf=_0x10637a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4bd627,'data-author-id':_0x28612c}),_0x17b374=_0x10637a['mapper']['toViewPosition'](_0x5e4e77);_0x53b067&&_0x2ca8de['activeMarkers']['includes'](_0x2bb6a7['markerName'])&&_0x10637a['writer']['addClass']('ck-suggestion-marker--active',_0x466edf),_0x10637a['writer']['insert'](_0x17b374,_0x466edf),_0x10637a['mapper']['bindElementToMarker'](_0x466edf,_0x2bb6a7['markerName']);}_0x28e475||_0x53d068||!_0x119812||_0x4c4881(_0x119812);};}class z extends _0x47cef7{static get['requires'](){return[_0x2e3690];}['init'](){const _0x40473e=this['editor'],_0x35e5d1=_0x40473e['plugins']['get']('TrackChangesEditing');_0x35e5d1['enableCommand']('delete');const _0x27f5dc=_0x40473e['commands']['get']('deleteForward');_0x35e5d1['enableCommand']('deleteForward',(_0x48bb29,_0x26016c={})=>{const _0x314284=_0x40473e['model']['createSelection'](_0x40473e['model']['document']['selection']);_0x314284['isCollapsed']&&_0x40473e['model']['modifySelection'](_0x314284,{'direction':'forward','unit':_0x26016c['unit']});const _0x6dd8cf=_0x314284['getFirstRange'](),_0x4d2831=_0x163541['fromRange'](_0x6dd8cf);let _0x8328a6;_0x48bb29(_0x26016c),_0x8328a6='$graveyard'==_0x4d2831['root']['rootName']?_0x40473e['model']['createRange'](_0x6dd8cf['start']):_0x40473e['model']['createRange'](_0x4d2831['start'],_0x4d2831['end']),_0x4d2831['detach'](),_0x40473e['model']['enqueueChange'](_0x27f5dc['buffer']['batch'],_0x44d72d=>{_0x27f5dc['buffer']['lock'](),_0x44d72d['setSelection'](_0x44d72d['createRange'](_0x8328a6['end'])),_0x27f5dc['buffer']['unlock']();});}),_0x40473e['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0x40473e,'merge'),{'priority':'high'}),_0x40473e['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x276a59,_0x31ea25,_0x359b7e)=>{_0x359b7e['options']['showSuggestionHighlights']&&Fe(_0x40473e,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x276a59,_0x31ea25,_0x359b7e);},{'priority':'high'}),_0x40473e['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0xd4ca0a,_0x5aca52,_0x3fea23)=>{const _0x3c7162=_0x3fea23['mapper']['markerNameToElements'](_0x5aca52['markerName']);if(_0x3c7162){for(const _0x279d22 of _0x3c7162)_0x279d22['is']('uiElement')&&(_0x3fea23['mapper']['unbindElementFromMarkerName'](_0x279d22,_0x5aca52['markerName']),_0x3fea23['writer']['remove'](_0x279d22));}},{'priority':'high'});}}class W extends _0x47cef7{['afterInit'](){const _0x58bebc=this['editor'];if(!_0x58bebc['plugins']['has']('ListEditing'))return;const _0x4e3be8=_0x58bebc['locale'],_0x218c72=_0x58bebc['plugins']['get']('TrackChangesEditing'),_0x498474=_0x58bebc['plugins']['has']('TodoListEditing'),_0x51975f=!!_0x58bebc['config']['get']('list.multiBlock');function _0x217af1(_0x5c9daf){return{'type':'format','content':''+c(_0x4e3be8,'*Set\x20format:*\x20%0',_0x5c9daf)};}function _0x2d2896(_0x316be3){return{'type':'format','content':''+c(_0x4e3be8,'*Remove\x20format:*\x20%0',_0x316be3)};}_0x218c72['enableDefaultAttributesIntegration']('numberedList'),_0x218c72['enableDefaultAttributesIntegration']('bulletedList'),_0x218c72['enableDefaultAttributesIntegration']('customNumberedList'),_0x218c72['enableDefaultAttributesIntegration']('customBulletedList'),_0x218c72['enableDefaultAttributesIntegration']('indentList'),_0x218c72['enableDefaultAttributesIntegration']('outdentList'),_0x218c72['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x218c72['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x218c72['registerBlockAttribute']('listItemId'),_0x218c72['registerBlockAttribute']('listType'),_0x218c72['registerBlockAttribute']('listIndent'),_0x51975f&&(_0x218c72['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x218c72['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x498474&&(_0x218c72['enableDefaultAttributesIntegration']('todoList'),_0x218c72['enableDefaultAttributesIntegration']('checkTodoList'),_0x218c72['registerBlockAttribute']('todoListChecked'),_0x218c72['descriptionFactory']['registerDescriptionCallback'](_0x56d597=>{const {data:_0x32a3dc}=_0x56d597;if(_0x32a3dc&&'todoListChecked'==_0x32a3dc['key'])return{'type':'format','content':_0x32a3dc['newValue']?c(_0x4e3be8,'*Check\x20item*'):c(_0x4e3be8,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x4cbdb7=>{if(_0x4cbdb7['batch']['isUndo'])return!0x1;let _0x49d21a=!0x1;const _0x653494=_0x218c72['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1334f1=>'todoListChecked'===_0x218c72['_getAttributeKey'](_0x1334f1));for(const _0x14e764 of _0x653494){'todo'!=_0x14e764['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x218c72['_findSuggestions'](_0x14e764['getFirstRange'](),'attribute')['find'](_0x33f5df=>'listType'===_0x218c72['_getAttributeKey'](_0x33f5df['suggestion']))||(_0x4cbdb7['removeMarker'](_0x14e764['getFirstMarker']()),_0x49d21a=!0x0));}return _0x49d21a;})),_0x218c72['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x4e3be8,'FORMAT_INDENT'));const _0x40311a={'type':'format','content':''};_0x218c72['descriptionFactory']['registerDescriptionCallback'](_0x3aa566=>{const {data:_0x3b0345}=_0x3aa566;if(!_0x3b0345||'listType'!=_0x3b0345['key'])return;let _0x390f6a=_0x3aa566['head'];for(;_0x390f6a;){if(_0x390f6a['data']&&(('listStyle'==_0x390f6a['data']['key']||'listMarkerStyle'==_0x390f6a['data']['key'])&&(_0x390f6a['data']['newValue']&&'default'!=_0x390f6a['data']['newValue']||'default'!=_0x390f6a['data']['oldValue']&&!_0x3b0345['newValue'])||!_0x51975f&&_0x390f6a['data']['key']==u))return _0x40311a;_0x390f6a=_0x390f6a['next'];}if(null==_0x3b0345['newValue'])switch(_0x3b0345['oldValue']){case'bulleted':return _0x2d2896(c(_0x4e3be8,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2d2896(c(_0x4e3be8,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2d2896(c(_0x4e3be8,'ELEMENT_TODO_LIST'));}switch(_0x3b0345['newValue']){case'bulleted':return _0x217af1(c(_0x4e3be8,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x217af1(c(_0x4e3be8,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x217af1(c(_0x4e3be8,'ELEMENT_TODO_LIST'));}}),_0x218c72['descriptionFactory']['registerDescriptionCallback'](_0xb95333=>{const {data:_0x1e4093}=_0xb95333;if(_0x1e4093&&'listIndent'==_0x1e4093['key'])return null==_0x1e4093['newValue']||null==_0x1e4093['oldValue']&&0x0==_0x1e4093['newValue']?_0x40311a:void 0x0;}),_0x218c72['descriptionFactory']['registerDescriptionCallback'](_0x44e73b=>{if('attribute'!=_0x44e73b['type'])return;const {data:_0x885f6f}=_0x44e73b;if(!_0x885f6f||'listItemId'!=_0x885f6f['key'])return;const _0x589439=Te(_0x44e73b);return'newValue'==_0x589439?{'type':'format','content':c(_0x4e3be8,'*Merge:*\x20list\x20item')}:'oldValue'==_0x589439?{'type':'format','content':c(_0x4e3be8,'*Split:*\x20list\x20item')}:_0x40311a;}),_0x58bebc['model']['document']['registerPostFixer'](_0xe6c700=>this['listItemIdFixer'](_0xe6c700)),_0x58bebc['model']['document']['registerPostFixer'](_0x29a261=>this['noTrackChangesFixer'](_0x29a261)),_0x58bebc['model']['document']['on']('change:data',(_0x36d777,_0x44ce82)=>{if(_0x44ce82['isUndo']||!_0x44ce82['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x4f1bf5){if(_0x4f1bf5['batch']['isUndo']||!_0x4f1bf5['batch']['isLocal'])return!0x1;let _0x353e9c=!0x1;const _0x40c8b3=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xe016e6=>_0xe016e6['data']&&'listItemId'==_0xe016e6['data']['key'])['filter'](_0x54b746=>_0x54b746['data']['newValue']&&_0x54b746['data']['oldValue']);for(const _0x2e49a0 of _0x40c8b3)Te(_0x2e49a0)||(_0x4f1bf5['removeMarker'](_0x2e49a0['getFirstMarker']()),_0x353e9c=!0x0);return _0x353e9c;}['noTrackChangesFixer'](_0x93bb50){if(_0x93bb50['batch']['isUndo']||!_0x93bb50['batch']['isLocal'])return!0x1;const _0xec235a=this['editor']['plugins']['get']('TrackChangesEditing');if(_0xec235a['trackChangesCommand']['value'])return!0x1;let _0x40a58d=!0x1;const _0x443ddc=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x11477e=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x55cbb0=>'attribute'==_0x55cbb0['type'])['filter'](_0x2d3ae2=>_0x443ddc['includes'](_0x2d3ae2['attributeKey']));if(0x0==_0x11477e['length'])return _0x40a58d;for(const _0x10a5f6 of _0x11477e){const _0x206362=_0xec235a['_findSuggestions'](_0x10a5f6['range'],'attribute')['filter'](_0x4ce4dd=>!_0x4ce4dd['meta']['isNextTo'])['map'](_0x3465ed=>_0x3465ed['suggestion'])['filter'](_0x20e70e=>{const _0x14a0bd=_0xec235a['_getAttributeKey'](_0x20e70e);return _0x443ddc['includes'](_0x14a0bd);});if(_0x206362['length']){for(const _0x10dc23 of _0x206362)_0x93bb50['removeMarker'](_0x10dc23['getFirstMarker']());_0x40a58d=!0x0;}}return _0x40a58d;}['assureChains'](){const _0x5bc267=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5c05c3=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x43a544;const _0x4c757c=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x531bcc=>{if(_0x531bcc['data']['oldRange']||!_0x531bcc['data']['newRange'])return null;if(!_0x531bcc['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x24bdde}=_0x5bc267['_splitMarkerName'](_0x531bcc['name']);if(!_0x5bc267['hasSuggestion'](_0x24bdde))return null;const _0x2f7dc2=_0x5bc267['getSuggestion'](_0x24bdde);return _0x5c05c3['includes'](_0x2f7dc2['data']['key']);})['map'](_0x3c4f09=>{const {id:_0x1c4940}=_0x5bc267['_splitMarkerName'](_0x3c4f09['name']),_0x9e8df2=_0x5bc267['getSuggestion'](_0x1c4940);return _0x43a544=_0x9e8df2['attributes']['groupId'],_0x9e8df2['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x4c757c['size'])return;const _0x49ee72=_0x5bc267['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3c9e30=>'attribute'==_0x3c9e30['type']&&_0x3c9e30['data']&&_0x5c05c3['includes'](_0x3c9e30['data']['key'])&&_0x3c9e30['attributes']['groupId']!=_0x43a544)['map'](_0xd8289c=>({'listItem':_0xd8289c['getFirstRange']()['start']['nodeAfter'],'groupId':_0xd8289c['attributes']['groupId']})),_0x48daba=new Set();for(const {groupId:_0x2c4419,listItem:_0x41c204}of _0x49ee72)_0x4c757c['has'](_0x41c204)&&_0x48daba['add'](_0x2c4419);for(const _0x4f680e of _0x5bc267['getSuggestions']())_0x48daba['has'](_0x4f680e['attributes']['groupId'])&&_0x4f680e['setAttribute']('groupId',_0x43a544);}['_supportLegacySuggestions'](){const _0x4088b1=this['editor'],_0x3044b1=_0x4088b1['locale'],_0x4f8cfc=_0x4088b1['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x4f8cfc['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x599f43,_0x428c48){const _0x5e2f59=[];for(let _0x206be8 of _0x599f43)_0x206be8['start']['nodeAfter']===_0x206be8['end']['parent']&&(_0x206be8=_0x4088b1['model']['createRange'](_0x4088b1['model']['createPositionAt'](_0x206be8['start']['nodeAfter'],0x0))),_0x5e2f59['push'](_0x206be8);_0x4088b1['model']['change'](_0x3c3a7a=>{const _0x439707=_0x4088b1['model']['document']['selection'],_0x31d8e8=Array['from'](_0x439707['getRanges']())['map'](_0x480c7f=>_0x163541['fromRange'](_0x480c7f));_0x3c3a7a['setSelection'](_0x5e2f59),_0x4088b1['commands']['get'](_0x428c48['commandName'])['refresh'](),_0x428c48['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x4088b1['execute'](_0x428c48['commandName'],..._0x428c48['commandParams']),_0x3c3a7a['setSelection'](_0x31d8e8);for(const _0x5d6e33 of _0x31d8e8)_0x5d6e33['detach']();});}),_0x4f8cfc['descriptionFactory']['registerElementLabel'](function(_0x42fad6){const _0xe7e3c=!_0x4088b1['model']['schema']['isObject'](_0x42fad6),_0xf696ea=_0x42fad6['previousSibling'],_0x2aa204=_0x42fad6['nextSibling'],_0x258b6d=_0x42fad6['getAttribute']('listItemId'),_0x3d64cd=!_0xf696ea||_0xf696ea['getAttribute']('listItemId')!==_0x258b6d,_0xb4a622=!_0x2aa204||_0x2aa204['getAttribute']('listItemId')!==_0x258b6d;return _0xe7e3c&&Boolean(_0x258b6d)&&_0x3d64cd&&_0xb4a622;},_0x1a1c8d=>c(_0x3044b1,'ELEMENT_LIST_ITEM',_0x1a1c8d));}['_registerLegacyDescription'](){const _0x55b8c1=this['editor'],_0x2070d2=_0x55b8c1['locale'];function _0x1d232b(_0x54e77f){const _0x36af58=_0x55b8c1['commands']['get']('bulletedList')['value'],_0x32095e=_0x55b8c1['commands']['get']('numberedList')['value'];return'numberedList'===_0x54e77f?_0x36af58:_0x32095e;}_0x55b8c1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x25a37a){if('formatBlock'!=_0x25a37a['type'])return;const {data:_0x3dba5a}=_0x25a37a;if(!_0x3dba5a)return;let _0xec725a,_0x2f77dd,_0x594a41,_0x52798e;switch(_0x3dba5a['commandName']){case'bulletedList':_0x594a41=_0x3dba5a['commandParams'][0x0]['forceValue'],_0x52798e=_0x1d232b(_0x3dba5a['commandName']),_0xec725a=_0x594a41?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x52798e&&_0x55b8c1['config']['get']('list.multiBlock')||(_0xec725a='*Change\x20to:*\x20%0'),_0x2f77dd={'type':'format','content':c(_0x2070d2,_0xec725a,c(_0x2070d2,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x594a41=_0x3dba5a['commandParams'][0x0]['forceValue'],_0x52798e=_0x1d232b(_0x3dba5a['commandName']),_0xec725a=_0x594a41?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x52798e&&_0x55b8c1['config']['get']('list.multiBlock')||(_0xec725a='*Change\x20to:*\x20%0'),_0x2f77dd={'type':'format','content':c(_0x2070d2,_0xec725a,c(_0x2070d2,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0xec725a='*Indent:*\x20%0',_0x2f77dd={'type':'format','content':c(_0x2070d2,_0xec725a,c(_0x2070d2,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0xec725a=function(_0x318ce9){const _0x50c97c=_0x318ce9['getFirstRange']();let _0x3e6947=_0x50c97c['start']['nodeAfter'];for(;_0x3e6947&&_0x50c97c['containsItem'](_0x3e6947);){if(_0x3e6947['getAttribute']('listIndent')>0x0)return!0x1;_0x3e6947=_0x3e6947['nextSibling'];}return!0x0;}(_0x25a37a)?c(_0x2070d2,'*Format:*\x20remove\x20from\x20%0',c(_0x2070d2,function(_0xa3d425){return'ELEMENT_'+_0xa3d425['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x25a37a))):c(_0x2070d2,'*Outdent:*\x20%0',c(_0x2070d2,'ELEMENT_LIST_ITEM')),_0x2f77dd={'type':'format','content':_0xec725a};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x3dba5a['multipleBlocks']&&(_0xec725a='*Merge:*\x20%0',_0x2f77dd={'type':'deletion','content':c(_0x2070d2,_0xec725a,c(_0x2070d2,'ELEMENT_LIST_ITEM'))});}return _0x2f77dd;});}}function Te(_0x3cb338){let _0x27e55a=_0x3cb338['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x27e55a;){const _0x305b98=_0x27e55a['getAttribute']('listItemId');if(!_0x305b98)return!0x1;if(_0x305b98==_0x3cb338['data']['newValue'])return'newValue';if(_0x305b98==_0x3cb338['data']['oldValue'])return'oldValue';_0x27e55a=_0x27e55a['previousSibling'];}return!0x1;}class Se extends _0x47cef7{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x4eaf0f=this['editor']['config']['get']('list.properties'),_0x2eddc3=this['editor']['plugins']['get']('TrackChangesEditing');_0x4eaf0f['styles']&&(_0x2eddc3['enableDefaultAttributesIntegration']('listStyle'),_0x2eddc3['registerBlockAttribute']('listStyle')),_0x4eaf0f['reversed']&&(_0x2eddc3['enableDefaultAttributesIntegration']('listReversed'),_0x2eddc3['registerBlockAttribute']('listReversed')),_0x4eaf0f['startIndex']&&(_0x2eddc3['enableDefaultAttributesIntegration']('listStart'),_0x2eddc3['registerBlockAttribute']('listStart'));const _0x3916ab={'type':'format','content':''};_0x2eddc3['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x28be98=this['editor']['locale'];_0x2eddc3['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x28be98,'FORMAT_LIST_REVERSED')),_0x2eddc3['descriptionFactory']['registerDescriptionCallback'](_0x113817=>{const {data:_0x3490a6}=_0x113817;if(_0x3490a6&&'listReversed'==_0x3490a6['key'])return null==_0x3490a6['newValue']||0x0==_0x3490a6['newValue']&&null==_0x3490a6['oldValue']?_0x3916ab:void 0x0;}),_0x2eddc3['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x28be98,'FORMAT_LIST_START')),_0x2eddc3['descriptionFactory']['registerDescriptionCallback'](_0x2db145=>{const {data:_0x57f0ae}=_0x2db145;if(_0x57f0ae&&'listStart'==_0x57f0ae['key'])return null==_0x57f0ae['newValue']||0x1==_0x57f0ae['newValue']&&null==_0x57f0ae['oldValue']?_0x3916ab:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x51584e=>{if(_0x51584e['batch']['isUndo'])return!0x1;let _0x21baf4=!0x1;const _0x32688e=_0x2eddc3['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x39c3d3=>{const _0x32619b=_0x2eddc3['_getAttributeKey'](_0x39c3d3);return'listStart'==_0x32619b||'listReversed'==_0x32619b;});for(const _0x32b770 of _0x32688e){const _0x50e6ac=_0x32b770['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x50e6ac||'customNumbered'==_0x50e6ac)continue;_0x2eddc3['_findSuggestions'](_0x32b770['getFirstRange'](),'attribute')['find'](_0x50b3e3=>'listType'==_0x2eddc3['_getAttributeKey'](_0x50b3e3['suggestion']))||(_0x51584e['removeMarker'](_0x32b770['getFirstMarker']()),_0x21baf4=!0x0);}return _0x21baf4;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x3f5aed){const _0x357cb2=this['editor']['locale'],{data:_0x4e2ca8}=_0x3f5aed,_0x3fac9b={'type':'format','content':''};if(!_0x4e2ca8||'listStyle'!=_0x4e2ca8['key'])return;if(!_0x4e2ca8['oldValue'])return'default'==_0x4e2ca8['newValue']?_0x3fac9b:{'type':'format','content':''+c(_0x357cb2,'*Set\x20format:*\x20%0',c(_0x357cb2,this['_getTranslationKeyForListStyle'](_0x4e2ca8['newValue'])))};if(!_0x4e2ca8['newValue']){if('default'==_0x4e2ca8['oldValue'])return _0x3fac9b;let _0x412be9=_0x3f5aed['head'];for(;_0x412be9;){if(_0x412be9['data']&&'listType'==_0x412be9['data']['key']&&_0x412be9['data']['newValue'])return _0x3fac9b;_0x412be9=_0x412be9['next'];}return{'type':'format','content':''+c(_0x357cb2,'*Remove\x20format:*\x20%0',c(_0x357cb2,this['_getTranslationKeyForListStyle'](_0x4e2ca8['oldValue'])))};}if('default'!=_0x4e2ca8['newValue'])return{'type':'format','content':''+c(_0x357cb2,'*Set\x20format:*\x20%0',c(_0x357cb2,this['_getTranslationKeyForListStyle'](_0x4e2ca8['newValue'])))};let _0x11cce4=_0x3f5aed['head'];for(;_0x11cce4;){if(_0x11cce4['data']&&'listType'==_0x11cce4['data']['key']&&_0x11cce4['data']['newValue']&&_0x11cce4['data']['oldValue'])return _0x3fac9b;_0x11cce4=_0x11cce4['next'];}return{'type':'format','content':c(_0x357cb2,'*Set\x20format:*\x20%0',c(_0x357cb2,'ELEMENT_'+_0x3f5aed['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x5e9ff1=this['editor'],_0x5d5549=_0x5e9ff1['locale'];_0x5e9ff1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x41baca=>{if('formatBlock'!=_0x41baca['type'])return;const {data:_0x519bb8}=_0x41baca;if(!_0x519bb8)return;let _0x4f5b7e,_0x10435f;switch(_0x519bb8['commandName']){case'listStyle':_0x4f5b7e='*Change\x20to:*\x20%0',_0x10435f={'type':'format','content':c(_0x5d5549,_0x4f5b7e,c(_0x5d5549,this['_getTranslationKeyForListStyle'](_0x519bb8['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4f5b7e=_0x519bb8['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x10435f={'type':'format','content':c(_0x5d5549,_0x4f5b7e)};break;case'listStart':_0x4f5b7e='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x10435f={'type':'format','content':c(_0x5d5549,_0x4f5b7e,_0x519bb8['commandParams'][0x0]['startIndex'])};}return _0x10435f;});}['_getTranslationKeyForListStyle'](_0x1a906d){return'ELEMENT_'+function(_0x4e73b0){if(_e['includes'](_0x4e73b0))return'bulleted';if(Re['includes'](_0x4e73b0))return'numbered';return null;}(_0x1a906d)['toUpperCase']()+'_LIST_'+_0x1a906d['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x47cef7{['afterInit'](){const _0x1887d3=this['editor'];_0x1887d3['commands']['get']('emoji')&&_0x1887d3['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x47cef7{static get['requires'](){return[_0x10c1ea];}['init'](){const _0x24bbf2=this['editor'],_0x5486ca=_0x24bbf2['plugins']['get']('TrackChangesEditing'),_0x56963f=_0x24bbf2['commands']['get']('enter');_0x5486ca['enableCommand']('enter',()=>{_0x24bbf2['model']['change'](_0x23ec7e=>{const _0x1ad650=_0x24bbf2['model']['document']['selection'],_0x4ea73e=_0x1ad650['getFirstPosition'](),_0x12c677=_0x163541['fromRange'](_0x1ad650['getFirstRange']());if(_0x56963f['enterBlock'](_0x23ec7e)){const _0x335f4b=_0x24bbf2['model']['createPositionAt'](_0x4ea73e['parent']['nextSibling'],0x0),_0x87ccb4=_0x23ec7e['createRange'](_0x4ea73e,_0x335f4b);_0x5486ca['markInsertion'](_0x87ccb4);}else _0x23ec7e['setSelection'](_0x23ec7e['createRange'](_0x12c677['end']));_0x12c677['detach'](),_0x56963f['fire']('afterExecute',{'writer':_0x23ec7e});});}),_0x24bbf2['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0x24bbf2,'split'),{'priority':'high'}),_0x24bbf2['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x3f8790,_0x58476f,_0x1600f3)=>{const _0x27536f=_0x1600f3['mapper']['markerNameToElements'](_0x58476f['markerName']);if(_0x27536f){for(const _0x4c047d of _0x27536f)_0x4c047d['hasClass']('ck-suggestion-marker-split')&&(_0x1600f3['mapper']['unbindElementFromMarkerName'](_0x4c047d,_0x58476f['markerName']),_0x1600f3['writer']['remove'](_0x4c047d));}},{'priority':'high'}),_0x24bbf2['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2cb202,_0xfec34d,_0x21a8f0)=>{_0x21a8f0['options']['showSuggestionHighlights']&&Fe(_0x24bbf2,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x2cb202,_0xfec34d,_0x21a8f0);},{'priority':'high'});}}class Z extends _0x47cef7{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x369696=this['editor']['plugins']['get']('TrackChangesEditing');_0x369696['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x369696['enableCommand']('findNext'),_0x369696['enableCommand']('findPrevious'),_0x369696['enableCommand']('replace'),_0x369696['enableCommand']('replaceAll');}['handleFindCommand'](_0x5ecf9d,_0x4bb854,_0x391f20={}){const _0x332530=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x5ecf9d(_0x400bf0=>{let _0x4ba10c=('string'==typeof _0x4bb854?_0x332530['findByTextCallback'](_0x4bb854,_0x391f20):_0x4bb854)(_0x400bf0);Array['isArray'](_0x4ba10c)&&(_0x4ba10c={'results':_0x4ba10c,'searchText':'string'==typeof _0x4bb854?_0x4bb854:''});const _0x126092=_0x4ba10c['results']['filter'](_0x3aa35c=>!0x1===this['_isInDeletionRange'](_0x3aa35c,_0x400bf0['item']));return{..._0x4ba10c,'results':_0x126092};},_0x391f20);}['_isInDeletionRange'](_0x3bfb53,_0x3a9779){const _0x28fdaf=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3a9779,_0x3bfb53['start']),this['editor']['model']['createPositionAt'](_0x3a9779,_0x3bfb53['end']));for(const _0x20d3b0 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x28fdaf['getIntersection'](_0x20d3b0['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x47cef7{['afterInit'](){const _0x655bbf=this['editor']['locale'],_0x36b7d1=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x544fa1,commandName:_0x283bfa}of ro)this['editor']['plugins']['has'](_0x544fa1)&&(_0x36b7d1['enableDefaultAttributesIntegration'](_0x283bfa),_0x36b7d1['registerInlineAttribute'](_0x283bfa));_0x36b7d1['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x655bbf,'FORMAT_FONT_SIZE')),_0x36b7d1['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x655bbf,'FORMAT_FONT_FAMILY')),_0x36b7d1['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x655bbf,'FORMAT_FONT_COLOR')),_0x36b7d1['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x655bbf,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xfd7701=this['editor'],_0x4e80f6=_0xfd7701['locale'];_0xfd7701['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x160524=>{const _0x3ee8c5=_0x4e80f6['t'];if('formatInline'!=_0x160524['type'])return;const {data:_0x11f1c2}=_0x160524;if(null!=_0x11f1c2){if('fontSize'==_0x11f1c2['commandName']){const _0x476ad8=_0x11f1c2['commandParams'][0x0]['value'];if(_0x476ad8){const _0x1889af=_0x3ee8c5(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x29b904=>_0x29b904['model']==_0x476ad8)['title'])['toLowerCase']();return{'type':'format','content':c(_0x4e80f6,'*Set\x20font\x20size:*\x20%0',_0x1889af)};}return{'type':'format','content':c(_0x4e80f6,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x11f1c2['commandName']){const _0x1338b8=_0x11f1c2['commandParams'][0x0]['value'];return _0x1338b8?{'type':'format','content':c(_0x4e80f6,'*Set\x20font\x20family:*\x20%0',_0x1338b8)}:{'type':'format','content':c(_0x4e80f6,'*Reset\x20font\x20family*')};}if('fontColor'==_0x11f1c2['commandName']){const _0x1335dd=_0x11f1c2['commandParams'][0x0]['value'];if(_0x1335dd){const _0x562747=_0xc5e4eb(this['editor']['config']['get']('fontColor.colors'))['find'](_0x5c1a94=>_0x5c1a94['model']==_0x1335dd);let _0x2bedca=_0x1335dd,_0x59d940='';return _0x562747&&(_0x2bedca=_0x562747['label'],_0x59d940=_0x3ee8c5(_0x2bedca)['toLowerCase']()),{'type':'format','content':c(_0x4e80f6,'*Set\x20font\x20color:*\x20%0',_0x59d940)['trim'](),'color':{'value':_0x1335dd,'title':_0x59d940||_0x2bedca}};}return{'type':'format','content':c(_0x4e80f6,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x11f1c2['commandName']){const _0x1e6c6a=_0x11f1c2['commandParams'][0x0]['value'];if(_0x1e6c6a){const _0x43c56c=_0xc5e4eb(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0xa5f5a=>_0xa5f5a['model']==_0x1e6c6a);let _0x18c6cc=_0x1e6c6a,_0xe18bb='';return _0x43c56c&&(_0x18c6cc=_0x43c56c['label'],_0xe18bb=_0x3ee8c5(_0x18c6cc)['toLowerCase']()),{'type':'format','content':c(_0x4e80f6,'*Set\x20font\x20background\x20color:*\x20%0',_0xe18bb)['trim'](),'color':{'value':_0x1e6c6a,'title':_0xe18bb||_0x18c6cc}};}return{'type':'format','content':c(_0x4e80f6,'*Reset\x20font\x20background\x20color*')};}}});}}class et extends _0x47cef7{['afterInit'](){const _0x50f096=this['editor'],_0xaa301a=_0x50f096['plugins']['get']('TrackChangesEditing'),_0x26b2f6=_0x50f096['commands']['get']('copyFormat'),_0x4a6e12=_0x50f096['commands']['get']('pasteFormat');_0x26b2f6&&_0x4a6e12&&(_0xaa301a['enableDefaultAttributesIntegration']('pasteFormat'),_0xaa301a['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x142e7e=this['editor'],_0x2a548f=_0x142e7e['locale'];_0x142e7e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3caba7=>{if('formatBlock'!=_0x3caba7['type']&&'formatInline'!=_0x3caba7['type'])return;const {data:_0x3b41f9}=_0x3caba7;if(_0x3b41f9&&'pasteFormat'===_0x3b41f9['commandName']){const _0x2e6f81=[],_0x1ce9e9=_0x3b41f9['commandParams'][0x0];for(const [_0x5ce30c,_0x59d3af]of Object['entries'](_0x1ce9e9))_0x2e6f81['push'](so(_0x142e7e,_0x5ce30c,_0x59d3af));return _0x2e6f81['length']?{'type':'format','content':c(_0x2a548f,'*Set\x20format\x20to:*\x20%0',_0x2e6f81['join'](',\x20'))}:{'type':'format','content':c(_0x2a548f,'*Remove\x20all\x20formatting*')};}});}}function so(_0x439fae,_0x427dca,_0x239a1a){const _0x470b36=_0x439fae['locale']['t'],_0x2ca4a4=_0x427dca['split'](/(?=[A-Z])/)['join']('\x20'),_0x5ece05=_0x470b36(_0x2ca4a4['charAt'](0x0)['toUpperCase']()+_0x2ca4a4['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x239a1a)return _0x5ece05;if('fontColor'===_0x427dca||'fontBackgroundColor'===_0x427dca){const _0x3f9ca2=_0xc5e4eb(_0x439fae['config']['get']('fontColor.colors'))['find'](_0x24deb3=>_0x24deb3['model']==_0x239a1a);return _0x5ece05+'\x20('+(_0x3f9ca2?_0x470b36(_0x3f9ca2['label'])['toLowerCase']():_0x239a1a)+')';}if('fontSize'===_0x427dca&&isNaN(parseFloat(_0x239a1a))){const _0x4b9ee6=_0x439fae['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x439fae['config']['get']('fontSize.options'))['find'](_0x292fab=>_0x292fab['model']==_0x239a1a);return _0x5ece05+'\x20('+(_0x4b9ee6?_0x470b36(_0x4b9ee6['title'])['toLowerCase']():_0x239a1a)+')';}return _0x5ece05+'\x20('+_0x239a1a+')';}class nt extends _0x47cef7{['_headingOptions'];['afterInit'](){const _0x153620=this['editor'];if(!_0x153620['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x153620['config']['get']('heading.options');const _0x30b9ca=_0x153620['locale'],_0x34fa12=_0x153620['plugins']['get']('TrackChangesEditing');_0x34fa12['enableDefaultAttributesIntegration']('heading');for(const _0x599f60 of this['_headingOptions'])'paragraph'!=_0x599f60['model']&&_0x34fa12['descriptionFactory']['registerElementLabel'](_0x599f60['model'],_0x2d8c98=>{const _0xefb58a=this['_getHeadingLevel'](_0x599f60['model']);return null!==_0xefb58a?_0x29714(_0x2d8c98,_0xefb58a):_0x2fa840(_0x2d8c98,_0x599f60['title']);});function _0x29714(_0x5cc370,_0xd13e6c){return c(_0x30b9ca,'ELEMENT_HEADING',[_0x5cc370,_0xd13e6c]);}function _0x2fa840(_0x4ea675,_0x81ef9a){return c(_0x30b9ca,'ELEMENT_HEADING_CUSTOM',[_0x4ea675,_0x81ef9a]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x21e518=this['editor'],_0x5e9a39=_0x21e518['locale'];function _0x5b6378(_0x204521,_0x3527ae){return c(_0x5e9a39,'ELEMENT_HEADING_CUSTOM',[_0x204521,_0x3527ae]);}_0x21e518['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3ecd63=>{if('formatBlock'!=_0x3ecd63['type'])return;const {data:_0x5bff75}=_0x3ecd63;if(_0x5bff75&&'heading'==_0x5bff75['commandName']){const _0x26baac=_0x5bff75['commandParams'][0x0]['value'],_0x91900b=this['_getHeadingLevel'](_0x26baac);if(null!==_0x91900b)return{'type':'format','content':c(_0x5e9a39,'*Change\x20to:*\x20%0',(_0x25fefd=0x1,_0x426529=_0x91900b,c(_0x5e9a39,'ELEMENT_HEADING',[_0x25fefd,_0x426529])))};const _0x152145=this['_headingOptions']['find'](_0x1deedf=>_0x1deedf['model']===_0x26baac)['title'];return{'type':'format','content':c(_0x5e9a39,'*Change\x20to:*\x20%0',_0x5b6378(0x1,_0x152145))};}var _0x25fefd,_0x426529;});}['_getHeadingLevel'](_0x423d8a){const _0x486bb7=_0x423d8a['match'](/^heading(\d+)/);if(_0x486bb7)return _0x486bb7[0x1];const _0x4b46d9=this['_headingOptions']?.['find'](_0x11dc5c=>_0x11dc5c['model']==_0x423d8a);if(_0x4b46d9&&_0x4b46d9['view']){const _0x143d0c=_0x4b46d9['view'],_0x4578ec=(_0x143d0c['name']??_0x143d0c)['match'](/^h(\d+)/);if(_0x4578ec)return _0x4578ec[0x1];}return null;}}class it extends _0x47cef7{['afterInit'](){const _0x1f9737=this['editor'];if(!_0x1f9737['plugins']['has']('HighlightEditing'))return;const _0xe11373=_0x1f9737['plugins']['get']('TrackChangesEditing'),_0x5e2244=_0x1f9737['locale'];_0xe11373['enableDefaultAttributesIntegration']('highlight'),_0xe11373['registerInlineAttribute']('highlight'),_0xe11373['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x5e2244,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x286491=this['editor'],_0x2b4c44=_0x286491['locale'];_0x286491['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x344478=>{if('formatInline'!=_0x344478['type'])return;const {data:_0x4e4cea}=_0x344478;if(_0x4e4cea&&'highlight'==_0x4e4cea['commandName']){const _0x168ddd=_0x2b4c44['t'],_0x2bba5d=_0x4e4cea['commandParams'][0x0]['value'];if(_0x2bba5d){const _0x4845f0=_0x286491['config']['get']('highlight.options')['find'](_0x2cd1e1=>_0x2cd1e1['model']==_0x2bba5d),_0x21753c=_0x168ddd(_0x4845f0['title'])['toLowerCase']();return{'type':'format','content':c(_0x2b4c44,'*Set\x20highlight:*\x20%0',_0x21753c),'color':{'value':_0x4845f0['color'],'title':_0x4845f0['title']}};}return{'type':'format','content':c(_0x2b4c44,'*Remove\x20highlight*',c(_0x2b4c44,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x47cef7{['afterInit'](){const _0x24e466=this['editor'];if(!_0x24e466['plugins']['has']('HorizontalLineEditing'))return;_0x24e466['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x1338c9=_0x24e466['plugins']['get']('TrackChangesEditing'),_0x138c1e=_0x24e466['locale'];_0x1338c9['descriptionFactory']['registerElementLabel']('horizontalLine',_0x155c51=>c(_0x138c1e,'ELEMENT_HORIZONTAL_LINE',_0x155c51)),_0x24e466['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x2c2ff8,{writer:_0x1f4fdc,options:_0x3437c8})=>{if(!_0x3437c8['showSuggestionHighlights'])return null;const _0xa2fe14=_0x1f4fdc['createContainerElement']('div'),_0x7e29cd=_0x1f4fdc['createEmptyElement']('hr');return _0x1f4fdc['addClass']('ck-horizontal-line',_0xa2fe14),_0x1f4fdc['insert'](_0x1f4fdc['createPositionAt'](_0xa2fe14,0x0),_0x7e29cd),_0xa2fe14;},'converterPriority':'high'});}}class ot extends _0x47cef7{['afterInit'](){const _0x3d4649=this['editor'];if(!_0x3d4649['plugins']['has']('HtmlEmbed'))return;const _0x14929f=_0x3d4649['plugins']['get']('TrackChangesEditing'),_0x2e2f6a=_0x3d4649['locale'];_0x14929f['descriptionFactory']['registerElementLabel']('rawHtml',_0x55208e=>c(_0x2e2f6a,'ELEMENT_HTML_EMBED',_0x55208e)),_0x14929f['enableDefaultAttributesIntegration']('htmlEmbed'),_0x14929f['registerBlockAttribute']('value'),_0x14929f['descriptionFactory']['registerDescriptionCallback'](_0x4e62eb=>{if('attribute'!=_0x4e62eb['type'])return;const {data:_0x2e2bd4}=_0x4e62eb;if(_0x2e2bd4&&'value'==_0x2e2bd4['key']&&_0x4e62eb['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x215d55=c(_0x2e2f6a,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x2e2f6a,'*Change\x20%0\x20content*',_0x215d55)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xdabdff=this['editor'],_0x5b9a42=_0xdabdff['locale'];_0xdabdff['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x434653=>{if('formatBlock'!=_0x434653['type'])return;const {data:_0x5ec08e}=_0x434653;if(_0x5ec08e&&'htmlEmbed'==_0x5ec08e['commandName']){const _0x173650=c(_0x5b9a42,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x5b9a42,'*Change\x20%0\x20content*',_0x173650)};}});}}class rt extends _0x47cef7{['afterInit'](){const _0x19e8d8=this['editor'];if(!_0x19e8d8['plugins']['has']('ImageEditing'))return;const _0x42894e=_0x19e8d8['plugins']['get']('TrackChangesEditing'),_0x9fd947=_0x19e8d8['plugins']['get']('ImageUtils'),_0x4b7a2c=_0x19e8d8['locale'];_0x42894e['enableCommand']('insertImage'),_0x42894e['descriptionFactory']['registerElementLabel']('imageBlock',_0x3414bd=>c(_0x4b7a2c,'ELEMENT_IMAGE',_0x3414bd)),_0x42894e['descriptionFactory']['registerElementLabel']('imageInline',_0x559595=>c(_0x4b7a2c,'ELEMENT_INLINE_IMAGE',_0x559595)),_0x42894e['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x4b7a2c,'ELEMENT_CAPTION')),_0x19e8d8['plugins']['has']('ImageUploadEditing')&&_0x42894e['enableCommand']('uploadImage'),_0x19e8d8['plugins']['has']('ImageBlockEditing')&&_0x19e8d8['plugins']['has']('ImageInlineEditing')&&(_0x42894e['enableCommand']('imageTypeInline',(_0x508fcb,_0x2b7d8f)=>{const _0x1a5591=_0x9fd947['getClosestSelectedImageElement'](_0x19e8d8['model']['document']['selection']);_0x19e8d8['model']['change'](()=>{_0x42894e['markBlockFormat'](_0x1a5591,{'commandName':'imageTypeInline','commandParams':[_0x2b7d8f]},[],'convertBlockImageToInline');});}),_0x42894e['enableCommand']('imageTypeBlock',(_0x1da579,_0x460e61)=>{_0x19e8d8['model']['change'](_0x349961=>{let _0x56bf90=_0x9fd947['getClosestSelectedImageElement'](_0x19e8d8['model']['document']['selection']),_0x7228e=_0x349961['createRangeOn'](_0x56bf90);const _0x39ad3c=_0x860c23['fromPosition'](_0x7228e['start'],'toPrevious'),_0x1c4f3d=_0x860c23['fromPosition'](_0x7228e['end'],'toNext');_0x42894e['forceDefaultExecution'](()=>_0x1da579(_0x460e61)),_0x56bf90=_0x9fd947['getClosestSelectedImageElement'](_0x19e8d8['model']['document']['selection']),_0x7228e=_0x349961['createRangeOn'](_0x56bf90);const _0x4ed530=_0x349961['createRange'](_0x39ad3c,_0x1c4f3d);_0x39ad3c['detach'](),_0x1c4f3d['detach'](),_0x42894e['markBlockFormat'](_0x56bf90,{'commandName':'imageTypeInline','commandParams':[_0x460e61]},[],'convertInlineImageToBlock'),_0x4ed530['start']['isBefore'](_0x7228e['start'])&&_0x42894e['markInsertion'](_0x349961['createRange'](_0x4ed530['start'],_0x7228e['start']),'convertInlineImageToBlock'),_0x7228e['end']['isBefore'](_0x4ed530['end'])&&_0x42894e['markInsertion'](_0x349961['createRange'](_0x7228e['end'],_0x4ed530['end']),'convertInlineImageToBlock');});}),_0x42894e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x42894e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x42894e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x42894e['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x42894e['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x42894e['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x2da6e6])=>{const _0x1b50e0=_0x42894e['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x534f39=_0x2da6e6['start'],_0x1ed765=_0x2da6e6['end'];const _0x252712=_0x19e8d8['model']['schema']['getNearestSelectionRange'](_0x534f39,'backward'),_0x2539d9=_0x19e8d8['model']['schema']['getNearestSelectionRange'](_0x1ed765,'forward');_0x252712['isCollapsed']&&(_0x534f39=_0x252712['start']),_0x2539d9['isCollapsed']&&(_0x1ed765=_0x2539d9['end']),_0x1b50e0([_0x19e8d8['model']['createRange'](_0x534f39,_0x1ed765)]);}),_0x42894e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x150315),_0x42894e['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x150315)),_0x19e8d8['plugins']['has']('ImageCaptionEditing')&&(_0x42894e['enableCommand']('toggleImageCaption',(_0x4eadf5,_0x154266)=>{const _0x207341=_0x19e8d8['plugins']['get']('ImageCaptionUtils');let _0x5dd86a=_0x9fd947['getClosestSelectedImageElement'](_0x19e8d8['model']['document']['selection']),_0x164a70=_0x207341['getCaptionFromImageModelElement'](_0x5dd86a);_0x19e8d8['model']['change'](()=>{if(_0x164a70)return void _0x42894e['markDeletion'](_0x19e8d8['model']['createRangeOn'](_0x164a70));const _0x1d6a5d=_0x9fd947['isBlockImage'](_0x5dd86a);_0x4eadf5(_0x154266),_0x5dd86a=_0x9fd947['getClosestSelectedImageElement'](_0x19e8d8['model']['document']['selection']),_0x164a70=_0x207341['getCaptionFromImageModelElement'](_0x5dd86a),_0x42894e['markInsertion'](_0x19e8d8['model']['createRangeOn'](_0x164a70),_0x1d6a5d?null:'imageCaption');});}),_0x42894e['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x150315));const _0x5d667f=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x21582b(_0x13edf5,_0x25af4f){const _0x2ac004=_0x5d667f['findIndex'](({type:_0x5357c8,subType:_0x35094a})=>_0x13edf5['type']==_0x5357c8&&_0x13edf5['subType']==_0x35094a),_0x211601=_0x5d667f['findIndex'](({type:_0x439ebf,subType:_0x8607d})=>_0x25af4f['type']==_0x439ebf&&_0x25af4f['subType']==_0x8607d);if(_0x2ac004<0x0||_0x211601<0x0)return!0x1;const _0x382da2=_0x13edf5['getFirstRange'](),_0x46f84f=_0x25af4f['getFirstRange']();if((0x0==_0x2ac004||0x1==_0x2ac004)&&0x2==_0x211601&&_0x382da2['isIntersecting'](_0x46f84f))return!0x0;if(0x2==_0x2ac004&&0x3==_0x211601){const _0x533d21=_0x42894e['_findSuggestions'](_0x382da2,'insertion')['filter'](({suggestion:_0x72b4de,meta:_0x2f80b8})=>_0x2f80b8['isOwn']&&'convertInlineImageToBlock'==_0x72b4de['subType']);if(_0x533d21['length']>0x1&&_0x46f84f['end']['isEqual'](_0x382da2['start']))return!0x0;if(0x1==_0x533d21['length']&&(_0x382da2['start']['isEqual'](_0x46f84f['end'])||_0x382da2['end']['isEqual'](_0x46f84f['start'])))return!0x0;}if(0x3==_0x2ac004&&0x3==_0x211601&&_0x382da2['start']['isBefore'](_0x46f84f['start'])){const _0x1d105f=_0x382da2['end']['nodeAfter'],_0x2d463e=_0x46f84f['start']['nodeBefore'];return _0x9fd947['isBlockImage'](_0x1d105f)&&_0x1d105f===_0x2d463e;}return!0x1;}function _0x150315(_0x45cf99,_0x11d92c){return _0x21582b(_0x45cf99,_0x11d92c)?[_0x45cf99,_0x11d92c]:_0x21582b(_0x11d92c,_0x45cf99)?[_0x11d92c,_0x45cf99]:null;}_0x19e8d8['plugins']['has']('ImageResize')&&(_0x42894e['enableDefaultAttributesIntegration']('resizeImage'),_0x42894e['registerBlockAttribute']('resizedWidth'),_0x42894e['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x4b7a2c,'FORMAT_IMAGE_SIZE'))),_0x19e8d8['plugins']['has']('ImageTextAlternativeEditing')&&(_0x42894e['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x42894e['registerBlockAttribute']('alt')),_0x19e8d8['plugins']['has']('PictureEditing')&&(_0x42894e['registerBlockAttribute']('sources'),_0x42894e['descriptionFactory']['registerDescriptionCallback'](_0x2da3f6=>{if('attribute'!=_0x2da3f6['type'])return;const {data:_0x5ce285}=_0x2da3f6;return _0x5ce285&&'sources'==_0x5ce285['key']?{'type':'format','content':''}:void 0x0;})),_0x19e8d8['plugins']['has']('ImageSizeAttributes')&&(_0x42894e['registerBlockAttribute']('width'),_0x42894e['registerBlockAttribute']('height'),_0x42894e['descriptionFactory']['registerDescriptionCallback'](_0x1d2dc2=>{if('attribute'!=_0x1d2dc2['type'])return;const {data:_0x15d572}=_0x1d2dc2;return!_0x15d572||'width'!=_0x15d572['key']&&'height'!=_0x15d572['key']?void 0x0:{'type':'format','content':''};})),_0x42894e['descriptionFactory']['registerDescriptionCallback'](_0x337ff9=>{if(!!_0x5d667f['find'](({type:_0x5b0ff5,subType:_0x249e76})=>_0x337ff9['type']==_0x5b0ff5&&_0x337ff9['subType']==_0x249e76))return _0x337ff9['previous']?{}:void 0x0;}),_0x42894e['descriptionFactory']['registerDescriptionCallback'](_0x575410=>{if('insertion'==_0x575410['type']||'deletion'==_0x575410['type']){const _0x1971fd=_0x575410['getContainedElement']();if(_0x1971fd&&_0x1971fd['is']('element','caption'))return{'type':'insertion'==_0x575410['type']?'addObject':'removeObject','element':_0x1971fd,'quantity':0x1};}}),_0x42894e['descriptionFactory']['registerDescriptionCallback'](_0xa550f5=>'formatBlock'==_0xa550f5['type']&&'convertInlineImageToBlock'==_0xa550f5['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0xa550f5['type']&&'convertBlockImageToInline'==_0xa550f5['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x42894e['descriptionFactory']['registerDescriptionCallback'](_0x3e76d9=>{if('attribute'!=_0x3e76d9['type'])return;const {data:_0xb1b3d6}=_0x3e76d9;if(!_0xb1b3d6||'alt'!=_0xb1b3d6['key'])return;const _0x517e64=_0xb1b3d6['newValue'];return _0x517e64?{'type':'format','content':c(_0x4b7a2c,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x517e64+'\x22')}:{'type':'format','content':c(_0x4b7a2c,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x44dfc8=this['editor'],_0x2ad0b7=_0x44dfc8['locale'];_0x44dfc8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x36c486=>{if('formatBlock'!=_0x36c486['type']&&'formatInline'!=_0x36c486['type'])return;const {data:_0x3e57f1}=_0x36c486;if(_0x3e57f1){if('imageTextAlternative'==_0x3e57f1['commandName']){const _0x20079d=_0x3e57f1['commandParams'][0x0]['newValue'];return _0x20079d?{'type':'format','content':c(_0x2ad0b7,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x20079d+'\x22')}:{'type':'format','content':c(_0x2ad0b7,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x3e57f1['commandName']){const _0x1ed208=_0x3e57f1['commandParams'][0x0]['width'];return _0x1ed208?{'type':'format','content':c(_0x2ad0b7,'*Set\x20image\x20width:*\x20%0',_0x1ed208)}:{'type':'format','content':c(_0x2ad0b7,'*Reset\x20image\x20width*')};}}});}}class at extends _0x47cef7{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0xaa2d1a=this['editor']['locale'],_0x3ed6a7=this['editor']['plugins']['get']('TrackChangesEditing');_0x3ed6a7['enableDefaultAttributesIntegration']('replaceImageSource'),_0x3ed6a7['registerBlockAttribute']('src'),_0x3ed6a7['descriptionFactory']['registerDescriptionCallback'](_0x93d775=>{if('attribute'!=_0x93d775['type'])return;const {data:_0x360fdf}=_0x93d775;return _0x360fdf&&'src'==_0x360fdf['key']?_0x360fdf['newValue']&&_0x360fdf['oldValue']?{'type':'format','content':c(_0xaa2d1a,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x24de28=this['editor']['plugins']['get']('TrackChangesEditing');_0x24de28['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x24de28['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x24de28['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x24de28['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x25139d=this['editor'],_0x40e7ba=_0x25139d['locale'];_0x25139d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3436d3=>{if('formatBlock'!=_0x3436d3['type']&&'formatInline'!=_0x3436d3['type'])return;const {data:_0x25d2c2}=_0x3436d3;if(!_0x25d2c2||'replaceImageSource'!=_0x25d2c2['commandName'])return;return{'type':'format','content':c(_0x40e7ba,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x47cef7{['afterInit'](){const _0xa4cf7b=this['editor'];if(!_0xa4cf7b['plugins']['has']('ImageStyleEditing'))return;const _0x5e5411=_0xa4cf7b['plugins']['get']('TrackChangesEditing'),_0x3faad6=_0xa4cf7b['plugins']['get']('ImageUtils'),_0x1a88d0={};_0x5e5411['enableCommand']('imageStyle',(_0x2ec51d,_0x37da8a)=>{const _0x10b122=_0xa4cf7b['plugins']['get']('Users')['me'],_0x333ecd=_0xa4cf7b['commands']['get']('imageStyle');let _0x35d6a3=_0x3faad6['getClosestSelectedImageElement'](_0xa4cf7b['model']['document']['selection']),_0x392148=_0xa4cf7b['model']['createRangeOn'](_0x35d6a3),_0x41bfd0=_0x333ecd['value'];if(_0x41bfd0==_0x37da8a['value'])return;const _0x375ead={'commandName':'imageStyle','commandParams':[_0x37da8a],'formatGroupId':_0x513c99()};_0xa4cf7b['model']['change'](()=>{if(_0x5e5411['getSuggestions']()['filter'](_0x14758c=>_0x14758c['isInContent']&&_0x10b122==_0x14758c['author']&&('formatBlock'==_0x14758c['type']||'formatInline'==_0x14758c['type'])&&('imageStylePreApply'==_0x14758c['subType']||'imageStylePostApply'==_0x14758c['subType'])&&_0x14758c['getFirstRange']()['isEqual'](_0x392148))['forEach'](_0x28cfd3=>_0x5e5411['discardSuggestion'](_0x28cfd3['head'])),_0x35d6a3=_0x3faad6['getClosestSelectedImageElement'](_0xa4cf7b['model']['document']['selection']),_0x392148=_0xa4cf7b['model']['createRangeOn'](_0x35d6a3),_0x333ecd['refresh'](),_0xa4cf7b['commands']['get']('imageTypeInline')['refresh'](),_0xa4cf7b['commands']['get']('imageTypeBlock')['refresh'](),_0x41bfd0=_0x333ecd['value'],_0x41bfd0!=_0x37da8a['value'])return _0x3faad6['isInlineImage'](_0x35d6a3)&&_0x333ecd['shouldConvertImageType'](_0x37da8a['value'],_0x35d6a3)?(_0x2ec51d({..._0x37da8a,'setImageSizes':!0x1}),_0x35d6a3=_0x3faad6['getClosestSelectedImageElement'](_0xa4cf7b['model']['document']['selection']),void _0x5e5411['markBlockFormat'](_0x35d6a3,{..._0x375ead,'commandReversedParams':[{'value':_0x41bfd0||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x3faad6['isBlockImage'](_0x35d6a3)?_0x5e5411['markBlockFormat'](_0x35d6a3,_0x375ead,[],'imageStylePostApply'):_0x5e5411['markInlineFormat'](_0x392148,_0x375ead,'imageStylePostApply'));});});for(const _0x3a2763 of _0xa4cf7b['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x1a88d0[_0x3a2763['name']]=_0x3a2763['title']['toLowerCase']();_0x5e5411['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x5e5411['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x5e5411['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x5e5411['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x1aeee4])=>{_0x3faad6['setImageNaturalSizeAttributes'](_0x1aeee4['getContainedElement']());}),_0x5e5411['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x1d7920,_0x4fd953)=>{_0x5e5411['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x1d7920,{'commandName':_0x4fd953['commandName'],'commandParams':_0x4fd953['commandReversedParams']});}),_0x5e5411['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x3d6f86,_0x4e557b){if(_0x50e5e3(_0x3d6f86,_0x4e557b))return[_0x3d6f86,_0x4e557b];if(_0x50e5e3(_0x4e557b,_0x3d6f86))return[_0x4e557b,_0x3d6f86];return null;});const _0x2fc266=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x50e5e3(_0x51bd3f,_0x5ed8c1){const _0x1bd62e=_0x2fc266['findIndex'](({type:_0x720213,subType:_0x1de1b5})=>_0x51bd3f['type']==_0x720213&&_0x51bd3f['subType']==_0x1de1b5),_0x538c6d=_0x2fc266['findIndex'](({type:_0x24abf4,subType:_0x5c53bd})=>_0x5ed8c1['type']==_0x24abf4&&_0x5ed8c1['subType']==_0x5c53bd);if(_0x1bd62e<0x0||_0x538c6d<0x0)return!0x1;const _0x3ff9f2=_0x51bd3f['getFirstRange'](),_0x13d14f=_0x5ed8c1['getFirstRange']();if((0x0==_0x1bd62e||0x1==_0x1bd62e)&&0x2==_0x538c6d&&_0x3ff9f2['isIntersecting'](_0x13d14f))return!0x0;if(0x2==_0x1bd62e&&0x3==_0x538c6d){const _0xee2698=_0x5e5411['_findSuggestions'](_0x3ff9f2,'insertion')['filter'](({suggestion:_0xf7019a,meta:_0x11f76a})=>_0x11f76a['isOwn']&&'convertInlineImageToBlock'==_0xf7019a['subType']);if(_0xee2698['length']>0x1&&_0x13d14f['end']['isEqual'](_0x3ff9f2['start']))return!0x0;if(0x1==_0xee2698['length']&&(_0x3ff9f2['start']['isEqual'](_0x13d14f['end'])||_0x3ff9f2['end']['isEqual'](_0x13d14f['start'])))return!0x0;}if(0x3==_0x1bd62e&&0x3==_0x538c6d&&_0x3ff9f2['start']['isBefore'](_0x13d14f['start'])){const _0xff03de=_0x3ff9f2['end']['nodeAfter'],_0x1cec16=_0x13d14f['start']['nodeBefore'];return _0x3faad6['isBlockImage'](_0xff03de)&&_0xff03de===_0x1cec16;}return!0x1;}_0xa4cf7b['model']['document']['registerPostFixer'](()=>{let _0x550295=!0x1;const _0x1cabd2=Array['from'](_0xa4cf7b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x527586,data:_0x17b256}of _0x1cabd2){const {group:_0x20b914,type:_0x231ba5,subType:_0x5e93b3,id:_0x4bfdc0}=_0x5e5411['_splitMarkerName'](_0x527586);if('suggestion'==_0x20b914&&_0x5e5411['hasSuggestion'](_0x4bfdc0)){if('formatBlock'==_0x231ba5&&('imageStylePreApply'==_0x5e93b3||'imageStylePostApply'==_0x5e93b3)){const _0x390134=_0x5e5411['getSuggestion'](_0x4bfdc0);if(_0x17b256['newRange']){const _0x1ed572=_0x390134['getFirstRange']()['getContainedElement']();if(_0x3faad6['isBlockImage'](_0x1ed572))continue;_0x5e5411['discardSuggestion'](_0x390134),_0x550295=!0x0;}}if('insertion'==_0x231ba5&&'imageCaption'==_0x5e93b3&&!_0x17b256['newRange']){const _0x719650=_0x5e5411['getSuggestion'](_0x4bfdc0);_0x719650['next']&&_0x719650['next']['isInContent']&&(_0x5e5411['discardSuggestion'](_0x719650['next']),_0x550295=!0x0);}}}return _0x550295;}),this['_registerLegacyDescription'](_0x1a88d0);}['_registerLegacyDescription'](_0x1d03b9){const _0x3618b6=this['editor'],_0x354409=_0x3618b6['locale'];_0x3618b6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x349a6c=>{if('formatBlock'!=_0x349a6c['type']&&'formatInline'!=_0x349a6c['type'])return;const {data:_0xdf8536}=_0x349a6c;if(!_0xdf8536||'imageStyle'!=_0xdf8536['commandName'])return;const _0x35d1e7=_0xdf8536['commandParams'][0x0]['value'];return _0x3187b2('side'===_0x35d1e7?c(_0x354409,'FORMAT_SIDE_IMAGE'):_0x1d03b9[_0x35d1e7]||_0x35d1e7);function _0x3187b2(_0x2650e1){return{'type':'format','content':c(_0x354409,'*Format:*\x20%0',_0x2650e1)};}});}}class ut extends _0x47cef7{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x393aa2){super(_0x393aa2),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x1a91e7=this['editor'],_0x403962=_0x1a91e7['commands']['get']('importWord'),_0x31a245=_0x1a91e7['commands']['get']('trackChanges');_0x403962&&(_0x403962['on']('execute',(_0x92bf01,[,_0x212322])=>{this['_trackChangesValueDuringImport']=_0x31a245['value'],_0x212322['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x403962,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x403962,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x31a245['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x1a91e7['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x4b2b61,_0x37fdd9){const {suggestions:_0x63c3f8}=_0x37fdd9,_0x571153=this['editor']['commands']['get']('trackChanges'),_0x4c8426=_0x571153['value'];this['_trackChangesValueDuringImport']!==_0x4c8426&&(_0x571153['execute'](),this['_trackChangesExecuted']=!0x0),_0x63c3f8&&_0x63c3f8['forEach'](({id:_0x3b0f7b,type:_0x591466,author:_0x510667,created_at:_0x4a6b34})=>{const _0x20c2ec={'id':_0x3b0f7b,'type':_0x591466,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x510667,'createdAt':_0x4a6b34?new Date(_0x4a6b34):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x20c2ec);});}}class ft extends _0x47cef7{['afterInit'](){const _0x2e9254=this['editor'],_0x32b37f=_0x2e9254['plugins']['get']('TrackChangesEditing');if(_0x2e9254['plugins']['has']('IndentEditing')&&(_0x32b37f['enableCommand']('indent'),_0x32b37f['enableCommand']('outdent')),_0x2e9254['plugins']['has']('IndentBlock')){for(const _0x40fcfd of['indentBlock','outdentBlock'])_0x32b37f['enableDefaultAttributesIntegration'](_0x40fcfd);}const _0x2d0a1d=_0x2e9254['locale'];_0x32b37f['registerBlockAttribute']('blockIndent'),_0x32b37f['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x2d0a1d,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4a2fe6=this['editor'],_0x5ad5f2=_0x4a2fe6['locale'],_0x482be4=_0x4a2fe6['plugins']['get']('TrackChangesEditing');_0x482be4['descriptionFactory']['registerDescriptionCallback'](_0x57cd1c=>{if('formatBlock'!=_0x57cd1c['type'])return;const {data:_0x59b268}=_0x57cd1c;if(!_0x59b268)return;if('indentBlock'!=_0x59b268['commandName']&&'outdentBlock'!=_0x59b268['commandName'])return;const _0x24592d=_0x57cd1c['getItems']()[0x0],_0x1510de=_0x482be4['descriptionFactory']['getItemLabel'](_0x24592d);return'indentBlock'==_0x59b268['commandName']?{'type':'format','content':c(_0x5ad5f2,'*Indent:*\x20%0',_0x1510de)}:'outdentBlock'==_0x59b268['commandName']?{'type':'format','content':c(_0x5ad5f2,'*Outdent:*\x20%0',_0x1510de)}:void 0x0;});}}class ht extends _0x47cef7{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x47cef7{['afterInit'](){const _0x2f5785=this['editor'];if(!_0x2f5785['plugins']['has']('LinkEditing'))return;const _0x4f288b=_0x2f5785['plugins']['get']('TrackChangesEditing'),_0x4b163e=_0x2f5785['commands']['get']('link');_0x4f288b['enableDefaultAttributesIntegration']('link'),_0x4f288b['enableDefaultAttributesIntegration']('unlink'),_0x4f288b['registerInlineAttribute']('linkHref');for(const _0x3690ac of _0x4b163e['manualDecorators'])_0x4f288b['registerInlineAttribute'](_0x3690ac['id']),_0x4f288b['descriptionFactory']['registerAttributeLabel'](_0x3690ac['id'],'link\x20('+_0x3690ac['label']['toLowerCase']()+')');_0x4f288b['descriptionFactory']['registerDescriptionCallback'](_0x26c9ae=>{if('attribute'!=_0x26c9ae['type'])return;const {data:_0x1ba87b}=_0x26c9ae;if(!_0x1ba87b||'linkHref'!=_0x1ba87b['key'])return;const _0x4ff7db=_0x1ba87b['newValue'],_0x1eabd9=_0x2f5785['locale'];return{'type':'format','content':null==_0x4ff7db?c(_0x1eabd9,'*Remove\x20link*'):c(_0x1eabd9,'*Set\x20link:*\x20%0','\x22'+_0x4ff7db+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4d1cfa=this['editor'],_0x1c1826=_0x4d1cfa['locale'];_0x4d1cfa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x474630=>{if('formatInline'!=_0x474630['type'])return;const {data:_0x1f4b90}=_0x474630;if(_0x1f4b90){if('link'==_0x1f4b90['commandName']){const _0x438c82=_0x1f4b90['commandParams'][0x0];return{'type':'format','content':c(_0x1c1826,'*Set\x20link:*\x20%0','\x22'+_0x438c82+'\x22')};}return'unlink'==_0x1f4b90['commandName']?{'type':'format','content':c(_0x1c1826,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x47cef7{['afterInit'](){const _0x521dcc=this['editor'],_0x222ed1=_0x521dcc['locale'];if(!_0x521dcc['plugins']['has']('LegacyListEditing'))return;const _0x274bcd=_0x521dcc['plugins']['get']('TrackChangesEditing'),_0x3d47d4=_0x521dcc['plugins']['has']('LegacyTodoListEditing');function _0x541782(_0x2af3cf){return()=>{const _0x4e6e1e=_0x521dcc['model']['document']['selection'],_0x23b370=_0x521dcc['commands']['get'](_0x2af3cf);if(_0x23b370['value'])return void _0x521dcc['execute']('paragraph',{});const _0x2c324f=_0x2af3cf['slice'](0x0,-0x4),_0x17760a=function(_0x4c0886,_0x137fcc,_0x1a4b39){let _0x206f72=Array['from'](_0x4c0886)['filter'](_0x419737=>function(_0x446e07,_0x598a18){return _0x598a18['checkChild'](_0x446e07['parent'],'listItem')&&!_0x598a18['isObject'](_0x446e07);}(_0x419737,_0x1a4b39));_0x206f72=_0x206f72['filter'](_0x382573=>!_0x382573['is']('element','listItem')||_0x382573['getAttribute']('listType')!=_0x137fcc);const _0x559154=new Set();for(const _0x2c76ca of _0x206f72)_0x2c76ca['is']('element','listItem')?_0x559154['add'](Le(_0x2c76ca)):_0x559154['add'](_0x2c76ca);return Array['from'](_0x559154);}(_0x4e6e1e['getSelectedBlocks'](),_0x2c324f,_0x521dcc['model']['schema']);_0x521dcc['model']['change'](()=>{for(const _0x5c32a1 of _0x17760a)_0x274bcd['markBlockFormat'](_0x5c32a1,{'commandName':_0x2af3cf,'commandParams':[{'forceValue':!_0x23b370['value']}],'formatGroupId':'blockName'},Ee(_0x5c32a1));});};}function _0x1b26c0(_0x4f222a){return()=>{const _0xa4e62e=function(_0x4d7754){let _0x2a43c1=Array['from'](_0x4d7754);const _0x536bfe=_0x2a43c1['findIndex'](_0x510244=>'listItem'!=_0x510244['name']);return _0x536bfe>-0x1&&(_0x2a43c1=_0x2a43c1['slice'](0x0,_0x536bfe)),_0x2a43c1;}(_0x521dcc['model']['document']['selection']['getSelectedBlocks']()),_0x288b15=_0x521dcc['model']['createRange'](_0x521dcc['model']['createPositionAt'](_0xa4e62e[0x0],'before'),_0x521dcc['model']['createPositionAt'](_0xa4e62e[_0xa4e62e['length']-0x1],'end'));_0x521dcc['model']['change'](()=>{_0x274bcd['markBlockFormat'](_0x288b15,{'commandName':_0x4f222a,'commandParams':[],'formatGroupId':'listIndent'},function(_0x443bd0){const _0x587580=new Set();for(const _0x2c66c9 of _0x443bd0){let _0x1fb6fd=_0x2c66c9['nextSibling'];for(;_0x1fb6fd&&_0x1fb6fd['getAttribute']('listIndent')>_0x2c66c9['getAttribute']('listIndent');)_0x587580['add'](_0x1fb6fd),_0x1fb6fd=_0x1fb6fd['nextSibling'];}return Array['from'](_0x587580);}(_0xa4e62e));});};}_0x274bcd['enableCommand']('numberedList',_0x541782('numberedList')),_0x274bcd['enableCommand']('bulletedList',_0x541782('bulletedList')),_0x3d47d4&&_0x274bcd['enableCommand']('todoList',_0x541782('todoList')),_0x274bcd['enableCommand']('indentList',_0x1b26c0('indentList')),_0x274bcd['enableCommand']('outdentList',_0x1b26c0('outdentList')),_0x3d47d4&&_0x274bcd['enableCommand']('checkTodoList',()=>{const _0x71ba10=_0x521dcc['commands']['get']('checkTodoList'),_0x1e0a30=Array['from'](_0x71ba10['_selectedElements']);_0x1e0a30['filter'](_0x74cf9=>_0x74cf9['getAttribute']('todoListChecked')!=_0x71ba10['value']),_0x521dcc['model']['change'](()=>{for(const _0x1654ae of _0x1e0a30)_0x274bcd['markBlockFormat'](_0x1654ae,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x71ba10['value']}]});});}),_0x274bcd['descriptionFactory']['registerElementLabel']('listItem',_0x1946e1=>c(_0x222ed1,'ELEMENT_LIST_ITEM',_0x1946e1)),_0x274bcd['descriptionFactory']['registerDescriptionCallback'](_0x309b6e=>{if('formatBlock'!=_0x309b6e['type']&&'formatInline'!=_0x309b6e['type'])return;const {data:_0x13fc59}=_0x309b6e;if(_0x13fc59){if('numberedList'==_0x13fc59['commandName']||'bulletedList'==_0x13fc59['commandName']||'todoList'==_0x13fc59['commandName'])switch(_0x13fc59['commandName']['replace']('List','')){case'bulleted':return _0x335ccb(c(_0x222ed1,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x335ccb(c(_0x222ed1,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x335ccb(c(_0x222ed1,'ELEMENT_TODO_LIST'));}if('indentList'==_0x13fc59['commandName'])return{'type':'format','content':c(_0x222ed1,'*Indent:*\x20%0',c(_0x222ed1,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x13fc59['commandName'])return{'type':'format','content':c(_0x222ed1,'*Outdent:*\x20%0',c(_0x222ed1,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x13fc59['commandName'])return _0x13fc59['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x222ed1,'*Check\x20item*')}:{'type':'format','content':c(_0x222ed1,'*Uncheck\x20item*')};}function _0x335ccb(_0x1cec2d){return{'type':'format','content':c(_0x222ed1,'*Change\x20to:*\x20%0',_0x1cec2d)};}});}}function Le(_0x3313be){const _0x3397bf=_0x3313be['getAttribute']('listIndent');if(0x0==_0x3397bf)return _0x3313be;let _0x27bccb=_0x3313be;for(;_0x3313be['previousSibling']&&_0x3313be['previousSibling']['is']('element','listItem');){const _0x3f6006=_0x3313be['previousSibling']['getAttribute']('listIndent');if(_0x3f6006==_0x3397bf)_0x27bccb=_0x3313be['previousSibling'];else{if(_0x3f6006<_0x3397bf)break;}_0x3313be=_0x3313be['previousSibling'];}return _0x27bccb;}function Ee(_0x2a6495){const _0x3db18d=[];if(_0x2a6495['is']('element','listItem')&&_0x2a6495['getAttribute']('listIndent')>0x0){let _0x47618f=_0x2a6495['nextSibling'];for(;_0x47618f&&'listItem'==_0x47618f['name']&&_0x47618f['getAttribute']('listIndent')==_0x2a6495['getAttribute']('listIndent');)_0x3db18d['push'](_0x47618f),_0x47618f=_0x47618f['nextSibling'];}return _0x3db18d;}class Q extends _0x47cef7{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x2be12b=this['editor']['config']['get']('list.properties'),_0x58e135=this['editor']['plugins']['get']('TrackChangesEditing');_0x2be12b['styles']&&_0x58e135['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x2be12b['reversed']&&_0x58e135['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x2be12b['startIndex']&&_0x58e135['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x58e135['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x1ff989,_0x35ca4a={}){const _0x3cbd28=this['editor']['plugins']['get']('TrackChangesEditing'),_0x15e6fd=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x3cbd28['markMultiRangeBlockFormat'](_0x15e6fd,{'commandName':'listStyle','commandParams':[{'type':_0x35ca4a['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x2dd061,_0x4d136c={}){const _0x503ef2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x376e9b=this['_getSuggestionBlocks'](_0x3eacf4=>_0x3eacf4['is']('element','listItem')&&'numbered'===_0x3eacf4['getAttribute']('listType'));if(_0x376e9b['length']<0x1)return;const _0x274c44=_0x376e9b['map'](_0x3b59fe=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3b59fe,'before'),this['editor']['model']['createPositionAt'](_0x3b59fe,0x0)));this['editor']['model']['change'](()=>{_0x503ef2['markMultiRangeBlockFormat'](_0x274c44,{'commandName':'listReversed','commandParams':[{'reversed':_0x4d136c['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x17bf7d,_0x5ed00a={}){const _0x5eeb6d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5693f7=this['_getSuggestionBlocks'](_0x447139=>_0x447139['is']('element','listItem')&&'numbered'===_0x447139['getAttribute']('listType'));if(_0x5693f7['length']<0x1)return;const _0x1fd764=_0x5693f7['map'](_0x51298b=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x51298b,'before'),this['editor']['model']['createPositionAt'](_0x51298b,0x0)));this['editor']['model']['change'](()=>{_0x5eeb6d['markMultiRangeBlockFormat'](_0x1fd764,{'commandName':'listStart','commandParams':[{'startIndex':_0x5ed00a['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x238c21){if('formatBlock'!=_0x238c21['type']&&'formatInline'!=_0x238c21['type'])return;const _0x3102ab=this['editor']['locale'],{data:_0x36e3d2}=_0x238c21;if(!_0x36e3d2)return;let _0x486081,_0x265ede;switch(_0x36e3d2['commandName']){case'listStyle':_0x486081='*Change\x20to:*\x20%0',_0x265ede={'type':'format','content':c(_0x3102ab,_0x486081,c(_0x3102ab,this['_getTranslationKeyForListStyle'](_0x36e3d2['commandParams'][0x0]['type'])))};break;case'listReversed':_0x486081=_0x36e3d2['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x265ede={'type':'format','content':c(_0x3102ab,_0x486081)};break;case'listStart':_0x486081='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x265ede={'type':'format','content':c(_0x3102ab,_0x486081,_0x36e3d2['commandParams'][0x0]['startIndex'])};}return _0x265ede;}['_getSuggestionBlocksForListStyle'](){const _0x2a526f=this['editor']['plugins']['get']('LegacyListUtils');let _0x360923=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x360923[0x0]?.['is']('element','listItem')&&_0x360923['unshift'](..._0x2a526f['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x360923[_0x360923['length']-0x1]?.['is']('element','listItem')&&_0x360923['push'](..._0x2a526f['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x360923=[...new Set(_0x360923)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x360923=_0x360923['filter'](_0x599b71=>_0x599b71['is']('element','listItem'))),_0x360923;}['_getSuggestionBlocks'](_0x30d181){const _0x148945=this['editor']['plugins']['get']('LegacyListUtils');let _0x13975b=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x30d181)['map'](_0x47ffe0=>{const _0x171bd1=this['editor']['model']['createPositionAt'](_0x47ffe0,0x0);return[..._0x148945['getSiblingNodes'](_0x171bd1,'backward'),..._0x148945['getSiblingNodes'](_0x171bd1,'forward')];})['flat']();return _0x13975b=[...new Set(_0x13975b)],_0x13975b;}['_getTranslationKeyForListStyle'](_0x7cd2ac){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x7cd2ac)||'default')['toUpperCase']()+'_LIST_'+_0x7cd2ac['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x47cef7{['afterInit'](){const _0xa96ac4=this['editor'];if(!_0xa96ac4['plugins']['has']('MediaEmbedEditing'))return;const _0x454804=_0xa96ac4['plugins']['get']('TrackChangesEditing'),_0x3b80c2=_0xa96ac4['locale'];_0x454804['enableCommand']('mediaEmbed'),_0x454804['descriptionFactory']['registerElementLabel']('media',_0x5cc99f=>c(_0x3b80c2,'ELEMENT_MEDIA',_0x5cc99f)),_0xa96ac4['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x2aa91a,{writer:_0x4786f8,options:_0x330de4})=>{if(_0x330de4['showSuggestionHighlights'])return _0x4786f8['createEmptyElement']('div');},'converterPriority':'high'}),_0xa96ac4['data']['downcastDispatcher']['on']('attribute:url:media',(_0x1e99e4,_0x515ddb,_0xe84435)=>{_0xe84435['options']['showSuggestionHighlights']&&_0x1e99e4['stop']();},{'priority':'high'});}}class pt extends _0x47cef7{['afterInit'](){const _0x3f5db6=this['editor'];_0x3f5db6['plugins']['has']('MentionEditing')&&_0x3f5db6['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x47cef7{['afterInit'](){const _0xe59ae9=this['editor'];if(!_0xe59ae9['plugins']['has']('MergeFieldsEditing'))return;const _0x32b15b=_0xe59ae9['plugins']['get']('TrackChangesEditing'),_0x41ca58=_0xe59ae9['locale'];_0x32b15b['enableCommand']('insertMergeField'),_0x32b15b['enableCommand']('insertMergeFieldBlock'),_0x32b15b['enableCommand']('insertMergeFieldImage'),_0x32b15b['descriptionFactory']['registerElementLabel']('mergeField',_0x47a572=>c(_0x41ca58,'ELEMENT_MERGE_FIELD',_0x47a572)),_0x32b15b['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x2e5237=>c(_0x41ca58,'ELEMENT_MERGE_FIELD',_0x2e5237)),_0x32b15b['descriptionFactory']['registerDescriptionCallback'](_0x513bf2=>{if('insertion'!=_0x513bf2['type']&&'deletion'!=_0x513bf2['type'])return;const _0xe0d2c9=_0x513bf2['getContainedElement']();if(null==_0xe0d2c9)return;const _0x43c9cb=_0xe59ae9['plugins']['get']('MergeFieldsEditing');let _0x2d03f5;switch(_0x43c9cb['getMergeFieldType'](_0xe0d2c9)){case null:return;case'image':{const _0x551e32=_0x43c9cb['unwrapAffixes'](_0xe0d2c9['getAttribute']('src'));_0x2d03f5=_0x43c9cb['getLabel'](_0x551e32)||_0x551e32;break;}default:{const _0x898f2e=_0xe0d2c9['getAttribute']('id');_0x2d03f5=_0x43c9cb['getLabel'](_0x898f2e)||_0x898f2e;break;}}return'insertion'==_0x513bf2['type']?{'type':'insertion','content':c(_0x41ca58,'*Insert:*\x20%0','\x22'+_0x2d03f5+'\x22\x20'+c(_0x41ca58,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x41ca58,'*Remove:*\x20%0','\x22'+_0x2d03f5+'\x22\x20'+c(_0x41ca58,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x47cef7{['afterInit'](){const _0x512e97=this['editor'],_0x121366=_0x512e97['plugins']['get']('TrackChangesEditing');_0x512e97['plugins']['has']('MultiLevelList')&&(_0x121366['enableDefaultAttributesIntegration']('multiLevelList'),_0x121366['registerBlockAttribute']('listMarkerStyle'),_0x121366['descriptionFactory']['registerDescriptionCallback'](_0x4176da=>this['handleDescriptions'](_0x4176da)));}['handleDescriptions'](_0x1e618){const _0x191fa0=this['editor']['locale'],{data:_0x4c7619}=_0x1e618,_0x5a1aa5={'type':'format','content':''};if(_0x4c7619&&'listMarkerStyle'==_0x4c7619['key']){if(!_0x4c7619['oldValue'])return{'type':'format','content':c(_0x191fa0,'*Set\x20format:*\x20%0',c(_0x191fa0,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4c7619['newValue']+')'};if(!_0x4c7619['newValue']){let _0x39aa82=_0x1e618['head'];for(;_0x39aa82;){if(_0x39aa82['data']&&'listType'==_0x39aa82['data']['key']&&_0x39aa82['data']['newValue'])return _0x5a1aa5;_0x39aa82=_0x39aa82['next'];}return{'type':'format','content':c(_0x191fa0,'*Remove\x20format:*\x20%0',c(_0x191fa0,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4c7619['oldValue']+')'};}}}}class bt extends _0x47cef7{['afterInit'](){const _0x121c85=this['editor'];if(!_0x121c85['plugins']['has']('PageBreakEditing'))return;_0x121c85['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x5c19a3=_0x121c85['plugins']['get']('TrackChangesEditing'),_0x346176=_0x121c85['locale'];_0x5c19a3['descriptionFactory']['registerElementLabel']('pageBreak',_0x2ac86a=>c(_0x346176,'ELEMENT_PAGE_BREAK',_0x2ac86a));}}class yt extends _0x47cef7{['afterInit'](){const _0x4f7dff=this['editor'];if(!_0x4f7dff['plugins']['has']('Paragraph'))return;const _0x58e638=_0x4f7dff['locale'],_0x7286b1=_0x4f7dff['plugins']['get']('TrackChangesEditing');_0x7286b1['descriptionFactory']['registerElementLabel']('paragraph',_0x481003=>c(_0x58e638,'ELEMENT_PARAGRAPH',_0x481003)),_0x7286b1['enableDefaultAttributesIntegration']('paragraph'),_0x7286b1['enableCommand']('insertParagraph'),_0x4f7dff['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x4f7dff),{'priority':'highest'}),_0x4f7dff['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x136482,_0x516849,_0x2e794d)=>{_0x2e794d['options']['showSuggestionHighlights']&&nr(_0x4f7dff,{'showActiveMarker':!0x1})(_0x136482,_0x516849,_0x2e794d);},{'priority':'highest'});const _0x1c2638=_0x7286b1['descriptionFactory'];_0x1c2638['registerDescriptionCallback'](_0xb9bb8=>{if('insertion'!==_0xb9bb8['type'])return;const {start:_0x3aaac3,end:_0x11e1e0}=_0xb9bb8['getFirstRange']();if(!_0x3aaac3['isTouching'](_0x11e1e0)||!_0x3aaac3['nodeAfter'])return;const _0x184fc4=_0x4f7dff['model']['schema'],_0x371f1b=_0x3aaac3['nodeAfter'];return _0x184fc4['isBlock'](_0x371f1b)&&!_0x184fc4['isLimit'](_0x371f1b)&&_0x184fc4['checkChild'](_0x371f1b,'$text')?{'type':'insertion','content':c(_0x58e638,'*Insert:*\x20%0',_0x1c2638['getItemLabel'](_0x371f1b,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1e2ec5=this['editor'],_0x5191e5=_0x1e2ec5['locale'];_0x1e2ec5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4a3574=>{if('formatBlock'!=_0x4a3574['type'])return;const {data:_0x17fc40}=_0x4a3574;return _0x17fc40&&'paragraph'==_0x17fc40['commandName']?{'type':'format','content':c(_0x5191e5,'*Change\x20to:*\x20%0',c(_0x5191e5,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x1aec4f,{showActiveMarker:_0xbf0f76=!0x0}={}){return(_0x506765,_0x3f17e3,_0x56cbd6)=>{const _0x4f5d07=_0x1aec4f['plugins']['get']('TrackChangesEditing'),_0xe69a78=_0x3f17e3['markerRange']['start'],_0x410274=_0x3f17e3['markerRange']['end'],_0x1d2382=_0x1aec4f['model']['schema'];if(!_0xe69a78['isTouching'](_0x410274)||!_0xe69a78['nodeAfter'])return;const _0x499d29=_0xe69a78['nodeAfter'];if(_0x1d2382['isBlock'](_0x499d29)&&!_0x1d2382['isLimit'](_0x499d29)&&_0x1d2382['checkChild'](_0x499d29,'$text')){if(!_0x56cbd6['consumable']['consume'](_0x3f17e3['markerRange'],_0x506765['name']))return;const {authorId:_0x4cd640}=_0x4f5d07['_splitMarkerName'](_0x3f17e3['markerName']),_0x39dd59=_0x56cbd6['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x4cd640}),_0xdc1353=_0x56cbd6['mapper']['toViewPosition'](_0x410274);_0xbf0f76&&_0x4f5d07['activeMarkers']['includes'](_0x3f17e3['markerName'])&&_0x56cbd6['writer']['addClass']('ck-suggestion-marker--active',_0x39dd59),_0x56cbd6['writer']['insert'](_0xdc1353,_0x39dd59),_0x56cbd6['mapper']['bindElementToMarker'](_0x39dd59,_0x3f17e3['markerName']);}};}class jt extends _0x47cef7{['afterInit'](){const _0xa33e1e=this['editor'];_0xa33e1e['commands']['get']('replaceSource')&&_0xa33e1e['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x47cef7{['afterInit'](){const _0x375815=this['editor'];if(!_0x375815['plugins']['has']('RemoveFormatEditing'))return;_0x375815['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1617f6=this['editor'];_0x1617f6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2c4e6b=>{if('formatBlock'!=_0x2c4e6b['type']&&'formatInline'!=_0x2c4e6b['type'])return;const {data:_0x3f6189}=_0x2c4e6b;return _0x3f6189&&'removeFormat'==_0x3f6189['commandName']?{'type':'format','content':c(_0x1617f6['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x47cef7{['afterInit'](){const _0x5ba18c=this['editor'];if(!_0x5ba18c['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x54cb95=_0x5ba18c['plugins']['get']('TrackChangesEditing');_0x54cb95['enableCommand']('goToPreviousRestrictedEditingException'),_0x54cb95['enableCommand']('goToNextRestrictedEditingException');const _0x7ec128=_0x5ba18c['plugins']['get']('RestrictedEditingModeEditing');_0x7ec128['enableCommand']('trackChanges'),_0x7ec128['enableCommand']('acceptSuggestion'),_0x7ec128['enableCommand']('discardSuggestion'),_0x7ec128['enableCommand']('acceptAllSuggestions'),_0x7ec128['enableCommand']('discardAllSuggestions'),_0x7ec128['enableCommand']('acceptSelectedSuggestions'),_0x7ec128['enableCommand']('discardSelectedSuggestions');}}class It extends _0x47cef7{['afterInit'](){const _0x3df5c4=this['editor'];if(!_0x3df5c4['plugins']['has']('ShiftEnter'))return;const _0x9f98e4=_0x3df5c4['plugins']['get']('TrackChangesEditing');_0x9f98e4['enableCommand']('shiftEnter'),_0x3df5c4['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x3df5c4),{'priority':'high'}),_0x3df5c4['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x3df5c4),{'priority':'high'}),_0x3df5c4['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xe300a,_0x39d2e0,_0xb2f672)=>{_0xb2f672['options']['showSuggestionHighlights']&&je(_0x3df5c4,{'showActiveMarker':!0x1})(_0xe300a,_0x39d2e0,_0xb2f672);}),_0x9f98e4['descriptionFactory']['registerElementLabel']('softBreak',_0x261e9e=>c(_0x3df5c4['locale'],'ELEMENT_LINE_BREAK',_0x261e9e));}}function je(_0x1005d9,{showActiveMarker:_0x3a1bd2=!0x0}={}){return(_0x51226b,_0xbae659,_0xe5a89e)=>{const _0x2b8b1c=_0x1005d9['plugins']['get']('TrackChangesEditing');if(!_0xe5a89e['consumable']['test'](_0xbae659['markerRange'],_0x51226b['name']))return;const _0x5e4e84=_0x1005d9['model'];for(const _0x220b83 of _0xbae659['markerRange']['getItems']()){if(!_0x220b83['is']('element','softBreak'))continue;const _0x4cedcc='deletion'==_0xbae659['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x1c779d}=_0x2b8b1c['_splitMarkerName'](_0xbae659['markerName']),_0x5b103d=_0xe5a89e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4cedcc,'data-author-id':_0x1c779d}),_0x1d7a5e=_0xe5a89e['mapper']['toViewPosition'](_0x5e4e84['createPositionBefore'](_0x220b83));_0x3a1bd2&&_0x2b8b1c['activeMarkers']['includes'](_0xbae659['markerName'])&&_0xe5a89e['writer']['addClass']('ck-suggestion-marker--active',_0x5b103d),_0xe5a89e['writer']['insert'](_0x1d7a5e,_0x5b103d),_0xe5a89e['mapper']['bindElementToMarker'](_0x5b103d,_0xbae659['markerName']);}};}class _t extends _0x47cef7{['afterInit'](){const _0x5f5ae6=this['editor'],_0x4a5a23=_0x5f5ae6['model'],_0x3b703a=_0x5f5ae6['locale'];if(!_0x5f5ae6['plugins']['has']('StandardEditingModeEditing'))return;const _0xe834c3=_0x5f5ae6['plugins']['get']('TrackChangesEditing'),_0x53b4fb='restrictedEditingException',_0x51051f=_0x5f5ae6['commands']['get'](_0x53b4fb);_0xe834c3['enableCommand'](_0x53b4fb,(_0x145cbb,_0x22c445={})=>{const _0x33c798=_0x4a5a23['document']['selection'];if(_0x33c798['isCollapsed'])return void _0x145cbb(_0x22c445);const _0x510c5d=void 0x0!==_0x22c445['forceValue']?_0x22c445['forceValue']:!_0x51051f['value'];_0x4a5a23['change'](()=>{const _0x5025d7=Array['from'](_0x33c798['getRanges']());for(const _0x55efd9 of _0x5025d7){const _0x34f027=_0x510c5d?[_0x55efd9]:io(_0x53b4fb,_0x55efd9,_0x4a5a23);for(const _0x1538e3 of _0x34f027)_0xe834c3['markInlineFormat'](_0x1538e3,{'commandName':_0x53b4fb,'commandParams':[{'forceValue':_0x510c5d}]});}});}),_0xe834c3['descriptionFactory']['registerDescriptionCallback'](_0xbbb633=>{if('formatBlock'!=_0xbbb633['type']&&'formatInline'!=_0xbbb633['type'])return;const {data:_0x57d9f3}=_0xbbb633;return _0x57d9f3&&_0x57d9f3['commandName']==_0x53b4fb?_0x57d9f3['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x3b703a,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x3b703a,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x47cef7{['afterInit'](){const _0x12338f=this['editor'];if(!_0x12338f['plugins']['has']('Style')||!_0x12338f['plugins']['has']('DataSchema'))return;const _0x4b05c3=_0x12338f['plugins']['get']('TrackChangesEditing'),_0x20fedd=_0x12338f['locale'],_0x279384=_0x12338f['config']['get']('style')||{},_0x47e83=_0x12338f['plugins']['get']('GeneralHtmlSupport'),_0x121dd9=_0x12338f['plugins']['get']('StyleUtils')['normalizeConfig'](_0x12338f['plugins']['get']('DataSchema'),_0x279384['definitions']);_0x4b05c3['enableDefaultAttributesIntegration']('style');const _0x659ac=new Set();for(const _0x51ab1c of _0x121dd9['block']){const _0x539f1c=_0x47e83['getGhsAttributeNameForElement'](_0x51ab1c['element']);_0x659ac['add'](_0x539f1c);}const _0x4fdfa2=new Set();for(const _0x29de8a of _0x121dd9['inline']){const _0x28101c=_0x47e83['getGhsAttributeNameForElement'](_0x29de8a['element']);_0x4fdfa2['add'](_0x28101c);for(const _0x4c7bda of _0x29de8a['ghsAttributes'])_0x4fdfa2['add'](_0x4c7bda);}for(const _0x582969 of _0x659ac)_0x4b05c3['registerBlockAttribute'](_0x582969),_0x4b05c3['descriptionFactory']['registerAttributeLabel'](_0x582969,c(_0x20fedd,'FORMAT_STYLE'));for(const _0x2b2677 of _0x4fdfa2)_0x4b05c3['registerInlineAttribute'](_0x2b2677),_0x4b05c3['descriptionFactory']['registerAttributeLabel'](_0x2b2677,c(_0x20fedd,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xf432b3=this['editor'],_0x416251=_0xf432b3['locale'];_0xf432b3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3dc9ff=>{if('formatBlock'!=_0x3dc9ff['type']&&'formatInline'!=_0x3dc9ff['type'])return;const {data:_0x3c1eba}=_0x3dc9ff;return _0x3c1eba&&'style'===_0x3c1eba['commandName']?_0x3c1eba['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x416251,'*Set\x20format:*\x20%0',_0x3c1eba['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x416251,'*Remove\x20format:*\x20%0',_0x3c1eba['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x47cef7{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x371270){super(_0x371270),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x4083a9=this['editor'],_0x509601=_0x4083a9['model']['document']['selection'];if(!_0x4083a9['plugins']['has']('TableEditing'))return;const _0x3eac11=_0x4083a9['locale'],_0x3525a5=_0x4083a9['plugins']['get']('TrackChangesEditing'),_0x8fbd11=_0x4083a9['plugins']['get']('TableUtils');_0x3525a5['descriptionFactory']['registerElementLabel']('table',_0x2af6af=>c(_0x3eac11,'ELEMENT_TABLE',_0x2af6af)),this['_setupColumnsRowsFixing'](),_0x3525a5['enableCommand']('insertTable'),_0x3525a5['enableCommand']('selectTableRow'),_0x3525a5['enableCommand']('selectTableColumn');for(const _0x1b3c7e of['insertTableRowAbove','insertTableRowBelow']){const _0x1ce07a=_0x4083a9['commands']['get'](_0x1b3c7e);_0x3525a5['enableCommand'](_0x1b3c7e,_0x1d6a1c=>{_0x4083a9['model']['change'](_0x5872fd=>{_0x1d6a1c();const _0x289d43='above'===_0x1ce07a['order'],_0x321c7c=_0x8fbd11['getSelectionAffectedTableCells'](_0x509601),_0x37da55=_0x8fbd11['getRowIndexes'](_0x321c7c),_0x332e2e=_0x289d43?_0x37da55['first']-0x1:_0x37da55['last']+0x1,_0x2b7e89=_0x321c7c[0x0]['findAncestor']('table'),_0x22eeb3=_0x8fbd11['createTableWalker'](_0x2b7e89,{'startRow':_0x332e2e,'endRow':_0x332e2e}),_0x1005ba=Array['from'](_0x22eeb3)['map'](_0x34cdf4=>_0x5872fd['createRangeOn'](_0x34cdf4['cell']));_0x3525a5['markMultiRangeInsertion'](_0x1005ba,'tableRow');});});}for(const _0x5f2b0a of['insertTableColumnLeft','insertTableColumnRight']){const _0x5bd3a4=_0x4083a9['commands']['get'](_0x5f2b0a);_0x3525a5['enableCommand'](_0x5f2b0a,_0x4a3aa6=>{_0x4083a9['model']['change'](_0x4656b1=>{_0x4a3aa6();const _0x5b07f2='left'===_0x5bd3a4['order'],_0x27e0d4=_0x8fbd11['getSelectionAffectedTableCells'](_0x509601),_0x4a7a14=_0x8fbd11['getColumnIndexes'](_0x27e0d4),_0x41e2d6=_0x5b07f2?_0x4a7a14['first']-0x1:_0x4a7a14['last']+0x1,_0x4407f7=_0x27e0d4[0x0]['findAncestor']('table'),_0x2e45cd=_0x8fbd11['createTableWalker'](_0x4407f7,{'startRow':0x0,'column':_0x41e2d6,'includeAllSlots':!0x1}),_0x5c905f=Array['from'](_0x2e45cd)['map'](_0x148702=>_0x4656b1['createRangeOn'](_0x148702['cell']));_0x3525a5['markMultiRangeInsertion'](_0x5c905f,'tableColumn');});});}for(const _0x630885 of['removeTableRow','removeTableColumn']){const _0x5dcb51=_0x630885['substr'](0xb),_0x593143=_0x5dcb51['toLowerCase'](),_0x414c8f=_0x593143['substr'](0x0,0x3)+'span',_0x48c6c4='table'+_0x5dcb51,_0x93aac2='min'+_0x5dcb51,_0x54b9ff='max'+_0x5dcb51;_0x3525a5['enableCommand'](_0x630885,()=>{_0x4083a9['model']['change'](_0x238013=>{const _0x6cddce=_0x8fbd11['getSelectionAffectedTableCells'](_0x509601),_0x20759a=_0x6cddce[0x0]['findAncestor']('table');let _0x1b6499;if('removeTableRow'==_0x630885){const _0xe7c9ea=_0x8fbd11['getRowIndexes'](_0x6cddce);_0x1b6499={'startRow':_0xe7c9ea['first'],'endRow':_0xe7c9ea['last'],'includeAllSlots':!0x0};}else{const _0x54d608=_0x8fbd11['getColumnIndexes'](_0x6cddce);_0x1b6499={'startColumn':_0x54d608['first'],'endColumn':_0x54d608['last'],'includeAllSlots':!0x0};}const _0x7bd418=_0x8fbd11['createTableWalker'](_0x20759a,_0x1b6499),_0x2e716e=Array['from'](_0x7bd418)['map'](({cell:_0x32c6f0})=>_0x32c6f0),_0x26c551=Ne(_0x2e716e['filter'](_0x27bb41=>_0x27bb41['hasAttribute'](_0x414c8f))),_0x448a54=Ne(_0x2e716e['filter'](_0x360e9b=>!_0x360e9b['hasAttribute'](_0x414c8f)))['map'](_0x224f70=>_0x238013['createRangeOn'](_0x224f70)),_0x3eb39d=_0x3525a5['markMultiRangeDeletion'](_0x448a54,_0x48c6c4);if(_0x3eb39d&&('tableRow'==_0x3eb39d['subType']||'tableColumn'==_0x3eb39d['subType'])){const _0x570b3e=this['_getSuggestionCoords'](_0x3eb39d);for(const _0x20c06d of _0x26c551){const _0x30f748=_0x238013['createRangeOn'](_0x20c06d),_0x524eaa=_0x8fbd11['getCellLocation'](_0x20c06d),_0x40d53a=_0x20c06d['getAttribute'](_0x414c8f)-0x1,_0x55978b=_0x570b3e[_0x93aac2],_0x2fe5f6=_0x570b3e[_0x54b9ff];_0x55978b<=_0x524eaa[_0x593143]&&_0x524eaa[_0x593143]+_0x40d53a<=_0x2fe5f6&&_0x3eb39d['addRange'](_0x30f748);}}});});}function _0x1ec39c(_0x1ccedc){const _0x172acf=Array['from'](_0x509601['getRanges']())['map'](_0x23c307=>_0x163541['fromRange'](_0x23c307));_0x4083a9['model']['change'](_0x1f5e5e=>{const _0x499758=_0x1f5e5e['batch'];_0x1ccedc=_0x1ccedc['filter'](_0x2f04fd=>'$graveyard'!=_0x2f04fd['root']['rootName']),_0x1f5e5e['setSelection'](_0x1ccedc),_0x4083a9['commands']['get']('removeTableRow')['refresh'](),_0x4083a9['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x4083a9['model']['enqueueChange'](()=>{_0x4083a9['model']['enqueueChange'](_0x499758,_0x5d8a78=>{const _0x4b9d31=_0x172acf['filter'](_0x4d6ea8=>'$graveyard'!=_0x4d6ea8['root']['rootName']);_0x4b9d31['length']>0x0&&_0x5d8a78['setSelection'](_0x4b9d31);for(const _0x58f6cc of _0x172acf)_0x58f6cc['detach']();});});});}function _0x5d6b04(_0x1260fa){_0x4083a9['model']['change'](_0x271df8=>{const _0x5398cf=Array['from'](_0x509601['getRanges']())['map'](_0x35f71d=>_0x163541['fromRange'](_0x35f71d)),_0x2bb029=[];for(const _0x3bdf1a of _0x1260fa)for(const _0x2cfd98 of _0x3bdf1a['getItems']({'shallow':!0x0}))_0x2bb029['push'](_0x2cfd98);for(const _0xbbf66f of _0x2bb029)'$graveyard'!=_0xbbf66f['root']['rootName']&&(_0x271df8['setSelection'](_0x271df8['createPositionAt'](_0xbbf66f,0x0)),_0x4083a9['commands']['get']('removeTableColumn')['refresh'](),_0x4083a9['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x15cb6e=_0x5398cf['filter'](_0x818d31=>'$graveyard'!=_0x818d31['root']['rootName']);_0x15cb6e['length']>0x0&&_0x271df8['setSelection'](_0x15cb6e);for(const _0x1d13d4 of _0x5398cf)_0x1d13d4['detach']();});}function _0x2e4ee3(_0x4b4446,_0x478c35){return _0x478c35['every'](_0x4368f8=>_0x4b4446['some'](_0x4a05b5=>_0x4a05b5['end']['isEqual'](_0x4368f8['start'])||_0x4368f8['end']['isEqual'](_0x4a05b5['start'])));}function _0x5e7955(_0x528a60,_0x51ea12){return!_0x528a60['some'](_0x32e391=>_0x51ea12['some'](_0x26155c=>_0x32e391['isIntersecting'](_0x26155c)))&&_0x528a60['some'](_0x4006f2=>_0x51ea12['some'](_0x48cb80=>_0x4006f2['end']['isTouching'](_0x48cb80['start'])));}_0x4083a9['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x57b7f2,_0x37b3a3,_0x45c2d9)=>{if(!_0x45c2d9['options']['showSuggestionHighlights'])return;const _0x2321e8=_0x37b3a3['item'];if(!_0x2321e8)return;const _0x2bbdb9=_0x45c2d9['mapper']['toViewElement'](_0x2321e8);function _0x298ee1(_0x4ccefb){return Array['isArray'](_0x4ccefb)?_0x4ccefb:[_0x4ccefb];}_0x2bbdb9&&'tableCell'===_0x2321e8['name']&&_0x1dde5f(_0x2bbdb9,_0x45c2d9['writer'],(_0x31d976,_0x51a6f9,_0x113bd0)=>_0x113bd0['addClass'](_0x298ee1(_0x51a6f9['classes']),_0x31d976),(_0x31de3a,_0x4d4b58,_0x5dc646)=>_0x5dc646['removeClass'](_0x298ee1(_0x4d4b58['classes']),_0x31de3a));},{'priority':'highest'}),_0x3525a5['descriptionFactory']['registerDescriptionCallback'](_0x2356b8=>{if('insertion'!=_0x2356b8['type']&&'deletion'!=_0x2356b8['type'])return;const _0xbd16ae=_0x2356b8['getContainedElement']();if(null!=_0xbd16ae&&_0xbd16ae['is']('element','table')){if('insertion'==_0x2356b8['type']){const _0xc20859=_0x2356b8['getItems']()['filter'](_0x437588=>_0x437588['is']('$textProxy'))['map'](_0x4f8c88=>_0x4f8c88['data']);if(_0xc20859['length'])return{'type':'insertion','content':c(_0x3eac11,'*Insert:*\x20%0',c(_0x3eac11,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xc20859['join']('\x20')+'\x22'))};}if('deletion'==_0x2356b8['type']){const _0x2b7ecd=_0x2356b8['getItems']()['filter'](_0x2beed7=>_0x2beed7['is']('$textProxy'))['map'](_0x50d0cb=>_0x50d0cb['data']);if(_0x2b7ecd['length'])return{'type':'deletion','content':c(_0x3eac11,'*Remove:*\x20%0',c(_0x3eac11,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2b7ecd['join']('\x20')+'\x22'))};}}}),_0x3525a5['descriptionFactory']['registerDescriptionCallback'](_0x7bc1a4=>{if('tableRow'==_0x7bc1a4['subType']){const _0x16c9e5=_0x7bc1a4['getItems']()['filter'](_0x1d9983=>_0x1d9983['is']('$textProxy'))['map'](_0x50c253=>_0x50c253['data']),_0xd34d5c=this['_getSuggestionCoords'](_0x7bc1a4),_0x558393=_0xd34d5c['maxRow']-_0xd34d5c['minRow']+0x1;if('insertion'==_0x7bc1a4['type'])return _0x16c9e5['length']?{'type':'insertion','content':c(_0x3eac11,'*Insert:*\x20%0',c(_0x3eac11,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x558393,'\x22'+_0x16c9e5['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x3eac11,'*Insert:*\x20%0',c(_0x3eac11,'ELEMENT_TABLE_ROW',_0x558393))};if('deletion'==_0x7bc1a4['type'])return _0x16c9e5['length']?{'type':'deletion','content':c(_0x3eac11,'*Remove:*\x20%0',c(_0x3eac11,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x558393,'\x22'+_0x16c9e5['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x3eac11,'*Remove:*\x20%0',c(_0x3eac11,'ELEMENT_TABLE_ROW',_0x558393))};}if('tableColumn'==_0x7bc1a4['subType']){const _0x3b4b98=_0x7bc1a4['getItems']()['filter'](_0x358b3d=>_0x358b3d['is']('$textProxy'))['map'](_0x5a311c=>_0x5a311c['data']),_0x5879f0=this['_getSuggestionCoords'](_0x7bc1a4),_0x59f044=_0x5879f0['maxColumn']-_0x5879f0['minColumn']+0x1;if('insertion'==_0x7bc1a4['type'])return _0x3b4b98['length']?{'type':'insertion','content':c(_0x3eac11,'*Insert:*\x20%0',c(_0x3eac11,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x59f044,'\x22'+_0x3b4b98['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x3eac11,'*Insert:*\x20%0',c(_0x3eac11,'ELEMENT_TABLE_COLUMN',_0x59f044))};if('deletion'==_0x7bc1a4['type'])return _0x3b4b98['length']?{'type':'deletion','content':c(_0x3eac11,'*Remove:*\x20%0',c(_0x3eac11,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x59f044,'\x22'+_0x3b4b98['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x3eac11,'*Remove:*\x20%0',c(_0x3eac11,'ELEMENT_TABLE_COLUMN',_0x59f044))};}}),_0x3525a5['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x1ec39c),_0x3525a5['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x1ec39c),_0x3525a5['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x5d6b04),_0x3525a5['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x5d6b04),_0x3525a5['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x2e4ee3),_0x3525a5['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x2e4ee3),_0x3525a5['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x5e7955),_0x3525a5['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x5e7955);}['_acceptFormatSuggestionCallbackFactory'](){const _0x4844d2=this['editor'],_0x58b621=_0x4844d2['model']['document']['selection'];return(_0x355670,_0x4804d7)=>{_0x4844d2['model']['change'](_0x55dc0e=>{const {commandName:_0x163b25,commandParams:_0x326148}=_0x4804d7;let _0x4dcb78=_0x355670[0x0]['end']['nodeBefore'];_0x326148&&_0x326148[0x0]&&!0x1===_0x326148[0x0]['forceValue']&&(_0x4dcb78=_0x355670[0x0]['start']['nodeAfter']);const _0x41bf30=_0x55dc0e['createRangeIn'](_0x4dcb78);if('$graveyard'==_0x41bf30['root']['rootName'])return;const _0x5a51c1=Array['from'](_0x58b621['getRanges']())['map'](_0x3db28c=>_0x163541['fromRange'](_0x3db28c));_0x55dc0e['setSelection'](_0x41bf30),_0x4844d2['commands']['get'](_0x163b25)['refresh'](),_0x326148['push']({'forceDefaultExecution':!0x0}),_0x4844d2['execute'](_0x163b25,..._0x326148);const _0x4bafc8=_0x5a51c1['filter'](_0x21860e=>'$graveyard'!=_0x21860e['root']['rootName']);_0x4bafc8['length']>0x0&&_0x55dc0e['setSelection'](_0x4bafc8);for(const _0x3bd087 of _0x5a51c1)_0x3bd087['detach']();});};}['_getCoordsForCells'](_0x42c323){const _0x837316=this['editor']['plugins']['get']('TableUtils');let _0x2f94d0=Number['MAX_SAFE_INTEGER'],_0x30b94e=Number['MIN_SAFE_INTEGER'],_0x4a42b0=Number['MAX_SAFE_INTEGER'],_0x1b82b0=Number['MIN_SAFE_INTEGER'];for(const _0x2d2ff7 of _0x42c323){if('$graveyard'==_0x2d2ff7['root']['rootName'])continue;const {row:_0x27cfe1,column:_0x50ad35}=_0x837316['getCellLocation'](_0x2d2ff7),_0x146122=_0x2d2ff7['hasAttribute']('rowspan')?_0x2d2ff7['getAttribute']('rowspan')-0x1:0x0,_0x18945c=_0x2d2ff7['hasAttribute']('colspan')?_0x2d2ff7['getAttribute']('colspan')-0x1:0x0;_0x2f94d0=_0x27cfe1<_0x2f94d0?_0x27cfe1:_0x2f94d0,_0x30b94e=_0x27cfe1+_0x146122>_0x30b94e?_0x27cfe1+_0x146122:_0x30b94e,_0x4a42b0=_0x50ad35<_0x4a42b0?_0x50ad35:_0x4a42b0,_0x1b82b0=_0x50ad35+_0x18945c>_0x1b82b0?_0x50ad35+_0x18945c:_0x1b82b0;}return{'minRow':_0x2f94d0,'maxRow':_0x30b94e,'minColumn':_0x4a42b0,'maxColumn':_0x1b82b0};}['_setupColumnsRowsFixing'](){const _0x331e75=this['editor'],_0xf250f=_0x331e75['plugins']['get']('TrackChangesEditing'),_0x1482c9=_0x331e75['plugins']['get']('TableUtils');_0x331e75['model']['document']['on']('change:data',()=>{const _0xbb2e53=Array['from'](_0x331e75['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x50082d,data:_0x20ea0d}of _0xbb2e53){const {group:_0x4b72fe,id:_0x301cd5,subType:_0x40ed8a}=_0xf250f['_splitMarkerName'](_0x50082d);if('suggestion'!=_0x4b72fe)continue;if(null!=_0x20ea0d['oldRange'])continue;const _0x3802bc=_0xf250f['getSuggestion'](_0x301cd5);this['_tablePostFixingSubtypes']['includes'](_0x40ed8a)&&this['_tableSuggestions']['add'](_0x3802bc);}},{'priority':'low'});const _0xc35aa1=(_0x414ff9,_0xde0ca4)=>{let _0x2ead34=!0x1;const _0x54706f=_0xde0ca4['createRangeOn'](_0x414ff9),_0x24c145=_0x414ff9['findAncestor']('table'),_0x287555=_0x1482c9['getCellLocation'](_0x414ff9);for(const _0x2cfd69 of this['_tableSuggestions']){const _0x3aff9f=_0x2cfd69['subType'],_0x32514a=_0x3aff9f['startsWith']('tablePaste'),_0x6888f4=_0x3aff9f['substr'](_0x32514a?0xa:0x5),_0x1d0637=_0x6888f4['toLowerCase'](),_0x3ea28d=_0x1d0637['substr'](0x0,0x3)+'span',_0x1142d0='min'+_0x6888f4,_0x239cb1='max'+_0x6888f4;if(!_0x2cfd69['isInContent'])continue;if(_0x24c145!=_0x2cfd69['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x2cfd69['isIntersectingWithRange'](_0x54706f))continue;const _0x2a2d18=_0x414ff9['hasAttribute'](_0x3ea28d)?_0x414ff9['getAttribute'](_0x3ea28d)-0x1:0x0,_0x548f5a=this['_getSuggestionCoords'](_0x2cfd69),_0x52a745=_0x548f5a[_0x1142d0],_0x2dbdd2=_0x548f5a[_0x239cb1];_0x52a745<=_0x287555[_0x1d0637]&&_0x287555[_0x1d0637]+_0x2a2d18<=_0x2dbdd2&&(_0x2cfd69['addRange'](_0x54706f),_0x2ead34=!0x0);}return _0x2ead34;};_0x331e75['model']['document']['registerPostFixer'](_0x5f2b07=>{let _0x1cf40c=!0x1;for(const _0x21a6b0 of _0x331e75['model']['document']['differ']['getChanges']())if('insert'==_0x21a6b0['type']){if('tableRow'==_0x21a6b0['name']){for(const _0x25a0ff of _0x21a6b0['position']['nodeAfter']['getChildren']())_0x1cf40c=_0x1cf40c||_0xc35aa1(_0x25a0ff,_0x5f2b07);}else'tableCell'==_0x21a6b0['name']&&(_0x1cf40c=_0x1cf40c||_0xc35aa1(_0x21a6b0['position']['nodeAfter'],_0x5f2b07));}return _0x1cf40c;});}['_getSuggestionCoords'](_0x2b38d4){return this['_getCoordsForCells'](_0x2b38d4['getRanges']()['map'](_0x58319d=>_0x58319d['start']['nodeAfter']));}}function Ne(_0x4f2bc6){return Array['from'](new Set(_0x4f2bc6)['values']());}class Nt extends _0x47cef7{static get['requires'](){return[Ct];}['afterInit'](){const _0x10eb04=this['editor'],_0x3df9e5=_0x10eb04['model']['document']['selection'],_0x5ed07c=_0x10eb04['locale'];if(!_0x10eb04['plugins']['has']('TableEditing'))return;const _0x8a87c7=_0x10eb04['plugins']['get']('TrackChangesEditing'),_0x330de2=_0x10eb04['plugins']['get']('TableUtils'),_0x57c178=_0x10eb04['plugins']['get'](Ct);_0x57c178['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x8a87c7['enableCommand']('mergeTableCells',()=>{const _0x3181cc=_0x330de2['getSelectionAffectedTableCells'](_0x10eb04['model']['document']['selection']);_0x10eb04['model']['change'](()=>{_0x8a87c7['markMultiRangeBlockFormat'](_0x3181cc,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x10eb04['commands']['get']('mergeTableCells')['on']('execute',(_0x4f165a,_0xa5498)=>{_0x10eb04['commands']['get']('trackChanges')['value']&&(_0xa5498['length']>0x0&&_0xa5498[_0xa5498['length']-0x1]&&_0xa5498[_0xa5498['length']-0x1]['forceDefaultExecution']||_0x8a87c7['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x4f165a['stop']());},{'priority':'highest'});for(const _0x288591 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x224cc2=_0x10eb04['commands']['get'](_0x288591);_0x8a87c7['enableCommand'](_0x288591,()=>{const _0xb62534=_0x10eb04['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x153a8c=>_0x153a8c['is']('element','tableCell')),_0x4fb252=_0x224cc2['value'];_0x10eb04['model']['change'](()=>{_0x8a87c7['markMultiRangeBlockFormat']([_0xb62534,_0x4fb252],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x35acda of['splitTableCellVertically','splitTableCellHorizontally']){const _0xa4d624=_0x10eb04['commands']['get'](_0x35acda);_0x8a87c7['enableCommand'](_0x35acda,()=>{const _0x46dfb4=_0x330de2['getSelectionAffectedTableCells'](_0x10eb04['model']['document']['selection'])[0x0],_0x2dc817=_0x46dfb4['findAncestor']('table'),{column:_0x19ce24,row:_0x4351c6}=_0x330de2['getCellLocation'](_0x46dfb4);let _0x417902=[];if('horizontally'==_0xa4d624['direction']){const _0x29d433=_0x330de2['createTableWalker'](_0x2dc817,{'startRow':_0x4351c6,'endRow':_0x4351c6,'includeAllSlots':!0x0});_0x417902=Array['from'](_0x29d433)['map'](_0x3bbdd2=>_0x3bbdd2['cell']);}else{const _0x2e88c1=_0x330de2['createTableWalker'](_0x2dc817,{'column':_0x19ce24,'includeAllSlots':!0x0});_0x417902=Array['from'](_0x2e88c1)['map'](_0x49fecd=>_0x49fecd['cell']);}_0x10eb04['model']['change'](_0x36c3b1=>{_0x8a87c7['markBlockFormat'](_0x36c3b1['createRangeOn'](_0x46dfb4),{'commandName':_0x35acda,'commandParams':[]},_0x417902,_0x35acda);});});}_0x8a87c7['descriptionFactory']['registerDescriptionCallback'](_0x1c1216=>{if('formatBlock'!=_0x1c1216['type']&&'formatInline'!=_0x1c1216['type'])return;const {data:_0x26792f}=_0x1c1216;return _0x26792f&&'mergeTableCells'==_0x26792f['commandName']?{'type':'format','content':c(_0x5ed07c,'*Merge\x20cells*')}:void 0x0;}),_0x8a87c7['descriptionFactory']['registerDescriptionCallback'](_0x363afd=>{if('formatBlock'!=_0x363afd['type']&&'formatInline'!=_0x363afd['type'])return;const {data:_0x6e6050}=_0x363afd;return _0x6e6050?'splitTableCellVertically'==_0x6e6050['commandName']?{'type':'format','content':c(_0x5ed07c,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x6e6050['commandName']?{'type':'format','content':c(_0x5ed07c,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x4b462d=_0x57c178['_acceptFormatSuggestionCallbackFactory']();for(const _0x14c2bf of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x8a87c7['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x14c2bf,'accept',_0x4b462d);for(const _0x29758a of['splitTableCellVertically','splitTableCellHorizontally'])_0x8a87c7['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x29758a,'accept',_0x4b462d);_0x8a87c7['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x4a9a27=>{_0x10eb04['model']['change'](_0x4bcbb1=>{const _0x2ff86c=Array['from'](_0x3df9e5['getRanges']())['map'](_0x567784=>_0x163541['fromRange'](_0x567784));_0x4bcbb1['setSelection'](_0x4a9a27),_0x10eb04['commands']['get']('mergeTableCells')['refresh'](),_0x10eb04['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x110f40=_0x2ff86c['filter'](_0x1ea3cc=>'$graveyard'!=_0x1ea3cc['root']['rootName']);_0x110f40['length']>0x0&&_0x4bcbb1['setSelection'](_0x110f40);for(const _0x492059 of _0x2ff86c)_0x492059['detach']();});});for(const _0x5c12f9 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x46c810=_0x10eb04['commands']['get'](_0x5c12f9);_0x46c810['on']('set:isEnabled',(_0xa379a4,_0x42340c,_0x4e24e3)=>{if(_0x4e24e3){const _0x3e9ca5=_0x10eb04['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x39216a=>_0x39216a['is']('element','tableCell'));this['_areMergableCells'](_0x46c810['value'],_0x3e9ca5)||(_0xa379a4['return']=!0x1,_0xa379a4['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x25162a=this['editor']['commands']['get']('mergeTableCells'),_0x53fe9d=this['editor']['plugins']['get']('TableUtils');if(!_0x25162a['isEnabled'])return!0x1;const _0x5585be=_0x53fe9d['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x53599c of _0x5585be)for(const _0x40129d of _0x5585be)if(_0x53599c!=_0x40129d&&!this['_areMergableCells'](_0x53599c,_0x40129d))return!0x1;return!0x0;}['_areMergableCells'](_0x552809,_0x1c9572){const _0x280641=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2d844c=this['editor']['model']['createRangeOn'](_0x552809),_0x130a76=this['editor']['model']['createRangeOn'](_0x1c9572),_0x39bb68=new Set(),_0x47c33e=new Set();for(const _0x3e08c3 of _0x280641['getSuggestions']())if(('insertion'==_0x3e08c3['type']||'deletion'==_0x3e08c3['type']||'mergeTableCells'==_0x3e08c3['subType'])&&_0x3e08c3['isInContent']){for(const _0x662db6 of _0x3e08c3['getRanges']())_0x662db6['containsRange'](_0x2d844c,!0x0)&&_0x39bb68['add'](_0x3e08c3['type']+':'+_0x3e08c3['author']['id']),_0x662db6['containsRange'](_0x130a76,!0x0)&&_0x47c33e['add'](_0x3e08c3['type']+':'+_0x3e08c3['author']['id']);}if(_0x39bb68['size']!=_0x47c33e['size'])return!0x1;for(const _0x55b733 of _0x39bb68)if(!_0x47c33e['has'](_0x55b733))return!0x1;return!0x0;}}class Dt extends _0x47cef7{static get['requires'](){return[Ct];}['afterInit'](){const _0x2faedf=this['editor'];if(!_0x2faedf['plugins']['has']('TableEditing'))return;const _0x206b9f=_0x2faedf['locale'],_0x1e49c=_0x2faedf['plugins']['get']('TrackChangesEditing');_0x1e49c['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x1e49c['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x1e49c['registerBlockAttribute']('headingRows'),_0x1e49c['registerBlockAttribute']('headingColumns'),_0x1e49c['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x206b9f,'FORMAT_HEADER_ROW')),_0x1e49c['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x206b9f,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3d1800=this['editor']['plugins']['get']('TrackChangesEditing'),_0xc51bfb=this['editor']['plugins']['get']('TableUtils'),_0x3b2b17=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x49cdd7({showActiveMarker:_0x3cd632=!0x0,setDataAttribute:_0x20fc44=!0x0}={}){return(_0xc85238,_0x33a843,_0x76eed7)=>{const {type:_0x1b6ffa,id:_0x55d78a}=_0x3d1800['_splitMarkerName'](_0x33a843['markerName']),_0xd2f8a1=_0x3d1800['getSuggestion'](_0x55d78a),_0x1c9031=_0xd2f8a1['data'];if('formatBlock'!=_0xd2f8a1['type']||!_0x1c9031||'setTableColumnHeader'!=_0x1c9031['commandName'])return;if(_0x33a843['item'])return void _0xc85238['stop']();if(!_0x76eed7['consumable']['consume'](_0x33a843['markerRange'],_0xc85238['name']))return;const _0x34b72d=_0x33a843['markerRange']['start']['nodeAfter'],_0x57c562=_0x33a843['markerRange']['end']['nodeBefore'],_0x4fbfea=_0x34b72d['parent']['parent'],{column:_0x482508}=_0xc51bfb['getCellLocation'](_0x34b72d),{column:_0x18c54e}=_0xc51bfb['getCellLocation'](_0x57c562);for(let _0x50bb90=_0x482508;_0x50bb90<=_0x18c54e;_0x50bb90++){const _0x161ac1=_0xc51bfb['createTableWalker'](_0x4fbfea,{'column':_0x50bb90,'includeAllSlots':!0x1});for(const _0xeb148b of _0x161ac1){const _0x998ed1=_0xeb148b['cell'],_0x1db528=_0x76eed7['mapper']['toViewElement'](_0x998ed1);_0x76eed7['writer']['addClass']('ck-suggestion-marker-'+_0x1b6ffa,_0x1db528),_0x20fc44&&_0x76eed7['writer']['setAttribute']('data-suggestion',_0x55d78a,_0x1db528),_0x76eed7['mapper']['bindElementToMarker'](_0x1db528,_0x33a843['markerName']),_0x3cd632&&(_0x3d1800['activeMarkers']['includes'](_0x33a843['markerName'])?_0x76eed7['writer']['addClass']('ck-suggestion-marker--active',_0x1db528):_0x76eed7['writer']['removeClass']('ck-suggestion-marker--active',_0x1db528));}}};}_0x3d1800['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x3b2b17),_0x3d1800['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x3b2b17),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x49cdd7(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2eef06,_0x354ffa,_0x137aa9)=>{_0x137aa9['options']['showSuggestionHighlights']&&_0x49cdd7({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x2eef06,_0x354ffa,_0x137aa9);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x14b0d2,_0x469532,_0x574d3b)=>{const {type:_0x25b943,id:_0x16b133}=_0x3d1800['_splitMarkerName'](_0x469532['markerName']),_0x13cd05=_0x3d1800['getSuggestion'](_0x16b133),_0x5b4725=_0x13cd05['data'];if('formatBlock'!=_0x13cd05['type']||!_0x5b4725||'setTableColumnHeader'!=_0x5b4725['commandName'])return;const _0x160a83=_0x574d3b['mapper']['markerNameToElements'](_0x469532['markerName']);if(_0x160a83){for(const _0x9ab334 of _0x160a83)_0x574d3b['writer']['removeClass']('ck-suggestion-marker-'+_0x25b943,_0x9ab334),_0x574d3b['writer']['removeClass']('ck-suggestion-marker--active',_0x9ab334),_0x574d3b['writer']['removeAttribute']('data-suggestion',_0x9ab334),_0x574d3b['mapper']['unbindElementFromMarkerName'](_0x9ab334,_0x469532['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x56e6b1=this['editor'],_0x32c125=_0x56e6b1['locale'];function _0x4db3ee(_0x1b1067){return{'type':'format','content':c(_0x32c125,'*Format:*\x20%0',_0x1b1067)};}_0x56e6b1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b958d=>{if('formatBlock'!=_0x1b958d['type'])return;const {data:_0x36aded}=_0x1b958d;if(_0x36aded){if('setTableRowHeader'==_0x36aded['commandName']){const _0x2f7fb6=_0x36aded['commandParams'][0x0]['forceValue'];return _0x4db3ee(c(_0x32c125,_0x2f7fb6?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x36aded['commandName']){const _0x49e8b0=_0x36aded['commandParams'][0x0]['forceValue'];return _0x4db3ee(c(_0x32c125,_0x49e8b0?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Ye extends _0x47cef7{['afterInit'](){const _0x2a90a5=this['editor'],_0x3ad59b=_0x2a90a5['locale'],_0x289a9d=_0x2a90a5['plugins']['get']('TrackChangesEditing');function _0x4bdaf6(_0x3187fb){return{'type':'format','content':''+c(_0x3ad59b,'*Set\x20table\x20type:*\x20%0',_0x3187fb)};}_0x2a90a5['plugins']['has']('TableLayout')&&(_0x289a9d['enableCommand']('insertTableLayout'),_0x289a9d['enableDefaultAttributesIntegration']('tableType'),_0x289a9d['registerBlockAttribute']('tableType'),_0x289a9d['descriptionFactory']['registerElementLabel'](_0x599ee3=>_0x599ee3['is']('element','table')&&'layout'===_0x599ee3['getAttribute']('tableType'),_0x214478=>c(_0x3ad59b,'ELEMENT_LAYOUT_TABLE',_0x214478)),_0x289a9d['descriptionFactory']['registerDescriptionCallback'](_0x474140=>{const {data:_0x34a8fb}=_0x474140;if(_0x34a8fb&&'tableType'==_0x34a8fb['key'])switch(_0x34a8fb['newValue']){case'layout':return _0x4bdaf6(c(_0x3ad59b,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x4bdaf6(c(_0x3ad59b,'ELEMENT_CONTENT_TABLE'));}}));}}const xe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Oe=Object['fromEntries'](xe['map'](_0x429e66=>[_0x429e66,null]));class $t extends _0x47cef7{static get['requires'](){return[Ct];}['afterInit'](){const _0x1f6303=this['editor'];if(!_0x1f6303['plugins']['has']('TableClipboard'))return;const _0x58a820=_0x1f6303['plugins']['get']('TrackChangesEditing'),_0x4390e1=_0x1f6303['plugins']['get']('TableUtils'),_0x2c7891=_0x1f6303['plugins']['get'](Ct),_0x4c464b=_0x1f6303['plugins']['get']('TableClipboard'),_0x3ded8b=_0x1f6303['plugins']['get']('TableSelection'),_0x3703df=_0x1f6303['plugins']['get'](_0x5e522e);_0x2c7891['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x1f6303['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x1f6303['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x38690a=null,_0x3ab401=!0x1;_0x3703df['on']('contentInsertion',(_0x7ba5b6,_0xd3ff1a)=>{_0x3ab401='paste'===_0xd3ff1a['method'];}),_0x1f6303['model']['on']('insertContent',(_0x42ac01,_0x2dc79e)=>{if(!_0x3ab401&&null===_0x3ded8b['getSelectedTableCells']())return;const [_0x472d33,_0x370156]=_0x2dc79e,_0x553b10=_0x2dc79e[_0x2dc79e['length']-0x1];_0x553b10&&_0x553b10['forceDefaultExecution']||_0x58a820['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0xe2f9d1,_0x44474d,_0x316165,_0x365b7f,_0x4acbc6){if(_0x44474d&&!_0x44474d['is']('documentSelection'))return!0x1;const _0x4db105=_0x4acbc6['getTableIfOnlyTableInContent'](_0xe2f9d1,_0x316165);if(!_0x4db105||!De(_0x4db105,void 0x0,_0x365b7f))return!0x1;const _0x39f074=_0x365b7f['getSelectionAffectedTableCells'](_0x316165['document']['selection']);if(!_0x39f074['length'])return!0x1;const _0x11c109=_0x39f074[0x0]['findAncestor']('table'),_0x1e9768=_0x365b7f['getRowIndexes'](_0x39f074),_0x1c7a55=_0x365b7f['getColumnIndexes'](_0x39f074),_0x10b6ea={'startRow':_0x1e9768['first'],'endRow':_0x1e9768['last'],'startColumn':_0x1c7a55['first'],'endColumn':_0x1c7a55['last']};return 0x1==_0x39f074['length']&&(_0x10b6ea['endRow']+=_0x365b7f['getRows'](_0x4db105)-0x1,_0x10b6ea['endColumn']+=_0x365b7f['getColumns'](_0x4db105)-0x1),De(_0x11c109,_0x10b6ea,_0x365b7f);}(_0x472d33,_0x370156,_0x1f6303['model'],_0x4390e1,_0x4c464b)&&(_0x42ac01['stop'](),_0x38690a={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x1f6303['model']['change'](()=>{_0x1f6303['model']['insertContent'](_0x2dc79e[0x0],_0x2dc79e[0x1],_0x2dc79e[0x2],{'forceDefaultExecution':!0x0});const _0x3fb1c3=_0x513c99(),{rowInsertionRanges:_0x4eb226,columnInsertionRanges:_0xadd4cc,insertionRanges:_0x5e11be,deletionRanges:_0x58d2a0,cells:_0x28a834}=_0x38690a;_0x4eb226['length']&&_0x58a820['markMultiRangeInsertion'](_0x4eb226,'tablePasteRow',{'tablePasteChainId':_0x3fb1c3}),_0xadd4cc['length']&&_0x58a820['markMultiRangeInsertion'](_0xadd4cc,'tablePasteColumn',{'tablePasteChainId':_0x3fb1c3}),_0x5e11be['length']&&(_0x58a820['markMultiRangeInsertion'](_0x5e11be,'tablePaste',{'tablePasteChainId':_0x3fb1c3,'skipNestingCheck':!0x0}),_0x5e11be['forEach'](_0x295d9e=>_0x295d9e['detach']?.())),_0x58d2a0['length']&&(_0x58a820['markMultiRangeDeletion'](_0x58d2a0,'tablePaste',{'tablePasteChainId':_0x3fb1c3,'skipNestingCheck':!0x0}),_0x58d2a0['forEach'](_0x26a714=>_0x26a714['detach']?.()));const _0x533bdf=_0x58a820['markMultiRangeBlockFormat'](_0x28a834['map'](({element:_0x51c7a8})=>_0x51c7a8),{'formatGroupId':_0x513c99()},[],'tablePasteCell',{'tablePasteChainId':_0x3fb1c3});if(_0x533bdf){const _0x5382a6=_0x533bdf['getMarkers'](),_0x3484aa=[];for(const {element:_0x1285b8,attributes:_0x2cd0d9}of _0x28a834){if(!_0x2cd0d9)continue;const _0x54aae1=_0x1f6303['model']['createRangeOn'](_0x1285b8),_0x379797=_0x5382a6['find'](_0x286a7b=>_0x286a7b['getRange']()['isEqual'](_0x54aae1));_0x379797&&_0x3484aa['push']([_0x379797['name'],_0x2cd0d9]);}_0x3484aa['length']&&_0x533bdf['setAttribute']('markerAttributes',Object['fromEntries'](_0x3484aa));}_0x38690a=null;}));},{'priority':_0x51747c['high']+0xa}),_0x3703df['on']('contentInsertion',()=>{_0x3ab401=!0x1;},{'priority':'lowest'}),_0x1f6303['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x4218dd,_0x121e86)=>{const [_0x589314,_0x5a0589,,_0x175850]=_0x121e86;if(!_0x38690a)return;_0x4218dd['stop']();const _0x21a9c9=_0x589314['cell'],_0x1da8e1=_0x5a0589,_0x2cd354=Ue(_0x21a9c9),_0x540042=Ue(_0x1da8e1);_0x4218dd['return']=_0x21a9c9;let _0x7fb1cc=null,_0x14c734=null;if(_0x540042||_0x2cd354){if(_0x2cd354&&!_0x540042){_0x175850['remove'](_0x21a9c9['getChild'](0x0));for(const _0x155aff of Array['from'](_0x1da8e1['getChildren']()))_0x175850['insert'](_0x155aff,_0x21a9c9,'end');const _0x3fa3c0=_0x38690a['rowInsertionIndexes']['includes'](_0x589314['row']),_0x5270f2=_0x38690a['columnInsertionIndexes']['includes'](_0x589314['column']);_0x3fa3c0||_0x5270f2||(_0x7fb1cc=_0x163541['fromRange'](_0x175850['createRangeIn'](_0x21a9c9)));}else _0x540042&&!_0x2cd354&&(_0x14c734=_0x175850['createRangeIn'](_0x21a9c9));}else{const _0x208e53=_0x175850['createElement']('tableCellSuggestion'),_0x3e6847=_0x175850['createElement']('tableCellSuggestion');_0x175850['wrap'](_0x175850['createRangeIn'](_0x21a9c9),_0x3e6847),_0x175850['insert'](_0x208e53,_0x21a9c9,0x0);for(const _0x1752c9 of Array['from'](_0x1da8e1['getChildren']()))_0x175850['insert'](_0x1752c9,_0x208e53,'end');_0x7fb1cc=_0x163541['fromRange'](_0x175850['createRangeOn'](_0x208e53)),_0x14c734=_0x163541['fromRange'](_0x175850['createRangeOn'](_0x3e6847));}const _0x1c8543=Array['from'](_0x1da8e1['getAttributes']())['filter'](([_0x7b045f])=>xe['includes'](_0x7b045f));_0x38690a['cells']['push']({'element':_0x21a9c9,'attributes':_0x1c8543['length']?Object['fromEntries'](_0x1c8543):null}),_0x7fb1cc&&_0x38690a['insertionRanges']['push'](_0x7fb1cc),_0x14c734&&_0x38690a['deletionRanges']['push'](_0x14c734);},{'priority':'high'}),_0x4390e1['on']('insertColumns',(_0x5d7089,_0x51a507)=>{const [_0x539da1,_0x357333={}]=_0x51a507;if(!_0x38690a)return;const _0x137c19=_0x357333['at']||0x0,_0x3681a8=_0x357333['columns']||0x1;_0x38690a['columnInsertionIndexes']=new Array(_0x3681a8)['fill'](_0x137c19)['map']((_0xe7d668,_0x2edc77)=>_0xe7d668+_0x2edc77);for(const {cell:_0x28cbfb}of _0x4390e1['createTableWalker'](_0x539da1,{'startColumn':_0x137c19,'endColumn':_0x137c19+_0x3681a8-0x1}))_0x38690a['columnInsertionRanges']['push'](_0x1f6303['model']['createRangeOn'](_0x28cbfb));},{'priority':'low'}),_0x4390e1['on']('insertRows',(_0xe00377,_0x129b77)=>{const [_0x42d682,_0x568395={}]=_0x129b77;if(!_0x38690a)return;const _0x38399d=_0x568395['at']||0x0,_0x2df045=_0x568395['rows']||0x1;_0x38690a['rowInsertionIndexes']=new Array(_0x2df045)['fill'](_0x38399d)['map']((_0x45e1dc,_0x4247c5)=>_0x45e1dc+_0x4247c5);for(const {cell:_0x50b201}of _0x4390e1['createTableWalker'](_0x42d682,{'startRow':_0x38399d,'endRow':_0x38399d+_0x2df045-0x1}))_0x38690a['rowInsertionRanges']['push'](_0x1f6303['model']['createRangeOn'](_0x50b201));},{'priority':'low'}),_0x58a820['descriptionFactory']['registerDescriptionCallback'](_0x2fbc8c=>{if(_0x2fbc8c['subType']&&_0x2fbc8c['subType']['startsWith']('tablePaste'))return _0x2fbc8c['previous']?{}:{'type':'insertion','content':c(_0x1f6303['locale'],'*Replace\x20table\x20cells*')};});const _0x581d1f=()=>!0x1;for(const _0x122235 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x58a820['_suggestionFactory']['registerCustomCallback']('insertion',_0x122235,'join',_0x581d1f),_0x58a820['_suggestionFactory']['registerCustomCallback']('deletion',_0x122235,'join',_0x581d1f),_0x58a820['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x122235,'join',_0x581d1f);_0x58a820['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x581d1f),_0x58a820['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x2ebd5e,_0x2b8a5f,_0x7b4f98)=>{const _0x3189fb=_0x2ebd5e['map'](_0x5085c2=>_0x5085c2['getContainedElement']())['filter'](_0x3b4c05=>_0x3b4c05),_0x5f3333=new Map(_0x3189fb['map'](_0x451e96=>[_0x451e96,null]));if(_0x38690a){for(const {element:_0x70d99d,attributes:_0x3067f0}of _0x38690a['cells'])_0x3067f0&&_0x5f3333['set'](_0x70d99d,_0x3067f0);}else{if(_0x7b4f98&&_0x7b4f98['markerAttributes'])for(const [_0x55665a,_0x357596]of Object['entries'](_0x7b4f98['markerAttributes'])){const _0x348e3f=_0x1f6303['model']['markers']['get'](_0x55665a),_0x478edd=_0x348e3f?_0x348e3f['getRange']()['getContainedElement']():null;_0x478edd&&_0x5f3333['set'](_0x478edd,_0x357596);}}_0x1f6303['model']['change'](_0x2c5152=>{for(const [_0x3daba6,_0x3097fd]of _0x5f3333)_0x2c5152['setAttributes']({...Oe,..._0x3097fd},_0x3daba6);});});const _0x4c6a61=(_0x363815,_0x3b1178)=>{_0x58a820['_suggestionFactory']['registerCustomCallback'](_0x363815,'tablePaste',_0x3b1178,(_0x58095c,_0x45a500,_0x325db9)=>{_0x1f6303['model']['change'](_0xc07718=>{const _0x52c430=[];for(const _0x2cf2cf of _0x58095c){const _0xa97ff5=_0x2cf2cf['start']['nodeAfter'];_0xa97ff5['is']('element','tableCellSuggestion')&&_0x52c430['push'](_0xa97ff5);}_0x58a820['_suggestionFactory']['getSuggestionCallback'](_0x363815,null,_0x3b1178)(_0x58095c,_0x45a500,_0x325db9);for(const _0x38c9ab of _0x52c430)'$graveyard'!=_0x38c9ab['root']['rootName']&&_0xc07718['unwrap'](_0x38c9ab);});});};_0x4c6a61('insertion','accept'),_0x4c6a61('insertion','discard'),_0x4c6a61('deletion','accept'),_0x4c6a61('deletion','discard'),_0x58a820['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x1552f5=>{const _0x552c48=_0x1552f5['map'](_0x5435e5=>_0x5435e5['getContainedElement']()),_0x20eb6f=_0x552c48[0x0]['findAncestor']('table'),{minRow:_0x33daab,maxRow:_0x1a221c}=_0x2c7891['_getCoordsForCells'](_0x552c48);_0x4390e1['removeRows'](_0x20eb6f,{'at':_0x33daab,'rows':_0x1a221c-_0x33daab+0x1});}),_0x58a820['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x17229e=>{const _0x5a835d=_0x17229e['map'](_0x302c77=>_0x302c77['getContainedElement']()),_0x5a1793=_0x5a835d[0x0]['findAncestor']('table'),{minColumn:_0x3337e4,maxColumn:_0x443ef1}=_0x2c7891['_getCoordsForCells'](_0x5a835d);_0x4390e1['removeColumns'](_0x5a1793,{'at':_0x3337e4,'columns':_0x443ef1-_0x3337e4+0x1});});const _0x5dd7a5=(_0x1a772b,_0x834b71)=>{if(!_0x834b71['subType']||!_0x834b71['subType']['startsWith']('tablePaste'))return;const _0x4dca1a=_0x834b71['attributes']['tablePasteChainId'],_0x319f21=_0x58a820['getSuggestions']()['filter'](_0x41b779=>_0x41b779['isInContent']&&_0x41b779['attributes']&&_0x41b779['attributes']['tablePasteChainId']==_0x4dca1a);_0x319f21['length']&&_0x834b71['getAllAdjacentSuggestions']()['length']!=_0x319f21['length']&&_0x319f21['reduce']((_0xe82a6e,_0x58d235)=>(_0xe82a6e['next']=_0x58d235,_0x58d235['previous']=_0xe82a6e,_0x58d235));};function _0x179441(_0x34313f,_0x2f2bec=!0x0){const {id:_0xbb6d57,authorId:_0xeebe86}=_0x58a820['_splitMarkerName'](_0x34313f['markerName']),_0x313dc7=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x433f88=_0x58a820['activeMarkers']['includes'](_0x34313f['markerName']);return _0x433f88&&_0x313dc7['push']('ck-suggestion-marker--active'),{'classes':_0x313dc7,'attributes':{'data-suggestion':_0xbb6d57,'data-author-id':_0xeebe86},'priority':_0x433f88&&_0x2f2bec?0xbc2:0xbb8};}_0x58a820['on']('suggestionLoaded',_0x5dd7a5,{'priority':'high'}),_0x58a820['on']('suggestionUnloaded',_0x5dd7a5,{'priority':'high'}),_0x1f6303['model']['document']['registerPostFixer'](()=>{let _0x55dcc8=!0x1;const _0x4bd0f6=Array['from'](_0x1f6303['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3fa79b,data:_0x281748}of _0x4bd0f6){const {group:_0x13a1df,type:_0x534219,id:_0x5454e6}=_0x58a820['_splitMarkerName'](_0x3fa79b);if('suggestion'!=_0x13a1df||'deletion'!=_0x534219||_0x281748['oldRange'])continue;if(!_0x58a820['hasSuggestion'](_0x5454e6))continue;const _0x33e88d=_0x58a820['getSuggestion'](_0x5454e6)['getRanges'](),_0x2c2751=_0x1f6303['plugins']['get']('Users')['me'];for(const _0x515907 of _0x58a820['getSuggestions']()){if(!_0x515907['isInContent']||_0x515907['author']!=_0x2c2751)continue;if('formatBlock'!=_0x515907['type']||'tablePasteCell'!=_0x515907['subType'])continue;if(_0x515907['getRanges']()['every'](_0x4aaf1a=>_0x33e88d['some'](_0x5ae431=>_0x5ae431['containsRange'](_0x4aaf1a,!0x0)))){for(const _0x4727ce of _0x515907['getAllAdjacentSuggestions']())_0x4727ce['isInContent']&&(_0x4727ce['discard'](),_0x55dcc8=!0x0);}}}return _0x55dcc8;}),_0x1f6303['model']['document']['registerPostFixer'](_0x5f014b=>{const _0x232467=_0x1f6303['commands']['get']('redo');if(!_0x232467||!_0x232467['_createdBatches']['has'](_0x5f014b['batch']))return!0x1;let _0x2f3995=!0x1;const _0x1194b9=_0x1f6303['plugins']['get']('Users')['me'],_0x41dd5c=_0x1f6303['model']['document']['differ']['getChanges'](),_0x58f954=Array['from'](_0x1f6303['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x5e0c21,data:_0x2ff675})=>{const {group:_0x31e711,subType:_0x3ddc9b,authorId:_0x3d44e7}=_0x58a820['_splitMarkerName'](_0x5e0c21);return'suggestion'==_0x31e711&&'tablePaste'==_0x3ddc9b&&_0x3d44e7==_0x1194b9['id']&&!_0x2ff675['oldRange'];});for(const _0x1fa089 of _0x41dd5c){if('insert'!=_0x1fa089['type']||'tableCellSuggestion'!=_0x1fa089['name']||0x1!=_0x1fa089['length'])continue;const _0x28278b=_0x5f014b['createRange'](_0x1fa089['position'],_0x1fa089['position']['getShiftedBy'](0x1));if(!_0x58f954['find'](({data:_0xfc9585})=>_0xfc9585['newRange']['isEqual'](_0x28278b))){for(const {name:_0x342151,data:_0x16ea7a}of _0x58f954)if(_0x28278b['containsRange'](_0x16ea7a['newRange'])){_0x5f014b['updateMarker'](_0x342151,{'range':_0x28278b}),_0x2f3995=!0x0;break;}}}return _0x2f3995;}),_0x1f6303['model']['document']['registerPostFixer'](_0x5665ea=>{let _0x28889e=!0x1;const _0x5d1cbb=_0x1f6303['plugins']['get']('Users')['me'],_0x635605=_0x58a820['getSuggestions']()['filter'](_0x4c4873=>_0x4c4873['isInContent']&&_0x4c4873['author']==_0x5d1cbb),_0x38b706=new Set(),_0x552a02=new Set();for(const _0x111afa of _0x635605)if('tablePaste'==_0x111afa['subType'])for(const _0x1d6c3e of _0x111afa['getMarkers']()){const _0x37ccec=_0x1d6c3e['getRange']()['getContainedElement']();if(_0x37ccec){if(_0x37ccec['is']('element','tableCellSuggestion')&&Ue(_0x37ccec)){_0x111afa['removeMarker'](_0x1d6c3e['name']),_0x38b706['add'](_0x37ccec),_0x28889e=!0x0;const _0x57e46e=_0x37ccec['nextSibling'],_0x2925eb=_0x37ccec['previousSibling'],_0x5d356d=_0x57e46e&&_0x57e46e['is']('element','tableCellSuggestion'),_0x149146=_0x2925eb&&_0x2925eb['is']('element','tableCellSuggestion');_0x5d356d&&!_0x38b706['has'](_0x57e46e)&&_0x552a02['add'](_0x57e46e),_0x149146&&!_0x38b706['has'](_0x2925eb)&&_0x552a02['add'](_0x2925eb);}else _0x37ccec['is']('element','paragraph')&&_0x37ccec['isEmpty']&&(_0x111afa['removeMarker'](_0x1d6c3e['name']),_0x28889e=!0x0);}}else{if('tablePasteCell'==_0x111afa['subType']){if(!_0x111afa['attributes']||!_0x111afa['attributes']['tablePasteChainId'])continue;const _0x21e9e8=_0x111afa['attributes']['markerAttributes'];if(_0x21e9e8&&Object['keys'](_0x21e9e8)['length'])continue;const _0x4bebf1=_0x111afa['attributes']['tablePasteChainId'];let _0x4a5338=!0x0,_0x4fb4d0=!0x0;for(const _0x3cdd39 of _0x635605)if(_0x3cdd39['subType']&&_0x3cdd39['subType']['startsWith']('tablePaste')){if(!_0x3cdd39['attributes']['tablePasteChainId']){_0x4fb4d0=!0x1;break;}if(_0x3cdd39['id']!=_0x111afa['id']&&_0x3cdd39['attributes']['tablePasteChainId']==_0x4bebf1){_0x4a5338=!0x1;break;}}_0x4fb4d0&&_0x4a5338&&(_0x111afa['removeMarkers'](),_0x28889e=!0x0);}}for(const _0x2176b5 of _0x38b706)_0x5665ea['remove'](_0x2176b5);for(const _0x516688 of _0x552a02)_0x5665ea['unwrap'](_0x516688);return _0x28889e;}),_0x1f6303['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x209411=>_0x179441(_0x209411),'converterPriority':'high'}),_0x1f6303['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x202cd7,_0x1c4137)=>_0x1c4137['options']['showSuggestionHighlights']?_0x179441(_0x202cd7,!0x1):null,'converterPriority':'high'});const _0x4b2e75=_0x1f6303['editing']['view'];this['listenTo'](_0x4b2e75['document'],'clipboardOutput',(_0x433596,_0x2e5989)=>{const _0x22d006=[];for(const _0x2b60e4 of _0x4b2e75['createRangeIn'](_0x2e5989['content'])['getItems']())_0x2b60e4['is']('element','suggestion-td')&&_0x22d006['push'](_0x2b60e4);_0x4b2e75['change'](_0x33faaf=>{for(const _0x4ffd4f of _0x22d006)_0x33faaf['move'](_0x33faaf['createRangeIn'](_0x4ffd4f),_0x33faaf['createPositionBefore'](_0x4ffd4f)),_0x33faaf['remove'](_0x4ffd4f);});});}}function Ue(_0x5db9eb){if(_0x5db9eb['isEmpty'])return!0x0;const _0x28e1bb=_0x5db9eb['getChild'](0x0);return _0x28e1bb['is']('element','paragraph')&&_0x28e1bb['isEmpty'];}function De(_0x5eadd2,_0x37249b={},_0x19e4e7){for(const {isAnchor:_0x2a2551,cellHeight:_0x126402,cellWidth:_0x266081}of _0x19e4e7['createTableWalker'](_0x5eadd2,{'includeAllSlots':!0x0,..._0x37249b}))if(!_0x2a2551||0x1!=_0x126402||0x1!=_0x266081)return!0x1;return!0x0;}class Bt extends _0x47cef7{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x28fca1=this['editor']['plugins']['get']('TrackChangesEditing');_0x28fca1['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x28fca1['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x28fca1['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x28fca1['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x28fca1['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x28fca1['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x236449,_0x49ddde){const _0x206bdc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1b9b76=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x36d603=_0x49ddde['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x332904=_0x1b9b76['getColumnGroupElement'](_0x36d603);let _0x514263=_0x332904?_0x1b9b76['getTableColumnsWidths'](_0x332904):null,_0x3491e9=_0x36d603['getAttribute']('tableWidth')||null;const _0x2effa8=_0x49ddde['tableWidth']||_0x3491e9,_0x9904be=_0x49ddde['columnWidths']||_0x514263,_0x15f9de=this['editor']['plugins']['get']('Users')['me'];for(const _0x4a0cd3 of _0x206bdc['getSuggestions']()){const _0x9b10ec=_0x4a0cd3['getContainedElement']();if('resizeTable'===_0x4a0cd3['subType']&&_0x9b10ec===_0x36d603){_0x4a0cd3['author']!==_0x15f9de&&_0x4a0cd3['discard']();const _0xd161b5=_0x4a0cd3['data']['commandParams'];_0x3491e9=_0xd161b5[0x0]['tableWidth'],_0x514263=_0xd161b5[0x0]['columnWidths'];break;}}_0x236449({'table':_0x36d603,'tableWidth':_0x2effa8,'columnWidths':_0x9904be}),_0x206bdc['markBlockFormat'](_0x36d603,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x3491e9,'columnWidths':_0x514263}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x3b97c2){if('formatBlock'!=_0x3b97c2['type']&&'formatInline'!=_0x3b97c2['type'])return;const {data:_0x2ff840}=_0x3b97c2;if(_0x2ff840&&'resizeTable'===_0x2ff840['formatGroupId']){const _0x1ba434='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x1ba434)};}}}class Ot extends _0x47cef7{['afterInit'](){const _0x3df584=this['editor'];_0x3df584['plugins']['has']('Template')&&_0x3df584['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Rt extends _0x47cef7{['afterInit'](){const _0x1f3fa6=this['editor'];if(!_0x1f3fa6['commands']['get']('insertTableOfContents'))return;_0x1f3fa6['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x69d51c=_0x1f3fa6['plugins']['get']('TrackChangesEditing'),_0xdd72c8=_0x1f3fa6['locale'];_0x69d51c['descriptionFactory']['registerElementLabel']('tableOfContents',_0x28cdc3=>c(_0xdd72c8,'ELEMENT_TABLE_OF_CONTENTS',_0x28cdc3));}}class xt extends _0x47cef7{['afterInit'](){const _0x4a4266=this['editor'];if(!_0x4a4266['plugins']['has']('Title'))return;const _0x55cee4=_0x4a4266['plugins']['get']('TrackChangesEditing');_0x55cee4['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x4a4266['locale'],'ELEMENT_TITLE')),_0x4a4266['model']['document']['registerPostFixer'](_0x44a8d4=>{let _0xa3bfa9=!0x1;const _0x2648fe=Array['from'](_0x4a4266['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x38375d,data:_0x5ea1ac}of _0x2648fe){const {group:_0xa688b6}=_0x55cee4['_splitMarkerName'](_0x38375d);if('suggestion'!==_0xa688b6||!_0x5ea1ac['newRange'])continue;const _0x82f306=_0x5ea1ac['newRange'],_0x2d5e54=_0x82f306['end']['nodeBefore'];if(!_0x2d5e54||!_0x2d5e54['is']('element','title-content'))continue;if(!_0x82f306['start']['isTouching'](_0x82f306['end']))continue;const _0x496430=_0x4a4266['model']['schema']['getNearestSelectionRange'](_0x82f306['end'],'forward');if(_0x496430&&_0x496430['isCollapsed']){const _0x54f6cb=_0x44a8d4['createRange'](_0x82f306['start'],_0x496430['start']);_0x54f6cb['isEqual'](_0x82f306)||(_0x44a8d4['updateMarker'](_0x38375d,{'range':_0x54f6cb}),_0xa3bfa9=!0x0);}_0xa3bfa9||(_0x44a8d4['removeMarker'](_0x38375d),_0xa3bfa9=!0x0);}return _0xa3bfa9;});}}class Tt extends _0x47cef7{['afterInit'](){const _0x46f686=this['editor'],_0x15f091=_0x46f686['plugins']['get']('TrackChangesEditing');_0x46f686['plugins']['has']('Uploadcare')&&(_0x15f091['enableCommand']('uploadcare'),_0x46f686['plugins']['has']('UploadcareImageEdit')&&(_0x15f091['enableCommand']('uploadcareImageEdit'),_0x15f091['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x15f091['registerBlockAttribute']('uploadcareImageId'),_0x15f091['descriptionFactory']['registerDescriptionCallback'](_0x35d8c1=>{if('attribute'!=_0x35d8c1['type'])return;const {data:_0x239160}=_0x35d8c1;return _0x239160&&'uploadcareImageId'==_0x239160['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x47cef7{['afterInit'](){const _0x574fe0=this['editor'],_0x3fdab3=_0x574fe0['plugins']['get']('TrackChangesEditing');_0x574fe0['plugins']['has']('UndoEditing')&&(_0x3fdab3['enableCommand']('undo'),_0x3fdab3['enableCommand']('redo'));}}class Ut extends _0x47cef7{static get['requires'](){return[Ct];}['afterInit'](){const _0x610a98=this['editor'];if(!_0x610a98['plugins']['has']('TableCaptionEditing'))return;_0x610a98['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x47cef7{['tableProperties'];['tableCellProperties'];constructor(_0xacc12b){super(_0xacc12b),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 _0x49c6cd=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x36032b of this['tableProperties'])_0x49c6cd['enableCommand'](_0x36032b,(_0x29c5a3,_0x1202eb)=>{const _0x49bfb8=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x36032b,[_0x49bfb8],this['tableProperties'],'tableProperties',_0x29c5a3,_0x1202eb);});_0x49c6cd['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x49c6cd['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x49c6cd['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x4c914e,_0x1c619b)=>this['handleDiscardAction'](this['tableProperties'],_0x4c914e,_0x1c619b)),_0x49c6cd['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x30b038 of this['tableCellProperties'])_0x49c6cd['enableCommand'](_0x30b038,(_0x5e1b76,_0x494dab)=>{const _0x2c6e64=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x30b038,_0x2c6e64,this['tableCellProperties'],'tableCellProperties',_0x5e1b76,_0x494dab);});_0x49c6cd['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x49c6cd['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x49c6cd['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x178b61,_0x4e2061)=>this['handleDiscardAction'](this['tableCellProperties'],_0x178b61,_0x4e2061)),_0x49c6cd['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x49c6cd['descriptionFactory']['registerDescriptionCallback'](_0x2ab176=>this['handleSuggestionDescription'](_0x2ab176));}['_handlePropertyChange'](_0x55a583,_0xf2f6fc,_0x117435,_0x3798f3,_0x57634c,_0xf2f5f7){const _0x39a7bd=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0xf2f5f7['batch'],()=>{for(const _0x44d076 of _0xf2f6fc){if(this['_getSuggestion'](_0x44d076,_0x3798f3))_0x57634c(_0xf2f5f7);else{const _0x5d64b1={};for(const _0x538ef8 of _0x117435){const _0x41dc1d=_0x44d076['getAttribute'](_0x538ef8);void 0x0!==_0x41dc1d&&(_0x5d64b1[_0x538ef8]=_0x41dc1d);}_0x57634c(_0xf2f5f7),_0x39a7bd['markBlockFormat'](_0x44d076,{'commandParams':[_0x5d64b1]},[],_0x3798f3);}}});}['handleDiscardAction'](_0x555d14,_0x1661a1,_0x4a70b8){const _0x7da37=_0x1661a1[0x0]['start']['nodeAfter'],_0x2303d6=_0x4a70b8['commandParams'][0x0];this['editor']['model']['change'](_0x3a0374=>{for(const _0x245763 of _0x555d14)void 0x0!==_0x2303d6[_0x245763]?_0x3a0374['setAttribute'](_0x245763,_0x2303d6[_0x245763],_0x7da37):_0x3a0374['removeAttribute'](_0x245763,_0x7da37);});}['handleSuggestionDescription'](_0x43b9a6){if(_0x43b9a6['data'])switch(_0x43b9a6['subType']){case'tableProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x4516dc,_0x24a2cb){const _0x4d4563=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x354a91 of _0x4d4563['getSuggestions']({'skipNotAttached':!0x0})){const _0x46b839=_0x354a91['getContainedElement']();if(_0x354a91['subType']===_0x24a2cb&&_0x46b839===_0x4516dc)return _0x354a91;}return null;}}const u='$elementName';class p extends _0x47cef7{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x277bbd,_0x3462d3,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,et,nt,it,st,ot,rt,ct,at,ut,ft,ht,gt,Q,kt,lt,W,Se,dt,pt,wt,bt,yt,jt,St,At,It,_t,vt,Ct,Nt,Dt,Ye,Ut,$t,Bt,Rt,Vt,Ot,xt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2aab24){super(_0x2aab24),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x4a6328,_0x142b67,_0x2def96,_0x64191b)=>{this['_model']['change'](()=>{for(const _0x20c1cd of[..._0x64191b,..._0x2def96])this['_model']['markers']['has'](_0x20c1cd)&&_0x2aab24['editing']['reconvertMarker'](_0x20c1cd);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Pt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x2aab24['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([u]),this['_inlineAttributeKeys']=new Set(),_0x2aab24['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x2aab24['config']['get']('trackChanges.trackFormatChanges'),_0x2aab24['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x2aab24['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x2aab24,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0xefb0b8=this['editor'],_0x2247cb=(_0xfc6886,_0x3e767e)=>{if('attribute'!=_0xfc6886)return'ck-suggestion-marker-'+_0xfc6886;const _0x354ff3=_0x3e767e['split']('|')[0x0];return this['_isBlockAttribute'](_0x354ff3)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0xefb0b8['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x1d24c3=>{const {id:_0x357930,authorId:_0x5de4c3,type:_0x22293f,subType:_0x2407ac}=this['_splitMarkerName'](_0x1d24c3['markerName']),_0x4e3651=['ck-suggestion-marker',_0x2247cb(_0x22293f,_0x2407ac)];let _0x35eda0=0xbb8;return this['activeMarkers']['includes'](_0x1d24c3['markerName'])&&(_0x4e3651['push']('ck-suggestion-marker--active'),_0x35eda0=0xbc2),'deletion'==_0x22293f&&(_0x35eda0+=0x5),{'classes':_0x4e3651,'attributes':{'data-suggestion':_0x357930,'data-author-id':_0x5de4c3},'priority':_0x35eda0};}}),_0xefb0b8['conversion']['for']('dataDowncast')['add'](_0xe4e538=>{_0xe4e538['on']('addMarker:suggestion',(_0x5ac533,_0x362dc8,_0x523eb6)=>{if(!_0x523eb6['options']['showSuggestionHighlights'])return;const _0x3f5e2a=_0x362dc8['item'];if(!_0x3f5e2a)return;const _0x2a5cef=_0x523eb6['mapper']['toViewElement'](_0x3f5e2a);_0xefb0b8['model']['schema']['isObject'](_0x3f5e2a)&&_0x2a5cef&&!_0x2a5cef['getCustomProperty']('widget')&&_0x2a5cef['is']('containerElement')&&_0x52e460(_0x2a5cef,_0x523eb6['writer']);},{'priority':'high'});}),_0xefb0b8['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x402dbf,_0x48fcc9)=>{if(!_0x48fcc9['options']['showSuggestionHighlights'])return null;const {type:_0x11a976,subType:_0x42e09}=this['_splitMarkerName'](_0x402dbf['markerName']);return{'classes':['ck-suggestion-marker',_0x2247cb(_0x11a976,_0x42e09)],'priority':0xbb8};}});const _0x31459e=({showActiveMarkers:_0x3170b6=!0x0,isAttributeSuggestion:_0x1cad84=!0x1}={})=>(_0x13890b,_0x2a8a29,_0x166b97)=>{if(!_0x2a8a29['item'])return;const {id:_0xb5a37b,authorId:_0x47331e}=this['_splitMarkerName'](_0x2a8a29['markerName']);if(_0x1cad84){const _0x46f1ea=this['_suggestions']['get'](_0xb5a37b),_0xc5109a=this['_getAttributeKey'](_0x46f1ea);if(!this['_isBlockAttribute'](_0xc5109a))return;}if(_0x2a8a29['item']['is']('selection'))return void _0x166b97['consumable']['consume'](_0x2a8a29['item'],_0x13890b['name']);const _0x4fa203=_0x166b97['mapper']['toViewElement'](_0x2a8a29['item']);if(_0x2a8a29['item']['is']('element')&&_0xefb0b8['model']['schema']['isBlock'](_0x2a8a29['item'])&&!_0x4fa203['getCustomProperty']('addHighlight')){_0x166b97['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x4fa203),_0x166b97['writer']['setAttribute']('data-suggestion',_0xb5a37b,_0x4fa203),_0x166b97['writer']['setAttribute']('data-author-id',_0x47331e,_0x4fa203),_0x166b97['mapper']['bindElementToMarker'](_0x4fa203,_0x2a8a29['markerName']),_0x3170b6&&(this['activeMarkers']['includes'](_0x2a8a29['markerName'])?_0x166b97['writer']['addClass']('ck-suggestion-marker--active',_0x4fa203):_0x166b97['writer']['removeClass']('ck-suggestion-marker--active',_0x4fa203));for(const _0x5dec88 of _0xefb0b8['model']['createRangeIn'](_0x2a8a29['item'])['getItems']())_0x166b97['consumable']['consume'](_0x5dec88,_0x13890b['name']);_0x166b97['consumable']['consume'](_0x2a8a29['item'],_0x13890b['name']);}};_0xefb0b8['conversion']['for']('dataDowncast')['add'](_0x29503e=>{_0x29503e['on']('addMarker:suggestion:formatBlock',(_0xd57fff,_0xa45bdb,_0x138ce9)=>{_0x138ce9['options']['showSuggestionHighlights']&&_0x31459e({'showActiveMarkers':!0x1})(_0xd57fff,_0xa45bdb,_0x138ce9);},{'priority':'highest'});}),_0xefb0b8['conversion']['for']('dataDowncast')['add'](_0x2e8b37=>{_0x2e8b37['on']('addMarker:suggestion:attribute',(_0xc63182,_0x3664e1,_0x169bdf)=>{_0x169bdf['options']['showSuggestionHighlights']&&_0x31459e({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0xc63182,_0x3664e1,_0x169bdf);},{'priority':'highest'});}),_0xefb0b8['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x1b371e,_0x161bc0)=>_0x161bc0['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x1b371e['substr'](0xb)}}),_0xefb0b8['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5313a8,{writer:_0x1c9371})=>{let _0x14d3dc='suggestion:'+_0x5313a8['getAttribute']('suggestion-type')+':'+_0x5313a8['getAttribute']('id');return _0x5313a8['getAttribute']('marker-count')&&(_0x14d3dc+=':'+_0x5313a8['getAttribute']('marker-count')),_0x1c9371['createElement']('$marker',{'data-name':_0x14d3dc});}}),_0xefb0b8['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0xefb0b8['conversion']['for']('editingDowncast')['add'](_0x1e2ec4=>{_0x1e2ec4['on']('addMarker:suggestion:formatBlock',_0x31459e(),{'priority':'high'});}),_0xefb0b8['conversion']['for']('editingDowncast')['add'](_0x45bf61=>{_0x45bf61['on']('addMarker:suggestion:attribute',_0x31459e({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0xefb0b8['conversion']['for']('editingDowncast')['add'](_0x16cffe=>{_0x16cffe['on']('removeMarker:suggestion:formatBlock',(_0x109c3b,_0x22ed14,_0x196470)=>{const _0x328f1b=_0x196470['mapper']['markerNameToElements'](_0x22ed14['markerName']);if(_0x328f1b){for(const _0x2fc5c6 of _0x328f1b)_0x2fc5c6['getCustomProperty']('addHighlight')||(_0x196470['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2fc5c6),_0x196470['writer']['removeAttribute']('data-suggestion',_0x2fc5c6),_0x196470['writer']['removeAttribute']('data-author-id',_0x2fc5c6),_0x196470['mapper']['unbindElementFromMarkerName'](_0x2fc5c6,_0x22ed14['markerName']));}},{'priority':'high'});}),_0xefb0b8['conversion']['for']('editingDowncast')['add'](_0x1564be=>{_0x1564be['on']('removeMarker:suggestion:attribute',(_0x449079,_0x34254f,_0x188b5f)=>{const _0x50a8f5=_0x188b5f['mapper']['markerNameToElements'](_0x34254f['markerName']);if(!_0x50a8f5)return;const {id:_0xe0efba}=this['_splitMarkerName'](_0x34254f['markerName']),_0x31c2eb=this['_suggestions']['get'](_0xe0efba),_0x366ab8=this['_getAttributeKey'](_0x31c2eb);if(this['_isBlockAttribute'](_0x366ab8)){for(const _0xd17844 of _0x50a8f5)_0xd17844['getCustomProperty']('addHighlight')||(_0x188b5f['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0xd17844),_0x188b5f['writer']['removeAttribute']('data-suggestion',_0xd17844),_0x188b5f['writer']['removeAttribute']('data-author-id',_0xd17844),_0x188b5f['mapper']['unbindElementFromMarkerName'](_0xd17844,_0x34254f['markerName']));}},{'priority':'high'});}),_0xefb0b8['model']['document']['registerPostFixer'](_0xc5ce6=>{let _0x44cfe3=!0x1;const _0xfd390d=Array['from'](_0xefb0b8['model']['document']['differ']['getChangedMarkers']()),_0x5ebb5a=new Set();for(const {name:_0xd04825,data:_0x1d0e58}of _0xfd390d){const {group:_0x1112d8,type:_0x3f718e,subType:_0x22618f,id:_0x5a0da4}=this['_splitMarkerName'](_0xd04825);if('suggestion'!==_0x1112d8)continue;const _0x40bfae=this['_suggestions']['get'](_0x5a0da4);if(null!=_0x1d0e58['newRange']){'formatInline'==_0x3f718e&&(_0x44cfe3=_0x44cfe3||Jt(_0x1d0e58['newRange'],_0xd04825,_0xc5ce6,_0xefb0b8['model']['schema']));const _0x102d3d='attribute'==_0x3f718e&&this['_isBlockAttribute'](_0x22618f['split']('|')[0x0]);if(_0x1d0e58['newRange']['isCollapsed']||'$graveyard'==_0x1d0e58['newRange']['root']['rootName']||'formatBlock'==_0x3f718e&&!Ht(_0x1d0e58['newRange'])||_0x102d3d&&!Ht(_0x1d0e58['newRange'])||'deletion'==_0x3f718e&&!(!Lt(_0x32de1a=_0x1d0e58['newRange'])&&!function(_0x39107b){return _0x39107b['start']['parent']==_0x39107b['end']['nodeBefore']&&_0x39107b['start']['isAtEnd'];}(_0x32de1a)))_0xc5ce6['removeMarker'](_0xd04825),_0x44cfe3=!0x0;else{if(!_0x40bfae||!_0x40bfae['isInContent'])continue;if(_0x1d0e58['newRange']&&_0x1d0e58['oldRange']&&_0x1d0e58['newRange']['isEqual'](_0x1d0e58['oldRange']))continue;_0x5ebb5a['add'](_0x40bfae);}}}var _0x32de1a;return _0x5ebb5a['size']>0x0&&(_0x44cfe3=!!this['_joinWithAdjacentSuggestions'](_0x5ebb5a)||_0x44cfe3),_0x44cfe3;}),_0xefb0b8['model']['document']['registerPostFixer'](_0x2af08a=>{let _0xf41f7d=!0x1;for(const _0x5e42a2 of _0xefb0b8['model']['document']['differ']['getChanges']())if('insert'==_0x5e42a2['type'])for(const _0x236dc7 of this['_suggestions']['values']()){if(_0x236dc7['isMultiRange']||!_0x236dc7['isInContent'])continue;const _0x1c9487='formatBlock'==_0x236dc7['type'],_0x34541c=this['_getAttributeKey'](_0x236dc7),_0x2a41bc=_0x34541c&&this['_isBlockAttribute'](_0x34541c);if(!_0x1c9487&&!_0x2a41bc)continue;const _0x481bcc=_0x236dc7['getFirstRange']();if(_0x481bcc['start']['parent']!=_0x481bcc['end']['parent']&&!_0x481bcc['end']['isAtEnd']){const _0x52bf4a=_0xefb0b8['model']['createPositionAt'](_0x481bcc['start']['nodeAfter'],'end'),_0x814885=_0xefb0b8['model']['createRange'](_0x481bcc['start'],_0x52bf4a);_0x2af08a['updateMarker'](_0x236dc7['getFirstMarker'](),{'range':_0x814885}),_0xf41f7d=!0x0;}}return _0xf41f7d;}),_0xefb0b8['model']['document']['registerPostFixer'](_0x369a8c=>this['_processAttributeChanges'](_0x369a8c)),_0xefb0b8['model']['document']['registerPostFixer'](_0x1bdf69=>!_0x1bdf69['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x1bdf69)),_0xefb0b8['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0xefb0b8['model']['document']['on']('change:data',(_0x383f7c,_0x18ffb6)=>{if(!_0x18ffb6['isLocal']||_0x18ffb6['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x5095bd=_0xefb0b8['model']['document']['differ']['getChanges']();if(0x0==_0x5095bd['length'])return;const _0x3f2362=[],_0x12b5f8=_0x5095bd['filter'](_0x43b31d=>'attribute'==_0x43b31d['type']),_0x207931=_0x5095bd['filter'](_0x25e31c=>'insert'==_0x25e31c['type']&&'$text'!=_0x25e31c['name']);for(const _0x565dd5 of _0x12b5f8)this['_isRegisteredAttribute'](_0x565dd5['attributeKey'])&&_0x3f2362['push']({'key':_0x565dd5['attributeKey'],'newValue':_0x565dd5['attributeNewValue'],'oldValue':_0x565dd5['attributeOldValue'],'range':qt(_0x565dd5['range'],_0xefb0b8['model'])});for(const _0x4249dd of _0x207931){if('rename'!=_0x4249dd['action']&&'refresh'!=_0x4249dd['action'])continue;const _0x1919de=zt(_0x4249dd['position']['nodeAfter'],_0xefb0b8['model']),_0x1d7a41=_0x4249dd['before'];'rename'==_0x4249dd['action']&&_0x3f2362['push']({'key':u,'newValue':_0x4249dd['name'],'oldValue':_0x1d7a41['name'],'range':_0x1919de});for(const [_0x591de4,_0x37b4be]of _0x1d7a41['attributes']){if(!this['_isRegisteredAttribute'](_0x591de4))continue;const _0x457e82=_0x4249dd['attributes']['get'](_0x591de4);_0x37b4be!==_0x457e82&&_0x3f2362['push']({'key':_0x591de4,'newValue':_0x457e82,'oldValue':_0x37b4be,'range':_0x1919de});}for(const [_0x2daca2,_0x24f253]of _0x4249dd['attributes'])this['_isRegisteredAttribute'](_0x2daca2)&&(_0x1d7a41['attributes']['has'](_0x2daca2)||_0x3f2362['push']({'key':_0x2daca2,'newValue':_0x24f253,'oldValue':null,'range':_0x1919de}));}0x0!=_0x3f2362['length']&&_0xefb0b8['model']['enqueueChange'](_0x18ffb6,_0x148616=>{const _0x275ddf=_0x513c99();for(const {range:_0xe480c2,key:_0x39a032,oldValue:_0x1fdbe7,newValue:_0x188fc6}of _0x3f2362)this['markAttributeChange'](_0xe480c2,_0x39a032,_0x1fdbe7,_0x188fc6,{'groupId':_0x275ddf});this['_reduceExistingSuggestions'](_0x148616,_0x3f2362);});},{'priority':'lowest'}),_0xefb0b8['model']['markers']['on']('update:suggestion',(_0x9adcb7,_0x56098e,_0x16e996)=>{if(null==_0x16e996){const {id:_0x5c45f3}=this['_splitMarkerName'](_0x56098e['name']),_0x440d98=this['_suggestions']['get'](_0x5c45f3);_0x440d98&&_0x440d98['addMarkerName'](_0x56098e['name']);}}),_0xefb0b8['model']['document']['on']('change:data',()=>{const _0x5c9d5c=Array['from'](_0xefb0b8['model']['document']['differ']['getChangedMarkers']())['filter'](_0x34dc28=>'suggestion'===this['_splitMarkerName'](_0x34dc28['name'])['group']);if(0x0===_0x5c9d5c['length'])return;_0x5c9d5c['sort']((_0x56eb60,_0x4ae3e8)=>{const _0x17a007=_0x56eb60['data']['oldRange'],_0x270ce7=_0x4ae3e8['data']['oldRange'];return null===_0x17a007&&null===_0x270ce7?0x0:null===_0x17a007&&null!==_0x270ce7?-0x1:null!==_0x17a007&&null===_0x270ce7?0x1:_0x17a007['start']['isBefore'](_0x270ce7['start'])?-0x1:0x1;});const _0x2a7dc3=new Set(),_0x12430f=new Set();for(const {name:_0x1682a9,data:_0x34dae3}of _0x5c9d5c){const {id:_0x93c14d}=this['_splitMarkerName'](_0x1682a9);if(null===_0x34dae3['oldRange']){const _0x35ac54=this['_handleNewSuggestionMarker'](_0x1682a9);_0x12430f['add'](_0x35ac54);}else{const _0x598e63=this['_suggestions']['get'](_0x93c14d);null!==_0x34dae3['newRange']||_0x598e63['isInContent']?(_0x2a7dc3['add'](_0x598e63['head']),_0x12430f['add'](_0x598e63)):this['_removeSuggestion'](_0x598e63);}}_0x12430f['size']>0x0&&this['_refreshSuggestionsChain'](_0x12430f);for(const _0x4058d6 of _0x2a7dc3)this['fire']('suggestionChanged',_0x4058d6);}),_0xefb0b8['model']['on']('applyOperation',(_0xedbde2,_0x10f009)=>{const _0x2ce6f9=_0x10f009[0x0];if(!this['_suggestions']['size'])return;if(!_0x2ce6f9['isDocumentOperation'])return;if(_0x2ce6f9['batch']['isUndo']||!_0x2ce6f9['batch']['isLocal'])return;let _0x17ae4b,_0x839ae5;switch(_0x2ce6f9['type']){case'insert':_0x17ae4b=_0xefb0b8['model']['createPositionAt'](_0x2ce6f9['position']),_0x839ae5=_0x17ae4b['getShiftedBy'](_0x2ce6f9['howMany']);break;case'split':_0x17ae4b=_0xefb0b8['model']['createPositionAt'](_0x2ce6f9['splitPosition']),_0x839ae5=_0xefb0b8['model']['createPositionAt'](_0x2ce6f9['moveTargetPosition']);break;case'move':_0x17ae4b=_0xefb0b8['model']['createPositionAt'](_0x2ce6f9['targetPosition']),_0x839ae5=_0x17ae4b['getShiftedBy'](_0x2ce6f9['howMany']);break;default:return;}const _0x4b8270=_0xefb0b8['model']['createRange'](_0x17ae4b,_0x839ae5);_0xefb0b8['model']['change'](()=>{for(const {suggestion:_0x2402f0,meta:_0x5a5dfb}of this['_findSuggestions'](_0x4b8270)){if(_0x2402f0['isMultiRange'])continue;if('formatInline'==_0x2402f0['type'])continue;const _0x688533=this['_getAttributeKey'](_0x2402f0);if(_0x688533&&this['_isBlockAttribute'](_0x688533)&&'split'!=_0x2ce6f9['type'])continue;const _0x21648d=_0x2402f0['data']&&_0x2402f0['data']['multipleBlocks'];('formatBlock'!=_0x2402f0['type']||'split'==_0x2ce6f9['type']&&!_0x21648d)&&(_0x5a5dfb['containsRangeInObject']||'insertion'==_0x2402f0['type']&&_0x5a5dfb['isOwn']||_0x2402f0['getFirstRange']()['containsRange'](_0x4b8270)&&this['_breakSuggestionMarker'](_0x2402f0,_0x17ae4b,_0x839ae5));}});},{'priority':'lowest'}),_0xefb0b8['model']['on']('deleteContent',(_0x1156d8,_0x332343)=>{const _0xf503aa=_0x332343[0x0],_0xab0845=_0x332343[0x1];if(_0xab0845&&_0xab0845['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0xf503aa['isCollapsed'])return;const _0x5eeda6=_0xefb0b8['model']['schema'],{start:_0x2d033e,end:_0x3d2eba}=_0xf503aa['getFirstRange'](),_0x87c016=_0x2d033e['nodeAfter']&&_0x5eeda6['isLimit'](_0x2d033e['nodeAfter'])?null:_0x5eeda6['getNearestSelectionRange'](_0x2d033e,'forward'),_0x48da9b=_0x3d2eba['nodeBefore']&&_0x5eeda6['isLimit'](_0x3d2eba['nodeBefore'])?null:_0x5eeda6['getNearestSelectionRange'](_0x3d2eba,'backward'),_0x4481f3=_0xefb0b8['model']['createRange'](_0x87c016?_0x87c016['start']:_0x2d033e,_0x48da9b?_0x48da9b['end']:_0x3d2eba);_0xefb0b8['model']['change'](_0x4e921f=>{this['markDeletion'](_0x4481f3);const _0x35bbc7=_0xefb0b8['model']['schema']['getNearestSelectionRange'](_0x4481f3['start']);_0xf503aa['is']('documentSelection')?_0x4e921f['setSelection'](_0x35bbc7):_0xf503aa['setTo'](_0x35bbc7);}),_0x1156d8['stop']();},{'priority':_0x51747c['normal']+0xa}),_0xefb0b8['model']['on']('insertContent',(_0xe4e79,_0xc0c3b2)=>{const _0x1e48a5=_0xc0c3b2[_0xc0c3b2['length']-0x1];_0x1e48a5&&_0x1e48a5['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0xefb0b8['model']['change'](()=>{let _0x4c13d5=_0xefb0b8['model']['insertContent'](_0xc0c3b2[0x0],_0xc0c3b2[0x1],_0xc0c3b2[0x2],{'forceDefaultExecution':!0x0});if(!_0x4c13d5)return;_0xe4e79['return']=_0x4c13d5['clone']();const _0x92e7a6=_0x4c13d5['end']['nodeBefore'],_0x2f6c53=_0xefb0b8['model']['schema'];_0x92e7a6&&_0x2f6c53['isBlock'](_0x92e7a6)&&!_0x2f6c53['isObject'](_0x92e7a6)&&(_0x4c13d5=_0xefb0b8['model']['createRange'](_0x4c13d5['start'],_0xefb0b8['model']['createPositionAt'](_0x92e7a6,'end'))),this['markInsertion'](_0x4c13d5);}),_0xe4e79['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x8b2529=new O(_0xefb0b8,this['_suggestions']);_0xefb0b8['commands']['add']('acceptSuggestion',_0x8b2529),this['enableCommand']('acceptSuggestion');const _0x5337e7=new R(_0xefb0b8,this['_suggestions']);_0xefb0b8['commands']['add']('discardSuggestion',_0x5337e7),this['enableCommand']('discardSuggestion'),_0xefb0b8['commands']['add']('acceptAllSuggestions',new x(_0xefb0b8,_0x8b2529,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0xefb0b8['commands']['add']('discardAllSuggestions',new x(_0xefb0b8,_0x5337e7,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0xefb0b8['commands']['add']('acceptSelectedSuggestions',new E(_0xefb0b8,_0x8b2529,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0xefb0b8['commands']['add']('discardSelectedSuggestions',new E(_0xefb0b8,_0x5337e7,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x15fab2=_0xefb0b8['plugins']['get']('CommentsRepository');this['listenTo'](_0x15fab2,'addComment',(_0x2f1283,{threadId:_0x4dff31})=>{const _0x1cdd9a=this['_suggestions']['get'](_0x4dff31);_0x1cdd9a&&_0x1cdd9a['commentThread']&&0x1===_0x1cdd9a['commentThread']['length']&&this['_updateSuggestionData'](_0x4dff31,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x15fab2,'removeComment',(_0x35d7d3,{threadId:_0x483774})=>{const _0x146e44=this['_suggestions']['get'](_0x483774);_0x146e44&&_0x146e44['commentThread']&&!_0x146e44['commentThread']['length']&&this['_updateSuggestionData'](_0x483774,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x430e3f){const _0x17d336=_0x29c120([0x57,0x6a,0x5a,0x51,0x35,0x47,0x62,0x7a,0x46,0x54,0x48,0x39,0x68,0x6d,0x6c,0x30,0x6f,0x53,0x41,0x52,0x55,0x58,0x32,0x4c,0x42,0x4b,0x4f,0x75,0x69,0x31,0x74,0x77,0x63,0x50,0x49,0x34,0x6e,0x79,0x78,0x43,0x76,0x73,0x44,0x61,0x64,0x66,0x4a,0x45,0x36,0x56,0x38,0x33,0x59,0x4d,0x67,0x6b,0x72,0x37,0x4e,0x70,0x71,0x65]),_0x4b7b7c=0x50cd9d8c,_0x3e4fe1=0x50caf8bc^_0x4b7b7c,_0x1ce4d6=window[_0x29c120([0x44,0x61,0x74,0x65])][_0x29c120([0x6e,0x6f,0x77])](),_0x33e9a6=_0x430e3f[_0x29c120([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x741a76=new window[(_0x29c120([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1bb8c0=>{_0x33e9a6[_0x29c120([0x6f,0x6e,0x63,0x65])](_0x29c120([0x72,0x65,0x61,0x64,0x79]),_0x1bb8c0);}),_0x3a004b={[_0x29c120([0x6b,0x74,0x79])]:_0x29c120([0x45,0x43]),[_0x29c120([0x75,0x73,0x65])]:_0x29c120([0x73,0x69,0x67]),[_0x29c120([0x63,0x72,0x76])]:_0x29c120([0x50,0x2d,0x32,0x35,0x36]),[_0x29c120([0x78])]:_0x29c120([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]),[_0x29c120([0x79])]:_0x29c120([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]),[_0x29c120([0x61,0x6c,0x67])]:_0x29c120([0x45,0x53,0x32,0x35,0x36])},_0x4112f3=_0x33e9a6[_0x29c120([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x29c120([0x67,0x65,0x74])](_0x29c120([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x354862(){let _0x34bc30,_0x18d5ba=null,_0x266d06=null;try{if(_0x4112f3==_0x29c120([0x47,0x50,0x4c]))return _0x29c120([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x34bc30=_0x1d564d(),!_0x34bc30)return _0x29c120([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x34bc30[_0x29c120([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x266d06=_0x32a3cb(_0x34bc30[_0x29c120([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x34bc30[_0x29c120([0x6a,0x74,0x69])])),await _0x433e7f()?_0x415e41()?_0x40d012()?_0x29c120([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3f1047()?(_0x34bc30[_0x29c120([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x29c120([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x18d5ba=_0x16cff2(_0x29c120([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x34bc30[_0x29c120([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x29c120([0x74,0x72,0x69,0x61,0x6c])&&(_0x18d5ba=_0x16cff2(_0x29c120([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x749ee6()):_0x29c120([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x29c120([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x29c120([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x41d576){return _0x29c120([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x40d012(){const _0x1a4394=[_0x29c120([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x29c120([0x74,0x72,0x69,0x61,0x6c])][_0x29c120([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x34bc30[_0x29c120([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1ce4d6/0x3e8:0xe10*_0x3e4fe1;return _0x34bc30[_0x29c120([0x65,0x78,0x70])]<_0x1a4394;}function _0x415e41(){const _0x4c61d0=_0x34bc30[_0x29c120([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x4c61d0)return!0x1;if(_0x4c61d0[_0x29c120([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29c120([0x2a])))return!0x0;if(_0x4c61d0[_0x29c120([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29c120([0x54,0x43])))return!0x0;if(_0x4c61d0[_0x29c120([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29c120([0x52,0x54,0x43]))){if(_0x2d8995())return!0x0;if(_0x5357ea()||_0x300a1c())return!0x0;}return!0x1;}function _0x3f1047(){const _0x1278c2=_0x34bc30[_0x29c120([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1278c2||0x0==_0x1278c2[_0x29c120([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3b2042}=new URL(window[_0x29c120([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1278c2[_0x29c120([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b2042))return!0x0;const _0x2e4b7d=_0x3b2042[_0x29c120([0x73,0x70,0x6c,0x69,0x74])](_0x29c120([0x2e]));return _0x1278c2[_0x29c120([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x29d4b5=>_0x29d4b5[_0x29c120([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29c120([0x2a])))[_0x29c120([0x6d,0x61,0x70])](_0x3839ea=>_0x3839ea[_0x29c120([0x73,0x70,0x6c,0x69,0x74])](_0x29c120([0x2e])))[_0x29c120([0x73,0x6f,0x6d,0x65])](_0x4d6a48=>_0x2e4b7d[_0x29c120([0x65,0x76,0x65,0x72,0x79])]((_0x3665e9,_0x4bbea9)=>_0x4d6a48[_0x4bbea9]===_0x3665e9||_0x4d6a48[_0x4bbea9]===_0x29c120([0x2a])));}function _0x749ee6(){return _0x18d5ba&&_0x266d06?new window[(_0x29c120([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x233a0d,_0x144306)=>{_0x18d5ba[_0x29c120([0x74,0x68,0x65,0x6e])](_0x233a0d,_0x144306),_0x266d06[_0x29c120([0x74,0x68,0x65,0x6e])](_0x1cd748=>{_0x1cd748!=_0x29c120([0x56,0x61,0x6c,0x69,0x64])&&_0x233a0d(_0x1cd748);},_0x144306);}):_0x18d5ba||_0x266d06||_0x29c120([0x56,0x61,0x6c,0x69,0x64]);}}function _0x32a3cb(_0x474ac2,_0xf79c99){return new window[(_0x29c120([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x17867a=>{if(_0x17f32d())return _0x17867a(_0x29c120([0x56,0x61,0x6c,0x69,0x64]));_0x5b70ef(),_0x33e9a6[_0x29c120([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x29c120([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x31e567=!0x1;const _0x433206=_0x513c99();function _0x4f927c(_0x4ca429){return!!_0x4ca429&&(typeof _0x4ca429===_0x29c120([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4ca429===_0x29c120([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4ca429[_0x29c120([0x74,0x68,0x65,0x6e])]===_0x29c120([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4ca429[_0x29c120([0x63,0x61,0x74,0x63,0x68])]===_0x29c120([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5f59ca(_0x456980){_0x2adb40(_0x456980)[_0x29c120([0x74,0x68,0x65,0x6e])](_0x3156e5=>{if(!_0x3156e5||_0x3156e5[_0x29c120([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x29c120([0x6f,0x6b]))return _0x29c120([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2fa669(_0x3eea85(_0x433206+_0xf79c99))!=_0x3156e5[_0x29c120([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x29c120([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x29c120([0x56,0x61,0x6c,0x69,0x64]);})[_0x29c120([0x74,0x68,0x65,0x6e])](_0x458761=>(_0xb11e9d(),_0x458761),()=>{const _0x52a364=_0x308552();return null==_0x52a364?(_0xb11e9d(),_0x29c120([0x56,0x61,0x6c,0x69,0x64])):_0x29c120(_0x1ce4d6-_0x52a364>(0x74c1198c^_0x4b7b7c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x29c120([0x74,0x68,0x65,0x6e])](_0x17867a)[_0x29c120([0x63,0x61,0x74,0x63,0x68])](()=>{_0x17867a(_0x29c120([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x236993=0x50fb730c^_0x4b7b7c;function _0xb11e9d(){const _0x8504ac=_0x29c120([0x6c,0x6c,0x63,0x74,0x2d])+_0x2fa669(_0x3eea85(_0x474ac2)),_0x231233=_0x1ee8a9(_0x2fa669(window[_0x29c120([0x4d,0x61,0x74,0x68])][_0x29c120([0x63,0x65,0x69,0x6c])](_0x1ce4d6/_0x236993)));window[_0x29c120([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x29c120([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x8504ac,_0x231233);}function _0x308552(){const _0x1b7737=_0x29c120([0x6c,0x6c,0x63,0x74,0x2d])+_0x2fa669(_0x3eea85(_0x474ac2)),_0x327319=window[_0x29c120([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x29c120([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1b7737);return _0x327319?window[_0x29c120([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1ee8a9(_0x327319),0x10)*_0x236993:null;}function _0x2adb40(_0x3084c7){return new window[(_0x29c120([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xb774c7,_0x47b57b)=>{_0x3084c7[_0x29c120([0x74,0x68,0x65,0x6e])](_0xb774c7,_0x47b57b),window[_0x29c120([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x47b57b,0x50cc494c^_0x4b7b7c);});}}_0x33e9a6[_0x29c120([0x6f,0x6e])](_0x29c120([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4ef76f,_0x1e9d86)=>{if(_0x1e9d86[0x0]!=_0x474ac2)return _0x17867a(_0x29c120([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1e9d86[0x1]={..._0x1e9d86[0x1],[_0x29c120([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x433206};},{[_0x29c120([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x29c120([0x68,0x69,0x67,0x68])}),_0x33e9a6[_0x29c120([0x6f,0x6e])](_0x29c120([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xe4220f=>{_0x4f927c(_0xe4220f[_0x29c120([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x31e567=!0x0,_0x5f59ca(_0xe4220f[_0x29c120([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x29c120([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x29c120([0x6c,0x6f,0x77])}),_0x741a76[_0x29c120([0x74,0x68,0x65,0x6e])](()=>{_0x31e567||_0x17867a(_0x29c120([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x17f32d(){return _0x33e9a6[_0x29c120([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x29c120([0x76,0x69,0x65,0x77])][_0x29c120([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x29c120([0x61,0x75,0x74,0x6f]);}function _0x5b70ef(){_0x33e9a6[_0x29c120([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x29c120([0x76,0x69,0x65,0x77])][_0x29c120([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x29c120([0x61,0x75,0x74,0x6f]);}}function _0x16cff2(_0x13df5e){const _0x10eaea=[new window[(_0x29c120([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3af129=>setTimeout(_0x3af129,0x50c4a340^_0x4b7b7c)),_0x741a76[_0x29c120([0x74,0x68,0x65,0x6e])](()=>new window[(_0x29c120([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x48a39d=>{let _0x2c512d=0x0;_0x33e9a6[_0x29c120([0x6d,0x6f,0x64,0x65,0x6c])][_0x29c120([0x6f,0x6e])](_0x29c120([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3ac4e9,_0x41085c)=>{_0x41085c[0x0][_0x29c120([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2c512d++,_0x2c512d==(0x50cd9c74^_0x4b7b7c)&&(_0x48a39d(),_0x3ac4e9[_0x29c120([0x6f,0x66,0x66])]());});}))];return window[_0x29c120([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x29c120([0x72,0x61,0x63,0x65])](_0x10eaea)[_0x29c120([0x74,0x68,0x65,0x6e])](()=>_0x13df5e);}async function _0x13d446(){await _0x741a76,_0x33e9a6[_0x29c120([0x6d,0x6f,0x64,0x65,0x6c])][_0x29c120([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x482a1b,_0x33e9a6[_0x29c120([0x6d,0x6f,0x64,0x65,0x6c])][_0x29c120([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x482a1b,_0x33e9a6[_0x29c120([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x29c120([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2d8995(){return _0x3e39be(_0x29c120([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x4c05fa(_0x29c120([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x29c120([0x73,0x74,0x61,0x74,0x65])]==_0x29c120([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x5357ea(){return _0x3e39be(_0x29c120([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 _0x300a1c(){return _0x3e39be(_0x29c120([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x1c7fd3(_0x146b0e){const _0x535b0c=_0x48616a();_0x33e9a6[_0x535b0c]=_0x29c120([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x146b0e,_0x146b0e!=_0x29c120([0x56,0x61,0x6c,0x69,0x64])&&_0x13d446();}function _0x48616a(){const _0x2d1d30=window[_0x29c120([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x29c120([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x29c120([0x6e,0x6f,0x77])]())[_0x29c120([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x29c120([0x2e]),'');let _0x19a2d3=_0x29c120([0x57]);for(let _0x549400=0x0;_0x549400<_0x2d1d30[_0x29c120([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x549400+=0x2){let _0x5f48ee=window[_0x29c120([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2d1d30[_0x29c120([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x549400,_0x549400+0x2));_0x5f48ee>=_0x17d336[_0x29c120([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5f48ee-=_0x17d336[_0x29c120([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x19a2d3+=_0x17d336[_0x5f48ee];}return _0x19a2d3;}function _0x1d564d(){const _0x42b0ef=_0x4112f3[_0x29c120([0x73,0x70,0x6c,0x69,0x74])](_0x29c120([0x2e]));if(0x3!=_0x42b0ef[_0x29c120([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x53bcdc(_0x42b0ef[0x1]);function _0x53bcdc(_0x2b49e4){const _0xce7f19=_0x5070ea(_0x2b49e4);return _0xce7f19&&_0x18e399()?_0xce7f19:null;function _0x18e399(){const _0xff337f=_0xce7f19[_0x29c120([0x6a,0x74,0x69])],_0x227f10=window[_0x29c120([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xff337f[_0x29c120([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xff337f[_0x29c120([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x549dbd={..._0xce7f19,[_0x29c120([0x6a,0x74,0x69])]:_0xff337f[_0x29c120([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xff337f[_0x29c120([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x549dbd[_0x29c120([0x76,0x63])],_0x3eea85(_0x549dbd)==_0x227f10;}}}async function _0x433e7f(){let _0x59fcf4=!0x0;try{const _0x53680f=_0x4112f3[_0x29c120([0x73,0x70,0x6c,0x69,0x74])](_0x29c120([0x2e])),[_0x30c716,_0x4602a5,_0x5a0a75]=_0x53680f;return _0x467f00(_0x30c716),await _0x36b09e(_0x30c716,_0x4602a5,_0x5a0a75),_0x59fcf4;}catch(_0x1a2240){return!0x1;}function _0x467f00(_0x210d4c){const _0x5f1f5b=_0x5070ea(_0x210d4c);_0x5f1f5b&&_0x5f1f5b[_0x29c120([0x61,0x6c,0x67])]==_0x29c120([0x45,0x53,0x32,0x35,0x36])||(_0x59fcf4=!0x1);}async function _0x36b09e(_0x23c062,_0x1e06ec,_0x445f8f){const _0x46b29c=window[_0x29c120([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x29c120([0x66,0x72,0x6f,0x6d])](_0x1ecd01(_0x445f8f),_0x153bc7=>_0x153bc7[_0x29c120([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5abd15=new window[(_0x29c120([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x29c120([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x23c062+_0x29c120([0x2e])+_0x1e06ec),_0xa92a59=window[_0x29c120([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x29c120([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xa92a59)return;const _0x54271f=await _0xa92a59[_0x29c120([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x29c120([0x6a,0x77,0x6b]),_0x3a004b,{[_0x29c120([0x6e,0x61,0x6d,0x65])]:_0x29c120([0x45,0x43,0x44,0x53,0x41]),[_0x29c120([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x29c120([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x29c120([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xa92a59[_0x29c120([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x29c120([0x6e,0x61,0x6d,0x65])]:_0x29c120([0x45,0x43,0x44,0x53,0x41]),[_0x29c120([0x68,0x61,0x73,0x68])]:{[_0x29c120([0x6e,0x61,0x6d,0x65])]:_0x29c120([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x54271f,_0x46b29c,_0x5abd15)||(_0x59fcf4=!0x1);}}function _0x5070ea(_0x2702f4){return _0x2702f4[_0x29c120([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x29c120([0x65,0x79]))?JSON[_0x29c120([0x70,0x61,0x72,0x73,0x65])](_0x1ecd01(_0x2702f4)):null;}function _0x1ecd01(_0x240fcf){return window[_0x29c120([0x61,0x74,0x6f,0x62])](_0x240fcf[_0x29c120([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x29c120([0x2b]))[_0x29c120([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x29c120([0x2f])));}function _0x3eea85(_0x2139ac){let _0x2ccb70=0x1505;function _0x4f554d(_0x487ff3){for(let _0x24f9e5=0x0;_0x24f9e5<_0x487ff3[_0x29c120([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x24f9e5++){const _0x35369e=_0x487ff3[_0x29c120([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x24f9e5);_0x2ccb70=(_0x2ccb70<<0x5)+_0x2ccb70+_0x35369e,_0x2ccb70&=_0x2ccb70;}}function _0x3ce7e0(_0x172bb3){Array[_0x29c120([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x172bb3)?_0x172bb3[_0x29c120([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3ce7e0):_0x172bb3&&typeof _0x172bb3==_0x29c120([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x29c120([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x172bb3)[_0x29c120([0x73,0x6f,0x72,0x74])]()[_0x29c120([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x28b2d9,_0x6c9370])=>{_0x4f554d(_0x28b2d9),_0x3ce7e0(_0x6c9370);}):_0x4f554d(window[_0x29c120([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x172bb3));}return _0x3ce7e0(_0x2139ac),_0x2ccb70>>>0x0;}function _0x2fa669(_0x2dee4a){return _0x2dee4a[_0x29c120([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x29c120([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x29c120([0x30]));}function _0x1ee8a9(_0x261f45){return _0x261f45[_0x29c120([0x73,0x70,0x6c,0x69,0x74])]('')[_0x29c120([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x29c120([0x6a,0x6f,0x69,0x6e])]('');}function _0x3e39be(_0x25405c){return _0x33e9a6[_0x29c120([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x29c120([0x68,0x61,0x73])](_0x25405c);}function _0x4c05fa(_0x17ef29){return _0x33e9a6[_0x29c120([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x29c120([0x67,0x65,0x74])](_0x17ef29);}function _0x482a1b(){}function _0x29c120(_0x2384d3){return _0x2384d3['map'](_0x1063bf=>String['fromCharCode'](_0x1063bf))['join']('');}_0x1c7fd3(await _0x354862());}(this);}set['adapter'](_0x245131){if(this['_adapter'])throw new _0x282cc9('track-changes-adapter-already-set',this);this['_adapter']=_0x245131;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x527b32=!0x1,toJSON:_0x4decf6=!0x1}={}){const _0x4d6318=[];for(const _0x243a18 of this['_suggestions']['values']())_0x527b32&&!_0x243a18['isInContent']||_0x4d6318['push'](_0x243a18);return _0x4decf6?_0x4d6318['map'](_0x1e186e=>_0x1e186e['toJSON']()):_0x4d6318;}['getSuggestion'](_0x3d001b){const _0x9dd289=this['_suggestions']['get'](_0x3d001b);if(!_0x9dd289)throw new _0x282cc9('track-changes-suggestion-not-found',this);return _0x9dd289;}['hasSuggestion'](_0x26050b){return this['_suggestions']['has'](_0x26050b);}['addSuggestionData'](_0x1f675a){const {authorId:_0x5e563c,id:_0x5a749c,attributes:_0x380d02}=_0x1f675a,[_0x3a6028,_0x2cb36a]=_0x1f675a['type']['split'](':'),_0x5bd442=this['_suggestions']['get'](_0x5a749c)||this['_createSuggestion'](_0x3a6028,_0x2cb36a,_0x5a749c,_0x5e563c,_0x380d02);if(this['_addThreadToSuggestion'](_0x5bd442),this['_checkSuggestionCorrectness'](_0x5bd442,_0x3a6028,_0x2cb36a||null,_0x5e563c),_0x5bd442['createdAt']=_0x1f675a['createdAt'],_0x5bd442['_isDataLoaded']=!0x0,_0x380d02&&_0x380d02['@external']){const _0x1e0070=_0x380d02['@external'],_0xd54485=this['_getExternalAuthor'](_0x1e0070['authorName']);_0x5bd442['authoredAt']=_0x1e0070['createdAt'],_0x5bd442['author']=_0xd54485,_0x5bd442['isExternal']=!0x0;}else _0x5bd442['authoredAt']=_0x1f675a['createdAt'];switch(_0x1f675a['data']&&(_0x5bd442['data']=_0x1f675a['data']),_0x1f675a['attributes']&&(_0x5bd442['attributes']=_0x1f675a['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x5bd442['_saved']=!0x0),this['_suggestionState']['get'](_0x5bd442)){case'notReady':this['_suggestionState']['set'](_0x5bd442,'dataReady');break;case'markerReady':_0x5bd442['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x5bd442])),this['_refreshSuggestionsChain'](new Set([_0x5bd442])),this['_suggestionState']['set'](_0x5bd442,'ready'),this['fire']('suggestionLoaded',_0x5bd442)):this['_suggestionState']['set'](_0x5bd442,'removed');}return _0x5bd442;}['acceptSuggestion'](_0x135ff7){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1812fb of _0x135ff7['getAllAdjacentSuggestions']())_0x1812fb['accept']();});});}['discardSuggestion'](_0xff4ba6){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2b5d8f of _0xff4ba6['getAllAdjacentSuggestions']())_0x2b5d8f['discard']();});});}['enableCommand'](_0x5ddd51,_0x129f2e){const _0x17ccc6=this['editor']['commands']['get'](_0x5ddd51);if(!_0x17ccc6)throw new _0x282cc9('track-changes-command-not-found',this,{'commandName':_0x5ddd51});if(this['_enabledCommands']['has'](_0x17ccc6))throw new _0x282cc9('track-changes-enable-command-twice',this,{'commandName':_0x5ddd51});this['_enabledCommands']['add'](_0x17ccc6),_0x129f2e&&_0x17ccc6['on']('execute',(_0x2db54e,_0x49a0f3)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x49a0f3['length']>0x0&&_0x49a0f3[_0x49a0f3['length']-0x1]&&_0x49a0f3[_0x49a0f3['length']-0x1]['forceDefaultExecution']?_0x49a0f3['pop']():(_0x2db54e['return']=_0x129f2e((..._0x8b99c4)=>_0x17ccc6['execute'](..._0x8b99c4,{'forceDefaultExecution':!0x0}),..._0x49a0f3),_0x2db54e['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x19c5f5){let _0x395262,_0x27c85f;const _0x332e49=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x395262=_0x19c5f5();}catch(_0x560849){_0x27c85f=_0x560849;}return _0x332e49||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x27c85f&&_0x282cc9['rethrowUnexpectedError'](_0x27c85f,this),_0x395262;}['markInsertion'](_0x215e50,_0x3670a0=null,_0x428059={}){if(_0x215e50['isCollapsed'])return null;const _0x3efb4a=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x56d005,meta:_0x5ba0f6}of this['_findSuggestions'](_0x215e50,'insertion'))if(_0x5ba0f6['isOwn']){if(!_0x5ba0f6['isNextTo']){if(_0x5ba0f6['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x56d005,_0x428059))continue;return _0x56d005;}if(Xt(_0x56d005,_0x428059))return _0x56d005;this['_breakSuggestionMarker'](_0x56d005,_0x215e50['start'],_0x215e50['end']);break;}if(_0x3670a0==_0x56d005['subType']&&Xt(_0x56d005,_0x428059)){const _0x6e84f3=_0x56d005['getFirstRange']();return _0x6e84f3['start']['isEqual'](_0x215e50['end'])?this['_setSuggestionRange'](_0x56d005,this['_model']['createRange'](_0x215e50['start'],_0x6e84f3['end'])):this['_setSuggestionRange'](_0x56d005,this['_model']['createRange'](_0x6e84f3['start'],_0x215e50['end'])),_0x56d005;}}const _0x2dfa9a=_0x513c99(),_0x26b8c3=_0x3efb4a['id'],_0x45619c=_0x3670a0?'insertion:'+_0x3670a0:'insertion',_0x20d1b5=this['_setSuggestionData']({'id':_0x2dfa9a,'type':_0x45619c,'createdAt':new Date(),'authorId':_0x26b8c3,'attributes':_0x428059});return this['_addSuggestionMarker'](_0x45619c,_0x2dfa9a,_0x26b8c3,_0x215e50),_0x20d1b5;}['markMultiRangeInsertion'](_0x4d6ab5,_0x465da6='multi',_0x15b7eb={}){const _0x4e7cdc=this['editor']['plugins']['get']('Users')['me'],_0x3337a5=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x465da6,'join');for(const _0x1a739a of this['getSuggestions']())if(_0x1a739a['author']['id']==_0x4e7cdc['id']&&'insertion'==_0x1a739a['type']&&_0x1a739a['subType']==_0x465da6&&Xt(_0x1a739a,_0x15b7eb)&&(_0x3337a5(_0x1a739a['getRanges'](),_0x4d6ab5)||_0x3337a5(_0x4d6ab5,_0x1a739a['getRanges']()))){for(const _0x33561 of _0x4d6ab5)_0x1a739a['addRange'](_0x33561);return _0x1a739a;}for(const {suggestion:_0xa86812,meta:_0xd6b44f}of this['_findSuggestions'](_0x4d6ab5,'insertion')){if(!_0xd6b44f['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0xd6b44f['containsRangeInObject'])continue;if(!Xt(_0xa86812,_0x15b7eb))continue;let _0x248cb4=!0x0;for(const _0x1859c5 of _0xa86812['getRanges']())for(const _0x5bde4b of _0x4d6ab5)if(!_0x1859c5['containsRange'](_0x5bde4b)){_0x248cb4=!0x1;break;}if(_0x248cb4)return _0xa86812;}const _0x50e166=_0x513c99(),_0xa36946=_0x4e7cdc['id'],_0x515341='insertion:'+_0x465da6,_0x499fc8=this['_setSuggestionData']({'id':_0x50e166,'type':_0x515341,'createdAt':new Date(),'authorId':_0xa36946,'attributes':_0x15b7eb});for(const _0x467b58 of _0x4d6ab5)this['_addSuggestionMarker'](_0x515341,_0x50e166,_0xa36946,_0x467b58,o['getMultiRangeId']());return _0x499fc8;}['markInlineFormat'](_0x1a85fb,_0x2f8146,_0x129483=null,_0x4fffed={}){if(_0x129483=_0x129483||Kt(_0x2f8146),_0x1a85fb['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x2b0ad1=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x129483,'accept');return this['forceDefaultExecution'](()=>_0x2b0ad1([_0x1a85fb],_0x2f8146,_0x4fffed)),null;}const _0x5b4b0b=this['editor']['plugins']['get']('Users')['me'],_0x1144cd=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x4dfa11,meta:_0x5c11c0}of this['_findSuggestions'](_0x1a85fb,'insertion'))_0x5c11c0['isOwn']&&!_0x5c11c0['isInsideObject']&&_0x1144cd['push'](..._0x4dfa11['getRanges']());}const _0x2af64c=function(_0x425267,_0x38215b){const _0x3249cd=[];for(const _0xcfa160 of _0x38215b){const _0x57303e=_0x425267['getIntersection'](_0xcfa160);_0x57303e&&_0x3249cd['push'](_0x57303e);}return _0x3249cd;}(_0x1a85fb,_0x1144cd),_0x24ed77=function(_0x48d052,_0x9a1608){const _0x9d7a96=[_0x48d052];for(const _0x983ea0 of _0x9a1608){let _0x50e63c=0x0;for(;_0x50e63c<_0x9d7a96['length'];){const _0x599794=_0x9d7a96[_0x50e63c]['getDifference'](_0x983ea0);_0x9d7a96['splice'](_0x50e63c,0x1,..._0x599794),_0x50e63c+=_0x599794['length'];}}return _0x9d7a96;}(_0x1a85fb,_0x1144cd);_0x2af64c['length']&&this['_model']['change'](()=>{for(const _0x296ef3 of _0x2af64c){const _0x4b4319=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x129483,'accept');this['forceDefaultExecution'](()=>_0x4b4319([_0x296ef3],_0x2f8146,_0x4fffed));}});for(const _0x402fbe of _0x24ed77){let _0x12e7f9=null,_0x44cc7b=_0x402fbe['start'],_0x4e63a9=_0x402fbe['end'];for(const {suggestion:_0x1b1a40,meta:_0x1e7e20}of this['_findSuggestions'](_0x402fbe,'formatInline')){if(!_0x1e7e20['isOwn'])continue;if(_0x1b1a40['subType']!=_0x129483)continue;if(!Xt(_0x1b1a40,_0x4fffed))continue;const _0x1a3ca5=_0x1b1a40['getFirstRange']();if(_0x1a3ca5['containsRange'](_0x402fbe,!0x0))return null;_0x44cc7b=_0x44cc7b['isBefore'](_0x1a3ca5['start'])?_0x44cc7b:_0x1a3ca5['start'],_0x4e63a9=_0x4e63a9['isAfter'](_0x1a3ca5['end'])?_0x4e63a9:_0x1a3ca5['end'],_0x12e7f9?_0x1a3ca5['start']['isBefore'](_0x12e7f9['getFirstRange']()['start'])?(_0x12e7f9['removeMarkers'](),_0x12e7f9=_0x1b1a40):_0x1b1a40['removeMarkers']():_0x12e7f9=_0x1b1a40;}const _0x49799a=this['_model']['createRange'](_0x44cc7b,_0x4e63a9);if(_0x12e7f9)this['_setSuggestionRange'](_0x12e7f9,_0x49799a);else{const _0xc30ab2=_0x513c99(),_0x3c6e48=_0x5b4b0b['id'];this['_setSuggestionData']({'id':_0xc30ab2,'type':'formatInline:'+_0x129483,'data':_0x2f8146,'createdAt':new Date(),'authorId':_0x3c6e48,'attributes':_0x4fffed}),this['_addSuggestionMarker']('formatInline:'+_0x129483,_0xc30ab2,_0x3c6e48,_0x49799a);}}return null;}['markBlockFormat'](_0x78aedb,_0x3d5d0a,_0x2f9ea5=[],_0x4231df=null,_0x4d3c9e={}){_0x3d5d0a['formatGroupId']||(_0x3d5d0a['formatGroupId']=_0x3d5d0a['commandName']),_0x3d5d0a['multipleBlocks']=_0x78aedb['is']('range'),_0x4231df=_0x4231df||Kt(_0x3d5d0a);const _0x5bb49c=_0x2f9ea5['map'](_0x8e7c01=>zt(_0x8e7c01,this['_model'])),_0x52a2a4=_0x78aedb['is']('range')?_0x78aedb:zt(_0x78aedb,this['_model']);if('never'===this['_trackFormatChanges']){const _0x4510b6=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4231df,'accept');return this['forceDefaultExecution'](()=>_0x4510b6([_0x52a2a4],_0x3d5d0a,_0x4d3c9e)),null;}_0x5bb49c['push'](_0x52a2a4);let _0x40a250=!0x0;for(const _0x4862a4 of _0x5bb49c)if(!this['_rangeIsInLocalUserInsertion'](_0x4862a4)){_0x40a250=!0x1;break;}if(_0x40a250&&'always'!==this['_trackFormatChanges']){const _0x233b01=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4231df,'accept');return this['forceDefaultExecution'](()=>_0x233b01([_0x52a2a4],_0x3d5d0a,_0x4d3c9e)),null;}let _0x198bcd=null,_0x3f62b9=_0x52a2a4['start'],_0xe6ee95=_0x52a2a4['end'];for(const {suggestion:_0x16374e,meta:_0x4dcb9a}of this['_findSuggestions'](_0x52a2a4,'formatBlock')){if(!_0x4dcb9a['isOwn'])continue;if(_0x4dcb9a['isNextTo']||_0x4dcb9a['containsRangeInObject']||_0x4dcb9a['isInsideObject'])continue;if(_0x16374e['data']['formatGroupId']!=_0x3d5d0a['formatGroupId'])continue;if(!Xt(_0x16374e,_0x4d3c9e))continue;const _0x4d02e9=_0x16374e['getFirstRange']();if(_0x16374e['subType']==_0x4231df){if(_0x4d02e9['containsRange'](_0x52a2a4,!0x0))return null;_0x3f62b9=_0x3f62b9['isBefore'](_0x4d02e9['start'])?_0x3f62b9:_0x4d02e9['start'],_0xe6ee95=_0xe6ee95['isAfter'](_0x4d02e9['end'])?_0xe6ee95:_0x4d02e9['end'],_0x198bcd?_0x4d02e9['start']['isBefore'](_0x198bcd['getFirstRange']()['start'])?(_0x198bcd['removeMarkers'](),_0x198bcd=_0x16374e):_0x16374e['removeMarkers']():_0x198bcd=_0x16374e;}else{const _0x2ca1fe=_0x52a2a4['getIntersection'](_0x4d02e9);this['_cutOutSuggestionMarker'](_0x16374e,_0x2ca1fe);}}const _0x344ca1=this['editor']['plugins']['get']('Users')['me'],_0xa699b7=_0x513c99(),_0x442ae2=_0x344ca1['id'];if(_0x198bcd)return this['_setSuggestionRange'](_0x198bcd,this['_model']['createRange'](_0x3f62b9,_0xe6ee95)),_0x198bcd;{const _0x5ca633=this['_setSuggestionData']({'id':_0xa699b7,'type':'formatBlock:'+_0x4231df,'data':_0x3d5d0a,'createdAt':new Date(),'authorId':_0x442ae2,'attributes':_0x4d3c9e});return this['_addSuggestionMarker']('formatBlock:'+_0x4231df,_0xa699b7,_0x442ae2,this['_model']['createRange'](_0x3f62b9,_0xe6ee95)),_0x5ca633;}}['markMultiRangeBlockFormat'](_0x41870f,_0x445a8d,_0x21e0b0=[],_0x3bd752=null,_0x134695={}){_0x445a8d['formatGroupId']||(_0x445a8d['formatGroupId']=_0x445a8d['commandName']);const _0x18a413=_0x41870f[0x0];_0x445a8d['multipleBlocks']=_0x18a413['is']('range'),_0x3bd752=_0x3bd752||Kt(_0x445a8d);const _0x1141c3=_0x21e0b0['map'](_0x20330a=>zt(_0x20330a,this['_model'])),_0x252a10=_0x18a413['is']('range')?_0x41870f:_0x41870f['map'](_0x264a8f=>zt(_0x264a8f,this['_model']));if('never'===this['_trackFormatChanges']){const _0x58e72a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3bd752,'accept');return this['forceDefaultExecution'](()=>_0x58e72a(_0x252a10,_0x445a8d,_0x134695)),null;}_0x1141c3['push'](..._0x252a10);let _0x2fad07=!0x0;for(const _0xbdfc9e of _0x1141c3)if(!this['_rangeIsInLocalUserInsertion'](_0xbdfc9e)){_0x2fad07=!0x1;break;}if(_0x2fad07&&'always'!==this['_trackFormatChanges']){const _0x15e8d1=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3bd752,'accept');return this['forceDefaultExecution'](()=>_0x15e8d1(_0x252a10,_0x445a8d,_0x134695)),null;}const _0xd34977=this['editor']['plugins']['get']('Users')['me'];for(const _0x3258be of this['getSuggestions']()){if(_0x3258be['author']['id']!=_0xd34977['id'])continue;if('formatBlock'!=_0x3258be['type']||_0x3258be['data']['formatGroupId']!=_0x445a8d['formatGroupId'])continue;if(!Xt(_0x3258be,_0x134695))continue;const _0xd1ea7=_0x3258be['subType']==_0x3bd752;for(let _0x2d6861=0x0;_0x2d6861<_0x252a10['length'];_0x2d6861++){const _0x3ccd8d=_0x252a10[_0x2d6861];for(const _0x575e8a of _0x3258be['getMarkers']()){const _0x268c11=_0x575e8a['getRange']();if(_0x3ccd8d['isEqual'](_0x268c11)){_0xd1ea7?(_0x252a10['splice'](_0x2d6861,0x1),_0x2d6861--):_0x3258be['removeMarker'](_0x575e8a['name']);break;}}}}if(0x0==_0x252a10['length'])return null;const _0x3fd306=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3bd752,'join');for(const _0x148d00 of this['getSuggestions']())if(_0x148d00['author']['id']==_0xd34977['id']&&'formatBlock'==_0x148d00['type']&&_0x148d00['data']['formatGroupId']==_0x445a8d['formatGroupId']&&_0x148d00['subType']==_0x3bd752&&Xt(_0x148d00,_0x134695)&&(_0x3fd306(_0x148d00['getRanges'](),_0x252a10)||_0x3fd306(_0x252a10,_0x148d00['getRanges']()))){for(const _0x2942d0 of _0x252a10)_0x148d00['addRange'](_0x2942d0);return _0x148d00;}const _0x25221a=_0x513c99(),_0x306ca9=_0xd34977['id'],_0x124b2c='formatBlock:'+_0x3bd752,_0x179d9c=this['_setSuggestionData']({'id':_0x25221a,'type':_0x124b2c,'data':_0x445a8d,'createdAt':new Date(),'authorId':_0x306ca9,'attributes':_0x134695});for(const _0x2270ff of _0x252a10)this['_addSuggestionMarker'](_0x124b2c,_0x25221a,_0x306ca9,_0x2270ff,o['getMultiRangeId']());return _0x179d9c;}['markDeletion'](_0x285bd7,_0x43fcf3=null,_0x5ae525={}){if(_0x285bd7['isCollapsed'])return null;const _0xbf30eb=this['editor']['plugins']['get']('Users')['me'],_0x572cd6=new _0x163541(_0x285bd7['start'],_0x285bd7['end']);for(const {suggestion:_0x19729e,meta:_0x2cc5bf}of this['_findSuggestions'](_0x572cd6,'insertion'))if(_0x2cc5bf['isOwn']&&!_0x2cc5bf['isNextTo']){if(_0x19729e['isMultiRange']){const _0x482fb2=_0x19729e['getRanges']()['filter'](_0x2e3be6=>'$graveyard'!=_0x2e3be6['root']['rootName']);_0x482fb2['every'](_0xcb2eae=>_0x572cd6['containsRange'](_0xcb2eae,!0x0))&&_0x19729e['discard']();if(_0x482fb2['some'](_0x16e075=>_0x16e075['containsRange'](_0x572cd6,!0x0))){const _0x192b0f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x43fcf3,'accept');return this['forceDefaultExecution'](()=>_0x192b0f([_0x572cd6],null,_0x5ae525)),null;}}else{const _0x25e0cd=_0x572cd6['getIntersection'](_0x19729e['getFirstRange']());null!==_0x25e0cd&&_0x19729e['_onDiscard']([_0x25e0cd],null,_0x5ae525);}}if(_0x572cd6['detach'](),_0x572cd6['isCollapsed']||'$graveyard'==_0x572cd6['root']['rootName'])return null;let _0x3ded36=null,_0x33ffe5=_0x572cd6['start'],_0x5645e9=_0x572cd6['end'];const _0x14cc58=this['_findSuggestions'](_0x572cd6,'deletion');for(const {suggestion:_0x3c41ff,meta:_0x8dcc75}of _0x14cc58){const _0x4c69ea=this['_model']['createRange'](_0x33ffe5,_0x5645e9);if(_0x8dcc75['isOwn']&&(this['_mergeNestedSuggestions']||!_0x8dcc75['containsRangeInObject']&&!_0x8dcc75['isInsideObject'])){if(_0x3c41ff['isMultiRange']){if(!Xt(_0x3c41ff,_0x5ae525))continue;let _0x327d02=!0x0;for(const _0x2d601c of _0x3c41ff['getRanges']()){if(_0x2d601c['containsRange'](_0x4c69ea,!0x0))return _0x3c41ff;_0x4c69ea['containsRange'](_0x2d601c)||(_0x327d02=!0x1);}_0x327d02&&_0x3c41ff['discard']();}else{const _0x438f45=_0x3c41ff['getFirstRange']();if(_0x438f45['containsRange'](_0x4c69ea,!0x0))return _0x3c41ff;if(!Xt(_0x3c41ff,_0x5ae525)){_0x4c69ea['containsRange'](_0x438f45)?_0x3c41ff['removeMarkers']():_0x438f45['containsPosition'](_0x33ffe5)?_0x33ffe5=_0x438f45['end']:_0x438f45['containsPosition'](_0x5645e9)&&(_0x5645e9=_0x438f45['start']);continue;}_0x33ffe5=_0x33ffe5['isBefore'](_0x438f45['start'])?_0x33ffe5:_0x438f45['start'],_0x5645e9=_0x5645e9['isAfter'](_0x438f45['end'])?_0x5645e9:_0x438f45['end'],_0x5ae525=Object['assign']({},_0x3c41ff['attributes']),_0x3ded36?_0x438f45['start']['isBefore'](_0x3ded36['getFirstRange']()['start'])?(_0x3ded36['removeMarkers'](),_0x3ded36=_0x3c41ff):_0x3c41ff['removeMarkers']():_0x3ded36=_0x3c41ff;}}}if(_0x3ded36)return this['_setSuggestionRange'](_0x3ded36,this['_model']['createRange'](_0x33ffe5,_0x5645e9)),_0x3ded36;{const _0x12da6e=_0x513c99(),_0x8a5c18=this['_model']['createRange'](_0x33ffe5,_0x5645e9),_0x146705=_0xbf30eb['id'],_0x4c5edc=_0x43fcf3?'deletion:'+_0x43fcf3:'deletion',_0x40ab52=this['_setSuggestionData']({'id':_0x12da6e,'type':_0x4c5edc,'createdAt':new Date(),'authorId':_0x146705,'attributes':_0x5ae525});return this['_addSuggestionMarker'](_0x4c5edc,_0x12da6e,_0x146705,_0x8a5c18),_0x40ab52;}}['markMultiRangeDeletion'](_0x1afbf1,_0x1c9956='multi',_0x4529df={}){const _0x5717c0=this['editor']['plugins']['get']('Users')['me'],_0x2711eb=_0x1afbf1['map'](_0x370a42=>new _0x163541(_0x370a42['start'],_0x370a42['end'])),_0x28c0b5=new Set();for(const {suggestion:_0x1d7af7,meta:_0x423591}of this['_findSuggestions'](_0x2711eb,'insertion'))_0x423591['isOwn']&&!_0x423591['isNextTo']&&_0x28c0b5['add'](_0x1d7af7);for(const _0x32e063 of _0x28c0b5)if(_0x32e063['isMultiRange']){const _0xf3d567=_0x32e063['getRanges']();(!_0x32e063['attributes']||!_0x32e063['attributes']['skipNestingCheck'])&&(_0xf3d567['every'](_0x4ff45d=>_0x2711eb['some'](_0x211914=>_0x211914['containsRange'](_0x4ff45d,!0x0)))&&_0x32e063['discard']());if(_0x2711eb['every'](_0x3e03b9=>_0xf3d567['some'](_0x192390=>_0x192390['containsRange'](_0x3e03b9,!0x0)))){const _0x400c76=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1c9956,'accept');return this['forceDefaultExecution'](()=>_0x400c76(_0x1afbf1,null,_0x4529df)),null;}}else{const _0xd99ded=_0x32e063['getFirstRange']();_0x2711eb['some'](_0x47cc59=>_0x47cc59['containsRange'](_0xd99ded,!0x0))&&_0x32e063['discard']();if(_0x2711eb['every'](_0x48aaed=>_0xd99ded['containsRange'](_0x48aaed,!0x0))){const _0x99a0aa=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1c9956,'accept');return this['forceDefaultExecution'](()=>_0x99a0aa(_0x2711eb,null,_0x4529df)),null;}}const _0x4714e1=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1c9956,'join');let _0x897697=null;for(const _0x317691 of this['getSuggestions']())if(_0x317691['author']['id']==_0x5717c0['id']&&_0x317691['isInContent']&&'deletion'==_0x317691['type']&&_0x317691['subType']==_0x1c9956&&Xt(_0x317691,_0x4529df)&&(_0x4714e1(_0x317691['getRanges'](),_0x2711eb)||_0x4714e1(_0x2711eb,_0x317691['getRanges']()))){if(_0x897697){if(_0x317691['commentThread']&&_0x317691['commentThread']['length'])continue;for(const _0x1efe3c of _0x317691['getRanges']())_0x897697['isIntersectingWithRange'](_0x1efe3c)||_0x897697['addRange'](_0x1efe3c);_0x317691['removeMarkers']();}else{_0x897697=_0x317691;for(const _0xce88b0 of _0x2711eb)_0x317691['isIntersectingWithRange'](_0xce88b0)||_0x317691['addRange'](_0xce88b0);}}if(_0x897697)return _0x897697;_0x28c0b5['clear']();for(const {suggestion:_0x2fe0a0,meta:_0x119f7c}of this['_findSuggestions'](_0x2711eb,'deletion'))_0x119f7c['isOwn']&&(this['_mergeNestedSuggestions']||!_0x119f7c['containsRangeInObject']&&!_0x119f7c['isInsideObject'])&&Xt(_0x2fe0a0,_0x4529df)&&_0x28c0b5['add'](_0x2fe0a0);for(const _0x47e809 of _0x28c0b5){const _0x5e0019=_0x47e809['getRanges']();if(!_0x4529df||!_0x4529df['skipNestingCheck']){if(_0x2711eb['every'](_0x4da7cf=>_0x5e0019['some'](_0x370b08=>_0x370b08['containsRange'](_0x4da7cf,!0x0))))return _0x47e809;}(!_0x47e809['attributes']||!_0x47e809['attributes']['skipNestingCheck'])&&(_0x5e0019['every'](_0x55a271=>_0x2711eb['some'](_0x4196b0=>_0x4196b0['containsRange'](_0x55a271,!0x0)))&&_0x47e809['discard']());}const _0x2d43a6=_0x513c99(),_0x19119f=_0x5717c0['id'],_0x5f4ce9='deletion:'+_0x1c9956,_0x2de771=this['_setSuggestionData']({'id':_0x2d43a6,'type':_0x5f4ce9,'createdAt':new Date(),'authorId':_0x19119f,'attributes':_0x4529df});for(const _0x5851eb of _0x2711eb)_0x5851eb['detach'](),_0x5851eb['isCollapsed']||'$graveyard'==_0x5851eb['root']['rootName']||this['_addSuggestionMarker'](_0x5f4ce9,_0x2d43a6,_0x19119f,_0x5851eb,o['getMultiRangeId']());return _0x2de771;}['markAttributeChange'](_0xbccf6c,_0x1ab17c,_0x29f07c,_0xc3a2e8,_0x2a741d){if(_0xbccf6c['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x2ccafd=this['editor']['plugins']['get']('Users')['me']['id'],_0x15fa91=Array['from'](this['_suggestions']['values']())['filter'](_0x659fc=>'attribute'==_0x659fc['type']&&_0x659fc['data']['key']==_0x1ab17c&&_0x659fc['isIntersectingWithRange'](_0xbccf6c));if('default'===this['_trackFormatChanges']){const _0x2cdc56=this['_findSuggestions'](_0xbccf6c,'insertion')['filter'](({meta:_0xcffd1e})=>_0xcffd1e['isOwn']&&!_0xcffd1e['isInsideObject']&&!_0xcffd1e['isNextTo'])['map'](({suggestion:_0x508927})=>_0x508927);_0x15fa91['unshift'](..._0x2cdc56);}const _0x4bcb8a=new Map([[_0xbccf6c,_0x29f07c]]);for(const _0x557c61 of _0x15fa91){const _0xc99c70='attribute'==_0x557c61['type']?_0x557c61['data']['oldValue']:void 0x0,_0x4e8da4=_0x557c61['getFirstRange'](),_0x56bb3d=Array['from'](_0x4bcb8a['keys']())['find'](_0x4255c6=>_0x4255c6['isIntersecting'](_0x4e8da4));if(!_0x56bb3d)continue;const _0x5763c1=_0x56bb3d['getDifference'](_0x4e8da4);this['_isBlockAttribute'](_0x1ab17c)&&'insertion'==_0x557c61['type']&&0x0!=_0x5763c1['length']||(_0x4bcb8a['delete'](_0x56bb3d),_0x5763c1['forEach'](_0x5a38fa=>{_0x4bcb8a['set'](_0x5a38fa,_0x29f07c);}),'insertion'!=_0x557c61['type']&&_0xc99c70!=_0xc3a2e8&&_0x4bcb8a['set'](_0x56bb3d['getIntersection'](_0x4e8da4),_0xc99c70));}const _0x185b93=[];for(const [_0x205903,_0x472cad]of _0x4bcb8a){const _0x4e9e04=_0x513c99(),_0x2e9e6c={'key':_0x1ab17c,'oldValue':_0x472cad,'newValue':_0xc3a2e8};_0x1ab17c['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':_0x1ab17c});const _0x3ba008=('attribute:'+(_0x1ab17c+'|'+Kt({'newValue':_0xc3a2e8})))['substring'](0x0,0x3c),_0x12eb79=this['_setSuggestionData']({'id':_0x4e9e04,'type':_0x3ba008,'data':_0x2e9e6c,'createdAt':new Date(),'authorId':_0x2ccafd,'attributes':_0x2a741d});_0x185b93['push'](_0x12eb79),this['_addSuggestionMarker'](_0x3ba008,_0x4e9e04,_0x2ccafd,_0x205903);}return _0x185b93;}['enableDefaultAttributesIntegration'](_0x374d43){this['enableCommand'](_0x374d43,(_0x4845f9,..._0x3b568f)=>{this['_recordAttributeChanges'](()=>{_0x4845f9(..._0x3b568f);});});}['registerBlockAttribute'](_0x159d74){this['_blockAttributeKeys']['add'](_0x159d74);}['registerInlineAttribute'](_0x14fb67){this['_inlineAttributeKeys']['add'](_0x14fb67);}['_getAttributeKey'](_0x3f260b){return'attribute'==_0x3f260b['type']?_0x3f260b['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x307244,_0x32da7c){const _0x37bba8=_0x307244['getFirstMarker']();this['_model']['change'](_0x39cc72=>{_0x39cc72['updateMarker'](_0x37bba8,{'range':_0x32da7c});});}['_addThreadToSuggestion'](_0x707bde){const _0x17d22e=_0x707bde['id'],_0x1b4346=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x17d22e)||this['_commentsRepository']['addCommentThread']({'channelId':_0x1b4346,'threadId':_0x17d22e,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x30d6c5=this['_commentsRepository']['getCommentThread'](_0x17d22e);_0x30d6c5['unbind']('isRemovable'),_0x30d6c5['isRemovable']=!0x1,_0x707bde['commentThread']=_0x30d6c5;}['_checkSuggestionCorrectness'](_0xd902e9,_0x46cebb,_0x4227b3,_0x2e9ffa){if(_0xd902e9['type']!=_0x46cebb||_0xd902e9['subType']!=_0x4227b3||_0xd902e9['creator']['id']!=_0x2e9ffa)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x282cc9('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x4de81f,_0x35e749){const _0x1bd3e8=_0x4de81f['getFirstRange']();if(_0x35e749['isEqual'](_0x1bd3e8))_0x4de81f['removeMarkers']();else{if(_0x1bd3e8['containsRange'](_0x35e749)){const _0x377059=this['_model']['createPositionAt'](_0x35e749['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4de81f,this['_model']['createRange'](_0x1bd3e8['start'],_0x377059));const _0x795d09=_0x513c99(),_0x729de8=_0x4de81f['creator']['id'],_0x1b492c=_0x4de81f['type']+':'+_0x4de81f['subType'];this['_setSuggestionData']({'id':_0x795d09,'type':_0x1b492c,'createdAt':new Date(),'authorId':_0x729de8,'data':_0x4de81f['data'],'attributes':_0x4de81f['attributes']});const _0x532219=this['_model']['createPositionAt'](_0x35e749['end']['parent'],'after'),_0x32ecfe=this['_model']['createRange'](_0x532219,_0x1bd3e8['end']);this['_addSuggestionMarker'](_0x1b492c,_0x795d09,_0x729de8,_0x32ecfe);}else{if(_0x1bd3e8['containsPosition'](_0x35e749['start'])){const _0xdf8c83=this['_model']['createPositionAt'](_0x35e749['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4de81f,this['_model']['createRange'](_0x1bd3e8['start'],_0xdf8c83));}else{const _0x2731d3=this['_model']['createPositionAt'](_0x35e749['end']['parent'],'after');this['_setSuggestionRange'](_0x4de81f,this['_model']['createRange'](_0x2731d3,_0x1bd3e8['end']));}}}}['_rangeIsInLocalUserInsertion'](_0xa76bd5){for(const {suggestion:_0x260106,meta:_0x22d69d}of this['_findSuggestions'](_0xa76bd5,'insertion')){if(!_0x22d69d['isOwn'])continue;const _0x3480d8=_0x260106['getRanges']();for(const _0x13a1bb of _0x3480d8)if(!_0xa76bd5['getDifference'](_0x13a1bb)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x4d314e){const _0x103ca9=this['editor']['plugins']['get']('Users')['getUser'](_0x4d314e);if(!_0x103ca9)throw new _0x282cc9('track-changes-user-not-found',this);return _0x103ca9;}['_getExternalAuthor'](_0x3e55f1){const _0x23d5df=this['editor']['plugins']['get']('Users'),_0x1c8523=_0x957ba('external:'+_0x3e55f1),_0x3a66bf=_0x23d5df['getUser'](_0x1c8523);return _0x3a66bf||_0x23d5df['addUser']({'id':_0x1c8523,'name':_0x3e55f1});}['_createSuggestion'](_0x2475ed,_0x2fa7d2,_0x53f666,_0x1eb10f,_0xa22b9e){const _0x204af5=this['_getAuthorFromId'](_0x1eb10f),_0x387cc6=this['_suggestionFactory']['buildSuggestion'](_0x2475ed,_0x2fa7d2,_0x53f666,_0x204af5,_0xa22b9e,_0x41e2f=>{this['_updateSuggestionData'](_0x53f666,{'attributes':_0x41e2f});const _0x26ccf9=this['getSuggestion'](_0x53f666);this['_joinWithAdjacentSuggestions'](new Set([_0x26ccf9])),this['_refreshSuggestionsChain'](new Set([_0x26ccf9]));});return this['listenTo'](_0x387cc6,'accept',()=>{this['_updateSuggestionData'](_0x53f666,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x387cc6,'discard',()=>{this['_updateSuggestionData'](_0x53f666,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x53f666,_0x387cc6),this['_suggestionState']['set'](_0x387cc6,'notReady'),_0x387cc6;}['_splitMarkerName'](_0x30188e){const _0x35a5ba=_0x30188e['split'](':');return{'group':_0x35a5ba[0x0],'type':_0x35a5ba[0x1],'subType':_0x35a5ba['length']>=0x5?_0x35a5ba[0x2]:null,'id':_0x35a5ba['length']<0x5?_0x35a5ba[0x2]:_0x35a5ba[0x3],'authorId':_0x35a5ba['length']<0x5?_0x35a5ba[0x3]:_0x35a5ba[0x4],'markerCount':0x6==_0x35a5ba['length']?_0x35a5ba[0x5]:null};}['_breakSuggestionMarker'](_0x319aee,_0x1c86f9,_0x53deef){const _0x12ddeb=_0x319aee['getFirstRange'](),_0xb38815=_0x12ddeb['start'],_0x4e8ad1=_0x12ddeb['end'];this['_setSuggestionRange'](_0x319aee,this['_model']['createRange'](_0xb38815,_0x1c86f9));const _0xa91b98=_0x513c99(),_0x5b951a=_0x319aee['creator']['id'],_0x52e6e7=_0x319aee['type']+(_0x319aee['subType']?':'+_0x319aee['subType']:'');this['_setSuggestionData']({'id':_0xa91b98,'type':_0x52e6e7,'createdAt':new Date(),'authorId':_0x5b951a,'originalSuggestionId':_0x319aee['id'],'attributes':_0x319aee['attributes'],'data':_0x319aee['data']});const _0x131660=this['_getAttributeKey'](_0x319aee);('formatBlock'==_0x319aee['type']||_0x131660&&this['_isBlockAttribute'](_0x131660))&&(_0x53deef=this['_model']['createPositionBefore'](_0x53deef['parent'])),this['_addSuggestionMarker'](_0x52e6e7,_0xa91b98,_0x5b951a,this['_model']['createRange'](_0x53deef,_0x4e8ad1));}['_findSuggestions'](_0x24dc5f,_0x168617=null){const _0x4e0144=[],_0x328050=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x24dc5f)||(_0x24dc5f=[_0x24dc5f]);for(const _0x26b4cb of this['getSuggestions']()){if(!_0x26b4cb['isInContent'])continue;if(_0x168617&&_0x26b4cb['type']!=_0x168617)continue;let _0x54456a=!0x1;for(const _0xde50b3 of _0x26b4cb['getRanges']()){for(const _0x1f0be1 of _0x24dc5f){const _0x35f0e4=_0x1f0be1['start']['isEqual'](_0xde50b3['end'])||_0x1f0be1['end']['isEqual'](_0xde50b3['start']);if(_0x35f0e4||_0x1f0be1['getIntersection'](_0xde50b3)){const _0x54ef23=_0x1f0be1['containsRange'](_0xde50b3)&&Gt(this['_model']['schema'],_0xde50b3['start'],_0x1f0be1),_0x2717e4=_0xde50b3['containsRange'](_0x1f0be1)&&Gt(this['_model']['schema'],_0x1f0be1['start'],_0xde50b3);_0x4e0144['push']({'suggestion':_0x26b4cb,'meta':{'isOwn':_0x328050==_0x26b4cb['author'],'isNextTo':_0x35f0e4,'isInsideObject':_0x54ef23,'containsRangeInObject':_0x2717e4}}),_0x54456a=!0x0;break;}}if(_0x54456a)break;}}return _0x4e0144;}['_addSuggestionMarker'](_0x5cfb1c,_0x1dd724,_0x1c0bc9,_0x29f7ba,_0x548ab9){this['_model']['change'](_0x540937=>{let _0xe1ee66='suggestion:'+_0x5cfb1c+':'+_0x1dd724+':'+_0x1c0bc9;_0x548ab9&&(_0xe1ee66=_0xe1ee66+':'+_0x548ab9),_0x540937['addMarker'](_0xe1ee66,{'range':_0x29f7ba,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x409820){const _0x5a1be0=_0x409820['previous'],_0x10b665=_0x409820['next'];_0x409820['previous']=null,_0x409820['next']=null,null!=_0x5a1be0&&_0x5a1be0['next']==_0x409820&&(_0x5a1be0['next']=_0x10b665),null!=_0x10b665&&_0x10b665['previous']==_0x409820&&(_0x10b665['previous']=_0x5a1be0),'ready'==this['_suggestionState']['get'](_0x409820)&&(this['_suggestionState']['set'](_0x409820,'removed'),this['fire']('suggestionUnloaded',_0x409820,_0x5a1be0,_0x10b665));}['_setSuggestionData'](_0x527c72){const _0x5518cc=_0x527c72['id'],_0xb40319=this['addSuggestionData'](_0x527c72);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x5d99f3=this['editor']['plugins']['get']('PendingActions'),_0x390931=_0xb40319['hasComments'],_0x3ea4ca=_0xb40319['subType']?_0xb40319['type']+':'+_0xb40319['subType']:_0xb40319['type'],_0x45310b=this['editor']['locale'],_0x369838=_0x5d99f3['add'](c(_0x45310b,'PENDING_ACTION_SUGGESTION')),_0x3f0b57={'id':_0x5518cc,'type':_0x3ea4ca,'hasComments':_0x390931,'data':_0x527c72['data']||null,'originalSuggestionId':_0x527c72['originalSuggestionId']||null,'attributes':_0xb40319['attributes']};this['_adapter']['addSuggestion'](_0x3f0b57)['then'](_0x187304=>{_0xb40319['_saved']=!0x0,_0x5d99f3['remove'](_0x369838),_0x187304&&_0x187304['createdAt']&&(this['_suggestions']['get'](_0x5518cc)['createdAt']=_0x187304['createdAt']);})['catch'](_0x575dde=>{throw _0x5936df('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0xb40319['discard']();}),_0xb40319['stopListening'](),this['_suggestions']['delete'](_0xb40319['id']),this['_suggestionState']['delete'](_0xb40319),_0x575dde;});}return _0xb40319;}['_isBlockAttribute'](_0x5e1a59){return this['_blockAttributeKeys']['has'](_0x5e1a59);}['_updateSuggestionData'](_0x2391b5,_0x22416d){const _0x4381b2=this['editor']['plugins']['get']('PendingActions'),_0xa8b382=this['getSuggestion'](_0x2391b5);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0xa8b382['_saved']){const _0x97321a=_0x4381b2['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x2391b5,_0x22416d)['then'](()=>{_0x4381b2['remove'](_0x97321a);});}else _0xa8b382['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x2391b5,_0x22416d);});}}['_getSuggestionData'](_0x26be11){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x282cc9('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x26be11);}['_handleNewSuggestionMarker'](_0x221cd0){const {id:_0x4d563e,type:_0x5867d6,subType:_0x19c7f2,authorId:_0x97c395}=this['_splitMarkerName'](_0x221cd0),_0x4267af=this['_suggestions']['get'](_0x4d563e)||this['_createSuggestion'](_0x5867d6,_0x19c7f2,_0x4d563e,_0x97c395,{});switch(this['_checkSuggestionCorrectness'](_0x4267af,_0x5867d6,_0x19c7f2,_0x97c395),this['_suggestionState']['get'](_0x4267af)){case'notReady':this['_getSuggestionData'](_0x4d563e)['then'](_0x14916c=>{let _0x21dd65=Promise['resolve']();_0x14916c['hasComments']&&(_0x21dd65=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x4d563e})),_0x21dd65['then'](()=>{this['addSuggestionData'](_0x14916c)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x4267af,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x4d563e,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x4267af,'ready'),this['fire']('suggestionLoaded',_0x4267af);break;case'ready':this['fire']('suggestionChanged',_0x4267af);}return _0x4267af['addMarkerName'](_0x221cd0),_0x4267af;}['_refreshSuggestionsChain'](_0x952cc4){const _0x586814=Array['from'](_0x952cc4),_0x4c90b0=_0x586814['filter'](_0x205804=>'attribute'==_0x205804['type']);this['_refreshAttributeSuggestionsChain'](_0x4c90b0);const _0x356f64=_0x586814['filter'](_0x2484c5=>!_0x2484c5['isMultiRange']&&'attribute'!=_0x2484c5['type']),_0x474188=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2b5538=>!_0x2b5538['isMultiRange']&&'attribute'!=_0x2b5538['type']),_0x1c4162=_0x474188['filter'](_0x93fd19=>!_0x952cc4['has'](_0x93fd19)),_0x4faaed=new Map(_0x474188['map'](_0x48eb1d=>[_0x48eb1d,this['_suggestionFactory']['getSuggestionCallback'](_0x48eb1d['type'],_0x48eb1d['subType'],'chain')])),_0x437379=new Map(_0x474188['map'](_0xb57a35=>[_0xb57a35,_0xb57a35['getFirstRange']()])),_0x282b69=new Set(),_0x2ccbba=new Set();for(let _0x4fa80b=0x0;_0x4fa80b<_0x356f64['length'];_0x4fa80b++)_0x47fbf2(_0x356f64[_0x4fa80b],_0x356f64,_0x4fa80b+0x1);for(let _0x2362f9=0x0;_0x2362f9<_0x356f64['length'];_0x2362f9++)_0x47fbf2(_0x356f64[_0x2362f9],_0x1c4162,0x0);const _0x2623a3=new Set();for(let _0x37948e=0x0;_0x37948e<_0x356f64['length'];_0x37948e++){const _0x118510=_0x356f64[_0x37948e];!_0x2ccbba['has'](_0x118510)&&_0x118510['previous']&&(_0x2623a3['add'](_0x118510['previous']),_0x118510['previous']['next']===_0x118510&&(_0x118510['previous']['next']=null),_0x118510['previous']=null),!_0x282b69['has'](_0x118510)&&_0x118510['next']&&(_0x2623a3['add'](_0x118510['next']),_0x118510['next']['previous']===_0x118510&&(_0x118510['next']['previous']=null),_0x118510['next']=null);}function _0x47fbf2(_0x3f79fc,_0x3c6db5,_0x555cb2){for(let _0x55163f=_0x555cb2;_0x55163f<_0x3c6db5['length'];_0x55163f++){const _0x138190=_0x4a104b(_0x3f79fc,_0x3c6db5[_0x55163f]);_0x138190&&(_0x138190[0x0]['next']=_0x138190[0x1],_0x138190[0x1]['previous']=_0x138190[0x0],_0x282b69['add'](_0x138190[0x0]),_0x2ccbba['add'](_0x138190[0x1]));}}function _0x4a104b(_0x5ddc21,_0x44657c){if(_0x5ddc21['author']['id']!==_0x44657c['author']['id'])return null;const _0x50a7db=_0x4faaed['get'](_0x5ddc21)(_0x5ddc21,_0x44657c,_0x437379['get'](_0x5ddc21),_0x437379['get'](_0x44657c));if(!_0x50a7db)return null;return _0x4faaed['get'](_0x44657c)(_0x5ddc21,_0x44657c,_0x437379['get'](_0x5ddc21),_0x437379['get'](_0x44657c))?_0x50a7db[0x1]['commentThread']&&_0x50a7db[0x1]['commentThread']['length']?null:_0x50a7db:null;}_0x2623a3['size']&&this['_refreshSuggestionsChain'](_0x2623a3);}['_refreshAttributeSuggestionsChain'](_0x59cff4){if(0x0==_0x59cff4['length'])return;const _0x4b4f66=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4cc5e4=>'attribute'==_0x4cc5e4['type']&&_0x4cc5e4['_isDataLoaded']),_0x38e067=[],_0x1bbce8=new Map();for(const _0x588506 of _0x4b4f66){const _0x3f9156=_0x957ba(_0x588506['attributes']);_0x1bbce8['has'](_0x3f9156)||(_0x1bbce8['set'](_0x3f9156,_0x38e067['length']),_0x38e067['push']([]));const _0x23c3c6=_0x1bbce8['get'](_0x3f9156);_0x38e067[_0x23c3c6]['push'](_0x588506);}!(function(){_0x38e067['sort']((_0x131e1a,_0x3006d5)=>{const _0x2a165d=_0x131e1a[0x0]['createdAt'],_0x3891d0=_0x3006d5[0x0]['createdAt'];return _0x2a165d==_0x3891d0?_0x131e1a[0x0]['attributes']['groupId']<_0x3006d5[0x0]['attributes']['groupId']?-0x1:0x1:_0x2a165d<_0x3891d0?-0x1:0x1;});for(const _0x5a1e4c of _0x38e067)_0x5a1e4c['sort']((_0x73e26d,_0x4b83ca)=>_0x73e26d['id']<_0x4b83ca['id']?-0x1:0x1);}());for(let _0x468220=0x0;_0x468220<_0x38e067['length'];_0x468220++){if(0x0==_0x38e067[_0x468220]['length'])continue;const _0x4b96e8=[];for(let _0x185eb3=_0x468220+0x1;_0x185eb3<_0x38e067['length'];_0x185eb3++)0x0!=_0x38e067[_0x185eb3]['length']&&_0x562b3e(_0x38e067[_0x468220],_0x38e067[_0x185eb3])&&_0x4b96e8['push'](_0x185eb3);for(const _0x1cf06b of _0x4b96e8)_0x38e067[_0x468220]=_0x38e067[_0x468220]['concat'](_0x38e067[_0x1cf06b]),_0x38e067[_0x1cf06b]=[];}for(const _0x18e522 of _0x38e067)for(let _0x1891a6=0x0;_0x1891a6<_0x18e522['length'];_0x1891a6++){const _0x1aa1a4=_0x18e522[_0x1891a6+0x1]||null;_0x18e522[_0x1891a6]['next']!==_0x1aa1a4&&(_0x18e522[_0x1891a6]['next']=_0x1aa1a4);}for(const _0xd8d066 of _0x38e067)for(let _0x4ec860=0x0;_0x4ec860<_0xd8d066['length'];_0x4ec860++){const _0x4ad4dd=_0xd8d066[_0x4ec860-0x1]||null;_0xd8d066[_0x4ec860]['previous']!==_0x4ad4dd&&(_0xd8d066[_0x4ec860]['previous']=_0x4ad4dd);}function _0x562b3e(_0xc7eb13,_0x3d8443){if(_0xc7eb13[0x0]['attributes']['groupId']!==_0x3d8443[0x0]['attributes']['groupId']&&_0xc7eb13[0x0]['author']!==_0x3d8443[0x0]['author'])return!0x1;if(!function(_0x13578d,_0x496c67){if(!_0x13578d['hasComments']&&!_0x496c67['hasComments'])return!0x0;if(_0x13578d['hasComments']&&_0x496c67['hasComments'])return!0x1;if(_0x13578d['hasComments']&&_0x496c67['createdAt']<_0x13578d['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x496c67['hasComments']&&_0x13578d['createdAt']<_0x496c67['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0xc7eb13[0x0],_0x3d8443[0x0]))return!0x1;const _0x569d30=Ft(_0xc7eb13[0x0]['attributes'],'groupId'),_0x5ba9a4=Ft(_0x3d8443[0x0]['attributes'],'groupId');if(!_0x5391a0(_0x569d30,_0x5ba9a4))return!0x1;return!!_0xc7eb13['every'](_0x854e1d=>_0x3d8443['some'](_0x2cdc6f=>_0x854e1d['getFirstRange']()['isEqual'](_0x2cdc6f['getFirstRange']())))&&_0x3d8443['every'](_0x466117=>_0xc7eb13['some'](_0x1c3b16=>_0x466117['getFirstRange']()['isEqual'](_0x1c3b16['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x36d707){const _0xfa2285=Array['from'](_0x36d707),_0x5c2793=this['getSuggestions']({'skipNotAttached':!0x0}),_0x25da0d=_0x5c2793['filter'](_0x3c81eb=>!_0x36d707['has'](_0x3c81eb)),_0x292f14=new Map(_0xfa2285['map'](_0x389c6e=>[_0x389c6e,this['_suggestionFactory']['getSuggestionCallback'](_0x389c6e['type'],_0x389c6e['subType'],'join')])),_0x204df4=new Map(_0x5c2793['map'](_0x584c65=>[_0x584c65,_0x584c65['getRanges']()]));for(let _0x236600=0x0;_0x236600<_0xfa2285['length'];_0x236600++){if(_0x2a579a(this,_0xfa2285[_0x236600],_0xfa2285,_0x236600+0x1))return!0x0;}for(let _0x177888=0x0;_0x177888<_0xfa2285['length'];_0x177888++){if(_0x2a579a(this,_0xfa2285[_0x177888],_0x25da0d,0x0))return!0x0;}return!0x1;function _0x2a579a(_0x422ccb,_0x4eb302,_0x7f520c,_0x7cf59b){for(let _0x409549=_0x7cf59b;_0x409549<_0x7f520c['length'];_0x409549++){const _0x3f946a=_0x7f520c[_0x409549];if(_0x3f946a['type']!==_0x4eb302['type']||_0x3f946a['author']['id']!==_0x4eb302['author']['id']||_0x3f946a['subType']!==_0x4eb302['subType'])continue;if(!Qt(_0x4eb302,_0x3f946a))continue;if('attribute'==_0x4eb302['type']&&_0x4eb302['data']['oldValue']!=_0x3f946a['data']['oldValue'])continue;if('attribute'==_0x4eb302['type']&&_0x422ccb['_isBlockAttribute'](_0x4eb302['data']['key']))continue;if('formatBlock'==_0x4eb302['type']){const _0x46f467=_0x422ccb['editor']['model'],_0x4a0f30=_0x4eb302['getContainedElement']();if(_0x4a0f30&&(_0x46f467['schema']['isObject'](_0x4a0f30)||_0x46f467['schema']['isLimit'](_0x4a0f30)))continue;}const _0x22884c=_0x292f14['get'](_0x4eb302),_0xed7f5b=_0x204df4['get'](_0x4eb302),_0x345e13=_0x204df4['get'](_0x3f946a),_0x44a094=_0x4eb302['commentThread']&&_0x4eb302['commentThread']['length'],_0x14d1a0=_0x3f946a['commentThread']&&_0x3f946a['commentThread']['length'];if(!_0x44a094&&_0x22884c(_0x345e13,_0xed7f5b))return _0x422ccb['_joinSuggestions'](_0x3f946a,_0x4eb302),_0x204df4['delete'](_0x4eb302),!0x0;if(!_0x14d1a0&&_0x22884c(_0xed7f5b,_0x345e13))return _0x422ccb['_joinSuggestions'](_0x4eb302,_0x3f946a),_0x204df4['delete'](_0x3f946a),!0x0;}return!0x1;}}['_joinSuggestions'](_0xcd526a,_0x5e2f71){if(_0xcd526a['isMultiRange']){for(const _0xabed1e of _0x5e2f71['getRanges']())_0xcd526a['addRange'](_0xabed1e);}else{const _0x3f4ef0=_0x5e2f71['getFirstRange']()['end'];this['_setSuggestionRange'](_0xcd526a,this['_model']['createRange'](_0xcd526a['getFirstRange']()['start'],_0x3f4ef0));}_0x5e2f71['removeMarkers']();}['_getMarkerAnnouncementText'](_0x98321c,_0x10599c,_0x4d0d87){const _0xbc9f74=_0x98321c['startsWith']('format')||_0x98321c['startsWith']('attribute')?'FORMATTING':_0x98321c['toUpperCase']();return c(this['editor']['locale'],_0x10599c+'_'+_0xbc9f74+'_SUGGESTION_ANNOUNCEMENT',_0x4d0d87);}['_initAriaMarkerChangeAnnouncements'](){const _0x39bac3=this['editor'];if(!_0x39bac3['ui'])return;const {ariaLiveAnnouncer:_0x2fb7ad}=_0x39bac3['ui'];_0x5759a6(this['_model'],({left:_0x2da707,entered:_0x1e1ce0})=>{for(const _0x244915 of _0x2da707){const {group:_0x588e38,type:_0x5bd5ce}=this['_splitMarkerName'](_0x244915['name']);if('suggestion'===_0x588e38){_0x2fb7ad['announce'](this['_getMarkerAnnouncementText'](_0x5bd5ce,'LEAVE'));break;}}for(const _0x15d597 of _0x1e1ce0){const {group:_0x1b5f2b,type:_0x3e3b48}=this['_splitMarkerName'](_0x15d597['name']);if('suggestion'===_0x1b5f2b){_0x2fb7ad['announce'](this['_getMarkerAnnouncementText'](_0x3e3b48,'ENTER',_0x5575e9(_0x53f1fc)));break;}}});}['_processAttributeChanges'](_0x43ce5b){if(this['_recordAttributeSuggestions'])return!0x1;const _0x265698=this['editor'],_0x23971a=_0x265698['model']['document']['differ']['getChanges']();if(0x0==_0x23971a['length'])return!0x1;const _0x432733=[],_0x481a0f=_0x23971a['filter'](_0x524acb=>'attribute'==_0x524acb['type']),_0x3c4598=_0x23971a['filter'](_0x279eb0=>'insert'==_0x279eb0['type']&&'$text'!=_0x279eb0['name']),_0x2765c9=_0x23971a['filter'](_0x4f1a64=>'remove'==_0x4f1a64['type']&&'$text'!=_0x4f1a64['name']);for(const _0xc49d60 of _0x481a0f)_0x432733['push']({'key':_0xc49d60['attributeKey'],'newValue':_0xc49d60['attributeNewValue'],'oldValue':_0xc49d60['attributeOldValue'],'range':qt(_0xc49d60['range'],_0x265698['model'])});for(const _0x34dc1e of _0x3c4598){const _0x5b92f4=_0x2765c9['find'](_0x5c34b9=>_0x5c34b9['position']['isEqual'](_0x34dc1e['position']));_0x5b92f4&&_0x432733['push']({'key':u,'newValue':_0x34dc1e['name'],'oldValue':_0x5b92f4['name'],'range':_0x265698['model']['createRangeOn'](_0x34dc1e['position']['nodeAfter'])});}return 0x0!=_0x432733['length']&&this['_reduceExistingSuggestions'](_0x43ce5b,_0x432733);}['_processAttributeSuggestions'](_0xea3a62){let _0x20a354=!0x1;const _0x3d2918=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x521ac2=>_0x521ac2['data']['newRange']&&_0x521ac2['name']['startsWith']('suggestion:attribute:'));for(const _0xcef25 of _0x3d2918){const {subType:_0x3aa2ed,id:_0x3cb9cb}=this['_splitMarkerName'](_0xcef25['name']),_0x1b601a=_0x3aa2ed['split']('|')[0x0];for(const _0x4d3c62 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x4d3c62['id']!=_0x3cb9cb&&'attribute'==_0x4d3c62['type']&&_0x4d3c62['data']&&_0x4d3c62['data']['key']==_0x1b601a&&_0x4d3c62['getFirstRange']()['isIntersecting'](_0xcef25['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x4d3c62,_0xcef25['data']['newRange'],_0xea3a62),_0x20a354=!0x0);}return _0x20a354;}['_recordAttributeChanges'](_0x168776){this['_recordAttributeSuggestions']=!0x0,_0x168776();}['_isRegisteredAttribute'](_0xec22c3){const _0x36cc22=this['_isBlockAttribute'](_0xec22c3),_0x404acb=this['_inlineAttributeKeys']['has'](_0xec22c3);return _0x36cc22||_0x404acb;}['_reduceExistingSuggestions'](_0x5ae765,_0x483995){if(0x0==_0x483995['length'])return!0x1;let _0x35afbb=!0x1;for(const _0x82409 of _0x483995){const _0xf7979=this['_findSuggestions'](_0x82409['range'],'attribute')['filter'](_0x5ce908=>!_0x5ce908['meta']['isNextTo'])['map'](_0x5e526a=>_0x5e526a['suggestion']),_0x3532b5=_0x957ba({'newValue':_0x82409['newValue']});_0xf7979['filter'](_0x5bb3cd=>{const [_0x3e47a0,_0x3ba05e]=_0x5bb3cd['subType']['split']('|');return _0x3e47a0==_0x82409['key']&&_0x3ba05e!=_0x3532b5;})['forEach'](_0x35be24=>{this['_reduceSuggestionAttributeRange'](_0x35be24,_0x82409['range'],_0x5ae765),_0x35afbb=!0x0;});}return _0x35afbb;}['_reduceSuggestionAttributeRange'](_0x5522c8,_0x4222e3,_0x92822f){const _0x800b62=_0x5522c8['getFirstRange']()['getDifference'](_0x4222e3);0x0!==_0x800b62['length']?0x1!==_0x800b62['length']?this['_breakSuggestionMarker'](_0x5522c8,_0x4222e3['start'],_0x4222e3['end']):this['_setSuggestionRange'](_0x5522c8,_0x800b62[0x0]):_0x92822f['removeMarker'](_0x5522c8['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x460215){this['_editor']=_0x460215,this['_model']=_0x460215['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0xfaed68,_0x52626f,_0x4bd94e,_0x42cbfa,_0x4fb051,_0xf8794){return new o(this['_model'],{'type':_0xfaed68,'subType':_0x52626f,'id':_0x4bd94e,'author':_0x42cbfa,'creator':_0x42cbfa,'attributes':_0x4fb051,'onAttributesChange':_0xf8794,'onAccept':(..._0x115bd4)=>this['getSuggestionCallback'](_0xfaed68,_0x52626f,'accept')(..._0x115bd4),'onDiscard':(..._0x19c8e8)=>this['getSuggestionCallback'](_0xfaed68,_0x52626f,'discard')(..._0x19c8e8)});}['registerCustomCallback'](_0x18cd9,_0x5357bf,_0x5bbacb,_0x1d9f8d){const _0x5cc592=_0x18cd9+':'+_0x5357bf+':'+_0x5bbacb;this['_customCallbacks']['set'](_0x5cc592,_0x1d9f8d);}['getSuggestionCallback'](_0x4eeed3,_0x5af851,_0x5ea2c0){const _0x5d6082=_0x4eeed3+':'+_0x5af851+':'+_0x5ea2c0;return this['_customCallbacks']['get'](_0x5d6082)||this['_defaultCallbacks']['get'](_0x4eeed3+':'+_0x5ea2c0);}['_registerDefaultCallbacks'](){const _0x24db5d=()=>!0x1,_0x497b56=_0x41cffa=>{_0x41cffa['sort']((_0x43cac8,_0x4fa7cd)=>_0x43cac8['start']['isBefore'](_0x4fa7cd['start'])?0x1:-0x1),this['_model']['change'](_0x14263f=>{for(const _0x5cdda1 of _0x41cffa){let _0xd4f10;_0xd4f10=_0x5cdda1['end']['isAtEnd']&&_0x5cdda1['end']['parent']==_0x5cdda1['start']['nodeAfter']?_0x14263f['createSelection'](_0x5cdda1['start']['nodeAfter'],'on'):_0x14263f['createSelection'](_0x5cdda1),this['_model']['deleteContent'](_0xd4f10,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0xa63f2e=(_0x125584,_0x4cd859)=>{_0x4cd859&&this['_model']['change'](_0x491efb=>{const {commandName:_0x11184e,commandParams:_0x8bdfe8=[]}=_0x4cd859,_0x3fc724=_0x125584['map'](_0x2f2046=>(Lt(_0x2f2046)&&(_0x2f2046=this['_model']['createRange'](_0x2f2046['end'])),_0x2f2046))['filter'](_0x24bd69=>'$graveyard'!==_0x24bd69['root']['rootName']);if(_0x3fc724['length']<0x1)return;const _0x582769=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x24412c=>_0x163541['fromRange'](_0x24412c));_0x491efb['setSelection'](_0x3fc724);for(const _0x224a3e of this['_editor']['commands']['commands']())_0x224a3e['refresh']();_0x8bdfe8['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x11184e,..._0x8bdfe8);const _0x218b1a=_0x582769['filter'](_0x5c74fe=>'$graveyard'!=_0x5c74fe['root']['rootName']);_0x218b1a['length']>0x0&&_0x491efb['setSelection'](_0x218b1a);for(const _0x38a98d of _0x582769)_0x38a98d['detach']();});},_0x263a25=(_0x305079,_0x1ce86b)=>0x1==_0x305079['length']&&0x1==_0x1ce86b['length']&&_0x305079[0x0]['end']['isEqual'](_0x1ce86b[0x0]['start']),_0x7861ba=(_0x5d19ff,_0x168219,_0x3c8f5d,_0x22e6f8)=>Wt(_0x5d19ff,_0x168219,_0x3c8f5d,_0x22e6f8)?[_0x5d19ff,_0x168219]:Wt(_0x168219,_0x5d19ff,_0x22e6f8,_0x3c8f5d)?[_0x168219,_0x5d19ff]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x24db5d),this['_defaultCallbacks']['set']('insertion:discard',_0x497b56),this['_defaultCallbacks']['set']('insertion:join',_0x263a25),this['_defaultCallbacks']['set']('insertion:chain',_0x7861ba),this['_defaultCallbacks']['set']('deletion:accept',_0x497b56),this['_defaultCallbacks']['set']('deletion:discard',_0x24db5d),this['_defaultCallbacks']['set']('deletion:join',_0x263a25),this['_defaultCallbacks']['set']('deletion:chain',_0x7861ba),this['_defaultCallbacks']['set']('formatInline:accept',_0xa63f2e),this['_defaultCallbacks']['set']('formatInline:discard',_0x24db5d),this['_defaultCallbacks']['set']('formatInline:join',_0x263a25),this['_defaultCallbacks']['set']('formatInline:chain',_0x24db5d),this['_defaultCallbacks']['set']('formatBlock:accept',_0xa63f2e),this['_defaultCallbacks']['set']('formatBlock:discard',_0x24db5d),this['_defaultCallbacks']['set']('formatBlock:join',_0x263a25),this['_defaultCallbacks']['set']('formatBlock:chain',_0x24db5d),this['_defaultCallbacks']['set']('attribute:accept',_0x24db5d),this['_defaultCallbacks']['set']('attribute:discard',(_0x5c6a03,_0x4adc2a)=>{if(!_0x4adc2a)return;const _0x43d51b=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x5a0233=>{if(_0x4adc2a['key']==u)for(const _0x57be54 of _0x5c6a03){const _0x331c6c=_0x57be54['start']['nodeAfter'],_0x332154=_0x4adc2a['oldValue'];_0x5a0233['rename'](_0x331c6c,_0x332154);}else{if(_0x43d51b['_isBlockAttribute'](_0x4adc2a['key'])){for(const _0x1cb886 of _0x5c6a03)void 0x0!==_0x4adc2a['oldValue']?_0x5a0233['setAttribute'](_0x4adc2a['key'],_0x4adc2a['oldValue'],_0x1cb886['start']['nodeAfter']):_0x5a0233['removeAttribute'](_0x4adc2a['key'],_0x1cb886['start']['nodeAfter']);}else{for(const _0x3ae9af of _0x5c6a03)_0x4adc2a['oldValue']?_0x5a0233['setAttribute'](_0x4adc2a['key'],_0x4adc2a['oldValue'],_0x3ae9af):_0x5a0233['removeAttribute'](_0x4adc2a['key'],_0x3ae9af);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x263a25);}}function Gt(_0x566389,_0x56218a,_0x22bc60){for(const _0x5eb43e of _0x56218a['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x5eb43e['root']==_0x5eb43e)return!0x1;if(!_0x22bc60['containsItem'](_0x5eb43e))return!0x1;if(_0x566389['isObject'](_0x5eb43e)||_0x566389['isLimit'](_0x5eb43e))return!0x0;}return!0x1;}function Lt(_0x371edb){return _0x371edb['end']['parent']==_0x371edb['start']['nodeAfter']&&_0x371edb['end']['isAtStart'];}function Jt(_0x3ea8ea,_0x42633f,_0x40eb0b,_0xacbde4){const _0xa00b61=_0x168ba3=>!_0x168ba3['item']['is']('$textProxy')&&!_0xacbde4['isObject'](_0x168ba3['item']),_0x1b42b3=_0x3ea8ea['start']['getLastMatchingPosition'](_0xa00b61),_0x41ecc2=_0x3ea8ea['end']['getLastMatchingPosition'](_0xa00b61,{'direction':'backward'});return(!_0x3ea8ea['start']['isEqual'](_0x1b42b3)||!_0x3ea8ea['end']['isEqual'](_0x41ecc2))&&(_0x1b42b3['isBefore'](_0x41ecc2)?_0x40eb0b['updateMarker'](_0x42633f,{'range':_0x40eb0b['createRange'](_0x1b42b3,_0x41ecc2)}):_0x40eb0b['removeMarker'](_0x42633f),!0x0);}function Kt(_0xc97cf8){return _0x957ba(_0xc97cf8);}function Ht(_0x3d2932){const _0x16150d=_0x3d2932['start']['nodeAfter'];return _0x16150d&&_0x16150d['is']('element');}function qt(_0x3daaf3,_0x2d4246){return null==_0x3daaf3['end']['nodeBefore']&&_0x3daaf3['end']['parent']==_0x3daaf3['start']['nodeAfter']?zt(_0x3daaf3['start']['nodeAfter'],_0x2d4246):_0x3daaf3;}function zt(_0xc80341,_0x5ba307){const _0x3afe04=_0x5ba307['schema']['isObject'](_0xc80341)||_0x5ba307['schema']['isSelectable'](_0xc80341);return _0x5ba307['createRange'](_0x5ba307['createPositionAt'](_0xc80341,'before'),_0x3afe04?_0x5ba307['createPositionAfter'](_0xc80341):_0x5ba307['createPositionAt'](_0xc80341,'end'));}function Wt(_0x427e70,_0x24efc5,_0x2f5ec9,_0x324c9a){return!!Qt(_0x427e70,_0x24efc5)&&_0x2f5ec9['end']['isEqual'](_0x324c9a['start']);}function Qt(_0x57b505,_0x1dc207){if(!_0x57b505['_isDataLoaded']||!_0x1dc207['_isDataLoaded'])return!0x1;const _0x1c155a=new Set(Object['keys'](_0x57b505['attributes'])),_0x407135=new Set(Object['keys'](_0x1dc207['attributes']));if(_0x1c155a['delete']('groupId'),_0x407135['delete']('groupId'),0x0==_0x1c155a['size']&&0x0==_0x407135['size'])return!0x0;if(_0x1c155a['size']!=_0x407135['size'])return!0x1;const _0x51b4ec={..._0x57b505['attributes']},_0x4b0add={..._0x1dc207['attributes']};return delete _0x51b4ec['groupId'],delete _0x4b0add['groupId'],JSON['stringify'](_0x51b4ec)==JSON['stringify'](_0x4b0add);}function Xt(_0x118972,_0x1adb1f){const _0x23bf83=Yt(_0x118972['attributes']),_0x51e8cb=Yt(_0x1adb1f);if(!_0x118972['_isDataLoaded'])return!0x1;for(const _0x18818e of Object['keys'](_0x51e8cb))if(!_0x5391a0(_0x23bf83[_0x18818e],_0x51e8cb[_0x18818e]))return!0x1;return!0x0;}function Yt(_0x1d3ba8){const _0x2ebd45=Object['assign']({},_0x1d3ba8);return delete _0x2ebd45['skipNestingCheck'],delete _0x2ebd45['tablePasteChainId'],_0x2ebd45;}class pe extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x41a6e0(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x59b877,_0x2f5f33,_0x2380ab,_0x4165df){super(),this['model']=_0x2f5f33,this['view']=_0x2380ab,this['commentThreadController']=_0x4165df,this['_editor']=_0x59b877,this['_acceptCommand']=_0x59b877['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x59b877['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x27da6b,_0x5f3327)=>_0x27da6b||_0x5f3327),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x662a3c=>_0x662a3c&&this['_editor']['model']['canEditAt'](_0x2f5f33['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x2b7ac8=>_0x2b7ac8&&this['_editor']['model']['canEditAt'](_0x2f5f33['getRanges']())),this['_pendingAction']=null,_0x2380ab['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x2380ab,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x2380ab,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x2380ab,'change:isDirty',()=>{_0x2380ab['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 _0x27caab=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x27caab);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x2b7e95{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x5d3388,_0x879adf,_0x115c2c,_0x415f00){super(_0x5d3388),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x3e003f(_0x5d3388,c(_0x5d3388,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x879adf['authoredAt']),this['bind']('authoredAt')['to'](_0x879adf),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',_0x879adf,'authoredAt',this,'descriptionParts',(_0x4c8a1a,_0x40cc2a,_0x49fb20)=>{const _0x3916e6=_0x49fb20['map'](_0x489567=>ls(_0x489567['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x4c8a1a-0x1,_0x879adf['author']['name'],_0x40cc2a?_0x415f00['formatDateTime'](_0x40cc2a):'',new DOMParser()['parseFromString'](_0x3916e6,'text/html')['body']['textContent']]);}),this['focusables']=new _0x35d84b(),this['focusTracker']=new _0x344c1c(),this['keystrokes']=new _0x1f7efc(),this['focusCycler']=new _0x59adf9({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x352b85=>_0x352b85['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x879adf,this['_localUser']=_0x115c2c,this['_config']=_0x415f00,_0x415f00['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x8379d3(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x359e05}=this['_config'];this['commentsListView']=new _0x359e05(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',_0x7da22e=>_0x7da22e+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x5b7e7e,_0x4d07e4)=>_0x5b7e7e||!!_0x4d07e4);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x13c923}=this['_config'],_0xa814f3=new _0x13c923(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x4d07a1=_0xa814f3['commentInputView'];return _0xa814f3['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x4d07a1,'value',(_0x4831da,_0x3d4beb,_0x54e16a)=>!!_0x54e16a||_0x4831da&&!_0x3d4beb),_0x4d07a1['on']('submit',(_0x14b17a,_0x1a8d28)=>{this['fire']('addComment',_0x1a8d28),_0x4d07a1['editor']['setData']('');}),_0x4d07a1['on']('cancel',()=>this['focus']()),_0x4d07a1['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0xa814f3;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x322b3a,_0x52eefb,_0x175158,_0x36d4a7){super(_0x322b3a,_0x52eefb,_0x175158,_0x36d4a7),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x48cfa9=>_0x48cfa9&&_0x48cfa9[0x0]?_0x48cfa9[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x5dc8e4,_0x10f305)=>{let _0x456fb4='';for(const _0xfc8fd0 of _0x5dc8e4)_0x456fb4+='<p>'+ls(_0xfc8fd0['content'],_0xfc8fd0['color'])+'</p>';return _0x10f305?_0x456fb4:ti(_0x456fb4,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x36d4a7['SuggestionView'](_0x322b3a,_0x52eefb,{'formatDateTime':_0x36d4a7['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 _0x257fa3=this['bindTemplate'],_0x5115ad=[this['suggestionView']];return this['commentsListView']&&_0x5115ad['push'](this['commentsListView']),this['commentThreadInputView']&&_0x5115ad['push'](this['commentThreadInputView']),_0x5115ad['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x257fa3['if']('isActive','ck-suggestion-wrapper--active'),_0x257fa3['to']('type',_0x1a75ea=>'ck-suggestion-'+_0x1a75ea),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':_0x257fa3['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x5115ad};}['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 we extends _0x2b7e95{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x22cd32,_0x41d95a,_0x51e315){super(_0x22cd32),this['_model']=_0x41d95a,this['_config']=_0x51e315,this['set']('description',''),this['bind']('authoredAt')['to'](_0x41d95a),this['acceptButton']=this['_createButton'](c(_0x22cd32,'Accept\x20suggestion'),_0x3ba673,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x22cd32,'Discard\x20suggestion'),_0xfbbf7f,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x9fd442(_0x22cd32,_0x41d95a['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x35d84b([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x344c1c(),this['keystrokes']=new _0x1f7efc(),this['focusCycler']=new _0x59adf9({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x4ac0b2=>_0x4ac0b2['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x289471=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x289471['innerHTML']=this['description'],this['on']('change:description',(_0x2e8448,_0x5d2e82,_0x114f72)=>{_0x289471['innerHTML']=_0x114f72;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0xefd4f7=this['bindTemplate'],_0x2929c3=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0xefd4f7['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0xefd4f7['to']('authoredAt',_0x22b1e9=>this['_config']['formatDateTime'](_0x22b1e9))}]}]},{'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']&&_0x2929c3['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':_0x2929c3}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):c(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):c(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x26646a,_0x2fadb8,_0x7d7a72,_0x1251f7,_0x4cb5db){const _0x3c2b0d=new _0x284054(this['locale']);return _0x3c2b0d['set']({'label':_0x26646a,'icon':_0x2fadb8,'tooltip':!0x0,'tooltipPosition':_0x4cb5db}),_0x3c2b0d['extendTemplate']({'attributes':{'class':_0x7d7a72}}),_0x3c2b0d['on']('execute',()=>{this['fire'](_0x1251f7,this['_model']['id']);}),_0x3c2b0d;}['_setupKeyboardNavigation'](){const _0x8a2a43=this['element'];this['keystrokes']['listenTo'](_0x8a2a43);for(const _0x21da36 of this['focusables'])this['focusTracker']['add'](_0x21da36['element']),this['keystrokes']['listenTo'](_0x21da36['element']);this['keystrokes']['set']('enter',(_0x53f402,_0x561d36)=>{_0x8a2a43===_0x53f402['target']&&(this['focusCycler']['focusFirst'](),_0x561d36());}),this['keystrokes']['set']('esc',(_0x5be5eb,_0xac2662)=>{_0x8a2a43!==_0x5be5eb['target']&&(this['focus'](),_0xac2662());});}}class d extends _0x47cef7{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x277bbd,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3bf07c){super(_0x3bf07c),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x2ea9ed=this['editor']['config'];_0x2ea9ed['define']('trackChanges.SuggestionThreadView',fe),_0x2ea9ed['define']('trackChanges.SuggestionView',we),_0x2ea9ed['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x2ea9ed['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x54c4e2,_0x538446){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x25bedf,_0x3d123c]of this['_handleControllerBuffer']){const _0x238c5c=this['_suggestionToController']['has'](_0x25bedf);_0x238c5c||_0x3d123c?_0x238c5c&&_0x3d123c&&this['_destroyController'](_0x25bedf):this['_initializeController'](_0x25bedf);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x54c4e2,_0x538446);}['init'](){const _0x3eaa52=this['editor'],_0x4d55a1=_0x3eaa52['plugins']['get']('TrackChangesEditing'),_0x32d469=_0x3eaa52['plugins']['get']('Annotations'),_0x217be0=_0x3eaa52['plugins']['get']('EditorAnnotations'),_0x5b538e=_0x3eaa52['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x217be0['addSourceCollector'](()=>{const _0x4bf15d=[];for(const [_0x4e3c11,_0x4d148e]of Array['from'](this['_suggestionToController'])){const _0x748113=_0x4e3c11['getAllAdjacentSuggestions'](),_0x357702=[];for(const _0x56e735 of _0x748113){if(!_0x56e735['isInContent'])continue;if(_0x56e735['isMultiRange']){_0x357702['push'](..._0x56e735['getRanges']());continue;}const _0x1d2788=_0x56e735['getFirstRange']();if(_0x357702['length']>0x0){const _0x1a59f1=_0x357702[0x0]['getJoined'](_0x1d2788);if(_0x1a59f1){_0x357702[0x0]=_0x1a59f1;continue;}}_0x357702['push'](_0x1d2788);}_0x4bf15d['push']([_0x4d148e['view'],_0x357702]);}return _0x4bf15d;}),this['listenTo'](_0x4d55a1,'suggestionLoaded',(_0x2819de,_0x369ce1)=>{this['listenTo'](_0x369ce1,'change:previous',(_0x209ad7,_0x347b49,_0x82c95f,_0x5183e8)=>{_0x369ce1['isInContent']&&(null==_0x82c95f?(this['_updateController'](_0x5183e8['head']),this['_handleSuggestionControllerDelayed'](_0x369ce1,!0x1)):(this['_updateController'](_0x82c95f['head']),null==_0x5183e8&&this['_handleSuggestionControllerDelayed'](_0x369ce1,!0x0)));}),null!==_0x369ce1['previous']?this['_updateController'](_0x369ce1['head']):this['_handleSuggestionControllerDelayed'](_0x369ce1,!0x1);}),this['listenTo'](_0x4d55a1,'suggestionUnloaded',(_0x4ccb49,_0x354e01,_0x15c329)=>{this['stopListening'](_0x354e01,'change:previous'),this['_handleControllerBuffer']['delete'](_0x354e01),this['_suggestionToController']['has'](_0x354e01)&&this['_destroyController'](_0x354e01),_0x15c329&&this['_updateController'](_0x15c329['head']);}),this['listenTo'](_0x4d55a1,'suggestionChanged',(_0x378d1a,_0x3d3608)=>{this['_updateController'](_0x3d3608);}),this['listenTo'](_0x32d469,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x5b538e,'addComment',(_0x59a8a2,{threadId:_0x195854,isFromAdapter:_0x297a4b})=>{if(_0x297a4b||!_0x4d55a1['hasSuggestion'](_0x195854))return;const _0x5f5863=_0x4d55a1['getSuggestion'](_0x195854);this['_suggestionToController']['get'](_0x5f5863)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1d5e7e=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1a32a6;for(const _0x506690 in _0x1d5e7e){const _0x1fc128=_0x506690,_0x4bb15c=_0x1d5e7e[_0x1fc128];if('trackChangesLicenseKeyValid'==_0x4bb15c||'trackChangesLicenseKeyInvalid'==_0x4bb15c||'trackChangesLicenseKeyExpired'==_0x4bb15c||'trackChangesLicenseKeyDomainLimit'==_0x4bb15c||'trackChangesLicenseKeyNotAllowed'==_0x4bb15c||'trackChangesLicenseKeyEvaluationLimit'==_0x4bb15c||'trackChangesLicenseKeyTrialLimit'==_0x4bb15c||'trackChangesLicenseKeyUsageLimit'==_0x4bb15c){delete _0x1d5e7e[_0x1fc128],_0x1a32a6=_0x4bb15c,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x1a32a6&&_0x1d5e7e['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x1a32a6&&_0x1d5e7e['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x1a32a6&&_0x1d5e7e['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x1a32a6&&_0x1d5e7e['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x1a32a6&&_0x1d5e7e['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x1a32a6&&_0x1d5e7e['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x1a32a6&&_0x1d5e7e['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x40e052=this['editor']['plugins']['get']('Annotations'),_0xb952d8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x42e478=Array['from'](_0x40e052['activeAnnotations'],_0x241a3e=>_0x241a3e['innerView'])['filter'](_0x50a3e0=>this['_viewToController']['has'](_0x50a3e0)),_0x24d6ec=[];for(const _0x597ab8 of _0x42e478){const _0x351b07=this['_viewToController']['get'](_0x597ab8)['model']['getAllAdjacentSuggestions']();_0x24d6ec['push'](..._0x351b07['reduce']((_0x6b7944,_0x13be87)=>[..._0x6b7944,..._0x13be87['getMarkerNames']()],[]));}_0xb952d8['activeMarkers']=_0x24d6ec;}['_addUIComponentsToFactory'](){const _0x408161=this['editor'],_0x228998=_0x408161['locale'],_0x2cf917=c(_0x228998,'Track\x20changes'),_0x54da4a=new _0x1552c8([{'type':'switchbutton','model':new _0x5d80b4({'withText':!0x0,'isToggleable':!0x0,'label':_0x2cf917,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x5d80b4({'withText':!0x0,'label':c(_0x228998,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5d80b4({'withText':!0x0,'label':c(_0x228998,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5d80b4({'withText':!0x0,'label':c(_0x228998,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5d80b4({'withText':!0x0,'label':c(_0x228998,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x408161['plugins']['has']('TrackChangesPreview')&&_0x54da4a['addMany']([{'type':'separator'},{'type':'button','model':new _0x5d80b4({'withText':!0x0,'label':c(_0x228998,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x306cfe of _0x54da4a)if(ke(_0x306cfe)){const _0x5f361=_0x408161['commands']['get'](_0x306cfe['model']['commandName']);_0x306cfe['model']['bind']('isOn','isEnabled')['to'](_0x5f361,'value','isEnabled');}_0x408161['ui']['componentFactory']['add']('trackChanges',_0x259273=>this['_createToolbarButton'](_0x259273,_0x54da4a,_0x2cf917)),_0x408161['ui']['componentFactory']['add']('menuBar:trackChanges',_0xf35859=>this['_createMenuBarMenu'](_0xf35859,_0x54da4a,_0x2cf917));}['_createToolbarButton'](_0x13eff4,_0x3657bf,_0x5b1f1d){const _0x10a421=_0x4c45d5(_0x13eff4,_0x4c8ce3),_0x3f5fa7=this['editor']['commands']['get']('trackChanges');_0x10a421['buttonView']['set']({'tooltip':_0x5b1f1d,'label':_0x5b1f1d,'icon':_0x5cfcb3}),_0x10a421['buttonView']['bind']('isOn')['to'](_0x3f5fa7,'value'),_0x10a421['buttonView']['on']('execute',()=>{_0x3f5fa7['execute'](),this['editor']['editing']['view']['focus']();}),_0x1d3f3a(_0x10a421,_0x3657bf,{'role':'menu'});const _0xeafdf1=[];for(const _0x25f476 of _0x3657bf)ke(_0x25f476)&&_0xeafdf1['push'](this['editor']['commands']['get'](_0x25f476['model']['commandName']));const _0x549ab4=_0x10a421['buttonView'];return _0x549ab4['actionView']['unbind']('isEnabled'),_0x549ab4['arrowView']['unbind']('isEnabled'),_0x549ab4['actionView']['bind']('isEnabled')['to'](_0x3f5fa7,'isEnabled'),_0x549ab4['arrowView']['bind']('isEnabled')['toMany'](_0xeafdf1,'isEnabled',(..._0x3f64ce)=>_0x3f64ce['some'](_0x5a7358=>_0x5a7358)),_0x10a421['on']('execute',_0xc217e9=>{this['editor']['execute'](_0xc217e9['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x10a421;}['_createMenuBarMenu'](_0x4be391,_0x3f3ec3,_0x45a078){const _0x2d9248=new _0x2e6830(_0x4be391),_0x57f4eb=this['editor']['commands']['get']('trackChanges');_0x2d9248['buttonView']['set']({'label':_0x45a078,'icon':_0x5cfcb3});const _0x162ace=new _0x4044f0(_0x4be391);for(const _0x30820c of _0x3f3ec3){if('separator'==_0x30820c['type']){_0x162ace['items']['add'](new _0x3b3bc5(_0x4be391));continue;}const _0x28c980=new _0x4274e7(_0x4be391,_0x2d9248),_0x433ec2=new _0x2abb55(_0x4be391),_0x6b8262=_0x30820c['model'];_0x433ec2['bind'](...Object['keys'](_0x6b8262))['to'](_0x6b8262),_0x433ec2['delegate']('execute')['to'](_0x2d9248),_0x433ec2['on']('execute',()=>{this['editor']['execute'](_0x6b8262['commandName']),this['editor']['editing']['view']['focus']();}),_0x28c980['children']['add'](_0x433ec2),_0x162ace['items']['add'](_0x28c980);}return _0x2d9248['bind']('isEnabled')['to'](_0x57f4eb,'isEnabled'),_0x2d9248['panelView']['children']['add'](_0x162ace),_0x2d9248;}['_initializeController'](_0x5ea1b5){const _0x5eb6c6=this['editor'],_0x4401b5=_0x5eb6c6['config'],_0x5d11ea=_0x5eb6c6['plugins']['get']('Annotations'),_0x2f6657=_0x5eb6c6['plugins']['get']('CommentsRepository'),_0x66fa3f=_0x5eb6c6['plugins']['get']('EditorAnnotations'),_0x176695=_0x5eb6c6['plugins']['get'](_0x277bbd)['me'],_0x41b6fe=_0x4401b5['get']('trackChanges')['SuggestionThreadView'],_0x178cec=_0x4401b5['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x5d1bed,CommentThreadInputView:_0x48afa2}=_0x5eb6c6['plugins']['get']('CommentsUI');let _0x2234af,_0x49823c,_0x33eaa3;this['_annotationViews']['has'](_0x5ea1b5['id'])?(_0x49823c=this['_annotationViews']['get'](_0x5ea1b5['id']),_0x2234af=_0x49823c['mainView']):(_0x2234af=new _0x41b6fe(_0x5eb6c6['locale'],_0x5ea1b5,_0x176695,{'disableComments':this['_disableComments'],'editorConfig':{..._0x4401b5['get']('comments.editorConfig'),'licenseKey':_0x4401b5['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x4401b5['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x4401b5['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x4401b5['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0xf52362(_0x4401b5['get']('locale'),_0x5eb6c6['locale']),'CommentView':_0x4401b5['get']('comments')['CommentView'],'CommentsListView':_0x5d1bed,'CommentThreadInputView':_0x48afa2,'SuggestionView':_0x178cec}),_0x2234af['suggestionView']['acceptButton']['on']('execute',()=>{_0x5eb6c6['editing']['view']['focus']();}),_0x2234af['suggestionView']['discardButton']['on']('execute',()=>{_0x5eb6c6['editing']['view']['focus']();}),_0x49823c=_0x5d11ea['createAnnotationView'](this['editor']['locale'],_0x2234af),_0x49823c['bind']('isDirty')['to'](_0x2234af,'isDirty'),_0x49823c['bind']('length')['to'](_0x2234af),_0x49823c['bind']('type')['to'](_0x2234af,'type',_0x44b879=>'suggestion-'+_0x44b879),_0x2234af['on']('escape',()=>{_0x33eaa3['fire']('escape');}),this['_annotationViews']['set'](_0x5ea1b5['id'],_0x49823c));const _0x5aeefb=_0x2f6657['createCommentThreadController'](_0x5ea1b5['commentThread'],_0x2234af),_0x23f640=new pe(_0x5eb6c6,_0x5ea1b5,_0x2234af,_0x5aeefb),_0x5e87f2=_0x5ea1b5['getAllAdjacentSuggestions']()['filter'](_0x47f798=>_0x47f798['isInContent']);_0x2234af['descriptionParts']=_0x5eb6c6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x5e87f2),this['_suggestionToController']['set'](_0x5ea1b5,_0x23f640),this['_viewToController']['set'](_0x2234af,_0x23f640),_0x33eaa3=_0x5d11ea['createAnnotation']({'view':_0x49823c,'target':()=>{const _0x277c9f=[],_0x471f53=_0x5ea1b5['getAllAdjacentSuggestions']()['filter'](_0x3831fd=>_0x3831fd['isInContent']);for(const _0x5dd0f3 of _0x471f53)_0x277c9f['push'](..._0x5dd0f3['getMarkers']());return _0x5ea3c2(_0x5eb6c6['editing'],_0x277c9f);},'type':()=>'suggestion-'+_0x23f640['view']['type']}),_0x2f6657['_bindAnnotationToEditors'](_0x2234af,_0x33eaa3),_0x5d11ea['add'](_0x33eaa3),_0x66fa3f['registerAnnotation'](_0x33eaa3);}['_destroyController'](_0x5557b1){const _0x2d9586=this['editor']['plugins']['get']('CommentsRepository'),_0x7dd157=this['editor']['plugins']['get']('Annotations'),_0x39b246=this['_suggestionToController']['get'](_0x5557b1),_0x2c74b6=_0x39b246['view'],_0x2dfce0=_0x7dd157['getByInnerView'](_0x2c74b6);_0x2d9586['_unbindEditors'](_0x2c74b6),_0x2dfce0&&_0x7dd157['remove'](_0x2dfce0),this['_suggestionToController']['delete'](_0x5557b1),this['_viewToController']['delete'](_0x2c74b6),_0x39b246['destroy']();}['_updateController'](_0x107c59){if(!_0x107c59['isInContent']||!this['_suggestionToController']['has'](_0x107c59))return;const _0x5ebdef=this['editor']['plugins']['get']('TrackChangesEditing'),_0x7d6d59=this['_suggestionToController']['get'](_0x107c59),_0x10dc68=_0x107c59['getAllAdjacentSuggestions']();_0x7d6d59['view']['descriptionParts']=_0x5ebdef['descriptionFactory']['getDescriptions'](_0x10dc68);}['destroy'](){for(const _0x541a7e of this['_suggestionToController']['keys']())this['_destroyController'](_0x541a7e);for(const _0x138060 of this['_annotationViews']['values']())_0x138060['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x1c2ba8){return'model'in _0x1c2ba8;}class k extends _0x47cef7{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x3155ee){this['editor']['plugins']['get'](p)['adapter']=_0x3155ee;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x24534f){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x24534f);}['getSuggestions']({skipNotAttached:_0x12ceb6=!0x1,toJSON:_0x1417bb=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x12ceb6,'toJSON':_0x1417bb});}['getSuggestion'](_0x4bb71b){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x4bb71b);}}const w=['Pagination'];class T extends _0x47cef7{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x7125ff=this['editor'];if(_0x7125ff['config']['define']('trackChangesData.editorCreator',_0x2a1e60=>{const _0x3151cc=_0x7125ff['model']['document']['getRootNames']()['reduce']((_0x335502,_0x5305cb)=>(_0x335502[_0x5305cb]='',_0x335502),{});return _0x7125ff['constructor']['create'](_0x3151cc,_0x2a1e60);}),'function'!=typeof _0x7125ff['config']['get']('trackChangesData')['editorCreator'])throw new _0x282cc9('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0xe4b606){return N(this['editor'],!0x0,_0xe4b606);}['getDataWithDiscardedSuggestions'](_0x3eb61e){return N(this['editor'],!0x1,_0x3eb61e);}}class D extends _0x47cef7{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x17458c){function _0x203b49(_0x170842){return _0x170842['map'](_0x128671=>String['fromCharCode'](_0x128671))['join']('');}super(_0x17458c),this['result']='end',_0x17458c[_0x203b49([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x203b49([0x76,0x69,0x65,0x77])][_0x203b49([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x203b49([0x61,0x75,0x74,0x6f]),_0x17458c[_0x203b49([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x203b49([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x203b49([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x203b49([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x203b49([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 Ge(_0x1b528b){return void 0x0!==_0x1b528b['getRootsAttributes'];}async function N(_0x59085a,_0x30abb3,_0x5d7547){const _0x2a6ff7=_0x1f99b0(_0x59085a,w);_0x2a6ff7['plugins']['push'](p,D),_0x2a6ff7['rootsAttributes']=Ge(_0x59085a)?_0x59085a['getRootsAttributes']():void 0x0;const _0x7dd4e0=document['createDocumentFragment'](),_0xd3c877=_0x59085a['config']['get']('trackChangesData')['editorCreator'],_0x176cf2=await _0xd3c877(_0x2a6ff7,()=>function(_0x38f48f){const _0x2fec33=document['createElement']('div');return _0x38f48f['appendChild'](_0x2fec33),_0x2fec33;}(_0x7dd4e0));!function(_0x29a173,_0x3c2c63){const _0x572333=_0x29a173['model']['document']['getRootNames']()['reduce']((_0x436dd9,_0x2fd560)=>(_0x436dd9[_0x2fd560]=_0x29a173['data']['get']({'rootName':_0x2fd560}),_0x436dd9),{}),_0x100ba4=_0x29a173['plugins']['get']('Users')['users']['map'](_0x5f3bb8=>({'id':_0x5f3bb8['id'],'name':_0x5f3bb8['name']})),_0x2847a8=_0x29a173['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x15573a=_0x29a173['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x47c0ec=_0x3c2c63['plugins']['get']('Users'),_0x4f0053=_0x3c2c63['plugins']['get']('TrackChangesEditing'),_0x1662df=_0x3c2c63['plugins']['get']('CommentsRepository');for(const _0x5a26b5 of _0x1662df['getCommentThreads']())_0x5a26b5['remove']();for(const _0x1063a0 of _0x100ba4)_0x47c0ec['getUser'](_0x1063a0['id'])||_0x47c0ec['addUser'](_0x1063a0);_0x47c0ec['me']||_0x47c0ec['useAnonymousUser']();for(const _0x33ad04 of _0x15573a)_0x1662df['addCommentThread'](_0x33ad04);for(const _0x2a243a of _0x2847a8)_0x4f0053['addSuggestionData'](_0x2a243a);_0x3c2c63['data']['set'](_0x572333);}(_0x59085a,_0x176cf2),_0x176cf2['execute'](_0x30abb3?'acceptAllSuggestions':'discardAllSuggestions');const _0x26e3a4=Ge(_0x176cf2)?_0x176cf2['getFullData'](_0x5d7547):_0x176cf2['data']['get'](_0x5d7547);return await _0x176cf2['destroy'](),_0x26e3a4;}class Me extends _0x2b7e95{['options'];constructor(_0x40b344,_0x24be82){super(_0x40b344),this['options']=_0x24be82,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-track-changes-preview'],'tabindex':-0x1}});}['render'](){super['render'](),this['element']['style']['width']=this['options']['dialogRects']['width']+'px',this['element']['style']['height']=this['options']['dialogRects']['height']+'px';}['setPreviewData'](_0x32fdab,_0x19f5cd){if(!this['element'])return;const _0x52c40d=[];for(const [_0x1dc77f,_0x59178a]of _0x32fdab){const _0x3c7ded=document['createElement']('div');_0x3c7ded['setAttribute']('data-ck-root-name',_0x1dc77f),_0x3c7ded['className']=_0x59178a['classes']+'\x20ck-track-changes-preview__root-container',_0x3c7ded['innerHTML']=_0x59178a['content'],_0x52c40d['push'](_0x3c7ded);}_0x19f5cd(this['element'],_0x52c40d),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x569fd9{constructor(_0x4ac96f){super(_0x4ac96f),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x5c1aaa=this['editor'],_0x3d0a3d=_0x5c1aaa['locale'],_0x4464a0=_0x5c1aaa['plugins']['get']('Dialog');let _0x35d37d;const _0x1bd3c5=function(_0x403242){const _0x1c3809={};if('editables'in _0x403242['ui']['view']){for(const [_0x54f2a4,_0x266298]of Object['entries'](_0x403242['ui']['view']['editables']))_0x1c3809[_0x54f2a4]=_0x266298['element'];}else _0x1c3809[_0x403242['model']['document']['getRootNames']()[0x0]]=_0x403242['ui']['view']['editable']['element'];return _0x1c3809;}(_0x5c1aaa),_0x54d91d=function(_0x493f18){let _0x4a696b=0x0;for(const _0xccb6d6 of Object['values'](_0x493f18))_0x4a696b=Math['max'](_0x4a696b,_0xccb6d6['getBoundingClientRect']()['width']);let _0x5b67cb=0x0;for(const _0x44a37a of Object['values'](_0x493f18))_0x5b67cb+=_0x44a37a['getBoundingClientRect']()['height'];const _0x13c4be=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x19c29b=Math['min'](_0x5b67cb,_0x13c4be);return{'width':_0x4a696b,'height':_0x19c29b};}(_0x1bd3c5);_0x4464a0['show']({'id':'finalContentPreview','title':c(_0x3d0a3d,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x3d0a3d,{'dialogRects':_0x54d91d}),'onHide':()=>{_0x35d37d['detachFromDom']();},'onShow':()=>{_0x5c1aaa['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x14c3f3=>{const _0x4adeb4=this['_standarizeRootsData'](_0x14c3f3,_0x5c1aaa,_0x1bd3c5);_0x4464a0['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x4adeb4,_0x5c1aaa['config']['get']('trackChanges.preview.renderFunction'));}),_0x35d37d=new _0x312a1f(_0x3d0a3d,[_0x4464a0['view']]),_0x35d37d['attachToDom'](),_0x35d37d['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x5c1aaa['once']('destroy',()=>{_0x35d37d['detachFromDom']();});const _0x4ccbfd=_0x4464a0['view']['headerView']['class'];_0x4464a0['view']['headerView']['class']=_0x4ccbfd?_0x4ccbfd+'\x20ck-reset_all':'ck-reset_all',_0x4464a0['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x4464a0['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x1c2669=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x289c41=_0x1c2669['previewMode'],_0x5964f7={};if('$labels'===_0x289c41){for(const _0x2abad5 of _0x1c2669['getMergeFieldsIds']())_0x5964f7[_0x2abad5]=_0x1c2669['getLabel'](_0x2abad5)||_0x2abad5;}else{const _0x9aab77='$defaultValues'===_0x289c41?_0x1c2669['getDefaultValues']():_0x1c2669['getDataSetValues'](_0x289c41,!0x0);for(const _0x1fdda6 of Object['entries'](_0x9aab77)){const [_0x53ff7a,_0x25bfe2]=_0x1fdda6;_0x5964f7[_0x53ff7a]=null!==_0x25bfe2?_0x25bfe2:_0x1c2669['getLabel'](_0x53ff7a)||_0x53ff7a;}}return{'mergeFieldsData':_0x5964f7};}['_standarizeRootsData'](_0x4f7f30,_0xb060bb,_0x5961f0){let _0x23a72;if('string'==typeof _0x4f7f30){const _0x1a7710=_0xb060bb['model']['document']['getRootNames']()[0x0];_0x23a72={[_0x1a7710]:_0x4f7f30};}else _0x23a72=_0x4f7f30;const _0x5b52c1=this['_fixMediaEmbeds'](_0x23a72,_0xb060bb),_0x4d4843=function(_0x1b3479,_0x37daf6){for(const [_0x3f331d,_0x232c11]of _0x1b3479)_0x232c11['classes']=_0x37daf6[_0x3f331d]['classList']['value']['replace']('ck-focused','');return _0x1b3479;}(this['_sortRoots'](_0xb060bb)['reduce']((_0x4f67a0,_0x298700)=>(_0x4f67a0['push']([_0x298700,{'content':_0x5b52c1[_0x298700],'classes':''}]),_0x4f67a0),[]),_0x5961f0);return _0x4d4843;}['_fixMediaEmbeds'](_0x42668d,_0x543c04){if(!_0x543c04['plugins']['has']('MediaEmbedEditing'))return _0x42668d;const _0x5850c0=_0x543c04['plugins']['get']('MediaEmbedEditing');for(const [_0x4de5c0,_0x341799]of Object['entries'](_0x42668d)){const _0x11db40=document['createElement']('div');_0x11db40['innerHTML']=_0x341799,(_0x11db40['querySelectorAll']('figure.media')['forEach'](_0x50987c=>{const _0x2d213f=_0x50987c['querySelector']('oembed');if(_0x2d213f){const _0x36afed=_0x2d213f['getAttribute']('url');if(_0x36afed){const _0x19f0f7=_0x5850c0['registry']['getMediaViewElement'](new _0x62969d(_0x543c04['editing']['view']['document']),_0x36afed,{'elementName':'','renderForEditingView':!0x0}),_0x4d5f91=document['createElement']('div');_0x4d5f91['classList']['add']('ck-media__wrapper'),_0x19f0f7['render'](_0x4d5f91,_0x543c04['editing']['view']['domConverter']),_0x2d213f['replaceWith'](_0x4d5f91);}}}),_0x42668d[_0x4de5c0]=_0x11db40['innerHTML']);}return _0x42668d;}['_sortRoots'](_0x51a5df){if(!function(_0x437e7c){return void 0x0!==_0x437e7c['getRootsAttributes'];}(_0x51a5df))return _0x51a5df['model']['document']['getRootNames']();const _0x27687d=[],_0x2bdee3=new Map();for(const _0x5752c5 of _0x51a5df['model']['document']['getRootNames']()){const _0x4b0b54=_0x51a5df['editing']['view']['getDomRoot'](_0x5752c5)['getClientRects']()['item'](0x0);_0x27687d['push'](_0x5752c5),_0x2bdee3['set'](_0x5752c5,_0x4b0b54);}return _0x27687d['sort']((_0x3db369,_0xda21c)=>{const _0x391ad5=_0x2bdee3['get'](_0x3db369),_0x5477d1=_0x2bdee3['get'](_0xda21c);return _0x391ad5['y']-_0x5477d1['y']||_0x391ad5['x']-_0x5477d1['x'];}),_0x27687d;}}class te extends _0x47cef7{static get['requires'](){return[T,_0x2e6c1d];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x244847){super(_0x244847),_0x244847['commands']['add']('previewFinalContent',new re(this['editor'])),_0x244847['config']['define']('trackChanges.preview.renderFunction',(_0x303698,_0x50a01b)=>{for(const _0x54f6d9 of _0x50a01b)_0x303698['appendChild'](_0x54f6d9);});}}export{us as BaseSuggestionThreadView,o as Suggestion,fe as SuggestionThreadView,we as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
|