@ckeditor/ckeditor5-track-changes 44.2.0-alpha.16 → 44.2.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +25 -25
- 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/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/imagestyle.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/legacylist.js +1 -1
- package/src/integrations/legacylistproperties.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/mergefields.js +1 -1
- package/src/integrations/multilevellist.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/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/trackchangesconfig.d.ts +4 -8
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.d.ts +1 -3
- 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/src/integrations/emoji.d.ts +0 -17
- package/src/integrations/emoji.js +0 -23
- package/src/integrations/replacesourcecommand.d.ts +0 -18
- package/src/integrations/replacesourcecommand.js +0 -23
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as
|
|
24
|
-
_0x4c7cb3(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x174ed2,_0x3b3bf2){super(),this['id']=_0x3b3bf2['id'],this['type']=_0x3b3bf2['type'],this['subType']=_0x3b3bf2['subType']||null,this['author']=_0x3b3bf2['author'],this['creator']=_0x3b3bf2['creator']||_0x3b3bf2['author'],this['isExternal']=Boolean(_0x3b3bf2['attributes']&&_0x3b3bf2['attributes']['@external']),this['data']=null,this['_model']=_0x174ed2,this['_onAccept']=_0x3b3bf2['onAccept'],this['_onDiscard']=_0x3b3bf2['onDiscard'],this['_onAttributesChange']=_0x3b3bf2['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x3b3bf2['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 _0x3146ac=this;for(;_0x3146ac['previous'];)_0x3146ac=_0x3146ac['previous'];return _0x3146ac;}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'](_0x27be5d){this['_markerNames']['add'](_0x27be5d);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x1364de=>this['_model']['markers']['get'](_0x1364de))['filter'](_0x2051d6=>_0x2051d6);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x3dd5c1=>{for(const _0x435dfd of this['getMarkers']())_0x3dd5c1['removeMarker'](_0x435dfd);}),this['_markerNames']['clear']();}['removeMarker'](_0x4407d0){this['_model']['change'](_0x4588c4=>{_0x4588c4['removeMarker'](_0x4407d0);}),this['_markerNames']['delete'](_0x4407d0);}['addRange'](_0x56849d){const _0x149d8b='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x149d8b),this['_model']['change'](_0x5c7d2e=>{_0x5c7d2e['addMarker'](_0x149d8b,{'range':_0x56849d,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x43ca61){for(const _0x1f50c6 of this['getRanges']())if(_0x1f50c6['isIntersecting'](_0x43ca61))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x50866b=>_0x50866b['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x16bc29,_0x217f5f)=>[..._0x16bc29,..._0x217f5f['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0xfb0945=this['getRanges']();if(0x1!=_0xfb0945['length'])return null;const _0x162aef=_0xfb0945[0x0],_0xcba4d=_0x162aef['start']['nodeAfter'],_0x58550f=_0x162aef['end']['nodeBefore'];return _0xcba4d instanceof _0x2c3551?_0xcba4d!=_0x58550f?null:_0xcba4d: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 _0x2804e5=[];let _0x473379=this['head'];for(;_0x473379;)_0x2804e5['push'](_0x473379),_0x473379=_0x473379['next'];return _0x2804e5;}['setAttribute'](_0x5a3280,_0xf3037b){const _0x1e7d38=_0x3a090f(this['attributes']);_0x22d377(_0x1e7d38,_0x5a3280,_0xf3037b),_0x2a92e3(_0x1e7d38,this['attributes'])||(this['attributes']=_0x1e7d38,this['_onAttributesChange'](_0x1e7d38));}['removeAttribute'](_0x15fd4e){const _0x3ceb74=_0x3a090f(this['attributes']);_0x253307(_0x3ceb74,_0x15fd4e),_0x2a92e3(_0x3ceb74,this['attributes'])||(this['attributes']=_0x3ceb74,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 _0x3cfc9c()['substr'](0x1,0x5);}}function o(_0x57709e,_0x5d7b15,_0x46fe61){const _0x4c0f7f=_0x57709e['t'],t=_0x57709e['t'];switch(_0x5d7b15){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',_0x46fe61);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x46fe61);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x46fe61);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x46fe61);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x46fe61);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',_0x46fe61);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x46fe61);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',_0x46fe61);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x46fe61);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x46fe61);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x46fe61);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x46fe61);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x46fe61);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x46fe61);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x46fe61);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x46fe61);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x46fe61);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x46fe61);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x46fe61);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x46fe61);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x46fe61);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x46fe61);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x46fe61);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x46fe61);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'},_0x46fe61);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x46fe61);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x46fe61);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x46fe61);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x46fe61);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x46fe61);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'},_0x46fe61);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x46fe61);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x46fe61);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x46fe61);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x46fe61);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'},_0x46fe61);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x46fe61);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'},_0x46fe61);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'},_0x46fe61);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x46fe61);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'},_0x46fe61);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x46fe61);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'},_0x46fe61);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x46fe61);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x46fe61);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'},_0x46fe61);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x46fe61);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 _0x4c0f7f({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x46fe61);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x4c0f7f({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x46fe61);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x46fe61);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'},_0x46fe61);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'},_0x46fe61);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'},_0x46fe61);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x5d7b15;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0xce0453,_0x31ef52){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0xce0453,this['_locale']=_0x31ef52;}['getDescriptions'](_0x2041c8){const _0x10767e=[],_0x2c99a7=new Set(),_0x165003=new Set();for(let _0x1b8a59=0x0;_0x1b8a59<_0x2041c8['length'];_0x1b8a59++){const _0x2071ae=_0x2041c8[_0x1b8a59];if(!_0x2071ae['isInContent'])continue;const _0x4779a7=this['_handleCustomCallbackDescription'](_0x2071ae);if(_0x4779a7){if(null!=_0x2071ae['subType']){if(_0x2c99a7['has'](_0x2071ae['subType']))continue;_0x2c99a7['add'](_0x2071ae['subType']);}_0x10767e['push'](_0x4779a7);}else{if('attribute'!=_0x2071ae['type'])'insertion'!=_0x2071ae['type']&&'deletion'!=_0x2071ae['type']||this['_handleInsertRemoveSuggestionDescription'](_0x10767e,_0x2071ae,_0x2041c8[_0x1b8a59+0x1]);else{const _0x4bd116=_0x2071ae['data']['key'];if(_0x165003['has'](_0x4bd116))continue;_0x165003['add'](_0x2071ae['data']['key']),_0x4bd116==m?this['_handleRenameSuggestionDescription'](_0x10767e,_0x2071ae):this['_handleAttributeSuggestionDescription'](_0x10767e,_0x2071ae);}}}return this['_resolveDescriptionItems'](_0x10767e);}['registerDescriptionCallback'](_0xbac5f8){this['_customCallbacks']['push'](_0xbac5f8);}['registerElementLabel'](_0x2e7d49,_0x36f987,_0x5de939=_0x19d522['normal']){'function'==typeof _0x2e7d49?_0x2ce136(this['_itemLabelsCallbacks'],{'matchingCallback':_0x2e7d49,'label':_0x36f987,'priority':_0x5de939}):this['_itemLabels']['set'](_0x2e7d49,_0x36f987);}['registerAttributeLabel'](_0x14053a,_0x303105){this['_attributeLabels']['set'](_0x14053a,_0x303105);}['getItemLabel'](_0x550d8a,_0x1d426d=0x1){let _0x4ff6e4;for(const _0x464acf of this['_itemLabelsCallbacks'])if(_0x464acf['matchingCallback'](_0x550d8a)){_0x4ff6e4=_0x464acf['label'];break;}return _0x4ff6e4||(_0x4ff6e4=this['_itemLabels']['get'](_0x550d8a['name'])),_0x4ff6e4?_0x4ff6e4(_0x1d426d):0x1!==_0x1d426d?_0x1d426d+'\x20'+_0x550d8a['name']+'s':''+_0x550d8a['name'];}['_addDescriptionItems'](_0x3752bd,_0x5f1c5e){const _0x46ad02=_0x5f1c5e['getFirstRange']()['getWalker'](),_0x3c5f29='insertion'==_0x5f1c5e['type']?'add':'remove';for(const _0x2e976e of _0x46ad02){const _0x129c1d=_0x2e976e['item'],_0x620e3e=_0x3752bd[_0x3752bd['length']-0x1];if(_0x129c1d['is']('$textProxy'))_0x620e3e&&_0x620e3e['type']['indexOf']('Container')>-0x1&&_0x3752bd['pop'](),_0x620e3e&&'text'==_0x620e3e['type']?_0x620e3e[_0x3c5f29]+=_0x129c1d['data']:_0x3752bd['push']({'type':'text','add':'add'==_0x3c5f29?_0x129c1d['data']:'','remove':'remove'==_0x3c5f29?_0x129c1d['data']:''});else{if(this['_schema']['isObject'](_0x129c1d)){const _0x42bc1c=_0x129c1d;if(_0x620e3e&&_0x620e3e['type']['indexOf']('Container')>-0x1&&_0x3752bd['pop'](),'elementEnd'==_0x2e976e['type'])continue;_0x620e3e&&_0x620e3e['type']==_0x3c5f29+'Object'&&_0x620e3e['element']['name']==_0x42bc1c['name']?_0x620e3e['quantity']++:_0x3752bd['push']({'type':_0x3c5f29+'Object','element':_0x42bc1c,'quantity':0x1}),_0x46ad02['skip'](_0x3e1e26=>!('elementEnd'==_0x3e1e26['type']&&_0x3e1e26['item']==_0x129c1d));}else{if(this['_schema']['checkChild'](_0x129c1d,'$text')||_0x129c1d['is']('element','softBreak')){const _0x4c792b=_0x129c1d;if('add'==_0x3c5f29&&'elementStart'==_0x2e976e['type']||'remove'==_0x3c5f29&&'elementEnd'==_0x2e976e['type'])continue;if(_0x620e3e&&-0x1==_0x620e3e['type']['indexOf']('Container')){'text'==_0x620e3e['type']&&(_0x620e3e[_0x3c5f29]+='\x0a');continue;}let _0x391c20;if(_0x391c20='add'==_0x3c5f29?_0x4c792b['nextSibling']&&!this['_schema']['isObject'](_0x4c792b['nextSibling'])?_0x4c792b['nextSibling']:null:_0x4c792b['previousSibling']&&!this['_schema']['isObject'](_0x4c792b['previousSibling'])?_0x4c792b['previousSibling']:null,_0x4c792b['isEmpty']||_0x391c20&&_0x391c20['isEmpty']){const _0x1a0cb7=_0x391c20&&_0x391c20['isEmpty']?_0x391c20:_0x4c792b;_0x620e3e&&_0x620e3e['type']==_0x3c5f29+'EmptyContainer'&&_0x620e3e['element']['name']==_0x1a0cb7['name']?_0x620e3e['quantity']++:_0x3752bd['push']({'type':_0x3c5f29+'EmptyContainer','element':_0x1a0cb7,'quantity':0x1});}else _0x3752bd['push']({'type':_0x3c5f29+'Container','element':_0x4c792b});}}}}}['_resolveDescriptionItems'](_0x4897af){const _0xbeac26=this['_locale'],_0x4dcef9=[],_0x6f8ce1=[],_0xa00cfb=[];for(const _0x2d180f of _0x4897af)switch(_0x2d180f['type']){case'text':if(_0x2d180f['add']=_0x2d180f['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x2d180f['remove']=_0x2d180f['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x2d180f['add']&&''!=_0x2d180f['remove']){_0x4dcef9['push']({'type':'replace','content':o(_0xbeac26,'REPLACE_TEXT',['\x22'+_0x2d180f['remove']+'\x22','\x22'+_0x2d180f['add']+'\x22'])});continue;}if(null!=_0x2d180f['add']['match'](/^ +$/)){_0x4dcef9['push']({'type':'insertion','content':o(_0xbeac26,'*Insert:*\x20%0',o(_0xbeac26,'ELEMENT_SPACE',_0x2d180f['add']['length']))});continue;}if(null!=_0x2d180f['remove']['match'](/^ +$/)){_0x4dcef9['push']({'type':'deletion','content':o(_0xbeac26,'*Remove:*\x20%0',o(_0xbeac26,'ELEMENT_SPACE',_0x2d180f['remove']['length']))});continue;}if(''!=_0x2d180f['add']){_0x4dcef9['push']({'type':'insertion','content':o(_0xbeac26,'*Insert:*\x20%0','\x22'+_0x2d180f['add']+'\x22')});continue;}_0x4dcef9['push']({'type':'deletion','content':o(_0xbeac26,'*Remove:*\x20%0','\x22'+_0x2d180f['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x4dcef9['push']({'type':'insertion','content':o(_0xbeac26,'*Insert:*\x20%0',this['getItemLabel'](_0x2d180f['element'],_0x2d180f['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x4dcef9['push']({'type':'deletion','content':o(_0xbeac26,'*Remove:*\x20%0',this['getItemLabel'](_0x2d180f['element'],_0x2d180f['quantity']))});continue;case'addContainer':_0x4dcef9['push']({'type':'insertion','content':o(_0xbeac26,'*Split:*\x20%0',this['getItemLabel'](_0x2d180f['element'],_0x2d180f['quantity']))});continue;case'removeContainer':_0x4dcef9['push']({'type':'deletion','content':o(_0xbeac26,'*Merge:*\x20%0',this['getItemLabel'](_0x2d180f['element'],_0x2d180f['quantity']))});continue;case'addFormat':_0x6f8ce1['push'](_0x2d180f['key']);continue;case'removeFormat':_0xa00cfb['push'](_0x2d180f['key']);continue;default:_0x4dcef9['push'](_0x2d180f);}if(_0x6f8ce1['length']){const _0x3b1f86=_0x6f8ce1['map'](_0x4cd286=>this['_attributeLabels']['has'](_0x4cd286)?this['_attributeLabels']['get'](_0x4cd286):_0x4cd286)['join'](',\x20');_0x4dcef9['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x3b1f86)});}if(_0xa00cfb['length']){const _0x569503=_0xa00cfb['map'](_0xa2713d=>this['_attributeLabels']['has'](_0xa2713d)?this['_attributeLabels']['get'](_0xa2713d):_0xa2713d)['join'](',\x20');_0x4dcef9['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x569503)});}return _0x4dcef9;}['_handleCustomCallbackDescription'](_0x42499e){for(const _0x550048 of this['_customCallbacks']){const _0x231f6b=_0x550048(_0x42499e);if(_0x231f6b&&'type'in _0x231f6b)return _0x231f6b;}}['_handleAttributeSuggestionDescription'](_0x349294,_0x4de222){const _0xdd1cec=_0x4de222['data'],_0x403a40=void 0x0===_0xdd1cec['newValue']?'removeFormat':'addFormat';_0x349294['push']({'type':_0x403a40,'key':_0xdd1cec['key']});}['_handleRenameSuggestionDescription'](_0x468f1d,_0x5b9a4f){_0x468f1d['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x5b9a4f['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x578b7f,_0x44106d,_0x21a5e6){if(this['_addDescriptionItems'](_0x578b7f,_0x44106d),_0x21a5e6&&_0x21a5e6['getFirstRange']()&&!_0x44106d['getFirstRange']()['end']['isEqual'](_0x21a5e6['getFirstRange']()['start'])){const _0x508c00=_0x578b7f[_0x578b7f['length']-0x1],_0x188fca='insertion'==_0x44106d['type']?'add':'remove';_0x508c00&&'text'==_0x508c00['type']&&(_0x508c00[_0x188fca]+='\x0a');}}}class U extends _0x41fe8e{['afterInit'](){const _0x2c2c7a=this['editor'],_0x402baf=_0x2c2c7a['plugins']['get']('TrackChangesEditing');_0x2c2c7a['commands']['get']('showAIAssistant')&&_0x402baf['enableCommand']('showAIAssistant');}}class V extends _0x41fe8e{['afterInit'](){const _0x518c9c=this['editor'],_0x269dfd=_0x518c9c['locale'];if(!_0x518c9c['plugins']['has']('AlignmentEditing'))return;const _0x4e1f06=_0x518c9c['plugins']['get']('TrackChangesEditing');_0x4e1f06['enableDefaultAttributesIntegration']('alignment'),_0x4e1f06['registerBlockAttribute']('alignment'),_0x4e1f06['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x269dfd,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x577e60=this['editor'],_0x265c3f=_0x577e60['locale'];_0x577e60['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xee9260=>{if('formatBlock'!=_0xee9260['type'])return;const {data:_0x502b24}=_0xee9260;if(_0x502b24&&'alignment'==_0x502b24['commandName']){const _0x111c17=_0x502b24['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x265c3f,'*Format:*\x20%0',function(_0x17b3b7){switch(_0x17b3b7){case'left':return o(_0x265c3f,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x265c3f,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x265c3f,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x265c3f,'FORMAT_JUSTIFY_TEXT');}}(_0x111c17))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x41fe8e{['afterInit'](){const _0x1527f8=this['editor'],_0x293d06=_0x1527f8['plugins']['get']('TrackChangesEditing'),_0x55011d=_0x1527f8['locale'];for(const _0x274cde of ti){if(!_0x1527f8['plugins']['has'](_0x274cde))continue;const _0xe12147=_0x274cde['slice'](0x0,-0x7)['toLowerCase'](),_0x1adfc0='FORMAT_'+_0xe12147['toUpperCase']();_0x293d06['enableDefaultAttributesIntegration'](_0xe12147),_0x293d06['registerInlineAttribute'](_0xe12147),_0x293d06['descriptionFactory']['registerAttributeLabel'](_0xe12147,o(_0x55011d,_0x1adfc0));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x32976c=this['editor'],_0x3c5164=_0x32976c['locale'],_0x14d89e=_0x32976c['plugins']['get']('TrackChangesEditing');function _0x1f2754(_0x3e7a66,_0x4ff222){_0x14d89e['descriptionFactory']['registerDescriptionCallback'](_0x2d6b37=>{if('formatInline'!=_0x2d6b37['type'])return;const {data:_0x4782b4}=_0x2d6b37;return _0x4782b4&&_0x4782b4['commandName']===_0x3e7a66?_0x4782b4['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3c5164,'*Format:*\x20%0',_0x4ff222)}:{'type':'format','content':o(_0x3c5164,'*Remove\x20format:*\x20%0',_0x4ff222)}:void 0x0;});}_0x1f2754('bold',o(_0x3c5164,'FORMAT_BOLD')),_0x1f2754('italic',o(_0x3c5164,'FORMAT_ITALIC')),_0x1f2754('underline',o(_0x3c5164,'FORMAT_UNDERLINE')),_0x1f2754('code',o(_0x3c5164,'FORMAT_CODE')),_0x1f2754('strikethrough',o(_0x3c5164,'FORMAT_STRIKETHROUGH')),_0x1f2754('subscript',o(_0x3c5164,'FORMAT_SUBSCRIPT')),_0x1f2754('superscript',o(_0x3c5164,'FORMAT_SUPERSCRIPT'));}}class F extends _0x41fe8e{['afterInit'](){const _0x3a09be=this['editor'],_0x31f7b3=_0x3a09be['locale'];if(!_0x3a09be['plugins']['has']('BlockQuoteEditing'))return;const _0x143f20=_0x3a09be['plugins']['get']('TrackChangesEditing'),_0x2abf8f=this['editor']['commands']['get']('blockQuote');_0x143f20['enableCommand']('blockQuote',(_0xff12b9,_0x2b2201={})=>{const _0x515891=this['editor']['model']['document']['selection'],_0x134304=_0x2b2201&&void 0x0!==_0x2b2201['forceValue']?_0x2b2201['forceValue']:!_0x2abf8f['value'];let _0x3b230e=[];if(_0x134304){const _0x2290e7=Array['from'](_0x515891['getSelectedBlocks']())['filter'](_0x5942a9=>oo(_0x5942a9)||function(_0x1682bf,_0x5c281d){const _0x3deb1f=_0x5c281d['checkChild'](_0x1682bf['parent'],'blockQuote'),_0x8b8278=_0x5c281d['checkChild'](['$root','blockQuote'],_0x1682bf);return _0x3deb1f&&_0x8b8278;}(_0x5942a9,this['editor']['model']['schema']));_0x3b230e=to(_0x2290e7,_0x3a09be['model']);}else{const _0x490fe4=Array['from'](_0x515891['getSelectedBlocks']())['filter'](_0x264a29=>oo(_0x264a29));_0x3b230e=to(_0x490fe4,_0x3a09be['model']);}_0x3a09be['model']['change'](()=>{for(const _0x2bfd02 of _0x3b230e)_0x143f20['markBlockFormat'](_0x2bfd02,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x134304}]});});}),_0x143f20['descriptionFactory']['registerDescriptionCallback'](_0x2ca1d6=>{const {data:_0x13c8ca}=_0x2ca1d6;if(_0x13c8ca&&'blockQuote'==_0x13c8ca['commandName']){const _0x451403=o(_0x31f7b3,'ELEMENT_BLOCK_QUOTE');return _0x13c8ca['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x31f7b3,'*Set\x20format:*\x20%0',_0x451403)}:{'type':'format','content':o(_0x31f7b3,'*Remove\x20format:*\x20%0',_0x451403)};}});}}function oo(_0x15712e){return'blockQuote'==_0x15712e['parent']['name'];}class L extends _0x41fe8e{['afterInit'](){const _0xec8cb7=this['editor'],_0x3918ba=_0xec8cb7['locale'],_0x2f50af=_0xec8cb7['plugins']['get']('TrackChangesEditing');_0xec8cb7['plugins']['has']('BookmarkEditing')&&(_0x2f50af['enableCommand']('insertBookmark'),_0x2f50af['enableDefaultAttributesIntegration']('updateBookmark'),_0x2f50af['registerBlockAttribute']('bookmarkId'),_0x2f50af['descriptionFactory']['registerDescriptionCallback'](_0x413516=>{if('insertion'!=_0x413516['type']&&'deletion'!=_0x413516['type']&&'attribute'!=_0x413516['type'])return;const _0x1222b4=_0x413516['getContainedElement']();if(null==_0x1222b4)return;if(!_0x1222b4['is']('element','bookmark'))return;const _0x22f570=_0x1222b4['getAttribute']('bookmarkId');if('insertion'==_0x413516['type'])return{'type':'insertion','content':o(_0x3918ba,'*Insert:*\x20%0','\x22'+_0x22f570+'\x22\x20'+o(_0x3918ba,'ELEMENT_BOOKMARK'))};if('deletion'==_0x413516['type'])return{'type':'deletion','content':o(_0x3918ba,'*Remove:*\x20%0','\x22'+_0x22f570+'\x22\x20'+o(_0x3918ba,'ELEMENT_BOOKMARK'))};const {data:_0x2610dd}=_0x413516;if(!_0x2610dd||'bookmarkId'!=_0x2610dd['key'])return;return{'type':'format','content':o(_0x3918ba,'*Set\x20bookmark:*\x20%0','\x22'+_0x2610dd['newValue']+'\x22')};}));}}class J extends _0x41fe8e{['afterInit'](){const _0x237df=this['editor'];_0x237df['plugins']['has']('CaseChange')&&(_0x237df['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x237df['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x237df['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x41fe8e{['afterInit'](){const _0x1660ac=this['editor'];_0x1660ac['commands']['get']('ckbox')&&_0x1660ac['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x41fe8e{['afterInit'](){const _0x2a6cbf=this['editor'];if(!_0x2a6cbf['plugins']['has']('CodeBlock'))return;const _0x53bf5d=_0x2a6cbf['plugins']['get']('TrackChangesEditing'),_0x1187fe=_0x2a6cbf['locale'],_0x2ca894=_0x2a6cbf['config']['get']('codeBlock')['languages'],_0x312943=_0x2a6cbf['commands']['get']('codeBlock');_0x53bf5d['enableCommand']('indentCodeBlock'),_0x53bf5d['enableCommand']('outdentCodeBlock'),_0x53bf5d['enableCommand']('codeBlock',(_0x15df63,_0x245ef2={})=>{const _0x725c4c=_0x2a6cbf['model'],_0x5b0ff3=_0x2a6cbf['model']['document']['selection'],_0x45c0da=_0x245ef2&&void 0x0!==_0x245ef2['forceValue']?_0x245ef2['forceValue']:!_0x312943['value'];let _0x269314;_0x245ef2['language']||(_0x245ef2['language']=_0x2ca894[0x0]['language']),_0x269314=_0x45c0da?Array['from'](_0x5b0ff3['getSelectedBlocks']())['filter'](_0x246740=>eo(_0x246740)||function(_0x437321,_0x541d27){if(_0x437321['is']('rootElement')||_0x541d27['isLimit'](_0x437321))return!0x1;return _0x541d27['checkChild'](_0x437321['parent'],'codeBlock');}(_0x246740,_0x725c4c['schema'])):Array['from'](_0x5b0ff3['getSelectedBlocks']())['filter'](_0x1464d5=>eo(_0x1464d5));const _0x432501=to(_0x269314,_0x725c4c);_0x725c4c['change'](()=>{for(const _0x4dccfb of _0x432501)_0x53bf5d['markBlockFormat'](_0x4dccfb,{'commandName':'codeBlock','commandParams':[{..._0x245ef2,'forceValue':_0x45c0da}],'formatGroupId':'blockName'});});}),(_0x53bf5d['descriptionFactory']['registerElementLabel']('codeBlock',_0x20d8a6=>o(_0x1187fe,'ELEMENT_CODE_BLOCK',_0x20d8a6)),_0x53bf5d['descriptionFactory']['registerDescriptionCallback'](_0x4504e4=>{if('formatBlock'!=_0x4504e4['type'])return;const _0x36a2ae=_0x1187fe['t'],{data:_0x5114cb}=_0x4504e4;if(!_0x5114cb||'codeBlock'!=_0x5114cb['commandName'])return;const _0x2a07fc=_0x5114cb['commandParams'][0x0]['language'],_0x3f1627=_0x36a2ae(_0x2ca894['find'](_0x5b17f1=>_0x5b17f1['language']===_0x2a07fc)['label'])['toLowerCase']();return _0x5114cb['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1187fe,'*Set\x20format:*\x20%0',o(_0x1187fe,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x3f1627+')')}:{'type':'format','content':o(_0x1187fe,'*Remove\x20format:*\x20%0',o(_0x1187fe,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x501441){return'codeBlock'==_0x501441['name'];}class z extends _0x41fe8e{['afterInit'](){const _0x391b3a=this['editor'];if(!_0x391b3a['plugins']['has']('CommentsEditing'))return;_0x391b3a['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x16823c,_0x10ac97,_0xf1e717){const _0x209b00=[];for(const _0x214896 of _0x10ac97['getItems']())_0x214896['hasAttribute'](_0x16823c)&&_0x209b00['push'](_0xf1e717['createRangeOn'](_0x214896));return _0x209b00;}function De(_0x19d76a,_0xf921b3,{showActiveMarker:_0x231428=!0x0}={}){const _0x2ae1ff=_0x19d76a['plugins']['get']('TrackChangesEditing');return(_0x2407bc,_0x3fd955,_0x52d3ce)=>{if(!_0x52d3ce['consumable']['test'](_0x3fd955['markerRange'],_0x2407bc['name']))return;const _0x13aa68=_0x3fd955['markerRange']['getWalker'](),_0x628377=_0x3fd955['markerRange']['start'],_0x33b49c=_0x19d76a['model']['schema'];let _0x541610=null,_0x4c91c8=null,_0x37675c=!0x1,_0x307318=!0x1;for(const _0x3ab6fc of _0x13aa68){const _0x54c2cd=_0x3ab6fc['item'];_0x37675c=_0x37675c||_0x33b49c['isContent'](_0x54c2cd);const _0x4c0c50=_0x52d3ce['mapper']['toViewElement'](_0x54c2cd);if(_0x4c0c50&&_0x4c0c50['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3ab6fc['type']&&(_0x33b49c['isBlock'](_0x54c2cd)&&!_0x33b49c['isLimit'](_0x54c2cd)&&(_0x54c2cd['nextSibling']||_0x628377['isAtEnd']?_0x541610&&_0x541610['parent']==_0x54c2cd||(_0x541610=_0x54c2cd,_0x6594f2(_0x3ab6fc['previousPosition']),_0x307318=!0x0):_0x4c91c8=_0x4c91c8||_0x3ab6fc['previousPosition']));}function _0x6594f2(_0x8c9988){const {authorId:_0x3007de}=_0x2ae1ff['_splitMarkerName'](_0x3fd955['markerName']),_0x2ce977=_0x52d3ce['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xf921b3,'data-author-id':_0x3007de}),_0x22ec26=_0x52d3ce['mapper']['toViewPosition'](_0x8c9988);_0x231428&&_0x2ae1ff['activeMarkers']['includes'](_0x3fd955['markerName'])&&_0x52d3ce['writer']['addClass']('ck-suggestion-marker--active',_0x2ce977),_0x52d3ce['writer']['insert'](_0x22ec26,_0x2ce977),_0x52d3ce['mapper']['bindElementToMarker'](_0x2ce977,_0x3fd955['markerName']);}_0x37675c||_0x307318||!_0x4c91c8||_0x6594f2(_0x4c91c8);};}class K extends _0x41fe8e{static get['requires'](){return[_0x1094d7];}['init'](){const _0x270ce6=this['editor'],_0x29eb2b=_0x270ce6['plugins']['get']('TrackChangesEditing');_0x29eb2b['enableCommand']('delete');const _0x5752c9=_0x270ce6['commands']['get']('deleteForward');_0x29eb2b['enableCommand']('deleteForward',(_0x5b4b43,_0x139976={})=>{const _0x2836ed=_0x270ce6['model']['createSelection'](_0x270ce6['model']['document']['selection']);_0x2836ed['isCollapsed']&&_0x270ce6['model']['modifySelection'](_0x2836ed,{'direction':'forward','unit':_0x139976['unit']});const _0xfc1476=_0x2836ed['getFirstRange'](),_0x556232=_0x1720ab['fromRange'](_0xfc1476);let _0x523327;_0x5b4b43(_0x139976),_0x523327='$graveyard'==_0x556232['root']['rootName']?_0x270ce6['model']['createRange'](_0xfc1476['start']):_0x270ce6['model']['createRange'](_0x556232['start'],_0x556232['end']),_0x556232['detach'](),_0x270ce6['model']['enqueueChange'](_0x5752c9['buffer']['batch'],_0x5d692b=>{_0x5752c9['buffer']['lock'](),_0x5d692b['setSelection'](_0x5d692b['createRange'](_0x523327['end'])),_0x5752c9['buffer']['unlock']();});}),_0x270ce6['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x270ce6,'merge'),{'priority':'high'}),_0x270ce6['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x29d054,_0x23ae82,_0x589d80)=>{_0x589d80['options']['showSuggestionHighlights']&&De(_0x270ce6,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x29d054,_0x23ae82,_0x589d80);},{'priority':'high'}),_0x270ce6['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x3a245b,_0x216788,_0x3b4574)=>{const _0x3540d6=_0x3b4574['mapper']['markerNameToElements'](_0x216788['markerName']);if(_0x3540d6){for(const _0x338d33 of _0x3540d6)_0x338d33['is']('uiElement')&&(_0x3b4574['mapper']['unbindElementFromMarkerName'](_0x338d33,_0x216788['markerName']),_0x3b4574['writer']['remove'](_0x338d33));}},{'priority':'high'});}}class W extends _0x41fe8e{['afterInit'](){const _0x3cf34d=this['editor'];if(!_0x3cf34d['plugins']['has']('ListEditing'))return;const _0x51ebca=_0x3cf34d['locale'],_0x4f6f87=_0x3cf34d['plugins']['get']('TrackChangesEditing'),_0x194bae=_0x3cf34d['plugins']['has']('TodoListEditing'),_0x505628=!!_0x3cf34d['config']['get']('list.multiBlock');function _0x352e8f(_0x29eddc){return{'type':'format','content':''+o(_0x51ebca,'*Set\x20format:*\x20%0',_0x29eddc)};}function _0x4510a3(_0x508e5b){return{'type':'format','content':''+o(_0x51ebca,'*Remove\x20format:*\x20%0',_0x508e5b)};}_0x4f6f87['enableDefaultAttributesIntegration']('numberedList'),_0x4f6f87['enableDefaultAttributesIntegration']('bulletedList'),_0x4f6f87['enableDefaultAttributesIntegration']('customNumberedList'),_0x4f6f87['enableDefaultAttributesIntegration']('customBulletedList'),_0x4f6f87['enableDefaultAttributesIntegration']('indentList'),_0x4f6f87['enableDefaultAttributesIntegration']('outdentList'),_0x4f6f87['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x4f6f87['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x4f6f87['registerBlockAttribute']('listItemId'),_0x4f6f87['registerBlockAttribute']('listType'),_0x4f6f87['registerBlockAttribute']('listIndent'),_0x505628&&(_0x4f6f87['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x4f6f87['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x194bae&&(_0x4f6f87['enableDefaultAttributesIntegration']('todoList'),_0x4f6f87['enableDefaultAttributesIntegration']('checkTodoList'),_0x4f6f87['registerBlockAttribute']('todoListChecked'),_0x4f6f87['descriptionFactory']['registerDescriptionCallback'](_0x15a5da=>{const {data:_0x493077}=_0x15a5da;if(_0x493077&&'todoListChecked'==_0x493077['key'])return{'type':'format','content':_0x493077['newValue']?o(_0x51ebca,'*Check\x20item*'):o(_0x51ebca,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x4acac4=>{if(_0x4acac4['batch']['isUndo'])return!0x1;let _0x161f64=!0x1;const _0x461841=_0x4f6f87['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x44804b=>'todoListChecked'===_0x4f6f87['_getAttributeKey'](_0x44804b));for(const _0x1e8862 of _0x461841){'todo'!=_0x1e8862['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x4f6f87['_findSuggestions'](_0x1e8862['getFirstRange'](),'attribute')['find'](_0x28d1f0=>'listType'===_0x4f6f87['_getAttributeKey'](_0x28d1f0['suggestion']))||(_0x4acac4['removeMarker'](_0x1e8862['getFirstMarker']()),_0x161f64=!0x0));}return _0x161f64;})),_0x4f6f87['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x51ebca,'FORMAT_INDENT'));const _0x5c214a={'type':'format','content':''};_0x4f6f87['descriptionFactory']['registerDescriptionCallback'](_0x227a8d=>{const {data:_0x1ec3f1}=_0x227a8d;if(!_0x1ec3f1||'listType'!=_0x1ec3f1['key'])return;let _0x1611a7=_0x227a8d['head'];for(;_0x1611a7;){if(_0x1611a7['data']&&(('listStyle'==_0x1611a7['data']['key']||'listMarkerStyle'==_0x1611a7['data']['key'])&&(_0x1611a7['data']['newValue']&&'default'!=_0x1611a7['data']['newValue']||'default'!=_0x1611a7['data']['oldValue']&&!_0x1ec3f1['newValue'])||!_0x505628&&_0x1611a7['data']['key']==m))return _0x5c214a;_0x1611a7=_0x1611a7['next'];}if(null==_0x1ec3f1['newValue'])switch(_0x1ec3f1['oldValue']){case'bulleted':return _0x4510a3(o(_0x51ebca,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4510a3(o(_0x51ebca,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4510a3(o(_0x51ebca,'ELEMENT_TODO_LIST'));}switch(_0x1ec3f1['newValue']){case'bulleted':return _0x352e8f(o(_0x51ebca,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x352e8f(o(_0x51ebca,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x352e8f(o(_0x51ebca,'ELEMENT_TODO_LIST'));}}),_0x4f6f87['descriptionFactory']['registerDescriptionCallback'](_0x471d6c=>{const {data:_0x24fa40}=_0x471d6c;if(_0x24fa40&&'listIndent'==_0x24fa40['key'])return null==_0x24fa40['newValue']||null==_0x24fa40['oldValue']&&0x0==_0x24fa40['newValue']?_0x5c214a:void 0x0;}),_0x4f6f87['descriptionFactory']['registerDescriptionCallback'](_0x279cba=>{if('attribute'!=_0x279cba['type'])return;const {data:_0x515b9c}=_0x279cba;if(!_0x515b9c||'listItemId'!=_0x515b9c['key'])return;const _0x11bb57=Te(_0x279cba);return'newValue'==_0x11bb57?{'type':'format','content':o(_0x51ebca,'*Merge:*\x20list\x20item')}:'oldValue'==_0x11bb57?{'type':'format','content':o(_0x51ebca,'*Split:*\x20list\x20item')}:_0x5c214a;}),_0x3cf34d['model']['document']['registerPostFixer'](_0x538c67=>this['listItemIdFixer'](_0x538c67)),_0x3cf34d['model']['document']['registerPostFixer'](_0x232ffe=>this['noTrackChangesFixer'](_0x232ffe)),_0x3cf34d['model']['document']['on']('change:data',(_0x1afc44,_0x21d097)=>{if(_0x21d097['isUndo']||!_0x21d097['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x5a4777){if(_0x5a4777['batch']['isUndo']||!_0x5a4777['batch']['isLocal'])return!0x1;let _0x1f39e0=!0x1;const _0x3ac7c5=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x335746=>_0x335746['data']&&'listItemId'==_0x335746['data']['key'])['filter'](_0xccaf99=>_0xccaf99['data']['newValue']&&_0xccaf99['data']['oldValue']);for(const _0x529059 of _0x3ac7c5)Te(_0x529059)||(_0x5a4777['removeMarker'](_0x529059['getFirstMarker']()),_0x1f39e0=!0x0);return _0x1f39e0;}['noTrackChangesFixer'](_0x11a20e){if(_0x11a20e['batch']['isUndo']||!_0x11a20e['batch']['isLocal'])return!0x1;const _0x586994=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x586994['trackChangesCommand']['value'])return!0x1;let _0x380a53=!0x1;const _0x3f9492=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x43eab8=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x33ef60=>'attribute'==_0x33ef60['type'])['filter'](_0x5a0f14=>_0x3f9492['includes'](_0x5a0f14['attributeKey']));if(0x0==_0x43eab8['length'])return _0x380a53;for(const _0x494157 of _0x43eab8){const _0x4761d8=_0x586994['_findSuggestions'](_0x494157['range'],'attribute')['filter'](_0x5a7a26=>!_0x5a7a26['meta']['isNextTo'])['map'](_0xb3c789=>_0xb3c789['suggestion'])['filter'](_0x2a6a82=>{const _0x3f1719=_0x586994['_getAttributeKey'](_0x2a6a82);return _0x3f9492['includes'](_0x3f1719);});if(_0x4761d8['length']){for(const _0xe85f2f of _0x4761d8)_0x11a20e['removeMarker'](_0xe85f2f['getFirstMarker']());_0x380a53=!0x0;}}return _0x380a53;}['assureChains'](){const _0x2197d1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x34d971=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x54a553;const _0x935563=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1be8e1=>{if(_0x1be8e1['data']['oldRange']||!_0x1be8e1['data']['newRange'])return null;if(!_0x1be8e1['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x193311}=_0x2197d1['_splitMarkerName'](_0x1be8e1['name']);if(!_0x2197d1['hasSuggestion'](_0x193311))return null;const _0x3e1ef2=_0x2197d1['getSuggestion'](_0x193311);return _0x34d971['includes'](_0x3e1ef2['data']['key']);})['map'](_0x44ca71=>{const {id:_0xa1e29b}=_0x2197d1['_splitMarkerName'](_0x44ca71['name']),_0x42ac63=_0x2197d1['getSuggestion'](_0xa1e29b);return _0x54a553=_0x42ac63['attributes']['groupId'],_0x42ac63['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x935563['size'])return;const _0x577f4c=_0x2197d1['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x175f63=>'attribute'==_0x175f63['type']&&_0x175f63['data']&&_0x34d971['includes'](_0x175f63['data']['key'])&&_0x175f63['attributes']['groupId']!=_0x54a553)['map'](_0x13fd7f=>({'listItem':_0x13fd7f['getFirstRange']()['start']['nodeAfter'],'groupId':_0x13fd7f['attributes']['groupId']})),_0x444407=new Set();for(const {groupId:_0x36df33,listItem:_0x34e711}of _0x577f4c)_0x935563['has'](_0x34e711)&&_0x444407['add'](_0x36df33);for(const _0x258150 of _0x2197d1['getSuggestions']())_0x444407['has'](_0x258150['attributes']['groupId'])&&_0x258150['setAttribute']('groupId',_0x54a553);}['_supportLegacySuggestions'](){const _0x4e44ad=this['editor'],_0x55fe9e=_0x4e44ad['locale'],_0x1a44ea=_0x4e44ad['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x1a44ea['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x272706,_0xf130b6){const _0x376b44=[];for(let _0x3b0994 of _0x272706)_0x3b0994['start']['nodeAfter']===_0x3b0994['end']['parent']&&(_0x3b0994=_0x4e44ad['model']['createRange'](_0x4e44ad['model']['createPositionAt'](_0x3b0994['start']['nodeAfter'],0x0))),_0x376b44['push'](_0x3b0994);_0x4e44ad['model']['change'](_0x170f5d=>{const _0x370d2c=_0x4e44ad['model']['document']['selection'],_0x499a0d=Array['from'](_0x370d2c['getRanges']())['map'](_0xf68149=>_0x1720ab['fromRange'](_0xf68149));_0x170f5d['setSelection'](_0x376b44),_0x4e44ad['commands']['get'](_0xf130b6['commandName'])['refresh'](),_0xf130b6['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x4e44ad['execute'](_0xf130b6['commandName'],..._0xf130b6['commandParams']),_0x170f5d['setSelection'](_0x499a0d);for(const _0x38f8ce of _0x499a0d)_0x38f8ce['detach']();});}),_0x1a44ea['descriptionFactory']['registerElementLabel'](function(_0x8ff90f){const _0x94501c=!_0x4e44ad['model']['schema']['isObject'](_0x8ff90f),_0x40d33d=_0x8ff90f['previousSibling'],_0x2e4de7=_0x8ff90f['nextSibling'],_0x851a21=_0x8ff90f['getAttribute']('listItemId'),_0x27d1d6=!_0x40d33d||_0x40d33d['getAttribute']('listItemId')!==_0x851a21,_0x426eee=!_0x2e4de7||_0x2e4de7['getAttribute']('listItemId')!==_0x851a21;return _0x94501c&&Boolean(_0x851a21)&&_0x27d1d6&&_0x426eee;},_0xd069e=>o(_0x55fe9e,'ELEMENT_LIST_ITEM',_0xd069e));}['_registerLegacyDescription'](){const _0x5d7a41=this['editor'],_0x44c78d=_0x5d7a41['locale'];function _0x59a0fc(_0x2a8963){const _0x190ac2=_0x5d7a41['commands']['get']('bulletedList')['value'],_0x4da743=_0x5d7a41['commands']['get']('numberedList')['value'];return'numberedList'===_0x2a8963?_0x190ac2:_0x4da743;}_0x5d7a41['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x11fe75){if('formatBlock'!=_0x11fe75['type'])return;const {data:_0x1bfb80}=_0x11fe75;if(!_0x1bfb80)return;let _0x24d5f9,_0x316e8f,_0x1ade42,_0x4e3902;switch(_0x1bfb80['commandName']){case'bulletedList':_0x1ade42=_0x1bfb80['commandParams'][0x0]['forceValue'],_0x4e3902=_0x59a0fc(_0x1bfb80['commandName']),_0x24d5f9=_0x1ade42?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4e3902&&_0x5d7a41['config']['get']('list.multiBlock')||(_0x24d5f9='*Change\x20to:*\x20%0'),_0x316e8f={'type':'format','content':o(_0x44c78d,_0x24d5f9,o(_0x44c78d,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x1ade42=_0x1bfb80['commandParams'][0x0]['forceValue'],_0x4e3902=_0x59a0fc(_0x1bfb80['commandName']),_0x24d5f9=_0x1ade42?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4e3902&&_0x5d7a41['config']['get']('list.multiBlock')||(_0x24d5f9='*Change\x20to:*\x20%0'),_0x316e8f={'type':'format','content':o(_0x44c78d,_0x24d5f9,o(_0x44c78d,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x24d5f9='*Indent:*\x20%0',_0x316e8f={'type':'format','content':o(_0x44c78d,_0x24d5f9,o(_0x44c78d,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x24d5f9=function(_0x1147c0){const _0x133460=_0x1147c0['getFirstRange']();let _0x4a3938=_0x133460['start']['nodeAfter'];for(;_0x4a3938&&_0x133460['containsItem'](_0x4a3938);){if(_0x4a3938['getAttribute']('listIndent')>0x0)return!0x1;_0x4a3938=_0x4a3938['nextSibling'];}return!0x0;}(_0x11fe75)?o(_0x44c78d,'*Format:*\x20remove\x20from\x20%0',o(_0x44c78d,function(_0x5b3e7f){return'ELEMENT_'+_0x5b3e7f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x11fe75))):o(_0x44c78d,'*Outdent:*\x20%0',o(_0x44c78d,'ELEMENT_LIST_ITEM')),_0x316e8f={'type':'format','content':_0x24d5f9};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x1bfb80['multipleBlocks']&&(_0x24d5f9='*Merge:*\x20%0',_0x316e8f={'type':'deletion','content':o(_0x44c78d,_0x24d5f9,o(_0x44c78d,'ELEMENT_LIST_ITEM'))});}return _0x316e8f;});}}function Te(_0x214e4e){let _0x18f5f3=_0x214e4e['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x18f5f3;){const _0x482a82=_0x18f5f3['getAttribute']('listItemId');if(!_0x482a82)return!0x1;if(_0x482a82==_0x214e4e['data']['newValue'])return'newValue';if(_0x482a82==_0x214e4e['data']['oldValue'])return'oldValue';_0x18f5f3=_0x18f5f3['previousSibling'];}return!0x1;}class Se extends _0x41fe8e{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x554d33=this['editor']['config']['get']('list.properties'),_0xdc1ec0=this['editor']['plugins']['get']('TrackChangesEditing');_0x554d33['styles']&&(_0xdc1ec0['enableDefaultAttributesIntegration']('listStyle'),_0xdc1ec0['registerBlockAttribute']('listStyle')),_0x554d33['reversed']&&(_0xdc1ec0['enableDefaultAttributesIntegration']('listReversed'),_0xdc1ec0['registerBlockAttribute']('listReversed')),_0x554d33['startIndex']&&(_0xdc1ec0['enableDefaultAttributesIntegration']('listStart'),_0xdc1ec0['registerBlockAttribute']('listStart'));const _0x17f43c={'type':'format','content':''};_0xdc1ec0['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x1052c2=this['editor']['locale'];_0xdc1ec0['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x1052c2,'FORMAT_LIST_REVERSED')),_0xdc1ec0['descriptionFactory']['registerDescriptionCallback'](_0x4da2ae=>{const {data:_0x2e502e}=_0x4da2ae;if(_0x2e502e&&'listReversed'==_0x2e502e['key'])return null==_0x2e502e['newValue']||0x0==_0x2e502e['newValue']&&null==_0x2e502e['oldValue']?_0x17f43c:void 0x0;}),_0xdc1ec0['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x1052c2,'FORMAT_LIST_START')),_0xdc1ec0['descriptionFactory']['registerDescriptionCallback'](_0x10f550=>{const {data:_0xca717c}=_0x10f550;if(_0xca717c&&'listStart'==_0xca717c['key'])return null==_0xca717c['newValue']||0x1==_0xca717c['newValue']&&null==_0xca717c['oldValue']?_0x17f43c:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x1f1f3a=>{if(_0x1f1f3a['batch']['isUndo'])return!0x1;let _0x1c4a35=!0x1;const _0x440b88=_0xdc1ec0['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xd50525=>{const _0xbb9db8=_0xdc1ec0['_getAttributeKey'](_0xd50525);return'listStart'==_0xbb9db8||'listReversed'==_0xbb9db8;});for(const _0x21e529 of _0x440b88){const _0x98ea6c=_0x21e529['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x98ea6c||'customNumbered'==_0x98ea6c)continue;_0xdc1ec0['_findSuggestions'](_0x21e529['getFirstRange'](),'attribute')['find'](_0xf81308=>'listType'==_0xdc1ec0['_getAttributeKey'](_0xf81308['suggestion']))||(_0x1f1f3a['removeMarker'](_0x21e529['getFirstMarker']()),_0x1c4a35=!0x0);}return _0x1c4a35;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x1995e1){const _0x295696=this['editor']['locale'],{data:_0x4c7519}=_0x1995e1,_0x39af8d={'type':'format','content':''};if(!_0x4c7519||'listStyle'!=_0x4c7519['key'])return;if(!_0x4c7519['oldValue'])return'default'==_0x4c7519['newValue']?_0x39af8d:{'type':'format','content':''+o(_0x295696,'*Set\x20format:*\x20%0',o(_0x295696,this['_getTranslationKeyForListStyle'](_0x4c7519['newValue'])))};if(!_0x4c7519['newValue']){if('default'==_0x4c7519['oldValue'])return _0x39af8d;let _0x5c83f7=_0x1995e1['head'];for(;_0x5c83f7;){if(_0x5c83f7['data']&&'listType'==_0x5c83f7['data']['key']&&_0x5c83f7['data']['newValue'])return _0x39af8d;_0x5c83f7=_0x5c83f7['next'];}return{'type':'format','content':''+o(_0x295696,'*Remove\x20format:*\x20%0',o(_0x295696,this['_getTranslationKeyForListStyle'](_0x4c7519['oldValue'])))};}if('default'!=_0x4c7519['newValue'])return{'type':'format','content':''+o(_0x295696,'*Set\x20format:*\x20%0',o(_0x295696,this['_getTranslationKeyForListStyle'](_0x4c7519['newValue'])))};let _0x141fac=_0x1995e1['head'];for(;_0x141fac;){if(_0x141fac['data']&&'listType'==_0x141fac['data']['key']&&_0x141fac['data']['newValue']&&_0x141fac['data']['oldValue'])return _0x39af8d;_0x141fac=_0x141fac['next'];}return{'type':'format','content':o(_0x295696,'*Set\x20format:*\x20%0',o(_0x295696,'ELEMENT_'+_0x1995e1['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x364185=this['editor'],_0x18c0bf=_0x364185['locale'];_0x364185['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x52d08b=>{if('formatBlock'!=_0x52d08b['type'])return;const {data:_0x4afb33}=_0x52d08b;if(!_0x4afb33)return;let _0x1ea4cd,_0x18962f;switch(_0x4afb33['commandName']){case'listStyle':_0x1ea4cd='*Change\x20to:*\x20%0',_0x18962f={'type':'format','content':o(_0x18c0bf,_0x1ea4cd,o(_0x18c0bf,this['_getTranslationKeyForListStyle'](_0x4afb33['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1ea4cd=_0x4afb33['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x18962f={'type':'format','content':o(_0x18c0bf,_0x1ea4cd)};break;case'listStart':_0x1ea4cd='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x18962f={'type':'format','content':o(_0x18c0bf,_0x1ea4cd,_0x4afb33['commandParams'][0x0]['startIndex'])};}return _0x18962f;});}['_getTranslationKeyForListStyle'](_0x59400){return'ELEMENT_'+function(_0x50cae8){if(_e['includes'](_0x50cae8))return'bulleted';if(Re['includes'](_0x50cae8))return'numbered';return null;}(_0x59400)['toUpperCase']()+'_LIST_'+_0x59400['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x41fe8e{['afterInit'](){const _0x2a32db=this['editor'];_0x2a32db['commands']['get']('emoji')&&_0x2a32db['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x41fe8e{static get['requires'](){return[_0x41d6b7];}['init'](){const _0x92ca07=this['editor'],_0x46d656=_0x92ca07['plugins']['get']('TrackChangesEditing'),_0xd6f560=_0x92ca07['commands']['get']('enter');_0x46d656['enableCommand']('enter',()=>{_0x92ca07['model']['change'](_0x29fc45=>{const _0x5ae6d8=_0x92ca07['model']['document']['selection'],_0x2e5b9d=_0x5ae6d8['getFirstPosition'](),_0x3d9027=_0x1720ab['fromRange'](_0x5ae6d8['getFirstRange']());if(_0xd6f560['enterBlock'](_0x29fc45)){const _0x5309ad=_0x92ca07['model']['createPositionAt'](_0x2e5b9d['parent']['nextSibling'],0x0),_0x36767f=_0x29fc45['createRange'](_0x2e5b9d,_0x5309ad);_0x46d656['markInsertion'](_0x36767f);}else _0x29fc45['setSelection'](_0x29fc45['createRange'](_0x3d9027['end']));_0x3d9027['detach'](),_0xd6f560['fire']('afterExecute',{'writer':_0x29fc45});});}),_0x92ca07['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x92ca07,'split'),{'priority':'high'}),_0x92ca07['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x15502f,_0x335779,_0x43d59a)=>{const _0x32dc5d=_0x43d59a['mapper']['markerNameToElements'](_0x335779['markerName']);if(_0x32dc5d){for(const _0x50a948 of _0x32dc5d)_0x50a948['hasClass']('ck-suggestion-marker-split')&&(_0x43d59a['mapper']['unbindElementFromMarkerName'](_0x50a948,_0x335779['markerName']),_0x43d59a['writer']['remove'](_0x50a948));}},{'priority':'high'}),_0x92ca07['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x41a4f6,_0x16c66f,_0x379d97)=>{_0x379d97['options']['showSuggestionHighlights']&&De(_0x92ca07,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x41a4f6,_0x16c66f,_0x379d97);},{'priority':'high'});}}class Z extends _0x41fe8e{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x578ffa=this['editor']['plugins']['get']('TrackChangesEditing');_0x578ffa['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x578ffa['enableCommand']('findNext'),_0x578ffa['enableCommand']('findPrevious'),_0x578ffa['enableCommand']('replace'),_0x578ffa['enableCommand']('replaceAll');}['handleFindCommand'](_0x206ba3,_0x674cd5,_0xefaf11={}){const _0x5ea074=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x206ba3(_0xa815ef=>{let _0x371727=('string'==typeof _0x674cd5?_0x5ea074['findByTextCallback'](_0x674cd5,_0xefaf11):_0x674cd5)(_0xa815ef);Array['isArray'](_0x371727)&&(_0x371727={'results':_0x371727,'searchText':'string'==typeof _0x674cd5?_0x674cd5:''});const _0x221a1a=_0x371727['results']['filter'](_0x431492=>!0x1===this['_isInDeletionRange'](_0x431492,_0xa815ef['item']));return{..._0x371727,'results':_0x221a1a};},_0xefaf11);}['_isInDeletionRange'](_0x52a13a,_0x3ea925){const _0x3126f5=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3ea925,_0x52a13a['start']),this['editor']['model']['createPositionAt'](_0x3ea925,_0x52a13a['end']));for(const _0x8e8429 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x3126f5['getIntersection'](_0x8e8429['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 _0x41fe8e{['afterInit'](){const _0x3693d7=this['editor']['locale'],_0x1645ce=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x5581cb,commandName:_0x4840ee}of ro)this['editor']['plugins']['has'](_0x5581cb)&&(_0x1645ce['enableDefaultAttributesIntegration'](_0x4840ee),_0x1645ce['registerInlineAttribute'](_0x4840ee));_0x1645ce['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x3693d7,'FORMAT_FONT_SIZE')),_0x1645ce['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x3693d7,'FORMAT_FONT_FAMILY')),_0x1645ce['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x3693d7,'FORMAT_FONT_COLOR')),_0x1645ce['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x3693d7,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xb9b9ba=this['editor'],_0x42149f=_0xb9b9ba['locale'];_0xb9b9ba['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3ec992=>{const _0x33d582=_0x42149f['t'];if('formatInline'!=_0x3ec992['type'])return;const {data:_0xff794}=_0x3ec992;if(null!=_0xff794){if('fontSize'==_0xff794['commandName']){const _0x29546c=_0xff794['commandParams'][0x0]['value'];if(_0x29546c){const _0x5a6a5e=_0x33d582(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x5a8b99=>_0x5a8b99['model']==_0x29546c)['title'])['toLowerCase']();return{'type':'format','content':o(_0x42149f,'*Set\x20font\x20size:*\x20%0',_0x5a6a5e)};}return{'type':'format','content':o(_0x42149f,'*Reset\x20font\x20size*')};}if('fontFamily'==_0xff794['commandName']){const _0x5e0210=_0xff794['commandParams'][0x0]['value'];return _0x5e0210?{'type':'format','content':o(_0x42149f,'*Set\x20font\x20family:*\x20%0',_0x5e0210)}:{'type':'format','content':o(_0x42149f,'*Reset\x20font\x20family*')};}if('fontColor'==_0xff794['commandName']){const _0x9ea576=_0xff794['commandParams'][0x0]['value'];if(_0x9ea576){const _0x32b452=_0x359023(this['editor']['config']['get']('fontColor.colors'))['find'](_0x4fa936=>_0x4fa936['model']==_0x9ea576);let _0x289d64=_0x9ea576,_0x4dde7b='';return _0x32b452&&(_0x289d64=_0x32b452['label'],_0x4dde7b=_0x33d582(_0x289d64)['toLowerCase']()),{'type':'format','content':o(_0x42149f,'*Set\x20font\x20color:*\x20%0',_0x4dde7b)['trim'](),'color':{'value':_0x9ea576,'title':_0x4dde7b||_0x289d64}};}return{'type':'format','content':o(_0x42149f,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0xff794['commandName']){const _0x5b52e6=_0xff794['commandParams'][0x0]['value'];if(_0x5b52e6){const _0x47b508=_0x359023(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x5d1e70=>_0x5d1e70['model']==_0x5b52e6);let _0xe7f35b=_0x5b52e6,_0x3db812='';return _0x47b508&&(_0xe7f35b=_0x47b508['label'],_0x3db812=_0x33d582(_0xe7f35b)['toLowerCase']()),{'type':'format','content':o(_0x42149f,'*Set\x20font\x20background\x20color:*\x20%0',_0x3db812)['trim'](),'color':{'value':_0x5b52e6,'title':_0x3db812||_0xe7f35b}};}return{'type':'format','content':o(_0x42149f,'*Reset\x20font\x20background\x20color*')};}}});}}class nt extends _0x41fe8e{['afterInit'](){const _0x8cace4=this['editor'],_0x2673d8=_0x8cace4['plugins']['get']('TrackChangesEditing'),_0x5353f6=_0x8cace4['commands']['get']('copyFormat'),_0x1610e5=_0x8cace4['commands']['get']('pasteFormat');_0x5353f6&&_0x1610e5&&(_0x2673d8['enableDefaultAttributesIntegration']('pasteFormat'),_0x2673d8['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x3aba8e=this['editor'],_0x35d5c0=_0x3aba8e['locale'];_0x3aba8e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x13e807=>{if('formatBlock'!=_0x13e807['type']&&'formatInline'!=_0x13e807['type'])return;const {data:_0x5490cd}=_0x13e807;if(_0x5490cd&&'pasteFormat'===_0x5490cd['commandName']){const _0x232bf1=[],_0x3c9714=_0x5490cd['commandParams'][0x0];for(const [_0x3be1bc,_0x1fbbaf]of Object['entries'](_0x3c9714))_0x232bf1['push'](so(_0x3aba8e,_0x3be1bc,_0x1fbbaf));return _0x232bf1['length']?{'type':'format','content':o(_0x35d5c0,'*Set\x20format\x20to:*\x20%0',_0x232bf1['join'](',\x20'))}:{'type':'format','content':o(_0x35d5c0,'*Remove\x20all\x20formatting*')};}});}}function so(_0x1e5945,_0x4c032b,_0x1611f9){const _0x4e56a1=_0x1e5945['locale']['t'],_0x513362=_0x4c032b['split'](/(?=[A-Z])/)['join']('\x20'),_0x50b2f9=_0x4e56a1(_0x513362['charAt'](0x0)['toUpperCase']()+_0x513362['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x1611f9)return _0x50b2f9;if('fontColor'===_0x4c032b||'fontBackgroundColor'===_0x4c032b){const _0xd3f04e=_0x359023(_0x1e5945['config']['get']('fontColor.colors'))['find'](_0x1a87b8=>_0x1a87b8['model']==_0x1611f9);return _0x50b2f9+'\x20('+(_0xd3f04e?_0x4e56a1(_0xd3f04e['label'])['toLowerCase']():_0x1611f9)+')';}if('fontSize'===_0x4c032b&&isNaN(parseFloat(_0x1611f9))){const _0x1fb499=_0x1e5945['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x1e5945['config']['get']('fontSize.options'))['find'](_0x32d17a=>_0x32d17a['model']==_0x1611f9);return _0x50b2f9+'\x20('+(_0x1fb499?_0x4e56a1(_0x1fb499['title'])['toLowerCase']():_0x1611f9)+')';}return _0x50b2f9+'\x20('+_0x1611f9+')';}class it extends _0x41fe8e{['_headingOptions'];['afterInit'](){const _0x3971e8=this['editor'];if(!_0x3971e8['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x3971e8['config']['get']('heading.options');const _0x2a09b1=_0x3971e8['locale'],_0x160f8d=_0x3971e8['plugins']['get']('TrackChangesEditing');_0x160f8d['enableDefaultAttributesIntegration']('heading');for(const _0x438259 of this['_headingOptions'])'paragraph'!=_0x438259['model']&&_0x160f8d['descriptionFactory']['registerElementLabel'](_0x438259['model'],_0x4795a7=>{const _0x5b557e=this['_getHeadingLevel'](_0x438259['model']);return null!==_0x5b557e?_0x4bd5d7(_0x4795a7,_0x5b557e):_0x442836(_0x4795a7,_0x438259['title']);});function _0x4bd5d7(_0x5f5a3d,_0x2a53c6){return o(_0x2a09b1,'ELEMENT_HEADING',[_0x5f5a3d,_0x2a53c6]);}function _0x442836(_0x46789a,_0x3f0ffa){return o(_0x2a09b1,'ELEMENT_HEADING_CUSTOM',[_0x46789a,_0x3f0ffa]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4eeb17=this['editor'],_0x62d70c=_0x4eeb17['locale'];function _0x1f40ff(_0x4e0066,_0x6b7d35){return o(_0x62d70c,'ELEMENT_HEADING_CUSTOM',[_0x4e0066,_0x6b7d35]);}_0x4eeb17['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x142bdb=>{if('formatBlock'!=_0x142bdb['type'])return;const {data:_0x438152}=_0x142bdb;if(_0x438152&&'heading'==_0x438152['commandName']){const _0x468e14=_0x438152['commandParams'][0x0]['value'],_0x1999cb=this['_getHeadingLevel'](_0x468e14);if(null!==_0x1999cb)return{'type':'format','content':o(_0x62d70c,'*Change\x20to:*\x20%0',(_0x560709=0x1,_0xad4cad=_0x1999cb,o(_0x62d70c,'ELEMENT_HEADING',[_0x560709,_0xad4cad])))};const _0x500fb7=this['_headingOptions']['find'](_0x3e721b=>_0x3e721b['model']===_0x468e14)['title'];return{'type':'format','content':o(_0x62d70c,'*Change\x20to:*\x20%0',_0x1f40ff(0x1,_0x500fb7))};}var _0x560709,_0xad4cad;});}['_getHeadingLevel'](_0x1ea6b9){const _0x53cda3=_0x1ea6b9['match'](/^heading(\d+)/);if(_0x53cda3)return _0x53cda3[0x1];const _0x359f58=this['_headingOptions']?.['find'](_0x4a7331=>_0x4a7331['model']==_0x1ea6b9);if(_0x359f58&&_0x359f58['view']){const _0x5524e1=_0x359f58['view'],_0x46a43d=(_0x5524e1['name']??_0x5524e1)['match'](/^h(\d+)/);if(_0x46a43d)return _0x46a43d[0x1];}return null;}}class et extends _0x41fe8e{['afterInit'](){const _0x477c50=this['editor'];if(!_0x477c50['plugins']['has']('HighlightEditing'))return;const _0x106a81=_0x477c50['plugins']['get']('TrackChangesEditing'),_0x5e3abb=_0x477c50['locale'];_0x106a81['enableDefaultAttributesIntegration']('highlight'),_0x106a81['registerInlineAttribute']('highlight'),_0x106a81['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x5e3abb,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x35e6cc=this['editor'],_0x51971c=_0x35e6cc['locale'];_0x35e6cc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x61b696=>{if('formatInline'!=_0x61b696['type'])return;const {data:_0x5a7fef}=_0x61b696;if(_0x5a7fef&&'highlight'==_0x5a7fef['commandName']){const _0x279aff=_0x51971c['t'],_0xedae51=_0x5a7fef['commandParams'][0x0]['value'];if(_0xedae51){const _0x3447ae=_0x35e6cc['config']['get']('highlight.options')['find'](_0x41542e=>_0x41542e['model']==_0xedae51),_0x14f3f6=_0x279aff(_0x3447ae['title'])['toLowerCase']();return{'type':'format','content':o(_0x51971c,'*Set\x20highlight:*\x20%0',_0x14f3f6),'color':{'value':_0x3447ae['color'],'title':_0x3447ae['title']}};}return{'type':'format','content':o(_0x51971c,'*Remove\x20highlight*',o(_0x51971c,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x41fe8e{['afterInit'](){const _0x155831=this['editor'];if(!_0x155831['plugins']['has']('HorizontalLineEditing'))return;_0x155831['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x2685b0=_0x155831['plugins']['get']('TrackChangesEditing'),_0x4fa775=_0x155831['locale'];_0x2685b0['descriptionFactory']['registerElementLabel']('horizontalLine',_0x38c33c=>o(_0x4fa775,'ELEMENT_HORIZONTAL_LINE',_0x38c33c)),_0x155831['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0xa7c332,{writer:_0x5ca07b,options:_0x7b665e})=>{if(!_0x7b665e['showSuggestionHighlights'])return null;const _0x32dfcc=_0x5ca07b['createContainerElement']('div'),_0x1592bc=_0x5ca07b['createEmptyElement']('hr');return _0x5ca07b['addClass']('ck-horizontal-line',_0x32dfcc),_0x5ca07b['insert'](_0x5ca07b['createPositionAt'](_0x32dfcc,0x0),_0x1592bc),_0x32dfcc;},'converterPriority':'high'});}}class ot extends _0x41fe8e{['afterInit'](){const _0x43b2e6=this['editor'];if(!_0x43b2e6['plugins']['has']('HtmlEmbed'))return;const _0x3131a1=_0x43b2e6['plugins']['get']('TrackChangesEditing'),_0x11f1cc=_0x43b2e6['locale'];_0x3131a1['descriptionFactory']['registerElementLabel']('rawHtml',_0x5f2547=>o(_0x11f1cc,'ELEMENT_HTML_EMBED',_0x5f2547)),_0x3131a1['enableDefaultAttributesIntegration']('htmlEmbed'),_0x3131a1['registerBlockAttribute']('value'),_0x3131a1['descriptionFactory']['registerDescriptionCallback'](_0x2e2847=>{if('attribute'!=_0x2e2847['type'])return;const {data:_0x150ca1}=_0x2e2847;if(_0x150ca1&&'value'==_0x150ca1['key']&&_0x2e2847['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x2a77b2=o(_0x11f1cc,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x11f1cc,'*Change\x20%0\x20content*',_0x2a77b2)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x43baa2=this['editor'],_0x4c2228=_0x43baa2['locale'];_0x43baa2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x584eac=>{if('formatBlock'!=_0x584eac['type'])return;const {data:_0x2fae81}=_0x584eac;if(_0x2fae81&&'htmlEmbed'==_0x2fae81['commandName']){const _0x3a1cf6=o(_0x4c2228,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x4c2228,'*Change\x20%0\x20content*',_0x3a1cf6)};}});}}class rt extends _0x41fe8e{['afterInit'](){const _0x296d0e=this['editor'];if(!_0x296d0e['plugins']['has']('ImageEditing'))return;const _0x2fe03a=_0x296d0e['plugins']['get']('TrackChangesEditing'),_0x7aab69=_0x296d0e['plugins']['get']('ImageUtils'),_0x10c6d2=_0x296d0e['locale'];_0x2fe03a['enableCommand']('insertImage'),_0x2fe03a['descriptionFactory']['registerElementLabel']('imageBlock',_0x54319a=>o(_0x10c6d2,'ELEMENT_IMAGE',_0x54319a)),_0x2fe03a['descriptionFactory']['registerElementLabel']('imageInline',_0x50fbcf=>o(_0x10c6d2,'ELEMENT_INLINE_IMAGE',_0x50fbcf)),_0x2fe03a['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x10c6d2,'ELEMENT_CAPTION')),_0x296d0e['plugins']['has']('ImageUploadEditing')&&_0x2fe03a['enableCommand']('uploadImage'),_0x296d0e['plugins']['has']('ImageBlockEditing')&&_0x296d0e['plugins']['has']('ImageInlineEditing')&&(_0x2fe03a['enableCommand']('imageTypeInline',(_0x4aebd8,_0x7423d4)=>{const _0x4116b8=_0x7aab69['getClosestSelectedImageElement'](_0x296d0e['model']['document']['selection']);_0x296d0e['model']['change'](()=>{_0x2fe03a['markBlockFormat'](_0x4116b8,{'commandName':'imageTypeInline','commandParams':[_0x7423d4]},[],'convertBlockImageToInline');});}),_0x2fe03a['enableCommand']('imageTypeBlock',(_0x3cc3fd,_0x53e30e)=>{_0x296d0e['model']['change'](_0x2b1739=>{let _0x127173=_0x7aab69['getClosestSelectedImageElement'](_0x296d0e['model']['document']['selection']),_0x1b9953=_0x2b1739['createRangeOn'](_0x127173);const _0x36a3ed=_0x282f17['fromPosition'](_0x1b9953['start'],'toPrevious'),_0x126f83=_0x282f17['fromPosition'](_0x1b9953['end'],'toNext');_0x2fe03a['forceDefaultExecution'](()=>_0x3cc3fd(_0x53e30e)),_0x127173=_0x7aab69['getClosestSelectedImageElement'](_0x296d0e['model']['document']['selection']),_0x1b9953=_0x2b1739['createRangeOn'](_0x127173);const _0x10173d=_0x2b1739['createRange'](_0x36a3ed,_0x126f83);_0x36a3ed['detach'](),_0x126f83['detach'](),_0x2fe03a['markBlockFormat'](_0x127173,{'commandName':'imageTypeInline','commandParams':[_0x53e30e]},[],'convertInlineImageToBlock'),_0x10173d['start']['isBefore'](_0x1b9953['start'])&&_0x2fe03a['markInsertion'](_0x2b1739['createRange'](_0x10173d['start'],_0x1b9953['start']),'convertInlineImageToBlock'),_0x1b9953['end']['isBefore'](_0x10173d['end'])&&_0x2fe03a['markInsertion'](_0x2b1739['createRange'](_0x1b9953['end'],_0x10173d['end']),'convertInlineImageToBlock');});}),_0x2fe03a['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x2fe03a['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x2fe03a['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x2fe03a['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x2fe03a['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x2fe03a['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x51e965])=>{const _0x1681c7=_0x2fe03a['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x2baac6=_0x51e965['start'],_0x46d9ee=_0x51e965['end'];const _0x3913ca=_0x296d0e['model']['schema']['getNearestSelectionRange'](_0x2baac6,'backward'),_0x318dcb=_0x296d0e['model']['schema']['getNearestSelectionRange'](_0x46d9ee,'forward');_0x3913ca['isCollapsed']&&(_0x2baac6=_0x3913ca['start']),_0x318dcb['isCollapsed']&&(_0x46d9ee=_0x318dcb['end']),_0x1681c7([_0x296d0e['model']['createRange'](_0x2baac6,_0x46d9ee)]);}),_0x2fe03a['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x2e10b1),_0x2fe03a['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x2e10b1)),_0x296d0e['plugins']['has']('ImageCaptionEditing')&&(_0x2fe03a['enableCommand']('toggleImageCaption',(_0x40485f,_0x18a323)=>{const _0x5e9b9e=_0x296d0e['plugins']['get']('ImageCaptionUtils');let _0x26864c=_0x7aab69['getClosestSelectedImageElement'](_0x296d0e['model']['document']['selection']),_0x5eac5d=_0x5e9b9e['getCaptionFromImageModelElement'](_0x26864c);_0x296d0e['model']['change'](()=>{if(_0x5eac5d)return void _0x2fe03a['markDeletion'](_0x296d0e['model']['createRangeOn'](_0x5eac5d));const _0x9ec2d0=_0x7aab69['isBlockImage'](_0x26864c);_0x40485f(_0x18a323),_0x26864c=_0x7aab69['getClosestSelectedImageElement'](_0x296d0e['model']['document']['selection']),_0x5eac5d=_0x5e9b9e['getCaptionFromImageModelElement'](_0x26864c),_0x2fe03a['markInsertion'](_0x296d0e['model']['createRangeOn'](_0x5eac5d),_0x9ec2d0?null:'imageCaption');});}),_0x2fe03a['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x2e10b1));const _0x3f9e35=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x45c561(_0x1d51e7,_0xba54e5){const _0x3a4153=_0x3f9e35['findIndex'](({type:_0x3bdbf4,subType:_0x5d1077})=>_0x1d51e7['type']==_0x3bdbf4&&_0x1d51e7['subType']==_0x5d1077),_0x7c6079=_0x3f9e35['findIndex'](({type:_0x11ba0b,subType:_0x2d601f})=>_0xba54e5['type']==_0x11ba0b&&_0xba54e5['subType']==_0x2d601f);if(_0x3a4153<0x0||_0x7c6079<0x0)return!0x1;const _0x4cdc4a=_0x1d51e7['getFirstRange'](),_0x4d0d4e=_0xba54e5['getFirstRange']();if((0x0==_0x3a4153||0x1==_0x3a4153)&&0x2==_0x7c6079&&_0x4cdc4a['isIntersecting'](_0x4d0d4e))return!0x0;if(0x2==_0x3a4153&&0x3==_0x7c6079){const _0x547983=_0x2fe03a['_findSuggestions'](_0x4cdc4a,'insertion')['filter'](({suggestion:_0x549213,meta:_0x2a5b19})=>_0x2a5b19['isOwn']&&'convertInlineImageToBlock'==_0x549213['subType']);if(_0x547983['length']>0x1&&_0x4d0d4e['end']['isEqual'](_0x4cdc4a['start']))return!0x0;if(0x1==_0x547983['length']&&(_0x4cdc4a['start']['isEqual'](_0x4d0d4e['end'])||_0x4cdc4a['end']['isEqual'](_0x4d0d4e['start'])))return!0x0;}if(0x3==_0x3a4153&&0x3==_0x7c6079&&_0x4cdc4a['start']['isBefore'](_0x4d0d4e['start'])){const _0x10c7e6=_0x4cdc4a['end']['nodeAfter'],_0x586df4=_0x4d0d4e['start']['nodeBefore'];return _0x7aab69['isBlockImage'](_0x10c7e6)&&_0x10c7e6===_0x586df4;}return!0x1;}function _0x2e10b1(_0x2105dd,_0x59130c){return _0x45c561(_0x2105dd,_0x59130c)?[_0x2105dd,_0x59130c]:_0x45c561(_0x59130c,_0x2105dd)?[_0x59130c,_0x2105dd]:null;}_0x296d0e['plugins']['has']('ImageResize')&&(_0x2fe03a['enableDefaultAttributesIntegration']('resizeImage'),_0x2fe03a['registerBlockAttribute']('resizedWidth'),_0x2fe03a['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x10c6d2,'FORMAT_IMAGE_SIZE'))),_0x296d0e['plugins']['has']('ImageTextAlternativeEditing')&&(_0x2fe03a['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x2fe03a['registerBlockAttribute']('alt')),_0x296d0e['plugins']['has']('PictureEditing')&&(_0x2fe03a['registerBlockAttribute']('sources'),_0x2fe03a['descriptionFactory']['registerDescriptionCallback'](_0x524e99=>{if('attribute'!=_0x524e99['type'])return;const {data:_0x796cb}=_0x524e99;return _0x796cb&&'sources'==_0x796cb['key']?{'type':'format','content':''}:void 0x0;})),_0x296d0e['plugins']['has']('ImageSizeAttributes')&&(_0x2fe03a['registerBlockAttribute']('width'),_0x2fe03a['registerBlockAttribute']('height'),_0x2fe03a['descriptionFactory']['registerDescriptionCallback'](_0x33ffc0=>{if('attribute'!=_0x33ffc0['type'])return;const {data:_0x520a31}=_0x33ffc0;return!_0x520a31||'width'!=_0x520a31['key']&&'height'!=_0x520a31['key']?void 0x0:{'type':'format','content':''};})),_0x2fe03a['descriptionFactory']['registerDescriptionCallback'](_0x225986=>{if(!!_0x3f9e35['find'](({type:_0x6d4d66,subType:_0x52824b})=>_0x225986['type']==_0x6d4d66&&_0x225986['subType']==_0x52824b))return _0x225986['previous']?{}:void 0x0;}),_0x2fe03a['descriptionFactory']['registerDescriptionCallback'](_0x4e0502=>{if('insertion'==_0x4e0502['type']||'deletion'==_0x4e0502['type']){const _0x1df7bf=_0x4e0502['getContainedElement']();if(_0x1df7bf&&_0x1df7bf['is']('element','caption'))return{'type':'insertion'==_0x4e0502['type']?'addObject':'removeObject','element':_0x1df7bf,'quantity':0x1};}}),_0x2fe03a['descriptionFactory']['registerDescriptionCallback'](_0x232303=>'formatBlock'==_0x232303['type']&&'convertInlineImageToBlock'==_0x232303['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x232303['type']&&'convertBlockImageToInline'==_0x232303['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x2fe03a['descriptionFactory']['registerDescriptionCallback'](_0xfea60f=>{if('attribute'!=_0xfea60f['type'])return;const {data:_0x544f5c}=_0xfea60f;if(!_0x544f5c||'alt'!=_0x544f5c['key'])return;const _0x55e37c=_0x544f5c['newValue'];return _0x55e37c?{'type':'format','content':o(_0x10c6d2,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x55e37c+'\x22')}:{'type':'format','content':o(_0x10c6d2,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x217606=this['editor'],_0x295090=_0x217606['locale'];_0x217606['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x47a89b=>{if('formatBlock'!=_0x47a89b['type']&&'formatInline'!=_0x47a89b['type'])return;const {data:_0x2cd057}=_0x47a89b;if(_0x2cd057){if('imageTextAlternative'==_0x2cd057['commandName']){const _0x3da3a3=_0x2cd057['commandParams'][0x0]['newValue'];return _0x3da3a3?{'type':'format','content':o(_0x295090,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3da3a3+'\x22')}:{'type':'format','content':o(_0x295090,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x2cd057['commandName']){const _0x5c2473=_0x2cd057['commandParams'][0x0]['width'];return _0x5c2473?{'type':'format','content':o(_0x295090,'*Set\x20image\x20width:*\x20%0',_0x5c2473)}:{'type':'format','content':o(_0x295090,'*Reset\x20image\x20width*')};}}});}}class at extends _0x41fe8e{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x436195=this['editor']['locale'],_0x1c9d0a=this['editor']['plugins']['get']('TrackChangesEditing');_0x1c9d0a['enableDefaultAttributesIntegration']('replaceImageSource'),_0x1c9d0a['registerBlockAttribute']('src'),_0x1c9d0a['descriptionFactory']['registerDescriptionCallback'](_0x3879c9=>{if('attribute'!=_0x3879c9['type'])return;const {data:_0x131a3b}=_0x3879c9;return _0x131a3b&&'src'==_0x131a3b['key']?_0x131a3b['newValue']&&_0x131a3b['oldValue']?{'type':'format','content':o(_0x436195,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5b646d=this['editor']['plugins']['get']('TrackChangesEditing');_0x5b646d['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x5b646d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5b646d['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x5b646d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x171eb1=this['editor'],_0xa5a6f3=_0x171eb1['locale'];_0x171eb1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x861436=>{if('formatBlock'!=_0x861436['type']&&'formatInline'!=_0x861436['type'])return;const {data:_0x4bb45f}=_0x861436;if(!_0x4bb45f||'replaceImageSource'!=_0x4bb45f['commandName'])return;return{'type':'format','content':o(_0xa5a6f3,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x41fe8e{['afterInit'](){const _0x5dd5a3=this['editor'];if(!_0x5dd5a3['plugins']['has']('ImageStyleEditing'))return;const _0x4c9c30=_0x5dd5a3['plugins']['get']('TrackChangesEditing'),_0x5aa74c=_0x5dd5a3['plugins']['get']('ImageUtils'),_0xc666ac={};_0x4c9c30['enableCommand']('imageStyle',(_0x14e1fd,_0x3cbf90)=>{const _0x20a47c=_0x5dd5a3['plugins']['get']('Users')['me'],_0x255165=_0x5dd5a3['commands']['get']('imageStyle');let _0x4ffd75=_0x5aa74c['getClosestSelectedImageElement'](_0x5dd5a3['model']['document']['selection']),_0xfe74ca=_0x5dd5a3['model']['createRangeOn'](_0x4ffd75),_0x3bc3f3=_0x255165['value'];if(_0x3bc3f3==_0x3cbf90['value'])return;const _0x47fca2={'commandName':'imageStyle','commandParams':[_0x3cbf90],'formatGroupId':_0x3cfc9c()};_0x5dd5a3['model']['change'](()=>{if(_0x4c9c30['getSuggestions']()['filter'](_0x1195d=>_0x1195d['isInContent']&&_0x20a47c==_0x1195d['author']&&('formatBlock'==_0x1195d['type']||'formatInline'==_0x1195d['type'])&&('imageStylePreApply'==_0x1195d['subType']||'imageStylePostApply'==_0x1195d['subType'])&&_0x1195d['getFirstRange']()['isEqual'](_0xfe74ca))['forEach'](_0x3b1d25=>_0x4c9c30['discardSuggestion'](_0x3b1d25['head'])),_0x4ffd75=_0x5aa74c['getClosestSelectedImageElement'](_0x5dd5a3['model']['document']['selection']),_0xfe74ca=_0x5dd5a3['model']['createRangeOn'](_0x4ffd75),_0x255165['refresh'](),_0x5dd5a3['commands']['get']('imageTypeInline')['refresh'](),_0x5dd5a3['commands']['get']('imageTypeBlock')['refresh'](),_0x3bc3f3=_0x255165['value'],_0x3bc3f3!=_0x3cbf90['value'])return _0x5aa74c['isInlineImage'](_0x4ffd75)&&_0x255165['shouldConvertImageType'](_0x3cbf90['value'],_0x4ffd75)?(_0x14e1fd({..._0x3cbf90,'setImageSizes':!0x1}),_0x4ffd75=_0x5aa74c['getClosestSelectedImageElement'](_0x5dd5a3['model']['document']['selection']),void _0x4c9c30['markBlockFormat'](_0x4ffd75,{..._0x47fca2,'commandReversedParams':[{'value':_0x3bc3f3||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x5aa74c['isBlockImage'](_0x4ffd75)?_0x4c9c30['markBlockFormat'](_0x4ffd75,_0x47fca2,[],'imageStylePostApply'):_0x4c9c30['markInlineFormat'](_0xfe74ca,_0x47fca2,'imageStylePostApply'));});});for(const _0x1c4131 of _0x5dd5a3['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0xc666ac[_0x1c4131['name']]=_0x1c4131['title']['toLowerCase']();_0x4c9c30['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x4c9c30['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x4c9c30['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x4c9c30['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x2f5004])=>{_0x5aa74c['setImageNaturalSizeAttributes'](_0x2f5004['getContainedElement']());}),_0x4c9c30['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x36397a,_0x48d577)=>{_0x4c9c30['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x36397a,{'commandName':_0x48d577['commandName'],'commandParams':_0x48d577['commandReversedParams']});}),_0x4c9c30['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x4320d4,_0x4c68b3){if(_0x16af8e(_0x4320d4,_0x4c68b3))return[_0x4320d4,_0x4c68b3];if(_0x16af8e(_0x4c68b3,_0x4320d4))return[_0x4c68b3,_0x4320d4];return null;});const _0x222582=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x16af8e(_0x2d4e09,_0x488589){const _0x537728=_0x222582['findIndex'](({type:_0x23f124,subType:_0x5e7840})=>_0x2d4e09['type']==_0x23f124&&_0x2d4e09['subType']==_0x5e7840),_0x18ae1f=_0x222582['findIndex'](({type:_0x5290ee,subType:_0x3adaef})=>_0x488589['type']==_0x5290ee&&_0x488589['subType']==_0x3adaef);if(_0x537728<0x0||_0x18ae1f<0x0)return!0x1;const _0x5f342f=_0x2d4e09['getFirstRange'](),_0x2d44bc=_0x488589['getFirstRange']();if((0x0==_0x537728||0x1==_0x537728)&&0x2==_0x18ae1f&&_0x5f342f['isIntersecting'](_0x2d44bc))return!0x0;if(0x2==_0x537728&&0x3==_0x18ae1f){const _0xfff301=_0x4c9c30['_findSuggestions'](_0x5f342f,'insertion')['filter'](({suggestion:_0x254f23,meta:_0x5c818a})=>_0x5c818a['isOwn']&&'convertInlineImageToBlock'==_0x254f23['subType']);if(_0xfff301['length']>0x1&&_0x2d44bc['end']['isEqual'](_0x5f342f['start']))return!0x0;if(0x1==_0xfff301['length']&&(_0x5f342f['start']['isEqual'](_0x2d44bc['end'])||_0x5f342f['end']['isEqual'](_0x2d44bc['start'])))return!0x0;}if(0x3==_0x537728&&0x3==_0x18ae1f&&_0x5f342f['start']['isBefore'](_0x2d44bc['start'])){const _0xc34098=_0x5f342f['end']['nodeAfter'],_0x5e232c=_0x2d44bc['start']['nodeBefore'];return _0x5aa74c['isBlockImage'](_0xc34098)&&_0xc34098===_0x5e232c;}return!0x1;}_0x5dd5a3['model']['document']['registerPostFixer'](()=>{let _0x323e5d=!0x1;const _0x2ff82a=Array['from'](_0x5dd5a3['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x42d4a2,data:_0x528da2}of _0x2ff82a){const {group:_0x544ec5,type:_0xe399d,subType:_0x53a3ba,id:_0x4f7e6f}=_0x4c9c30['_splitMarkerName'](_0x42d4a2);if('suggestion'==_0x544ec5&&_0x4c9c30['hasSuggestion'](_0x4f7e6f)){if('formatBlock'==_0xe399d&&('imageStylePreApply'==_0x53a3ba||'imageStylePostApply'==_0x53a3ba)){const _0x4ddea5=_0x4c9c30['getSuggestion'](_0x4f7e6f);if(_0x528da2['newRange']){const _0x25a085=_0x4ddea5['getFirstRange']()['getContainedElement']();if(_0x5aa74c['isBlockImage'](_0x25a085))continue;_0x4c9c30['discardSuggestion'](_0x4ddea5),_0x323e5d=!0x0;}}if('insertion'==_0xe399d&&'imageCaption'==_0x53a3ba&&!_0x528da2['newRange']){const _0x236057=_0x4c9c30['getSuggestion'](_0x4f7e6f);_0x236057['next']&&_0x236057['next']['isInContent']&&(_0x4c9c30['discardSuggestion'](_0x236057['next']),_0x323e5d=!0x0);}}}return _0x323e5d;}),this['_registerLegacyDescription'](_0xc666ac);}['_registerLegacyDescription'](_0x40fdb2){const _0x1d5b77=this['editor'],_0x1fbd9b=_0x1d5b77['locale'];_0x1d5b77['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2629a9=>{if('formatBlock'!=_0x2629a9['type']&&'formatInline'!=_0x2629a9['type'])return;const {data:_0x4f6f94}=_0x2629a9;if(!_0x4f6f94||'imageStyle'!=_0x4f6f94['commandName'])return;const _0x2bd8b1=_0x4f6f94['commandParams'][0x0]['value'];return _0xcfa52e('side'===_0x2bd8b1?o(_0x1fbd9b,'FORMAT_SIDE_IMAGE'):_0x40fdb2[_0x2bd8b1]||_0x2bd8b1);function _0xcfa52e(_0x40c462){return{'type':'format','content':o(_0x1fbd9b,'*Format:*\x20%0',_0x40c462)};}});}}class ut extends _0x41fe8e{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0xbae81b){super(_0xbae81b),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x300bff=this['editor'],_0x2f1e93=_0x300bff['commands']['get']('importWord'),_0x1aadb9=_0x300bff['commands']['get']('trackChanges');_0x2f1e93&&(_0x2f1e93['on']('execute',(_0x5a443f,[,_0x56e997])=>{this['_trackChangesValueDuringImport']=_0x1aadb9['value'],_0x56e997['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x2f1e93,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x2f1e93,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x1aadb9['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x300bff['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x3ff315,_0x1ffe3b){const {suggestions:_0x6f205b}=_0x1ffe3b,_0x3f5668=this['editor']['commands']['get']('trackChanges'),_0x1e7dd9=_0x3f5668['value'];this['_trackChangesValueDuringImport']!==_0x1e7dd9&&(_0x3f5668['execute'](),this['_trackChangesExecuted']=!0x0),_0x6f205b&&_0x6f205b['forEach'](({id:_0x259706,type:_0x5c0c75,author:_0x27741d,created_at:_0xd4a80b})=>{const _0x1df43d={'id':_0x259706,'type':_0x5c0c75,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x27741d,'createdAt':_0xd4a80b?new Date(_0xd4a80b):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x1df43d);});}}class ft extends _0x41fe8e{['afterInit'](){const _0x33cefc=this['editor'],_0x384b75=_0x33cefc['plugins']['get']('TrackChangesEditing');if(_0x33cefc['plugins']['has']('IndentEditing')&&(_0x384b75['enableCommand']('indent'),_0x384b75['enableCommand']('outdent')),_0x33cefc['plugins']['has']('IndentBlock')){for(const _0x17cada of['indentBlock','outdentBlock'])_0x384b75['enableDefaultAttributesIntegration'](_0x17cada);}const _0x3a5647=_0x33cefc['locale'];_0x384b75['registerBlockAttribute']('blockIndent'),_0x384b75['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x3a5647,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1d15bd=this['editor'],_0x10ddcc=_0x1d15bd['locale'],_0x65e00f=_0x1d15bd['plugins']['get']('TrackChangesEditing');_0x65e00f['descriptionFactory']['registerDescriptionCallback'](_0x4e1bbf=>{if('formatBlock'!=_0x4e1bbf['type'])return;const {data:_0x2bbe5f}=_0x4e1bbf;if(!_0x2bbe5f)return;if('indentBlock'!=_0x2bbe5f['commandName']&&'outdentBlock'!=_0x2bbe5f['commandName'])return;const _0x4c476f=_0x4e1bbf['getItems']()[0x0],_0x289b58=_0x65e00f['descriptionFactory']['getItemLabel'](_0x4c476f);return'indentBlock'==_0x2bbe5f['commandName']?{'type':'format','content':o(_0x10ddcc,'*Indent:*\x20%0',_0x289b58)}:'outdentBlock'==_0x2bbe5f['commandName']?{'type':'format','content':o(_0x10ddcc,'*Outdent:*\x20%0',_0x289b58)}:void 0x0;});}}class ht extends _0x41fe8e{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x41fe8e{['afterInit'](){const _0x3c3dec=this['editor'];if(!_0x3c3dec['plugins']['has']('LinkEditing'))return;const _0x2100ea=_0x3c3dec['plugins']['get']('TrackChangesEditing'),_0x19c18d=_0x3c3dec['commands']['get']('link');_0x2100ea['enableDefaultAttributesIntegration']('link'),_0x2100ea['enableDefaultAttributesIntegration']('unlink'),_0x2100ea['registerInlineAttribute']('linkHref');for(const _0x234254 of _0x19c18d['manualDecorators'])_0x2100ea['registerInlineAttribute'](_0x234254['id']),_0x2100ea['descriptionFactory']['registerAttributeLabel'](_0x234254['id'],'link\x20('+_0x234254['label']['toLowerCase']()+')');_0x2100ea['descriptionFactory']['registerDescriptionCallback'](_0x430fea=>{if('attribute'!=_0x430fea['type'])return;const {data:_0x503eca}=_0x430fea;if(!_0x503eca||'linkHref'!=_0x503eca['key'])return;const _0x11ef5a=_0x503eca['newValue'],_0x321e7d=_0x3c3dec['locale'];return{'type':'format','content':null==_0x11ef5a?o(_0x321e7d,'*Remove\x20link*'):o(_0x321e7d,'*Set\x20link:*\x20%0','\x22'+_0x11ef5a+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x600849=this['editor'],_0x4379ef=_0x600849['locale'];_0x600849['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x343a20=>{if('formatInline'!=_0x343a20['type'])return;const {data:_0x444c25}=_0x343a20;if(_0x444c25){if('link'==_0x444c25['commandName']){const _0x573bdb=_0x444c25['commandParams'][0x0];return{'type':'format','content':o(_0x4379ef,'*Set\x20link:*\x20%0','\x22'+_0x573bdb+'\x22')};}return'unlink'==_0x444c25['commandName']?{'type':'format','content':o(_0x4379ef,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x41fe8e{['afterInit'](){const _0x52bdb7=this['editor'],_0x355766=_0x52bdb7['locale'];if(!_0x52bdb7['plugins']['has']('LegacyListEditing'))return;const _0x4c1f69=_0x52bdb7['plugins']['get']('TrackChangesEditing'),_0x430eb4=_0x52bdb7['plugins']['has']('LegacyTodoListEditing');function _0x61950f(_0x3c4ca6){return()=>{const _0x4b486d=_0x52bdb7['model']['document']['selection'],_0x55589e=_0x52bdb7['commands']['get'](_0x3c4ca6);if(_0x55589e['value'])return void _0x52bdb7['execute']('paragraph',{});const _0x49ee18=_0x3c4ca6['slice'](0x0,-0x4),_0x2aef48=function(_0x5fdd78,_0x52ef38,_0x3a96a9){let _0x34dd14=Array['from'](_0x5fdd78)['filter'](_0x270f42=>function(_0x398179,_0x16c1d8){return _0x16c1d8['checkChild'](_0x398179['parent'],'listItem')&&!_0x16c1d8['isObject'](_0x398179);}(_0x270f42,_0x3a96a9));_0x34dd14=_0x34dd14['filter'](_0x2c55ee=>!_0x2c55ee['is']('element','listItem')||_0x2c55ee['getAttribute']('listType')!=_0x52ef38);const _0x37ce17=new Set();for(const _0x3e5647 of _0x34dd14)_0x3e5647['is']('element','listItem')?_0x37ce17['add'](Le(_0x3e5647)):_0x37ce17['add'](_0x3e5647);return Array['from'](_0x37ce17);}(_0x4b486d['getSelectedBlocks'](),_0x49ee18,_0x52bdb7['model']['schema']);_0x52bdb7['model']['change'](()=>{for(const _0x780e16 of _0x2aef48)_0x4c1f69['markBlockFormat'](_0x780e16,{'commandName':_0x3c4ca6,'commandParams':[{'forceValue':!_0x55589e['value']}],'formatGroupId':'blockName'},Ee(_0x780e16));});};}function _0x49cc94(_0x45f28f){return()=>{const _0x535450=function(_0x541319){let _0x2eaa39=Array['from'](_0x541319);const _0x283649=_0x2eaa39['findIndex'](_0x16a777=>'listItem'!=_0x16a777['name']);return _0x283649>-0x1&&(_0x2eaa39=_0x2eaa39['slice'](0x0,_0x283649)),_0x2eaa39;}(_0x52bdb7['model']['document']['selection']['getSelectedBlocks']()),_0x44b42a=_0x52bdb7['model']['createRange'](_0x52bdb7['model']['createPositionAt'](_0x535450[0x0],'before'),_0x52bdb7['model']['createPositionAt'](_0x535450[_0x535450['length']-0x1],'end'));_0x52bdb7['model']['change'](()=>{_0x4c1f69['markBlockFormat'](_0x44b42a,{'commandName':_0x45f28f,'commandParams':[],'formatGroupId':'listIndent'},function(_0x4432cc){const _0x1aca0c=new Set();for(const _0x2feeae of _0x4432cc){let _0x18b085=_0x2feeae['nextSibling'];for(;_0x18b085&&_0x18b085['getAttribute']('listIndent')>_0x2feeae['getAttribute']('listIndent');)_0x1aca0c['add'](_0x18b085),_0x18b085=_0x18b085['nextSibling'];}return Array['from'](_0x1aca0c);}(_0x535450));});};}_0x4c1f69['enableCommand']('numberedList',_0x61950f('numberedList')),_0x4c1f69['enableCommand']('bulletedList',_0x61950f('bulletedList')),_0x430eb4&&_0x4c1f69['enableCommand']('todoList',_0x61950f('todoList')),_0x4c1f69['enableCommand']('indentList',_0x49cc94('indentList')),_0x4c1f69['enableCommand']('outdentList',_0x49cc94('outdentList')),_0x430eb4&&_0x4c1f69['enableCommand']('checkTodoList',()=>{const _0x19ed00=_0x52bdb7['commands']['get']('checkTodoList'),_0x57e360=Array['from'](_0x19ed00['_selectedElements']);_0x57e360['filter'](_0x13cc9c=>_0x13cc9c['getAttribute']('todoListChecked')!=_0x19ed00['value']),_0x52bdb7['model']['change'](()=>{for(const _0x57b96f of _0x57e360)_0x4c1f69['markBlockFormat'](_0x57b96f,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x19ed00['value']}]});});}),_0x4c1f69['descriptionFactory']['registerElementLabel']('listItem',_0x5a6898=>o(_0x355766,'ELEMENT_LIST_ITEM',_0x5a6898)),_0x4c1f69['descriptionFactory']['registerDescriptionCallback'](_0x478fd8=>{if('formatBlock'!=_0x478fd8['type']&&'formatInline'!=_0x478fd8['type'])return;const {data:_0x2b4d88}=_0x478fd8;if(_0x2b4d88){if('numberedList'==_0x2b4d88['commandName']||'bulletedList'==_0x2b4d88['commandName']||'todoList'==_0x2b4d88['commandName'])switch(_0x2b4d88['commandName']['replace']('List','')){case'bulleted':return _0x33c98a(o(_0x355766,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x33c98a(o(_0x355766,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x33c98a(o(_0x355766,'ELEMENT_TODO_LIST'));}if('indentList'==_0x2b4d88['commandName'])return{'type':'format','content':o(_0x355766,'*Indent:*\x20%0',o(_0x355766,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x2b4d88['commandName'])return{'type':'format','content':o(_0x355766,'*Outdent:*\x20%0',o(_0x355766,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x2b4d88['commandName'])return _0x2b4d88['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x355766,'*Check\x20item*')}:{'type':'format','content':o(_0x355766,'*Uncheck\x20item*')};}function _0x33c98a(_0x4da560){return{'type':'format','content':o(_0x355766,'*Change\x20to:*\x20%0',_0x4da560)};}});}}function Le(_0x8d42d6){const _0x421482=_0x8d42d6['getAttribute']('listIndent');if(0x0==_0x421482)return _0x8d42d6;let _0xe31501=_0x8d42d6;for(;_0x8d42d6['previousSibling']&&_0x8d42d6['previousSibling']['is']('element','listItem');){const _0x2aea43=_0x8d42d6['previousSibling']['getAttribute']('listIndent');if(_0x2aea43==_0x421482)_0xe31501=_0x8d42d6['previousSibling'];else{if(_0x2aea43<_0x421482)break;}_0x8d42d6=_0x8d42d6['previousSibling'];}return _0xe31501;}function Ee(_0x4f68b9){const _0x54eae6=[];if(_0x4f68b9['is']('element','listItem')&&_0x4f68b9['getAttribute']('listIndent')>0x0){let _0x300d59=_0x4f68b9['nextSibling'];for(;_0x300d59&&'listItem'==_0x300d59['name']&&_0x300d59['getAttribute']('listIndent')==_0x4f68b9['getAttribute']('listIndent');)_0x54eae6['push'](_0x300d59),_0x300d59=_0x300d59['nextSibling'];}return _0x54eae6;}class Q extends _0x41fe8e{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x2da4a7=this['editor']['config']['get']('list.properties'),_0x3cca43=this['editor']['plugins']['get']('TrackChangesEditing');_0x2da4a7['styles']&&_0x3cca43['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x2da4a7['reversed']&&_0x3cca43['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x2da4a7['startIndex']&&_0x3cca43['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x3cca43['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x59e703,_0x589ba6={}){const _0x2141a7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x219b32=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x2141a7['markMultiRangeBlockFormat'](_0x219b32,{'commandName':'listStyle','commandParams':[{'type':_0x589ba6['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x41bfc9,_0x3f0942={}){const _0x1da935=this['editor']['plugins']['get']('TrackChangesEditing'),_0x44259a=this['_getSuggestionBlocks'](_0x277d98=>_0x277d98['is']('element','listItem')&&'numbered'===_0x277d98['getAttribute']('listType'));if(_0x44259a['length']<0x1)return;const _0x23a111=_0x44259a['map'](_0x5200db=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5200db,'before'),this['editor']['model']['createPositionAt'](_0x5200db,0x0)));this['editor']['model']['change'](()=>{_0x1da935['markMultiRangeBlockFormat'](_0x23a111,{'commandName':'listReversed','commandParams':[{'reversed':_0x3f0942['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x45a26b,_0xd9977a={}){const _0x375626=this['editor']['plugins']['get']('TrackChangesEditing'),_0x116042=this['_getSuggestionBlocks'](_0x5aba73=>_0x5aba73['is']('element','listItem')&&'numbered'===_0x5aba73['getAttribute']('listType'));if(_0x116042['length']<0x1)return;const _0x25da5e=_0x116042['map'](_0x8e4182=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x8e4182,'before'),this['editor']['model']['createPositionAt'](_0x8e4182,0x0)));this['editor']['model']['change'](()=>{_0x375626['markMultiRangeBlockFormat'](_0x25da5e,{'commandName':'listStart','commandParams':[{'startIndex':_0xd9977a['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x551d88){if('formatBlock'!=_0x551d88['type']&&'formatInline'!=_0x551d88['type'])return;const _0x5d6c15=this['editor']['locale'],{data:_0x2382ce}=_0x551d88;if(!_0x2382ce)return;let _0x5ae269,_0xd983ea;switch(_0x2382ce['commandName']){case'listStyle':_0x5ae269='*Change\x20to:*\x20%0',_0xd983ea={'type':'format','content':o(_0x5d6c15,_0x5ae269,o(_0x5d6c15,this['_getTranslationKeyForListStyle'](_0x2382ce['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5ae269=_0x2382ce['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xd983ea={'type':'format','content':o(_0x5d6c15,_0x5ae269)};break;case'listStart':_0x5ae269='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xd983ea={'type':'format','content':o(_0x5d6c15,_0x5ae269,_0x2382ce['commandParams'][0x0]['startIndex'])};}return _0xd983ea;}['_getSuggestionBlocksForListStyle'](){const _0x2aef34=this['editor']['plugins']['get']('LegacyListUtils');let _0x379d2e=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x379d2e[0x0]?.['is']('element','listItem')&&_0x379d2e['unshift'](..._0x2aef34['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x379d2e[_0x379d2e['length']-0x1]?.['is']('element','listItem')&&_0x379d2e['push'](..._0x2aef34['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x379d2e=[...new Set(_0x379d2e)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x379d2e=_0x379d2e['filter'](_0x525e6b=>_0x525e6b['is']('element','listItem'))),_0x379d2e;}['_getSuggestionBlocks'](_0x11865c){const _0x23cb0e=this['editor']['plugins']['get']('LegacyListUtils');let _0x52fe0c=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x11865c)['map'](_0xa16d6a=>{const _0x51165b=this['editor']['model']['createPositionAt'](_0xa16d6a,0x0);return[..._0x23cb0e['getSiblingNodes'](_0x51165b,'backward'),..._0x23cb0e['getSiblingNodes'](_0x51165b,'forward')];})['flat']();return _0x52fe0c=[...new Set(_0x52fe0c)],_0x52fe0c;}['_getTranslationKeyForListStyle'](_0x3193e5){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x3193e5)||'default')['toUpperCase']()+'_LIST_'+_0x3193e5['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x41fe8e{['afterInit'](){const _0x5bab5e=this['editor'];if(!_0x5bab5e['plugins']['has']('MediaEmbedEditing'))return;const _0x24b6a2=_0x5bab5e['plugins']['get']('TrackChangesEditing'),_0x1dcf19=_0x5bab5e['locale'];_0x24b6a2['enableCommand']('mediaEmbed'),_0x24b6a2['descriptionFactory']['registerElementLabel']('media',_0x47bd0e=>o(_0x1dcf19,'ELEMENT_MEDIA',_0x47bd0e)),_0x5bab5e['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x51aa4c,{writer:_0x218907,options:_0xa2d482})=>{if(_0xa2d482['showSuggestionHighlights'])return _0x218907['createEmptyElement']('div');},'converterPriority':'high'}),_0x5bab5e['data']['downcastDispatcher']['on']('attribute:url:media',(_0x32570a,_0x32fc33,_0x171800)=>{_0x171800['options']['showSuggestionHighlights']&&_0x32570a['stop']();},{'priority':'high'});}}class pt extends _0x41fe8e{['afterInit'](){const _0x4ca0c7=this['editor'];_0x4ca0c7['plugins']['has']('MentionEditing')&&_0x4ca0c7['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x41fe8e{['afterInit'](){const _0x219caa=this['editor'];if(!_0x219caa['plugins']['has']('MergeFieldsEditing'))return;const _0x184b4f=_0x219caa['plugins']['get']('TrackChangesEditing'),_0x5b6dcc=_0x219caa['locale'];_0x184b4f['enableCommand']('insertMergeField'),_0x184b4f['enableCommand']('insertMergeFieldBlock'),_0x184b4f['enableCommand']('insertMergeFieldImage'),_0x184b4f['descriptionFactory']['registerElementLabel']('mergeField',_0x4a7a2f=>o(_0x5b6dcc,'ELEMENT_MERGE_FIELD',_0x4a7a2f)),_0x184b4f['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x555d3c=>o(_0x5b6dcc,'ELEMENT_MERGE_FIELD',_0x555d3c)),_0x184b4f['descriptionFactory']['registerDescriptionCallback'](_0x587b77=>{if('insertion'!=_0x587b77['type']&&'deletion'!=_0x587b77['type'])return;const _0x2d0ce9=_0x587b77['getContainedElement']();if(null==_0x2d0ce9)return;const _0x5eebe8=_0x219caa['plugins']['get']('MergeFieldsEditing');let _0x4b17aa;switch(_0x5eebe8['getMergeFieldType'](_0x2d0ce9)){case null:return;case'image':{const _0x1ef95a=_0x5eebe8['unwrapAffixes'](_0x2d0ce9['getAttribute']('src'));_0x4b17aa=_0x5eebe8['getLabel'](_0x1ef95a)||_0x1ef95a;break;}default:{const _0x21c5bf=_0x2d0ce9['getAttribute']('id');_0x4b17aa=_0x5eebe8['getLabel'](_0x21c5bf)||_0x21c5bf;break;}}return'insertion'==_0x587b77['type']?{'type':'insertion','content':o(_0x5b6dcc,'*Insert:*\x20%0','\x22'+_0x4b17aa+'\x22\x20'+o(_0x5b6dcc,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x5b6dcc,'*Remove:*\x20%0','\x22'+_0x4b17aa+'\x22\x20'+o(_0x5b6dcc,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x41fe8e{['afterInit'](){const _0x1ee442=this['editor'],_0x52b5ec=_0x1ee442['plugins']['get']('TrackChangesEditing');_0x1ee442['plugins']['has']('MultiLevelList')&&(_0x52b5ec['enableDefaultAttributesIntegration']('multiLevelList'),_0x52b5ec['registerBlockAttribute']('listMarkerStyle'),_0x52b5ec['descriptionFactory']['registerDescriptionCallback'](_0x56494d=>this['handleDescriptions'](_0x56494d)));}['handleDescriptions'](_0x3be9af){const _0x5e6b78=this['editor']['locale'],{data:_0x418808}=_0x3be9af,_0x5a67e1={'type':'format','content':''};if(_0x418808&&'listMarkerStyle'==_0x418808['key']){if(!_0x418808['oldValue'])return{'type':'format','content':o(_0x5e6b78,'*Set\x20format:*\x20%0',o(_0x5e6b78,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x418808['newValue']+')'};if(!_0x418808['newValue']){let _0x3ab028=_0x3be9af['head'];for(;_0x3ab028;){if(_0x3ab028['data']&&'listType'==_0x3ab028['data']['key']&&_0x3ab028['data']['newValue'])return _0x5a67e1;_0x3ab028=_0x3ab028['next'];}return{'type':'format','content':o(_0x5e6b78,'*Remove\x20format:*\x20%0',o(_0x5e6b78,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x418808['oldValue']+')'};}}}}class bt extends _0x41fe8e{['afterInit'](){const _0x49fdfa=this['editor'];if(!_0x49fdfa['plugins']['has']('PageBreakEditing'))return;_0x49fdfa['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x50f117=_0x49fdfa['plugins']['get']('TrackChangesEditing'),_0xba80f1=_0x49fdfa['locale'];_0x50f117['descriptionFactory']['registerElementLabel']('pageBreak',_0x25f896=>o(_0xba80f1,'ELEMENT_PAGE_BREAK',_0x25f896));}}class yt extends _0x41fe8e{['afterInit'](){const _0x421852=this['editor'];if(!_0x421852['plugins']['has']('Paragraph'))return;const _0x5a197f=_0x421852['locale'],_0x4e025f=_0x421852['plugins']['get']('TrackChangesEditing');_0x4e025f['descriptionFactory']['registerElementLabel']('paragraph',_0x900d96=>o(_0x5a197f,'ELEMENT_PARAGRAPH',_0x900d96)),_0x4e025f['enableDefaultAttributesIntegration']('paragraph'),_0x4e025f['enableCommand']('insertParagraph'),_0x421852['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x421852),{'priority':'highest'}),_0x421852['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5ded4f,_0x1c269c,_0x1877a9)=>{_0x1877a9['options']['showSuggestionHighlights']&&nr(_0x421852,{'showActiveMarker':!0x1})(_0x5ded4f,_0x1c269c,_0x1877a9);},{'priority':'highest'});const _0x5d3dd3=_0x4e025f['descriptionFactory'];_0x5d3dd3['registerDescriptionCallback'](_0x3a13a6=>{if('insertion'!==_0x3a13a6['type'])return;const {start:_0x13ad0c,end:_0x2bf1f4}=_0x3a13a6['getFirstRange']();if(!_0x13ad0c['isTouching'](_0x2bf1f4)||!_0x13ad0c['nodeAfter'])return;const _0x25fdb4=_0x421852['model']['schema'],_0x106aab=_0x13ad0c['nodeAfter'];return _0x25fdb4['isBlock'](_0x106aab)&&!_0x25fdb4['isLimit'](_0x106aab)&&_0x25fdb4['checkChild'](_0x106aab,'$text')?{'type':'insertion','content':o(_0x5a197f,'*Insert:*\x20%0',_0x5d3dd3['getItemLabel'](_0x106aab,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x262753=this['editor'],_0x1f0055=_0x262753['locale'];_0x262753['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xa3db23=>{if('formatBlock'!=_0xa3db23['type'])return;const {data:_0x2a4d50}=_0xa3db23;return _0x2a4d50&&'paragraph'==_0x2a4d50['commandName']?{'type':'format','content':o(_0x1f0055,'*Change\x20to:*\x20%0',o(_0x1f0055,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x5c11ed,{showActiveMarker:_0x2a55db=!0x0}={}){return(_0x245061,_0x49f014,_0x18a693)=>{const _0x22d677=_0x5c11ed['plugins']['get']('TrackChangesEditing'),_0x199c24=_0x49f014['markerRange']['start'],_0x9be23d=_0x49f014['markerRange']['end'],_0x6e8d=_0x5c11ed['model']['schema'];if(!_0x199c24['isTouching'](_0x9be23d)||!_0x199c24['nodeAfter'])return;const _0x13642e=_0x199c24['nodeAfter'];if(_0x6e8d['isBlock'](_0x13642e)&&!_0x6e8d['isLimit'](_0x13642e)&&_0x6e8d['checkChild'](_0x13642e,'$text')){if(!_0x18a693['consumable']['consume'](_0x49f014['markerRange'],_0x245061['name']))return;const {authorId:_0x8630aa}=_0x22d677['_splitMarkerName'](_0x49f014['markerName']),_0x4398c8=_0x18a693['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x8630aa}),_0x1f0e52=_0x18a693['mapper']['toViewPosition'](_0x9be23d);_0x2a55db&&_0x22d677['activeMarkers']['includes'](_0x49f014['markerName'])&&_0x18a693['writer']['addClass']('ck-suggestion-marker--active',_0x4398c8),_0x18a693['writer']['insert'](_0x1f0e52,_0x4398c8),_0x18a693['mapper']['bindElementToMarker'](_0x4398c8,_0x49f014['markerName']);}};}class jt extends _0x41fe8e{['afterInit'](){const _0x398ea4=this['editor'];_0x398ea4['commands']['get']('replaceSource')&&_0x398ea4['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x41fe8e{['afterInit'](){const _0x1fc0fa=this['editor'];if(!_0x1fc0fa['plugins']['has']('RemoveFormatEditing'))return;_0x1fc0fa['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1cbd4d=this['editor'];_0x1cbd4d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xfb6a30=>{if('formatBlock'!=_0xfb6a30['type']&&'formatInline'!=_0xfb6a30['type'])return;const {data:_0xe86203}=_0xfb6a30;return _0xe86203&&'removeFormat'==_0xe86203['commandName']?{'type':'format','content':o(_0x1cbd4d['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x41fe8e{['afterInit'](){const _0x5eb8b8=this['editor'];if(!_0x5eb8b8['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x408a61=_0x5eb8b8['plugins']['get']('TrackChangesEditing');_0x408a61['enableCommand']('goToPreviousRestrictedEditingException'),_0x408a61['enableCommand']('goToNextRestrictedEditingException');const _0x39ad66=_0x5eb8b8['plugins']['get']('RestrictedEditingModeEditing');_0x39ad66['enableCommand']('trackChanges'),_0x39ad66['enableCommand']('acceptSuggestion'),_0x39ad66['enableCommand']('discardSuggestion'),_0x39ad66['enableCommand']('acceptAllSuggestions'),_0x39ad66['enableCommand']('discardAllSuggestions'),_0x39ad66['enableCommand']('acceptSelectedSuggestions'),_0x39ad66['enableCommand']('discardSelectedSuggestions');}}class It extends _0x41fe8e{static get['requires'](){return[_0x598ff2];}['init'](){const _0x4a2bad=this['editor'],_0x52476c=_0x4a2bad['plugins']['get']('TrackChangesEditing');_0x52476c['enableCommand']('shiftEnter'),_0x4a2bad['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x4a2bad),{'priority':'high'}),_0x4a2bad['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x4a2bad),{'priority':'high'}),_0x4a2bad['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x31c2d1,_0x1344bc,_0x52d846)=>{_0x52d846['options']['showSuggestionHighlights']&&je(_0x4a2bad,{'showActiveMarker':!0x1})(_0x31c2d1,_0x1344bc,_0x52d846);}),_0x52476c['descriptionFactory']['registerElementLabel']('softBreak',_0x1a0416=>o(_0x4a2bad['locale'],'ELEMENT_LINE_BREAK',_0x1a0416));}}function je(_0x56bb8d,{showActiveMarker:_0x446c75=!0x0}={}){return(_0x2959bd,_0x373c04,_0x375bf1)=>{const _0x56bbe7=_0x56bb8d['plugins']['get']('TrackChangesEditing');if(!_0x375bf1['consumable']['test'](_0x373c04['markerRange'],_0x2959bd['name']))return;const _0x3ff7cc=_0x56bb8d['model'];for(const _0x2d1a02 of _0x373c04['markerRange']['getItems']()){if(!_0x2d1a02['is']('element','softBreak'))continue;const _0x14b664='deletion'==_0x373c04['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x381c14}=_0x56bbe7['_splitMarkerName'](_0x373c04['markerName']),_0x3bb817=_0x375bf1['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x14b664,'data-author-id':_0x381c14}),_0x31fe97=_0x375bf1['mapper']['toViewPosition'](_0x3ff7cc['createPositionBefore'](_0x2d1a02));_0x446c75&&_0x56bbe7['activeMarkers']['includes'](_0x373c04['markerName'])&&_0x375bf1['writer']['addClass']('ck-suggestion-marker--active',_0x3bb817),_0x375bf1['writer']['insert'](_0x31fe97,_0x3bb817),_0x375bf1['mapper']['bindElementToMarker'](_0x3bb817,_0x373c04['markerName']);}};}class vt extends _0x41fe8e{['afterInit'](){const _0x1f0f9c=this['editor'],_0x1aa31f=_0x1f0f9c['model'],_0xf4da9f=_0x1f0f9c['locale'];if(!_0x1f0f9c['plugins']['has']('StandardEditingModeEditing'))return;const _0x53585e=_0x1f0f9c['plugins']['get']('TrackChangesEditing'),_0x2ecb4d='restrictedEditingException',_0x403481=_0x1f0f9c['commands']['get'](_0x2ecb4d);_0x53585e['enableCommand'](_0x2ecb4d,(_0x11b855,_0x54dea4={})=>{const _0x7bcb82=_0x1aa31f['document']['selection'];if(_0x7bcb82['isCollapsed'])return void _0x11b855(_0x54dea4);const _0x50aac9=void 0x0!==_0x54dea4['forceValue']?_0x54dea4['forceValue']:!_0x403481['value'];_0x1aa31f['change'](()=>{const _0x329726=Array['from'](_0x7bcb82['getRanges']());for(const _0x4b098 of _0x329726){const _0x41fc2c=_0x50aac9?[_0x4b098]:io(_0x2ecb4d,_0x4b098,_0x1aa31f);for(const _0x5e7d64 of _0x41fc2c)_0x53585e['markInlineFormat'](_0x5e7d64,{'commandName':_0x2ecb4d,'commandParams':[{'forceValue':_0x50aac9}]});}});}),_0x53585e['descriptionFactory']['registerDescriptionCallback'](_0x134fa9=>{if('formatBlock'!=_0x134fa9['type']&&'formatInline'!=_0x134fa9['type'])return;const {data:_0x4fa34d}=_0x134fa9;return _0x4fa34d&&_0x4fa34d['commandName']==_0x2ecb4d?_0x4fa34d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xf4da9f,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0xf4da9f,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class _t extends _0x41fe8e{['afterInit'](){const _0x5296d2=this['editor'];if(!_0x5296d2['plugins']['has']('Style')||!_0x5296d2['plugins']['has']('DataSchema'))return;const _0x3ac2da=_0x5296d2['plugins']['get']('TrackChangesEditing'),_0x244a0f=_0x5296d2['locale'],_0x30588f=_0x5296d2['config']['get']('style')||{},_0x282c1e=_0x5296d2['plugins']['get']('GeneralHtmlSupport'),_0x55ddc4=_0x5296d2['plugins']['get']('StyleUtils')['normalizeConfig'](_0x5296d2['plugins']['get']('DataSchema'),_0x30588f['definitions']);_0x3ac2da['enableDefaultAttributesIntegration']('style');const _0x3e21dd=new Set();for(const _0x11dded of _0x55ddc4['block']){const _0x586991=_0x282c1e['getGhsAttributeNameForElement'](_0x11dded['element']);_0x3e21dd['add'](_0x586991);}const _0x4167f3=new Set();for(const _0x2e9f36 of _0x55ddc4['inline']){const _0x16f6eb=_0x282c1e['getGhsAttributeNameForElement'](_0x2e9f36['element']);_0x4167f3['add'](_0x16f6eb);for(const _0xdfe699 of _0x2e9f36['ghsAttributes'])_0x4167f3['add'](_0xdfe699);}for(const _0x324a70 of _0x3e21dd)_0x3ac2da['registerBlockAttribute'](_0x324a70),_0x3ac2da['descriptionFactory']['registerAttributeLabel'](_0x324a70,o(_0x244a0f,'FORMAT_STYLE'));for(const _0x3c7c64 of _0x4167f3)_0x3ac2da['registerInlineAttribute'](_0x3c7c64),_0x3ac2da['descriptionFactory']['registerAttributeLabel'](_0x3c7c64,o(_0x244a0f,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x487e22=this['editor'],_0x31b245=_0x487e22['locale'];_0x487e22['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x271dc0=>{if('formatBlock'!=_0x271dc0['type']&&'formatInline'!=_0x271dc0['type'])return;const {data:_0x54d809}=_0x271dc0;return _0x54d809&&'style'===_0x54d809['commandName']?_0x54d809['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x31b245,'*Set\x20format:*\x20%0',_0x54d809['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x31b245,'*Remove\x20format:*\x20%0',_0x54d809['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x41fe8e{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x3d7b0e){super(_0x3d7b0e),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x6f306b=this['editor'],_0x2be3fd=_0x6f306b['model']['document']['selection'];if(!_0x6f306b['plugins']['has']('TableEditing'))return;const _0x455c8b=_0x6f306b['locale'],_0x24db76=_0x6f306b['plugins']['get']('TrackChangesEditing'),_0x39c611=_0x6f306b['plugins']['get']('TableUtils');_0x24db76['descriptionFactory']['registerElementLabel']('table',_0x42f861=>o(_0x455c8b,'ELEMENT_TABLE',_0x42f861)),this['_setupColumnsRowsFixing'](),_0x24db76['enableCommand']('insertTable'),_0x24db76['enableCommand']('selectTableRow'),_0x24db76['enableCommand']('selectTableColumn');for(const _0x2c02fb of['insertTableRowAbove','insertTableRowBelow']){const _0x3022b4=_0x6f306b['commands']['get'](_0x2c02fb);_0x24db76['enableCommand'](_0x2c02fb,_0x16e527=>{_0x6f306b['model']['change'](_0x1153e1=>{_0x16e527();const _0x512690='above'===_0x3022b4['order'],_0x59fd9e=_0x39c611['getSelectionAffectedTableCells'](_0x2be3fd),_0x1b6a1b=_0x39c611['getRowIndexes'](_0x59fd9e),_0x11ce8d=_0x512690?_0x1b6a1b['first']-0x1:_0x1b6a1b['last']+0x1,_0x5262a8=_0x59fd9e[0x0]['findAncestor']('table'),_0x441202=_0x39c611['createTableWalker'](_0x5262a8,{'startRow':_0x11ce8d,'endRow':_0x11ce8d}),_0x405488=Array['from'](_0x441202)['map'](_0x38d5e2=>_0x1153e1['createRangeOn'](_0x38d5e2['cell']));_0x24db76['markMultiRangeInsertion'](_0x405488,'tableRow');});});}for(const _0xfc2059 of['insertTableColumnLeft','insertTableColumnRight']){const _0xee5c61=_0x6f306b['commands']['get'](_0xfc2059);_0x24db76['enableCommand'](_0xfc2059,_0x5237b5=>{_0x6f306b['model']['change'](_0x2b88b5=>{_0x5237b5();const _0x54c080='left'===_0xee5c61['order'],_0x1e1463=_0x39c611['getSelectionAffectedTableCells'](_0x2be3fd),_0xa60a80=_0x39c611['getColumnIndexes'](_0x1e1463),_0x574445=_0x54c080?_0xa60a80['first']-0x1:_0xa60a80['last']+0x1,_0x402ac4=_0x1e1463[0x0]['findAncestor']('table'),_0xe5b37a=_0x39c611['createTableWalker'](_0x402ac4,{'startRow':0x0,'column':_0x574445,'includeAllSlots':!0x1}),_0xaf75e8=Array['from'](_0xe5b37a)['map'](_0x1c41f1=>_0x2b88b5['createRangeOn'](_0x1c41f1['cell']));_0x24db76['markMultiRangeInsertion'](_0xaf75e8,'tableColumn');});});}for(const _0x3fd99f of['removeTableRow','removeTableColumn']){const _0x46b796=_0x3fd99f['substr'](0xb),_0x505498=_0x46b796['toLowerCase'](),_0xa78492=_0x505498['substr'](0x0,0x3)+'span',_0xcf1c75='table'+_0x46b796,_0x36c2cb='min'+_0x46b796,_0x471842='max'+_0x46b796;_0x24db76['enableCommand'](_0x3fd99f,()=>{_0x6f306b['model']['change'](_0x583d18=>{const _0x2bcf78=_0x39c611['getSelectionAffectedTableCells'](_0x2be3fd),_0x5905ee=_0x2bcf78[0x0]['findAncestor']('table');let _0xca7c2b;if('removeTableRow'==_0x3fd99f){const _0x54c331=_0x39c611['getRowIndexes'](_0x2bcf78);_0xca7c2b={'startRow':_0x54c331['first'],'endRow':_0x54c331['last'],'includeAllSlots':!0x0};}else{const _0x3dcb50=_0x39c611['getColumnIndexes'](_0x2bcf78);_0xca7c2b={'startColumn':_0x3dcb50['first'],'endColumn':_0x3dcb50['last'],'includeAllSlots':!0x0};}const _0xf081f8=_0x39c611['createTableWalker'](_0x5905ee,_0xca7c2b),_0x3d8342=Array['from'](_0xf081f8)['map'](({cell:_0x310533})=>_0x310533),_0x25d511=Ne(_0x3d8342['filter'](_0x18de26=>_0x18de26['hasAttribute'](_0xa78492))),_0x4e46fb=Ne(_0x3d8342['filter'](_0x2da4d1=>!_0x2da4d1['hasAttribute'](_0xa78492)))['map'](_0x33cee4=>_0x583d18['createRangeOn'](_0x33cee4)),_0x5405ff=_0x24db76['markMultiRangeDeletion'](_0x4e46fb,_0xcf1c75);if(_0x5405ff&&('tableRow'==_0x5405ff['subType']||'tableColumn'==_0x5405ff['subType'])){const _0x43df18=this['_getSuggestionCoords'](_0x5405ff);for(const _0x8a1812 of _0x25d511){const _0x1d9d24=_0x583d18['createRangeOn'](_0x8a1812),_0x1ad553=_0x39c611['getCellLocation'](_0x8a1812),_0x2af255=_0x8a1812['getAttribute'](_0xa78492)-0x1,_0x3cc340=_0x43df18[_0x36c2cb],_0x5d1db0=_0x43df18[_0x471842];_0x3cc340<=_0x1ad553[_0x505498]&&_0x1ad553[_0x505498]+_0x2af255<=_0x5d1db0&&_0x5405ff['addRange'](_0x1d9d24);}}});});}function _0x18ec74(_0x530d96){const _0x24dede=Array['from'](_0x2be3fd['getRanges']())['map'](_0x1235d5=>_0x1720ab['fromRange'](_0x1235d5));_0x6f306b['model']['change'](_0x5d2d0e=>{const _0x1ea384=_0x5d2d0e['batch'];_0x530d96=_0x530d96['filter'](_0x1c4abf=>'$graveyard'!=_0x1c4abf['root']['rootName']),_0x5d2d0e['setSelection'](_0x530d96),_0x6f306b['commands']['get']('removeTableRow')['refresh'](),_0x6f306b['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x6f306b['model']['enqueueChange'](()=>{_0x6f306b['model']['enqueueChange'](_0x1ea384,_0x36c888=>{const _0x16f231=_0x24dede['filter'](_0x45c4c0=>'$graveyard'!=_0x45c4c0['root']['rootName']);_0x16f231['length']>0x0&&_0x36c888['setSelection'](_0x16f231);for(const _0x2ae697 of _0x24dede)_0x2ae697['detach']();});});});}function _0x1b6e66(_0x569bc9){_0x6f306b['model']['change'](_0x56eb76=>{const _0x222259=Array['from'](_0x2be3fd['getRanges']())['map'](_0x535f7a=>_0x1720ab['fromRange'](_0x535f7a)),_0x2b3f84=[];for(const _0x3770b7 of _0x569bc9)for(const _0x4590b of _0x3770b7['getItems']({'shallow':!0x0}))_0x2b3f84['push'](_0x4590b);for(const _0x55aee2 of _0x2b3f84)'$graveyard'!=_0x55aee2['root']['rootName']&&(_0x56eb76['setSelection'](_0x56eb76['createPositionAt'](_0x55aee2,0x0)),_0x6f306b['commands']['get']('removeTableColumn')['refresh'](),_0x6f306b['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x4b09b2=_0x222259['filter'](_0x2f8256=>'$graveyard'!=_0x2f8256['root']['rootName']);_0x4b09b2['length']>0x0&&_0x56eb76['setSelection'](_0x4b09b2);for(const _0x46e8f6 of _0x222259)_0x46e8f6['detach']();});}function _0x3d978d(_0xba243b,_0x415eeb){return _0x415eeb['every'](_0x272922=>_0xba243b['some'](_0x3e95a0=>_0x3e95a0['end']['isEqual'](_0x272922['start'])||_0x272922['end']['isEqual'](_0x3e95a0['start'])));}function _0x5b9152(_0x1ed031,_0x349bc9){return!_0x1ed031['some'](_0x5533d5=>_0x349bc9['some'](_0x571e00=>_0x5533d5['isIntersecting'](_0x571e00)))&&_0x1ed031['some'](_0x23b730=>_0x349bc9['some'](_0x4b1835=>_0x23b730['end']['isTouching'](_0x4b1835['start'])));}_0x6f306b['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x381e6d,_0x418dbe,_0x18209b)=>{if(!_0x18209b['options']['showSuggestionHighlights'])return;const _0x15c539=_0x418dbe['item'];if(!_0x15c539)return;const _0x317edd=_0x18209b['mapper']['toViewElement'](_0x15c539);function _0x49b24d(_0x2cfe98){return Array['isArray'](_0x2cfe98)?_0x2cfe98:[_0x2cfe98];}_0x317edd&&'tableCell'===_0x15c539['name']&&_0x26913c(_0x317edd,_0x18209b['writer'],(_0x45a0d7,_0x3c3102,_0x2828be)=>_0x2828be['addClass'](_0x49b24d(_0x3c3102['classes']),_0x45a0d7),(_0x382427,_0x3d6057,_0x3d9f8c)=>_0x3d9f8c['removeClass'](_0x49b24d(_0x3d6057['classes']),_0x382427));},{'priority':'highest'}),_0x24db76['descriptionFactory']['registerDescriptionCallback'](_0x11b0c5=>{if('insertion'!=_0x11b0c5['type']&&'deletion'!=_0x11b0c5['type'])return;const _0x4c0adf=_0x11b0c5['getContainedElement']();if(null!=_0x4c0adf&&_0x4c0adf['is']('element','table')){if('insertion'==_0x11b0c5['type']){const _0x44ef87=_0x11b0c5['getItems']()['filter'](_0x3125d8=>_0x3125d8['is']('$textProxy'))['map'](_0x4852c1=>_0x4852c1['data']);if(_0x44ef87['length'])return{'type':'insertion','content':o(_0x455c8b,'*Insert:*\x20%0',o(_0x455c8b,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x44ef87['join']('\x20')+'\x22'))};}if('deletion'==_0x11b0c5['type']){const _0x3b33df=_0x11b0c5['getItems']()['filter'](_0xbecfad=>_0xbecfad['is']('$textProxy'))['map'](_0x5f13f0=>_0x5f13f0['data']);if(_0x3b33df['length'])return{'type':'deletion','content':o(_0x455c8b,'*Remove:*\x20%0',o(_0x455c8b,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3b33df['join']('\x20')+'\x22'))};}}}),_0x24db76['descriptionFactory']['registerDescriptionCallback'](_0x4a1c49=>{if('tableRow'==_0x4a1c49['subType']){const _0x58c008=_0x4a1c49['getItems']()['filter'](_0x50956c=>_0x50956c['is']('$textProxy'))['map'](_0x5cc109=>_0x5cc109['data']),_0x3cc5fc=this['_getSuggestionCoords'](_0x4a1c49),_0x549c39=_0x3cc5fc['maxRow']-_0x3cc5fc['minRow']+0x1;if('insertion'==_0x4a1c49['type'])return _0x58c008['length']?{'type':'insertion','content':o(_0x455c8b,'*Insert:*\x20%0',o(_0x455c8b,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x549c39,'\x22'+_0x58c008['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x455c8b,'*Insert:*\x20%0',o(_0x455c8b,'ELEMENT_TABLE_ROW',_0x549c39))};if('deletion'==_0x4a1c49['type'])return _0x58c008['length']?{'type':'deletion','content':o(_0x455c8b,'*Remove:*\x20%0',o(_0x455c8b,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x549c39,'\x22'+_0x58c008['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x455c8b,'*Remove:*\x20%0',o(_0x455c8b,'ELEMENT_TABLE_ROW',_0x549c39))};}if('tableColumn'==_0x4a1c49['subType']){const _0x16a685=_0x4a1c49['getItems']()['filter'](_0x4a7823=>_0x4a7823['is']('$textProxy'))['map'](_0xc04f6b=>_0xc04f6b['data']),_0x11c992=this['_getSuggestionCoords'](_0x4a1c49),_0x10d90a=_0x11c992['maxColumn']-_0x11c992['minColumn']+0x1;if('insertion'==_0x4a1c49['type'])return _0x16a685['length']?{'type':'insertion','content':o(_0x455c8b,'*Insert:*\x20%0',o(_0x455c8b,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x10d90a,'\x22'+_0x16a685['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x455c8b,'*Insert:*\x20%0',o(_0x455c8b,'ELEMENT_TABLE_COLUMN',_0x10d90a))};if('deletion'==_0x4a1c49['type'])return _0x16a685['length']?{'type':'deletion','content':o(_0x455c8b,'*Remove:*\x20%0',o(_0x455c8b,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x10d90a,'\x22'+_0x16a685['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x455c8b,'*Remove:*\x20%0',o(_0x455c8b,'ELEMENT_TABLE_COLUMN',_0x10d90a))};}}),_0x24db76['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x18ec74),_0x24db76['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x18ec74),_0x24db76['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x1b6e66),_0x24db76['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x1b6e66),_0x24db76['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x3d978d),_0x24db76['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x3d978d),_0x24db76['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x5b9152),_0x24db76['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x5b9152);}['_acceptFormatSuggestionCallbackFactory'](){const _0x2c8bbe=this['editor'],_0x2ba1a4=_0x2c8bbe['model']['document']['selection'];return(_0x333e23,_0x57e541)=>{_0x2c8bbe['model']['change'](_0x2cb22d=>{const {commandName:_0xc1dec1,commandParams:_0x312352}=_0x57e541;let _0x3e8ddd=_0x333e23[0x0]['end']['nodeBefore'];_0x312352&&_0x312352[0x0]&&!0x1===_0x312352[0x0]['forceValue']&&(_0x3e8ddd=_0x333e23[0x0]['start']['nodeAfter']);const _0x21fd73=_0x2cb22d['createRangeIn'](_0x3e8ddd);if('$graveyard'==_0x21fd73['root']['rootName'])return;const _0x31321c=Array['from'](_0x2ba1a4['getRanges']())['map'](_0x54ebf7=>_0x1720ab['fromRange'](_0x54ebf7));_0x2cb22d['setSelection'](_0x21fd73),_0x2c8bbe['commands']['get'](_0xc1dec1)['refresh'](),_0x312352['push']({'forceDefaultExecution':!0x0}),_0x2c8bbe['execute'](_0xc1dec1,..._0x312352);const _0x16ef1a=_0x31321c['filter'](_0x568e14=>'$graveyard'!=_0x568e14['root']['rootName']);_0x16ef1a['length']>0x0&&_0x2cb22d['setSelection'](_0x16ef1a);for(const _0x2439f1 of _0x31321c)_0x2439f1['detach']();});};}['_getCoordsForCells'](_0x49bec4){const _0x11850f=this['editor']['plugins']['get']('TableUtils');let _0xc30af1=Number['MAX_SAFE_INTEGER'],_0x3c0d2c=Number['MIN_SAFE_INTEGER'],_0x297071=Number['MAX_SAFE_INTEGER'],_0x3d180b=Number['MIN_SAFE_INTEGER'];for(const _0x15bcba of _0x49bec4){if('$graveyard'==_0x15bcba['root']['rootName'])continue;const {row:_0x5e0e1e,column:_0x3c842e}=_0x11850f['getCellLocation'](_0x15bcba),_0x4466d1=_0x15bcba['hasAttribute']('rowspan')?_0x15bcba['getAttribute']('rowspan')-0x1:0x0,_0x594cbf=_0x15bcba['hasAttribute']('colspan')?_0x15bcba['getAttribute']('colspan')-0x1:0x0;_0xc30af1=_0x5e0e1e<_0xc30af1?_0x5e0e1e:_0xc30af1,_0x3c0d2c=_0x5e0e1e+_0x4466d1>_0x3c0d2c?_0x5e0e1e+_0x4466d1:_0x3c0d2c,_0x297071=_0x3c842e<_0x297071?_0x3c842e:_0x297071,_0x3d180b=_0x3c842e+_0x594cbf>_0x3d180b?_0x3c842e+_0x594cbf:_0x3d180b;}return{'minRow':_0xc30af1,'maxRow':_0x3c0d2c,'minColumn':_0x297071,'maxColumn':_0x3d180b};}['_setupColumnsRowsFixing'](){const _0x5c1e38=this['editor'],_0x4f3437=_0x5c1e38['plugins']['get']('TrackChangesEditing'),_0x5eab35=_0x5c1e38['plugins']['get']('TableUtils');_0x5c1e38['model']['document']['on']('change:data',()=>{const _0x1e5d3f=Array['from'](_0x5c1e38['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xc57ca6,data:_0x4a9d79}of _0x1e5d3f){const {group:_0x4d17d0,id:_0x180fcd,subType:_0x2ed846}=_0x4f3437['_splitMarkerName'](_0xc57ca6);if('suggestion'!=_0x4d17d0)continue;if(null!=_0x4a9d79['oldRange'])continue;const _0x5cc905=_0x4f3437['getSuggestion'](_0x180fcd);this['_tablePostFixingSubtypes']['includes'](_0x2ed846)&&this['_tableSuggestions']['add'](_0x5cc905);}},{'priority':'low'});const _0x40c196=(_0x17766c,_0x3402f1)=>{let _0x38c196=!0x1;const _0x4e3a70=_0x3402f1['createRangeOn'](_0x17766c),_0x581118=_0x17766c['findAncestor']('table'),_0x4fe2ff=_0x5eab35['getCellLocation'](_0x17766c);for(const _0xd798af of this['_tableSuggestions']){const _0xbed9b8=_0xd798af['subType'],_0x25636c=_0xbed9b8['startsWith']('tablePaste'),_0x9228be=_0xbed9b8['substr'](_0x25636c?0xa:0x5),_0x1b6df3=_0x9228be['toLowerCase'](),_0x4229bb=_0x1b6df3['substr'](0x0,0x3)+'span',_0x1b8391='min'+_0x9228be,_0x30ae8b='max'+_0x9228be;if(!_0xd798af['isInContent'])continue;if(_0x581118!=_0xd798af['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0xd798af['isIntersectingWithRange'](_0x4e3a70))continue;const _0x3e57e0=_0x17766c['hasAttribute'](_0x4229bb)?_0x17766c['getAttribute'](_0x4229bb)-0x1:0x0,_0xc5c55d=this['_getSuggestionCoords'](_0xd798af),_0x52b912=_0xc5c55d[_0x1b8391],_0x1669d6=_0xc5c55d[_0x30ae8b];_0x52b912<=_0x4fe2ff[_0x1b6df3]&&_0x4fe2ff[_0x1b6df3]+_0x3e57e0<=_0x1669d6&&(_0xd798af['addRange'](_0x4e3a70),_0x38c196=!0x0);}return _0x38c196;};_0x5c1e38['model']['document']['registerPostFixer'](_0x650d22=>{let _0x519ec0=!0x1;for(const _0x132e90 of _0x5c1e38['model']['document']['differ']['getChanges']())if('insert'==_0x132e90['type']){if('tableRow'==_0x132e90['name']){for(const _0x32346e of _0x132e90['position']['nodeAfter']['getChildren']())_0x519ec0=_0x519ec0||_0x40c196(_0x32346e,_0x650d22);}else'tableCell'==_0x132e90['name']&&(_0x519ec0=_0x519ec0||_0x40c196(_0x132e90['position']['nodeAfter'],_0x650d22));}return _0x519ec0;});}['_getSuggestionCoords'](_0x367397){return this['_getCoordsForCells'](_0x367397['getRanges']()['map'](_0x39e294=>_0x39e294['start']['nodeAfter']));}}function Ne(_0x499320){return Array['from'](new Set(_0x499320)['values']());}class Nt extends _0x41fe8e{static get['requires'](){return[Ct];}['afterInit'](){const _0x33d576=this['editor'],_0x5bd4bc=_0x33d576['model']['document']['selection'],_0x1bfc96=_0x33d576['locale'];if(!_0x33d576['plugins']['has']('TableEditing'))return;const _0x16654a=_0x33d576['plugins']['get']('TrackChangesEditing'),_0x40637=_0x33d576['plugins']['get']('TableUtils'),_0x1143df=_0x33d576['plugins']['get'](Ct);_0x1143df['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x16654a['enableCommand']('mergeTableCells',()=>{const _0x4d0d3a=_0x40637['getSelectionAffectedTableCells'](_0x33d576['model']['document']['selection']);_0x33d576['model']['change'](()=>{_0x16654a['markMultiRangeBlockFormat'](_0x4d0d3a,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x33d576['commands']['get']('mergeTableCells')['on']('execute',(_0x18f95e,_0x45ab4d)=>{_0x33d576['commands']['get']('trackChanges')['value']&&(_0x45ab4d['length']>0x0&&_0x45ab4d[_0x45ab4d['length']-0x1]&&_0x45ab4d[_0x45ab4d['length']-0x1]['forceDefaultExecution']||_0x16654a['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x18f95e['stop']());},{'priority':'highest'});for(const _0x20f25e of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x741b1=_0x33d576['commands']['get'](_0x20f25e);_0x16654a['enableCommand'](_0x20f25e,()=>{const _0xbabda=_0x33d576['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x5a36e9=>_0x5a36e9['is']('element','tableCell')),_0x1948ac=_0x741b1['value'];_0x33d576['model']['change'](()=>{_0x16654a['markMultiRangeBlockFormat']([_0xbabda,_0x1948ac],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0xe45df1 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x19f0b2=_0x33d576['commands']['get'](_0xe45df1);_0x16654a['enableCommand'](_0xe45df1,()=>{const _0x3897cb=_0x40637['getSelectionAffectedTableCells'](_0x33d576['model']['document']['selection'])[0x0],_0x6f5081=_0x3897cb['findAncestor']('table'),{column:_0xf9af5f,row:_0x1837cd}=_0x40637['getCellLocation'](_0x3897cb);let _0x1f3ee9=[];if('horizontally'==_0x19f0b2['direction']){const _0x427ef9=_0x40637['createTableWalker'](_0x6f5081,{'startRow':_0x1837cd,'endRow':_0x1837cd,'includeAllSlots':!0x0});_0x1f3ee9=Array['from'](_0x427ef9)['map'](_0x437f8d=>_0x437f8d['cell']);}else{const _0x295b58=_0x40637['createTableWalker'](_0x6f5081,{'column':_0xf9af5f,'includeAllSlots':!0x0});_0x1f3ee9=Array['from'](_0x295b58)['map'](_0x195c3b=>_0x195c3b['cell']);}_0x33d576['model']['change'](_0x1710c1=>{_0x16654a['markBlockFormat'](_0x1710c1['createRangeOn'](_0x3897cb),{'commandName':_0xe45df1,'commandParams':[]},_0x1f3ee9,_0xe45df1);});});}_0x16654a['descriptionFactory']['registerDescriptionCallback'](_0x2a4f8e=>{if('formatBlock'!=_0x2a4f8e['type']&&'formatInline'!=_0x2a4f8e['type'])return;const {data:_0x5d5e22}=_0x2a4f8e;return _0x5d5e22&&'mergeTableCells'==_0x5d5e22['commandName']?{'type':'format','content':o(_0x1bfc96,'*Merge\x20cells*')}:void 0x0;}),_0x16654a['descriptionFactory']['registerDescriptionCallback'](_0x20cff4=>{if('formatBlock'!=_0x20cff4['type']&&'formatInline'!=_0x20cff4['type'])return;const {data:_0x2d67d8}=_0x20cff4;return _0x2d67d8?'splitTableCellVertically'==_0x2d67d8['commandName']?{'type':'format','content':o(_0x1bfc96,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x2d67d8['commandName']?{'type':'format','content':o(_0x1bfc96,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x47c84b=_0x1143df['_acceptFormatSuggestionCallbackFactory']();for(const _0x56fdc7 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x16654a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x56fdc7,'accept',_0x47c84b);for(const _0x3d40d6 of['splitTableCellVertically','splitTableCellHorizontally'])_0x16654a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3d40d6,'accept',_0x47c84b);_0x16654a['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x578d61=>{_0x33d576['model']['change'](_0x3bcd6c=>{const _0xc7db71=Array['from'](_0x5bd4bc['getRanges']())['map'](_0x2822fa=>_0x1720ab['fromRange'](_0x2822fa));_0x3bcd6c['setSelection'](_0x578d61),_0x33d576['commands']['get']('mergeTableCells')['refresh'](),_0x33d576['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x9d88bd=_0xc7db71['filter'](_0x2da25c=>'$graveyard'!=_0x2da25c['root']['rootName']);_0x9d88bd['length']>0x0&&_0x3bcd6c['setSelection'](_0x9d88bd);for(const _0x590a7f of _0xc7db71)_0x590a7f['detach']();});});for(const _0x485ef9 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x53c1ff=_0x33d576['commands']['get'](_0x485ef9);_0x53c1ff['on']('set:isEnabled',(_0x5bff62,_0x4fbb51,_0x4a95a6)=>{if(_0x4a95a6){const _0x201cea=_0x33d576['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x19deac=>_0x19deac['is']('element','tableCell'));this['_areMergableCells'](_0x53c1ff['value'],_0x201cea)||(_0x5bff62['return']=!0x1,_0x5bff62['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x185ab5=this['editor']['commands']['get']('mergeTableCells'),_0x447356=this['editor']['plugins']['get']('TableUtils');if(!_0x185ab5['isEnabled'])return!0x1;const _0x368cb8=_0x447356['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x38c4d7 of _0x368cb8)for(const _0x39e424 of _0x368cb8)if(_0x38c4d7!=_0x39e424&&!this['_areMergableCells'](_0x38c4d7,_0x39e424))return!0x1;return!0x0;}['_areMergableCells'](_0x592ca3,_0x4fd78c){const _0x35b6ac=this['editor']['plugins']['get']('TrackChangesEditing'),_0xf528f2=this['editor']['model']['createRangeOn'](_0x592ca3),_0x4ce84e=this['editor']['model']['createRangeOn'](_0x4fd78c),_0x1f32a6=new Set(),_0x3fb2e7=new Set();for(const _0x3e5855 of _0x35b6ac['getSuggestions']())if(('insertion'==_0x3e5855['type']||'deletion'==_0x3e5855['type']||'mergeTableCells'==_0x3e5855['subType'])&&_0x3e5855['isInContent']){for(const _0x13807a of _0x3e5855['getRanges']())_0x13807a['containsRange'](_0xf528f2,!0x0)&&_0x1f32a6['add'](_0x3e5855['type']+':'+_0x3e5855['author']['id']),_0x13807a['containsRange'](_0x4ce84e,!0x0)&&_0x3fb2e7['add'](_0x3e5855['type']+':'+_0x3e5855['author']['id']);}if(_0x1f32a6['size']!=_0x3fb2e7['size'])return!0x1;for(const _0xd3eaa1 of _0x1f32a6)if(!_0x3fb2e7['has'](_0xd3eaa1))return!0x1;return!0x0;}}class Dt extends _0x41fe8e{static get['requires'](){return[Ct];}['afterInit'](){const _0x2b793d=this['editor'];if(!_0x2b793d['plugins']['has']('TableEditing'))return;const _0x3f84f7=_0x2b793d['locale'],_0xbcca48=_0x2b793d['plugins']['get']('TrackChangesEditing');_0xbcca48['enableDefaultAttributesIntegration']('setTableRowHeader'),_0xbcca48['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0xbcca48['registerBlockAttribute']('headingRows'),_0xbcca48['registerBlockAttribute']('headingColumns'),_0xbcca48['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x3f84f7,'FORMAT_HEADER_ROW')),_0xbcca48['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x3f84f7,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3e7224=this['editor']['plugins']['get']('TrackChangesEditing'),_0x39bc82=this['editor']['plugins']['get']('TableUtils'),_0x506db7=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x54ac1e({showActiveMarker:_0x467646=!0x0,setDataAttribute:_0x12a360=!0x0}={}){return(_0x165cc0,_0x361cb7,_0x1f525f)=>{const {type:_0x1ce129,id:_0x540e59}=_0x3e7224['_splitMarkerName'](_0x361cb7['markerName']),_0x23033f=_0x3e7224['getSuggestion'](_0x540e59),_0x5a8a5a=_0x23033f['data'];if('formatBlock'!=_0x23033f['type']||!_0x5a8a5a||'setTableColumnHeader'!=_0x5a8a5a['commandName'])return;if(_0x361cb7['item'])return void _0x165cc0['stop']();if(!_0x1f525f['consumable']['consume'](_0x361cb7['markerRange'],_0x165cc0['name']))return;const _0x5570ec=_0x361cb7['markerRange']['start']['nodeAfter'],_0x253528=_0x361cb7['markerRange']['end']['nodeBefore'],_0x37d060=_0x5570ec['parent']['parent'],{column:_0x11bf77}=_0x39bc82['getCellLocation'](_0x5570ec),{column:_0x152b94}=_0x39bc82['getCellLocation'](_0x253528);for(let _0x51a40c=_0x11bf77;_0x51a40c<=_0x152b94;_0x51a40c++){const _0x3e2e09=_0x39bc82['createTableWalker'](_0x37d060,{'column':_0x51a40c,'includeAllSlots':!0x1});for(const _0x24a356 of _0x3e2e09){const _0x26ef6f=_0x24a356['cell'],_0x2e0e5c=_0x1f525f['mapper']['toViewElement'](_0x26ef6f);_0x1f525f['writer']['addClass']('ck-suggestion-marker-'+_0x1ce129,_0x2e0e5c),_0x12a360&&_0x1f525f['writer']['setAttribute']('data-suggestion',_0x540e59,_0x2e0e5c),_0x1f525f['mapper']['bindElementToMarker'](_0x2e0e5c,_0x361cb7['markerName']),_0x467646&&(_0x3e7224['activeMarkers']['includes'](_0x361cb7['markerName'])?_0x1f525f['writer']['addClass']('ck-suggestion-marker--active',_0x2e0e5c):_0x1f525f['writer']['removeClass']('ck-suggestion-marker--active',_0x2e0e5c));}}};}_0x3e7224['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x506db7),_0x3e7224['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x506db7),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x54ac1e(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1862f8,_0xc32b6f,_0x395a56)=>{_0x395a56['options']['showSuggestionHighlights']&&_0x54ac1e({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x1862f8,_0xc32b6f,_0x395a56);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x5c397b,_0x43d77c,_0x2a510c)=>{const {type:_0x2e3379,id:_0xade6c5}=_0x3e7224['_splitMarkerName'](_0x43d77c['markerName']),_0x18e48e=_0x3e7224['getSuggestion'](_0xade6c5),_0x134bee=_0x18e48e['data'];if('formatBlock'!=_0x18e48e['type']||!_0x134bee||'setTableColumnHeader'!=_0x134bee['commandName'])return;const _0x4eec5f=_0x2a510c['mapper']['markerNameToElements'](_0x43d77c['markerName']);if(_0x4eec5f){for(const _0x22a3fa of _0x4eec5f)_0x2a510c['writer']['removeClass']('ck-suggestion-marker-'+_0x2e3379,_0x22a3fa),_0x2a510c['writer']['removeClass']('ck-suggestion-marker--active',_0x22a3fa),_0x2a510c['writer']['removeAttribute']('data-suggestion',_0x22a3fa),_0x2a510c['mapper']['unbindElementFromMarkerName'](_0x22a3fa,_0x43d77c['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x588ca2=this['editor'],_0x1e81b0=_0x588ca2['locale'];function _0x18d7d6(_0x58839c){return{'type':'format','content':o(_0x1e81b0,'*Format:*\x20%0',_0x58839c)};}_0x588ca2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x27077d=>{if('formatBlock'!=_0x27077d['type'])return;const {data:_0x1e6e09}=_0x27077d;if(_0x1e6e09){if('setTableRowHeader'==_0x1e6e09['commandName']){const _0x5c2a11=_0x1e6e09['commandParams'][0x0]['forceValue'];return _0x18d7d6(o(_0x1e81b0,_0x5c2a11?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x1e6e09['commandName']){const _0x3ac520=_0x1e6e09['commandParams'][0x0]['forceValue'];return _0x18d7d6(o(_0x1e81b0,_0x3ac520?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x3e01c7=>[_0x3e01c7,null]));class Mt extends _0x41fe8e{static get['requires'](){return[Ct];}['afterInit'](){const _0x151f3e=this['editor'];if(!_0x151f3e['plugins']['has']('TableClipboard'))return;const _0x4712af=_0x151f3e['plugins']['get']('TrackChangesEditing'),_0x9a8c62=_0x151f3e['plugins']['get']('TableUtils'),_0x273803=_0x151f3e['plugins']['get'](Ct),_0x1cba0e=_0x151f3e['plugins']['get']('TableClipboard');_0x273803['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x151f3e['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x151f3e['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x5abf2b=null;_0x151f3e['model']['on']('insertContent',(_0x2e2919,_0x2b48fe)=>{const [_0x54d8a3,_0x3bf55d]=_0x2b48fe,_0x3280f0=_0x2b48fe[_0x2b48fe['length']-0x1];_0x3280f0&&_0x3280f0['forceDefaultExecution']||_0x4712af['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x251e94,_0x31d1e1,_0x5219b2,_0x2edd04,_0x1f3258){if(_0x31d1e1&&!_0x31d1e1['is']('documentSelection'))return!0x1;const _0x5b9bcc=_0x1f3258['getTableIfOnlyTableInContent'](_0x251e94,_0x5219b2);if(!_0x5b9bcc||!Ue(_0x5b9bcc,void 0x0,_0x2edd04))return!0x1;const _0x40ebdd=_0x2edd04['getSelectionAffectedTableCells'](_0x5219b2['document']['selection']);if(!_0x40ebdd['length'])return!0x1;const _0x5dba73=_0x40ebdd[0x0]['findAncestor']('table'),_0x2e305e=_0x2edd04['getRowIndexes'](_0x40ebdd),_0x3107d2=_0x2edd04['getColumnIndexes'](_0x40ebdd),_0x4df160={'startRow':_0x2e305e['first'],'endRow':_0x2e305e['last'],'startColumn':_0x3107d2['first'],'endColumn':_0x3107d2['last']};return 0x1==_0x40ebdd['length']&&(_0x4df160['endRow']+=_0x2edd04['getRows'](_0x5b9bcc)-0x1,_0x4df160['endColumn']+=_0x2edd04['getColumns'](_0x5b9bcc)-0x1),Ue(_0x5dba73,_0x4df160,_0x2edd04);}(_0x54d8a3,_0x3bf55d,_0x151f3e['model'],_0x9a8c62,_0x1cba0e)&&(_0x2e2919['stop'](),_0x5abf2b={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x151f3e['model']['change'](()=>{_0x151f3e['model']['insertContent'](_0x2b48fe[0x0],_0x2b48fe[0x1],_0x2b48fe[0x2],{'forceDefaultExecution':!0x0});const _0x5159da=_0x3cfc9c(),{rowInsertionRanges:_0x3a7cf4,columnInsertionRanges:_0x44c1e4,insertionRanges:_0x44d7bf,deletionRanges:_0x38d023,cells:_0x45f941}=_0x5abf2b;_0x3a7cf4['length']&&_0x4712af['markMultiRangeInsertion'](_0x3a7cf4,'tablePasteRow',{'tablePasteChainId':_0x5159da}),_0x44c1e4['length']&&_0x4712af['markMultiRangeInsertion'](_0x44c1e4,'tablePasteColumn',{'tablePasteChainId':_0x5159da}),_0x44d7bf['length']&&(_0x4712af['markMultiRangeInsertion'](_0x44d7bf,'tablePaste',{'tablePasteChainId':_0x5159da,'skipNestingCheck':!0x0}),_0x44d7bf['forEach'](_0x4e531a=>_0x4e531a['detach']?.())),_0x38d023['length']&&(_0x4712af['markMultiRangeDeletion'](_0x38d023,'tablePaste',{'tablePasteChainId':_0x5159da,'skipNestingCheck':!0x0}),_0x38d023['forEach'](_0x4fb0ed=>_0x4fb0ed['detach']?.()));const _0x495d40=_0x4712af['markMultiRangeBlockFormat'](_0x45f941['map'](({element:_0x84f541})=>_0x84f541),{'formatGroupId':_0x3cfc9c()},[],'tablePasteCell',{'tablePasteChainId':_0x5159da});if(_0x495d40){const _0x4b2481=_0x495d40['getMarkers'](),_0x1a3290=[];for(const {element:_0x4ffa97,attributes:_0x4ea86d}of _0x45f941){if(!_0x4ea86d)continue;const _0x314fcc=_0x151f3e['model']['createRangeOn'](_0x4ffa97),_0x542c2c=_0x4b2481['find'](_0x5d85d8=>_0x5d85d8['getRange']()['isEqual'](_0x314fcc));_0x542c2c&&_0x1a3290['push']([_0x542c2c['name'],_0x4ea86d]);}_0x1a3290['length']&&_0x495d40['setAttribute']('markerAttributes',Object['fromEntries'](_0x1a3290));}_0x5abf2b=null;}));},{'priority':_0x19d522['high']+0xa}),_0x151f3e['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x20253b,_0xa2eeaf)=>{const [_0x16d1bf,_0x1f1027,,_0x306944]=_0xa2eeaf;if(!_0x5abf2b)return;_0x20253b['stop']();const _0xcdf531=_0x16d1bf['cell'],_0x1d56e5=_0x1f1027,_0x2d05d9=Oe(_0xcdf531),_0x325f1b=Oe(_0x1d56e5);_0x20253b['return']=_0xcdf531;let _0x30c71d=null,_0x2873bb=null;if(_0x325f1b||_0x2d05d9){if(_0x2d05d9&&!_0x325f1b){_0x306944['remove'](_0xcdf531['getChild'](0x0));for(const _0xed6c8e of Array['from'](_0x1d56e5['getChildren']()))_0x306944['insert'](_0xed6c8e,_0xcdf531,'end');const _0x6caf3d=_0x5abf2b['rowInsertionIndexes']['includes'](_0x16d1bf['row']),_0x17d92d=_0x5abf2b['columnInsertionIndexes']['includes'](_0x16d1bf['column']);_0x6caf3d||_0x17d92d||(_0x30c71d=_0x1720ab['fromRange'](_0x306944['createRangeIn'](_0xcdf531)));}else _0x325f1b&&!_0x2d05d9&&(_0x2873bb=_0x306944['createRangeIn'](_0xcdf531));}else{const _0x31735e=_0x306944['createElement']('tableCellSuggestion'),_0x4bb706=_0x306944['createElement']('tableCellSuggestion');_0x306944['wrap'](_0x306944['createRangeIn'](_0xcdf531),_0x4bb706),_0x306944['insert'](_0x31735e,_0xcdf531,0x0);for(const _0x4708c7 of Array['from'](_0x1d56e5['getChildren']()))_0x306944['insert'](_0x4708c7,_0x31735e,'end');_0x30c71d=_0x1720ab['fromRange'](_0x306944['createRangeOn'](_0x31735e)),_0x2873bb=_0x1720ab['fromRange'](_0x306944['createRangeOn'](_0x4bb706));}const _0xdfb002=Array['from'](_0x1d56e5['getAttributes']())['filter'](([_0x11110f])=>Be['includes'](_0x11110f));_0x5abf2b['cells']['push']({'element':_0xcdf531,'attributes':_0xdfb002['length']?Object['fromEntries'](_0xdfb002):null}),_0x30c71d&&_0x5abf2b['insertionRanges']['push'](_0x30c71d),_0x2873bb&&_0x5abf2b['deletionRanges']['push'](_0x2873bb);},{'priority':'high'}),_0x9a8c62['on']('insertColumns',(_0x19e8bd,_0x2f1653)=>{const [_0x3a9af8,_0x54c58={}]=_0x2f1653;if(!_0x5abf2b)return;const _0x4fd506=_0x54c58['at']||0x0,_0x942921=_0x54c58['columns']||0x1;_0x5abf2b['columnInsertionIndexes']=new Array(_0x942921)['fill'](_0x4fd506)['map']((_0x207f27,_0x27a5be)=>_0x207f27+_0x27a5be);for(const {cell:_0x42957f}of _0x9a8c62['createTableWalker'](_0x3a9af8,{'startColumn':_0x4fd506,'endColumn':_0x4fd506+_0x942921-0x1}))_0x5abf2b['columnInsertionRanges']['push'](_0x151f3e['model']['createRangeOn'](_0x42957f));},{'priority':'low'}),_0x9a8c62['on']('insertRows',(_0x4d75c8,_0x3dacb4)=>{const [_0x4f3fc3,_0x5eb60d={}]=_0x3dacb4;if(!_0x5abf2b)return;const _0x5654fe=_0x5eb60d['at']||0x0,_0x144167=_0x5eb60d['rows']||0x1;_0x5abf2b['rowInsertionIndexes']=new Array(_0x144167)['fill'](_0x5654fe)['map']((_0x41639d,_0x264dc7)=>_0x41639d+_0x264dc7);for(const {cell:_0x24da08}of _0x9a8c62['createTableWalker'](_0x4f3fc3,{'startRow':_0x5654fe,'endRow':_0x5654fe+_0x144167-0x1}))_0x5abf2b['rowInsertionRanges']['push'](_0x151f3e['model']['createRangeOn'](_0x24da08));},{'priority':'low'}),_0x4712af['descriptionFactory']['registerDescriptionCallback'](_0x4e754b=>{if(_0x4e754b['subType']&&_0x4e754b['subType']['startsWith']('tablePaste'))return _0x4e754b['previous']?{}:{'type':'insertion','content':o(_0x151f3e['locale'],'*Replace\x20table\x20cells*')};});const _0x40699e=()=>!0x1;for(const _0x64610e of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x4712af['_suggestionFactory']['registerCustomCallback']('insertion',_0x64610e,'join',_0x40699e),_0x4712af['_suggestionFactory']['registerCustomCallback']('deletion',_0x64610e,'join',_0x40699e),_0x4712af['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x64610e,'join',_0x40699e);_0x4712af['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x40699e),_0x4712af['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x61a2fa,_0x25a65e,_0xc97924)=>{const _0x28420c=_0x61a2fa['map'](_0x1bde0a=>_0x1bde0a['getContainedElement']())['filter'](_0x15716e=>_0x15716e),_0x525e2c=new Map(_0x28420c['map'](_0x358982=>[_0x358982,null]));if(_0x5abf2b){for(const {element:_0xfa8148,attributes:_0xa98354}of _0x5abf2b['cells'])_0xa98354&&_0x525e2c['set'](_0xfa8148,_0xa98354);}else{if(_0xc97924&&_0xc97924['markerAttributes'])for(const [_0x295757,_0x2fbd1f]of Object['entries'](_0xc97924['markerAttributes'])){const _0x220a91=_0x151f3e['model']['markers']['get'](_0x295757),_0x48b715=_0x220a91?_0x220a91['getRange']()['getContainedElement']():null;_0x48b715&&_0x525e2c['set'](_0x48b715,_0x2fbd1f);}}_0x151f3e['model']['change'](_0x45efff=>{for(const [_0x32d554,_0x4a4766]of _0x525e2c)_0x45efff['setAttributes']({...xe,..._0x4a4766},_0x32d554);});});const _0xc65f49=(_0x131c46,_0x45f7d2)=>{_0x4712af['_suggestionFactory']['registerCustomCallback'](_0x131c46,'tablePaste',_0x45f7d2,(_0x2a2362,_0x3a3f69,_0x37ece5)=>{_0x151f3e['model']['change'](_0xa2607c=>{const _0x15a3b8=[];for(const _0x2cdf06 of _0x2a2362){const _0x185c86=_0x2cdf06['start']['nodeAfter'];_0x185c86['is']('element','tableCellSuggestion')&&_0x15a3b8['push'](_0x185c86);}_0x4712af['_suggestionFactory']['getSuggestionCallback'](_0x131c46,null,_0x45f7d2)(_0x2a2362,_0x3a3f69,_0x37ece5);for(const _0x41bb56 of _0x15a3b8)'$graveyard'!=_0x41bb56['root']['rootName']&&_0xa2607c['unwrap'](_0x41bb56);});});};_0xc65f49('insertion','accept'),_0xc65f49('insertion','discard'),_0xc65f49('deletion','accept'),_0xc65f49('deletion','discard'),_0x4712af['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x4d3d69=>{const _0x81971f=_0x4d3d69['map'](_0x418f04=>_0x418f04['getContainedElement']()),_0x2f870b=_0x81971f[0x0]['findAncestor']('table'),{minRow:_0x5e1c81,maxRow:_0x38e5e6}=_0x273803['_getCoordsForCells'](_0x81971f);_0x9a8c62['removeRows'](_0x2f870b,{'at':_0x5e1c81,'rows':_0x38e5e6-_0x5e1c81+0x1});}),_0x4712af['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x19e8b9=>{const _0x519937=_0x19e8b9['map'](_0x1c5d0b=>_0x1c5d0b['getContainedElement']()),_0x460217=_0x519937[0x0]['findAncestor']('table'),{minColumn:_0x23ba6f,maxColumn:_0x408eb6}=_0x273803['_getCoordsForCells'](_0x519937);_0x9a8c62['removeColumns'](_0x460217,{'at':_0x23ba6f,'columns':_0x408eb6-_0x23ba6f+0x1});});const _0xf8d95a=(_0x1a8f68,_0x20cc77)=>{if(!_0x20cc77['subType']||!_0x20cc77['subType']['startsWith']('tablePaste'))return;const _0xe8915d=_0x20cc77['attributes']['tablePasteChainId'],_0x4fd3be=_0x4712af['getSuggestions']()['filter'](_0x1d196c=>_0x1d196c['isInContent']&&_0x1d196c['attributes']&&_0x1d196c['attributes']['tablePasteChainId']==_0xe8915d);_0x4fd3be['length']&&_0x20cc77['getAllAdjacentSuggestions']()['length']!=_0x4fd3be['length']&&_0x4fd3be['reduce']((_0xbacf57,_0x344182)=>(_0xbacf57['next']=_0x344182,_0x344182['previous']=_0xbacf57,_0x344182));};function _0x457d81(_0x4d7851,_0x52b85e=!0x0){const {id:_0xee754b,authorId:_0x47c938}=_0x4712af['_splitMarkerName'](_0x4d7851['markerName']),_0x43d5ec=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0xa5a028=_0x4712af['activeMarkers']['includes'](_0x4d7851['markerName']);return _0xa5a028&&_0x43d5ec['push']('ck-suggestion-marker--active'),{'classes':_0x43d5ec,'attributes':{'data-suggestion':_0xee754b,'data-author-id':_0x47c938},'priority':_0xa5a028&&_0x52b85e?0xbc2:0xbb8};}_0x4712af['on']('suggestionLoaded',_0xf8d95a,{'priority':'high'}),_0x4712af['on']('suggestionUnloaded',_0xf8d95a,{'priority':'high'}),_0x151f3e['model']['document']['registerPostFixer'](()=>{let _0x4aff8f=!0x1;const _0x3c5a25=Array['from'](_0x151f3e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4c6613,data:_0x4d3cb2}of _0x3c5a25){const {group:_0x6651f4,type:_0x13c33f,id:_0x48fa6e}=_0x4712af['_splitMarkerName'](_0x4c6613);if('suggestion'!=_0x6651f4||'deletion'!=_0x13c33f||_0x4d3cb2['oldRange'])continue;if(!_0x4712af['hasSuggestion'](_0x48fa6e))continue;const _0x51f74e=_0x4712af['getSuggestion'](_0x48fa6e)['getRanges'](),_0x51258a=_0x151f3e['plugins']['get']('Users')['me'];for(const _0x51ef61 of _0x4712af['getSuggestions']()){if(!_0x51ef61['isInContent']||_0x51ef61['author']!=_0x51258a)continue;if('formatBlock'!=_0x51ef61['type']||'tablePasteCell'!=_0x51ef61['subType'])continue;if(_0x51ef61['getRanges']()['every'](_0x58e2c8=>_0x51f74e['some'](_0x2f9577=>_0x2f9577['containsRange'](_0x58e2c8,!0x0)))){for(const _0x4f5c22 of _0x51ef61['getAllAdjacentSuggestions']())_0x4f5c22['isInContent']&&(_0x4f5c22['discard'](),_0x4aff8f=!0x0);}}}return _0x4aff8f;}),_0x151f3e['model']['document']['registerPostFixer'](_0x1abf7d=>{const _0x5a4cad=_0x151f3e['commands']['get']('redo');if(!_0x5a4cad||!_0x5a4cad['_createdBatches']['has'](_0x1abf7d['batch']))return!0x1;let _0x315259=!0x1;const _0x3aabbc=_0x151f3e['plugins']['get']('Users')['me'],_0xce52e9=_0x151f3e['model']['document']['differ']['getChanges'](),_0x46121d=Array['from'](_0x151f3e['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x18f8f6,data:_0xe95ed2})=>{const {group:_0x216aa3,subType:_0x382771,authorId:_0x1a14ee}=_0x4712af['_splitMarkerName'](_0x18f8f6);return'suggestion'==_0x216aa3&&'tablePaste'==_0x382771&&_0x1a14ee==_0x3aabbc['id']&&!_0xe95ed2['oldRange'];});for(const _0x2f1d4e of _0xce52e9){if('insert'!=_0x2f1d4e['type']||'tableCellSuggestion'!=_0x2f1d4e['name']||0x1!=_0x2f1d4e['length'])continue;const _0x507c35=_0x1abf7d['createRange'](_0x2f1d4e['position'],_0x2f1d4e['position']['getShiftedBy'](0x1));if(!_0x46121d['find'](({data:_0x4a79ef})=>_0x4a79ef['newRange']['isEqual'](_0x507c35))){for(const {name:_0x36adaa,data:_0x4efe75}of _0x46121d)if(_0x507c35['containsRange'](_0x4efe75['newRange'])){_0x1abf7d['updateMarker'](_0x36adaa,{'range':_0x507c35}),_0x315259=!0x0;break;}}}return _0x315259;}),_0x151f3e['model']['document']['registerPostFixer'](_0x4191f7=>{let _0x3dcb88=!0x1;const _0x434a9a=_0x151f3e['plugins']['get']('Users')['me'],_0x3d8d1a=_0x4712af['getSuggestions']()['filter'](_0x34bdfd=>_0x34bdfd['isInContent']&&_0x34bdfd['author']==_0x434a9a),_0x26bfd3=new Set(),_0x2b4b3e=new Set();for(const _0x451f91 of _0x3d8d1a)if('tablePaste'==_0x451f91['subType'])for(const _0x2008a8 of _0x451f91['getMarkers']()){const _0x121b92=_0x2008a8['getRange']()['getContainedElement']();if(_0x121b92){if(_0x121b92['is']('element','tableCellSuggestion')&&Oe(_0x121b92)){_0x451f91['removeMarker'](_0x2008a8['name']),_0x26bfd3['add'](_0x121b92),_0x3dcb88=!0x0;const _0x26000d=_0x121b92['nextSibling'],_0x35cdbc=_0x121b92['previousSibling'],_0x13a156=_0x26000d&&_0x26000d['is']('element','tableCellSuggestion'),_0x2123fa=_0x35cdbc&&_0x35cdbc['is']('element','tableCellSuggestion');_0x13a156&&!_0x26bfd3['has'](_0x26000d)&&_0x2b4b3e['add'](_0x26000d),_0x2123fa&&!_0x26bfd3['has'](_0x35cdbc)&&_0x2b4b3e['add'](_0x35cdbc);}else _0x121b92['is']('element','paragraph')&&_0x121b92['isEmpty']&&(_0x451f91['removeMarker'](_0x2008a8['name']),_0x3dcb88=!0x0);}}else{if('tablePasteCell'==_0x451f91['subType']){if(!_0x451f91['attributes']||!_0x451f91['attributes']['tablePasteChainId'])continue;const _0x479356=_0x451f91['attributes']['markerAttributes'];if(_0x479356&&Object['keys'](_0x479356)['length'])continue;const _0x373326=_0x451f91['attributes']['tablePasteChainId'];let _0x4eddaf=!0x0,_0x365d14=!0x0;for(const _0x524741 of _0x3d8d1a)if(_0x524741['subType']&&_0x524741['subType']['startsWith']('tablePaste')){if(!_0x524741['attributes']['tablePasteChainId']){_0x365d14=!0x1;break;}if(_0x524741['id']!=_0x451f91['id']&&_0x524741['attributes']['tablePasteChainId']==_0x373326){_0x4eddaf=!0x1;break;}}_0x365d14&&_0x4eddaf&&(_0x451f91['removeMarkers'](),_0x3dcb88=!0x0);}}for(const _0x166b61 of _0x26bfd3)_0x4191f7['remove'](_0x166b61);for(const _0x37824a of _0x2b4b3e)_0x4191f7['unwrap'](_0x37824a);return _0x3dcb88;}),_0x151f3e['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x1b4f86=>_0x457d81(_0x1b4f86),'converterPriority':'high'}),_0x151f3e['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x54ed80,_0xe79747)=>_0xe79747['options']['showSuggestionHighlights']?_0x457d81(_0x54ed80,!0x1):null,'converterPriority':'high'});const _0x2d32a2=_0x151f3e['editing']['view'];this['listenTo'](_0x2d32a2['document'],'clipboardOutput',(_0x30c999,_0x10b171)=>{const _0x2266e1=[];for(const _0x19d2f5 of _0x2d32a2['createRangeIn'](_0x10b171['content'])['getItems']())_0x19d2f5['is']('element','suggestion-td')&&_0x2266e1['push'](_0x19d2f5);_0x2d32a2['change'](_0x2826b6=>{for(const _0x57ec9e of _0x2266e1)_0x2826b6['move'](_0x2826b6['createRangeIn'](_0x57ec9e),_0x2826b6['createPositionBefore'](_0x57ec9e)),_0x2826b6['remove'](_0x57ec9e);});});}}function Oe(_0x3e1c28){if(_0x3e1c28['isEmpty'])return!0x0;const _0x32dd7c=_0x3e1c28['getChild'](0x0);return _0x32dd7c['is']('element','paragraph')&&_0x32dd7c['isEmpty'];}function Ue(_0x259a69,_0x2b3988={},_0x1766a4){for(const {isAnchor:_0x4666c8,cellHeight:_0x18e7f5,cellWidth:_0x197f8d}of _0x1766a4['createTableWalker'](_0x259a69,{'includeAllSlots':!0x0,..._0x2b3988}))if(!_0x4666c8||0x1!=_0x18e7f5||0x1!=_0x197f8d)return!0x1;return!0x0;}class $t extends _0x41fe8e{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x19b5b6=this['editor']['plugins']['get']('TrackChangesEditing');_0x19b5b6['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x19b5b6['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x19b5b6['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x19b5b6['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x19b5b6['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x19b5b6['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x160b70,_0x503cd8){const _0x2088fe=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5f042e=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x11fafa=_0x503cd8['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x35f279=_0x5f042e['getColumnGroupElement'](_0x11fafa);let _0x450dad=_0x35f279?_0x5f042e['getTableColumnsWidths'](_0x35f279):null,_0x3f43f6=_0x11fafa['getAttribute']('tableWidth')||null;const _0x439f01=_0x503cd8['tableWidth']||_0x3f43f6,_0x50c97a=_0x503cd8['columnWidths']||_0x450dad,_0x3e6f95=this['editor']['plugins']['get']('Users')['me'];for(const _0x475975 of _0x2088fe['getSuggestions']()){const _0x24dd2b=_0x475975['getContainedElement']();if('resizeTable'===_0x475975['subType']&&_0x24dd2b===_0x11fafa){_0x475975['author']!==_0x3e6f95&&_0x475975['discard']();const _0x5586fc=_0x475975['data']['commandParams'];_0x3f43f6=_0x5586fc[0x0]['tableWidth'],_0x450dad=_0x5586fc[0x0]['columnWidths'];break;}}_0x160b70({'table':_0x11fafa,'tableWidth':_0x439f01,'columnWidths':_0x50c97a}),_0x2088fe['markBlockFormat'](_0x11fafa,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x3f43f6,'columnWidths':_0x450dad}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x373568){if('formatBlock'!=_0x373568['type']&&'formatInline'!=_0x373568['type'])return;const {data:_0x48de85}=_0x373568;if(_0x48de85&&'resizeTable'===_0x48de85['formatGroupId']){const _0x1292d8='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x1292d8)};}}}class Bt extends _0x41fe8e{['afterInit'](){const _0x5a258f=this['editor'];_0x5a258f['plugins']['has']('Template')&&_0x5a258f['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x41fe8e{['afterInit'](){const _0x5dc6cd=this['editor'];if(!_0x5dc6cd['commands']['get']('insertTableOfContents'))return;_0x5dc6cd['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x3d6628=_0x5dc6cd['plugins']['get']('TrackChangesEditing'),_0x1f605c=_0x5dc6cd['locale'];_0x3d6628['descriptionFactory']['registerElementLabel']('tableOfContents',_0x54ee6f=>o(_0x1f605c,'ELEMENT_TABLE_OF_CONTENTS',_0x54ee6f));}}class Rt extends _0x41fe8e{['afterInit'](){const _0x453f09=this['editor'];if(!_0x453f09['plugins']['has']('Title'))return;const _0x43431f=_0x453f09['plugins']['get']('TrackChangesEditing');_0x43431f['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x453f09['locale'],'ELEMENT_TITLE')),_0x453f09['model']['document']['registerPostFixer'](_0x5f85f3=>{let _0x3d124d=!0x1;const _0xb5445c=Array['from'](_0x453f09['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x46fd9d,data:_0x32261a}of _0xb5445c){const {group:_0x59f96d}=_0x43431f['_splitMarkerName'](_0x46fd9d);if('suggestion'!==_0x59f96d||!_0x32261a['newRange'])continue;const _0x5e684e=_0x32261a['newRange'],_0x1b2489=_0x5e684e['end']['nodeBefore'];if(!_0x1b2489||!_0x1b2489['is']('element','title-content'))continue;if(!_0x5e684e['start']['isTouching'](_0x5e684e['end']))continue;const _0x49b8bc=_0x453f09['model']['schema']['getNearestSelectionRange'](_0x5e684e['end'],'forward');if(_0x49b8bc&&_0x49b8bc['isCollapsed']){const _0x7ee584=_0x5f85f3['createRange'](_0x5e684e['start'],_0x49b8bc['start']);_0x7ee584['isEqual'](_0x5e684e)||(_0x5f85f3['updateMarker'](_0x46fd9d,{'range':_0x7ee584}),_0x3d124d=!0x0);}_0x3d124d||(_0x5f85f3['removeMarker'](_0x46fd9d),_0x3d124d=!0x0);}return _0x3d124d;});}}class Tt extends _0x41fe8e{['afterInit'](){const _0x3099c7=this['editor'],_0x5009c2=_0x3099c7['plugins']['get']('TrackChangesEditing');_0x3099c7['plugins']['has']('Uploadcare')&&(_0x5009c2['enableCommand']('uploadcare'),_0x3099c7['plugins']['has']('UploadcareImageEdit')&&(_0x5009c2['enableCommand']('uploadcareImageEdit'),_0x5009c2['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x5009c2['registerBlockAttribute']('uploadcareImageId'),_0x5009c2['descriptionFactory']['registerDescriptionCallback'](_0x488c77=>{if('attribute'!=_0x488c77['type'])return;const {data:_0x1f004c}=_0x488c77;return _0x1f004c&&'uploadcareImageId'==_0x1f004c['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0x41fe8e{['afterInit'](){const _0xad44a5=this['editor'],_0xf4a95b=_0xad44a5['plugins']['get']('TrackChangesEditing');_0xad44a5['plugins']['has']('UndoEditing')&&(_0xf4a95b['enableCommand']('undo'),_0xf4a95b['enableCommand']('redo'));}}class Et extends _0x41fe8e{static get['requires'](){return[Ct];}['afterInit'](){const _0x32d028=this['editor'];if(!_0x32d028['plugins']['has']('TableCaptionEditing'))return;_0x32d028['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ut extends _0x41fe8e{['tableProperties'];['tableCellProperties'];constructor(_0x4d9074){super(_0x4d9074),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 _0x5558f1=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x333b7e of this['tableProperties'])_0x5558f1['enableCommand'](_0x333b7e,(_0x44937c,_0x59fd6b)=>{const _0x3d3e88=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x333b7e,[_0x3d3e88],this['tableProperties'],'tableProperties',_0x44937c,_0x59fd6b);});_0x5558f1['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x5558f1['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5558f1['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x43058b,_0x2b2d41)=>this['handleDiscardAction'](this['tableProperties'],_0x43058b,_0x2b2d41)),_0x5558f1['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x3c70a2 of this['tableCellProperties'])_0x5558f1['enableCommand'](_0x3c70a2,(_0x11f872,_0x45ee01)=>{const _0x5444da=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x3c70a2,_0x5444da,this['tableCellProperties'],'tableCellProperties',_0x11f872,_0x45ee01);});_0x5558f1['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x5558f1['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5558f1['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x335a5c,_0x2495a7)=>this['handleDiscardAction'](this['tableCellProperties'],_0x335a5c,_0x2495a7)),_0x5558f1['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x5558f1['descriptionFactory']['registerDescriptionCallback'](_0x45b5ed=>this['handleSuggestionDescription'](_0x45b5ed));}['_handlePropertyChange'](_0x19f02b,_0x3f4afb,_0x129bc1,_0xff3fc4,_0x53d6a4,_0x3a8518){const _0x3c3b99=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x3a8518['batch'],()=>{for(const _0x191995 of _0x3f4afb){if(this['_getSuggestion'](_0x191995,_0xff3fc4))_0x53d6a4(_0x3a8518);else{const _0x297730={};for(const _0x320661 of _0x129bc1){const _0x4ccfec=_0x191995['getAttribute'](_0x320661);void 0x0!==_0x4ccfec&&(_0x297730[_0x320661]=_0x4ccfec);}_0x53d6a4(_0x3a8518),_0x3c3b99['markBlockFormat'](_0x191995,{'commandParams':[_0x297730]},[],_0xff3fc4);}}});}['handleDiscardAction'](_0x1c1475,_0x3d4ef4,_0x32b21c){const _0x2113e8=_0x3d4ef4[0x0]['start']['nodeAfter'],_0x243613=_0x32b21c['commandParams'][0x0];this['editor']['model']['change'](_0x589c38=>{for(const _0x4c0772 of _0x1c1475)void 0x0!==_0x243613[_0x4c0772]?_0x589c38['setAttribute'](_0x4c0772,_0x243613[_0x4c0772],_0x2113e8):_0x589c38['removeAttribute'](_0x4c0772,_0x2113e8);});}['handleSuggestionDescription'](_0x25e18f){if(_0x25e18f['data'])switch(_0x25e18f['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x41d235,_0x1c0223){const _0x3903bb=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x211cc0 of _0x3903bb['getSuggestions']({'skipNotAttached':!0x0})){const _0x583136=_0x211cc0['getContainedElement']();if(_0x211cc0['subType']===_0x1c0223&&_0x583136===_0x41d235)return _0x211cc0;}return null;}}const m='$elementName';class p extends _0x41fe8e{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x5e66a0,_0x560f1c,U,V,G,F,L,H,J,q,z,K,X,Y,Z,tt,nt,it,et,st,ot,rt,ct,at,ut,ft,ht,gt,Q,kt,lt,W,Se,dt,pt,wt,bt,yt,jt,St,At,It,vt,_t,Ct,Nt,Dt,Et,Mt,$t,Ot,Ut,Bt,Rt,Tt,xt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3eefef){super(_0x3eefef),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x2c77cf,_0x3fd45a,_0x3c3041,_0x4a35a1)=>{this['_model']['change'](()=>{for(const _0x668d00 of[..._0x4a35a1,..._0x3c3041])this['_model']['markers']['has'](_0x668d00)&&_0x3eefef['editing']['reconvertMarker'](_0x668d00);});}),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']=_0x3eefef['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x3eefef['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x3eefef['config']['get']('trackChanges.trackFormatChanges'),_0x3eefef['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x3eefef['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x3eefef,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x162011=this['editor'],_0x35161d=(_0x120ade,_0x16f9f0)=>{if('attribute'!=_0x120ade)return'ck-suggestion-marker-'+_0x120ade;const _0x304e94=_0x16f9f0['split']('|')[0x0];return this['_isBlockAttribute'](_0x304e94)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x162011['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x2c866a=>{const {id:_0x846188,authorId:_0x3b0cda,type:_0x374e4b,subType:_0x3870c3}=this['_splitMarkerName'](_0x2c866a['markerName']),_0x1db6bc=['ck-suggestion-marker',_0x35161d(_0x374e4b,_0x3870c3)];let _0x461869=0xbb8;return this['activeMarkers']['includes'](_0x2c866a['markerName'])&&(_0x1db6bc['push']('ck-suggestion-marker--active'),_0x461869=0xbc2),'deletion'==_0x374e4b&&(_0x461869+=0x5),{'classes':_0x1db6bc,'attributes':{'data-suggestion':_0x846188,'data-author-id':_0x3b0cda},'priority':_0x461869};}}),_0x162011['conversion']['for']('dataDowncast')['add'](_0x4fd42b=>{_0x4fd42b['on']('addMarker:suggestion',(_0x2ba8ce,_0x186941,_0x3e9556)=>{if(!_0x3e9556['options']['showSuggestionHighlights'])return;const _0x1767f6=_0x186941['item'];if(!_0x1767f6)return;const _0xbe88e7=_0x3e9556['mapper']['toViewElement'](_0x1767f6);_0x162011['model']['schema']['isObject'](_0x1767f6)&&_0xbe88e7&&!_0xbe88e7['getCustomProperty']('widget')&&_0xbe88e7['is']('containerElement')&&_0x2b5f06(_0xbe88e7,_0x3e9556['writer']);},{'priority':'high'});}),_0x162011['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x19b4f5,_0x3bef9d)=>{if(!_0x3bef9d['options']['showSuggestionHighlights'])return null;const {type:_0x169fc9,subType:_0x893e0b}=this['_splitMarkerName'](_0x19b4f5['markerName']);return{'classes':['ck-suggestion-marker',_0x35161d(_0x169fc9,_0x893e0b)],'priority':0xbb8};}});const _0x28aa9f=({showActiveMarkers:_0x39465e=!0x0,isAttributeSuggestion:_0x200cd6=!0x1}={})=>(_0x498241,_0x10f408,_0x39a54a)=>{if(!_0x10f408['item'])return;const {id:_0xef2e11,authorId:_0x5abd41}=this['_splitMarkerName'](_0x10f408['markerName']);if(_0x200cd6){const _0x1af9d0=this['_suggestions']['get'](_0xef2e11),_0x3226fe=this['_getAttributeKey'](_0x1af9d0);if(!this['_isBlockAttribute'](_0x3226fe))return;}if(_0x10f408['item']['is']('selection'))return void _0x39a54a['consumable']['consume'](_0x10f408['item'],_0x498241['name']);const _0x59565e=_0x39a54a['mapper']['toViewElement'](_0x10f408['item']);if(_0x10f408['item']['is']('element')&&_0x162011['model']['schema']['isBlock'](_0x10f408['item'])&&!_0x59565e['getCustomProperty']('addHighlight')){_0x39a54a['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x59565e),_0x39a54a['writer']['setAttribute']('data-suggestion',_0xef2e11,_0x59565e),_0x39a54a['writer']['setAttribute']('data-author-id',_0x5abd41,_0x59565e),_0x39a54a['mapper']['bindElementToMarker'](_0x59565e,_0x10f408['markerName']),_0x39465e&&(this['activeMarkers']['includes'](_0x10f408['markerName'])?_0x39a54a['writer']['addClass']('ck-suggestion-marker--active',_0x59565e):_0x39a54a['writer']['removeClass']('ck-suggestion-marker--active',_0x59565e));for(const _0x3715de of _0x162011['model']['createRangeIn'](_0x10f408['item'])['getItems']())_0x39a54a['consumable']['consume'](_0x3715de,_0x498241['name']);_0x39a54a['consumable']['consume'](_0x10f408['item'],_0x498241['name']);}};_0x162011['conversion']['for']('dataDowncast')['add'](_0x488219=>{_0x488219['on']('addMarker:suggestion:formatBlock',(_0x341c1c,_0x15e979,_0x2d0778)=>{_0x2d0778['options']['showSuggestionHighlights']&&_0x28aa9f({'showActiveMarkers':!0x1})(_0x341c1c,_0x15e979,_0x2d0778);},{'priority':'highest'});}),_0x162011['conversion']['for']('dataDowncast')['add'](_0x5f4613=>{_0x5f4613['on']('addMarker:suggestion:attribute',(_0x47fcaa,_0x327463,_0x1e4a87)=>{_0x1e4a87['options']['showSuggestionHighlights']&&_0x28aa9f({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x47fcaa,_0x327463,_0x1e4a87);},{'priority':'highest'});}),_0x162011['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x5e99b4,_0x77889f)=>_0x77889f['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x5e99b4['substr'](0xb)}}),_0x162011['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x249290,{writer:_0x951e2e})=>{let _0x4902e5='suggestion:'+_0x249290['getAttribute']('suggestion-type')+':'+_0x249290['getAttribute']('id');return _0x249290['getAttribute']('marker-count')&&(_0x4902e5+=':'+_0x249290['getAttribute']('marker-count')),_0x951e2e['createElement']('$marker',{'data-name':_0x4902e5});}}),_0x162011['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x162011['conversion']['for']('editingDowncast')['add'](_0x56b24b=>{_0x56b24b['on']('addMarker:suggestion:formatBlock',_0x28aa9f(),{'priority':'high'});}),_0x162011['conversion']['for']('editingDowncast')['add'](_0x3ffcd6=>{_0x3ffcd6['on']('addMarker:suggestion:attribute',_0x28aa9f({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x162011['conversion']['for']('editingDowncast')['add'](_0x472568=>{_0x472568['on']('removeMarker:suggestion:formatBlock',(_0x2d58e3,_0x1affb9,_0x3c7a99)=>{const _0xbc3541=_0x3c7a99['mapper']['markerNameToElements'](_0x1affb9['markerName']);if(_0xbc3541){for(const _0x3f7340 of _0xbc3541)_0x3f7340['getCustomProperty']('addHighlight')||(_0x3c7a99['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3f7340),_0x3c7a99['writer']['removeAttribute']('data-suggestion',_0x3f7340),_0x3c7a99['writer']['removeAttribute']('data-author-id',_0x3f7340),_0x3c7a99['mapper']['unbindElementFromMarkerName'](_0x3f7340,_0x1affb9['markerName']));}},{'priority':'high'});}),_0x162011['conversion']['for']('editingDowncast')['add'](_0xdebc17=>{_0xdebc17['on']('removeMarker:suggestion:attribute',(_0x1244c7,_0x7db7ff,_0x338ffa)=>{const _0x10fbfa=_0x338ffa['mapper']['markerNameToElements'](_0x7db7ff['markerName']);if(!_0x10fbfa)return;const {id:_0x2f8123}=this['_splitMarkerName'](_0x7db7ff['markerName']),_0x4e1cc1=this['_suggestions']['get'](_0x2f8123),_0x2d7637=this['_getAttributeKey'](_0x4e1cc1);if(this['_isBlockAttribute'](_0x2d7637)){for(const _0x5e72a0 of _0x10fbfa)_0x5e72a0['getCustomProperty']('addHighlight')||(_0x338ffa['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x5e72a0),_0x338ffa['writer']['removeAttribute']('data-suggestion',_0x5e72a0),_0x338ffa['writer']['removeAttribute']('data-author-id',_0x5e72a0),_0x338ffa['mapper']['unbindElementFromMarkerName'](_0x5e72a0,_0x7db7ff['markerName']));}},{'priority':'high'});}),_0x162011['model']['document']['registerPostFixer'](_0x3cee19=>{let _0x52eef3=!0x1;const _0x4f430f=Array['from'](_0x162011['model']['document']['differ']['getChangedMarkers']()),_0x3ec884=new Set();for(const {name:_0x510077,data:_0x3f9488}of _0x4f430f){const {group:_0x26deb2,type:_0x6a96f3,subType:_0x30a041,id:_0x40c0cb}=this['_splitMarkerName'](_0x510077);if('suggestion'!==_0x26deb2)continue;const _0x35fb6a=this['_suggestions']['get'](_0x40c0cb);if(null!=_0x3f9488['newRange']){'formatInline'==_0x6a96f3&&(_0x52eef3=_0x52eef3||Lt(_0x3f9488['newRange'],_0x510077,_0x3cee19,_0x162011['model']['schema']));const _0x4e7c46='attribute'==_0x6a96f3&&this['_isBlockAttribute'](_0x30a041['split']('|')[0x0]);if(_0x3f9488['newRange']['isCollapsed']||'$graveyard'==_0x3f9488['newRange']['root']['rootName']||'formatBlock'==_0x6a96f3&&!Ht(_0x3f9488['newRange'])||_0x4e7c46&&!Ht(_0x3f9488['newRange'])||'deletion'==_0x6a96f3&&!(!Ft(_0x339ce4=_0x3f9488['newRange'])&&!function(_0x76b9d5){return _0x76b9d5['start']['parent']==_0x76b9d5['end']['nodeBefore']&&_0x76b9d5['start']['isAtEnd'];}(_0x339ce4)))_0x3cee19['removeMarker'](_0x510077),_0x52eef3=!0x0;else{if(!_0x35fb6a||!_0x35fb6a['isInContent'])continue;if(_0x3f9488['newRange']&&_0x3f9488['oldRange']&&_0x3f9488['newRange']['isEqual'](_0x3f9488['oldRange']))continue;_0x3ec884['add'](_0x35fb6a);}}}var _0x339ce4;return _0x3ec884['size']>0x0&&(_0x52eef3=!!this['_joinWithAdjacentSuggestions'](_0x3ec884)||_0x52eef3),_0x52eef3;}),_0x162011['model']['document']['registerPostFixer'](_0x3b58cd=>{let _0x32494f=!0x1;for(const _0x2d7ef0 of _0x162011['model']['document']['differ']['getChanges']())if('insert'==_0x2d7ef0['type'])for(const _0x5f27ac of this['_suggestions']['values']()){if(_0x5f27ac['isMultiRange']||!_0x5f27ac['isInContent'])continue;const _0x1c589d='formatBlock'==_0x5f27ac['type'],_0x434db1=this['_getAttributeKey'](_0x5f27ac),_0x2edd14=_0x434db1&&this['_isBlockAttribute'](_0x434db1);if(!_0x1c589d&&!_0x2edd14)continue;const _0x51300c=_0x5f27ac['getFirstRange']();if(_0x51300c['start']['parent']!=_0x51300c['end']['parent']&&!_0x51300c['end']['isAtEnd']){const _0x33321a=_0x162011['model']['createPositionAt'](_0x51300c['start']['nodeAfter'],'end'),_0x2c9a0a=_0x162011['model']['createRange'](_0x51300c['start'],_0x33321a);_0x3b58cd['updateMarker'](_0x5f27ac['getFirstMarker'](),{'range':_0x2c9a0a}),_0x32494f=!0x0;}}return _0x32494f;}),_0x162011['model']['document']['registerPostFixer'](_0x216fa9=>this['_processAttributeChanges'](_0x216fa9)),_0x162011['model']['document']['registerPostFixer'](_0x39631d=>!_0x39631d['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x39631d)),_0x162011['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x162011['model']['document']['on']('change:data',(_0x558101,_0xc32185)=>{if(!_0xc32185['isLocal']||_0xc32185['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x5106db=_0x162011['model']['document']['differ']['getChanges']();if(0x0==_0x5106db['length'])return;const _0x567b47=[],_0x5342c9=_0x5106db['filter'](_0x2cd8d3=>'attribute'==_0x2cd8d3['type']),_0x4ae121=_0x5106db['filter'](_0x136dbf=>'insert'==_0x136dbf['type']&&'$text'!=_0x136dbf['name']);for(const _0x573c0b of _0x5342c9)this['_isRegisteredAttribute'](_0x573c0b['attributeKey'])&&_0x567b47['push']({'key':_0x573c0b['attributeKey'],'newValue':_0x573c0b['attributeNewValue'],'oldValue':_0x573c0b['attributeOldValue'],'range':qt(_0x573c0b['range'],_0x162011['model'])});for(const _0x6f4d9 of _0x4ae121){if('rename'!=_0x6f4d9['action']&&'refresh'!=_0x6f4d9['action'])continue;const _0x15aeff=zt(_0x6f4d9['position']['nodeAfter'],_0x162011['model']),_0x4c7c29=_0x6f4d9['before'];'rename'==_0x6f4d9['action']&&_0x567b47['push']({'key':m,'newValue':_0x6f4d9['name'],'oldValue':_0x4c7c29['name'],'range':_0x15aeff});for(const [_0xc40ce7,_0x520ebf]of _0x4c7c29['attributes']){if(!this['_isRegisteredAttribute'](_0xc40ce7))continue;const _0xc67d90=_0x6f4d9['attributes']['get'](_0xc40ce7);_0x520ebf!==_0xc67d90&&_0x567b47['push']({'key':_0xc40ce7,'newValue':_0xc67d90,'oldValue':_0x520ebf,'range':_0x15aeff});}for(const [_0x2c663c,_0xbe67f9]of _0x6f4d9['attributes'])this['_isRegisteredAttribute'](_0x2c663c)&&(_0x4c7c29['attributes']['has'](_0x2c663c)||_0x567b47['push']({'key':_0x2c663c,'newValue':_0xbe67f9,'oldValue':null,'range':_0x15aeff}));}0x0!=_0x567b47['length']&&_0x162011['model']['enqueueChange'](_0xc32185,_0x3989b8=>{const _0x2e2822=_0x3cfc9c();for(const {range:_0xbe202b,key:_0x13b41e,oldValue:_0x3916cd,newValue:_0x486f7b}of _0x567b47)this['markAttributeChange'](_0xbe202b,_0x13b41e,_0x3916cd,_0x486f7b,{'groupId':_0x2e2822});this['_reduceExistingSuggestions'](_0x3989b8,_0x567b47);});},{'priority':'lowest'}),_0x162011['model']['markers']['on']('update:suggestion',(_0x1abc77,_0x5246b5,_0x1e84a3)=>{if(null==_0x1e84a3){const {id:_0x1469fe}=this['_splitMarkerName'](_0x5246b5['name']),_0x30be77=this['_suggestions']['get'](_0x1469fe);_0x30be77&&_0x30be77['addMarkerName'](_0x5246b5['name']);}}),_0x162011['model']['document']['on']('change:data',()=>{const _0x3236b8=Array['from'](_0x162011['model']['document']['differ']['getChangedMarkers']())['filter'](_0x20e62e=>'suggestion'===this['_splitMarkerName'](_0x20e62e['name'])['group']);if(0x0===_0x3236b8['length'])return;_0x3236b8['sort']((_0x554072,_0x40463c)=>{const _0x333dbd=_0x554072['data']['oldRange'],_0x136b19=_0x40463c['data']['oldRange'];return null===_0x333dbd&&null===_0x136b19?0x0:null===_0x333dbd&&null!==_0x136b19?-0x1:null!==_0x333dbd&&null===_0x136b19?0x1:_0x333dbd['start']['isBefore'](_0x136b19['start'])?-0x1:0x1;});const _0x342361=new Set(),_0x296b62=new Set();for(const {name:_0x5518f4,data:_0x342e3a}of _0x3236b8){const {id:_0x3f657}=this['_splitMarkerName'](_0x5518f4);if(null===_0x342e3a['oldRange']){const _0x11b0e8=this['_handleNewSuggestionMarker'](_0x5518f4);_0x296b62['add'](_0x11b0e8);}else{const _0x2fdc8b=this['_suggestions']['get'](_0x3f657);null!==_0x342e3a['newRange']||_0x2fdc8b['isInContent']?(_0x342361['add'](_0x2fdc8b['head']),_0x296b62['add'](_0x2fdc8b)):this['_removeSuggestion'](_0x2fdc8b);}}_0x296b62['size']>0x0&&this['_refreshSuggestionsChain'](_0x296b62);for(const _0x33efb6 of _0x342361)this['fire']('suggestionChanged',_0x33efb6);}),_0x162011['model']['on']('applyOperation',(_0x1da028,_0x583d71)=>{const _0x3e12a4=_0x583d71[0x0];if(!this['_suggestions']['size'])return;if(!_0x3e12a4['isDocumentOperation'])return;if(_0x3e12a4['batch']['isUndo']||!_0x3e12a4['batch']['isLocal'])return;let _0x5f1ecb,_0x5406fd;switch(_0x3e12a4['type']){case'insert':_0x5f1ecb=_0x162011['model']['createPositionAt'](_0x3e12a4['position']),_0x5406fd=_0x5f1ecb['getShiftedBy'](_0x3e12a4['howMany']);break;case'split':_0x5f1ecb=_0x162011['model']['createPositionAt'](_0x3e12a4['splitPosition']),_0x5406fd=_0x162011['model']['createPositionAt'](_0x3e12a4['moveTargetPosition']);break;case'move':_0x5f1ecb=_0x162011['model']['createPositionAt'](_0x3e12a4['targetPosition']),_0x5406fd=_0x5f1ecb['getShiftedBy'](_0x3e12a4['howMany']);break;default:return;}const _0x1ce6e0=_0x162011['model']['createRange'](_0x5f1ecb,_0x5406fd);_0x162011['model']['change'](()=>{for(const {suggestion:_0x19a1e2,meta:_0x32aad9}of this['_findSuggestions'](_0x1ce6e0)){if(_0x19a1e2['isMultiRange'])continue;if('formatInline'==_0x19a1e2['type'])continue;const _0x31fdb3=this['_getAttributeKey'](_0x19a1e2);if(_0x31fdb3&&this['_isBlockAttribute'](_0x31fdb3)&&'split'!=_0x3e12a4['type'])continue;const _0x4bd9c8=_0x19a1e2['data']&&_0x19a1e2['data']['multipleBlocks'];('formatBlock'!=_0x19a1e2['type']||'split'==_0x3e12a4['type']&&!_0x4bd9c8)&&(_0x32aad9['containsRangeInObject']||'insertion'==_0x19a1e2['type']&&_0x32aad9['isOwn']||_0x19a1e2['getFirstRange']()['containsRange'](_0x1ce6e0)&&this['_breakSuggestionMarker'](_0x19a1e2,_0x5f1ecb,_0x5406fd));}});},{'priority':'lowest'}),_0x162011['model']['on']('deleteContent',(_0x413546,_0x439bdf)=>{const _0x5ca4a9=_0x439bdf[0x0],_0x2ab5c4=_0x439bdf[0x1];if(_0x2ab5c4&&_0x2ab5c4['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x5ca4a9['isCollapsed'])return;const _0x55da48=_0x162011['model']['schema'],{start:_0x21f3ae,end:_0x1c1dc8}=_0x5ca4a9['getFirstRange'](),_0x3a3cd7=_0x21f3ae['nodeAfter']&&_0x55da48['isLimit'](_0x21f3ae['nodeAfter'])?null:_0x55da48['getNearestSelectionRange'](_0x21f3ae,'forward'),_0x48d5df=_0x1c1dc8['nodeBefore']&&_0x55da48['isLimit'](_0x1c1dc8['nodeBefore'])?null:_0x55da48['getNearestSelectionRange'](_0x1c1dc8,'backward'),_0x39c496=_0x162011['model']['createRange'](_0x3a3cd7?_0x3a3cd7['start']:_0x21f3ae,_0x48d5df?_0x48d5df['end']:_0x1c1dc8);_0x162011['model']['change'](_0x492b1d=>{this['markDeletion'](_0x39c496);const _0x9d2b47=_0x162011['model']['schema']['getNearestSelectionRange'](_0x39c496['start']);_0x5ca4a9['is']('documentSelection')?_0x492b1d['setSelection'](_0x9d2b47):_0x5ca4a9['setTo'](_0x9d2b47);}),_0x413546['stop']();},{'priority':_0x19d522['normal']+0xa}),_0x162011['model']['on']('insertContent',(_0x3d0dc5,_0x44d2bc)=>{const _0x40ced4=_0x44d2bc[_0x44d2bc['length']-0x1];_0x40ced4&&_0x40ced4['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x162011['model']['change'](()=>{let _0x2c6bff=_0x162011['model']['insertContent'](_0x44d2bc[0x0],_0x44d2bc[0x1],_0x44d2bc[0x2],{'forceDefaultExecution':!0x0});if(!_0x2c6bff)return;_0x3d0dc5['return']=_0x2c6bff['clone']();const _0x1d01c1=_0x2c6bff['end']['nodeBefore'],_0x1c64dd=_0x162011['model']['schema'];_0x1d01c1&&_0x1c64dd['isBlock'](_0x1d01c1)&&!_0x1c64dd['isObject'](_0x1d01c1)&&(_0x2c6bff=_0x162011['model']['createRange'](_0x2c6bff['start'],_0x162011['model']['createPositionAt'](_0x1d01c1,'end'))),this['markInsertion'](_0x2c6bff);}),_0x3d0dc5['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x2b01e7=new O(_0x162011,this['_suggestions']);_0x162011['commands']['add']('acceptSuggestion',_0x2b01e7),this['enableCommand']('acceptSuggestion');const _0x63e3be=new R(_0x162011,this['_suggestions']);_0x162011['commands']['add']('discardSuggestion',_0x63e3be),this['enableCommand']('discardSuggestion'),_0x162011['commands']['add']('acceptAllSuggestions',new x(_0x162011,_0x2b01e7,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x162011['commands']['add']('discardAllSuggestions',new x(_0x162011,_0x63e3be,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x162011['commands']['add']('acceptSelectedSuggestions',new E(_0x162011,_0x2b01e7,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x162011['commands']['add']('discardSelectedSuggestions',new E(_0x162011,_0x63e3be,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x3be2aa=_0x162011['plugins']['get']('CommentsRepository');this['listenTo'](_0x3be2aa,'addComment',(_0x292346,{threadId:_0x4067b7})=>{const _0x26ff69=this['_suggestions']['get'](_0x4067b7);_0x26ff69&&_0x26ff69['commentThread']&&0x1===_0x26ff69['commentThread']['length']&&this['_updateSuggestionData'](_0x4067b7,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x3be2aa,'removeComment',(_0x2b9268,{threadId:_0x4a6869})=>{const _0x4b69e2=this['_suggestions']['get'](_0x4a6869);_0x4b69e2&&_0x4b69e2['commentThread']&&!_0x4b69e2['commentThread']['length']&&this['_updateSuggestionData'](_0x4a6869,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x21e551){const _0x1b2513=_0xe5f779([0x79,0x75,0x6f,0x70,0x74,0x4d,0x42,0x4c,0x77,0x56,0x76,0x6c,0x65,0x69,0x61,0x54,0x32,0x67,0x63,0x46,0x30,0x38,0x37,0x49,0x55,0x78,0x43,0x73,0x41,0x4e,0x44,0x45,0x72,0x68,0x51,0x6b,0x57,0x66,0x39,0x62,0x59,0x5a,0x48,0x4a,0x6d,0x58,0x71,0x50,0x53,0x7a,0x31,0x33,0x36,0x52,0x47,0x4b,0x6e,0x34,0x35,0x64,0x6a,0x4f]),_0x1d8446=0x7f733175,_0x54947c=0x7f746e3d^_0x1d8446,_0x4120b2=window[_0xe5f779([0x44,0x61,0x74,0x65])][_0xe5f779([0x6e,0x6f,0x77])](),_0x55bf90=_0x21e551[_0xe5f779([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x45b8cb=new window[(_0xe5f779([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x715a99=>{_0x55bf90[_0xe5f779([0x6f,0x6e,0x63,0x65])](_0xe5f779([0x72,0x65,0x61,0x64,0x79]),_0x715a99);}),_0x181d23={[_0xe5f779([0x6b,0x74,0x79])]:_0xe5f779([0x45,0x43]),[_0xe5f779([0x75,0x73,0x65])]:_0xe5f779([0x73,0x69,0x67]),[_0xe5f779([0x63,0x72,0x76])]:_0xe5f779([0x50,0x2d,0x32,0x35,0x36]),[_0xe5f779([0x78])]:_0xe5f779([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]),[_0xe5f779([0x79])]:_0xe5f779([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]),[_0xe5f779([0x61,0x6c,0x67])]:_0xe5f779([0x45,0x53,0x32,0x35,0x36])},_0x4dc940=_0x55bf90[_0xe5f779([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xe5f779([0x67,0x65,0x74])](_0xe5f779([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x256448(){let _0x352cc4,_0x5c6b25=null,_0x4a50b3=null;try{if(_0x4dc940==_0xe5f779([0x47,0x50,0x4c]))return _0xe5f779([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x352cc4=_0x3fef79(),!_0x352cc4)return _0xe5f779([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x352cc4[_0xe5f779([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4a50b3=_0x4e84ce(_0x352cc4[_0xe5f779([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x352cc4[_0xe5f779([0x6a,0x74,0x69])])),await _0x2d4bd6()?_0x588576()?_0x96007f()?_0xe5f779([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x28047c()?(_0x352cc4[_0xe5f779([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xe5f779([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5c6b25=_0x18aec9(_0xe5f779([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x352cc4[_0xe5f779([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xe5f779([0x74,0x72,0x69,0x61,0x6c])&&(_0x5c6b25=_0x18aec9(_0xe5f779([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4ac535()):_0xe5f779([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xe5f779([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xe5f779([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x4d23eb){return _0xe5f779([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x96007f(){const _0xd15b3a=[_0xe5f779([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xe5f779([0x74,0x72,0x69,0x61,0x6c])][_0xe5f779([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x352cc4[_0xe5f779([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4120b2/0x3e8:0xe10*_0x54947c;return _0x352cc4[_0xe5f779([0x65,0x78,0x70])]<_0xd15b3a;}function _0x588576(){const _0x29afda=_0x352cc4[_0xe5f779([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x29afda)return!0x1;if(_0x29afda[_0xe5f779([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe5f779([0x2a])))return!0x0;if(_0x29afda[_0xe5f779([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe5f779([0x54,0x43])))return!0x0;if(_0x29afda[_0xe5f779([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe5f779([0x52,0x54,0x43]))){if(_0x20d84f())return!0x0;if(_0xed0af0()||_0xd1a588())return!0x0;}return!0x1;}function _0x28047c(){const _0x42a988=_0x352cc4[_0xe5f779([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x42a988||0x0==_0x42a988[_0xe5f779([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5bbc1d}=new URL(window[_0xe5f779([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x42a988[_0xe5f779([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5bbc1d))return!0x0;const _0x308795=_0x5bbc1d[_0xe5f779([0x73,0x70,0x6c,0x69,0x74])](_0xe5f779([0x2e]));return _0x42a988[_0xe5f779([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3227a1=>_0x3227a1[_0xe5f779([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe5f779([0x2a])))[_0xe5f779([0x6d,0x61,0x70])](_0x36c143=>_0x36c143[_0xe5f779([0x73,0x70,0x6c,0x69,0x74])](_0xe5f779([0x2e])))[_0xe5f779([0x73,0x6f,0x6d,0x65])](_0x4ca382=>_0x308795[_0xe5f779([0x65,0x76,0x65,0x72,0x79])]((_0x213ada,_0x551dc3)=>_0x4ca382[_0x551dc3]===_0x213ada||_0x4ca382[_0x551dc3]===_0xe5f779([0x2a])));}function _0x4ac535(){return _0x5c6b25&&_0x4a50b3?new window[(_0xe5f779([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xf04cd0,_0x519b08)=>{_0x5c6b25[_0xe5f779([0x74,0x68,0x65,0x6e])](_0xf04cd0,_0x519b08),_0x4a50b3[_0xe5f779([0x74,0x68,0x65,0x6e])](_0x303c6a=>{_0x303c6a!=_0xe5f779([0x56,0x61,0x6c,0x69,0x64])&&_0xf04cd0(_0x303c6a);},_0x519b08);}):_0x5c6b25||_0x4a50b3||_0xe5f779([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4e84ce(_0x107d99,_0x3fbabf){return new window[(_0xe5f779([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2bbd89=>{if(_0x398d08())return _0x2bbd89(_0xe5f779([0x56,0x61,0x6c,0x69,0x64]));_0x218d3f(),_0x55bf90[_0xe5f779([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xe5f779([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2cbdd8=!0x1;const _0x190b78=_0x3cfc9c();function _0x2cead0(_0x1b803a){return!!_0x1b803a&&(typeof _0x1b803a===_0xe5f779([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1b803a===_0xe5f779([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1b803a[_0xe5f779([0x74,0x68,0x65,0x6e])]===_0xe5f779([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1b803a[_0xe5f779([0x63,0x61,0x74,0x63,0x68])]===_0xe5f779([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3e5ec5(_0x14aa1f){_0x3fc40b(_0x14aa1f)[_0xe5f779([0x74,0x68,0x65,0x6e])](_0x408a05=>{if(!_0x408a05||_0x408a05[_0xe5f779([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xe5f779([0x6f,0x6b]))return _0xe5f779([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3dfd80(_0x32d867(_0x190b78+_0x3fbabf))!=_0x408a05[_0xe5f779([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xe5f779([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xe5f779([0x56,0x61,0x6c,0x69,0x64]);})[_0xe5f779([0x74,0x68,0x65,0x6e])](_0x446865=>(_0x51f5f9(),_0x446865),()=>{const _0x26a663=_0x37957d();return null==_0x26a663?(_0x51f5f9(),_0xe5f779([0x56,0x61,0x6c,0x69,0x64])):_0xe5f779(_0x4120b2-_0x26a663>(0x5b7fb575^_0x1d8446)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xe5f779([0x74,0x68,0x65,0x6e])](_0x2bbd89)[_0xe5f779([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2bbd89(_0xe5f779([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2c2578=0x7f45dff5^_0x1d8446;function _0x51f5f9(){const _0x28e72c=_0xe5f779([0x6c,0x6c,0x63,0x74,0x2d])+_0x3dfd80(_0x32d867(_0x107d99)),_0x1a29f8=_0x23a52d(_0x3dfd80(window[_0xe5f779([0x4d,0x61,0x74,0x68])][_0xe5f779([0x63,0x65,0x69,0x6c])](_0x4120b2/_0x2c2578)));window[_0xe5f779([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xe5f779([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x28e72c,_0x1a29f8);}function _0x37957d(){const _0x3d6724=_0xe5f779([0x6c,0x6c,0x63,0x74,0x2d])+_0x3dfd80(_0x32d867(_0x107d99)),_0x184f04=window[_0xe5f779([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xe5f779([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3d6724);return _0x184f04?window[_0xe5f779([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x23a52d(_0x184f04),0x10)*_0x2c2578:null;}function _0x3fc40b(_0x13604e){return new window[(_0xe5f779([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x541c8e,_0x393fbe)=>{_0x13604e[_0xe5f779([0x74,0x68,0x65,0x6e])](_0x541c8e,_0x393fbe),window[_0xe5f779([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x393fbe,0x7f72e5b5^_0x1d8446);});}}_0x55bf90[_0xe5f779([0x6f,0x6e])](_0xe5f779([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1339d5,_0x1ddefc)=>{if(_0x1ddefc[0x0]!=_0x107d99)return _0x2bbd89(_0xe5f779([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1ddefc[0x1]={..._0x1ddefc[0x1],[_0xe5f779([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x190b78};},{[_0xe5f779([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xe5f779([0x68,0x69,0x67,0x68])}),_0x55bf90[_0xe5f779([0x6f,0x6e])](_0xe5f779([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1a1760=>{_0x2cead0(_0x1a1760[_0xe5f779([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2cbdd8=!0x0,_0x3e5ec5(_0x1a1760[_0xe5f779([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xe5f779([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xe5f779([0x6c,0x6f,0x77])}),_0x45b8cb[_0xe5f779([0x74,0x68,0x65,0x6e])](()=>{_0x2cbdd8||_0x2bbd89(_0xe5f779([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x398d08(){return _0x55bf90[_0xe5f779([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xe5f779([0x76,0x69,0x65,0x77])][_0xe5f779([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xe5f779([0x61,0x75,0x74,0x6f]);}function _0x218d3f(){_0x55bf90[_0xe5f779([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xe5f779([0x76,0x69,0x65,0x77])][_0xe5f779([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xe5f779([0x61,0x75,0x74,0x6f]);}}function _0x18aec9(_0xa39a29){const _0x22161f=[new window[(_0xe5f779([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x8f9f94=>setTimeout(_0x8f9f94,0x7f7a0fb9^_0x1d8446)),_0x45b8cb[_0xe5f779([0x74,0x68,0x65,0x6e])](()=>new window[(_0xe5f779([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x95c7f0=>{let _0x317c7e=0x0;_0x55bf90[_0xe5f779([0x6d,0x6f,0x64,0x65,0x6c])][_0xe5f779([0x6f,0x6e])](_0xe5f779([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2d1f1f,_0x13315c)=>{_0x13315c[0x0][_0xe5f779([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x317c7e++,_0x317c7e==(0x7f73308d^_0x1d8446)&&(_0x95c7f0(),_0x2d1f1f[_0xe5f779([0x6f,0x66,0x66])]());});}))];return window[_0xe5f779([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xe5f779([0x72,0x61,0x63,0x65])](_0x22161f)[_0xe5f779([0x74,0x68,0x65,0x6e])](()=>_0xa39a29);}async function _0x5b41d1(){await _0x45b8cb,_0x55bf90[_0xe5f779([0x6d,0x6f,0x64,0x65,0x6c])][_0xe5f779([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x35a420,_0x55bf90[_0xe5f779([0x6d,0x6f,0x64,0x65,0x6c])][_0xe5f779([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x35a420,_0x55bf90[_0xe5f779([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xe5f779([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x20d84f(){return _0x287ca8(_0xe5f779([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x4fa2d9(_0xe5f779([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0xe5f779([0x73,0x74,0x61,0x74,0x65])]==_0xe5f779([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0xed0af0(){return _0x287ca8(_0xe5f779([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 _0xd1a588(){return _0x287ca8(_0xe5f779([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x43267e(_0x29d040){const _0x3240f4=_0x44a188();_0x55bf90[_0x3240f4]=_0xe5f779([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x29d040,_0x29d040!=_0xe5f779([0x56,0x61,0x6c,0x69,0x64])&&_0x5b41d1();}function _0x44a188(){const _0x18c8b2=window[_0xe5f779([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xe5f779([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xe5f779([0x6e,0x6f,0x77])]())[_0xe5f779([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xe5f779([0x2e]),'');let _0x227853=_0xe5f779([0x79]);for(let _0x4c37d8=0x0;_0x4c37d8<_0x18c8b2[_0xe5f779([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4c37d8+=0x2){let _0x21239a=window[_0xe5f779([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x18c8b2[_0xe5f779([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4c37d8,_0x4c37d8+0x2));_0x21239a>=_0x1b2513[_0xe5f779([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x21239a-=_0x1b2513[_0xe5f779([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x227853+=_0x1b2513[_0x21239a];}return _0x227853;}function _0x3fef79(){const _0x58b2dc=_0x4dc940[_0xe5f779([0x73,0x70,0x6c,0x69,0x74])](_0xe5f779([0x2e]));if(0x3!=_0x58b2dc[_0xe5f779([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x111e4a(_0x58b2dc[0x1]);function _0x111e4a(_0x554569){const _0x368a18=_0x2caf76(_0x554569);return _0x368a18&&_0x5b7b89()?_0x368a18:null;function _0x5b7b89(){const _0x55751a=_0x368a18[_0xe5f779([0x6a,0x74,0x69])],_0x4f0f5e=window[_0xe5f779([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x55751a[_0xe5f779([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x55751a[_0xe5f779([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x27214a={..._0x368a18,[_0xe5f779([0x6a,0x74,0x69])]:_0x55751a[_0xe5f779([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x55751a[_0xe5f779([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x27214a[_0xe5f779([0x76,0x63])],_0x32d867(_0x27214a)==_0x4f0f5e;}}}async function _0x2d4bd6(){let _0x11e8ea=!0x0;try{const _0x40c65e=_0x4dc940[_0xe5f779([0x73,0x70,0x6c,0x69,0x74])](_0xe5f779([0x2e])),[_0x558628,_0x3b0e1a,_0x50d94d]=_0x40c65e;return _0x3d81c8(_0x558628),await _0x68e5f5(_0x558628,_0x3b0e1a,_0x50d94d),_0x11e8ea;}catch(_0x478c8d){return!0x1;}function _0x3d81c8(_0x3cbeef){const _0x4aea1b=_0x2caf76(_0x3cbeef);_0x4aea1b&&_0x4aea1b[_0xe5f779([0x61,0x6c,0x67])]==_0xe5f779([0x45,0x53,0x32,0x35,0x36])||(_0x11e8ea=!0x1);}async function _0x68e5f5(_0x3b4538,_0x59c90b,_0x36fa34){const _0x1c691c=window[_0xe5f779([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xe5f779([0x66,0x72,0x6f,0x6d])](_0x104fe4(_0x36fa34),_0x479bf9=>_0x479bf9[_0xe5f779([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x247bbc=new window[(_0xe5f779([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xe5f779([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3b4538+_0xe5f779([0x2e])+_0x59c90b),_0x112422=window[_0xe5f779([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xe5f779([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x112422)return;const _0xf0c4fb=await _0x112422[_0xe5f779([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xe5f779([0x6a,0x77,0x6b]),_0x181d23,{[_0xe5f779([0x6e,0x61,0x6d,0x65])]:_0xe5f779([0x45,0x43,0x44,0x53,0x41]),[_0xe5f779([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xe5f779([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xe5f779([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x112422[_0xe5f779([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xe5f779([0x6e,0x61,0x6d,0x65])]:_0xe5f779([0x45,0x43,0x44,0x53,0x41]),[_0xe5f779([0x68,0x61,0x73,0x68])]:{[_0xe5f779([0x6e,0x61,0x6d,0x65])]:_0xe5f779([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xf0c4fb,_0x1c691c,_0x247bbc)||(_0x11e8ea=!0x1);}}function _0x2caf76(_0x25f69e){return _0x25f69e[_0xe5f779([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xe5f779([0x65,0x79]))?JSON[_0xe5f779([0x70,0x61,0x72,0x73,0x65])](_0x104fe4(_0x25f69e)):null;}function _0x104fe4(_0x45f23f){return window[_0xe5f779([0x61,0x74,0x6f,0x62])](_0x45f23f[_0xe5f779([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xe5f779([0x2b]))[_0xe5f779([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xe5f779([0x2f])));}function _0x32d867(_0x12ec20){let _0x2475d6=0x1505;function _0x1125e2(_0x191455){for(let _0x93a7bb=0x0;_0x93a7bb<_0x191455[_0xe5f779([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x93a7bb++){const _0x1a4d60=_0x191455[_0xe5f779([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x93a7bb);_0x2475d6=(_0x2475d6<<0x5)+_0x2475d6+_0x1a4d60,_0x2475d6&=_0x2475d6;}}function _0xf8665f(_0x1f80ae){Array[_0xe5f779([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1f80ae)?_0x1f80ae[_0xe5f779([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xf8665f):_0x1f80ae&&typeof _0x1f80ae==_0xe5f779([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xe5f779([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1f80ae)[_0xe5f779([0x73,0x6f,0x72,0x74])]()[_0xe5f779([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4bfdb8,_0xac7617])=>{_0x1125e2(_0x4bfdb8),_0xf8665f(_0xac7617);}):_0x1125e2(window[_0xe5f779([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1f80ae));}return _0xf8665f(_0x12ec20),_0x2475d6>>>0x0;}function _0x3dfd80(_0x3bf45a){return _0x3bf45a[_0xe5f779([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xe5f779([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xe5f779([0x30]));}function _0x23a52d(_0x36932a){return _0x36932a[_0xe5f779([0x73,0x70,0x6c,0x69,0x74])]('')[_0xe5f779([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xe5f779([0x6a,0x6f,0x69,0x6e])]('');}function _0x287ca8(_0x6ea7b8){return _0x55bf90[_0xe5f779([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xe5f779([0x68,0x61,0x73])](_0x6ea7b8);}function _0x4fa2d9(_0x9a02ea){return _0x55bf90[_0xe5f779([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xe5f779([0x67,0x65,0x74])](_0x9a02ea);}function _0x35a420(){}function _0xe5f779(_0x1ecb28){return _0x1ecb28['map'](_0x25293f=>String['fromCharCode'](_0x25293f))['join']('');}_0x43267e(await _0x256448());}(this);}set['adapter'](_0x558c98){if(this['_adapter'])throw new _0x3cbe3d('track-changes-adapter-already-set',this);this['_adapter']=_0x558c98;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x286d35=!0x1,toJSON:_0xc778ba=!0x1}={}){const _0x51a486=[];for(const _0x48540c of this['_suggestions']['values']())_0x286d35&&!_0x48540c['isInContent']||_0x51a486['push'](_0x48540c);return _0xc778ba?_0x51a486['map'](_0x4769a7=>_0x4769a7['toJSON']()):_0x51a486;}['getSuggestion'](_0x11fcc9){const _0x5a171a=this['_suggestions']['get'](_0x11fcc9);if(!_0x5a171a)throw new _0x3cbe3d('track-changes-suggestion-not-found',this);return _0x5a171a;}['hasSuggestion'](_0x53fdf1){return this['_suggestions']['has'](_0x53fdf1);}['addSuggestionData'](_0x36bb29){const {authorId:_0x4b6c37,id:_0x4558ba,attributes:_0x347b3d}=_0x36bb29,[_0x2268ad,_0x2b582b]=_0x36bb29['type']['split'](':'),_0x4f6c5d=this['_suggestions']['get'](_0x4558ba)||this['_createSuggestion'](_0x2268ad,_0x2b582b,_0x4558ba,_0x4b6c37,_0x347b3d);if(this['_addThreadToSuggestion'](_0x4f6c5d),this['_checkSuggestionCorrectness'](_0x4f6c5d,_0x2268ad,_0x2b582b||null,_0x4b6c37),_0x4f6c5d['createdAt']=_0x36bb29['createdAt'],_0x4f6c5d['_isDataLoaded']=!0x0,_0x347b3d&&_0x347b3d['@external']){const _0x51e3a0=_0x347b3d['@external'],_0x57070a=this['_getExternalAuthor'](_0x51e3a0['authorName']);_0x4f6c5d['authoredAt']=_0x51e3a0['createdAt'],_0x4f6c5d['author']=_0x57070a,_0x4f6c5d['isExternal']=!0x0;}else _0x4f6c5d['authoredAt']=_0x36bb29['createdAt'];switch(_0x36bb29['data']&&(_0x4f6c5d['data']=_0x36bb29['data']),_0x36bb29['attributes']&&(_0x4f6c5d['attributes']=_0x36bb29['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x4f6c5d['_saved']=!0x0),this['_suggestionState']['get'](_0x4f6c5d)){case'notReady':this['_suggestionState']['set'](_0x4f6c5d,'dataReady');break;case'markerReady':_0x4f6c5d['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x4f6c5d])),this['_refreshSuggestionsChain'](new Set([_0x4f6c5d])),this['_suggestionState']['set'](_0x4f6c5d,'ready'),this['fire']('suggestionLoaded',_0x4f6c5d)):this['_suggestionState']['set'](_0x4f6c5d,'removed');}return _0x4f6c5d;}['acceptSuggestion'](_0x552c97){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xf71b31 of _0x552c97['getAllAdjacentSuggestions']())_0xf71b31['accept']();});});}['discardSuggestion'](_0x4af182){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x52fdd6 of _0x4af182['getAllAdjacentSuggestions']())_0x52fdd6['discard']();});});}['enableCommand'](_0xe09db2,_0x397225){const _0x50580c=this['editor']['commands']['get'](_0xe09db2);if(!_0x50580c)throw new _0x3cbe3d('track-changes-command-not-found',this,{'commandName':_0xe09db2});if(this['_enabledCommands']['has'](_0x50580c))throw new _0x3cbe3d('track-changes-enable-command-twice',this,{'commandName':_0xe09db2});this['_enabledCommands']['add'](_0x50580c),_0x397225&&_0x50580c['on']('execute',(_0x5a9dde,_0x2e556b)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x2e556b['length']>0x0&&_0x2e556b[_0x2e556b['length']-0x1]&&_0x2e556b[_0x2e556b['length']-0x1]['forceDefaultExecution']?_0x2e556b['pop']():(_0x5a9dde['return']=_0x397225((..._0x114206)=>_0x50580c['execute'](..._0x114206,{'forceDefaultExecution':!0x0}),..._0x2e556b),_0x5a9dde['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x3d4406){let _0x30a774,_0x3f5069;const _0x452787=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x30a774=_0x3d4406();}catch(_0x49f740){_0x3f5069=_0x49f740;}return _0x452787||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x3f5069&&_0x3cbe3d['rethrowUnexpectedError'](_0x3f5069,this),_0x30a774;}['markInsertion'](_0x3ecf6b,_0x3916a7=null,_0x4eb68c={}){if(_0x3ecf6b['isCollapsed'])return null;const _0x46d6e3=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x3e3e08,meta:_0x13dd0f}of this['_findSuggestions'](_0x3ecf6b,'insertion'))if(_0x13dd0f['isOwn']){if(!_0x13dd0f['isNextTo']){if(_0x13dd0f['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0x3e3e08,_0x4eb68c))continue;return _0x3e3e08;}if(Qt(_0x3e3e08,_0x4eb68c))return _0x3e3e08;this['_breakSuggestionMarker'](_0x3e3e08,_0x3ecf6b['start'],_0x3ecf6b['end']);break;}if(_0x3916a7==_0x3e3e08['subType']&&Qt(_0x3e3e08,_0x4eb68c)){const _0x1f6e84=_0x3e3e08['getFirstRange']();return _0x1f6e84['start']['isEqual'](_0x3ecf6b['end'])?this['_setSuggestionRange'](_0x3e3e08,this['_model']['createRange'](_0x3ecf6b['start'],_0x1f6e84['end'])):this['_setSuggestionRange'](_0x3e3e08,this['_model']['createRange'](_0x1f6e84['start'],_0x3ecf6b['end'])),_0x3e3e08;}}const _0x494f2b=_0x3cfc9c(),_0x5f0bb7=_0x46d6e3['id'],_0x3faa5d=_0x3916a7?'insertion:'+_0x3916a7:'insertion',_0x5a72de=this['_setSuggestionData']({'id':_0x494f2b,'type':_0x3faa5d,'createdAt':new Date(),'authorId':_0x5f0bb7,'attributes':_0x4eb68c});return this['_addSuggestionMarker'](_0x3faa5d,_0x494f2b,_0x5f0bb7,_0x3ecf6b),_0x5a72de;}['markMultiRangeInsertion'](_0x3e7455,_0x1f74c3='multi',_0x1d1a1d={}){const _0x4c4073=this['editor']['plugins']['get']('Users')['me'],_0x5d9c0b=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x1f74c3,'join');for(const _0x34e6a4 of this['getSuggestions']())if(_0x34e6a4['author']['id']==_0x4c4073['id']&&'insertion'==_0x34e6a4['type']&&_0x34e6a4['subType']==_0x1f74c3&&Qt(_0x34e6a4,_0x1d1a1d)&&(_0x5d9c0b(_0x34e6a4['getRanges'](),_0x3e7455)||_0x5d9c0b(_0x3e7455,_0x34e6a4['getRanges']()))){for(const _0x476732 of _0x3e7455)_0x34e6a4['addRange'](_0x476732);return _0x34e6a4;}for(const {suggestion:_0x2364af,meta:_0x47033a}of this['_findSuggestions'](_0x3e7455,'insertion')){if(!_0x47033a['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x47033a['containsRangeInObject'])continue;if(!Qt(_0x2364af,_0x1d1a1d))continue;let _0x201f5b=!0x0;for(const _0x3b3940 of _0x2364af['getRanges']())for(const _0x50660a of _0x3e7455)if(!_0x3b3940['containsRange'](_0x50660a)){_0x201f5b=!0x1;break;}if(_0x201f5b)return _0x2364af;}const _0x45b4e3=_0x3cfc9c(),_0x1f9def=_0x4c4073['id'],_0x2a07b8='insertion:'+_0x1f74c3,_0x389adb=this['_setSuggestionData']({'id':_0x45b4e3,'type':_0x2a07b8,'createdAt':new Date(),'authorId':_0x1f9def,'attributes':_0x1d1a1d});for(const _0x369388 of _0x3e7455)this['_addSuggestionMarker'](_0x2a07b8,_0x45b4e3,_0x1f9def,_0x369388,u['getMultiRangeId']());return _0x389adb;}['markInlineFormat'](_0x11c2b3,_0x3f5f3d,_0x3361f1=null,_0x3010fe={}){if(_0x3361f1=_0x3361f1||Jt(_0x3f5f3d),_0x11c2b3['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x5bb58b=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3361f1,'accept');return this['forceDefaultExecution'](()=>_0x5bb58b([_0x11c2b3],_0x3f5f3d,_0x3010fe)),null;}const _0x2bf856=this['editor']['plugins']['get']('Users')['me'],_0x532ec0=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x419caa,meta:_0x5cf953}of this['_findSuggestions'](_0x11c2b3,'insertion'))_0x5cf953['isOwn']&&!_0x5cf953['isInsideObject']&&_0x532ec0['push'](..._0x419caa['getRanges']());}const _0x1a6043=function(_0x112cb7,_0x32618b){const _0x282452=[];for(const _0x684208 of _0x32618b){const _0x59ffdb=_0x112cb7['getIntersection'](_0x684208);_0x59ffdb&&_0x282452['push'](_0x59ffdb);}return _0x282452;}(_0x11c2b3,_0x532ec0),_0x5d6905=function(_0x5b5dae,_0x2654a6){const _0x95abe4=[_0x5b5dae];for(const _0x4a071c of _0x2654a6){let _0x5dc446=0x0;for(;_0x5dc446<_0x95abe4['length'];){const _0x12a206=_0x95abe4[_0x5dc446]['getDifference'](_0x4a071c);_0x95abe4['splice'](_0x5dc446,0x1,..._0x12a206),_0x5dc446+=_0x12a206['length'];}}return _0x95abe4;}(_0x11c2b3,_0x532ec0);_0x1a6043['length']&&this['_model']['change'](()=>{for(const _0x21552d of _0x1a6043){const _0x3689ef=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3361f1,'accept');this['forceDefaultExecution'](()=>_0x3689ef([_0x21552d],_0x3f5f3d,_0x3010fe));}});for(const _0x16d445 of _0x5d6905){let _0x3452c0=null,_0x3ab1a4=_0x16d445['start'],_0x644687=_0x16d445['end'];for(const {suggestion:_0x8f16bb,meta:_0x5a995b}of this['_findSuggestions'](_0x16d445,'formatInline')){if(!_0x5a995b['isOwn'])continue;if(_0x8f16bb['subType']!=_0x3361f1)continue;if(!Qt(_0x8f16bb,_0x3010fe))continue;const _0x4bcf0d=_0x8f16bb['getFirstRange']();if(_0x4bcf0d['containsRange'](_0x16d445,!0x0))return null;_0x3ab1a4=_0x3ab1a4['isBefore'](_0x4bcf0d['start'])?_0x3ab1a4:_0x4bcf0d['start'],_0x644687=_0x644687['isAfter'](_0x4bcf0d['end'])?_0x644687:_0x4bcf0d['end'],_0x3452c0?_0x4bcf0d['start']['isBefore'](_0x3452c0['getFirstRange']()['start'])?(_0x3452c0['removeMarkers'](),_0x3452c0=_0x8f16bb):_0x8f16bb['removeMarkers']():_0x3452c0=_0x8f16bb;}const _0x10125f=this['_model']['createRange'](_0x3ab1a4,_0x644687);if(_0x3452c0)this['_setSuggestionRange'](_0x3452c0,_0x10125f);else{const _0x437595=_0x3cfc9c(),_0x29dfe1=_0x2bf856['id'];this['_setSuggestionData']({'id':_0x437595,'type':'formatInline:'+_0x3361f1,'data':_0x3f5f3d,'createdAt':new Date(),'authorId':_0x29dfe1,'attributes':_0x3010fe}),this['_addSuggestionMarker']('formatInline:'+_0x3361f1,_0x437595,_0x29dfe1,_0x10125f);}}return null;}['markBlockFormat'](_0x59a68a,_0x3c7d8e,_0x16d571=[],_0xb64d13=null,_0x33a971={}){_0x3c7d8e['formatGroupId']||(_0x3c7d8e['formatGroupId']=_0x3c7d8e['commandName']),_0x3c7d8e['multipleBlocks']=_0x59a68a['is']('range'),_0xb64d13=_0xb64d13||Jt(_0x3c7d8e);const _0x483e15=_0x16d571['map'](_0x5ddd78=>zt(_0x5ddd78,this['_model'])),_0x3bc2cf=_0x59a68a['is']('range')?_0x59a68a:zt(_0x59a68a,this['_model']);if('never'===this['_trackFormatChanges']){const _0x1c19fc=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xb64d13,'accept');return this['forceDefaultExecution'](()=>_0x1c19fc([_0x3bc2cf],_0x3c7d8e,_0x33a971)),null;}_0x483e15['push'](_0x3bc2cf);let _0x4f5780=!0x0;for(const _0x4a9057 of _0x483e15)if(!this['_rangeIsInLocalUserInsertion'](_0x4a9057)){_0x4f5780=!0x1;break;}if(_0x4f5780&&'always'!==this['_trackFormatChanges']){const _0x4f74ce=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xb64d13,'accept');return this['forceDefaultExecution'](()=>_0x4f74ce([_0x3bc2cf],_0x3c7d8e,_0x33a971)),null;}let _0x32e273=null,_0x167dc0=_0x3bc2cf['start'],_0x4f8efd=_0x3bc2cf['end'];for(const {suggestion:_0xd5ba31,meta:_0x2ab78a}of this['_findSuggestions'](_0x3bc2cf,'formatBlock')){if(!_0x2ab78a['isOwn'])continue;if(_0x2ab78a['isNextTo']||_0x2ab78a['containsRangeInObject']||_0x2ab78a['isInsideObject'])continue;if(_0xd5ba31['data']['formatGroupId']!=_0x3c7d8e['formatGroupId'])continue;if(!Qt(_0xd5ba31,_0x33a971))continue;const _0x2a18a5=_0xd5ba31['getFirstRange']();if(_0xd5ba31['subType']==_0xb64d13){if(_0x2a18a5['containsRange'](_0x3bc2cf,!0x0))return null;_0x167dc0=_0x167dc0['isBefore'](_0x2a18a5['start'])?_0x167dc0:_0x2a18a5['start'],_0x4f8efd=_0x4f8efd['isAfter'](_0x2a18a5['end'])?_0x4f8efd:_0x2a18a5['end'],_0x32e273?_0x2a18a5['start']['isBefore'](_0x32e273['getFirstRange']()['start'])?(_0x32e273['removeMarkers'](),_0x32e273=_0xd5ba31):_0xd5ba31['removeMarkers']():_0x32e273=_0xd5ba31;}else{const _0x592029=_0x3bc2cf['getIntersection'](_0x2a18a5);this['_cutOutSuggestionMarker'](_0xd5ba31,_0x592029);}}const _0x4d117e=this['editor']['plugins']['get']('Users')['me'],_0x118f54=_0x3cfc9c(),_0x551652=_0x4d117e['id'];if(_0x32e273)return this['_setSuggestionRange'](_0x32e273,this['_model']['createRange'](_0x167dc0,_0x4f8efd)),_0x32e273;{const _0x220885=this['_setSuggestionData']({'id':_0x118f54,'type':'formatBlock:'+_0xb64d13,'data':_0x3c7d8e,'createdAt':new Date(),'authorId':_0x551652,'attributes':_0x33a971});return this['_addSuggestionMarker']('formatBlock:'+_0xb64d13,_0x118f54,_0x551652,this['_model']['createRange'](_0x167dc0,_0x4f8efd)),_0x220885;}}['markMultiRangeBlockFormat'](_0x46eea9,_0x15b098,_0x14bce9=[],_0x16aaee=null,_0x5a328f={}){_0x15b098['formatGroupId']||(_0x15b098['formatGroupId']=_0x15b098['commandName']);const _0x5823c2=_0x46eea9[0x0];_0x15b098['multipleBlocks']=_0x5823c2['is']('range'),_0x16aaee=_0x16aaee||Jt(_0x15b098);const _0x3139a0=_0x14bce9['map'](_0x43fd7d=>zt(_0x43fd7d,this['_model'])),_0x525931=_0x5823c2['is']('range')?_0x46eea9:_0x46eea9['map'](_0x50536d=>zt(_0x50536d,this['_model']));if('never'===this['_trackFormatChanges']){const _0x2ab8f5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x16aaee,'accept');return this['forceDefaultExecution'](()=>_0x2ab8f5(_0x525931,_0x15b098,_0x5a328f)),null;}_0x3139a0['push'](..._0x525931);let _0x1d8803=!0x0;for(const _0x3e0164 of _0x3139a0)if(!this['_rangeIsInLocalUserInsertion'](_0x3e0164)){_0x1d8803=!0x1;break;}if(_0x1d8803&&'always'!==this['_trackFormatChanges']){const _0x4cf3e6=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x16aaee,'accept');return this['forceDefaultExecution'](()=>_0x4cf3e6(_0x525931,_0x15b098,_0x5a328f)),null;}const _0x22b974=this['editor']['plugins']['get']('Users')['me'];for(const _0x13a1e2 of this['getSuggestions']()){if(_0x13a1e2['author']['id']!=_0x22b974['id'])continue;if('formatBlock'!=_0x13a1e2['type']||_0x13a1e2['data']['formatGroupId']!=_0x15b098['formatGroupId'])continue;if(!Qt(_0x13a1e2,_0x5a328f))continue;const _0x2c4236=_0x13a1e2['subType']==_0x16aaee;for(let _0x18cef=0x0;_0x18cef<_0x525931['length'];_0x18cef++){const _0x284803=_0x525931[_0x18cef];for(const _0x15dbeb of _0x13a1e2['getMarkers']()){const _0x20ad4c=_0x15dbeb['getRange']();if(_0x284803['isEqual'](_0x20ad4c)){_0x2c4236?(_0x525931['splice'](_0x18cef,0x1),_0x18cef--):_0x13a1e2['removeMarker'](_0x15dbeb['name']);break;}}}}if(0x0==_0x525931['length'])return null;const _0x5f5c2c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x16aaee,'join');for(const _0x13074b of this['getSuggestions']())if(_0x13074b['author']['id']==_0x22b974['id']&&'formatBlock'==_0x13074b['type']&&_0x13074b['data']['formatGroupId']==_0x15b098['formatGroupId']&&_0x13074b['subType']==_0x16aaee&&Qt(_0x13074b,_0x5a328f)&&(_0x5f5c2c(_0x13074b['getRanges'](),_0x525931)||_0x5f5c2c(_0x525931,_0x13074b['getRanges']()))){for(const _0x3ea43b of _0x525931)_0x13074b['addRange'](_0x3ea43b);return _0x13074b;}const _0x3d7538=_0x3cfc9c(),_0x5644b9=_0x22b974['id'],_0x205a0c='formatBlock:'+_0x16aaee,_0x2b6dd7=this['_setSuggestionData']({'id':_0x3d7538,'type':_0x205a0c,'data':_0x15b098,'createdAt':new Date(),'authorId':_0x5644b9,'attributes':_0x5a328f});for(const _0x5134ff of _0x525931)this['_addSuggestionMarker'](_0x205a0c,_0x3d7538,_0x5644b9,_0x5134ff,u['getMultiRangeId']());return _0x2b6dd7;}['markDeletion'](_0xae83c3,_0x5bcc71=null,_0x2908cd={}){if(_0xae83c3['isCollapsed'])return null;const _0x274a74=this['editor']['plugins']['get']('Users')['me'],_0xcf14e9=new _0x1720ab(_0xae83c3['start'],_0xae83c3['end']);for(const {suggestion:_0x5aea4b,meta:_0x260506}of this['_findSuggestions'](_0xcf14e9,'insertion'))if(_0x260506['isOwn']&&!_0x260506['isNextTo']){if(_0x5aea4b['isMultiRange']){const _0x4e93fc=_0x5aea4b['getRanges']()['filter'](_0xa01896=>'$graveyard'!=_0xa01896['root']['rootName']);_0x4e93fc['every'](_0x52f426=>_0xcf14e9['containsRange'](_0x52f426,!0x0))&&_0x5aea4b['discard']();if(_0x4e93fc['some'](_0x4d21fd=>_0x4d21fd['containsRange'](_0xcf14e9,!0x0))){const _0x1b7684=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5bcc71,'accept');return this['forceDefaultExecution'](()=>_0x1b7684([_0xcf14e9],null,_0x2908cd)),null;}}else{const _0x28a46c=_0xcf14e9['getIntersection'](_0x5aea4b['getFirstRange']());null!==_0x28a46c&&_0x5aea4b['_onDiscard']([_0x28a46c],null,_0x2908cd);}}if(_0xcf14e9['detach'](),_0xcf14e9['isCollapsed']||'$graveyard'==_0xcf14e9['root']['rootName'])return null;let _0x5afc0d=null,_0x433aa9=_0xcf14e9['start'],_0x5e0431=_0xcf14e9['end'];const _0x6ae910=this['_findSuggestions'](_0xcf14e9,'deletion');for(const {suggestion:_0x2fb42d,meta:_0x10745e}of _0x6ae910){const _0x5e89da=this['_model']['createRange'](_0x433aa9,_0x5e0431);if(_0x10745e['isOwn']&&(this['_mergeNestedSuggestions']||!_0x10745e['containsRangeInObject']&&!_0x10745e['isInsideObject'])){if(_0x2fb42d['isMultiRange']){if(!Qt(_0x2fb42d,_0x2908cd))continue;let _0x526072=!0x0;for(const _0x3a1129 of _0x2fb42d['getRanges']()){if(_0x3a1129['containsRange'](_0x5e89da,!0x0))return _0x2fb42d;_0x5e89da['containsRange'](_0x3a1129)||(_0x526072=!0x1);}_0x526072&&_0x2fb42d['discard']();}else{const _0x465444=_0x2fb42d['getFirstRange']();if(_0x465444['containsRange'](_0x5e89da,!0x0))return _0x2fb42d;if(!Qt(_0x2fb42d,_0x2908cd)){_0x5e89da['containsRange'](_0x465444)?_0x2fb42d['removeMarkers']():_0x465444['containsPosition'](_0x433aa9)?_0x433aa9=_0x465444['end']:_0x465444['containsPosition'](_0x5e0431)&&(_0x5e0431=_0x465444['start']);continue;}_0x433aa9=_0x433aa9['isBefore'](_0x465444['start'])?_0x433aa9:_0x465444['start'],_0x5e0431=_0x5e0431['isAfter'](_0x465444['end'])?_0x5e0431:_0x465444['end'],_0x2908cd=Object['assign']({},_0x2fb42d['attributes']),_0x5afc0d?_0x465444['start']['isBefore'](_0x5afc0d['getFirstRange']()['start'])?(_0x5afc0d['removeMarkers'](),_0x5afc0d=_0x2fb42d):_0x2fb42d['removeMarkers']():_0x5afc0d=_0x2fb42d;}}}if(_0x5afc0d)return this['_setSuggestionRange'](_0x5afc0d,this['_model']['createRange'](_0x433aa9,_0x5e0431)),_0x5afc0d;{const _0x4ec880=_0x3cfc9c(),_0x23c1d1=this['_model']['createRange'](_0x433aa9,_0x5e0431),_0x52da20=_0x274a74['id'],_0x2caf75=_0x5bcc71?'deletion:'+_0x5bcc71:'deletion',_0x134652=this['_setSuggestionData']({'id':_0x4ec880,'type':_0x2caf75,'createdAt':new Date(),'authorId':_0x52da20,'attributes':_0x2908cd});return this['_addSuggestionMarker'](_0x2caf75,_0x4ec880,_0x52da20,_0x23c1d1),_0x134652;}}['markMultiRangeDeletion'](_0x477c42,_0x4cd2e0='multi',_0x172904={}){const _0x4b52d1=this['editor']['plugins']['get']('Users')['me'],_0x41e8bf=_0x477c42['map'](_0x4cf4fd=>new _0x1720ab(_0x4cf4fd['start'],_0x4cf4fd['end'])),_0x3efc0c=new Set();for(const {suggestion:_0x795330,meta:_0x1e8ba1}of this['_findSuggestions'](_0x41e8bf,'insertion'))_0x1e8ba1['isOwn']&&!_0x1e8ba1['isNextTo']&&_0x3efc0c['add'](_0x795330);for(const _0x1ce67c of _0x3efc0c)if(_0x1ce67c['isMultiRange']){const _0x11ddf7=_0x1ce67c['getRanges']();(!_0x1ce67c['attributes']||!_0x1ce67c['attributes']['skipNestingCheck'])&&(_0x11ddf7['every'](_0x3aff33=>_0x41e8bf['some'](_0x187d84=>_0x187d84['containsRange'](_0x3aff33,!0x0)))&&_0x1ce67c['discard']());if(_0x41e8bf['every'](_0x1731c3=>_0x11ddf7['some'](_0x518b7d=>_0x518b7d['containsRange'](_0x1731c3,!0x0)))){const _0x599ec0=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4cd2e0,'accept');return this['forceDefaultExecution'](()=>_0x599ec0(_0x477c42,null,_0x172904)),null;}}else{const _0xb82b17=_0x1ce67c['getFirstRange']();_0x41e8bf['some'](_0x1b17f0=>_0x1b17f0['containsRange'](_0xb82b17,!0x0))&&_0x1ce67c['discard']();if(_0x41e8bf['every'](_0x7cd95f=>_0xb82b17['containsRange'](_0x7cd95f,!0x0))){const _0x4cfd4d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4cd2e0,'accept');return this['forceDefaultExecution'](()=>_0x4cfd4d(_0x41e8bf,null,_0x172904)),null;}}const _0x40a91e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4cd2e0,'join');let _0x55909e=null;for(const _0x3adf8a of this['getSuggestions']())if(_0x3adf8a['author']['id']==_0x4b52d1['id']&&_0x3adf8a['isInContent']&&'deletion'==_0x3adf8a['type']&&_0x3adf8a['subType']==_0x4cd2e0&&Qt(_0x3adf8a,_0x172904)&&(_0x40a91e(_0x3adf8a['getRanges'](),_0x41e8bf)||_0x40a91e(_0x41e8bf,_0x3adf8a['getRanges']()))){if(_0x55909e){if(_0x3adf8a['commentThread']&&_0x3adf8a['commentThread']['length'])continue;for(const _0x3bb27d of _0x3adf8a['getRanges']())_0x55909e['isIntersectingWithRange'](_0x3bb27d)||_0x55909e['addRange'](_0x3bb27d);_0x3adf8a['removeMarkers']();}else{_0x55909e=_0x3adf8a;for(const _0x589b27 of _0x41e8bf)_0x3adf8a['isIntersectingWithRange'](_0x589b27)||_0x3adf8a['addRange'](_0x589b27);}}if(_0x55909e)return _0x55909e;_0x3efc0c['clear']();for(const {suggestion:_0x1b309d,meta:_0x3a0baa}of this['_findSuggestions'](_0x41e8bf,'deletion'))_0x3a0baa['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3a0baa['containsRangeInObject']&&!_0x3a0baa['isInsideObject'])&&Qt(_0x1b309d,_0x172904)&&_0x3efc0c['add'](_0x1b309d);for(const _0x3ee3cd of _0x3efc0c){const _0xb28555=_0x3ee3cd['getRanges']();if(!_0x172904||!_0x172904['skipNestingCheck']){if(_0x41e8bf['every'](_0x562f44=>_0xb28555['some'](_0x4d3f87=>_0x4d3f87['containsRange'](_0x562f44,!0x0))))return _0x3ee3cd;}(!_0x3ee3cd['attributes']||!_0x3ee3cd['attributes']['skipNestingCheck'])&&(_0xb28555['every'](_0xa151f1=>_0x41e8bf['some'](_0x1404bb=>_0x1404bb['containsRange'](_0xa151f1,!0x0)))&&_0x3ee3cd['discard']());}const _0x4b8648=_0x3cfc9c(),_0x212307=_0x4b52d1['id'],_0x2731d4='deletion:'+_0x4cd2e0,_0x338194=this['_setSuggestionData']({'id':_0x4b8648,'type':_0x2731d4,'createdAt':new Date(),'authorId':_0x212307,'attributes':_0x172904});for(const _0x57b90d of _0x41e8bf)_0x57b90d['detach'](),_0x57b90d['isCollapsed']||'$graveyard'==_0x57b90d['root']['rootName']||this['_addSuggestionMarker'](_0x2731d4,_0x4b8648,_0x212307,_0x57b90d,u['getMultiRangeId']());return _0x338194;}['markAttributeChange'](_0x7b10fe,_0x3b6150,_0x2c67c1,_0xe88ab1,_0x1a491a){if(_0x7b10fe['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x51a701=this['editor']['plugins']['get']('Users')['me']['id'],_0x46e682=Array['from'](this['_suggestions']['values']())['filter'](_0x49c1fc=>'attribute'==_0x49c1fc['type']&&_0x49c1fc['data']['key']==_0x3b6150&&_0x49c1fc['isIntersectingWithRange'](_0x7b10fe));if('default'===this['_trackFormatChanges']){const _0x1eec4b=this['_findSuggestions'](_0x7b10fe,'insertion')['filter'](({meta:_0x30bc6b})=>_0x30bc6b['isOwn']&&!_0x30bc6b['isInsideObject']&&!_0x30bc6b['isNextTo'])['map'](({suggestion:_0x755ea5})=>_0x755ea5);_0x46e682['unshift'](..._0x1eec4b);}const _0x26279e=new Map([[_0x7b10fe,_0x2c67c1]]);for(const _0x43a5cd of _0x46e682){const _0x3f0928='attribute'==_0x43a5cd['type']?_0x43a5cd['data']['oldValue']:void 0x0,_0x36af18=_0x43a5cd['getFirstRange'](),_0x353377=Array['from'](_0x26279e['keys']())['find'](_0x1e1287=>_0x1e1287['isIntersecting'](_0x36af18));if(!_0x353377)continue;const _0x2e544a=_0x353377['getDifference'](_0x36af18);this['_isBlockAttribute'](_0x3b6150)&&'insertion'==_0x43a5cd['type']&&0x0!=_0x2e544a['length']||(_0x26279e['delete'](_0x353377),_0x2e544a['forEach'](_0x370baa=>{_0x26279e['set'](_0x370baa,_0x2c67c1);}),'insertion'!=_0x43a5cd['type']&&_0x3f0928!=_0xe88ab1&&_0x26279e['set'](_0x353377['getIntersection'](_0x36af18),_0x3f0928));}const _0xc73392=[];for(const [_0x4d1693,_0x2424a3]of _0x26279e){const _0x382df5=_0x3cfc9c(),_0x47bf63={'key':_0x3b6150,'oldValue':_0x2424a3,'newValue':_0xe88ab1};_0x3b6150['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':_0x3b6150});const _0x40d74e=('attribute:'+(_0x3b6150+'|'+Jt({'newValue':_0xe88ab1})))['substring'](0x0,0x3c),_0x48c06c=this['_setSuggestionData']({'id':_0x382df5,'type':_0x40d74e,'data':_0x47bf63,'createdAt':new Date(),'authorId':_0x51a701,'attributes':_0x1a491a});_0xc73392['push'](_0x48c06c),this['_addSuggestionMarker'](_0x40d74e,_0x382df5,_0x51a701,_0x4d1693);}return _0xc73392;}['enableDefaultAttributesIntegration'](_0x5c3b7d){this['enableCommand'](_0x5c3b7d,(_0x3fe270,..._0x8871af)=>{this['_recordAttributeChanges'](()=>{_0x3fe270(..._0x8871af);});});}['registerBlockAttribute'](_0x4b3a7e){this['_blockAttributeKeys']['add'](_0x4b3a7e);}['registerInlineAttribute'](_0x12fe9c){this['_inlineAttributeKeys']['add'](_0x12fe9c);}['_getAttributeKey'](_0x3213c3){return'attribute'==_0x3213c3['type']?_0x3213c3['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x31322e,_0x31aa97){const _0x260335=_0x31322e['getFirstMarker']();this['_model']['change'](_0x1a91ea=>{_0x1a91ea['updateMarker'](_0x260335,{'range':_0x31aa97});});}['_addThreadToSuggestion'](_0x5db9a0){const _0x3f9206=_0x5db9a0['id'],_0xf82539=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x3f9206)||this['_commentsRepository']['addCommentThread']({'channelId':_0xf82539,'threadId':_0x3f9206,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x36e6f0=this['_commentsRepository']['getCommentThread'](_0x3f9206);_0x36e6f0['unbind']('isRemovable'),_0x36e6f0['isRemovable']=!0x1,_0x5db9a0['commentThread']=_0x36e6f0;}['_checkSuggestionCorrectness'](_0x3b83b5,_0xf5d8af,_0x10aa59,_0x1789a2){if(_0x3b83b5['type']!=_0xf5d8af||_0x3b83b5['subType']!=_0x10aa59||_0x3b83b5['creator']['id']!=_0x1789a2)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x3cbe3d('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x3a75c3,_0x5354b5){const _0xc1f699=_0x3a75c3['getFirstRange']();if(_0x5354b5['isEqual'](_0xc1f699))_0x3a75c3['removeMarkers']();else{if(_0xc1f699['containsRange'](_0x5354b5)){const _0x187a50=this['_model']['createPositionAt'](_0x5354b5['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3a75c3,this['_model']['createRange'](_0xc1f699['start'],_0x187a50));const _0x41587a=_0x3cfc9c(),_0x565a24=_0x3a75c3['creator']['id'],_0x127bbb=_0x3a75c3['type']+':'+_0x3a75c3['subType'];this['_setSuggestionData']({'id':_0x41587a,'type':_0x127bbb,'createdAt':new Date(),'authorId':_0x565a24,'data':_0x3a75c3['data'],'attributes':_0x3a75c3['attributes']});const _0x4009df=this['_model']['createPositionAt'](_0x5354b5['end']['parent'],'after'),_0x2eae48=this['_model']['createRange'](_0x4009df,_0xc1f699['end']);this['_addSuggestionMarker'](_0x127bbb,_0x41587a,_0x565a24,_0x2eae48);}else{if(_0xc1f699['containsPosition'](_0x5354b5['start'])){const _0x5cdca9=this['_model']['createPositionAt'](_0x5354b5['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3a75c3,this['_model']['createRange'](_0xc1f699['start'],_0x5cdca9));}else{const _0x5598fd=this['_model']['createPositionAt'](_0x5354b5['end']['parent'],'after');this['_setSuggestionRange'](_0x3a75c3,this['_model']['createRange'](_0x5598fd,_0xc1f699['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x34d393){for(const {suggestion:_0x4e4f9b,meta:_0x54376c}of this['_findSuggestions'](_0x34d393,'insertion')){if(!_0x54376c['isOwn'])continue;const _0x3ab7cd=_0x4e4f9b['getRanges']();for(const _0x4dea19 of _0x3ab7cd)if(!_0x34d393['getDifference'](_0x4dea19)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x3ea95d){const _0x252a76=this['editor']['plugins']['get']('Users')['getUser'](_0x3ea95d);if(!_0x252a76)throw new _0x3cbe3d('track-changes-user-not-found',this);return _0x252a76;}['_getExternalAuthor'](_0x3ef148){const _0x935273=this['editor']['plugins']['get']('Users'),_0x3c799a=_0x4d19eb('external:'+_0x3ef148),_0x1408b1=_0x935273['getUser'](_0x3c799a);return _0x1408b1||_0x935273['addUser']({'id':_0x3c799a,'name':_0x3ef148});}['_createSuggestion'](_0x107c87,_0x303cec,_0x39ae7f,_0x23005b,_0x3c2955){const _0x3c5556=this['_getAuthorFromId'](_0x23005b),_0xbbc71b=this['_suggestionFactory']['buildSuggestion'](_0x107c87,_0x303cec,_0x39ae7f,_0x3c5556,_0x3c2955,_0x305266=>{this['_updateSuggestionData'](_0x39ae7f,{'attributes':_0x305266});const _0x39c791=this['getSuggestion'](_0x39ae7f);this['_joinWithAdjacentSuggestions'](new Set([_0x39c791])),this['_refreshSuggestionsChain'](new Set([_0x39c791]));});return this['listenTo'](_0xbbc71b,'accept',()=>{this['_updateSuggestionData'](_0x39ae7f,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0xbbc71b,'discard',()=>{this['_updateSuggestionData'](_0x39ae7f,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x39ae7f,_0xbbc71b),this['_suggestionState']['set'](_0xbbc71b,'notReady'),_0xbbc71b;}['_splitMarkerName'](_0xcb20c2){const _0x364b49=_0xcb20c2['split'](':');return{'group':_0x364b49[0x0],'type':_0x364b49[0x1],'subType':_0x364b49['length']>=0x5?_0x364b49[0x2]:null,'id':_0x364b49['length']<0x5?_0x364b49[0x2]:_0x364b49[0x3],'authorId':_0x364b49['length']<0x5?_0x364b49[0x3]:_0x364b49[0x4],'markerCount':0x6==_0x364b49['length']?_0x364b49[0x5]:null};}['_breakSuggestionMarker'](_0x31ee03,_0x423c5b,_0x5ec2b2){const _0x574db9=_0x31ee03['getFirstRange'](),_0x13385d=_0x574db9['start'],_0x29b15c=_0x574db9['end'];this['_setSuggestionRange'](_0x31ee03,this['_model']['createRange'](_0x13385d,_0x423c5b));const _0x5ddd1e=_0x3cfc9c(),_0x2c6dd2=_0x31ee03['creator']['id'],_0x1b1ac0=_0x31ee03['type']+(_0x31ee03['subType']?':'+_0x31ee03['subType']:'');this['_setSuggestionData']({'id':_0x5ddd1e,'type':_0x1b1ac0,'createdAt':new Date(),'authorId':_0x2c6dd2,'originalSuggestionId':_0x31ee03['id'],'attributes':_0x31ee03['attributes'],'data':_0x31ee03['data']});const _0xbb8b86=this['_getAttributeKey'](_0x31ee03);('formatBlock'==_0x31ee03['type']||_0xbb8b86&&this['_isBlockAttribute'](_0xbb8b86))&&(_0x5ec2b2=this['_model']['createPositionBefore'](_0x5ec2b2['parent'])),this['_addSuggestionMarker'](_0x1b1ac0,_0x5ddd1e,_0x2c6dd2,this['_model']['createRange'](_0x5ec2b2,_0x29b15c));}['_findSuggestions'](_0x31f930,_0x27946f=null){const _0x328c0f=[],_0x23971d=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x31f930)||(_0x31f930=[_0x31f930]);for(const _0x45ab21 of this['getSuggestions']()){if(!_0x45ab21['isInContent'])continue;if(_0x27946f&&_0x45ab21['type']!=_0x27946f)continue;let _0x15e001=!0x1;for(const _0x249e72 of _0x45ab21['getRanges']()){for(const _0x35c26f of _0x31f930){const _0x2c7484=_0x35c26f['start']['isEqual'](_0x249e72['end'])||_0x35c26f['end']['isEqual'](_0x249e72['start']);if(_0x2c7484||_0x35c26f['getIntersection'](_0x249e72)){const _0x4c2af8=_0x35c26f['containsRange'](_0x249e72)&&Gt(this['_model']['schema'],_0x249e72['start'],_0x35c26f),_0x3366ba=_0x249e72['containsRange'](_0x35c26f)&&Gt(this['_model']['schema'],_0x35c26f['start'],_0x249e72);_0x328c0f['push']({'suggestion':_0x45ab21,'meta':{'isOwn':_0x23971d==_0x45ab21['author'],'isNextTo':_0x2c7484,'isInsideObject':_0x4c2af8,'containsRangeInObject':_0x3366ba}}),_0x15e001=!0x0;break;}}if(_0x15e001)break;}}return _0x328c0f;}['_addSuggestionMarker'](_0x5d802f,_0x4a3086,_0x383b0f,_0x52cb07,_0x38fe52){this['_model']['change'](_0x5c879e=>{let _0xea2de0='suggestion:'+_0x5d802f+':'+_0x4a3086+':'+_0x383b0f;_0x38fe52&&(_0xea2de0=_0xea2de0+':'+_0x38fe52),_0x5c879e['addMarker'](_0xea2de0,{'range':_0x52cb07,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x1e5769){const _0x497028=_0x1e5769['previous'],_0x32095e=_0x1e5769['next'];_0x1e5769['previous']=null,_0x1e5769['next']=null,null!=_0x497028&&_0x497028['next']==_0x1e5769&&(_0x497028['next']=_0x32095e),null!=_0x32095e&&_0x32095e['previous']==_0x1e5769&&(_0x32095e['previous']=_0x497028),'ready'==this['_suggestionState']['get'](_0x1e5769)&&(this['_suggestionState']['set'](_0x1e5769,'removed'),this['fire']('suggestionUnloaded',_0x1e5769,_0x497028,_0x32095e));}['_setSuggestionData'](_0x322a1a){const _0x2ab23=_0x322a1a['id'],_0x2672cf=this['addSuggestionData'](_0x322a1a);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x36cfd6=this['editor']['plugins']['get']('PendingActions'),_0x3cbbcd=_0x2672cf['hasComments'],_0x9b4698=_0x2672cf['subType']?_0x2672cf['type']+':'+_0x2672cf['subType']:_0x2672cf['type'],_0x4abfee=this['editor']['locale'],_0x1feaa0=_0x36cfd6['add'](o(_0x4abfee,'PENDING_ACTION_SUGGESTION')),_0x32a710={'id':_0x2ab23,'type':_0x9b4698,'hasComments':_0x3cbbcd,'data':_0x322a1a['data']||null,'originalSuggestionId':_0x322a1a['originalSuggestionId']||null,'attributes':_0x2672cf['attributes']};this['_adapter']['addSuggestion'](_0x32a710)['then'](_0x260885=>{_0x2672cf['_saved']=!0x0,_0x36cfd6['remove'](_0x1feaa0),_0x260885&&_0x260885['createdAt']&&(this['_suggestions']['get'](_0x2ab23)['createdAt']=_0x260885['createdAt']);})['catch'](_0x2df423=>{throw _0x4a2d7f('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x2672cf['discard']();}),_0x2672cf['stopListening'](),this['_suggestions']['delete'](_0x2672cf['id']),this['_suggestionState']['delete'](_0x2672cf),_0x2df423;});}return _0x2672cf;}['_isBlockAttribute'](_0x2d94c9){return this['_blockAttributeKeys']['has'](_0x2d94c9);}['_updateSuggestionData'](_0x2f3173,_0x5a3a2b){const _0x3acb33=this['editor']['plugins']['get']('PendingActions'),_0x3424ad=this['getSuggestion'](_0x2f3173);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x3424ad['_saved']){const _0x1dab3e=_0x3acb33['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x2f3173,_0x5a3a2b)['then'](()=>{_0x3acb33['remove'](_0x1dab3e);});}else _0x3424ad['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x2f3173,_0x5a3a2b);});}}['_getSuggestionData'](_0x29f55b){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x3cbe3d('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x29f55b);}['_handleNewSuggestionMarker'](_0x5cfa08){const {id:_0x5ef8aa,type:_0x173352,subType:_0x404c47,authorId:_0x2eac8d}=this['_splitMarkerName'](_0x5cfa08),_0x2fa57e=this['_suggestions']['get'](_0x5ef8aa)||this['_createSuggestion'](_0x173352,_0x404c47,_0x5ef8aa,_0x2eac8d,{});switch(this['_checkSuggestionCorrectness'](_0x2fa57e,_0x173352,_0x404c47,_0x2eac8d),this['_suggestionState']['get'](_0x2fa57e)){case'notReady':this['_getSuggestionData'](_0x5ef8aa)['then'](_0xea00f0=>{let _0x4d5459=Promise['resolve']();_0xea00f0['hasComments']&&(_0x4d5459=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x5ef8aa})),_0x4d5459['then'](()=>{this['addSuggestionData'](_0xea00f0)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x2fa57e,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x5ef8aa,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x2fa57e,'ready'),this['fire']('suggestionLoaded',_0x2fa57e);break;case'ready':this['fire']('suggestionChanged',_0x2fa57e);}return _0x2fa57e['addMarkerName'](_0x5cfa08),_0x2fa57e;}['_refreshSuggestionsChain'](_0x17991c){const _0x12bac8=Array['from'](_0x17991c),_0x479c96=_0x12bac8['filter'](_0x4b1950=>'attribute'==_0x4b1950['type']);this['_refreshAttributeSuggestionsChain'](_0x479c96);const _0x2c6d73=_0x12bac8['filter'](_0x479af2=>!_0x479af2['isMultiRange']&&'attribute'!=_0x479af2['type']),_0x53b9de=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x28e038=>!_0x28e038['isMultiRange']&&'attribute'!=_0x28e038['type']),_0x3803d8=_0x53b9de['filter'](_0x131fe6=>!_0x17991c['has'](_0x131fe6)),_0x407031=new Map(_0x53b9de['map'](_0x137164=>[_0x137164,this['_suggestionFactory']['getSuggestionCallback'](_0x137164['type'],_0x137164['subType'],'chain')])),_0x31e97a=new Map(_0x53b9de['map'](_0x4b0c6b=>[_0x4b0c6b,_0x4b0c6b['getFirstRange']()])),_0x37cb78=new Set(),_0x4c9726=new Set();for(let _0x3531a0=0x0;_0x3531a0<_0x2c6d73['length'];_0x3531a0++)_0x47cde5(_0x2c6d73[_0x3531a0],_0x2c6d73,_0x3531a0+0x1);for(let _0x3266eb=0x0;_0x3266eb<_0x2c6d73['length'];_0x3266eb++)_0x47cde5(_0x2c6d73[_0x3266eb],_0x3803d8,0x0);const _0x375890=new Set();for(let _0x13ffb9=0x0;_0x13ffb9<_0x2c6d73['length'];_0x13ffb9++){const _0x230ef4=_0x2c6d73[_0x13ffb9];!_0x4c9726['has'](_0x230ef4)&&_0x230ef4['previous']&&(_0x375890['add'](_0x230ef4['previous']),_0x230ef4['previous']['next']===_0x230ef4&&(_0x230ef4['previous']['next']=null),_0x230ef4['previous']=null),!_0x37cb78['has'](_0x230ef4)&&_0x230ef4['next']&&(_0x375890['add'](_0x230ef4['next']),_0x230ef4['next']['previous']===_0x230ef4&&(_0x230ef4['next']['previous']=null),_0x230ef4['next']=null);}function _0x47cde5(_0x28c461,_0x106077,_0x16c705){for(let _0x4239bb=_0x16c705;_0x4239bb<_0x106077['length'];_0x4239bb++){const _0x28eed2=_0x2f5d04(_0x28c461,_0x106077[_0x4239bb]);_0x28eed2&&(_0x28eed2[0x0]['next']=_0x28eed2[0x1],_0x28eed2[0x1]['previous']=_0x28eed2[0x0],_0x37cb78['add'](_0x28eed2[0x0]),_0x4c9726['add'](_0x28eed2[0x1]));}}function _0x2f5d04(_0x4b4846,_0x2e2960){if(_0x4b4846['author']['id']!==_0x2e2960['author']['id'])return null;const _0x8ed438=_0x407031['get'](_0x4b4846)(_0x4b4846,_0x2e2960,_0x31e97a['get'](_0x4b4846),_0x31e97a['get'](_0x2e2960));if(!_0x8ed438)return null;return _0x407031['get'](_0x2e2960)(_0x4b4846,_0x2e2960,_0x31e97a['get'](_0x4b4846),_0x31e97a['get'](_0x2e2960))?_0x8ed438[0x1]['commentThread']&&_0x8ed438[0x1]['commentThread']['length']?null:_0x8ed438:null;}_0x375890['size']&&this['_refreshSuggestionsChain'](_0x375890);}['_refreshAttributeSuggestionsChain'](_0x33d3e6){if(0x0==_0x33d3e6['length'])return;const _0x369167=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x20e7aa=>'attribute'==_0x20e7aa['type']&&_0x20e7aa['_isDataLoaded']),_0x30dd39=[],_0x4f7e40=new Map();for(const _0x21c656 of _0x369167){const _0x3df491=_0x4d19eb(_0x21c656['attributes']);_0x4f7e40['has'](_0x3df491)||(_0x4f7e40['set'](_0x3df491,_0x30dd39['length']),_0x30dd39['push']([]));const _0x62cf49=_0x4f7e40['get'](_0x3df491);_0x30dd39[_0x62cf49]['push'](_0x21c656);}!(function(){_0x30dd39['sort']((_0x5a83f9,_0x5cd0ae)=>{const _0x5b72be=_0x5a83f9[0x0]['createdAt'],_0x396760=_0x5cd0ae[0x0]['createdAt'];return _0x5b72be==_0x396760?_0x5a83f9[0x0]['attributes']['groupId']<_0x5cd0ae[0x0]['attributes']['groupId']?-0x1:0x1:_0x5b72be<_0x396760?-0x1:0x1;});for(const _0x2cf198 of _0x30dd39)_0x2cf198['sort']((_0x2ec135,_0x7867c7)=>_0x2ec135['id']<_0x7867c7['id']?-0x1:0x1);}());for(let _0x530415=0x0;_0x530415<_0x30dd39['length'];_0x530415++){if(0x0==_0x30dd39[_0x530415]['length'])continue;const _0x4419c4=[];for(let _0x1d1f0c=_0x530415+0x1;_0x1d1f0c<_0x30dd39['length'];_0x1d1f0c++)0x0!=_0x30dd39[_0x1d1f0c]['length']&&_0x13ef6f(_0x30dd39[_0x530415],_0x30dd39[_0x1d1f0c])&&_0x4419c4['push'](_0x1d1f0c);for(const _0x55d438 of _0x4419c4)_0x30dd39[_0x530415]=_0x30dd39[_0x530415]['concat'](_0x30dd39[_0x55d438]),_0x30dd39[_0x55d438]=[];}for(const _0x205a2b of _0x30dd39)for(let _0x418933=0x0;_0x418933<_0x205a2b['length'];_0x418933++){const _0x129171=_0x205a2b[_0x418933+0x1]||null;_0x205a2b[_0x418933]['next']!==_0x129171&&(_0x205a2b[_0x418933]['next']=_0x129171);}for(const _0x14af79 of _0x30dd39)for(let _0x77ea8a=0x0;_0x77ea8a<_0x14af79['length'];_0x77ea8a++){const _0x298ca8=_0x14af79[_0x77ea8a-0x1]||null;_0x14af79[_0x77ea8a]['previous']!==_0x298ca8&&(_0x14af79[_0x77ea8a]['previous']=_0x298ca8);}function _0x13ef6f(_0x4b3e2b,_0x499a70){if(_0x4b3e2b[0x0]['attributes']['groupId']!==_0x499a70[0x0]['attributes']['groupId']&&_0x4b3e2b[0x0]['author']!==_0x499a70[0x0]['author'])return!0x1;if(!function(_0x28ee86,_0x4a111f){if(!_0x28ee86['hasComments']&&!_0x4a111f['hasComments'])return!0x0;if(_0x28ee86['hasComments']&&_0x4a111f['hasComments'])return!0x1;if(_0x28ee86['hasComments']&&_0x4a111f['createdAt']<_0x28ee86['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x4a111f['hasComments']&&_0x28ee86['createdAt']<_0x4a111f['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x4b3e2b[0x0],_0x499a70[0x0]))return!0x1;const _0x383990=Vt(_0x4b3e2b[0x0]['attributes'],'groupId'),_0x58decb=Vt(_0x499a70[0x0]['attributes'],'groupId');if(!_0x2a92e3(_0x383990,_0x58decb))return!0x1;return!!_0x4b3e2b['every'](_0x88c62b=>_0x499a70['some'](_0x2a92d6=>_0x88c62b['getFirstRange']()['isEqual'](_0x2a92d6['getFirstRange']())))&&_0x499a70['every'](_0x19c748=>_0x4b3e2b['some'](_0x405818=>_0x19c748['getFirstRange']()['isEqual'](_0x405818['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x468f1b){const _0x56cce5=Array['from'](_0x468f1b),_0x12bc4b=this['getSuggestions']({'skipNotAttached':!0x0}),_0x7b4e53=_0x12bc4b['filter'](_0x3b10a4=>!_0x468f1b['has'](_0x3b10a4)),_0x418d7a=new Map(_0x56cce5['map'](_0x3547c3=>[_0x3547c3,this['_suggestionFactory']['getSuggestionCallback'](_0x3547c3['type'],_0x3547c3['subType'],'join')])),_0x5e922d=new Map(_0x12bc4b['map'](_0x3d8d17=>[_0x3d8d17,_0x3d8d17['getRanges']()]));for(let _0x2f99d0=0x0;_0x2f99d0<_0x56cce5['length'];_0x2f99d0++){if(_0x1c1106(this,_0x56cce5[_0x2f99d0],_0x56cce5,_0x2f99d0+0x1))return!0x0;}for(let _0x279731=0x0;_0x279731<_0x56cce5['length'];_0x279731++){if(_0x1c1106(this,_0x56cce5[_0x279731],_0x7b4e53,0x0))return!0x0;}return!0x1;function _0x1c1106(_0x3957fd,_0x34f40c,_0x52f14d,_0x12254d){for(let _0x58896e=_0x12254d;_0x58896e<_0x52f14d['length'];_0x58896e++){const _0xfce6dd=_0x52f14d[_0x58896e];if(_0xfce6dd['type']!==_0x34f40c['type']||_0xfce6dd['author']['id']!==_0x34f40c['author']['id']||_0xfce6dd['subType']!==_0x34f40c['subType'])continue;if(!Wt(_0x34f40c,_0xfce6dd))continue;if('attribute'==_0x34f40c['type']&&_0x34f40c['data']['oldValue']!=_0xfce6dd['data']['oldValue'])continue;if('attribute'==_0x34f40c['type']&&_0x3957fd['_isBlockAttribute'](_0x34f40c['data']['key']))continue;if('formatBlock'==_0x34f40c['type']){const _0x594cc7=_0x3957fd['editor']['model'],_0x358635=_0x34f40c['getContainedElement']();if(_0x358635&&(_0x594cc7['schema']['isObject'](_0x358635)||_0x594cc7['schema']['isLimit'](_0x358635)))continue;}const _0x43dd49=_0x418d7a['get'](_0x34f40c),_0xd03ef=_0x5e922d['get'](_0x34f40c),_0x5bbff2=_0x5e922d['get'](_0xfce6dd),_0x2df410=_0x34f40c['commentThread']&&_0x34f40c['commentThread']['length'],_0x1f105b=_0xfce6dd['commentThread']&&_0xfce6dd['commentThread']['length'];if(!_0x2df410&&_0x43dd49(_0x5bbff2,_0xd03ef))return _0x3957fd['_joinSuggestions'](_0xfce6dd,_0x34f40c),_0x5e922d['delete'](_0x34f40c),!0x0;if(!_0x1f105b&&_0x43dd49(_0xd03ef,_0x5bbff2))return _0x3957fd['_joinSuggestions'](_0x34f40c,_0xfce6dd),_0x5e922d['delete'](_0xfce6dd),!0x0;}return!0x1;}}['_joinSuggestions'](_0x222736,_0x1b55e3){if(_0x222736['isMultiRange']){for(const _0x2d07df of _0x1b55e3['getRanges']())_0x222736['addRange'](_0x2d07df);}else{const _0x3b7a55=_0x1b55e3['getFirstRange']()['end'];this['_setSuggestionRange'](_0x222736,this['_model']['createRange'](_0x222736['getFirstRange']()['start'],_0x3b7a55));}_0x1b55e3['removeMarkers']();}['_getMarkerAnnouncementText'](_0x3af11a,_0xda39cc,_0x341f36){const _0x5a6f9c=_0x3af11a['startsWith']('format')||_0x3af11a['startsWith']('attribute')?'FORMATTING':_0x3af11a['toUpperCase']();return o(this['editor']['locale'],_0xda39cc+'_'+_0x5a6f9c+'_SUGGESTION_ANNOUNCEMENT',_0x341f36);}['_initAriaMarkerChangeAnnouncements'](){const _0x1160d0=this['editor'];if(!_0x1160d0['ui'])return;const {ariaLiveAnnouncer:_0x2965a2}=_0x1160d0['ui'];_0x5c11ee(this['_model'],({left:_0x32abc1,entered:_0x5da8a1})=>{for(const _0x27bb12 of _0x32abc1){const {group:_0x3f4d23,type:_0x348a02}=this['_splitMarkerName'](_0x27bb12['name']);if('suggestion'===_0x3f4d23){_0x2965a2['announce'](this['_getMarkerAnnouncementText'](_0x348a02,'LEAVE'));break;}}for(const _0x29350f of _0x5da8a1){const {group:_0x54c308,type:_0x2e43fe}=this['_splitMarkerName'](_0x29350f['name']);if('suggestion'===_0x54c308){_0x2965a2['announce'](this['_getMarkerAnnouncementText'](_0x2e43fe,'ENTER',_0x38cf88(_0x47c246)));break;}}});}['_processAttributeChanges'](_0x319a02){if(this['_recordAttributeSuggestions'])return!0x1;const _0x2a1802=this['editor'],_0x3b44a9=_0x2a1802['model']['document']['differ']['getChanges']();if(0x0==_0x3b44a9['length'])return!0x1;const _0x29a4c5=[],_0x18b30c=_0x3b44a9['filter'](_0x402be6=>'attribute'==_0x402be6['type']),_0x152655=_0x3b44a9['filter'](_0x146399=>'insert'==_0x146399['type']&&'$text'!=_0x146399['name']),_0x1b752e=_0x3b44a9['filter'](_0x4e9ebd=>'remove'==_0x4e9ebd['type']&&'$text'!=_0x4e9ebd['name']);for(const _0x575de5 of _0x18b30c)_0x29a4c5['push']({'key':_0x575de5['attributeKey'],'newValue':_0x575de5['attributeNewValue'],'oldValue':_0x575de5['attributeOldValue'],'range':qt(_0x575de5['range'],_0x2a1802['model'])});for(const _0xa7194c of _0x152655){const _0x2127a7=_0x1b752e['find'](_0xffe0f=>_0xffe0f['position']['isEqual'](_0xa7194c['position']));_0x2127a7&&_0x29a4c5['push']({'key':m,'newValue':_0xa7194c['name'],'oldValue':_0x2127a7['name'],'range':_0x2a1802['model']['createRangeOn'](_0xa7194c['position']['nodeAfter'])});}return 0x0!=_0x29a4c5['length']&&this['_reduceExistingSuggestions'](_0x319a02,_0x29a4c5);}['_processAttributeSuggestions'](_0x2d46cf){let _0x23e642=!0x1;const _0x1fc1e3=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x893400=>_0x893400['data']['newRange']&&_0x893400['name']['startsWith']('suggestion:attribute:'));for(const _0x228e5e of _0x1fc1e3){const {subType:_0x17942c,id:_0x193190}=this['_splitMarkerName'](_0x228e5e['name']),_0x50437c=_0x17942c['split']('|')[0x0];for(const _0x1008d3 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x1008d3['id']!=_0x193190&&'attribute'==_0x1008d3['type']&&_0x1008d3['data']&&_0x1008d3['data']['key']==_0x50437c&&_0x1008d3['getFirstRange']()['isIntersecting'](_0x228e5e['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x1008d3,_0x228e5e['data']['newRange'],_0x2d46cf),_0x23e642=!0x0);}return _0x23e642;}['_recordAttributeChanges'](_0x438c8a){this['_recordAttributeSuggestions']=!0x0,_0x438c8a();}['_isRegisteredAttribute'](_0x455f84){const _0x46cf8d=this['_isBlockAttribute'](_0x455f84),_0x2e06d8=this['_inlineAttributeKeys']['has'](_0x455f84);return _0x46cf8d||_0x2e06d8;}['_reduceExistingSuggestions'](_0x212a02,_0xa2e708){if(0x0==_0xa2e708['length'])return!0x1;let _0x57611f=!0x1;for(const _0x514b95 of _0xa2e708){const _0x5e3852=this['_findSuggestions'](_0x514b95['range'],'attribute')['filter'](_0xf6c129=>!_0xf6c129['meta']['isNextTo'])['map'](_0x904650=>_0x904650['suggestion']),_0x16ddad=_0x4d19eb({'newValue':_0x514b95['newValue']});_0x5e3852['filter'](_0x335106=>{const [_0x2df5e3,_0x1e2d7e]=_0x335106['subType']['split']('|');return _0x2df5e3==_0x514b95['key']&&_0x1e2d7e!=_0x16ddad;})['forEach'](_0x2ffab=>{this['_reduceSuggestionAttributeRange'](_0x2ffab,_0x514b95['range'],_0x212a02),_0x57611f=!0x0;});}return _0x57611f;}['_reduceSuggestionAttributeRange'](_0x137f4c,_0x29494f,_0x215d01){const _0x414d50=_0x137f4c['getFirstRange']()['getDifference'](_0x29494f);0x0!==_0x414d50['length']?0x1!==_0x414d50['length']?this['_breakSuggestionMarker'](_0x137f4c,_0x29494f['start'],_0x29494f['end']):this['_setSuggestionRange'](_0x137f4c,_0x414d50[0x0]):_0x215d01['removeMarker'](_0x137f4c['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x232000){this['_editor']=_0x232000,this['_model']=_0x232000['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x6f643,_0x35d75e,_0x5a3386,_0x1ca49f,_0x2eba55,_0x1265f6){return new u(this['_model'],{'type':_0x6f643,'subType':_0x35d75e,'id':_0x5a3386,'author':_0x1ca49f,'creator':_0x1ca49f,'attributes':_0x2eba55,'onAttributesChange':_0x1265f6,'onAccept':(..._0x2912ee)=>this['getSuggestionCallback'](_0x6f643,_0x35d75e,'accept')(..._0x2912ee),'onDiscard':(..._0x30c417)=>this['getSuggestionCallback'](_0x6f643,_0x35d75e,'discard')(..._0x30c417)});}['registerCustomCallback'](_0x1ea422,_0x1f7608,_0x100294,_0xa90c17){const _0x504579=_0x1ea422+':'+_0x1f7608+':'+_0x100294;this['_customCallbacks']['set'](_0x504579,_0xa90c17);}['getSuggestionCallback'](_0x2d2d42,_0x271030,_0x44e267){const _0x342593=_0x2d2d42+':'+_0x271030+':'+_0x44e267;return this['_customCallbacks']['get'](_0x342593)||this['_defaultCallbacks']['get'](_0x2d2d42+':'+_0x44e267);}['_registerDefaultCallbacks'](){const _0x17f4da=()=>!0x1,_0x145611=_0x44d831=>{_0x44d831['sort']((_0x532e09,_0x3e0229)=>_0x532e09['start']['isBefore'](_0x3e0229['start'])?0x1:-0x1),this['_model']['change'](_0x5b7a79=>{for(const _0x1f33d1 of _0x44d831){let _0xb9c5c3;_0xb9c5c3=_0x1f33d1['end']['isAtEnd']&&_0x1f33d1['end']['parent']==_0x1f33d1['start']['nodeAfter']?_0x5b7a79['createSelection'](_0x1f33d1['start']['nodeAfter'],'on'):_0x5b7a79['createSelection'](_0x1f33d1),this['_model']['deleteContent'](_0xb9c5c3,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x1ec78b=(_0x6fe0a3,_0x161735)=>{_0x161735&&this['_model']['change'](_0x2f8149=>{const {commandName:_0x7eafb1,commandParams:_0x1d900c=[]}=_0x161735,_0x489140=_0x6fe0a3['map'](_0x2248a6=>(Ft(_0x2248a6)&&(_0x2248a6=this['_model']['createRange'](_0x2248a6['end'])),_0x2248a6))['filter'](_0x1cdb7c=>'$graveyard'!==_0x1cdb7c['root']['rootName']);if(_0x489140['length']<0x1)return;const _0x4adcf6=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x102086=>_0x1720ab['fromRange'](_0x102086));_0x2f8149['setSelection'](_0x489140);for(const _0x2c62e2 of this['_editor']['commands']['commands']())_0x2c62e2['refresh']();_0x1d900c['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x7eafb1,..._0x1d900c);const _0x37f574=_0x4adcf6['filter'](_0x54ad61=>'$graveyard'!=_0x54ad61['root']['rootName']);_0x37f574['length']>0x0&&_0x2f8149['setSelection'](_0x37f574);for(const _0x224e35 of _0x4adcf6)_0x224e35['detach']();});},_0x28ac92=(_0x13bff3,_0x27a6be)=>0x1==_0x13bff3['length']&&0x1==_0x27a6be['length']&&_0x13bff3[0x0]['end']['isEqual'](_0x27a6be[0x0]['start']),_0x272861=(_0x5b443d,_0x5eb52b,_0x21ac5d,_0x4849a0)=>Kt(_0x5b443d,_0x5eb52b,_0x21ac5d,_0x4849a0)?[_0x5b443d,_0x5eb52b]:Kt(_0x5eb52b,_0x5b443d,_0x4849a0,_0x21ac5d)?[_0x5eb52b,_0x5b443d]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x17f4da),this['_defaultCallbacks']['set']('insertion:discard',_0x145611),this['_defaultCallbacks']['set']('insertion:join',_0x28ac92),this['_defaultCallbacks']['set']('insertion:chain',_0x272861),this['_defaultCallbacks']['set']('deletion:accept',_0x145611),this['_defaultCallbacks']['set']('deletion:discard',_0x17f4da),this['_defaultCallbacks']['set']('deletion:join',_0x28ac92),this['_defaultCallbacks']['set']('deletion:chain',_0x272861),this['_defaultCallbacks']['set']('formatInline:accept',_0x1ec78b),this['_defaultCallbacks']['set']('formatInline:discard',_0x17f4da),this['_defaultCallbacks']['set']('formatInline:join',_0x28ac92),this['_defaultCallbacks']['set']('formatInline:chain',_0x17f4da),this['_defaultCallbacks']['set']('formatBlock:accept',_0x1ec78b),this['_defaultCallbacks']['set']('formatBlock:discard',_0x17f4da),this['_defaultCallbacks']['set']('formatBlock:join',_0x28ac92),this['_defaultCallbacks']['set']('formatBlock:chain',_0x17f4da),this['_defaultCallbacks']['set']('attribute:accept',_0x17f4da),this['_defaultCallbacks']['set']('attribute:discard',(_0x474ace,_0x3dba5a)=>{if(!_0x3dba5a)return;const _0x533ded=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x4ed6c8=>{if(_0x3dba5a['key']==m)for(const _0x5f3d5b of _0x474ace){const _0x8c521e=_0x5f3d5b['start']['nodeAfter'],_0x5c20b2=_0x3dba5a['oldValue'];_0x4ed6c8['rename'](_0x8c521e,_0x5c20b2);}else{if(_0x533ded['_isBlockAttribute'](_0x3dba5a['key'])){for(const _0x3036bc of _0x474ace)void 0x0!==_0x3dba5a['oldValue']?_0x4ed6c8['setAttribute'](_0x3dba5a['key'],_0x3dba5a['oldValue'],_0x3036bc['start']['nodeAfter']):_0x4ed6c8['removeAttribute'](_0x3dba5a['key'],_0x3036bc['start']['nodeAfter']);}else{for(const _0x33568b of _0x474ace)_0x3dba5a['oldValue']?_0x4ed6c8['setAttribute'](_0x3dba5a['key'],_0x3dba5a['oldValue'],_0x33568b):_0x4ed6c8['removeAttribute'](_0x3dba5a['key'],_0x33568b);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x28ac92);}}function Gt(_0x4b30b4,_0x35993b,_0x186598){for(const _0xb9fa70 of _0x35993b['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0xb9fa70['root']==_0xb9fa70)return!0x1;if(!_0x186598['containsItem'](_0xb9fa70))return!0x1;if(_0x4b30b4['isObject'](_0xb9fa70)||_0x4b30b4['isLimit'](_0xb9fa70))return!0x0;}return!0x1;}function Ft(_0x5b3ac3){return _0x5b3ac3['end']['parent']==_0x5b3ac3['start']['nodeAfter']&&_0x5b3ac3['end']['isAtStart'];}function Lt(_0x304e8e,_0x52806b,_0x485ec4,_0xbb872){const _0x2f2ec2=_0x26ae9a=>!_0x26ae9a['item']['is']('$textProxy')&&!_0xbb872['isObject'](_0x26ae9a['item']),_0x4d5114=_0x304e8e['start']['getLastMatchingPosition'](_0x2f2ec2),_0x571e43=_0x304e8e['end']['getLastMatchingPosition'](_0x2f2ec2,{'direction':'backward'});return(!_0x304e8e['start']['isEqual'](_0x4d5114)||!_0x304e8e['end']['isEqual'](_0x571e43))&&(_0x4d5114['isBefore'](_0x571e43)?_0x485ec4['updateMarker'](_0x52806b,{'range':_0x485ec4['createRange'](_0x4d5114,_0x571e43)}):_0x485ec4['removeMarker'](_0x52806b),!0x0);}function Jt(_0x3e9ff6){return _0x4d19eb(_0x3e9ff6);}function Ht(_0x1890f7){const _0x39259b=_0x1890f7['start']['nodeAfter'];return _0x39259b&&_0x39259b['is']('element');}function qt(_0x428912,_0x3ebb88){return null==_0x428912['end']['nodeBefore']&&_0x428912['end']['parent']==_0x428912['start']['nodeAfter']?zt(_0x428912['start']['nodeAfter'],_0x3ebb88):_0x428912;}function zt(_0x4db8a7,_0x535af3){const _0xc38e9f=_0x535af3['schema']['isObject'](_0x4db8a7)||_0x535af3['schema']['isSelectable'](_0x4db8a7);return _0x535af3['createRange'](_0x535af3['createPositionAt'](_0x4db8a7,'before'),_0xc38e9f?_0x535af3['createPositionAfter'](_0x4db8a7):_0x535af3['createPositionAt'](_0x4db8a7,'end'));}function Kt(_0x591b31,_0x213389,_0x44ec6d,_0x18d7ee){return!!Wt(_0x591b31,_0x213389)&&_0x44ec6d['end']['isEqual'](_0x18d7ee['start']);}function Wt(_0x59ec75,_0x21daf5){if(!_0x59ec75['_isDataLoaded']||!_0x21daf5['_isDataLoaded'])return!0x1;const _0xbceec7=new Set(Object['keys'](_0x59ec75['attributes'])),_0x1e29a0=new Set(Object['keys'](_0x21daf5['attributes']));if(_0xbceec7['delete']('groupId'),_0x1e29a0['delete']('groupId'),0x0==_0xbceec7['size']&&0x0==_0x1e29a0['size'])return!0x0;if(_0xbceec7['size']!=_0x1e29a0['size'])return!0x1;const _0x2c4622={..._0x59ec75['attributes']},_0x546b1d={..._0x21daf5['attributes']};return delete _0x2c4622['groupId'],delete _0x546b1d['groupId'],JSON['stringify'](_0x2c4622)==JSON['stringify'](_0x546b1d);}function Qt(_0x3dccd9,_0x187dde){const _0x3ae30a=Xt(_0x3dccd9['attributes']),_0xabf95b=Xt(_0x187dde);if(!_0x3dccd9['_isDataLoaded'])return!0x1;for(const _0x3ea8d9 of Object['keys'](_0xabf95b))if(!_0x2a92e3(_0x3ae30a[_0x3ea8d9],_0xabf95b[_0x3ea8d9]))return!0x1;return!0x0;}function Xt(_0x5a94b2){const _0x294b0d=Object['assign']({},_0x5a94b2);return delete _0x294b0d['skipNestingCheck'],delete _0x294b0d['tablePasteChainId'],_0x294b0d;}class Ce extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x4c7cb3(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x5a3d2b,_0x22c991,_0x42391e,_0x9f0215){super(),this['model']=_0x22c991,this['view']=_0x42391e,this['commentThreadController']=_0x9f0215,this['_editor']=_0x5a3d2b,this['_acceptCommand']=_0x5a3d2b['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x5a3d2b['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x37ed0c,_0xa86257)=>_0x37ed0c||_0xa86257),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x9bdd17=>_0x9bdd17&&this['_editor']['model']['canEditAt'](_0x22c991['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x16964c=>_0x16964c&&this['_editor']['model']['canEditAt'](_0x22c991['getRanges']())),this['_pendingAction']=null,_0x42391e['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x42391e,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x42391e,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x42391e,'change:isDirty',()=>{_0x42391e['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 _0x8d68a9=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x8d68a9);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ms extends _0xf44012{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x33f702,_0x584284,_0x57c639,_0x5b8e29){super(_0x33f702),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x5719a9(_0x33f702,o(_0x33f702,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x584284['authoredAt']),this['bind']('authoredAt')['to'](_0x584284),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',_0x584284,'authoredAt',this,'descriptionParts',(_0x3e5d87,_0x28b98f,_0x276984)=>{const _0x575cf5=_0x276984['map'](_0x47438d=>cs(_0x47438d['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x3e5d87-0x1,_0x584284['author']['name'],_0x28b98f?_0x5b8e29['formatDateTime'](_0x28b98f):'',new DOMParser()['parseFromString'](_0x575cf5,'text/html')['body']['textContent']]);}),this['focusables']=new _0xb56797(),this['focusTracker']=new _0x56589f(),this['keystrokes']=new _0x30e108(),this['focusCycler']=new _0x24d08e({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x479dc9=>_0x479dc9['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x584284,this['_localUser']=_0x57c639,this['_config']=_0x5b8e29,_0x5b8e29['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x1edcfc(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x50dc6a}=this['_config'];this['commentsListView']=new _0x50dc6a(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',_0x3e24e1=>_0x3e24e1+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x1c8ef8,_0xbd173c)=>_0x1c8ef8||!!_0xbd173c);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x52683a}=this['_config'],_0x5da43e=new _0x52683a(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x50c0dc=_0x5da43e['commentInputView'];return _0x5da43e['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x50c0dc,'value',(_0x2b69be,_0x880b82,_0x2f6c94)=>!!_0x2f6c94||_0x2b69be&&!_0x880b82),_0x50c0dc['on']('submit',(_0x169fb4,_0x2e1685)=>{this['fire']('addComment',_0x2e1685),_0x50c0dc['editor']['setData']('');}),_0x50c0dc['on']('cancel',()=>this['focus']()),_0x50c0dc['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x5da43e;}}class pe extends ms{['suggestionView'];['_descriptionElement'];constructor(_0x258343,_0x79b35a,_0x361567,_0x15479d){super(_0x258343,_0x79b35a,_0x361567,_0x15479d),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x2bc010=>_0x2bc010&&_0x2bc010[0x0]?_0x2bc010[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x5762a3,_0x125706)=>{let _0x2584c5='';for(const _0x238cfe of _0x5762a3)_0x2584c5+='<p>'+cs(_0x238cfe['content'],_0x238cfe['color'])+'</p>';return _0x125706?_0x2584c5:_0x1b0177(_0x2584c5,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x15479d['SuggestionView'](_0x258343,_0x79b35a,{'formatDateTime':_0x15479d['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 _0x2c2272=this['bindTemplate'],_0x263d34=[this['suggestionView']];return this['commentsListView']&&_0x263d34['push'](this['commentsListView']),this['commentThreadInputView']&&_0x263d34['push'](this['commentThreadInputView']),_0x263d34['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x2c2272['if']('isActive','ck-suggestion-wrapper--active'),_0x2c2272['to']('type',_0x2f31c7=>'ck-suggestion-'+_0x2f31c7),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':_0x2c2272['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x263d34};}['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 fe extends _0xf44012{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x26c2fc,_0x58fa81,_0x571e6a){super(_0x26c2fc),this['_model']=_0x58fa81,this['_config']=_0x571e6a,this['set']('description',''),this['bind']('authoredAt')['to'](_0x58fa81),this['acceptButton']=this['_createButton'](o(_0x26c2fc,'Accept\x20suggestion'),_0xd92699['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x26c2fc,'Discard\x20suggestion'),_0xd92699['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x5e8663(_0x26c2fc,_0x58fa81['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0xb56797([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x56589f(),this['keystrokes']=new _0x30e108(),this['focusCycler']=new _0x24d08e({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x50e939=>_0x50e939['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x364011=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x364011['innerHTML']=this['description'],this['on']('change:description',(_0x6d91af,_0x5951a4,_0x287e67)=>{_0x364011['innerHTML']=_0x287e67;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x31294a=this['bindTemplate'],_0x357afb=[{'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':_0x31294a['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x31294a['to']('authoredAt',_0x20154c=>this['_config']['formatDateTime'](_0x20154c))}]}]},{'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']&&_0x357afb['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':_0x357afb}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x28b006,_0x220bfa,_0x53c691,_0x406ec9,_0x6aaa95){const _0x10b521=new _0x1d0979(this['locale']);return _0x10b521['set']({'label':_0x28b006,'icon':_0x220bfa,'tooltip':!0x0,'tooltipPosition':_0x6aaa95}),_0x10b521['extendTemplate']({'attributes':{'class':_0x53c691}}),_0x10b521['on']('execute',()=>{this['fire'](_0x406ec9,this['_model']['id']);}),_0x10b521;}['_setupKeyboardNavigation'](){const _0x3a1efb=this['element'];this['keystrokes']['listenTo'](_0x3a1efb);for(const _0x36fc15 of this['focusables'])this['focusTracker']['add'](_0x36fc15['element']),this['keystrokes']['listenTo'](_0x36fc15['element']);this['keystrokes']['set']('enter',(_0x18c267,_0x269c6c)=>{_0x3a1efb===_0x18c267['target']&&(this['focusCycler']['focusFirst'](),_0x269c6c());}),this['keystrokes']['set']('esc',(_0x5814d4,_0x54aa36)=>{_0x3a1efb!==_0x5814d4['target']&&(this['focus'](),_0x54aa36());});}}var we='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2025,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x41fe8e{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x5e66a0,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2635ea){super(_0x2635ea),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x7aa8db=this['editor']['config'];_0x7aa8db['define']('trackChanges.SuggestionThreadView',pe),_0x7aa8db['define']('trackChanges.SuggestionView',fe),_0x7aa8db['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x7aa8db['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x176b29,_0x26a12f){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x509017,_0x4c7864]of this['_handleControllerBuffer']){const _0x38f290=this['_suggestionToController']['has'](_0x509017);_0x38f290||_0x4c7864?_0x38f290&&_0x4c7864&&this['_destroyController'](_0x509017):this['_initializeController'](_0x509017);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x176b29,_0x26a12f);}['init'](){const _0x36f74e=this['editor'],_0xf87634=_0x36f74e['plugins']['get']('TrackChangesEditing'),_0x4c4878=_0x36f74e['plugins']['get']('Annotations'),_0x2908d1=_0x36f74e['plugins']['get']('EditorAnnotations'),_0x3e57a9=_0x36f74e['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x2908d1['addSourceCollector'](()=>{const _0x7023=[];for(const [_0x593d95,_0x22d264]of Array['from'](this['_suggestionToController'])){const _0x1f516e=_0x593d95['getAllAdjacentSuggestions'](),_0x32bc6d=[];for(const _0x32223a of _0x1f516e){if(!_0x32223a['isInContent'])continue;if(_0x32223a['isMultiRange']){_0x32bc6d['push'](..._0x32223a['getRanges']());continue;}const _0x57609e=_0x32223a['getFirstRange']();if(_0x32bc6d['length']>0x0){const _0x243a70=_0x32bc6d[0x0]['getJoined'](_0x57609e);if(_0x243a70){_0x32bc6d[0x0]=_0x243a70;continue;}}_0x32bc6d['push'](_0x57609e);}_0x7023['push']([_0x22d264['view'],_0x32bc6d]);}return _0x7023;}),this['listenTo'](_0xf87634,'suggestionLoaded',(_0x3530d8,_0x4f3499)=>{this['listenTo'](_0x4f3499,'change:previous',(_0x43d2e8,_0x5cd2e4,_0x3efd72,_0x5c06f1)=>{_0x4f3499['isInContent']&&(null==_0x3efd72?(this['_updateController'](_0x5c06f1['head']),this['_handleSuggestionControllerDelayed'](_0x4f3499,!0x1)):(this['_updateController'](_0x3efd72['head']),null==_0x5c06f1&&this['_handleSuggestionControllerDelayed'](_0x4f3499,!0x0)));}),null!==_0x4f3499['previous']?this['_updateController'](_0x4f3499['head']):this['_handleSuggestionControllerDelayed'](_0x4f3499,!0x1);}),this['listenTo'](_0xf87634,'suggestionUnloaded',(_0x4319a3,_0x3772e7,_0x17c81b)=>{this['stopListening'](_0x3772e7,'change:previous'),this['_handleControllerBuffer']['delete'](_0x3772e7),this['_suggestionToController']['has'](_0x3772e7)&&this['_destroyController'](_0x3772e7),_0x17c81b&&this['_updateController'](_0x17c81b['head']);}),this['listenTo'](_0xf87634,'suggestionChanged',(_0x177b16,_0x403c4a)=>{this['_updateController'](_0x403c4a);}),this['listenTo'](_0x4c4878,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x3e57a9,'addComment',(_0x39509e,{threadId:_0x421aa0,isFromAdapter:_0x4d656c})=>{if(_0x4d656c||!_0xf87634['hasSuggestion'](_0x421aa0))return;const _0x48cf7a=_0xf87634['getSuggestion'](_0x421aa0);this['_suggestionToController']['get'](_0x48cf7a)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5a1615=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1281ad;for(const _0x3fb72a in _0x5a1615){const _0x4b1644=_0x3fb72a,_0x2dadc0=_0x5a1615[_0x4b1644];if('trackChangesLicenseKeyValid'==_0x2dadc0||'trackChangesLicenseKeyInvalid'==_0x2dadc0||'trackChangesLicenseKeyExpired'==_0x2dadc0||'trackChangesLicenseKeyDomainLimit'==_0x2dadc0||'trackChangesLicenseKeyNotAllowed'==_0x2dadc0||'trackChangesLicenseKeyEvaluationLimit'==_0x2dadc0||'trackChangesLicenseKeyTrialLimit'==_0x2dadc0||'trackChangesLicenseKeyUsageLimit'==_0x2dadc0){delete _0x5a1615[_0x4b1644],_0x1281ad=_0x2dadc0,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x1281ad&&_0x5a1615['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x1281ad&&_0x5a1615['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x1281ad&&_0x5a1615['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x1281ad&&_0x5a1615['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x1281ad&&_0x5a1615['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x1281ad&&_0x5a1615['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x1281ad&&_0x5a1615['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x34814d=this['editor']['plugins']['get']('Annotations'),_0x3c59d2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x11ae82=Array['from'](_0x34814d['activeAnnotations'],_0x5b1464=>_0x5b1464['innerView'])['filter'](_0xc8175e=>this['_viewToController']['has'](_0xc8175e)),_0x557f60=[];for(const _0x331540 of _0x11ae82){const _0x44f734=this['_viewToController']['get'](_0x331540)['model']['getAllAdjacentSuggestions']();_0x557f60['push'](..._0x44f734['reduce']((_0x529e5c,_0xc56ef3)=>[..._0x529e5c,..._0xc56ef3['getMarkerNames']()],[]));}_0x3c59d2['activeMarkers']=_0x557f60;}['_addUIComponentsToFactory'](){const _0x504647=this['editor'],_0x17022f=_0x504647['locale'],_0x1618b6=o(_0x17022f,'Track\x20changes'),_0x54b2d1=new _0x52b421([{'type':'switchbutton','model':new _0x3f2904({'withText':!0x0,'isToggleable':!0x0,'label':_0x1618b6,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x3f2904({'withText':!0x0,'label':o(_0x17022f,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3f2904({'withText':!0x0,'label':o(_0x17022f,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3f2904({'withText':!0x0,'label':o(_0x17022f,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3f2904({'withText':!0x0,'label':o(_0x17022f,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x504647['plugins']['has']('TrackChangesPreview')&&_0x54b2d1['addMany']([{'type':'separator'},{'type':'button','model':new _0x3f2904({'withText':!0x0,'label':o(_0x17022f,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x1a636d of _0x54b2d1)if(ke(_0x1a636d)){const _0x416e54=_0x504647['commands']['get'](_0x1a636d['model']['commandName']);_0x1a636d['model']['bind']('isOn','isEnabled')['to'](_0x416e54,'value','isEnabled');}_0x504647['ui']['componentFactory']['add']('trackChanges',_0xdfeab9=>this['_createToolbarButton'](_0xdfeab9,_0x54b2d1,_0x1618b6)),_0x504647['ui']['componentFactory']['add']('menuBar:trackChanges',_0x391b13=>this['_createMenuBarMenu'](_0x391b13,_0x54b2d1,_0x1618b6));}['_createToolbarButton'](_0x41828b,_0x4e6c41,_0x33dedf){const _0x194ae2=_0x18d116(_0x41828b,_0x193dea),_0x196bdd=this['editor']['commands']['get']('trackChanges');_0x194ae2['buttonView']['set']({'tooltip':_0x33dedf,'label':_0x33dedf,'icon':we}),_0x194ae2['buttonView']['bind']('isOn')['to'](_0x196bdd,'value'),_0x194ae2['buttonView']['on']('execute',()=>{_0x196bdd['execute'](),this['editor']['editing']['view']['focus']();}),_0x1a8e3a(_0x194ae2,_0x4e6c41,{'role':'menu'});const _0x41839d=[];for(const _0x436d0d of _0x4e6c41)ke(_0x436d0d)&&_0x41839d['push'](this['editor']['commands']['get'](_0x436d0d['model']['commandName']));const _0x17b699=_0x194ae2['buttonView'];return _0x17b699['actionView']['unbind']('isEnabled'),_0x17b699['arrowView']['unbind']('isEnabled'),_0x17b699['actionView']['bind']('isEnabled')['to'](_0x196bdd,'isEnabled'),_0x17b699['arrowView']['bind']('isEnabled')['toMany'](_0x41839d,'isEnabled',(..._0x425a3f)=>_0x425a3f['some'](_0x4a9b22=>_0x4a9b22)),_0x194ae2['on']('execute',_0x2813c1=>{this['editor']['execute'](_0x2813c1['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x194ae2;}['_createMenuBarMenu'](_0x47a621,_0x4faae9,_0x3686d9){const _0x1f50f5=new _0x153862(_0x47a621),_0xfe5709=this['editor']['commands']['get']('trackChanges');_0x1f50f5['buttonView']['set']({'label':_0x3686d9,'icon':we});const _0x1d8593=new _0x297f44(_0x47a621);for(const _0x470260 of _0x4faae9){if('separator'==_0x470260['type']){_0x1d8593['items']['add'](new _0x4ddb04(_0x47a621));continue;}const _0xcebf0e=new _0x4cc105(_0x47a621,_0x1f50f5),_0x5eb7cd=new _0x17af31(_0x47a621),_0x15735a=_0x470260['model'];_0x5eb7cd['bind'](...Object['keys'](_0x15735a))['to'](_0x15735a),_0x5eb7cd['delegate']('execute')['to'](_0x1f50f5),_0x5eb7cd['on']('execute',()=>{this['editor']['execute'](_0x15735a['commandName']),this['editor']['editing']['view']['focus']();}),_0xcebf0e['children']['add'](_0x5eb7cd),_0x1d8593['items']['add'](_0xcebf0e);}return _0x1f50f5['bind']('isEnabled')['to'](_0xfe5709,'isEnabled'),_0x1f50f5['panelView']['children']['add'](_0x1d8593),_0x1f50f5;}['_initializeController'](_0x4c6aa3){const _0x76c499=this['editor'],_0x1c0993=_0x76c499['config'],_0x293a9b=_0x76c499['plugins']['get']('Annotations'),_0x552e32=_0x76c499['plugins']['get']('CommentsRepository'),_0x2640bf=_0x76c499['plugins']['get']('EditorAnnotations'),_0x1d369d=_0x76c499['plugins']['get'](_0x5e66a0)['me'],_0x3ec250=_0x1c0993['get']('trackChanges')['SuggestionThreadView'],_0x335b07=_0x1c0993['get']('trackChanges')['SuggestionView'],{CommentsListView:_0xe6c0d2,CommentThreadInputView:_0x2d41c0}=_0x76c499['plugins']['get']('CommentsUI');let _0x1bea92,_0x1a632d,_0x439286;this['_annotationViews']['has'](_0x4c6aa3['id'])?(_0x1a632d=this['_annotationViews']['get'](_0x4c6aa3['id']),_0x1bea92=_0x1a632d['mainView']):(_0x1bea92=new _0x3ec250(_0x76c499['locale'],_0x4c6aa3,_0x1d369d,{'disableComments':this['_disableComments'],'editorConfig':{..._0x1c0993['get']('comments.editorConfig'),'licenseKey':_0x1c0993['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x1c0993['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x1c0993['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x1c0993['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x130c37(_0x1c0993['get']('locale')),'CommentView':_0x1c0993['get']('comments')['CommentView'],'CommentsListView':_0xe6c0d2,'CommentThreadInputView':_0x2d41c0,'SuggestionView':_0x335b07}),_0x1bea92['suggestionView']['acceptButton']['on']('execute',()=>{_0x76c499['editing']['view']['focus']();}),_0x1bea92['suggestionView']['discardButton']['on']('execute',()=>{_0x76c499['editing']['view']['focus']();}),_0x1a632d=_0x293a9b['createAnnotationView'](this['editor']['locale'],_0x1bea92),_0x1a632d['bind']('isDirty')['to'](_0x1bea92,'isDirty'),_0x1a632d['bind']('length')['to'](_0x1bea92),_0x1a632d['bind']('type')['to'](_0x1bea92,'type',_0x4bd3c9=>'suggestion-'+_0x4bd3c9),_0x1bea92['on']('escape',()=>{_0x439286['fire']('escape');}),this['_annotationViews']['set'](_0x4c6aa3['id'],_0x1a632d));const _0xd3d961=_0x552e32['createCommentThreadController'](_0x4c6aa3['commentThread'],_0x1bea92),_0x572dec=new Ce(_0x76c499,_0x4c6aa3,_0x1bea92,_0xd3d961),_0x3a10d3=_0x4c6aa3['getAllAdjacentSuggestions']()['filter'](_0x5a1cc9=>_0x5a1cc9['isInContent']);_0x1bea92['descriptionParts']=_0x76c499['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x3a10d3),this['_suggestionToController']['set'](_0x4c6aa3,_0x572dec),this['_viewToController']['set'](_0x1bea92,_0x572dec),_0x439286=_0x293a9b['createAnnotation']({'view':_0x1a632d,'target':()=>{const _0x131ff4=[],_0x64b831=_0x4c6aa3['getAllAdjacentSuggestions']()['filter'](_0x10639e=>_0x10639e['isInContent']);for(const _0x32a822 of _0x64b831)_0x131ff4['push'](..._0x32a822['getMarkers']());return _0x2b732f(_0x76c499['editing'],_0x131ff4);},'type':()=>'suggestion-'+_0x572dec['view']['type']}),_0x552e32['_bindAnnotationToEditors'](_0x1bea92,_0x439286),_0x293a9b['add'](_0x439286),_0x2640bf['registerAnnotation'](_0x439286);}['_destroyController'](_0x324122){const _0xc06e03=this['editor']['plugins']['get']('CommentsRepository'),_0x3b5932=this['editor']['plugins']['get']('Annotations'),_0x2ced33=this['_suggestionToController']['get'](_0x324122),_0x42725f=_0x2ced33['view'],_0x10dc49=_0x3b5932['getByInnerView'](_0x42725f);_0xc06e03['_unbindEditors'](_0x42725f),_0x10dc49&&_0x3b5932['remove'](_0x10dc49),this['_suggestionToController']['delete'](_0x324122),this['_viewToController']['delete'](_0x42725f),_0x2ced33['destroy']();}['_updateController'](_0x28227a){if(!_0x28227a['isInContent']||!this['_suggestionToController']['has'](_0x28227a))return;const _0x345507=this['editor']['plugins']['get']('TrackChangesEditing'),_0x287353=this['_suggestionToController']['get'](_0x28227a),_0xa0d2e4=_0x28227a['getAllAdjacentSuggestions']();_0x287353['view']['descriptionParts']=_0x345507['descriptionFactory']['getDescriptions'](_0xa0d2e4);}['destroy'](){for(const _0x85ed20 of this['_suggestionToController']['keys']())this['_destroyController'](_0x85ed20);for(const _0x1bb9c8 of this['_annotationViews']['values']())_0x1bb9c8['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0xc9dec0){return'model'in _0xc9dec0;}class k extends _0x41fe8e{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x5ce74c){this['editor']['plugins']['get'](p)['adapter']=_0x5ce74c;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x2d2c4d){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x2d2c4d);}['getSuggestions']({skipNotAttached:_0x3b1d5b=!0x1,toJSON:_0xb234f6=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x3b1d5b,'toJSON':_0xb234f6});}['getSuggestion'](_0x594fe3){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x594fe3);}}const w=['Pagination'];class T extends _0x41fe8e{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x1d57d1=this['editor'];if(_0x1d57d1['config']['define']('trackChangesData.editorCreator',_0xdddb0f=>{const _0x560dbf=_0x1d57d1['model']['document']['getRootNames']()['reduce']((_0x40b8f9,_0xb1b77a)=>(_0x40b8f9[_0xb1b77a]='',_0x40b8f9),{});return _0x1d57d1['constructor']['create'](_0x560dbf,_0xdddb0f);}),'function'!=typeof _0x1d57d1['config']['get']('trackChangesData')['editorCreator'])throw new _0x3cbe3d('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x2b5fe2){return N(this['editor'],!0x0,_0x2b5fe2);}['getDataWithDiscardedSuggestions'](_0x3ccad5){return N(this['editor'],!0x1,_0x3ccad5);}}class D extends _0x41fe8e{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5a7085){function _0x429f48(_0x2d7fe0){return _0x2d7fe0['map'](_0x1ea83f=>String['fromCharCode'](_0x1ea83f))['join']('');}super(_0x5a7085),this['result']='end',_0x5a7085[_0x429f48([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x429f48([0x76,0x69,0x65,0x77])][_0x429f48([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x429f48([0x61,0x75,0x74,0x6f]),_0x5a7085[_0x429f48([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x429f48([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x429f48([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x429f48([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x429f48([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 Fe(_0x1bb94e){return void 0x0!==_0x1bb94e['getRootsAttributes'];}async function N(_0x21eb2a,_0x23d40d,_0x25149e){const _0x342809=_0x5ce18a(_0x21eb2a,w);_0x342809['plugins']['push'](p,D),_0x342809['rootsAttributes']=Fe(_0x21eb2a)?_0x21eb2a['getRootsAttributes']():void 0x0;const _0x57a669=document['createDocumentFragment'](),_0x4d0cd1=_0x21eb2a['config']['get']('trackChangesData')['editorCreator'],_0x54e11d=await _0x4d0cd1(_0x342809,()=>function(_0x2e4456){const _0x4f136c=document['createElement']('div');return _0x2e4456['appendChild'](_0x4f136c),_0x4f136c;}(_0x57a669));!function(_0x4f428e,_0x350d49){const _0x468d04=_0x4f428e['model']['document']['getRootNames']()['reduce']((_0x4fbee9,_0x2dbdf5)=>(_0x4fbee9[_0x2dbdf5]=_0x4f428e['data']['get']({'rootName':_0x2dbdf5}),_0x4fbee9),{}),_0x527203=_0x4f428e['plugins']['get']('Users')['users']['map'](_0x586712=>({'id':_0x586712['id'],'name':_0x586712['name']})),_0x130fb0=_0x4f428e['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4d31e2=_0x4f428e['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x32a677=_0x350d49['plugins']['get']('Users'),_0x23a5c9=_0x350d49['plugins']['get']('TrackChangesEditing'),_0x5b7e7d=_0x350d49['plugins']['get']('CommentsRepository');for(const _0x5026c1 of _0x5b7e7d['getCommentThreads']())_0x5026c1['remove']();for(const _0x578353 of _0x527203)_0x32a677['getUser'](_0x578353['id'])||_0x32a677['addUser'](_0x578353);_0x32a677['me']||_0x32a677['useAnonymousUser']();for(const _0x1b2add of _0x4d31e2)_0x5b7e7d['addCommentThread'](_0x1b2add);for(const _0x5f0666 of _0x130fb0)_0x23a5c9['addSuggestionData'](_0x5f0666);_0x350d49['data']['set'](_0x468d04);}(_0x21eb2a,_0x54e11d),_0x54e11d['execute'](_0x23d40d?'acceptAllSuggestions':'discardAllSuggestions');const _0x533ec4=Fe(_0x54e11d)?_0x54e11d['getFullData'](_0x25149e):_0x54e11d['data']['get'](_0x25149e);return await _0x54e11d['destroy'](),_0x533ec4;}class Me extends _0xf44012{['options'];constructor(_0x1690fa,_0x2251f1){super(_0x1690fa),this['options']=_0x2251f1,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'](_0x5dfa9b,_0x3c19a3){if(!this['element'])return;const _0x3686b3=[];for(const [_0xe1d25e,_0x3b8b78]of _0x5dfa9b){const _0x121b6c=document['createElement']('div');_0x121b6c['setAttribute']('data-ck-root-name',_0xe1d25e),_0x121b6c['className']=_0x3b8b78['classes']+'\x20ck-track-changes-preview__root-container',_0x121b6c['innerHTML']=_0x3b8b78['content'],_0x3686b3['push'](_0x121b6c);}_0x3c19a3(this['element'],_0x3686b3),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends Yt{constructor(_0x13a0a7){super(_0x13a0a7),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x1c4b25=this['editor'],_0x374339=_0x1c4b25['locale'],_0x5b17ae=_0x1c4b25['plugins']['get']('Dialog');let _0x5f31e4;const _0x478678=function(_0x1134c7){const _0xdb282a={};if('editables'in _0x1134c7['ui']['view']){for(const [_0x1f42d8,_0x10d1d4]of Object['entries'](_0x1134c7['ui']['view']['editables']))_0xdb282a[_0x1f42d8]=_0x10d1d4['element'];}else _0xdb282a[_0x1134c7['model']['document']['getRootNames']()[0x0]]=_0x1134c7['ui']['view']['editable']['element'];return _0xdb282a;}(_0x1c4b25),_0x39c33c=function(_0x4c13af){let _0x47d1bd=0x0;for(const _0x93d7d of Object['values'](_0x4c13af))_0x47d1bd=Math['max'](_0x47d1bd,_0x93d7d['getBoundingClientRect']()['width']);let _0x4e9534=0x0;for(const _0x3d8e88 of Object['values'](_0x4c13af))_0x4e9534+=_0x3d8e88['getBoundingClientRect']()['height'];const _0x1219a=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x502955=Math['min'](_0x4e9534,_0x1219a);return{'width':_0x47d1bd,'height':_0x502955};}(_0x478678);_0x5b17ae['show']({'id':'finalContentPreview','title':o(_0x374339,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x374339,{'dialogRects':_0x39c33c}),'onHide':()=>{_0x5f31e4['detachFromDom']();},'onShow':()=>{_0x1c4b25['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x12c912=>{const _0x3fb124=this['_standarizeRootsData'](_0x12c912,_0x1c4b25,_0x478678);_0x5b17ae['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x3fb124,_0x1c4b25['config']['get']('trackChanges.preview.renderFunction'));}),_0x5f31e4=new _0xe4a7b1(_0x374339,[_0x5b17ae['view']]),_0x5f31e4['attachToDom'](),_0x5f31e4['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x1c4b25['once']('destroy',()=>{_0x5f31e4['detachFromDom']();});const _0x42d61b=_0x5b17ae['view']['headerView']['class'];_0x5b17ae['view']['headerView']['class']=_0x42d61b?_0x42d61b+'\x20ck-reset_all':'ck-reset_all',_0x5b17ae['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x5b17ae['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x407368=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x28b572=_0x407368['previewMode'],_0x390e1c={};if('$labels'===_0x28b572){for(const _0x429de3 of _0x407368['getMergeFieldsIds']())_0x390e1c[_0x429de3]=_0x407368['getLabel'](_0x429de3)||_0x429de3;}else{const _0x1f25c9='$defaultValues'===_0x28b572?_0x407368['getDefaultValues']():_0x407368['getDataSetValues'](_0x28b572,!0x0);for(const _0xb1c2ba of Object['entries'](_0x1f25c9)){const [_0x57525e,_0x25cba8]=_0xb1c2ba;_0x390e1c[_0x57525e]=null!==_0x25cba8?_0x25cba8:_0x407368['getLabel'](_0x57525e)||_0x57525e;}}return{'mergeFieldsData':_0x390e1c};}['_standarizeRootsData'](_0x127d49,_0x2ec2cb,_0xc0efa2){let _0x47bb7f;if('string'==typeof _0x127d49){const _0x324cbd=_0x2ec2cb['model']['document']['getRootNames']()[0x0];_0x47bb7f={[_0x324cbd]:_0x127d49};}else _0x47bb7f=_0x127d49;const _0x1c1afc=this['_fixMediaEmbeds'](_0x47bb7f,_0x2ec2cb),_0x91649a=function(_0x28fc80,_0x50c1dd){for(const [_0x2171c1,_0x2e180e]of _0x28fc80)_0x2e180e['classes']=_0x50c1dd[_0x2171c1]['classList']['value']['replace']('ck-focused','');return _0x28fc80;}(this['_sortRoots'](_0x2ec2cb)['reduce']((_0x714ad5,_0x4f443b)=>(_0x714ad5['push']([_0x4f443b,{'content':_0x1c1afc[_0x4f443b],'classes':''}]),_0x714ad5),[]),_0xc0efa2);return _0x91649a;}['_fixMediaEmbeds'](_0x2d8e2a,_0x446f34){if(!_0x446f34['plugins']['has']('MediaEmbedEditing'))return _0x2d8e2a;const _0x166b27=_0x446f34['plugins']['get']('MediaEmbedEditing');for(const [_0x3cadcf,_0x4b7482]of Object['entries'](_0x2d8e2a)){const _0x2bdb=document['createElement']('div');_0x2bdb['innerHTML']=_0x4b7482,(_0x2bdb['querySelectorAll']('figure.media')['forEach'](_0x2fb970=>{const _0x3564c1=_0x2fb970['querySelector']('oembed');if(_0x3564c1){const _0x222765=_0x3564c1['getAttribute']('url');if(_0x222765){const _0x353345=_0x166b27['registry']['getMediaViewElement'](new _0x2ca26f(_0x446f34['editing']['view']['document']),_0x222765,{'elementName':'','renderForEditingView':!0x0}),_0x4ddbc4=document['createElement']('div');_0x4ddbc4['classList']['add']('ck-media__wrapper'),_0x353345['render'](_0x4ddbc4,_0x446f34['editing']['view']['domConverter']),_0x3564c1['replaceWith'](_0x4ddbc4);}}}),_0x2d8e2a[_0x3cadcf]=_0x2bdb['innerHTML']);}return _0x2d8e2a;}['_sortRoots'](_0x510578){if(!function(_0x309623){return void 0x0!==_0x309623['getRootsAttributes'];}(_0x510578))return _0x510578['model']['document']['getRootNames']();const _0x5bba92=[],_0x273323=new Map();for(const _0x4c99df of _0x510578['model']['document']['getRootNames']()){const _0x2867b5=_0x510578['editing']['view']['getDomRoot'](_0x4c99df)['getClientRects']()['item'](0x0);_0x5bba92['push'](_0x4c99df),_0x273323['set'](_0x4c99df,_0x2867b5);}return _0x5bba92['sort']((_0x4cd5e9,_0x4479c9)=>{const _0x2e5039=_0x273323['get'](_0x4cd5e9),_0x3bf25b=_0x273323['get'](_0x4479c9);return _0x2e5039['y']-_0x3bf25b['y']||_0x2e5039['x']-_0x3bf25b['x'];}),_0x5bba92;}}class te extends _0x41fe8e{static get['requires'](){return[T,_0x2b9819];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x30e416){super(_0x30e416),_0x30e416['commands']['add']('previewFinalContent',new re(this['editor'])),_0x30e416['config']['define']('trackChanges.preview.renderFunction',(_0x8a86ad,_0x134abc)=>{for(const _0x2b77d5 of _0x134abc)_0x8a86ad['appendChild'](_0x2b77d5);});}}export{ms as BaseSuggestionThreadView,u as Suggestion,pe as SuggestionThreadView,fe as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
|
|
23
|
+
import{Command as Qt,Plugin as _0x538eb2,PendingActions as _0x36bc6d,icons as _0x523211}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x40d556,ObservableMixin as _0x260a3a,uid as _0x30b629,insertToPriorityArray as _0x5af240,priorities as _0x5b63b3,logWarning as _0x278dc8,getEnvKeystrokeText as _0x1a649c,FocusTracker as _0x1b07ab,KeystrokeHandler as _0x4472fb,Collection as _0x23f569}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x1a7c2f,View as _0x418a9f,ViewCollection as _0x1c8f94,FocusCycler as ts,ViewModel as _0x301a5d,createDropdown as _0x9c83ce,SplitButtonView as _0x3a1cc7,addListToDropdown as _0x4fee6a,MenuBarMenuView as _0x48c534,MenuBarMenuListView as _0x2ed210,ListSeparatorView as _0x2d4777,MenuBarMenuListItemView as _0x861997,MenuBarMenuListItemButtonView as _0x1fd1fb,BodyCollection as _0x52f5f3,Dialog as _0xeabc38}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x2bda33,hashObject as _0x26d3d5,surroundingMarkersDetector as _0x469a23,FOCUS_ANNOTATION_KEYSTROKE as _0x382fd8,AriaDescriptionView as _0x474a2a,setupThreadKeyboardNavigation as _0x357426,trimHtml as _0x2ad5e3,UserView as _0x5da0e1,LateFocusButtonView as _0x58477d,getDateTimeFormatter as _0x4c943b,getAllMarkersDomElementsSorted as _0x5a7558,sanitizeEditorConfig as _0x62d4d}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x11c608,LiveRange as _0x531fcc,LivePosition as _0x375802,DowncastWriter as _0x1db6be}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x27d1b4,toWidget as _0x35e6a0}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x2d5436,set as _0x9fb260,isEqual as _0x22a75d,unset as _0x2a44e0,omit as Et}from'lodash-es';import{Delete as _0xcab87,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x3a4cff,ShiftEnter as _0x5cf5b9}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends Qt{['_enabledCommands'];constructor(_0x3e7c9e,_0x14b942){super(_0x3e7c9e),this['_enabledCommands']=_0x14b942,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 _0x61e6e6 of this['editor']['commands']['commands']())_0x61e6e6['affectsData']&&!this['_enabledCommands']['has'](_0x61e6e6)&&_0x61e6e6['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0xea25e3 of this['editor']['commands']['commands']())_0xea25e3['affectsData']&&!this['_enabledCommands']['has'](_0xea25e3)&&_0xea25e3['clearForceDisabled']('TrackChangesCommand');}}class O extends Qt{['_suggestions'];constructor(_0x447833,_0x5dae7a){super(_0x447833),this['_suggestions']=_0x5dae7a,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0xcbfb05){const _0xe47fbc=this['_suggestions']['get'](_0xcbfb05);if(!_0xe47fbc)throw new _0x40d556('track-changes-accept-suggestion-not-found',this);const _0x560f06=_0xe47fbc['getRanges']();this['editor']['model']['canEditAt'](_0x560f06)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0xe47fbc);}}class R extends Qt{['_suggestions'];constructor(_0x310341,_0x3daaa1){super(_0x310341),this['_suggestions']=_0x3daaa1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x6b1f0f){const _0x2a123f=this['_suggestions']['get'](_0x6b1f0f);if(!_0x2a123f)throw new _0x40d556('track-changes-discard-suggestion-not-found',this);const _0x15efb2=_0x2a123f['getRanges']();this['editor']['model']['canEditAt'](_0x15efb2)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x2a123f);}}function ns(_0x59890d,_0xeda0a4){let _0x3306a5='';return _0x3306a5+=_0x59890d['split']('*')['map']((_0x4d8d61,_0x2e5fb1)=>_0x2e5fb1%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x4d8d61)+'</span>':nn(_0x4d8d61))['join'](''),_0xeda0a4&&(_0x3306a5+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0xeda0a4['value']+'\x22\x20title=\x22'+_0xeda0a4['title']+'\x22></span>'),_0x3306a5;}function nn(_0x330581){const _0x5a726e=document['createElement']('span');return _0x5a726e['innerText']=_0x330581,_0x5a726e['innerHTML'];}function Xt(_0x14e74b){return _0x14e74b['sort']((_0x15c348,_0x1d0498)=>'deletion'==_0x15c348['type']&&'deletion'!=_0x1d0498['type']?-0x1:'deletion'!=_0x15c348['type']&&'deletion'==_0x1d0498['type']?0x1:0x0);}function to(_0x58bd3f,_0x2bbb8a){let _0x255a38,_0x3d9a23=0x0;const _0x3dea80=[],_0x44cf7a=_0x2bbb8a['schema'];for(;_0x3d9a23<_0x58bd3f['length'];){const _0x53434c=_0x58bd3f[_0x3d9a23],_0x28c8be=_0x58bd3f[_0x3d9a23+0x1];_0x255a38||(_0x255a38=_0x2bbb8a['createPositionBefore'](_0x53434c)),on(_0x2bbb8a,_0x53434c,_0x28c8be)||(_0x3dea80['push'](_0x2bbb8a['createRange'](_0x255a38,_0x44cf7a['isObject'](_0x53434c)?_0x2bbb8a['createPositionAfter'](_0x53434c):_0x2bbb8a['createPositionAt'](_0x53434c,'end'))),_0x255a38=null),_0x3d9a23++;}return _0x3dea80;}function on(_0x5746b5,_0x1f7880,_0x2d208b){if(!_0x2d208b)return!0x1;const _0x51671c=_0x5746b5['createPositionAfter'](_0x1f7880),_0x22e275=_0x5746b5['createPositionBefore'](_0x2d208b);return _0x51671c['isTouching'](_0x22e275);}function Yt(_0x595fa6,_0x5441c5,_0x507c2a){for(;_0x507c2a['length'];){const _0x1fb474=_0x507c2a['splice'](0x0,0x64);_0x595fa6['change'](()=>{for(const _0x5673a2 of _0x1fb474)_0x5673a2['isInContent']&&_0x5441c5['execute'](_0x5673a2['id']);});}}class x extends Qt{['_command'];['_suggestions'];constructor(_0x501d86,_0x5ed547,_0x5eb8bf){super(_0x501d86),this['_command']=_0x5ed547,this['_suggestions']=_0x5eb8bf,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x811f22=Array['from'](this['_suggestions']['values']())['some'](_0x1e8963=>_0x1e8963['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x811f22;}['execute'](){const _0x5e9fc6=Xt(Array['from'](this['_suggestions']['values']()));for(const _0x48a001 of _0x5e9fc6){const _0x47443b=_0x48a001['getRanges']();if(!this['editor']['model']['canEditAt'](_0x47443b))return;}Yt(this['editor']['model'],this['_command'],_0x5e9fc6);}}class E extends Qt{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x125bd9,_0x50397d,_0x48cc72){super(_0x125bd9),this['_command']=_0x50397d,this['_suggestions']=_0x48cc72,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x4a8dbe=this['editor']['model']['document']['selection'],_0x392f9d=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x26b0d0,_0x14d2bc){const _0x40d788=Array['from'](_0x26b0d0['getRanges']()),_0x5285c9=new Set();for(const _0x118ee3 of _0x14d2bc)if(_0x118ee3['isInContent']){for(const _0x2a756d of _0x40d788)for(const _0x151af8 of _0x118ee3['getRanges']())(_0x2a756d['isIntersecting'](_0x151af8)||_0x26b0d0['isCollapsed']&&!_0x118ee3['isMultiRange']&&_0x118ee3['next']&&_0x151af8['end']['isTouching'](_0x2a756d['start']))&&_0x5285c9['add'](_0x118ee3);}return _0x5285c9;}(_0x4a8dbe,_0x392f9d),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x43bc60=Xt(Array['from'](this['_selectedSuggestions']));for(const _0x12ede2 of _0x43bc60){const _0xb98533=_0x12ede2['getRanges']();if(!this['editor']['model']['canEditAt'](_0xb98533))return;}Yt(this['editor']['model'],this['_command'],_0x43bc60);}}class u extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x260a3a(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x2033d5,_0x3d5c00){super(),this['id']=_0x3d5c00['id'],this['type']=_0x3d5c00['type'],this['subType']=_0x3d5c00['subType']||null,this['author']=_0x3d5c00['author'],this['creator']=_0x3d5c00['creator']||_0x3d5c00['author'],this['isExternal']=Boolean(_0x3d5c00['attributes']&&_0x3d5c00['attributes']['@external']),this['data']=null,this['_model']=_0x2033d5,this['_onAccept']=_0x3d5c00['onAccept'],this['_onDiscard']=_0x3d5c00['onDiscard'],this['_onAttributesChange']=_0x3d5c00['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x3d5c00['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 _0x5175b3=this;for(;_0x5175b3['previous'];)_0x5175b3=_0x5175b3['previous'];return _0x5175b3;}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'](_0x57d809){this['_markerNames']['add'](_0x57d809);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x425cbd=>this['_model']['markers']['get'](_0x425cbd))['filter'](_0x2e4d42=>_0x2e4d42);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x1cc059=>{for(const _0x5b6389 of this['getMarkers']())_0x1cc059['removeMarker'](_0x5b6389);}),this['_markerNames']['clear']();}['removeMarker'](_0x4e0335){this['_model']['change'](_0x455cd2=>{_0x455cd2['removeMarker'](_0x4e0335);}),this['_markerNames']['delete'](_0x4e0335);}['addRange'](_0x1ab70d){const _0x23b820='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x23b820),this['_model']['change'](_0x70cdd7=>{_0x70cdd7['addMarker'](_0x23b820,{'range':_0x1ab70d,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x3a2f05){for(const _0x2685a7 of this['getRanges']())if(_0x2685a7['isIntersecting'](_0x3a2f05))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x538680=>_0x538680['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x2f2978,_0x1d8a97)=>[..._0x2f2978,..._0x1d8a97['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x526f7c=this['getRanges']();if(0x1!=_0x526f7c['length'])return null;const _0x4e748e=_0x526f7c[0x0],_0x335a64=_0x4e748e['start']['nodeAfter'],_0x151820=_0x4e748e['end']['nodeBefore'];return _0x335a64 instanceof _0x11c608?_0x335a64!=_0x151820?null:_0x335a64: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 _0x5b019e=[];let _0x151800=this['head'];for(;_0x151800;)_0x5b019e['push'](_0x151800),_0x151800=_0x151800['next'];return _0x5b019e;}['setAttribute'](_0x4a9a6f,_0x4ccc32){const _0x5ad5d=_0x2d5436(this['attributes']);_0x9fb260(_0x5ad5d,_0x4a9a6f,_0x4ccc32),_0x22a75d(_0x5ad5d,this['attributes'])||(this['attributes']=_0x5ad5d,this['_onAttributesChange'](_0x5ad5d));}['removeAttribute'](_0x3f3884){const _0x11eedc=_0x2d5436(this['attributes']);_0x2a44e0(_0x11eedc,_0x3f3884),_0x22a75d(_0x11eedc,this['attributes'])||(this['attributes']=_0x11eedc,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 _0x30b629()['substr'](0x1,0x5);}}function o(_0x585b73,_0x48c539,_0x2267e0){const _0x3753ea=_0x585b73['t'],t=_0x585b73['t'];switch(_0x48c539){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',_0x2267e0);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x2267e0);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x2267e0);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x2267e0);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x2267e0);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',_0x2267e0);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x2267e0);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',_0x2267e0);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x2267e0);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x2267e0);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x2267e0);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x2267e0);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x2267e0);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x2267e0);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x2267e0);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x2267e0);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x2267e0);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x2267e0);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x2267e0);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x2267e0);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x2267e0);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x2267e0);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x2267e0);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x2267e0);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'},_0x2267e0);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x2267e0);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x2267e0);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x2267e0);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x2267e0);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x2267e0);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'},_0x2267e0);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x2267e0);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x2267e0);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x2267e0);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x2267e0);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'},_0x2267e0);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x2267e0);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'},_0x2267e0);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'},_0x2267e0);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x2267e0);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'},_0x2267e0);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x2267e0);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'},_0x2267e0);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x2267e0);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x2267e0);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'},_0x2267e0);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x2267e0);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 _0x3753ea({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x2267e0);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x3753ea({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x2267e0);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x2267e0);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'},_0x2267e0);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'},_0x2267e0);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'},_0x2267e0);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x48c539;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x28b6e3,_0x389e49){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x28b6e3,this['_locale']=_0x389e49;}['getDescriptions'](_0x4f3678){const _0x380595=[],_0x3ed076=new Set(),_0x566590=new Set();for(let _0x90cf53=0x0;_0x90cf53<_0x4f3678['length'];_0x90cf53++){const _0x25d707=_0x4f3678[_0x90cf53];if(!_0x25d707['isInContent'])continue;const _0x40d1a4=this['_handleCustomCallbackDescription'](_0x25d707);if(_0x40d1a4){if(null!=_0x25d707['subType']){if(_0x3ed076['has'](_0x25d707['subType']))continue;_0x3ed076['add'](_0x25d707['subType']);}_0x380595['push'](_0x40d1a4);}else{if('attribute'!=_0x25d707['type'])'insertion'!=_0x25d707['type']&&'deletion'!=_0x25d707['type']||this['_handleInsertRemoveSuggestionDescription'](_0x380595,_0x25d707,_0x4f3678[_0x90cf53+0x1]);else{const _0x1ffb72=_0x25d707['data']['key'];if(_0x566590['has'](_0x1ffb72))continue;_0x566590['add'](_0x25d707['data']['key']),_0x1ffb72==m?this['_handleRenameSuggestionDescription'](_0x380595,_0x25d707):this['_handleAttributeSuggestionDescription'](_0x380595,_0x25d707);}}}return this['_resolveDescriptionItems'](_0x380595);}['registerDescriptionCallback'](_0x17d90b){this['_customCallbacks']['push'](_0x17d90b);}['registerElementLabel'](_0x27ad7f,_0x30c18c,_0x28a7a8=_0x5b63b3['normal']){'function'==typeof _0x27ad7f?_0x5af240(this['_itemLabelsCallbacks'],{'matchingCallback':_0x27ad7f,'label':_0x30c18c,'priority':_0x28a7a8}):this['_itemLabels']['set'](_0x27ad7f,_0x30c18c);}['registerAttributeLabel'](_0xc5927b,_0x4d03b2){this['_attributeLabels']['set'](_0xc5927b,_0x4d03b2);}['getItemLabel'](_0x3798a4,_0x489579=0x1){let _0x5daf44;for(const _0x4dbfc3 of this['_itemLabelsCallbacks'])if(_0x4dbfc3['matchingCallback'](_0x3798a4)){_0x5daf44=_0x4dbfc3['label'];break;}return _0x5daf44||(_0x5daf44=this['_itemLabels']['get'](_0x3798a4['name'])),_0x5daf44?_0x5daf44(_0x489579):0x1!==_0x489579?_0x489579+'\x20'+_0x3798a4['name']+'s':''+_0x3798a4['name'];}['_addDescriptionItems'](_0x57fe05,_0x1f3db0){const _0x37d6f3=_0x1f3db0['getFirstRange']()['getWalker'](),_0x39451e='insertion'==_0x1f3db0['type']?'add':'remove';for(const _0x3b30c0 of _0x37d6f3){const _0x25b6f4=_0x3b30c0['item'],_0x3c3d82=_0x57fe05[_0x57fe05['length']-0x1];if(_0x25b6f4['is']('$textProxy'))_0x3c3d82&&_0x3c3d82['type']['indexOf']('Container')>-0x1&&_0x57fe05['pop'](),_0x3c3d82&&'text'==_0x3c3d82['type']?_0x3c3d82[_0x39451e]+=_0x25b6f4['data']:_0x57fe05['push']({'type':'text','add':'add'==_0x39451e?_0x25b6f4['data']:'','remove':'remove'==_0x39451e?_0x25b6f4['data']:''});else{if(this['_schema']['isObject'](_0x25b6f4)){const _0x3be7eb=_0x25b6f4;if(_0x3c3d82&&_0x3c3d82['type']['indexOf']('Container')>-0x1&&_0x57fe05['pop'](),'elementEnd'==_0x3b30c0['type'])continue;_0x3c3d82&&_0x3c3d82['type']==_0x39451e+'Object'&&_0x3c3d82['element']['name']==_0x3be7eb['name']?_0x3c3d82['quantity']++:_0x57fe05['push']({'type':_0x39451e+'Object','element':_0x3be7eb,'quantity':0x1}),_0x37d6f3['skip'](_0x388ecf=>!('elementEnd'==_0x388ecf['type']&&_0x388ecf['item']==_0x25b6f4));}else{if(this['_schema']['checkChild'](_0x25b6f4,'$text')||_0x25b6f4['is']('element','softBreak')){const _0x36c8b6=_0x25b6f4;if('add'==_0x39451e&&'elementStart'==_0x3b30c0['type']||'remove'==_0x39451e&&'elementEnd'==_0x3b30c0['type'])continue;if(_0x3c3d82&&-0x1==_0x3c3d82['type']['indexOf']('Container')){'text'==_0x3c3d82['type']&&(_0x3c3d82[_0x39451e]+='\x0a');continue;}let _0x237333;if(_0x237333='add'==_0x39451e?_0x36c8b6['nextSibling']&&!this['_schema']['isObject'](_0x36c8b6['nextSibling'])?_0x36c8b6['nextSibling']:null:_0x36c8b6['previousSibling']&&!this['_schema']['isObject'](_0x36c8b6['previousSibling'])?_0x36c8b6['previousSibling']:null,_0x36c8b6['isEmpty']||_0x237333&&_0x237333['isEmpty']){const _0x32a77f=_0x237333&&_0x237333['isEmpty']?_0x237333:_0x36c8b6;_0x3c3d82&&_0x3c3d82['type']==_0x39451e+'EmptyContainer'&&_0x3c3d82['element']['name']==_0x32a77f['name']?_0x3c3d82['quantity']++:_0x57fe05['push']({'type':_0x39451e+'EmptyContainer','element':_0x32a77f,'quantity':0x1});}else _0x57fe05['push']({'type':_0x39451e+'Container','element':_0x36c8b6});}}}}}['_resolveDescriptionItems'](_0x588dd8){const _0x23c192=this['_locale'],_0x309d0d=[],_0x346bd2=[],_0x5d948b=[];for(const _0x3cb789 of _0x588dd8)switch(_0x3cb789['type']){case'text':if(_0x3cb789['add']=_0x3cb789['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x3cb789['remove']=_0x3cb789['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x3cb789['add']&&''!=_0x3cb789['remove']){_0x309d0d['push']({'type':'replace','content':o(_0x23c192,'REPLACE_TEXT',['\x22'+_0x3cb789['remove']+'\x22','\x22'+_0x3cb789['add']+'\x22'])});continue;}if(null!=_0x3cb789['add']['match'](/^ +$/)){_0x309d0d['push']({'type':'insertion','content':o(_0x23c192,'*Insert:*\x20%0',o(_0x23c192,'ELEMENT_SPACE',_0x3cb789['add']['length']))});continue;}if(null!=_0x3cb789['remove']['match'](/^ +$/)){_0x309d0d['push']({'type':'deletion','content':o(_0x23c192,'*Remove:*\x20%0',o(_0x23c192,'ELEMENT_SPACE',_0x3cb789['remove']['length']))});continue;}if(''!=_0x3cb789['add']){_0x309d0d['push']({'type':'insertion','content':o(_0x23c192,'*Insert:*\x20%0','\x22'+_0x3cb789['add']+'\x22')});continue;}_0x309d0d['push']({'type':'deletion','content':o(_0x23c192,'*Remove:*\x20%0','\x22'+_0x3cb789['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x309d0d['push']({'type':'insertion','content':o(_0x23c192,'*Insert:*\x20%0',this['getItemLabel'](_0x3cb789['element'],_0x3cb789['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x309d0d['push']({'type':'deletion','content':o(_0x23c192,'*Remove:*\x20%0',this['getItemLabel'](_0x3cb789['element'],_0x3cb789['quantity']))});continue;case'addContainer':_0x309d0d['push']({'type':'insertion','content':o(_0x23c192,'*Split:*\x20%0',this['getItemLabel'](_0x3cb789['element'],_0x3cb789['quantity']))});continue;case'removeContainer':_0x309d0d['push']({'type':'deletion','content':o(_0x23c192,'*Merge:*\x20%0',this['getItemLabel'](_0x3cb789['element'],_0x3cb789['quantity']))});continue;case'addFormat':_0x346bd2['push'](_0x3cb789['key']);continue;case'removeFormat':_0x5d948b['push'](_0x3cb789['key']);continue;default:_0x309d0d['push'](_0x3cb789);}if(_0x346bd2['length']){const _0x2cf4ff=_0x346bd2['map'](_0x1f8251=>this['_attributeLabels']['has'](_0x1f8251)?this['_attributeLabels']['get'](_0x1f8251):_0x1f8251)['join'](',\x20');_0x309d0d['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x2cf4ff)});}if(_0x5d948b['length']){const _0x212a9a=_0x5d948b['map'](_0x373674=>this['_attributeLabels']['has'](_0x373674)?this['_attributeLabels']['get'](_0x373674):_0x373674)['join'](',\x20');_0x309d0d['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x212a9a)});}return _0x309d0d;}['_handleCustomCallbackDescription'](_0x259e0d){for(const _0xed23ad of this['_customCallbacks']){const _0x55b9b3=_0xed23ad(_0x259e0d);if(_0x55b9b3&&'type'in _0x55b9b3)return _0x55b9b3;}}['_handleAttributeSuggestionDescription'](_0x65062a,_0x5b4650){const _0x42ec2a=_0x5b4650['data'],_0x39aa68=void 0x0===_0x42ec2a['newValue']?'removeFormat':'addFormat';_0x65062a['push']({'type':_0x39aa68,'key':_0x42ec2a['key']});}['_handleRenameSuggestionDescription'](_0x2d7e68,_0x22cab5){_0x2d7e68['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x22cab5['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x2e58c1,_0xbb619b,_0x5e7cd5){if(this['_addDescriptionItems'](_0x2e58c1,_0xbb619b),_0x5e7cd5&&_0x5e7cd5['getFirstRange']()&&!_0xbb619b['getFirstRange']()['end']['isEqual'](_0x5e7cd5['getFirstRange']()['start'])){const _0x406fce=_0x2e58c1[_0x2e58c1['length']-0x1],_0x9c8d15='insertion'==_0xbb619b['type']?'add':'remove';_0x406fce&&'text'==_0x406fce['type']&&(_0x406fce[_0x9c8d15]+='\x0a');}}}class U extends _0x538eb2{['afterInit'](){const _0x2ea933=this['editor'],_0x34ea6d=_0x2ea933['plugins']['get']('TrackChangesEditing');_0x2ea933['commands']['get']('showAIAssistant')&&_0x34ea6d['enableCommand']('showAIAssistant');}}class V extends _0x538eb2{['afterInit'](){const _0x1efc57=this['editor'],_0x14f9cb=_0x1efc57['locale'];if(!_0x1efc57['plugins']['has']('AlignmentEditing'))return;const _0x323aac=_0x1efc57['plugins']['get']('TrackChangesEditing');_0x323aac['enableDefaultAttributesIntegration']('alignment'),_0x323aac['registerBlockAttribute']('alignment'),_0x323aac['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x14f9cb,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x56ac71=this['editor'],_0x4049ec=_0x56ac71['locale'];_0x56ac71['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x295dad=>{if('formatBlock'!=_0x295dad['type'])return;const {data:_0x141a8c}=_0x295dad;if(_0x141a8c&&'alignment'==_0x141a8c['commandName']){const _0x162a65=_0x141a8c['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x4049ec,'*Format:*\x20%0',function(_0x4b6f9c){switch(_0x4b6f9c){case'left':return o(_0x4049ec,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x4049ec,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x4049ec,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x4049ec,'FORMAT_JUSTIFY_TEXT');}}(_0x162a65))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x538eb2{['afterInit'](){const _0x90c611=this['editor'],_0x42047c=_0x90c611['plugins']['get']('TrackChangesEditing'),_0x3a093b=_0x90c611['locale'];for(const _0x11d56a of ti){if(!_0x90c611['plugins']['has'](_0x11d56a))continue;const _0x36fb66=_0x11d56a['slice'](0x0,-0x7)['toLowerCase'](),_0x390bd4='FORMAT_'+_0x36fb66['toUpperCase']();_0x42047c['enableDefaultAttributesIntegration'](_0x36fb66),_0x42047c['registerInlineAttribute'](_0x36fb66),_0x42047c['descriptionFactory']['registerAttributeLabel'](_0x36fb66,o(_0x3a093b,_0x390bd4));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x249d9e=this['editor'],_0x548691=_0x249d9e['locale'],_0x14b331=_0x249d9e['plugins']['get']('TrackChangesEditing');function _0x36e9a8(_0xa6f502,_0x200c42){_0x14b331['descriptionFactory']['registerDescriptionCallback'](_0x195be3=>{if('formatInline'!=_0x195be3['type'])return;const {data:_0x8750fe}=_0x195be3;return _0x8750fe&&_0x8750fe['commandName']===_0xa6f502?_0x8750fe['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x548691,'*Format:*\x20%0',_0x200c42)}:{'type':'format','content':o(_0x548691,'*Remove\x20format:*\x20%0',_0x200c42)}:void 0x0;});}_0x36e9a8('bold',o(_0x548691,'FORMAT_BOLD')),_0x36e9a8('italic',o(_0x548691,'FORMAT_ITALIC')),_0x36e9a8('underline',o(_0x548691,'FORMAT_UNDERLINE')),_0x36e9a8('code',o(_0x548691,'FORMAT_CODE')),_0x36e9a8('strikethrough',o(_0x548691,'FORMAT_STRIKETHROUGH')),_0x36e9a8('subscript',o(_0x548691,'FORMAT_SUBSCRIPT')),_0x36e9a8('superscript',o(_0x548691,'FORMAT_SUPERSCRIPT'));}}class F extends _0x538eb2{['afterInit'](){const _0x22f077=this['editor'],_0x860270=_0x22f077['locale'];if(!_0x22f077['plugins']['has']('BlockQuoteEditing'))return;const _0x51a9c1=_0x22f077['plugins']['get']('TrackChangesEditing'),_0x266bb7=this['editor']['commands']['get']('blockQuote');_0x51a9c1['enableCommand']('blockQuote',(_0x4baaae,_0x151873={})=>{const _0x30cc63=this['editor']['model']['document']['selection'],_0x55c5aa=_0x151873&&void 0x0!==_0x151873['forceValue']?_0x151873['forceValue']:!_0x266bb7['value'];let _0x1a3773=[];if(_0x55c5aa){const _0x52cd23=Array['from'](_0x30cc63['getSelectedBlocks']())['filter'](_0x30150a=>oo(_0x30150a)||function(_0x138eec,_0x296692){const _0x9e875e=_0x296692['checkChild'](_0x138eec['parent'],'blockQuote'),_0x298a7c=_0x296692['checkChild'](['$root','blockQuote'],_0x138eec);return _0x9e875e&&_0x298a7c;}(_0x30150a,this['editor']['model']['schema']));_0x1a3773=to(_0x52cd23,_0x22f077['model']);}else{const _0x224876=Array['from'](_0x30cc63['getSelectedBlocks']())['filter'](_0x3d6e52=>oo(_0x3d6e52));_0x1a3773=to(_0x224876,_0x22f077['model']);}_0x22f077['model']['change'](()=>{for(const _0x16f709 of _0x1a3773)_0x51a9c1['markBlockFormat'](_0x16f709,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x55c5aa}]});});}),_0x51a9c1['descriptionFactory']['registerDescriptionCallback'](_0x58b57e=>{const {data:_0x408f91}=_0x58b57e;if(_0x408f91&&'blockQuote'==_0x408f91['commandName']){const _0x42ef20=o(_0x860270,'ELEMENT_BLOCK_QUOTE');return _0x408f91['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x860270,'*Set\x20format:*\x20%0',_0x42ef20)}:{'type':'format','content':o(_0x860270,'*Remove\x20format:*\x20%0',_0x42ef20)};}});}}function oo(_0x4d09b7){return'blockQuote'==_0x4d09b7['parent']['name'];}class L extends _0x538eb2{['afterInit'](){const _0x3344aa=this['editor'],_0x23e5fb=_0x3344aa['locale'],_0x1611ba=_0x3344aa['plugins']['get']('TrackChangesEditing');_0x3344aa['plugins']['has']('BookmarkEditing')&&(_0x1611ba['enableCommand']('insertBookmark'),_0x1611ba['enableDefaultAttributesIntegration']('updateBookmark'),_0x1611ba['registerBlockAttribute']('bookmarkId'),_0x1611ba['descriptionFactory']['registerDescriptionCallback'](_0x558cde=>{if('insertion'!=_0x558cde['type']&&'deletion'!=_0x558cde['type']&&'attribute'!=_0x558cde['type'])return;const _0x225c85=_0x558cde['getContainedElement']();if(null==_0x225c85)return;if(!_0x225c85['is']('element','bookmark'))return;const _0x5d3f9e=_0x225c85['getAttribute']('bookmarkId');if('insertion'==_0x558cde['type'])return{'type':'insertion','content':o(_0x23e5fb,'*Insert:*\x20%0','\x22'+_0x5d3f9e+'\x22\x20'+o(_0x23e5fb,'ELEMENT_BOOKMARK'))};if('deletion'==_0x558cde['type'])return{'type':'deletion','content':o(_0x23e5fb,'*Remove:*\x20%0','\x22'+_0x5d3f9e+'\x22\x20'+o(_0x23e5fb,'ELEMENT_BOOKMARK'))};const {data:_0x337af8}=_0x558cde;if(!_0x337af8||'bookmarkId'!=_0x337af8['key'])return;return{'type':'format','content':o(_0x23e5fb,'*Set\x20bookmark:*\x20%0','\x22'+_0x337af8['newValue']+'\x22')};}));}}class J extends _0x538eb2{['afterInit'](){const _0x12f196=this['editor'];_0x12f196['plugins']['has']('CaseChange')&&(_0x12f196['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x12f196['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x12f196['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x538eb2{['afterInit'](){const _0x2336c8=this['editor'];_0x2336c8['commands']['get']('ckbox')&&_0x2336c8['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x538eb2{['afterInit'](){const _0x2b6793=this['editor'];if(!_0x2b6793['plugins']['has']('CodeBlock'))return;const _0x3b3ca9=_0x2b6793['plugins']['get']('TrackChangesEditing'),_0x4b7e8e=_0x2b6793['locale'],_0x268bd0=_0x2b6793['config']['get']('codeBlock')['languages'],_0x40004f=_0x2b6793['commands']['get']('codeBlock');_0x3b3ca9['enableCommand']('indentCodeBlock'),_0x3b3ca9['enableCommand']('outdentCodeBlock'),_0x3b3ca9['enableCommand']('codeBlock',(_0x25eef3,_0x495fcb={})=>{const _0x5d0aff=_0x2b6793['model'],_0x128883=_0x2b6793['model']['document']['selection'],_0x165724=_0x495fcb&&void 0x0!==_0x495fcb['forceValue']?_0x495fcb['forceValue']:!_0x40004f['value'];let _0xeeb9fc;_0x495fcb['language']||(_0x495fcb['language']=_0x268bd0[0x0]['language']),_0xeeb9fc=_0x165724?Array['from'](_0x128883['getSelectedBlocks']())['filter'](_0x346b0d=>eo(_0x346b0d)||function(_0x51d9ce,_0x938e4b){if(_0x51d9ce['is']('rootElement')||_0x938e4b['isLimit'](_0x51d9ce))return!0x1;return _0x938e4b['checkChild'](_0x51d9ce['parent'],'codeBlock');}(_0x346b0d,_0x5d0aff['schema'])):Array['from'](_0x128883['getSelectedBlocks']())['filter'](_0x489c10=>eo(_0x489c10));const _0x4aef69=to(_0xeeb9fc,_0x5d0aff);_0x5d0aff['change'](()=>{for(const _0x3a1d33 of _0x4aef69)_0x3b3ca9['markBlockFormat'](_0x3a1d33,{'commandName':'codeBlock','commandParams':[{..._0x495fcb,'forceValue':_0x165724}],'formatGroupId':'blockName'});});}),(_0x3b3ca9['descriptionFactory']['registerElementLabel']('codeBlock',_0x2cfc67=>o(_0x4b7e8e,'ELEMENT_CODE_BLOCK',_0x2cfc67)),_0x3b3ca9['descriptionFactory']['registerDescriptionCallback'](_0x3d2806=>{if('formatBlock'!=_0x3d2806['type'])return;const _0x4dcd0c=_0x4b7e8e['t'],{data:_0x783578}=_0x3d2806;if(!_0x783578||'codeBlock'!=_0x783578['commandName'])return;const _0x1e37b0=_0x783578['commandParams'][0x0]['language'],_0x3778ff=_0x4dcd0c(_0x268bd0['find'](_0x2842a8=>_0x2842a8['language']===_0x1e37b0)['label'])['toLowerCase']();return _0x783578['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4b7e8e,'*Set\x20format:*\x20%0',o(_0x4b7e8e,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x3778ff+')')}:{'type':'format','content':o(_0x4b7e8e,'*Remove\x20format:*\x20%0',o(_0x4b7e8e,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x2a7265){return'codeBlock'==_0x2a7265['name'];}class z extends _0x538eb2{['afterInit'](){const _0x5bfbde=this['editor'];if(!_0x5bfbde['plugins']['has']('CommentsEditing'))return;_0x5bfbde['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x263d62,_0x237f64,_0x37ae28){const _0x39ba74=[];for(const _0x26d7af of _0x237f64['getItems']())_0x26d7af['hasAttribute'](_0x263d62)&&_0x39ba74['push'](_0x37ae28['createRangeOn'](_0x26d7af));return _0x39ba74;}function De(_0x460d75,_0x2b7592,{showActiveMarker:_0x233581=!0x0}={}){const _0x100db1=_0x460d75['plugins']['get']('TrackChangesEditing');return(_0x49abe5,_0x41dbd8,_0x53ea97)=>{if(!_0x53ea97['consumable']['test'](_0x41dbd8['markerRange'],_0x49abe5['name']))return;const _0x124f8c=_0x41dbd8['markerRange']['getWalker'](),_0x3f743c=_0x41dbd8['markerRange']['start'],_0x477e06=_0x460d75['model']['schema'];let _0x2f5758=null,_0x45e4f9=null,_0x14aee4=!0x1,_0x5b2984=!0x1;for(const _0x136090 of _0x124f8c){const _0x1e027c=_0x136090['item'];_0x14aee4=_0x14aee4||_0x477e06['isContent'](_0x1e027c);const _0x1c9d8b=_0x53ea97['mapper']['toViewElement'](_0x1e027c);if(_0x1c9d8b&&_0x1c9d8b['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x136090['type']&&(_0x477e06['isBlock'](_0x1e027c)&&!_0x477e06['isLimit'](_0x1e027c)&&(_0x1e027c['nextSibling']||_0x3f743c['isAtEnd']?_0x2f5758&&_0x2f5758['parent']==_0x1e027c||(_0x2f5758=_0x1e027c,_0x4fb65f(_0x136090['previousPosition']),_0x5b2984=!0x0):_0x45e4f9=_0x45e4f9||_0x136090['previousPosition']));}function _0x4fb65f(_0x2d8629){const {authorId:_0x1b9b4d}=_0x100db1['_splitMarkerName'](_0x41dbd8['markerName']),_0x27046a=_0x53ea97['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2b7592,'data-author-id':_0x1b9b4d}),_0x4f96dd=_0x53ea97['mapper']['toViewPosition'](_0x2d8629);_0x233581&&_0x100db1['activeMarkers']['includes'](_0x41dbd8['markerName'])&&_0x53ea97['writer']['addClass']('ck-suggestion-marker--active',_0x27046a),_0x53ea97['writer']['insert'](_0x4f96dd,_0x27046a),_0x53ea97['mapper']['bindElementToMarker'](_0x27046a,_0x41dbd8['markerName']);}_0x14aee4||_0x5b2984||!_0x45e4f9||_0x4fb65f(_0x45e4f9);};}class K extends _0x538eb2{static get['requires'](){return[_0xcab87];}['init'](){const _0x48bbce=this['editor'],_0x3cb871=_0x48bbce['plugins']['get']('TrackChangesEditing');_0x3cb871['enableCommand']('delete');const _0x190dd2=_0x48bbce['commands']['get']('deleteForward');_0x3cb871['enableCommand']('deleteForward',(_0x50ea61,_0x41d0e0={})=>{const _0x4ac017=_0x48bbce['model']['createSelection'](_0x48bbce['model']['document']['selection']);_0x4ac017['isCollapsed']&&_0x48bbce['model']['modifySelection'](_0x4ac017,{'direction':'forward','unit':_0x41d0e0['unit']});const _0x5776b0=_0x4ac017['getFirstRange'](),_0x5574a6=_0x531fcc['fromRange'](_0x5776b0);let _0x390bfe;_0x50ea61(_0x41d0e0),_0x390bfe='$graveyard'==_0x5574a6['root']['rootName']?_0x48bbce['model']['createRange'](_0x5776b0['start']):_0x48bbce['model']['createRange'](_0x5574a6['start'],_0x5574a6['end']),_0x5574a6['detach'](),_0x48bbce['model']['enqueueChange'](_0x190dd2['buffer']['batch'],_0xb92d0=>{_0x190dd2['buffer']['lock'](),_0xb92d0['setSelection'](_0xb92d0['createRange'](_0x390bfe['end'])),_0x190dd2['buffer']['unlock']();});}),_0x48bbce['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x48bbce,'merge'),{'priority':'high'}),_0x48bbce['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x490a38,_0x3cd1fc,_0x2418ee)=>{_0x2418ee['options']['showSuggestionHighlights']&&De(_0x48bbce,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x490a38,_0x3cd1fc,_0x2418ee);},{'priority':'high'}),_0x48bbce['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x3b86eb,_0x11a6bf,_0x3e90b9)=>{const _0x3d3dcd=_0x3e90b9['mapper']['markerNameToElements'](_0x11a6bf['markerName']);if(_0x3d3dcd){for(const _0x993c16 of _0x3d3dcd)_0x993c16['is']('uiElement')&&(_0x3e90b9['mapper']['unbindElementFromMarkerName'](_0x993c16,_0x11a6bf['markerName']),_0x3e90b9['writer']['remove'](_0x993c16));}},{'priority':'high'});}}class W extends _0x538eb2{['afterInit'](){const _0x4bc9d3=this['editor'];if(!_0x4bc9d3['plugins']['has']('ListEditing'))return;const _0x299d31=_0x4bc9d3['locale'],_0x4b2729=_0x4bc9d3['plugins']['get']('TrackChangesEditing'),_0x22abea=_0x4bc9d3['plugins']['has']('TodoListEditing'),_0x1030c3=!!_0x4bc9d3['config']['get']('list.multiBlock');function _0x2b7f73(_0x559597){return{'type':'format','content':''+o(_0x299d31,'*Set\x20format:*\x20%0',_0x559597)};}function _0x4ad99d(_0x291e3a){return{'type':'format','content':''+o(_0x299d31,'*Remove\x20format:*\x20%0',_0x291e3a)};}_0x4b2729['enableDefaultAttributesIntegration']('numberedList'),_0x4b2729['enableDefaultAttributesIntegration']('bulletedList'),_0x4b2729['enableDefaultAttributesIntegration']('customNumberedList'),_0x4b2729['enableDefaultAttributesIntegration']('customBulletedList'),_0x4b2729['enableDefaultAttributesIntegration']('indentList'),_0x4b2729['enableDefaultAttributesIntegration']('outdentList'),_0x4b2729['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x4b2729['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x4b2729['registerBlockAttribute']('listItemId'),_0x4b2729['registerBlockAttribute']('listType'),_0x4b2729['registerBlockAttribute']('listIndent'),_0x1030c3&&(_0x4b2729['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x4b2729['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x22abea&&(_0x4b2729['enableDefaultAttributesIntegration']('todoList'),_0x4b2729['enableDefaultAttributesIntegration']('checkTodoList'),_0x4b2729['registerBlockAttribute']('todoListChecked'),_0x4b2729['descriptionFactory']['registerDescriptionCallback'](_0x35338f=>{const {data:_0x208094}=_0x35338f;if(_0x208094&&'todoListChecked'==_0x208094['key'])return{'type':'format','content':_0x208094['newValue']?o(_0x299d31,'*Check\x20item*'):o(_0x299d31,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x383997=>{if(_0x383997['batch']['isUndo'])return!0x1;let _0x4cd882=!0x1;const _0xe2f14b=_0x4b2729['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x55a469=>'todoListChecked'===_0x4b2729['_getAttributeKey'](_0x55a469));for(const _0x53b164 of _0xe2f14b){'todo'!=_0x53b164['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x4b2729['_findSuggestions'](_0x53b164['getFirstRange'](),'attribute')['find'](_0x195e99=>'listType'===_0x4b2729['_getAttributeKey'](_0x195e99['suggestion']))||(_0x383997['removeMarker'](_0x53b164['getFirstMarker']()),_0x4cd882=!0x0));}return _0x4cd882;})),_0x4b2729['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x299d31,'FORMAT_INDENT'));const _0x5ab72c={'type':'format','content':''};_0x4b2729['descriptionFactory']['registerDescriptionCallback'](_0x11c442=>{const {data:_0x23177a}=_0x11c442;if(!_0x23177a||'listType'!=_0x23177a['key'])return;let _0x21ea87=_0x11c442['head'];for(;_0x21ea87;){if(_0x21ea87['data']&&(('listStyle'==_0x21ea87['data']['key']||'listMarkerStyle'==_0x21ea87['data']['key'])&&(_0x21ea87['data']['newValue']&&'default'!=_0x21ea87['data']['newValue']||'default'!=_0x21ea87['data']['oldValue']&&!_0x23177a['newValue'])||!_0x1030c3&&_0x21ea87['data']['key']==m))return _0x5ab72c;_0x21ea87=_0x21ea87['next'];}if(null==_0x23177a['newValue'])switch(_0x23177a['oldValue']){case'bulleted':return _0x4ad99d(o(_0x299d31,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4ad99d(o(_0x299d31,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4ad99d(o(_0x299d31,'ELEMENT_TODO_LIST'));}switch(_0x23177a['newValue']){case'bulleted':return _0x2b7f73(o(_0x299d31,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2b7f73(o(_0x299d31,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2b7f73(o(_0x299d31,'ELEMENT_TODO_LIST'));}}),_0x4b2729['descriptionFactory']['registerDescriptionCallback'](_0x412354=>{const {data:_0x483cfd}=_0x412354;if(_0x483cfd&&'listIndent'==_0x483cfd['key'])return null==_0x483cfd['newValue']||null==_0x483cfd['oldValue']&&0x0==_0x483cfd['newValue']?_0x5ab72c:void 0x0;}),_0x4b2729['descriptionFactory']['registerDescriptionCallback'](_0x5d1e9a=>{if('attribute'!=_0x5d1e9a['type'])return;const {data:_0x342d9a}=_0x5d1e9a;if(!_0x342d9a||'listItemId'!=_0x342d9a['key'])return;const _0x4fb674=Te(_0x5d1e9a);return'newValue'==_0x4fb674?{'type':'format','content':o(_0x299d31,'*Merge:*\x20list\x20item')}:'oldValue'==_0x4fb674?{'type':'format','content':o(_0x299d31,'*Split:*\x20list\x20item')}:_0x5ab72c;}),_0x4bc9d3['model']['document']['registerPostFixer'](_0x3a9776=>this['listItemIdFixer'](_0x3a9776)),_0x4bc9d3['model']['document']['registerPostFixer'](_0x47e7b6=>this['noTrackChangesFixer'](_0x47e7b6)),_0x4bc9d3['model']['document']['on']('change:data',(_0xabbd2f,_0x24f31f)=>{if(_0x24f31f['isUndo']||!_0x24f31f['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x1927f2){if(_0x1927f2['batch']['isUndo']||!_0x1927f2['batch']['isLocal'])return!0x1;let _0x2c53e3=!0x1;const _0x49eb87=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x14db3b=>_0x14db3b['data']&&'listItemId'==_0x14db3b['data']['key'])['filter'](_0x402e9e=>_0x402e9e['data']['newValue']&&_0x402e9e['data']['oldValue']);for(const _0x5cf72e of _0x49eb87)Te(_0x5cf72e)||(_0x1927f2['removeMarker'](_0x5cf72e['getFirstMarker']()),_0x2c53e3=!0x0);return _0x2c53e3;}['noTrackChangesFixer'](_0x502b4b){if(_0x502b4b['batch']['isUndo']||!_0x502b4b['batch']['isLocal'])return!0x1;const _0x6cdce6=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x6cdce6['trackChangesCommand']['value'])return!0x1;let _0x31d15a=!0x1;const _0x184912=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x5ea12b=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x4217d3=>'attribute'==_0x4217d3['type'])['filter'](_0x47180a=>_0x184912['includes'](_0x47180a['attributeKey']));if(0x0==_0x5ea12b['length'])return _0x31d15a;for(const _0x263794 of _0x5ea12b){const _0x55933a=_0x6cdce6['_findSuggestions'](_0x263794['range'],'attribute')['filter'](_0x11944a=>!_0x11944a['meta']['isNextTo'])['map'](_0x53aa98=>_0x53aa98['suggestion'])['filter'](_0x51fa4f=>{const _0x309a47=_0x6cdce6['_getAttributeKey'](_0x51fa4f);return _0x184912['includes'](_0x309a47);});if(_0x55933a['length']){for(const _0x5d5dc2 of _0x55933a)_0x502b4b['removeMarker'](_0x5d5dc2['getFirstMarker']());_0x31d15a=!0x0;}}return _0x31d15a;}['assureChains'](){const _0x190c0c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x13f3db=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x2c99d1;const _0x6fc0c=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x967c93=>{if(_0x967c93['data']['oldRange']||!_0x967c93['data']['newRange'])return null;if(!_0x967c93['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x443ea8}=_0x190c0c['_splitMarkerName'](_0x967c93['name']);if(!_0x190c0c['hasSuggestion'](_0x443ea8))return null;const _0x55780b=_0x190c0c['getSuggestion'](_0x443ea8);return _0x13f3db['includes'](_0x55780b['data']['key']);})['map'](_0x374d20=>{const {id:_0x3be776}=_0x190c0c['_splitMarkerName'](_0x374d20['name']),_0x4bdcd7=_0x190c0c['getSuggestion'](_0x3be776);return _0x2c99d1=_0x4bdcd7['attributes']['groupId'],_0x4bdcd7['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x6fc0c['size'])return;const _0x259fec=_0x190c0c['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x533125=>'attribute'==_0x533125['type']&&_0x533125['data']&&_0x13f3db['includes'](_0x533125['data']['key'])&&_0x533125['attributes']['groupId']!=_0x2c99d1)['map'](_0x59305e=>({'listItem':_0x59305e['getFirstRange']()['start']['nodeAfter'],'groupId':_0x59305e['attributes']['groupId']})),_0x447c05=new Set();for(const {groupId:_0x41cc49,listItem:_0x2caec8}of _0x259fec)_0x6fc0c['has'](_0x2caec8)&&_0x447c05['add'](_0x41cc49);for(const _0xb7a6a of _0x190c0c['getSuggestions']())_0x447c05['has'](_0xb7a6a['attributes']['groupId'])&&_0xb7a6a['setAttribute']('groupId',_0x2c99d1);}['_supportLegacySuggestions'](){const _0x2c3698=this['editor'],_0xb792fc=_0x2c3698['locale'],_0x14ecef=_0x2c3698['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x14ecef['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x132d62,_0x356f74){const _0x471702=[];for(let _0x115686 of _0x132d62)_0x115686['start']['nodeAfter']===_0x115686['end']['parent']&&(_0x115686=_0x2c3698['model']['createRange'](_0x2c3698['model']['createPositionAt'](_0x115686['start']['nodeAfter'],0x0))),_0x471702['push'](_0x115686);_0x2c3698['model']['change'](_0x3eabd8=>{const _0x16ac86=_0x2c3698['model']['document']['selection'],_0x5a5bd8=Array['from'](_0x16ac86['getRanges']())['map'](_0x2a1a78=>_0x531fcc['fromRange'](_0x2a1a78));_0x3eabd8['setSelection'](_0x471702),_0x2c3698['commands']['get'](_0x356f74['commandName'])['refresh'](),_0x356f74['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x2c3698['execute'](_0x356f74['commandName'],..._0x356f74['commandParams']),_0x3eabd8['setSelection'](_0x5a5bd8);for(const _0x3d0f05 of _0x5a5bd8)_0x3d0f05['detach']();});}),_0x14ecef['descriptionFactory']['registerElementLabel'](function(_0x12ff61){const _0x561874=!_0x2c3698['model']['schema']['isObject'](_0x12ff61),_0xa83e85=_0x12ff61['previousSibling'],_0x230344=_0x12ff61['nextSibling'],_0x5e6678=_0x12ff61['getAttribute']('listItemId'),_0x426063=!_0xa83e85||_0xa83e85['getAttribute']('listItemId')!==_0x5e6678,_0xcfaa4a=!_0x230344||_0x230344['getAttribute']('listItemId')!==_0x5e6678;return _0x561874&&Boolean(_0x5e6678)&&_0x426063&&_0xcfaa4a;},_0x2676e3=>o(_0xb792fc,'ELEMENT_LIST_ITEM',_0x2676e3));}['_registerLegacyDescription'](){const _0x5a400f=this['editor'],_0x1748e7=_0x5a400f['locale'];function _0x484f91(_0x28d9a3){const _0x4945a8=_0x5a400f['commands']['get']('bulletedList')['value'],_0x1c7500=_0x5a400f['commands']['get']('numberedList')['value'];return'numberedList'===_0x28d9a3?_0x4945a8:_0x1c7500;}_0x5a400f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x2ecd93){if('formatBlock'!=_0x2ecd93['type'])return;const {data:_0x449fd7}=_0x2ecd93;if(!_0x449fd7)return;let _0x23a750,_0x56e994,_0x4c7deb,_0x4ad34a;switch(_0x449fd7['commandName']){case'bulletedList':_0x4c7deb=_0x449fd7['commandParams'][0x0]['forceValue'],_0x4ad34a=_0x484f91(_0x449fd7['commandName']),_0x23a750=_0x4c7deb?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4ad34a&&_0x5a400f['config']['get']('list.multiBlock')||(_0x23a750='*Change\x20to:*\x20%0'),_0x56e994={'type':'format','content':o(_0x1748e7,_0x23a750,o(_0x1748e7,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x4c7deb=_0x449fd7['commandParams'][0x0]['forceValue'],_0x4ad34a=_0x484f91(_0x449fd7['commandName']),_0x23a750=_0x4c7deb?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4ad34a&&_0x5a400f['config']['get']('list.multiBlock')||(_0x23a750='*Change\x20to:*\x20%0'),_0x56e994={'type':'format','content':o(_0x1748e7,_0x23a750,o(_0x1748e7,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x23a750='*Indent:*\x20%0',_0x56e994={'type':'format','content':o(_0x1748e7,_0x23a750,o(_0x1748e7,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x23a750=function(_0x5da57f){const _0x2dd3f9=_0x5da57f['getFirstRange']();let _0x45f8b4=_0x2dd3f9['start']['nodeAfter'];for(;_0x45f8b4&&_0x2dd3f9['containsItem'](_0x45f8b4);){if(_0x45f8b4['getAttribute']('listIndent')>0x0)return!0x1;_0x45f8b4=_0x45f8b4['nextSibling'];}return!0x0;}(_0x2ecd93)?o(_0x1748e7,'*Format:*\x20remove\x20from\x20%0',o(_0x1748e7,function(_0x4f73ce){return'ELEMENT_'+_0x4f73ce['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x2ecd93))):o(_0x1748e7,'*Outdent:*\x20%0',o(_0x1748e7,'ELEMENT_LIST_ITEM')),_0x56e994={'type':'format','content':_0x23a750};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x449fd7['multipleBlocks']&&(_0x23a750='*Merge:*\x20%0',_0x56e994={'type':'deletion','content':o(_0x1748e7,_0x23a750,o(_0x1748e7,'ELEMENT_LIST_ITEM'))});}return _0x56e994;});}}function Te(_0x3ca05e){let _0x4e19f1=_0x3ca05e['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x4e19f1;){const _0x673428=_0x4e19f1['getAttribute']('listItemId');if(!_0x673428)return!0x1;if(_0x673428==_0x3ca05e['data']['newValue'])return'newValue';if(_0x673428==_0x3ca05e['data']['oldValue'])return'oldValue';_0x4e19f1=_0x4e19f1['previousSibling'];}return!0x1;}class Se extends _0x538eb2{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x4c6370=this['editor']['config']['get']('list.properties'),_0x3ed17f=this['editor']['plugins']['get']('TrackChangesEditing');_0x4c6370['styles']&&(_0x3ed17f['enableDefaultAttributesIntegration']('listStyle'),_0x3ed17f['registerBlockAttribute']('listStyle')),_0x4c6370['reversed']&&(_0x3ed17f['enableDefaultAttributesIntegration']('listReversed'),_0x3ed17f['registerBlockAttribute']('listReversed')),_0x4c6370['startIndex']&&(_0x3ed17f['enableDefaultAttributesIntegration']('listStart'),_0x3ed17f['registerBlockAttribute']('listStart'));const _0x5d8634={'type':'format','content':''};_0x3ed17f['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x4dac86=this['editor']['locale'];_0x3ed17f['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x4dac86,'FORMAT_LIST_REVERSED')),_0x3ed17f['descriptionFactory']['registerDescriptionCallback'](_0xb1d591=>{const {data:_0xabc166}=_0xb1d591;if(_0xabc166&&'listReversed'==_0xabc166['key'])return null==_0xabc166['newValue']||0x0==_0xabc166['newValue']&&null==_0xabc166['oldValue']?_0x5d8634:void 0x0;}),_0x3ed17f['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x4dac86,'FORMAT_LIST_START')),_0x3ed17f['descriptionFactory']['registerDescriptionCallback'](_0x530257=>{const {data:_0x1888cd}=_0x530257;if(_0x1888cd&&'listStart'==_0x1888cd['key'])return null==_0x1888cd['newValue']||0x1==_0x1888cd['newValue']&&null==_0x1888cd['oldValue']?_0x5d8634:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x3afab7=>{if(_0x3afab7['batch']['isUndo'])return!0x1;let _0x339c79=!0x1;const _0x624d31=_0x3ed17f['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2e8a78=>{const _0x261844=_0x3ed17f['_getAttributeKey'](_0x2e8a78);return'listStart'==_0x261844||'listReversed'==_0x261844;});for(const _0x97820b of _0x624d31){const _0x19d8a0=_0x97820b['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x19d8a0||'customNumbered'==_0x19d8a0)continue;_0x3ed17f['_findSuggestions'](_0x97820b['getFirstRange'](),'attribute')['find'](_0xad9093=>'listType'==_0x3ed17f['_getAttributeKey'](_0xad9093['suggestion']))||(_0x3afab7['removeMarker'](_0x97820b['getFirstMarker']()),_0x339c79=!0x0);}return _0x339c79;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x390cf3){const _0x5402c9=this['editor']['locale'],{data:_0x485d84}=_0x390cf3,_0x379f65={'type':'format','content':''};if(!_0x485d84||'listStyle'!=_0x485d84['key'])return;if(!_0x485d84['oldValue'])return'default'==_0x485d84['newValue']?_0x379f65:{'type':'format','content':''+o(_0x5402c9,'*Set\x20format:*\x20%0',o(_0x5402c9,this['_getTranslationKeyForListStyle'](_0x485d84['newValue'])))};if(!_0x485d84['newValue']){if('default'==_0x485d84['oldValue'])return _0x379f65;let _0x599725=_0x390cf3['head'];for(;_0x599725;){if(_0x599725['data']&&'listType'==_0x599725['data']['key']&&_0x599725['data']['newValue'])return _0x379f65;_0x599725=_0x599725['next'];}return{'type':'format','content':''+o(_0x5402c9,'*Remove\x20format:*\x20%0',o(_0x5402c9,this['_getTranslationKeyForListStyle'](_0x485d84['oldValue'])))};}if('default'!=_0x485d84['newValue'])return{'type':'format','content':''+o(_0x5402c9,'*Set\x20format:*\x20%0',o(_0x5402c9,this['_getTranslationKeyForListStyle'](_0x485d84['newValue'])))};let _0x1907a2=_0x390cf3['head'];for(;_0x1907a2;){if(_0x1907a2['data']&&'listType'==_0x1907a2['data']['key']&&_0x1907a2['data']['newValue']&&_0x1907a2['data']['oldValue'])return _0x379f65;_0x1907a2=_0x1907a2['next'];}return{'type':'format','content':o(_0x5402c9,'*Set\x20format:*\x20%0',o(_0x5402c9,'ELEMENT_'+_0x390cf3['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0xc0997a=this['editor'],_0x323b0c=_0xc0997a['locale'];_0xc0997a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3470b6=>{if('formatBlock'!=_0x3470b6['type'])return;const {data:_0x4c4513}=_0x3470b6;if(!_0x4c4513)return;let _0x5136b8,_0x3cbf97;switch(_0x4c4513['commandName']){case'listStyle':_0x5136b8='*Change\x20to:*\x20%0',_0x3cbf97={'type':'format','content':o(_0x323b0c,_0x5136b8,o(_0x323b0c,this['_getTranslationKeyForListStyle'](_0x4c4513['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5136b8=_0x4c4513['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3cbf97={'type':'format','content':o(_0x323b0c,_0x5136b8)};break;case'listStart':_0x5136b8='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3cbf97={'type':'format','content':o(_0x323b0c,_0x5136b8,_0x4c4513['commandParams'][0x0]['startIndex'])};}return _0x3cbf97;});}['_getTranslationKeyForListStyle'](_0x5123e4){return'ELEMENT_'+function(_0x1c2741){if(_e['includes'](_0x1c2741))return'bulleted';if(Re['includes'](_0x1c2741))return'numbered';return null;}(_0x5123e4)['toUpperCase']()+'_LIST_'+_0x5123e4['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x538eb2{static get['requires'](){return[_0x3a4cff];}['init'](){const _0x10950=this['editor'],_0x598b6b=_0x10950['plugins']['get']('TrackChangesEditing'),_0x342e34=_0x10950['commands']['get']('enter');_0x598b6b['enableCommand']('enter',()=>{_0x10950['model']['change'](_0x378eeb=>{const _0x1b13eb=_0x10950['model']['document']['selection'],_0x5f5ca9=_0x1b13eb['getFirstPosition'](),_0x39e698=_0x531fcc['fromRange'](_0x1b13eb['getFirstRange']());if(_0x342e34['enterBlock'](_0x378eeb)){const _0x2faa98=_0x10950['model']['createPositionAt'](_0x5f5ca9['parent']['nextSibling'],0x0),_0x2173e6=_0x378eeb['createRange'](_0x5f5ca9,_0x2faa98);_0x598b6b['markInsertion'](_0x2173e6);}else _0x378eeb['setSelection'](_0x378eeb['createRange'](_0x39e698['end']));_0x39e698['detach'](),_0x342e34['fire']('afterExecute',{'writer':_0x378eeb});});}),_0x10950['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x10950,'split'),{'priority':'high'}),_0x10950['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x14ebfd,_0x7b7542,_0x4af7b6)=>{const _0x5ae4d0=_0x4af7b6['mapper']['markerNameToElements'](_0x7b7542['markerName']);if(_0x5ae4d0){for(const _0x1c1937 of _0x5ae4d0)_0x1c1937['hasClass']('ck-suggestion-marker-split')&&(_0x4af7b6['mapper']['unbindElementFromMarkerName'](_0x1c1937,_0x7b7542['markerName']),_0x4af7b6['writer']['remove'](_0x1c1937));}},{'priority':'high'}),_0x10950['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x17ddec,_0x3ac548,_0x5ecd97)=>{_0x5ecd97['options']['showSuggestionHighlights']&&De(_0x10950,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x17ddec,_0x3ac548,_0x5ecd97);},{'priority':'high'});}}class Y extends _0x538eb2{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x3d1bee=this['editor']['plugins']['get']('TrackChangesEditing');_0x3d1bee['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x3d1bee['enableCommand']('findNext'),_0x3d1bee['enableCommand']('findPrevious'),_0x3d1bee['enableCommand']('replace'),_0x3d1bee['enableCommand']('replaceAll');}['handleFindCommand'](_0x2fb163,_0x2c2991,_0x47a999={}){const _0x225500=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x2fb163(_0x15d570=>{let _0x21cc86=('string'==typeof _0x2c2991?_0x225500['findByTextCallback'](_0x2c2991,_0x47a999):_0x2c2991)(_0x15d570);Array['isArray'](_0x21cc86)&&(_0x21cc86={'results':_0x21cc86,'searchText':'string'==typeof _0x2c2991?_0x2c2991:''});const _0x3d93aa=_0x21cc86['results']['filter'](_0x8e4f2a=>!0x1===this['_isInDeletionRange'](_0x8e4f2a,_0x15d570['item']));return{..._0x21cc86,'results':_0x3d93aa};},_0x47a999);}['_isInDeletionRange'](_0x4de275,_0x355ea6){const _0x25bcbe=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x355ea6,_0x4de275['start']),this['editor']['model']['createPositionAt'](_0x355ea6,_0x4de275['end']));for(const _0x1743cc of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x25bcbe['getIntersection'](_0x1743cc['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0x538eb2{['afterInit'](){const _0x37bb1a=this['editor']['locale'],_0x32c206=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x34512f,commandName:_0x5d7193}of ro)this['editor']['plugins']['has'](_0x34512f)&&(_0x32c206['enableDefaultAttributesIntegration'](_0x5d7193),_0x32c206['registerInlineAttribute'](_0x5d7193));_0x32c206['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x37bb1a,'FORMAT_FONT_SIZE')),_0x32c206['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x37bb1a,'FORMAT_FONT_FAMILY')),_0x32c206['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x37bb1a,'FORMAT_FONT_COLOR')),_0x32c206['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x37bb1a,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x10db27=this['editor'],_0x4042bb=_0x10db27['locale'];_0x10db27['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3d3642=>{const _0x3254b0=_0x4042bb['t'];if('formatInline'!=_0x3d3642['type'])return;const {data:_0x9c71a9}=_0x3d3642;if(null!=_0x9c71a9){if('fontSize'==_0x9c71a9['commandName']){const _0x4b8b2f=_0x9c71a9['commandParams'][0x0]['value'];if(_0x4b8b2f){const _0x2a0be2=_0x3254b0(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0xd436bf=>_0xd436bf['model']==_0x4b8b2f)['title'])['toLowerCase']();return{'type':'format','content':o(_0x4042bb,'*Set\x20font\x20size:*\x20%0',_0x2a0be2)};}return{'type':'format','content':o(_0x4042bb,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x9c71a9['commandName']){const _0x52d267=_0x9c71a9['commandParams'][0x0]['value'];return _0x52d267?{'type':'format','content':o(_0x4042bb,'*Set\x20font\x20family:*\x20%0',_0x52d267)}:{'type':'format','content':o(_0x4042bb,'*Reset\x20font\x20family*')};}if('fontColor'==_0x9c71a9['commandName']){const _0x5307ec=_0x9c71a9['commandParams'][0x0]['value'];if(_0x5307ec){const _0x448cc8=_0x1a7c2f(this['editor']['config']['get']('fontColor.colors'))['find'](_0xd47cb=>_0xd47cb['model']==_0x5307ec);let _0x8ccd9e=_0x5307ec,_0x3d6792='';return _0x448cc8&&(_0x8ccd9e=_0x448cc8['label'],_0x3d6792=_0x3254b0(_0x8ccd9e)['toLowerCase']()),{'type':'format','content':o(_0x4042bb,'*Set\x20font\x20color:*\x20%0',_0x3d6792)['trim'](),'color':{'value':_0x5307ec,'title':_0x3d6792||_0x8ccd9e}};}return{'type':'format','content':o(_0x4042bb,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x9c71a9['commandName']){const _0x8df0fd=_0x9c71a9['commandParams'][0x0]['value'];if(_0x8df0fd){const _0x552851=_0x1a7c2f(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x238934=>_0x238934['model']==_0x8df0fd);let _0x407522=_0x8df0fd,_0x4df103='';return _0x552851&&(_0x407522=_0x552851['label'],_0x4df103=_0x3254b0(_0x407522)['toLowerCase']()),{'type':'format','content':o(_0x4042bb,'*Set\x20font\x20background\x20color:*\x20%0',_0x4df103)['trim'](),'color':{'value':_0x8df0fd,'title':_0x4df103||_0x407522}};}return{'type':'format','content':o(_0x4042bb,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x538eb2{['afterInit'](){const _0x41d1dc=this['editor'],_0x5f2180=_0x41d1dc['plugins']['get']('TrackChangesEditing'),_0x28f855=_0x41d1dc['commands']['get']('copyFormat'),_0x5bd925=_0x41d1dc['commands']['get']('pasteFormat');_0x28f855&&_0x5bd925&&(_0x5f2180['enableDefaultAttributesIntegration']('pasteFormat'),_0x5f2180['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x467637=this['editor'],_0x519ccc=_0x467637['locale'];_0x467637['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x21a9fd=>{if('formatBlock'!=_0x21a9fd['type']&&'formatInline'!=_0x21a9fd['type'])return;const {data:_0x28f28a}=_0x21a9fd;if(_0x28f28a&&'pasteFormat'===_0x28f28a['commandName']){const _0x1bb724=[],_0x56c034=_0x28f28a['commandParams'][0x0];for(const [_0x208363,_0x5e9868]of Object['entries'](_0x56c034))_0x1bb724['push'](so(_0x467637,_0x208363,_0x5e9868));return _0x1bb724['length']?{'type':'format','content':o(_0x519ccc,'*Set\x20format\x20to:*\x20%0',_0x1bb724['join'](',\x20'))}:{'type':'format','content':o(_0x519ccc,'*Remove\x20all\x20formatting*')};}});}}function so(_0x35b70e,_0xa27779,_0x512ab3){const _0xb12515=_0x35b70e['locale']['t'],_0x2aeef4=_0xa27779['split'](/(?=[A-Z])/)['join']('\x20'),_0x3f0059=_0xb12515(_0x2aeef4['charAt'](0x0)['toUpperCase']()+_0x2aeef4['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x512ab3)return _0x3f0059;if('fontColor'===_0xa27779||'fontBackgroundColor'===_0xa27779){const _0x30f1fe=_0x1a7c2f(_0x35b70e['config']['get']('fontColor.colors'))['find'](_0x2a5d6b=>_0x2a5d6b['model']==_0x512ab3);return _0x3f0059+'\x20('+(_0x30f1fe?_0xb12515(_0x30f1fe['label'])['toLowerCase']():_0x512ab3)+')';}if('fontSize'===_0xa27779&&isNaN(parseFloat(_0x512ab3))){const _0x4b6f81=_0x35b70e['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x35b70e['config']['get']('fontSize.options'))['find'](_0x224dda=>_0x224dda['model']==_0x512ab3);return _0x3f0059+'\x20('+(_0x4b6f81?_0xb12515(_0x4b6f81['title'])['toLowerCase']():_0x512ab3)+')';}return _0x3f0059+'\x20('+_0x512ab3+')';}class nt extends _0x538eb2{['_headingOptions'];['afterInit'](){const _0x422788=this['editor'];if(!_0x422788['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x422788['config']['get']('heading.options');const _0x506038=_0x422788['locale'],_0xee060d=_0x422788['plugins']['get']('TrackChangesEditing');_0xee060d['enableDefaultAttributesIntegration']('heading');for(const _0x45f8c0 of this['_headingOptions'])'paragraph'!=_0x45f8c0['model']&&_0xee060d['descriptionFactory']['registerElementLabel'](_0x45f8c0['model'],_0xae6f47=>{const _0x2960b3=this['_getHeadingLevel'](_0x45f8c0['model']);return null!==_0x2960b3?_0x580079(_0xae6f47,_0x2960b3):_0x2e5b36(_0xae6f47,_0x45f8c0['title']);});function _0x580079(_0x381b01,_0x4d5543){return o(_0x506038,'ELEMENT_HEADING',[_0x381b01,_0x4d5543]);}function _0x2e5b36(_0x1684ca,_0x14b5fa){return o(_0x506038,'ELEMENT_HEADING_CUSTOM',[_0x1684ca,_0x14b5fa]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x38b3da=this['editor'],_0x25116a=_0x38b3da['locale'];function _0xbe5dbd(_0x10d3ec,_0xf0bb7){return o(_0x25116a,'ELEMENT_HEADING_CUSTOM',[_0x10d3ec,_0xf0bb7]);}_0x38b3da['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1ce3ed=>{if('formatBlock'!=_0x1ce3ed['type'])return;const {data:_0x3cc7a8}=_0x1ce3ed;if(_0x3cc7a8&&'heading'==_0x3cc7a8['commandName']){const _0x11886d=_0x3cc7a8['commandParams'][0x0]['value'],_0x3d6f49=this['_getHeadingLevel'](_0x11886d);if(null!==_0x3d6f49)return{'type':'format','content':o(_0x25116a,'*Change\x20to:*\x20%0',(_0x4e38f1=0x1,_0x9d4ace=_0x3d6f49,o(_0x25116a,'ELEMENT_HEADING',[_0x4e38f1,_0x9d4ace])))};const _0x574a07=this['_headingOptions']['find'](_0x34ca5d=>_0x34ca5d['model']===_0x11886d)['title'];return{'type':'format','content':o(_0x25116a,'*Change\x20to:*\x20%0',_0xbe5dbd(0x1,_0x574a07))};}var _0x4e38f1,_0x9d4ace;});}['_getHeadingLevel'](_0x1b02b8){const _0x2b9071=_0x1b02b8['match'](/^heading(\d+)/);if(_0x2b9071)return _0x2b9071[0x1];const _0xe5bfb=this['_headingOptions']?.['find'](_0x2d2a99=>_0x2d2a99['model']==_0x1b02b8);if(_0xe5bfb&&_0xe5bfb['view']){const _0x53f151=_0xe5bfb['view'],_0x414bb1=(_0x53f151['name']??_0x53f151)['match'](/^h(\d+)/);if(_0x414bb1)return _0x414bb1[0x1];}return null;}}class it extends _0x538eb2{['afterInit'](){const _0x309450=this['editor'];if(!_0x309450['plugins']['has']('HighlightEditing'))return;const _0x261abf=_0x309450['plugins']['get']('TrackChangesEditing'),_0x277576=_0x309450['locale'];_0x261abf['enableDefaultAttributesIntegration']('highlight'),_0x261abf['registerInlineAttribute']('highlight'),_0x261abf['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x277576,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x314c03=this['editor'],_0x3246bb=_0x314c03['locale'];_0x314c03['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5297d4=>{if('formatInline'!=_0x5297d4['type'])return;const {data:_0x512161}=_0x5297d4;if(_0x512161&&'highlight'==_0x512161['commandName']){const _0x363b09=_0x3246bb['t'],_0x50dbc0=_0x512161['commandParams'][0x0]['value'];if(_0x50dbc0){const _0x357e67=_0x314c03['config']['get']('highlight.options')['find'](_0x5db407=>_0x5db407['model']==_0x50dbc0),_0x11a865=_0x363b09(_0x357e67['title'])['toLowerCase']();return{'type':'format','content':o(_0x3246bb,'*Set\x20highlight:*\x20%0',_0x11a865),'color':{'value':_0x357e67['color'],'title':_0x357e67['title']}};}return{'type':'format','content':o(_0x3246bb,'*Remove\x20highlight*',o(_0x3246bb,'FORMAT_HIGHLIGHT'))};}});}}class et extends _0x538eb2{['afterInit'](){const _0x14ad6c=this['editor'];if(!_0x14ad6c['plugins']['has']('HorizontalLineEditing'))return;_0x14ad6c['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0xbdb12f=_0x14ad6c['plugins']['get']('TrackChangesEditing'),_0x799f5a=_0x14ad6c['locale'];_0xbdb12f['descriptionFactory']['registerElementLabel']('horizontalLine',_0x2ebcb0=>o(_0x799f5a,'ELEMENT_HORIZONTAL_LINE',_0x2ebcb0)),_0x14ad6c['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x5ef308,{writer:_0x1e3d1e,options:_0x13a0c1})=>{if(!_0x13a0c1['showSuggestionHighlights'])return null;const _0x20598a=_0x1e3d1e['createContainerElement']('div'),_0x401221=_0x1e3d1e['createEmptyElement']('hr');return _0x1e3d1e['addClass']('ck-horizontal-line',_0x20598a),_0x1e3d1e['insert'](_0x1e3d1e['createPositionAt'](_0x20598a,0x0),_0x401221),_0x20598a;},'converterPriority':'high'});}}class st extends _0x538eb2{['afterInit'](){const _0x4950d3=this['editor'];if(!_0x4950d3['plugins']['has']('HtmlEmbed'))return;const _0x1a3e6e=_0x4950d3['plugins']['get']('TrackChangesEditing'),_0x3f4241=_0x4950d3['locale'];_0x1a3e6e['descriptionFactory']['registerElementLabel']('rawHtml',_0x161036=>o(_0x3f4241,'ELEMENT_HTML_EMBED',_0x161036)),_0x1a3e6e['enableDefaultAttributesIntegration']('htmlEmbed'),_0x1a3e6e['registerBlockAttribute']('value'),_0x1a3e6e['descriptionFactory']['registerDescriptionCallback'](_0x19c04a=>{if('attribute'!=_0x19c04a['type'])return;const {data:_0x25118a}=_0x19c04a;if(_0x25118a&&'value'==_0x25118a['key']&&_0x19c04a['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x92977e=o(_0x3f4241,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x3f4241,'*Change\x20%0\x20content*',_0x92977e)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x490f9f=this['editor'],_0x4804fd=_0x490f9f['locale'];_0x490f9f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x40291f=>{if('formatBlock'!=_0x40291f['type'])return;const {data:_0x2c7e99}=_0x40291f;if(_0x2c7e99&&'htmlEmbed'==_0x2c7e99['commandName']){const _0x15a12b=o(_0x4804fd,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x4804fd,'*Change\x20%0\x20content*',_0x15a12b)};}});}}class ot extends _0x538eb2{['afterInit'](){const _0x59d305=this['editor'];if(!_0x59d305['plugins']['has']('ImageEditing'))return;const _0x4bdadf=_0x59d305['plugins']['get']('TrackChangesEditing'),_0x5a5522=_0x59d305['plugins']['get']('ImageUtils'),_0x717bd1=_0x59d305['locale'];_0x4bdadf['enableCommand']('insertImage'),_0x4bdadf['descriptionFactory']['registerElementLabel']('imageBlock',_0x422e68=>o(_0x717bd1,'ELEMENT_IMAGE',_0x422e68)),_0x4bdadf['descriptionFactory']['registerElementLabel']('imageInline',_0x1adbef=>o(_0x717bd1,'ELEMENT_INLINE_IMAGE',_0x1adbef)),_0x4bdadf['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x717bd1,'ELEMENT_CAPTION')),_0x59d305['plugins']['has']('ImageUploadEditing')&&_0x4bdadf['enableCommand']('uploadImage'),_0x59d305['plugins']['has']('ImageBlockEditing')&&_0x59d305['plugins']['has']('ImageInlineEditing')&&(_0x4bdadf['enableCommand']('imageTypeInline',(_0x115cc1,_0x40afaf)=>{const _0x6422a7=_0x5a5522['getClosestSelectedImageElement'](_0x59d305['model']['document']['selection']);_0x59d305['model']['change'](()=>{_0x4bdadf['markBlockFormat'](_0x6422a7,{'commandName':'imageTypeInline','commandParams':[_0x40afaf]},[],'convertBlockImageToInline');});}),_0x4bdadf['enableCommand']('imageTypeBlock',(_0x2434a4,_0x3b35d1)=>{_0x59d305['model']['change'](_0x45f28b=>{let _0x33a8d5=_0x5a5522['getClosestSelectedImageElement'](_0x59d305['model']['document']['selection']),_0x45e374=_0x45f28b['createRangeOn'](_0x33a8d5);const _0x446a76=_0x375802['fromPosition'](_0x45e374['start'],'toPrevious'),_0x1703e9=_0x375802['fromPosition'](_0x45e374['end'],'toNext');_0x4bdadf['forceDefaultExecution'](()=>_0x2434a4(_0x3b35d1)),_0x33a8d5=_0x5a5522['getClosestSelectedImageElement'](_0x59d305['model']['document']['selection']),_0x45e374=_0x45f28b['createRangeOn'](_0x33a8d5);const _0xc4a231=_0x45f28b['createRange'](_0x446a76,_0x1703e9);_0x446a76['detach'](),_0x1703e9['detach'](),_0x4bdadf['markBlockFormat'](_0x33a8d5,{'commandName':'imageTypeInline','commandParams':[_0x3b35d1]},[],'convertInlineImageToBlock'),_0xc4a231['start']['isBefore'](_0x45e374['start'])&&_0x4bdadf['markInsertion'](_0x45f28b['createRange'](_0xc4a231['start'],_0x45e374['start']),'convertInlineImageToBlock'),_0x45e374['end']['isBefore'](_0xc4a231['end'])&&_0x4bdadf['markInsertion'](_0x45f28b['createRange'](_0x45e374['end'],_0xc4a231['end']),'convertInlineImageToBlock');});}),_0x4bdadf['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x4bdadf['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x4bdadf['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x4bdadf['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x4bdadf['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x4bdadf['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x2c745c])=>{const _0x3b053e=_0x4bdadf['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x3af4f7=_0x2c745c['start'],_0x573ca1=_0x2c745c['end'];const _0x383f86=_0x59d305['model']['schema']['getNearestSelectionRange'](_0x3af4f7,'backward'),_0x3f12bc=_0x59d305['model']['schema']['getNearestSelectionRange'](_0x573ca1,'forward');_0x383f86['isCollapsed']&&(_0x3af4f7=_0x383f86['start']),_0x3f12bc['isCollapsed']&&(_0x573ca1=_0x3f12bc['end']),_0x3b053e([_0x59d305['model']['createRange'](_0x3af4f7,_0x573ca1)]);}),_0x4bdadf['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x518e66),_0x4bdadf['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x518e66)),_0x59d305['plugins']['has']('ImageCaptionEditing')&&(_0x4bdadf['enableCommand']('toggleImageCaption',(_0x31bf1c,_0x244a41)=>{const _0xbd3fcc=_0x59d305['plugins']['get']('ImageCaptionUtils');let _0x30064f=_0x5a5522['getClosestSelectedImageElement'](_0x59d305['model']['document']['selection']),_0x5e7192=_0xbd3fcc['getCaptionFromImageModelElement'](_0x30064f);_0x59d305['model']['change'](()=>{if(_0x5e7192)return void _0x4bdadf['markDeletion'](_0x59d305['model']['createRangeOn'](_0x5e7192));const _0x354aa6=_0x5a5522['isBlockImage'](_0x30064f);_0x31bf1c(_0x244a41),_0x30064f=_0x5a5522['getClosestSelectedImageElement'](_0x59d305['model']['document']['selection']),_0x5e7192=_0xbd3fcc['getCaptionFromImageModelElement'](_0x30064f),_0x4bdadf['markInsertion'](_0x59d305['model']['createRangeOn'](_0x5e7192),_0x354aa6?null:'imageCaption');});}),_0x4bdadf['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x518e66));const _0x50b50d=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5d2bd8(_0x2b7ee6,_0x475d3c){const _0x46ce62=_0x50b50d['findIndex'](({type:_0x4a2a90,subType:_0x200063})=>_0x2b7ee6['type']==_0x4a2a90&&_0x2b7ee6['subType']==_0x200063),_0x34f5df=_0x50b50d['findIndex'](({type:_0x2f578d,subType:_0x2f5439})=>_0x475d3c['type']==_0x2f578d&&_0x475d3c['subType']==_0x2f5439);if(_0x46ce62<0x0||_0x34f5df<0x0)return!0x1;const _0x241e15=_0x2b7ee6['getFirstRange'](),_0x4d9fa5=_0x475d3c['getFirstRange']();if((0x0==_0x46ce62||0x1==_0x46ce62)&&0x2==_0x34f5df&&_0x241e15['isIntersecting'](_0x4d9fa5))return!0x0;if(0x2==_0x46ce62&&0x3==_0x34f5df){const _0x412514=_0x4bdadf['_findSuggestions'](_0x241e15,'insertion')['filter'](({suggestion:_0x1d6f83,meta:_0xb798e3})=>_0xb798e3['isOwn']&&'convertInlineImageToBlock'==_0x1d6f83['subType']);if(_0x412514['length']>0x1&&_0x4d9fa5['end']['isEqual'](_0x241e15['start']))return!0x0;if(0x1==_0x412514['length']&&(_0x241e15['start']['isEqual'](_0x4d9fa5['end'])||_0x241e15['end']['isEqual'](_0x4d9fa5['start'])))return!0x0;}if(0x3==_0x46ce62&&0x3==_0x34f5df&&_0x241e15['start']['isBefore'](_0x4d9fa5['start'])){const _0x2f48b6=_0x241e15['end']['nodeAfter'],_0x50575b=_0x4d9fa5['start']['nodeBefore'];return _0x5a5522['isBlockImage'](_0x2f48b6)&&_0x2f48b6===_0x50575b;}return!0x1;}function _0x518e66(_0x14e1e2,_0x1fd2c0){return _0x5d2bd8(_0x14e1e2,_0x1fd2c0)?[_0x14e1e2,_0x1fd2c0]:_0x5d2bd8(_0x1fd2c0,_0x14e1e2)?[_0x1fd2c0,_0x14e1e2]:null;}_0x59d305['plugins']['has']('ImageResize')&&(_0x4bdadf['enableDefaultAttributesIntegration']('resizeImage'),_0x4bdadf['registerBlockAttribute']('resizedWidth'),_0x4bdadf['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x717bd1,'FORMAT_IMAGE_SIZE'))),_0x59d305['plugins']['has']('ImageTextAlternativeEditing')&&(_0x4bdadf['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x4bdadf['registerBlockAttribute']('alt')),_0x59d305['plugins']['has']('PictureEditing')&&(_0x4bdadf['registerBlockAttribute']('sources'),_0x4bdadf['descriptionFactory']['registerDescriptionCallback'](_0xbba7d8=>{if('attribute'!=_0xbba7d8['type'])return;const {data:_0x13298b}=_0xbba7d8;return _0x13298b&&'sources'==_0x13298b['key']?{'type':'format','content':''}:void 0x0;})),_0x59d305['plugins']['has']('ImageSizeAttributes')&&(_0x4bdadf['registerBlockAttribute']('width'),_0x4bdadf['registerBlockAttribute']('height'),_0x4bdadf['descriptionFactory']['registerDescriptionCallback'](_0x2a9458=>{if('attribute'!=_0x2a9458['type'])return;const {data:_0x286f75}=_0x2a9458;return!_0x286f75||'width'!=_0x286f75['key']&&'height'!=_0x286f75['key']?void 0x0:{'type':'format','content':''};})),_0x4bdadf['descriptionFactory']['registerDescriptionCallback'](_0x1253a3=>{if(!!_0x50b50d['find'](({type:_0x35ccb3,subType:_0x17c2b2})=>_0x1253a3['type']==_0x35ccb3&&_0x1253a3['subType']==_0x17c2b2))return _0x1253a3['previous']?{}:void 0x0;}),_0x4bdadf['descriptionFactory']['registerDescriptionCallback'](_0x512eb1=>{if('insertion'==_0x512eb1['type']||'deletion'==_0x512eb1['type']){const _0x582ef8=_0x512eb1['getContainedElement']();if(_0x582ef8&&_0x582ef8['is']('element','caption'))return{'type':'insertion'==_0x512eb1['type']?'addObject':'removeObject','element':_0x582ef8,'quantity':0x1};}}),_0x4bdadf['descriptionFactory']['registerDescriptionCallback'](_0x356e9b=>'formatBlock'==_0x356e9b['type']&&'convertInlineImageToBlock'==_0x356e9b['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x356e9b['type']&&'convertBlockImageToInline'==_0x356e9b['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x4bdadf['descriptionFactory']['registerDescriptionCallback'](_0xbe05ce=>{if('attribute'!=_0xbe05ce['type'])return;const {data:_0x406641}=_0xbe05ce;if(!_0x406641||'alt'!=_0x406641['key'])return;const _0x44673b=_0x406641['newValue'];return _0x44673b?{'type':'format','content':o(_0x717bd1,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x44673b+'\x22')}:{'type':'format','content':o(_0x717bd1,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5b1fa1=this['editor'],_0x2d4e50=_0x5b1fa1['locale'];_0x5b1fa1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3702cf=>{if('formatBlock'!=_0x3702cf['type']&&'formatInline'!=_0x3702cf['type'])return;const {data:_0x473b58}=_0x3702cf;if(_0x473b58){if('imageTextAlternative'==_0x473b58['commandName']){const _0x426163=_0x473b58['commandParams'][0x0]['newValue'];return _0x426163?{'type':'format','content':o(_0x2d4e50,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x426163+'\x22')}:{'type':'format','content':o(_0x2d4e50,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x473b58['commandName']){const _0x1f201e=_0x473b58['commandParams'][0x0]['width'];return _0x1f201e?{'type':'format','content':o(_0x2d4e50,'*Set\x20image\x20width:*\x20%0',_0x1f201e)}:{'type':'format','content':o(_0x2d4e50,'*Reset\x20image\x20width*')};}}});}}class rt extends _0x538eb2{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x246589=this['editor']['locale'],_0x4476d7=this['editor']['plugins']['get']('TrackChangesEditing');_0x4476d7['enableDefaultAttributesIntegration']('replaceImageSource'),_0x4476d7['registerBlockAttribute']('src'),_0x4476d7['descriptionFactory']['registerDescriptionCallback'](_0xd021aa=>{if('attribute'!=_0xd021aa['type'])return;const {data:_0x22ead7}=_0xd021aa;return _0x22ead7&&'src'==_0x22ead7['key']?_0x22ead7['newValue']&&_0x22ead7['oldValue']?{'type':'format','content':o(_0x246589,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x54628b=this['editor']['plugins']['get']('TrackChangesEditing');_0x54628b['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x54628b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x54628b['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x54628b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3ce19a=this['editor'],_0x1b2e8b=_0x3ce19a['locale'];_0x3ce19a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5891e6=>{if('formatBlock'!=_0x5891e6['type']&&'formatInline'!=_0x5891e6['type'])return;const {data:_0x569a98}=_0x5891e6;if(!_0x569a98||'replaceImageSource'!=_0x569a98['commandName'])return;return{'type':'format','content':o(_0x1b2e8b,'*Format:*\x20replace\x20image\x20URL')};});}}class at extends _0x538eb2{['afterInit'](){const _0x509aa7=this['editor'];if(!_0x509aa7['plugins']['has']('ImageStyleEditing'))return;const _0x1bf153=_0x509aa7['plugins']['get']('TrackChangesEditing'),_0x3ce9fd=_0x509aa7['plugins']['get']('ImageUtils'),_0x1d1389={};_0x1bf153['enableCommand']('imageStyle',(_0x5ef6aa,_0x34e407)=>{const _0x2cdc68=_0x509aa7['plugins']['get']('Users')['me'],_0x3c1d66=_0x509aa7['commands']['get']('imageStyle');let _0x6895da=_0x3ce9fd['getClosestSelectedImageElement'](_0x509aa7['model']['document']['selection']),_0x28e176=_0x509aa7['model']['createRangeOn'](_0x6895da),_0x1462e5=_0x3c1d66['value'];if(_0x1462e5==_0x34e407['value'])return;const _0x5603ba={'commandName':'imageStyle','commandParams':[_0x34e407],'formatGroupId':_0x30b629()};_0x509aa7['model']['change'](()=>{if(_0x1bf153['getSuggestions']()['filter'](_0x50ffe5=>_0x50ffe5['isInContent']&&_0x2cdc68==_0x50ffe5['author']&&('formatBlock'==_0x50ffe5['type']||'formatInline'==_0x50ffe5['type'])&&('imageStylePreApply'==_0x50ffe5['subType']||'imageStylePostApply'==_0x50ffe5['subType'])&&_0x50ffe5['getFirstRange']()['isEqual'](_0x28e176))['forEach'](_0x5ba68c=>_0x1bf153['discardSuggestion'](_0x5ba68c['head'])),_0x6895da=_0x3ce9fd['getClosestSelectedImageElement'](_0x509aa7['model']['document']['selection']),_0x28e176=_0x509aa7['model']['createRangeOn'](_0x6895da),_0x3c1d66['refresh'](),_0x509aa7['commands']['get']('imageTypeInline')['refresh'](),_0x509aa7['commands']['get']('imageTypeBlock')['refresh'](),_0x1462e5=_0x3c1d66['value'],_0x1462e5!=_0x34e407['value'])return _0x3ce9fd['isInlineImage'](_0x6895da)&&_0x3c1d66['shouldConvertImageType'](_0x34e407['value'],_0x6895da)?(_0x5ef6aa({..._0x34e407,'setImageSizes':!0x1}),_0x6895da=_0x3ce9fd['getClosestSelectedImageElement'](_0x509aa7['model']['document']['selection']),void _0x1bf153['markBlockFormat'](_0x6895da,{..._0x5603ba,'commandReversedParams':[{'value':_0x1462e5||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x3ce9fd['isBlockImage'](_0x6895da)?_0x1bf153['markBlockFormat'](_0x6895da,_0x5603ba,[],'imageStylePostApply'):_0x1bf153['markInlineFormat'](_0x28e176,_0x5603ba,'imageStylePostApply'));});});for(const _0x3c6a0f of _0x509aa7['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x1d1389[_0x3c6a0f['name']]=_0x3c6a0f['title']['toLowerCase']();_0x1bf153['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x1bf153['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x1bf153['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x1bf153['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x19d779])=>{_0x3ce9fd['setImageNaturalSizeAttributes'](_0x19d779['getContainedElement']());}),_0x1bf153['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x3684f4,_0xca3025)=>{_0x1bf153['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x3684f4,{'commandName':_0xca3025['commandName'],'commandParams':_0xca3025['commandReversedParams']});}),_0x1bf153['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x5eff5e,_0x348030){if(_0x515ad9(_0x5eff5e,_0x348030))return[_0x5eff5e,_0x348030];if(_0x515ad9(_0x348030,_0x5eff5e))return[_0x348030,_0x5eff5e];return null;});const _0x19de3e=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x515ad9(_0x3a246c,_0x128ff9){const _0x871ad5=_0x19de3e['findIndex'](({type:_0x4689db,subType:_0xf18c56})=>_0x3a246c['type']==_0x4689db&&_0x3a246c['subType']==_0xf18c56),_0x4a6577=_0x19de3e['findIndex'](({type:_0x49dfe2,subType:_0xafb854})=>_0x128ff9['type']==_0x49dfe2&&_0x128ff9['subType']==_0xafb854);if(_0x871ad5<0x0||_0x4a6577<0x0)return!0x1;const _0x60e386=_0x3a246c['getFirstRange'](),_0x47d13b=_0x128ff9['getFirstRange']();if((0x0==_0x871ad5||0x1==_0x871ad5)&&0x2==_0x4a6577&&_0x60e386['isIntersecting'](_0x47d13b))return!0x0;if(0x2==_0x871ad5&&0x3==_0x4a6577){const _0x256898=_0x1bf153['_findSuggestions'](_0x60e386,'insertion')['filter'](({suggestion:_0x4c9457,meta:_0x4753a3})=>_0x4753a3['isOwn']&&'convertInlineImageToBlock'==_0x4c9457['subType']);if(_0x256898['length']>0x1&&_0x47d13b['end']['isEqual'](_0x60e386['start']))return!0x0;if(0x1==_0x256898['length']&&(_0x60e386['start']['isEqual'](_0x47d13b['end'])||_0x60e386['end']['isEqual'](_0x47d13b['start'])))return!0x0;}if(0x3==_0x871ad5&&0x3==_0x4a6577&&_0x60e386['start']['isBefore'](_0x47d13b['start'])){const _0x394102=_0x60e386['end']['nodeAfter'],_0x4df9c9=_0x47d13b['start']['nodeBefore'];return _0x3ce9fd['isBlockImage'](_0x394102)&&_0x394102===_0x4df9c9;}return!0x1;}_0x509aa7['model']['document']['registerPostFixer'](()=>{let _0x43a184=!0x1;const _0x458b75=Array['from'](_0x509aa7['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5d3817,data:_0x89a3eb}of _0x458b75){const {group:_0x3c43a8,type:_0x395ef6,subType:_0x5c595f,id:_0x476b65}=_0x1bf153['_splitMarkerName'](_0x5d3817);if('suggestion'==_0x3c43a8&&_0x1bf153['hasSuggestion'](_0x476b65)){if('formatBlock'==_0x395ef6&&('imageStylePreApply'==_0x5c595f||'imageStylePostApply'==_0x5c595f)){const _0x412532=_0x1bf153['getSuggestion'](_0x476b65);if(_0x89a3eb['newRange']){const _0x10c258=_0x412532['getFirstRange']()['getContainedElement']();if(_0x3ce9fd['isBlockImage'](_0x10c258))continue;_0x1bf153['discardSuggestion'](_0x412532),_0x43a184=!0x0;}}if('insertion'==_0x395ef6&&'imageCaption'==_0x5c595f&&!_0x89a3eb['newRange']){const _0x500011=_0x1bf153['getSuggestion'](_0x476b65);_0x500011['next']&&_0x500011['next']['isInContent']&&(_0x1bf153['discardSuggestion'](_0x500011['next']),_0x43a184=!0x0);}}}return _0x43a184;}),this['_registerLegacyDescription'](_0x1d1389);}['_registerLegacyDescription'](_0xac338e){const _0xf5bbf=this['editor'],_0x3e1711=_0xf5bbf['locale'];_0xf5bbf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e7fcd=>{if('formatBlock'!=_0x3e7fcd['type']&&'formatInline'!=_0x3e7fcd['type'])return;const {data:_0x40486b}=_0x3e7fcd;if(!_0x40486b||'imageStyle'!=_0x40486b['commandName'])return;const _0x145f70=_0x40486b['commandParams'][0x0]['value'];return _0x1cab9b('side'===_0x145f70?o(_0x3e1711,'FORMAT_SIDE_IMAGE'):_0xac338e[_0x145f70]||_0x145f70);function _0x1cab9b(_0x3a3e3d){return{'type':'format','content':o(_0x3e1711,'*Format:*\x20%0',_0x3a3e3d)};}});}}class ct extends _0x538eb2{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0xb52bb3){super(_0xb52bb3),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x4d330c=this['editor'],_0x14cfbe=_0x4d330c['commands']['get']('importWord'),_0x4c68dd=_0x4d330c['commands']['get']('trackChanges');_0x14cfbe&&(_0x14cfbe['on']('execute',(_0xe6105a,[,_0x1c7f68])=>{this['_trackChangesValueDuringImport']=_0x4c68dd['value'],_0x1c7f68['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x14cfbe,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x14cfbe,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x4c68dd['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x4d330c['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x5e3d07,_0x3e1db0){const {suggestions:_0x5efe25}=_0x3e1db0,_0x57ffea=this['editor']['commands']['get']('trackChanges'),_0x55b072=_0x57ffea['value'];this['_trackChangesValueDuringImport']!==_0x55b072&&(_0x57ffea['execute'](),this['_trackChangesExecuted']=!0x0),_0x5efe25&&_0x5efe25['forEach'](({id:_0x3fcbd0,type:_0x538ae7,author:_0x3482fd,created_at:_0x2027a8})=>{const _0x3228f1={'id':_0x3fcbd0,'type':_0x538ae7,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x3482fd,'createdAt':_0x2027a8?new Date(_0x2027a8):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x3228f1);});}}class ut extends _0x538eb2{['afterInit'](){const _0x35d0c2=this['editor'],_0x17157c=_0x35d0c2['plugins']['get']('TrackChangesEditing');if(_0x35d0c2['plugins']['has']('IndentEditing')&&(_0x17157c['enableCommand']('indent'),_0x17157c['enableCommand']('outdent')),_0x35d0c2['plugins']['has']('IndentBlock')){for(const _0x5bd202 of['indentBlock','outdentBlock'])_0x17157c['enableDefaultAttributesIntegration'](_0x5bd202);}const _0x49ec24=_0x35d0c2['locale'];_0x17157c['registerBlockAttribute']('blockIndent'),_0x17157c['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x49ec24,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x820d0b=this['editor'],_0x4bb04b=_0x820d0b['locale'],_0x1ad7fe=_0x820d0b['plugins']['get']('TrackChangesEditing');_0x1ad7fe['descriptionFactory']['registerDescriptionCallback'](_0x23ced4=>{if('formatBlock'!=_0x23ced4['type'])return;const {data:_0x2d7dac}=_0x23ced4;if(!_0x2d7dac)return;if('indentBlock'!=_0x2d7dac['commandName']&&'outdentBlock'!=_0x2d7dac['commandName'])return;const _0x29a94f=_0x23ced4['getItems']()[0x0],_0x9b3de8=_0x1ad7fe['descriptionFactory']['getItemLabel'](_0x29a94f);return'indentBlock'==_0x2d7dac['commandName']?{'type':'format','content':o(_0x4bb04b,'*Indent:*\x20%0',_0x9b3de8)}:'outdentBlock'==_0x2d7dac['commandName']?{'type':'format','content':o(_0x4bb04b,'*Outdent:*\x20%0',_0x9b3de8)}:void 0x0;});}}class ft extends _0x538eb2{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x538eb2{['afterInit'](){const _0x493d66=this['editor'];if(!_0x493d66['plugins']['has']('LinkEditing'))return;const _0x4bab2f=_0x493d66['plugins']['get']('TrackChangesEditing'),_0x51d042=_0x493d66['commands']['get']('link');_0x4bab2f['enableDefaultAttributesIntegration']('link'),_0x4bab2f['enableDefaultAttributesIntegration']('unlink'),_0x4bab2f['registerInlineAttribute']('linkHref');for(const _0x2fa139 of _0x51d042['manualDecorators'])_0x4bab2f['registerInlineAttribute'](_0x2fa139['id']),_0x4bab2f['descriptionFactory']['registerAttributeLabel'](_0x2fa139['id'],'link\x20('+_0x2fa139['label']['toLowerCase']()+')');_0x4bab2f['descriptionFactory']['registerDescriptionCallback'](_0x2a2540=>{if('attribute'!=_0x2a2540['type'])return;const {data:_0x2abe33}=_0x2a2540;if(!_0x2abe33||'linkHref'!=_0x2abe33['key'])return;const _0x127119=_0x2abe33['newValue'],_0x45774e=_0x493d66['locale'];return{'type':'format','content':null==_0x127119?o(_0x45774e,'*Remove\x20link*'):o(_0x45774e,'*Set\x20link:*\x20%0','\x22'+_0x127119+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2c945f=this['editor'],_0x23a562=_0x2c945f['locale'];_0x2c945f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x27c83f=>{if('formatInline'!=_0x27c83f['type'])return;const {data:_0xace739}=_0x27c83f;if(_0xace739){if('link'==_0xace739['commandName']){const _0x3ce123=_0xace739['commandParams'][0x0];return{'type':'format','content':o(_0x23a562,'*Set\x20link:*\x20%0','\x22'+_0x3ce123+'\x22')};}return'unlink'==_0xace739['commandName']?{'type':'format','content':o(_0x23a562,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x538eb2{['afterInit'](){const _0x158624=this['editor'],_0x93d2a3=_0x158624['locale'];if(!_0x158624['plugins']['has']('LegacyListEditing'))return;const _0xf34dd7=_0x158624['plugins']['get']('TrackChangesEditing'),_0x5c710a=_0x158624['plugins']['has']('LegacyTodoListEditing');function _0x3b0bee(_0x28f611){return()=>{const _0x2b9bb6=_0x158624['model']['document']['selection'],_0x11641c=_0x158624['commands']['get'](_0x28f611);if(_0x11641c['value'])return void _0x158624['execute']('paragraph',{});const _0x376dad=_0x28f611['slice'](0x0,-0x4),_0x2c11fd=function(_0x5a33c2,_0x4eea23,_0x2cc07b){let _0x539582=Array['from'](_0x5a33c2)['filter'](_0x2ba18c=>function(_0x46fa97,_0x5eefb4){return _0x5eefb4['checkChild'](_0x46fa97['parent'],'listItem')&&!_0x5eefb4['isObject'](_0x46fa97);}(_0x2ba18c,_0x2cc07b));_0x539582=_0x539582['filter'](_0x2df826=>!_0x2df826['is']('element','listItem')||_0x2df826['getAttribute']('listType')!=_0x4eea23);const _0x424257=new Set();for(const _0x2bd8ba of _0x539582)_0x2bd8ba['is']('element','listItem')?_0x424257['add'](Le(_0x2bd8ba)):_0x424257['add'](_0x2bd8ba);return Array['from'](_0x424257);}(_0x2b9bb6['getSelectedBlocks'](),_0x376dad,_0x158624['model']['schema']);_0x158624['model']['change'](()=>{for(const _0xaeb35b of _0x2c11fd)_0xf34dd7['markBlockFormat'](_0xaeb35b,{'commandName':_0x28f611,'commandParams':[{'forceValue':!_0x11641c['value']}],'formatGroupId':'blockName'},Ee(_0xaeb35b));});};}function _0x187ab8(_0x39410e){return()=>{const _0x4b659b=function(_0x518a68){let _0xa110bb=Array['from'](_0x518a68);const _0x43c3fe=_0xa110bb['findIndex'](_0x213906=>'listItem'!=_0x213906['name']);return _0x43c3fe>-0x1&&(_0xa110bb=_0xa110bb['slice'](0x0,_0x43c3fe)),_0xa110bb;}(_0x158624['model']['document']['selection']['getSelectedBlocks']()),_0x67a30b=_0x158624['model']['createRange'](_0x158624['model']['createPositionAt'](_0x4b659b[0x0],'before'),_0x158624['model']['createPositionAt'](_0x4b659b[_0x4b659b['length']-0x1],'end'));_0x158624['model']['change'](()=>{_0xf34dd7['markBlockFormat'](_0x67a30b,{'commandName':_0x39410e,'commandParams':[],'formatGroupId':'listIndent'},function(_0x28ba7a){const _0x202785=new Set();for(const _0x5ef6d4 of _0x28ba7a){let _0x7b4ceb=_0x5ef6d4['nextSibling'];for(;_0x7b4ceb&&_0x7b4ceb['getAttribute']('listIndent')>_0x5ef6d4['getAttribute']('listIndent');)_0x202785['add'](_0x7b4ceb),_0x7b4ceb=_0x7b4ceb['nextSibling'];}return Array['from'](_0x202785);}(_0x4b659b));});};}_0xf34dd7['enableCommand']('numberedList',_0x3b0bee('numberedList')),_0xf34dd7['enableCommand']('bulletedList',_0x3b0bee('bulletedList')),_0x5c710a&&_0xf34dd7['enableCommand']('todoList',_0x3b0bee('todoList')),_0xf34dd7['enableCommand']('indentList',_0x187ab8('indentList')),_0xf34dd7['enableCommand']('outdentList',_0x187ab8('outdentList')),_0x5c710a&&_0xf34dd7['enableCommand']('checkTodoList',()=>{const _0x1e86e5=_0x158624['commands']['get']('checkTodoList'),_0x49eea2=Array['from'](_0x1e86e5['_selectedElements']);_0x49eea2['filter'](_0x241a56=>_0x241a56['getAttribute']('todoListChecked')!=_0x1e86e5['value']),_0x158624['model']['change'](()=>{for(const _0x24b01f of _0x49eea2)_0xf34dd7['markBlockFormat'](_0x24b01f,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x1e86e5['value']}]});});}),_0xf34dd7['descriptionFactory']['registerElementLabel']('listItem',_0x85290a=>o(_0x93d2a3,'ELEMENT_LIST_ITEM',_0x85290a)),_0xf34dd7['descriptionFactory']['registerDescriptionCallback'](_0x1380a2=>{if('formatBlock'!=_0x1380a2['type']&&'formatInline'!=_0x1380a2['type'])return;const {data:_0x5538bb}=_0x1380a2;if(_0x5538bb){if('numberedList'==_0x5538bb['commandName']||'bulletedList'==_0x5538bb['commandName']||'todoList'==_0x5538bb['commandName'])switch(_0x5538bb['commandName']['replace']('List','')){case'bulleted':return _0x574aa8(o(_0x93d2a3,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x574aa8(o(_0x93d2a3,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x574aa8(o(_0x93d2a3,'ELEMENT_TODO_LIST'));}if('indentList'==_0x5538bb['commandName'])return{'type':'format','content':o(_0x93d2a3,'*Indent:*\x20%0',o(_0x93d2a3,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x5538bb['commandName'])return{'type':'format','content':o(_0x93d2a3,'*Outdent:*\x20%0',o(_0x93d2a3,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x5538bb['commandName'])return _0x5538bb['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x93d2a3,'*Check\x20item*')}:{'type':'format','content':o(_0x93d2a3,'*Uncheck\x20item*')};}function _0x574aa8(_0x2184d0){return{'type':'format','content':o(_0x93d2a3,'*Change\x20to:*\x20%0',_0x2184d0)};}});}}function Le(_0x4fc359){const _0x302c13=_0x4fc359['getAttribute']('listIndent');if(0x0==_0x302c13)return _0x4fc359;let _0xe765fe=_0x4fc359;for(;_0x4fc359['previousSibling']&&_0x4fc359['previousSibling']['is']('element','listItem');){const _0x32b2b2=_0x4fc359['previousSibling']['getAttribute']('listIndent');if(_0x32b2b2==_0x302c13)_0xe765fe=_0x4fc359['previousSibling'];else{if(_0x32b2b2<_0x302c13)break;}_0x4fc359=_0x4fc359['previousSibling'];}return _0xe765fe;}function Ee(_0x3fa135){const _0x224928=[];if(_0x3fa135['is']('element','listItem')&&_0x3fa135['getAttribute']('listIndent')>0x0){let _0x537dc6=_0x3fa135['nextSibling'];for(;_0x537dc6&&'listItem'==_0x537dc6['name']&&_0x537dc6['getAttribute']('listIndent')==_0x3fa135['getAttribute']('listIndent');)_0x224928['push'](_0x537dc6),_0x537dc6=_0x537dc6['nextSibling'];}return _0x224928;}class Q extends _0x538eb2{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x28b070=this['editor']['config']['get']('list.properties'),_0x1e0ebb=this['editor']['plugins']['get']('TrackChangesEditing');_0x28b070['styles']&&_0x1e0ebb['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x28b070['reversed']&&_0x1e0ebb['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x28b070['startIndex']&&_0x1e0ebb['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x1e0ebb['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x5be22f,_0x2c5532={}){const _0x1dc9b2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2b8ae3=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x1dc9b2['markMultiRangeBlockFormat'](_0x2b8ae3,{'commandName':'listStyle','commandParams':[{'type':_0x2c5532['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x2c1601,_0x3e6ced={}){const _0xb9f88d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4ddb7f=this['_getSuggestionBlocks'](_0x46e6a5=>_0x46e6a5['is']('element','listItem')&&'numbered'===_0x46e6a5['getAttribute']('listType'));if(_0x4ddb7f['length']<0x1)return;const _0x16b73b=_0x4ddb7f['map'](_0x242e9a=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x242e9a,'before'),this['editor']['model']['createPositionAt'](_0x242e9a,0x0)));this['editor']['model']['change'](()=>{_0xb9f88d['markMultiRangeBlockFormat'](_0x16b73b,{'commandName':'listReversed','commandParams':[{'reversed':_0x3e6ced['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x314ff3,_0x26d706={}){const _0x7e82d1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x423d34=this['_getSuggestionBlocks'](_0x8212bb=>_0x8212bb['is']('element','listItem')&&'numbered'===_0x8212bb['getAttribute']('listType'));if(_0x423d34['length']<0x1)return;const _0x520c5d=_0x423d34['map'](_0x20edac=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x20edac,'before'),this['editor']['model']['createPositionAt'](_0x20edac,0x0)));this['editor']['model']['change'](()=>{_0x7e82d1['markMultiRangeBlockFormat'](_0x520c5d,{'commandName':'listStart','commandParams':[{'startIndex':_0x26d706['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x36652b){if('formatBlock'!=_0x36652b['type']&&'formatInline'!=_0x36652b['type'])return;const _0x3a18f2=this['editor']['locale'],{data:_0x40765c}=_0x36652b;if(!_0x40765c)return;let _0xcc8a3d,_0x5ac8f6;switch(_0x40765c['commandName']){case'listStyle':_0xcc8a3d='*Change\x20to:*\x20%0',_0x5ac8f6={'type':'format','content':o(_0x3a18f2,_0xcc8a3d,o(_0x3a18f2,this['_getTranslationKeyForListStyle'](_0x40765c['commandParams'][0x0]['type'])))};break;case'listReversed':_0xcc8a3d=_0x40765c['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5ac8f6={'type':'format','content':o(_0x3a18f2,_0xcc8a3d)};break;case'listStart':_0xcc8a3d='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5ac8f6={'type':'format','content':o(_0x3a18f2,_0xcc8a3d,_0x40765c['commandParams'][0x0]['startIndex'])};}return _0x5ac8f6;}['_getSuggestionBlocksForListStyle'](){const _0x10e21e=this['editor']['plugins']['get']('LegacyListUtils');let _0x43a847=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x43a847[0x0]?.['is']('element','listItem')&&_0x43a847['unshift'](..._0x10e21e['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x43a847[_0x43a847['length']-0x1]?.['is']('element','listItem')&&_0x43a847['push'](..._0x10e21e['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x43a847=[...new Set(_0x43a847)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x43a847=_0x43a847['filter'](_0x392576=>_0x392576['is']('element','listItem'))),_0x43a847;}['_getSuggestionBlocks'](_0x2ca9f9){const _0x1fd853=this['editor']['plugins']['get']('LegacyListUtils');let _0x45e8a7=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x2ca9f9)['map'](_0xac7fcc=>{const _0x3a0b3e=this['editor']['model']['createPositionAt'](_0xac7fcc,0x0);return[..._0x1fd853['getSiblingNodes'](_0x3a0b3e,'backward'),..._0x1fd853['getSiblingNodes'](_0x3a0b3e,'forward')];})['flat']();return _0x45e8a7=[...new Set(_0x45e8a7)],_0x45e8a7;}['_getTranslationKeyForListStyle'](_0x265ab9){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x265ab9)||'default')['toUpperCase']()+'_LIST_'+_0x265ab9['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x538eb2{['afterInit'](){const _0x276815=this['editor'];if(!_0x276815['plugins']['has']('MediaEmbedEditing'))return;const _0x4b9c23=_0x276815['plugins']['get']('TrackChangesEditing'),_0x30723e=_0x276815['locale'];_0x4b9c23['enableCommand']('mediaEmbed'),_0x4b9c23['descriptionFactory']['registerElementLabel']('media',_0xf60b79=>o(_0x30723e,'ELEMENT_MEDIA',_0xf60b79)),_0x276815['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0xa12da7,{writer:_0x5e92fc,options:_0x5d7d60})=>{if(_0x5d7d60['showSuggestionHighlights'])return _0x5e92fc['createEmptyElement']('div');},'converterPriority':'high'}),_0x276815['data']['downcastDispatcher']['on']('attribute:url:media',(_0x2bb856,_0x16c6d8,_0x5cf4e9)=>{_0x5cf4e9['options']['showSuggestionHighlights']&&_0x2bb856['stop']();},{'priority':'high'});}}class mt extends _0x538eb2{['afterInit'](){const _0x59c2b6=this['editor'];_0x59c2b6['plugins']['has']('MentionEditing')&&_0x59c2b6['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class pt extends _0x538eb2{['afterInit'](){const _0x2160a7=this['editor'];if(!_0x2160a7['plugins']['has']('MergeFieldsEditing'))return;const _0x4e6aea=_0x2160a7['plugins']['get']('TrackChangesEditing'),_0x1e8502=_0x2160a7['locale'];_0x4e6aea['enableCommand']('insertMergeField'),_0x4e6aea['enableCommand']('insertMergeFieldBlock'),_0x4e6aea['enableCommand']('insertMergeFieldImage'),_0x4e6aea['descriptionFactory']['registerElementLabel']('mergeField',_0x1fcfb3=>o(_0x1e8502,'ELEMENT_MERGE_FIELD',_0x1fcfb3)),_0x4e6aea['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x388b2b=>o(_0x1e8502,'ELEMENT_MERGE_FIELD',_0x388b2b)),_0x4e6aea['descriptionFactory']['registerDescriptionCallback'](_0x201719=>{if('insertion'!=_0x201719['type']&&'deletion'!=_0x201719['type'])return;const _0x1cf2fd=_0x201719['getContainedElement']();if(null==_0x1cf2fd)return;const _0x4174ac=_0x2160a7['plugins']['get']('MergeFieldsEditing');let _0xd2f3e3;switch(_0x4174ac['getMergeFieldType'](_0x1cf2fd)){case null:return;case'image':{const _0x18d59b=_0x4174ac['unwrapAffixes'](_0x1cf2fd['getAttribute']('src'));_0xd2f3e3=_0x4174ac['getLabel'](_0x18d59b)||_0x18d59b;break;}default:{const _0x34b5f7=_0x1cf2fd['getAttribute']('id');_0xd2f3e3=_0x4174ac['getLabel'](_0x34b5f7)||_0x34b5f7;break;}}return'insertion'==_0x201719['type']?{'type':'insertion','content':o(_0x1e8502,'*Insert:*\x20%0','\x22'+_0xd2f3e3+'\x22\x20'+o(_0x1e8502,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x1e8502,'*Remove:*\x20%0','\x22'+_0xd2f3e3+'\x22\x20'+o(_0x1e8502,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x538eb2{['afterInit'](){const _0x229168=this['editor'],_0x50193f=_0x229168['plugins']['get']('TrackChangesEditing');_0x229168['plugins']['has']('MultiLevelList')&&(_0x50193f['enableDefaultAttributesIntegration']('multiLevelList'),_0x50193f['registerBlockAttribute']('listMarkerStyle'),_0x50193f['descriptionFactory']['registerDescriptionCallback'](_0x2b4cd5=>this['handleDescriptions'](_0x2b4cd5)));}['handleDescriptions'](_0x2fc12e){const _0x3c15f0=this['editor']['locale'],{data:_0x2948af}=_0x2fc12e,_0x15085d={'type':'format','content':''};if(_0x2948af&&'listMarkerStyle'==_0x2948af['key']){if(!_0x2948af['oldValue'])return{'type':'format','content':o(_0x3c15f0,'*Set\x20format:*\x20%0',o(_0x3c15f0,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2948af['newValue']+')'};if(!_0x2948af['newValue']){let _0x3b5cc2=_0x2fc12e['head'];for(;_0x3b5cc2;){if(_0x3b5cc2['data']&&'listType'==_0x3b5cc2['data']['key']&&_0x3b5cc2['data']['newValue'])return _0x15085d;_0x3b5cc2=_0x3b5cc2['next'];}return{'type':'format','content':o(_0x3c15f0,'*Remove\x20format:*\x20%0',o(_0x3c15f0,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2948af['oldValue']+')'};}}}}class kt extends _0x538eb2{['afterInit'](){const _0x1d3bce=this['editor'];if(!_0x1d3bce['plugins']['has']('PageBreakEditing'))return;_0x1d3bce['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x5e4ef4=_0x1d3bce['plugins']['get']('TrackChangesEditing'),_0x5d58de=_0x1d3bce['locale'];_0x5e4ef4['descriptionFactory']['registerElementLabel']('pageBreak',_0x203156=>o(_0x5d58de,'ELEMENT_PAGE_BREAK',_0x203156));}}class bt extends _0x538eb2{['afterInit'](){const _0x3d882d=this['editor'];if(!_0x3d882d['plugins']['has']('Paragraph'))return;const _0x98fe48=_0x3d882d['locale'],_0x308bc1=_0x3d882d['plugins']['get']('TrackChangesEditing');_0x308bc1['descriptionFactory']['registerElementLabel']('paragraph',_0x2fec75=>o(_0x98fe48,'ELEMENT_PARAGRAPH',_0x2fec75)),_0x308bc1['enableDefaultAttributesIntegration']('paragraph'),_0x308bc1['enableCommand']('insertParagraph'),_0x3d882d['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x3d882d),{'priority':'highest'}),_0x3d882d['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x189b76,_0x22ccbd,_0x5bcb5e)=>{_0x5bcb5e['options']['showSuggestionHighlights']&&nr(_0x3d882d,{'showActiveMarker':!0x1})(_0x189b76,_0x22ccbd,_0x5bcb5e);},{'priority':'highest'});const _0x34d3e6=_0x308bc1['descriptionFactory'];_0x34d3e6['registerDescriptionCallback'](_0x242c30=>{if('insertion'!==_0x242c30['type'])return;const {start:_0x3686f9,end:_0x331ae7}=_0x242c30['getFirstRange']();if(!_0x3686f9['isTouching'](_0x331ae7)||!_0x3686f9['nodeAfter'])return;const _0x36238a=_0x3d882d['model']['schema'],_0x4c76b4=_0x3686f9['nodeAfter'];return _0x36238a['isBlock'](_0x4c76b4)&&!_0x36238a['isLimit'](_0x4c76b4)&&_0x36238a['checkChild'](_0x4c76b4,'$text')?{'type':'insertion','content':o(_0x98fe48,'*Insert:*\x20%0',_0x34d3e6['getItemLabel'](_0x4c76b4,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x117b15=this['editor'],_0x4d8729=_0x117b15['locale'];_0x117b15['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2420ab=>{if('formatBlock'!=_0x2420ab['type'])return;const {data:_0x414150}=_0x2420ab;return _0x414150&&'paragraph'==_0x414150['commandName']?{'type':'format','content':o(_0x4d8729,'*Change\x20to:*\x20%0',o(_0x4d8729,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x1efe36,{showActiveMarker:_0x410baf=!0x0}={}){return(_0x5c4e98,_0x16c4ca,_0x120c1a)=>{const _0x5256b1=_0x1efe36['plugins']['get']('TrackChangesEditing'),_0x39a5bb=_0x16c4ca['markerRange']['start'],_0x22a45a=_0x16c4ca['markerRange']['end'],_0x557661=_0x1efe36['model']['schema'];if(!_0x39a5bb['isTouching'](_0x22a45a)||!_0x39a5bb['nodeAfter'])return;const _0x266e4a=_0x39a5bb['nodeAfter'];if(_0x557661['isBlock'](_0x266e4a)&&!_0x557661['isLimit'](_0x266e4a)&&_0x557661['checkChild'](_0x266e4a,'$text')){if(!_0x120c1a['consumable']['consume'](_0x16c4ca['markerRange'],_0x5c4e98['name']))return;const {authorId:_0x285f68}=_0x5256b1['_splitMarkerName'](_0x16c4ca['markerName']),_0x2e73b5=_0x120c1a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x285f68}),_0x174dbc=_0x120c1a['mapper']['toViewPosition'](_0x22a45a);_0x410baf&&_0x5256b1['activeMarkers']['includes'](_0x16c4ca['markerName'])&&_0x120c1a['writer']['addClass']('ck-suggestion-marker--active',_0x2e73b5),_0x120c1a['writer']['insert'](_0x174dbc,_0x2e73b5),_0x120c1a['mapper']['bindElementToMarker'](_0x2e73b5,_0x16c4ca['markerName']);}};}class yt extends _0x538eb2{['afterInit'](){const _0x541cd4=this['editor'];if(!_0x541cd4['plugins']['has']('RemoveFormatEditing'))return;_0x541cd4['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x251524=this['editor'];_0x251524['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x31e6ac=>{if('formatBlock'!=_0x31e6ac['type']&&'formatInline'!=_0x31e6ac['type'])return;const {data:_0x15ed15}=_0x31e6ac;return _0x15ed15&&'removeFormat'==_0x15ed15['commandName']?{'type':'format','content':o(_0x251524['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class jt extends _0x538eb2{['afterInit'](){const _0x3b4e01=this['editor'];if(!_0x3b4e01['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x6b85de=_0x3b4e01['plugins']['get']('TrackChangesEditing');_0x6b85de['enableCommand']('goToPreviousRestrictedEditingException'),_0x6b85de['enableCommand']('goToNextRestrictedEditingException');const _0x5b8778=_0x3b4e01['plugins']['get']('RestrictedEditingModeEditing');_0x5b8778['enableCommand']('trackChanges'),_0x5b8778['enableCommand']('acceptSuggestion'),_0x5b8778['enableCommand']('discardSuggestion'),_0x5b8778['enableCommand']('acceptAllSuggestions'),_0x5b8778['enableCommand']('discardAllSuggestions'),_0x5b8778['enableCommand']('acceptSelectedSuggestions'),_0x5b8778['enableCommand']('discardSelectedSuggestions');}}class St extends _0x538eb2{static get['requires'](){return[_0x5cf5b9];}['init'](){const _0x508f61=this['editor'],_0x12a580=_0x508f61['plugins']['get']('TrackChangesEditing');_0x12a580['enableCommand']('shiftEnter'),_0x508f61['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x508f61),{'priority':'high'}),_0x508f61['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x508f61),{'priority':'high'}),_0x508f61['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x51ce4b,_0x123553,_0x55e4fd)=>{_0x55e4fd['options']['showSuggestionHighlights']&&je(_0x508f61,{'showActiveMarker':!0x1})(_0x51ce4b,_0x123553,_0x55e4fd);}),_0x12a580['descriptionFactory']['registerElementLabel']('softBreak',_0x510899=>o(_0x508f61['locale'],'ELEMENT_LINE_BREAK',_0x510899));}}function je(_0x4afcc5,{showActiveMarker:_0x1deeca=!0x0}={}){return(_0x2f992d,_0x2a6707,_0x16c3a9)=>{const _0x571572=_0x4afcc5['plugins']['get']('TrackChangesEditing');if(!_0x16c3a9['consumable']['test'](_0x2a6707['markerRange'],_0x2f992d['name']))return;const _0x55b00a=_0x4afcc5['model'];for(const _0x253f33 of _0x2a6707['markerRange']['getItems']()){if(!_0x253f33['is']('element','softBreak'))continue;const _0x185418='deletion'==_0x2a6707['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x44e5c9}=_0x571572['_splitMarkerName'](_0x2a6707['markerName']),_0x451b1f=_0x16c3a9['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x185418,'data-author-id':_0x44e5c9}),_0x98d3b2=_0x16c3a9['mapper']['toViewPosition'](_0x55b00a['createPositionBefore'](_0x253f33));_0x1deeca&&_0x571572['activeMarkers']['includes'](_0x2a6707['markerName'])&&_0x16c3a9['writer']['addClass']('ck-suggestion-marker--active',_0x451b1f),_0x16c3a9['writer']['insert'](_0x98d3b2,_0x451b1f),_0x16c3a9['mapper']['bindElementToMarker'](_0x451b1f,_0x2a6707['markerName']);}};}class At extends _0x538eb2{['afterInit'](){const _0x33554a=this['editor'],_0x271360=_0x33554a['model'],_0x8c16f5=_0x33554a['locale'];if(!_0x33554a['plugins']['has']('StandardEditingModeEditing'))return;const _0x1babff=_0x33554a['plugins']['get']('TrackChangesEditing'),_0x6d203e='restrictedEditingException',_0x3e105c=_0x33554a['commands']['get'](_0x6d203e);_0x1babff['enableCommand'](_0x6d203e,(_0x412de3,_0x3b347f={})=>{const _0x10afb9=_0x271360['document']['selection'];if(_0x10afb9['isCollapsed'])return void _0x412de3(_0x3b347f);const _0x32d95a=void 0x0!==_0x3b347f['forceValue']?_0x3b347f['forceValue']:!_0x3e105c['value'];_0x271360['change'](()=>{const _0x57126e=Array['from'](_0x10afb9['getRanges']());for(const _0x3d7daf of _0x57126e){const _0x41b3c8=_0x32d95a?[_0x3d7daf]:io(_0x6d203e,_0x3d7daf,_0x271360);for(const _0x1041db of _0x41b3c8)_0x1babff['markInlineFormat'](_0x1041db,{'commandName':_0x6d203e,'commandParams':[{'forceValue':_0x32d95a}]});}});}),_0x1babff['descriptionFactory']['registerDescriptionCallback'](_0x3b7acb=>{if('formatBlock'!=_0x3b7acb['type']&&'formatInline'!=_0x3b7acb['type'])return;const {data:_0x413aed}=_0x3b7acb;return _0x413aed&&_0x413aed['commandName']==_0x6d203e?_0x413aed['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x8c16f5,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x8c16f5,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x538eb2{['afterInit'](){const _0x5e483b=this['editor'];if(!_0x5e483b['plugins']['has']('Style')||!_0x5e483b['plugins']['has']('DataSchema'))return;const _0x546f10=_0x5e483b['plugins']['get']('TrackChangesEditing'),_0x57f70c=_0x5e483b['locale'],_0x123ce0=_0x5e483b['config']['get']('style')||{},_0x34fb0d=_0x5e483b['plugins']['get']('GeneralHtmlSupport'),_0x2aa8b7=_0x5e483b['plugins']['get']('StyleUtils')['normalizeConfig'](_0x5e483b['plugins']['get']('DataSchema'),_0x123ce0['definitions']);_0x546f10['enableDefaultAttributesIntegration']('style');const _0x355eea=new Set();for(const _0x10efc4 of _0x2aa8b7['block']){const _0x200f03=_0x34fb0d['getGhsAttributeNameForElement'](_0x10efc4['element']);_0x355eea['add'](_0x200f03);}const _0x5b3af1=new Set();for(const _0x5b1320 of _0x2aa8b7['inline']){const _0x313df4=_0x34fb0d['getGhsAttributeNameForElement'](_0x5b1320['element']);_0x5b3af1['add'](_0x313df4);for(const _0x27aad2 of _0x5b1320['ghsAttributes'])_0x5b3af1['add'](_0x27aad2);}for(const _0x656c74 of _0x355eea)_0x546f10['registerBlockAttribute'](_0x656c74),_0x546f10['descriptionFactory']['registerAttributeLabel'](_0x656c74,o(_0x57f70c,'FORMAT_STYLE'));for(const _0x653d93 of _0x5b3af1)_0x546f10['registerInlineAttribute'](_0x653d93),_0x546f10['descriptionFactory']['registerAttributeLabel'](_0x653d93,o(_0x57f70c,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x415051=this['editor'],_0x28b105=_0x415051['locale'];_0x415051['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x22bd71=>{if('formatBlock'!=_0x22bd71['type']&&'formatInline'!=_0x22bd71['type'])return;const {data:_0x3cd13d}=_0x22bd71;return _0x3cd13d&&'style'===_0x3cd13d['commandName']?_0x3cd13d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x28b105,'*Set\x20format:*\x20%0',_0x3cd13d['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x28b105,'*Remove\x20format:*\x20%0',_0x3cd13d['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class vt extends _0x538eb2{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x47b7cd){super(_0x47b7cd),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x3038df=this['editor'],_0x6bd462=_0x3038df['model']['document']['selection'];if(!_0x3038df['plugins']['has']('TableEditing'))return;const _0x4e46c2=_0x3038df['locale'],_0x35c894=_0x3038df['plugins']['get']('TrackChangesEditing'),_0x12b70d=_0x3038df['plugins']['get']('TableUtils');_0x35c894['descriptionFactory']['registerElementLabel']('table',_0x265d17=>o(_0x4e46c2,'ELEMENT_TABLE',_0x265d17)),this['_setupColumnsRowsFixing'](),_0x35c894['enableCommand']('insertTable'),_0x35c894['enableCommand']('selectTableRow'),_0x35c894['enableCommand']('selectTableColumn');for(const _0x46f528 of['insertTableRowAbove','insertTableRowBelow']){const _0x10e5c7=_0x3038df['commands']['get'](_0x46f528);_0x35c894['enableCommand'](_0x46f528,_0x3fcb19=>{_0x3038df['model']['change'](_0x3f0306=>{_0x3fcb19();const _0x96ec15='above'===_0x10e5c7['order'],_0x1af79d=_0x12b70d['getSelectionAffectedTableCells'](_0x6bd462),_0x404c6c=_0x12b70d['getRowIndexes'](_0x1af79d),_0x12328c=_0x96ec15?_0x404c6c['first']-0x1:_0x404c6c['last']+0x1,_0x3eaf08=_0x1af79d[0x0]['findAncestor']('table'),_0x40edbd=_0x12b70d['createTableWalker'](_0x3eaf08,{'startRow':_0x12328c,'endRow':_0x12328c}),_0x2afcb2=Array['from'](_0x40edbd)['map'](_0x2292a1=>_0x3f0306['createRangeOn'](_0x2292a1['cell']));_0x35c894['markMultiRangeInsertion'](_0x2afcb2,'tableRow');});});}for(const _0x2d0e71 of['insertTableColumnLeft','insertTableColumnRight']){const _0x43a6cb=_0x3038df['commands']['get'](_0x2d0e71);_0x35c894['enableCommand'](_0x2d0e71,_0xe6ecad=>{_0x3038df['model']['change'](_0x554cc2=>{_0xe6ecad();const _0x174b84='left'===_0x43a6cb['order'],_0x263737=_0x12b70d['getSelectionAffectedTableCells'](_0x6bd462),_0x325399=_0x12b70d['getColumnIndexes'](_0x263737),_0x3e8347=_0x174b84?_0x325399['first']-0x1:_0x325399['last']+0x1,_0x3ce086=_0x263737[0x0]['findAncestor']('table'),_0x39acaa=_0x12b70d['createTableWalker'](_0x3ce086,{'startRow':0x0,'column':_0x3e8347,'includeAllSlots':!0x1}),_0x43303f=Array['from'](_0x39acaa)['map'](_0x19a99b=>_0x554cc2['createRangeOn'](_0x19a99b['cell']));_0x35c894['markMultiRangeInsertion'](_0x43303f,'tableColumn');});});}for(const _0x636fca of['removeTableRow','removeTableColumn']){const _0x5ac91b=_0x636fca['substr'](0xb),_0x3df473=_0x5ac91b['toLowerCase'](),_0x58fad9=_0x3df473['substr'](0x0,0x3)+'span',_0x3b5335='table'+_0x5ac91b,_0x4b2acc='min'+_0x5ac91b,_0x222376='max'+_0x5ac91b;_0x35c894['enableCommand'](_0x636fca,()=>{_0x3038df['model']['change'](_0x23ad89=>{const _0x29237e=_0x12b70d['getSelectionAffectedTableCells'](_0x6bd462),_0x3ae3f2=_0x29237e[0x0]['findAncestor']('table');let _0x461cfd;if('removeTableRow'==_0x636fca){const _0x4271e9=_0x12b70d['getRowIndexes'](_0x29237e);_0x461cfd={'startRow':_0x4271e9['first'],'endRow':_0x4271e9['last'],'includeAllSlots':!0x0};}else{const _0x158e23=_0x12b70d['getColumnIndexes'](_0x29237e);_0x461cfd={'startColumn':_0x158e23['first'],'endColumn':_0x158e23['last'],'includeAllSlots':!0x0};}const _0x5dd8e7=_0x12b70d['createTableWalker'](_0x3ae3f2,_0x461cfd),_0x116acd=Array['from'](_0x5dd8e7)['map'](({cell:_0x4b66f5})=>_0x4b66f5),_0x1357df=Ne(_0x116acd['filter'](_0x16323b=>_0x16323b['hasAttribute'](_0x58fad9))),_0x2a4375=Ne(_0x116acd['filter'](_0x3e2d80=>!_0x3e2d80['hasAttribute'](_0x58fad9)))['map'](_0x5b3727=>_0x23ad89['createRangeOn'](_0x5b3727)),_0x158375=_0x35c894['markMultiRangeDeletion'](_0x2a4375,_0x3b5335);if(_0x158375&&('tableRow'==_0x158375['subType']||'tableColumn'==_0x158375['subType'])){const _0x4924f3=this['_getSuggestionCoords'](_0x158375);for(const _0x7aa0c0 of _0x1357df){const _0x4ff96f=_0x23ad89['createRangeOn'](_0x7aa0c0),_0x182173=_0x12b70d['getCellLocation'](_0x7aa0c0),_0x3d4ec9=_0x7aa0c0['getAttribute'](_0x58fad9)-0x1,_0x3f2c73=_0x4924f3[_0x4b2acc],_0x1e351a=_0x4924f3[_0x222376];_0x3f2c73<=_0x182173[_0x3df473]&&_0x182173[_0x3df473]+_0x3d4ec9<=_0x1e351a&&_0x158375['addRange'](_0x4ff96f);}}});});}function _0x3dd0b3(_0x2eb297){const _0x212021=Array['from'](_0x6bd462['getRanges']())['map'](_0x2eff90=>_0x531fcc['fromRange'](_0x2eff90));_0x3038df['model']['change'](_0x4d4eb8=>{const _0x535798=_0x4d4eb8['batch'];_0x2eb297=_0x2eb297['filter'](_0x2cb4a7=>'$graveyard'!=_0x2cb4a7['root']['rootName']),_0x4d4eb8['setSelection'](_0x2eb297),_0x3038df['commands']['get']('removeTableRow')['refresh'](),_0x3038df['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x3038df['model']['enqueueChange'](()=>{_0x3038df['model']['enqueueChange'](_0x535798,_0x1823ba=>{const _0x2f0ce9=_0x212021['filter'](_0x3259fb=>'$graveyard'!=_0x3259fb['root']['rootName']);_0x2f0ce9['length']>0x0&&_0x1823ba['setSelection'](_0x2f0ce9);for(const _0x3a1a14 of _0x212021)_0x3a1a14['detach']();});});});}function _0x1b6327(_0x434928){_0x3038df['model']['change'](_0x40f8fb=>{const _0x35aeca=Array['from'](_0x6bd462['getRanges']())['map'](_0x1215f6=>_0x531fcc['fromRange'](_0x1215f6)),_0x340117=[];for(const _0x262dda of _0x434928)for(const _0x32e9c2 of _0x262dda['getItems']({'shallow':!0x0}))_0x340117['push'](_0x32e9c2);for(const _0x1db9e4 of _0x340117)'$graveyard'!=_0x1db9e4['root']['rootName']&&(_0x40f8fb['setSelection'](_0x40f8fb['createPositionAt'](_0x1db9e4,0x0)),_0x3038df['commands']['get']('removeTableColumn')['refresh'](),_0x3038df['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x1e0082=_0x35aeca['filter'](_0x128a9d=>'$graveyard'!=_0x128a9d['root']['rootName']);_0x1e0082['length']>0x0&&_0x40f8fb['setSelection'](_0x1e0082);for(const _0x4aeeb6 of _0x35aeca)_0x4aeeb6['detach']();});}function _0x4bd6a6(_0x4d544e,_0x506d61){return _0x506d61['every'](_0x452611=>_0x4d544e['some'](_0x5a1bc5=>_0x5a1bc5['end']['isEqual'](_0x452611['start'])||_0x452611['end']['isEqual'](_0x5a1bc5['start'])));}function _0x2c7eed(_0x3535eb,_0x5697bb){return!_0x3535eb['some'](_0x30b7a6=>_0x5697bb['some'](_0x553773=>_0x30b7a6['isIntersecting'](_0x553773)))&&_0x3535eb['some'](_0x1b1150=>_0x5697bb['some'](_0x3c1151=>_0x1b1150['end']['isTouching'](_0x3c1151['start'])));}_0x3038df['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3433f1,_0x143a2a,_0x2961d6)=>{if(!_0x2961d6['options']['showSuggestionHighlights'])return;const _0x1873a3=_0x143a2a['item'];if(!_0x1873a3)return;const _0x5ecdfa=_0x2961d6['mapper']['toViewElement'](_0x1873a3);function _0x181781(_0x427614){return Array['isArray'](_0x427614)?_0x427614:[_0x427614];}_0x5ecdfa&&'tableCell'===_0x1873a3['name']&&_0x27d1b4(_0x5ecdfa,_0x2961d6['writer'],(_0x281d93,_0x268460,_0x394ea3)=>_0x394ea3['addClass'](_0x181781(_0x268460['classes']),_0x281d93),(_0x4394c2,_0x2d31e2,_0x52bf3f)=>_0x52bf3f['removeClass'](_0x181781(_0x2d31e2['classes']),_0x4394c2));},{'priority':'highest'}),_0x35c894['descriptionFactory']['registerDescriptionCallback'](_0x6fb66e=>{if('insertion'!=_0x6fb66e['type']&&'deletion'!=_0x6fb66e['type'])return;const _0x759c13=_0x6fb66e['getContainedElement']();if(null!=_0x759c13&&_0x759c13['is']('element','table')){if('insertion'==_0x6fb66e['type']){const _0x1026cc=_0x6fb66e['getItems']()['filter'](_0x505a0a=>_0x505a0a['is']('$textProxy'))['map'](_0x5c99ef=>_0x5c99ef['data']);if(_0x1026cc['length'])return{'type':'insertion','content':o(_0x4e46c2,'*Insert:*\x20%0',o(_0x4e46c2,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1026cc['join']('\x20')+'\x22'))};}if('deletion'==_0x6fb66e['type']){const _0xce1b2e=_0x6fb66e['getItems']()['filter'](_0x18cdf7=>_0x18cdf7['is']('$textProxy'))['map'](_0x34ab2c=>_0x34ab2c['data']);if(_0xce1b2e['length'])return{'type':'deletion','content':o(_0x4e46c2,'*Remove:*\x20%0',o(_0x4e46c2,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xce1b2e['join']('\x20')+'\x22'))};}}}),_0x35c894['descriptionFactory']['registerDescriptionCallback'](_0x38146d=>{if('tableRow'==_0x38146d['subType']){const _0x484a33=_0x38146d['getItems']()['filter'](_0x39b7f3=>_0x39b7f3['is']('$textProxy'))['map'](_0x437087=>_0x437087['data']),_0x42eec4=this['_getSuggestionCoords'](_0x38146d),_0x4a9047=_0x42eec4['maxRow']-_0x42eec4['minRow']+0x1;if('insertion'==_0x38146d['type'])return _0x484a33['length']?{'type':'insertion','content':o(_0x4e46c2,'*Insert:*\x20%0',o(_0x4e46c2,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4a9047,'\x22'+_0x484a33['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x4e46c2,'*Insert:*\x20%0',o(_0x4e46c2,'ELEMENT_TABLE_ROW',_0x4a9047))};if('deletion'==_0x38146d['type'])return _0x484a33['length']?{'type':'deletion','content':o(_0x4e46c2,'*Remove:*\x20%0',o(_0x4e46c2,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4a9047,'\x22'+_0x484a33['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x4e46c2,'*Remove:*\x20%0',o(_0x4e46c2,'ELEMENT_TABLE_ROW',_0x4a9047))};}if('tableColumn'==_0x38146d['subType']){const _0x194262=_0x38146d['getItems']()['filter'](_0x49f405=>_0x49f405['is']('$textProxy'))['map'](_0x5ba02d=>_0x5ba02d['data']),_0x40ba46=this['_getSuggestionCoords'](_0x38146d),_0x45e3bf=_0x40ba46['maxColumn']-_0x40ba46['minColumn']+0x1;if('insertion'==_0x38146d['type'])return _0x194262['length']?{'type':'insertion','content':o(_0x4e46c2,'*Insert:*\x20%0',o(_0x4e46c2,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x45e3bf,'\x22'+_0x194262['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x4e46c2,'*Insert:*\x20%0',o(_0x4e46c2,'ELEMENT_TABLE_COLUMN',_0x45e3bf))};if('deletion'==_0x38146d['type'])return _0x194262['length']?{'type':'deletion','content':o(_0x4e46c2,'*Remove:*\x20%0',o(_0x4e46c2,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x45e3bf,'\x22'+_0x194262['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x4e46c2,'*Remove:*\x20%0',o(_0x4e46c2,'ELEMENT_TABLE_COLUMN',_0x45e3bf))};}}),_0x35c894['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x3dd0b3),_0x35c894['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x3dd0b3),_0x35c894['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x1b6327),_0x35c894['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x1b6327),_0x35c894['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x4bd6a6),_0x35c894['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x4bd6a6),_0x35c894['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x2c7eed),_0x35c894['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x2c7eed);}['_acceptFormatSuggestionCallbackFactory'](){const _0x4e1ba4=this['editor'],_0x1b4728=_0x4e1ba4['model']['document']['selection'];return(_0x24a1bb,_0x2f6d02)=>{_0x4e1ba4['model']['change'](_0x205638=>{const {commandName:_0x355676,commandParams:_0x2a26ee}=_0x2f6d02;let _0x586848=_0x24a1bb[0x0]['end']['nodeBefore'];_0x2a26ee&&_0x2a26ee[0x0]&&!0x1===_0x2a26ee[0x0]['forceValue']&&(_0x586848=_0x24a1bb[0x0]['start']['nodeAfter']);const _0x5ac57f=_0x205638['createRangeIn'](_0x586848);if('$graveyard'==_0x5ac57f['root']['rootName'])return;const _0x1db5e5=Array['from'](_0x1b4728['getRanges']())['map'](_0x419f2f=>_0x531fcc['fromRange'](_0x419f2f));_0x205638['setSelection'](_0x5ac57f),_0x4e1ba4['commands']['get'](_0x355676)['refresh'](),_0x2a26ee['push']({'forceDefaultExecution':!0x0}),_0x4e1ba4['execute'](_0x355676,..._0x2a26ee);const _0x2ba3e1=_0x1db5e5['filter'](_0x3fac7c=>'$graveyard'!=_0x3fac7c['root']['rootName']);_0x2ba3e1['length']>0x0&&_0x205638['setSelection'](_0x2ba3e1);for(const _0x4f63c8 of _0x1db5e5)_0x4f63c8['detach']();});};}['_getCoordsForCells'](_0x35cadd){const _0x12e051=this['editor']['plugins']['get']('TableUtils');let _0x455184=Number['MAX_SAFE_INTEGER'],_0x10183b=Number['MIN_SAFE_INTEGER'],_0x4b7d49=Number['MAX_SAFE_INTEGER'],_0x114d0e=Number['MIN_SAFE_INTEGER'];for(const _0x76190d of _0x35cadd){if('$graveyard'==_0x76190d['root']['rootName'])continue;const {row:_0x199f1d,column:_0x1c0e62}=_0x12e051['getCellLocation'](_0x76190d),_0x4f9951=_0x76190d['hasAttribute']('rowspan')?_0x76190d['getAttribute']('rowspan')-0x1:0x0,_0x48a507=_0x76190d['hasAttribute']('colspan')?_0x76190d['getAttribute']('colspan')-0x1:0x0;_0x455184=_0x199f1d<_0x455184?_0x199f1d:_0x455184,_0x10183b=_0x199f1d+_0x4f9951>_0x10183b?_0x199f1d+_0x4f9951:_0x10183b,_0x4b7d49=_0x1c0e62<_0x4b7d49?_0x1c0e62:_0x4b7d49,_0x114d0e=_0x1c0e62+_0x48a507>_0x114d0e?_0x1c0e62+_0x48a507:_0x114d0e;}return{'minRow':_0x455184,'maxRow':_0x10183b,'minColumn':_0x4b7d49,'maxColumn':_0x114d0e};}['_setupColumnsRowsFixing'](){const _0x55d88f=this['editor'],_0x4cae49=_0x55d88f['plugins']['get']('TrackChangesEditing'),_0x418ab4=_0x55d88f['plugins']['get']('TableUtils');_0x55d88f['model']['document']['on']('change:data',()=>{const _0x2f3156=Array['from'](_0x55d88f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xc34048,data:_0x532d36}of _0x2f3156){const {group:_0xc2d694,id:_0x538b78,subType:_0x4c4c96}=_0x4cae49['_splitMarkerName'](_0xc34048);if('suggestion'!=_0xc2d694)continue;if(null!=_0x532d36['oldRange'])continue;const _0x1f627a=_0x4cae49['getSuggestion'](_0x538b78);this['_tablePostFixingSubtypes']['includes'](_0x4c4c96)&&this['_tableSuggestions']['add'](_0x1f627a);}},{'priority':'low'});const _0x16d9be=(_0x207d02,_0x4ede0e)=>{let _0x19a95a=!0x1;const _0x110b5d=_0x4ede0e['createRangeOn'](_0x207d02),_0x18b054=_0x207d02['findAncestor']('table'),_0x539ed4=_0x418ab4['getCellLocation'](_0x207d02);for(const _0x3251a7 of this['_tableSuggestions']){const _0x2c3a0e=_0x3251a7['subType'],_0x494395=_0x2c3a0e['startsWith']('tablePaste'),_0x1ea28e=_0x2c3a0e['substr'](_0x494395?0xa:0x5),_0x5a3262=_0x1ea28e['toLowerCase'](),_0x34f719=_0x5a3262['substr'](0x0,0x3)+'span',_0x193f6a='min'+_0x1ea28e,_0x14fa7d='max'+_0x1ea28e;if(!_0x3251a7['isInContent'])continue;if(_0x18b054!=_0x3251a7['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x3251a7['isIntersectingWithRange'](_0x110b5d))continue;const _0x136316=_0x207d02['hasAttribute'](_0x34f719)?_0x207d02['getAttribute'](_0x34f719)-0x1:0x0,_0x582d54=this['_getSuggestionCoords'](_0x3251a7),_0x3ed025=_0x582d54[_0x193f6a],_0x5e7be9=_0x582d54[_0x14fa7d];_0x3ed025<=_0x539ed4[_0x5a3262]&&_0x539ed4[_0x5a3262]+_0x136316<=_0x5e7be9&&(_0x3251a7['addRange'](_0x110b5d),_0x19a95a=!0x0);}return _0x19a95a;};_0x55d88f['model']['document']['registerPostFixer'](_0x5da9f6=>{let _0x1b80a4=!0x1;for(const _0x35d54c of _0x55d88f['model']['document']['differ']['getChanges']())if('insert'==_0x35d54c['type']){if('tableRow'==_0x35d54c['name']){for(const _0x2e31c4 of _0x35d54c['position']['nodeAfter']['getChildren']())_0x1b80a4=_0x1b80a4||_0x16d9be(_0x2e31c4,_0x5da9f6);}else'tableCell'==_0x35d54c['name']&&(_0x1b80a4=_0x1b80a4||_0x16d9be(_0x35d54c['position']['nodeAfter'],_0x5da9f6));}return _0x1b80a4;});}['_getSuggestionCoords'](_0xad453b){return this['_getCoordsForCells'](_0xad453b['getRanges']()['map'](_0x1055c0=>_0x1055c0['start']['nodeAfter']));}}function Ne(_0x5ac8f5){return Array['from'](new Set(_0x5ac8f5)['values']());}class _t extends _0x538eb2{static get['requires'](){return[vt];}['afterInit'](){const _0x374bd1=this['editor'],_0x226550=_0x374bd1['model']['document']['selection'],_0x2e34eb=_0x374bd1['locale'];if(!_0x374bd1['plugins']['has']('TableEditing'))return;const _0x1be3c1=_0x374bd1['plugins']['get']('TrackChangesEditing'),_0x6b0542=_0x374bd1['plugins']['get']('TableUtils'),_0x515160=_0x374bd1['plugins']['get'](vt);_0x515160['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x1be3c1['enableCommand']('mergeTableCells',()=>{const _0x26c8c3=_0x6b0542['getSelectionAffectedTableCells'](_0x374bd1['model']['document']['selection']);_0x374bd1['model']['change'](()=>{_0x1be3c1['markMultiRangeBlockFormat'](_0x26c8c3,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x374bd1['commands']['get']('mergeTableCells')['on']('execute',(_0x4e3a06,_0x291230)=>{_0x374bd1['commands']['get']('trackChanges')['value']&&(_0x291230['length']>0x0&&_0x291230[_0x291230['length']-0x1]&&_0x291230[_0x291230['length']-0x1]['forceDefaultExecution']||_0x1be3c1['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x4e3a06['stop']());},{'priority':'highest'});for(const _0xe56a64 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x390186=_0x374bd1['commands']['get'](_0xe56a64);_0x1be3c1['enableCommand'](_0xe56a64,()=>{const _0x2eda70=_0x374bd1['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x84f519=>_0x84f519['is']('element','tableCell')),_0x18b4ca=_0x390186['value'];_0x374bd1['model']['change'](()=>{_0x1be3c1['markMultiRangeBlockFormat']([_0x2eda70,_0x18b4ca],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x217073 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x2eda33=_0x374bd1['commands']['get'](_0x217073);_0x1be3c1['enableCommand'](_0x217073,()=>{const _0x19d852=_0x6b0542['getSelectionAffectedTableCells'](_0x374bd1['model']['document']['selection'])[0x0],_0x578854=_0x19d852['findAncestor']('table'),{column:_0x5e64c6,row:_0x3b7c71}=_0x6b0542['getCellLocation'](_0x19d852);let _0x5e8a96=[];if('horizontally'==_0x2eda33['direction']){const _0x524333=_0x6b0542['createTableWalker'](_0x578854,{'startRow':_0x3b7c71,'endRow':_0x3b7c71,'includeAllSlots':!0x0});_0x5e8a96=Array['from'](_0x524333)['map'](_0x178337=>_0x178337['cell']);}else{const _0x1a233c=_0x6b0542['createTableWalker'](_0x578854,{'column':_0x5e64c6,'includeAllSlots':!0x0});_0x5e8a96=Array['from'](_0x1a233c)['map'](_0x39780b=>_0x39780b['cell']);}_0x374bd1['model']['change'](_0x45de8a=>{_0x1be3c1['markBlockFormat'](_0x45de8a['createRangeOn'](_0x19d852),{'commandName':_0x217073,'commandParams':[]},_0x5e8a96,_0x217073);});});}_0x1be3c1['descriptionFactory']['registerDescriptionCallback'](_0x3859fd=>{if('formatBlock'!=_0x3859fd['type']&&'formatInline'!=_0x3859fd['type'])return;const {data:_0x3bf99b}=_0x3859fd;return _0x3bf99b&&'mergeTableCells'==_0x3bf99b['commandName']?{'type':'format','content':o(_0x2e34eb,'*Merge\x20cells*')}:void 0x0;}),_0x1be3c1['descriptionFactory']['registerDescriptionCallback'](_0x3e953b=>{if('formatBlock'!=_0x3e953b['type']&&'formatInline'!=_0x3e953b['type'])return;const {data:_0x17c0c8}=_0x3e953b;return _0x17c0c8?'splitTableCellVertically'==_0x17c0c8['commandName']?{'type':'format','content':o(_0x2e34eb,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x17c0c8['commandName']?{'type':'format','content':o(_0x2e34eb,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x20724f=_0x515160['_acceptFormatSuggestionCallbackFactory']();for(const _0x1d9067 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x1be3c1['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1d9067,'accept',_0x20724f);for(const _0x32f7bc of['splitTableCellVertically','splitTableCellHorizontally'])_0x1be3c1['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x32f7bc,'accept',_0x20724f);_0x1be3c1['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x39b01a=>{_0x374bd1['model']['change'](_0x576c3d=>{const _0x5720da=Array['from'](_0x226550['getRanges']())['map'](_0x344e2d=>_0x531fcc['fromRange'](_0x344e2d));_0x576c3d['setSelection'](_0x39b01a),_0x374bd1['commands']['get']('mergeTableCells')['refresh'](),_0x374bd1['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x51b4f0=_0x5720da['filter'](_0x455e5f=>'$graveyard'!=_0x455e5f['root']['rootName']);_0x51b4f0['length']>0x0&&_0x576c3d['setSelection'](_0x51b4f0);for(const _0x57e8b7 of _0x5720da)_0x57e8b7['detach']();});});for(const _0x9ce19d of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x2e8fa4=_0x374bd1['commands']['get'](_0x9ce19d);_0x2e8fa4['on']('set:isEnabled',(_0x489eee,_0x3cc2f5,_0x26c96c)=>{if(_0x26c96c){const _0x5ace03=_0x374bd1['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x23d3bd=>_0x23d3bd['is']('element','tableCell'));this['_areMergableCells'](_0x2e8fa4['value'],_0x5ace03)||(_0x489eee['return']=!0x1,_0x489eee['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0xad77a2=this['editor']['commands']['get']('mergeTableCells'),_0x2af6a2=this['editor']['plugins']['get']('TableUtils');if(!_0xad77a2['isEnabled'])return!0x1;const _0x5f1d5c=_0x2af6a2['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x2b39a4 of _0x5f1d5c)for(const _0x4d7587 of _0x5f1d5c)if(_0x2b39a4!=_0x4d7587&&!this['_areMergableCells'](_0x2b39a4,_0x4d7587))return!0x1;return!0x0;}['_areMergableCells'](_0x5ccb36,_0x676690){const _0xca53ac=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3fb686=this['editor']['model']['createRangeOn'](_0x5ccb36),_0x131677=this['editor']['model']['createRangeOn'](_0x676690),_0x2fca70=new Set(),_0x530ce2=new Set();for(const _0x5054cd of _0xca53ac['getSuggestions']())if(('insertion'==_0x5054cd['type']||'deletion'==_0x5054cd['type']||'mergeTableCells'==_0x5054cd['subType'])&&_0x5054cd['isInContent']){for(const _0x29304a of _0x5054cd['getRanges']())_0x29304a['containsRange'](_0x3fb686,!0x0)&&_0x2fca70['add'](_0x5054cd['type']+':'+_0x5054cd['author']['id']),_0x29304a['containsRange'](_0x131677,!0x0)&&_0x530ce2['add'](_0x5054cd['type']+':'+_0x5054cd['author']['id']);}if(_0x2fca70['size']!=_0x530ce2['size'])return!0x1;for(const _0x42618b of _0x2fca70)if(!_0x530ce2['has'](_0x42618b))return!0x1;return!0x0;}}class Ct extends _0x538eb2{static get['requires'](){return[vt];}['afterInit'](){const _0x3066e9=this['editor'];if(!_0x3066e9['plugins']['has']('TableEditing'))return;const _0x206187=_0x3066e9['locale'],_0x773054=_0x3066e9['plugins']['get']('TrackChangesEditing');_0x773054['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x773054['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x773054['registerBlockAttribute']('headingRows'),_0x773054['registerBlockAttribute']('headingColumns'),_0x773054['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x206187,'FORMAT_HEADER_ROW')),_0x773054['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x206187,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1cb1e1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4090e3=this['editor']['plugins']['get']('TableUtils'),_0x334b5f=this['editor']['plugins']['get'](vt)['_acceptFormatSuggestionCallbackFactory']();function _0x38cd5e({showActiveMarker:_0x28ea68=!0x0,setDataAttribute:_0x7db405=!0x0}={}){return(_0x3fea17,_0xdf1fc8,_0x463f99)=>{const {type:_0x1685b8,id:_0x8c03ce}=_0x1cb1e1['_splitMarkerName'](_0xdf1fc8['markerName']),_0x246344=_0x1cb1e1['getSuggestion'](_0x8c03ce),_0x346ae7=_0x246344['data'];if('formatBlock'!=_0x246344['type']||!_0x346ae7||'setTableColumnHeader'!=_0x346ae7['commandName'])return;if(_0xdf1fc8['item'])return void _0x3fea17['stop']();if(!_0x463f99['consumable']['consume'](_0xdf1fc8['markerRange'],_0x3fea17['name']))return;const _0x9b99df=_0xdf1fc8['markerRange']['start']['nodeAfter'],_0x50bb21=_0xdf1fc8['markerRange']['end']['nodeBefore'],_0x61662b=_0x9b99df['parent']['parent'],{column:_0x18e747}=_0x4090e3['getCellLocation'](_0x9b99df),{column:_0x191e0f}=_0x4090e3['getCellLocation'](_0x50bb21);for(let _0x2098a7=_0x18e747;_0x2098a7<=_0x191e0f;_0x2098a7++){const _0x481bf7=_0x4090e3['createTableWalker'](_0x61662b,{'column':_0x2098a7,'includeAllSlots':!0x1});for(const _0x2a563a of _0x481bf7){const _0x36b211=_0x2a563a['cell'],_0xbbea6=_0x463f99['mapper']['toViewElement'](_0x36b211);_0x463f99['writer']['addClass']('ck-suggestion-marker-'+_0x1685b8,_0xbbea6),_0x7db405&&_0x463f99['writer']['setAttribute']('data-suggestion',_0x8c03ce,_0xbbea6),_0x463f99['mapper']['bindElementToMarker'](_0xbbea6,_0xdf1fc8['markerName']),_0x28ea68&&(_0x1cb1e1['activeMarkers']['includes'](_0xdf1fc8['markerName'])?_0x463f99['writer']['addClass']('ck-suggestion-marker--active',_0xbbea6):_0x463f99['writer']['removeClass']('ck-suggestion-marker--active',_0xbbea6));}}};}_0x1cb1e1['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x334b5f),_0x1cb1e1['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x334b5f),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x38cd5e(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x239b21,_0x473362,_0x537daf)=>{_0x537daf['options']['showSuggestionHighlights']&&_0x38cd5e({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x239b21,_0x473362,_0x537daf);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x155b4a,_0x475a5a,_0x2fc678)=>{const {type:_0x82b719,id:_0x457e32}=_0x1cb1e1['_splitMarkerName'](_0x475a5a['markerName']),_0x3a3286=_0x1cb1e1['getSuggestion'](_0x457e32),_0x2d6350=_0x3a3286['data'];if('formatBlock'!=_0x3a3286['type']||!_0x2d6350||'setTableColumnHeader'!=_0x2d6350['commandName'])return;const _0x261883=_0x2fc678['mapper']['markerNameToElements'](_0x475a5a['markerName']);if(_0x261883){for(const _0x2d2f97 of _0x261883)_0x2fc678['writer']['removeClass']('ck-suggestion-marker-'+_0x82b719,_0x2d2f97),_0x2fc678['writer']['removeClass']('ck-suggestion-marker--active',_0x2d2f97),_0x2fc678['writer']['removeAttribute']('data-suggestion',_0x2d2f97),_0x2fc678['mapper']['unbindElementFromMarkerName'](_0x2d2f97,_0x475a5a['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x21f158=this['editor'],_0x4177cc=_0x21f158['locale'];function _0x8b845b(_0x1a2cc9){return{'type':'format','content':o(_0x4177cc,'*Format:*\x20%0',_0x1a2cc9)};}_0x21f158['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x17b5f6=>{if('formatBlock'!=_0x17b5f6['type'])return;const {data:_0x5a7305}=_0x17b5f6;if(_0x5a7305){if('setTableRowHeader'==_0x5a7305['commandName']){const _0x488b9e=_0x5a7305['commandParams'][0x0]['forceValue'];return _0x8b845b(o(_0x4177cc,_0x488b9e?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x5a7305['commandName']){const _0x3c2de8=_0x5a7305['commandParams'][0x0]['forceValue'];return _0x8b845b(o(_0x4177cc,_0x3c2de8?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x12c80d=>[_0x12c80d,null]));class Nt extends _0x538eb2{static get['requires'](){return[vt];}['afterInit'](){const _0x42ea9f=this['editor'];if(!_0x42ea9f['plugins']['has']('TableClipboard'))return;const _0x4333a9=_0x42ea9f['plugins']['get']('TrackChangesEditing'),_0x3ad433=_0x42ea9f['plugins']['get']('TableUtils'),_0x7a8ada=_0x42ea9f['plugins']['get'](vt),_0x1c650c=_0x42ea9f['plugins']['get']('TableClipboard');_0x7a8ada['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x42ea9f['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x42ea9f['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x576ab3=null;_0x42ea9f['model']['on']('insertContent',(_0x110f3b,_0x1031b2)=>{const [_0x13c9b7,_0x303740]=_0x1031b2,_0xe6630b=_0x1031b2[_0x1031b2['length']-0x1];_0xe6630b&&_0xe6630b['forceDefaultExecution']||_0x4333a9['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x3db2df,_0x3924c4,_0xe116cd,_0x4b4582,_0x47b653){if(_0x3924c4&&!_0x3924c4['is']('documentSelection'))return!0x1;const _0x2f0377=_0x47b653['getTableIfOnlyTableInContent'](_0x3db2df,_0xe116cd);if(!_0x2f0377||!Ue(_0x2f0377,void 0x0,_0x4b4582))return!0x1;const _0xe5e4d4=_0x4b4582['getSelectionAffectedTableCells'](_0xe116cd['document']['selection']);if(!_0xe5e4d4['length'])return!0x1;const _0x1b0c5c=_0xe5e4d4[0x0]['findAncestor']('table'),_0x5c303e=_0x4b4582['getRowIndexes'](_0xe5e4d4),_0x47f720=_0x4b4582['getColumnIndexes'](_0xe5e4d4),_0x58c7be={'startRow':_0x5c303e['first'],'endRow':_0x5c303e['last'],'startColumn':_0x47f720['first'],'endColumn':_0x47f720['last']};return 0x1==_0xe5e4d4['length']&&(_0x58c7be['endRow']+=_0x4b4582['getRows'](_0x2f0377)-0x1,_0x58c7be['endColumn']+=_0x4b4582['getColumns'](_0x2f0377)-0x1),Ue(_0x1b0c5c,_0x58c7be,_0x4b4582);}(_0x13c9b7,_0x303740,_0x42ea9f['model'],_0x3ad433,_0x1c650c)&&(_0x110f3b['stop'](),_0x576ab3={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x42ea9f['model']['change'](()=>{_0x42ea9f['model']['insertContent'](_0x1031b2[0x0],_0x1031b2[0x1],_0x1031b2[0x2],{'forceDefaultExecution':!0x0});const _0x4c8355=_0x30b629(),{rowInsertionRanges:_0x549196,columnInsertionRanges:_0x22aaba,insertionRanges:_0x198e0e,deletionRanges:_0x53841b,cells:_0xc4cd66}=_0x576ab3;_0x549196['length']&&_0x4333a9['markMultiRangeInsertion'](_0x549196,'tablePasteRow',{'tablePasteChainId':_0x4c8355}),_0x22aaba['length']&&_0x4333a9['markMultiRangeInsertion'](_0x22aaba,'tablePasteColumn',{'tablePasteChainId':_0x4c8355}),_0x198e0e['length']&&(_0x4333a9['markMultiRangeInsertion'](_0x198e0e,'tablePaste',{'tablePasteChainId':_0x4c8355,'skipNestingCheck':!0x0}),_0x198e0e['forEach'](_0x5c1371=>_0x5c1371['detach']?.())),_0x53841b['length']&&(_0x4333a9['markMultiRangeDeletion'](_0x53841b,'tablePaste',{'tablePasteChainId':_0x4c8355,'skipNestingCheck':!0x0}),_0x53841b['forEach'](_0x3bd43d=>_0x3bd43d['detach']?.()));const _0xbf0657=_0x4333a9['markMultiRangeBlockFormat'](_0xc4cd66['map'](({element:_0x44b50a})=>_0x44b50a),{'formatGroupId':_0x30b629()},[],'tablePasteCell',{'tablePasteChainId':_0x4c8355});if(_0xbf0657){const _0x57b96d=_0xbf0657['getMarkers'](),_0x388503=[];for(const {element:_0x31f399,attributes:_0x50616c}of _0xc4cd66){if(!_0x50616c)continue;const _0x4f9db9=_0x42ea9f['model']['createRangeOn'](_0x31f399),_0x2cbf90=_0x57b96d['find'](_0x3e0438=>_0x3e0438['getRange']()['isEqual'](_0x4f9db9));_0x2cbf90&&_0x388503['push']([_0x2cbf90['name'],_0x50616c]);}_0x388503['length']&&_0xbf0657['setAttribute']('markerAttributes',Object['fromEntries'](_0x388503));}_0x576ab3=null;}));},{'priority':_0x5b63b3['high']+0xa}),_0x42ea9f['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x3825bd,_0x234ca4)=>{const [_0x139608,_0x4d2de4,,_0x58b44f]=_0x234ca4;if(!_0x576ab3)return;_0x3825bd['stop']();const _0x5c3acc=_0x139608['cell'],_0x358c2f=_0x4d2de4,_0x4eaa1f=Oe(_0x5c3acc),_0x1b150b=Oe(_0x358c2f);_0x3825bd['return']=_0x5c3acc;let _0x397deb=null,_0x578d9b=null;if(_0x1b150b||_0x4eaa1f){if(_0x4eaa1f&&!_0x1b150b){_0x58b44f['remove'](_0x5c3acc['getChild'](0x0));for(const _0xd6f4e4 of Array['from'](_0x358c2f['getChildren']()))_0x58b44f['insert'](_0xd6f4e4,_0x5c3acc,'end');const _0x18f567=_0x576ab3['rowInsertionIndexes']['includes'](_0x139608['row']),_0xa40b54=_0x576ab3['columnInsertionIndexes']['includes'](_0x139608['column']);_0x18f567||_0xa40b54||(_0x397deb=_0x531fcc['fromRange'](_0x58b44f['createRangeIn'](_0x5c3acc)));}else _0x1b150b&&!_0x4eaa1f&&(_0x578d9b=_0x58b44f['createRangeIn'](_0x5c3acc));}else{const _0x56be76=_0x58b44f['createElement']('tableCellSuggestion'),_0x237d0f=_0x58b44f['createElement']('tableCellSuggestion');_0x58b44f['wrap'](_0x58b44f['createRangeIn'](_0x5c3acc),_0x237d0f),_0x58b44f['insert'](_0x56be76,_0x5c3acc,0x0);for(const _0x364e37 of Array['from'](_0x358c2f['getChildren']()))_0x58b44f['insert'](_0x364e37,_0x56be76,'end');_0x397deb=_0x531fcc['fromRange'](_0x58b44f['createRangeOn'](_0x56be76)),_0x578d9b=_0x531fcc['fromRange'](_0x58b44f['createRangeOn'](_0x237d0f));}const _0x2555da=Array['from'](_0x358c2f['getAttributes']())['filter'](([_0x530ad2])=>Be['includes'](_0x530ad2));_0x576ab3['cells']['push']({'element':_0x5c3acc,'attributes':_0x2555da['length']?Object['fromEntries'](_0x2555da):null}),_0x397deb&&_0x576ab3['insertionRanges']['push'](_0x397deb),_0x578d9b&&_0x576ab3['deletionRanges']['push'](_0x578d9b);},{'priority':'high'}),_0x3ad433['on']('insertColumns',(_0x22ef2e,_0x50b836)=>{const [_0x51ce1b,_0x450a71={}]=_0x50b836;if(!_0x576ab3)return;const _0x5a4092=_0x450a71['at']||0x0,_0x35b2b2=_0x450a71['columns']||0x1;_0x576ab3['columnInsertionIndexes']=new Array(_0x35b2b2)['fill'](_0x5a4092)['map']((_0x19ca3f,_0x4484fd)=>_0x19ca3f+_0x4484fd);for(const {cell:_0x2552ec}of _0x3ad433['createTableWalker'](_0x51ce1b,{'startColumn':_0x5a4092,'endColumn':_0x5a4092+_0x35b2b2-0x1}))_0x576ab3['columnInsertionRanges']['push'](_0x42ea9f['model']['createRangeOn'](_0x2552ec));},{'priority':'low'}),_0x3ad433['on']('insertRows',(_0x220395,_0x1ed0f8)=>{const [_0x2623e7,_0x88104e={}]=_0x1ed0f8;if(!_0x576ab3)return;const _0x453303=_0x88104e['at']||0x0,_0x10ee4c=_0x88104e['rows']||0x1;_0x576ab3['rowInsertionIndexes']=new Array(_0x10ee4c)['fill'](_0x453303)['map']((_0x2dcb2c,_0x43ba67)=>_0x2dcb2c+_0x43ba67);for(const {cell:_0x4c9dac}of _0x3ad433['createTableWalker'](_0x2623e7,{'startRow':_0x453303,'endRow':_0x453303+_0x10ee4c-0x1}))_0x576ab3['rowInsertionRanges']['push'](_0x42ea9f['model']['createRangeOn'](_0x4c9dac));},{'priority':'low'}),_0x4333a9['descriptionFactory']['registerDescriptionCallback'](_0x40a931=>{if(_0x40a931['subType']&&_0x40a931['subType']['startsWith']('tablePaste'))return _0x40a931['previous']?{}:{'type':'insertion','content':o(_0x42ea9f['locale'],'*Replace\x20table\x20cells*')};});const _0x4284b7=()=>!0x1;for(const _0x1d4bc7 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x4333a9['_suggestionFactory']['registerCustomCallback']('insertion',_0x1d4bc7,'join',_0x4284b7),_0x4333a9['_suggestionFactory']['registerCustomCallback']('deletion',_0x1d4bc7,'join',_0x4284b7),_0x4333a9['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1d4bc7,'join',_0x4284b7);_0x4333a9['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x4284b7),_0x4333a9['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x10d0b2,_0x4a0f5c,_0x4e4f4b)=>{const _0x479ff8=_0x10d0b2['map'](_0x5e03ea=>_0x5e03ea['getContainedElement']())['filter'](_0x174f61=>_0x174f61),_0x3b19e4=new Map(_0x479ff8['map'](_0x28e757=>[_0x28e757,null]));if(_0x576ab3){for(const {element:_0x27d8be,attributes:_0x493bfc}of _0x576ab3['cells'])_0x493bfc&&_0x3b19e4['set'](_0x27d8be,_0x493bfc);}else{if(_0x4e4f4b&&_0x4e4f4b['markerAttributes'])for(const [_0x108ee5,_0x376a2b]of Object['entries'](_0x4e4f4b['markerAttributes'])){const _0x35dd97=_0x42ea9f['model']['markers']['get'](_0x108ee5),_0x65f9e9=_0x35dd97?_0x35dd97['getRange']()['getContainedElement']():null;_0x65f9e9&&_0x3b19e4['set'](_0x65f9e9,_0x376a2b);}}_0x42ea9f['model']['change'](_0x1928a4=>{for(const [_0x155c1c,_0x4cb152]of _0x3b19e4)_0x1928a4['setAttributes']({...xe,..._0x4cb152},_0x155c1c);});});const _0x2e1d1b=(_0x48c241,_0x4e3acb)=>{_0x4333a9['_suggestionFactory']['registerCustomCallback'](_0x48c241,'tablePaste',_0x4e3acb,(_0x53b2a8,_0x170ff7,_0x5d05c6)=>{_0x42ea9f['model']['change'](_0x347ffd=>{const _0x3926b3=[];for(const _0x1eb7f1 of _0x53b2a8){const _0x5f5689=_0x1eb7f1['start']['nodeAfter'];_0x5f5689['is']('element','tableCellSuggestion')&&_0x3926b3['push'](_0x5f5689);}_0x4333a9['_suggestionFactory']['getSuggestionCallback'](_0x48c241,null,_0x4e3acb)(_0x53b2a8,_0x170ff7,_0x5d05c6);for(const _0x5aa54e of _0x3926b3)'$graveyard'!=_0x5aa54e['root']['rootName']&&_0x347ffd['unwrap'](_0x5aa54e);});});};_0x2e1d1b('insertion','accept'),_0x2e1d1b('insertion','discard'),_0x2e1d1b('deletion','accept'),_0x2e1d1b('deletion','discard'),_0x4333a9['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x5036f9=>{const _0x44c40b=_0x5036f9['map'](_0x1fde8a=>_0x1fde8a['getContainedElement']()),_0xb01615=_0x44c40b[0x0]['findAncestor']('table'),{minRow:_0x43b922,maxRow:_0x5cc28d}=_0x7a8ada['_getCoordsForCells'](_0x44c40b);_0x3ad433['removeRows'](_0xb01615,{'at':_0x43b922,'rows':_0x5cc28d-_0x43b922+0x1});}),_0x4333a9['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x403026=>{const _0x1d2d8f=_0x403026['map'](_0x402582=>_0x402582['getContainedElement']()),_0xfda83b=_0x1d2d8f[0x0]['findAncestor']('table'),{minColumn:_0x3b18b8,maxColumn:_0x370541}=_0x7a8ada['_getCoordsForCells'](_0x1d2d8f);_0x3ad433['removeColumns'](_0xfda83b,{'at':_0x3b18b8,'columns':_0x370541-_0x3b18b8+0x1});});const _0x129cc1=(_0x58eff4,_0x1b2cff)=>{if(!_0x1b2cff['subType']||!_0x1b2cff['subType']['startsWith']('tablePaste'))return;const _0x285cb1=_0x1b2cff['attributes']['tablePasteChainId'],_0x488fab=_0x4333a9['getSuggestions']()['filter'](_0x1ddfd2=>_0x1ddfd2['isInContent']&&_0x1ddfd2['attributes']&&_0x1ddfd2['attributes']['tablePasteChainId']==_0x285cb1);_0x488fab['length']&&_0x1b2cff['getAllAdjacentSuggestions']()['length']!=_0x488fab['length']&&_0x488fab['reduce']((_0x2b5adc,_0x396c90)=>(_0x2b5adc['next']=_0x396c90,_0x396c90['previous']=_0x2b5adc,_0x396c90));};function _0x9404a0(_0x5de6a9,_0xc33312=!0x0){const {id:_0x21c3e2,authorId:_0x3ffab5}=_0x4333a9['_splitMarkerName'](_0x5de6a9['markerName']),_0x43eff2=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x20c381=_0x4333a9['activeMarkers']['includes'](_0x5de6a9['markerName']);return _0x20c381&&_0x43eff2['push']('ck-suggestion-marker--active'),{'classes':_0x43eff2,'attributes':{'data-suggestion':_0x21c3e2,'data-author-id':_0x3ffab5},'priority':_0x20c381&&_0xc33312?0xbc2:0xbb8};}_0x4333a9['on']('suggestionLoaded',_0x129cc1,{'priority':'high'}),_0x4333a9['on']('suggestionUnloaded',_0x129cc1,{'priority':'high'}),_0x42ea9f['model']['document']['registerPostFixer'](()=>{let _0x34e9ea=!0x1;const _0x14385d=Array['from'](_0x42ea9f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4f0347,data:_0x140509}of _0x14385d){const {group:_0x582d87,type:_0x56aed0,id:_0x274d8b}=_0x4333a9['_splitMarkerName'](_0x4f0347);if('suggestion'!=_0x582d87||'deletion'!=_0x56aed0||_0x140509['oldRange'])continue;if(!_0x4333a9['hasSuggestion'](_0x274d8b))continue;const _0x566764=_0x4333a9['getSuggestion'](_0x274d8b)['getRanges'](),_0x17dd4e=_0x42ea9f['plugins']['get']('Users')['me'];for(const _0x177097 of _0x4333a9['getSuggestions']()){if(!_0x177097['isInContent']||_0x177097['author']!=_0x17dd4e)continue;if('formatBlock'!=_0x177097['type']||'tablePasteCell'!=_0x177097['subType'])continue;if(_0x177097['getRanges']()['every'](_0x17b3de=>_0x566764['some'](_0x3a3196=>_0x3a3196['containsRange'](_0x17b3de,!0x0)))){for(const _0x314c36 of _0x177097['getAllAdjacentSuggestions']())_0x314c36['isInContent']&&(_0x314c36['discard'](),_0x34e9ea=!0x0);}}}return _0x34e9ea;}),_0x42ea9f['model']['document']['registerPostFixer'](_0x7616b9=>{const _0x151d7c=_0x42ea9f['commands']['get']('redo');if(!_0x151d7c||!_0x151d7c['_createdBatches']['has'](_0x7616b9['batch']))return!0x1;let _0x513147=!0x1;const _0x58330d=_0x42ea9f['plugins']['get']('Users')['me'],_0x961bd9=_0x42ea9f['model']['document']['differ']['getChanges'](),_0x493fa6=Array['from'](_0x42ea9f['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x371283,data:_0x21a1ae})=>{const {group:_0x229f8d,subType:_0x5a0e38,authorId:_0x471e62}=_0x4333a9['_splitMarkerName'](_0x371283);return'suggestion'==_0x229f8d&&'tablePaste'==_0x5a0e38&&_0x471e62==_0x58330d['id']&&!_0x21a1ae['oldRange'];});for(const _0x1a967a of _0x961bd9){if('insert'!=_0x1a967a['type']||'tableCellSuggestion'!=_0x1a967a['name']||0x1!=_0x1a967a['length'])continue;const _0x1a6b98=_0x7616b9['createRange'](_0x1a967a['position'],_0x1a967a['position']['getShiftedBy'](0x1));if(!_0x493fa6['find'](({data:_0x4f29e6})=>_0x4f29e6['newRange']['isEqual'](_0x1a6b98))){for(const {name:_0x73db40,data:_0x3257e0}of _0x493fa6)if(_0x1a6b98['containsRange'](_0x3257e0['newRange'])){_0x7616b9['updateMarker'](_0x73db40,{'range':_0x1a6b98}),_0x513147=!0x0;break;}}}return _0x513147;}),_0x42ea9f['model']['document']['registerPostFixer'](_0x1bd118=>{let _0xa74190=!0x1;const _0x26d1c6=_0x42ea9f['plugins']['get']('Users')['me'],_0x13d66d=_0x4333a9['getSuggestions']()['filter'](_0x1fcf9d=>_0x1fcf9d['isInContent']&&_0x1fcf9d['author']==_0x26d1c6),_0x944575=new Set(),_0x20c0f4=new Set();for(const _0x23e658 of _0x13d66d)if('tablePaste'==_0x23e658['subType'])for(const _0x6291cf of _0x23e658['getMarkers']()){const _0x453f7e=_0x6291cf['getRange']()['getContainedElement']();if(_0x453f7e){if(_0x453f7e['is']('element','tableCellSuggestion')&&Oe(_0x453f7e)){_0x23e658['removeMarker'](_0x6291cf['name']),_0x944575['add'](_0x453f7e),_0xa74190=!0x0;const _0x177eb6=_0x453f7e['nextSibling'],_0x5f2b4f=_0x453f7e['previousSibling'],_0x5878a2=_0x177eb6&&_0x177eb6['is']('element','tableCellSuggestion'),_0x42ff32=_0x5f2b4f&&_0x5f2b4f['is']('element','tableCellSuggestion');_0x5878a2&&!_0x944575['has'](_0x177eb6)&&_0x20c0f4['add'](_0x177eb6),_0x42ff32&&!_0x944575['has'](_0x5f2b4f)&&_0x20c0f4['add'](_0x5f2b4f);}else _0x453f7e['is']('element','paragraph')&&_0x453f7e['isEmpty']&&(_0x23e658['removeMarker'](_0x6291cf['name']),_0xa74190=!0x0);}}else{if('tablePasteCell'==_0x23e658['subType']){if(!_0x23e658['attributes']||!_0x23e658['attributes']['tablePasteChainId'])continue;const _0x5a3342=_0x23e658['attributes']['markerAttributes'];if(_0x5a3342&&Object['keys'](_0x5a3342)['length'])continue;const _0x20c21c=_0x23e658['attributes']['tablePasteChainId'];let _0x413d53=!0x0,_0x2f2b25=!0x0;for(const _0x5ecf59 of _0x13d66d)if(_0x5ecf59['subType']&&_0x5ecf59['subType']['startsWith']('tablePaste')){if(!_0x5ecf59['attributes']['tablePasteChainId']){_0x2f2b25=!0x1;break;}if(_0x5ecf59['id']!=_0x23e658['id']&&_0x5ecf59['attributes']['tablePasteChainId']==_0x20c21c){_0x413d53=!0x1;break;}}_0x2f2b25&&_0x413d53&&(_0x23e658['removeMarkers'](),_0xa74190=!0x0);}}for(const _0x3b7bc3 of _0x944575)_0x1bd118['remove'](_0x3b7bc3);for(const _0x12ef68 of _0x20c0f4)_0x1bd118['unwrap'](_0x12ef68);return _0xa74190;}),_0x42ea9f['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x145bf8=>_0x9404a0(_0x145bf8),'converterPriority':'high'}),_0x42ea9f['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x43b2d6,_0x2b4493)=>_0x2b4493['options']['showSuggestionHighlights']?_0x9404a0(_0x43b2d6,!0x1):null,'converterPriority':'high'});const _0x2caa6f=_0x42ea9f['editing']['view'];this['listenTo'](_0x2caa6f['document'],'clipboardOutput',(_0xcae83b,_0x5e3ca8)=>{const _0x43743f=[];for(const _0x46272b of _0x2caa6f['createRangeIn'](_0x5e3ca8['content'])['getItems']())_0x46272b['is']('element','suggestion-td')&&_0x43743f['push'](_0x46272b);_0x2caa6f['change'](_0x599961=>{for(const _0x13215c of _0x43743f)_0x599961['move'](_0x599961['createRangeIn'](_0x13215c),_0x599961['createPositionBefore'](_0x13215c)),_0x599961['remove'](_0x13215c);});});}}function Oe(_0x9adf48){if(_0x9adf48['isEmpty'])return!0x0;const _0x17e78a=_0x9adf48['getChild'](0x0);return _0x17e78a['is']('element','paragraph')&&_0x17e78a['isEmpty'];}function Ue(_0x3c0058,_0x407be3={},_0x2e4688){for(const {isAnchor:_0x47a360,cellHeight:_0x2a0c4a,cellWidth:_0x19dbf0}of _0x2e4688['createTableWalker'](_0x3c0058,{'includeAllSlots':!0x0,..._0x407be3}))if(!_0x47a360||0x1!=_0x2a0c4a||0x1!=_0x19dbf0)return!0x1;return!0x0;}class Dt extends _0x538eb2{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x192ab9=this['editor']['plugins']['get']('TrackChangesEditing');_0x192ab9['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x192ab9['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x192ab9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x192ab9['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x192ab9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x192ab9['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x215437,_0x518034){const _0x426a9a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x47c96f=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0xe43091=_0x518034['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x28bc92=_0x47c96f['getColumnGroupElement'](_0xe43091);let _0x418592=_0x28bc92?_0x47c96f['getTableColumnsWidths'](_0x28bc92):null,_0x2d93fe=_0xe43091['getAttribute']('tableWidth')||null;const _0x135327=_0x518034['tableWidth']||_0x2d93fe,_0x13d514=_0x518034['columnWidths']||_0x418592,_0x125500=this['editor']['plugins']['get']('Users')['me'];for(const _0x4893f8 of _0x426a9a['getSuggestions']()){const _0x2561b7=_0x4893f8['getContainedElement']();if('resizeTable'===_0x4893f8['subType']&&_0x2561b7===_0xe43091){_0x4893f8['author']!==_0x125500&&_0x4893f8['discard']();const _0x3c9e3b=_0x4893f8['data']['commandParams'];_0x2d93fe=_0x3c9e3b[0x0]['tableWidth'],_0x418592=_0x3c9e3b[0x0]['columnWidths'];break;}}_0x215437({'table':_0xe43091,'tableWidth':_0x135327,'columnWidths':_0x13d514}),_0x426a9a['markBlockFormat'](_0xe43091,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x2d93fe,'columnWidths':_0x418592}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x588a4e){if('formatBlock'!=_0x588a4e['type']&&'formatInline'!=_0x588a4e['type'])return;const {data:_0x27f5ab}=_0x588a4e;if(_0x27f5ab&&'resizeTable'===_0x27f5ab['formatGroupId']){const _0x275232='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x275232)};}}}class Mt extends _0x538eb2{['afterInit'](){const _0xb85d1b=this['editor'];_0xb85d1b['plugins']['has']('Template')&&_0xb85d1b['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x538eb2{['afterInit'](){const _0x2d7b68=this['editor'];if(!_0x2d7b68['commands']['get']('insertTableOfContents'))return;_0x2d7b68['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x28aabb=_0x2d7b68['plugins']['get']('TrackChangesEditing'),_0x94f89c=_0x2d7b68['locale'];_0x28aabb['descriptionFactory']['registerElementLabel']('tableOfContents',_0x303cc5=>o(_0x94f89c,'ELEMENT_TABLE_OF_CONTENTS',_0x303cc5));}}class Bt extends _0x538eb2{['afterInit'](){const _0x138987=this['editor'];if(!_0x138987['plugins']['has']('Title'))return;const _0x4d58af=_0x138987['plugins']['get']('TrackChangesEditing');_0x4d58af['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x138987['locale'],'ELEMENT_TITLE')),_0x138987['model']['document']['registerPostFixer'](_0x245eb3=>{let _0x4f223e=!0x1;const _0x1c11a4=Array['from'](_0x138987['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1bd0ca,data:_0xd93846}of _0x1c11a4){const {group:_0x1299b7}=_0x4d58af['_splitMarkerName'](_0x1bd0ca);if('suggestion'!==_0x1299b7||!_0xd93846['newRange'])continue;const _0x1c3951=_0xd93846['newRange'],_0x53a646=_0x1c3951['end']['nodeBefore'];if(!_0x53a646||!_0x53a646['is']('element','title-content'))continue;if(!_0x1c3951['start']['isTouching'](_0x1c3951['end']))continue;const _0x17ff5c=_0x138987['model']['schema']['getNearestSelectionRange'](_0x1c3951['end'],'forward');if(_0x17ff5c&&_0x17ff5c['isCollapsed']){const _0x456a8a=_0x245eb3['createRange'](_0x1c3951['start'],_0x17ff5c['start']);_0x456a8a['isEqual'](_0x1c3951)||(_0x245eb3['updateMarker'](_0x1bd0ca,{'range':_0x456a8a}),_0x4f223e=!0x0);}_0x4f223e||(_0x245eb3['removeMarker'](_0x1bd0ca),_0x4f223e=!0x0);}return _0x4f223e;});}}class Ot extends _0x538eb2{['afterInit'](){const _0x52c588=this['editor'],_0x4b9972=_0x52c588['plugins']['get']('TrackChangesEditing');_0x52c588['plugins']['has']('Uploadcare')&&(_0x4b9972['enableCommand']('uploadcare'),_0x52c588['plugins']['has']('UploadcareImageEdit')&&(_0x4b9972['enableCommand']('uploadcareImageEdit'),_0x4b9972['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x4b9972['registerBlockAttribute']('uploadcareImageId'),_0x4b9972['descriptionFactory']['registerDescriptionCallback'](_0x9e317e=>{if('attribute'!=_0x9e317e['type'])return;const {data:_0x3df016}=_0x9e317e;return _0x3df016&&'uploadcareImageId'==_0x3df016['key']?{'type':'format','content':''}:void 0x0;})));}}class Rt extends _0x538eb2{['afterInit'](){const _0x184892=this['editor'],_0x570fe1=_0x184892['plugins']['get']('TrackChangesEditing');_0x184892['plugins']['has']('UndoEditing')&&(_0x570fe1['enableCommand']('undo'),_0x570fe1['enableCommand']('redo'));}}class Tt extends _0x538eb2{static get['requires'](){return[vt];}['afterInit'](){const _0x51d8b2=this['editor'];if(!_0x51d8b2['plugins']['has']('TableCaptionEditing'))return;_0x51d8b2['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class xt extends _0x538eb2{['tableProperties'];['tableCellProperties'];constructor(_0x45529a){super(_0x45529a),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 _0x3df4a9=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x22c3f7 of this['tableProperties'])_0x3df4a9['enableCommand'](_0x22c3f7,(_0x17c449,_0x1c79bf)=>{const _0x5df397=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x22c3f7,[_0x5df397],this['tableProperties'],'tableProperties',_0x17c449,_0x1c79bf);});_0x3df4a9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x3df4a9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3df4a9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x18c29d,_0x51fa4e)=>this['handleDiscardAction'](this['tableProperties'],_0x18c29d,_0x51fa4e)),_0x3df4a9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x2fd7d8 of this['tableCellProperties'])_0x3df4a9['enableCommand'](_0x2fd7d8,(_0x81aa1b,_0xaf3bf6)=>{const _0x58f9d1=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x2fd7d8,_0x58f9d1,this['tableCellProperties'],'tableCellProperties',_0x81aa1b,_0xaf3bf6);});_0x3df4a9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x3df4a9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3df4a9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x5bb586,_0x1e957e)=>this['handleDiscardAction'](this['tableCellProperties'],_0x5bb586,_0x1e957e)),_0x3df4a9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x3df4a9['descriptionFactory']['registerDescriptionCallback'](_0x29e19c=>this['handleSuggestionDescription'](_0x29e19c));}['_handlePropertyChange'](_0x5c4e3e,_0x460c0d,_0x14ac62,_0x5cf3b1,_0x5ea792,_0x1a86f0){const _0x4f200b=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x1a86f0['batch'],()=>{for(const _0x1693db of _0x460c0d){if(this['_getSuggestion'](_0x1693db,_0x5cf3b1))_0x5ea792(_0x1a86f0);else{const _0x1ce3b6={};for(const _0x65389e of _0x14ac62){const _0x34e0f6=_0x1693db['getAttribute'](_0x65389e);void 0x0!==_0x34e0f6&&(_0x1ce3b6[_0x65389e]=_0x34e0f6);}_0x5ea792(_0x1a86f0),_0x4f200b['markBlockFormat'](_0x1693db,{'commandParams':[_0x1ce3b6]},[],_0x5cf3b1);}}});}['handleDiscardAction'](_0x18198a,_0x1c4b80,_0x4f4bf9){const _0x265a23=_0x1c4b80[0x0]['start']['nodeAfter'],_0x13a47e=_0x4f4bf9['commandParams'][0x0];this['editor']['model']['change'](_0xc746a2=>{for(const _0x5b9ec9 of _0x18198a)void 0x0!==_0x13a47e[_0x5b9ec9]?_0xc746a2['setAttribute'](_0x5b9ec9,_0x13a47e[_0x5b9ec9],_0x265a23):_0xc746a2['removeAttribute'](_0x5b9ec9,_0x265a23);});}['handleSuggestionDescription'](_0x4d8b55){if(_0x4d8b55['data'])switch(_0x4d8b55['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x166674,_0x188cf4){const _0x232340=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x404286 of _0x232340['getSuggestions']({'skipNotAttached':!0x0})){const _0x535c77=_0x404286['getContainedElement']();if(_0x404286['subType']===_0x188cf4&&_0x535c77===_0x166674)return _0x404286;}return null;}}const m='$elementName';class p extends _0x538eb2{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x2bda33,_0x36bc6d,U,V,G,F,L,H,J,q,z,K,X,Y,Z,tt,nt,it,et,st,ot,at,rt,ct,ut,ft,lt,Q,wt,ht,W,Se,dt,mt,pt,kt,bt,yt,jt,St,At,It,vt,_t,Ct,Tt,Nt,Dt,$t,xt,Mt,Bt,Ot,Rt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x368a7b){super(_0x368a7b),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x7d8adf,_0x1f4109,_0x4573c0,_0x5f15de)=>{this['_model']['change'](()=>{for(const _0x15878e of[..._0x5f15de,..._0x4573c0])this['_model']['markers']['has'](_0x15878e)&&_0x368a7b['editing']['reconvertMarker'](_0x15878e);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Ut(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x368a7b['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x368a7b['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x368a7b['config']['get']('trackChanges.trackFormatChanges'),_0x368a7b['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x368a7b['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x368a7b,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x4b077b=this['editor'],_0x2dcb29=(_0x5206de,_0x272078)=>{if('attribute'!=_0x5206de)return'ck-suggestion-marker-'+_0x5206de;const _0x29b323=_0x272078['split']('|')[0x0];return this['_isBlockAttribute'](_0x29b323)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x4b077b['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x22b49d=>{const {id:_0x3c8298,authorId:_0x4bf1c5,type:_0x3ad957,subType:_0x244013}=this['_splitMarkerName'](_0x22b49d['markerName']),_0x3b5a86=['ck-suggestion-marker',_0x2dcb29(_0x3ad957,_0x244013)];let _0x25397a=0xbb8;return this['activeMarkers']['includes'](_0x22b49d['markerName'])&&(_0x3b5a86['push']('ck-suggestion-marker--active'),_0x25397a=0xbc2),'deletion'==_0x3ad957&&(_0x25397a+=0x5),{'classes':_0x3b5a86,'attributes':{'data-suggestion':_0x3c8298,'data-author-id':_0x4bf1c5},'priority':_0x25397a};}}),_0x4b077b['conversion']['for']('dataDowncast')['add'](_0x5d5bc1=>{_0x5d5bc1['on']('addMarker:suggestion',(_0x2d3277,_0x3ad921,_0x3041a4)=>{if(!_0x3041a4['options']['showSuggestionHighlights'])return;const _0x32973c=_0x3ad921['item'];if(!_0x32973c)return;const _0x247742=_0x3041a4['mapper']['toViewElement'](_0x32973c);_0x4b077b['model']['schema']['isObject'](_0x32973c)&&_0x247742&&!_0x247742['getCustomProperty']('widget')&&_0x247742['is']('containerElement')&&_0x35e6a0(_0x247742,_0x3041a4['writer']);},{'priority':'high'});}),_0x4b077b['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x75d382,_0x619f72)=>{if(!_0x619f72['options']['showSuggestionHighlights'])return null;const {type:_0x38dfd2,subType:_0xb4b33a}=this['_splitMarkerName'](_0x75d382['markerName']);return{'classes':['ck-suggestion-marker',_0x2dcb29(_0x38dfd2,_0xb4b33a)],'priority':0xbb8};}});const _0x398ea5=({showActiveMarkers:_0xec7a67=!0x0,isAttributeSuggestion:_0x29496d=!0x1}={})=>(_0x22cafc,_0x37765e,_0x275b3e)=>{if(!_0x37765e['item'])return;const {id:_0x165e0e,authorId:_0x2406c2}=this['_splitMarkerName'](_0x37765e['markerName']);if(_0x29496d){const _0xf0b366=this['_suggestions']['get'](_0x165e0e),_0x596600=this['_getAttributeKey'](_0xf0b366);if(!this['_isBlockAttribute'](_0x596600))return;}if(_0x37765e['item']['is']('selection'))return void _0x275b3e['consumable']['consume'](_0x37765e['item'],_0x22cafc['name']);const _0x2fb8bb=_0x275b3e['mapper']['toViewElement'](_0x37765e['item']);if(_0x37765e['item']['is']('element')&&_0x4b077b['model']['schema']['isBlock'](_0x37765e['item'])&&!_0x2fb8bb['getCustomProperty']('addHighlight')){_0x275b3e['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x2fb8bb),_0x275b3e['writer']['setAttribute']('data-suggestion',_0x165e0e,_0x2fb8bb),_0x275b3e['writer']['setAttribute']('data-author-id',_0x2406c2,_0x2fb8bb),_0x275b3e['mapper']['bindElementToMarker'](_0x2fb8bb,_0x37765e['markerName']),_0xec7a67&&(this['activeMarkers']['includes'](_0x37765e['markerName'])?_0x275b3e['writer']['addClass']('ck-suggestion-marker--active',_0x2fb8bb):_0x275b3e['writer']['removeClass']('ck-suggestion-marker--active',_0x2fb8bb));for(const _0x4f75e2 of _0x4b077b['model']['createRangeIn'](_0x37765e['item'])['getItems']())_0x275b3e['consumable']['consume'](_0x4f75e2,_0x22cafc['name']);_0x275b3e['consumable']['consume'](_0x37765e['item'],_0x22cafc['name']);}};_0x4b077b['conversion']['for']('dataDowncast')['add'](_0x1c93a8=>{_0x1c93a8['on']('addMarker:suggestion:formatBlock',(_0x179510,_0x582f91,_0x224d53)=>{_0x224d53['options']['showSuggestionHighlights']&&_0x398ea5({'showActiveMarkers':!0x1})(_0x179510,_0x582f91,_0x224d53);},{'priority':'highest'});}),_0x4b077b['conversion']['for']('dataDowncast')['add'](_0x3e9970=>{_0x3e9970['on']('addMarker:suggestion:attribute',(_0x5e0c72,_0x55ff4a,_0x4aa8ec)=>{_0x4aa8ec['options']['showSuggestionHighlights']&&_0x398ea5({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x5e0c72,_0x55ff4a,_0x4aa8ec);},{'priority':'highest'});}),_0x4b077b['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x186f47,_0x2d4cae)=>_0x2d4cae['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x186f47['substr'](0xb)}}),_0x4b077b['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x467d5b,{writer:_0x308dae})=>{let _0x49eb2d='suggestion:'+_0x467d5b['getAttribute']('suggestion-type')+':'+_0x467d5b['getAttribute']('id');return _0x467d5b['getAttribute']('marker-count')&&(_0x49eb2d+=':'+_0x467d5b['getAttribute']('marker-count')),_0x308dae['createElement']('$marker',{'data-name':_0x49eb2d});}}),_0x4b077b['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x4b077b['conversion']['for']('editingDowncast')['add'](_0x53587c=>{_0x53587c['on']('addMarker:suggestion:formatBlock',_0x398ea5(),{'priority':'high'});}),_0x4b077b['conversion']['for']('editingDowncast')['add'](_0x42e076=>{_0x42e076['on']('addMarker:suggestion:attribute',_0x398ea5({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x4b077b['conversion']['for']('editingDowncast')['add'](_0x8f6500=>{_0x8f6500['on']('removeMarker:suggestion:formatBlock',(_0x5c0ca1,_0x2ab225,_0x46ab4e)=>{const _0xc93381=_0x46ab4e['mapper']['markerNameToElements'](_0x2ab225['markerName']);if(_0xc93381){for(const _0xd7e1fe of _0xc93381)_0xd7e1fe['getCustomProperty']('addHighlight')||(_0x46ab4e['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0xd7e1fe),_0x46ab4e['writer']['removeAttribute']('data-suggestion',_0xd7e1fe),_0x46ab4e['writer']['removeAttribute']('data-author-id',_0xd7e1fe),_0x46ab4e['mapper']['unbindElementFromMarkerName'](_0xd7e1fe,_0x2ab225['markerName']));}},{'priority':'high'});}),_0x4b077b['conversion']['for']('editingDowncast')['add'](_0x4afc10=>{_0x4afc10['on']('removeMarker:suggestion:attribute',(_0x58ab7b,_0x5e57ed,_0x1b3dfe)=>{const _0x5b341f=_0x1b3dfe['mapper']['markerNameToElements'](_0x5e57ed['markerName']);if(!_0x5b341f)return;const {id:_0x3f11bd}=this['_splitMarkerName'](_0x5e57ed['markerName']),_0x4d2cdf=this['_suggestions']['get'](_0x3f11bd),_0x3991e7=this['_getAttributeKey'](_0x4d2cdf);if(this['_isBlockAttribute'](_0x3991e7)){for(const _0x54a67b of _0x5b341f)_0x54a67b['getCustomProperty']('addHighlight')||(_0x1b3dfe['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x54a67b),_0x1b3dfe['writer']['removeAttribute']('data-suggestion',_0x54a67b),_0x1b3dfe['writer']['removeAttribute']('data-author-id',_0x54a67b),_0x1b3dfe['mapper']['unbindElementFromMarkerName'](_0x54a67b,_0x5e57ed['markerName']));}},{'priority':'high'});}),_0x4b077b['model']['document']['registerPostFixer'](_0x3bfff6=>{let _0x28a91c=!0x1;const _0x1d7565=Array['from'](_0x4b077b['model']['document']['differ']['getChangedMarkers']()),_0x4ed897=new Set();for(const {name:_0x3c8697,data:_0x11f376}of _0x1d7565){const {group:_0x39bd2c,type:_0x19740a,subType:_0x1be293,id:_0x14410c}=this['_splitMarkerName'](_0x3c8697);if('suggestion'!==_0x39bd2c)continue;const _0x557ccd=this['_suggestions']['get'](_0x14410c);if(null!=_0x11f376['newRange']){'formatInline'==_0x19740a&&(_0x28a91c=_0x28a91c||Gt(_0x11f376['newRange'],_0x3c8697,_0x3bfff6,_0x4b077b['model']['schema']));const _0x58b7fc='attribute'==_0x19740a&&this['_isBlockAttribute'](_0x1be293['split']('|')[0x0]);if(_0x11f376['newRange']['isCollapsed']||'$graveyard'==_0x11f376['newRange']['root']['rootName']||'formatBlock'==_0x19740a&&!Lt(_0x11f376['newRange'])||_0x58b7fc&&!Lt(_0x11f376['newRange'])||'deletion'==_0x19740a&&!(!Pt(_0x81ecbc=_0x11f376['newRange'])&&!function(_0x231aba){return _0x231aba['start']['parent']==_0x231aba['end']['nodeBefore']&&_0x231aba['start']['isAtEnd'];}(_0x81ecbc)))_0x3bfff6['removeMarker'](_0x3c8697),_0x28a91c=!0x0;else{if(!_0x557ccd||!_0x557ccd['isInContent'])continue;if(_0x11f376['newRange']&&_0x11f376['oldRange']&&_0x11f376['newRange']['isEqual'](_0x11f376['oldRange']))continue;_0x4ed897['add'](_0x557ccd);}}}var _0x81ecbc;return _0x4ed897['size']>0x0&&(_0x28a91c=!!this['_joinWithAdjacentSuggestions'](_0x4ed897)||_0x28a91c),_0x28a91c;}),_0x4b077b['model']['document']['registerPostFixer'](_0x3b69f8=>{let _0x428901=!0x1;for(const _0x523ba5 of _0x4b077b['model']['document']['differ']['getChanges']())if('insert'==_0x523ba5['type'])for(const _0x59b30e of this['_suggestions']['values']()){if(_0x59b30e['isMultiRange']||!_0x59b30e['isInContent'])continue;const _0x36ec9f='formatBlock'==_0x59b30e['type'],_0x215691=this['_getAttributeKey'](_0x59b30e),_0xa49494=_0x215691&&this['_isBlockAttribute'](_0x215691);if(!_0x36ec9f&&!_0xa49494)continue;const _0x44a82a=_0x59b30e['getFirstRange']();if(_0x44a82a['start']['parent']!=_0x44a82a['end']['parent']&&!_0x44a82a['end']['isAtEnd']){const _0x1745c5=_0x4b077b['model']['createPositionAt'](_0x44a82a['start']['nodeAfter'],'end'),_0x5e2259=_0x4b077b['model']['createRange'](_0x44a82a['start'],_0x1745c5);_0x3b69f8['updateMarker'](_0x59b30e['getFirstMarker'](),{'range':_0x5e2259}),_0x428901=!0x0;}}return _0x428901;}),_0x4b077b['model']['document']['registerPostFixer'](_0x698133=>this['_processAttributeChanges'](_0x698133)),_0x4b077b['model']['document']['registerPostFixer'](_0x4a609e=>!_0x4a609e['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x4a609e)),_0x4b077b['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x4b077b['model']['document']['on']('change:data',(_0x26b553,_0xda584e)=>{if(!_0xda584e['isLocal']||_0xda584e['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x5dbd77=_0x4b077b['model']['document']['differ']['getChanges']();if(0x0==_0x5dbd77['length'])return;const _0x3778e2=[],_0x2ee9e2=_0x5dbd77['filter'](_0x1dd3d9=>'attribute'==_0x1dd3d9['type']),_0xb95286=_0x5dbd77['filter'](_0x2294c8=>'insert'==_0x2294c8['type']&&'$text'!=_0x2294c8['name']);for(const _0x2de9fd of _0x2ee9e2)this['_isRegisteredAttribute'](_0x2de9fd['attributeKey'])&&_0x3778e2['push']({'key':_0x2de9fd['attributeKey'],'newValue':_0x2de9fd['attributeNewValue'],'oldValue':_0x2de9fd['attributeOldValue'],'range':Jt(_0x2de9fd['range'],_0x4b077b['model'])});for(const _0x178591 of _0xb95286){if('rename'!=_0x178591['action']&&'refresh'!=_0x178591['action'])continue;const _0x5e7b1f=Ht(_0x178591['position']['nodeAfter'],_0x4b077b['model']),_0x1344a1=_0x178591['before'];'rename'==_0x178591['action']&&_0x3778e2['push']({'key':m,'newValue':_0x178591['name'],'oldValue':_0x1344a1['name'],'range':_0x5e7b1f});for(const [_0x4647ba,_0x4a72a9]of _0x1344a1['attributes']){if(!this['_isRegisteredAttribute'](_0x4647ba))continue;const _0x2075d1=_0x178591['attributes']['get'](_0x4647ba);_0x4a72a9!==_0x2075d1&&_0x3778e2['push']({'key':_0x4647ba,'newValue':_0x2075d1,'oldValue':_0x4a72a9,'range':_0x5e7b1f});}for(const [_0x768813,_0x4755b5]of _0x178591['attributes'])this['_isRegisteredAttribute'](_0x768813)&&(_0x1344a1['attributes']['has'](_0x768813)||_0x3778e2['push']({'key':_0x768813,'newValue':_0x4755b5,'oldValue':null,'range':_0x5e7b1f}));}0x0!=_0x3778e2['length']&&_0x4b077b['model']['enqueueChange'](_0xda584e,_0x4a4d0e=>{const _0x4fecab=_0x30b629();for(const {range:_0x9da391,key:_0x5c4612,oldValue:_0x315d91,newValue:_0x18730f}of _0x3778e2)this['markAttributeChange'](_0x9da391,_0x5c4612,_0x315d91,_0x18730f,{'groupId':_0x4fecab});this['_reduceExistingSuggestions'](_0x4a4d0e,_0x3778e2);});},{'priority':'lowest'}),_0x4b077b['model']['markers']['on']('update:suggestion',(_0x2c359e,_0x2fedf6,_0x5c4e81)=>{if(null==_0x5c4e81){const {id:_0x41efc8}=this['_splitMarkerName'](_0x2fedf6['name']),_0x562437=this['_suggestions']['get'](_0x41efc8);_0x562437&&_0x562437['addMarkerName'](_0x2fedf6['name']);}}),_0x4b077b['model']['document']['on']('change:data',()=>{const _0x5befc1=Array['from'](_0x4b077b['model']['document']['differ']['getChangedMarkers']())['filter'](_0x33a4ba=>'suggestion'===this['_splitMarkerName'](_0x33a4ba['name'])['group']);if(0x0===_0x5befc1['length'])return;_0x5befc1['sort']((_0x110e01,_0x34ad95)=>{const _0x3aa42c=_0x110e01['data']['oldRange'],_0x1ebee1=_0x34ad95['data']['oldRange'];return null===_0x3aa42c&&null===_0x1ebee1?0x0:null===_0x3aa42c&&null!==_0x1ebee1?-0x1:null!==_0x3aa42c&&null===_0x1ebee1?0x1:_0x3aa42c['start']['isBefore'](_0x1ebee1['start'])?-0x1:0x1;});const _0x5f382a=new Set(),_0x173094=new Set();for(const {name:_0x1df422,data:_0x5def20}of _0x5befc1){const {id:_0x4b2b33}=this['_splitMarkerName'](_0x1df422);if(null===_0x5def20['oldRange']){const _0x56ff90=this['_handleNewSuggestionMarker'](_0x1df422);_0x173094['add'](_0x56ff90);}else{const _0x55532b=this['_suggestions']['get'](_0x4b2b33);null!==_0x5def20['newRange']||_0x55532b['isInContent']?(_0x5f382a['add'](_0x55532b['head']),_0x173094['add'](_0x55532b)):this['_removeSuggestion'](_0x55532b);}}_0x173094['size']>0x0&&this['_refreshSuggestionsChain'](_0x173094);for(const _0x3423d0 of _0x5f382a)this['fire']('suggestionChanged',_0x3423d0);}),_0x4b077b['model']['on']('applyOperation',(_0xcfab83,_0x557fb2)=>{const _0x47b184=_0x557fb2[0x0];if(!this['_suggestions']['size'])return;if(!_0x47b184['isDocumentOperation'])return;if(_0x47b184['batch']['isUndo']||!_0x47b184['batch']['isLocal'])return;let _0x192bb3,_0x362127;switch(_0x47b184['type']){case'insert':_0x192bb3=_0x4b077b['model']['createPositionAt'](_0x47b184['position']),_0x362127=_0x192bb3['getShiftedBy'](_0x47b184['howMany']);break;case'split':_0x192bb3=_0x4b077b['model']['createPositionAt'](_0x47b184['splitPosition']),_0x362127=_0x4b077b['model']['createPositionAt'](_0x47b184['moveTargetPosition']);break;case'move':_0x192bb3=_0x4b077b['model']['createPositionAt'](_0x47b184['targetPosition']),_0x362127=_0x192bb3['getShiftedBy'](_0x47b184['howMany']);break;default:return;}const _0x47d0d8=_0x4b077b['model']['createRange'](_0x192bb3,_0x362127);_0x4b077b['model']['change'](()=>{for(const {suggestion:_0xface94,meta:_0x5bf5fc}of this['_findSuggestions'](_0x47d0d8)){if(_0xface94['isMultiRange'])continue;if('formatInline'==_0xface94['type'])continue;const _0x4aa1ee=this['_getAttributeKey'](_0xface94);if(_0x4aa1ee&&this['_isBlockAttribute'](_0x4aa1ee)&&'split'!=_0x47b184['type'])continue;const _0xc39184=_0xface94['data']&&_0xface94['data']['multipleBlocks'];('formatBlock'!=_0xface94['type']||'split'==_0x47b184['type']&&!_0xc39184)&&(_0x5bf5fc['containsRangeInObject']||'insertion'==_0xface94['type']&&_0x5bf5fc['isOwn']||_0xface94['getFirstRange']()['containsRange'](_0x47d0d8)&&this['_breakSuggestionMarker'](_0xface94,_0x192bb3,_0x362127));}});},{'priority':'lowest'}),_0x4b077b['model']['on']('deleteContent',(_0x38fe56,_0x2befdf)=>{const _0x170089=_0x2befdf[0x0],_0x2646a1=_0x2befdf[0x1];if(_0x2646a1&&_0x2646a1['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x170089['isCollapsed'])return;const _0x324c32=_0x4b077b['model']['schema'],{start:_0x4ffd78,end:_0x1cf639}=_0x170089['getFirstRange'](),_0x47801c=_0x4ffd78['nodeAfter']&&_0x324c32['isLimit'](_0x4ffd78['nodeAfter'])?null:_0x324c32['getNearestSelectionRange'](_0x4ffd78,'forward'),_0xbc3f7d=_0x1cf639['nodeBefore']&&_0x324c32['isLimit'](_0x1cf639['nodeBefore'])?null:_0x324c32['getNearestSelectionRange'](_0x1cf639,'backward'),_0x31ac81=_0x4b077b['model']['createRange'](_0x47801c?_0x47801c['start']:_0x4ffd78,_0xbc3f7d?_0xbc3f7d['end']:_0x1cf639);_0x4b077b['model']['change'](_0x35b536=>{this['markDeletion'](_0x31ac81);const _0x15116e=_0x4b077b['model']['schema']['getNearestSelectionRange'](_0x31ac81['start']);_0x170089['is']('documentSelection')?_0x35b536['setSelection'](_0x15116e):_0x170089['setTo'](_0x15116e);}),_0x38fe56['stop']();},{'priority':_0x5b63b3['normal']+0xa}),_0x4b077b['model']['on']('insertContent',(_0x1ff9f6,_0x135ef4)=>{const _0x595725=_0x135ef4[_0x135ef4['length']-0x1];_0x595725&&_0x595725['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x4b077b['model']['change'](()=>{let _0x1577f7=_0x4b077b['model']['insertContent'](_0x135ef4[0x0],_0x135ef4[0x1],_0x135ef4[0x2],{'forceDefaultExecution':!0x0});if(!_0x1577f7)return;_0x1ff9f6['return']=_0x1577f7['clone']();const _0x55b7fa=_0x1577f7['end']['nodeBefore'],_0x8f8afa=_0x4b077b['model']['schema'];_0x55b7fa&&_0x8f8afa['isBlock'](_0x55b7fa)&&!_0x8f8afa['isObject'](_0x55b7fa)&&(_0x1577f7=_0x4b077b['model']['createRange'](_0x1577f7['start'],_0x4b077b['model']['createPositionAt'](_0x55b7fa,'end'))),this['markInsertion'](_0x1577f7);}),_0x1ff9f6['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x3d7ec3=new O(_0x4b077b,this['_suggestions']);_0x4b077b['commands']['add']('acceptSuggestion',_0x3d7ec3),this['enableCommand']('acceptSuggestion');const _0x2132da=new R(_0x4b077b,this['_suggestions']);_0x4b077b['commands']['add']('discardSuggestion',_0x2132da),this['enableCommand']('discardSuggestion'),_0x4b077b['commands']['add']('acceptAllSuggestions',new x(_0x4b077b,_0x3d7ec3,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x4b077b['commands']['add']('discardAllSuggestions',new x(_0x4b077b,_0x2132da,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x4b077b['commands']['add']('acceptSelectedSuggestions',new E(_0x4b077b,_0x3d7ec3,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x4b077b['commands']['add']('discardSelectedSuggestions',new E(_0x4b077b,_0x2132da,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x10909e=_0x4b077b['plugins']['get']('CommentsRepository');this['listenTo'](_0x10909e,'addComment',(_0x6d3917,{threadId:_0x110105})=>{const _0x30ba51=this['_suggestions']['get'](_0x110105);_0x30ba51&&_0x30ba51['commentThread']&&0x1===_0x30ba51['commentThread']['length']&&this['_updateSuggestionData'](_0x110105,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x10909e,'removeComment',(_0x54542f,{threadId:_0x408968})=>{const _0xc560f1=this['_suggestions']['get'](_0x408968);_0xc560f1&&_0xc560f1['commentThread']&&!_0xc560f1['commentThread']['length']&&this['_updateSuggestionData'](_0x408968,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x3e512a){const _0x1b8232=_0x265c34([0x34,0x37,0x77,0x57,0x51,0x78,0x43,0x4a,0x71,0x31,0x55,0x75,0x33,0x56,0x58,0x47,0x6f,0x63,0x4d,0x39,0x4e,0x30,0x65,0x4f,0x35,0x76,0x6a,0x69,0x6d,0x62,0x70,0x46,0x45,0x72,0x41,0x36,0x64,0x48,0x4b,0x66,0x4c,0x52,0x68,0x50,0x7a,0x5a,0x53,0x42,0x79,0x6b,0x6e,0x6c,0x61,0x74,0x73,0x32,0x54,0x49,0x59,0x38,0x44,0x67]),_0x29528c=0x4bdc2bfa,_0x2f125d=0x4bdb75ea^_0x29528c,_0x24c103=window[_0x265c34([0x44,0x61,0x74,0x65])][_0x265c34([0x6e,0x6f,0x77])](),_0xbaae23=_0x3e512a[_0x265c34([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4fead6=new window[(_0x265c34([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2ed216=>{_0xbaae23[_0x265c34([0x6f,0x6e,0x63,0x65])](_0x265c34([0x72,0x65,0x61,0x64,0x79]),_0x2ed216);}),_0x5088f8={[_0x265c34([0x6b,0x74,0x79])]:_0x265c34([0x45,0x43]),[_0x265c34([0x75,0x73,0x65])]:_0x265c34([0x73,0x69,0x67]),[_0x265c34([0x63,0x72,0x76])]:_0x265c34([0x50,0x2d,0x32,0x35,0x36]),[_0x265c34([0x78])]:_0x265c34([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]),[_0x265c34([0x79])]:_0x265c34([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]),[_0x265c34([0x61,0x6c,0x67])]:_0x265c34([0x45,0x53,0x32,0x35,0x36])},_0x567a86=_0xbaae23[_0x265c34([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x265c34([0x67,0x65,0x74])](_0x265c34([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4ca2dd(){let _0x5a395e,_0x5b53a5=null,_0x118f29=null;try{if(_0x567a86==_0x265c34([0x47,0x50,0x4c]))return _0x265c34([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5a395e=_0x19c2ec(),!_0x5a395e)return _0x265c34([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5a395e[_0x265c34([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x118f29=_0x5dafeb(_0x5a395e[_0x265c34([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5a395e[_0x265c34([0x6a,0x74,0x69])])),await _0x3e9868()?_0x17af2c()?_0x44212()?_0x265c34([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1b7aec()?(_0x5a395e[_0x265c34([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x265c34([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5b53a5=_0x13c18b(_0x265c34([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5a395e[_0x265c34([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x265c34([0x74,0x72,0x69,0x61,0x6c])&&(_0x5b53a5=_0x13c18b(_0x265c34([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4beb88()):_0x265c34([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x265c34([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x265c34([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x5335c9){return _0x265c34([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x44212(){const _0x459da1=[_0x265c34([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x265c34([0x74,0x72,0x69,0x61,0x6c])][_0x265c34([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a395e[_0x265c34([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x24c103/0x3e8:0xe10*_0x2f125d;return _0x5a395e[_0x265c34([0x65,0x78,0x70])]<_0x459da1;}function _0x17af2c(){const _0x12f59c=_0x5a395e[_0x265c34([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x12f59c)return!0x1;if(_0x12f59c[_0x265c34([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x265c34([0x2a])))return!0x0;if(_0x12f59c[_0x265c34([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x265c34([0x54,0x43])))return!0x0;if(_0x12f59c[_0x265c34([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x265c34([0x52,0x54,0x43]))){if(_0x53f38f())return!0x0;if(_0xe3e8bf()||_0x52bc3d())return!0x0;}return!0x1;}function _0x1b7aec(){const _0x323a2e=_0x5a395e[_0x265c34([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x323a2e||0x0==_0x323a2e[_0x265c34([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5534d9}=new URL(window[_0x265c34([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x323a2e[_0x265c34([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5534d9))return!0x0;const _0x35ecc2=_0x5534d9[_0x265c34([0x73,0x70,0x6c,0x69,0x74])](_0x265c34([0x2e]));return _0x323a2e[_0x265c34([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2defcc=>_0x2defcc[_0x265c34([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x265c34([0x2a])))[_0x265c34([0x6d,0x61,0x70])](_0x31c5d4=>_0x31c5d4[_0x265c34([0x73,0x70,0x6c,0x69,0x74])](_0x265c34([0x2e])))[_0x265c34([0x73,0x6f,0x6d,0x65])](_0x2e8cf3=>_0x35ecc2[_0x265c34([0x65,0x76,0x65,0x72,0x79])]((_0x372f14,_0x3934f3)=>_0x2e8cf3[_0x3934f3]===_0x372f14||_0x2e8cf3[_0x3934f3]===_0x265c34([0x2a])));}function _0x4beb88(){return _0x5b53a5&&_0x118f29?new window[(_0x265c34([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x284d3b,_0x59a654)=>{_0x5b53a5[_0x265c34([0x74,0x68,0x65,0x6e])](_0x284d3b,_0x59a654),_0x118f29[_0x265c34([0x74,0x68,0x65,0x6e])](_0x2a744f=>{_0x2a744f!=_0x265c34([0x56,0x61,0x6c,0x69,0x64])&&_0x284d3b(_0x2a744f);},_0x59a654);}):_0x5b53a5||_0x118f29||_0x265c34([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5dafeb(_0x3df2d2,_0x21c30b){return new window[(_0x265c34([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x24225c=>{if(_0x3a42f6())return _0x24225c(_0x265c34([0x56,0x61,0x6c,0x69,0x64]));_0x3a8fe2(),_0xbaae23[_0x265c34([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x265c34([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5950b4=!0x1;const _0x397e39=_0x30b629();function _0x146428(_0x5da0bf){return!!_0x5da0bf&&(typeof _0x5da0bf===_0x265c34([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5da0bf===_0x265c34([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5da0bf[_0x265c34([0x74,0x68,0x65,0x6e])]===_0x265c34([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5da0bf[_0x265c34([0x63,0x61,0x74,0x63,0x68])]===_0x265c34([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x12bd8a(_0x1a0ddd){_0x1a6d1a(_0x1a0ddd)[_0x265c34([0x74,0x68,0x65,0x6e])](_0x3c484a=>{if(!_0x3c484a||_0x3c484a[_0x265c34([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x265c34([0x6f,0x6b]))return _0x265c34([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3e15c2(_0x5cea94(_0x397e39+_0x21c30b))!=_0x3c484a[_0x265c34([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x265c34([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x265c34([0x56,0x61,0x6c,0x69,0x64]);})[_0x265c34([0x74,0x68,0x65,0x6e])](_0x121f58=>(_0x28832d(),_0x121f58),()=>{const _0x14d7b0=_0xa08b73();return null==_0x14d7b0?(_0x28832d(),_0x265c34([0x56,0x61,0x6c,0x69,0x64])):_0x265c34(_0x24c103-_0x14d7b0>(0x6fd0affa^_0x29528c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x265c34([0x74,0x68,0x65,0x6e])](_0x24225c)[_0x265c34([0x63,0x61,0x74,0x63,0x68])](()=>{_0x24225c(_0x265c34([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4ea024=0x4beac57a^_0x29528c;function _0x28832d(){const _0x25767b=_0x265c34([0x6c,0x6c,0x63,0x74,0x2d])+_0x3e15c2(_0x5cea94(_0x3df2d2)),_0x398cb9=_0x39edd5(_0x3e15c2(window[_0x265c34([0x4d,0x61,0x74,0x68])][_0x265c34([0x63,0x65,0x69,0x6c])](_0x24c103/_0x4ea024)));window[_0x265c34([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x265c34([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x25767b,_0x398cb9);}function _0xa08b73(){const _0x7323a9=_0x265c34([0x6c,0x6c,0x63,0x74,0x2d])+_0x3e15c2(_0x5cea94(_0x3df2d2)),_0x1ff853=window[_0x265c34([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x265c34([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x7323a9);return _0x1ff853?window[_0x265c34([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x39edd5(_0x1ff853),0x10)*_0x4ea024:null;}function _0x1a6d1a(_0x15b9c6){return new window[(_0x265c34([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xf9f64e,_0x3c51f7)=>{_0x15b9c6[_0x265c34([0x74,0x68,0x65,0x6e])](_0xf9f64e,_0x3c51f7),window[_0x265c34([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3c51f7,0x4bddff3a^_0x29528c);});}}_0xbaae23[_0x265c34([0x6f,0x6e])](_0x265c34([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x24e954,_0x1a6e9f)=>{if(_0x1a6e9f[0x0]!=_0x3df2d2)return _0x24225c(_0x265c34([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1a6e9f[0x1]={..._0x1a6e9f[0x1],[_0x265c34([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x397e39};},{[_0x265c34([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x265c34([0x68,0x69,0x67,0x68])}),_0xbaae23[_0x265c34([0x6f,0x6e])](_0x265c34([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4a7176=>{_0x146428(_0x4a7176[_0x265c34([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5950b4=!0x0,_0x12bd8a(_0x4a7176[_0x265c34([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x265c34([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x265c34([0x6c,0x6f,0x77])}),_0x4fead6[_0x265c34([0x74,0x68,0x65,0x6e])](()=>{_0x5950b4||_0x24225c(_0x265c34([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3a42f6(){return _0xbaae23[_0x265c34([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x265c34([0x76,0x69,0x65,0x77])][_0x265c34([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x265c34([0x61,0x75,0x74,0x6f]);}function _0x3a8fe2(){_0xbaae23[_0x265c34([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x265c34([0x76,0x69,0x65,0x77])][_0x265c34([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x265c34([0x61,0x75,0x74,0x6f]);}}function _0x13c18b(_0x386310){const _0x1ea4b0=[new window[(_0x265c34([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x46d365=>setTimeout(_0x46d365,0x4bd51536^_0x29528c)),_0x4fead6[_0x265c34([0x74,0x68,0x65,0x6e])](()=>new window[(_0x265c34([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x7b0630=>{let _0x1659b1=0x0;_0xbaae23[_0x265c34([0x6d,0x6f,0x64,0x65,0x6c])][_0x265c34([0x6f,0x6e])](_0x265c34([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x102164,_0x36c337)=>{_0x36c337[0x0][_0x265c34([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1659b1++,_0x1659b1==(0x4bdc2a02^_0x29528c)&&(_0x7b0630(),_0x102164[_0x265c34([0x6f,0x66,0x66])]());});}))];return window[_0x265c34([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x265c34([0x72,0x61,0x63,0x65])](_0x1ea4b0)[_0x265c34([0x74,0x68,0x65,0x6e])](()=>_0x386310);}async function _0x2d130c(){await _0x4fead6,_0xbaae23[_0x265c34([0x6d,0x6f,0x64,0x65,0x6c])][_0x265c34([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x591d4b,_0xbaae23[_0x265c34([0x6d,0x6f,0x64,0x65,0x6c])][_0x265c34([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x591d4b,_0xbaae23[_0x265c34([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x265c34([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x53f38f(){return _0x49158c(_0x265c34([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x3059ba(_0x265c34([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x265c34([0x73,0x74,0x61,0x74,0x65])]==_0x265c34([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0xe3e8bf(){return _0x49158c(_0x265c34([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 _0x52bc3d(){return _0x49158c(_0x265c34([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x199729(_0x3975ba){const _0x589a1f=_0x2dbe68();_0xbaae23[_0x589a1f]=_0x265c34([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3975ba,_0x3975ba!=_0x265c34([0x56,0x61,0x6c,0x69,0x64])&&_0x2d130c();}function _0x2dbe68(){const _0x41e96e=window[_0x265c34([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x265c34([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x265c34([0x6e,0x6f,0x77])]())[_0x265c34([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x265c34([0x2e]),'');let _0x47ea9c=_0x265c34([0x77]);for(let _0x4d08c5=0x0;_0x4d08c5<_0x41e96e[_0x265c34([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4d08c5+=0x2){let _0x106a1d=window[_0x265c34([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x41e96e[_0x265c34([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4d08c5,_0x4d08c5+0x2));_0x106a1d>=_0x1b8232[_0x265c34([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x106a1d-=_0x1b8232[_0x265c34([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x47ea9c+=_0x1b8232[_0x106a1d];}return _0x47ea9c;}function _0x19c2ec(){const _0x20e01b=_0x567a86[_0x265c34([0x73,0x70,0x6c,0x69,0x74])](_0x265c34([0x2e]));if(0x3!=_0x20e01b[_0x265c34([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x57f85b(_0x20e01b[0x1]);function _0x57f85b(_0x667833){const _0x3ab823=_0x250e42(_0x667833);return _0x3ab823&&_0x1975c4()?_0x3ab823:null;function _0x1975c4(){const _0x32995b=_0x3ab823[_0x265c34([0x6a,0x74,0x69])],_0x47a8b0=window[_0x265c34([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x32995b[_0x265c34([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x32995b[_0x265c34([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x10c34d={..._0x3ab823,[_0x265c34([0x6a,0x74,0x69])]:_0x32995b[_0x265c34([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x32995b[_0x265c34([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x10c34d[_0x265c34([0x76,0x63])],_0x5cea94(_0x10c34d)==_0x47a8b0;}}}async function _0x3e9868(){let _0x44026a=!0x0;try{const _0x34e3f3=_0x567a86[_0x265c34([0x73,0x70,0x6c,0x69,0x74])](_0x265c34([0x2e])),[_0x11f8ce,_0x176453,_0x371c]=_0x34e3f3;return _0x5bee0b(_0x11f8ce),await _0x4dfe09(_0x11f8ce,_0x176453,_0x371c),_0x44026a;}catch(_0x3c14f6){return!0x1;}function _0x5bee0b(_0x28e563){const _0x1b4bd9=_0x250e42(_0x28e563);_0x1b4bd9&&_0x1b4bd9[_0x265c34([0x61,0x6c,0x67])]==_0x265c34([0x45,0x53,0x32,0x35,0x36])||(_0x44026a=!0x1);}async function _0x4dfe09(_0x57795f,_0xf875e1,_0x51804a){const _0x39ba64=window[_0x265c34([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x265c34([0x66,0x72,0x6f,0x6d])](_0x446eeb(_0x51804a),_0x2c5f0f=>_0x2c5f0f[_0x265c34([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3198f5=new window[(_0x265c34([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x265c34([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x57795f+_0x265c34([0x2e])+_0xf875e1),_0x2a5447=window[_0x265c34([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x265c34([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2a5447)return;const _0x4ab2c4=await _0x2a5447[_0x265c34([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x265c34([0x6a,0x77,0x6b]),_0x5088f8,{[_0x265c34([0x6e,0x61,0x6d,0x65])]:_0x265c34([0x45,0x43,0x44,0x53,0x41]),[_0x265c34([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x265c34([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x265c34([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2a5447[_0x265c34([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x265c34([0x6e,0x61,0x6d,0x65])]:_0x265c34([0x45,0x43,0x44,0x53,0x41]),[_0x265c34([0x68,0x61,0x73,0x68])]:{[_0x265c34([0x6e,0x61,0x6d,0x65])]:_0x265c34([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4ab2c4,_0x39ba64,_0x3198f5)||(_0x44026a=!0x1);}}function _0x250e42(_0x32cf41){return _0x32cf41[_0x265c34([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x265c34([0x65,0x79]))?JSON[_0x265c34([0x70,0x61,0x72,0x73,0x65])](_0x446eeb(_0x32cf41)):null;}function _0x446eeb(_0x1a8774){return window[_0x265c34([0x61,0x74,0x6f,0x62])](_0x1a8774[_0x265c34([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x265c34([0x2b]))[_0x265c34([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x265c34([0x2f])));}function _0x5cea94(_0x2b556d){let _0x325069=0x1505;function _0x1a82b1(_0x27e34e){for(let _0x662ea3=0x0;_0x662ea3<_0x27e34e[_0x265c34([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x662ea3++){const _0x48d437=_0x27e34e[_0x265c34([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x662ea3);_0x325069=(_0x325069<<0x5)+_0x325069+_0x48d437,_0x325069&=_0x325069;}}function _0x468073(_0x378198){Array[_0x265c34([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x378198)?_0x378198[_0x265c34([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x468073):_0x378198&&typeof _0x378198==_0x265c34([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x265c34([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x378198)[_0x265c34([0x73,0x6f,0x72,0x74])]()[_0x265c34([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x523786,_0x36dd94])=>{_0x1a82b1(_0x523786),_0x468073(_0x36dd94);}):_0x1a82b1(window[_0x265c34([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x378198));}return _0x468073(_0x2b556d),_0x325069>>>0x0;}function _0x3e15c2(_0x1bef2b){return _0x1bef2b[_0x265c34([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x265c34([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x265c34([0x30]));}function _0x39edd5(_0x28d664){return _0x28d664[_0x265c34([0x73,0x70,0x6c,0x69,0x74])]('')[_0x265c34([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x265c34([0x6a,0x6f,0x69,0x6e])]('');}function _0x49158c(_0x57e0b8){return _0xbaae23[_0x265c34([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x265c34([0x68,0x61,0x73])](_0x57e0b8);}function _0x3059ba(_0x34640e){return _0xbaae23[_0x265c34([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x265c34([0x67,0x65,0x74])](_0x34640e);}function _0x591d4b(){}function _0x265c34(_0x9d3088){return _0x9d3088['map'](_0x22667e=>String['fromCharCode'](_0x22667e))['join']('');}_0x199729(await _0x4ca2dd());}(this);}set['adapter'](_0x47e9b0){if(this['_adapter'])throw new _0x40d556('track-changes-adapter-already-set',this);this['_adapter']=_0x47e9b0;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x3d77a6=!0x1,toJSON:_0x44cf59=!0x1}={}){const _0x42d33d=[];for(const _0x2b7f11 of this['_suggestions']['values']())_0x3d77a6&&!_0x2b7f11['isInContent']||_0x42d33d['push'](_0x2b7f11);return _0x44cf59?_0x42d33d['map'](_0x238806=>_0x238806['toJSON']()):_0x42d33d;}['getSuggestion'](_0x480e72){const _0x850575=this['_suggestions']['get'](_0x480e72);if(!_0x850575)throw new _0x40d556('track-changes-suggestion-not-found',this);return _0x850575;}['hasSuggestion'](_0x22c72a){return this['_suggestions']['has'](_0x22c72a);}['addSuggestionData'](_0x4256ef){const {authorId:_0x2afd42,id:_0x497f03,attributes:_0x222481}=_0x4256ef,[_0x5992db,_0x51e7c2]=_0x4256ef['type']['split'](':'),_0x57f2e0=this['_suggestions']['get'](_0x497f03)||this['_createSuggestion'](_0x5992db,_0x51e7c2,_0x497f03,_0x2afd42,_0x222481);if(this['_addThreadToSuggestion'](_0x57f2e0),this['_checkSuggestionCorrectness'](_0x57f2e0,_0x5992db,_0x51e7c2||null,_0x2afd42),_0x57f2e0['createdAt']=_0x4256ef['createdAt'],_0x57f2e0['_isDataLoaded']=!0x0,_0x222481&&_0x222481['@external']){const _0x54fa5d=_0x222481['@external'],_0x2408df=this['_getExternalAuthor'](_0x54fa5d['authorName']);_0x57f2e0['authoredAt']=_0x54fa5d['createdAt'],_0x57f2e0['author']=_0x2408df,_0x57f2e0['isExternal']=!0x0;}else _0x57f2e0['authoredAt']=_0x4256ef['createdAt'];switch(_0x4256ef['data']&&(_0x57f2e0['data']=_0x4256ef['data']),_0x4256ef['attributes']&&(_0x57f2e0['attributes']=_0x4256ef['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x57f2e0['_saved']=!0x0),this['_suggestionState']['get'](_0x57f2e0)){case'notReady':this['_suggestionState']['set'](_0x57f2e0,'dataReady');break;case'markerReady':_0x57f2e0['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x57f2e0])),this['_refreshSuggestionsChain'](new Set([_0x57f2e0])),this['_suggestionState']['set'](_0x57f2e0,'ready'),this['fire']('suggestionLoaded',_0x57f2e0)):this['_suggestionState']['set'](_0x57f2e0,'removed');}return _0x57f2e0;}['acceptSuggestion'](_0x46489c){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3033e8 of _0x46489c['getAllAdjacentSuggestions']())_0x3033e8['accept']();});});}['discardSuggestion'](_0x4264ab){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x434722 of _0x4264ab['getAllAdjacentSuggestions']())_0x434722['discard']();});});}['enableCommand'](_0x36172b,_0x492447){const _0x4179cc=this['editor']['commands']['get'](_0x36172b);if(!_0x4179cc)throw new _0x40d556('track-changes-command-not-found',this,{'commandName':_0x36172b});if(this['_enabledCommands']['has'](_0x4179cc))throw new _0x40d556('track-changes-enable-command-twice',this,{'commandName':_0x36172b});this['_enabledCommands']['add'](_0x4179cc),_0x492447&&_0x4179cc['on']('execute',(_0x3742d9,_0x33cda0)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x33cda0['length']>0x0&&_0x33cda0[_0x33cda0['length']-0x1]&&_0x33cda0[_0x33cda0['length']-0x1]['forceDefaultExecution']?_0x33cda0['pop']():(_0x3742d9['return']=_0x492447((..._0x111181)=>_0x4179cc['execute'](..._0x111181,{'forceDefaultExecution':!0x0}),..._0x33cda0),_0x3742d9['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x1fece7){let _0x488fbe,_0x2642e8;const _0x5a762f=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x488fbe=_0x1fece7();}catch(_0x4edf23){_0x2642e8=_0x4edf23;}return _0x5a762f||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x2642e8&&_0x40d556['rethrowUnexpectedError'](_0x2642e8,this),_0x488fbe;}['markInsertion'](_0xd12cd6,_0x425011=null,_0x800989={}){if(_0xd12cd6['isCollapsed'])return null;const _0x13e27b=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x4b2d4d,meta:_0x4584ae}of this['_findSuggestions'](_0xd12cd6,'insertion'))if(_0x4584ae['isOwn']){if(!_0x4584ae['isNextTo']){if(_0x4584ae['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Kt(_0x4b2d4d,_0x800989))continue;return _0x4b2d4d;}if(Kt(_0x4b2d4d,_0x800989))return _0x4b2d4d;this['_breakSuggestionMarker'](_0x4b2d4d,_0xd12cd6['start'],_0xd12cd6['end']);break;}if(_0x425011==_0x4b2d4d['subType']&&Kt(_0x4b2d4d,_0x800989)){const _0x5af216=_0x4b2d4d['getFirstRange']();return _0x5af216['start']['isEqual'](_0xd12cd6['end'])?this['_setSuggestionRange'](_0x4b2d4d,this['_model']['createRange'](_0xd12cd6['start'],_0x5af216['end'])):this['_setSuggestionRange'](_0x4b2d4d,this['_model']['createRange'](_0x5af216['start'],_0xd12cd6['end'])),_0x4b2d4d;}}const _0x394a63=_0x30b629(),_0x24b42d=_0x13e27b['id'],_0x1d2e4c=_0x425011?'insertion:'+_0x425011:'insertion',_0xb89ebf=this['_setSuggestionData']({'id':_0x394a63,'type':_0x1d2e4c,'createdAt':new Date(),'authorId':_0x24b42d,'attributes':_0x800989});return this['_addSuggestionMarker'](_0x1d2e4c,_0x394a63,_0x24b42d,_0xd12cd6),_0xb89ebf;}['markMultiRangeInsertion'](_0x29c569,_0x2a2b03='multi',_0x20b068={}){const _0x24be3c=this['editor']['plugins']['get']('Users')['me'],_0x5234e7=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x2a2b03,'join');for(const _0x393d8f of this['getSuggestions']())if(_0x393d8f['author']['id']==_0x24be3c['id']&&'insertion'==_0x393d8f['type']&&_0x393d8f['subType']==_0x2a2b03&&Kt(_0x393d8f,_0x20b068)&&(_0x5234e7(_0x393d8f['getRanges'](),_0x29c569)||_0x5234e7(_0x29c569,_0x393d8f['getRanges']()))){for(const _0x53d761 of _0x29c569)_0x393d8f['addRange'](_0x53d761);return _0x393d8f;}for(const {suggestion:_0x45be3b,meta:_0x12b317}of this['_findSuggestions'](_0x29c569,'insertion')){if(!_0x12b317['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x12b317['containsRangeInObject'])continue;if(!Kt(_0x45be3b,_0x20b068))continue;let _0x2974ec=!0x0;for(const _0x1a7a21 of _0x45be3b['getRanges']())for(const _0x2d5761 of _0x29c569)if(!_0x1a7a21['containsRange'](_0x2d5761)){_0x2974ec=!0x1;break;}if(_0x2974ec)return _0x45be3b;}const _0x8755b5=_0x30b629(),_0x2ec9f2=_0x24be3c['id'],_0x39f60d='insertion:'+_0x2a2b03,_0x327adb=this['_setSuggestionData']({'id':_0x8755b5,'type':_0x39f60d,'createdAt':new Date(),'authorId':_0x2ec9f2,'attributes':_0x20b068});for(const _0x186296 of _0x29c569)this['_addSuggestionMarker'](_0x39f60d,_0x8755b5,_0x2ec9f2,_0x186296,u['getMultiRangeId']());return _0x327adb;}['markInlineFormat'](_0x1c7107,_0x10988b,_0x21586e=null,_0x3cc067={}){if(_0x21586e=_0x21586e||Ft(_0x10988b),_0x1c7107['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x5a10a0=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x21586e,'accept');return this['forceDefaultExecution'](()=>_0x5a10a0([_0x1c7107],_0x10988b,_0x3cc067)),null;}const _0x425978=this['editor']['plugins']['get']('Users')['me'],_0x2af9e4=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x4607f7,meta:_0x1f8dcd}of this['_findSuggestions'](_0x1c7107,'insertion'))_0x1f8dcd['isOwn']&&!_0x1f8dcd['isInsideObject']&&_0x2af9e4['push'](..._0x4607f7['getRanges']());}const _0x165332=function(_0x232e4e,_0x3905a3){const _0x59e347=[];for(const _0x5e73ff of _0x3905a3){const _0x5e728d=_0x232e4e['getIntersection'](_0x5e73ff);_0x5e728d&&_0x59e347['push'](_0x5e728d);}return _0x59e347;}(_0x1c7107,_0x2af9e4),_0x533009=function(_0x3fb4b3,_0x5747d5){const _0x2c0470=[_0x3fb4b3];for(const _0x57e1ce of _0x5747d5){let _0x463051=0x0;for(;_0x463051<_0x2c0470['length'];){const _0x44ae0f=_0x2c0470[_0x463051]['getDifference'](_0x57e1ce);_0x2c0470['splice'](_0x463051,0x1,..._0x44ae0f),_0x463051+=_0x44ae0f['length'];}}return _0x2c0470;}(_0x1c7107,_0x2af9e4);_0x165332['length']&&this['_model']['change'](()=>{for(const _0x2afd73 of _0x165332){const _0x4e1b9f=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x21586e,'accept');this['forceDefaultExecution'](()=>_0x4e1b9f([_0x2afd73],_0x10988b,_0x3cc067));}});for(const _0x45e8a3 of _0x533009){let _0x4a7c7e=null,_0xc59493=_0x45e8a3['start'],_0xd72d4=_0x45e8a3['end'];for(const {suggestion:_0x3ec0cd,meta:_0x10931f}of this['_findSuggestions'](_0x45e8a3,'formatInline')){if(!_0x10931f['isOwn'])continue;if(_0x3ec0cd['subType']!=_0x21586e)continue;if(!Kt(_0x3ec0cd,_0x3cc067))continue;const _0x5e1fd1=_0x3ec0cd['getFirstRange']();if(_0x5e1fd1['containsRange'](_0x45e8a3,!0x0))return null;_0xc59493=_0xc59493['isBefore'](_0x5e1fd1['start'])?_0xc59493:_0x5e1fd1['start'],_0xd72d4=_0xd72d4['isAfter'](_0x5e1fd1['end'])?_0xd72d4:_0x5e1fd1['end'],_0x4a7c7e?_0x5e1fd1['start']['isBefore'](_0x4a7c7e['getFirstRange']()['start'])?(_0x4a7c7e['removeMarkers'](),_0x4a7c7e=_0x3ec0cd):_0x3ec0cd['removeMarkers']():_0x4a7c7e=_0x3ec0cd;}const _0x1d2934=this['_model']['createRange'](_0xc59493,_0xd72d4);if(_0x4a7c7e)this['_setSuggestionRange'](_0x4a7c7e,_0x1d2934);else{const _0x32cd02=_0x30b629(),_0x50b8ef=_0x425978['id'];this['_setSuggestionData']({'id':_0x32cd02,'type':'formatInline:'+_0x21586e,'data':_0x10988b,'createdAt':new Date(),'authorId':_0x50b8ef,'attributes':_0x3cc067}),this['_addSuggestionMarker']('formatInline:'+_0x21586e,_0x32cd02,_0x50b8ef,_0x1d2934);}}return null;}['markBlockFormat'](_0x235290,_0x5851a5,_0x5c694e=[],_0x28c3da=null,_0x5c35f9={}){_0x5851a5['formatGroupId']||(_0x5851a5['formatGroupId']=_0x5851a5['commandName']),_0x5851a5['multipleBlocks']=_0x235290['is']('range'),_0x28c3da=_0x28c3da||Ft(_0x5851a5);const _0x2661d3=_0x5c694e['map'](_0x4012a1=>Ht(_0x4012a1,this['_model'])),_0x4564e5=_0x235290['is']('range')?_0x235290:Ht(_0x235290,this['_model']);if('never'===this['_trackFormatChanges']){const _0x1c46d8=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x28c3da,'accept');return this['forceDefaultExecution'](()=>_0x1c46d8([_0x4564e5],_0x5851a5,_0x5c35f9)),null;}_0x2661d3['push'](_0x4564e5);let _0x2c312e=!0x0;for(const _0x4caa64 of _0x2661d3)if(!this['_rangeIsInLocalUserInsertion'](_0x4caa64)){_0x2c312e=!0x1;break;}if(_0x2c312e&&'always'!==this['_trackFormatChanges']){const _0x45feaf=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x28c3da,'accept');return this['forceDefaultExecution'](()=>_0x45feaf([_0x4564e5],_0x5851a5,_0x5c35f9)),null;}let _0x5bd208=null,_0xba8fe7=_0x4564e5['start'],_0x18fd80=_0x4564e5['end'];for(const {suggestion:_0x1514da,meta:_0x10a73f}of this['_findSuggestions'](_0x4564e5,'formatBlock')){if(!_0x10a73f['isOwn'])continue;if(_0x10a73f['isNextTo']||_0x10a73f['containsRangeInObject']||_0x10a73f['isInsideObject'])continue;if(_0x1514da['data']['formatGroupId']!=_0x5851a5['formatGroupId'])continue;if(!Kt(_0x1514da,_0x5c35f9))continue;const _0x273976=_0x1514da['getFirstRange']();if(_0x1514da['subType']==_0x28c3da){if(_0x273976['containsRange'](_0x4564e5,!0x0))return null;_0xba8fe7=_0xba8fe7['isBefore'](_0x273976['start'])?_0xba8fe7:_0x273976['start'],_0x18fd80=_0x18fd80['isAfter'](_0x273976['end'])?_0x18fd80:_0x273976['end'],_0x5bd208?_0x273976['start']['isBefore'](_0x5bd208['getFirstRange']()['start'])?(_0x5bd208['removeMarkers'](),_0x5bd208=_0x1514da):_0x1514da['removeMarkers']():_0x5bd208=_0x1514da;}else{const _0x291ba0=_0x4564e5['getIntersection'](_0x273976);this['_cutOutSuggestionMarker'](_0x1514da,_0x291ba0);}}const _0x198f7e=this['editor']['plugins']['get']('Users')['me'],_0x16fac1=_0x30b629(),_0x2a1145=_0x198f7e['id'];if(_0x5bd208)return this['_setSuggestionRange'](_0x5bd208,this['_model']['createRange'](_0xba8fe7,_0x18fd80)),_0x5bd208;{const _0x404734=this['_setSuggestionData']({'id':_0x16fac1,'type':'formatBlock:'+_0x28c3da,'data':_0x5851a5,'createdAt':new Date(),'authorId':_0x2a1145,'attributes':_0x5c35f9});return this['_addSuggestionMarker']('formatBlock:'+_0x28c3da,_0x16fac1,_0x2a1145,this['_model']['createRange'](_0xba8fe7,_0x18fd80)),_0x404734;}}['markMultiRangeBlockFormat'](_0x5863a6,_0x3f22fc,_0x766ad6=[],_0x4c00ed=null,_0xd63b6e={}){_0x3f22fc['formatGroupId']||(_0x3f22fc['formatGroupId']=_0x3f22fc['commandName']);const _0x505c38=_0x5863a6[0x0];_0x3f22fc['multipleBlocks']=_0x505c38['is']('range'),_0x4c00ed=_0x4c00ed||Ft(_0x3f22fc);const _0x23141e=_0x766ad6['map'](_0x90c8ac=>Ht(_0x90c8ac,this['_model'])),_0x361de9=_0x505c38['is']('range')?_0x5863a6:_0x5863a6['map'](_0x4418e2=>Ht(_0x4418e2,this['_model']));if('never'===this['_trackFormatChanges']){const _0x3b3cc3=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4c00ed,'accept');return this['forceDefaultExecution'](()=>_0x3b3cc3(_0x361de9,_0x3f22fc,_0xd63b6e)),null;}_0x23141e['push'](..._0x361de9);let _0x2ac19=!0x0;for(const _0x443e6b of _0x23141e)if(!this['_rangeIsInLocalUserInsertion'](_0x443e6b)){_0x2ac19=!0x1;break;}if(_0x2ac19&&'always'!==this['_trackFormatChanges']){const _0x451e2b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4c00ed,'accept');return this['forceDefaultExecution'](()=>_0x451e2b(_0x361de9,_0x3f22fc,_0xd63b6e)),null;}const _0x6fcca3=this['editor']['plugins']['get']('Users')['me'];for(const _0x15ac7d of this['getSuggestions']()){if(_0x15ac7d['author']['id']!=_0x6fcca3['id'])continue;if('formatBlock'!=_0x15ac7d['type']||_0x15ac7d['data']['formatGroupId']!=_0x3f22fc['formatGroupId'])continue;if(!Kt(_0x15ac7d,_0xd63b6e))continue;const _0x4af279=_0x15ac7d['subType']==_0x4c00ed;for(let _0x1fe62c=0x0;_0x1fe62c<_0x361de9['length'];_0x1fe62c++){const _0x2acff9=_0x361de9[_0x1fe62c];for(const _0x5a0167 of _0x15ac7d['getMarkers']()){const _0x1e2287=_0x5a0167['getRange']();if(_0x2acff9['isEqual'](_0x1e2287)){_0x4af279?(_0x361de9['splice'](_0x1fe62c,0x1),_0x1fe62c--):_0x15ac7d['removeMarker'](_0x5a0167['name']);break;}}}}if(0x0==_0x361de9['length'])return null;const _0x5e2d1d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4c00ed,'join');for(const _0x502066 of this['getSuggestions']())if(_0x502066['author']['id']==_0x6fcca3['id']&&'formatBlock'==_0x502066['type']&&_0x502066['data']['formatGroupId']==_0x3f22fc['formatGroupId']&&_0x502066['subType']==_0x4c00ed&&Kt(_0x502066,_0xd63b6e)&&(_0x5e2d1d(_0x502066['getRanges'](),_0x361de9)||_0x5e2d1d(_0x361de9,_0x502066['getRanges']()))){for(const _0x3e933f of _0x361de9)_0x502066['addRange'](_0x3e933f);return _0x502066;}const _0x28742c=_0x30b629(),_0x49fff8=_0x6fcca3['id'],_0x557f16='formatBlock:'+_0x4c00ed,_0x284acf=this['_setSuggestionData']({'id':_0x28742c,'type':_0x557f16,'data':_0x3f22fc,'createdAt':new Date(),'authorId':_0x49fff8,'attributes':_0xd63b6e});for(const _0xd8176e of _0x361de9)this['_addSuggestionMarker'](_0x557f16,_0x28742c,_0x49fff8,_0xd8176e,u['getMultiRangeId']());return _0x284acf;}['markDeletion'](_0x2faad1,_0x7bbcc8=null,_0x57ff0f={}){if(_0x2faad1['isCollapsed'])return null;const _0x539552=this['editor']['plugins']['get']('Users')['me'],_0x1e978c=new _0x531fcc(_0x2faad1['start'],_0x2faad1['end']);for(const {suggestion:_0xfa62d,meta:_0x5f4db9}of this['_findSuggestions'](_0x1e978c,'insertion'))if(_0x5f4db9['isOwn']&&!_0x5f4db9['isNextTo']){if(_0xfa62d['isMultiRange']){const _0x515931=_0xfa62d['getRanges']()['filter'](_0x1e01cd=>'$graveyard'!=_0x1e01cd['root']['rootName']);_0x515931['every'](_0x3c1b38=>_0x1e978c['containsRange'](_0x3c1b38,!0x0))&&_0xfa62d['discard']();if(_0x515931['some'](_0x5eacd2=>_0x5eacd2['containsRange'](_0x1e978c,!0x0))){const _0x227160=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x7bbcc8,'accept');return this['forceDefaultExecution'](()=>_0x227160([_0x1e978c],null,_0x57ff0f)),null;}}else{const _0x5a6ae7=_0x1e978c['getIntersection'](_0xfa62d['getFirstRange']());null!==_0x5a6ae7&&_0xfa62d['_onDiscard']([_0x5a6ae7],null,_0x57ff0f);}}if(_0x1e978c['detach'](),_0x1e978c['isCollapsed']||'$graveyard'==_0x1e978c['root']['rootName'])return null;let _0x29ab9c=null,_0x50a811=_0x1e978c['start'],_0x3915b7=_0x1e978c['end'];const _0x22121b=this['_findSuggestions'](_0x1e978c,'deletion');for(const {suggestion:_0x13bda5,meta:_0x4051eb}of _0x22121b){const _0xe71209=this['_model']['createRange'](_0x50a811,_0x3915b7);if(_0x4051eb['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4051eb['containsRangeInObject']&&!_0x4051eb['isInsideObject'])){if(_0x13bda5['isMultiRange']){if(!Kt(_0x13bda5,_0x57ff0f))continue;let _0x1f1acd=!0x0;for(const _0x5fd4a1 of _0x13bda5['getRanges']()){if(_0x5fd4a1['containsRange'](_0xe71209,!0x0))return _0x13bda5;_0xe71209['containsRange'](_0x5fd4a1)||(_0x1f1acd=!0x1);}_0x1f1acd&&_0x13bda5['discard']();}else{const _0x47fddb=_0x13bda5['getFirstRange']();if(_0x47fddb['containsRange'](_0xe71209,!0x0))return _0x13bda5;if(!Kt(_0x13bda5,_0x57ff0f)){_0xe71209['containsRange'](_0x47fddb)?_0x13bda5['removeMarkers']():_0x47fddb['containsPosition'](_0x50a811)?_0x50a811=_0x47fddb['end']:_0x47fddb['containsPosition'](_0x3915b7)&&(_0x3915b7=_0x47fddb['start']);continue;}_0x50a811=_0x50a811['isBefore'](_0x47fddb['start'])?_0x50a811:_0x47fddb['start'],_0x3915b7=_0x3915b7['isAfter'](_0x47fddb['end'])?_0x3915b7:_0x47fddb['end'],_0x57ff0f=Object['assign']({},_0x13bda5['attributes']),_0x29ab9c?_0x47fddb['start']['isBefore'](_0x29ab9c['getFirstRange']()['start'])?(_0x29ab9c['removeMarkers'](),_0x29ab9c=_0x13bda5):_0x13bda5['removeMarkers']():_0x29ab9c=_0x13bda5;}}}if(_0x29ab9c)return this['_setSuggestionRange'](_0x29ab9c,this['_model']['createRange'](_0x50a811,_0x3915b7)),_0x29ab9c;{const _0x2c9c83=_0x30b629(),_0x26bd25=this['_model']['createRange'](_0x50a811,_0x3915b7),_0x263b7f=_0x539552['id'],_0xd661d4=_0x7bbcc8?'deletion:'+_0x7bbcc8:'deletion',_0x532263=this['_setSuggestionData']({'id':_0x2c9c83,'type':_0xd661d4,'createdAt':new Date(),'authorId':_0x263b7f,'attributes':_0x57ff0f});return this['_addSuggestionMarker'](_0xd661d4,_0x2c9c83,_0x263b7f,_0x26bd25),_0x532263;}}['markMultiRangeDeletion'](_0x23df14,_0x475679='multi',_0x5a23a5={}){const _0x1c7f04=this['editor']['plugins']['get']('Users')['me'],_0x530872=_0x23df14['map'](_0x46af63=>new _0x531fcc(_0x46af63['start'],_0x46af63['end'])),_0xd3acb8=new Set();for(const {suggestion:_0x4cdff7,meta:_0x297fc7}of this['_findSuggestions'](_0x530872,'insertion'))_0x297fc7['isOwn']&&!_0x297fc7['isNextTo']&&_0xd3acb8['add'](_0x4cdff7);for(const _0x51d6fe of _0xd3acb8)if(_0x51d6fe['isMultiRange']){const _0x578420=_0x51d6fe['getRanges']();(!_0x51d6fe['attributes']||!_0x51d6fe['attributes']['skipNestingCheck'])&&(_0x578420['every'](_0x217e6d=>_0x530872['some'](_0xd78128=>_0xd78128['containsRange'](_0x217e6d,!0x0)))&&_0x51d6fe['discard']());if(_0x530872['every'](_0x367c59=>_0x578420['some'](_0x55a93a=>_0x55a93a['containsRange'](_0x367c59,!0x0)))){const _0x4a44c1=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x475679,'accept');return this['forceDefaultExecution'](()=>_0x4a44c1(_0x23df14,null,_0x5a23a5)),null;}}else{const _0x1e9b76=_0x51d6fe['getFirstRange']();_0x530872['some'](_0x386fd9=>_0x386fd9['containsRange'](_0x1e9b76,!0x0))&&_0x51d6fe['discard']();if(_0x530872['every'](_0x14c0b0=>_0x1e9b76['containsRange'](_0x14c0b0,!0x0))){const _0x10cfc1=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x475679,'accept');return this['forceDefaultExecution'](()=>_0x10cfc1(_0x530872,null,_0x5a23a5)),null;}}const _0x3beef6=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x475679,'join');let _0x46e8cb=null;for(const _0x3342d5 of this['getSuggestions']())if(_0x3342d5['author']['id']==_0x1c7f04['id']&&_0x3342d5['isInContent']&&'deletion'==_0x3342d5['type']&&_0x3342d5['subType']==_0x475679&&Kt(_0x3342d5,_0x5a23a5)&&(_0x3beef6(_0x3342d5['getRanges'](),_0x530872)||_0x3beef6(_0x530872,_0x3342d5['getRanges']()))){if(_0x46e8cb){if(_0x3342d5['commentThread']&&_0x3342d5['commentThread']['length'])continue;for(const _0x12389b of _0x3342d5['getRanges']())_0x46e8cb['isIntersectingWithRange'](_0x12389b)||_0x46e8cb['addRange'](_0x12389b);_0x3342d5['removeMarkers']();}else{_0x46e8cb=_0x3342d5;for(const _0x2f094e of _0x530872)_0x3342d5['isIntersectingWithRange'](_0x2f094e)||_0x3342d5['addRange'](_0x2f094e);}}if(_0x46e8cb)return _0x46e8cb;_0xd3acb8['clear']();for(const {suggestion:_0x1b629c,meta:_0x3fb6de}of this['_findSuggestions'](_0x530872,'deletion'))_0x3fb6de['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3fb6de['containsRangeInObject']&&!_0x3fb6de['isInsideObject'])&&Kt(_0x1b629c,_0x5a23a5)&&_0xd3acb8['add'](_0x1b629c);for(const _0x190b3b of _0xd3acb8){const _0xe15632=_0x190b3b['getRanges']();if(!_0x5a23a5||!_0x5a23a5['skipNestingCheck']){if(_0x530872['every'](_0x5a0932=>_0xe15632['some'](_0x57309f=>_0x57309f['containsRange'](_0x5a0932,!0x0))))return _0x190b3b;}(!_0x190b3b['attributes']||!_0x190b3b['attributes']['skipNestingCheck'])&&(_0xe15632['every'](_0x113fe9=>_0x530872['some'](_0x14c1d4=>_0x14c1d4['containsRange'](_0x113fe9,!0x0)))&&_0x190b3b['discard']());}const _0x22c0be=_0x30b629(),_0x3b13be=_0x1c7f04['id'],_0x3cf520='deletion:'+_0x475679,_0x7582bb=this['_setSuggestionData']({'id':_0x22c0be,'type':_0x3cf520,'createdAt':new Date(),'authorId':_0x3b13be,'attributes':_0x5a23a5});for(const _0x1d2f17 of _0x530872)_0x1d2f17['detach'](),_0x1d2f17['isCollapsed']||'$graveyard'==_0x1d2f17['root']['rootName']||this['_addSuggestionMarker'](_0x3cf520,_0x22c0be,_0x3b13be,_0x1d2f17,u['getMultiRangeId']());return _0x7582bb;}['markAttributeChange'](_0x2b939e,_0x27d5f9,_0x878aca,_0x55a3c4,_0x1737c9){if(_0x2b939e['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x525acb=this['editor']['plugins']['get']('Users')['me']['id'],_0x532fcd=Array['from'](this['_suggestions']['values']())['filter'](_0x1fde06=>'attribute'==_0x1fde06['type']&&_0x1fde06['data']['key']==_0x27d5f9&&_0x1fde06['isIntersectingWithRange'](_0x2b939e));if('default'===this['_trackFormatChanges']){const _0x1a810a=this['_findSuggestions'](_0x2b939e,'insertion')['filter'](({meta:_0x213c6d})=>_0x213c6d['isOwn']&&!_0x213c6d['isInsideObject']&&!_0x213c6d['isNextTo'])['map'](({suggestion:_0x2378d5})=>_0x2378d5);_0x532fcd['unshift'](..._0x1a810a);}const _0x1c0e0f=new Map([[_0x2b939e,_0x878aca]]);for(const _0x283cdc of _0x532fcd){const _0xf32490='attribute'==_0x283cdc['type']?_0x283cdc['data']['oldValue']:void 0x0,_0x24b2db=_0x283cdc['getFirstRange'](),_0x199035=Array['from'](_0x1c0e0f['keys']())['find'](_0x20e629=>_0x20e629['isIntersecting'](_0x24b2db));if(!_0x199035)continue;const _0x290bbe=_0x199035['getDifference'](_0x24b2db);this['_isBlockAttribute'](_0x27d5f9)&&'insertion'==_0x283cdc['type']&&0x0!=_0x290bbe['length']||(_0x1c0e0f['delete'](_0x199035),_0x290bbe['forEach'](_0xdd6aa1=>{_0x1c0e0f['set'](_0xdd6aa1,_0x878aca);}),'insertion'!=_0x283cdc['type']&&_0xf32490!=_0x55a3c4&&_0x1c0e0f['set'](_0x199035['getIntersection'](_0x24b2db),_0xf32490));}const _0x2cf02e=[];for(const [_0x4eaea5,_0x2807cf]of _0x1c0e0f){const _0xaae879=_0x30b629(),_0x2240bb={'key':_0x27d5f9,'oldValue':_0x2807cf,'newValue':_0x55a3c4};_0x27d5f9['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':_0x27d5f9});const _0x54e97d=('attribute:'+(_0x27d5f9+'|'+Ft({'newValue':_0x55a3c4})))['substring'](0x0,0x3c),_0xc7c5a=this['_setSuggestionData']({'id':_0xaae879,'type':_0x54e97d,'data':_0x2240bb,'createdAt':new Date(),'authorId':_0x525acb,'attributes':_0x1737c9});_0x2cf02e['push'](_0xc7c5a),this['_addSuggestionMarker'](_0x54e97d,_0xaae879,_0x525acb,_0x4eaea5);}return _0x2cf02e;}['enableDefaultAttributesIntegration'](_0x1d203c){this['enableCommand'](_0x1d203c,(_0xe2a67,..._0xd19f4e)=>{this['_recordAttributeChanges'](()=>{_0xe2a67(..._0xd19f4e);});});}['registerBlockAttribute'](_0x10dbd8){this['_blockAttributeKeys']['add'](_0x10dbd8);}['registerInlineAttribute'](_0x13b070){this['_inlineAttributeKeys']['add'](_0x13b070);}['_getAttributeKey'](_0x399358){return'attribute'==_0x399358['type']?_0x399358['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x2bbda9,_0x3e7206){const _0x32d600=_0x2bbda9['getFirstMarker']();this['_model']['change'](_0x2fa778=>{_0x2fa778['updateMarker'](_0x32d600,{'range':_0x3e7206});});}['_addThreadToSuggestion'](_0x2c4aed){const _0x23dd18=_0x2c4aed['id'],_0x19b94d=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x23dd18)||this['_commentsRepository']['addCommentThread']({'channelId':_0x19b94d,'threadId':_0x23dd18,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x4e6fbf=this['_commentsRepository']['getCommentThread'](_0x23dd18);_0x4e6fbf['unbind']('isRemovable'),_0x4e6fbf['isRemovable']=!0x1,_0x2c4aed['commentThread']=_0x4e6fbf;}['_checkSuggestionCorrectness'](_0x3fce46,_0x177453,_0xaad87e,_0x181978){if(_0x3fce46['type']!=_0x177453||_0x3fce46['subType']!=_0xaad87e||_0x3fce46['creator']['id']!=_0x181978)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x40d556('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x53badd,_0x234263){const _0x389d3b=_0x53badd['getFirstRange']();if(_0x234263['isEqual'](_0x389d3b))_0x53badd['removeMarkers']();else{if(_0x389d3b['containsRange'](_0x234263)){const _0x1f7100=this['_model']['createPositionAt'](_0x234263['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x53badd,this['_model']['createRange'](_0x389d3b['start'],_0x1f7100));const _0xd00c3f=_0x30b629(),_0x18e356=_0x53badd['creator']['id'],_0x13a963=_0x53badd['type']+':'+_0x53badd['subType'];this['_setSuggestionData']({'id':_0xd00c3f,'type':_0x13a963,'createdAt':new Date(),'authorId':_0x18e356,'data':_0x53badd['data'],'attributes':_0x53badd['attributes']});const _0x84567f=this['_model']['createPositionAt'](_0x234263['end']['parent'],'after'),_0x2d9449=this['_model']['createRange'](_0x84567f,_0x389d3b['end']);this['_addSuggestionMarker'](_0x13a963,_0xd00c3f,_0x18e356,_0x2d9449);}else{if(_0x389d3b['containsPosition'](_0x234263['start'])){const _0x5e9c27=this['_model']['createPositionAt'](_0x234263['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x53badd,this['_model']['createRange'](_0x389d3b['start'],_0x5e9c27));}else{const _0x944cc6=this['_model']['createPositionAt'](_0x234263['end']['parent'],'after');this['_setSuggestionRange'](_0x53badd,this['_model']['createRange'](_0x944cc6,_0x389d3b['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x5c71a1){for(const {suggestion:_0x485cfd,meta:_0x41b698}of this['_findSuggestions'](_0x5c71a1,'insertion')){if(!_0x41b698['isOwn'])continue;const _0x4f47e6=_0x485cfd['getRanges']();for(const _0x223527 of _0x4f47e6)if(!_0x5c71a1['getDifference'](_0x223527)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x2b97c3){const _0x52e3d3=this['editor']['plugins']['get']('Users')['getUser'](_0x2b97c3);if(!_0x52e3d3)throw new _0x40d556('track-changes-user-not-found',this);return _0x52e3d3;}['_getExternalAuthor'](_0x430cf7){const _0x2c90b=this['editor']['plugins']['get']('Users'),_0x2da428=_0x26d3d5('external:'+_0x430cf7),_0x38425d=_0x2c90b['getUser'](_0x2da428);return _0x38425d||_0x2c90b['addUser']({'id':_0x2da428,'name':_0x430cf7});}['_createSuggestion'](_0x5a2a42,_0x596967,_0x56acfb,_0x39d048,_0x4ce427){const _0x5f4e21=this['_getAuthorFromId'](_0x39d048),_0x5e9fd3=this['_suggestionFactory']['buildSuggestion'](_0x5a2a42,_0x596967,_0x56acfb,_0x5f4e21,_0x4ce427,_0x11660d=>{this['_updateSuggestionData'](_0x56acfb,{'attributes':_0x11660d});const _0x1ae30c=this['getSuggestion'](_0x56acfb);this['_joinWithAdjacentSuggestions'](new Set([_0x1ae30c])),this['_refreshSuggestionsChain'](new Set([_0x1ae30c]));});return this['listenTo'](_0x5e9fd3,'accept',()=>{this['_updateSuggestionData'](_0x56acfb,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x5e9fd3,'discard',()=>{this['_updateSuggestionData'](_0x56acfb,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x56acfb,_0x5e9fd3),this['_suggestionState']['set'](_0x5e9fd3,'notReady'),_0x5e9fd3;}['_splitMarkerName'](_0x22d3c6){const _0x36569e=_0x22d3c6['split'](':');return{'group':_0x36569e[0x0],'type':_0x36569e[0x1],'subType':_0x36569e['length']>=0x5?_0x36569e[0x2]:null,'id':_0x36569e['length']<0x5?_0x36569e[0x2]:_0x36569e[0x3],'authorId':_0x36569e['length']<0x5?_0x36569e[0x3]:_0x36569e[0x4],'markerCount':0x6==_0x36569e['length']?_0x36569e[0x5]:null};}['_breakSuggestionMarker'](_0x41ae9b,_0x5a353a,_0x12e91e){const _0x41e009=_0x41ae9b['getFirstRange'](),_0x4c268e=_0x41e009['start'],_0xc6f39=_0x41e009['end'];this['_setSuggestionRange'](_0x41ae9b,this['_model']['createRange'](_0x4c268e,_0x5a353a));const _0x1a47cf=_0x30b629(),_0x5e8368=_0x41ae9b['creator']['id'],_0x4d137f=_0x41ae9b['type']+(_0x41ae9b['subType']?':'+_0x41ae9b['subType']:'');this['_setSuggestionData']({'id':_0x1a47cf,'type':_0x4d137f,'createdAt':new Date(),'authorId':_0x5e8368,'originalSuggestionId':_0x41ae9b['id'],'attributes':_0x41ae9b['attributes'],'data':_0x41ae9b['data']});const _0x2e1ffd=this['_getAttributeKey'](_0x41ae9b);('formatBlock'==_0x41ae9b['type']||_0x2e1ffd&&this['_isBlockAttribute'](_0x2e1ffd))&&(_0x12e91e=this['_model']['createPositionBefore'](_0x12e91e['parent'])),this['_addSuggestionMarker'](_0x4d137f,_0x1a47cf,_0x5e8368,this['_model']['createRange'](_0x12e91e,_0xc6f39));}['_findSuggestions'](_0x33c279,_0x5c7416=null){const _0x40868e=[],_0xc4cc65=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x33c279)||(_0x33c279=[_0x33c279]);for(const _0x20c835 of this['getSuggestions']()){if(!_0x20c835['isInContent'])continue;if(_0x5c7416&&_0x20c835['type']!=_0x5c7416)continue;let _0x2790dd=!0x1;for(const _0x84bff1 of _0x20c835['getRanges']()){for(const _0x2e0238 of _0x33c279){const _0x1adf1a=_0x2e0238['start']['isEqual'](_0x84bff1['end'])||_0x2e0238['end']['isEqual'](_0x84bff1['start']);if(_0x1adf1a||_0x2e0238['getIntersection'](_0x84bff1)){const _0x4cc2e5=_0x2e0238['containsRange'](_0x84bff1)&&Vt(this['_model']['schema'],_0x84bff1['start'],_0x2e0238),_0x5ad377=_0x84bff1['containsRange'](_0x2e0238)&&Vt(this['_model']['schema'],_0x2e0238['start'],_0x84bff1);_0x40868e['push']({'suggestion':_0x20c835,'meta':{'isOwn':_0xc4cc65==_0x20c835['author'],'isNextTo':_0x1adf1a,'isInsideObject':_0x4cc2e5,'containsRangeInObject':_0x5ad377}}),_0x2790dd=!0x0;break;}}if(_0x2790dd)break;}}return _0x40868e;}['_addSuggestionMarker'](_0x38d6bf,_0x5e7262,_0x3c88d1,_0x1a8989,_0x23894d){this['_model']['change'](_0x47ce77=>{let _0x22bd9e='suggestion:'+_0x38d6bf+':'+_0x5e7262+':'+_0x3c88d1;_0x23894d&&(_0x22bd9e=_0x22bd9e+':'+_0x23894d),_0x47ce77['addMarker'](_0x22bd9e,{'range':_0x1a8989,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0xcd4878){const _0x5458a4=_0xcd4878['previous'],_0x331193=_0xcd4878['next'];_0xcd4878['previous']=null,_0xcd4878['next']=null,null!=_0x5458a4&&_0x5458a4['next']==_0xcd4878&&(_0x5458a4['next']=_0x331193),null!=_0x331193&&_0x331193['previous']==_0xcd4878&&(_0x331193['previous']=_0x5458a4),'ready'==this['_suggestionState']['get'](_0xcd4878)&&(this['_suggestionState']['set'](_0xcd4878,'removed'),this['fire']('suggestionUnloaded',_0xcd4878,_0x5458a4,_0x331193));}['_setSuggestionData'](_0x2b37b9){const _0x2685a6=_0x2b37b9['id'],_0x215b5d=this['addSuggestionData'](_0x2b37b9);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x104444=this['editor']['plugins']['get']('PendingActions'),_0x1aaa1a=_0x215b5d['hasComments'],_0x29b305=_0x215b5d['subType']?_0x215b5d['type']+':'+_0x215b5d['subType']:_0x215b5d['type'],_0xb6fda1=this['editor']['locale'],_0x723ef8=_0x104444['add'](o(_0xb6fda1,'PENDING_ACTION_SUGGESTION')),_0x32334c={'id':_0x2685a6,'type':_0x29b305,'hasComments':_0x1aaa1a,'data':_0x2b37b9['data']||null,'originalSuggestionId':_0x2b37b9['originalSuggestionId']||null,'attributes':_0x215b5d['attributes']};this['_adapter']['addSuggestion'](_0x32334c)['then'](_0x342f6c=>{_0x215b5d['_saved']=!0x0,_0x104444['remove'](_0x723ef8),_0x342f6c&&_0x342f6c['createdAt']&&(this['_suggestions']['get'](_0x2685a6)['createdAt']=_0x342f6c['createdAt']);})['catch'](_0x3220e6=>{throw _0x278dc8('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x215b5d['discard']();}),_0x215b5d['stopListening'](),this['_suggestions']['delete'](_0x215b5d['id']),this['_suggestionState']['delete'](_0x215b5d),_0x3220e6;});}return _0x215b5d;}['_isBlockAttribute'](_0x5872b2){return this['_blockAttributeKeys']['has'](_0x5872b2);}['_updateSuggestionData'](_0x2d65bd,_0x239a34){const _0x1ee66d=this['editor']['plugins']['get']('PendingActions'),_0x3378f3=this['getSuggestion'](_0x2d65bd);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x3378f3['_saved']){const _0x5efe5a=_0x1ee66d['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x2d65bd,_0x239a34)['then'](()=>{_0x1ee66d['remove'](_0x5efe5a);});}else _0x3378f3['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x2d65bd,_0x239a34);});}}['_getSuggestionData'](_0x150e1c){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x40d556('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x150e1c);}['_handleNewSuggestionMarker'](_0x46fdc3){const {id:_0x57e6e2,type:_0x331425,subType:_0x5cb89a,authorId:_0xb92e3f}=this['_splitMarkerName'](_0x46fdc3),_0x29f7a5=this['_suggestions']['get'](_0x57e6e2)||this['_createSuggestion'](_0x331425,_0x5cb89a,_0x57e6e2,_0xb92e3f,{});switch(this['_checkSuggestionCorrectness'](_0x29f7a5,_0x331425,_0x5cb89a,_0xb92e3f),this['_suggestionState']['get'](_0x29f7a5)){case'notReady':this['_getSuggestionData'](_0x57e6e2)['then'](_0x4d4f9b=>{let _0x371fad=Promise['resolve']();_0x4d4f9b['hasComments']&&(_0x371fad=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x57e6e2})),_0x371fad['then'](()=>{this['addSuggestionData'](_0x4d4f9b)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x29f7a5,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x57e6e2,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x29f7a5,'ready'),this['fire']('suggestionLoaded',_0x29f7a5);break;case'ready':this['fire']('suggestionChanged',_0x29f7a5);}return _0x29f7a5['addMarkerName'](_0x46fdc3),_0x29f7a5;}['_refreshSuggestionsChain'](_0x32391e){const _0x281be6=Array['from'](_0x32391e),_0x55c09a=_0x281be6['filter'](_0x1640b9=>'attribute'==_0x1640b9['type']);this['_refreshAttributeSuggestionsChain'](_0x55c09a);const _0x5decfa=_0x281be6['filter'](_0x5bd970=>!_0x5bd970['isMultiRange']&&'attribute'!=_0x5bd970['type']),_0x2bcbac=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4227ca=>!_0x4227ca['isMultiRange']&&'attribute'!=_0x4227ca['type']),_0x4b2a83=_0x2bcbac['filter'](_0x52d130=>!_0x32391e['has'](_0x52d130)),_0x3a4444=new Map(_0x2bcbac['map'](_0x637640=>[_0x637640,this['_suggestionFactory']['getSuggestionCallback'](_0x637640['type'],_0x637640['subType'],'chain')])),_0x3c7acf=new Map(_0x2bcbac['map'](_0x2019ea=>[_0x2019ea,_0x2019ea['getFirstRange']()])),_0x318f06=new Set(),_0x2d9bd7=new Set();for(let _0x4c58d6=0x0;_0x4c58d6<_0x5decfa['length'];_0x4c58d6++)_0x1d667f(_0x5decfa[_0x4c58d6],_0x5decfa,_0x4c58d6+0x1);for(let _0x3f7ee4=0x0;_0x3f7ee4<_0x5decfa['length'];_0x3f7ee4++)_0x1d667f(_0x5decfa[_0x3f7ee4],_0x4b2a83,0x0);const _0x504e9c=new Set();for(let _0x16d159=0x0;_0x16d159<_0x5decfa['length'];_0x16d159++){const _0x543508=_0x5decfa[_0x16d159];!_0x2d9bd7['has'](_0x543508)&&_0x543508['previous']&&(_0x504e9c['add'](_0x543508['previous']),_0x543508['previous']['next']===_0x543508&&(_0x543508['previous']['next']=null),_0x543508['previous']=null),!_0x318f06['has'](_0x543508)&&_0x543508['next']&&(_0x504e9c['add'](_0x543508['next']),_0x543508['next']['previous']===_0x543508&&(_0x543508['next']['previous']=null),_0x543508['next']=null);}function _0x1d667f(_0x24561d,_0x377928,_0x77f960){for(let _0x54480c=_0x77f960;_0x54480c<_0x377928['length'];_0x54480c++){const _0x14a462=_0x5ef154(_0x24561d,_0x377928[_0x54480c]);_0x14a462&&(_0x14a462[0x0]['next']=_0x14a462[0x1],_0x14a462[0x1]['previous']=_0x14a462[0x0],_0x318f06['add'](_0x14a462[0x0]),_0x2d9bd7['add'](_0x14a462[0x1]));}}function _0x5ef154(_0x5dcc08,_0xee9516){if(_0x5dcc08['author']['id']!==_0xee9516['author']['id'])return null;const _0x5352a1=_0x3a4444['get'](_0x5dcc08)(_0x5dcc08,_0xee9516,_0x3c7acf['get'](_0x5dcc08),_0x3c7acf['get'](_0xee9516));if(!_0x5352a1)return null;return _0x3a4444['get'](_0xee9516)(_0x5dcc08,_0xee9516,_0x3c7acf['get'](_0x5dcc08),_0x3c7acf['get'](_0xee9516))?_0x5352a1[0x1]['commentThread']&&_0x5352a1[0x1]['commentThread']['length']?null:_0x5352a1:null;}_0x504e9c['size']&&this['_refreshSuggestionsChain'](_0x504e9c);}['_refreshAttributeSuggestionsChain'](_0x10444e){if(0x0==_0x10444e['length'])return;const _0x4e8085=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x423dd8=>'attribute'==_0x423dd8['type']&&_0x423dd8['_isDataLoaded']),_0x4704cf=[],_0x2f257b=new Map();for(const _0x49a7db of _0x4e8085){const _0x2908fb=_0x26d3d5(_0x49a7db['attributes']);_0x2f257b['has'](_0x2908fb)||(_0x2f257b['set'](_0x2908fb,_0x4704cf['length']),_0x4704cf['push']([]));const _0x1913d3=_0x2f257b['get'](_0x2908fb);_0x4704cf[_0x1913d3]['push'](_0x49a7db);}!(function(){_0x4704cf['sort']((_0x2e62f3,_0x1391d7)=>{const _0x2ebdfc=_0x2e62f3[0x0]['createdAt'],_0x4f788d=_0x1391d7[0x0]['createdAt'];return _0x2ebdfc==_0x4f788d?_0x2e62f3[0x0]['attributes']['groupId']<_0x1391d7[0x0]['attributes']['groupId']?-0x1:0x1:_0x2ebdfc<_0x4f788d?-0x1:0x1;});for(const _0x2d4372 of _0x4704cf)_0x2d4372['sort']((_0x155107,_0x279204)=>_0x155107['id']<_0x279204['id']?-0x1:0x1);}());for(let _0x543951=0x0;_0x543951<_0x4704cf['length'];_0x543951++){if(0x0==_0x4704cf[_0x543951]['length'])continue;const _0x1421c5=[];for(let _0x14e2cd=_0x543951+0x1;_0x14e2cd<_0x4704cf['length'];_0x14e2cd++)0x0!=_0x4704cf[_0x14e2cd]['length']&&_0xe739ec(_0x4704cf[_0x543951],_0x4704cf[_0x14e2cd])&&_0x1421c5['push'](_0x14e2cd);for(const _0x5f14c6 of _0x1421c5)_0x4704cf[_0x543951]=_0x4704cf[_0x543951]['concat'](_0x4704cf[_0x5f14c6]),_0x4704cf[_0x5f14c6]=[];}for(const _0x2716f4 of _0x4704cf)for(let _0xc1ca=0x0;_0xc1ca<_0x2716f4['length'];_0xc1ca++){const _0x41ff4c=_0x2716f4[_0xc1ca+0x1]||null;_0x2716f4[_0xc1ca]['next']!==_0x41ff4c&&(_0x2716f4[_0xc1ca]['next']=_0x41ff4c);}for(const _0x174051 of _0x4704cf)for(let _0x3f5261=0x0;_0x3f5261<_0x174051['length'];_0x3f5261++){const _0xa0e40f=_0x174051[_0x3f5261-0x1]||null;_0x174051[_0x3f5261]['previous']!==_0xa0e40f&&(_0x174051[_0x3f5261]['previous']=_0xa0e40f);}function _0xe739ec(_0x536b0e,_0x2d3107){if(_0x536b0e[0x0]['attributes']['groupId']!==_0x2d3107[0x0]['attributes']['groupId']&&_0x536b0e[0x0]['author']!==_0x2d3107[0x0]['author'])return!0x1;if(!function(_0x178196,_0x3be773){if(!_0x178196['hasComments']&&!_0x3be773['hasComments'])return!0x0;if(_0x178196['hasComments']&&_0x3be773['hasComments'])return!0x1;if(_0x178196['hasComments']&&_0x3be773['createdAt']<_0x178196['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x3be773['hasComments']&&_0x178196['createdAt']<_0x3be773['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x536b0e[0x0],_0x2d3107[0x0]))return!0x1;const _0x3bc792=Et(_0x536b0e[0x0]['attributes'],'groupId'),_0xa1ab02=Et(_0x2d3107[0x0]['attributes'],'groupId');if(!_0x22a75d(_0x3bc792,_0xa1ab02))return!0x1;return!!_0x536b0e['every'](_0x4188a4=>_0x2d3107['some'](_0x2c9933=>_0x4188a4['getFirstRange']()['isEqual'](_0x2c9933['getFirstRange']())))&&_0x2d3107['every'](_0x297a04=>_0x536b0e['some'](_0x59b13f=>_0x297a04['getFirstRange']()['isEqual'](_0x59b13f['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x4bdc9f){const _0x1cd24e=Array['from'](_0x4bdc9f),_0x389302=this['getSuggestions']({'skipNotAttached':!0x0}),_0x33f5af=_0x389302['filter'](_0x585eb3=>!_0x4bdc9f['has'](_0x585eb3)),_0x507a47=new Map(_0x1cd24e['map'](_0x5a514f=>[_0x5a514f,this['_suggestionFactory']['getSuggestionCallback'](_0x5a514f['type'],_0x5a514f['subType'],'join')])),_0x6414e1=new Map(_0x389302['map'](_0x30daac=>[_0x30daac,_0x30daac['getRanges']()]));for(let _0x1002af=0x0;_0x1002af<_0x1cd24e['length'];_0x1002af++){if(_0x535876(this,_0x1cd24e[_0x1002af],_0x1cd24e,_0x1002af+0x1))return!0x0;}for(let _0x59d5c6=0x0;_0x59d5c6<_0x1cd24e['length'];_0x59d5c6++){if(_0x535876(this,_0x1cd24e[_0x59d5c6],_0x33f5af,0x0))return!0x0;}return!0x1;function _0x535876(_0x1cf20a,_0x56146e,_0x338cd5,_0x65aac4){for(let _0x5dbce4=_0x65aac4;_0x5dbce4<_0x338cd5['length'];_0x5dbce4++){const _0x425aa7=_0x338cd5[_0x5dbce4];if(_0x425aa7['type']!==_0x56146e['type']||_0x425aa7['author']['id']!==_0x56146e['author']['id']||_0x425aa7['subType']!==_0x56146e['subType'])continue;if(!zt(_0x56146e,_0x425aa7))continue;if('attribute'==_0x56146e['type']&&_0x56146e['data']['oldValue']!=_0x425aa7['data']['oldValue'])continue;if('attribute'==_0x56146e['type']&&_0x1cf20a['_isBlockAttribute'](_0x56146e['data']['key']))continue;if('formatBlock'==_0x56146e['type']){const _0x5e1853=_0x1cf20a['editor']['model'],_0xad3fb7=_0x56146e['getContainedElement']();if(_0xad3fb7&&(_0x5e1853['schema']['isObject'](_0xad3fb7)||_0x5e1853['schema']['isLimit'](_0xad3fb7)))continue;}const _0x1a40af=_0x507a47['get'](_0x56146e),_0x3c22f8=_0x6414e1['get'](_0x56146e),_0x2a581f=_0x6414e1['get'](_0x425aa7),_0x5322cf=_0x56146e['commentThread']&&_0x56146e['commentThread']['length'],_0x18702d=_0x425aa7['commentThread']&&_0x425aa7['commentThread']['length'];if(!_0x5322cf&&_0x1a40af(_0x2a581f,_0x3c22f8))return _0x1cf20a['_joinSuggestions'](_0x425aa7,_0x56146e),_0x6414e1['delete'](_0x56146e),!0x0;if(!_0x18702d&&_0x1a40af(_0x3c22f8,_0x2a581f))return _0x1cf20a['_joinSuggestions'](_0x56146e,_0x425aa7),_0x6414e1['delete'](_0x425aa7),!0x0;}return!0x1;}}['_joinSuggestions'](_0x3b657e,_0xfbd6c7){if(_0x3b657e['isMultiRange']){for(const _0x5946c2 of _0xfbd6c7['getRanges']())_0x3b657e['addRange'](_0x5946c2);}else{const _0x4e6e58=_0xfbd6c7['getFirstRange']()['end'];this['_setSuggestionRange'](_0x3b657e,this['_model']['createRange'](_0x3b657e['getFirstRange']()['start'],_0x4e6e58));}_0xfbd6c7['removeMarkers']();}['_getMarkerAnnouncementText'](_0x4d692b,_0x5c3c4b,_0x340597){const _0x1847a7=_0x4d692b['startsWith']('format')||_0x4d692b['startsWith']('attribute')?'FORMATTING':_0x4d692b['toUpperCase']();return o(this['editor']['locale'],_0x5c3c4b+'_'+_0x1847a7+'_SUGGESTION_ANNOUNCEMENT',_0x340597);}['_initAriaMarkerChangeAnnouncements'](){const _0x2a677b=this['editor'];if(!_0x2a677b['ui'])return;const {ariaLiveAnnouncer:_0x20b804}=_0x2a677b['ui'];_0x469a23(this['_model'],({left:_0x5275ca,entered:_0x202e3e})=>{for(const _0x5efabf of _0x5275ca){const {group:_0x13390d,type:_0x4a638b}=this['_splitMarkerName'](_0x5efabf['name']);if('suggestion'===_0x13390d){_0x20b804['announce'](this['_getMarkerAnnouncementText'](_0x4a638b,'LEAVE'));break;}}for(const _0x54858d of _0x202e3e){const {group:_0x5de1c8,type:_0x18ede0}=this['_splitMarkerName'](_0x54858d['name']);if('suggestion'===_0x5de1c8){_0x20b804['announce'](this['_getMarkerAnnouncementText'](_0x18ede0,'ENTER',_0x1a649c(_0x382fd8)));break;}}});}['_processAttributeChanges'](_0x1617c8){if(this['_recordAttributeSuggestions'])return!0x1;const _0x3eb33a=this['editor'],_0x237e37=_0x3eb33a['model']['document']['differ']['getChanges']();if(0x0==_0x237e37['length'])return!0x1;const _0x2f7ac8=[],_0x3f1984=_0x237e37['filter'](_0x4a841d=>'attribute'==_0x4a841d['type']),_0x5876e=_0x237e37['filter'](_0x3e5bfd=>'insert'==_0x3e5bfd['type']&&'$text'!=_0x3e5bfd['name']),_0x3dbbd1=_0x237e37['filter'](_0x1bf109=>'remove'==_0x1bf109['type']&&'$text'!=_0x1bf109['name']);for(const _0x1e0ad3 of _0x3f1984)_0x2f7ac8['push']({'key':_0x1e0ad3['attributeKey'],'newValue':_0x1e0ad3['attributeNewValue'],'oldValue':_0x1e0ad3['attributeOldValue'],'range':Jt(_0x1e0ad3['range'],_0x3eb33a['model'])});for(const _0x261eb9 of _0x5876e){const _0x46b640=_0x3dbbd1['find'](_0x438d3c=>_0x438d3c['position']['isEqual'](_0x261eb9['position']));_0x46b640&&_0x2f7ac8['push']({'key':m,'newValue':_0x261eb9['name'],'oldValue':_0x46b640['name'],'range':_0x3eb33a['model']['createRangeOn'](_0x261eb9['position']['nodeAfter'])});}return 0x0!=_0x2f7ac8['length']&&this['_reduceExistingSuggestions'](_0x1617c8,_0x2f7ac8);}['_processAttributeSuggestions'](_0x233fa2){let _0x3222b8=!0x1;const _0x3dd4b1=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2a1c74=>_0x2a1c74['data']['newRange']&&_0x2a1c74['name']['startsWith']('suggestion:attribute:'));for(const _0x1b0f9f of _0x3dd4b1){const {subType:_0x235fcf,id:_0x13f443}=this['_splitMarkerName'](_0x1b0f9f['name']),_0x3554e8=_0x235fcf['split']('|')[0x0];for(const _0x44d27b of this['getSuggestions']({'skipNotAttached':!0x0}))_0x44d27b['id']!=_0x13f443&&'attribute'==_0x44d27b['type']&&_0x44d27b['data']&&_0x44d27b['data']['key']==_0x3554e8&&_0x44d27b['getFirstRange']()['isIntersecting'](_0x1b0f9f['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x44d27b,_0x1b0f9f['data']['newRange'],_0x233fa2),_0x3222b8=!0x0);}return _0x3222b8;}['_recordAttributeChanges'](_0x347432){this['_recordAttributeSuggestions']=!0x0,_0x347432();}['_isRegisteredAttribute'](_0x5658bd){const _0x4db72f=this['_isBlockAttribute'](_0x5658bd),_0x272bef=this['_inlineAttributeKeys']['has'](_0x5658bd);return _0x4db72f||_0x272bef;}['_reduceExistingSuggestions'](_0x5cf30b,_0x235bf9){if(0x0==_0x235bf9['length'])return!0x1;let _0x3ed196=!0x1;for(const _0x2678bd of _0x235bf9){const _0x34eeee=this['_findSuggestions'](_0x2678bd['range'],'attribute')['filter'](_0x173dd1=>!_0x173dd1['meta']['isNextTo'])['map'](_0x23e759=>_0x23e759['suggestion']),_0x1f0f90=_0x26d3d5({'newValue':_0x2678bd['newValue']});_0x34eeee['filter'](_0x2c6da8=>{const [_0x9f8467,_0x439cbb]=_0x2c6da8['subType']['split']('|');return _0x9f8467==_0x2678bd['key']&&_0x439cbb!=_0x1f0f90;})['forEach'](_0x44fc2e=>{this['_reduceSuggestionAttributeRange'](_0x44fc2e,_0x2678bd['range'],_0x5cf30b),_0x3ed196=!0x0;});}return _0x3ed196;}['_reduceSuggestionAttributeRange'](_0x32c5d8,_0x44acd8,_0x2ad1eb){const _0x4b5ef5=_0x32c5d8['getFirstRange']()['getDifference'](_0x44acd8);0x0!==_0x4b5ef5['length']?0x1!==_0x4b5ef5['length']?this['_breakSuggestionMarker'](_0x32c5d8,_0x44acd8['start'],_0x44acd8['end']):this['_setSuggestionRange'](_0x32c5d8,_0x4b5ef5[0x0]):_0x2ad1eb['removeMarker'](_0x32c5d8['getFirstMarker']());}}class Ut{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x363ca7){this['_editor']=_0x363ca7,this['_model']=_0x363ca7['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x96f0b4,_0x3b23a3,_0x837236,_0x30ac49,_0x4a02b4,_0x4ec5f9){return new u(this['_model'],{'type':_0x96f0b4,'subType':_0x3b23a3,'id':_0x837236,'author':_0x30ac49,'creator':_0x30ac49,'attributes':_0x4a02b4,'onAttributesChange':_0x4ec5f9,'onAccept':(..._0x5ce9c0)=>this['getSuggestionCallback'](_0x96f0b4,_0x3b23a3,'accept')(..._0x5ce9c0),'onDiscard':(..._0x3fd25e)=>this['getSuggestionCallback'](_0x96f0b4,_0x3b23a3,'discard')(..._0x3fd25e)});}['registerCustomCallback'](_0x58f4b4,_0x2ff948,_0x234091,_0xe0d943){const _0x958a30=_0x58f4b4+':'+_0x2ff948+':'+_0x234091;this['_customCallbacks']['set'](_0x958a30,_0xe0d943);}['getSuggestionCallback'](_0x2ace2d,_0x37f9a6,_0x346aa6){const _0x34d378=_0x2ace2d+':'+_0x37f9a6+':'+_0x346aa6;return this['_customCallbacks']['get'](_0x34d378)||this['_defaultCallbacks']['get'](_0x2ace2d+':'+_0x346aa6);}['_registerDefaultCallbacks'](){const _0x81005=()=>!0x1,_0x47cf2f=_0xb6ad20=>{_0xb6ad20['sort']((_0x398257,_0x1ef5a9)=>_0x398257['start']['isBefore'](_0x1ef5a9['start'])?0x1:-0x1),this['_model']['change'](_0x4cbb06=>{for(const _0xb673f1 of _0xb6ad20){let _0x56ce01;_0x56ce01=_0xb673f1['end']['isAtEnd']&&_0xb673f1['end']['parent']==_0xb673f1['start']['nodeAfter']?_0x4cbb06['createSelection'](_0xb673f1['start']['nodeAfter'],'on'):_0x4cbb06['createSelection'](_0xb673f1),this['_model']['deleteContent'](_0x56ce01,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x5da79b=(_0x283a39,_0x2fe39f)=>{_0x2fe39f&&this['_model']['change'](_0x20de8c=>{const {commandName:_0x544aa6,commandParams:_0x5b68f7=[]}=_0x2fe39f,_0x47cfb6=_0x283a39['map'](_0x160bf6=>(Pt(_0x160bf6)&&(_0x160bf6=this['_model']['createRange'](_0x160bf6['end'])),_0x160bf6))['filter'](_0x55f3d4=>'$graveyard'!==_0x55f3d4['root']['rootName']);if(_0x47cfb6['length']<0x1)return;const _0x2513ee=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x1b5f50=>_0x531fcc['fromRange'](_0x1b5f50));_0x20de8c['setSelection'](_0x47cfb6);for(const _0x402e06 of this['_editor']['commands']['commands']())_0x402e06['refresh']();_0x5b68f7['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x544aa6,..._0x5b68f7);const _0x191d78=_0x2513ee['filter'](_0x4f6572=>'$graveyard'!=_0x4f6572['root']['rootName']);_0x191d78['length']>0x0&&_0x20de8c['setSelection'](_0x191d78);for(const _0x1ba2ba of _0x2513ee)_0x1ba2ba['detach']();});},_0x139cf0=(_0x4aece1,_0x5ece75)=>0x1==_0x4aece1['length']&&0x1==_0x5ece75['length']&&_0x4aece1[0x0]['end']['isEqual'](_0x5ece75[0x0]['start']),_0x46f57e=(_0x37374b,_0x3398a0,_0x4242ba,_0x376e86)=>qt(_0x37374b,_0x3398a0,_0x4242ba,_0x376e86)?[_0x37374b,_0x3398a0]:qt(_0x3398a0,_0x37374b,_0x376e86,_0x4242ba)?[_0x3398a0,_0x37374b]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x81005),this['_defaultCallbacks']['set']('insertion:discard',_0x47cf2f),this['_defaultCallbacks']['set']('insertion:join',_0x139cf0),this['_defaultCallbacks']['set']('insertion:chain',_0x46f57e),this['_defaultCallbacks']['set']('deletion:accept',_0x47cf2f),this['_defaultCallbacks']['set']('deletion:discard',_0x81005),this['_defaultCallbacks']['set']('deletion:join',_0x139cf0),this['_defaultCallbacks']['set']('deletion:chain',_0x46f57e),this['_defaultCallbacks']['set']('formatInline:accept',_0x5da79b),this['_defaultCallbacks']['set']('formatInline:discard',_0x81005),this['_defaultCallbacks']['set']('formatInline:join',_0x139cf0),this['_defaultCallbacks']['set']('formatInline:chain',_0x81005),this['_defaultCallbacks']['set']('formatBlock:accept',_0x5da79b),this['_defaultCallbacks']['set']('formatBlock:discard',_0x81005),this['_defaultCallbacks']['set']('formatBlock:join',_0x139cf0),this['_defaultCallbacks']['set']('formatBlock:chain',_0x81005),this['_defaultCallbacks']['set']('attribute:accept',_0x81005),this['_defaultCallbacks']['set']('attribute:discard',(_0x32215c,_0x18cea4)=>{if(!_0x18cea4)return;const _0x21fe7c=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x7f754=>{if(_0x18cea4['key']==m)for(const _0x41b3d4 of _0x32215c){const _0x5c886f=_0x41b3d4['start']['nodeAfter'],_0x127d04=_0x18cea4['oldValue'];_0x7f754['rename'](_0x5c886f,_0x127d04);}else{if(_0x21fe7c['_isBlockAttribute'](_0x18cea4['key'])){for(const _0x211f6a of _0x32215c)void 0x0!==_0x18cea4['oldValue']?_0x7f754['setAttribute'](_0x18cea4['key'],_0x18cea4['oldValue'],_0x211f6a['start']['nodeAfter']):_0x7f754['removeAttribute'](_0x18cea4['key'],_0x211f6a['start']['nodeAfter']);}else{for(const _0x274a0e of _0x32215c)_0x18cea4['oldValue']?_0x7f754['setAttribute'](_0x18cea4['key'],_0x18cea4['oldValue'],_0x274a0e):_0x7f754['removeAttribute'](_0x18cea4['key'],_0x274a0e);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x139cf0);}}function Vt(_0x23445e,_0x56625a,_0x363648){for(const _0x50edee of _0x56625a['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x50edee['root']==_0x50edee)return!0x1;if(!_0x363648['containsItem'](_0x50edee))return!0x1;if(_0x23445e['isObject'](_0x50edee)||_0x23445e['isLimit'](_0x50edee))return!0x0;}return!0x1;}function Pt(_0x2dbcce){return _0x2dbcce['end']['parent']==_0x2dbcce['start']['nodeAfter']&&_0x2dbcce['end']['isAtStart'];}function Gt(_0x56ff46,_0x5ca8c9,_0x22311e,_0x5b9c46){const _0x29e38d=_0x505577=>!_0x505577['item']['is']('$textProxy')&&!_0x5b9c46['isObject'](_0x505577['item']),_0x1e7167=_0x56ff46['start']['getLastMatchingPosition'](_0x29e38d),_0x41a6f8=_0x56ff46['end']['getLastMatchingPosition'](_0x29e38d,{'direction':'backward'});return(!_0x56ff46['start']['isEqual'](_0x1e7167)||!_0x56ff46['end']['isEqual'](_0x41a6f8))&&(_0x1e7167['isBefore'](_0x41a6f8)?_0x22311e['updateMarker'](_0x5ca8c9,{'range':_0x22311e['createRange'](_0x1e7167,_0x41a6f8)}):_0x22311e['removeMarker'](_0x5ca8c9),!0x0);}function Ft(_0x5e81e4){return _0x26d3d5(_0x5e81e4);}function Lt(_0x2b2f00){const _0x13cc17=_0x2b2f00['start']['nodeAfter'];return _0x13cc17&&_0x13cc17['is']('element');}function Jt(_0x23ba97,_0xab1b75){return null==_0x23ba97['end']['nodeBefore']&&_0x23ba97['end']['parent']==_0x23ba97['start']['nodeAfter']?Ht(_0x23ba97['start']['nodeAfter'],_0xab1b75):_0x23ba97;}function Ht(_0x1de9eb,_0x460200){const _0x1da98d=_0x460200['schema']['isObject'](_0x1de9eb)||_0x460200['schema']['isSelectable'](_0x1de9eb);return _0x460200['createRange'](_0x460200['createPositionAt'](_0x1de9eb,'before'),_0x1da98d?_0x460200['createPositionAfter'](_0x1de9eb):_0x460200['createPositionAt'](_0x1de9eb,'end'));}function qt(_0x351471,_0x269cbb,_0x4060f1,_0x1d295c){return!!zt(_0x351471,_0x269cbb)&&_0x4060f1['end']['isEqual'](_0x1d295c['start']);}function zt(_0x21fd7d,_0x1931be){if(!_0x21fd7d['_isDataLoaded']||!_0x1931be['_isDataLoaded'])return!0x1;const _0x1e91e3=new Set(Object['keys'](_0x21fd7d['attributes'])),_0x4e6b81=new Set(Object['keys'](_0x1931be['attributes']));if(_0x1e91e3['delete']('groupId'),_0x4e6b81['delete']('groupId'),0x0==_0x1e91e3['size']&&0x0==_0x4e6b81['size'])return!0x0;if(_0x1e91e3['size']!=_0x4e6b81['size'])return!0x1;const _0x52f096={..._0x21fd7d['attributes']},_0x553dc6={..._0x1931be['attributes']};return delete _0x52f096['groupId'],delete _0x553dc6['groupId'],JSON['stringify'](_0x52f096)==JSON['stringify'](_0x553dc6);}function Kt(_0x263753,_0x73e3f8){const _0x131bbf=Wt(_0x263753['attributes']),_0x3fdc1e=Wt(_0x73e3f8);if(!_0x263753['_isDataLoaded'])return!0x1;for(const _0x5af67a of Object['keys'](_0x3fdc1e))if(!_0x22a75d(_0x131bbf[_0x5af67a],_0x3fdc1e[_0x5af67a]))return!0x1;return!0x0;}function Wt(_0x410d4f){const _0x109e7f=Object['assign']({},_0x410d4f);return delete _0x109e7f['skipNestingCheck'],delete _0x109e7f['tablePasteChainId'],_0x109e7f;}class Ce extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x260a3a(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x41574f,_0x30a0af,_0x38ebeb,_0x121d32){super(),this['model']=_0x30a0af,this['view']=_0x38ebeb,this['commentThreadController']=_0x121d32,this['_editor']=_0x41574f,this['_acceptCommand']=_0x41574f['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x41574f['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x1e3aef,_0x41fcf6)=>_0x1e3aef||_0x41fcf6),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x2e88b9=>_0x2e88b9&&this['_editor']['model']['canEditAt'](_0x30a0af['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x4ce33a=>_0x4ce33a&&this['_editor']['model']['canEditAt'](_0x30a0af['getRanges']())),this['_pendingAction']=null,_0x38ebeb['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x38ebeb,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x38ebeb,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x38ebeb,'change:isDirty',()=>{_0x38ebeb['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 _0x28b514=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x28b514);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class as extends _0x418a9f{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x5d59ea,_0x144136,_0x462e54,_0x14b2d4){super(_0x5d59ea),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x474a2a(_0x5d59ea,o(_0x5d59ea,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x144136['authoredAt']),this['bind']('authoredAt')['to'](_0x144136),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',_0x144136,'authoredAt',this,'descriptionParts',(_0x544ff1,_0x30234e,_0x25f608)=>{const _0x45a875=_0x25f608['map'](_0xedfea0=>ns(_0xedfea0['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x544ff1-0x1,_0x144136['author']['name'],_0x30234e?_0x14b2d4['formatDateTime'](_0x30234e):'',new DOMParser()['parseFromString'](_0x45a875,'text/html')['body']['textContent']]);}),this['focusables']=new _0x1c8f94(),this['focusTracker']=new _0x1b07ab(),this['keystrokes']=new _0x4472fb(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x19a0b4=>_0x19a0b4['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x144136,this['_localUser']=_0x462e54,this['_config']=_0x14b2d4,_0x14b2d4['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x357426(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x1a1497}=this['_config'];this['commentsListView']=new _0x1a1497(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',_0x58862f=>_0x58862f+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x21b5f4,_0x49efc8)=>_0x21b5f4||!!_0x49efc8);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x15e70b}=this['_config'],_0xfd1255=new _0x15e70b(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x18c91c=_0xfd1255['commentInputView'];return _0xfd1255['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x18c91c,'value',(_0x5a8303,_0x59f1ad,_0x2d303c)=>!!_0x2d303c||_0x5a8303&&!_0x59f1ad),_0x18c91c['on']('submit',(_0x136964,_0x1b1a10)=>{this['fire']('addComment',_0x1b1a10),_0x18c91c['editor']['setData']('');}),_0x18c91c['on']('cancel',()=>this['focus']()),_0x18c91c['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0xfd1255;}}class pe extends as{['suggestionView'];['_descriptionElement'];constructor(_0xa0914c,_0x56ca22,_0xfa669f,_0x136623){super(_0xa0914c,_0x56ca22,_0xfa669f,_0x136623),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x58d08c=>_0x58d08c&&_0x58d08c[0x0]?_0x58d08c[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x192aef,_0x2eb30e)=>{let _0x3a072a='';for(const _0x39dd37 of _0x192aef)_0x3a072a+='<p>'+ns(_0x39dd37['content'],_0x39dd37['color'])+'</p>';return _0x2eb30e?_0x3a072a:_0x2ad5e3(_0x3a072a,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x136623['SuggestionView'](_0xa0914c,_0x56ca22,{'formatDateTime':_0x136623['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 _0x33d0ba=this['bindTemplate'],_0x3f46a7=[this['suggestionView']];return this['commentsListView']&&_0x3f46a7['push'](this['commentsListView']),this['commentThreadInputView']&&_0x3f46a7['push'](this['commentThreadInputView']),_0x3f46a7['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x33d0ba['if']('isActive','ck-suggestion-wrapper--active'),_0x33d0ba['to']('type',_0x5a2c98=>'ck-suggestion-'+_0x5a2c98),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':_0x33d0ba['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x3f46a7};}['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 fe extends _0x418a9f{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x348271,_0x447081,_0x382035){super(_0x348271),this['_model']=_0x447081,this['_config']=_0x382035,this['set']('description',''),this['bind']('authoredAt')['to'](_0x447081),this['acceptButton']=this['_createButton'](o(_0x348271,'Accept\x20suggestion'),_0x523211['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x348271,'Discard\x20suggestion'),_0x523211['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x5da0e1(_0x348271,_0x447081['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x1c8f94([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x1b07ab(),this['keystrokes']=new _0x4472fb(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x62c3bd=>_0x62c3bd['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x46c9fc=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x46c9fc['innerHTML']=this['description'],this['on']('change:description',(_0x18e917,_0x350877,_0x5d3e60)=>{_0x46c9fc['innerHTML']=_0x5d3e60;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x299869=this['bindTemplate'],_0x455f65=[{'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':_0x299869['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x299869['to']('authoredAt',_0x3c9723=>this['_config']['formatDateTime'](_0x3c9723))}]}]},{'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']&&_0x455f65['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':_0x455f65}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0xfd5653,_0x294c82,_0x4a9381,_0xc07dbb,_0x2ea5b7){const _0x545b19=new _0x58477d(this['locale']);return _0x545b19['set']({'label':_0xfd5653,'icon':_0x294c82,'tooltip':!0x0,'tooltipPosition':_0x2ea5b7}),_0x545b19['extendTemplate']({'attributes':{'class':_0x4a9381}}),_0x545b19['on']('execute',()=>{this['fire'](_0xc07dbb,this['_model']['id']);}),_0x545b19;}['_setupKeyboardNavigation'](){const _0x141541=this['element'];this['keystrokes']['listenTo'](_0x141541);for(const _0x53b523 of this['focusables'])this['focusTracker']['add'](_0x53b523['element']),this['keystrokes']['listenTo'](_0x53b523['element']);this['keystrokes']['set']('enter',(_0x4972fd,_0x8730fe)=>{_0x141541===_0x4972fd['target']&&(this['focusCycler']['focusFirst'](),_0x8730fe());}),this['keystrokes']['set']('esc',(_0x502be5,_0x23a3a8)=>{_0x141541!==_0x502be5['target']&&(this['focus'](),_0x23a3a8());});}}var we='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2025,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x538eb2{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x2bda33,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x493603){super(_0x493603),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x57d075=this['editor']['config'];_0x57d075['define']('trackChanges.SuggestionThreadView',pe),_0x57d075['define']('trackChanges.SuggestionView',fe),_0x57d075['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x57d075['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x3c95d4,_0x124b19){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x409429,_0x52dcab]of this['_handleControllerBuffer']){const _0x2735d4=this['_suggestionToController']['has'](_0x409429);_0x2735d4||_0x52dcab?_0x2735d4&&_0x52dcab&&this['_destroyController'](_0x409429):this['_initializeController'](_0x409429);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x3c95d4,_0x124b19);}['init'](){const _0x431d3c=this['editor'],_0x21ddec=_0x431d3c['plugins']['get']('TrackChangesEditing'),_0xdc839b=_0x431d3c['plugins']['get']('Annotations'),_0x6ceeab=_0x431d3c['plugins']['get']('EditorAnnotations'),_0x940389=_0x431d3c['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x6ceeab['addSourceCollector'](()=>{const _0x599209=[];for(const [_0x212e3e,_0x5ab90f]of Array['from'](this['_suggestionToController'])){const _0x846dfc=_0x212e3e['getAllAdjacentSuggestions'](),_0x2daadb=[];for(const _0x553732 of _0x846dfc){if(!_0x553732['isInContent'])continue;if(_0x553732['isMultiRange']){_0x2daadb['push'](..._0x553732['getRanges']());continue;}const _0x394539=_0x553732['getFirstRange']();if(_0x2daadb['length']>0x0){const _0x349be4=_0x2daadb[0x0]['getJoined'](_0x394539);if(_0x349be4){_0x2daadb[0x0]=_0x349be4;continue;}}_0x2daadb['push'](_0x394539);}_0x599209['push']([_0x5ab90f['view'],_0x2daadb]);}return _0x599209;}),this['listenTo'](_0x21ddec,'suggestionLoaded',(_0x5a03c2,_0x550738)=>{this['listenTo'](_0x550738,'change:previous',(_0x6610d1,_0x56c02f,_0x56fe19,_0x5c2102)=>{_0x550738['isInContent']&&(null==_0x56fe19?(this['_updateController'](_0x5c2102['head']),this['_handleSuggestionControllerDelayed'](_0x550738,!0x1)):(this['_updateController'](_0x56fe19['head']),null==_0x5c2102&&this['_handleSuggestionControllerDelayed'](_0x550738,!0x0)));}),null!==_0x550738['previous']?this['_updateController'](_0x550738['head']):this['_handleSuggestionControllerDelayed'](_0x550738,!0x1);}),this['listenTo'](_0x21ddec,'suggestionUnloaded',(_0x3c88e3,_0x4516aa,_0x3b55b3)=>{this['stopListening'](_0x4516aa,'change:previous'),this['_handleControllerBuffer']['delete'](_0x4516aa),this['_suggestionToController']['has'](_0x4516aa)&&this['_destroyController'](_0x4516aa),_0x3b55b3&&this['_updateController'](_0x3b55b3['head']);}),this['listenTo'](_0x21ddec,'suggestionChanged',(_0x1f2cc6,_0x43f4bb)=>{this['_updateController'](_0x43f4bb);}),this['listenTo'](_0xdc839b,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x940389,'addComment',(_0x1ab515,{threadId:_0x2327e9,isFromAdapter:_0x23aac6})=>{if(_0x23aac6||!_0x21ddec['hasSuggestion'](_0x2327e9))return;const _0x1d9411=_0x21ddec['getSuggestion'](_0x2327e9);this['_suggestionToController']['get'](_0x1d9411)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x45417d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xe0c611;for(const _0x2cd553 in _0x45417d){const _0x1b9d98=_0x2cd553,_0xc00cf=_0x45417d[_0x1b9d98];if('trackChangesLicenseKeyValid'==_0xc00cf||'trackChangesLicenseKeyInvalid'==_0xc00cf||'trackChangesLicenseKeyExpired'==_0xc00cf||'trackChangesLicenseKeyDomainLimit'==_0xc00cf||'trackChangesLicenseKeyNotAllowed'==_0xc00cf||'trackChangesLicenseKeyEvaluationLimit'==_0xc00cf||'trackChangesLicenseKeyTrialLimit'==_0xc00cf||'trackChangesLicenseKeyUsageLimit'==_0xc00cf){delete _0x45417d[_0x1b9d98],_0xe0c611=_0xc00cf,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0xe0c611&&_0x45417d['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0xe0c611&&_0x45417d['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0xe0c611&&_0x45417d['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0xe0c611&&_0x45417d['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0xe0c611&&_0x45417d['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0xe0c611&&_0x45417d['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0xe0c611&&_0x45417d['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x434ec8=this['editor']['plugins']['get']('Annotations'),_0x31b499=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1b1e87=Array['from'](_0x434ec8['activeAnnotations'],_0x56ff89=>_0x56ff89['innerView'])['filter'](_0x3ffb54=>this['_viewToController']['has'](_0x3ffb54)),_0x36d72c=[];for(const _0x39f992 of _0x1b1e87){const _0x1402e2=this['_viewToController']['get'](_0x39f992)['model']['getAllAdjacentSuggestions']();_0x36d72c['push'](..._0x1402e2['reduce']((_0x48e149,_0x5b1d8a)=>[..._0x48e149,..._0x5b1d8a['getMarkerNames']()],[]));}_0x31b499['activeMarkers']=_0x36d72c;}['_addUIComponentsToFactory'](){const _0x4c6ca9=this['editor'],_0x42a520=_0x4c6ca9['locale'],_0x5c2bb5=o(_0x42a520,'Track\x20changes'),_0x3161ca=new _0x23f569([{'type':'switchbutton','model':new _0x301a5d({'withText':!0x0,'isToggleable':!0x0,'label':_0x5c2bb5,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x301a5d({'withText':!0x0,'label':o(_0x42a520,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x301a5d({'withText':!0x0,'label':o(_0x42a520,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x301a5d({'withText':!0x0,'label':o(_0x42a520,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x301a5d({'withText':!0x0,'label':o(_0x42a520,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x4c6ca9['plugins']['has']('TrackChangesPreview')&&_0x3161ca['addMany']([{'type':'separator'},{'type':'button','model':new _0x301a5d({'withText':!0x0,'label':o(_0x42a520,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x28420a of _0x3161ca)if(ke(_0x28420a)){const _0x47ccf8=_0x4c6ca9['commands']['get'](_0x28420a['model']['commandName']);_0x28420a['model']['bind']('isOn','isEnabled')['to'](_0x47ccf8,'value','isEnabled');}_0x4c6ca9['ui']['componentFactory']['add']('trackChanges',_0x3b8174=>this['_createToolbarButton'](_0x3b8174,_0x3161ca,_0x5c2bb5)),_0x4c6ca9['ui']['componentFactory']['add']('menuBar:trackChanges',_0x3f153f=>this['_createMenuBarMenu'](_0x3f153f,_0x3161ca,_0x5c2bb5));}['_createToolbarButton'](_0x1a03c1,_0x2be13b,_0x2c8122){const _0x374746=_0x9c83ce(_0x1a03c1,_0x3a1cc7),_0x20b278=this['editor']['commands']['get']('trackChanges');_0x374746['buttonView']['set']({'tooltip':_0x2c8122,'label':_0x2c8122,'icon':we}),_0x374746['buttonView']['bind']('isOn')['to'](_0x20b278,'value'),_0x374746['buttonView']['on']('execute',()=>{_0x20b278['execute'](),this['editor']['editing']['view']['focus']();}),_0x4fee6a(_0x374746,_0x2be13b,{'role':'menu'});const _0x56f2a4=[];for(const _0x3cbbe1 of _0x2be13b)ke(_0x3cbbe1)&&_0x56f2a4['push'](this['editor']['commands']['get'](_0x3cbbe1['model']['commandName']));const _0x3e181a=_0x374746['buttonView'];return _0x3e181a['actionView']['unbind']('isEnabled'),_0x3e181a['arrowView']['unbind']('isEnabled'),_0x3e181a['actionView']['bind']('isEnabled')['to'](_0x20b278,'isEnabled'),_0x3e181a['arrowView']['bind']('isEnabled')['toMany'](_0x56f2a4,'isEnabled',(..._0x3a107f)=>_0x3a107f['some'](_0xa5765f=>_0xa5765f)),_0x374746['on']('execute',_0x2720d6=>{this['editor']['execute'](_0x2720d6['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x374746;}['_createMenuBarMenu'](_0x391d1d,_0xd26ce9,_0x2edaa3){const _0x265e54=new _0x48c534(_0x391d1d),_0x390181=this['editor']['commands']['get']('trackChanges');_0x265e54['buttonView']['set']({'label':_0x2edaa3,'icon':we});const _0x261df8=new _0x2ed210(_0x391d1d);for(const _0x322a3e of _0xd26ce9){if('separator'==_0x322a3e['type']){_0x261df8['items']['add'](new _0x2d4777(_0x391d1d));continue;}const _0x50b1d3=new _0x861997(_0x391d1d,_0x265e54),_0xb1ee75=new _0x1fd1fb(_0x391d1d),_0x1beca0=_0x322a3e['model'];_0xb1ee75['bind'](...Object['keys'](_0x1beca0))['to'](_0x1beca0),_0xb1ee75['delegate']('execute')['to'](_0x265e54),_0xb1ee75['on']('execute',()=>{this['editor']['execute'](_0x1beca0['commandName']),this['editor']['editing']['view']['focus']();}),_0x50b1d3['children']['add'](_0xb1ee75),_0x261df8['items']['add'](_0x50b1d3);}return _0x265e54['bind']('isEnabled')['to'](_0x390181,'isEnabled'),_0x265e54['panelView']['children']['add'](_0x261df8),_0x265e54;}['_initializeController'](_0x309921){const _0xd692ad=this['editor'],_0x225feb=_0xd692ad['config'],_0x34b5fe=_0xd692ad['plugins']['get']('Annotations'),_0x4e8aa0=_0xd692ad['plugins']['get']('CommentsRepository'),_0x5f1609=_0xd692ad['plugins']['get']('EditorAnnotations'),_0x8eebba=_0xd692ad['plugins']['get'](_0x2bda33)['me'],_0x41d6ac=_0x225feb['get']('trackChanges')['SuggestionThreadView'],_0x287f7c=_0x225feb['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x352088,CommentThreadInputView:_0x1c6345}=_0xd692ad['plugins']['get']('CommentsUI');let _0x209f08,_0x47e9dd,_0x557522;this['_annotationViews']['has'](_0x309921['id'])?(_0x47e9dd=this['_annotationViews']['get'](_0x309921['id']),_0x209f08=_0x47e9dd['mainView']):(_0x209f08=new _0x41d6ac(_0xd692ad['locale'],_0x309921,_0x8eebba,{'disableComments':this['_disableComments'],'editorConfig':{..._0x225feb['get']('comments.editorConfig'),'licenseKey':_0x225feb['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x225feb['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x225feb['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x225feb['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x4c943b(_0x225feb['get']('locale')),'CommentView':_0x225feb['get']('comments')['CommentView'],'CommentsListView':_0x352088,'CommentThreadInputView':_0x1c6345,'SuggestionView':_0x287f7c}),_0x209f08['suggestionView']['acceptButton']['on']('execute',()=>{_0xd692ad['editing']['view']['focus']();}),_0x209f08['suggestionView']['discardButton']['on']('execute',()=>{_0xd692ad['editing']['view']['focus']();}),_0x47e9dd=_0x34b5fe['createAnnotationView'](this['editor']['locale'],_0x209f08),_0x47e9dd['bind']('isDirty')['to'](_0x209f08,'isDirty'),_0x47e9dd['bind']('length')['to'](_0x209f08),_0x47e9dd['bind']('type')['to'](_0x209f08,'type',_0x3cf0dc=>'suggestion-'+_0x3cf0dc),_0x209f08['on']('escape',()=>{_0x557522['fire']('escape');}),this['_annotationViews']['set'](_0x309921['id'],_0x47e9dd));const _0x35816d=_0x4e8aa0['createCommentThreadController'](_0x309921['commentThread'],_0x209f08),_0x4c5f35=new Ce(_0xd692ad,_0x309921,_0x209f08,_0x35816d),_0x246abe=_0x309921['getAllAdjacentSuggestions']()['filter'](_0x2596a7=>_0x2596a7['isInContent']);_0x209f08['descriptionParts']=_0xd692ad['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x246abe),this['_suggestionToController']['set'](_0x309921,_0x4c5f35),this['_viewToController']['set'](_0x209f08,_0x4c5f35),_0x557522=_0x34b5fe['createAnnotation']({'view':_0x47e9dd,'target':()=>{const _0x389f19=[],_0x95e69d=_0x309921['getAllAdjacentSuggestions']()['filter'](_0xc35256=>_0xc35256['isInContent']);for(const _0x5db675 of _0x95e69d)_0x389f19['push'](..._0x5db675['getMarkers']());return _0x5a7558(_0xd692ad['editing'],_0x389f19);},'type':()=>'suggestion-'+_0x4c5f35['view']['type']}),_0x4e8aa0['_bindAnnotationToEditors'](_0x209f08,_0x557522),_0x34b5fe['add'](_0x557522),_0x5f1609['registerAnnotation'](_0x557522);}['_destroyController'](_0x325dab){const _0x350149=this['editor']['plugins']['get']('CommentsRepository'),_0x230e35=this['editor']['plugins']['get']('Annotations'),_0x7bc94f=this['_suggestionToController']['get'](_0x325dab),_0x229776=_0x7bc94f['view'],_0x3e1c52=_0x230e35['getByInnerView'](_0x229776);_0x350149['_unbindEditors'](_0x229776),_0x3e1c52&&_0x230e35['remove'](_0x3e1c52),this['_suggestionToController']['delete'](_0x325dab),this['_viewToController']['delete'](_0x229776),_0x7bc94f['destroy']();}['_updateController'](_0x33f4af){if(!_0x33f4af['isInContent']||!this['_suggestionToController']['has'](_0x33f4af))return;const _0x32af81=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1aa049=this['_suggestionToController']['get'](_0x33f4af),_0xa27448=_0x33f4af['getAllAdjacentSuggestions']();_0x1aa049['view']['descriptionParts']=_0x32af81['descriptionFactory']['getDescriptions'](_0xa27448);}['destroy'](){for(const _0x185ca9 of this['_suggestionToController']['keys']())this['_destroyController'](_0x185ca9);for(const _0x4a6832 of this['_annotationViews']['values']())_0x4a6832['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x535fcc){return'model'in _0x535fcc;}class k extends _0x538eb2{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x383171){this['editor']['plugins']['get'](p)['adapter']=_0x383171;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x2b8b78){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x2b8b78);}['getSuggestions']({skipNotAttached:_0x4e0d67=!0x1,toJSON:_0x5e3b34=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x4e0d67,'toJSON':_0x5e3b34});}['getSuggestion'](_0x3033a2){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x3033a2);}}const w=['Pagination'];class T extends _0x538eb2{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x259840=this['editor'];if(_0x259840['config']['define']('trackChangesData.editorCreator',_0x36f2dc=>{const _0x551fb9=_0x259840['model']['document']['getRootNames']()['reduce']((_0x2614c5,_0x267f97)=>(_0x2614c5[_0x267f97]='',_0x2614c5),{});return _0x259840['constructor']['create'](_0x551fb9,_0x36f2dc);}),'function'!=typeof _0x259840['config']['get']('trackChangesData')['editorCreator'])throw new _0x40d556('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x520507){return N(this['editor'],!0x0,_0x520507);}['getDataWithDiscardedSuggestions'](_0x45352a){return N(this['editor'],!0x1,_0x45352a);}}class D extends _0x538eb2{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xd57a08){function _0x20bc1e(_0x256210){return _0x256210['map'](_0x334d30=>String['fromCharCode'](_0x334d30))['join']('');}super(_0xd57a08),this['result']='end',_0xd57a08[_0x20bc1e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x20bc1e([0x76,0x69,0x65,0x77])][_0x20bc1e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x20bc1e([0x61,0x75,0x74,0x6f]),_0xd57a08[_0x20bc1e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x20bc1e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x20bc1e([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x20bc1e([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x20bc1e([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 Fe(_0x2685a3){return void 0x0!==_0x2685a3['getRootsAttributes'];}async function N(_0x1e1110,_0x2678f4,_0x26c1ff){const _0x102543=_0x62d4d(_0x1e1110,w);_0x102543['plugins']['push'](p,D),_0x102543['rootsAttributes']=Fe(_0x1e1110)?_0x1e1110['getRootsAttributes']():void 0x0;const _0x347e08=document['createDocumentFragment'](),_0x4aeb86=_0x1e1110['config']['get']('trackChangesData')['editorCreator'],_0x557738=await _0x4aeb86(_0x102543,()=>function(_0x40559f){const _0x332808=document['createElement']('div');return _0x40559f['appendChild'](_0x332808),_0x332808;}(_0x347e08));!function(_0x23ea22,_0x493a60){const _0x31ac90=_0x23ea22['model']['document']['getRootNames']()['reduce']((_0x39a1cd,_0x5a8edd)=>(_0x39a1cd[_0x5a8edd]=_0x23ea22['data']['get']({'rootName':_0x5a8edd}),_0x39a1cd),{}),_0x3d3288=_0x23ea22['plugins']['get']('Users')['users']['map'](_0x10fadf=>({'id':_0x10fadf['id'],'name':_0x10fadf['name']})),_0x23de37=_0x23ea22['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x47164b=_0x23ea22['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3e1c4c=_0x493a60['plugins']['get']('Users'),_0x2e504f=_0x493a60['plugins']['get']('TrackChangesEditing'),_0x547d4e=_0x493a60['plugins']['get']('CommentsRepository');for(const _0x1a6673 of _0x547d4e['getCommentThreads']())_0x1a6673['remove']();for(const _0x5ab731 of _0x3d3288)_0x3e1c4c['getUser'](_0x5ab731['id'])||_0x3e1c4c['addUser'](_0x5ab731);_0x3e1c4c['me']||_0x3e1c4c['useAnonymousUser']();for(const _0x2a878c of _0x47164b)_0x547d4e['addCommentThread'](_0x2a878c);for(const _0x2d820b of _0x23de37)_0x2e504f['addSuggestionData'](_0x2d820b);_0x493a60['data']['set'](_0x31ac90);}(_0x1e1110,_0x557738),_0x557738['execute'](_0x2678f4?'acceptAllSuggestions':'discardAllSuggestions');const _0x193669=Fe(_0x557738)?_0x557738['getFullData'](_0x26c1ff):_0x557738['data']['get'](_0x26c1ff);return await _0x557738['destroy'](),_0x193669;}class Me extends _0x418a9f{['options'];constructor(_0x1af039,_0x61b8f7){super(_0x1af039),this['options']=_0x61b8f7,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'](_0x871b43,_0x4842c9){if(!this['element'])return;const _0x4cb78e=[];for(const [_0x1aba5c,_0x3401a3]of _0x871b43){const _0x12796b=document['createElement']('div');_0x12796b['setAttribute']('data-ck-root-name',_0x1aba5c),_0x12796b['className']=_0x3401a3['classes']+'\x20ck-track-changes-preview__root-container',_0x12796b['innerHTML']=_0x3401a3['content'],_0x4cb78e['push'](_0x12796b);}_0x4842c9(this['element'],_0x4cb78e),this['element']['style']['width']='',this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends Qt{constructor(_0x5612fc){super(_0x5612fc),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x2b6324=this['editor'],_0x9785f4=_0x2b6324['locale'],_0x528b3b=_0x2b6324['plugins']['get']('Dialog');let _0x586970;const _0x3858f9=function(_0xecb089){const _0x4b9cee={};if('editables'in _0xecb089['ui']['view']){for(const [_0x547e96,_0x528e3a]of Object['entries'](_0xecb089['ui']['view']['editables']))_0x4b9cee[_0x547e96]=_0x528e3a['element'];}else _0x4b9cee[_0xecb089['model']['document']['getRootNames']()[0x0]]=_0xecb089['ui']['view']['editable']['element'];return _0x4b9cee;}(_0x2b6324),_0x3fe572=function(_0x5d085c){let _0x47d23c=0x0;for(const _0x1dea2a of Object['values'](_0x5d085c))_0x47d23c=Math['max'](_0x47d23c,_0x1dea2a['getBoundingClientRect']()['width']);let _0x14c20f=0x0;for(const _0x1c6674 of Object['values'](_0x5d085c))_0x14c20f+=_0x1c6674['getBoundingClientRect']()['height'];const _0x1b1bfb=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x360650=Math['min'](_0x14c20f,_0x1b1bfb);return{'width':_0x47d23c,'height':_0x360650};}(_0x3858f9);_0x528b3b['show']({'id':'finalContentPreview','title':o(_0x9785f4,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x9785f4,{'dialogRects':_0x3fe572}),'onHide':()=>{_0x586970['detachFromDom']();},'onShow':()=>{_0x2b6324['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x3ba08e=>{const _0x5973bf=this['_standarizeRootsData'](_0x3ba08e,_0x2b6324,_0x3858f9);_0x528b3b['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x5973bf,_0x2b6324['config']['get']('trackChanges.preview.renderFunction'));}),_0x586970=new _0x52f5f3(_0x9785f4,[_0x528b3b['view']]),_0x586970['attachToDom'](),_0x586970['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x2b6324['once']('destroy',()=>{_0x586970['detachFromDom']();});const _0x3158a2=_0x528b3b['view']['headerView']['class'];_0x528b3b['view']['headerView']['class']=_0x3158a2?_0x3158a2+'\x20ck-reset_all':'ck-reset_all',_0x528b3b['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x528b3b['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x33fb7e=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x2ce885=_0x33fb7e['previewMode'],_0x490c93={};if('$labels'===_0x2ce885){for(const _0x58b6ff of _0x33fb7e['getMergeFieldsIds']())_0x490c93[_0x58b6ff]=_0x33fb7e['getLabel'](_0x58b6ff)||_0x58b6ff;}else{const _0x166316='$defaultValues'===_0x2ce885?_0x33fb7e['getDefaultValues']():_0x33fb7e['getDataSetValues'](_0x2ce885,!0x0);for(const _0x37229f of Object['entries'](_0x166316)){const [_0x35c84e,_0x10ab56]=_0x37229f;_0x490c93[_0x35c84e]=null!==_0x10ab56?_0x10ab56:_0x33fb7e['getLabel'](_0x35c84e)||_0x35c84e;}}return{'mergeFieldsData':_0x490c93};}['_standarizeRootsData'](_0x46d1e9,_0x28b1ac,_0x52bad2){let _0x4d0b0f;if('string'==typeof _0x46d1e9){const _0x18caac=_0x28b1ac['model']['document']['getRootNames']()[0x0];_0x4d0b0f={[_0x18caac]:_0x46d1e9};}else _0x4d0b0f=_0x46d1e9;const _0x347e07=this['_fixMediaEmbeds'](_0x4d0b0f,_0x28b1ac),_0x5718e9=function(_0x1f823a,_0x589e5f){for(const [_0x16bc37,_0x3a6bc3]of _0x1f823a)_0x3a6bc3['classes']=_0x589e5f[_0x16bc37]['classList']['value']['replace']('ck-focused','');return _0x1f823a;}(this['_sortRoots'](_0x28b1ac)['reduce']((_0x4c9045,_0x5c0799)=>(_0x4c9045['push']([_0x5c0799,{'content':_0x347e07[_0x5c0799],'classes':''}]),_0x4c9045),[]),_0x52bad2);return _0x5718e9;}['_fixMediaEmbeds'](_0x3e9df6,_0x191e1b){if(!_0x191e1b['plugins']['has']('MediaEmbedEditing'))return _0x3e9df6;const _0x3f107a=_0x191e1b['plugins']['get']('MediaEmbedEditing');for(const [_0x55d793,_0x7d6550]of Object['entries'](_0x3e9df6)){const _0x42e510=document['createElement']('div');_0x42e510['innerHTML']=_0x7d6550,(_0x42e510['querySelectorAll']('figure.media')['forEach'](_0x15804a=>{const _0x256011=_0x15804a['querySelector']('oembed');if(_0x256011){const _0x5c3cf3=_0x256011['getAttribute']('url');if(_0x5c3cf3){const _0x1c0cdb=_0x3f107a['registry']['getMediaViewElement'](new _0x1db6be(_0x191e1b['editing']['view']['document']),_0x5c3cf3,{'elementName':'','renderForEditingView':!0x0}),_0x20ef48=document['createElement']('div');_0x20ef48['classList']['add']('ck-media__wrapper'),_0x1c0cdb['render'](_0x20ef48,_0x191e1b['editing']['view']['domConverter']),_0x256011['replaceWith'](_0x20ef48);}}}),_0x3e9df6[_0x55d793]=_0x42e510['innerHTML']);}return _0x3e9df6;}['_sortRoots'](_0x3cbbf0){if(!function(_0x3d653a){return void 0x0!==_0x3d653a['getRootsAttributes'];}(_0x3cbbf0))return _0x3cbbf0['model']['document']['getRootNames']();const _0x49fdf8=[],_0x586ea9=new Map();for(const _0x5c6840 of _0x3cbbf0['model']['document']['getRootNames']()){const _0x500e7f=_0x3cbbf0['editing']['view']['getDomRoot'](_0x5c6840)['getClientRects']()['item'](0x0);_0x49fdf8['push'](_0x5c6840),_0x586ea9['set'](_0x5c6840,_0x500e7f);}return _0x49fdf8['sort']((_0x87171a,_0x7f588d)=>{const _0xdde251=_0x586ea9['get'](_0x87171a),_0x90d422=_0x586ea9['get'](_0x7f588d);return _0xdde251['y']-_0x90d422['y']||_0xdde251['x']-_0x90d422['x'];}),_0x49fdf8;}}class te extends _0x538eb2{static get['requires'](){return[T,_0xeabc38];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x447e1a){super(_0x447e1a),_0x447e1a['commands']['add']('previewFinalContent',new re(this['editor'])),_0x447e1a['config']['define']('trackChanges.preview.renderFunction',(_0x184cbc,_0xe9aaa9)=>{for(const _0x1e62bc of _0xe9aaa9)_0x184cbc['appendChild'](_0x1e62bc);});}}export{as as BaseSuggestionThreadView,u as Suggestion,pe as SuggestionThreadView,fe as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
|