@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20250130.0 → 0.0.0-nightly-20250201.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/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/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangespreview.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +2 -2
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/ui/view/suggestionview.js +1 -1
- package/src/ui/view/trackchangespreviewview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as Qt,Plugin as
|
|
24
|
-
_0x384257(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x5c730b,_0x3051f4){super(),this['id']=_0x3051f4['id'],this['type']=_0x3051f4['type'],this['subType']=_0x3051f4['subType']||null,this['author']=_0x3051f4['author'],this['creator']=_0x3051f4['creator']||_0x3051f4['author'],this['isExternal']=Boolean(_0x3051f4['attributes']&&_0x3051f4['attributes']['@external']),this['data']=null,this['_model']=_0x5c730b,this['_onAccept']=_0x3051f4['onAccept'],this['_onDiscard']=_0x3051f4['onDiscard'],this['_onAttributesChange']=_0x3051f4['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x3051f4['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 _0x32aa19=this;for(;_0x32aa19['previous'];)_0x32aa19=_0x32aa19['previous'];return _0x32aa19;}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'](_0xa3d5a2){this['_markerNames']['add'](_0xa3d5a2);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x506d8c=>this['_model']['markers']['get'](_0x506d8c))['filter'](_0x5dc005=>_0x5dc005);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x2754bf=>{for(const _0x2f974d of this['getMarkers']())_0x2754bf['removeMarker'](_0x2f974d);}),this['_markerNames']['clear']();}['removeMarker'](_0x201e15){this['_model']['change'](_0x29d5fe=>{_0x29d5fe['removeMarker'](_0x201e15);}),this['_markerNames']['delete'](_0x201e15);}['addRange'](_0x1511b0){const _0x599b39='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x599b39),this['_model']['change'](_0x1d2c6a=>{_0x1d2c6a['addMarker'](_0x599b39,{'range':_0x1511b0,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x395ee9){for(const _0x369e96 of this['getRanges']())if(_0x369e96['isIntersecting'](_0x395ee9))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x442884=>_0x442884['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x4c6b7e,_0x100ed8)=>[..._0x4c6b7e,..._0x100ed8['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x26c8ef=this['getRanges']();if(0x1!=_0x26c8ef['length'])return null;const _0x297ff3=_0x26c8ef[0x0],_0x263954=_0x297ff3['start']['nodeAfter'],_0x22f2ce=_0x297ff3['end']['nodeBefore'];return _0x263954 instanceof _0x3a7838?_0x263954!=_0x22f2ce?null:_0x263954: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 _0x15c675=[];let _0x2a0d7f=this['head'];for(;_0x2a0d7f;)_0x15c675['push'](_0x2a0d7f),_0x2a0d7f=_0x2a0d7f['next'];return _0x15c675;}['setAttribute'](_0x4891dc,_0x21f65e){const _0x23f814=_0xb3a4ae(this['attributes']);_0x4f46ff(_0x23f814,_0x4891dc,_0x21f65e),_0x3670b4(_0x23f814,this['attributes'])||(this['attributes']=_0x23f814,this['_onAttributesChange'](_0x23f814));}['removeAttribute'](_0x2c744c){const _0xe96423=_0xb3a4ae(this['attributes']);_0x410979(_0xe96423,_0x2c744c),_0x3670b4(_0xe96423,this['attributes'])||(this['attributes']=_0xe96423,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 _0x17f70d()['substr'](0x1,0x5);}}function o(_0x262173,_0x2342b3,_0x1ec2c5){const _0xbb4192=_0x262173['t'],t=_0x262173['t'];switch(_0x2342b3){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',_0x1ec2c5);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x1ec2c5);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x1ec2c5);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x1ec2c5);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x1ec2c5);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',_0x1ec2c5);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x1ec2c5);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',_0x1ec2c5);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x1ec2c5);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x1ec2c5);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x1ec2c5);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x1ec2c5);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x1ec2c5);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x1ec2c5);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x1ec2c5);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x1ec2c5);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x1ec2c5);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x1ec2c5);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x1ec2c5);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x1ec2c5);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x1ec2c5);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x1ec2c5);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x1ec2c5);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x1ec2c5);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'},_0x1ec2c5);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x1ec2c5);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x1ec2c5);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x1ec2c5);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x1ec2c5);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x1ec2c5);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'},_0x1ec2c5);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x1ec2c5);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x1ec2c5);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x1ec2c5);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x1ec2c5);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'},_0x1ec2c5);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x1ec2c5);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'},_0x1ec2c5);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'},_0x1ec2c5);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x1ec2c5);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'},_0x1ec2c5);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x1ec2c5);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'},_0x1ec2c5);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x1ec2c5);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x1ec2c5);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'},_0x1ec2c5);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x1ec2c5);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 _0xbb4192({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x1ec2c5);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0xbb4192({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x1ec2c5);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x1ec2c5);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'},_0x1ec2c5);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'},_0x1ec2c5);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'},_0x1ec2c5);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x2342b3;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x24fcf6,_0x56f7f2){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x24fcf6,this['_locale']=_0x56f7f2;}['getDescriptions'](_0x3a4712){const _0x5daf38=[],_0x5acf1b=new Set(),_0x3baab7=new Set();for(let _0x1be0b0=0x0;_0x1be0b0<_0x3a4712['length'];_0x1be0b0++){const _0x2797ab=_0x3a4712[_0x1be0b0];if(!_0x2797ab['isInContent'])continue;const _0x4603ca=this['_handleCustomCallbackDescription'](_0x2797ab);if(_0x4603ca){if(null!=_0x2797ab['subType']){if(_0x5acf1b['has'](_0x2797ab['subType']))continue;_0x5acf1b['add'](_0x2797ab['subType']);}_0x5daf38['push'](_0x4603ca);}else{if('attribute'!=_0x2797ab['type'])'insertion'!=_0x2797ab['type']&&'deletion'!=_0x2797ab['type']||this['_handleInsertRemoveSuggestionDescription'](_0x5daf38,_0x2797ab,_0x3a4712[_0x1be0b0+0x1]);else{const _0x28ac6b=_0x2797ab['data']['key'];if(_0x3baab7['has'](_0x28ac6b))continue;_0x3baab7['add'](_0x2797ab['data']['key']),_0x28ac6b==m?this['_handleRenameSuggestionDescription'](_0x5daf38,_0x2797ab):this['_handleAttributeSuggestionDescription'](_0x5daf38,_0x2797ab);}}}return this['_resolveDescriptionItems'](_0x5daf38);}['registerDescriptionCallback'](_0xde81b9){this['_customCallbacks']['push'](_0xde81b9);}['registerElementLabel'](_0x577dbf,_0x79c82f,_0x123c1c=_0x12460b['normal']){'function'==typeof _0x577dbf?_0xa0b02(this['_itemLabelsCallbacks'],{'matchingCallback':_0x577dbf,'label':_0x79c82f,'priority':_0x123c1c}):this['_itemLabels']['set'](_0x577dbf,_0x79c82f);}['registerAttributeLabel'](_0x191539,_0x2ddcec){this['_attributeLabels']['set'](_0x191539,_0x2ddcec);}['getItemLabel'](_0xf8a7a3,_0x28de11=0x1){let _0xcf5280;for(const _0x3a4bea of this['_itemLabelsCallbacks'])if(_0x3a4bea['matchingCallback'](_0xf8a7a3)){_0xcf5280=_0x3a4bea['label'];break;}return _0xcf5280||(_0xcf5280=this['_itemLabels']['get'](_0xf8a7a3['name'])),_0xcf5280?_0xcf5280(_0x28de11):0x1!==_0x28de11?_0x28de11+'\x20'+_0xf8a7a3['name']+'s':''+_0xf8a7a3['name'];}['_addDescriptionItems'](_0xf5c512,_0x226bd0){const _0x28e5b4=_0x226bd0['getFirstRange']()['getWalker'](),_0x45f2ad='insertion'==_0x226bd0['type']?'add':'remove';for(const _0x838e82 of _0x28e5b4){const _0x15460e=_0x838e82['item'],_0x2acce7=_0xf5c512[_0xf5c512['length']-0x1];if(_0x15460e['is']('$textProxy'))_0x2acce7&&_0x2acce7['type']['indexOf']('Container')>-0x1&&_0xf5c512['pop'](),_0x2acce7&&'text'==_0x2acce7['type']?_0x2acce7[_0x45f2ad]+=_0x15460e['data']:_0xf5c512['push']({'type':'text','add':'add'==_0x45f2ad?_0x15460e['data']:'','remove':'remove'==_0x45f2ad?_0x15460e['data']:''});else{if(this['_schema']['isObject'](_0x15460e)){const _0x5dfa52=_0x15460e;if(_0x2acce7&&_0x2acce7['type']['indexOf']('Container')>-0x1&&_0xf5c512['pop'](),'elementEnd'==_0x838e82['type'])continue;_0x2acce7&&_0x2acce7['type']==_0x45f2ad+'Object'&&_0x2acce7['element']['name']==_0x5dfa52['name']?_0x2acce7['quantity']++:_0xf5c512['push']({'type':_0x45f2ad+'Object','element':_0x5dfa52,'quantity':0x1}),_0x28e5b4['skip'](_0x3d89b9=>!('elementEnd'==_0x3d89b9['type']&&_0x3d89b9['item']==_0x15460e));}else{if(this['_schema']['checkChild'](_0x15460e,'$text')||_0x15460e['is']('element','softBreak')){const _0x5ebc0c=_0x15460e;if('add'==_0x45f2ad&&'elementStart'==_0x838e82['type']||'remove'==_0x45f2ad&&'elementEnd'==_0x838e82['type'])continue;if(_0x2acce7&&-0x1==_0x2acce7['type']['indexOf']('Container')){'text'==_0x2acce7['type']&&(_0x2acce7[_0x45f2ad]+='\x0a');continue;}let _0x59e8a1;if(_0x59e8a1='add'==_0x45f2ad?_0x5ebc0c['nextSibling']&&!this['_schema']['isObject'](_0x5ebc0c['nextSibling'])?_0x5ebc0c['nextSibling']:null:_0x5ebc0c['previousSibling']&&!this['_schema']['isObject'](_0x5ebc0c['previousSibling'])?_0x5ebc0c['previousSibling']:null,_0x5ebc0c['isEmpty']||_0x59e8a1&&_0x59e8a1['isEmpty']){const _0x173562=_0x59e8a1&&_0x59e8a1['isEmpty']?_0x59e8a1:_0x5ebc0c;_0x2acce7&&_0x2acce7['type']==_0x45f2ad+'EmptyContainer'&&_0x2acce7['element']['name']==_0x173562['name']?_0x2acce7['quantity']++:_0xf5c512['push']({'type':_0x45f2ad+'EmptyContainer','element':_0x173562,'quantity':0x1});}else _0xf5c512['push']({'type':_0x45f2ad+'Container','element':_0x5ebc0c});}}}}}['_resolveDescriptionItems'](_0xd0c7e1){const _0x4266fd=this['_locale'],_0x53b618=[],_0x2e444e=[],_0x1b6c9e=[];for(const _0x5b9d01 of _0xd0c7e1)switch(_0x5b9d01['type']){case'text':if(_0x5b9d01['add']=_0x5b9d01['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x5b9d01['remove']=_0x5b9d01['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x5b9d01['add']&&''!=_0x5b9d01['remove']){_0x53b618['push']({'type':'replace','content':o(_0x4266fd,'REPLACE_TEXT',['\x22'+_0x5b9d01['remove']+'\x22','\x22'+_0x5b9d01['add']+'\x22'])});continue;}if(null!=_0x5b9d01['add']['match'](/^ +$/)){_0x53b618['push']({'type':'insertion','content':o(_0x4266fd,'*Insert:*\x20%0',o(_0x4266fd,'ELEMENT_SPACE',_0x5b9d01['add']['length']))});continue;}if(null!=_0x5b9d01['remove']['match'](/^ +$/)){_0x53b618['push']({'type':'deletion','content':o(_0x4266fd,'*Remove:*\x20%0',o(_0x4266fd,'ELEMENT_SPACE',_0x5b9d01['remove']['length']))});continue;}if(''!=_0x5b9d01['add']){_0x53b618['push']({'type':'insertion','content':o(_0x4266fd,'*Insert:*\x20%0','\x22'+_0x5b9d01['add']+'\x22')});continue;}_0x53b618['push']({'type':'deletion','content':o(_0x4266fd,'*Remove:*\x20%0','\x22'+_0x5b9d01['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x53b618['push']({'type':'insertion','content':o(_0x4266fd,'*Insert:*\x20%0',this['getItemLabel'](_0x5b9d01['element'],_0x5b9d01['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x53b618['push']({'type':'deletion','content':o(_0x4266fd,'*Remove:*\x20%0',this['getItemLabel'](_0x5b9d01['element'],_0x5b9d01['quantity']))});continue;case'addContainer':_0x53b618['push']({'type':'insertion','content':o(_0x4266fd,'*Split:*\x20%0',this['getItemLabel'](_0x5b9d01['element'],_0x5b9d01['quantity']))});continue;case'removeContainer':_0x53b618['push']({'type':'deletion','content':o(_0x4266fd,'*Merge:*\x20%0',this['getItemLabel'](_0x5b9d01['element'],_0x5b9d01['quantity']))});continue;case'addFormat':_0x2e444e['push'](_0x5b9d01['key']);continue;case'removeFormat':_0x1b6c9e['push'](_0x5b9d01['key']);continue;default:_0x53b618['push'](_0x5b9d01);}if(_0x2e444e['length']){const _0x30e9c9=_0x2e444e['map'](_0x452e89=>this['_attributeLabels']['has'](_0x452e89)?this['_attributeLabels']['get'](_0x452e89):_0x452e89)['join'](',\x20');_0x53b618['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x30e9c9)});}if(_0x1b6c9e['length']){const _0x177a9a=_0x1b6c9e['map'](_0x3f65e6=>this['_attributeLabels']['has'](_0x3f65e6)?this['_attributeLabels']['get'](_0x3f65e6):_0x3f65e6)['join'](',\x20');_0x53b618['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x177a9a)});}return _0x53b618;}['_handleCustomCallbackDescription'](_0x3eb1fd){for(const _0x17fd07 of this['_customCallbacks']){const _0x3a8a61=_0x17fd07(_0x3eb1fd);if(_0x3a8a61&&'type'in _0x3a8a61)return _0x3a8a61;}}['_handleAttributeSuggestionDescription'](_0x2758d4,_0x40fd61){const _0x523cac=_0x40fd61['data'],_0x1cfdd4=void 0x0===_0x523cac['newValue']?'removeFormat':'addFormat';_0x2758d4['push']({'type':_0x1cfdd4,'key':_0x523cac['key']});}['_handleRenameSuggestionDescription'](_0x47dd5f,_0xeeda99){_0x47dd5f['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0xeeda99['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x5876b5,_0x202a1b,_0x447381){if(this['_addDescriptionItems'](_0x5876b5,_0x202a1b),_0x447381&&_0x447381['getFirstRange']()&&!_0x202a1b['getFirstRange']()['end']['isEqual'](_0x447381['getFirstRange']()['start'])){const _0x47cfc0=_0x5876b5[_0x5876b5['length']-0x1],_0x44250b='insertion'==_0x202a1b['type']?'add':'remove';_0x47cfc0&&'text'==_0x47cfc0['type']&&(_0x47cfc0[_0x44250b]+='\x0a');}}}class U extends _0x3cb51e{['afterInit'](){const _0x209954=this['editor'],_0x3091f7=_0x209954['plugins']['get']('TrackChangesEditing');_0x209954['commands']['get']('showAIAssistant')&&_0x3091f7['enableCommand']('showAIAssistant');}}class V extends _0x3cb51e{['afterInit'](){const _0x20f349=this['editor'],_0x5e283e=_0x20f349['locale'];if(!_0x20f349['plugins']['has']('AlignmentEditing'))return;const _0x37e4d2=_0x20f349['plugins']['get']('TrackChangesEditing');_0x37e4d2['enableDefaultAttributesIntegration']('alignment'),_0x37e4d2['registerBlockAttribute']('alignment'),_0x37e4d2['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x5e283e,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4fc26f=this['editor'],_0x307d6b=_0x4fc26f['locale'];_0x4fc26f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x40fb4d=>{if('formatBlock'!=_0x40fb4d['type'])return;const {data:_0x50c588}=_0x40fb4d;if(_0x50c588&&'alignment'==_0x50c588['commandName']){const _0x1cc680=_0x50c588['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x307d6b,'*Format:*\x20%0',function(_0xae0db5){switch(_0xae0db5){case'left':return o(_0x307d6b,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x307d6b,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x307d6b,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x307d6b,'FORMAT_JUSTIFY_TEXT');}}(_0x1cc680))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x3cb51e{['afterInit'](){const _0x5ca485=this['editor'],_0x11d141=_0x5ca485['plugins']['get']('TrackChangesEditing'),_0x131a96=_0x5ca485['locale'];for(const _0x2b67d1 of ti){if(!_0x5ca485['plugins']['has'](_0x2b67d1))continue;const _0x816cc3=_0x2b67d1['slice'](0x0,-0x7)['toLowerCase'](),_0x30f415='FORMAT_'+_0x816cc3['toUpperCase']();_0x11d141['enableDefaultAttributesIntegration'](_0x816cc3),_0x11d141['registerInlineAttribute'](_0x816cc3),_0x11d141['descriptionFactory']['registerAttributeLabel'](_0x816cc3,o(_0x131a96,_0x30f415));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x36c9d0=this['editor'],_0x11b402=_0x36c9d0['locale'],_0x1a4214=_0x36c9d0['plugins']['get']('TrackChangesEditing');function _0x443156(_0x4012e9,_0x2e9f2f){_0x1a4214['descriptionFactory']['registerDescriptionCallback'](_0x3f84a2=>{if('formatInline'!=_0x3f84a2['type'])return;const {data:_0x296459}=_0x3f84a2;return _0x296459&&_0x296459['commandName']===_0x4012e9?_0x296459['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x11b402,'*Format:*\x20%0',_0x2e9f2f)}:{'type':'format','content':o(_0x11b402,'*Remove\x20format:*\x20%0',_0x2e9f2f)}:void 0x0;});}_0x443156('bold',o(_0x11b402,'FORMAT_BOLD')),_0x443156('italic',o(_0x11b402,'FORMAT_ITALIC')),_0x443156('underline',o(_0x11b402,'FORMAT_UNDERLINE')),_0x443156('code',o(_0x11b402,'FORMAT_CODE')),_0x443156('strikethrough',o(_0x11b402,'FORMAT_STRIKETHROUGH')),_0x443156('subscript',o(_0x11b402,'FORMAT_SUBSCRIPT')),_0x443156('superscript',o(_0x11b402,'FORMAT_SUPERSCRIPT'));}}class F extends _0x3cb51e{['afterInit'](){const _0x473df4=this['editor'],_0x51dcca=_0x473df4['locale'];if(!_0x473df4['plugins']['has']('BlockQuoteEditing'))return;const _0x7c9097=_0x473df4['plugins']['get']('TrackChangesEditing'),_0x1acdcc=this['editor']['commands']['get']('blockQuote');_0x7c9097['enableCommand']('blockQuote',(_0x46d5c2,_0x258b0b={})=>{const _0x33d89f=this['editor']['model']['document']['selection'],_0x23c778=_0x258b0b&&void 0x0!==_0x258b0b['forceValue']?_0x258b0b['forceValue']:!_0x1acdcc['value'];let _0x202c92=[];if(_0x23c778){const _0x54f5c8=Array['from'](_0x33d89f['getSelectedBlocks']())['filter'](_0x14bd9b=>oo(_0x14bd9b)||function(_0x5af585,_0x1ac13a){const _0x4c57b3=_0x1ac13a['checkChild'](_0x5af585['parent'],'blockQuote'),_0x4c86f0=_0x1ac13a['checkChild'](['$root','blockQuote'],_0x5af585);return _0x4c57b3&&_0x4c86f0;}(_0x14bd9b,this['editor']['model']['schema']));_0x202c92=to(_0x54f5c8,_0x473df4['model']);}else{const _0x1b40a9=Array['from'](_0x33d89f['getSelectedBlocks']())['filter'](_0x903ff9=>oo(_0x903ff9));_0x202c92=to(_0x1b40a9,_0x473df4['model']);}_0x473df4['model']['change'](()=>{for(const _0x396958 of _0x202c92)_0x7c9097['markBlockFormat'](_0x396958,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x23c778}]});});}),_0x7c9097['descriptionFactory']['registerDescriptionCallback'](_0x5a0768=>{const {data:_0x170a96}=_0x5a0768;if(_0x170a96&&'blockQuote'==_0x170a96['commandName']){const _0xae8c0a=o(_0x51dcca,'ELEMENT_BLOCK_QUOTE');return _0x170a96['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x51dcca,'*Set\x20format:*\x20%0',_0xae8c0a)}:{'type':'format','content':o(_0x51dcca,'*Remove\x20format:*\x20%0',_0xae8c0a)};}});}}function oo(_0x9e48ec){return'blockQuote'==_0x9e48ec['parent']['name'];}class L extends _0x3cb51e{['afterInit'](){const _0x151d52=this['editor'],_0x4c3ce4=_0x151d52['locale'],_0x3459c8=_0x151d52['plugins']['get']('TrackChangesEditing');_0x151d52['plugins']['has']('BookmarkEditing')&&(_0x3459c8['enableCommand']('insertBookmark'),_0x3459c8['enableDefaultAttributesIntegration']('updateBookmark'),_0x3459c8['registerBlockAttribute']('bookmarkId'),_0x3459c8['descriptionFactory']['registerDescriptionCallback'](_0x56b5c2=>{if('insertion'!=_0x56b5c2['type']&&'deletion'!=_0x56b5c2['type']&&'attribute'!=_0x56b5c2['type'])return;const _0x253074=_0x56b5c2['getContainedElement']();if(null==_0x253074)return;if(!_0x253074['is']('element','bookmark'))return;const _0x5dafa3=_0x253074['getAttribute']('bookmarkId');if('insertion'==_0x56b5c2['type'])return{'type':'insertion','content':o(_0x4c3ce4,'*Insert:*\x20%0','\x22'+_0x5dafa3+'\x22\x20'+o(_0x4c3ce4,'ELEMENT_BOOKMARK'))};if('deletion'==_0x56b5c2['type'])return{'type':'deletion','content':o(_0x4c3ce4,'*Remove:*\x20%0','\x22'+_0x5dafa3+'\x22\x20'+o(_0x4c3ce4,'ELEMENT_BOOKMARK'))};const {data:_0x3b7ab8}=_0x56b5c2;if(!_0x3b7ab8||'bookmarkId'!=_0x3b7ab8['key'])return;return{'type':'format','content':o(_0x4c3ce4,'*Set\x20bookmark:*\x20%0','\x22'+_0x3b7ab8['newValue']+'\x22')};}));}}class J extends _0x3cb51e{['afterInit'](){const _0x31e2e7=this['editor'];_0x31e2e7['plugins']['has']('CaseChange')&&(_0x31e2e7['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x31e2e7['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x31e2e7['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x3cb51e{['afterInit'](){const _0x585c8b=this['editor'];_0x585c8b['commands']['get']('ckbox')&&_0x585c8b['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x3cb51e{['afterInit'](){const _0x5f12be=this['editor'];if(!_0x5f12be['plugins']['has']('CodeBlock'))return;const _0xa9c7c1=_0x5f12be['plugins']['get']('TrackChangesEditing'),_0x8e78ab=_0x5f12be['locale'],_0x4db4b3=_0x5f12be['config']['get']('codeBlock')['languages'],_0x1bab0b=_0x5f12be['commands']['get']('codeBlock');_0xa9c7c1['enableCommand']('indentCodeBlock'),_0xa9c7c1['enableCommand']('outdentCodeBlock'),_0xa9c7c1['enableCommand']('codeBlock',(_0x418830,_0x16060e={})=>{const _0x1c25e6=_0x5f12be['model'],_0x53bf3e=_0x5f12be['model']['document']['selection'],_0x1a53aa=_0x16060e&&void 0x0!==_0x16060e['forceValue']?_0x16060e['forceValue']:!_0x1bab0b['value'];let _0x30ce77;_0x16060e['language']||(_0x16060e['language']=_0x4db4b3[0x0]['language']),_0x30ce77=_0x1a53aa?Array['from'](_0x53bf3e['getSelectedBlocks']())['filter'](_0x3e2250=>eo(_0x3e2250)||function(_0x19bddf,_0x2bd5dd){if(_0x19bddf['is']('rootElement')||_0x2bd5dd['isLimit'](_0x19bddf))return!0x1;return _0x2bd5dd['checkChild'](_0x19bddf['parent'],'codeBlock');}(_0x3e2250,_0x1c25e6['schema'])):Array['from'](_0x53bf3e['getSelectedBlocks']())['filter'](_0x3462e9=>eo(_0x3462e9));const _0x2b51d3=to(_0x30ce77,_0x1c25e6);_0x1c25e6['change'](()=>{for(const _0x1e97da of _0x2b51d3)_0xa9c7c1['markBlockFormat'](_0x1e97da,{'commandName':'codeBlock','commandParams':[{..._0x16060e,'forceValue':_0x1a53aa}],'formatGroupId':'blockName'});});}),(_0xa9c7c1['descriptionFactory']['registerElementLabel']('codeBlock',_0x5c14ed=>o(_0x8e78ab,'ELEMENT_CODE_BLOCK',_0x5c14ed)),_0xa9c7c1['descriptionFactory']['registerDescriptionCallback'](_0x806005=>{if('formatBlock'!=_0x806005['type'])return;const _0x253008=_0x8e78ab['t'],{data:_0x5e70e2}=_0x806005;if(!_0x5e70e2||'codeBlock'!=_0x5e70e2['commandName'])return;const _0x533fbb=_0x5e70e2['commandParams'][0x0]['language'],_0x4c7968=_0x253008(_0x4db4b3['find'](_0x13991a=>_0x13991a['language']===_0x533fbb)['label'])['toLowerCase']();return _0x5e70e2['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x8e78ab,'*Set\x20format:*\x20%0',o(_0x8e78ab,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x4c7968+')')}:{'type':'format','content':o(_0x8e78ab,'*Remove\x20format:*\x20%0',o(_0x8e78ab,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x45499d){return'codeBlock'==_0x45499d['name'];}class z extends _0x3cb51e{['afterInit'](){const _0x12b72a=this['editor'];if(!_0x12b72a['plugins']['has']('CommentsEditing'))return;_0x12b72a['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x556a8d,_0x460294,_0x116666){const _0x2586c5=[];for(const _0x167081 of _0x460294['getItems']())_0x167081['hasAttribute'](_0x556a8d)&&_0x2586c5['push'](_0x116666['createRangeOn'](_0x167081));return _0x2586c5;}function De(_0x4678d3,_0x4db846,{showActiveMarker:_0x341f35=!0x0}={}){const _0x12ec06=_0x4678d3['plugins']['get']('TrackChangesEditing');return(_0xefc954,_0x1d05a8,_0x5279f9)=>{if(!_0x5279f9['consumable']['test'](_0x1d05a8['markerRange'],_0xefc954['name']))return;const _0x551ef6=_0x1d05a8['markerRange']['getWalker'](),_0x225242=_0x1d05a8['markerRange']['start'],_0xb138dd=_0x4678d3['model']['schema'];let _0x3d57a2=null,_0x5625f1=null,_0x356333=!0x1,_0x300a1c=!0x1;for(const _0x58d5ad of _0x551ef6){const _0x4dff5c=_0x58d5ad['item'];_0x356333=_0x356333||_0xb138dd['isContent'](_0x4dff5c);const _0x2273c4=_0x5279f9['mapper']['toViewElement'](_0x4dff5c);if(_0x2273c4&&_0x2273c4['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x58d5ad['type']&&(_0xb138dd['isBlock'](_0x4dff5c)&&!_0xb138dd['isLimit'](_0x4dff5c)&&(_0x4dff5c['nextSibling']||_0x225242['isAtEnd']?_0x3d57a2&&_0x3d57a2['parent']==_0x4dff5c||(_0x3d57a2=_0x4dff5c,_0x556c67(_0x58d5ad['previousPosition']),_0x300a1c=!0x0):_0x5625f1=_0x5625f1||_0x58d5ad['previousPosition']));}function _0x556c67(_0x4ff18f){const {authorId:_0x5cfb1b}=_0x12ec06['_splitMarkerName'](_0x1d05a8['markerName']),_0x3f73cb=_0x5279f9['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4db846,'data-author-id':_0x5cfb1b}),_0x49d954=_0x5279f9['mapper']['toViewPosition'](_0x4ff18f);_0x341f35&&_0x12ec06['activeMarkers']['includes'](_0x1d05a8['markerName'])&&_0x5279f9['writer']['addClass']('ck-suggestion-marker--active',_0x3f73cb),_0x5279f9['writer']['insert'](_0x49d954,_0x3f73cb),_0x5279f9['mapper']['bindElementToMarker'](_0x3f73cb,_0x1d05a8['markerName']);}_0x356333||_0x300a1c||!_0x5625f1||_0x556c67(_0x5625f1);};}class K extends _0x3cb51e{static get['requires'](){return[_0x34e0b1];}['init'](){const _0x333d34=this['editor'],_0xe3bf53=_0x333d34['plugins']['get']('TrackChangesEditing');_0xe3bf53['enableCommand']('delete');const _0x25a18e=_0x333d34['commands']['get']('deleteForward');_0xe3bf53['enableCommand']('deleteForward',(_0x28133e,_0xfc7f6b={})=>{const _0x18451c=_0x333d34['model']['createSelection'](_0x333d34['model']['document']['selection']);_0x18451c['isCollapsed']&&_0x333d34['model']['modifySelection'](_0x18451c,{'direction':'forward','unit':_0xfc7f6b['unit']});const _0x3ca4fb=_0x18451c['getFirstRange'](),_0x389e85=_0x431313['fromRange'](_0x3ca4fb);let _0x456f96;_0x28133e(_0xfc7f6b),_0x456f96='$graveyard'==_0x389e85['root']['rootName']?_0x333d34['model']['createRange'](_0x3ca4fb['start']):_0x333d34['model']['createRange'](_0x389e85['start'],_0x389e85['end']),_0x389e85['detach'](),_0x333d34['model']['enqueueChange'](_0x25a18e['buffer']['batch'],_0x286b67=>{_0x25a18e['buffer']['lock'](),_0x286b67['setSelection'](_0x286b67['createRange'](_0x456f96['end'])),_0x25a18e['buffer']['unlock']();});}),_0x333d34['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x333d34,'merge'),{'priority':'high'}),_0x333d34['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x8ec38d,_0x10207e,_0x2f1179)=>{_0x2f1179['options']['showSuggestionHighlights']&&De(_0x333d34,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x8ec38d,_0x10207e,_0x2f1179);},{'priority':'high'}),_0x333d34['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x2a04ec,_0x35162c,_0x148592)=>{const _0x1081db=_0x148592['mapper']['markerNameToElements'](_0x35162c['markerName']);if(_0x1081db){for(const _0x38af9f of _0x1081db)_0x38af9f['is']('uiElement')&&(_0x148592['mapper']['unbindElementFromMarkerName'](_0x38af9f,_0x35162c['markerName']),_0x148592['writer']['remove'](_0x38af9f));}},{'priority':'high'});}}class W extends _0x3cb51e{['afterInit'](){const _0x215104=this['editor'];if(!_0x215104['plugins']['has']('ListEditing'))return;const _0x18c744=_0x215104['locale'],_0x3c9b27=_0x215104['plugins']['get']('TrackChangesEditing'),_0x5ed4d5=_0x215104['plugins']['has']('TodoListEditing'),_0x5f5d30=!!_0x215104['config']['get']('list.multiBlock');function _0x116cb2(_0x5272fb){return{'type':'format','content':''+o(_0x18c744,'*Set\x20format:*\x20%0',_0x5272fb)};}function _0x506730(_0x4b4a65){return{'type':'format','content':''+o(_0x18c744,'*Remove\x20format:*\x20%0',_0x4b4a65)};}_0x3c9b27['enableDefaultAttributesIntegration']('numberedList'),_0x3c9b27['enableDefaultAttributesIntegration']('bulletedList'),_0x3c9b27['enableDefaultAttributesIntegration']('customNumberedList'),_0x3c9b27['enableDefaultAttributesIntegration']('customBulletedList'),_0x3c9b27['enableDefaultAttributesIntegration']('indentList'),_0x3c9b27['enableDefaultAttributesIntegration']('outdentList'),_0x3c9b27['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x3c9b27['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x3c9b27['registerBlockAttribute']('listItemId'),_0x3c9b27['registerBlockAttribute']('listType'),_0x3c9b27['registerBlockAttribute']('listIndent'),_0x5f5d30&&(_0x3c9b27['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x3c9b27['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x5ed4d5&&(_0x3c9b27['enableDefaultAttributesIntegration']('todoList'),_0x3c9b27['enableDefaultAttributesIntegration']('checkTodoList'),_0x3c9b27['registerBlockAttribute']('todoListChecked'),_0x3c9b27['descriptionFactory']['registerDescriptionCallback'](_0x428694=>{const {data:_0xb7e27}=_0x428694;if(_0xb7e27&&'todoListChecked'==_0xb7e27['key'])return{'type':'format','content':_0xb7e27['newValue']?o(_0x18c744,'*Check\x20item*'):o(_0x18c744,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x1c6476=>{if(_0x1c6476['batch']['isUndo'])return!0x1;let _0x1b463c=!0x1;const _0x5673fa=_0x3c9b27['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x18c995=>'todoListChecked'===_0x3c9b27['_getAttributeKey'](_0x18c995));for(const _0x31983e of _0x5673fa){'todo'!=_0x31983e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x3c9b27['_findSuggestions'](_0x31983e['getFirstRange'](),'attribute')['find'](_0x7e7b44=>'listType'===_0x3c9b27['_getAttributeKey'](_0x7e7b44['suggestion']))||(_0x1c6476['removeMarker'](_0x31983e['getFirstMarker']()),_0x1b463c=!0x0));}return _0x1b463c;})),_0x3c9b27['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x18c744,'FORMAT_INDENT'));const _0x26e8e6={'type':'format','content':''};_0x3c9b27['descriptionFactory']['registerDescriptionCallback'](_0x584cfd=>{const {data:_0x553a15}=_0x584cfd;if(!_0x553a15||'listType'!=_0x553a15['key'])return;let _0x2eae39=_0x584cfd['head'];for(;_0x2eae39;){if(_0x2eae39['data']&&(('listStyle'==_0x2eae39['data']['key']||'listMarkerStyle'==_0x2eae39['data']['key'])&&(_0x2eae39['data']['newValue']&&'default'!=_0x2eae39['data']['newValue']||'default'!=_0x2eae39['data']['oldValue']&&!_0x553a15['newValue'])||!_0x5f5d30&&_0x2eae39['data']['key']==m))return _0x26e8e6;_0x2eae39=_0x2eae39['next'];}if(null==_0x553a15['newValue'])switch(_0x553a15['oldValue']){case'bulleted':return _0x506730(o(_0x18c744,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x506730(o(_0x18c744,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x506730(o(_0x18c744,'ELEMENT_TODO_LIST'));}switch(_0x553a15['newValue']){case'bulleted':return _0x116cb2(o(_0x18c744,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x116cb2(o(_0x18c744,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x116cb2(o(_0x18c744,'ELEMENT_TODO_LIST'));}}),_0x3c9b27['descriptionFactory']['registerDescriptionCallback'](_0x224ec9=>{const {data:_0x3cced0}=_0x224ec9;if(_0x3cced0&&'listIndent'==_0x3cced0['key'])return null==_0x3cced0['newValue']||null==_0x3cced0['oldValue']&&0x0==_0x3cced0['newValue']?_0x26e8e6:void 0x0;}),_0x3c9b27['descriptionFactory']['registerDescriptionCallback'](_0x2d6264=>{if('attribute'!=_0x2d6264['type'])return;const {data:_0x2d4ad8}=_0x2d6264;if(!_0x2d4ad8||'listItemId'!=_0x2d4ad8['key'])return;const _0x4be236=Te(_0x2d6264);return'newValue'==_0x4be236?{'type':'format','content':o(_0x18c744,'*Merge:*\x20list\x20item')}:'oldValue'==_0x4be236?{'type':'format','content':o(_0x18c744,'*Split:*\x20list\x20item')}:_0x26e8e6;}),_0x215104['model']['document']['registerPostFixer'](_0x3959dd=>this['listItemIdFixer'](_0x3959dd)),_0x215104['model']['document']['registerPostFixer'](_0x541f82=>this['noTrackChangesFixer'](_0x541f82)),_0x215104['model']['document']['on']('change:data',(_0x4a11df,_0x5a7724)=>{if(_0x5a7724['isUndo']||!_0x5a7724['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x17ccda){if(_0x17ccda['batch']['isUndo']||!_0x17ccda['batch']['isLocal'])return!0x1;let _0x4d52d9=!0x1;const _0xf8a348=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x554a64=>_0x554a64['data']&&'listItemId'==_0x554a64['data']['key'])['filter'](_0xbedfbb=>_0xbedfbb['data']['newValue']&&_0xbedfbb['data']['oldValue']);for(const _0x418a39 of _0xf8a348)Te(_0x418a39)||(_0x17ccda['removeMarker'](_0x418a39['getFirstMarker']()),_0x4d52d9=!0x0);return _0x4d52d9;}['noTrackChangesFixer'](_0x214939){if(_0x214939['batch']['isUndo']||!_0x214939['batch']['isLocal'])return!0x1;const _0x2d372a=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x2d372a['trackChangesCommand']['value'])return!0x1;let _0x34079a=!0x1;const _0x3e0719=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x42a06c=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x1a6692=>'attribute'==_0x1a6692['type'])['filter'](_0x1524e8=>_0x3e0719['includes'](_0x1524e8['attributeKey']));if(0x0==_0x42a06c['length'])return _0x34079a;for(const _0x591dbb of _0x42a06c){const _0x5d3fb7=_0x2d372a['_findSuggestions'](_0x591dbb['range'],'attribute')['filter'](_0x2def94=>!_0x2def94['meta']['isNextTo'])['map'](_0x26effe=>_0x26effe['suggestion'])['filter'](_0x262e1b=>{const _0x269dc8=_0x2d372a['_getAttributeKey'](_0x262e1b);return _0x3e0719['includes'](_0x269dc8);});if(_0x5d3fb7['length']){for(const _0x4b37a0 of _0x5d3fb7)_0x214939['removeMarker'](_0x4b37a0['getFirstMarker']());_0x34079a=!0x0;}}return _0x34079a;}['assureChains'](){const _0x26db1f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3a6f5f=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x5cf7d3;const _0x3a40b4=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x7283bb=>{if(_0x7283bb['data']['oldRange']||!_0x7283bb['data']['newRange'])return null;if(!_0x7283bb['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x1cb1e3}=_0x26db1f['_splitMarkerName'](_0x7283bb['name']);if(!_0x26db1f['hasSuggestion'](_0x1cb1e3))return null;const _0x215a38=_0x26db1f['getSuggestion'](_0x1cb1e3);return _0x3a6f5f['includes'](_0x215a38['data']['key']);})['map'](_0x1f5555=>{const {id:_0x53d2ac}=_0x26db1f['_splitMarkerName'](_0x1f5555['name']),_0x361d48=_0x26db1f['getSuggestion'](_0x53d2ac);return _0x5cf7d3=_0x361d48['attributes']['groupId'],_0x361d48['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x3a40b4['size'])return;const _0x50b23b=_0x26db1f['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4d75fc=>'attribute'==_0x4d75fc['type']&&_0x4d75fc['data']&&_0x3a6f5f['includes'](_0x4d75fc['data']['key'])&&_0x4d75fc['attributes']['groupId']!=_0x5cf7d3)['map'](_0x2c80fb=>({'listItem':_0x2c80fb['getFirstRange']()['start']['nodeAfter'],'groupId':_0x2c80fb['attributes']['groupId']})),_0x46e6e5=new Set();for(const {groupId:_0x4272a2,listItem:_0x352d73}of _0x50b23b)_0x3a40b4['has'](_0x352d73)&&_0x46e6e5['add'](_0x4272a2);for(const _0x239674 of _0x26db1f['getSuggestions']())_0x46e6e5['has'](_0x239674['attributes']['groupId'])&&_0x239674['setAttribute']('groupId',_0x5cf7d3);}['_supportLegacySuggestions'](){const _0x323147=this['editor'],_0x59d68d=_0x323147['locale'],_0x30cbab=_0x323147['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x30cbab['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x118d63,_0x48c85f){const _0x170a24=[];for(let _0x27c588 of _0x118d63)_0x27c588['start']['nodeAfter']===_0x27c588['end']['parent']&&(_0x27c588=_0x323147['model']['createRange'](_0x323147['model']['createPositionAt'](_0x27c588['start']['nodeAfter'],0x0))),_0x170a24['push'](_0x27c588);_0x323147['model']['change'](_0x4d2323=>{const _0x383c54=_0x323147['model']['document']['selection'],_0x228993=Array['from'](_0x383c54['getRanges']())['map'](_0x422aa0=>_0x431313['fromRange'](_0x422aa0));_0x4d2323['setSelection'](_0x170a24),_0x323147['commands']['get'](_0x48c85f['commandName'])['refresh'](),_0x48c85f['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x323147['execute'](_0x48c85f['commandName'],..._0x48c85f['commandParams']),_0x4d2323['setSelection'](_0x228993);for(const _0x26386c of _0x228993)_0x26386c['detach']();});}),_0x30cbab['descriptionFactory']['registerElementLabel'](function(_0x2b8a92){const _0x49e334=!_0x323147['model']['schema']['isObject'](_0x2b8a92),_0x12fb54=_0x2b8a92['previousSibling'],_0x2b649b=_0x2b8a92['nextSibling'],_0x4dbe52=_0x2b8a92['getAttribute']('listItemId'),_0x128996=!_0x12fb54||_0x12fb54['getAttribute']('listItemId')!==_0x4dbe52,_0x24ff19=!_0x2b649b||_0x2b649b['getAttribute']('listItemId')!==_0x4dbe52;return _0x49e334&&Boolean(_0x4dbe52)&&_0x128996&&_0x24ff19;},_0x1f532f=>o(_0x59d68d,'ELEMENT_LIST_ITEM',_0x1f532f));}['_registerLegacyDescription'](){const _0x3270fa=this['editor'],_0x1c7ea8=_0x3270fa['locale'];function _0x2fee7d(_0x480712){const _0x3fb013=_0x3270fa['commands']['get']('bulletedList')['value'],_0x7d38ba=_0x3270fa['commands']['get']('numberedList')['value'];return'numberedList'===_0x480712?_0x3fb013:_0x7d38ba;}_0x3270fa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x49a14e){if('formatBlock'!=_0x49a14e['type'])return;const {data:_0x1d0c59}=_0x49a14e;if(!_0x1d0c59)return;let _0x436271,_0x17e79e,_0x3b8f1a,_0xa2bec7;switch(_0x1d0c59['commandName']){case'bulletedList':_0x3b8f1a=_0x1d0c59['commandParams'][0x0]['forceValue'],_0xa2bec7=_0x2fee7d(_0x1d0c59['commandName']),_0x436271=_0x3b8f1a?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xa2bec7&&_0x3270fa['config']['get']('list.multiBlock')||(_0x436271='*Change\x20to:*\x20%0'),_0x17e79e={'type':'format','content':o(_0x1c7ea8,_0x436271,o(_0x1c7ea8,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x3b8f1a=_0x1d0c59['commandParams'][0x0]['forceValue'],_0xa2bec7=_0x2fee7d(_0x1d0c59['commandName']),_0x436271=_0x3b8f1a?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xa2bec7&&_0x3270fa['config']['get']('list.multiBlock')||(_0x436271='*Change\x20to:*\x20%0'),_0x17e79e={'type':'format','content':o(_0x1c7ea8,_0x436271,o(_0x1c7ea8,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x436271='*Indent:*\x20%0',_0x17e79e={'type':'format','content':o(_0x1c7ea8,_0x436271,o(_0x1c7ea8,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x436271=function(_0xf2c67d){const _0x2f9ccf=_0xf2c67d['getFirstRange']();let _0x3e97f7=_0x2f9ccf['start']['nodeAfter'];for(;_0x3e97f7&&_0x2f9ccf['containsItem'](_0x3e97f7);){if(_0x3e97f7['getAttribute']('listIndent')>0x0)return!0x1;_0x3e97f7=_0x3e97f7['nextSibling'];}return!0x0;}(_0x49a14e)?o(_0x1c7ea8,'*Format:*\x20remove\x20from\x20%0',o(_0x1c7ea8,function(_0x27842e){return'ELEMENT_'+_0x27842e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x49a14e))):o(_0x1c7ea8,'*Outdent:*\x20%0',o(_0x1c7ea8,'ELEMENT_LIST_ITEM')),_0x17e79e={'type':'format','content':_0x436271};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x1d0c59['multipleBlocks']&&(_0x436271='*Merge:*\x20%0',_0x17e79e={'type':'deletion','content':o(_0x1c7ea8,_0x436271,o(_0x1c7ea8,'ELEMENT_LIST_ITEM'))});}return _0x17e79e;});}}function Te(_0x407053){let _0xb41710=_0x407053['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0xb41710;){const _0x444d47=_0xb41710['getAttribute']('listItemId');if(!_0x444d47)return!0x1;if(_0x444d47==_0x407053['data']['newValue'])return'newValue';if(_0x444d47==_0x407053['data']['oldValue'])return'oldValue';_0xb41710=_0xb41710['previousSibling'];}return!0x1;}class Se extends _0x3cb51e{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x41afec=this['editor']['config']['get']('list.properties'),_0x5b5918=this['editor']['plugins']['get']('TrackChangesEditing');_0x41afec['styles']&&(_0x5b5918['enableDefaultAttributesIntegration']('listStyle'),_0x5b5918['registerBlockAttribute']('listStyle')),_0x41afec['reversed']&&(_0x5b5918['enableDefaultAttributesIntegration']('listReversed'),_0x5b5918['registerBlockAttribute']('listReversed')),_0x41afec['startIndex']&&(_0x5b5918['enableDefaultAttributesIntegration']('listStart'),_0x5b5918['registerBlockAttribute']('listStart'));const _0x3fd5fd={'type':'format','content':''};_0x5b5918['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x3ca75e=this['editor']['locale'];_0x5b5918['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x3ca75e,'FORMAT_LIST_REVERSED')),_0x5b5918['descriptionFactory']['registerDescriptionCallback'](_0x2bb323=>{const {data:_0x2af631}=_0x2bb323;if(_0x2af631&&'listReversed'==_0x2af631['key'])return null==_0x2af631['newValue']||0x0==_0x2af631['newValue']&&null==_0x2af631['oldValue']?_0x3fd5fd:void 0x0;}),_0x5b5918['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x3ca75e,'FORMAT_LIST_START')),_0x5b5918['descriptionFactory']['registerDescriptionCallback'](_0x200eb2=>{const {data:_0x840a1d}=_0x200eb2;if(_0x840a1d&&'listStart'==_0x840a1d['key'])return null==_0x840a1d['newValue']||0x1==_0x840a1d['newValue']&&null==_0x840a1d['oldValue']?_0x3fd5fd:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x824a9f=>{if(_0x824a9f['batch']['isUndo'])return!0x1;let _0x54f7a=!0x1;const _0xe5c96=_0x5b5918['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x51618c=>{const _0x264711=_0x5b5918['_getAttributeKey'](_0x51618c);return'listStart'==_0x264711||'listReversed'==_0x264711;});for(const _0x45d60c of _0xe5c96){const _0x188ca0=_0x45d60c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x188ca0||'customNumbered'==_0x188ca0)continue;_0x5b5918['_findSuggestions'](_0x45d60c['getFirstRange'](),'attribute')['find'](_0x253f41=>'listType'==_0x5b5918['_getAttributeKey'](_0x253f41['suggestion']))||(_0x824a9f['removeMarker'](_0x45d60c['getFirstMarker']()),_0x54f7a=!0x0);}return _0x54f7a;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x322d2e){const _0x19a169=this['editor']['locale'],{data:_0x2759dc}=_0x322d2e,_0x18f639={'type':'format','content':''};if(!_0x2759dc||'listStyle'!=_0x2759dc['key'])return;if(!_0x2759dc['oldValue'])return'default'==_0x2759dc['newValue']?_0x18f639:{'type':'format','content':''+o(_0x19a169,'*Set\x20format:*\x20%0',o(_0x19a169,this['_getTranslationKeyForListStyle'](_0x2759dc['newValue'])))};if(!_0x2759dc['newValue']){if('default'==_0x2759dc['oldValue'])return _0x18f639;let _0x41164d=_0x322d2e['head'];for(;_0x41164d;){if(_0x41164d['data']&&'listType'==_0x41164d['data']['key']&&_0x41164d['data']['newValue'])return _0x18f639;_0x41164d=_0x41164d['next'];}return{'type':'format','content':''+o(_0x19a169,'*Remove\x20format:*\x20%0',o(_0x19a169,this['_getTranslationKeyForListStyle'](_0x2759dc['oldValue'])))};}if('default'!=_0x2759dc['newValue'])return{'type':'format','content':''+o(_0x19a169,'*Set\x20format:*\x20%0',o(_0x19a169,this['_getTranslationKeyForListStyle'](_0x2759dc['newValue'])))};let _0x5ae682=_0x322d2e['head'];for(;_0x5ae682;){if(_0x5ae682['data']&&'listType'==_0x5ae682['data']['key']&&_0x5ae682['data']['newValue']&&_0x5ae682['data']['oldValue'])return _0x18f639;_0x5ae682=_0x5ae682['next'];}return{'type':'format','content':o(_0x19a169,'*Set\x20format:*\x20%0',o(_0x19a169,'ELEMENT_'+_0x322d2e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x36a6eb=this['editor'],_0x3450a3=_0x36a6eb['locale'];_0x36a6eb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5b8762=>{if('formatBlock'!=_0x5b8762['type'])return;const {data:_0x12a6cd}=_0x5b8762;if(!_0x12a6cd)return;let _0x1ec0e4,_0x2bd674;switch(_0x12a6cd['commandName']){case'listStyle':_0x1ec0e4='*Change\x20to:*\x20%0',_0x2bd674={'type':'format','content':o(_0x3450a3,_0x1ec0e4,o(_0x3450a3,this['_getTranslationKeyForListStyle'](_0x12a6cd['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1ec0e4=_0x12a6cd['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2bd674={'type':'format','content':o(_0x3450a3,_0x1ec0e4)};break;case'listStart':_0x1ec0e4='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2bd674={'type':'format','content':o(_0x3450a3,_0x1ec0e4,_0x12a6cd['commandParams'][0x0]['startIndex'])};}return _0x2bd674;});}['_getTranslationKeyForListStyle'](_0x1c4e7f){return'ELEMENT_'+function(_0x3c7657){if(_e['includes'](_0x3c7657))return'bulleted';if(Re['includes'](_0x3c7657))return'numbered';return null;}(_0x1c4e7f)['toUpperCase']()+'_LIST_'+_0x1c4e7f['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x3cb51e{static get['requires'](){return[_0x1690c2];}['init'](){const _0x3bc7eb=this['editor'],_0x296bf=_0x3bc7eb['plugins']['get']('TrackChangesEditing'),_0x3f4efa=_0x3bc7eb['commands']['get']('enter');_0x296bf['enableCommand']('enter',()=>{_0x3bc7eb['model']['change'](_0x2e2db6=>{const _0x12a9cf=_0x3bc7eb['model']['document']['selection'],_0x4d3d3c=_0x12a9cf['getFirstPosition'](),_0x28093d=_0x431313['fromRange'](_0x12a9cf['getFirstRange']());if(_0x3f4efa['enterBlock'](_0x2e2db6)){const _0x3184fa=_0x3bc7eb['model']['createPositionAt'](_0x4d3d3c['parent']['nextSibling'],0x0),_0x3a16f3=_0x2e2db6['createRange'](_0x4d3d3c,_0x3184fa);_0x296bf['markInsertion'](_0x3a16f3);}else _0x2e2db6['setSelection'](_0x2e2db6['createRange'](_0x28093d['end']));_0x28093d['detach'](),_0x3f4efa['fire']('afterExecute',{'writer':_0x2e2db6});});}),_0x3bc7eb['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x3bc7eb,'split'),{'priority':'high'}),_0x3bc7eb['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x372e76,_0x1d5f0b,_0x5db74d)=>{const _0xd0ccb7=_0x5db74d['mapper']['markerNameToElements'](_0x1d5f0b['markerName']);if(_0xd0ccb7){for(const _0x106806 of _0xd0ccb7)_0x106806['hasClass']('ck-suggestion-marker-split')&&(_0x5db74d['mapper']['unbindElementFromMarkerName'](_0x106806,_0x1d5f0b['markerName']),_0x5db74d['writer']['remove'](_0x106806));}},{'priority':'high'}),_0x3bc7eb['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x38b0e5,_0x142e0b,_0x2546a3)=>{_0x2546a3['options']['showSuggestionHighlights']&&De(_0x3bc7eb,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x38b0e5,_0x142e0b,_0x2546a3);},{'priority':'high'});}}class Y extends _0x3cb51e{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x20e14b=this['editor']['plugins']['get']('TrackChangesEditing');_0x20e14b['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x20e14b['enableCommand']('findNext'),_0x20e14b['enableCommand']('findPrevious'),_0x20e14b['enableCommand']('replace'),_0x20e14b['enableCommand']('replaceAll');}['handleFindCommand'](_0x1b2c75,_0x5d7bcd,_0x531356={}){const _0x38cc39=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x1b2c75(_0x48a49c=>{let _0xc390b5=('string'==typeof _0x5d7bcd?_0x38cc39['findByTextCallback'](_0x5d7bcd,_0x531356):_0x5d7bcd)(_0x48a49c);Array['isArray'](_0xc390b5)&&(_0xc390b5={'results':_0xc390b5,'searchText':'string'==typeof _0x5d7bcd?_0x5d7bcd:''});const _0x746882=_0xc390b5['results']['filter'](_0x15d958=>!0x1===this['_isInDeletionRange'](_0x15d958,_0x48a49c['item']));return{..._0xc390b5,'results':_0x746882};},_0x531356);}['_isInDeletionRange'](_0x48f192,_0x37efd7){const _0x7c2e93=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x37efd7,_0x48f192['start']),this['editor']['model']['createPositionAt'](_0x37efd7,_0x48f192['end']));for(const _0xfed377 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x7c2e93['getIntersection'](_0xfed377['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 _0x3cb51e{['afterInit'](){const _0x45e8a2=this['editor']['locale'],_0xa17f5c=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x4f17ef,commandName:_0x55b292}of ro)this['editor']['plugins']['has'](_0x4f17ef)&&(_0xa17f5c['enableDefaultAttributesIntegration'](_0x55b292),_0xa17f5c['registerInlineAttribute'](_0x55b292));_0xa17f5c['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x45e8a2,'FORMAT_FONT_SIZE')),_0xa17f5c['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x45e8a2,'FORMAT_FONT_FAMILY')),_0xa17f5c['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x45e8a2,'FORMAT_FONT_COLOR')),_0xa17f5c['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x45e8a2,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x224295=this['editor'],_0x7af206=_0x224295['locale'];_0x224295['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x94e050=>{const _0x2dfeb8=_0x7af206['t'];if('formatInline'!=_0x94e050['type'])return;const {data:_0x3a268b}=_0x94e050;if(null!=_0x3a268b){if('fontSize'==_0x3a268b['commandName']){const _0x4f4576=_0x3a268b['commandParams'][0x0]['value'];if(_0x4f4576){const _0x1a5af6=_0x2dfeb8(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x1b0ef1=>_0x1b0ef1['model']==_0x4f4576)['title'])['toLowerCase']();return{'type':'format','content':o(_0x7af206,'*Set\x20font\x20size:*\x20%0',_0x1a5af6)};}return{'type':'format','content':o(_0x7af206,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x3a268b['commandName']){const _0x59dbd5=_0x3a268b['commandParams'][0x0]['value'];return _0x59dbd5?{'type':'format','content':o(_0x7af206,'*Set\x20font\x20family:*\x20%0',_0x59dbd5)}:{'type':'format','content':o(_0x7af206,'*Reset\x20font\x20family*')};}if('fontColor'==_0x3a268b['commandName']){const _0x1ee314=_0x3a268b['commandParams'][0x0]['value'];if(_0x1ee314){const _0x24d231=_0x124194(this['editor']['config']['get']('fontColor.colors'))['find'](_0x13ed12=>_0x13ed12['model']==_0x1ee314);let _0x51ee94=_0x1ee314,_0xe59c57='';return _0x24d231&&(_0x51ee94=_0x24d231['label'],_0xe59c57=_0x2dfeb8(_0x51ee94)['toLowerCase']()),{'type':'format','content':o(_0x7af206,'*Set\x20font\x20color:*\x20%0',_0xe59c57)['trim'](),'color':{'value':_0x1ee314,'title':_0xe59c57||_0x51ee94}};}return{'type':'format','content':o(_0x7af206,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x3a268b['commandName']){const _0x3084dd=_0x3a268b['commandParams'][0x0]['value'];if(_0x3084dd){const _0xe08c18=_0x124194(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x545985=>_0x545985['model']==_0x3084dd);let _0x37cafe=_0x3084dd,_0x2c0211='';return _0xe08c18&&(_0x37cafe=_0xe08c18['label'],_0x2c0211=_0x2dfeb8(_0x37cafe)['toLowerCase']()),{'type':'format','content':o(_0x7af206,'*Set\x20font\x20background\x20color:*\x20%0',_0x2c0211)['trim'](),'color':{'value':_0x3084dd,'title':_0x2c0211||_0x37cafe}};}return{'type':'format','content':o(_0x7af206,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x3cb51e{['afterInit'](){const _0x2e96d2=this['editor'],_0xed8bba=_0x2e96d2['plugins']['get']('TrackChangesEditing'),_0x479028=_0x2e96d2['commands']['get']('copyFormat'),_0x1507e9=_0x2e96d2['commands']['get']('pasteFormat');_0x479028&&_0x1507e9&&(_0xed8bba['enableDefaultAttributesIntegration']('pasteFormat'),_0xed8bba['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x171503=this['editor'],_0x50514d=_0x171503['locale'];_0x171503['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1c0819=>{if('formatBlock'!=_0x1c0819['type']&&'formatInline'!=_0x1c0819['type'])return;const {data:_0xba0b5e}=_0x1c0819;if(_0xba0b5e&&'pasteFormat'===_0xba0b5e['commandName']){const _0xa79a97=[],_0x57d5d7=_0xba0b5e['commandParams'][0x0];for(const [_0x5e3dc3,_0x1e176a]of Object['entries'](_0x57d5d7))_0xa79a97['push'](so(_0x171503,_0x5e3dc3,_0x1e176a));return _0xa79a97['length']?{'type':'format','content':o(_0x50514d,'*Set\x20format\x20to:*\x20%0',_0xa79a97['join'](',\x20'))}:{'type':'format','content':o(_0x50514d,'*Remove\x20all\x20formatting*')};}});}}function so(_0xf94b73,_0x2e6421,_0x175d85){const _0x2d9d48=_0xf94b73['locale']['t'],_0xf7b610=_0x2e6421['split'](/(?=[A-Z])/)['join']('\x20'),_0x408f0d=_0x2d9d48(_0xf7b610['charAt'](0x0)['toUpperCase']()+_0xf7b610['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x175d85)return _0x408f0d;if('fontColor'===_0x2e6421||'fontBackgroundColor'===_0x2e6421){const _0x105eba=_0x124194(_0xf94b73['config']['get']('fontColor.colors'))['find'](_0x914834=>_0x914834['model']==_0x175d85);return _0x408f0d+'\x20('+(_0x105eba?_0x2d9d48(_0x105eba['label'])['toLowerCase']():_0x175d85)+')';}if('fontSize'===_0x2e6421&&isNaN(parseFloat(_0x175d85))){const _0x2bd40d=_0xf94b73['plugins']['get']('FontSize')['normalizeSizeOptions'](_0xf94b73['config']['get']('fontSize.options'))['find'](_0x54bb76=>_0x54bb76['model']==_0x175d85);return _0x408f0d+'\x20('+(_0x2bd40d?_0x2d9d48(_0x2bd40d['title'])['toLowerCase']():_0x175d85)+')';}return _0x408f0d+'\x20('+_0x175d85+')';}class nt extends _0x3cb51e{['_headingOptions'];['afterInit'](){const _0x1892d=this['editor'];if(!_0x1892d['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x1892d['config']['get']('heading.options');const _0x5b6915=_0x1892d['locale'],_0x392ecc=_0x1892d['plugins']['get']('TrackChangesEditing');_0x392ecc['enableDefaultAttributesIntegration']('heading');for(const _0x14d56e of this['_headingOptions'])'paragraph'!=_0x14d56e['model']&&_0x392ecc['descriptionFactory']['registerElementLabel'](_0x14d56e['model'],_0x5377c3=>{const _0x4b7a94=this['_getHeadingLevel'](_0x14d56e['model']);return null!==_0x4b7a94?_0x2266e8(_0x5377c3,_0x4b7a94):_0x2b6c81(_0x5377c3,_0x14d56e['title']);});function _0x2266e8(_0x337562,_0xecf698){return o(_0x5b6915,'ELEMENT_HEADING',[_0x337562,_0xecf698]);}function _0x2b6c81(_0x469872,_0x4f1848){return o(_0x5b6915,'ELEMENT_HEADING_CUSTOM',[_0x469872,_0x4f1848]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3a6b8a=this['editor'],_0x1a7234=_0x3a6b8a['locale'];function _0x18c0cd(_0x148a3a,_0xf49e81){return o(_0x1a7234,'ELEMENT_HEADING_CUSTOM',[_0x148a3a,_0xf49e81]);}_0x3a6b8a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x59c25d=>{if('formatBlock'!=_0x59c25d['type'])return;const {data:_0x2a43a0}=_0x59c25d;if(_0x2a43a0&&'heading'==_0x2a43a0['commandName']){const _0x46ca89=_0x2a43a0['commandParams'][0x0]['value'],_0x5194b9=this['_getHeadingLevel'](_0x46ca89);if(null!==_0x5194b9)return{'type':'format','content':o(_0x1a7234,'*Change\x20to:*\x20%0',(_0x31b1fa=0x1,_0xf8df74=_0x5194b9,o(_0x1a7234,'ELEMENT_HEADING',[_0x31b1fa,_0xf8df74])))};const _0x1b493c=this['_headingOptions']['find'](_0x4aad67=>_0x4aad67['model']===_0x46ca89)['title'];return{'type':'format','content':o(_0x1a7234,'*Change\x20to:*\x20%0',_0x18c0cd(0x1,_0x1b493c))};}var _0x31b1fa,_0xf8df74;});}['_getHeadingLevel'](_0x405865){const _0x5a2957=_0x405865['match'](/^heading(\d+)/);if(_0x5a2957)return _0x5a2957[0x1];const _0x2b2ccb=this['_headingOptions']?.['find'](_0x27ca4a=>_0x27ca4a['model']==_0x405865);if(_0x2b2ccb&&_0x2b2ccb['view']){const _0x2648ba=_0x2b2ccb['view'],_0x1a26f7=(_0x2648ba['name']??_0x2648ba)['match'](/^h(\d+)/);if(_0x1a26f7)return _0x1a26f7[0x1];}return null;}}class it extends _0x3cb51e{['afterInit'](){const _0x2ea846=this['editor'];if(!_0x2ea846['plugins']['has']('HighlightEditing'))return;const _0x1f2e5a=_0x2ea846['plugins']['get']('TrackChangesEditing'),_0x2fbe56=_0x2ea846['locale'];_0x1f2e5a['enableDefaultAttributesIntegration']('highlight'),_0x1f2e5a['registerInlineAttribute']('highlight'),_0x1f2e5a['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x2fbe56,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5264d8=this['editor'],_0x7b975a=_0x5264d8['locale'];_0x5264d8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x184b28=>{if('formatInline'!=_0x184b28['type'])return;const {data:_0x4fcdd2}=_0x184b28;if(_0x4fcdd2&&'highlight'==_0x4fcdd2['commandName']){const _0xe5e147=_0x7b975a['t'],_0x52bd7e=_0x4fcdd2['commandParams'][0x0]['value'];if(_0x52bd7e){const _0x8a9fb1=_0x5264d8['config']['get']('highlight.options')['find'](_0x236942=>_0x236942['model']==_0x52bd7e),_0x4f37c9=_0xe5e147(_0x8a9fb1['title'])['toLowerCase']();return{'type':'format','content':o(_0x7b975a,'*Set\x20highlight:*\x20%0',_0x4f37c9),'color':{'value':_0x8a9fb1['color'],'title':_0x8a9fb1['title']}};}return{'type':'format','content':o(_0x7b975a,'*Remove\x20highlight*',o(_0x7b975a,'FORMAT_HIGHLIGHT'))};}});}}class et extends _0x3cb51e{['afterInit'](){const _0x4b8432=this['editor'];if(!_0x4b8432['plugins']['has']('HorizontalLineEditing'))return;_0x4b8432['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x2cf872=_0x4b8432['plugins']['get']('TrackChangesEditing'),_0x38ae51=_0x4b8432['locale'];_0x2cf872['descriptionFactory']['registerElementLabel']('horizontalLine',_0x349018=>o(_0x38ae51,'ELEMENT_HORIZONTAL_LINE',_0x349018)),_0x4b8432['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x1cba2f,{writer:_0x1b4924,options:_0x1b051a})=>{if(!_0x1b051a['showSuggestionHighlights'])return null;const _0x2bdf1e=_0x1b4924['createContainerElement']('div'),_0x12cb7d=_0x1b4924['createEmptyElement']('hr');return _0x1b4924['addClass']('ck-horizontal-line',_0x2bdf1e),_0x1b4924['insert'](_0x1b4924['createPositionAt'](_0x2bdf1e,0x0),_0x12cb7d),_0x2bdf1e;},'converterPriority':'high'});}}class st extends _0x3cb51e{['afterInit'](){const _0x30d848=this['editor'];if(!_0x30d848['plugins']['has']('HtmlEmbed'))return;const _0x3c07f6=_0x30d848['plugins']['get']('TrackChangesEditing'),_0xfb03d9=_0x30d848['locale'];_0x3c07f6['descriptionFactory']['registerElementLabel']('rawHtml',_0x956669=>o(_0xfb03d9,'ELEMENT_HTML_EMBED',_0x956669)),_0x3c07f6['enableDefaultAttributesIntegration']('htmlEmbed'),_0x3c07f6['registerBlockAttribute']('value'),_0x3c07f6['descriptionFactory']['registerDescriptionCallback'](_0x733b4b=>{if('attribute'!=_0x733b4b['type'])return;const {data:_0x1c7338}=_0x733b4b;if(_0x1c7338&&'value'==_0x1c7338['key']&&_0x733b4b['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x434e74=o(_0xfb03d9,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0xfb03d9,'*Change\x20%0\x20content*',_0x434e74)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x52c2a7=this['editor'],_0x2182b2=_0x52c2a7['locale'];_0x52c2a7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5e72db=>{if('formatBlock'!=_0x5e72db['type'])return;const {data:_0xc503fc}=_0x5e72db;if(_0xc503fc&&'htmlEmbed'==_0xc503fc['commandName']){const _0x5879fd=o(_0x2182b2,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x2182b2,'*Change\x20%0\x20content*',_0x5879fd)};}});}}class ot extends _0x3cb51e{['afterInit'](){const _0x3ede5b=this['editor'];if(!_0x3ede5b['plugins']['has']('ImageEditing'))return;const _0x576231=_0x3ede5b['plugins']['get']('TrackChangesEditing'),_0x8df47c=_0x3ede5b['plugins']['get']('ImageUtils'),_0x2705ff=_0x3ede5b['locale'];_0x576231['enableCommand']('insertImage'),_0x576231['descriptionFactory']['registerElementLabel']('imageBlock',_0x150231=>o(_0x2705ff,'ELEMENT_IMAGE',_0x150231)),_0x576231['descriptionFactory']['registerElementLabel']('imageInline',_0x118d35=>o(_0x2705ff,'ELEMENT_INLINE_IMAGE',_0x118d35)),_0x576231['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x2705ff,'ELEMENT_CAPTION')),_0x3ede5b['plugins']['has']('ImageUploadEditing')&&_0x576231['enableCommand']('uploadImage'),_0x3ede5b['plugins']['has']('ImageBlockEditing')&&_0x3ede5b['plugins']['has']('ImageInlineEditing')&&(_0x576231['enableCommand']('imageTypeInline',(_0x4a0fb0,_0xa16b7e)=>{const _0x179c44=_0x8df47c['getClosestSelectedImageElement'](_0x3ede5b['model']['document']['selection']);_0x3ede5b['model']['change'](()=>{_0x576231['markBlockFormat'](_0x179c44,{'commandName':'imageTypeInline','commandParams':[_0xa16b7e]},[],'convertBlockImageToInline');});}),_0x576231['enableCommand']('imageTypeBlock',(_0x2bc632,_0x417f65)=>{_0x3ede5b['model']['change'](_0x5e23d0=>{let _0x5c664e=_0x8df47c['getClosestSelectedImageElement'](_0x3ede5b['model']['document']['selection']),_0x23203f=_0x5e23d0['createRangeOn'](_0x5c664e);const _0x2f1515=_0x3d4cdd['fromPosition'](_0x23203f['start'],'toPrevious'),_0x46511b=_0x3d4cdd['fromPosition'](_0x23203f['end'],'toNext');_0x576231['forceDefaultExecution'](()=>_0x2bc632(_0x417f65)),_0x5c664e=_0x8df47c['getClosestSelectedImageElement'](_0x3ede5b['model']['document']['selection']),_0x23203f=_0x5e23d0['createRangeOn'](_0x5c664e);const _0x26985e=_0x5e23d0['createRange'](_0x2f1515,_0x46511b);_0x2f1515['detach'](),_0x46511b['detach'](),_0x576231['markBlockFormat'](_0x5c664e,{'commandName':'imageTypeInline','commandParams':[_0x417f65]},[],'convertInlineImageToBlock'),_0x26985e['start']['isBefore'](_0x23203f['start'])&&_0x576231['markInsertion'](_0x5e23d0['createRange'](_0x26985e['start'],_0x23203f['start']),'convertInlineImageToBlock'),_0x23203f['end']['isBefore'](_0x26985e['end'])&&_0x576231['markInsertion'](_0x5e23d0['createRange'](_0x23203f['end'],_0x26985e['end']),'convertInlineImageToBlock');});}),_0x576231['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x576231['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x576231['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x576231['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x576231['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x576231['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x2c86ed])=>{const _0x4895f7=_0x576231['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x86378e=_0x2c86ed['start'],_0x203d94=_0x2c86ed['end'];const _0x30023b=_0x3ede5b['model']['schema']['getNearestSelectionRange'](_0x86378e,'backward'),_0x4887a1=_0x3ede5b['model']['schema']['getNearestSelectionRange'](_0x203d94,'forward');_0x30023b['isCollapsed']&&(_0x86378e=_0x30023b['start']),_0x4887a1['isCollapsed']&&(_0x203d94=_0x4887a1['end']),_0x4895f7([_0x3ede5b['model']['createRange'](_0x86378e,_0x203d94)]);}),_0x576231['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x17d938),_0x576231['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x17d938)),_0x3ede5b['plugins']['has']('ImageCaptionEditing')&&(_0x576231['enableCommand']('toggleImageCaption',(_0x510db0,_0x4a1b7c)=>{const _0x1bac68=_0x3ede5b['plugins']['get']('ImageCaptionUtils');let _0x3ff292=_0x8df47c['getClosestSelectedImageElement'](_0x3ede5b['model']['document']['selection']),_0x434d47=_0x1bac68['getCaptionFromImageModelElement'](_0x3ff292);_0x3ede5b['model']['change'](()=>{if(_0x434d47)return void _0x576231['markDeletion'](_0x3ede5b['model']['createRangeOn'](_0x434d47));const _0x2b9f81=_0x8df47c['isBlockImage'](_0x3ff292);_0x510db0(_0x4a1b7c),_0x3ff292=_0x8df47c['getClosestSelectedImageElement'](_0x3ede5b['model']['document']['selection']),_0x434d47=_0x1bac68['getCaptionFromImageModelElement'](_0x3ff292),_0x576231['markInsertion'](_0x3ede5b['model']['createRangeOn'](_0x434d47),_0x2b9f81?null:'imageCaption');});}),_0x576231['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x17d938));const _0x57f209=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x25dd68(_0x3e8b32,_0x2475a9){const _0x5dc882=_0x57f209['findIndex'](({type:_0x4d781f,subType:_0x302bfc})=>_0x3e8b32['type']==_0x4d781f&&_0x3e8b32['subType']==_0x302bfc),_0x2e32b6=_0x57f209['findIndex'](({type:_0x46f9e9,subType:_0x30bfa4})=>_0x2475a9['type']==_0x46f9e9&&_0x2475a9['subType']==_0x30bfa4);if(_0x5dc882<0x0||_0x2e32b6<0x0)return!0x1;const _0x229076=_0x3e8b32['getFirstRange'](),_0x5028d4=_0x2475a9['getFirstRange']();if((0x0==_0x5dc882||0x1==_0x5dc882)&&0x2==_0x2e32b6&&_0x229076['isIntersecting'](_0x5028d4))return!0x0;if(0x2==_0x5dc882&&0x3==_0x2e32b6){const _0x17a87a=_0x576231['_findSuggestions'](_0x229076,'insertion')['filter'](({suggestion:_0x321de1,meta:_0x16105f})=>_0x16105f['isOwn']&&'convertInlineImageToBlock'==_0x321de1['subType']);if(_0x17a87a['length']>0x1&&_0x5028d4['end']['isEqual'](_0x229076['start']))return!0x0;if(0x1==_0x17a87a['length']&&(_0x229076['start']['isEqual'](_0x5028d4['end'])||_0x229076['end']['isEqual'](_0x5028d4['start'])))return!0x0;}if(0x3==_0x5dc882&&0x3==_0x2e32b6&&_0x229076['start']['isBefore'](_0x5028d4['start'])){const _0x521b66=_0x229076['end']['nodeAfter'],_0xdaa5b7=_0x5028d4['start']['nodeBefore'];return _0x8df47c['isBlockImage'](_0x521b66)&&_0x521b66===_0xdaa5b7;}return!0x1;}function _0x17d938(_0x465a70,_0xc41863){return _0x25dd68(_0x465a70,_0xc41863)?[_0x465a70,_0xc41863]:_0x25dd68(_0xc41863,_0x465a70)?[_0xc41863,_0x465a70]:null;}_0x3ede5b['plugins']['has']('ImageResize')&&(_0x576231['enableDefaultAttributesIntegration']('resizeImage'),_0x576231['registerBlockAttribute']('resizedWidth'),_0x576231['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x2705ff,'FORMAT_IMAGE_SIZE'))),_0x3ede5b['plugins']['has']('ImageTextAlternativeEditing')&&(_0x576231['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x576231['registerBlockAttribute']('alt')),_0x3ede5b['plugins']['has']('PictureEditing')&&(_0x576231['registerBlockAttribute']('sources'),_0x576231['descriptionFactory']['registerDescriptionCallback'](_0x491877=>{if('attribute'!=_0x491877['type'])return;const {data:_0x41e7cb}=_0x491877;return _0x41e7cb&&'sources'==_0x41e7cb['key']?{'type':'format','content':''}:void 0x0;})),_0x3ede5b['plugins']['has']('ImageSizeAttributes')&&(_0x576231['registerBlockAttribute']('width'),_0x576231['registerBlockAttribute']('height'),_0x576231['descriptionFactory']['registerDescriptionCallback'](_0x3a269b=>{if('attribute'!=_0x3a269b['type'])return;const {data:_0x4daa06}=_0x3a269b;return!_0x4daa06||'width'!=_0x4daa06['key']&&'height'!=_0x4daa06['key']?void 0x0:{'type':'format','content':''};})),_0x576231['descriptionFactory']['registerDescriptionCallback'](_0x1bcde0=>{if(!!_0x57f209['find'](({type:_0xdf2f83,subType:_0x43edfc})=>_0x1bcde0['type']==_0xdf2f83&&_0x1bcde0['subType']==_0x43edfc))return _0x1bcde0['previous']?{}:void 0x0;}),_0x576231['descriptionFactory']['registerDescriptionCallback'](_0x1d7669=>{if('insertion'==_0x1d7669['type']||'deletion'==_0x1d7669['type']){const _0x11dce8=_0x1d7669['getContainedElement']();if(_0x11dce8&&_0x11dce8['is']('element','caption'))return{'type':'insertion'==_0x1d7669['type']?'addObject':'removeObject','element':_0x11dce8,'quantity':0x1};}}),_0x576231['descriptionFactory']['registerDescriptionCallback'](_0x159cd9=>'formatBlock'==_0x159cd9['type']&&'convertInlineImageToBlock'==_0x159cd9['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x159cd9['type']&&'convertBlockImageToInline'==_0x159cd9['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x576231['descriptionFactory']['registerDescriptionCallback'](_0x60803e=>{if('attribute'!=_0x60803e['type'])return;const {data:_0x276264}=_0x60803e;if(!_0x276264||'alt'!=_0x276264['key'])return;const _0x17986b=_0x276264['newValue'];return _0x17986b?{'type':'format','content':o(_0x2705ff,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x17986b+'\x22')}:{'type':'format','content':o(_0x2705ff,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x592ffc=this['editor'],_0x35eb20=_0x592ffc['locale'];_0x592ffc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2f26cc=>{if('formatBlock'!=_0x2f26cc['type']&&'formatInline'!=_0x2f26cc['type'])return;const {data:_0x207501}=_0x2f26cc;if(_0x207501){if('imageTextAlternative'==_0x207501['commandName']){const _0x4c7d47=_0x207501['commandParams'][0x0]['newValue'];return _0x4c7d47?{'type':'format','content':o(_0x35eb20,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4c7d47+'\x22')}:{'type':'format','content':o(_0x35eb20,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x207501['commandName']){const _0x46cfd3=_0x207501['commandParams'][0x0]['width'];return _0x46cfd3?{'type':'format','content':o(_0x35eb20,'*Set\x20image\x20width:*\x20%0',_0x46cfd3)}:{'type':'format','content':o(_0x35eb20,'*Reset\x20image\x20width*')};}}});}}class rt extends _0x3cb51e{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x34e9ce=this['editor']['locale'],_0x225609=this['editor']['plugins']['get']('TrackChangesEditing');_0x225609['enableDefaultAttributesIntegration']('replaceImageSource'),_0x225609['registerBlockAttribute']('src'),_0x225609['descriptionFactory']['registerDescriptionCallback'](_0x54af67=>{if('attribute'!=_0x54af67['type'])return;const {data:_0x349870}=_0x54af67;return _0x349870&&'src'==_0x349870['key']?_0x349870['newValue']&&_0x349870['oldValue']?{'type':'format','content':o(_0x34e9ce,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x417645=this['editor']['plugins']['get']('TrackChangesEditing');_0x417645['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x417645['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x417645['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x417645['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5dd1e=this['editor'],_0x5f5a2a=_0x5dd1e['locale'];_0x5dd1e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3340c0=>{if('formatBlock'!=_0x3340c0['type']&&'formatInline'!=_0x3340c0['type'])return;const {data:_0x499dd8}=_0x3340c0;if(!_0x499dd8||'replaceImageSource'!=_0x499dd8['commandName'])return;return{'type':'format','content':o(_0x5f5a2a,'*Format:*\x20replace\x20image\x20URL')};});}}class at extends _0x3cb51e{['afterInit'](){const _0x2d965c=this['editor'];if(!_0x2d965c['plugins']['has']('ImageStyleEditing'))return;const _0x28b672=_0x2d965c['plugins']['get']('TrackChangesEditing'),_0x2955e6=_0x2d965c['plugins']['get']('ImageUtils'),_0x5084fd={};_0x28b672['enableCommand']('imageStyle',(_0x50957c,_0x5dcf13)=>{const _0x541bc3=_0x2d965c['plugins']['get']('Users')['me'],_0x3635ce=_0x2d965c['commands']['get']('imageStyle');let _0x4141e3=_0x2955e6['getClosestSelectedImageElement'](_0x2d965c['model']['document']['selection']),_0x34bdda=_0x2d965c['model']['createRangeOn'](_0x4141e3),_0x11037a=_0x3635ce['value'];if(_0x11037a==_0x5dcf13['value'])return;const _0x3a1175={'commandName':'imageStyle','commandParams':[_0x5dcf13],'formatGroupId':_0x17f70d()};_0x2d965c['model']['change'](()=>{if(_0x28b672['getSuggestions']()['filter'](_0x521edb=>_0x521edb['isInContent']&&_0x541bc3==_0x521edb['author']&&('formatBlock'==_0x521edb['type']||'formatInline'==_0x521edb['type'])&&('imageStylePreApply'==_0x521edb['subType']||'imageStylePostApply'==_0x521edb['subType'])&&_0x521edb['getFirstRange']()['isEqual'](_0x34bdda))['forEach'](_0x3baa75=>_0x28b672['discardSuggestion'](_0x3baa75['head'])),_0x4141e3=_0x2955e6['getClosestSelectedImageElement'](_0x2d965c['model']['document']['selection']),_0x34bdda=_0x2d965c['model']['createRangeOn'](_0x4141e3),_0x3635ce['refresh'](),_0x2d965c['commands']['get']('imageTypeInline')['refresh'](),_0x2d965c['commands']['get']('imageTypeBlock')['refresh'](),_0x11037a=_0x3635ce['value'],_0x11037a!=_0x5dcf13['value'])return _0x2955e6['isInlineImage'](_0x4141e3)&&_0x3635ce['shouldConvertImageType'](_0x5dcf13['value'],_0x4141e3)?(_0x50957c({..._0x5dcf13,'setImageSizes':!0x1}),_0x4141e3=_0x2955e6['getClosestSelectedImageElement'](_0x2d965c['model']['document']['selection']),void _0x28b672['markBlockFormat'](_0x4141e3,{..._0x3a1175,'commandReversedParams':[{'value':_0x11037a||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x2955e6['isBlockImage'](_0x4141e3)?_0x28b672['markBlockFormat'](_0x4141e3,_0x3a1175,[],'imageStylePostApply'):_0x28b672['markInlineFormat'](_0x34bdda,_0x3a1175,'imageStylePostApply'));});});for(const _0x250007 of _0x2d965c['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x5084fd[_0x250007['name']]=_0x250007['title']['toLowerCase']();_0x28b672['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x28b672['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x28b672['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x28b672['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x73594])=>{_0x2955e6['setImageNaturalSizeAttributes'](_0x73594['getContainedElement']());}),_0x28b672['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2b3176,_0xdd8c4d)=>{_0x28b672['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2b3176,{'commandName':_0xdd8c4d['commandName'],'commandParams':_0xdd8c4d['commandReversedParams']});}),_0x28b672['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x4e8aa4,_0x31a833){if(_0x7308cd(_0x4e8aa4,_0x31a833))return[_0x4e8aa4,_0x31a833];if(_0x7308cd(_0x31a833,_0x4e8aa4))return[_0x31a833,_0x4e8aa4];return null;});const _0x495a=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x7308cd(_0x582011,_0x4e867d){const _0x54e69f=_0x495a['findIndex'](({type:_0x309fa8,subType:_0x4b131f})=>_0x582011['type']==_0x309fa8&&_0x582011['subType']==_0x4b131f),_0x752bd4=_0x495a['findIndex'](({type:_0xcdbdbf,subType:_0x39c167})=>_0x4e867d['type']==_0xcdbdbf&&_0x4e867d['subType']==_0x39c167);if(_0x54e69f<0x0||_0x752bd4<0x0)return!0x1;const _0x278eb1=_0x582011['getFirstRange'](),_0x484a71=_0x4e867d['getFirstRange']();if((0x0==_0x54e69f||0x1==_0x54e69f)&&0x2==_0x752bd4&&_0x278eb1['isIntersecting'](_0x484a71))return!0x0;if(0x2==_0x54e69f&&0x3==_0x752bd4){const _0x2a08e6=_0x28b672['_findSuggestions'](_0x278eb1,'insertion')['filter'](({suggestion:_0x5aac7f,meta:_0x3edd76})=>_0x3edd76['isOwn']&&'convertInlineImageToBlock'==_0x5aac7f['subType']);if(_0x2a08e6['length']>0x1&&_0x484a71['end']['isEqual'](_0x278eb1['start']))return!0x0;if(0x1==_0x2a08e6['length']&&(_0x278eb1['start']['isEqual'](_0x484a71['end'])||_0x278eb1['end']['isEqual'](_0x484a71['start'])))return!0x0;}if(0x3==_0x54e69f&&0x3==_0x752bd4&&_0x278eb1['start']['isBefore'](_0x484a71['start'])){const _0x3cdbe6=_0x278eb1['end']['nodeAfter'],_0xa0d96c=_0x484a71['start']['nodeBefore'];return _0x2955e6['isBlockImage'](_0x3cdbe6)&&_0x3cdbe6===_0xa0d96c;}return!0x1;}_0x2d965c['model']['document']['registerPostFixer'](()=>{let _0x1c585c=!0x1;const _0x2a672f=Array['from'](_0x2d965c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x586302,data:_0x4befee}of _0x2a672f){const {group:_0x3f225d,type:_0x59b333,subType:_0x358e5c,id:_0x62a763}=_0x28b672['_splitMarkerName'](_0x586302);if('suggestion'==_0x3f225d&&_0x28b672['hasSuggestion'](_0x62a763)){if('formatBlock'==_0x59b333&&('imageStylePreApply'==_0x358e5c||'imageStylePostApply'==_0x358e5c)){const _0xaecde9=_0x28b672['getSuggestion'](_0x62a763);if(_0x4befee['newRange']){const _0x11ead3=_0xaecde9['getFirstRange']()['getContainedElement']();if(_0x2955e6['isBlockImage'](_0x11ead3))continue;_0x28b672['discardSuggestion'](_0xaecde9),_0x1c585c=!0x0;}}if('insertion'==_0x59b333&&'imageCaption'==_0x358e5c&&!_0x4befee['newRange']){const _0x49defe=_0x28b672['getSuggestion'](_0x62a763);_0x49defe['next']&&_0x49defe['next']['isInContent']&&(_0x28b672['discardSuggestion'](_0x49defe['next']),_0x1c585c=!0x0);}}}return _0x1c585c;}),this['_registerLegacyDescription'](_0x5084fd);}['_registerLegacyDescription'](_0x394dae){const _0x59648b=this['editor'],_0x27b59c=_0x59648b['locale'];_0x59648b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3cd4be=>{if('formatBlock'!=_0x3cd4be['type']&&'formatInline'!=_0x3cd4be['type'])return;const {data:_0x146342}=_0x3cd4be;if(!_0x146342||'imageStyle'!=_0x146342['commandName'])return;const _0x546fef=_0x146342['commandParams'][0x0]['value'];return _0x21290c('side'===_0x546fef?o(_0x27b59c,'FORMAT_SIDE_IMAGE'):_0x394dae[_0x546fef]||_0x546fef);function _0x21290c(_0x4772ea){return{'type':'format','content':o(_0x27b59c,'*Format:*\x20%0',_0x4772ea)};}});}}class ct extends _0x3cb51e{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0xb3227a){super(_0xb3227a),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x38a7a4=this['editor'],_0x240845=_0x38a7a4['commands']['get']('importWord'),_0x2acf7f=_0x38a7a4['commands']['get']('trackChanges');_0x240845&&(_0x240845['on']('execute',(_0x27b83c,[,_0x7471a5])=>{this['_trackChangesValueDuringImport']=_0x2acf7f['value'],_0x7471a5['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x240845,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x240845,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x2acf7f['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x38a7a4['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0xddd3d0,_0x25d051){const {suggestions:_0x42f6c1}=_0x25d051,_0x4f2054=this['editor']['commands']['get']('trackChanges'),_0x47d12a=_0x4f2054['value'];this['_trackChangesValueDuringImport']!==_0x47d12a&&(_0x4f2054['execute'](),this['_trackChangesExecuted']=!0x0),_0x42f6c1&&_0x42f6c1['forEach'](({id:_0x1c6e56,type:_0x47e069,author:_0x1dcc63,created_at:_0x1507c5})=>{const _0x44fe90={'id':_0x1c6e56,'type':_0x47e069,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x1dcc63,'createdAt':_0x1507c5?new Date(_0x1507c5):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x44fe90);});}}class ut extends _0x3cb51e{['afterInit'](){const _0x195cbc=this['editor'],_0x5ecf93=_0x195cbc['plugins']['get']('TrackChangesEditing');if(_0x195cbc['plugins']['has']('IndentEditing')&&(_0x5ecf93['enableCommand']('indent'),_0x5ecf93['enableCommand']('outdent')),_0x195cbc['plugins']['has']('IndentBlock')){for(const _0xd21069 of['indentBlock','outdentBlock'])_0x5ecf93['enableDefaultAttributesIntegration'](_0xd21069);}const _0x222acc=_0x195cbc['locale'];_0x5ecf93['registerBlockAttribute']('blockIndent'),_0x5ecf93['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x222acc,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x211297=this['editor'],_0x4f0adc=_0x211297['locale'],_0x26c04f=_0x211297['plugins']['get']('TrackChangesEditing');_0x26c04f['descriptionFactory']['registerDescriptionCallback'](_0x386ce2=>{if('formatBlock'!=_0x386ce2['type'])return;const {data:_0x408f5a}=_0x386ce2;if(!_0x408f5a)return;if('indentBlock'!=_0x408f5a['commandName']&&'outdentBlock'!=_0x408f5a['commandName'])return;const _0x8b86ce=_0x386ce2['getItems']()[0x0],_0xe55a8e=_0x26c04f['descriptionFactory']['getItemLabel'](_0x8b86ce);return'indentBlock'==_0x408f5a['commandName']?{'type':'format','content':o(_0x4f0adc,'*Indent:*\x20%0',_0xe55a8e)}:'outdentBlock'==_0x408f5a['commandName']?{'type':'format','content':o(_0x4f0adc,'*Outdent:*\x20%0',_0xe55a8e)}:void 0x0;});}}class ft extends _0x3cb51e{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x3cb51e{['afterInit'](){const _0x48b999=this['editor'];if(!_0x48b999['plugins']['has']('LinkEditing'))return;const _0x504ff5=_0x48b999['plugins']['get']('TrackChangesEditing'),_0x3a0294=_0x48b999['commands']['get']('link');_0x504ff5['enableDefaultAttributesIntegration']('link'),_0x504ff5['enableDefaultAttributesIntegration']('unlink'),_0x504ff5['registerInlineAttribute']('linkHref');for(const _0x51bea5 of _0x3a0294['manualDecorators'])_0x504ff5['registerInlineAttribute'](_0x51bea5['id']),_0x504ff5['descriptionFactory']['registerAttributeLabel'](_0x51bea5['id'],'link\x20('+_0x51bea5['label']['toLowerCase']()+')');_0x504ff5['descriptionFactory']['registerDescriptionCallback'](_0x3b437f=>{if('attribute'!=_0x3b437f['type'])return;const {data:_0x3451b3}=_0x3b437f;if(!_0x3451b3||'linkHref'!=_0x3451b3['key'])return;const _0x2c3b34=_0x3451b3['newValue'],_0x3155fb=_0x48b999['locale'];return{'type':'format','content':null==_0x2c3b34?o(_0x3155fb,'*Remove\x20link*'):o(_0x3155fb,'*Set\x20link:*\x20%0','\x22'+_0x2c3b34+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x530e0a=this['editor'],_0x2dd17d=_0x530e0a['locale'];_0x530e0a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x18e6cb=>{if('formatInline'!=_0x18e6cb['type'])return;const {data:_0x3a5ffc}=_0x18e6cb;if(_0x3a5ffc){if('link'==_0x3a5ffc['commandName']){const _0x5805e6=_0x3a5ffc['commandParams'][0x0];return{'type':'format','content':o(_0x2dd17d,'*Set\x20link:*\x20%0','\x22'+_0x5805e6+'\x22')};}return'unlink'==_0x3a5ffc['commandName']?{'type':'format','content':o(_0x2dd17d,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x3cb51e{['afterInit'](){const _0x54d131=this['editor'],_0x4d6088=_0x54d131['locale'];if(!_0x54d131['plugins']['has']('LegacyListEditing'))return;const _0x78ed59=_0x54d131['plugins']['get']('TrackChangesEditing'),_0x2edb46=_0x54d131['plugins']['has']('LegacyTodoListEditing');function _0x44a2ae(_0xf2083b){return()=>{const _0x520bba=_0x54d131['model']['document']['selection'],_0x36bb0a=_0x54d131['commands']['get'](_0xf2083b);if(_0x36bb0a['value'])return void _0x54d131['execute']('paragraph',{});const _0x4c1679=_0xf2083b['slice'](0x0,-0x4),_0x15fdd1=function(_0x4c956e,_0x29e373,_0x5e416b){let _0x3618a3=Array['from'](_0x4c956e)['filter'](_0x55d111=>function(_0x3bf10f,_0x413fa0){return _0x413fa0['checkChild'](_0x3bf10f['parent'],'listItem')&&!_0x413fa0['isObject'](_0x3bf10f);}(_0x55d111,_0x5e416b));_0x3618a3=_0x3618a3['filter'](_0x5dfdb5=>!_0x5dfdb5['is']('element','listItem')||_0x5dfdb5['getAttribute']('listType')!=_0x29e373);const _0x21c5ad=new Set();for(const _0x27f39c of _0x3618a3)_0x27f39c['is']('element','listItem')?_0x21c5ad['add'](Le(_0x27f39c)):_0x21c5ad['add'](_0x27f39c);return Array['from'](_0x21c5ad);}(_0x520bba['getSelectedBlocks'](),_0x4c1679,_0x54d131['model']['schema']);_0x54d131['model']['change'](()=>{for(const _0x1ea8f9 of _0x15fdd1)_0x78ed59['markBlockFormat'](_0x1ea8f9,{'commandName':_0xf2083b,'commandParams':[{'forceValue':!_0x36bb0a['value']}],'formatGroupId':'blockName'},Ee(_0x1ea8f9));});};}function _0x1847b4(_0x4f2374){return()=>{const _0x1e4f1a=function(_0x169898){let _0xdf5b0a=Array['from'](_0x169898);const _0x1ddcf3=_0xdf5b0a['findIndex'](_0x4f87ed=>'listItem'!=_0x4f87ed['name']);return _0x1ddcf3>-0x1&&(_0xdf5b0a=_0xdf5b0a['slice'](0x0,_0x1ddcf3)),_0xdf5b0a;}(_0x54d131['model']['document']['selection']['getSelectedBlocks']()),_0xc7795b=_0x54d131['model']['createRange'](_0x54d131['model']['createPositionAt'](_0x1e4f1a[0x0],'before'),_0x54d131['model']['createPositionAt'](_0x1e4f1a[_0x1e4f1a['length']-0x1],'end'));_0x54d131['model']['change'](()=>{_0x78ed59['markBlockFormat'](_0xc7795b,{'commandName':_0x4f2374,'commandParams':[],'formatGroupId':'listIndent'},function(_0x19acbf){const _0x5350d6=new Set();for(const _0x2085f2 of _0x19acbf){let _0x121003=_0x2085f2['nextSibling'];for(;_0x121003&&_0x121003['getAttribute']('listIndent')>_0x2085f2['getAttribute']('listIndent');)_0x5350d6['add'](_0x121003),_0x121003=_0x121003['nextSibling'];}return Array['from'](_0x5350d6);}(_0x1e4f1a));});};}_0x78ed59['enableCommand']('numberedList',_0x44a2ae('numberedList')),_0x78ed59['enableCommand']('bulletedList',_0x44a2ae('bulletedList')),_0x2edb46&&_0x78ed59['enableCommand']('todoList',_0x44a2ae('todoList')),_0x78ed59['enableCommand']('indentList',_0x1847b4('indentList')),_0x78ed59['enableCommand']('outdentList',_0x1847b4('outdentList')),_0x2edb46&&_0x78ed59['enableCommand']('checkTodoList',()=>{const _0x2df2f6=_0x54d131['commands']['get']('checkTodoList'),_0x2c4531=Array['from'](_0x2df2f6['_selectedElements']);_0x2c4531['filter'](_0x34b44a=>_0x34b44a['getAttribute']('todoListChecked')!=_0x2df2f6['value']),_0x54d131['model']['change'](()=>{for(const _0x38939d of _0x2c4531)_0x78ed59['markBlockFormat'](_0x38939d,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x2df2f6['value']}]});});}),_0x78ed59['descriptionFactory']['registerElementLabel']('listItem',_0x3cdeb7=>o(_0x4d6088,'ELEMENT_LIST_ITEM',_0x3cdeb7)),_0x78ed59['descriptionFactory']['registerDescriptionCallback'](_0x2dff93=>{if('formatBlock'!=_0x2dff93['type']&&'formatInline'!=_0x2dff93['type'])return;const {data:_0x30299e}=_0x2dff93;if(_0x30299e){if('numberedList'==_0x30299e['commandName']||'bulletedList'==_0x30299e['commandName']||'todoList'==_0x30299e['commandName'])switch(_0x30299e['commandName']['replace']('List','')){case'bulleted':return _0x592ea4(o(_0x4d6088,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x592ea4(o(_0x4d6088,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x592ea4(o(_0x4d6088,'ELEMENT_TODO_LIST'));}if('indentList'==_0x30299e['commandName'])return{'type':'format','content':o(_0x4d6088,'*Indent:*\x20%0',o(_0x4d6088,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x30299e['commandName'])return{'type':'format','content':o(_0x4d6088,'*Outdent:*\x20%0',o(_0x4d6088,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x30299e['commandName'])return _0x30299e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4d6088,'*Check\x20item*')}:{'type':'format','content':o(_0x4d6088,'*Uncheck\x20item*')};}function _0x592ea4(_0x63c559){return{'type':'format','content':o(_0x4d6088,'*Change\x20to:*\x20%0',_0x63c559)};}});}}function Le(_0x47c0b7){const _0x271d46=_0x47c0b7['getAttribute']('listIndent');if(0x0==_0x271d46)return _0x47c0b7;let _0x130748=_0x47c0b7;for(;_0x47c0b7['previousSibling']&&_0x47c0b7['previousSibling']['is']('element','listItem');){const _0x4d1d50=_0x47c0b7['previousSibling']['getAttribute']('listIndent');if(_0x4d1d50==_0x271d46)_0x130748=_0x47c0b7['previousSibling'];else{if(_0x4d1d50<_0x271d46)break;}_0x47c0b7=_0x47c0b7['previousSibling'];}return _0x130748;}function Ee(_0x5488a3){const _0x4a2a06=[];if(_0x5488a3['is']('element','listItem')&&_0x5488a3['getAttribute']('listIndent')>0x0){let _0x5777ad=_0x5488a3['nextSibling'];for(;_0x5777ad&&'listItem'==_0x5777ad['name']&&_0x5777ad['getAttribute']('listIndent')==_0x5488a3['getAttribute']('listIndent');)_0x4a2a06['push'](_0x5777ad),_0x5777ad=_0x5777ad['nextSibling'];}return _0x4a2a06;}class Q extends _0x3cb51e{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x269ce9=this['editor']['config']['get']('list.properties'),_0x14574f=this['editor']['plugins']['get']('TrackChangesEditing');_0x269ce9['styles']&&_0x14574f['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x269ce9['reversed']&&_0x14574f['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x269ce9['startIndex']&&_0x14574f['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x14574f['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x31d175,_0x2c6196={}){const _0x5652f0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3ba37c=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x5652f0['markMultiRangeBlockFormat'](_0x3ba37c,{'commandName':'listStyle','commandParams':[{'type':_0x2c6196['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x4acc69,_0x5b7920={}){const _0x1458b3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3eb4e6=this['_getSuggestionBlocks'](_0x512356=>_0x512356['is']('element','listItem')&&'numbered'===_0x512356['getAttribute']('listType'));if(_0x3eb4e6['length']<0x1)return;const _0x5a7e2b=_0x3eb4e6['map'](_0x287af8=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x287af8,'before'),this['editor']['model']['createPositionAt'](_0x287af8,0x0)));this['editor']['model']['change'](()=>{_0x1458b3['markMultiRangeBlockFormat'](_0x5a7e2b,{'commandName':'listReversed','commandParams':[{'reversed':_0x5b7920['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x26d924,_0x2aaec0={}){const _0x4dd2c9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3b2bb3=this['_getSuggestionBlocks'](_0x3e7fa9=>_0x3e7fa9['is']('element','listItem')&&'numbered'===_0x3e7fa9['getAttribute']('listType'));if(_0x3b2bb3['length']<0x1)return;const _0xdb06e6=_0x3b2bb3['map'](_0x4d023f=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4d023f,'before'),this['editor']['model']['createPositionAt'](_0x4d023f,0x0)));this['editor']['model']['change'](()=>{_0x4dd2c9['markMultiRangeBlockFormat'](_0xdb06e6,{'commandName':'listStart','commandParams':[{'startIndex':_0x2aaec0['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x6f8b4d){if('formatBlock'!=_0x6f8b4d['type']&&'formatInline'!=_0x6f8b4d['type'])return;const _0x7e19f8=this['editor']['locale'],{data:_0x38403a}=_0x6f8b4d;if(!_0x38403a)return;let _0x1fdc66,_0x1bcdee;switch(_0x38403a['commandName']){case'listStyle':_0x1fdc66='*Change\x20to:*\x20%0',_0x1bcdee={'type':'format','content':o(_0x7e19f8,_0x1fdc66,o(_0x7e19f8,this['_getTranslationKeyForListStyle'](_0x38403a['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1fdc66=_0x38403a['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1bcdee={'type':'format','content':o(_0x7e19f8,_0x1fdc66)};break;case'listStart':_0x1fdc66='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1bcdee={'type':'format','content':o(_0x7e19f8,_0x1fdc66,_0x38403a['commandParams'][0x0]['startIndex'])};}return _0x1bcdee;}['_getSuggestionBlocksForListStyle'](){const _0x370905=this['editor']['plugins']['get']('LegacyListUtils');let _0x576ca3=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x576ca3[0x0]?.['is']('element','listItem')&&_0x576ca3['unshift'](..._0x370905['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x576ca3[_0x576ca3['length']-0x1]?.['is']('element','listItem')&&_0x576ca3['push'](..._0x370905['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x576ca3=[...new Set(_0x576ca3)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x576ca3=_0x576ca3['filter'](_0x5d4fac=>_0x5d4fac['is']('element','listItem'))),_0x576ca3;}['_getSuggestionBlocks'](_0x5f28a6){const _0x47ecc1=this['editor']['plugins']['get']('LegacyListUtils');let _0x2bd104=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x5f28a6)['map'](_0x549887=>{const _0x58597a=this['editor']['model']['createPositionAt'](_0x549887,0x0);return[..._0x47ecc1['getSiblingNodes'](_0x58597a,'backward'),..._0x47ecc1['getSiblingNodes'](_0x58597a,'forward')];})['flat']();return _0x2bd104=[...new Set(_0x2bd104)],_0x2bd104;}['_getTranslationKeyForListStyle'](_0x18e7fe){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x18e7fe)||'default')['toUpperCase']()+'_LIST_'+_0x18e7fe['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x3cb51e{['afterInit'](){const _0x5f58ec=this['editor'];if(!_0x5f58ec['plugins']['has']('MediaEmbedEditing'))return;const _0x23742e=_0x5f58ec['plugins']['get']('TrackChangesEditing'),_0x340cba=_0x5f58ec['locale'];_0x23742e['enableCommand']('mediaEmbed'),_0x23742e['descriptionFactory']['registerElementLabel']('media',_0x5a9546=>o(_0x340cba,'ELEMENT_MEDIA',_0x5a9546)),_0x5f58ec['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0xdbee44,{writer:_0x434095,options:_0x27850f})=>{if(_0x27850f['showSuggestionHighlights'])return _0x434095['createEmptyElement']('div');},'converterPriority':'high'}),_0x5f58ec['data']['downcastDispatcher']['on']('attribute:url:media',(_0x360419,_0x4c7cc8,_0x480954)=>{_0x480954['options']['showSuggestionHighlights']&&_0x360419['stop']();},{'priority':'high'});}}class mt extends _0x3cb51e{['afterInit'](){const _0x435f94=this['editor'];_0x435f94['plugins']['has']('MentionEditing')&&_0x435f94['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class pt extends _0x3cb51e{['afterInit'](){const _0xf1ce71=this['editor'];if(!_0xf1ce71['plugins']['has']('MergeFieldsEditing'))return;const _0x4b0b93=_0xf1ce71['plugins']['get']('TrackChangesEditing'),_0x467ddf=_0xf1ce71['locale'];_0x4b0b93['enableCommand']('insertMergeField'),_0x4b0b93['enableCommand']('insertMergeFieldBlock'),_0x4b0b93['enableCommand']('insertMergeFieldImage'),_0x4b0b93['descriptionFactory']['registerElementLabel']('mergeField',_0x126198=>o(_0x467ddf,'ELEMENT_MERGE_FIELD',_0x126198)),_0x4b0b93['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x1a7016=>o(_0x467ddf,'ELEMENT_MERGE_FIELD',_0x1a7016)),_0x4b0b93['descriptionFactory']['registerDescriptionCallback'](_0x5ade23=>{if('insertion'!=_0x5ade23['type']&&'deletion'!=_0x5ade23['type'])return;const _0x33f6a9=_0x5ade23['getContainedElement']();if(null==_0x33f6a9)return;const _0x5697cd=_0xf1ce71['plugins']['get']('MergeFieldsEditing');let _0xb0deec;switch(_0x5697cd['getMergeFieldType'](_0x33f6a9)){case null:return;case'image':{const _0x188bfc=_0x5697cd['unwrapAffixes'](_0x33f6a9['getAttribute']('src'));_0xb0deec=_0x5697cd['getLabel'](_0x188bfc)||_0x188bfc;break;}default:{const _0x4c0e66=_0x33f6a9['getAttribute']('id');_0xb0deec=_0x5697cd['getLabel'](_0x4c0e66)||_0x4c0e66;break;}}return'insertion'==_0x5ade23['type']?{'type':'insertion','content':o(_0x467ddf,'*Insert:*\x20%0','\x22'+_0xb0deec+'\x22\x20'+o(_0x467ddf,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x467ddf,'*Remove:*\x20%0','\x22'+_0xb0deec+'\x22\x20'+o(_0x467ddf,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x3cb51e{['afterInit'](){const _0x2c9eb1=this['editor'],_0x154981=_0x2c9eb1['plugins']['get']('TrackChangesEditing');_0x2c9eb1['plugins']['has']('MultiLevelList')&&(_0x154981['enableDefaultAttributesIntegration']('multiLevelList'),_0x154981['registerBlockAttribute']('listMarkerStyle'),_0x154981['descriptionFactory']['registerDescriptionCallback'](_0x5c37c0=>this['handleDescriptions'](_0x5c37c0)));}['handleDescriptions'](_0x49fbf4){const _0x53d9e1=this['editor']['locale'],{data:_0x3ced53}=_0x49fbf4,_0x1b44b9={'type':'format','content':''};if(_0x3ced53&&'listMarkerStyle'==_0x3ced53['key']){if(!_0x3ced53['oldValue'])return{'type':'format','content':o(_0x53d9e1,'*Set\x20format:*\x20%0',o(_0x53d9e1,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3ced53['newValue']+')'};if(!_0x3ced53['newValue']){let _0x56a1da=_0x49fbf4['head'];for(;_0x56a1da;){if(_0x56a1da['data']&&'listType'==_0x56a1da['data']['key']&&_0x56a1da['data']['newValue'])return _0x1b44b9;_0x56a1da=_0x56a1da['next'];}return{'type':'format','content':o(_0x53d9e1,'*Remove\x20format:*\x20%0',o(_0x53d9e1,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3ced53['oldValue']+')'};}}}}class kt extends _0x3cb51e{['afterInit'](){const _0x4de536=this['editor'];if(!_0x4de536['plugins']['has']('PageBreakEditing'))return;_0x4de536['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x233b63=_0x4de536['plugins']['get']('TrackChangesEditing'),_0x163db3=_0x4de536['locale'];_0x233b63['descriptionFactory']['registerElementLabel']('pageBreak',_0x22a806=>o(_0x163db3,'ELEMENT_PAGE_BREAK',_0x22a806));}}class bt extends _0x3cb51e{['afterInit'](){const _0x5cac5e=this['editor'];if(!_0x5cac5e['plugins']['has']('Paragraph'))return;const _0x5b215f=_0x5cac5e['locale'],_0x3e56c7=_0x5cac5e['plugins']['get']('TrackChangesEditing');_0x3e56c7['descriptionFactory']['registerElementLabel']('paragraph',_0xf8b27=>o(_0x5b215f,'ELEMENT_PARAGRAPH',_0xf8b27)),_0x3e56c7['enableDefaultAttributesIntegration']('paragraph'),_0x3e56c7['enableCommand']('insertParagraph'),_0x5cac5e['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x5cac5e),{'priority':'highest'}),_0x5cac5e['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x56057c,_0x12fab6,_0x471b86)=>{_0x471b86['options']['showSuggestionHighlights']&&nr(_0x5cac5e,{'showActiveMarker':!0x1})(_0x56057c,_0x12fab6,_0x471b86);},{'priority':'highest'});const _0x3bcb02=_0x3e56c7['descriptionFactory'];_0x3bcb02['registerDescriptionCallback'](_0x2722fe=>{if('insertion'!==_0x2722fe['type'])return;const {start:_0x3c28a9,end:_0x19639d}=_0x2722fe['getFirstRange']();if(!_0x3c28a9['isTouching'](_0x19639d)||!_0x3c28a9['nodeAfter'])return;const _0x205b72=_0x5cac5e['model']['schema'],_0x293505=_0x3c28a9['nodeAfter'];return _0x205b72['isBlock'](_0x293505)&&!_0x205b72['isLimit'](_0x293505)&&_0x205b72['checkChild'](_0x293505,'$text')?{'type':'insertion','content':o(_0x5b215f,'*Insert:*\x20%0',_0x3bcb02['getItemLabel'](_0x293505,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4c8430=this['editor'],_0x52cf2=_0x4c8430['locale'];_0x4c8430['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x540e68=>{if('formatBlock'!=_0x540e68['type'])return;const {data:_0x897fd}=_0x540e68;return _0x897fd&&'paragraph'==_0x897fd['commandName']?{'type':'format','content':o(_0x52cf2,'*Change\x20to:*\x20%0',o(_0x52cf2,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x27f16c,{showActiveMarker:_0x2ea861=!0x0}={}){return(_0x1ae790,_0x351751,_0x46cae4)=>{const _0x4b3e0d=_0x27f16c['plugins']['get']('TrackChangesEditing'),_0x4e3a05=_0x351751['markerRange']['start'],_0x36c867=_0x351751['markerRange']['end'],_0x3dde73=_0x27f16c['model']['schema'];if(!_0x4e3a05['isTouching'](_0x36c867)||!_0x4e3a05['nodeAfter'])return;const _0x114e43=_0x4e3a05['nodeAfter'];if(_0x3dde73['isBlock'](_0x114e43)&&!_0x3dde73['isLimit'](_0x114e43)&&_0x3dde73['checkChild'](_0x114e43,'$text')){if(!_0x46cae4['consumable']['consume'](_0x351751['markerRange'],_0x1ae790['name']))return;const {authorId:_0x1d4ad2}=_0x4b3e0d['_splitMarkerName'](_0x351751['markerName']),_0x34236a=_0x46cae4['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x1d4ad2}),_0x3523e8=_0x46cae4['mapper']['toViewPosition'](_0x36c867);_0x2ea861&&_0x4b3e0d['activeMarkers']['includes'](_0x351751['markerName'])&&_0x46cae4['writer']['addClass']('ck-suggestion-marker--active',_0x34236a),_0x46cae4['writer']['insert'](_0x3523e8,_0x34236a),_0x46cae4['mapper']['bindElementToMarker'](_0x34236a,_0x351751['markerName']);}};}class yt extends _0x3cb51e{['afterInit'](){const _0x555411=this['editor'];if(!_0x555411['plugins']['has']('RemoveFormatEditing'))return;_0x555411['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x24ba0c=this['editor'];_0x24ba0c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x37c0e7=>{if('formatBlock'!=_0x37c0e7['type']&&'formatInline'!=_0x37c0e7['type'])return;const {data:_0x21152d}=_0x37c0e7;return _0x21152d&&'removeFormat'==_0x21152d['commandName']?{'type':'format','content':o(_0x24ba0c['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class jt extends _0x3cb51e{['afterInit'](){const _0x4565b4=this['editor'];if(!_0x4565b4['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x1447f4=_0x4565b4['plugins']['get']('TrackChangesEditing');_0x1447f4['enableCommand']('goToPreviousRestrictedEditingException'),_0x1447f4['enableCommand']('goToNextRestrictedEditingException');const _0x46ff16=_0x4565b4['plugins']['get']('RestrictedEditingModeEditing');_0x46ff16['enableCommand']('trackChanges'),_0x46ff16['enableCommand']('acceptSuggestion'),_0x46ff16['enableCommand']('discardSuggestion'),_0x46ff16['enableCommand']('acceptAllSuggestions'),_0x46ff16['enableCommand']('discardAllSuggestions'),_0x46ff16['enableCommand']('acceptSelectedSuggestions'),_0x46ff16['enableCommand']('discardSelectedSuggestions');}}class St extends _0x3cb51e{static get['requires'](){return[_0x53250c];}['init'](){const _0x3b1a4c=this['editor'],_0x3822d1=_0x3b1a4c['plugins']['get']('TrackChangesEditing');_0x3822d1['enableCommand']('shiftEnter'),_0x3b1a4c['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x3b1a4c),{'priority':'high'}),_0x3b1a4c['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x3b1a4c),{'priority':'high'}),_0x3b1a4c['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x14575d,_0x195bb0,_0x5bea64)=>{_0x5bea64['options']['showSuggestionHighlights']&&je(_0x3b1a4c,{'showActiveMarker':!0x1})(_0x14575d,_0x195bb0,_0x5bea64);}),_0x3822d1['descriptionFactory']['registerElementLabel']('softBreak',_0x135e0e=>o(_0x3b1a4c['locale'],'ELEMENT_LINE_BREAK',_0x135e0e));}}function je(_0x1511f5,{showActiveMarker:_0x1da154=!0x0}={}){return(_0x2388d1,_0xb9042d,_0x2e53c5)=>{const _0x3b26fb=_0x1511f5['plugins']['get']('TrackChangesEditing');if(!_0x2e53c5['consumable']['test'](_0xb9042d['markerRange'],_0x2388d1['name']))return;const _0x98006a=_0x1511f5['model'];for(const _0x16d3e4 of _0xb9042d['markerRange']['getItems']()){if(!_0x16d3e4['is']('element','softBreak'))continue;const _0x41bb25='deletion'==_0xb9042d['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x5dd09e}=_0x3b26fb['_splitMarkerName'](_0xb9042d['markerName']),_0x5936f3=_0x2e53c5['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x41bb25,'data-author-id':_0x5dd09e}),_0x5ba73d=_0x2e53c5['mapper']['toViewPosition'](_0x98006a['createPositionBefore'](_0x16d3e4));_0x1da154&&_0x3b26fb['activeMarkers']['includes'](_0xb9042d['markerName'])&&_0x2e53c5['writer']['addClass']('ck-suggestion-marker--active',_0x5936f3),_0x2e53c5['writer']['insert'](_0x5ba73d,_0x5936f3),_0x2e53c5['mapper']['bindElementToMarker'](_0x5936f3,_0xb9042d['markerName']);}};}class At extends _0x3cb51e{['afterInit'](){const _0x531f31=this['editor'],_0x551b2f=_0x531f31['model'],_0x303684=_0x531f31['locale'];if(!_0x531f31['plugins']['has']('StandardEditingModeEditing'))return;const _0x4bc899=_0x531f31['plugins']['get']('TrackChangesEditing'),_0x429244='restrictedEditingException',_0x2701ff=_0x531f31['commands']['get'](_0x429244);_0x4bc899['enableCommand'](_0x429244,(_0x29701a,_0x4cabf7={})=>{const _0x4de900=_0x551b2f['document']['selection'];if(_0x4de900['isCollapsed'])return void _0x29701a(_0x4cabf7);const _0x336955=void 0x0!==_0x4cabf7['forceValue']?_0x4cabf7['forceValue']:!_0x2701ff['value'];_0x551b2f['change'](()=>{const _0x4bd7a4=Array['from'](_0x4de900['getRanges']());for(const _0x24bda9 of _0x4bd7a4){const _0x32ab49=_0x336955?[_0x24bda9]:io(_0x429244,_0x24bda9,_0x551b2f);for(const _0x252d37 of _0x32ab49)_0x4bc899['markInlineFormat'](_0x252d37,{'commandName':_0x429244,'commandParams':[{'forceValue':_0x336955}]});}});}),_0x4bc899['descriptionFactory']['registerDescriptionCallback'](_0x57b1fc=>{if('formatBlock'!=_0x57b1fc['type']&&'formatInline'!=_0x57b1fc['type'])return;const {data:_0x1e50d5}=_0x57b1fc;return _0x1e50d5&&_0x1e50d5['commandName']==_0x429244?_0x1e50d5['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x303684,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x303684,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x3cb51e{['afterInit'](){const _0x2eee56=this['editor'];if(!_0x2eee56['plugins']['has']('Style')||!_0x2eee56['plugins']['has']('DataSchema'))return;const _0x15778b=_0x2eee56['plugins']['get']('TrackChangesEditing'),_0x4ded57=_0x2eee56['locale'],_0x345fba=_0x2eee56['config']['get']('style')||{},_0x51ade1=_0x2eee56['plugins']['get']('GeneralHtmlSupport'),_0xb51ec6=_0x2eee56['plugins']['get']('StyleUtils')['normalizeConfig'](_0x2eee56['plugins']['get']('DataSchema'),_0x345fba['definitions']);_0x15778b['enableDefaultAttributesIntegration']('style');const _0x12df87=new Set();for(const _0x41d0ab of _0xb51ec6['block']){const _0x18196e=_0x51ade1['getGhsAttributeNameForElement'](_0x41d0ab['element']);_0x12df87['add'](_0x18196e);}const _0x4c88b2=new Set();for(const _0x1e4f80 of _0xb51ec6['inline']){const _0x52db83=_0x51ade1['getGhsAttributeNameForElement'](_0x1e4f80['element']);_0x4c88b2['add'](_0x52db83);for(const _0x220c89 of _0x1e4f80['ghsAttributes'])_0x4c88b2['add'](_0x220c89);}for(const _0x3858b2 of _0x12df87)_0x15778b['registerBlockAttribute'](_0x3858b2),_0x15778b['descriptionFactory']['registerAttributeLabel'](_0x3858b2,o(_0x4ded57,'FORMAT_STYLE'));for(const _0x2c1c58 of _0x4c88b2)_0x15778b['registerInlineAttribute'](_0x2c1c58),_0x15778b['descriptionFactory']['registerAttributeLabel'](_0x2c1c58,o(_0x4ded57,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x305d6f=this['editor'],_0x1e9e7e=_0x305d6f['locale'];_0x305d6f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1e873a=>{if('formatBlock'!=_0x1e873a['type']&&'formatInline'!=_0x1e873a['type'])return;const {data:_0x582431}=_0x1e873a;return _0x582431&&'style'===_0x582431['commandName']?_0x582431['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1e9e7e,'*Set\x20format:*\x20%0',_0x582431['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x1e9e7e,'*Remove\x20format:*\x20%0',_0x582431['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class vt extends _0x3cb51e{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x49f8e){super(_0x49f8e),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x2a3723=this['editor'],_0x246de9=_0x2a3723['model']['document']['selection'];if(!_0x2a3723['plugins']['has']('TableEditing'))return;const _0xc3901e=_0x2a3723['locale'],_0x3b2719=_0x2a3723['plugins']['get']('TrackChangesEditing'),_0x10583a=_0x2a3723['plugins']['get']('TableUtils');_0x3b2719['descriptionFactory']['registerElementLabel']('table',_0x3d6a4d=>o(_0xc3901e,'ELEMENT_TABLE',_0x3d6a4d)),this['_setupColumnsRowsFixing'](),_0x3b2719['enableCommand']('insertTable'),_0x3b2719['enableCommand']('selectTableRow'),_0x3b2719['enableCommand']('selectTableColumn');for(const _0xc82ffb of['insertTableRowAbove','insertTableRowBelow']){const _0x2c7d3c=_0x2a3723['commands']['get'](_0xc82ffb);_0x3b2719['enableCommand'](_0xc82ffb,_0x49fcc7=>{_0x2a3723['model']['change'](_0x4b217a=>{_0x49fcc7();const _0x3eb8dd='above'===_0x2c7d3c['order'],_0x5b3ec3=_0x10583a['getSelectionAffectedTableCells'](_0x246de9),_0x4f065b=_0x10583a['getRowIndexes'](_0x5b3ec3),_0x129a08=_0x3eb8dd?_0x4f065b['first']-0x1:_0x4f065b['last']+0x1,_0x43c209=_0x5b3ec3[0x0]['findAncestor']('table'),_0x2c5540=_0x10583a['createTableWalker'](_0x43c209,{'startRow':_0x129a08,'endRow':_0x129a08}),_0x58224a=Array['from'](_0x2c5540)['map'](_0x582d6f=>_0x4b217a['createRangeOn'](_0x582d6f['cell']));_0x3b2719['markMultiRangeInsertion'](_0x58224a,'tableRow');});});}for(const _0x51a0a0 of['insertTableColumnLeft','insertTableColumnRight']){const _0x3bb42e=_0x2a3723['commands']['get'](_0x51a0a0);_0x3b2719['enableCommand'](_0x51a0a0,_0x34335a=>{_0x2a3723['model']['change'](_0x457576=>{_0x34335a();const _0x1de1c5='left'===_0x3bb42e['order'],_0x43d094=_0x10583a['getSelectionAffectedTableCells'](_0x246de9),_0xfcba9a=_0x10583a['getColumnIndexes'](_0x43d094),_0x291983=_0x1de1c5?_0xfcba9a['first']-0x1:_0xfcba9a['last']+0x1,_0x2e3790=_0x43d094[0x0]['findAncestor']('table'),_0x2661fc=_0x10583a['createTableWalker'](_0x2e3790,{'startRow':0x0,'column':_0x291983,'includeAllSlots':!0x1}),_0x1f99fe=Array['from'](_0x2661fc)['map'](_0x430d9d=>_0x457576['createRangeOn'](_0x430d9d['cell']));_0x3b2719['markMultiRangeInsertion'](_0x1f99fe,'tableColumn');});});}for(const _0x3ad7a4 of['removeTableRow','removeTableColumn']){const _0x5fb80a=_0x3ad7a4['substr'](0xb),_0x2cc496=_0x5fb80a['toLowerCase'](),_0x3693e3=_0x2cc496['substr'](0x0,0x3)+'span',_0x5da524='table'+_0x5fb80a,_0x58cfc6='min'+_0x5fb80a,_0x2b3c0d='max'+_0x5fb80a;_0x3b2719['enableCommand'](_0x3ad7a4,()=>{_0x2a3723['model']['change'](_0x14ca83=>{const _0x1d6769=_0x10583a['getSelectionAffectedTableCells'](_0x246de9),_0x9e866a=_0x1d6769[0x0]['findAncestor']('table');let _0x88acb7;if('removeTableRow'==_0x3ad7a4){const _0x11460d=_0x10583a['getRowIndexes'](_0x1d6769);_0x88acb7={'startRow':_0x11460d['first'],'endRow':_0x11460d['last'],'includeAllSlots':!0x0};}else{const _0x269876=_0x10583a['getColumnIndexes'](_0x1d6769);_0x88acb7={'startColumn':_0x269876['first'],'endColumn':_0x269876['last'],'includeAllSlots':!0x0};}const _0x2ce68c=_0x10583a['createTableWalker'](_0x9e866a,_0x88acb7),_0x12ef41=Array['from'](_0x2ce68c)['map'](({cell:_0x478b5c})=>_0x478b5c),_0x29d36f=Ne(_0x12ef41['filter'](_0x14181c=>_0x14181c['hasAttribute'](_0x3693e3))),_0xe33435=Ne(_0x12ef41['filter'](_0xd83f5=>!_0xd83f5['hasAttribute'](_0x3693e3)))['map'](_0x751a3a=>_0x14ca83['createRangeOn'](_0x751a3a)),_0xbef02e=_0x3b2719['markMultiRangeDeletion'](_0xe33435,_0x5da524);if(_0xbef02e&&('tableRow'==_0xbef02e['subType']||'tableColumn'==_0xbef02e['subType'])){const _0x352c27=this['_getSuggestionCoords'](_0xbef02e);for(const _0x50f065 of _0x29d36f){const _0x4e1cbc=_0x14ca83['createRangeOn'](_0x50f065),_0xbca7be=_0x10583a['getCellLocation'](_0x50f065),_0x67afa9=_0x50f065['getAttribute'](_0x3693e3)-0x1,_0x2d2478=_0x352c27[_0x58cfc6],_0x1222f5=_0x352c27[_0x2b3c0d];_0x2d2478<=_0xbca7be[_0x2cc496]&&_0xbca7be[_0x2cc496]+_0x67afa9<=_0x1222f5&&_0xbef02e['addRange'](_0x4e1cbc);}}});});}function _0x37acb5(_0x1c7834){const _0x54f80f=Array['from'](_0x246de9['getRanges']())['map'](_0x15c871=>_0x431313['fromRange'](_0x15c871));_0x2a3723['model']['change'](_0x219503=>{const _0x2a3de4=_0x219503['batch'];_0x1c7834=_0x1c7834['filter'](_0x328a33=>'$graveyard'!=_0x328a33['root']['rootName']),_0x219503['setSelection'](_0x1c7834),_0x2a3723['commands']['get']('removeTableRow')['refresh'](),_0x2a3723['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x2a3723['model']['enqueueChange'](()=>{_0x2a3723['model']['enqueueChange'](_0x2a3de4,_0x3643b8=>{const _0x3125c5=_0x54f80f['filter'](_0x2d7986=>'$graveyard'!=_0x2d7986['root']['rootName']);_0x3125c5['length']>0x0&&_0x3643b8['setSelection'](_0x3125c5);for(const _0x9cbffc of _0x54f80f)_0x9cbffc['detach']();});});});}function _0x173a4e(_0x1f93ff){_0x2a3723['model']['change'](_0x38b7a5=>{const _0x3ff2b4=Array['from'](_0x246de9['getRanges']())['map'](_0x135b24=>_0x431313['fromRange'](_0x135b24)),_0x424af4=[];for(const _0x1817af of _0x1f93ff)for(const _0x12f3bc of _0x1817af['getItems']({'shallow':!0x0}))_0x424af4['push'](_0x12f3bc);for(const _0x5c5ef9 of _0x424af4)'$graveyard'!=_0x5c5ef9['root']['rootName']&&(_0x38b7a5['setSelection'](_0x38b7a5['createPositionAt'](_0x5c5ef9,0x0)),_0x2a3723['commands']['get']('removeTableColumn')['refresh'](),_0x2a3723['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x2ea6c7=_0x3ff2b4['filter'](_0x1a6249=>'$graveyard'!=_0x1a6249['root']['rootName']);_0x2ea6c7['length']>0x0&&_0x38b7a5['setSelection'](_0x2ea6c7);for(const _0x1a881f of _0x3ff2b4)_0x1a881f['detach']();});}function _0x576411(_0x2c7be3,_0xc1e0e4){return _0xc1e0e4['every'](_0x48023a=>_0x2c7be3['some'](_0x3e7cc5=>_0x3e7cc5['end']['isEqual'](_0x48023a['start'])||_0x48023a['end']['isEqual'](_0x3e7cc5['start'])));}function _0x2882e0(_0x482e2f,_0x3c0201){return!_0x482e2f['some'](_0x384ded=>_0x3c0201['some'](_0x14f515=>_0x384ded['isIntersecting'](_0x14f515)))&&_0x482e2f['some'](_0x310953=>_0x3c0201['some'](_0xd85877=>_0x310953['end']['isTouching'](_0xd85877['start'])));}_0x2a3723['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2c2e73,_0x11da88,_0xfa1fe6)=>{if(!_0xfa1fe6['options']['showSuggestionHighlights'])return;const _0x6a2ec9=_0x11da88['item'];if(!_0x6a2ec9)return;const _0x4bf84a=_0xfa1fe6['mapper']['toViewElement'](_0x6a2ec9);function _0x1af3c3(_0x53213c){return Array['isArray'](_0x53213c)?_0x53213c:[_0x53213c];}_0x4bf84a&&'tableCell'===_0x6a2ec9['name']&&_0xed9535(_0x4bf84a,_0xfa1fe6['writer'],(_0x34a6b5,_0x1b8a09,_0x958dd5)=>_0x958dd5['addClass'](_0x1af3c3(_0x1b8a09['classes']),_0x34a6b5),(_0x565ebd,_0x83198e,_0xccfdb9)=>_0xccfdb9['removeClass'](_0x1af3c3(_0x83198e['classes']),_0x565ebd));},{'priority':'highest'}),_0x3b2719['descriptionFactory']['registerDescriptionCallback'](_0x1a06ae=>{if('insertion'!=_0x1a06ae['type']&&'deletion'!=_0x1a06ae['type'])return;const _0x33f2cb=_0x1a06ae['getContainedElement']();if(null!=_0x33f2cb&&_0x33f2cb['is']('element','table')){if('insertion'==_0x1a06ae['type']){const _0x1c5e80=_0x1a06ae['getItems']()['filter'](_0x285b7c=>_0x285b7c['is']('$textProxy'))['map'](_0x3c0265=>_0x3c0265['data']);if(_0x1c5e80['length'])return{'type':'insertion','content':o(_0xc3901e,'*Insert:*\x20%0',o(_0xc3901e,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1c5e80['join']('\x20')+'\x22'))};}if('deletion'==_0x1a06ae['type']){const _0x2f911f=_0x1a06ae['getItems']()['filter'](_0x3c10c1=>_0x3c10c1['is']('$textProxy'))['map'](_0x3c1134=>_0x3c1134['data']);if(_0x2f911f['length'])return{'type':'deletion','content':o(_0xc3901e,'*Remove:*\x20%0',o(_0xc3901e,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2f911f['join']('\x20')+'\x22'))};}}}),_0x3b2719['descriptionFactory']['registerDescriptionCallback'](_0x1ceb81=>{if('tableRow'==_0x1ceb81['subType']){const _0x22d94a=_0x1ceb81['getItems']()['filter'](_0x4c2d50=>_0x4c2d50['is']('$textProxy'))['map'](_0x11705b=>_0x11705b['data']),_0x226563=this['_getSuggestionCoords'](_0x1ceb81),_0x4a8906=_0x226563['maxRow']-_0x226563['minRow']+0x1;if('insertion'==_0x1ceb81['type'])return _0x22d94a['length']?{'type':'insertion','content':o(_0xc3901e,'*Insert:*\x20%0',o(_0xc3901e,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4a8906,'\x22'+_0x22d94a['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0xc3901e,'*Insert:*\x20%0',o(_0xc3901e,'ELEMENT_TABLE_ROW',_0x4a8906))};if('deletion'==_0x1ceb81['type'])return _0x22d94a['length']?{'type':'deletion','content':o(_0xc3901e,'*Remove:*\x20%0',o(_0xc3901e,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4a8906,'\x22'+_0x22d94a['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0xc3901e,'*Remove:*\x20%0',o(_0xc3901e,'ELEMENT_TABLE_ROW',_0x4a8906))};}if('tableColumn'==_0x1ceb81['subType']){const _0x52b8bf=_0x1ceb81['getItems']()['filter'](_0x15de13=>_0x15de13['is']('$textProxy'))['map'](_0x2a7231=>_0x2a7231['data']),_0x115c76=this['_getSuggestionCoords'](_0x1ceb81),_0x106465=_0x115c76['maxColumn']-_0x115c76['minColumn']+0x1;if('insertion'==_0x1ceb81['type'])return _0x52b8bf['length']?{'type':'insertion','content':o(_0xc3901e,'*Insert:*\x20%0',o(_0xc3901e,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x106465,'\x22'+_0x52b8bf['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0xc3901e,'*Insert:*\x20%0',o(_0xc3901e,'ELEMENT_TABLE_COLUMN',_0x106465))};if('deletion'==_0x1ceb81['type'])return _0x52b8bf['length']?{'type':'deletion','content':o(_0xc3901e,'*Remove:*\x20%0',o(_0xc3901e,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x106465,'\x22'+_0x52b8bf['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0xc3901e,'*Remove:*\x20%0',o(_0xc3901e,'ELEMENT_TABLE_COLUMN',_0x106465))};}}),_0x3b2719['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x37acb5),_0x3b2719['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x37acb5),_0x3b2719['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x173a4e),_0x3b2719['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x173a4e),_0x3b2719['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x576411),_0x3b2719['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x576411),_0x3b2719['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x2882e0),_0x3b2719['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x2882e0);}['_acceptFormatSuggestionCallbackFactory'](){const _0x1508a5=this['editor'],_0x4d8382=_0x1508a5['model']['document']['selection'];return(_0x213fff,_0x35868b)=>{_0x1508a5['model']['change'](_0x6b70e8=>{const {commandName:_0x55008d,commandParams:_0x3bacfa}=_0x35868b;let _0x5d05f1=_0x213fff[0x0]['end']['nodeBefore'];_0x3bacfa&&_0x3bacfa[0x0]&&!0x1===_0x3bacfa[0x0]['forceValue']&&(_0x5d05f1=_0x213fff[0x0]['start']['nodeAfter']);const _0x5cef5c=_0x6b70e8['createRangeIn'](_0x5d05f1);if('$graveyard'==_0x5cef5c['root']['rootName'])return;const _0x563b82=Array['from'](_0x4d8382['getRanges']())['map'](_0x4ddd66=>_0x431313['fromRange'](_0x4ddd66));_0x6b70e8['setSelection'](_0x5cef5c),_0x1508a5['commands']['get'](_0x55008d)['refresh'](),_0x3bacfa['push']({'forceDefaultExecution':!0x0}),_0x1508a5['execute'](_0x55008d,..._0x3bacfa);const _0x3910c3=_0x563b82['filter'](_0x39ac26=>'$graveyard'!=_0x39ac26['root']['rootName']);_0x3910c3['length']>0x0&&_0x6b70e8['setSelection'](_0x3910c3);for(const _0x47fea0 of _0x563b82)_0x47fea0['detach']();});};}['_getCoordsForCells'](_0x159428){const _0x4a6a3c=this['editor']['plugins']['get']('TableUtils');let _0x267ba4=Number['MAX_SAFE_INTEGER'],_0x25b993=Number['MIN_SAFE_INTEGER'],_0x48bd55=Number['MAX_SAFE_INTEGER'],_0x1bd648=Number['MIN_SAFE_INTEGER'];for(const _0x2e2ba4 of _0x159428){if('$graveyard'==_0x2e2ba4['root']['rootName'])continue;const {row:_0xca7e7a,column:_0x46a204}=_0x4a6a3c['getCellLocation'](_0x2e2ba4),_0x44dbd6=_0x2e2ba4['hasAttribute']('rowspan')?_0x2e2ba4['getAttribute']('rowspan')-0x1:0x0,_0x55ce64=_0x2e2ba4['hasAttribute']('colspan')?_0x2e2ba4['getAttribute']('colspan')-0x1:0x0;_0x267ba4=_0xca7e7a<_0x267ba4?_0xca7e7a:_0x267ba4,_0x25b993=_0xca7e7a+_0x44dbd6>_0x25b993?_0xca7e7a+_0x44dbd6:_0x25b993,_0x48bd55=_0x46a204<_0x48bd55?_0x46a204:_0x48bd55,_0x1bd648=_0x46a204+_0x55ce64>_0x1bd648?_0x46a204+_0x55ce64:_0x1bd648;}return{'minRow':_0x267ba4,'maxRow':_0x25b993,'minColumn':_0x48bd55,'maxColumn':_0x1bd648};}['_setupColumnsRowsFixing'](){const _0x23a5c0=this['editor'],_0x4ac9b7=_0x23a5c0['plugins']['get']('TrackChangesEditing'),_0x2aa6f4=_0x23a5c0['plugins']['get']('TableUtils');_0x23a5c0['model']['document']['on']('change:data',()=>{const _0x501d8f=Array['from'](_0x23a5c0['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x502e2c,data:_0x2db484}of _0x501d8f){const {group:_0x3441e9,id:_0x5b4022,subType:_0x98d81}=_0x4ac9b7['_splitMarkerName'](_0x502e2c);if('suggestion'!=_0x3441e9)continue;if(null!=_0x2db484['oldRange'])continue;const _0x5a09d3=_0x4ac9b7['getSuggestion'](_0x5b4022);this['_tablePostFixingSubtypes']['includes'](_0x98d81)&&this['_tableSuggestions']['add'](_0x5a09d3);}},{'priority':'low'});const _0x12ff4b=(_0x1db320,_0x2d8593)=>{let _0xa8e99e=!0x1;const _0x8840d8=_0x2d8593['createRangeOn'](_0x1db320),_0x52071f=_0x1db320['findAncestor']('table'),_0x195924=_0x2aa6f4['getCellLocation'](_0x1db320);for(const _0x2c9f52 of this['_tableSuggestions']){const _0x4ecfb1=_0x2c9f52['subType'],_0x57451e=_0x4ecfb1['startsWith']('tablePaste'),_0x2f19e0=_0x4ecfb1['substr'](_0x57451e?0xa:0x5),_0x55ffe4=_0x2f19e0['toLowerCase'](),_0x48b379=_0x55ffe4['substr'](0x0,0x3)+'span',_0x15b104='min'+_0x2f19e0,_0x8a9718='max'+_0x2f19e0;if(!_0x2c9f52['isInContent'])continue;if(_0x52071f!=_0x2c9f52['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x2c9f52['isIntersectingWithRange'](_0x8840d8))continue;const _0xb71f67=_0x1db320['hasAttribute'](_0x48b379)?_0x1db320['getAttribute'](_0x48b379)-0x1:0x0,_0x5225f8=this['_getSuggestionCoords'](_0x2c9f52),_0x160010=_0x5225f8[_0x15b104],_0x54e5ef=_0x5225f8[_0x8a9718];_0x160010<=_0x195924[_0x55ffe4]&&_0x195924[_0x55ffe4]+_0xb71f67<=_0x54e5ef&&(_0x2c9f52['addRange'](_0x8840d8),_0xa8e99e=!0x0);}return _0xa8e99e;};_0x23a5c0['model']['document']['registerPostFixer'](_0x511265=>{let _0x189298=!0x1;for(const _0x8e594a of _0x23a5c0['model']['document']['differ']['getChanges']())if('insert'==_0x8e594a['type']){if('tableRow'==_0x8e594a['name']){for(const _0xac7bf3 of _0x8e594a['position']['nodeAfter']['getChildren']())_0x189298=_0x189298||_0x12ff4b(_0xac7bf3,_0x511265);}else'tableCell'==_0x8e594a['name']&&(_0x189298=_0x189298||_0x12ff4b(_0x8e594a['position']['nodeAfter'],_0x511265));}return _0x189298;});}['_getSuggestionCoords'](_0x506d02){return this['_getCoordsForCells'](_0x506d02['getRanges']()['map'](_0x58c860=>_0x58c860['start']['nodeAfter']));}}function Ne(_0x3eb22b){return Array['from'](new Set(_0x3eb22b)['values']());}class _t extends _0x3cb51e{static get['requires'](){return[vt];}['afterInit'](){const _0x10f243=this['editor'],_0x1b249e=_0x10f243['model']['document']['selection'],_0x21fb24=_0x10f243['locale'];if(!_0x10f243['plugins']['has']('TableEditing'))return;const _0x3d08a9=_0x10f243['plugins']['get']('TrackChangesEditing'),_0x2f0868=_0x10f243['plugins']['get']('TableUtils'),_0x219991=_0x10f243['plugins']['get'](vt);_0x219991['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x3d08a9['enableCommand']('mergeTableCells',()=>{const _0x4e468e=_0x2f0868['getSelectionAffectedTableCells'](_0x10f243['model']['document']['selection']);_0x10f243['model']['change'](()=>{_0x3d08a9['markMultiRangeBlockFormat'](_0x4e468e,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x10f243['commands']['get']('mergeTableCells')['on']('execute',(_0x4efaa6,_0xdc1b6f)=>{_0x10f243['commands']['get']('trackChanges')['value']&&(_0xdc1b6f['length']>0x0&&_0xdc1b6f[_0xdc1b6f['length']-0x1]&&_0xdc1b6f[_0xdc1b6f['length']-0x1]['forceDefaultExecution']||_0x3d08a9['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x4efaa6['stop']());},{'priority':'highest'});for(const _0x17d06d of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x414347=_0x10f243['commands']['get'](_0x17d06d);_0x3d08a9['enableCommand'](_0x17d06d,()=>{const _0x4a7d98=_0x10f243['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x400465=>_0x400465['is']('element','tableCell')),_0x2583ef=_0x414347['value'];_0x10f243['model']['change'](()=>{_0x3d08a9['markMultiRangeBlockFormat']([_0x4a7d98,_0x2583ef],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x14b2ff of['splitTableCellVertically','splitTableCellHorizontally']){const _0x4d6ddb=_0x10f243['commands']['get'](_0x14b2ff);_0x3d08a9['enableCommand'](_0x14b2ff,()=>{const _0x14c0d0=_0x2f0868['getSelectionAffectedTableCells'](_0x10f243['model']['document']['selection'])[0x0],_0x3637f=_0x14c0d0['findAncestor']('table'),{column:_0x200712,row:_0x321a18}=_0x2f0868['getCellLocation'](_0x14c0d0);let _0x270f8f=[];if('horizontally'==_0x4d6ddb['direction']){const _0x5124c9=_0x2f0868['createTableWalker'](_0x3637f,{'startRow':_0x321a18,'endRow':_0x321a18,'includeAllSlots':!0x0});_0x270f8f=Array['from'](_0x5124c9)['map'](_0x2b36ba=>_0x2b36ba['cell']);}else{const _0x1237b1=_0x2f0868['createTableWalker'](_0x3637f,{'column':_0x200712,'includeAllSlots':!0x0});_0x270f8f=Array['from'](_0x1237b1)['map'](_0x440b0c=>_0x440b0c['cell']);}_0x10f243['model']['change'](_0x107e2e=>{_0x3d08a9['markBlockFormat'](_0x107e2e['createRangeOn'](_0x14c0d0),{'commandName':_0x14b2ff,'commandParams':[]},_0x270f8f,_0x14b2ff);});});}_0x3d08a9['descriptionFactory']['registerDescriptionCallback'](_0x197eb3=>{if('formatBlock'!=_0x197eb3['type']&&'formatInline'!=_0x197eb3['type'])return;const {data:_0x2dfb11}=_0x197eb3;return _0x2dfb11&&'mergeTableCells'==_0x2dfb11['commandName']?{'type':'format','content':o(_0x21fb24,'*Merge\x20cells*')}:void 0x0;}),_0x3d08a9['descriptionFactory']['registerDescriptionCallback'](_0x119a1e=>{if('formatBlock'!=_0x119a1e['type']&&'formatInline'!=_0x119a1e['type'])return;const {data:_0x2a9306}=_0x119a1e;return _0x2a9306?'splitTableCellVertically'==_0x2a9306['commandName']?{'type':'format','content':o(_0x21fb24,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x2a9306['commandName']?{'type':'format','content':o(_0x21fb24,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x890315=_0x219991['_acceptFormatSuggestionCallbackFactory']();for(const _0x24d782 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x3d08a9['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x24d782,'accept',_0x890315);for(const _0x1e4045 of['splitTableCellVertically','splitTableCellHorizontally'])_0x3d08a9['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1e4045,'accept',_0x890315);_0x3d08a9['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x2c6390=>{_0x10f243['model']['change'](_0x16f053=>{const _0x340f72=Array['from'](_0x1b249e['getRanges']())['map'](_0x4f6467=>_0x431313['fromRange'](_0x4f6467));_0x16f053['setSelection'](_0x2c6390),_0x10f243['commands']['get']('mergeTableCells')['refresh'](),_0x10f243['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x4f2b44=_0x340f72['filter'](_0x2cf120=>'$graveyard'!=_0x2cf120['root']['rootName']);_0x4f2b44['length']>0x0&&_0x16f053['setSelection'](_0x4f2b44);for(const _0x2667b3 of _0x340f72)_0x2667b3['detach']();});});for(const _0x40bcce of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x6bd5d6=_0x10f243['commands']['get'](_0x40bcce);_0x6bd5d6['on']('set:isEnabled',(_0x5b699c,_0x3120d6,_0x230fcf)=>{if(_0x230fcf){const _0x39810e=_0x10f243['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2cadde=>_0x2cadde['is']('element','tableCell'));this['_areMergableCells'](_0x6bd5d6['value'],_0x39810e)||(_0x5b699c['return']=!0x1,_0x5b699c['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x4ef9dc=this['editor']['commands']['get']('mergeTableCells'),_0x57b073=this['editor']['plugins']['get']('TableUtils');if(!_0x4ef9dc['isEnabled'])return!0x1;const _0x3e768e=_0x57b073['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x192a20 of _0x3e768e)for(const _0xcbdf25 of _0x3e768e)if(_0x192a20!=_0xcbdf25&&!this['_areMergableCells'](_0x192a20,_0xcbdf25))return!0x1;return!0x0;}['_areMergableCells'](_0x2fd70f,_0xfc2d35){const _0x26571d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x42f3b3=this['editor']['model']['createRangeOn'](_0x2fd70f),_0x4e5a07=this['editor']['model']['createRangeOn'](_0xfc2d35),_0x29dbdb=new Set(),_0x59643f=new Set();for(const _0x307f29 of _0x26571d['getSuggestions']())if(('insertion'==_0x307f29['type']||'deletion'==_0x307f29['type']||'mergeTableCells'==_0x307f29['subType'])&&_0x307f29['isInContent']){for(const _0x2291a9 of _0x307f29['getRanges']())_0x2291a9['containsRange'](_0x42f3b3,!0x0)&&_0x29dbdb['add'](_0x307f29['type']+':'+_0x307f29['author']['id']),_0x2291a9['containsRange'](_0x4e5a07,!0x0)&&_0x59643f['add'](_0x307f29['type']+':'+_0x307f29['author']['id']);}if(_0x29dbdb['size']!=_0x59643f['size'])return!0x1;for(const _0x391781 of _0x29dbdb)if(!_0x59643f['has'](_0x391781))return!0x1;return!0x0;}}class Ct extends _0x3cb51e{static get['requires'](){return[vt];}['afterInit'](){const _0x220a67=this['editor'];if(!_0x220a67['plugins']['has']('TableEditing'))return;const _0x15c86d=_0x220a67['locale'],_0x341e38=_0x220a67['plugins']['get']('TrackChangesEditing');_0x341e38['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x341e38['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x341e38['registerBlockAttribute']('headingRows'),_0x341e38['registerBlockAttribute']('headingColumns'),_0x341e38['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x15c86d,'FORMAT_HEADER_ROW')),_0x341e38['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x15c86d,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x8c9932=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5e767d=this['editor']['plugins']['get']('TableUtils'),_0x2e3bcc=this['editor']['plugins']['get'](vt)['_acceptFormatSuggestionCallbackFactory']();function _0x169bb4({showActiveMarker:_0xe803be=!0x0,setDataAttribute:_0x4be98b=!0x0}={}){return(_0x236819,_0x3cce25,_0x5630dc)=>{const {type:_0x3a36ea,id:_0x4c5d43}=_0x8c9932['_splitMarkerName'](_0x3cce25['markerName']),_0x353a73=_0x8c9932['getSuggestion'](_0x4c5d43),_0x820deb=_0x353a73['data'];if('formatBlock'!=_0x353a73['type']||!_0x820deb||'setTableColumnHeader'!=_0x820deb['commandName'])return;if(_0x3cce25['item'])return void _0x236819['stop']();if(!_0x5630dc['consumable']['consume'](_0x3cce25['markerRange'],_0x236819['name']))return;const _0x2121d4=_0x3cce25['markerRange']['start']['nodeAfter'],_0x5a240e=_0x3cce25['markerRange']['end']['nodeBefore'],_0x1ca93a=_0x2121d4['parent']['parent'],{column:_0x55a17e}=_0x5e767d['getCellLocation'](_0x2121d4),{column:_0x388343}=_0x5e767d['getCellLocation'](_0x5a240e);for(let _0x4f16c2=_0x55a17e;_0x4f16c2<=_0x388343;_0x4f16c2++){const _0x4ab134=_0x5e767d['createTableWalker'](_0x1ca93a,{'column':_0x4f16c2,'includeAllSlots':!0x1});for(const _0x5562ce of _0x4ab134){const _0x433105=_0x5562ce['cell'],_0x42de0f=_0x5630dc['mapper']['toViewElement'](_0x433105);_0x5630dc['writer']['addClass']('ck-suggestion-marker-'+_0x3a36ea,_0x42de0f),_0x4be98b&&_0x5630dc['writer']['setAttribute']('data-suggestion',_0x4c5d43,_0x42de0f),_0x5630dc['mapper']['bindElementToMarker'](_0x42de0f,_0x3cce25['markerName']),_0xe803be&&(_0x8c9932['activeMarkers']['includes'](_0x3cce25['markerName'])?_0x5630dc['writer']['addClass']('ck-suggestion-marker--active',_0x42de0f):_0x5630dc['writer']['removeClass']('ck-suggestion-marker--active',_0x42de0f));}}};}_0x8c9932['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x2e3bcc),_0x8c9932['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x2e3bcc),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x169bb4(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x182806,_0x1eec8e,_0x4fe147)=>{_0x4fe147['options']['showSuggestionHighlights']&&_0x169bb4({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x182806,_0x1eec8e,_0x4fe147);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x16db14,_0x516e5c,_0x214c6f)=>{const {type:_0x169644,id:_0x4c83e4}=_0x8c9932['_splitMarkerName'](_0x516e5c['markerName']),_0x17ff5d=_0x8c9932['getSuggestion'](_0x4c83e4),_0x58c0d5=_0x17ff5d['data'];if('formatBlock'!=_0x17ff5d['type']||!_0x58c0d5||'setTableColumnHeader'!=_0x58c0d5['commandName'])return;const _0x351f9a=_0x214c6f['mapper']['markerNameToElements'](_0x516e5c['markerName']);if(_0x351f9a){for(const _0x3f7af5 of _0x351f9a)_0x214c6f['writer']['removeClass']('ck-suggestion-marker-'+_0x169644,_0x3f7af5),_0x214c6f['writer']['removeClass']('ck-suggestion-marker--active',_0x3f7af5),_0x214c6f['writer']['removeAttribute']('data-suggestion',_0x3f7af5),_0x214c6f['mapper']['unbindElementFromMarkerName'](_0x3f7af5,_0x516e5c['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2eeb01=this['editor'],_0x1fe8ba=_0x2eeb01['locale'];function _0x46c532(_0x1c66cc){return{'type':'format','content':o(_0x1fe8ba,'*Format:*\x20%0',_0x1c66cc)};}_0x2eeb01['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x110ff8=>{if('formatBlock'!=_0x110ff8['type'])return;const {data:_0x1f5d52}=_0x110ff8;if(_0x1f5d52){if('setTableRowHeader'==_0x1f5d52['commandName']){const _0x4df1ae=_0x1f5d52['commandParams'][0x0]['forceValue'];return _0x46c532(o(_0x1fe8ba,_0x4df1ae?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x1f5d52['commandName']){const _0x32a8c2=_0x1f5d52['commandParams'][0x0]['forceValue'];return _0x46c532(o(_0x1fe8ba,_0x32a8c2?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x315b32=>[_0x315b32,null]));class Nt extends _0x3cb51e{static get['requires'](){return[vt];}['afterInit'](){const _0x7f8768=this['editor'];if(!_0x7f8768['plugins']['has']('TableClipboard'))return;const _0x515f90=_0x7f8768['plugins']['get']('TrackChangesEditing'),_0x4f6822=_0x7f8768['plugins']['get']('TableUtils'),_0x305d47=_0x7f8768['plugins']['get'](vt),_0x2f2116=_0x7f8768['plugins']['get']('TableClipboard');_0x305d47['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x7f8768['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x7f8768['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x2fa40b=null;_0x7f8768['model']['on']('insertContent',(_0x5c7a83,_0x3ab27c)=>{const [_0xd1cfaf,_0x19ffbd]=_0x3ab27c,_0x3b48df=_0x3ab27c[_0x3ab27c['length']-0x1];_0x3b48df&&_0x3b48df['forceDefaultExecution']||_0x515f90['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x31d990,_0x2e98b1,_0xb4f1d4,_0x9c89fd,_0x7b7b2a){if(_0x2e98b1&&!_0x2e98b1['is']('documentSelection'))return!0x1;const _0x111e26=_0x7b7b2a['getTableIfOnlyTableInContent'](_0x31d990,_0xb4f1d4);if(!_0x111e26||!Ue(_0x111e26,void 0x0,_0x9c89fd))return!0x1;const _0x5763ae=_0x9c89fd['getSelectionAffectedTableCells'](_0xb4f1d4['document']['selection']);if(!_0x5763ae['length'])return!0x1;const _0x40fd6b=_0x5763ae[0x0]['findAncestor']('table'),_0x421a42=_0x9c89fd['getRowIndexes'](_0x5763ae),_0x44ee88=_0x9c89fd['getColumnIndexes'](_0x5763ae),_0x255bfd={'startRow':_0x421a42['first'],'endRow':_0x421a42['last'],'startColumn':_0x44ee88['first'],'endColumn':_0x44ee88['last']};return 0x1==_0x5763ae['length']&&(_0x255bfd['endRow']+=_0x9c89fd['getRows'](_0x111e26)-0x1,_0x255bfd['endColumn']+=_0x9c89fd['getColumns'](_0x111e26)-0x1),Ue(_0x40fd6b,_0x255bfd,_0x9c89fd);}(_0xd1cfaf,_0x19ffbd,_0x7f8768['model'],_0x4f6822,_0x2f2116)&&(_0x5c7a83['stop'](),_0x2fa40b={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x7f8768['model']['change'](()=>{_0x7f8768['model']['insertContent'](_0x3ab27c[0x0],_0x3ab27c[0x1],_0x3ab27c[0x2],{'forceDefaultExecution':!0x0});const _0x23157e=_0x17f70d(),{rowInsertionRanges:_0x479d56,columnInsertionRanges:_0x3fa006,insertionRanges:_0x1eafff,deletionRanges:_0x24c1d4,cells:_0xfecf0c}=_0x2fa40b;_0x479d56['length']&&_0x515f90['markMultiRangeInsertion'](_0x479d56,'tablePasteRow',{'tablePasteChainId':_0x23157e}),_0x3fa006['length']&&_0x515f90['markMultiRangeInsertion'](_0x3fa006,'tablePasteColumn',{'tablePasteChainId':_0x23157e}),_0x1eafff['length']&&(_0x515f90['markMultiRangeInsertion'](_0x1eafff,'tablePaste',{'tablePasteChainId':_0x23157e,'skipNestingCheck':!0x0}),_0x1eafff['forEach'](_0x222818=>_0x222818['detach']?.())),_0x24c1d4['length']&&(_0x515f90['markMultiRangeDeletion'](_0x24c1d4,'tablePaste',{'tablePasteChainId':_0x23157e,'skipNestingCheck':!0x0}),_0x24c1d4['forEach'](_0x53fc19=>_0x53fc19['detach']?.()));const _0x362ee7=_0x515f90['markMultiRangeBlockFormat'](_0xfecf0c['map'](({element:_0x5212f8})=>_0x5212f8),{'formatGroupId':_0x17f70d()},[],'tablePasteCell',{'tablePasteChainId':_0x23157e});if(_0x362ee7){const _0x20189c=_0x362ee7['getMarkers'](),_0x26184f=[];for(const {element:_0x26855a,attributes:_0x1fe616}of _0xfecf0c){if(!_0x1fe616)continue;const _0x1936c3=_0x7f8768['model']['createRangeOn'](_0x26855a),_0x4ea490=_0x20189c['find'](_0x171765=>_0x171765['getRange']()['isEqual'](_0x1936c3));_0x4ea490&&_0x26184f['push']([_0x4ea490['name'],_0x1fe616]);}_0x26184f['length']&&_0x362ee7['setAttribute']('markerAttributes',Object['fromEntries'](_0x26184f));}_0x2fa40b=null;}));},{'priority':_0x12460b['high']+0xa}),_0x7f8768['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x15b1a8,_0x29c50b)=>{const [_0x50ea8e,_0x4daff4,,_0x1377a6]=_0x29c50b;if(!_0x2fa40b)return;_0x15b1a8['stop']();const _0x23c957=_0x50ea8e['cell'],_0x2d7b53=_0x4daff4,_0x1b6c60=Oe(_0x23c957),_0x1a49d7=Oe(_0x2d7b53);_0x15b1a8['return']=_0x23c957;let _0x12218f=null,_0x1f5c99=null;if(_0x1a49d7||_0x1b6c60){if(_0x1b6c60&&!_0x1a49d7){_0x1377a6['remove'](_0x23c957['getChild'](0x0));for(const _0x5944e0 of Array['from'](_0x2d7b53['getChildren']()))_0x1377a6['insert'](_0x5944e0,_0x23c957,'end');const _0x33773a=_0x2fa40b['rowInsertionIndexes']['includes'](_0x50ea8e['row']),_0x25531a=_0x2fa40b['columnInsertionIndexes']['includes'](_0x50ea8e['column']);_0x33773a||_0x25531a||(_0x12218f=_0x431313['fromRange'](_0x1377a6['createRangeIn'](_0x23c957)));}else _0x1a49d7&&!_0x1b6c60&&(_0x1f5c99=_0x1377a6['createRangeIn'](_0x23c957));}else{const _0x2fc447=_0x1377a6['createElement']('tableCellSuggestion'),_0x3a21f2=_0x1377a6['createElement']('tableCellSuggestion');_0x1377a6['wrap'](_0x1377a6['createRangeIn'](_0x23c957),_0x3a21f2),_0x1377a6['insert'](_0x2fc447,_0x23c957,0x0);for(const _0x333af8 of Array['from'](_0x2d7b53['getChildren']()))_0x1377a6['insert'](_0x333af8,_0x2fc447,'end');_0x12218f=_0x431313['fromRange'](_0x1377a6['createRangeOn'](_0x2fc447)),_0x1f5c99=_0x431313['fromRange'](_0x1377a6['createRangeOn'](_0x3a21f2));}const _0x1d1391=Array['from'](_0x2d7b53['getAttributes']())['filter'](([_0x2d8066])=>Be['includes'](_0x2d8066));_0x2fa40b['cells']['push']({'element':_0x23c957,'attributes':_0x1d1391['length']?Object['fromEntries'](_0x1d1391):null}),_0x12218f&&_0x2fa40b['insertionRanges']['push'](_0x12218f),_0x1f5c99&&_0x2fa40b['deletionRanges']['push'](_0x1f5c99);},{'priority':'high'}),_0x4f6822['on']('insertColumns',(_0x2188e4,_0x94d5f8)=>{const [_0x2d1b19,_0x428fbc={}]=_0x94d5f8;if(!_0x2fa40b)return;const _0x2c4516=_0x428fbc['at']||0x0,_0x3a7546=_0x428fbc['columns']||0x1;_0x2fa40b['columnInsertionIndexes']=new Array(_0x3a7546)['fill'](_0x2c4516)['map']((_0x29e0f8,_0x35d12f)=>_0x29e0f8+_0x35d12f);for(const {cell:_0x11e870}of _0x4f6822['createTableWalker'](_0x2d1b19,{'startColumn':_0x2c4516,'endColumn':_0x2c4516+_0x3a7546-0x1}))_0x2fa40b['columnInsertionRanges']['push'](_0x7f8768['model']['createRangeOn'](_0x11e870));},{'priority':'low'}),_0x4f6822['on']('insertRows',(_0x11892a,_0x2e753d)=>{const [_0x2d6e15,_0x4d9b1b={}]=_0x2e753d;if(!_0x2fa40b)return;const _0x38028a=_0x4d9b1b['at']||0x0,_0x298517=_0x4d9b1b['rows']||0x1;_0x2fa40b['rowInsertionIndexes']=new Array(_0x298517)['fill'](_0x38028a)['map']((_0x9f8d00,_0x3e3d4d)=>_0x9f8d00+_0x3e3d4d);for(const {cell:_0x4e4505}of _0x4f6822['createTableWalker'](_0x2d6e15,{'startRow':_0x38028a,'endRow':_0x38028a+_0x298517-0x1}))_0x2fa40b['rowInsertionRanges']['push'](_0x7f8768['model']['createRangeOn'](_0x4e4505));},{'priority':'low'}),_0x515f90['descriptionFactory']['registerDescriptionCallback'](_0x2af23c=>{if(_0x2af23c['subType']&&_0x2af23c['subType']['startsWith']('tablePaste'))return _0x2af23c['previous']?{}:{'type':'insertion','content':o(_0x7f8768['locale'],'*Replace\x20table\x20cells*')};});const _0x1a9178=()=>!0x1;for(const _0x22ce70 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x515f90['_suggestionFactory']['registerCustomCallback']('insertion',_0x22ce70,'join',_0x1a9178),_0x515f90['_suggestionFactory']['registerCustomCallback']('deletion',_0x22ce70,'join',_0x1a9178),_0x515f90['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x22ce70,'join',_0x1a9178);_0x515f90['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x1a9178),_0x515f90['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x5e684c,_0x51fa75,_0x3dd8f5)=>{const _0xd293f5=_0x5e684c['map'](_0x558b7f=>_0x558b7f['getContainedElement']())['filter'](_0x4834c8=>_0x4834c8),_0x49e63f=new Map(_0xd293f5['map'](_0x897815=>[_0x897815,null]));if(_0x2fa40b){for(const {element:_0x51e847,attributes:_0x9e02a6}of _0x2fa40b['cells'])_0x9e02a6&&_0x49e63f['set'](_0x51e847,_0x9e02a6);}else{if(_0x3dd8f5&&_0x3dd8f5['markerAttributes'])for(const [_0x214776,_0x13aefc]of Object['entries'](_0x3dd8f5['markerAttributes'])){const _0xbf2631=_0x7f8768['model']['markers']['get'](_0x214776),_0x51f824=_0xbf2631?_0xbf2631['getRange']()['getContainedElement']():null;_0x51f824&&_0x49e63f['set'](_0x51f824,_0x13aefc);}}_0x7f8768['model']['change'](_0x1780ad=>{for(const [_0xe71d03,_0x28ca4c]of _0x49e63f)_0x1780ad['setAttributes']({...xe,..._0x28ca4c},_0xe71d03);});});const _0x127065=(_0x364d6d,_0x3deff8)=>{_0x515f90['_suggestionFactory']['registerCustomCallback'](_0x364d6d,'tablePaste',_0x3deff8,(_0x120cf1,_0x155491,_0x511921)=>{_0x7f8768['model']['change'](_0x4cf8f9=>{const _0x14ee7d=[];for(const _0x383565 of _0x120cf1){const _0x430aae=_0x383565['start']['nodeAfter'];_0x430aae['is']('element','tableCellSuggestion')&&_0x14ee7d['push'](_0x430aae);}_0x515f90['_suggestionFactory']['getSuggestionCallback'](_0x364d6d,null,_0x3deff8)(_0x120cf1,_0x155491,_0x511921);for(const _0x4985c4 of _0x14ee7d)'$graveyard'!=_0x4985c4['root']['rootName']&&_0x4cf8f9['unwrap'](_0x4985c4);});});};_0x127065('insertion','accept'),_0x127065('insertion','discard'),_0x127065('deletion','accept'),_0x127065('deletion','discard'),_0x515f90['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x468050=>{const _0x2f7d81=_0x468050['map'](_0x59043e=>_0x59043e['getContainedElement']()),_0x5c5316=_0x2f7d81[0x0]['findAncestor']('table'),{minRow:_0x46f067,maxRow:_0x5dab22}=_0x305d47['_getCoordsForCells'](_0x2f7d81);_0x4f6822['removeRows'](_0x5c5316,{'at':_0x46f067,'rows':_0x5dab22-_0x46f067+0x1});}),_0x515f90['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x3e4df4=>{const _0x63dbab=_0x3e4df4['map'](_0x74ba29=>_0x74ba29['getContainedElement']()),_0x24fa20=_0x63dbab[0x0]['findAncestor']('table'),{minColumn:_0x3d97a0,maxColumn:_0x14a177}=_0x305d47['_getCoordsForCells'](_0x63dbab);_0x4f6822['removeColumns'](_0x24fa20,{'at':_0x3d97a0,'columns':_0x14a177-_0x3d97a0+0x1});});const _0x46e877=(_0x4d858e,_0xd420be)=>{if(!_0xd420be['subType']||!_0xd420be['subType']['startsWith']('tablePaste'))return;const _0x2c79b2=_0xd420be['attributes']['tablePasteChainId'],_0x456a96=_0x515f90['getSuggestions']()['filter'](_0x35554d=>_0x35554d['isInContent']&&_0x35554d['attributes']&&_0x35554d['attributes']['tablePasteChainId']==_0x2c79b2);_0x456a96['length']&&_0xd420be['getAllAdjacentSuggestions']()['length']!=_0x456a96['length']&&_0x456a96['reduce']((_0x3e64ad,_0x570307)=>(_0x3e64ad['next']=_0x570307,_0x570307['previous']=_0x3e64ad,_0x570307));};function _0x32c6bb(_0x2267f9,_0x31c4e9=!0x0){const {id:_0x8583d8,authorId:_0x1394ba}=_0x515f90['_splitMarkerName'](_0x2267f9['markerName']),_0x453c6f=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x1a8cfb=_0x515f90['activeMarkers']['includes'](_0x2267f9['markerName']);return _0x1a8cfb&&_0x453c6f['push']('ck-suggestion-marker--active'),{'classes':_0x453c6f,'attributes':{'data-suggestion':_0x8583d8,'data-author-id':_0x1394ba},'priority':_0x1a8cfb&&_0x31c4e9?0xbc2:0xbb8};}_0x515f90['on']('suggestionLoaded',_0x46e877,{'priority':'high'}),_0x515f90['on']('suggestionUnloaded',_0x46e877,{'priority':'high'}),_0x7f8768['model']['document']['registerPostFixer'](()=>{let _0x54d3b8=!0x1;const _0x4e6c24=Array['from'](_0x7f8768['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x546134,data:_0x3b35aa}of _0x4e6c24){const {group:_0x2edf3a,type:_0x3ab948,id:_0x5b0ae7}=_0x515f90['_splitMarkerName'](_0x546134);if('suggestion'!=_0x2edf3a||'deletion'!=_0x3ab948||_0x3b35aa['oldRange'])continue;if(!_0x515f90['hasSuggestion'](_0x5b0ae7))continue;const _0x2c2cd1=_0x515f90['getSuggestion'](_0x5b0ae7)['getRanges'](),_0x1c8f35=_0x7f8768['plugins']['get']('Users')['me'];for(const _0x40e3d2 of _0x515f90['getSuggestions']()){if(!_0x40e3d2['isInContent']||_0x40e3d2['author']!=_0x1c8f35)continue;if('formatBlock'!=_0x40e3d2['type']||'tablePasteCell'!=_0x40e3d2['subType'])continue;if(_0x40e3d2['getRanges']()['every'](_0x1c840a=>_0x2c2cd1['some'](_0x841bb4=>_0x841bb4['containsRange'](_0x1c840a,!0x0)))){for(const _0x5a4bc6 of _0x40e3d2['getAllAdjacentSuggestions']())_0x5a4bc6['isInContent']&&(_0x5a4bc6['discard'](),_0x54d3b8=!0x0);}}}return _0x54d3b8;}),_0x7f8768['model']['document']['registerPostFixer'](_0x3a3870=>{const _0x1673bd=_0x7f8768['commands']['get']('redo');if(!_0x1673bd||!_0x1673bd['_createdBatches']['has'](_0x3a3870['batch']))return!0x1;let _0x207681=!0x1;const _0x2c9667=_0x7f8768['plugins']['get']('Users')['me'],_0x284841=_0x7f8768['model']['document']['differ']['getChanges'](),_0x22d09d=Array['from'](_0x7f8768['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x1688c7,data:_0x1cb22e})=>{const {group:_0x33ab20,subType:_0x38cfaf,authorId:_0xff7e24}=_0x515f90['_splitMarkerName'](_0x1688c7);return'suggestion'==_0x33ab20&&'tablePaste'==_0x38cfaf&&_0xff7e24==_0x2c9667['id']&&!_0x1cb22e['oldRange'];});for(const _0x1c0946 of _0x284841){if('insert'!=_0x1c0946['type']||'tableCellSuggestion'!=_0x1c0946['name']||0x1!=_0x1c0946['length'])continue;const _0x23c173=_0x3a3870['createRange'](_0x1c0946['position'],_0x1c0946['position']['getShiftedBy'](0x1));if(!_0x22d09d['find'](({data:_0x100022})=>_0x100022['newRange']['isEqual'](_0x23c173))){for(const {name:_0x5183e5,data:_0x523c79}of _0x22d09d)if(_0x23c173['containsRange'](_0x523c79['newRange'])){_0x3a3870['updateMarker'](_0x5183e5,{'range':_0x23c173}),_0x207681=!0x0;break;}}}return _0x207681;}),_0x7f8768['model']['document']['registerPostFixer'](_0x1a0998=>{let _0x489553=!0x1;const _0x55e970=_0x7f8768['plugins']['get']('Users')['me'],_0x474345=_0x515f90['getSuggestions']()['filter'](_0x54e249=>_0x54e249['isInContent']&&_0x54e249['author']==_0x55e970),_0xd0efd7=new Set(),_0x5396ae=new Set();for(const _0x38ef47 of _0x474345)if('tablePaste'==_0x38ef47['subType'])for(const _0x1b8e5b of _0x38ef47['getMarkers']()){const _0x11abb2=_0x1b8e5b['getRange']()['getContainedElement']();if(_0x11abb2){if(_0x11abb2['is']('element','tableCellSuggestion')&&Oe(_0x11abb2)){_0x38ef47['removeMarker'](_0x1b8e5b['name']),_0xd0efd7['add'](_0x11abb2),_0x489553=!0x0;const _0x4b1cac=_0x11abb2['nextSibling'],_0x63847c=_0x11abb2['previousSibling'],_0x4491bd=_0x4b1cac&&_0x4b1cac['is']('element','tableCellSuggestion'),_0xb23f2e=_0x63847c&&_0x63847c['is']('element','tableCellSuggestion');_0x4491bd&&!_0xd0efd7['has'](_0x4b1cac)&&_0x5396ae['add'](_0x4b1cac),_0xb23f2e&&!_0xd0efd7['has'](_0x63847c)&&_0x5396ae['add'](_0x63847c);}else _0x11abb2['is']('element','paragraph')&&_0x11abb2['isEmpty']&&(_0x38ef47['removeMarker'](_0x1b8e5b['name']),_0x489553=!0x0);}}else{if('tablePasteCell'==_0x38ef47['subType']){if(!_0x38ef47['attributes']||!_0x38ef47['attributes']['tablePasteChainId'])continue;const _0x5bea38=_0x38ef47['attributes']['markerAttributes'];if(_0x5bea38&&Object['keys'](_0x5bea38)['length'])continue;const _0x4b14df=_0x38ef47['attributes']['tablePasteChainId'];let _0x30926d=!0x0,_0x5e5fe3=!0x0;for(const _0x429a6b of _0x474345)if(_0x429a6b['subType']&&_0x429a6b['subType']['startsWith']('tablePaste')){if(!_0x429a6b['attributes']['tablePasteChainId']){_0x5e5fe3=!0x1;break;}if(_0x429a6b['id']!=_0x38ef47['id']&&_0x429a6b['attributes']['tablePasteChainId']==_0x4b14df){_0x30926d=!0x1;break;}}_0x5e5fe3&&_0x30926d&&(_0x38ef47['removeMarkers'](),_0x489553=!0x0);}}for(const _0x78a56d of _0xd0efd7)_0x1a0998['remove'](_0x78a56d);for(const _0x1b6c99 of _0x5396ae)_0x1a0998['unwrap'](_0x1b6c99);return _0x489553;}),_0x7f8768['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x2341d1=>_0x32c6bb(_0x2341d1),'converterPriority':'high'}),_0x7f8768['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x4efc42,_0x215480)=>_0x215480['options']['showSuggestionHighlights']?_0x32c6bb(_0x4efc42,!0x1):null,'converterPriority':'high'});const _0x2521a1=_0x7f8768['editing']['view'];this['listenTo'](_0x2521a1['document'],'clipboardOutput',(_0xd39967,_0x5f383e)=>{const _0x58d8ef=[];for(const _0x25b647 of _0x2521a1['createRangeIn'](_0x5f383e['content'])['getItems']())_0x25b647['is']('element','suggestion-td')&&_0x58d8ef['push'](_0x25b647);_0x2521a1['change'](_0xb5d56=>{for(const _0x188dc2 of _0x58d8ef)_0xb5d56['move'](_0xb5d56['createRangeIn'](_0x188dc2),_0xb5d56['createPositionBefore'](_0x188dc2)),_0xb5d56['remove'](_0x188dc2);});});}}function Oe(_0x4d212f){if(_0x4d212f['isEmpty'])return!0x0;const _0x361553=_0x4d212f['getChild'](0x0);return _0x361553['is']('element','paragraph')&&_0x361553['isEmpty'];}function Ue(_0x4e8393,_0x533323={},_0x113290){for(const {isAnchor:_0x59e8ce,cellHeight:_0x4fc24a,cellWidth:_0x245c29}of _0x113290['createTableWalker'](_0x4e8393,{'includeAllSlots':!0x0,..._0x533323}))if(!_0x59e8ce||0x1!=_0x4fc24a||0x1!=_0x245c29)return!0x1;return!0x0;}class Dt extends _0x3cb51e{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x478ca9=this['editor']['plugins']['get']('TrackChangesEditing');_0x478ca9['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x478ca9['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x478ca9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x478ca9['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x478ca9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x478ca9['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x1031df,_0x1c44ca){const _0x598a8a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x539b9d=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x32d515=_0x1c44ca['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x9e5d93=_0x539b9d['getColumnGroupElement'](_0x32d515);let _0x433e34=_0x9e5d93?_0x539b9d['getTableColumnsWidths'](_0x9e5d93):null,_0x48df92=_0x32d515['getAttribute']('tableWidth')||null;const _0x49e42a=_0x1c44ca['tableWidth']||_0x48df92,_0x31b70e=_0x1c44ca['columnWidths']||_0x433e34,_0x3ffcc1=this['editor']['plugins']['get']('Users')['me'];for(const _0x2043a3 of _0x598a8a['getSuggestions']()){const _0x3a9517=_0x2043a3['getContainedElement']();if('resizeTable'===_0x2043a3['subType']&&_0x3a9517===_0x32d515){_0x2043a3['author']!==_0x3ffcc1&&_0x2043a3['discard']();const _0x5b1a92=_0x2043a3['data']['commandParams'];_0x48df92=_0x5b1a92[0x0]['tableWidth'],_0x433e34=_0x5b1a92[0x0]['columnWidths'];break;}}_0x1031df({'table':_0x32d515,'tableWidth':_0x49e42a,'columnWidths':_0x31b70e}),_0x598a8a['markBlockFormat'](_0x32d515,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x48df92,'columnWidths':_0x433e34}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x2dd2ac){if('formatBlock'!=_0x2dd2ac['type']&&'formatInline'!=_0x2dd2ac['type'])return;const {data:_0x18da5c}=_0x2dd2ac;if(_0x18da5c&&'resizeTable'===_0x18da5c['formatGroupId']){const _0x301cbc='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x301cbc)};}}}class Mt extends _0x3cb51e{['afterInit'](){const _0x7893df=this['editor'];_0x7893df['plugins']['has']('Template')&&_0x7893df['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x3cb51e{['afterInit'](){const _0x17cafb=this['editor'];if(!_0x17cafb['commands']['get']('insertTableOfContents'))return;_0x17cafb['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x3d39f4=_0x17cafb['plugins']['get']('TrackChangesEditing'),_0x4f1c53=_0x17cafb['locale'];_0x3d39f4['descriptionFactory']['registerElementLabel']('tableOfContents',_0x272972=>o(_0x4f1c53,'ELEMENT_TABLE_OF_CONTENTS',_0x272972));}}class Bt extends _0x3cb51e{['afterInit'](){const _0x4177d3=this['editor'];if(!_0x4177d3['plugins']['has']('Title'))return;const _0x56a4e7=_0x4177d3['plugins']['get']('TrackChangesEditing');_0x56a4e7['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x4177d3['locale'],'ELEMENT_TITLE')),_0x4177d3['model']['document']['registerPostFixer'](_0x2c4302=>{let _0x2428e7=!0x1;const _0x1e8823=Array['from'](_0x4177d3['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2d6478,data:_0x349c0e}of _0x1e8823){const {group:_0x328648}=_0x56a4e7['_splitMarkerName'](_0x2d6478);if('suggestion'!==_0x328648||!_0x349c0e['newRange'])continue;const _0xddbb58=_0x349c0e['newRange'],_0x52b770=_0xddbb58['end']['nodeBefore'];if(!_0x52b770||!_0x52b770['is']('element','title-content'))continue;if(!_0xddbb58['start']['isTouching'](_0xddbb58['end']))continue;const _0x474d22=_0x4177d3['model']['schema']['getNearestSelectionRange'](_0xddbb58['end'],'forward');if(_0x474d22&&_0x474d22['isCollapsed']){const _0x4bc605=_0x2c4302['createRange'](_0xddbb58['start'],_0x474d22['start']);_0x4bc605['isEqual'](_0xddbb58)||(_0x2c4302['updateMarker'](_0x2d6478,{'range':_0x4bc605}),_0x2428e7=!0x0);}_0x2428e7||(_0x2c4302['removeMarker'](_0x2d6478),_0x2428e7=!0x0);}return _0x2428e7;});}}class Ot extends _0x3cb51e{['afterInit'](){const _0x1bf55a=this['editor'],_0x5616a4=_0x1bf55a['plugins']['get']('TrackChangesEditing');_0x1bf55a['plugins']['has']('Uploadcare')&&(_0x5616a4['enableCommand']('uploadcare'),_0x1bf55a['plugins']['has']('UploadcareImageEdit')&&(_0x5616a4['enableCommand']('uploadcareImageEdit'),_0x5616a4['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x5616a4['registerBlockAttribute']('uploadcareImageId'),_0x5616a4['descriptionFactory']['registerDescriptionCallback'](_0x3cd08f=>{if('attribute'!=_0x3cd08f['type'])return;const {data:_0x32c484}=_0x3cd08f;return _0x32c484&&'uploadcareImageId'==_0x32c484['key']?{'type':'format','content':''}:void 0x0;})));}}class Rt extends _0x3cb51e{['afterInit'](){const _0x576935=this['editor'],_0x59ae6f=_0x576935['plugins']['get']('TrackChangesEditing');_0x576935['plugins']['has']('UndoEditing')&&(_0x59ae6f['enableCommand']('undo'),_0x59ae6f['enableCommand']('redo'));}}class Tt extends _0x3cb51e{static get['requires'](){return[vt];}['afterInit'](){const _0x5f4456=this['editor'];if(!_0x5f4456['plugins']['has']('TableCaptionEditing'))return;_0x5f4456['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class xt extends _0x3cb51e{['tableProperties'];['tableCellProperties'];constructor(_0x4d29a2){super(_0x4d29a2),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 _0x305498=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x1d62b1 of this['tableProperties'])_0x305498['enableCommand'](_0x1d62b1,(_0x4828d8,_0x31c515)=>{const _0x5927d5=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x1d62b1,[_0x5927d5],this['tableProperties'],'tableProperties',_0x4828d8,_0x31c515);});_0x305498['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x305498['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x305498['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x2d6b6d,_0x10e1d6)=>this['handleDiscardAction'](this['tableProperties'],_0x2d6b6d,_0x10e1d6)),_0x305498['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x3e73ff of this['tableCellProperties'])_0x305498['enableCommand'](_0x3e73ff,(_0x3ba247,_0x5f13e1)=>{const _0x5760c9=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x3e73ff,_0x5760c9,this['tableCellProperties'],'tableCellProperties',_0x3ba247,_0x5f13e1);});_0x305498['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x305498['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x305498['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x391d3a,_0x11671a)=>this['handleDiscardAction'](this['tableCellProperties'],_0x391d3a,_0x11671a)),_0x305498['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x305498['descriptionFactory']['registerDescriptionCallback'](_0x35b02a=>this['handleSuggestionDescription'](_0x35b02a));}['_handlePropertyChange'](_0x198217,_0x5f00a4,_0x3d0b73,_0x4a25bc,_0x51fe78,_0x26ea9b){const _0x45b7cf=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x26ea9b['batch'],()=>{for(const _0x4f4dce of _0x5f00a4){if(this['_getSuggestion'](_0x4f4dce,_0x4a25bc))_0x51fe78(_0x26ea9b);else{const _0x18ddc7={};for(const _0x118c97 of _0x3d0b73){const _0x3a2dc2=_0x4f4dce['getAttribute'](_0x118c97);void 0x0!==_0x3a2dc2&&(_0x18ddc7[_0x118c97]=_0x3a2dc2);}_0x51fe78(_0x26ea9b),_0x45b7cf['markBlockFormat'](_0x4f4dce,{'commandParams':[_0x18ddc7]},[],_0x4a25bc);}}});}['handleDiscardAction'](_0x3f2b67,_0x5315f7,_0x46d533){const _0x4c657f=_0x5315f7[0x0]['start']['nodeAfter'],_0x5a9519=_0x46d533['commandParams'][0x0];this['editor']['model']['change'](_0x26e159=>{for(const _0x372d46 of _0x3f2b67)void 0x0!==_0x5a9519[_0x372d46]?_0x26e159['setAttribute'](_0x372d46,_0x5a9519[_0x372d46],_0x4c657f):_0x26e159['removeAttribute'](_0x372d46,_0x4c657f);});}['handleSuggestionDescription'](_0x5dbb36){if(_0x5dbb36['data'])switch(_0x5dbb36['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'](_0x58455b,_0x17673e){const _0x163f02=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x1a531d of _0x163f02['getSuggestions']({'skipNotAttached':!0x0})){const _0x5c795d=_0x1a531d['getContainedElement']();if(_0x1a531d['subType']===_0x17673e&&_0x5c795d===_0x58455b)return _0x1a531d;}return null;}}const m='$elementName';class p extends _0x3cb51e{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x180863,_0xf6ab75,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(_0x3d66ef){super(_0x3d66ef),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x255a85,_0x1b2366,_0x43d14d,_0x52558d)=>{this['_model']['change'](()=>{for(const _0x3a3bf8 of[..._0x52558d,..._0x43d14d])this['_model']['markers']['has'](_0x3a3bf8)&&_0x3d66ef['editing']['reconvertMarker'](_0x3a3bf8);});}),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']=_0x3d66ef['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(),_0x3d66ef['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x3d66ef['config']['get']('trackChanges.trackFormatChanges'),_0x3d66ef['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x3d66ef['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x3d66ef,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x18bf98=this['editor'],_0x51b932=(_0x1aa690,_0x11a20a)=>{if('attribute'!=_0x1aa690)return'ck-suggestion-marker-'+_0x1aa690;const _0x2053af=_0x11a20a['split']('|')[0x0];return this['_isBlockAttribute'](_0x2053af)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x18bf98['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0xa4688b=>{const {id:_0x4cf64d,authorId:_0x30d79f,type:_0x32057c,subType:_0x183d9b}=this['_splitMarkerName'](_0xa4688b['markerName']),_0x3f2290=['ck-suggestion-marker',_0x51b932(_0x32057c,_0x183d9b)];let _0x4f2fc2=0xbb8;return this['activeMarkers']['includes'](_0xa4688b['markerName'])&&(_0x3f2290['push']('ck-suggestion-marker--active'),_0x4f2fc2=0xbc2),'deletion'==_0x32057c&&(_0x4f2fc2+=0x5),{'classes':_0x3f2290,'attributes':{'data-suggestion':_0x4cf64d,'data-author-id':_0x30d79f},'priority':_0x4f2fc2};}}),_0x18bf98['conversion']['for']('dataDowncast')['add'](_0x1f9ffc=>{_0x1f9ffc['on']('addMarker:suggestion',(_0x48be80,_0x18fc4b,_0x5b715f)=>{if(!_0x5b715f['options']['showSuggestionHighlights'])return;const _0x221072=_0x18fc4b['item'];if(!_0x221072)return;const _0x31e6eb=_0x5b715f['mapper']['toViewElement'](_0x221072);_0x18bf98['model']['schema']['isObject'](_0x221072)&&_0x31e6eb&&!_0x31e6eb['getCustomProperty']('widget')&&_0x31e6eb['is']('containerElement')&&_0x1050cb(_0x31e6eb,_0x5b715f['writer']);},{'priority':'high'});}),_0x18bf98['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x17d98c,_0x708e59)=>{if(!_0x708e59['options']['showSuggestionHighlights'])return null;const {type:_0x44c7dd,subType:_0x32f346}=this['_splitMarkerName'](_0x17d98c['markerName']);return{'classes':['ck-suggestion-marker',_0x51b932(_0x44c7dd,_0x32f346)],'priority':0xbb8};}});const _0x75a12=({showActiveMarkers:_0x53d648=!0x0,isAttributeSuggestion:_0x510610=!0x1}={})=>(_0x485740,_0xbda3b8,_0x3ada6f)=>{if(!_0xbda3b8['item'])return;const {id:_0x1fb7db,authorId:_0x6baa71}=this['_splitMarkerName'](_0xbda3b8['markerName']);if(_0x510610){const _0xdd2cdd=this['_suggestions']['get'](_0x1fb7db),_0x1ddc83=this['_getAttributeKey'](_0xdd2cdd);if(!this['_isBlockAttribute'](_0x1ddc83))return;}if(_0xbda3b8['item']['is']('selection'))return void _0x3ada6f['consumable']['consume'](_0xbda3b8['item'],_0x485740['name']);const _0x422f13=_0x3ada6f['mapper']['toViewElement'](_0xbda3b8['item']);if(_0xbda3b8['item']['is']('element')&&_0x18bf98['model']['schema']['isBlock'](_0xbda3b8['item'])&&!_0x422f13['getCustomProperty']('addHighlight')){_0x3ada6f['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x422f13),_0x3ada6f['writer']['setAttribute']('data-suggestion',_0x1fb7db,_0x422f13),_0x3ada6f['writer']['setAttribute']('data-author-id',_0x6baa71,_0x422f13),_0x3ada6f['mapper']['bindElementToMarker'](_0x422f13,_0xbda3b8['markerName']),_0x53d648&&(this['activeMarkers']['includes'](_0xbda3b8['markerName'])?_0x3ada6f['writer']['addClass']('ck-suggestion-marker--active',_0x422f13):_0x3ada6f['writer']['removeClass']('ck-suggestion-marker--active',_0x422f13));for(const _0x532d1b of _0x18bf98['model']['createRangeIn'](_0xbda3b8['item'])['getItems']())_0x3ada6f['consumable']['consume'](_0x532d1b,_0x485740['name']);_0x3ada6f['consumable']['consume'](_0xbda3b8['item'],_0x485740['name']);}};_0x18bf98['conversion']['for']('dataDowncast')['add'](_0x38e261=>{_0x38e261['on']('addMarker:suggestion:formatBlock',(_0x1ef0ff,_0x1890d8,_0x415b1b)=>{_0x415b1b['options']['showSuggestionHighlights']&&_0x75a12({'showActiveMarkers':!0x1})(_0x1ef0ff,_0x1890d8,_0x415b1b);},{'priority':'highest'});}),_0x18bf98['conversion']['for']('dataDowncast')['add'](_0x4e679b=>{_0x4e679b['on']('addMarker:suggestion:attribute',(_0xa1a0b9,_0x14c8e4,_0x55d16d)=>{_0x55d16d['options']['showSuggestionHighlights']&&_0x75a12({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0xa1a0b9,_0x14c8e4,_0x55d16d);},{'priority':'highest'});}),_0x18bf98['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x212ccc,_0x2a278e)=>_0x2a278e['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x212ccc['substr'](0xb)}}),_0x18bf98['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5bc3ea,{writer:_0x25904a})=>{let _0x28bcfa='suggestion:'+_0x5bc3ea['getAttribute']('suggestion-type')+':'+_0x5bc3ea['getAttribute']('id');return _0x5bc3ea['getAttribute']('marker-count')&&(_0x28bcfa+=':'+_0x5bc3ea['getAttribute']('marker-count')),_0x25904a['createElement']('$marker',{'data-name':_0x28bcfa});}}),_0x18bf98['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x18bf98['conversion']['for']('editingDowncast')['add'](_0x31b6a4=>{_0x31b6a4['on']('addMarker:suggestion:formatBlock',_0x75a12(),{'priority':'high'});}),_0x18bf98['conversion']['for']('editingDowncast')['add'](_0xae5f0=>{_0xae5f0['on']('addMarker:suggestion:attribute',_0x75a12({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x18bf98['conversion']['for']('editingDowncast')['add'](_0x45db53=>{_0x45db53['on']('removeMarker:suggestion:formatBlock',(_0x30954d,_0x1fb7d1,_0x3e4696)=>{const _0x385754=_0x3e4696['mapper']['markerNameToElements'](_0x1fb7d1['markerName']);if(_0x385754){for(const _0x2577f9 of _0x385754)_0x2577f9['getCustomProperty']('addHighlight')||(_0x3e4696['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2577f9),_0x3e4696['writer']['removeAttribute']('data-suggestion',_0x2577f9),_0x3e4696['writer']['removeAttribute']('data-author-id',_0x2577f9),_0x3e4696['mapper']['unbindElementFromMarkerName'](_0x2577f9,_0x1fb7d1['markerName']));}},{'priority':'high'});}),_0x18bf98['conversion']['for']('editingDowncast')['add'](_0x15c245=>{_0x15c245['on']('removeMarker:suggestion:attribute',(_0x280227,_0x243b39,_0x4898e1)=>{const _0x527da6=_0x4898e1['mapper']['markerNameToElements'](_0x243b39['markerName']);if(!_0x527da6)return;const {id:_0x13abc9}=this['_splitMarkerName'](_0x243b39['markerName']),_0x1cca0d=this['_suggestions']['get'](_0x13abc9),_0x174fea=this['_getAttributeKey'](_0x1cca0d);if(this['_isBlockAttribute'](_0x174fea)){for(const _0x52c411 of _0x527da6)_0x52c411['getCustomProperty']('addHighlight')||(_0x4898e1['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x52c411),_0x4898e1['writer']['removeAttribute']('data-suggestion',_0x52c411),_0x4898e1['writer']['removeAttribute']('data-author-id',_0x52c411),_0x4898e1['mapper']['unbindElementFromMarkerName'](_0x52c411,_0x243b39['markerName']));}},{'priority':'high'});}),_0x18bf98['model']['document']['registerPostFixer'](_0x4b1ca1=>{let _0x3933c1=!0x1;const _0x319246=Array['from'](_0x18bf98['model']['document']['differ']['getChangedMarkers']()),_0xad7276=new Set();for(const {name:_0x285e97,data:_0x53101c}of _0x319246){const {group:_0x54954c,type:_0x42870f,subType:_0x440438,id:_0x17fb23}=this['_splitMarkerName'](_0x285e97);if('suggestion'!==_0x54954c)continue;const _0x49fb38=this['_suggestions']['get'](_0x17fb23);if(null!=_0x53101c['newRange']){'formatInline'==_0x42870f&&(_0x3933c1=_0x3933c1||Gt(_0x53101c['newRange'],_0x285e97,_0x4b1ca1,_0x18bf98['model']['schema']));const _0x78fd3c='attribute'==_0x42870f&&this['_isBlockAttribute'](_0x440438['split']('|')[0x0]);if(_0x53101c['newRange']['isCollapsed']||'$graveyard'==_0x53101c['newRange']['root']['rootName']||'formatBlock'==_0x42870f&&!Lt(_0x53101c['newRange'])||_0x78fd3c&&!Lt(_0x53101c['newRange'])||'deletion'==_0x42870f&&!(!Pt(_0x5f286c=_0x53101c['newRange'])&&!function(_0x54cc89){return _0x54cc89['start']['parent']==_0x54cc89['end']['nodeBefore']&&_0x54cc89['start']['isAtEnd'];}(_0x5f286c)))_0x4b1ca1['removeMarker'](_0x285e97),_0x3933c1=!0x0;else{if(!_0x49fb38||!_0x49fb38['isInContent'])continue;if(_0x53101c['newRange']&&_0x53101c['oldRange']&&_0x53101c['newRange']['isEqual'](_0x53101c['oldRange']))continue;_0xad7276['add'](_0x49fb38);}}}var _0x5f286c;return _0xad7276['size']>0x0&&(_0x3933c1=!!this['_joinWithAdjacentSuggestions'](_0xad7276)||_0x3933c1),_0x3933c1;}),_0x18bf98['model']['document']['registerPostFixer'](_0x213d66=>{let _0xdfa470=!0x1;for(const _0xeb9388 of _0x18bf98['model']['document']['differ']['getChanges']())if('insert'==_0xeb9388['type'])for(const _0x349114 of this['_suggestions']['values']()){if(_0x349114['isMultiRange']||!_0x349114['isInContent'])continue;const _0x1bde2b='formatBlock'==_0x349114['type'],_0x3687ab=this['_getAttributeKey'](_0x349114),_0xfe1fc6=_0x3687ab&&this['_isBlockAttribute'](_0x3687ab);if(!_0x1bde2b&&!_0xfe1fc6)continue;const _0x2e7162=_0x349114['getFirstRange']();if(_0x2e7162['start']['parent']!=_0x2e7162['end']['parent']&&!_0x2e7162['end']['isAtEnd']){const _0x3cc9da=_0x18bf98['model']['createPositionAt'](_0x2e7162['start']['nodeAfter'],'end'),_0x4c0812=_0x18bf98['model']['createRange'](_0x2e7162['start'],_0x3cc9da);_0x213d66['updateMarker'](_0x349114['getFirstMarker'](),{'range':_0x4c0812}),_0xdfa470=!0x0;}}return _0xdfa470;}),_0x18bf98['model']['document']['registerPostFixer'](_0x2c7a1f=>this['_processAttributeChanges'](_0x2c7a1f)),_0x18bf98['model']['document']['registerPostFixer'](_0x33d616=>!_0x33d616['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x33d616)),_0x18bf98['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x18bf98['model']['document']['on']('change:data',(_0x4654d2,_0x461797)=>{if(!_0x461797['isLocal']||_0x461797['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x2e4dec=_0x18bf98['model']['document']['differ']['getChanges']();if(0x0==_0x2e4dec['length'])return;const _0x4809d1=[],_0x290fb2=_0x2e4dec['filter'](_0x15193d=>'attribute'==_0x15193d['type']),_0x1e06ba=_0x2e4dec['filter'](_0x6ffcf1=>'insert'==_0x6ffcf1['type']&&'$text'!=_0x6ffcf1['name']);for(const _0x355b77 of _0x290fb2)this['_isRegisteredAttribute'](_0x355b77['attributeKey'])&&_0x4809d1['push']({'key':_0x355b77['attributeKey'],'newValue':_0x355b77['attributeNewValue'],'oldValue':_0x355b77['attributeOldValue'],'range':Jt(_0x355b77['range'],_0x18bf98['model'])});for(const _0x24bb24 of _0x1e06ba){if('rename'!=_0x24bb24['action']&&'refresh'!=_0x24bb24['action'])continue;const _0x2c3f69=Ht(_0x24bb24['position']['nodeAfter'],_0x18bf98['model']),_0x5630a8=_0x24bb24['before'];'rename'==_0x24bb24['action']&&_0x4809d1['push']({'key':m,'newValue':_0x24bb24['name'],'oldValue':_0x5630a8['name'],'range':_0x2c3f69});for(const [_0x59b7ed,_0x3cf1a9]of _0x5630a8['attributes']){if(!this['_isRegisteredAttribute'](_0x59b7ed))continue;const _0x44ac2d=_0x24bb24['attributes']['get'](_0x59b7ed);_0x3cf1a9!==_0x44ac2d&&_0x4809d1['push']({'key':_0x59b7ed,'newValue':_0x44ac2d,'oldValue':_0x3cf1a9,'range':_0x2c3f69});}for(const [_0x5b5a01,_0x5e11eb]of _0x24bb24['attributes'])this['_isRegisteredAttribute'](_0x5b5a01)&&(_0x5630a8['attributes']['has'](_0x5b5a01)||_0x4809d1['push']({'key':_0x5b5a01,'newValue':_0x5e11eb,'oldValue':null,'range':_0x2c3f69}));}0x0!=_0x4809d1['length']&&_0x18bf98['model']['enqueueChange'](_0x461797,_0x2805bd=>{const _0x1eeeb3=_0x17f70d();for(const {range:_0x3ade63,key:_0x441eed,oldValue:_0x5f16a7,newValue:_0x57da8b}of _0x4809d1)this['markAttributeChange'](_0x3ade63,_0x441eed,_0x5f16a7,_0x57da8b,{'groupId':_0x1eeeb3});this['_reduceExistingSuggestions'](_0x2805bd,_0x4809d1);});},{'priority':'lowest'}),_0x18bf98['model']['markers']['on']('update:suggestion',(_0x20025b,_0x5c280f,_0x39422b)=>{if(null==_0x39422b){const {id:_0x599fd3}=this['_splitMarkerName'](_0x5c280f['name']),_0x32f632=this['_suggestions']['get'](_0x599fd3);_0x32f632&&_0x32f632['addMarkerName'](_0x5c280f['name']);}}),_0x18bf98['model']['document']['on']('change:data',()=>{const _0xe3b1d9=Array['from'](_0x18bf98['model']['document']['differ']['getChangedMarkers']())['filter'](_0x4b27b2=>'suggestion'===this['_splitMarkerName'](_0x4b27b2['name'])['group']);if(0x0===_0xe3b1d9['length'])return;_0xe3b1d9['sort']((_0x2aa995,_0x3fc0a0)=>{const _0x18f181=_0x2aa995['data']['oldRange'],_0x48178f=_0x3fc0a0['data']['oldRange'];return null===_0x18f181&&null===_0x48178f?0x0:null===_0x18f181&&null!==_0x48178f?-0x1:null!==_0x18f181&&null===_0x48178f?0x1:_0x18f181['start']['isBefore'](_0x48178f['start'])?-0x1:0x1;});const _0x42eb6b=new Set(),_0x318133=new Set();for(const {name:_0x1b4f20,data:_0x1e0e13}of _0xe3b1d9){const {id:_0x202e14}=this['_splitMarkerName'](_0x1b4f20);if(null===_0x1e0e13['oldRange']){const _0x121583=this['_handleNewSuggestionMarker'](_0x1b4f20);_0x318133['add'](_0x121583);}else{const _0x1a4f59=this['_suggestions']['get'](_0x202e14);null!==_0x1e0e13['newRange']||_0x1a4f59['isInContent']?(_0x42eb6b['add'](_0x1a4f59['head']),_0x318133['add'](_0x1a4f59)):this['_removeSuggestion'](_0x1a4f59);}}_0x318133['size']>0x0&&this['_refreshSuggestionsChain'](_0x318133);for(const _0x32e5fc of _0x42eb6b)this['fire']('suggestionChanged',_0x32e5fc);}),_0x18bf98['model']['on']('applyOperation',(_0x4f22f9,_0x478e32)=>{const _0x4029f8=_0x478e32[0x0];if(!this['_suggestions']['size'])return;if(!_0x4029f8['isDocumentOperation'])return;if(_0x4029f8['batch']['isUndo']||!_0x4029f8['batch']['isLocal'])return;let _0x50278d,_0x5ae10e;switch(_0x4029f8['type']){case'insert':_0x50278d=_0x18bf98['model']['createPositionAt'](_0x4029f8['position']),_0x5ae10e=_0x50278d['getShiftedBy'](_0x4029f8['howMany']);break;case'split':_0x50278d=_0x18bf98['model']['createPositionAt'](_0x4029f8['splitPosition']),_0x5ae10e=_0x18bf98['model']['createPositionAt'](_0x4029f8['moveTargetPosition']);break;case'move':_0x50278d=_0x18bf98['model']['createPositionAt'](_0x4029f8['targetPosition']),_0x5ae10e=_0x50278d['getShiftedBy'](_0x4029f8['howMany']);break;default:return;}const _0x33acb0=_0x18bf98['model']['createRange'](_0x50278d,_0x5ae10e);_0x18bf98['model']['change'](()=>{for(const {suggestion:_0x1bd340,meta:_0x1d0135}of this['_findSuggestions'](_0x33acb0)){if(_0x1bd340['isMultiRange'])continue;if('formatInline'==_0x1bd340['type'])continue;const _0x5f36c4=this['_getAttributeKey'](_0x1bd340);if(_0x5f36c4&&this['_isBlockAttribute'](_0x5f36c4)&&'split'!=_0x4029f8['type'])continue;const _0x445e92=_0x1bd340['data']&&_0x1bd340['data']['multipleBlocks'];('formatBlock'!=_0x1bd340['type']||'split'==_0x4029f8['type']&&!_0x445e92)&&(_0x1d0135['containsRangeInObject']||'insertion'==_0x1bd340['type']&&_0x1d0135['isOwn']||_0x1bd340['getFirstRange']()['containsRange'](_0x33acb0)&&this['_breakSuggestionMarker'](_0x1bd340,_0x50278d,_0x5ae10e));}});},{'priority':'lowest'}),_0x18bf98['model']['on']('deleteContent',(_0x273da2,_0x43e24d)=>{const _0x40f52e=_0x43e24d[0x0],_0x2a1eea=_0x43e24d[0x1];if(_0x2a1eea&&_0x2a1eea['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x40f52e['isCollapsed'])return;const _0x591b81=_0x18bf98['model']['schema'],{start:_0x8bde8f,end:_0x31fefa}=_0x40f52e['getFirstRange'](),_0x1ded85=_0x8bde8f['nodeAfter']&&_0x591b81['isLimit'](_0x8bde8f['nodeAfter'])?null:_0x591b81['getNearestSelectionRange'](_0x8bde8f,'forward'),_0x4661e3=_0x31fefa['nodeBefore']&&_0x591b81['isLimit'](_0x31fefa['nodeBefore'])?null:_0x591b81['getNearestSelectionRange'](_0x31fefa,'backward'),_0x5d816d=_0x18bf98['model']['createRange'](_0x1ded85?_0x1ded85['start']:_0x8bde8f,_0x4661e3?_0x4661e3['end']:_0x31fefa);_0x18bf98['model']['change'](_0xef1517=>{this['markDeletion'](_0x5d816d);const _0x1c4741=_0x18bf98['model']['schema']['getNearestSelectionRange'](_0x5d816d['start']);_0x40f52e['is']('documentSelection')?_0xef1517['setSelection'](_0x1c4741):_0x40f52e['setTo'](_0x1c4741);}),_0x273da2['stop']();},{'priority':_0x12460b['normal']+0xa}),_0x18bf98['model']['on']('insertContent',(_0x3e9ea2,_0x39eb00)=>{const _0x246dd2=_0x39eb00[_0x39eb00['length']-0x1];_0x246dd2&&_0x246dd2['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x18bf98['model']['change'](()=>{let _0x5e854f=_0x18bf98['model']['insertContent'](_0x39eb00[0x0],_0x39eb00[0x1],_0x39eb00[0x2],{'forceDefaultExecution':!0x0});if(!_0x5e854f)return;_0x3e9ea2['return']=_0x5e854f['clone']();const _0x16b0ef=_0x5e854f['end']['nodeBefore'],_0x38c4f4=_0x18bf98['model']['schema'];_0x16b0ef&&_0x38c4f4['isBlock'](_0x16b0ef)&&!_0x38c4f4['isObject'](_0x16b0ef)&&(_0x5e854f=_0x18bf98['model']['createRange'](_0x5e854f['start'],_0x18bf98['model']['createPositionAt'](_0x16b0ef,'end'))),this['markInsertion'](_0x5e854f);}),_0x3e9ea2['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x11cd4f=new O(_0x18bf98,this['_suggestions']);_0x18bf98['commands']['add']('acceptSuggestion',_0x11cd4f),this['enableCommand']('acceptSuggestion');const _0xda2e7c=new R(_0x18bf98,this['_suggestions']);_0x18bf98['commands']['add']('discardSuggestion',_0xda2e7c),this['enableCommand']('discardSuggestion'),_0x18bf98['commands']['add']('acceptAllSuggestions',new x(_0x18bf98,_0x11cd4f,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x18bf98['commands']['add']('discardAllSuggestions',new x(_0x18bf98,_0xda2e7c,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x18bf98['commands']['add']('acceptSelectedSuggestions',new E(_0x18bf98,_0x11cd4f,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x18bf98['commands']['add']('discardSelectedSuggestions',new E(_0x18bf98,_0xda2e7c,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x28a374=_0x18bf98['plugins']['get']('CommentsRepository');this['listenTo'](_0x28a374,'addComment',(_0x7ef6c1,{threadId:_0x4a714b})=>{const _0x55de8e=this['_suggestions']['get'](_0x4a714b);_0x55de8e&&_0x55de8e['commentThread']&&0x1===_0x55de8e['commentThread']['length']&&this['_updateSuggestionData'](_0x4a714b,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x28a374,'removeComment',(_0x777d8c,{threadId:_0x43472a})=>{const _0x3d71f2=this['_suggestions']['get'](_0x43472a);_0x3d71f2&&_0x3d71f2['commentThread']&&!_0x3d71f2['commentThread']['length']&&this['_updateSuggestionData'](_0x43472a,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x4bf5c5){const _0x4992f5=_0x5955e2([0x70,0x77,0x69,0x55,0x57,0x71,0x62,0x6e,0x6b,0x4c,0x35,0x50,0x56,0x38,0x72,0x37,0x44,0x6d,0x78,0x36,0x6f,0x63,0x4e,0x32,0x46,0x4a,0x49,0x6a,0x4f,0x58,0x53,0x51,0x31,0x68,0x41,0x76,0x66,0x64,0x34,0x59,0x6c,0x39,0x74,0x33,0x61,0x4d,0x67,0x4b,0x45,0x73,0x42,0x52,0x47,0x54,0x5a,0x75,0x79,0x43,0x65,0x48,0x7a,0x30]),_0x52c449=0x511aff1e,_0x39a482=0x511da10e^_0x52c449,_0x152ef5=window[_0x5955e2([0x44,0x61,0x74,0x65])][_0x5955e2([0x6e,0x6f,0x77])](),_0x45ee1a=_0x4bf5c5[_0x5955e2([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5ef920=new window[(_0x5955e2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3ace75=>{_0x45ee1a[_0x5955e2([0x6f,0x6e,0x63,0x65])](_0x5955e2([0x72,0x65,0x61,0x64,0x79]),_0x3ace75);}),_0x35dd5e={[_0x5955e2([0x6b,0x74,0x79])]:_0x5955e2([0x45,0x43]),[_0x5955e2([0x75,0x73,0x65])]:_0x5955e2([0x73,0x69,0x67]),[_0x5955e2([0x63,0x72,0x76])]:_0x5955e2([0x50,0x2d,0x32,0x35,0x36]),[_0x5955e2([0x78])]:_0x5955e2([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]),[_0x5955e2([0x79])]:_0x5955e2([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]),[_0x5955e2([0x61,0x6c,0x67])]:_0x5955e2([0x45,0x53,0x32,0x35,0x36])},_0x30fa7e=_0x45ee1a[_0x5955e2([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5955e2([0x67,0x65,0x74])](_0x5955e2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4a8dde(){let _0x5deee4,_0x3bd3a8=null,_0x521151=null;try{if(_0x30fa7e==_0x5955e2([0x47,0x50,0x4c]))return _0x5955e2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5deee4=_0x4a4e12(),!_0x5deee4)return _0x5955e2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5deee4[_0x5955e2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x521151=_0x35b093(_0x5deee4[_0x5955e2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5deee4[_0x5955e2([0x6a,0x74,0x69])])),await _0x5e8496()?_0x5049bf()?_0x23b063()?_0x5955e2([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xcc7f64()?(_0x5deee4[_0x5955e2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5955e2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3bd3a8=_0x3816e7(_0x5955e2([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5deee4[_0x5955e2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5955e2([0x74,0x72,0x69,0x61,0x6c])&&(_0x3bd3a8=_0x3816e7(_0x5955e2([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3d7156()):_0x5955e2([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5955e2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5955e2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x48e884){return _0x5955e2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x23b063(){const _0x326640=[_0x5955e2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5955e2([0x74,0x72,0x69,0x61,0x6c])][_0x5955e2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5deee4[_0x5955e2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x152ef5/0x3e8:0xe10*_0x39a482;return _0x5deee4[_0x5955e2([0x65,0x78,0x70])]<_0x326640;}function _0x5049bf(){const _0x6b30b1=_0x5deee4[_0x5955e2([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x6b30b1)return!0x1;if(_0x6b30b1[_0x5955e2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5955e2([0x2a])))return!0x0;if(_0x6b30b1[_0x5955e2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5955e2([0x54,0x43])))return!0x0;if(_0x6b30b1[_0x5955e2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5955e2([0x52,0x54,0x43]))){if(_0x11b59a())return!0x0;if(_0x3f30c2()||_0x267022())return!0x0;}return!0x1;}function _0xcc7f64(){const _0x4eb02f=_0x5deee4[_0x5955e2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4eb02f||0x0==_0x4eb02f[_0x5955e2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1f94bb}=new URL(window[_0x5955e2([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4eb02f[_0x5955e2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f94bb))return!0x0;const _0x77c129=_0x1f94bb[_0x5955e2([0x73,0x70,0x6c,0x69,0x74])](_0x5955e2([0x2e]));return _0x4eb02f[_0x5955e2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3be6e6=>_0x3be6e6[_0x5955e2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5955e2([0x2a])))[_0x5955e2([0x6d,0x61,0x70])](_0x4f4565=>_0x4f4565[_0x5955e2([0x73,0x70,0x6c,0x69,0x74])](_0x5955e2([0x2e])))[_0x5955e2([0x73,0x6f,0x6d,0x65])](_0x375c2b=>_0x77c129[_0x5955e2([0x65,0x76,0x65,0x72,0x79])]((_0x3317a9,_0x531080)=>_0x375c2b[_0x531080]===_0x3317a9||_0x375c2b[_0x531080]===_0x5955e2([0x2a])));}function _0x3d7156(){return _0x3bd3a8&&_0x521151?new window[(_0x5955e2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x336572,_0x791e4a)=>{_0x3bd3a8[_0x5955e2([0x74,0x68,0x65,0x6e])](_0x336572,_0x791e4a),_0x521151[_0x5955e2([0x74,0x68,0x65,0x6e])](_0x2edb86=>{_0x2edb86!=_0x5955e2([0x56,0x61,0x6c,0x69,0x64])&&_0x336572(_0x2edb86);},_0x791e4a);}):_0x3bd3a8||_0x521151||_0x5955e2([0x56,0x61,0x6c,0x69,0x64]);}}function _0x35b093(_0x3d1127,_0x36bd74){return new window[(_0x5955e2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x12d989=>{if(_0x3e4839())return _0x12d989(_0x5955e2([0x56,0x61,0x6c,0x69,0x64]));_0x3ae205(),_0x45ee1a[_0x5955e2([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5955e2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5eef8d=!0x1;const _0x17b0fb=_0x17f70d();function _0x36d829(_0x5a73df){return!!_0x5a73df&&(typeof _0x5a73df===_0x5955e2([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5a73df===_0x5955e2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5a73df[_0x5955e2([0x74,0x68,0x65,0x6e])]===_0x5955e2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5a73df[_0x5955e2([0x63,0x61,0x74,0x63,0x68])]===_0x5955e2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xe27e7e(_0x123f9e){_0x1df4e5(_0x123f9e)[_0x5955e2([0x74,0x68,0x65,0x6e])](_0x19404c=>{if(!_0x19404c||_0x19404c[_0x5955e2([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5955e2([0x6f,0x6b]))return _0x5955e2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x87285a(_0x481212(_0x17b0fb+_0x36bd74))!=_0x19404c[_0x5955e2([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5955e2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5955e2([0x56,0x61,0x6c,0x69,0x64]);})[_0x5955e2([0x74,0x68,0x65,0x6e])](_0x4e7d6a=>(_0xc22ac(),_0x4e7d6a),()=>{const _0x24992f=_0x5ce4bd();return null==_0x24992f?(_0xc22ac(),_0x5955e2([0x56,0x61,0x6c,0x69,0x64])):_0x5955e2(_0x152ef5-_0x24992f>(0x75167b1e^_0x52c449)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5955e2([0x74,0x68,0x65,0x6e])](_0x12d989)[_0x5955e2([0x63,0x61,0x74,0x63,0x68])](()=>{_0x12d989(_0x5955e2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xe70ca1=0x512c119e^_0x52c449;function _0xc22ac(){const _0x370030=_0x5955e2([0x6c,0x6c,0x63,0x74,0x2d])+_0x87285a(_0x481212(_0x3d1127)),_0x150ef0=_0x348323(_0x87285a(window[_0x5955e2([0x4d,0x61,0x74,0x68])][_0x5955e2([0x63,0x65,0x69,0x6c])](_0x152ef5/_0xe70ca1)));window[_0x5955e2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5955e2([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x370030,_0x150ef0);}function _0x5ce4bd(){const _0x778dae=_0x5955e2([0x6c,0x6c,0x63,0x74,0x2d])+_0x87285a(_0x481212(_0x3d1127)),_0x16cd4d=window[_0x5955e2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5955e2([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x778dae);return _0x16cd4d?window[_0x5955e2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x348323(_0x16cd4d),0x10)*_0xe70ca1:null;}function _0x1df4e5(_0x536972){return new window[(_0x5955e2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x590c15,_0xafbccd)=>{_0x536972[_0x5955e2([0x74,0x68,0x65,0x6e])](_0x590c15,_0xafbccd),window[_0x5955e2([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xafbccd,0x511b2bde^_0x52c449);});}}_0x45ee1a[_0x5955e2([0x6f,0x6e])](_0x5955e2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x163be9,_0x24a291)=>{if(_0x24a291[0x0]!=_0x3d1127)return _0x12d989(_0x5955e2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x24a291[0x1]={..._0x24a291[0x1],[_0x5955e2([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x17b0fb};},{[_0x5955e2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5955e2([0x68,0x69,0x67,0x68])}),_0x45ee1a[_0x5955e2([0x6f,0x6e])](_0x5955e2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x435538=>{_0x36d829(_0x435538[_0x5955e2([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5eef8d=!0x0,_0xe27e7e(_0x435538[_0x5955e2([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5955e2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5955e2([0x6c,0x6f,0x77])}),_0x5ef920[_0x5955e2([0x74,0x68,0x65,0x6e])](()=>{_0x5eef8d||_0x12d989(_0x5955e2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3e4839(){return _0x45ee1a[_0x5955e2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5955e2([0x76,0x69,0x65,0x77])][_0x5955e2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5955e2([0x61,0x75,0x74,0x6f]);}function _0x3ae205(){_0x45ee1a[_0x5955e2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5955e2([0x76,0x69,0x65,0x77])][_0x5955e2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5955e2([0x61,0x75,0x74,0x6f]);}}function _0x3816e7(_0xf8649e){const _0xfcec0f=[new window[(_0x5955e2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x20de42=>setTimeout(_0x20de42,0x5113c1d2^_0x52c449)),_0x5ef920[_0x5955e2([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5955e2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3044d2=>{let _0xad1c72=0x0;_0x45ee1a[_0x5955e2([0x6d,0x6f,0x64,0x65,0x6c])][_0x5955e2([0x6f,0x6e])](_0x5955e2([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x599e87,_0x5be680)=>{_0x5be680[0x0][_0x5955e2([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xad1c72++,_0xad1c72==(0x511afee6^_0x52c449)&&(_0x3044d2(),_0x599e87[_0x5955e2([0x6f,0x66,0x66])]());});}))];return window[_0x5955e2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5955e2([0x72,0x61,0x63,0x65])](_0xfcec0f)[_0x5955e2([0x74,0x68,0x65,0x6e])](()=>_0xf8649e);}async function _0x1e0aad(){await _0x5ef920,_0x45ee1a[_0x5955e2([0x6d,0x6f,0x64,0x65,0x6c])][_0x5955e2([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x135b3a,_0x45ee1a[_0x5955e2([0x6d,0x6f,0x64,0x65,0x6c])][_0x5955e2([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x135b3a,_0x45ee1a[_0x5955e2([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5955e2([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x11b59a(){return _0x3ed23f(_0x5955e2([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x56c6bd(_0x5955e2([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x5955e2([0x73,0x74,0x61,0x74,0x65])]==_0x5955e2([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x3f30c2(){return _0x3ed23f(_0x5955e2([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 _0x267022(){return _0x3ed23f(_0x5955e2([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x457469(_0x58801e){const _0x361680=_0x3b5561();_0x45ee1a[_0x361680]=_0x5955e2([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x58801e,_0x58801e!=_0x5955e2([0x56,0x61,0x6c,0x69,0x64])&&_0x1e0aad();}function _0x3b5561(){const _0x2c059b=window[_0x5955e2([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5955e2([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5955e2([0x6e,0x6f,0x77])]())[_0x5955e2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5955e2([0x2e]),'');let _0x28241f=_0x5955e2([0x70]);for(let _0x2e0bcb=0x0;_0x2e0bcb<_0x2c059b[_0x5955e2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2e0bcb+=0x2){let _0x2f9fc4=window[_0x5955e2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2c059b[_0x5955e2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2e0bcb,_0x2e0bcb+0x2));_0x2f9fc4>=_0x4992f5[_0x5955e2([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2f9fc4-=_0x4992f5[_0x5955e2([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x28241f+=_0x4992f5[_0x2f9fc4];}return _0x28241f;}function _0x4a4e12(){const _0x567cc3=_0x30fa7e[_0x5955e2([0x73,0x70,0x6c,0x69,0x74])](_0x5955e2([0x2e]));if(0x3!=_0x567cc3[_0x5955e2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5d9575(_0x567cc3[0x1]);function _0x5d9575(_0x5f374b){const _0x362d88=_0x5193ae(_0x5f374b);return _0x362d88&&_0x55a8d9()?_0x362d88:null;function _0x55a8d9(){const _0x440206=_0x362d88[_0x5955e2([0x6a,0x74,0x69])],_0x1c213f=window[_0x5955e2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x440206[_0x5955e2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x440206[_0x5955e2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3353f9={..._0x362d88,[_0x5955e2([0x6a,0x74,0x69])]:_0x440206[_0x5955e2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x440206[_0x5955e2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3353f9[_0x5955e2([0x76,0x63])],_0x481212(_0x3353f9)==_0x1c213f;}}}async function _0x5e8496(){let _0x467de4=!0x0;try{const _0x6e60e6=_0x30fa7e[_0x5955e2([0x73,0x70,0x6c,0x69,0x74])](_0x5955e2([0x2e])),[_0x65d65f,_0x5c3357,_0x4884d6]=_0x6e60e6;return _0x1ea679(_0x65d65f),await _0x189331(_0x65d65f,_0x5c3357,_0x4884d6),_0x467de4;}catch(_0x17bf9a){return!0x1;}function _0x1ea679(_0x32722b){const _0x132a01=_0x5193ae(_0x32722b);_0x132a01&&_0x132a01[_0x5955e2([0x61,0x6c,0x67])]==_0x5955e2([0x45,0x53,0x32,0x35,0x36])||(_0x467de4=!0x1);}async function _0x189331(_0x4a649a,_0x549bdc,_0x408bce){const _0x33817b=window[_0x5955e2([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5955e2([0x66,0x72,0x6f,0x6d])](_0x24b7e2(_0x408bce),_0x58108d=>_0x58108d[_0x5955e2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3d7e61=new window[(_0x5955e2([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5955e2([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4a649a+_0x5955e2([0x2e])+_0x549bdc),_0x19aeb7=window[_0x5955e2([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5955e2([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x19aeb7)return;const _0x107cd7=await _0x19aeb7[_0x5955e2([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5955e2([0x6a,0x77,0x6b]),_0x35dd5e,{[_0x5955e2([0x6e,0x61,0x6d,0x65])]:_0x5955e2([0x45,0x43,0x44,0x53,0x41]),[_0x5955e2([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5955e2([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5955e2([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x19aeb7[_0x5955e2([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5955e2([0x6e,0x61,0x6d,0x65])]:_0x5955e2([0x45,0x43,0x44,0x53,0x41]),[_0x5955e2([0x68,0x61,0x73,0x68])]:{[_0x5955e2([0x6e,0x61,0x6d,0x65])]:_0x5955e2([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x107cd7,_0x33817b,_0x3d7e61)||(_0x467de4=!0x1);}}function _0x5193ae(_0x1636d5){return _0x1636d5[_0x5955e2([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5955e2([0x65,0x79]))?JSON[_0x5955e2([0x70,0x61,0x72,0x73,0x65])](_0x24b7e2(_0x1636d5)):null;}function _0x24b7e2(_0x33f1bb){return window[_0x5955e2([0x61,0x74,0x6f,0x62])](_0x33f1bb[_0x5955e2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5955e2([0x2b]))[_0x5955e2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5955e2([0x2f])));}function _0x481212(_0x2e7b37){let _0x576bd1=0x1505;function _0x5c5aed(_0x1096de){for(let _0x5ac0f0=0x0;_0x5ac0f0<_0x1096de[_0x5955e2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5ac0f0++){const _0x5e2cf4=_0x1096de[_0x5955e2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5ac0f0);_0x576bd1=(_0x576bd1<<0x5)+_0x576bd1+_0x5e2cf4,_0x576bd1&=_0x576bd1;}}function _0x3fc8a4(_0x54b17d){Array[_0x5955e2([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x54b17d)?_0x54b17d[_0x5955e2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3fc8a4):_0x54b17d&&typeof _0x54b17d==_0x5955e2([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5955e2([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x54b17d)[_0x5955e2([0x73,0x6f,0x72,0x74])]()[_0x5955e2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3df704,_0x48978b])=>{_0x5c5aed(_0x3df704),_0x3fc8a4(_0x48978b);}):_0x5c5aed(window[_0x5955e2([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x54b17d));}return _0x3fc8a4(_0x2e7b37),_0x576bd1>>>0x0;}function _0x87285a(_0x124211){return _0x124211[_0x5955e2([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5955e2([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5955e2([0x30]));}function _0x348323(_0x383fe0){return _0x383fe0[_0x5955e2([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5955e2([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5955e2([0x6a,0x6f,0x69,0x6e])]('');}function _0x3ed23f(_0x2e25cc){return _0x45ee1a[_0x5955e2([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5955e2([0x68,0x61,0x73])](_0x2e25cc);}function _0x56c6bd(_0x1699ae){return _0x45ee1a[_0x5955e2([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5955e2([0x67,0x65,0x74])](_0x1699ae);}function _0x135b3a(){}function _0x5955e2(_0x2d7d6b){return _0x2d7d6b['map'](_0xc6439e=>String['fromCharCode'](_0xc6439e))['join']('');}_0x457469(await _0x4a8dde());}(this);}set['adapter'](_0x353e5e){if(this['_adapter'])throw new _0x1d0b44('track-changes-adapter-already-set',this);this['_adapter']=_0x353e5e;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x18a972=!0x1,toJSON:_0x53e525=!0x1}={}){const _0x32665f=[];for(const _0x30980d of this['_suggestions']['values']())_0x18a972&&!_0x30980d['isInContent']||_0x32665f['push'](_0x30980d);return _0x53e525?_0x32665f['map'](_0x84334d=>_0x84334d['toJSON']()):_0x32665f;}['getSuggestion'](_0x4d0b9e){const _0x2be9ab=this['_suggestions']['get'](_0x4d0b9e);if(!_0x2be9ab)throw new _0x1d0b44('track-changes-suggestion-not-found',this);return _0x2be9ab;}['hasSuggestion'](_0x87624c){return this['_suggestions']['has'](_0x87624c);}['addSuggestionData'](_0x518bd5){const {authorId:_0x26c677,id:_0x37f3db,attributes:_0x1363be}=_0x518bd5,[_0x47a484,_0x25f697]=_0x518bd5['type']['split'](':'),_0x273071=this['_suggestions']['get'](_0x37f3db)||this['_createSuggestion'](_0x47a484,_0x25f697,_0x37f3db,_0x26c677,_0x1363be);if(this['_addThreadToSuggestion'](_0x273071),this['_checkSuggestionCorrectness'](_0x273071,_0x47a484,_0x25f697||null,_0x26c677),_0x273071['createdAt']=_0x518bd5['createdAt'],_0x273071['_isDataLoaded']=!0x0,_0x1363be&&_0x1363be['@external']){const _0x1ce9fe=_0x1363be['@external'],_0x2d34b2=this['_getExternalAuthor'](_0x1ce9fe['authorName']);_0x273071['authoredAt']=_0x1ce9fe['createdAt'],_0x273071['author']=_0x2d34b2,_0x273071['isExternal']=!0x0;}else _0x273071['authoredAt']=_0x518bd5['createdAt'];switch(_0x518bd5['data']&&(_0x273071['data']=_0x518bd5['data']),_0x518bd5['attributes']&&(_0x273071['attributes']=_0x518bd5['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x273071['_saved']=!0x0),this['_suggestionState']['get'](_0x273071)){case'notReady':this['_suggestionState']['set'](_0x273071,'dataReady');break;case'markerReady':_0x273071['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x273071])),this['_refreshSuggestionsChain'](new Set([_0x273071])),this['_suggestionState']['set'](_0x273071,'ready'),this['fire']('suggestionLoaded',_0x273071)):this['_suggestionState']['set'](_0x273071,'removed');}return _0x273071;}['acceptSuggestion'](_0x40be19){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x20606e of _0x40be19['getAllAdjacentSuggestions']())_0x20606e['accept']();});});}['discardSuggestion'](_0x31072d){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2bc948 of _0x31072d['getAllAdjacentSuggestions']())_0x2bc948['discard']();});});}['enableCommand'](_0x45bee4,_0x197913){const _0x4727cd=this['editor']['commands']['get'](_0x45bee4);if(!_0x4727cd)throw new _0x1d0b44('track-changes-command-not-found',this,{'commandName':_0x45bee4});if(this['_enabledCommands']['has'](_0x4727cd))throw new _0x1d0b44('track-changes-enable-command-twice',this,{'commandName':_0x45bee4});this['_enabledCommands']['add'](_0x4727cd),_0x197913&&_0x4727cd['on']('execute',(_0x737770,_0x162584)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x162584['length']>0x0&&_0x162584[_0x162584['length']-0x1]&&_0x162584[_0x162584['length']-0x1]['forceDefaultExecution']?_0x162584['pop']():(_0x737770['return']=_0x197913((..._0x5f19cc)=>_0x4727cd['execute'](..._0x5f19cc,{'forceDefaultExecution':!0x0}),..._0x162584),_0x737770['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x2bca08){let _0x5774c2,_0x2c0dcb;const _0x3d8064=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x5774c2=_0x2bca08();}catch(_0x3c02b7){_0x2c0dcb=_0x3c02b7;}return _0x3d8064||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x2c0dcb&&_0x1d0b44['rethrowUnexpectedError'](_0x2c0dcb,this),_0x5774c2;}['markInsertion'](_0x41e248,_0x5ee120=null,_0x475bf8={}){if(_0x41e248['isCollapsed'])return null;const _0x12c8f8=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x351a3b,meta:_0x1fa0e9}of this['_findSuggestions'](_0x41e248,'insertion'))if(_0x1fa0e9['isOwn']){if(!_0x1fa0e9['isNextTo']){if(_0x1fa0e9['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Kt(_0x351a3b,_0x475bf8))continue;return _0x351a3b;}if(Kt(_0x351a3b,_0x475bf8))return _0x351a3b;this['_breakSuggestionMarker'](_0x351a3b,_0x41e248['start'],_0x41e248['end']);break;}if(_0x5ee120==_0x351a3b['subType']&&Kt(_0x351a3b,_0x475bf8)){const _0x56a2bd=_0x351a3b['getFirstRange']();return _0x56a2bd['start']['isEqual'](_0x41e248['end'])?this['_setSuggestionRange'](_0x351a3b,this['_model']['createRange'](_0x41e248['start'],_0x56a2bd['end'])):this['_setSuggestionRange'](_0x351a3b,this['_model']['createRange'](_0x56a2bd['start'],_0x41e248['end'])),_0x351a3b;}}const _0x2f3a70=_0x17f70d(),_0x1bd2f5=_0x12c8f8['id'],_0x138277=_0x5ee120?'insertion:'+_0x5ee120:'insertion',_0x4cb2bd=this['_setSuggestionData']({'id':_0x2f3a70,'type':_0x138277,'createdAt':new Date(),'authorId':_0x1bd2f5,'attributes':_0x475bf8});return this['_addSuggestionMarker'](_0x138277,_0x2f3a70,_0x1bd2f5,_0x41e248),_0x4cb2bd;}['markMultiRangeInsertion'](_0x43ebea,_0x303b19='multi',_0x19c26={}){const _0x3eaaff=this['editor']['plugins']['get']('Users')['me'],_0x47e05c=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x303b19,'join');for(const _0x358dc4 of this['getSuggestions']())if(_0x358dc4['author']['id']==_0x3eaaff['id']&&'insertion'==_0x358dc4['type']&&_0x358dc4['subType']==_0x303b19&&Kt(_0x358dc4,_0x19c26)&&(_0x47e05c(_0x358dc4['getRanges'](),_0x43ebea)||_0x47e05c(_0x43ebea,_0x358dc4['getRanges']()))){for(const _0x1541c0 of _0x43ebea)_0x358dc4['addRange'](_0x1541c0);return _0x358dc4;}for(const {suggestion:_0x5029e6,meta:_0x32fe31}of this['_findSuggestions'](_0x43ebea,'insertion')){if(!_0x32fe31['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x32fe31['containsRangeInObject'])continue;if(!Kt(_0x5029e6,_0x19c26))continue;let _0x2093a9=!0x0;for(const _0x57e828 of _0x5029e6['getRanges']())for(const _0x15d828 of _0x43ebea)if(!_0x57e828['containsRange'](_0x15d828)){_0x2093a9=!0x1;break;}if(_0x2093a9)return _0x5029e6;}const _0x560536=_0x17f70d(),_0x15d688=_0x3eaaff['id'],_0xf83ad2='insertion:'+_0x303b19,_0x1bb959=this['_setSuggestionData']({'id':_0x560536,'type':_0xf83ad2,'createdAt':new Date(),'authorId':_0x15d688,'attributes':_0x19c26});for(const _0x5cde38 of _0x43ebea)this['_addSuggestionMarker'](_0xf83ad2,_0x560536,_0x15d688,_0x5cde38,u['getMultiRangeId']());return _0x1bb959;}['markInlineFormat'](_0x5c8fae,_0x3e97a3,_0x28a8f2=null,_0x1c7fba={}){if(_0x28a8f2=_0x28a8f2||Ft(_0x3e97a3),_0x5c8fae['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x1e1790=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x28a8f2,'accept');return this['forceDefaultExecution'](()=>_0x1e1790([_0x5c8fae],_0x3e97a3,_0x1c7fba)),null;}const _0x113313=this['editor']['plugins']['get']('Users')['me'],_0x5c66eb=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x11e816,meta:_0x5653dd}of this['_findSuggestions'](_0x5c8fae,'insertion'))_0x5653dd['isOwn']&&!_0x5653dd['isInsideObject']&&_0x5c66eb['push'](..._0x11e816['getRanges']());}const _0x11a955=function(_0x53dd01,_0x20d050){const _0x48c70b=[];for(const _0x5322b7 of _0x20d050){const _0x34fea6=_0x53dd01['getIntersection'](_0x5322b7);_0x34fea6&&_0x48c70b['push'](_0x34fea6);}return _0x48c70b;}(_0x5c8fae,_0x5c66eb),_0x43a6cc=function(_0x51835c,_0x3a7c9b){const _0x4b3d51=[_0x51835c];for(const _0x47f14d of _0x3a7c9b){let _0x12b694=0x0;for(;_0x12b694<_0x4b3d51['length'];){const _0x4804dc=_0x4b3d51[_0x12b694]['getDifference'](_0x47f14d);_0x4b3d51['splice'](_0x12b694,0x1,..._0x4804dc),_0x12b694+=_0x4804dc['length'];}}return _0x4b3d51;}(_0x5c8fae,_0x5c66eb);_0x11a955['length']&&this['_model']['change'](()=>{for(const _0x473ed0 of _0x11a955){const _0x2a8213=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x28a8f2,'accept');this['forceDefaultExecution'](()=>_0x2a8213([_0x473ed0],_0x3e97a3,_0x1c7fba));}});for(const _0x33eda1 of _0x43a6cc){let _0xcfda5c=null,_0x4387b4=_0x33eda1['start'],_0x6361b4=_0x33eda1['end'];for(const {suggestion:_0x45f289,meta:_0x54427b}of this['_findSuggestions'](_0x33eda1,'formatInline')){if(!_0x54427b['isOwn'])continue;if(_0x45f289['subType']!=_0x28a8f2)continue;if(!Kt(_0x45f289,_0x1c7fba))continue;const _0x22951f=_0x45f289['getFirstRange']();if(_0x22951f['containsRange'](_0x33eda1,!0x0))return null;_0x4387b4=_0x4387b4['isBefore'](_0x22951f['start'])?_0x4387b4:_0x22951f['start'],_0x6361b4=_0x6361b4['isAfter'](_0x22951f['end'])?_0x6361b4:_0x22951f['end'],_0xcfda5c?_0x22951f['start']['isBefore'](_0xcfda5c['getFirstRange']()['start'])?(_0xcfda5c['removeMarkers'](),_0xcfda5c=_0x45f289):_0x45f289['removeMarkers']():_0xcfda5c=_0x45f289;}const _0x4358ba=this['_model']['createRange'](_0x4387b4,_0x6361b4);if(_0xcfda5c)this['_setSuggestionRange'](_0xcfda5c,_0x4358ba);else{const _0x54f6a0=_0x17f70d(),_0x2b343f=_0x113313['id'];this['_setSuggestionData']({'id':_0x54f6a0,'type':'formatInline:'+_0x28a8f2,'data':_0x3e97a3,'createdAt':new Date(),'authorId':_0x2b343f,'attributes':_0x1c7fba}),this['_addSuggestionMarker']('formatInline:'+_0x28a8f2,_0x54f6a0,_0x2b343f,_0x4358ba);}}return null;}['markBlockFormat'](_0x3bec80,_0x306919,_0x225ee9=[],_0x1d2d27=null,_0x56083a={}){_0x306919['formatGroupId']||(_0x306919['formatGroupId']=_0x306919['commandName']),_0x306919['multipleBlocks']=_0x3bec80['is']('range'),_0x1d2d27=_0x1d2d27||Ft(_0x306919);const _0x16962b=_0x225ee9['map'](_0x490ce7=>Ht(_0x490ce7,this['_model'])),_0x40871a=_0x3bec80['is']('range')?_0x3bec80:Ht(_0x3bec80,this['_model']);if('never'===this['_trackFormatChanges']){const _0x3b3c76=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1d2d27,'accept');return this['forceDefaultExecution'](()=>_0x3b3c76([_0x40871a],_0x306919,_0x56083a)),null;}_0x16962b['push'](_0x40871a);let _0x5c6eff=!0x0;for(const _0x5487bf of _0x16962b)if(!this['_rangeIsInLocalUserInsertion'](_0x5487bf)){_0x5c6eff=!0x1;break;}if(_0x5c6eff&&'always'!==this['_trackFormatChanges']){const _0x88828e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1d2d27,'accept');return this['forceDefaultExecution'](()=>_0x88828e([_0x40871a],_0x306919,_0x56083a)),null;}let _0x4f4344=null,_0x4d481c=_0x40871a['start'],_0x3eeed1=_0x40871a['end'];for(const {suggestion:_0x3728eb,meta:_0x11ebe0}of this['_findSuggestions'](_0x40871a,'formatBlock')){if(!_0x11ebe0['isOwn'])continue;if(_0x11ebe0['isNextTo']||_0x11ebe0['containsRangeInObject']||_0x11ebe0['isInsideObject'])continue;if(_0x3728eb['data']['formatGroupId']!=_0x306919['formatGroupId'])continue;if(!Kt(_0x3728eb,_0x56083a))continue;const _0x2aa2d0=_0x3728eb['getFirstRange']();if(_0x3728eb['subType']==_0x1d2d27){if(_0x2aa2d0['containsRange'](_0x40871a,!0x0))return null;_0x4d481c=_0x4d481c['isBefore'](_0x2aa2d0['start'])?_0x4d481c:_0x2aa2d0['start'],_0x3eeed1=_0x3eeed1['isAfter'](_0x2aa2d0['end'])?_0x3eeed1:_0x2aa2d0['end'],_0x4f4344?_0x2aa2d0['start']['isBefore'](_0x4f4344['getFirstRange']()['start'])?(_0x4f4344['removeMarkers'](),_0x4f4344=_0x3728eb):_0x3728eb['removeMarkers']():_0x4f4344=_0x3728eb;}else{const _0x23cd68=_0x40871a['getIntersection'](_0x2aa2d0);this['_cutOutSuggestionMarker'](_0x3728eb,_0x23cd68);}}const _0x319e2f=this['editor']['plugins']['get']('Users')['me'],_0x4eddb5=_0x17f70d(),_0x2b1106=_0x319e2f['id'];if(_0x4f4344)return this['_setSuggestionRange'](_0x4f4344,this['_model']['createRange'](_0x4d481c,_0x3eeed1)),_0x4f4344;{const _0x5f1ca7=this['_setSuggestionData']({'id':_0x4eddb5,'type':'formatBlock:'+_0x1d2d27,'data':_0x306919,'createdAt':new Date(),'authorId':_0x2b1106,'attributes':_0x56083a});return this['_addSuggestionMarker']('formatBlock:'+_0x1d2d27,_0x4eddb5,_0x2b1106,this['_model']['createRange'](_0x4d481c,_0x3eeed1)),_0x5f1ca7;}}['markMultiRangeBlockFormat'](_0x289032,_0x330fea,_0x52db08=[],_0x3539ee=null,_0x1e13d3={}){_0x330fea['formatGroupId']||(_0x330fea['formatGroupId']=_0x330fea['commandName']);const _0x2958e9=_0x289032[0x0];_0x330fea['multipleBlocks']=_0x2958e9['is']('range'),_0x3539ee=_0x3539ee||Ft(_0x330fea);const _0x380a13=_0x52db08['map'](_0x269936=>Ht(_0x269936,this['_model'])),_0xf8e9d=_0x2958e9['is']('range')?_0x289032:_0x289032['map'](_0x2b3a8b=>Ht(_0x2b3a8b,this['_model']));if('never'===this['_trackFormatChanges']){const _0x57aaa9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3539ee,'accept');return this['forceDefaultExecution'](()=>_0x57aaa9(_0xf8e9d,_0x330fea,_0x1e13d3)),null;}_0x380a13['push'](..._0xf8e9d);let _0x3c52d3=!0x0;for(const _0x14b60f of _0x380a13)if(!this['_rangeIsInLocalUserInsertion'](_0x14b60f)){_0x3c52d3=!0x1;break;}if(_0x3c52d3&&'always'!==this['_trackFormatChanges']){const _0x71b4a9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3539ee,'accept');return this['forceDefaultExecution'](()=>_0x71b4a9(_0xf8e9d,_0x330fea,_0x1e13d3)),null;}const _0xc5465a=this['editor']['plugins']['get']('Users')['me'];for(const _0x3a9b34 of this['getSuggestions']()){if(_0x3a9b34['author']['id']!=_0xc5465a['id'])continue;if('formatBlock'!=_0x3a9b34['type']||_0x3a9b34['data']['formatGroupId']!=_0x330fea['formatGroupId'])continue;if(!Kt(_0x3a9b34,_0x1e13d3))continue;const _0xc35388=_0x3a9b34['subType']==_0x3539ee;for(let _0x2c01aa=0x0;_0x2c01aa<_0xf8e9d['length'];_0x2c01aa++){const _0x40c0f0=_0xf8e9d[_0x2c01aa];for(const _0x450bba of _0x3a9b34['getMarkers']()){const _0x1fbb25=_0x450bba['getRange']();if(_0x40c0f0['isEqual'](_0x1fbb25)){_0xc35388?(_0xf8e9d['splice'](_0x2c01aa,0x1),_0x2c01aa--):_0x3a9b34['removeMarker'](_0x450bba['name']);break;}}}}if(0x0==_0xf8e9d['length'])return null;const _0x49f5c0=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3539ee,'join');for(const _0x570f2a of this['getSuggestions']())if(_0x570f2a['author']['id']==_0xc5465a['id']&&'formatBlock'==_0x570f2a['type']&&_0x570f2a['data']['formatGroupId']==_0x330fea['formatGroupId']&&_0x570f2a['subType']==_0x3539ee&&Kt(_0x570f2a,_0x1e13d3)&&(_0x49f5c0(_0x570f2a['getRanges'](),_0xf8e9d)||_0x49f5c0(_0xf8e9d,_0x570f2a['getRanges']()))){for(const _0x7b4988 of _0xf8e9d)_0x570f2a['addRange'](_0x7b4988);return _0x570f2a;}const _0x4dc4bc=_0x17f70d(),_0x1dbae6=_0xc5465a['id'],_0x84527b='formatBlock:'+_0x3539ee,_0x4c5ef3=this['_setSuggestionData']({'id':_0x4dc4bc,'type':_0x84527b,'data':_0x330fea,'createdAt':new Date(),'authorId':_0x1dbae6,'attributes':_0x1e13d3});for(const _0xa765f9 of _0xf8e9d)this['_addSuggestionMarker'](_0x84527b,_0x4dc4bc,_0x1dbae6,_0xa765f9,u['getMultiRangeId']());return _0x4c5ef3;}['markDeletion'](_0x2ceb0d,_0x2b103e=null,_0x15d607={}){if(_0x2ceb0d['isCollapsed'])return null;const _0x29d80e=this['editor']['plugins']['get']('Users')['me'],_0x5eb602=new _0x431313(_0x2ceb0d['start'],_0x2ceb0d['end']);for(const {suggestion:_0x5d4bd0,meta:_0x29c212}of this['_findSuggestions'](_0x5eb602,'insertion'))if(_0x29c212['isOwn']&&!_0x29c212['isNextTo']){if(_0x5d4bd0['isMultiRange']){const _0x12936a=_0x5d4bd0['getRanges']()['filter'](_0x22d185=>'$graveyard'!=_0x22d185['root']['rootName']);_0x12936a['every'](_0x1a3bdc=>_0x5eb602['containsRange'](_0x1a3bdc,!0x0))&&_0x5d4bd0['discard']();if(_0x12936a['some'](_0x5885a2=>_0x5885a2['containsRange'](_0x5eb602,!0x0))){const _0x1c19ac=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2b103e,'accept');return this['forceDefaultExecution'](()=>_0x1c19ac([_0x5eb602],null,_0x15d607)),null;}}else{const _0x4b3b7a=_0x5eb602['getIntersection'](_0x5d4bd0['getFirstRange']());null!==_0x4b3b7a&&_0x5d4bd0['_onDiscard']([_0x4b3b7a],null,_0x15d607);}}if(_0x5eb602['detach'](),_0x5eb602['isCollapsed']||'$graveyard'==_0x5eb602['root']['rootName'])return null;let _0x1ac701=null,_0x5b25fd=_0x5eb602['start'],_0x4724dc=_0x5eb602['end'];const _0x311d92=this['_findSuggestions'](_0x5eb602,'deletion');for(const {suggestion:_0x1a5c03,meta:_0x827838}of _0x311d92){const _0x646641=this['_model']['createRange'](_0x5b25fd,_0x4724dc);if(_0x827838['isOwn']&&(this['_mergeNestedSuggestions']||!_0x827838['containsRangeInObject']&&!_0x827838['isInsideObject'])){if(_0x1a5c03['isMultiRange']){if(!Kt(_0x1a5c03,_0x15d607))continue;let _0x14a461=!0x0;for(const _0x2f1776 of _0x1a5c03['getRanges']()){if(_0x2f1776['containsRange'](_0x646641,!0x0))return _0x1a5c03;_0x646641['containsRange'](_0x2f1776)||(_0x14a461=!0x1);}_0x14a461&&_0x1a5c03['discard']();}else{const _0x1407d6=_0x1a5c03['getFirstRange']();if(_0x1407d6['containsRange'](_0x646641,!0x0))return _0x1a5c03;if(!Kt(_0x1a5c03,_0x15d607)){_0x646641['containsRange'](_0x1407d6)?_0x1a5c03['removeMarkers']():_0x1407d6['containsPosition'](_0x5b25fd)?_0x5b25fd=_0x1407d6['end']:_0x1407d6['containsPosition'](_0x4724dc)&&(_0x4724dc=_0x1407d6['start']);continue;}_0x5b25fd=_0x5b25fd['isBefore'](_0x1407d6['start'])?_0x5b25fd:_0x1407d6['start'],_0x4724dc=_0x4724dc['isAfter'](_0x1407d6['end'])?_0x4724dc:_0x1407d6['end'],_0x15d607=Object['assign']({},_0x1a5c03['attributes']),_0x1ac701?_0x1407d6['start']['isBefore'](_0x1ac701['getFirstRange']()['start'])?(_0x1ac701['removeMarkers'](),_0x1ac701=_0x1a5c03):_0x1a5c03['removeMarkers']():_0x1ac701=_0x1a5c03;}}}if(_0x1ac701)return this['_setSuggestionRange'](_0x1ac701,this['_model']['createRange'](_0x5b25fd,_0x4724dc)),_0x1ac701;{const _0x200629=_0x17f70d(),_0x3463c0=this['_model']['createRange'](_0x5b25fd,_0x4724dc),_0x50bf5a=_0x29d80e['id'],_0xa515e7=_0x2b103e?'deletion:'+_0x2b103e:'deletion',_0xcc82a0=this['_setSuggestionData']({'id':_0x200629,'type':_0xa515e7,'createdAt':new Date(),'authorId':_0x50bf5a,'attributes':_0x15d607});return this['_addSuggestionMarker'](_0xa515e7,_0x200629,_0x50bf5a,_0x3463c0),_0xcc82a0;}}['markMultiRangeDeletion'](_0x36d55d,_0x577307='multi',_0x246a16={}){const _0x5a8513=this['editor']['plugins']['get']('Users')['me'],_0xb1c976=_0x36d55d['map'](_0x5bed6e=>new _0x431313(_0x5bed6e['start'],_0x5bed6e['end'])),_0x2f71b6=new Set();for(const {suggestion:_0xcd6935,meta:_0x8b61a9}of this['_findSuggestions'](_0xb1c976,'insertion'))_0x8b61a9['isOwn']&&!_0x8b61a9['isNextTo']&&_0x2f71b6['add'](_0xcd6935);for(const _0x16e058 of _0x2f71b6)if(_0x16e058['isMultiRange']){const _0x376d0f=_0x16e058['getRanges']();(!_0x16e058['attributes']||!_0x16e058['attributes']['skipNestingCheck'])&&(_0x376d0f['every'](_0x5b00e3=>_0xb1c976['some'](_0x102cdd=>_0x102cdd['containsRange'](_0x5b00e3,!0x0)))&&_0x16e058['discard']());if(_0xb1c976['every'](_0x5931a6=>_0x376d0f['some'](_0x208f5a=>_0x208f5a['containsRange'](_0x5931a6,!0x0)))){const _0x382f7e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x577307,'accept');return this['forceDefaultExecution'](()=>_0x382f7e(_0x36d55d,null,_0x246a16)),null;}}else{const _0x43887=_0x16e058['getFirstRange']();_0xb1c976['some'](_0x160d2c=>_0x160d2c['containsRange'](_0x43887,!0x0))&&_0x16e058['discard']();if(_0xb1c976['every'](_0x5b1389=>_0x43887['containsRange'](_0x5b1389,!0x0))){const _0xf6b31=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x577307,'accept');return this['forceDefaultExecution'](()=>_0xf6b31(_0xb1c976,null,_0x246a16)),null;}}const _0x37ef24=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x577307,'join');let _0x3b41b9=null;for(const _0x55477f of this['getSuggestions']())if(_0x55477f['author']['id']==_0x5a8513['id']&&_0x55477f['isInContent']&&'deletion'==_0x55477f['type']&&_0x55477f['subType']==_0x577307&&Kt(_0x55477f,_0x246a16)&&(_0x37ef24(_0x55477f['getRanges'](),_0xb1c976)||_0x37ef24(_0xb1c976,_0x55477f['getRanges']()))){if(_0x3b41b9){if(_0x55477f['commentThread']&&_0x55477f['commentThread']['length'])continue;for(const _0x590235 of _0x55477f['getRanges']())_0x3b41b9['isIntersectingWithRange'](_0x590235)||_0x3b41b9['addRange'](_0x590235);_0x55477f['removeMarkers']();}else{_0x3b41b9=_0x55477f;for(const _0x43c840 of _0xb1c976)_0x55477f['isIntersectingWithRange'](_0x43c840)||_0x55477f['addRange'](_0x43c840);}}if(_0x3b41b9)return _0x3b41b9;_0x2f71b6['clear']();for(const {suggestion:_0x153daa,meta:_0x3f7cf5}of this['_findSuggestions'](_0xb1c976,'deletion'))_0x3f7cf5['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3f7cf5['containsRangeInObject']&&!_0x3f7cf5['isInsideObject'])&&Kt(_0x153daa,_0x246a16)&&_0x2f71b6['add'](_0x153daa);for(const _0x2c52bb of _0x2f71b6){const _0x57b62e=_0x2c52bb['getRanges']();if(!_0x246a16||!_0x246a16['skipNestingCheck']){if(_0xb1c976['every'](_0x14d78d=>_0x57b62e['some'](_0x25a582=>_0x25a582['containsRange'](_0x14d78d,!0x0))))return _0x2c52bb;}(!_0x2c52bb['attributes']||!_0x2c52bb['attributes']['skipNestingCheck'])&&(_0x57b62e['every'](_0x4315dd=>_0xb1c976['some'](_0x1a51d2=>_0x1a51d2['containsRange'](_0x4315dd,!0x0)))&&_0x2c52bb['discard']());}const _0x3f862d=_0x17f70d(),_0x1959b5=_0x5a8513['id'],_0x5bdca3='deletion:'+_0x577307,_0x36f046=this['_setSuggestionData']({'id':_0x3f862d,'type':_0x5bdca3,'createdAt':new Date(),'authorId':_0x1959b5,'attributes':_0x246a16});for(const _0x11cae6 of _0xb1c976)_0x11cae6['detach'](),_0x11cae6['isCollapsed']||'$graveyard'==_0x11cae6['root']['rootName']||this['_addSuggestionMarker'](_0x5bdca3,_0x3f862d,_0x1959b5,_0x11cae6,u['getMultiRangeId']());return _0x36f046;}['markAttributeChange'](_0x2a4b91,_0x13c71a,_0x5148db,_0xc93920,_0x425c3d){if(_0x2a4b91['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x1971da=this['editor']['plugins']['get']('Users')['me']['id'],_0x150eec=Array['from'](this['_suggestions']['values']())['filter'](_0x1ae4ee=>'attribute'==_0x1ae4ee['type']&&_0x1ae4ee['data']['key']==_0x13c71a&&_0x1ae4ee['isIntersectingWithRange'](_0x2a4b91));if('default'===this['_trackFormatChanges']){const _0xb15488=this['_findSuggestions'](_0x2a4b91,'insertion')['filter'](({meta:_0x3c4a55})=>_0x3c4a55['isOwn']&&!_0x3c4a55['isInsideObject']&&!_0x3c4a55['isNextTo'])['map'](({suggestion:_0x47303f})=>_0x47303f);_0x150eec['unshift'](..._0xb15488);}const _0x3e6ba5=new Map([[_0x2a4b91,_0x5148db]]);for(const _0x21da77 of _0x150eec){const _0x552ae3='attribute'==_0x21da77['type']?_0x21da77['data']['oldValue']:void 0x0,_0x5ca5cf=_0x21da77['getFirstRange'](),_0x1adaac=Array['from'](_0x3e6ba5['keys']())['find'](_0x5b8fe9=>_0x5b8fe9['isIntersecting'](_0x5ca5cf));if(!_0x1adaac)continue;const _0x44bfbb=_0x1adaac['getDifference'](_0x5ca5cf);this['_isBlockAttribute'](_0x13c71a)&&'insertion'==_0x21da77['type']&&0x0!=_0x44bfbb['length']||(_0x3e6ba5['delete'](_0x1adaac),_0x44bfbb['forEach'](_0x438492=>{_0x3e6ba5['set'](_0x438492,_0x5148db);}),'insertion'!=_0x21da77['type']&&_0x552ae3!=_0xc93920&&_0x3e6ba5['set'](_0x1adaac['getIntersection'](_0x5ca5cf),_0x552ae3));}const _0x4f00a7=[];for(const [_0x14cb83,_0x82b240]of _0x3e6ba5){const _0xdd14a8=_0x17f70d(),_0x1ed2fc={'key':_0x13c71a,'oldValue':_0x82b240,'newValue':_0xc93920};_0x13c71a['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':_0x13c71a});const _0x47c2d5=('attribute:'+(_0x13c71a+'|'+Ft({'newValue':_0xc93920})))['substring'](0x0,0x3c),_0x671e92=this['_setSuggestionData']({'id':_0xdd14a8,'type':_0x47c2d5,'data':_0x1ed2fc,'createdAt':new Date(),'authorId':_0x1971da,'attributes':_0x425c3d});_0x4f00a7['push'](_0x671e92),this['_addSuggestionMarker'](_0x47c2d5,_0xdd14a8,_0x1971da,_0x14cb83);}return _0x4f00a7;}['enableDefaultAttributesIntegration'](_0x58f25f){this['enableCommand'](_0x58f25f,(_0x38ffec,..._0x3dd71d)=>{this['_recordAttributeChanges'](()=>{_0x38ffec(..._0x3dd71d);});});}['registerBlockAttribute'](_0x25b2fa){this['_blockAttributeKeys']['add'](_0x25b2fa);}['registerInlineAttribute'](_0x432755){this['_inlineAttributeKeys']['add'](_0x432755);}['_getAttributeKey'](_0x3987bb){return'attribute'==_0x3987bb['type']?_0x3987bb['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x4137f0,_0x218ce7){const _0x588a98=_0x4137f0['getFirstMarker']();this['_model']['change'](_0x228991=>{_0x228991['updateMarker'](_0x588a98,{'range':_0x218ce7});});}['_addThreadToSuggestion'](_0x5da172){const _0x563070=_0x5da172['id'],_0x286f91=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x563070)||this['_commentsRepository']['addCommentThread']({'channelId':_0x286f91,'threadId':_0x563070,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1664fa=this['_commentsRepository']['getCommentThread'](_0x563070);_0x1664fa['unbind']('isRemovable'),_0x1664fa['isRemovable']=!0x1,_0x5da172['commentThread']=_0x1664fa;}['_checkSuggestionCorrectness'](_0x5d2d8b,_0x424f3d,_0x4cfecf,_0x339796){if(_0x5d2d8b['type']!=_0x424f3d||_0x5d2d8b['subType']!=_0x4cfecf||_0x5d2d8b['creator']['id']!=_0x339796)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x1d0b44('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x386607,_0x7b4d81){const _0x284883=_0x386607['getFirstRange']();if(_0x7b4d81['isEqual'](_0x284883))_0x386607['removeMarkers']();else{if(_0x284883['containsRange'](_0x7b4d81)){const _0x383cf3=this['_model']['createPositionAt'](_0x7b4d81['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x386607,this['_model']['createRange'](_0x284883['start'],_0x383cf3));const _0x3761a6=_0x17f70d(),_0x52b4bb=_0x386607['creator']['id'],_0x289330=_0x386607['type']+':'+_0x386607['subType'];this['_setSuggestionData']({'id':_0x3761a6,'type':_0x289330,'createdAt':new Date(),'authorId':_0x52b4bb,'data':_0x386607['data'],'attributes':_0x386607['attributes']});const _0x1ef4c3=this['_model']['createPositionAt'](_0x7b4d81['end']['parent'],'after'),_0x4077f0=this['_model']['createRange'](_0x1ef4c3,_0x284883['end']);this['_addSuggestionMarker'](_0x289330,_0x3761a6,_0x52b4bb,_0x4077f0);}else{if(_0x284883['containsPosition'](_0x7b4d81['start'])){const _0x3af7c7=this['_model']['createPositionAt'](_0x7b4d81['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x386607,this['_model']['createRange'](_0x284883['start'],_0x3af7c7));}else{const _0x487c3c=this['_model']['createPositionAt'](_0x7b4d81['end']['parent'],'after');this['_setSuggestionRange'](_0x386607,this['_model']['createRange'](_0x487c3c,_0x284883['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x224f91){for(const {suggestion:_0x9ba23,meta:_0x217420}of this['_findSuggestions'](_0x224f91,'insertion')){if(!_0x217420['isOwn'])continue;const _0x5b690a=_0x9ba23['getRanges']();for(const _0x1d7f11 of _0x5b690a)if(!_0x224f91['getDifference'](_0x1d7f11)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x5bb539){const _0x23966d=this['editor']['plugins']['get']('Users')['getUser'](_0x5bb539);if(!_0x23966d)throw new _0x1d0b44('track-changes-user-not-found',this);return _0x23966d;}['_getExternalAuthor'](_0x3f3a95){const _0x55fab5=this['editor']['plugins']['get']('Users'),_0xbd69d8=_0x37f81c('external:'+_0x3f3a95),_0x568dde=_0x55fab5['getUser'](_0xbd69d8);return _0x568dde||_0x55fab5['addUser']({'id':_0xbd69d8,'name':_0x3f3a95});}['_createSuggestion'](_0x16bcb7,_0xfa1559,_0x1bef18,_0x33963f,_0x152082){const _0x6cf2f9=this['_getAuthorFromId'](_0x33963f),_0x267a10=this['_suggestionFactory']['buildSuggestion'](_0x16bcb7,_0xfa1559,_0x1bef18,_0x6cf2f9,_0x152082,_0x4304e7=>{this['_updateSuggestionData'](_0x1bef18,{'attributes':_0x4304e7});const _0x296776=this['getSuggestion'](_0x1bef18);this['_joinWithAdjacentSuggestions'](new Set([_0x296776])),this['_refreshSuggestionsChain'](new Set([_0x296776]));});return this['listenTo'](_0x267a10,'accept',()=>{this['_updateSuggestionData'](_0x1bef18,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x267a10,'discard',()=>{this['_updateSuggestionData'](_0x1bef18,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x1bef18,_0x267a10),this['_suggestionState']['set'](_0x267a10,'notReady'),_0x267a10;}['_splitMarkerName'](_0xdfe542){const _0x587933=_0xdfe542['split'](':');return{'group':_0x587933[0x0],'type':_0x587933[0x1],'subType':_0x587933['length']>=0x5?_0x587933[0x2]:null,'id':_0x587933['length']<0x5?_0x587933[0x2]:_0x587933[0x3],'authorId':_0x587933['length']<0x5?_0x587933[0x3]:_0x587933[0x4],'markerCount':0x6==_0x587933['length']?_0x587933[0x5]:null};}['_breakSuggestionMarker'](_0x4310b9,_0x113c72,_0x38db79){const _0xf5888c=_0x4310b9['getFirstRange'](),_0x19b9ce=_0xf5888c['start'],_0x4f51d8=_0xf5888c['end'];this['_setSuggestionRange'](_0x4310b9,this['_model']['createRange'](_0x19b9ce,_0x113c72));const _0x34c1a7=_0x17f70d(),_0x21eb74=_0x4310b9['creator']['id'],_0x1103a9=_0x4310b9['type']+(_0x4310b9['subType']?':'+_0x4310b9['subType']:'');this['_setSuggestionData']({'id':_0x34c1a7,'type':_0x1103a9,'createdAt':new Date(),'authorId':_0x21eb74,'originalSuggestionId':_0x4310b9['id'],'attributes':_0x4310b9['attributes'],'data':_0x4310b9['data']});const _0x418f3a=this['_getAttributeKey'](_0x4310b9);('formatBlock'==_0x4310b9['type']||_0x418f3a&&this['_isBlockAttribute'](_0x418f3a))&&(_0x38db79=this['_model']['createPositionBefore'](_0x38db79['parent'])),this['_addSuggestionMarker'](_0x1103a9,_0x34c1a7,_0x21eb74,this['_model']['createRange'](_0x38db79,_0x4f51d8));}['_findSuggestions'](_0x1af92f,_0x209eec=null){const _0x3f0b54=[],_0x186d19=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x1af92f)||(_0x1af92f=[_0x1af92f]);for(const _0x286a99 of this['getSuggestions']()){if(!_0x286a99['isInContent'])continue;if(_0x209eec&&_0x286a99['type']!=_0x209eec)continue;let _0x5e98c=!0x1;for(const _0x1e0691 of _0x286a99['getRanges']()){for(const _0x2ac4e3 of _0x1af92f){const _0x3bb5db=_0x2ac4e3['start']['isEqual'](_0x1e0691['end'])||_0x2ac4e3['end']['isEqual'](_0x1e0691['start']);if(_0x3bb5db||_0x2ac4e3['getIntersection'](_0x1e0691)){const _0x2cf1f1=_0x2ac4e3['containsRange'](_0x1e0691)&&Vt(this['_model']['schema'],_0x1e0691['start'],_0x2ac4e3),_0x1b15e8=_0x1e0691['containsRange'](_0x2ac4e3)&&Vt(this['_model']['schema'],_0x2ac4e3['start'],_0x1e0691);_0x3f0b54['push']({'suggestion':_0x286a99,'meta':{'isOwn':_0x186d19==_0x286a99['author'],'isNextTo':_0x3bb5db,'isInsideObject':_0x2cf1f1,'containsRangeInObject':_0x1b15e8}}),_0x5e98c=!0x0;break;}}if(_0x5e98c)break;}}return _0x3f0b54;}['_addSuggestionMarker'](_0x18ca3e,_0x4ed4c8,_0x353d28,_0x4ff294,_0x51356e){this['_model']['change'](_0x50e793=>{let _0x2486d4='suggestion:'+_0x18ca3e+':'+_0x4ed4c8+':'+_0x353d28;_0x51356e&&(_0x2486d4=_0x2486d4+':'+_0x51356e),_0x50e793['addMarker'](_0x2486d4,{'range':_0x4ff294,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x1c0e2a){const _0x329ee8=_0x1c0e2a['previous'],_0x3d2515=_0x1c0e2a['next'];_0x1c0e2a['previous']=null,_0x1c0e2a['next']=null,null!=_0x329ee8&&_0x329ee8['next']==_0x1c0e2a&&(_0x329ee8['next']=_0x3d2515),null!=_0x3d2515&&_0x3d2515['previous']==_0x1c0e2a&&(_0x3d2515['previous']=_0x329ee8),'ready'==this['_suggestionState']['get'](_0x1c0e2a)&&(this['_suggestionState']['set'](_0x1c0e2a,'removed'),this['fire']('suggestionUnloaded',_0x1c0e2a,_0x329ee8,_0x3d2515));}['_setSuggestionData'](_0x3d6d0c){const _0x1cbde2=_0x3d6d0c['id'],_0xa379f3=this['addSuggestionData'](_0x3d6d0c);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x177665=this['editor']['plugins']['get']('PendingActions'),_0x4eed34=_0xa379f3['hasComments'],_0x2c4fa4=_0xa379f3['subType']?_0xa379f3['type']+':'+_0xa379f3['subType']:_0xa379f3['type'],_0x1932cd=this['editor']['locale'],_0x3d329f=_0x177665['add'](o(_0x1932cd,'PENDING_ACTION_SUGGESTION')),_0x18a0ac={'id':_0x1cbde2,'type':_0x2c4fa4,'hasComments':_0x4eed34,'data':_0x3d6d0c['data']||null,'originalSuggestionId':_0x3d6d0c['originalSuggestionId']||null,'attributes':_0xa379f3['attributes']};this['_adapter']['addSuggestion'](_0x18a0ac)['then'](_0x26c32e=>{_0xa379f3['_saved']=!0x0,_0x177665['remove'](_0x3d329f),_0x26c32e&&_0x26c32e['createdAt']&&(this['_suggestions']['get'](_0x1cbde2)['createdAt']=_0x26c32e['createdAt']);})['catch'](_0x1dbbe2=>{throw _0x480a70('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0xa379f3['discard']();}),_0xa379f3['stopListening'](),this['_suggestions']['delete'](_0xa379f3['id']),this['_suggestionState']['delete'](_0xa379f3),_0x1dbbe2;});}return _0xa379f3;}['_isBlockAttribute'](_0x11f147){return this['_blockAttributeKeys']['has'](_0x11f147);}['_updateSuggestionData'](_0x4ad7d2,_0x36acd5){const _0x44f406=this['editor']['plugins']['get']('PendingActions'),_0x5c8e0a=this['getSuggestion'](_0x4ad7d2);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x5c8e0a['_saved']){const _0x2a02b1=_0x44f406['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x4ad7d2,_0x36acd5)['then'](()=>{_0x44f406['remove'](_0x2a02b1);});}else _0x5c8e0a['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x4ad7d2,_0x36acd5);});}}['_getSuggestionData'](_0x501c50){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x1d0b44('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x501c50);}['_handleNewSuggestionMarker'](_0x334e65){const {id:_0x4f9e8e,type:_0x3f14d0,subType:_0x93a41a,authorId:_0x5dd838}=this['_splitMarkerName'](_0x334e65),_0x1872e4=this['_suggestions']['get'](_0x4f9e8e)||this['_createSuggestion'](_0x3f14d0,_0x93a41a,_0x4f9e8e,_0x5dd838,{});switch(this['_checkSuggestionCorrectness'](_0x1872e4,_0x3f14d0,_0x93a41a,_0x5dd838),this['_suggestionState']['get'](_0x1872e4)){case'notReady':this['_getSuggestionData'](_0x4f9e8e)['then'](_0xffbf60=>{let _0x231b83=Promise['resolve']();_0xffbf60['hasComments']&&(_0x231b83=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x4f9e8e})),_0x231b83['then'](()=>{this['addSuggestionData'](_0xffbf60)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x1872e4,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x4f9e8e,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x1872e4,'ready'),this['fire']('suggestionLoaded',_0x1872e4);break;case'ready':this['fire']('suggestionChanged',_0x1872e4);}return _0x1872e4['addMarkerName'](_0x334e65),_0x1872e4;}['_refreshSuggestionsChain'](_0x2a2ed3){const _0x16038c=Array['from'](_0x2a2ed3),_0x2cd2ba=_0x16038c['filter'](_0x12b2ca=>'attribute'==_0x12b2ca['type']);this['_refreshAttributeSuggestionsChain'](_0x2cd2ba);const _0x4c3efd=_0x16038c['filter'](_0x663228=>!_0x663228['isMultiRange']&&'attribute'!=_0x663228['type']),_0x5bfb7d=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x443cd5=>!_0x443cd5['isMultiRange']&&'attribute'!=_0x443cd5['type']),_0x3c06c2=_0x5bfb7d['filter'](_0x25df65=>!_0x2a2ed3['has'](_0x25df65)),_0x5b5420=new Map(_0x5bfb7d['map'](_0x539d93=>[_0x539d93,this['_suggestionFactory']['getSuggestionCallback'](_0x539d93['type'],_0x539d93['subType'],'chain')])),_0x36ec7c=new Map(_0x5bfb7d['map'](_0x3532e8=>[_0x3532e8,_0x3532e8['getFirstRange']()])),_0x4f7d26=new Set(),_0x3e8348=new Set();for(let _0x25ca55=0x0;_0x25ca55<_0x4c3efd['length'];_0x25ca55++)_0x179697(_0x4c3efd[_0x25ca55],_0x4c3efd,_0x25ca55+0x1);for(let _0x4c568d=0x0;_0x4c568d<_0x4c3efd['length'];_0x4c568d++)_0x179697(_0x4c3efd[_0x4c568d],_0x3c06c2,0x0);const _0x32dcda=new Set();for(let _0x2d30d5=0x0;_0x2d30d5<_0x4c3efd['length'];_0x2d30d5++){const _0x5535dd=_0x4c3efd[_0x2d30d5];!_0x3e8348['has'](_0x5535dd)&&_0x5535dd['previous']&&(_0x32dcda['add'](_0x5535dd['previous']),_0x5535dd['previous']['next']===_0x5535dd&&(_0x5535dd['previous']['next']=null),_0x5535dd['previous']=null),!_0x4f7d26['has'](_0x5535dd)&&_0x5535dd['next']&&(_0x32dcda['add'](_0x5535dd['next']),_0x5535dd['next']['previous']===_0x5535dd&&(_0x5535dd['next']['previous']=null),_0x5535dd['next']=null);}function _0x179697(_0xf6817f,_0x4943e5,_0x1e06b3){for(let _0x5894e9=_0x1e06b3;_0x5894e9<_0x4943e5['length'];_0x5894e9++){const _0x58ce33=_0x5617c7(_0xf6817f,_0x4943e5[_0x5894e9]);_0x58ce33&&(_0x58ce33[0x0]['next']=_0x58ce33[0x1],_0x58ce33[0x1]['previous']=_0x58ce33[0x0],_0x4f7d26['add'](_0x58ce33[0x0]),_0x3e8348['add'](_0x58ce33[0x1]));}}function _0x5617c7(_0x365d77,_0x50d9ca){if(_0x365d77['author']['id']!==_0x50d9ca['author']['id'])return null;const _0x1a0ea4=_0x5b5420['get'](_0x365d77)(_0x365d77,_0x50d9ca,_0x36ec7c['get'](_0x365d77),_0x36ec7c['get'](_0x50d9ca));if(!_0x1a0ea4)return null;return _0x5b5420['get'](_0x50d9ca)(_0x365d77,_0x50d9ca,_0x36ec7c['get'](_0x365d77),_0x36ec7c['get'](_0x50d9ca))?_0x1a0ea4[0x1]['commentThread']&&_0x1a0ea4[0x1]['commentThread']['length']?null:_0x1a0ea4:null;}_0x32dcda['size']&&this['_refreshSuggestionsChain'](_0x32dcda);}['_refreshAttributeSuggestionsChain'](_0x55916e){if(0x0==_0x55916e['length'])return;const _0x27da06=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xfa15c2=>'attribute'==_0xfa15c2['type']&&_0xfa15c2['_isDataLoaded']),_0x5f447d=[],_0x5c8075=new Map();for(const _0x410a3a of _0x27da06){const _0x38a97e=_0x37f81c(_0x410a3a['attributes']);_0x5c8075['has'](_0x38a97e)||(_0x5c8075['set'](_0x38a97e,_0x5f447d['length']),_0x5f447d['push']([]));const _0x148f58=_0x5c8075['get'](_0x38a97e);_0x5f447d[_0x148f58]['push'](_0x410a3a);}!(function(){_0x5f447d['sort']((_0x363879,_0x361ef0)=>{const _0x5b303c=_0x363879[0x0]['createdAt'],_0x215864=_0x361ef0[0x0]['createdAt'];return _0x5b303c==_0x215864?_0x363879[0x0]['attributes']['groupId']<_0x361ef0[0x0]['attributes']['groupId']?-0x1:0x1:_0x5b303c<_0x215864?-0x1:0x1;});for(const _0x53e580 of _0x5f447d)_0x53e580['sort']((_0x391ced,_0xd1dc4c)=>_0x391ced['id']<_0xd1dc4c['id']?-0x1:0x1);}());for(let _0x3e81d4=0x0;_0x3e81d4<_0x5f447d['length'];_0x3e81d4++){if(0x0==_0x5f447d[_0x3e81d4]['length'])continue;const _0x2df6e5=[];for(let _0x530c43=_0x3e81d4+0x1;_0x530c43<_0x5f447d['length'];_0x530c43++)0x0!=_0x5f447d[_0x530c43]['length']&&_0x5a859d(_0x5f447d[_0x3e81d4],_0x5f447d[_0x530c43])&&_0x2df6e5['push'](_0x530c43);for(const _0x21bd1f of _0x2df6e5)_0x5f447d[_0x3e81d4]=_0x5f447d[_0x3e81d4]['concat'](_0x5f447d[_0x21bd1f]),_0x5f447d[_0x21bd1f]=[];}for(const _0x189a68 of _0x5f447d)for(let _0x3f0482=0x0;_0x3f0482<_0x189a68['length'];_0x3f0482++){const _0x58e55a=_0x189a68[_0x3f0482+0x1]||null;_0x189a68[_0x3f0482]['next']!==_0x58e55a&&(_0x189a68[_0x3f0482]['next']=_0x58e55a);}for(const _0x3e7485 of _0x5f447d)for(let _0x3ed067=0x0;_0x3ed067<_0x3e7485['length'];_0x3ed067++){const _0x135275=_0x3e7485[_0x3ed067-0x1]||null;_0x3e7485[_0x3ed067]['previous']!==_0x135275&&(_0x3e7485[_0x3ed067]['previous']=_0x135275);}function _0x5a859d(_0x511397,_0x4104c1){if(_0x511397[0x0]['attributes']['groupId']!==_0x4104c1[0x0]['attributes']['groupId']&&_0x511397[0x0]['author']!==_0x4104c1[0x0]['author'])return!0x1;if(!function(_0x2a054d,_0x141137){if(!_0x2a054d['hasComments']&&!_0x141137['hasComments'])return!0x0;if(_0x2a054d['hasComments']&&_0x141137['hasComments'])return!0x1;if(_0x2a054d['hasComments']&&_0x141137['createdAt']<_0x2a054d['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x141137['hasComments']&&_0x2a054d['createdAt']<_0x141137['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x511397[0x0],_0x4104c1[0x0]))return!0x1;const _0x4bcb4e=Et(_0x511397[0x0]['attributes'],'groupId'),_0x2b05d1=Et(_0x4104c1[0x0]['attributes'],'groupId');if(!_0x3670b4(_0x4bcb4e,_0x2b05d1))return!0x1;return!!_0x511397['every'](_0x110c99=>_0x4104c1['some'](_0x3fee93=>_0x110c99['getFirstRange']()['isEqual'](_0x3fee93['getFirstRange']())))&&_0x4104c1['every'](_0x5c5c7c=>_0x511397['some'](_0x3d7545=>_0x5c5c7c['getFirstRange']()['isEqual'](_0x3d7545['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x5dd3f9){const _0x381a46=Array['from'](_0x5dd3f9),_0x28530c=this['getSuggestions']({'skipNotAttached':!0x0}),_0x45c5e2=_0x28530c['filter'](_0x31d270=>!_0x5dd3f9['has'](_0x31d270)),_0x4538c5=new Map(_0x381a46['map'](_0x3617a9=>[_0x3617a9,this['_suggestionFactory']['getSuggestionCallback'](_0x3617a9['type'],_0x3617a9['subType'],'join')])),_0x5969d5=new Map(_0x28530c['map'](_0x5e9dce=>[_0x5e9dce,_0x5e9dce['getRanges']()]));for(let _0x183bff=0x0;_0x183bff<_0x381a46['length'];_0x183bff++){if(_0x876337(this,_0x381a46[_0x183bff],_0x381a46,_0x183bff+0x1))return!0x0;}for(let _0x31f381=0x0;_0x31f381<_0x381a46['length'];_0x31f381++){if(_0x876337(this,_0x381a46[_0x31f381],_0x45c5e2,0x0))return!0x0;}return!0x1;function _0x876337(_0x4ce060,_0x98e790,_0x542155,_0x9f764a){for(let _0x28f342=_0x9f764a;_0x28f342<_0x542155['length'];_0x28f342++){const _0x5067c1=_0x542155[_0x28f342];if(_0x5067c1['type']!==_0x98e790['type']||_0x5067c1['author']['id']!==_0x98e790['author']['id']||_0x5067c1['subType']!==_0x98e790['subType'])continue;if(!zt(_0x98e790,_0x5067c1))continue;if('attribute'==_0x98e790['type']&&_0x98e790['data']['oldValue']!=_0x5067c1['data']['oldValue'])continue;if('attribute'==_0x98e790['type']&&_0x4ce060['_isBlockAttribute'](_0x98e790['data']['key']))continue;if('formatBlock'==_0x98e790['type']){const _0x405448=_0x4ce060['editor']['model'],_0x51b49b=_0x98e790['getContainedElement']();if(_0x51b49b&&(_0x405448['schema']['isObject'](_0x51b49b)||_0x405448['schema']['isLimit'](_0x51b49b)))continue;}const _0x1b57ba=_0x4538c5['get'](_0x98e790),_0x920825=_0x5969d5['get'](_0x98e790),_0xf5d615=_0x5969d5['get'](_0x5067c1),_0x4bbad0=_0x98e790['commentThread']&&_0x98e790['commentThread']['length'],_0xc62b90=_0x5067c1['commentThread']&&_0x5067c1['commentThread']['length'];if(!_0x4bbad0&&_0x1b57ba(_0xf5d615,_0x920825))return _0x4ce060['_joinSuggestions'](_0x5067c1,_0x98e790),_0x5969d5['delete'](_0x98e790),!0x0;if(!_0xc62b90&&_0x1b57ba(_0x920825,_0xf5d615))return _0x4ce060['_joinSuggestions'](_0x98e790,_0x5067c1),_0x5969d5['delete'](_0x5067c1),!0x0;}return!0x1;}}['_joinSuggestions'](_0x1f23fa,_0x2b7f94){if(_0x1f23fa['isMultiRange']){for(const _0x4c1b6d of _0x2b7f94['getRanges']())_0x1f23fa['addRange'](_0x4c1b6d);}else{const _0x17cfac=_0x2b7f94['getFirstRange']()['end'];this['_setSuggestionRange'](_0x1f23fa,this['_model']['createRange'](_0x1f23fa['getFirstRange']()['start'],_0x17cfac));}_0x2b7f94['removeMarkers']();}['_getMarkerAnnouncementText'](_0x41c6ca,_0x41c8c9,_0x21e427){const _0x4e7361=_0x41c6ca['startsWith']('format')||_0x41c6ca['startsWith']('attribute')?'FORMATTING':_0x41c6ca['toUpperCase']();return o(this['editor']['locale'],_0x41c8c9+'_'+_0x4e7361+'_SUGGESTION_ANNOUNCEMENT',_0x21e427);}['_initAriaMarkerChangeAnnouncements'](){const _0xf761fb=this['editor'];if(!_0xf761fb['ui'])return;const {ariaLiveAnnouncer:_0x62865b}=_0xf761fb['ui'];_0x36f39f(this['_model'],({left:_0x50e311,entered:_0x5715f1})=>{for(const _0x3f355d of _0x50e311){const {group:_0x442811,type:_0x4d42a3}=this['_splitMarkerName'](_0x3f355d['name']);if('suggestion'===_0x442811){_0x62865b['announce'](this['_getMarkerAnnouncementText'](_0x4d42a3,'LEAVE'));break;}}for(const _0x3b96ac of _0x5715f1){const {group:_0x4b6a47,type:_0x2c07be}=this['_splitMarkerName'](_0x3b96ac['name']);if('suggestion'===_0x4b6a47){_0x62865b['announce'](this['_getMarkerAnnouncementText'](_0x2c07be,'ENTER',_0x169fed(_0x1f096f)));break;}}});}['_processAttributeChanges'](_0x4bc129){if(this['_recordAttributeSuggestions'])return!0x1;const _0xd44313=this['editor'],_0x37eddf=_0xd44313['model']['document']['differ']['getChanges']();if(0x0==_0x37eddf['length'])return!0x1;const _0x393776=[],_0x1b11d2=_0x37eddf['filter'](_0x68485b=>'attribute'==_0x68485b['type']),_0x326311=_0x37eddf['filter'](_0x55b677=>'insert'==_0x55b677['type']&&'$text'!=_0x55b677['name']),_0x57353a=_0x37eddf['filter'](_0x5c015d=>'remove'==_0x5c015d['type']&&'$text'!=_0x5c015d['name']);for(const _0x51d30c of _0x1b11d2)_0x393776['push']({'key':_0x51d30c['attributeKey'],'newValue':_0x51d30c['attributeNewValue'],'oldValue':_0x51d30c['attributeOldValue'],'range':Jt(_0x51d30c['range'],_0xd44313['model'])});for(const _0x27d8d0 of _0x326311){const _0x26555c=_0x57353a['find'](_0x4e3cf3=>_0x4e3cf3['position']['isEqual'](_0x27d8d0['position']));_0x26555c&&_0x393776['push']({'key':m,'newValue':_0x27d8d0['name'],'oldValue':_0x26555c['name'],'range':_0xd44313['model']['createRangeOn'](_0x27d8d0['position']['nodeAfter'])});}return 0x0!=_0x393776['length']&&this['_reduceExistingSuggestions'](_0x4bc129,_0x393776);}['_processAttributeSuggestions'](_0xddcbeb){let _0x38db8c=!0x1;const _0xd1417b=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0xbf4eb5=>_0xbf4eb5['data']['newRange']&&_0xbf4eb5['name']['startsWith']('suggestion:attribute:'));for(const _0x5e5610 of _0xd1417b){const {subType:_0x3237e9,id:_0x19a3c8}=this['_splitMarkerName'](_0x5e5610['name']),_0x43a117=_0x3237e9['split']('|')[0x0];for(const _0x35fbf4 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x35fbf4['id']!=_0x19a3c8&&'attribute'==_0x35fbf4['type']&&_0x35fbf4['data']&&_0x35fbf4['data']['key']==_0x43a117&&_0x35fbf4['getFirstRange']()['isIntersecting'](_0x5e5610['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x35fbf4,_0x5e5610['data']['newRange'],_0xddcbeb),_0x38db8c=!0x0);}return _0x38db8c;}['_recordAttributeChanges'](_0x3981ce){this['_recordAttributeSuggestions']=!0x0,_0x3981ce();}['_isRegisteredAttribute'](_0x4ffe51){const _0x3a2ed7=this['_isBlockAttribute'](_0x4ffe51),_0x495b24=this['_inlineAttributeKeys']['has'](_0x4ffe51);return _0x3a2ed7||_0x495b24;}['_reduceExistingSuggestions'](_0x3cd7a1,_0x5770bb){if(0x0==_0x5770bb['length'])return!0x1;let _0x158e1b=!0x1;for(const _0xb2cc25 of _0x5770bb){const _0x32e13f=this['_findSuggestions'](_0xb2cc25['range'],'attribute')['filter'](_0x4d861c=>!_0x4d861c['meta']['isNextTo'])['map'](_0x43319f=>_0x43319f['suggestion']),_0x26cbcc=_0x37f81c({'newValue':_0xb2cc25['newValue']});_0x32e13f['filter'](_0x14c232=>{const [_0x5f0e50,_0x18ee6b]=_0x14c232['subType']['split']('|');return _0x5f0e50==_0xb2cc25['key']&&_0x18ee6b!=_0x26cbcc;})['forEach'](_0x3e74b5=>{this['_reduceSuggestionAttributeRange'](_0x3e74b5,_0xb2cc25['range'],_0x3cd7a1),_0x158e1b=!0x0;});}return _0x158e1b;}['_reduceSuggestionAttributeRange'](_0x2af237,_0x165127,_0xa45ac6){const _0x93c876=_0x2af237['getFirstRange']()['getDifference'](_0x165127);0x0!==_0x93c876['length']?0x1!==_0x93c876['length']?this['_breakSuggestionMarker'](_0x2af237,_0x165127['start'],_0x165127['end']):this['_setSuggestionRange'](_0x2af237,_0x93c876[0x0]):_0xa45ac6['removeMarker'](_0x2af237['getFirstMarker']());}}class Ut{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x332574){this['_editor']=_0x332574,this['_model']=_0x332574['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x1119d3,_0x13e359,_0x26668c,_0x116475,_0x1dc01a,_0x4454d1){return new u(this['_model'],{'type':_0x1119d3,'subType':_0x13e359,'id':_0x26668c,'author':_0x116475,'creator':_0x116475,'attributes':_0x1dc01a,'onAttributesChange':_0x4454d1,'onAccept':(..._0x21bbff)=>this['getSuggestionCallback'](_0x1119d3,_0x13e359,'accept')(..._0x21bbff),'onDiscard':(..._0x55a804)=>this['getSuggestionCallback'](_0x1119d3,_0x13e359,'discard')(..._0x55a804)});}['registerCustomCallback'](_0x56b1cd,_0xc553f7,_0x20d0c7,_0x584568){const _0x172599=_0x56b1cd+':'+_0xc553f7+':'+_0x20d0c7;this['_customCallbacks']['set'](_0x172599,_0x584568);}['getSuggestionCallback'](_0x490437,_0x2081ed,_0x262d33){const _0x5c5d6d=_0x490437+':'+_0x2081ed+':'+_0x262d33;return this['_customCallbacks']['get'](_0x5c5d6d)||this['_defaultCallbacks']['get'](_0x490437+':'+_0x262d33);}['_registerDefaultCallbacks'](){const _0x3f2afe=()=>!0x1,_0x524e5f=_0x1c8a58=>{_0x1c8a58['sort']((_0x36f7cb,_0x56f101)=>_0x36f7cb['start']['isBefore'](_0x56f101['start'])?0x1:-0x1),this['_model']['change'](_0x3ffda9=>{for(const _0x74b088 of _0x1c8a58){let _0x439349;_0x439349=_0x74b088['end']['isAtEnd']&&_0x74b088['end']['parent']==_0x74b088['start']['nodeAfter']?_0x3ffda9['createSelection'](_0x74b088['start']['nodeAfter'],'on'):_0x3ffda9['createSelection'](_0x74b088),this['_model']['deleteContent'](_0x439349,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x3549c6=(_0x51a554,_0x73e377)=>{_0x73e377&&this['_model']['change'](_0x2db1ce=>{const {commandName:_0x19288b,commandParams:_0x556691=[]}=_0x73e377,_0x400040=_0x51a554['map'](_0x5d7756=>(Pt(_0x5d7756)&&(_0x5d7756=this['_model']['createRange'](_0x5d7756['end'])),_0x5d7756))['filter'](_0x59c168=>'$graveyard'!==_0x59c168['root']['rootName']);if(_0x400040['length']<0x1)return;const _0x5884cc=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x46cc68=>_0x431313['fromRange'](_0x46cc68));_0x2db1ce['setSelection'](_0x400040);for(const _0x41e38e of this['_editor']['commands']['commands']())_0x41e38e['refresh']();_0x556691['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x19288b,..._0x556691);const _0x2d9d10=_0x5884cc['filter'](_0x209e1a=>'$graveyard'!=_0x209e1a['root']['rootName']);_0x2d9d10['length']>0x0&&_0x2db1ce['setSelection'](_0x2d9d10);for(const _0x181e64 of _0x5884cc)_0x181e64['detach']();});},_0x5995e9=(_0x53e659,_0x5d9067)=>0x1==_0x53e659['length']&&0x1==_0x5d9067['length']&&_0x53e659[0x0]['end']['isEqual'](_0x5d9067[0x0]['start']),_0x19fe99=(_0x415b38,_0x317dc6,_0x4bea8d,_0x40399f)=>qt(_0x415b38,_0x317dc6,_0x4bea8d,_0x40399f)?[_0x415b38,_0x317dc6]:qt(_0x317dc6,_0x415b38,_0x40399f,_0x4bea8d)?[_0x317dc6,_0x415b38]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x3f2afe),this['_defaultCallbacks']['set']('insertion:discard',_0x524e5f),this['_defaultCallbacks']['set']('insertion:join',_0x5995e9),this['_defaultCallbacks']['set']('insertion:chain',_0x19fe99),this['_defaultCallbacks']['set']('deletion:accept',_0x524e5f),this['_defaultCallbacks']['set']('deletion:discard',_0x3f2afe),this['_defaultCallbacks']['set']('deletion:join',_0x5995e9),this['_defaultCallbacks']['set']('deletion:chain',_0x19fe99),this['_defaultCallbacks']['set']('formatInline:accept',_0x3549c6),this['_defaultCallbacks']['set']('formatInline:discard',_0x3f2afe),this['_defaultCallbacks']['set']('formatInline:join',_0x5995e9),this['_defaultCallbacks']['set']('formatInline:chain',_0x3f2afe),this['_defaultCallbacks']['set']('formatBlock:accept',_0x3549c6),this['_defaultCallbacks']['set']('formatBlock:discard',_0x3f2afe),this['_defaultCallbacks']['set']('formatBlock:join',_0x5995e9),this['_defaultCallbacks']['set']('formatBlock:chain',_0x3f2afe),this['_defaultCallbacks']['set']('attribute:accept',_0x3f2afe),this['_defaultCallbacks']['set']('attribute:discard',(_0x37e86d,_0x2979d2)=>{if(!_0x2979d2)return;const _0x14751a=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x106dc8=>{if(_0x2979d2['key']==m)for(const _0x3102c0 of _0x37e86d){const _0x5b1c4d=_0x3102c0['start']['nodeAfter'],_0x37ac02=_0x2979d2['oldValue'];_0x106dc8['rename'](_0x5b1c4d,_0x37ac02);}else{if(_0x14751a['_isBlockAttribute'](_0x2979d2['key'])){for(const _0x16dd37 of _0x37e86d)void 0x0!==_0x2979d2['oldValue']?_0x106dc8['setAttribute'](_0x2979d2['key'],_0x2979d2['oldValue'],_0x16dd37['start']['nodeAfter']):_0x106dc8['removeAttribute'](_0x2979d2['key'],_0x16dd37['start']['nodeAfter']);}else{for(const _0x38f08c of _0x37e86d)_0x2979d2['oldValue']?_0x106dc8['setAttribute'](_0x2979d2['key'],_0x2979d2['oldValue'],_0x38f08c):_0x106dc8['removeAttribute'](_0x2979d2['key'],_0x38f08c);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x5995e9);}}function Vt(_0x43172e,_0x39aa9f,_0x58c619){for(const _0x39ed7e of _0x39aa9f['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x39ed7e['root']==_0x39ed7e)return!0x1;if(!_0x58c619['containsItem'](_0x39ed7e))return!0x1;if(_0x43172e['isObject'](_0x39ed7e)||_0x43172e['isLimit'](_0x39ed7e))return!0x0;}return!0x1;}function Pt(_0x4197e9){return _0x4197e9['end']['parent']==_0x4197e9['start']['nodeAfter']&&_0x4197e9['end']['isAtStart'];}function Gt(_0x7e0287,_0x393534,_0x2bc23c,_0x50ded7){const _0x343290=_0x3b4b03=>!_0x3b4b03['item']['is']('$textProxy')&&!_0x50ded7['isObject'](_0x3b4b03['item']),_0x492a75=_0x7e0287['start']['getLastMatchingPosition'](_0x343290),_0x245b88=_0x7e0287['end']['getLastMatchingPosition'](_0x343290,{'direction':'backward'});return(!_0x7e0287['start']['isEqual'](_0x492a75)||!_0x7e0287['end']['isEqual'](_0x245b88))&&(_0x492a75['isBefore'](_0x245b88)?_0x2bc23c['updateMarker'](_0x393534,{'range':_0x2bc23c['createRange'](_0x492a75,_0x245b88)}):_0x2bc23c['removeMarker'](_0x393534),!0x0);}function Ft(_0x20d37f){return _0x37f81c(_0x20d37f);}function Lt(_0x5d4b40){const _0x1b7f08=_0x5d4b40['start']['nodeAfter'];return _0x1b7f08&&_0x1b7f08['is']('element');}function Jt(_0xb488f5,_0x4a262b){return null==_0xb488f5['end']['nodeBefore']&&_0xb488f5['end']['parent']==_0xb488f5['start']['nodeAfter']?Ht(_0xb488f5['start']['nodeAfter'],_0x4a262b):_0xb488f5;}function Ht(_0x5c196c,_0x37ad78){const _0x5b6589=_0x37ad78['schema']['isObject'](_0x5c196c)||_0x37ad78['schema']['isSelectable'](_0x5c196c);return _0x37ad78['createRange'](_0x37ad78['createPositionAt'](_0x5c196c,'before'),_0x5b6589?_0x37ad78['createPositionAfter'](_0x5c196c):_0x37ad78['createPositionAt'](_0x5c196c,'end'));}function qt(_0x2bb1ad,_0x443d0a,_0x317735,_0x56b45c){return!!zt(_0x2bb1ad,_0x443d0a)&&_0x317735['end']['isEqual'](_0x56b45c['start']);}function zt(_0xd5476b,_0x46038b){if(!_0xd5476b['_isDataLoaded']||!_0x46038b['_isDataLoaded'])return!0x1;const _0x400cb0=new Set(Object['keys'](_0xd5476b['attributes'])),_0x140ff3=new Set(Object['keys'](_0x46038b['attributes']));if(_0x400cb0['delete']('groupId'),_0x140ff3['delete']('groupId'),0x0==_0x400cb0['size']&&0x0==_0x140ff3['size'])return!0x0;if(_0x400cb0['size']!=_0x140ff3['size'])return!0x1;const _0x28c649={..._0xd5476b['attributes']},_0x433f38={..._0x46038b['attributes']};return delete _0x28c649['groupId'],delete _0x433f38['groupId'],JSON['stringify'](_0x28c649)==JSON['stringify'](_0x433f38);}function Kt(_0x5c3a4f,_0x58453d){const _0x30d26a=Wt(_0x5c3a4f['attributes']),_0x447b09=Wt(_0x58453d);if(!_0x5c3a4f['_isDataLoaded'])return!0x1;for(const _0x38c95b of Object['keys'](_0x447b09))if(!_0x3670b4(_0x30d26a[_0x38c95b],_0x447b09[_0x38c95b]))return!0x1;return!0x0;}function Wt(_0x20cfc9){const _0xd322a4=Object['assign']({},_0x20cfc9);return delete _0xd322a4['skipNestingCheck'],delete _0xd322a4['tablePasteChainId'],_0xd322a4;}class Ce extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x384257(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x36a60a,_0x155b07,_0x2fc86f,_0x33882d){super(),this['model']=_0x155b07,this['view']=_0x2fc86f,this['commentThreadController']=_0x33882d,this['_editor']=_0x36a60a,this['_acceptCommand']=_0x36a60a['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x36a60a['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x4eae90,_0xaa84ae)=>_0x4eae90||_0xaa84ae),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x3975e1=>_0x3975e1&&this['_editor']['model']['canEditAt'](_0x155b07['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x41eff5=>_0x41eff5&&this['_editor']['model']['canEditAt'](_0x155b07['getRanges']())),this['_pendingAction']=null,_0x2fc86f['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x2fc86f,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x2fc86f,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x2fc86f,'change:isDirty',()=>{_0x2fc86f['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 _0x16fb8b=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x16fb8b);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class as extends _0x2cbb45{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x38fdca,_0x355589,_0x184b3c,_0x414ff1){super(_0x38fdca),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x551377(_0x38fdca,o(_0x38fdca,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x355589['authoredAt']),this['bind']('authoredAt')['to'](_0x355589),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',_0x355589,'authoredAt',this,'descriptionParts',(_0x540b80,_0x3a36be,_0x154f21)=>{const _0x52e728=_0x154f21['map'](_0x1427e4=>ns(_0x1427e4['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x540b80-0x1,_0x355589['author']['name'],_0x3a36be?_0x414ff1['formatDateTime'](_0x3a36be):'',new DOMParser()['parseFromString'](_0x52e728,'text/html')['body']['textContent']]);}),this['focusables']=new _0x228783(),this['focusTracker']=new _0x2f5f93(),this['keystrokes']=new _0x46b47e(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x13ff07=>_0x13ff07['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x355589,this['_localUser']=_0x184b3c,this['_config']=_0x414ff1,_0x414ff1['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x1bc39f(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x20f332}=this['_config'];this['commentsListView']=new _0x20f332(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',_0x3ef46e=>_0x3ef46e+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x52f08f,_0xa4422c)=>_0x52f08f||!!_0xa4422c);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0xcc6089}=this['_config'],_0x3c9f67=new _0xcc6089(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x2d737f=_0x3c9f67['commentInputView'];return _0x3c9f67['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x2d737f,'value',(_0x4624a3,_0x475c0c,_0x8d32e2)=>!!_0x8d32e2||_0x4624a3&&!_0x475c0c),_0x2d737f['on']('submit',(_0x1f0549,_0x4ce9a8)=>{this['fire']('addComment',_0x4ce9a8),_0x2d737f['editor']['setData']('');}),_0x2d737f['on']('cancel',()=>this['focus']()),_0x2d737f['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x3c9f67;}}class pe extends as{['suggestionView'];['_descriptionElement'];constructor(_0x165e12,_0x551888,_0x3ea58b,_0x51146c){super(_0x165e12,_0x551888,_0x3ea58b,_0x51146c),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x36b1c5=>_0x36b1c5&&_0x36b1c5[0x0]?_0x36b1c5[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x5a8529,_0x53f6ff)=>{let _0x413f53='';for(const _0x205b2d of _0x5a8529)_0x413f53+='<p>'+ns(_0x205b2d['content'],_0x205b2d['color'])+'</p>';return _0x53f6ff?_0x413f53:_0x335942(_0x413f53,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x51146c['SuggestionView'](_0x165e12,_0x551888,{'formatDateTime':_0x51146c['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 _0x3a98a2=this['bindTemplate'],_0x5a0106=[this['suggestionView']];return this['commentsListView']&&_0x5a0106['push'](this['commentsListView']),this['commentThreadInputView']&&_0x5a0106['push'](this['commentThreadInputView']),_0x5a0106['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x3a98a2['if']('isActive','ck-suggestion-wrapper--active'),_0x3a98a2['to']('type',_0x3682e7=>'ck-suggestion-'+_0x3682e7),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':_0x3a98a2['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x5a0106};}['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 _0x2cbb45{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x5e3b0b,_0x4ad714,_0x441cf2){super(_0x5e3b0b),this['_model']=_0x4ad714,this['_config']=_0x441cf2,this['set']('description',''),this['bind']('authoredAt')['to'](_0x4ad714),this['acceptButton']=this['_createButton'](o(_0x5e3b0b,'Accept\x20suggestion'),_0x7e5a88['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x5e3b0b,'Discard\x20suggestion'),_0x7e5a88['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x5c1753(_0x5e3b0b,_0x4ad714['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x228783([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x2f5f93(),this['keystrokes']=new _0x46b47e(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x122b33=>_0x122b33['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x2aa6d8=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x2aa6d8['innerHTML']=this['description'],this['on']('change:description',(_0x19d9c4,_0x2dda0c,_0x34de3c)=>{_0x2aa6d8['innerHTML']=_0x34de3c;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0xee76ed=this['bindTemplate'],_0x493749=[{'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':_0xee76ed['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0xee76ed['to']('authoredAt',_0x2bc746=>this['_config']['formatDateTime'](_0x2bc746))}]}]},{'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']&&_0x493749['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':_0x493749}]};}['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'](_0x50c93c,_0x3cd823,_0x15e8d2,_0x15aacd,_0x50fc1b){const _0x51e004=new _0x36548d(this['locale']);return _0x51e004['set']({'label':_0x50c93c,'icon':_0x3cd823,'tooltip':!0x0,'tooltipPosition':_0x50fc1b}),_0x51e004['extendTemplate']({'attributes':{'class':_0x15e8d2}}),_0x51e004['on']('execute',()=>{this['fire'](_0x15aacd,this['_model']['id']);}),_0x51e004;}['_setupKeyboardNavigation'](){const _0x387653=this['element'];this['keystrokes']['listenTo'](_0x387653);for(const _0x3bd1c0 of this['focusables'])this['focusTracker']['add'](_0x3bd1c0['element']),this['keystrokes']['listenTo'](_0x3bd1c0['element']);this['keystrokes']['set']('enter',(_0x283bdc,_0x883b3)=>{_0x387653===_0x283bdc['target']&&(this['focusCycler']['focusFirst'](),_0x883b3());}),this['keystrokes']['set']('esc',(_0x3239eb,_0x28deca)=>{_0x387653!==_0x3239eb['target']&&(this['focus'](),_0x28deca());});}}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 _0x3cb51e{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x180863,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x28297e){super(_0x28297e),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x3c400c=this['editor']['config'];_0x3c400c['define']('trackChanges.SuggestionThreadView',pe),_0x3c400c['define']('trackChanges.SuggestionView',fe),_0x3c400c['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x3c400c['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x420a5c,_0x5c1396){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x3e8549,_0x488972]of this['_handleControllerBuffer']){const _0x4a0c2e=this['_suggestionToController']['has'](_0x3e8549);_0x4a0c2e||_0x488972?_0x4a0c2e&&_0x488972&&this['_destroyController'](_0x3e8549):this['_initializeController'](_0x3e8549);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x420a5c,_0x5c1396);}['init'](){const _0x56ea7f=this['editor'],_0x5b0647=_0x56ea7f['plugins']['get']('TrackChangesEditing'),_0x1d65c8=_0x56ea7f['plugins']['get']('Annotations'),_0x3ccfbc=_0x56ea7f['plugins']['get']('EditorAnnotations'),_0x542b77=_0x56ea7f['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x3ccfbc['addSourceCollector'](()=>{const _0x412cb6=[];for(const [_0x44d345,_0xfd7a08]of Array['from'](this['_suggestionToController'])){const _0x560df3=_0x44d345['getAllAdjacentSuggestions'](),_0x57728d=[];for(const _0x47e3c4 of _0x560df3){if(!_0x47e3c4['isInContent'])continue;if(_0x47e3c4['isMultiRange']){_0x57728d['push'](..._0x47e3c4['getRanges']());continue;}const _0x4ae5ad=_0x47e3c4['getFirstRange']();if(_0x57728d['length']>0x0){const _0x5b2cf8=_0x57728d[0x0]['getJoined'](_0x4ae5ad);if(_0x5b2cf8){_0x57728d[0x0]=_0x5b2cf8;continue;}}_0x57728d['push'](_0x4ae5ad);}_0x412cb6['push']([_0xfd7a08['view'],_0x57728d]);}return _0x412cb6;}),this['listenTo'](_0x5b0647,'suggestionLoaded',(_0x1191b2,_0x5c2b6c)=>{this['listenTo'](_0x5c2b6c,'change:previous',(_0x36b9fe,_0x3c16a2,_0x10f4ea,_0x43c726)=>{_0x5c2b6c['isInContent']&&(null==_0x10f4ea?(this['_updateController'](_0x43c726['head']),this['_handleSuggestionControllerDelayed'](_0x5c2b6c,!0x1)):(this['_updateController'](_0x10f4ea['head']),null==_0x43c726&&this['_handleSuggestionControllerDelayed'](_0x5c2b6c,!0x0)));}),null!==_0x5c2b6c['previous']?this['_updateController'](_0x5c2b6c['head']):this['_handleSuggestionControllerDelayed'](_0x5c2b6c,!0x1);}),this['listenTo'](_0x5b0647,'suggestionUnloaded',(_0x2305d4,_0x52a7f6,_0x301517)=>{this['stopListening'](_0x52a7f6,'change:previous'),this['_handleControllerBuffer']['delete'](_0x52a7f6),this['_suggestionToController']['has'](_0x52a7f6)&&this['_destroyController'](_0x52a7f6),_0x301517&&this['_updateController'](_0x301517['head']);}),this['listenTo'](_0x5b0647,'suggestionChanged',(_0x1c2e38,_0x543901)=>{this['_updateController'](_0x543901);}),this['listenTo'](_0x1d65c8,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x542b77,'addComment',(_0x5aad04,{threadId:_0x4b5a8d,isFromAdapter:_0x179ceb})=>{if(_0x179ceb||!_0x5b0647['hasSuggestion'](_0x4b5a8d))return;const _0x1caa16=_0x5b0647['getSuggestion'](_0x4b5a8d);this['_suggestionToController']['get'](_0x1caa16)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5eb54e=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xae2c60;for(const _0x1f40d1 in _0x5eb54e){const _0x272253=_0x1f40d1,_0x20c165=_0x5eb54e[_0x272253];if('trackChangesLicenseKeyValid'==_0x20c165||'trackChangesLicenseKeyInvalid'==_0x20c165||'trackChangesLicenseKeyExpired'==_0x20c165||'trackChangesLicenseKeyDomainLimit'==_0x20c165||'trackChangesLicenseKeyNotAllowed'==_0x20c165||'trackChangesLicenseKeyEvaluationLimit'==_0x20c165||'trackChangesLicenseKeyTrialLimit'==_0x20c165||'trackChangesLicenseKeyUsageLimit'==_0x20c165){delete _0x5eb54e[_0x272253],_0xae2c60=_0x20c165,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0xae2c60&&_0x5eb54e['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0xae2c60&&_0x5eb54e['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0xae2c60&&_0x5eb54e['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0xae2c60&&_0x5eb54e['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0xae2c60&&_0x5eb54e['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0xae2c60&&_0x5eb54e['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0xae2c60&&_0x5eb54e['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x59135e=this['editor']['plugins']['get']('Annotations'),_0x564109=this['editor']['plugins']['get']('TrackChangesEditing'),_0x34442e=Array['from'](_0x59135e['activeAnnotations'],_0x142c07=>_0x142c07['innerView'])['filter'](_0x2c6fc8=>this['_viewToController']['has'](_0x2c6fc8)),_0x5f5138=[];for(const _0x8889ff of _0x34442e){const _0x108555=this['_viewToController']['get'](_0x8889ff)['model']['getAllAdjacentSuggestions']();_0x5f5138['push'](..._0x108555['reduce']((_0x8789dd,_0x1414c6)=>[..._0x8789dd,..._0x1414c6['getMarkerNames']()],[]));}_0x564109['activeMarkers']=_0x5f5138;}['_addUIComponentsToFactory'](){const _0x4615ad=this['editor'],_0x4e2f32=_0x4615ad['locale'],_0x1c1eb8=o(_0x4e2f32,'Track\x20changes'),_0x2c6785=new _0x2b10e9([{'type':'switchbutton','model':new _0x4540b4({'withText':!0x0,'isToggleable':!0x0,'label':_0x1c1eb8,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x4540b4({'withText':!0x0,'label':o(_0x4e2f32,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4540b4({'withText':!0x0,'label':o(_0x4e2f32,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4540b4({'withText':!0x0,'label':o(_0x4e2f32,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4540b4({'withText':!0x0,'label':o(_0x4e2f32,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x4615ad['plugins']['has']('TrackChangesPreview')&&_0x2c6785['addMany']([{'type':'separator'},{'type':'button','model':new _0x4540b4({'withText':!0x0,'label':o(_0x4e2f32,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x1709fa of _0x2c6785)if(ke(_0x1709fa)){const _0x4e04b9=_0x4615ad['commands']['get'](_0x1709fa['model']['commandName']);_0x1709fa['model']['bind']('isOn','isEnabled')['to'](_0x4e04b9,'value','isEnabled');}_0x4615ad['ui']['componentFactory']['add']('trackChanges',_0x166d57=>this['_createToolbarButton'](_0x166d57,_0x2c6785,_0x1c1eb8)),_0x4615ad['ui']['componentFactory']['add']('menuBar:trackChanges',_0x1c8850=>this['_createMenuBarMenu'](_0x1c8850,_0x2c6785,_0x1c1eb8));}['_createToolbarButton'](_0x28cf5c,_0x515a59,_0xd0c306){const _0x335c55=_0x351cfd(_0x28cf5c,_0x2d0ebc),_0x299e51=this['editor']['commands']['get']('trackChanges');_0x335c55['buttonView']['set']({'tooltip':_0xd0c306,'label':_0xd0c306,'icon':we}),_0x335c55['buttonView']['bind']('isOn')['to'](_0x299e51,'value'),_0x335c55['buttonView']['on']('execute',()=>{_0x299e51['execute'](),this['editor']['editing']['view']['focus']();}),_0x5a323d(_0x335c55,_0x515a59,{'role':'menu'});const _0x1b5b11=[];for(const _0x3116ca of _0x515a59)ke(_0x3116ca)&&_0x1b5b11['push'](this['editor']['commands']['get'](_0x3116ca['model']['commandName']));const _0x276db7=_0x335c55['buttonView'];return _0x276db7['actionView']['unbind']('isEnabled'),_0x276db7['arrowView']['unbind']('isEnabled'),_0x276db7['actionView']['bind']('isEnabled')['to'](_0x299e51,'isEnabled'),_0x276db7['arrowView']['bind']('isEnabled')['toMany'](_0x1b5b11,'isEnabled',(..._0x41797b)=>_0x41797b['some'](_0x5ca38b=>_0x5ca38b)),_0x335c55['on']('execute',_0x1bac64=>{this['editor']['execute'](_0x1bac64['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x335c55;}['_createMenuBarMenu'](_0x399017,_0x4c7a68,_0x120a31){const _0x327f8c=new _0x679cca(_0x399017),_0x2d4969=this['editor']['commands']['get']('trackChanges');_0x327f8c['buttonView']['set']({'label':_0x120a31,'icon':we});const _0x2c1652=new _0x245e4c(_0x399017);for(const _0x1d78c9 of _0x4c7a68){if('separator'==_0x1d78c9['type']){_0x2c1652['items']['add'](new _0x1ee428(_0x399017));continue;}const _0x2c819a=new _0x1d14f5(_0x399017,_0x327f8c),_0x6dcab9=new _0x30710a(_0x399017),_0x57a3d1=_0x1d78c9['model'];_0x6dcab9['bind'](...Object['keys'](_0x57a3d1))['to'](_0x57a3d1),_0x6dcab9['delegate']('execute')['to'](_0x327f8c),_0x6dcab9['on']('execute',()=>{this['editor']['execute'](_0x57a3d1['commandName']),this['editor']['editing']['view']['focus']();}),_0x2c819a['children']['add'](_0x6dcab9),_0x2c1652['items']['add'](_0x2c819a);}return _0x327f8c['bind']('isEnabled')['to'](_0x2d4969,'isEnabled'),_0x327f8c['panelView']['children']['add'](_0x2c1652),_0x327f8c;}['_initializeController'](_0x449fb3){const _0x49c60d=this['editor'],_0xe96c0f=_0x49c60d['config'],_0x48b053=_0x49c60d['plugins']['get']('Annotations'),_0x4eb94c=_0x49c60d['plugins']['get']('CommentsRepository'),_0xd071fa=_0x49c60d['plugins']['get']('EditorAnnotations'),_0x150478=_0x49c60d['plugins']['get'](_0x180863)['me'],_0x2c00b5=_0xe96c0f['get']('trackChanges')['SuggestionThreadView'],_0xf7c7f4=_0xe96c0f['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x12ac51,CommentThreadInputView:_0x1c05cf}=_0x49c60d['plugins']['get']('CommentsUI');let _0x699925,_0x1799c2,_0x39e69a;this['_annotationViews']['has'](_0x449fb3['id'])?(_0x1799c2=this['_annotationViews']['get'](_0x449fb3['id']),_0x699925=_0x1799c2['mainView']):(_0x699925=new _0x2c00b5(_0x49c60d['locale'],_0x449fb3,_0x150478,{'disableComments':this['_disableComments'],'editorConfig':{..._0xe96c0f['get']('comments.editorConfig'),'licenseKey':_0xe96c0f['get']('licenseKey')},'maxCommentsWhenCollapsed':_0xe96c0f['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0xe96c0f['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0xe96c0f['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x3912f2(_0xe96c0f['get']('locale')),'CommentView':_0xe96c0f['get']('comments')['CommentView'],'CommentsListView':_0x12ac51,'CommentThreadInputView':_0x1c05cf,'SuggestionView':_0xf7c7f4}),_0x699925['suggestionView']['acceptButton']['on']('execute',()=>{_0x49c60d['editing']['view']['focus']();}),_0x699925['suggestionView']['discardButton']['on']('execute',()=>{_0x49c60d['editing']['view']['focus']();}),_0x1799c2=_0x48b053['createAnnotationView'](this['editor']['locale'],_0x699925),_0x1799c2['bind']('isDirty')['to'](_0x699925,'isDirty'),_0x1799c2['bind']('length')['to'](_0x699925),_0x1799c2['bind']('type')['to'](_0x699925,'type',_0x5f0536=>'suggestion-'+_0x5f0536),_0x699925['on']('escape',()=>{_0x39e69a['fire']('escape');}),this['_annotationViews']['set'](_0x449fb3['id'],_0x1799c2));const _0x2b854d=_0x4eb94c['createCommentThreadController'](_0x449fb3['commentThread'],_0x699925),_0xe6fff0=new Ce(_0x49c60d,_0x449fb3,_0x699925,_0x2b854d),_0x5c9be0=_0x449fb3['getAllAdjacentSuggestions']()['filter'](_0x39298b=>_0x39298b['isInContent']);_0x699925['descriptionParts']=_0x49c60d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x5c9be0),this['_suggestionToController']['set'](_0x449fb3,_0xe6fff0),this['_viewToController']['set'](_0x699925,_0xe6fff0),_0x39e69a=_0x48b053['createAnnotation']({'view':_0x1799c2,'target':()=>{const _0x4f2552=[],_0x1c6717=_0x449fb3['getAllAdjacentSuggestions']()['filter'](_0x2b6164=>_0x2b6164['isInContent']);for(const _0x59d041 of _0x1c6717)_0x4f2552['push'](..._0x59d041['getMarkers']());return _0x35e5ce(_0x49c60d['editing'],_0x4f2552);},'type':()=>'suggestion-'+_0xe6fff0['view']['type']}),_0x4eb94c['_bindAnnotationToEditors'](_0x699925,_0x39e69a),_0x48b053['add'](_0x39e69a),_0xd071fa['registerAnnotation'](_0x39e69a);}['_destroyController'](_0x4170af){const _0xf6c315=this['editor']['plugins']['get']('CommentsRepository'),_0x42af86=this['editor']['plugins']['get']('Annotations'),_0x4916d2=this['_suggestionToController']['get'](_0x4170af),_0x4ebcb9=_0x4916d2['view'],_0x595a4f=_0x42af86['getByInnerView'](_0x4ebcb9);_0xf6c315['_unbindEditors'](_0x4ebcb9),_0x595a4f&&_0x42af86['remove'](_0x595a4f),this['_suggestionToController']['delete'](_0x4170af),this['_viewToController']['delete'](_0x4ebcb9),_0x4916d2['destroy']();}['_updateController'](_0x1d80be){if(!_0x1d80be['isInContent']||!this['_suggestionToController']['has'](_0x1d80be))return;const _0x2d315b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1a6d37=this['_suggestionToController']['get'](_0x1d80be),_0x426f2a=_0x1d80be['getAllAdjacentSuggestions']();_0x1a6d37['view']['descriptionParts']=_0x2d315b['descriptionFactory']['getDescriptions'](_0x426f2a);}['destroy'](){for(const _0x26e7a5 of this['_suggestionToController']['keys']())this['_destroyController'](_0x26e7a5);for(const _0x4f8be4 of this['_annotationViews']['values']())_0x4f8be4['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x82f12d){return'model'in _0x82f12d;}class k extends _0x3cb51e{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x19fa0d){this['editor']['plugins']['get'](p)['adapter']=_0x19fa0d;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x4bedff){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x4bedff);}['getSuggestions']({skipNotAttached:_0x49c0f9=!0x1,toJSON:_0x6bc91=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x49c0f9,'toJSON':_0x6bc91});}['getSuggestion'](_0x3fc05f){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x3fc05f);}}const w=['Pagination'];class T extends _0x3cb51e{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0xc97d79=this['editor'];if(_0xc97d79['config']['define']('trackChangesData.editorCreator',_0x40b95d=>{const _0x56897a=_0xc97d79['model']['document']['getRootNames']()['reduce']((_0x33225e,_0xa68bff)=>(_0x33225e[_0xa68bff]='',_0x33225e),{});return _0xc97d79['constructor']['create'](_0x56897a,_0x40b95d);}),'function'!=typeof _0xc97d79['config']['get']('trackChangesData')['editorCreator'])throw new _0x1d0b44('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x630625){return N(this['editor'],!0x0,_0x630625);}['getDataWithDiscardedSuggestions'](_0x3e506b){return N(this['editor'],!0x1,_0x3e506b);}}class D extends _0x3cb51e{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xabc1e6){function _0x2d4287(_0x426e78){return _0x426e78['map'](_0x36c268=>String['fromCharCode'](_0x36c268))['join']('');}super(_0xabc1e6),this['result']='end',_0xabc1e6[_0x2d4287([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2d4287([0x76,0x69,0x65,0x77])][_0x2d4287([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2d4287([0x61,0x75,0x74,0x6f]),_0xabc1e6[_0x2d4287([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x2d4287([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2d4287([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x2d4287([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x2d4287([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(_0x15d2c8){return void 0x0!==_0x15d2c8['getRootsAttributes'];}async function N(_0x5d022,_0x4689e8,_0x41bc40){const _0x456cfc=_0x3bfe21(_0x5d022,w);_0x456cfc['plugins']['push'](p,D),_0x456cfc['rootsAttributes']=Fe(_0x5d022)?_0x5d022['getRootsAttributes']():void 0x0;const _0x27a286=document['createDocumentFragment'](),_0x23bdf1=_0x5d022['config']['get']('trackChangesData')['editorCreator'],_0x1fcc71=await _0x23bdf1(_0x456cfc,()=>function(_0x215f5d){const _0x420fc7=document['createElement']('div');return _0x215f5d['appendChild'](_0x420fc7),_0x420fc7;}(_0x27a286));!function(_0xebf394,_0x32a8b0){const _0x2a2afc=_0xebf394['model']['document']['getRootNames']()['reduce']((_0x384bc3,_0x560b0c)=>(_0x384bc3[_0x560b0c]=_0xebf394['data']['get']({'rootName':_0x560b0c}),_0x384bc3),{}),_0x1933e4=_0xebf394['plugins']['get']('Users')['users']['map'](_0x12829a=>({'id':_0x12829a['id'],'name':_0x12829a['name']})),_0x5ecbfc=_0xebf394['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x37cb6d=_0xebf394['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1b1e97=_0x32a8b0['plugins']['get']('Users'),_0x39a161=_0x32a8b0['plugins']['get']('TrackChangesEditing'),_0x4e15e5=_0x32a8b0['plugins']['get']('CommentsRepository');for(const _0xe0ef2d of _0x4e15e5['getCommentThreads']())_0xe0ef2d['remove']();for(const _0x4cb901 of _0x1933e4)_0x1b1e97['getUser'](_0x4cb901['id'])||_0x1b1e97['addUser'](_0x4cb901);_0x1b1e97['me']||_0x1b1e97['useAnonymousUser']();for(const _0x2e4a36 of _0x37cb6d)_0x4e15e5['addCommentThread'](_0x2e4a36);for(const _0x3d77e6 of _0x5ecbfc)_0x39a161['addSuggestionData'](_0x3d77e6);_0x32a8b0['data']['set'](_0x2a2afc);}(_0x5d022,_0x1fcc71),_0x1fcc71['execute'](_0x4689e8?'acceptAllSuggestions':'discardAllSuggestions');const _0x2747c7=Fe(_0x1fcc71)?_0x1fcc71['getFullData'](_0x41bc40):_0x1fcc71['data']['get'](_0x41bc40);return await _0x1fcc71['destroy'](),_0x2747c7;}class Me extends _0x2cbb45{['options'];constructor(_0x5e9dc5,_0x23f37c){super(_0x5e9dc5),this['options']=_0x23f37c,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'](_0x2307cf,_0x36ab60){if(!this['element'])return;const _0x36af42=[];for(const [_0xc2643b,_0x4ad1f3]of _0x2307cf){const _0x1e0898=document['createElement']('div');_0x1e0898['setAttribute']('data-ck-root-name',_0xc2643b),_0x1e0898['className']=_0x4ad1f3['classes']+'\x20ck-track-changes-preview__root-container',_0x1e0898['innerHTML']=_0x4ad1f3['content'],_0x36af42['push'](_0x1e0898);}_0x36ab60(this['element'],_0x36af42),this['element']['style']['width']='',this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends Qt{constructor(_0x4d1dea){super(_0x4d1dea),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x4f907b=this['editor'],_0xa7bb8=_0x4f907b['locale'],_0x3a9e8e=_0x4f907b['plugins']['get']('Dialog');let _0x4c2686;const _0x3d3d40=function(_0x1aa25c){const _0x38dcf3={};if('editables'in _0x1aa25c['ui']['view']){for(const [_0xe1f18d,_0x3d980f]of Object['entries'](_0x1aa25c['ui']['view']['editables']))_0x38dcf3[_0xe1f18d]=_0x3d980f['element'];}else _0x38dcf3[_0x1aa25c['model']['document']['getRootNames']()[0x0]]=_0x1aa25c['ui']['view']['editable']['element'];return _0x38dcf3;}(_0x4f907b),_0x18db2d=function(_0x2ebb4a){let _0x2eb6a4=0x0;for(const _0x16bf6e of Object['values'](_0x2ebb4a))_0x2eb6a4=Math['max'](_0x2eb6a4,_0x16bf6e['getBoundingClientRect']()['width']);let _0x44bd90=0x0;for(const _0x2ae06a of Object['values'](_0x2ebb4a))_0x44bd90+=_0x2ae06a['getBoundingClientRect']()['height'];const _0x314a60=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x22d24a=Math['min'](_0x44bd90,_0x314a60);return{'width':_0x2eb6a4,'height':_0x22d24a};}(_0x3d3d40);_0x3a9e8e['show']({'id':'finalContentPreview','title':o(_0xa7bb8,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0xa7bb8,{'dialogRects':_0x18db2d}),'onHide':()=>{_0x4c2686['detachFromDom']();},'onShow':()=>{_0x4f907b['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x15302e=>{const _0x2f0f4b=this['_standarizeRootsData'](_0x15302e,_0x4f907b,_0x3d3d40);_0x3a9e8e['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x2f0f4b,_0x4f907b['config']['get']('trackChanges.preview.renderFunction'));}),_0x4c2686=new _0x324068(_0xa7bb8,[_0x3a9e8e['view']]),_0x4c2686['attachToDom'](),_0x4c2686['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x4f907b['once']('destroy',()=>{_0x4c2686['detachFromDom']();});const _0x38d080=_0x3a9e8e['view']['headerView']['class'];_0x3a9e8e['view']['headerView']['class']=_0x38d080?_0x38d080+'\x20ck-reset_all':'ck-reset_all',_0x3a9e8e['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x3a9e8e['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x4d79f0=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x41bf59=_0x4d79f0['previewMode'],_0x373380={};if('$labels'===_0x41bf59){for(const _0x14c625 of _0x4d79f0['getMergeFieldsIds']())_0x373380[_0x14c625]=_0x4d79f0['getLabel'](_0x14c625)||_0x14c625;}else{const _0x14c087='$defaultValues'===_0x41bf59?_0x4d79f0['getDefaultValues']():_0x4d79f0['getDataSetValues'](_0x41bf59,!0x0);for(const _0x3d4126 of Object['entries'](_0x14c087)){const [_0x3fe8d8,_0x460c6b]=_0x3d4126;_0x373380[_0x3fe8d8]=null!==_0x460c6b?_0x460c6b:_0x4d79f0['getLabel'](_0x3fe8d8)||_0x3fe8d8;}}return{'mergeFieldsData':_0x373380};}['_standarizeRootsData'](_0x47ae56,_0x469070,_0x52b986){let _0x55d0b7;if('string'==typeof _0x47ae56){const _0x2bc587=_0x469070['model']['document']['getRootNames']()[0x0];_0x55d0b7={[_0x2bc587]:_0x47ae56};}else _0x55d0b7=_0x47ae56;const _0x29df79=this['_fixMediaEmbeds'](_0x55d0b7,_0x469070),_0x21751b=function(_0x480159,_0x573f04){for(const [_0x288011,_0x3e99af]of _0x480159)_0x3e99af['classes']=_0x573f04[_0x288011]['classList']['value']['replace']('ck-focused','');return _0x480159;}(this['_sortRoots'](_0x469070)['reduce']((_0x4805a7,_0x3be724)=>(_0x4805a7['push']([_0x3be724,{'content':_0x29df79[_0x3be724],'classes':''}]),_0x4805a7),[]),_0x52b986);return _0x21751b;}['_fixMediaEmbeds'](_0xc77a49,_0x39d2f8){if(!_0x39d2f8['plugins']['has']('MediaEmbedEditing'))return _0xc77a49;const _0x19ef62=_0x39d2f8['plugins']['get']('MediaEmbedEditing');for(const [_0x3db035,_0x50ec92]of Object['entries'](_0xc77a49)){const _0x36a4f1=document['createElement']('div');_0x36a4f1['innerHTML']=_0x50ec92,(_0x36a4f1['querySelectorAll']('figure.media')['forEach'](_0x419bed=>{const _0xcd80fc=_0x419bed['querySelector']('oembed');if(_0xcd80fc){const _0x6d0f7c=_0xcd80fc['getAttribute']('url');if(_0x6d0f7c){const _0x4e4af0=_0x19ef62['registry']['getMediaViewElement'](new _0x374046(_0x39d2f8['editing']['view']['document']),_0x6d0f7c,{'elementName':'','renderForEditingView':!0x0}),_0x5cf028=document['createElement']('div');_0x5cf028['classList']['add']('ck-media__wrapper'),_0x4e4af0['render'](_0x5cf028,_0x39d2f8['editing']['view']['domConverter']),_0xcd80fc['replaceWith'](_0x5cf028);}}}),_0xc77a49[_0x3db035]=_0x36a4f1['innerHTML']);}return _0xc77a49;}['_sortRoots'](_0x417b75){if(!function(_0x40e3a5){return void 0x0!==_0x40e3a5['getRootsAttributes'];}(_0x417b75))return _0x417b75['model']['document']['getRootNames']();const _0x995f87=[],_0x1035d9=new Map();for(const _0x3c3c1d of _0x417b75['model']['document']['getRootNames']()){const _0x33f6ec=_0x417b75['editing']['view']['getDomRoot'](_0x3c3c1d)['getClientRects']()['item'](0x0);_0x995f87['push'](_0x3c3c1d),_0x1035d9['set'](_0x3c3c1d,_0x33f6ec);}return _0x995f87['sort']((_0x3013cb,_0x319e5d)=>{const _0x46d35f=_0x1035d9['get'](_0x3013cb),_0x4ede97=_0x1035d9['get'](_0x319e5d);return _0x46d35f['y']-_0x4ede97['y']||_0x46d35f['x']-_0x4ede97['x'];}),_0x995f87;}}class te extends _0x3cb51e{static get['requires'](){return[T,_0x3065d3];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x49e13c){super(_0x49e13c),_0x49e13c['commands']['add']('previewFinalContent',new re(this['editor'])),_0x49e13c['config']['define']('trackChanges.preview.renderFunction',(_0x383652,_0x3ca8c5)=>{for(const _0x5463b5 of _0x3ca8c5)_0x383652['appendChild'](_0x5463b5);});}}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};
|
|
23
|
+
import{Command as Qt,Plugin as _0x236dec,PendingActions as _0x2106e0,icons as _0x18d5fb}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x1c08fa,ObservableMixin as _0x1cb55e,uid as _0x598835,insertToPriorityArray as _0x3bfd3d,priorities as _0x5255c7,logWarning as _0x1f6d12,getEnvKeystrokeText as _0x389808,FocusTracker as _0xc673c,KeystrokeHandler as _0x553953,Collection as _0xfa107d}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x1a45f5,View as _0x10742a,ViewCollection as _0x1adaf4,FocusCycler as ts,ViewModel as _0x12534b,createDropdown as _0x292c0,SplitButtonView as _0x1da248,addListToDropdown as _0x4243db,MenuBarMenuView as _0x4e2570,MenuBarMenuListView as _0x596de6,ListSeparatorView as _0x4bb519,MenuBarMenuListItemView as _0x2e60c3,MenuBarMenuListItemButtonView as _0x296666,BodyCollection as _0x38f9f9,Dialog as _0xe20bdc}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x4d36d3,hashObject as _0x202b58,surroundingMarkersDetector as _0xf25a02,FOCUS_ANNOTATION_KEYSTROKE as _0x869705,AriaDescriptionView as _0x466482,setupThreadKeyboardNavigation as _0x12a9e6,trimHtml as _0x180605,UserView as _0x59efeb,LateFocusButtonView as _0x24f414,getDateTimeFormatter as _0x762855,getAllMarkersDomElementsSorted as _0x52fcf0,sanitizeEditorConfig as _0x22d778}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x5db49c,LiveRange as _0x78f3c6,LivePosition as _0x10a158,DowncastWriter as _0x3ecfa8}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x544add,toWidget as _0x3c3dbf}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x10fdf2,set as _0x3ccfc5,isEqual as _0x5dbf15,unset as _0x116c08,omit as Et}from'lodash-es';import{Delete as _0x551b50,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x4079e2,ShiftEnter as _0x187999}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends Qt{['_enabledCommands'];constructor(_0x58730e,_0x41d61e){super(_0x58730e),this['_enabledCommands']=_0x41d61e,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 _0x193d32 of this['editor']['commands']['commands']())_0x193d32['affectsData']&&!this['_enabledCommands']['has'](_0x193d32)&&_0x193d32['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x48d55e of this['editor']['commands']['commands']())_0x48d55e['affectsData']&&!this['_enabledCommands']['has'](_0x48d55e)&&_0x48d55e['clearForceDisabled']('TrackChangesCommand');}}class O extends Qt{['_suggestions'];constructor(_0x47b50d,_0x424134){super(_0x47b50d),this['_suggestions']=_0x424134,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x25eec8){const _0x127ae8=this['_suggestions']['get'](_0x25eec8);if(!_0x127ae8)throw new _0x1c08fa('track-changes-accept-suggestion-not-found',this);const _0x1ea6ef=_0x127ae8['getRanges']();this['editor']['model']['canEditAt'](_0x1ea6ef)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x127ae8);}}class R extends Qt{['_suggestions'];constructor(_0x1f605b,_0x4c54af){super(_0x1f605b),this['_suggestions']=_0x4c54af,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3f7301){const _0x4f14f3=this['_suggestions']['get'](_0x3f7301);if(!_0x4f14f3)throw new _0x1c08fa('track-changes-discard-suggestion-not-found',this);const _0x197d75=_0x4f14f3['getRanges']();this['editor']['model']['canEditAt'](_0x197d75)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x4f14f3);}}function ns(_0x19abed,_0x2c04de){let _0x1cb10f='';return _0x1cb10f+=_0x19abed['split']('*')['map']((_0x1d96b6,_0x396514)=>_0x396514%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x1d96b6)+'</span>':nn(_0x1d96b6))['join'](''),_0x2c04de&&(_0x1cb10f+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x2c04de['value']+'\x22\x20title=\x22'+_0x2c04de['title']+'\x22></span>'),_0x1cb10f;}function nn(_0x3fca96){const _0x5e7028=document['createElement']('span');return _0x5e7028['innerText']=_0x3fca96,_0x5e7028['innerHTML'];}function Xt(_0x1e6f8c){return _0x1e6f8c['sort']((_0x150074,_0x531e0a)=>'deletion'==_0x150074['type']&&'deletion'!=_0x531e0a['type']?-0x1:'deletion'!=_0x150074['type']&&'deletion'==_0x531e0a['type']?0x1:0x0);}function to(_0x5910b5,_0x21603e){let _0x22ee85,_0xc46756=0x0;const _0x1c757d=[],_0x7710b3=_0x21603e['schema'];for(;_0xc46756<_0x5910b5['length'];){const _0x57c54f=_0x5910b5[_0xc46756],_0x282865=_0x5910b5[_0xc46756+0x1];_0x22ee85||(_0x22ee85=_0x21603e['createPositionBefore'](_0x57c54f)),on(_0x21603e,_0x57c54f,_0x282865)||(_0x1c757d['push'](_0x21603e['createRange'](_0x22ee85,_0x7710b3['isObject'](_0x57c54f)?_0x21603e['createPositionAfter'](_0x57c54f):_0x21603e['createPositionAt'](_0x57c54f,'end'))),_0x22ee85=null),_0xc46756++;}return _0x1c757d;}function on(_0x1d9197,_0x29c2b8,_0x8dd3f3){if(!_0x8dd3f3)return!0x1;const _0xcf9d46=_0x1d9197['createPositionAfter'](_0x29c2b8),_0x89d8f3=_0x1d9197['createPositionBefore'](_0x8dd3f3);return _0xcf9d46['isTouching'](_0x89d8f3);}function Yt(_0x48a4ec,_0x119494,_0x46f86d){for(;_0x46f86d['length'];){const _0x171aba=_0x46f86d['splice'](0x0,0x64);_0x48a4ec['change'](()=>{for(const _0x5c708f of _0x171aba)_0x5c708f['isInContent']&&_0x119494['execute'](_0x5c708f['id']);});}}class x extends Qt{['_command'];['_suggestions'];constructor(_0x8bb706,_0xec1fcb,_0x34673e){super(_0x8bb706),this['_command']=_0xec1fcb,this['_suggestions']=_0x34673e,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x38f7b2=Array['from'](this['_suggestions']['values']())['some'](_0x8d4ac4=>_0x8d4ac4['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x38f7b2;}['execute'](){const _0x1370d2=Xt(Array['from'](this['_suggestions']['values']()));for(const _0x4c0be0 of _0x1370d2){const _0x31be65=_0x4c0be0['getRanges']();if(!this['editor']['model']['canEditAt'](_0x31be65))return;}Yt(this['editor']['model'],this['_command'],_0x1370d2);}}class E extends Qt{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0xd2edf7,_0x6943f1,_0x4ee87f){super(_0xd2edf7),this['_command']=_0x6943f1,this['_suggestions']=_0x4ee87f,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x27d4f8=this['editor']['model']['document']['selection'],_0x393592=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x360a8e,_0x277c32){const _0x4eb56b=Array['from'](_0x360a8e['getRanges']()),_0x56021b=new Set();for(const _0x5ee9cf of _0x277c32)if(_0x5ee9cf['isInContent']){for(const _0x4dbf65 of _0x4eb56b)for(const _0x52fb5b of _0x5ee9cf['getRanges']())(_0x4dbf65['isIntersecting'](_0x52fb5b)||_0x360a8e['isCollapsed']&&!_0x5ee9cf['isMultiRange']&&_0x5ee9cf['next']&&_0x52fb5b['end']['isTouching'](_0x4dbf65['start']))&&_0x56021b['add'](_0x5ee9cf);}return _0x56021b;}(_0x27d4f8,_0x393592),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x2a277a=Xt(Array['from'](this['_selectedSuggestions']));for(const _0x12cfa3 of _0x2a277a){const _0x5a0826=_0x12cfa3['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5a0826))return;}Yt(this['editor']['model'],this['_command'],_0x2a277a);}}class u extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x1cb55e(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x5f0048,_0xa85f6a){super(),this['id']=_0xa85f6a['id'],this['type']=_0xa85f6a['type'],this['subType']=_0xa85f6a['subType']||null,this['author']=_0xa85f6a['author'],this['creator']=_0xa85f6a['creator']||_0xa85f6a['author'],this['isExternal']=Boolean(_0xa85f6a['attributes']&&_0xa85f6a['attributes']['@external']),this['data']=null,this['_model']=_0x5f0048,this['_onAccept']=_0xa85f6a['onAccept'],this['_onDiscard']=_0xa85f6a['onDiscard'],this['_onAttributesChange']=_0xa85f6a['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0xa85f6a['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 _0x49ec36=this;for(;_0x49ec36['previous'];)_0x49ec36=_0x49ec36['previous'];return _0x49ec36;}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'](_0x4afe16){this['_markerNames']['add'](_0x4afe16);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x1945e4=>this['_model']['markers']['get'](_0x1945e4))['filter'](_0xc8b7f2=>_0xc8b7f2);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x538aa5=>{for(const _0xbb5bfa of this['getMarkers']())_0x538aa5['removeMarker'](_0xbb5bfa);}),this['_markerNames']['clear']();}['removeMarker'](_0xb09277){this['_model']['change'](_0xf3d7bb=>{_0xf3d7bb['removeMarker'](_0xb09277);}),this['_markerNames']['delete'](_0xb09277);}['addRange'](_0x531109){const _0x4fa34f='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x4fa34f),this['_model']['change'](_0x568c32=>{_0x568c32['addMarker'](_0x4fa34f,{'range':_0x531109,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x5d4198){for(const _0x238b48 of this['getRanges']())if(_0x238b48['isIntersecting'](_0x5d4198))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x2e4d5a=>_0x2e4d5a['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x1cb8a1,_0x1a17da)=>[..._0x1cb8a1,..._0x1a17da['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x544d79=this['getRanges']();if(0x1!=_0x544d79['length'])return null;const _0x7a957=_0x544d79[0x0],_0xfcf9f8=_0x7a957['start']['nodeAfter'],_0x236e63=_0x7a957['end']['nodeBefore'];return _0xfcf9f8 instanceof _0x5db49c?_0xfcf9f8!=_0x236e63?null:_0xfcf9f8: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 _0xbd4454=[];let _0x1d6669=this['head'];for(;_0x1d6669;)_0xbd4454['push'](_0x1d6669),_0x1d6669=_0x1d6669['next'];return _0xbd4454;}['setAttribute'](_0x2c8218,_0x3a0b7d){const _0x458445=_0x10fdf2(this['attributes']);_0x3ccfc5(_0x458445,_0x2c8218,_0x3a0b7d),_0x5dbf15(_0x458445,this['attributes'])||(this['attributes']=_0x458445,this['_onAttributesChange'](_0x458445));}['removeAttribute'](_0x4f32ea){const _0x405c42=_0x10fdf2(this['attributes']);_0x116c08(_0x405c42,_0x4f32ea),_0x5dbf15(_0x405c42,this['attributes'])||(this['attributes']=_0x405c42,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 _0x598835()['substr'](0x1,0x5);}}function o(_0x21b7c4,_0x38b884,_0xce3800){const _0x4ec1ce=_0x21b7c4['t'],t=_0x21b7c4['t'];switch(_0x38b884){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',_0xce3800);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0xce3800);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0xce3800);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0xce3800);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0xce3800);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',_0xce3800);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0xce3800);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',_0xce3800);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0xce3800);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0xce3800);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0xce3800);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0xce3800);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0xce3800);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0xce3800);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0xce3800);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0xce3800);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0xce3800);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0xce3800);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0xce3800);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0xce3800);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0xce3800);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0xce3800);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0xce3800);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0xce3800);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'},_0xce3800);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0xce3800);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0xce3800);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0xce3800);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0xce3800);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0xce3800);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'},_0xce3800);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0xce3800);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0xce3800);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0xce3800);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0xce3800);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'},_0xce3800);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0xce3800);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'},_0xce3800);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'},_0xce3800);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0xce3800);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'},_0xce3800);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0xce3800);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'},_0xce3800);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0xce3800);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0xce3800);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'},_0xce3800);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0xce3800);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 _0x4ec1ce({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0xce3800);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x4ec1ce({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0xce3800);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0xce3800);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'},_0xce3800);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'},_0xce3800);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'},_0xce3800);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x38b884;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x37c102,_0x5cf666){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x37c102,this['_locale']=_0x5cf666;}['getDescriptions'](_0x4d49e6){const _0x4c8dc6=[],_0x5bbf06=new Set(),_0x45aa0b=new Set();for(let _0x4a4aae=0x0;_0x4a4aae<_0x4d49e6['length'];_0x4a4aae++){const _0x3813c3=_0x4d49e6[_0x4a4aae];if(!_0x3813c3['isInContent'])continue;const _0x805cf4=this['_handleCustomCallbackDescription'](_0x3813c3);if(_0x805cf4){if(null!=_0x3813c3['subType']){if(_0x5bbf06['has'](_0x3813c3['subType']))continue;_0x5bbf06['add'](_0x3813c3['subType']);}_0x4c8dc6['push'](_0x805cf4);}else{if('attribute'!=_0x3813c3['type'])'insertion'!=_0x3813c3['type']&&'deletion'!=_0x3813c3['type']||this['_handleInsertRemoveSuggestionDescription'](_0x4c8dc6,_0x3813c3,_0x4d49e6[_0x4a4aae+0x1]);else{const _0x2012d7=_0x3813c3['data']['key'];if(_0x45aa0b['has'](_0x2012d7))continue;_0x45aa0b['add'](_0x3813c3['data']['key']),_0x2012d7==m?this['_handleRenameSuggestionDescription'](_0x4c8dc6,_0x3813c3):this['_handleAttributeSuggestionDescription'](_0x4c8dc6,_0x3813c3);}}}return this['_resolveDescriptionItems'](_0x4c8dc6);}['registerDescriptionCallback'](_0x448f73){this['_customCallbacks']['push'](_0x448f73);}['registerElementLabel'](_0x23cbbe,_0x36f3f3,_0x27ab6b=_0x5255c7['normal']){'function'==typeof _0x23cbbe?_0x3bfd3d(this['_itemLabelsCallbacks'],{'matchingCallback':_0x23cbbe,'label':_0x36f3f3,'priority':_0x27ab6b}):this['_itemLabels']['set'](_0x23cbbe,_0x36f3f3);}['registerAttributeLabel'](_0x3c31bf,_0x191fc1){this['_attributeLabels']['set'](_0x3c31bf,_0x191fc1);}['getItemLabel'](_0x2bc045,_0x1e308a=0x1){let _0x4a489;for(const _0x4252ae of this['_itemLabelsCallbacks'])if(_0x4252ae['matchingCallback'](_0x2bc045)){_0x4a489=_0x4252ae['label'];break;}return _0x4a489||(_0x4a489=this['_itemLabels']['get'](_0x2bc045['name'])),_0x4a489?_0x4a489(_0x1e308a):0x1!==_0x1e308a?_0x1e308a+'\x20'+_0x2bc045['name']+'s':''+_0x2bc045['name'];}['_addDescriptionItems'](_0x4cb726,_0x3a3330){const _0x3f67c7=_0x3a3330['getFirstRange']()['getWalker'](),_0x36756c='insertion'==_0x3a3330['type']?'add':'remove';for(const _0x2aa7ee of _0x3f67c7){const _0x363557=_0x2aa7ee['item'],_0x482847=_0x4cb726[_0x4cb726['length']-0x1];if(_0x363557['is']('$textProxy'))_0x482847&&_0x482847['type']['indexOf']('Container')>-0x1&&_0x4cb726['pop'](),_0x482847&&'text'==_0x482847['type']?_0x482847[_0x36756c]+=_0x363557['data']:_0x4cb726['push']({'type':'text','add':'add'==_0x36756c?_0x363557['data']:'','remove':'remove'==_0x36756c?_0x363557['data']:''});else{if(this['_schema']['isObject'](_0x363557)){const _0x5e3c1a=_0x363557;if(_0x482847&&_0x482847['type']['indexOf']('Container')>-0x1&&_0x4cb726['pop'](),'elementEnd'==_0x2aa7ee['type'])continue;_0x482847&&_0x482847['type']==_0x36756c+'Object'&&_0x482847['element']['name']==_0x5e3c1a['name']?_0x482847['quantity']++:_0x4cb726['push']({'type':_0x36756c+'Object','element':_0x5e3c1a,'quantity':0x1}),_0x3f67c7['skip'](_0x33929c=>!('elementEnd'==_0x33929c['type']&&_0x33929c['item']==_0x363557));}else{if(this['_schema']['checkChild'](_0x363557,'$text')||_0x363557['is']('element','softBreak')){const _0x23ca90=_0x363557;if('add'==_0x36756c&&'elementStart'==_0x2aa7ee['type']||'remove'==_0x36756c&&'elementEnd'==_0x2aa7ee['type'])continue;if(_0x482847&&-0x1==_0x482847['type']['indexOf']('Container')){'text'==_0x482847['type']&&(_0x482847[_0x36756c]+='\x0a');continue;}let _0x3da3a8;if(_0x3da3a8='add'==_0x36756c?_0x23ca90['nextSibling']&&!this['_schema']['isObject'](_0x23ca90['nextSibling'])?_0x23ca90['nextSibling']:null:_0x23ca90['previousSibling']&&!this['_schema']['isObject'](_0x23ca90['previousSibling'])?_0x23ca90['previousSibling']:null,_0x23ca90['isEmpty']||_0x3da3a8&&_0x3da3a8['isEmpty']){const _0x575e02=_0x3da3a8&&_0x3da3a8['isEmpty']?_0x3da3a8:_0x23ca90;_0x482847&&_0x482847['type']==_0x36756c+'EmptyContainer'&&_0x482847['element']['name']==_0x575e02['name']?_0x482847['quantity']++:_0x4cb726['push']({'type':_0x36756c+'EmptyContainer','element':_0x575e02,'quantity':0x1});}else _0x4cb726['push']({'type':_0x36756c+'Container','element':_0x23ca90});}}}}}['_resolveDescriptionItems'](_0x4a3a14){const _0x26beda=this['_locale'],_0x732fee=[],_0x36d068=[],_0x2b9ebf=[];for(const _0x3c0cfe of _0x4a3a14)switch(_0x3c0cfe['type']){case'text':if(_0x3c0cfe['add']=_0x3c0cfe['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x3c0cfe['remove']=_0x3c0cfe['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x3c0cfe['add']&&''!=_0x3c0cfe['remove']){_0x732fee['push']({'type':'replace','content':o(_0x26beda,'REPLACE_TEXT',['\x22'+_0x3c0cfe['remove']+'\x22','\x22'+_0x3c0cfe['add']+'\x22'])});continue;}if(null!=_0x3c0cfe['add']['match'](/^ +$/)){_0x732fee['push']({'type':'insertion','content':o(_0x26beda,'*Insert:*\x20%0',o(_0x26beda,'ELEMENT_SPACE',_0x3c0cfe['add']['length']))});continue;}if(null!=_0x3c0cfe['remove']['match'](/^ +$/)){_0x732fee['push']({'type':'deletion','content':o(_0x26beda,'*Remove:*\x20%0',o(_0x26beda,'ELEMENT_SPACE',_0x3c0cfe['remove']['length']))});continue;}if(''!=_0x3c0cfe['add']){_0x732fee['push']({'type':'insertion','content':o(_0x26beda,'*Insert:*\x20%0','\x22'+_0x3c0cfe['add']+'\x22')});continue;}_0x732fee['push']({'type':'deletion','content':o(_0x26beda,'*Remove:*\x20%0','\x22'+_0x3c0cfe['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x732fee['push']({'type':'insertion','content':o(_0x26beda,'*Insert:*\x20%0',this['getItemLabel'](_0x3c0cfe['element'],_0x3c0cfe['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x732fee['push']({'type':'deletion','content':o(_0x26beda,'*Remove:*\x20%0',this['getItemLabel'](_0x3c0cfe['element'],_0x3c0cfe['quantity']))});continue;case'addContainer':_0x732fee['push']({'type':'insertion','content':o(_0x26beda,'*Split:*\x20%0',this['getItemLabel'](_0x3c0cfe['element'],_0x3c0cfe['quantity']))});continue;case'removeContainer':_0x732fee['push']({'type':'deletion','content':o(_0x26beda,'*Merge:*\x20%0',this['getItemLabel'](_0x3c0cfe['element'],_0x3c0cfe['quantity']))});continue;case'addFormat':_0x36d068['push'](_0x3c0cfe['key']);continue;case'removeFormat':_0x2b9ebf['push'](_0x3c0cfe['key']);continue;default:_0x732fee['push'](_0x3c0cfe);}if(_0x36d068['length']){const _0x5b2b27=_0x36d068['map'](_0x397285=>this['_attributeLabels']['has'](_0x397285)?this['_attributeLabels']['get'](_0x397285):_0x397285)['join'](',\x20');_0x732fee['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x5b2b27)});}if(_0x2b9ebf['length']){const _0x59602b=_0x2b9ebf['map'](_0x36ffe2=>this['_attributeLabels']['has'](_0x36ffe2)?this['_attributeLabels']['get'](_0x36ffe2):_0x36ffe2)['join'](',\x20');_0x732fee['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x59602b)});}return _0x732fee;}['_handleCustomCallbackDescription'](_0x32a8f7){for(const _0x3bc985 of this['_customCallbacks']){const _0x5a0525=_0x3bc985(_0x32a8f7);if(_0x5a0525&&'type'in _0x5a0525)return _0x5a0525;}}['_handleAttributeSuggestionDescription'](_0x306ae4,_0xe02aa5){const _0x50d600=_0xe02aa5['data'],_0x4a789c=void 0x0===_0x50d600['newValue']?'removeFormat':'addFormat';_0x306ae4['push']({'type':_0x4a789c,'key':_0x50d600['key']});}['_handleRenameSuggestionDescription'](_0xf4b045,_0x209a7b){_0xf4b045['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x209a7b['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x55fced,_0x40e67c,_0x132b32){if(this['_addDescriptionItems'](_0x55fced,_0x40e67c),_0x132b32&&_0x132b32['getFirstRange']()&&!_0x40e67c['getFirstRange']()['end']['isEqual'](_0x132b32['getFirstRange']()['start'])){const _0xa78eb7=_0x55fced[_0x55fced['length']-0x1],_0x4ec2ef='insertion'==_0x40e67c['type']?'add':'remove';_0xa78eb7&&'text'==_0xa78eb7['type']&&(_0xa78eb7[_0x4ec2ef]+='\x0a');}}}class U extends _0x236dec{['afterInit'](){const _0x22a341=this['editor'],_0x9f71ba=_0x22a341['plugins']['get']('TrackChangesEditing');_0x22a341['commands']['get']('showAIAssistant')&&_0x9f71ba['enableCommand']('showAIAssistant');}}class V extends _0x236dec{['afterInit'](){const _0x5cac6e=this['editor'],_0x571cee=_0x5cac6e['locale'];if(!_0x5cac6e['plugins']['has']('AlignmentEditing'))return;const _0x4eacaa=_0x5cac6e['plugins']['get']('TrackChangesEditing');_0x4eacaa['enableDefaultAttributesIntegration']('alignment'),_0x4eacaa['registerBlockAttribute']('alignment'),_0x4eacaa['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x571cee,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x24ff19=this['editor'],_0x319236=_0x24ff19['locale'];_0x24ff19['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5c9381=>{if('formatBlock'!=_0x5c9381['type'])return;const {data:_0x24cde3}=_0x5c9381;if(_0x24cde3&&'alignment'==_0x24cde3['commandName']){const _0xbbf8ae=_0x24cde3['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x319236,'*Format:*\x20%0',function(_0x519e95){switch(_0x519e95){case'left':return o(_0x319236,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x319236,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x319236,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x319236,'FORMAT_JUSTIFY_TEXT');}}(_0xbbf8ae))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x236dec{['afterInit'](){const _0xa26438=this['editor'],_0x32c23c=_0xa26438['plugins']['get']('TrackChangesEditing'),_0x1acedd=_0xa26438['locale'];for(const _0x49a4da of ti){if(!_0xa26438['plugins']['has'](_0x49a4da))continue;const _0x2dc8e6=_0x49a4da['slice'](0x0,-0x7)['toLowerCase'](),_0x47f43e='FORMAT_'+_0x2dc8e6['toUpperCase']();_0x32c23c['enableDefaultAttributesIntegration'](_0x2dc8e6),_0x32c23c['registerInlineAttribute'](_0x2dc8e6),_0x32c23c['descriptionFactory']['registerAttributeLabel'](_0x2dc8e6,o(_0x1acedd,_0x47f43e));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x12a1d9=this['editor'],_0x221d22=_0x12a1d9['locale'],_0x18bf04=_0x12a1d9['plugins']['get']('TrackChangesEditing');function _0x2ff5da(_0xae0c8a,_0x5d1ea0){_0x18bf04['descriptionFactory']['registerDescriptionCallback'](_0x27effd=>{if('formatInline'!=_0x27effd['type'])return;const {data:_0x44fcd9}=_0x27effd;return _0x44fcd9&&_0x44fcd9['commandName']===_0xae0c8a?_0x44fcd9['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x221d22,'*Format:*\x20%0',_0x5d1ea0)}:{'type':'format','content':o(_0x221d22,'*Remove\x20format:*\x20%0',_0x5d1ea0)}:void 0x0;});}_0x2ff5da('bold',o(_0x221d22,'FORMAT_BOLD')),_0x2ff5da('italic',o(_0x221d22,'FORMAT_ITALIC')),_0x2ff5da('underline',o(_0x221d22,'FORMAT_UNDERLINE')),_0x2ff5da('code',o(_0x221d22,'FORMAT_CODE')),_0x2ff5da('strikethrough',o(_0x221d22,'FORMAT_STRIKETHROUGH')),_0x2ff5da('subscript',o(_0x221d22,'FORMAT_SUBSCRIPT')),_0x2ff5da('superscript',o(_0x221d22,'FORMAT_SUPERSCRIPT'));}}class F extends _0x236dec{['afterInit'](){const _0x343389=this['editor'],_0x303340=_0x343389['locale'];if(!_0x343389['plugins']['has']('BlockQuoteEditing'))return;const _0x3cb6d8=_0x343389['plugins']['get']('TrackChangesEditing'),_0x358d23=this['editor']['commands']['get']('blockQuote');_0x3cb6d8['enableCommand']('blockQuote',(_0x59b61f,_0x2d0502={})=>{const _0xc6aec0=this['editor']['model']['document']['selection'],_0x307b03=_0x2d0502&&void 0x0!==_0x2d0502['forceValue']?_0x2d0502['forceValue']:!_0x358d23['value'];let _0x3392a1=[];if(_0x307b03){const _0x5ae03d=Array['from'](_0xc6aec0['getSelectedBlocks']())['filter'](_0x485928=>oo(_0x485928)||function(_0x4ac6df,_0xefa318){const _0x118322=_0xefa318['checkChild'](_0x4ac6df['parent'],'blockQuote'),_0x383524=_0xefa318['checkChild'](['$root','blockQuote'],_0x4ac6df);return _0x118322&&_0x383524;}(_0x485928,this['editor']['model']['schema']));_0x3392a1=to(_0x5ae03d,_0x343389['model']);}else{const _0x5b2703=Array['from'](_0xc6aec0['getSelectedBlocks']())['filter'](_0x3b0164=>oo(_0x3b0164));_0x3392a1=to(_0x5b2703,_0x343389['model']);}_0x343389['model']['change'](()=>{for(const _0x1a2d9d of _0x3392a1)_0x3cb6d8['markBlockFormat'](_0x1a2d9d,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x307b03}]});});}),_0x3cb6d8['descriptionFactory']['registerDescriptionCallback'](_0xe92fae=>{const {data:_0x2bd324}=_0xe92fae;if(_0x2bd324&&'blockQuote'==_0x2bd324['commandName']){const _0x51d8b3=o(_0x303340,'ELEMENT_BLOCK_QUOTE');return _0x2bd324['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x303340,'*Set\x20format:*\x20%0',_0x51d8b3)}:{'type':'format','content':o(_0x303340,'*Remove\x20format:*\x20%0',_0x51d8b3)};}});}}function oo(_0x38367b){return'blockQuote'==_0x38367b['parent']['name'];}class L extends _0x236dec{['afterInit'](){const _0x55cb1c=this['editor'],_0x1c41f0=_0x55cb1c['locale'],_0x5c06b9=_0x55cb1c['plugins']['get']('TrackChangesEditing');_0x55cb1c['plugins']['has']('BookmarkEditing')&&(_0x5c06b9['enableCommand']('insertBookmark'),_0x5c06b9['enableDefaultAttributesIntegration']('updateBookmark'),_0x5c06b9['registerBlockAttribute']('bookmarkId'),_0x5c06b9['descriptionFactory']['registerDescriptionCallback'](_0x45c112=>{if('insertion'!=_0x45c112['type']&&'deletion'!=_0x45c112['type']&&'attribute'!=_0x45c112['type'])return;const _0x541e95=_0x45c112['getContainedElement']();if(null==_0x541e95)return;if(!_0x541e95['is']('element','bookmark'))return;const _0x4aa038=_0x541e95['getAttribute']('bookmarkId');if('insertion'==_0x45c112['type'])return{'type':'insertion','content':o(_0x1c41f0,'*Insert:*\x20%0','\x22'+_0x4aa038+'\x22\x20'+o(_0x1c41f0,'ELEMENT_BOOKMARK'))};if('deletion'==_0x45c112['type'])return{'type':'deletion','content':o(_0x1c41f0,'*Remove:*\x20%0','\x22'+_0x4aa038+'\x22\x20'+o(_0x1c41f0,'ELEMENT_BOOKMARK'))};const {data:_0x4b5cdb}=_0x45c112;if(!_0x4b5cdb||'bookmarkId'!=_0x4b5cdb['key'])return;return{'type':'format','content':o(_0x1c41f0,'*Set\x20bookmark:*\x20%0','\x22'+_0x4b5cdb['newValue']+'\x22')};}));}}class J extends _0x236dec{['afterInit'](){const _0x3cd6a5=this['editor'];_0x3cd6a5['plugins']['has']('CaseChange')&&(_0x3cd6a5['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x3cd6a5['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x3cd6a5['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x236dec{['afterInit'](){const _0x34f291=this['editor'];_0x34f291['commands']['get']('ckbox')&&_0x34f291['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x236dec{['afterInit'](){const _0x5de77d=this['editor'];if(!_0x5de77d['plugins']['has']('CodeBlock'))return;const _0x17a494=_0x5de77d['plugins']['get']('TrackChangesEditing'),_0xd36831=_0x5de77d['locale'],_0x4a040b=_0x5de77d['config']['get']('codeBlock')['languages'],_0x85624b=_0x5de77d['commands']['get']('codeBlock');_0x17a494['enableCommand']('indentCodeBlock'),_0x17a494['enableCommand']('outdentCodeBlock'),_0x17a494['enableCommand']('codeBlock',(_0x5a6a58,_0x437557={})=>{const _0x348670=_0x5de77d['model'],_0x1897f7=_0x5de77d['model']['document']['selection'],_0x293195=_0x437557&&void 0x0!==_0x437557['forceValue']?_0x437557['forceValue']:!_0x85624b['value'];let _0x239468;_0x437557['language']||(_0x437557['language']=_0x4a040b[0x0]['language']),_0x239468=_0x293195?Array['from'](_0x1897f7['getSelectedBlocks']())['filter'](_0x1524d7=>eo(_0x1524d7)||function(_0x1d66e4,_0x1688ba){if(_0x1d66e4['is']('rootElement')||_0x1688ba['isLimit'](_0x1d66e4))return!0x1;return _0x1688ba['checkChild'](_0x1d66e4['parent'],'codeBlock');}(_0x1524d7,_0x348670['schema'])):Array['from'](_0x1897f7['getSelectedBlocks']())['filter'](_0x309477=>eo(_0x309477));const _0xe7fd8d=to(_0x239468,_0x348670);_0x348670['change'](()=>{for(const _0x1a8675 of _0xe7fd8d)_0x17a494['markBlockFormat'](_0x1a8675,{'commandName':'codeBlock','commandParams':[{..._0x437557,'forceValue':_0x293195}],'formatGroupId':'blockName'});});}),(_0x17a494['descriptionFactory']['registerElementLabel']('codeBlock',_0x643fab=>o(_0xd36831,'ELEMENT_CODE_BLOCK',_0x643fab)),_0x17a494['descriptionFactory']['registerDescriptionCallback'](_0x118824=>{if('formatBlock'!=_0x118824['type'])return;const _0x3e8fab=_0xd36831['t'],{data:_0x1faacc}=_0x118824;if(!_0x1faacc||'codeBlock'!=_0x1faacc['commandName'])return;const _0x43bbf0=_0x1faacc['commandParams'][0x0]['language'],_0xe09da2=_0x3e8fab(_0x4a040b['find'](_0x5246ed=>_0x5246ed['language']===_0x43bbf0)['label'])['toLowerCase']();return _0x1faacc['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xd36831,'*Set\x20format:*\x20%0',o(_0xd36831,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0xe09da2+')')}:{'type':'format','content':o(_0xd36831,'*Remove\x20format:*\x20%0',o(_0xd36831,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x335c77){return'codeBlock'==_0x335c77['name'];}class z extends _0x236dec{['afterInit'](){const _0x491707=this['editor'];if(!_0x491707['plugins']['has']('CommentsEditing'))return;_0x491707['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x1e0000,_0x594e48,_0x34d8c2){const _0x715e3c=[];for(const _0x78a1dd of _0x594e48['getItems']())_0x78a1dd['hasAttribute'](_0x1e0000)&&_0x715e3c['push'](_0x34d8c2['createRangeOn'](_0x78a1dd));return _0x715e3c;}function De(_0x12b7ea,_0x185e4a,{showActiveMarker:_0x207d49=!0x0}={}){const _0x41e7b8=_0x12b7ea['plugins']['get']('TrackChangesEditing');return(_0x58e5d7,_0x5d9dcd,_0xf4e3e0)=>{if(!_0xf4e3e0['consumable']['test'](_0x5d9dcd['markerRange'],_0x58e5d7['name']))return;const _0x19252f=_0x5d9dcd['markerRange']['getWalker'](),_0x57ae5b=_0x5d9dcd['markerRange']['start'],_0x29c006=_0x12b7ea['model']['schema'];let _0x7da929=null,_0x486c89=null,_0x2bd771=!0x1,_0x12fb88=!0x1;for(const _0xa8929d of _0x19252f){const _0x5125fe=_0xa8929d['item'];_0x2bd771=_0x2bd771||_0x29c006['isContent'](_0x5125fe);const _0x358798=_0xf4e3e0['mapper']['toViewElement'](_0x5125fe);if(_0x358798&&_0x358798['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xa8929d['type']&&(_0x29c006['isBlock'](_0x5125fe)&&!_0x29c006['isLimit'](_0x5125fe)&&(_0x5125fe['nextSibling']||_0x57ae5b['isAtEnd']?_0x7da929&&_0x7da929['parent']==_0x5125fe||(_0x7da929=_0x5125fe,_0x5120b0(_0xa8929d['previousPosition']),_0x12fb88=!0x0):_0x486c89=_0x486c89||_0xa8929d['previousPosition']));}function _0x5120b0(_0x3517ed){const {authorId:_0x46450b}=_0x41e7b8['_splitMarkerName'](_0x5d9dcd['markerName']),_0xa2957b=_0xf4e3e0['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x185e4a,'data-author-id':_0x46450b}),_0x48a3e3=_0xf4e3e0['mapper']['toViewPosition'](_0x3517ed);_0x207d49&&_0x41e7b8['activeMarkers']['includes'](_0x5d9dcd['markerName'])&&_0xf4e3e0['writer']['addClass']('ck-suggestion-marker--active',_0xa2957b),_0xf4e3e0['writer']['insert'](_0x48a3e3,_0xa2957b),_0xf4e3e0['mapper']['bindElementToMarker'](_0xa2957b,_0x5d9dcd['markerName']);}_0x2bd771||_0x12fb88||!_0x486c89||_0x5120b0(_0x486c89);};}class K extends _0x236dec{static get['requires'](){return[_0x551b50];}['init'](){const _0x34b655=this['editor'],_0x114734=_0x34b655['plugins']['get']('TrackChangesEditing');_0x114734['enableCommand']('delete');const _0x530613=_0x34b655['commands']['get']('deleteForward');_0x114734['enableCommand']('deleteForward',(_0xd39a9,_0x203a80={})=>{const _0x4ec651=_0x34b655['model']['createSelection'](_0x34b655['model']['document']['selection']);_0x4ec651['isCollapsed']&&_0x34b655['model']['modifySelection'](_0x4ec651,{'direction':'forward','unit':_0x203a80['unit']});const _0x1efd03=_0x4ec651['getFirstRange'](),_0x47b81b=_0x78f3c6['fromRange'](_0x1efd03);let _0x1c5e44;_0xd39a9(_0x203a80),_0x1c5e44='$graveyard'==_0x47b81b['root']['rootName']?_0x34b655['model']['createRange'](_0x1efd03['start']):_0x34b655['model']['createRange'](_0x47b81b['start'],_0x47b81b['end']),_0x47b81b['detach'](),_0x34b655['model']['enqueueChange'](_0x530613['buffer']['batch'],_0x586053=>{_0x530613['buffer']['lock'](),_0x586053['setSelection'](_0x586053['createRange'](_0x1c5e44['end'])),_0x530613['buffer']['unlock']();});}),_0x34b655['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x34b655,'merge'),{'priority':'high'}),_0x34b655['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x2ae93c,_0x5731de,_0x93af4e)=>{_0x93af4e['options']['showSuggestionHighlights']&&De(_0x34b655,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x2ae93c,_0x5731de,_0x93af4e);},{'priority':'high'}),_0x34b655['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x5ab56b,_0x2bf9ad,_0x47647a)=>{const _0x53a215=_0x47647a['mapper']['markerNameToElements'](_0x2bf9ad['markerName']);if(_0x53a215){for(const _0x18220d of _0x53a215)_0x18220d['is']('uiElement')&&(_0x47647a['mapper']['unbindElementFromMarkerName'](_0x18220d,_0x2bf9ad['markerName']),_0x47647a['writer']['remove'](_0x18220d));}},{'priority':'high'});}}class W extends _0x236dec{['afterInit'](){const _0x1f7776=this['editor'];if(!_0x1f7776['plugins']['has']('ListEditing'))return;const _0x2710e2=_0x1f7776['locale'],_0x1aa9c5=_0x1f7776['plugins']['get']('TrackChangesEditing'),_0x2b1db7=_0x1f7776['plugins']['has']('TodoListEditing'),_0x50734b=!!_0x1f7776['config']['get']('list.multiBlock');function _0x1e20b6(_0x50b9a9){return{'type':'format','content':''+o(_0x2710e2,'*Set\x20format:*\x20%0',_0x50b9a9)};}function _0x3f6690(_0x3ae7e2){return{'type':'format','content':''+o(_0x2710e2,'*Remove\x20format:*\x20%0',_0x3ae7e2)};}_0x1aa9c5['enableDefaultAttributesIntegration']('numberedList'),_0x1aa9c5['enableDefaultAttributesIntegration']('bulletedList'),_0x1aa9c5['enableDefaultAttributesIntegration']('customNumberedList'),_0x1aa9c5['enableDefaultAttributesIntegration']('customBulletedList'),_0x1aa9c5['enableDefaultAttributesIntegration']('indentList'),_0x1aa9c5['enableDefaultAttributesIntegration']('outdentList'),_0x1aa9c5['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x1aa9c5['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x1aa9c5['registerBlockAttribute']('listItemId'),_0x1aa9c5['registerBlockAttribute']('listType'),_0x1aa9c5['registerBlockAttribute']('listIndent'),_0x50734b&&(_0x1aa9c5['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x1aa9c5['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x2b1db7&&(_0x1aa9c5['enableDefaultAttributesIntegration']('todoList'),_0x1aa9c5['enableDefaultAttributesIntegration']('checkTodoList'),_0x1aa9c5['registerBlockAttribute']('todoListChecked'),_0x1aa9c5['descriptionFactory']['registerDescriptionCallback'](_0xa51d7c=>{const {data:_0x15c178}=_0xa51d7c;if(_0x15c178&&'todoListChecked'==_0x15c178['key'])return{'type':'format','content':_0x15c178['newValue']?o(_0x2710e2,'*Check\x20item*'):o(_0x2710e2,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x57a2e4=>{if(_0x57a2e4['batch']['isUndo'])return!0x1;let _0x5a2262=!0x1;const _0x54f4c0=_0x1aa9c5['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2f77d2=>'todoListChecked'===_0x1aa9c5['_getAttributeKey'](_0x2f77d2));for(const _0x312b8a of _0x54f4c0){'todo'!=_0x312b8a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x1aa9c5['_findSuggestions'](_0x312b8a['getFirstRange'](),'attribute')['find'](_0x2f9d6e=>'listType'===_0x1aa9c5['_getAttributeKey'](_0x2f9d6e['suggestion']))||(_0x57a2e4['removeMarker'](_0x312b8a['getFirstMarker']()),_0x5a2262=!0x0));}return _0x5a2262;})),_0x1aa9c5['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x2710e2,'FORMAT_INDENT'));const _0x37ce52={'type':'format','content':''};_0x1aa9c5['descriptionFactory']['registerDescriptionCallback'](_0x26dc0d=>{const {data:_0x3286bd}=_0x26dc0d;if(!_0x3286bd||'listType'!=_0x3286bd['key'])return;let _0x24a88e=_0x26dc0d['head'];for(;_0x24a88e;){if(_0x24a88e['data']&&(('listStyle'==_0x24a88e['data']['key']||'listMarkerStyle'==_0x24a88e['data']['key'])&&(_0x24a88e['data']['newValue']&&'default'!=_0x24a88e['data']['newValue']||'default'!=_0x24a88e['data']['oldValue']&&!_0x3286bd['newValue'])||!_0x50734b&&_0x24a88e['data']['key']==m))return _0x37ce52;_0x24a88e=_0x24a88e['next'];}if(null==_0x3286bd['newValue'])switch(_0x3286bd['oldValue']){case'bulleted':return _0x3f6690(o(_0x2710e2,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3f6690(o(_0x2710e2,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3f6690(o(_0x2710e2,'ELEMENT_TODO_LIST'));}switch(_0x3286bd['newValue']){case'bulleted':return _0x1e20b6(o(_0x2710e2,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1e20b6(o(_0x2710e2,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1e20b6(o(_0x2710e2,'ELEMENT_TODO_LIST'));}}),_0x1aa9c5['descriptionFactory']['registerDescriptionCallback'](_0x5617df=>{const {data:_0xa51720}=_0x5617df;if(_0xa51720&&'listIndent'==_0xa51720['key'])return null==_0xa51720['newValue']||null==_0xa51720['oldValue']&&0x0==_0xa51720['newValue']?_0x37ce52:void 0x0;}),_0x1aa9c5['descriptionFactory']['registerDescriptionCallback'](_0x15d416=>{if('attribute'!=_0x15d416['type'])return;const {data:_0x18cb55}=_0x15d416;if(!_0x18cb55||'listItemId'!=_0x18cb55['key'])return;const _0xa672fd=Te(_0x15d416);return'newValue'==_0xa672fd?{'type':'format','content':o(_0x2710e2,'*Merge:*\x20list\x20item')}:'oldValue'==_0xa672fd?{'type':'format','content':o(_0x2710e2,'*Split:*\x20list\x20item')}:_0x37ce52;}),_0x1f7776['model']['document']['registerPostFixer'](_0x4d838e=>this['listItemIdFixer'](_0x4d838e)),_0x1f7776['model']['document']['registerPostFixer'](_0x44b278=>this['noTrackChangesFixer'](_0x44b278)),_0x1f7776['model']['document']['on']('change:data',(_0x104bf3,_0x352b52)=>{if(_0x352b52['isUndo']||!_0x352b52['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x55fa4e){if(_0x55fa4e['batch']['isUndo']||!_0x55fa4e['batch']['isLocal'])return!0x1;let _0x27d198=!0x1;const _0x4b49e9=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x467723=>_0x467723['data']&&'listItemId'==_0x467723['data']['key'])['filter'](_0x5b729f=>_0x5b729f['data']['newValue']&&_0x5b729f['data']['oldValue']);for(const _0x3ac352 of _0x4b49e9)Te(_0x3ac352)||(_0x55fa4e['removeMarker'](_0x3ac352['getFirstMarker']()),_0x27d198=!0x0);return _0x27d198;}['noTrackChangesFixer'](_0x4c7c9c){if(_0x4c7c9c['batch']['isUndo']||!_0x4c7c9c['batch']['isLocal'])return!0x1;const _0x16b408=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x16b408['trackChangesCommand']['value'])return!0x1;let _0x2cd5c3=!0x1;const _0x481e13=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x5558fb=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x3b201d=>'attribute'==_0x3b201d['type'])['filter'](_0x312595=>_0x481e13['includes'](_0x312595['attributeKey']));if(0x0==_0x5558fb['length'])return _0x2cd5c3;for(const _0x23cfb7 of _0x5558fb){const _0x2702ae=_0x16b408['_findSuggestions'](_0x23cfb7['range'],'attribute')['filter'](_0x471114=>!_0x471114['meta']['isNextTo'])['map'](_0x53647a=>_0x53647a['suggestion'])['filter'](_0x3a4d75=>{const _0x5a9c9a=_0x16b408['_getAttributeKey'](_0x3a4d75);return _0x481e13['includes'](_0x5a9c9a);});if(_0x2702ae['length']){for(const _0x3c0b8c of _0x2702ae)_0x4c7c9c['removeMarker'](_0x3c0b8c['getFirstMarker']());_0x2cd5c3=!0x0;}}return _0x2cd5c3;}['assureChains'](){const _0x1368ad=this['editor']['plugins']['get']('TrackChangesEditing'),_0x35f398=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x906b1a;const _0x78605d=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2d8ebd=>{if(_0x2d8ebd['data']['oldRange']||!_0x2d8ebd['data']['newRange'])return null;if(!_0x2d8ebd['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x5bac94}=_0x1368ad['_splitMarkerName'](_0x2d8ebd['name']);if(!_0x1368ad['hasSuggestion'](_0x5bac94))return null;const _0x2df567=_0x1368ad['getSuggestion'](_0x5bac94);return _0x35f398['includes'](_0x2df567['data']['key']);})['map'](_0x32728c=>{const {id:_0x34ba1d}=_0x1368ad['_splitMarkerName'](_0x32728c['name']),_0x5b6886=_0x1368ad['getSuggestion'](_0x34ba1d);return _0x906b1a=_0x5b6886['attributes']['groupId'],_0x5b6886['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x78605d['size'])return;const _0x27190e=_0x1368ad['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1b630c=>'attribute'==_0x1b630c['type']&&_0x1b630c['data']&&_0x35f398['includes'](_0x1b630c['data']['key'])&&_0x1b630c['attributes']['groupId']!=_0x906b1a)['map'](_0x5ec0b6=>({'listItem':_0x5ec0b6['getFirstRange']()['start']['nodeAfter'],'groupId':_0x5ec0b6['attributes']['groupId']})),_0x5499a4=new Set();for(const {groupId:_0x4935ce,listItem:_0x5d077c}of _0x27190e)_0x78605d['has'](_0x5d077c)&&_0x5499a4['add'](_0x4935ce);for(const _0x39615f of _0x1368ad['getSuggestions']())_0x5499a4['has'](_0x39615f['attributes']['groupId'])&&_0x39615f['setAttribute']('groupId',_0x906b1a);}['_supportLegacySuggestions'](){const _0x4e9db3=this['editor'],_0x509284=_0x4e9db3['locale'],_0x4f9d00=_0x4e9db3['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x4f9d00['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x3e2131,_0x213723){const _0x297354=[];for(let _0x2ce6d3 of _0x3e2131)_0x2ce6d3['start']['nodeAfter']===_0x2ce6d3['end']['parent']&&(_0x2ce6d3=_0x4e9db3['model']['createRange'](_0x4e9db3['model']['createPositionAt'](_0x2ce6d3['start']['nodeAfter'],0x0))),_0x297354['push'](_0x2ce6d3);_0x4e9db3['model']['change'](_0x5ac8db=>{const _0x59eeee=_0x4e9db3['model']['document']['selection'],_0x5c7f52=Array['from'](_0x59eeee['getRanges']())['map'](_0x5d81ee=>_0x78f3c6['fromRange'](_0x5d81ee));_0x5ac8db['setSelection'](_0x297354),_0x4e9db3['commands']['get'](_0x213723['commandName'])['refresh'](),_0x213723['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x4e9db3['execute'](_0x213723['commandName'],..._0x213723['commandParams']),_0x5ac8db['setSelection'](_0x5c7f52);for(const _0x4ea334 of _0x5c7f52)_0x4ea334['detach']();});}),_0x4f9d00['descriptionFactory']['registerElementLabel'](function(_0x168946){const _0x510ceb=!_0x4e9db3['model']['schema']['isObject'](_0x168946),_0x5984c5=_0x168946['previousSibling'],_0x4f73ae=_0x168946['nextSibling'],_0x29a8b1=_0x168946['getAttribute']('listItemId'),_0x2f350c=!_0x5984c5||_0x5984c5['getAttribute']('listItemId')!==_0x29a8b1,_0x1cefdf=!_0x4f73ae||_0x4f73ae['getAttribute']('listItemId')!==_0x29a8b1;return _0x510ceb&&Boolean(_0x29a8b1)&&_0x2f350c&&_0x1cefdf;},_0x5ad7a9=>o(_0x509284,'ELEMENT_LIST_ITEM',_0x5ad7a9));}['_registerLegacyDescription'](){const _0x600e06=this['editor'],_0x2c1bbf=_0x600e06['locale'];function _0x32548f(_0x190b46){const _0x38448f=_0x600e06['commands']['get']('bulletedList')['value'],_0x4e88e9=_0x600e06['commands']['get']('numberedList')['value'];return'numberedList'===_0x190b46?_0x38448f:_0x4e88e9;}_0x600e06['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x47094a){if('formatBlock'!=_0x47094a['type'])return;const {data:_0x8132d2}=_0x47094a;if(!_0x8132d2)return;let _0x102316,_0xa89c68,_0x5d6aa2,_0x4574cd;switch(_0x8132d2['commandName']){case'bulletedList':_0x5d6aa2=_0x8132d2['commandParams'][0x0]['forceValue'],_0x4574cd=_0x32548f(_0x8132d2['commandName']),_0x102316=_0x5d6aa2?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4574cd&&_0x600e06['config']['get']('list.multiBlock')||(_0x102316='*Change\x20to:*\x20%0'),_0xa89c68={'type':'format','content':o(_0x2c1bbf,_0x102316,o(_0x2c1bbf,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x5d6aa2=_0x8132d2['commandParams'][0x0]['forceValue'],_0x4574cd=_0x32548f(_0x8132d2['commandName']),_0x102316=_0x5d6aa2?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4574cd&&_0x600e06['config']['get']('list.multiBlock')||(_0x102316='*Change\x20to:*\x20%0'),_0xa89c68={'type':'format','content':o(_0x2c1bbf,_0x102316,o(_0x2c1bbf,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x102316='*Indent:*\x20%0',_0xa89c68={'type':'format','content':o(_0x2c1bbf,_0x102316,o(_0x2c1bbf,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x102316=function(_0xbad216){const _0x2034f4=_0xbad216['getFirstRange']();let _0xff7d22=_0x2034f4['start']['nodeAfter'];for(;_0xff7d22&&_0x2034f4['containsItem'](_0xff7d22);){if(_0xff7d22['getAttribute']('listIndent')>0x0)return!0x1;_0xff7d22=_0xff7d22['nextSibling'];}return!0x0;}(_0x47094a)?o(_0x2c1bbf,'*Format:*\x20remove\x20from\x20%0',o(_0x2c1bbf,function(_0x5269bf){return'ELEMENT_'+_0x5269bf['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x47094a))):o(_0x2c1bbf,'*Outdent:*\x20%0',o(_0x2c1bbf,'ELEMENT_LIST_ITEM')),_0xa89c68={'type':'format','content':_0x102316};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x8132d2['multipleBlocks']&&(_0x102316='*Merge:*\x20%0',_0xa89c68={'type':'deletion','content':o(_0x2c1bbf,_0x102316,o(_0x2c1bbf,'ELEMENT_LIST_ITEM'))});}return _0xa89c68;});}}function Te(_0x51cc05){let _0x5e37c6=_0x51cc05['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x5e37c6;){const _0x149110=_0x5e37c6['getAttribute']('listItemId');if(!_0x149110)return!0x1;if(_0x149110==_0x51cc05['data']['newValue'])return'newValue';if(_0x149110==_0x51cc05['data']['oldValue'])return'oldValue';_0x5e37c6=_0x5e37c6['previousSibling'];}return!0x1;}class Se extends _0x236dec{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x51562e=this['editor']['config']['get']('list.properties'),_0x12027b=this['editor']['plugins']['get']('TrackChangesEditing');_0x51562e['styles']&&(_0x12027b['enableDefaultAttributesIntegration']('listStyle'),_0x12027b['registerBlockAttribute']('listStyle')),_0x51562e['reversed']&&(_0x12027b['enableDefaultAttributesIntegration']('listReversed'),_0x12027b['registerBlockAttribute']('listReversed')),_0x51562e['startIndex']&&(_0x12027b['enableDefaultAttributesIntegration']('listStart'),_0x12027b['registerBlockAttribute']('listStart'));const _0x1df0ac={'type':'format','content':''};_0x12027b['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x4b389b=this['editor']['locale'];_0x12027b['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x4b389b,'FORMAT_LIST_REVERSED')),_0x12027b['descriptionFactory']['registerDescriptionCallback'](_0x1fddb8=>{const {data:_0x300088}=_0x1fddb8;if(_0x300088&&'listReversed'==_0x300088['key'])return null==_0x300088['newValue']||0x0==_0x300088['newValue']&&null==_0x300088['oldValue']?_0x1df0ac:void 0x0;}),_0x12027b['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x4b389b,'FORMAT_LIST_START')),_0x12027b['descriptionFactory']['registerDescriptionCallback'](_0x4b177e=>{const {data:_0x315f14}=_0x4b177e;if(_0x315f14&&'listStart'==_0x315f14['key'])return null==_0x315f14['newValue']||0x1==_0x315f14['newValue']&&null==_0x315f14['oldValue']?_0x1df0ac:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x49e8a0=>{if(_0x49e8a0['batch']['isUndo'])return!0x1;let _0x3717eb=!0x1;const _0x57c634=_0x12027b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2eff09=>{const _0x4fe324=_0x12027b['_getAttributeKey'](_0x2eff09);return'listStart'==_0x4fe324||'listReversed'==_0x4fe324;});for(const _0x5ee595 of _0x57c634){const _0xe9a2b3=_0x5ee595['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0xe9a2b3||'customNumbered'==_0xe9a2b3)continue;_0x12027b['_findSuggestions'](_0x5ee595['getFirstRange'](),'attribute')['find'](_0x31c1a4=>'listType'==_0x12027b['_getAttributeKey'](_0x31c1a4['suggestion']))||(_0x49e8a0['removeMarker'](_0x5ee595['getFirstMarker']()),_0x3717eb=!0x0);}return _0x3717eb;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x5ed3b3){const _0x16f877=this['editor']['locale'],{data:_0x5d8842}=_0x5ed3b3,_0x546ac4={'type':'format','content':''};if(!_0x5d8842||'listStyle'!=_0x5d8842['key'])return;if(!_0x5d8842['oldValue'])return'default'==_0x5d8842['newValue']?_0x546ac4:{'type':'format','content':''+o(_0x16f877,'*Set\x20format:*\x20%0',o(_0x16f877,this['_getTranslationKeyForListStyle'](_0x5d8842['newValue'])))};if(!_0x5d8842['newValue']){if('default'==_0x5d8842['oldValue'])return _0x546ac4;let _0x72cb28=_0x5ed3b3['head'];for(;_0x72cb28;){if(_0x72cb28['data']&&'listType'==_0x72cb28['data']['key']&&_0x72cb28['data']['newValue'])return _0x546ac4;_0x72cb28=_0x72cb28['next'];}return{'type':'format','content':''+o(_0x16f877,'*Remove\x20format:*\x20%0',o(_0x16f877,this['_getTranslationKeyForListStyle'](_0x5d8842['oldValue'])))};}if('default'!=_0x5d8842['newValue'])return{'type':'format','content':''+o(_0x16f877,'*Set\x20format:*\x20%0',o(_0x16f877,this['_getTranslationKeyForListStyle'](_0x5d8842['newValue'])))};let _0x72663c=_0x5ed3b3['head'];for(;_0x72663c;){if(_0x72663c['data']&&'listType'==_0x72663c['data']['key']&&_0x72663c['data']['newValue']&&_0x72663c['data']['oldValue'])return _0x546ac4;_0x72663c=_0x72663c['next'];}return{'type':'format','content':o(_0x16f877,'*Set\x20format:*\x20%0',o(_0x16f877,'ELEMENT_'+_0x5ed3b3['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x41ffac=this['editor'],_0x5a38df=_0x41ffac['locale'];_0x41ffac['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x15fce4=>{if('formatBlock'!=_0x15fce4['type'])return;const {data:_0x36fe48}=_0x15fce4;if(!_0x36fe48)return;let _0x2122d6,_0x32c682;switch(_0x36fe48['commandName']){case'listStyle':_0x2122d6='*Change\x20to:*\x20%0',_0x32c682={'type':'format','content':o(_0x5a38df,_0x2122d6,o(_0x5a38df,this['_getTranslationKeyForListStyle'](_0x36fe48['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2122d6=_0x36fe48['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x32c682={'type':'format','content':o(_0x5a38df,_0x2122d6)};break;case'listStart':_0x2122d6='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x32c682={'type':'format','content':o(_0x5a38df,_0x2122d6,_0x36fe48['commandParams'][0x0]['startIndex'])};}return _0x32c682;});}['_getTranslationKeyForListStyle'](_0x111b18){return'ELEMENT_'+function(_0x390fb8){if(_e['includes'](_0x390fb8))return'bulleted';if(Re['includes'](_0x390fb8))return'numbered';return null;}(_0x111b18)['toUpperCase']()+'_LIST_'+_0x111b18['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x236dec{static get['requires'](){return[_0x4079e2];}['init'](){const _0x5ec6a0=this['editor'],_0x1799d4=_0x5ec6a0['plugins']['get']('TrackChangesEditing'),_0x1c6e39=_0x5ec6a0['commands']['get']('enter');_0x1799d4['enableCommand']('enter',()=>{_0x5ec6a0['model']['change'](_0x5b8f3b=>{const _0x336410=_0x5ec6a0['model']['document']['selection'],_0x348012=_0x336410['getFirstPosition'](),_0x3aa6d4=_0x78f3c6['fromRange'](_0x336410['getFirstRange']());if(_0x1c6e39['enterBlock'](_0x5b8f3b)){const _0xded176=_0x5ec6a0['model']['createPositionAt'](_0x348012['parent']['nextSibling'],0x0),_0x310891=_0x5b8f3b['createRange'](_0x348012,_0xded176);_0x1799d4['markInsertion'](_0x310891);}else _0x5b8f3b['setSelection'](_0x5b8f3b['createRange'](_0x3aa6d4['end']));_0x3aa6d4['detach'](),_0x1c6e39['fire']('afterExecute',{'writer':_0x5b8f3b});});}),_0x5ec6a0['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x5ec6a0,'split'),{'priority':'high'}),_0x5ec6a0['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x6479f7,_0x568eba,_0x35bdf6)=>{const _0x102d7b=_0x35bdf6['mapper']['markerNameToElements'](_0x568eba['markerName']);if(_0x102d7b){for(const _0x11ac62 of _0x102d7b)_0x11ac62['hasClass']('ck-suggestion-marker-split')&&(_0x35bdf6['mapper']['unbindElementFromMarkerName'](_0x11ac62,_0x568eba['markerName']),_0x35bdf6['writer']['remove'](_0x11ac62));}},{'priority':'high'}),_0x5ec6a0['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1ee1a9,_0x23023f,_0x30f6c3)=>{_0x30f6c3['options']['showSuggestionHighlights']&&De(_0x5ec6a0,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x1ee1a9,_0x23023f,_0x30f6c3);},{'priority':'high'});}}class Y extends _0x236dec{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x1dccab=this['editor']['plugins']['get']('TrackChangesEditing');_0x1dccab['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x1dccab['enableCommand']('findNext'),_0x1dccab['enableCommand']('findPrevious'),_0x1dccab['enableCommand']('replace'),_0x1dccab['enableCommand']('replaceAll');}['handleFindCommand'](_0xd0a69a,_0x47fc1f,_0x1f5622={}){const _0x21f917=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0xd0a69a(_0x578c2b=>{let _0x15b773=('string'==typeof _0x47fc1f?_0x21f917['findByTextCallback'](_0x47fc1f,_0x1f5622):_0x47fc1f)(_0x578c2b);Array['isArray'](_0x15b773)&&(_0x15b773={'results':_0x15b773,'searchText':'string'==typeof _0x47fc1f?_0x47fc1f:''});const _0x76512b=_0x15b773['results']['filter'](_0x2f5d89=>!0x1===this['_isInDeletionRange'](_0x2f5d89,_0x578c2b['item']));return{..._0x15b773,'results':_0x76512b};},_0x1f5622);}['_isInDeletionRange'](_0x5efa96,_0x301791){const _0x57f754=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x301791,_0x5efa96['start']),this['editor']['model']['createPositionAt'](_0x301791,_0x5efa96['end']));for(const _0x406f2c of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x57f754['getIntersection'](_0x406f2c['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 _0x236dec{['afterInit'](){const _0x32333e=this['editor']['locale'],_0x937d2=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x48d214,commandName:_0xc5a1ce}of ro)this['editor']['plugins']['has'](_0x48d214)&&(_0x937d2['enableDefaultAttributesIntegration'](_0xc5a1ce),_0x937d2['registerInlineAttribute'](_0xc5a1ce));_0x937d2['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x32333e,'FORMAT_FONT_SIZE')),_0x937d2['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x32333e,'FORMAT_FONT_FAMILY')),_0x937d2['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x32333e,'FORMAT_FONT_COLOR')),_0x937d2['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x32333e,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x23247e=this['editor'],_0x34539d=_0x23247e['locale'];_0x23247e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2065d3=>{const _0x4c0024=_0x34539d['t'];if('formatInline'!=_0x2065d3['type'])return;const {data:_0x34154c}=_0x2065d3;if(null!=_0x34154c){if('fontSize'==_0x34154c['commandName']){const _0x5b7f34=_0x34154c['commandParams'][0x0]['value'];if(_0x5b7f34){const _0x12d955=_0x4c0024(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0xd29267=>_0xd29267['model']==_0x5b7f34)['title'])['toLowerCase']();return{'type':'format','content':o(_0x34539d,'*Set\x20font\x20size:*\x20%0',_0x12d955)};}return{'type':'format','content':o(_0x34539d,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x34154c['commandName']){const _0x11787b=_0x34154c['commandParams'][0x0]['value'];return _0x11787b?{'type':'format','content':o(_0x34539d,'*Set\x20font\x20family:*\x20%0',_0x11787b)}:{'type':'format','content':o(_0x34539d,'*Reset\x20font\x20family*')};}if('fontColor'==_0x34154c['commandName']){const _0x80e19c=_0x34154c['commandParams'][0x0]['value'];if(_0x80e19c){const _0x2d85f7=_0x1a45f5(this['editor']['config']['get']('fontColor.colors'))['find'](_0xe8d733=>_0xe8d733['model']==_0x80e19c);let _0x2f59c1=_0x80e19c,_0x736592='';return _0x2d85f7&&(_0x2f59c1=_0x2d85f7['label'],_0x736592=_0x4c0024(_0x2f59c1)['toLowerCase']()),{'type':'format','content':o(_0x34539d,'*Set\x20font\x20color:*\x20%0',_0x736592)['trim'](),'color':{'value':_0x80e19c,'title':_0x736592||_0x2f59c1}};}return{'type':'format','content':o(_0x34539d,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x34154c['commandName']){const _0x2945af=_0x34154c['commandParams'][0x0]['value'];if(_0x2945af){const _0x4a3694=_0x1a45f5(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x58ea9b=>_0x58ea9b['model']==_0x2945af);let _0x127480=_0x2945af,_0x438a8d='';return _0x4a3694&&(_0x127480=_0x4a3694['label'],_0x438a8d=_0x4c0024(_0x127480)['toLowerCase']()),{'type':'format','content':o(_0x34539d,'*Set\x20font\x20background\x20color:*\x20%0',_0x438a8d)['trim'](),'color':{'value':_0x2945af,'title':_0x438a8d||_0x127480}};}return{'type':'format','content':o(_0x34539d,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x236dec{['afterInit'](){const _0xd06786=this['editor'],_0x4c0ec3=_0xd06786['plugins']['get']('TrackChangesEditing'),_0x39d5d4=_0xd06786['commands']['get']('copyFormat'),_0x5e7f6e=_0xd06786['commands']['get']('pasteFormat');_0x39d5d4&&_0x5e7f6e&&(_0x4c0ec3['enableDefaultAttributesIntegration']('pasteFormat'),_0x4c0ec3['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x4949f7=this['editor'],_0x3ce1e1=_0x4949f7['locale'];_0x4949f7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x9b246e=>{if('formatBlock'!=_0x9b246e['type']&&'formatInline'!=_0x9b246e['type'])return;const {data:_0x4cfd92}=_0x9b246e;if(_0x4cfd92&&'pasteFormat'===_0x4cfd92['commandName']){const _0x59a196=[],_0x439f72=_0x4cfd92['commandParams'][0x0];for(const [_0x54b4ac,_0x23f8a8]of Object['entries'](_0x439f72))_0x59a196['push'](so(_0x4949f7,_0x54b4ac,_0x23f8a8));return _0x59a196['length']?{'type':'format','content':o(_0x3ce1e1,'*Set\x20format\x20to:*\x20%0',_0x59a196['join'](',\x20'))}:{'type':'format','content':o(_0x3ce1e1,'*Remove\x20all\x20formatting*')};}});}}function so(_0x36b6c4,_0x98c86e,_0xd7c21b){const _0x3f1bcc=_0x36b6c4['locale']['t'],_0x2b0c1a=_0x98c86e['split'](/(?=[A-Z])/)['join']('\x20'),_0x421b5e=_0x3f1bcc(_0x2b0c1a['charAt'](0x0)['toUpperCase']()+_0x2b0c1a['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0xd7c21b)return _0x421b5e;if('fontColor'===_0x98c86e||'fontBackgroundColor'===_0x98c86e){const _0x2a461e=_0x1a45f5(_0x36b6c4['config']['get']('fontColor.colors'))['find'](_0x1999d5=>_0x1999d5['model']==_0xd7c21b);return _0x421b5e+'\x20('+(_0x2a461e?_0x3f1bcc(_0x2a461e['label'])['toLowerCase']():_0xd7c21b)+')';}if('fontSize'===_0x98c86e&&isNaN(parseFloat(_0xd7c21b))){const _0x5f0f12=_0x36b6c4['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x36b6c4['config']['get']('fontSize.options'))['find'](_0x55ed65=>_0x55ed65['model']==_0xd7c21b);return _0x421b5e+'\x20('+(_0x5f0f12?_0x3f1bcc(_0x5f0f12['title'])['toLowerCase']():_0xd7c21b)+')';}return _0x421b5e+'\x20('+_0xd7c21b+')';}class nt extends _0x236dec{['_headingOptions'];['afterInit'](){const _0xd56742=this['editor'];if(!_0xd56742['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0xd56742['config']['get']('heading.options');const _0x50ea92=_0xd56742['locale'],_0x41521a=_0xd56742['plugins']['get']('TrackChangesEditing');_0x41521a['enableDefaultAttributesIntegration']('heading');for(const _0x389d91 of this['_headingOptions'])'paragraph'!=_0x389d91['model']&&_0x41521a['descriptionFactory']['registerElementLabel'](_0x389d91['model'],_0x4c8a94=>{const _0x359472=this['_getHeadingLevel'](_0x389d91['model']);return null!==_0x359472?_0x4a8e38(_0x4c8a94,_0x359472):_0x4fc84b(_0x4c8a94,_0x389d91['title']);});function _0x4a8e38(_0x1d0dd1,_0x18d2b2){return o(_0x50ea92,'ELEMENT_HEADING',[_0x1d0dd1,_0x18d2b2]);}function _0x4fc84b(_0x221185,_0x4b5096){return o(_0x50ea92,'ELEMENT_HEADING_CUSTOM',[_0x221185,_0x4b5096]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x269828=this['editor'],_0x4112f0=_0x269828['locale'];function _0x4f3168(_0xfde31b,_0x2044b5){return o(_0x4112f0,'ELEMENT_HEADING_CUSTOM',[_0xfde31b,_0x2044b5]);}_0x269828['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2ea02c=>{if('formatBlock'!=_0x2ea02c['type'])return;const {data:_0x46d536}=_0x2ea02c;if(_0x46d536&&'heading'==_0x46d536['commandName']){const _0x5c05ad=_0x46d536['commandParams'][0x0]['value'],_0x31395d=this['_getHeadingLevel'](_0x5c05ad);if(null!==_0x31395d)return{'type':'format','content':o(_0x4112f0,'*Change\x20to:*\x20%0',(_0x18ee8f=0x1,_0x274228=_0x31395d,o(_0x4112f0,'ELEMENT_HEADING',[_0x18ee8f,_0x274228])))};const _0x43b940=this['_headingOptions']['find'](_0x25f280=>_0x25f280['model']===_0x5c05ad)['title'];return{'type':'format','content':o(_0x4112f0,'*Change\x20to:*\x20%0',_0x4f3168(0x1,_0x43b940))};}var _0x18ee8f,_0x274228;});}['_getHeadingLevel'](_0x481290){const _0x50ba9f=_0x481290['match'](/^heading(\d+)/);if(_0x50ba9f)return _0x50ba9f[0x1];const _0x47b8a2=this['_headingOptions']?.['find'](_0x592035=>_0x592035['model']==_0x481290);if(_0x47b8a2&&_0x47b8a2['view']){const _0x104249=_0x47b8a2['view'],_0x24c650=(_0x104249['name']??_0x104249)['match'](/^h(\d+)/);if(_0x24c650)return _0x24c650[0x1];}return null;}}class it extends _0x236dec{['afterInit'](){const _0x8dfc=this['editor'];if(!_0x8dfc['plugins']['has']('HighlightEditing'))return;const _0x2ed71f=_0x8dfc['plugins']['get']('TrackChangesEditing'),_0x4c8546=_0x8dfc['locale'];_0x2ed71f['enableDefaultAttributesIntegration']('highlight'),_0x2ed71f['registerInlineAttribute']('highlight'),_0x2ed71f['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x4c8546,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2f1cb9=this['editor'],_0x334a80=_0x2f1cb9['locale'];_0x2f1cb9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1a33e5=>{if('formatInline'!=_0x1a33e5['type'])return;const {data:_0x4c2d45}=_0x1a33e5;if(_0x4c2d45&&'highlight'==_0x4c2d45['commandName']){const _0x53c0aa=_0x334a80['t'],_0x26a03b=_0x4c2d45['commandParams'][0x0]['value'];if(_0x26a03b){const _0x365308=_0x2f1cb9['config']['get']('highlight.options')['find'](_0x578032=>_0x578032['model']==_0x26a03b),_0x5bfe9c=_0x53c0aa(_0x365308['title'])['toLowerCase']();return{'type':'format','content':o(_0x334a80,'*Set\x20highlight:*\x20%0',_0x5bfe9c),'color':{'value':_0x365308['color'],'title':_0x365308['title']}};}return{'type':'format','content':o(_0x334a80,'*Remove\x20highlight*',o(_0x334a80,'FORMAT_HIGHLIGHT'))};}});}}class et extends _0x236dec{['afterInit'](){const _0x88b89d=this['editor'];if(!_0x88b89d['plugins']['has']('HorizontalLineEditing'))return;_0x88b89d['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x4ad85b=_0x88b89d['plugins']['get']('TrackChangesEditing'),_0x580e7b=_0x88b89d['locale'];_0x4ad85b['descriptionFactory']['registerElementLabel']('horizontalLine',_0x1b94ad=>o(_0x580e7b,'ELEMENT_HORIZONTAL_LINE',_0x1b94ad)),_0x88b89d['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x13af42,{writer:_0xbd4c92,options:_0x38cb55})=>{if(!_0x38cb55['showSuggestionHighlights'])return null;const _0x51ed75=_0xbd4c92['createContainerElement']('div'),_0x507c7c=_0xbd4c92['createEmptyElement']('hr');return _0xbd4c92['addClass']('ck-horizontal-line',_0x51ed75),_0xbd4c92['insert'](_0xbd4c92['createPositionAt'](_0x51ed75,0x0),_0x507c7c),_0x51ed75;},'converterPriority':'high'});}}class st extends _0x236dec{['afterInit'](){const _0x474445=this['editor'];if(!_0x474445['plugins']['has']('HtmlEmbed'))return;const _0x343b18=_0x474445['plugins']['get']('TrackChangesEditing'),_0x1308a4=_0x474445['locale'];_0x343b18['descriptionFactory']['registerElementLabel']('rawHtml',_0x44533e=>o(_0x1308a4,'ELEMENT_HTML_EMBED',_0x44533e)),_0x343b18['enableDefaultAttributesIntegration']('htmlEmbed'),_0x343b18['registerBlockAttribute']('value'),_0x343b18['descriptionFactory']['registerDescriptionCallback'](_0x3e2d54=>{if('attribute'!=_0x3e2d54['type'])return;const {data:_0x51843c}=_0x3e2d54;if(_0x51843c&&'value'==_0x51843c['key']&&_0x3e2d54['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x276209=o(_0x1308a4,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1308a4,'*Change\x20%0\x20content*',_0x276209)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3758e1=this['editor'],_0x4d7563=_0x3758e1['locale'];_0x3758e1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x605239=>{if('formatBlock'!=_0x605239['type'])return;const {data:_0x1a82c5}=_0x605239;if(_0x1a82c5&&'htmlEmbed'==_0x1a82c5['commandName']){const _0x3c6397=o(_0x4d7563,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x4d7563,'*Change\x20%0\x20content*',_0x3c6397)};}});}}class ot extends _0x236dec{['afterInit'](){const _0x14fa00=this['editor'];if(!_0x14fa00['plugins']['has']('ImageEditing'))return;const _0x1e93a3=_0x14fa00['plugins']['get']('TrackChangesEditing'),_0x724525=_0x14fa00['plugins']['get']('ImageUtils'),_0x1c7d9a=_0x14fa00['locale'];_0x1e93a3['enableCommand']('insertImage'),_0x1e93a3['descriptionFactory']['registerElementLabel']('imageBlock',_0x56578c=>o(_0x1c7d9a,'ELEMENT_IMAGE',_0x56578c)),_0x1e93a3['descriptionFactory']['registerElementLabel']('imageInline',_0x210c89=>o(_0x1c7d9a,'ELEMENT_INLINE_IMAGE',_0x210c89)),_0x1e93a3['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x1c7d9a,'ELEMENT_CAPTION')),_0x14fa00['plugins']['has']('ImageUploadEditing')&&_0x1e93a3['enableCommand']('uploadImage'),_0x14fa00['plugins']['has']('ImageBlockEditing')&&_0x14fa00['plugins']['has']('ImageInlineEditing')&&(_0x1e93a3['enableCommand']('imageTypeInline',(_0x5227dc,_0x462073)=>{const _0x11602d=_0x724525['getClosestSelectedImageElement'](_0x14fa00['model']['document']['selection']);_0x14fa00['model']['change'](()=>{_0x1e93a3['markBlockFormat'](_0x11602d,{'commandName':'imageTypeInline','commandParams':[_0x462073]},[],'convertBlockImageToInline');});}),_0x1e93a3['enableCommand']('imageTypeBlock',(_0xfab088,_0x4d496c)=>{_0x14fa00['model']['change'](_0x2cff57=>{let _0x5578a7=_0x724525['getClosestSelectedImageElement'](_0x14fa00['model']['document']['selection']),_0x9aa530=_0x2cff57['createRangeOn'](_0x5578a7);const _0x13d5c4=_0x10a158['fromPosition'](_0x9aa530['start'],'toPrevious'),_0x562fbb=_0x10a158['fromPosition'](_0x9aa530['end'],'toNext');_0x1e93a3['forceDefaultExecution'](()=>_0xfab088(_0x4d496c)),_0x5578a7=_0x724525['getClosestSelectedImageElement'](_0x14fa00['model']['document']['selection']),_0x9aa530=_0x2cff57['createRangeOn'](_0x5578a7);const _0x23e5cf=_0x2cff57['createRange'](_0x13d5c4,_0x562fbb);_0x13d5c4['detach'](),_0x562fbb['detach'](),_0x1e93a3['markBlockFormat'](_0x5578a7,{'commandName':'imageTypeInline','commandParams':[_0x4d496c]},[],'convertInlineImageToBlock'),_0x23e5cf['start']['isBefore'](_0x9aa530['start'])&&_0x1e93a3['markInsertion'](_0x2cff57['createRange'](_0x23e5cf['start'],_0x9aa530['start']),'convertInlineImageToBlock'),_0x9aa530['end']['isBefore'](_0x23e5cf['end'])&&_0x1e93a3['markInsertion'](_0x2cff57['createRange'](_0x9aa530['end'],_0x23e5cf['end']),'convertInlineImageToBlock');});}),_0x1e93a3['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x1e93a3['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x1e93a3['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x1e93a3['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x1e93a3['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x1e93a3['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x5e5897])=>{const _0x4af297=_0x1e93a3['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x1166e2=_0x5e5897['start'],_0x5f45ca=_0x5e5897['end'];const _0x3bf0bc=_0x14fa00['model']['schema']['getNearestSelectionRange'](_0x1166e2,'backward'),_0x464741=_0x14fa00['model']['schema']['getNearestSelectionRange'](_0x5f45ca,'forward');_0x3bf0bc['isCollapsed']&&(_0x1166e2=_0x3bf0bc['start']),_0x464741['isCollapsed']&&(_0x5f45ca=_0x464741['end']),_0x4af297([_0x14fa00['model']['createRange'](_0x1166e2,_0x5f45ca)]);}),_0x1e93a3['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x2e0e21),_0x1e93a3['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x2e0e21)),_0x14fa00['plugins']['has']('ImageCaptionEditing')&&(_0x1e93a3['enableCommand']('toggleImageCaption',(_0x51b386,_0x2f1bb1)=>{const _0x3bbc01=_0x14fa00['plugins']['get']('ImageCaptionUtils');let _0x42a603=_0x724525['getClosestSelectedImageElement'](_0x14fa00['model']['document']['selection']),_0x116567=_0x3bbc01['getCaptionFromImageModelElement'](_0x42a603);_0x14fa00['model']['change'](()=>{if(_0x116567)return void _0x1e93a3['markDeletion'](_0x14fa00['model']['createRangeOn'](_0x116567));const _0x2b7f55=_0x724525['isBlockImage'](_0x42a603);_0x51b386(_0x2f1bb1),_0x42a603=_0x724525['getClosestSelectedImageElement'](_0x14fa00['model']['document']['selection']),_0x116567=_0x3bbc01['getCaptionFromImageModelElement'](_0x42a603),_0x1e93a3['markInsertion'](_0x14fa00['model']['createRangeOn'](_0x116567),_0x2b7f55?null:'imageCaption');});}),_0x1e93a3['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x2e0e21));const _0x5096c5=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xbe4481(_0x109d0a,_0x126350){const _0x4bbb08=_0x5096c5['findIndex'](({type:_0x16b80e,subType:_0x42f750})=>_0x109d0a['type']==_0x16b80e&&_0x109d0a['subType']==_0x42f750),_0x408b2c=_0x5096c5['findIndex'](({type:_0x2cea55,subType:_0x51d8bc})=>_0x126350['type']==_0x2cea55&&_0x126350['subType']==_0x51d8bc);if(_0x4bbb08<0x0||_0x408b2c<0x0)return!0x1;const _0x2dd616=_0x109d0a['getFirstRange'](),_0x41c6dc=_0x126350['getFirstRange']();if((0x0==_0x4bbb08||0x1==_0x4bbb08)&&0x2==_0x408b2c&&_0x2dd616['isIntersecting'](_0x41c6dc))return!0x0;if(0x2==_0x4bbb08&&0x3==_0x408b2c){const _0xf18d43=_0x1e93a3['_findSuggestions'](_0x2dd616,'insertion')['filter'](({suggestion:_0x18ee8b,meta:_0x1d3662})=>_0x1d3662['isOwn']&&'convertInlineImageToBlock'==_0x18ee8b['subType']);if(_0xf18d43['length']>0x1&&_0x41c6dc['end']['isEqual'](_0x2dd616['start']))return!0x0;if(0x1==_0xf18d43['length']&&(_0x2dd616['start']['isEqual'](_0x41c6dc['end'])||_0x2dd616['end']['isEqual'](_0x41c6dc['start'])))return!0x0;}if(0x3==_0x4bbb08&&0x3==_0x408b2c&&_0x2dd616['start']['isBefore'](_0x41c6dc['start'])){const _0x15df1a=_0x2dd616['end']['nodeAfter'],_0x4ec682=_0x41c6dc['start']['nodeBefore'];return _0x724525['isBlockImage'](_0x15df1a)&&_0x15df1a===_0x4ec682;}return!0x1;}function _0x2e0e21(_0x3d5d7b,_0x578c1d){return _0xbe4481(_0x3d5d7b,_0x578c1d)?[_0x3d5d7b,_0x578c1d]:_0xbe4481(_0x578c1d,_0x3d5d7b)?[_0x578c1d,_0x3d5d7b]:null;}_0x14fa00['plugins']['has']('ImageResize')&&(_0x1e93a3['enableDefaultAttributesIntegration']('resizeImage'),_0x1e93a3['registerBlockAttribute']('resizedWidth'),_0x1e93a3['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x1c7d9a,'FORMAT_IMAGE_SIZE'))),_0x14fa00['plugins']['has']('ImageTextAlternativeEditing')&&(_0x1e93a3['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x1e93a3['registerBlockAttribute']('alt')),_0x14fa00['plugins']['has']('PictureEditing')&&(_0x1e93a3['registerBlockAttribute']('sources'),_0x1e93a3['descriptionFactory']['registerDescriptionCallback'](_0x10f250=>{if('attribute'!=_0x10f250['type'])return;const {data:_0x3c8797}=_0x10f250;return _0x3c8797&&'sources'==_0x3c8797['key']?{'type':'format','content':''}:void 0x0;})),_0x14fa00['plugins']['has']('ImageSizeAttributes')&&(_0x1e93a3['registerBlockAttribute']('width'),_0x1e93a3['registerBlockAttribute']('height'),_0x1e93a3['descriptionFactory']['registerDescriptionCallback'](_0x5f1979=>{if('attribute'!=_0x5f1979['type'])return;const {data:_0x5a1681}=_0x5f1979;return!_0x5a1681||'width'!=_0x5a1681['key']&&'height'!=_0x5a1681['key']?void 0x0:{'type':'format','content':''};})),_0x1e93a3['descriptionFactory']['registerDescriptionCallback'](_0x3fa5ef=>{if(!!_0x5096c5['find'](({type:_0x5c99a4,subType:_0x5733b8})=>_0x3fa5ef['type']==_0x5c99a4&&_0x3fa5ef['subType']==_0x5733b8))return _0x3fa5ef['previous']?{}:void 0x0;}),_0x1e93a3['descriptionFactory']['registerDescriptionCallback'](_0x4ab5ec=>{if('insertion'==_0x4ab5ec['type']||'deletion'==_0x4ab5ec['type']){const _0x4fe726=_0x4ab5ec['getContainedElement']();if(_0x4fe726&&_0x4fe726['is']('element','caption'))return{'type':'insertion'==_0x4ab5ec['type']?'addObject':'removeObject','element':_0x4fe726,'quantity':0x1};}}),_0x1e93a3['descriptionFactory']['registerDescriptionCallback'](_0x581fc5=>'formatBlock'==_0x581fc5['type']&&'convertInlineImageToBlock'==_0x581fc5['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x581fc5['type']&&'convertBlockImageToInline'==_0x581fc5['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x1e93a3['descriptionFactory']['registerDescriptionCallback'](_0x1b1a13=>{if('attribute'!=_0x1b1a13['type'])return;const {data:_0x154122}=_0x1b1a13;if(!_0x154122||'alt'!=_0x154122['key'])return;const _0x1d9df8=_0x154122['newValue'];return _0x1d9df8?{'type':'format','content':o(_0x1c7d9a,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1d9df8+'\x22')}:{'type':'format','content':o(_0x1c7d9a,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x57880c=this['editor'],_0x384759=_0x57880c['locale'];_0x57880c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x152fce=>{if('formatBlock'!=_0x152fce['type']&&'formatInline'!=_0x152fce['type'])return;const {data:_0x29b650}=_0x152fce;if(_0x29b650){if('imageTextAlternative'==_0x29b650['commandName']){const _0x3fc393=_0x29b650['commandParams'][0x0]['newValue'];return _0x3fc393?{'type':'format','content':o(_0x384759,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3fc393+'\x22')}:{'type':'format','content':o(_0x384759,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x29b650['commandName']){const _0x1256ff=_0x29b650['commandParams'][0x0]['width'];return _0x1256ff?{'type':'format','content':o(_0x384759,'*Set\x20image\x20width:*\x20%0',_0x1256ff)}:{'type':'format','content':o(_0x384759,'*Reset\x20image\x20width*')};}}});}}class rt extends _0x236dec{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x28113d=this['editor']['locale'],_0x4e3ed5=this['editor']['plugins']['get']('TrackChangesEditing');_0x4e3ed5['enableDefaultAttributesIntegration']('replaceImageSource'),_0x4e3ed5['registerBlockAttribute']('src'),_0x4e3ed5['descriptionFactory']['registerDescriptionCallback'](_0x2003ae=>{if('attribute'!=_0x2003ae['type'])return;const {data:_0xccefe5}=_0x2003ae;return _0xccefe5&&'src'==_0xccefe5['key']?_0xccefe5['newValue']&&_0xccefe5['oldValue']?{'type':'format','content':o(_0x28113d,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x36458e=this['editor']['plugins']['get']('TrackChangesEditing');_0x36458e['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x36458e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x36458e['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x36458e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x19e743=this['editor'],_0x2c38cd=_0x19e743['locale'];_0x19e743['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x589bfb=>{if('formatBlock'!=_0x589bfb['type']&&'formatInline'!=_0x589bfb['type'])return;const {data:_0x234d83}=_0x589bfb;if(!_0x234d83||'replaceImageSource'!=_0x234d83['commandName'])return;return{'type':'format','content':o(_0x2c38cd,'*Format:*\x20replace\x20image\x20URL')};});}}class at extends _0x236dec{['afterInit'](){const _0x3a7659=this['editor'];if(!_0x3a7659['plugins']['has']('ImageStyleEditing'))return;const _0x4261c9=_0x3a7659['plugins']['get']('TrackChangesEditing'),_0x4b7024=_0x3a7659['plugins']['get']('ImageUtils'),_0x276cfe={};_0x4261c9['enableCommand']('imageStyle',(_0x450fe3,_0x1794bf)=>{const _0x462c0a=_0x3a7659['plugins']['get']('Users')['me'],_0x2c1265=_0x3a7659['commands']['get']('imageStyle');let _0x5adda4=_0x4b7024['getClosestSelectedImageElement'](_0x3a7659['model']['document']['selection']),_0x5ebcfc=_0x3a7659['model']['createRangeOn'](_0x5adda4),_0x89e21f=_0x2c1265['value'];if(_0x89e21f==_0x1794bf['value'])return;const _0x184c85={'commandName':'imageStyle','commandParams':[_0x1794bf],'formatGroupId':_0x598835()};_0x3a7659['model']['change'](()=>{if(_0x4261c9['getSuggestions']()['filter'](_0x51c8da=>_0x51c8da['isInContent']&&_0x462c0a==_0x51c8da['author']&&('formatBlock'==_0x51c8da['type']||'formatInline'==_0x51c8da['type'])&&('imageStylePreApply'==_0x51c8da['subType']||'imageStylePostApply'==_0x51c8da['subType'])&&_0x51c8da['getFirstRange']()['isEqual'](_0x5ebcfc))['forEach'](_0x144aec=>_0x4261c9['discardSuggestion'](_0x144aec['head'])),_0x5adda4=_0x4b7024['getClosestSelectedImageElement'](_0x3a7659['model']['document']['selection']),_0x5ebcfc=_0x3a7659['model']['createRangeOn'](_0x5adda4),_0x2c1265['refresh'](),_0x3a7659['commands']['get']('imageTypeInline')['refresh'](),_0x3a7659['commands']['get']('imageTypeBlock')['refresh'](),_0x89e21f=_0x2c1265['value'],_0x89e21f!=_0x1794bf['value'])return _0x4b7024['isInlineImage'](_0x5adda4)&&_0x2c1265['shouldConvertImageType'](_0x1794bf['value'],_0x5adda4)?(_0x450fe3({..._0x1794bf,'setImageSizes':!0x1}),_0x5adda4=_0x4b7024['getClosestSelectedImageElement'](_0x3a7659['model']['document']['selection']),void _0x4261c9['markBlockFormat'](_0x5adda4,{..._0x184c85,'commandReversedParams':[{'value':_0x89e21f||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x4b7024['isBlockImage'](_0x5adda4)?_0x4261c9['markBlockFormat'](_0x5adda4,_0x184c85,[],'imageStylePostApply'):_0x4261c9['markInlineFormat'](_0x5ebcfc,_0x184c85,'imageStylePostApply'));});});for(const _0x2315ab of _0x3a7659['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x276cfe[_0x2315ab['name']]=_0x2315ab['title']['toLowerCase']();_0x4261c9['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x4261c9['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x4261c9['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x4261c9['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x320d11])=>{_0x4b7024['setImageNaturalSizeAttributes'](_0x320d11['getContainedElement']());}),_0x4261c9['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x257ae9,_0x5be53c)=>{_0x4261c9['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x257ae9,{'commandName':_0x5be53c['commandName'],'commandParams':_0x5be53c['commandReversedParams']});}),_0x4261c9['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x69897b,_0x2fc513){if(_0x2f702f(_0x69897b,_0x2fc513))return[_0x69897b,_0x2fc513];if(_0x2f702f(_0x2fc513,_0x69897b))return[_0x2fc513,_0x69897b];return null;});const _0x5143ab=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2f702f(_0x216774,_0x28caa8){const _0xc1bb21=_0x5143ab['findIndex'](({type:_0x49fc0c,subType:_0x593ede})=>_0x216774['type']==_0x49fc0c&&_0x216774['subType']==_0x593ede),_0x39e815=_0x5143ab['findIndex'](({type:_0x4b1cd6,subType:_0x47c15c})=>_0x28caa8['type']==_0x4b1cd6&&_0x28caa8['subType']==_0x47c15c);if(_0xc1bb21<0x0||_0x39e815<0x0)return!0x1;const _0x45f5e0=_0x216774['getFirstRange'](),_0x496c7f=_0x28caa8['getFirstRange']();if((0x0==_0xc1bb21||0x1==_0xc1bb21)&&0x2==_0x39e815&&_0x45f5e0['isIntersecting'](_0x496c7f))return!0x0;if(0x2==_0xc1bb21&&0x3==_0x39e815){const _0xcf3e9a=_0x4261c9['_findSuggestions'](_0x45f5e0,'insertion')['filter'](({suggestion:_0x2d10ef,meta:_0x2ede82})=>_0x2ede82['isOwn']&&'convertInlineImageToBlock'==_0x2d10ef['subType']);if(_0xcf3e9a['length']>0x1&&_0x496c7f['end']['isEqual'](_0x45f5e0['start']))return!0x0;if(0x1==_0xcf3e9a['length']&&(_0x45f5e0['start']['isEqual'](_0x496c7f['end'])||_0x45f5e0['end']['isEqual'](_0x496c7f['start'])))return!0x0;}if(0x3==_0xc1bb21&&0x3==_0x39e815&&_0x45f5e0['start']['isBefore'](_0x496c7f['start'])){const _0x5dcac7=_0x45f5e0['end']['nodeAfter'],_0x134572=_0x496c7f['start']['nodeBefore'];return _0x4b7024['isBlockImage'](_0x5dcac7)&&_0x5dcac7===_0x134572;}return!0x1;}_0x3a7659['model']['document']['registerPostFixer'](()=>{let _0x1f40b9=!0x1;const _0xebc91a=Array['from'](_0x3a7659['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1927fc,data:_0x565c92}of _0xebc91a){const {group:_0x40528d,type:_0x24c142,subType:_0x1dbb36,id:_0x54f3d2}=_0x4261c9['_splitMarkerName'](_0x1927fc);if('suggestion'==_0x40528d&&_0x4261c9['hasSuggestion'](_0x54f3d2)){if('formatBlock'==_0x24c142&&('imageStylePreApply'==_0x1dbb36||'imageStylePostApply'==_0x1dbb36)){const _0x502123=_0x4261c9['getSuggestion'](_0x54f3d2);if(_0x565c92['newRange']){const _0x148d26=_0x502123['getFirstRange']()['getContainedElement']();if(_0x4b7024['isBlockImage'](_0x148d26))continue;_0x4261c9['discardSuggestion'](_0x502123),_0x1f40b9=!0x0;}}if('insertion'==_0x24c142&&'imageCaption'==_0x1dbb36&&!_0x565c92['newRange']){const _0x33bb56=_0x4261c9['getSuggestion'](_0x54f3d2);_0x33bb56['next']&&_0x33bb56['next']['isInContent']&&(_0x4261c9['discardSuggestion'](_0x33bb56['next']),_0x1f40b9=!0x0);}}}return _0x1f40b9;}),this['_registerLegacyDescription'](_0x276cfe);}['_registerLegacyDescription'](_0x1af37a){const _0x17b774=this['editor'],_0x7e5297=_0x17b774['locale'];_0x17b774['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x41ab8b=>{if('formatBlock'!=_0x41ab8b['type']&&'formatInline'!=_0x41ab8b['type'])return;const {data:_0xfd0657}=_0x41ab8b;if(!_0xfd0657||'imageStyle'!=_0xfd0657['commandName'])return;const _0x5ec6d5=_0xfd0657['commandParams'][0x0]['value'];return _0x3a2cfc('side'===_0x5ec6d5?o(_0x7e5297,'FORMAT_SIDE_IMAGE'):_0x1af37a[_0x5ec6d5]||_0x5ec6d5);function _0x3a2cfc(_0x50259a){return{'type':'format','content':o(_0x7e5297,'*Format:*\x20%0',_0x50259a)};}});}}class ct extends _0x236dec{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x2fce8e){super(_0x2fce8e),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x2a36e9=this['editor'],_0x1f4b89=_0x2a36e9['commands']['get']('importWord'),_0x2ff294=_0x2a36e9['commands']['get']('trackChanges');_0x1f4b89&&(_0x1f4b89['on']('execute',(_0x5bd60e,[,_0x59eb9b])=>{this['_trackChangesValueDuringImport']=_0x2ff294['value'],_0x59eb9b['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x1f4b89,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x1f4b89,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x2ff294['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x2a36e9['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x404a35,_0x466b39){const {suggestions:_0x3a9e5d}=_0x466b39,_0x730c02=this['editor']['commands']['get']('trackChanges'),_0x117bdb=_0x730c02['value'];this['_trackChangesValueDuringImport']!==_0x117bdb&&(_0x730c02['execute'](),this['_trackChangesExecuted']=!0x0),_0x3a9e5d&&_0x3a9e5d['forEach'](({id:_0x275c55,type:_0x303778,author:_0xa0730b,created_at:_0xa1724b})=>{const _0x2f5d56={'id':_0x275c55,'type':_0x303778,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0xa0730b,'createdAt':_0xa1724b?new Date(_0xa1724b):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x2f5d56);});}}class ut extends _0x236dec{['afterInit'](){const _0x37bd76=this['editor'],_0x218158=_0x37bd76['plugins']['get']('TrackChangesEditing');if(_0x37bd76['plugins']['has']('IndentEditing')&&(_0x218158['enableCommand']('indent'),_0x218158['enableCommand']('outdent')),_0x37bd76['plugins']['has']('IndentBlock')){for(const _0x294c5f of['indentBlock','outdentBlock'])_0x218158['enableDefaultAttributesIntegration'](_0x294c5f);}const _0x5b5014=_0x37bd76['locale'];_0x218158['registerBlockAttribute']('blockIndent'),_0x218158['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x5b5014,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4a7125=this['editor'],_0x227c1c=_0x4a7125['locale'],_0x437a52=_0x4a7125['plugins']['get']('TrackChangesEditing');_0x437a52['descriptionFactory']['registerDescriptionCallback'](_0x507125=>{if('formatBlock'!=_0x507125['type'])return;const {data:_0x1c106d}=_0x507125;if(!_0x1c106d)return;if('indentBlock'!=_0x1c106d['commandName']&&'outdentBlock'!=_0x1c106d['commandName'])return;const _0x3df815=_0x507125['getItems']()[0x0],_0x38966d=_0x437a52['descriptionFactory']['getItemLabel'](_0x3df815);return'indentBlock'==_0x1c106d['commandName']?{'type':'format','content':o(_0x227c1c,'*Indent:*\x20%0',_0x38966d)}:'outdentBlock'==_0x1c106d['commandName']?{'type':'format','content':o(_0x227c1c,'*Outdent:*\x20%0',_0x38966d)}:void 0x0;});}}class ft extends _0x236dec{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x236dec{['afterInit'](){const _0x29fe23=this['editor'];if(!_0x29fe23['plugins']['has']('LinkEditing'))return;const _0x52dace=_0x29fe23['plugins']['get']('TrackChangesEditing'),_0x3e1753=_0x29fe23['commands']['get']('link');_0x52dace['enableDefaultAttributesIntegration']('link'),_0x52dace['enableDefaultAttributesIntegration']('unlink'),_0x52dace['registerInlineAttribute']('linkHref');for(const _0x137727 of _0x3e1753['manualDecorators'])_0x52dace['registerInlineAttribute'](_0x137727['id']),_0x52dace['descriptionFactory']['registerAttributeLabel'](_0x137727['id'],'link\x20('+_0x137727['label']['toLowerCase']()+')');_0x52dace['descriptionFactory']['registerDescriptionCallback'](_0x300d76=>{if('attribute'!=_0x300d76['type'])return;const {data:_0xfb0f22}=_0x300d76;if(!_0xfb0f22||'linkHref'!=_0xfb0f22['key'])return;const _0xb8124=_0xfb0f22['newValue'],_0x2c65da=_0x29fe23['locale'];return{'type':'format','content':null==_0xb8124?o(_0x2c65da,'*Remove\x20link*'):o(_0x2c65da,'*Set\x20link:*\x20%0','\x22'+_0xb8124+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x774a8c=this['editor'],_0x2ce817=_0x774a8c['locale'];_0x774a8c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x125b35=>{if('formatInline'!=_0x125b35['type'])return;const {data:_0x2f14c0}=_0x125b35;if(_0x2f14c0){if('link'==_0x2f14c0['commandName']){const _0x20770b=_0x2f14c0['commandParams'][0x0];return{'type':'format','content':o(_0x2ce817,'*Set\x20link:*\x20%0','\x22'+_0x20770b+'\x22')};}return'unlink'==_0x2f14c0['commandName']?{'type':'format','content':o(_0x2ce817,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x236dec{['afterInit'](){const _0x2219a8=this['editor'],_0x118391=_0x2219a8['locale'];if(!_0x2219a8['plugins']['has']('LegacyListEditing'))return;const _0x2a5744=_0x2219a8['plugins']['get']('TrackChangesEditing'),_0xd233ee=_0x2219a8['plugins']['has']('LegacyTodoListEditing');function _0x128fcf(_0xb6d779){return()=>{const _0x9d9405=_0x2219a8['model']['document']['selection'],_0x43ec95=_0x2219a8['commands']['get'](_0xb6d779);if(_0x43ec95['value'])return void _0x2219a8['execute']('paragraph',{});const _0x3e1bc5=_0xb6d779['slice'](0x0,-0x4),_0x18efe5=function(_0x217718,_0x14f967,_0x51c260){let _0x3b9b38=Array['from'](_0x217718)['filter'](_0x40440d=>function(_0x5535cb,_0x419d49){return _0x419d49['checkChild'](_0x5535cb['parent'],'listItem')&&!_0x419d49['isObject'](_0x5535cb);}(_0x40440d,_0x51c260));_0x3b9b38=_0x3b9b38['filter'](_0x4830c7=>!_0x4830c7['is']('element','listItem')||_0x4830c7['getAttribute']('listType')!=_0x14f967);const _0x32733f=new Set();for(const _0x523c88 of _0x3b9b38)_0x523c88['is']('element','listItem')?_0x32733f['add'](Le(_0x523c88)):_0x32733f['add'](_0x523c88);return Array['from'](_0x32733f);}(_0x9d9405['getSelectedBlocks'](),_0x3e1bc5,_0x2219a8['model']['schema']);_0x2219a8['model']['change'](()=>{for(const _0x66fbe5 of _0x18efe5)_0x2a5744['markBlockFormat'](_0x66fbe5,{'commandName':_0xb6d779,'commandParams':[{'forceValue':!_0x43ec95['value']}],'formatGroupId':'blockName'},Ee(_0x66fbe5));});};}function _0x5e6748(_0x528e1d){return()=>{const _0x430f6d=function(_0xc086ce){let _0x2a0f3e=Array['from'](_0xc086ce);const _0x5a3a25=_0x2a0f3e['findIndex'](_0x4515a2=>'listItem'!=_0x4515a2['name']);return _0x5a3a25>-0x1&&(_0x2a0f3e=_0x2a0f3e['slice'](0x0,_0x5a3a25)),_0x2a0f3e;}(_0x2219a8['model']['document']['selection']['getSelectedBlocks']()),_0x2cdd98=_0x2219a8['model']['createRange'](_0x2219a8['model']['createPositionAt'](_0x430f6d[0x0],'before'),_0x2219a8['model']['createPositionAt'](_0x430f6d[_0x430f6d['length']-0x1],'end'));_0x2219a8['model']['change'](()=>{_0x2a5744['markBlockFormat'](_0x2cdd98,{'commandName':_0x528e1d,'commandParams':[],'formatGroupId':'listIndent'},function(_0x3d9380){const _0x211f55=new Set();for(const _0xbc159d of _0x3d9380){let _0x2d5bdd=_0xbc159d['nextSibling'];for(;_0x2d5bdd&&_0x2d5bdd['getAttribute']('listIndent')>_0xbc159d['getAttribute']('listIndent');)_0x211f55['add'](_0x2d5bdd),_0x2d5bdd=_0x2d5bdd['nextSibling'];}return Array['from'](_0x211f55);}(_0x430f6d));});};}_0x2a5744['enableCommand']('numberedList',_0x128fcf('numberedList')),_0x2a5744['enableCommand']('bulletedList',_0x128fcf('bulletedList')),_0xd233ee&&_0x2a5744['enableCommand']('todoList',_0x128fcf('todoList')),_0x2a5744['enableCommand']('indentList',_0x5e6748('indentList')),_0x2a5744['enableCommand']('outdentList',_0x5e6748('outdentList')),_0xd233ee&&_0x2a5744['enableCommand']('checkTodoList',()=>{const _0x1d5e28=_0x2219a8['commands']['get']('checkTodoList'),_0x209705=Array['from'](_0x1d5e28['_selectedElements']);_0x209705['filter'](_0xdce24d=>_0xdce24d['getAttribute']('todoListChecked')!=_0x1d5e28['value']),_0x2219a8['model']['change'](()=>{for(const _0x13acf6 of _0x209705)_0x2a5744['markBlockFormat'](_0x13acf6,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x1d5e28['value']}]});});}),_0x2a5744['descriptionFactory']['registerElementLabel']('listItem',_0x2b421d=>o(_0x118391,'ELEMENT_LIST_ITEM',_0x2b421d)),_0x2a5744['descriptionFactory']['registerDescriptionCallback'](_0x5d6069=>{if('formatBlock'!=_0x5d6069['type']&&'formatInline'!=_0x5d6069['type'])return;const {data:_0x379317}=_0x5d6069;if(_0x379317){if('numberedList'==_0x379317['commandName']||'bulletedList'==_0x379317['commandName']||'todoList'==_0x379317['commandName'])switch(_0x379317['commandName']['replace']('List','')){case'bulleted':return _0x36768a(o(_0x118391,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x36768a(o(_0x118391,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x36768a(o(_0x118391,'ELEMENT_TODO_LIST'));}if('indentList'==_0x379317['commandName'])return{'type':'format','content':o(_0x118391,'*Indent:*\x20%0',o(_0x118391,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x379317['commandName'])return{'type':'format','content':o(_0x118391,'*Outdent:*\x20%0',o(_0x118391,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x379317['commandName'])return _0x379317['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x118391,'*Check\x20item*')}:{'type':'format','content':o(_0x118391,'*Uncheck\x20item*')};}function _0x36768a(_0x9dcbdc){return{'type':'format','content':o(_0x118391,'*Change\x20to:*\x20%0',_0x9dcbdc)};}});}}function Le(_0x39dff1){const _0x31ae50=_0x39dff1['getAttribute']('listIndent');if(0x0==_0x31ae50)return _0x39dff1;let _0x19013a=_0x39dff1;for(;_0x39dff1['previousSibling']&&_0x39dff1['previousSibling']['is']('element','listItem');){const _0x126cd9=_0x39dff1['previousSibling']['getAttribute']('listIndent');if(_0x126cd9==_0x31ae50)_0x19013a=_0x39dff1['previousSibling'];else{if(_0x126cd9<_0x31ae50)break;}_0x39dff1=_0x39dff1['previousSibling'];}return _0x19013a;}function Ee(_0x599a1b){const _0x1f0a63=[];if(_0x599a1b['is']('element','listItem')&&_0x599a1b['getAttribute']('listIndent')>0x0){let _0x285cb5=_0x599a1b['nextSibling'];for(;_0x285cb5&&'listItem'==_0x285cb5['name']&&_0x285cb5['getAttribute']('listIndent')==_0x599a1b['getAttribute']('listIndent');)_0x1f0a63['push'](_0x285cb5),_0x285cb5=_0x285cb5['nextSibling'];}return _0x1f0a63;}class Q extends _0x236dec{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x115193=this['editor']['config']['get']('list.properties'),_0x1d074f=this['editor']['plugins']['get']('TrackChangesEditing');_0x115193['styles']&&_0x1d074f['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x115193['reversed']&&_0x1d074f['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x115193['startIndex']&&_0x1d074f['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x1d074f['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x24d681,_0x5d5568={}){const _0xe72353=this['editor']['plugins']['get']('TrackChangesEditing'),_0x323358=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0xe72353['markMultiRangeBlockFormat'](_0x323358,{'commandName':'listStyle','commandParams':[{'type':_0x5d5568['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x382681,_0x2a7895={}){const _0x41a62d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x283cbf=this['_getSuggestionBlocks'](_0x4ca96b=>_0x4ca96b['is']('element','listItem')&&'numbered'===_0x4ca96b['getAttribute']('listType'));if(_0x283cbf['length']<0x1)return;const _0x2564ee=_0x283cbf['map'](_0xd3ded4=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xd3ded4,'before'),this['editor']['model']['createPositionAt'](_0xd3ded4,0x0)));this['editor']['model']['change'](()=>{_0x41a62d['markMultiRangeBlockFormat'](_0x2564ee,{'commandName':'listReversed','commandParams':[{'reversed':_0x2a7895['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x40728d,_0x586203={}){const _0x121f4d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3578f1=this['_getSuggestionBlocks'](_0x4e2af2=>_0x4e2af2['is']('element','listItem')&&'numbered'===_0x4e2af2['getAttribute']('listType'));if(_0x3578f1['length']<0x1)return;const _0xce5fdc=_0x3578f1['map'](_0x25525a=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x25525a,'before'),this['editor']['model']['createPositionAt'](_0x25525a,0x0)));this['editor']['model']['change'](()=>{_0x121f4d['markMultiRangeBlockFormat'](_0xce5fdc,{'commandName':'listStart','commandParams':[{'startIndex':_0x586203['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x5e41dd){if('formatBlock'!=_0x5e41dd['type']&&'formatInline'!=_0x5e41dd['type'])return;const _0x144865=this['editor']['locale'],{data:_0x5c1a9e}=_0x5e41dd;if(!_0x5c1a9e)return;let _0x32f8dc,_0x26760a;switch(_0x5c1a9e['commandName']){case'listStyle':_0x32f8dc='*Change\x20to:*\x20%0',_0x26760a={'type':'format','content':o(_0x144865,_0x32f8dc,o(_0x144865,this['_getTranslationKeyForListStyle'](_0x5c1a9e['commandParams'][0x0]['type'])))};break;case'listReversed':_0x32f8dc=_0x5c1a9e['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x26760a={'type':'format','content':o(_0x144865,_0x32f8dc)};break;case'listStart':_0x32f8dc='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x26760a={'type':'format','content':o(_0x144865,_0x32f8dc,_0x5c1a9e['commandParams'][0x0]['startIndex'])};}return _0x26760a;}['_getSuggestionBlocksForListStyle'](){const _0x413dc0=this['editor']['plugins']['get']('LegacyListUtils');let _0x5e5142=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x5e5142[0x0]?.['is']('element','listItem')&&_0x5e5142['unshift'](..._0x413dc0['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x5e5142[_0x5e5142['length']-0x1]?.['is']('element','listItem')&&_0x5e5142['push'](..._0x413dc0['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x5e5142=[...new Set(_0x5e5142)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x5e5142=_0x5e5142['filter'](_0x3349f2=>_0x3349f2['is']('element','listItem'))),_0x5e5142;}['_getSuggestionBlocks'](_0x3d26fb){const _0x48f4ff=this['editor']['plugins']['get']('LegacyListUtils');let _0x539bb1=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x3d26fb)['map'](_0x15aeaa=>{const _0x797b20=this['editor']['model']['createPositionAt'](_0x15aeaa,0x0);return[..._0x48f4ff['getSiblingNodes'](_0x797b20,'backward'),..._0x48f4ff['getSiblingNodes'](_0x797b20,'forward')];})['flat']();return _0x539bb1=[...new Set(_0x539bb1)],_0x539bb1;}['_getTranslationKeyForListStyle'](_0x3d8049){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x3d8049)||'default')['toUpperCase']()+'_LIST_'+_0x3d8049['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x236dec{['afterInit'](){const _0x5c500c=this['editor'];if(!_0x5c500c['plugins']['has']('MediaEmbedEditing'))return;const _0x273d6b=_0x5c500c['plugins']['get']('TrackChangesEditing'),_0x3b5abd=_0x5c500c['locale'];_0x273d6b['enableCommand']('mediaEmbed'),_0x273d6b['descriptionFactory']['registerElementLabel']('media',_0x509e6f=>o(_0x3b5abd,'ELEMENT_MEDIA',_0x509e6f)),_0x5c500c['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x10a327,{writer:_0x15483c,options:_0x1b7ac2})=>{if(_0x1b7ac2['showSuggestionHighlights'])return _0x15483c['createEmptyElement']('div');},'converterPriority':'high'}),_0x5c500c['data']['downcastDispatcher']['on']('attribute:url:media',(_0x464a64,_0x2e8b26,_0x11dce1)=>{_0x11dce1['options']['showSuggestionHighlights']&&_0x464a64['stop']();},{'priority':'high'});}}class mt extends _0x236dec{['afterInit'](){const _0x5e219e=this['editor'];_0x5e219e['plugins']['has']('MentionEditing')&&_0x5e219e['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class pt extends _0x236dec{['afterInit'](){const _0x56b245=this['editor'];if(!_0x56b245['plugins']['has']('MergeFieldsEditing'))return;const _0x54f439=_0x56b245['plugins']['get']('TrackChangesEditing'),_0x846901=_0x56b245['locale'];_0x54f439['enableCommand']('insertMergeField'),_0x54f439['enableCommand']('insertMergeFieldBlock'),_0x54f439['enableCommand']('insertMergeFieldImage'),_0x54f439['descriptionFactory']['registerElementLabel']('mergeField',_0x56e94c=>o(_0x846901,'ELEMENT_MERGE_FIELD',_0x56e94c)),_0x54f439['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x38aa78=>o(_0x846901,'ELEMENT_MERGE_FIELD',_0x38aa78)),_0x54f439['descriptionFactory']['registerDescriptionCallback'](_0x3a529e=>{if('insertion'!=_0x3a529e['type']&&'deletion'!=_0x3a529e['type'])return;const _0x46c620=_0x3a529e['getContainedElement']();if(null==_0x46c620)return;const _0x99ac29=_0x56b245['plugins']['get']('MergeFieldsEditing');let _0x1d386b;switch(_0x99ac29['getMergeFieldType'](_0x46c620)){case null:return;case'image':{const _0x5563c7=_0x99ac29['unwrapAffixes'](_0x46c620['getAttribute']('src'));_0x1d386b=_0x99ac29['getLabel'](_0x5563c7)||_0x5563c7;break;}default:{const _0x1c8f38=_0x46c620['getAttribute']('id');_0x1d386b=_0x99ac29['getLabel'](_0x1c8f38)||_0x1c8f38;break;}}return'insertion'==_0x3a529e['type']?{'type':'insertion','content':o(_0x846901,'*Insert:*\x20%0','\x22'+_0x1d386b+'\x22\x20'+o(_0x846901,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x846901,'*Remove:*\x20%0','\x22'+_0x1d386b+'\x22\x20'+o(_0x846901,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x236dec{['afterInit'](){const _0x589354=this['editor'],_0x2d19fb=_0x589354['plugins']['get']('TrackChangesEditing');_0x589354['plugins']['has']('MultiLevelList')&&(_0x2d19fb['enableDefaultAttributesIntegration']('multiLevelList'),_0x2d19fb['registerBlockAttribute']('listMarkerStyle'),_0x2d19fb['descriptionFactory']['registerDescriptionCallback'](_0x37fb0f=>this['handleDescriptions'](_0x37fb0f)));}['handleDescriptions'](_0x20d287){const _0x14f073=this['editor']['locale'],{data:_0x399525}=_0x20d287,_0x5caa51={'type':'format','content':''};if(_0x399525&&'listMarkerStyle'==_0x399525['key']){if(!_0x399525['oldValue'])return{'type':'format','content':o(_0x14f073,'*Set\x20format:*\x20%0',o(_0x14f073,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x399525['newValue']+')'};if(!_0x399525['newValue']){let _0x310fef=_0x20d287['head'];for(;_0x310fef;){if(_0x310fef['data']&&'listType'==_0x310fef['data']['key']&&_0x310fef['data']['newValue'])return _0x5caa51;_0x310fef=_0x310fef['next'];}return{'type':'format','content':o(_0x14f073,'*Remove\x20format:*\x20%0',o(_0x14f073,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x399525['oldValue']+')'};}}}}class kt extends _0x236dec{['afterInit'](){const _0x5bb1f1=this['editor'];if(!_0x5bb1f1['plugins']['has']('PageBreakEditing'))return;_0x5bb1f1['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x5cc387=_0x5bb1f1['plugins']['get']('TrackChangesEditing'),_0x2c1e18=_0x5bb1f1['locale'];_0x5cc387['descriptionFactory']['registerElementLabel']('pageBreak',_0x4646c2=>o(_0x2c1e18,'ELEMENT_PAGE_BREAK',_0x4646c2));}}class bt extends _0x236dec{['afterInit'](){const _0x4e67c8=this['editor'];if(!_0x4e67c8['plugins']['has']('Paragraph'))return;const _0xd026b0=_0x4e67c8['locale'],_0x2fa80d=_0x4e67c8['plugins']['get']('TrackChangesEditing');_0x2fa80d['descriptionFactory']['registerElementLabel']('paragraph',_0x18fa4e=>o(_0xd026b0,'ELEMENT_PARAGRAPH',_0x18fa4e)),_0x2fa80d['enableDefaultAttributesIntegration']('paragraph'),_0x2fa80d['enableCommand']('insertParagraph'),_0x4e67c8['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x4e67c8),{'priority':'highest'}),_0x4e67c8['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x34ef66,_0x490f35,_0x52b65f)=>{_0x52b65f['options']['showSuggestionHighlights']&&nr(_0x4e67c8,{'showActiveMarker':!0x1})(_0x34ef66,_0x490f35,_0x52b65f);},{'priority':'highest'});const _0x47f0e0=_0x2fa80d['descriptionFactory'];_0x47f0e0['registerDescriptionCallback'](_0x1d49d8=>{if('insertion'!==_0x1d49d8['type'])return;const {start:_0xe54657,end:_0x5484b3}=_0x1d49d8['getFirstRange']();if(!_0xe54657['isTouching'](_0x5484b3)||!_0xe54657['nodeAfter'])return;const _0xe85c34=_0x4e67c8['model']['schema'],_0x3cb248=_0xe54657['nodeAfter'];return _0xe85c34['isBlock'](_0x3cb248)&&!_0xe85c34['isLimit'](_0x3cb248)&&_0xe85c34['checkChild'](_0x3cb248,'$text')?{'type':'insertion','content':o(_0xd026b0,'*Insert:*\x20%0',_0x47f0e0['getItemLabel'](_0x3cb248,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1a66f3=this['editor'],_0x3ed84e=_0x1a66f3['locale'];_0x1a66f3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x13b9b1=>{if('formatBlock'!=_0x13b9b1['type'])return;const {data:_0x1bd2fe}=_0x13b9b1;return _0x1bd2fe&&'paragraph'==_0x1bd2fe['commandName']?{'type':'format','content':o(_0x3ed84e,'*Change\x20to:*\x20%0',o(_0x3ed84e,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x374ca3,{showActiveMarker:_0x3e50f0=!0x0}={}){return(_0x3405b2,_0x5ed412,_0x549853)=>{const _0x43120b=_0x374ca3['plugins']['get']('TrackChangesEditing'),_0x1e9d47=_0x5ed412['markerRange']['start'],_0x382dab=_0x5ed412['markerRange']['end'],_0x18a444=_0x374ca3['model']['schema'];if(!_0x1e9d47['isTouching'](_0x382dab)||!_0x1e9d47['nodeAfter'])return;const _0xf64129=_0x1e9d47['nodeAfter'];if(_0x18a444['isBlock'](_0xf64129)&&!_0x18a444['isLimit'](_0xf64129)&&_0x18a444['checkChild'](_0xf64129,'$text')){if(!_0x549853['consumable']['consume'](_0x5ed412['markerRange'],_0x3405b2['name']))return;const {authorId:_0x3105de}=_0x43120b['_splitMarkerName'](_0x5ed412['markerName']),_0x1e7bc8=_0x549853['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x3105de}),_0x25d072=_0x549853['mapper']['toViewPosition'](_0x382dab);_0x3e50f0&&_0x43120b['activeMarkers']['includes'](_0x5ed412['markerName'])&&_0x549853['writer']['addClass']('ck-suggestion-marker--active',_0x1e7bc8),_0x549853['writer']['insert'](_0x25d072,_0x1e7bc8),_0x549853['mapper']['bindElementToMarker'](_0x1e7bc8,_0x5ed412['markerName']);}};}class yt extends _0x236dec{['afterInit'](){const _0x3dbd00=this['editor'];if(!_0x3dbd00['plugins']['has']('RemoveFormatEditing'))return;_0x3dbd00['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x14fe25=this['editor'];_0x14fe25['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5920d2=>{if('formatBlock'!=_0x5920d2['type']&&'formatInline'!=_0x5920d2['type'])return;const {data:_0x5092c7}=_0x5920d2;return _0x5092c7&&'removeFormat'==_0x5092c7['commandName']?{'type':'format','content':o(_0x14fe25['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class jt extends _0x236dec{['afterInit'](){const _0x913af7=this['editor'];if(!_0x913af7['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x518db1=_0x913af7['plugins']['get']('TrackChangesEditing');_0x518db1['enableCommand']('goToPreviousRestrictedEditingException'),_0x518db1['enableCommand']('goToNextRestrictedEditingException');const _0x2e97b9=_0x913af7['plugins']['get']('RestrictedEditingModeEditing');_0x2e97b9['enableCommand']('trackChanges'),_0x2e97b9['enableCommand']('acceptSuggestion'),_0x2e97b9['enableCommand']('discardSuggestion'),_0x2e97b9['enableCommand']('acceptAllSuggestions'),_0x2e97b9['enableCommand']('discardAllSuggestions'),_0x2e97b9['enableCommand']('acceptSelectedSuggestions'),_0x2e97b9['enableCommand']('discardSelectedSuggestions');}}class St extends _0x236dec{static get['requires'](){return[_0x187999];}['init'](){const _0x54224a=this['editor'],_0x550b8b=_0x54224a['plugins']['get']('TrackChangesEditing');_0x550b8b['enableCommand']('shiftEnter'),_0x54224a['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x54224a),{'priority':'high'}),_0x54224a['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x54224a),{'priority':'high'}),_0x54224a['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x141c70,_0xc2ed02,_0x2e536a)=>{_0x2e536a['options']['showSuggestionHighlights']&&je(_0x54224a,{'showActiveMarker':!0x1})(_0x141c70,_0xc2ed02,_0x2e536a);}),_0x550b8b['descriptionFactory']['registerElementLabel']('softBreak',_0x1af310=>o(_0x54224a['locale'],'ELEMENT_LINE_BREAK',_0x1af310));}}function je(_0x2e41b1,{showActiveMarker:_0x56b231=!0x0}={}){return(_0x194ac3,_0x24d7eb,_0x3cef9b)=>{const _0x10827e=_0x2e41b1['plugins']['get']('TrackChangesEditing');if(!_0x3cef9b['consumable']['test'](_0x24d7eb['markerRange'],_0x194ac3['name']))return;const _0x1e4d13=_0x2e41b1['model'];for(const _0x2f4c3a of _0x24d7eb['markerRange']['getItems']()){if(!_0x2f4c3a['is']('element','softBreak'))continue;const _0x3ee194='deletion'==_0x24d7eb['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x1a4d44}=_0x10827e['_splitMarkerName'](_0x24d7eb['markerName']),_0x375ba9=_0x3cef9b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3ee194,'data-author-id':_0x1a4d44}),_0x1edf33=_0x3cef9b['mapper']['toViewPosition'](_0x1e4d13['createPositionBefore'](_0x2f4c3a));_0x56b231&&_0x10827e['activeMarkers']['includes'](_0x24d7eb['markerName'])&&_0x3cef9b['writer']['addClass']('ck-suggestion-marker--active',_0x375ba9),_0x3cef9b['writer']['insert'](_0x1edf33,_0x375ba9),_0x3cef9b['mapper']['bindElementToMarker'](_0x375ba9,_0x24d7eb['markerName']);}};}class At extends _0x236dec{['afterInit'](){const _0xefd512=this['editor'],_0x26fb29=_0xefd512['model'],_0x373810=_0xefd512['locale'];if(!_0xefd512['plugins']['has']('StandardEditingModeEditing'))return;const _0x25d026=_0xefd512['plugins']['get']('TrackChangesEditing'),_0x5ee041='restrictedEditingException',_0x28951a=_0xefd512['commands']['get'](_0x5ee041);_0x25d026['enableCommand'](_0x5ee041,(_0x2e7a8b,_0x3fe85e={})=>{const _0x53eae9=_0x26fb29['document']['selection'];if(_0x53eae9['isCollapsed'])return void _0x2e7a8b(_0x3fe85e);const _0x104201=void 0x0!==_0x3fe85e['forceValue']?_0x3fe85e['forceValue']:!_0x28951a['value'];_0x26fb29['change'](()=>{const _0x12f17c=Array['from'](_0x53eae9['getRanges']());for(const _0xa07cad of _0x12f17c){const _0x310655=_0x104201?[_0xa07cad]:io(_0x5ee041,_0xa07cad,_0x26fb29);for(const _0xf726ae of _0x310655)_0x25d026['markInlineFormat'](_0xf726ae,{'commandName':_0x5ee041,'commandParams':[{'forceValue':_0x104201}]});}});}),_0x25d026['descriptionFactory']['registerDescriptionCallback'](_0x3e5605=>{if('formatBlock'!=_0x3e5605['type']&&'formatInline'!=_0x3e5605['type'])return;const {data:_0x2c85e9}=_0x3e5605;return _0x2c85e9&&_0x2c85e9['commandName']==_0x5ee041?_0x2c85e9['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x373810,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x373810,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x236dec{['afterInit'](){const _0x4ea168=this['editor'];if(!_0x4ea168['plugins']['has']('Style')||!_0x4ea168['plugins']['has']('DataSchema'))return;const _0x5b496e=_0x4ea168['plugins']['get']('TrackChangesEditing'),_0x1f5db0=_0x4ea168['locale'],_0x8bdaca=_0x4ea168['config']['get']('style')||{},_0x5a05cd=_0x4ea168['plugins']['get']('GeneralHtmlSupport'),_0x5ddf7f=_0x4ea168['plugins']['get']('StyleUtils')['normalizeConfig'](_0x4ea168['plugins']['get']('DataSchema'),_0x8bdaca['definitions']);_0x5b496e['enableDefaultAttributesIntegration']('style');const _0x49a06a=new Set();for(const _0x2aa5f9 of _0x5ddf7f['block']){const _0x4ec1dd=_0x5a05cd['getGhsAttributeNameForElement'](_0x2aa5f9['element']);_0x49a06a['add'](_0x4ec1dd);}const _0x18f1e3=new Set();for(const _0x309aa8 of _0x5ddf7f['inline']){const _0x25decc=_0x5a05cd['getGhsAttributeNameForElement'](_0x309aa8['element']);_0x18f1e3['add'](_0x25decc);for(const _0x19cdbc of _0x309aa8['ghsAttributes'])_0x18f1e3['add'](_0x19cdbc);}for(const _0x4cd281 of _0x49a06a)_0x5b496e['registerBlockAttribute'](_0x4cd281),_0x5b496e['descriptionFactory']['registerAttributeLabel'](_0x4cd281,o(_0x1f5db0,'FORMAT_STYLE'));for(const _0xce6880 of _0x18f1e3)_0x5b496e['registerInlineAttribute'](_0xce6880),_0x5b496e['descriptionFactory']['registerAttributeLabel'](_0xce6880,o(_0x1f5db0,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x51efbe=this['editor'],_0x44afcc=_0x51efbe['locale'];_0x51efbe['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3ff6ec=>{if('formatBlock'!=_0x3ff6ec['type']&&'formatInline'!=_0x3ff6ec['type'])return;const {data:_0x5286fb}=_0x3ff6ec;return _0x5286fb&&'style'===_0x5286fb['commandName']?_0x5286fb['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x44afcc,'*Set\x20format:*\x20%0',_0x5286fb['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x44afcc,'*Remove\x20format:*\x20%0',_0x5286fb['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class vt extends _0x236dec{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x3ab91f){super(_0x3ab91f),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x1a9f6f=this['editor'],_0x22ed74=_0x1a9f6f['model']['document']['selection'];if(!_0x1a9f6f['plugins']['has']('TableEditing'))return;const _0x278a7f=_0x1a9f6f['locale'],_0x482eaf=_0x1a9f6f['plugins']['get']('TrackChangesEditing'),_0xc47369=_0x1a9f6f['plugins']['get']('TableUtils');_0x482eaf['descriptionFactory']['registerElementLabel']('table',_0x2861b9=>o(_0x278a7f,'ELEMENT_TABLE',_0x2861b9)),this['_setupColumnsRowsFixing'](),_0x482eaf['enableCommand']('insertTable'),_0x482eaf['enableCommand']('selectTableRow'),_0x482eaf['enableCommand']('selectTableColumn');for(const _0x445eb1 of['insertTableRowAbove','insertTableRowBelow']){const _0x534591=_0x1a9f6f['commands']['get'](_0x445eb1);_0x482eaf['enableCommand'](_0x445eb1,_0x3a66c4=>{_0x1a9f6f['model']['change'](_0x247dcd=>{_0x3a66c4();const _0x21202e='above'===_0x534591['order'],_0x1f12e3=_0xc47369['getSelectionAffectedTableCells'](_0x22ed74),_0x381159=_0xc47369['getRowIndexes'](_0x1f12e3),_0x24b66d=_0x21202e?_0x381159['first']-0x1:_0x381159['last']+0x1,_0x46d0b2=_0x1f12e3[0x0]['findAncestor']('table'),_0x1cd445=_0xc47369['createTableWalker'](_0x46d0b2,{'startRow':_0x24b66d,'endRow':_0x24b66d}),_0x55a4ba=Array['from'](_0x1cd445)['map'](_0x52f5aa=>_0x247dcd['createRangeOn'](_0x52f5aa['cell']));_0x482eaf['markMultiRangeInsertion'](_0x55a4ba,'tableRow');});});}for(const _0x55e9ff of['insertTableColumnLeft','insertTableColumnRight']){const _0x3c6aca=_0x1a9f6f['commands']['get'](_0x55e9ff);_0x482eaf['enableCommand'](_0x55e9ff,_0x435b54=>{_0x1a9f6f['model']['change'](_0x343076=>{_0x435b54();const _0x7792ce='left'===_0x3c6aca['order'],_0x470ec3=_0xc47369['getSelectionAffectedTableCells'](_0x22ed74),_0x15d902=_0xc47369['getColumnIndexes'](_0x470ec3),_0x3ae1b3=_0x7792ce?_0x15d902['first']-0x1:_0x15d902['last']+0x1,_0x2fe606=_0x470ec3[0x0]['findAncestor']('table'),_0x53f9e2=_0xc47369['createTableWalker'](_0x2fe606,{'startRow':0x0,'column':_0x3ae1b3,'includeAllSlots':!0x1}),_0x16864d=Array['from'](_0x53f9e2)['map'](_0x1aad03=>_0x343076['createRangeOn'](_0x1aad03['cell']));_0x482eaf['markMultiRangeInsertion'](_0x16864d,'tableColumn');});});}for(const _0x50aaf6 of['removeTableRow','removeTableColumn']){const _0x28583b=_0x50aaf6['substr'](0xb),_0x4b5429=_0x28583b['toLowerCase'](),_0x3cf746=_0x4b5429['substr'](0x0,0x3)+'span',_0x380b4d='table'+_0x28583b,_0x59d20e='min'+_0x28583b,_0xcbc600='max'+_0x28583b;_0x482eaf['enableCommand'](_0x50aaf6,()=>{_0x1a9f6f['model']['change'](_0x2b2240=>{const _0x2b0c1d=_0xc47369['getSelectionAffectedTableCells'](_0x22ed74),_0x4df76e=_0x2b0c1d[0x0]['findAncestor']('table');let _0x263cd1;if('removeTableRow'==_0x50aaf6){const _0x15b22a=_0xc47369['getRowIndexes'](_0x2b0c1d);_0x263cd1={'startRow':_0x15b22a['first'],'endRow':_0x15b22a['last'],'includeAllSlots':!0x0};}else{const _0x594915=_0xc47369['getColumnIndexes'](_0x2b0c1d);_0x263cd1={'startColumn':_0x594915['first'],'endColumn':_0x594915['last'],'includeAllSlots':!0x0};}const _0x48ce8f=_0xc47369['createTableWalker'](_0x4df76e,_0x263cd1),_0xacac81=Array['from'](_0x48ce8f)['map'](({cell:_0x5486a1})=>_0x5486a1),_0x6469d6=Ne(_0xacac81['filter'](_0x179b3d=>_0x179b3d['hasAttribute'](_0x3cf746))),_0xbc9d21=Ne(_0xacac81['filter'](_0x5555e2=>!_0x5555e2['hasAttribute'](_0x3cf746)))['map'](_0xd472e4=>_0x2b2240['createRangeOn'](_0xd472e4)),_0x3bb7ea=_0x482eaf['markMultiRangeDeletion'](_0xbc9d21,_0x380b4d);if(_0x3bb7ea&&('tableRow'==_0x3bb7ea['subType']||'tableColumn'==_0x3bb7ea['subType'])){const _0x1aba4a=this['_getSuggestionCoords'](_0x3bb7ea);for(const _0xc9de6d of _0x6469d6){const _0x5963be=_0x2b2240['createRangeOn'](_0xc9de6d),_0x16acc2=_0xc47369['getCellLocation'](_0xc9de6d),_0x1badaa=_0xc9de6d['getAttribute'](_0x3cf746)-0x1,_0x559fdb=_0x1aba4a[_0x59d20e],_0x1e50f2=_0x1aba4a[_0xcbc600];_0x559fdb<=_0x16acc2[_0x4b5429]&&_0x16acc2[_0x4b5429]+_0x1badaa<=_0x1e50f2&&_0x3bb7ea['addRange'](_0x5963be);}}});});}function _0x12a343(_0x436cb8){const _0x35f134=Array['from'](_0x22ed74['getRanges']())['map'](_0x43d6fa=>_0x78f3c6['fromRange'](_0x43d6fa));_0x1a9f6f['model']['change'](_0x2c170f=>{const _0x3146fa=_0x2c170f['batch'];_0x436cb8=_0x436cb8['filter'](_0x5b20a1=>'$graveyard'!=_0x5b20a1['root']['rootName']),_0x2c170f['setSelection'](_0x436cb8),_0x1a9f6f['commands']['get']('removeTableRow')['refresh'](),_0x1a9f6f['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x1a9f6f['model']['enqueueChange'](()=>{_0x1a9f6f['model']['enqueueChange'](_0x3146fa,_0x4c327d=>{const _0x2a9c64=_0x35f134['filter'](_0x4fb0c6=>'$graveyard'!=_0x4fb0c6['root']['rootName']);_0x2a9c64['length']>0x0&&_0x4c327d['setSelection'](_0x2a9c64);for(const _0x3b96aa of _0x35f134)_0x3b96aa['detach']();});});});}function _0x54d057(_0x19be0a){_0x1a9f6f['model']['change'](_0xb43b4=>{const _0x7faf9a=Array['from'](_0x22ed74['getRanges']())['map'](_0x21b94e=>_0x78f3c6['fromRange'](_0x21b94e)),_0x1c3091=[];for(const _0x1e8ba2 of _0x19be0a)for(const _0x2725aa of _0x1e8ba2['getItems']({'shallow':!0x0}))_0x1c3091['push'](_0x2725aa);for(const _0x3f7796 of _0x1c3091)'$graveyard'!=_0x3f7796['root']['rootName']&&(_0xb43b4['setSelection'](_0xb43b4['createPositionAt'](_0x3f7796,0x0)),_0x1a9f6f['commands']['get']('removeTableColumn')['refresh'](),_0x1a9f6f['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x415d2b=_0x7faf9a['filter'](_0x1c4cd5=>'$graveyard'!=_0x1c4cd5['root']['rootName']);_0x415d2b['length']>0x0&&_0xb43b4['setSelection'](_0x415d2b);for(const _0x3d134b of _0x7faf9a)_0x3d134b['detach']();});}function _0x4b5aed(_0x2fd222,_0x452c0d){return _0x452c0d['every'](_0x10a240=>_0x2fd222['some'](_0x4511a2=>_0x4511a2['end']['isEqual'](_0x10a240['start'])||_0x10a240['end']['isEqual'](_0x4511a2['start'])));}function _0x4524ce(_0x25d70b,_0x3c5d17){return!_0x25d70b['some'](_0x5ddced=>_0x3c5d17['some'](_0x57b8e1=>_0x5ddced['isIntersecting'](_0x57b8e1)))&&_0x25d70b['some'](_0x4bd339=>_0x3c5d17['some'](_0x3ebdfa=>_0x4bd339['end']['isTouching'](_0x3ebdfa['start'])));}_0x1a9f6f['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x25c012,_0x8772ed,_0x16d618)=>{if(!_0x16d618['options']['showSuggestionHighlights'])return;const _0x35ebea=_0x8772ed['item'];if(!_0x35ebea)return;const _0x35166d=_0x16d618['mapper']['toViewElement'](_0x35ebea);function _0x5cef66(_0x27d926){return Array['isArray'](_0x27d926)?_0x27d926:[_0x27d926];}_0x35166d&&'tableCell'===_0x35ebea['name']&&_0x544add(_0x35166d,_0x16d618['writer'],(_0xfe2c81,_0x4d0457,_0x467ece)=>_0x467ece['addClass'](_0x5cef66(_0x4d0457['classes']),_0xfe2c81),(_0x43c108,_0x30b707,_0x3ec3aa)=>_0x3ec3aa['removeClass'](_0x5cef66(_0x30b707['classes']),_0x43c108));},{'priority':'highest'}),_0x482eaf['descriptionFactory']['registerDescriptionCallback'](_0x4a4fd8=>{if('insertion'!=_0x4a4fd8['type']&&'deletion'!=_0x4a4fd8['type'])return;const _0x19e4d8=_0x4a4fd8['getContainedElement']();if(null!=_0x19e4d8&&_0x19e4d8['is']('element','table')){if('insertion'==_0x4a4fd8['type']){const _0xd0cae9=_0x4a4fd8['getItems']()['filter'](_0x64176c=>_0x64176c['is']('$textProxy'))['map'](_0x384f7c=>_0x384f7c['data']);if(_0xd0cae9['length'])return{'type':'insertion','content':o(_0x278a7f,'*Insert:*\x20%0',o(_0x278a7f,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xd0cae9['join']('\x20')+'\x22'))};}if('deletion'==_0x4a4fd8['type']){const _0x9084ba=_0x4a4fd8['getItems']()['filter'](_0x5690ce=>_0x5690ce['is']('$textProxy'))['map'](_0x5affe3=>_0x5affe3['data']);if(_0x9084ba['length'])return{'type':'deletion','content':o(_0x278a7f,'*Remove:*\x20%0',o(_0x278a7f,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x9084ba['join']('\x20')+'\x22'))};}}}),_0x482eaf['descriptionFactory']['registerDescriptionCallback'](_0x419a8b=>{if('tableRow'==_0x419a8b['subType']){const _0x4ade7f=_0x419a8b['getItems']()['filter'](_0x397c87=>_0x397c87['is']('$textProxy'))['map'](_0x52a75e=>_0x52a75e['data']),_0x419547=this['_getSuggestionCoords'](_0x419a8b),_0x3362fa=_0x419547['maxRow']-_0x419547['minRow']+0x1;if('insertion'==_0x419a8b['type'])return _0x4ade7f['length']?{'type':'insertion','content':o(_0x278a7f,'*Insert:*\x20%0',o(_0x278a7f,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3362fa,'\x22'+_0x4ade7f['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x278a7f,'*Insert:*\x20%0',o(_0x278a7f,'ELEMENT_TABLE_ROW',_0x3362fa))};if('deletion'==_0x419a8b['type'])return _0x4ade7f['length']?{'type':'deletion','content':o(_0x278a7f,'*Remove:*\x20%0',o(_0x278a7f,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3362fa,'\x22'+_0x4ade7f['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x278a7f,'*Remove:*\x20%0',o(_0x278a7f,'ELEMENT_TABLE_ROW',_0x3362fa))};}if('tableColumn'==_0x419a8b['subType']){const _0x35bf43=_0x419a8b['getItems']()['filter'](_0x27c29e=>_0x27c29e['is']('$textProxy'))['map'](_0x3b8555=>_0x3b8555['data']),_0x4f50c2=this['_getSuggestionCoords'](_0x419a8b),_0x28a0f9=_0x4f50c2['maxColumn']-_0x4f50c2['minColumn']+0x1;if('insertion'==_0x419a8b['type'])return _0x35bf43['length']?{'type':'insertion','content':o(_0x278a7f,'*Insert:*\x20%0',o(_0x278a7f,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x28a0f9,'\x22'+_0x35bf43['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x278a7f,'*Insert:*\x20%0',o(_0x278a7f,'ELEMENT_TABLE_COLUMN',_0x28a0f9))};if('deletion'==_0x419a8b['type'])return _0x35bf43['length']?{'type':'deletion','content':o(_0x278a7f,'*Remove:*\x20%0',o(_0x278a7f,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x28a0f9,'\x22'+_0x35bf43['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x278a7f,'*Remove:*\x20%0',o(_0x278a7f,'ELEMENT_TABLE_COLUMN',_0x28a0f9))};}}),_0x482eaf['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x12a343),_0x482eaf['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x12a343),_0x482eaf['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x54d057),_0x482eaf['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x54d057),_0x482eaf['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x4b5aed),_0x482eaf['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x4b5aed),_0x482eaf['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x4524ce),_0x482eaf['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x4524ce);}['_acceptFormatSuggestionCallbackFactory'](){const _0x3629f2=this['editor'],_0x28926a=_0x3629f2['model']['document']['selection'];return(_0x446724,_0x50f0ef)=>{_0x3629f2['model']['change'](_0x5ef96b=>{const {commandName:_0x3cfd08,commandParams:_0x1cbcfe}=_0x50f0ef;let _0x59fcd7=_0x446724[0x0]['end']['nodeBefore'];_0x1cbcfe&&_0x1cbcfe[0x0]&&!0x1===_0x1cbcfe[0x0]['forceValue']&&(_0x59fcd7=_0x446724[0x0]['start']['nodeAfter']);const _0xb0943a=_0x5ef96b['createRangeIn'](_0x59fcd7);if('$graveyard'==_0xb0943a['root']['rootName'])return;const _0x2149ab=Array['from'](_0x28926a['getRanges']())['map'](_0x589f45=>_0x78f3c6['fromRange'](_0x589f45));_0x5ef96b['setSelection'](_0xb0943a),_0x3629f2['commands']['get'](_0x3cfd08)['refresh'](),_0x1cbcfe['push']({'forceDefaultExecution':!0x0}),_0x3629f2['execute'](_0x3cfd08,..._0x1cbcfe);const _0x4f0feb=_0x2149ab['filter'](_0xc3d129=>'$graveyard'!=_0xc3d129['root']['rootName']);_0x4f0feb['length']>0x0&&_0x5ef96b['setSelection'](_0x4f0feb);for(const _0x19ebe0 of _0x2149ab)_0x19ebe0['detach']();});};}['_getCoordsForCells'](_0x50e630){const _0x476c52=this['editor']['plugins']['get']('TableUtils');let _0x57997d=Number['MAX_SAFE_INTEGER'],_0x144eec=Number['MIN_SAFE_INTEGER'],_0x1a67ee=Number['MAX_SAFE_INTEGER'],_0x269601=Number['MIN_SAFE_INTEGER'];for(const _0x1465bc of _0x50e630){if('$graveyard'==_0x1465bc['root']['rootName'])continue;const {row:_0x31468c,column:_0x468ccf}=_0x476c52['getCellLocation'](_0x1465bc),_0x4244f0=_0x1465bc['hasAttribute']('rowspan')?_0x1465bc['getAttribute']('rowspan')-0x1:0x0,_0x4fbd1b=_0x1465bc['hasAttribute']('colspan')?_0x1465bc['getAttribute']('colspan')-0x1:0x0;_0x57997d=_0x31468c<_0x57997d?_0x31468c:_0x57997d,_0x144eec=_0x31468c+_0x4244f0>_0x144eec?_0x31468c+_0x4244f0:_0x144eec,_0x1a67ee=_0x468ccf<_0x1a67ee?_0x468ccf:_0x1a67ee,_0x269601=_0x468ccf+_0x4fbd1b>_0x269601?_0x468ccf+_0x4fbd1b:_0x269601;}return{'minRow':_0x57997d,'maxRow':_0x144eec,'minColumn':_0x1a67ee,'maxColumn':_0x269601};}['_setupColumnsRowsFixing'](){const _0x203896=this['editor'],_0x5a3ba2=_0x203896['plugins']['get']('TrackChangesEditing'),_0x14439a=_0x203896['plugins']['get']('TableUtils');_0x203896['model']['document']['on']('change:data',()=>{const _0x9c9aaf=Array['from'](_0x203896['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x23e993,data:_0x33913c}of _0x9c9aaf){const {group:_0x2ef0f4,id:_0x5677cc,subType:_0x4357fb}=_0x5a3ba2['_splitMarkerName'](_0x23e993);if('suggestion'!=_0x2ef0f4)continue;if(null!=_0x33913c['oldRange'])continue;const _0x35c0d6=_0x5a3ba2['getSuggestion'](_0x5677cc);this['_tablePostFixingSubtypes']['includes'](_0x4357fb)&&this['_tableSuggestions']['add'](_0x35c0d6);}},{'priority':'low'});const _0x19f88f=(_0x2122be,_0x237a31)=>{let _0x33375f=!0x1;const _0x5c5972=_0x237a31['createRangeOn'](_0x2122be),_0x58e43f=_0x2122be['findAncestor']('table'),_0xa1cb47=_0x14439a['getCellLocation'](_0x2122be);for(const _0x35fa23 of this['_tableSuggestions']){const _0x3d7d1c=_0x35fa23['subType'],_0x1f801c=_0x3d7d1c['startsWith']('tablePaste'),_0x1efe9a=_0x3d7d1c['substr'](_0x1f801c?0xa:0x5),_0x311b3a=_0x1efe9a['toLowerCase'](),_0x25d95a=_0x311b3a['substr'](0x0,0x3)+'span',_0x11ce8a='min'+_0x1efe9a,_0xbcba31='max'+_0x1efe9a;if(!_0x35fa23['isInContent'])continue;if(_0x58e43f!=_0x35fa23['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x35fa23['isIntersectingWithRange'](_0x5c5972))continue;const _0x34bd01=_0x2122be['hasAttribute'](_0x25d95a)?_0x2122be['getAttribute'](_0x25d95a)-0x1:0x0,_0xc513e=this['_getSuggestionCoords'](_0x35fa23),_0x474555=_0xc513e[_0x11ce8a],_0x510785=_0xc513e[_0xbcba31];_0x474555<=_0xa1cb47[_0x311b3a]&&_0xa1cb47[_0x311b3a]+_0x34bd01<=_0x510785&&(_0x35fa23['addRange'](_0x5c5972),_0x33375f=!0x0);}return _0x33375f;};_0x203896['model']['document']['registerPostFixer'](_0x2b27fe=>{let _0x468702=!0x1;for(const _0xea986d of _0x203896['model']['document']['differ']['getChanges']())if('insert'==_0xea986d['type']){if('tableRow'==_0xea986d['name']){for(const _0x1a684d of _0xea986d['position']['nodeAfter']['getChildren']())_0x468702=_0x468702||_0x19f88f(_0x1a684d,_0x2b27fe);}else'tableCell'==_0xea986d['name']&&(_0x468702=_0x468702||_0x19f88f(_0xea986d['position']['nodeAfter'],_0x2b27fe));}return _0x468702;});}['_getSuggestionCoords'](_0x564b5e){return this['_getCoordsForCells'](_0x564b5e['getRanges']()['map'](_0x3480d4=>_0x3480d4['start']['nodeAfter']));}}function Ne(_0x21845c){return Array['from'](new Set(_0x21845c)['values']());}class _t extends _0x236dec{static get['requires'](){return[vt];}['afterInit'](){const _0x52860e=this['editor'],_0x5e1590=_0x52860e['model']['document']['selection'],_0x17ddf4=_0x52860e['locale'];if(!_0x52860e['plugins']['has']('TableEditing'))return;const _0x37d36b=_0x52860e['plugins']['get']('TrackChangesEditing'),_0x4cd212=_0x52860e['plugins']['get']('TableUtils'),_0x4e5d0f=_0x52860e['plugins']['get'](vt);_0x4e5d0f['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x37d36b['enableCommand']('mergeTableCells',()=>{const _0x472dbd=_0x4cd212['getSelectionAffectedTableCells'](_0x52860e['model']['document']['selection']);_0x52860e['model']['change'](()=>{_0x37d36b['markMultiRangeBlockFormat'](_0x472dbd,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x52860e['commands']['get']('mergeTableCells')['on']('execute',(_0x5b0df6,_0x1b1859)=>{_0x52860e['commands']['get']('trackChanges')['value']&&(_0x1b1859['length']>0x0&&_0x1b1859[_0x1b1859['length']-0x1]&&_0x1b1859[_0x1b1859['length']-0x1]['forceDefaultExecution']||_0x37d36b['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x5b0df6['stop']());},{'priority':'highest'});for(const _0x48fc40 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x2d3593=_0x52860e['commands']['get'](_0x48fc40);_0x37d36b['enableCommand'](_0x48fc40,()=>{const _0x3ff85a=_0x52860e['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4f0948=>_0x4f0948['is']('element','tableCell')),_0xd23888=_0x2d3593['value'];_0x52860e['model']['change'](()=>{_0x37d36b['markMultiRangeBlockFormat']([_0x3ff85a,_0xd23888],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x2910b1 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x28dd14=_0x52860e['commands']['get'](_0x2910b1);_0x37d36b['enableCommand'](_0x2910b1,()=>{const _0x2b93a7=_0x4cd212['getSelectionAffectedTableCells'](_0x52860e['model']['document']['selection'])[0x0],_0x3a8eb1=_0x2b93a7['findAncestor']('table'),{column:_0x199656,row:_0x54bed0}=_0x4cd212['getCellLocation'](_0x2b93a7);let _0x47ca97=[];if('horizontally'==_0x28dd14['direction']){const _0x509690=_0x4cd212['createTableWalker'](_0x3a8eb1,{'startRow':_0x54bed0,'endRow':_0x54bed0,'includeAllSlots':!0x0});_0x47ca97=Array['from'](_0x509690)['map'](_0x3e94d5=>_0x3e94d5['cell']);}else{const _0x45166f=_0x4cd212['createTableWalker'](_0x3a8eb1,{'column':_0x199656,'includeAllSlots':!0x0});_0x47ca97=Array['from'](_0x45166f)['map'](_0x418bca=>_0x418bca['cell']);}_0x52860e['model']['change'](_0x29efb9=>{_0x37d36b['markBlockFormat'](_0x29efb9['createRangeOn'](_0x2b93a7),{'commandName':_0x2910b1,'commandParams':[]},_0x47ca97,_0x2910b1);});});}_0x37d36b['descriptionFactory']['registerDescriptionCallback'](_0x13a418=>{if('formatBlock'!=_0x13a418['type']&&'formatInline'!=_0x13a418['type'])return;const {data:_0x9d34bb}=_0x13a418;return _0x9d34bb&&'mergeTableCells'==_0x9d34bb['commandName']?{'type':'format','content':o(_0x17ddf4,'*Merge\x20cells*')}:void 0x0;}),_0x37d36b['descriptionFactory']['registerDescriptionCallback'](_0x1f7695=>{if('formatBlock'!=_0x1f7695['type']&&'formatInline'!=_0x1f7695['type'])return;const {data:_0x4162f1}=_0x1f7695;return _0x4162f1?'splitTableCellVertically'==_0x4162f1['commandName']?{'type':'format','content':o(_0x17ddf4,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x4162f1['commandName']?{'type':'format','content':o(_0x17ddf4,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x4254e8=_0x4e5d0f['_acceptFormatSuggestionCallbackFactory']();for(const _0xc34e15 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x37d36b['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xc34e15,'accept',_0x4254e8);for(const _0xcf06fd of['splitTableCellVertically','splitTableCellHorizontally'])_0x37d36b['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xcf06fd,'accept',_0x4254e8);_0x37d36b['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x3cef07=>{_0x52860e['model']['change'](_0x6ffb7c=>{const _0x225632=Array['from'](_0x5e1590['getRanges']())['map'](_0x343bf5=>_0x78f3c6['fromRange'](_0x343bf5));_0x6ffb7c['setSelection'](_0x3cef07),_0x52860e['commands']['get']('mergeTableCells')['refresh'](),_0x52860e['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x2bce0e=_0x225632['filter'](_0x385a5=>'$graveyard'!=_0x385a5['root']['rootName']);_0x2bce0e['length']>0x0&&_0x6ffb7c['setSelection'](_0x2bce0e);for(const _0x29afcc of _0x225632)_0x29afcc['detach']();});});for(const _0x49daa5 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x49420d=_0x52860e['commands']['get'](_0x49daa5);_0x49420d['on']('set:isEnabled',(_0x5d6c4d,_0x5a9d6d,_0x34ccfb)=>{if(_0x34ccfb){const _0x893a54=_0x52860e['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x143ebe=>_0x143ebe['is']('element','tableCell'));this['_areMergableCells'](_0x49420d['value'],_0x893a54)||(_0x5d6c4d['return']=!0x1,_0x5d6c4d['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x49c313=this['editor']['commands']['get']('mergeTableCells'),_0x32c397=this['editor']['plugins']['get']('TableUtils');if(!_0x49c313['isEnabled'])return!0x1;const _0x4c3e7e=_0x32c397['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x277983 of _0x4c3e7e)for(const _0x13814f of _0x4c3e7e)if(_0x277983!=_0x13814f&&!this['_areMergableCells'](_0x277983,_0x13814f))return!0x1;return!0x0;}['_areMergableCells'](_0x503627,_0x2d49f6){const _0x3f9f4e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3dcafc=this['editor']['model']['createRangeOn'](_0x503627),_0x44c54d=this['editor']['model']['createRangeOn'](_0x2d49f6),_0x18df6f=new Set(),_0x2c25e3=new Set();for(const _0x272060 of _0x3f9f4e['getSuggestions']())if(('insertion'==_0x272060['type']||'deletion'==_0x272060['type']||'mergeTableCells'==_0x272060['subType'])&&_0x272060['isInContent']){for(const _0x17f303 of _0x272060['getRanges']())_0x17f303['containsRange'](_0x3dcafc,!0x0)&&_0x18df6f['add'](_0x272060['type']+':'+_0x272060['author']['id']),_0x17f303['containsRange'](_0x44c54d,!0x0)&&_0x2c25e3['add'](_0x272060['type']+':'+_0x272060['author']['id']);}if(_0x18df6f['size']!=_0x2c25e3['size'])return!0x1;for(const _0x431aed of _0x18df6f)if(!_0x2c25e3['has'](_0x431aed))return!0x1;return!0x0;}}class Ct extends _0x236dec{static get['requires'](){return[vt];}['afterInit'](){const _0x339fe4=this['editor'];if(!_0x339fe4['plugins']['has']('TableEditing'))return;const _0x1978c0=_0x339fe4['locale'],_0x299bb1=_0x339fe4['plugins']['get']('TrackChangesEditing');_0x299bb1['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x299bb1['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x299bb1['registerBlockAttribute']('headingRows'),_0x299bb1['registerBlockAttribute']('headingColumns'),_0x299bb1['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x1978c0,'FORMAT_HEADER_ROW')),_0x299bb1['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x1978c0,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4fdba7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x56246d=this['editor']['plugins']['get']('TableUtils'),_0x220a38=this['editor']['plugins']['get'](vt)['_acceptFormatSuggestionCallbackFactory']();function _0x599906({showActiveMarker:_0x58a68c=!0x0,setDataAttribute:_0x140736=!0x0}={}){return(_0x4127ad,_0x426849,_0x310b41)=>{const {type:_0x499f33,id:_0x424585}=_0x4fdba7['_splitMarkerName'](_0x426849['markerName']),_0x59845b=_0x4fdba7['getSuggestion'](_0x424585),_0x2d7909=_0x59845b['data'];if('formatBlock'!=_0x59845b['type']||!_0x2d7909||'setTableColumnHeader'!=_0x2d7909['commandName'])return;if(_0x426849['item'])return void _0x4127ad['stop']();if(!_0x310b41['consumable']['consume'](_0x426849['markerRange'],_0x4127ad['name']))return;const _0x547a0a=_0x426849['markerRange']['start']['nodeAfter'],_0x42a64b=_0x426849['markerRange']['end']['nodeBefore'],_0x32b62e=_0x547a0a['parent']['parent'],{column:_0x11a8f4}=_0x56246d['getCellLocation'](_0x547a0a),{column:_0x380eb0}=_0x56246d['getCellLocation'](_0x42a64b);for(let _0x4a08cd=_0x11a8f4;_0x4a08cd<=_0x380eb0;_0x4a08cd++){const _0x4dbf40=_0x56246d['createTableWalker'](_0x32b62e,{'column':_0x4a08cd,'includeAllSlots':!0x1});for(const _0x1c98bf of _0x4dbf40){const _0x2c436c=_0x1c98bf['cell'],_0x535629=_0x310b41['mapper']['toViewElement'](_0x2c436c);_0x310b41['writer']['addClass']('ck-suggestion-marker-'+_0x499f33,_0x535629),_0x140736&&_0x310b41['writer']['setAttribute']('data-suggestion',_0x424585,_0x535629),_0x310b41['mapper']['bindElementToMarker'](_0x535629,_0x426849['markerName']),_0x58a68c&&(_0x4fdba7['activeMarkers']['includes'](_0x426849['markerName'])?_0x310b41['writer']['addClass']('ck-suggestion-marker--active',_0x535629):_0x310b41['writer']['removeClass']('ck-suggestion-marker--active',_0x535629));}}};}_0x4fdba7['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x220a38),_0x4fdba7['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x220a38),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x599906(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4b5531,_0x115f1b,_0xf28759)=>{_0xf28759['options']['showSuggestionHighlights']&&_0x599906({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x4b5531,_0x115f1b,_0xf28759);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x52b570,_0x20ed3b,_0x263f76)=>{const {type:_0x401447,id:_0x4efe68}=_0x4fdba7['_splitMarkerName'](_0x20ed3b['markerName']),_0x2b4fd7=_0x4fdba7['getSuggestion'](_0x4efe68),_0x2aca1d=_0x2b4fd7['data'];if('formatBlock'!=_0x2b4fd7['type']||!_0x2aca1d||'setTableColumnHeader'!=_0x2aca1d['commandName'])return;const _0x312e71=_0x263f76['mapper']['markerNameToElements'](_0x20ed3b['markerName']);if(_0x312e71){for(const _0x2f68de of _0x312e71)_0x263f76['writer']['removeClass']('ck-suggestion-marker-'+_0x401447,_0x2f68de),_0x263f76['writer']['removeClass']('ck-suggestion-marker--active',_0x2f68de),_0x263f76['writer']['removeAttribute']('data-suggestion',_0x2f68de),_0x263f76['mapper']['unbindElementFromMarkerName'](_0x2f68de,_0x20ed3b['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3293b9=this['editor'],_0x196117=_0x3293b9['locale'];function _0x580c5c(_0x154ce6){return{'type':'format','content':o(_0x196117,'*Format:*\x20%0',_0x154ce6)};}_0x3293b9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x150922=>{if('formatBlock'!=_0x150922['type'])return;const {data:_0x326091}=_0x150922;if(_0x326091){if('setTableRowHeader'==_0x326091['commandName']){const _0x3f3a97=_0x326091['commandParams'][0x0]['forceValue'];return _0x580c5c(o(_0x196117,_0x3f3a97?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x326091['commandName']){const _0x443acd=_0x326091['commandParams'][0x0]['forceValue'];return _0x580c5c(o(_0x196117,_0x443acd?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x5d5138=>[_0x5d5138,null]));class Nt extends _0x236dec{static get['requires'](){return[vt];}['afterInit'](){const _0x20483a=this['editor'];if(!_0x20483a['plugins']['has']('TableClipboard'))return;const _0x1820db=_0x20483a['plugins']['get']('TrackChangesEditing'),_0x4aba17=_0x20483a['plugins']['get']('TableUtils'),_0x417227=_0x20483a['plugins']['get'](vt),_0x12e113=_0x20483a['plugins']['get']('TableClipboard');_0x417227['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x20483a['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x20483a['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x315e35=null;_0x20483a['model']['on']('insertContent',(_0x1734dc,_0x57f58a)=>{const [_0x4b5b83,_0x649ea6]=_0x57f58a,_0x5d9ca8=_0x57f58a[_0x57f58a['length']-0x1];_0x5d9ca8&&_0x5d9ca8['forceDefaultExecution']||_0x1820db['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x713445,_0x2dbfc6,_0x2cc09d,_0xb2d782,_0x5f470e){if(_0x2dbfc6&&!_0x2dbfc6['is']('documentSelection'))return!0x1;const _0x4c286e=_0x5f470e['getTableIfOnlyTableInContent'](_0x713445,_0x2cc09d);if(!_0x4c286e||!Ue(_0x4c286e,void 0x0,_0xb2d782))return!0x1;const _0x7ad9d8=_0xb2d782['getSelectionAffectedTableCells'](_0x2cc09d['document']['selection']);if(!_0x7ad9d8['length'])return!0x1;const _0x2a51cf=_0x7ad9d8[0x0]['findAncestor']('table'),_0x985d32=_0xb2d782['getRowIndexes'](_0x7ad9d8),_0x50e826=_0xb2d782['getColumnIndexes'](_0x7ad9d8),_0x1549d7={'startRow':_0x985d32['first'],'endRow':_0x985d32['last'],'startColumn':_0x50e826['first'],'endColumn':_0x50e826['last']};return 0x1==_0x7ad9d8['length']&&(_0x1549d7['endRow']+=_0xb2d782['getRows'](_0x4c286e)-0x1,_0x1549d7['endColumn']+=_0xb2d782['getColumns'](_0x4c286e)-0x1),Ue(_0x2a51cf,_0x1549d7,_0xb2d782);}(_0x4b5b83,_0x649ea6,_0x20483a['model'],_0x4aba17,_0x12e113)&&(_0x1734dc['stop'](),_0x315e35={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x20483a['model']['change'](()=>{_0x20483a['model']['insertContent'](_0x57f58a[0x0],_0x57f58a[0x1],_0x57f58a[0x2],{'forceDefaultExecution':!0x0});const _0x556c47=_0x598835(),{rowInsertionRanges:_0x16578b,columnInsertionRanges:_0x45e1a5,insertionRanges:_0x932754,deletionRanges:_0x290be6,cells:_0x331190}=_0x315e35;_0x16578b['length']&&_0x1820db['markMultiRangeInsertion'](_0x16578b,'tablePasteRow',{'tablePasteChainId':_0x556c47}),_0x45e1a5['length']&&_0x1820db['markMultiRangeInsertion'](_0x45e1a5,'tablePasteColumn',{'tablePasteChainId':_0x556c47}),_0x932754['length']&&(_0x1820db['markMultiRangeInsertion'](_0x932754,'tablePaste',{'tablePasteChainId':_0x556c47,'skipNestingCheck':!0x0}),_0x932754['forEach'](_0x57c23d=>_0x57c23d['detach']?.())),_0x290be6['length']&&(_0x1820db['markMultiRangeDeletion'](_0x290be6,'tablePaste',{'tablePasteChainId':_0x556c47,'skipNestingCheck':!0x0}),_0x290be6['forEach'](_0x6bfdeb=>_0x6bfdeb['detach']?.()));const _0xe78e33=_0x1820db['markMultiRangeBlockFormat'](_0x331190['map'](({element:_0xe4c429})=>_0xe4c429),{'formatGroupId':_0x598835()},[],'tablePasteCell',{'tablePasteChainId':_0x556c47});if(_0xe78e33){const _0x3a35cb=_0xe78e33['getMarkers'](),_0x29f67a=[];for(const {element:_0x1a2461,attributes:_0x5846f7}of _0x331190){if(!_0x5846f7)continue;const _0x35bc0f=_0x20483a['model']['createRangeOn'](_0x1a2461),_0x3e85c7=_0x3a35cb['find'](_0x3f2f8a=>_0x3f2f8a['getRange']()['isEqual'](_0x35bc0f));_0x3e85c7&&_0x29f67a['push']([_0x3e85c7['name'],_0x5846f7]);}_0x29f67a['length']&&_0xe78e33['setAttribute']('markerAttributes',Object['fromEntries'](_0x29f67a));}_0x315e35=null;}));},{'priority':_0x5255c7['high']+0xa}),_0x20483a['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x52d091,_0xdee817)=>{const [_0x406715,_0x4dcc73,,_0x2dbe1a]=_0xdee817;if(!_0x315e35)return;_0x52d091['stop']();const _0x21f8e5=_0x406715['cell'],_0x4acfa2=_0x4dcc73,_0x32713c=Oe(_0x21f8e5),_0x3d7d5a=Oe(_0x4acfa2);_0x52d091['return']=_0x21f8e5;let _0x42d4e9=null,_0x5ddb55=null;if(_0x3d7d5a||_0x32713c){if(_0x32713c&&!_0x3d7d5a){_0x2dbe1a['remove'](_0x21f8e5['getChild'](0x0));for(const _0x458dd6 of Array['from'](_0x4acfa2['getChildren']()))_0x2dbe1a['insert'](_0x458dd6,_0x21f8e5,'end');const _0x3d0273=_0x315e35['rowInsertionIndexes']['includes'](_0x406715['row']),_0x5b0a86=_0x315e35['columnInsertionIndexes']['includes'](_0x406715['column']);_0x3d0273||_0x5b0a86||(_0x42d4e9=_0x78f3c6['fromRange'](_0x2dbe1a['createRangeIn'](_0x21f8e5)));}else _0x3d7d5a&&!_0x32713c&&(_0x5ddb55=_0x2dbe1a['createRangeIn'](_0x21f8e5));}else{const _0x31e63b=_0x2dbe1a['createElement']('tableCellSuggestion'),_0x2d17e=_0x2dbe1a['createElement']('tableCellSuggestion');_0x2dbe1a['wrap'](_0x2dbe1a['createRangeIn'](_0x21f8e5),_0x2d17e),_0x2dbe1a['insert'](_0x31e63b,_0x21f8e5,0x0);for(const _0x254559 of Array['from'](_0x4acfa2['getChildren']()))_0x2dbe1a['insert'](_0x254559,_0x31e63b,'end');_0x42d4e9=_0x78f3c6['fromRange'](_0x2dbe1a['createRangeOn'](_0x31e63b)),_0x5ddb55=_0x78f3c6['fromRange'](_0x2dbe1a['createRangeOn'](_0x2d17e));}const _0x5a0d5b=Array['from'](_0x4acfa2['getAttributes']())['filter'](([_0x1c62d7])=>Be['includes'](_0x1c62d7));_0x315e35['cells']['push']({'element':_0x21f8e5,'attributes':_0x5a0d5b['length']?Object['fromEntries'](_0x5a0d5b):null}),_0x42d4e9&&_0x315e35['insertionRanges']['push'](_0x42d4e9),_0x5ddb55&&_0x315e35['deletionRanges']['push'](_0x5ddb55);},{'priority':'high'}),_0x4aba17['on']('insertColumns',(_0x20e2fb,_0x213549)=>{const [_0x1424b9,_0x3c3829={}]=_0x213549;if(!_0x315e35)return;const _0x11059b=_0x3c3829['at']||0x0,_0x4ef084=_0x3c3829['columns']||0x1;_0x315e35['columnInsertionIndexes']=new Array(_0x4ef084)['fill'](_0x11059b)['map']((_0x1b3cf1,_0x399452)=>_0x1b3cf1+_0x399452);for(const {cell:_0x3fc152}of _0x4aba17['createTableWalker'](_0x1424b9,{'startColumn':_0x11059b,'endColumn':_0x11059b+_0x4ef084-0x1}))_0x315e35['columnInsertionRanges']['push'](_0x20483a['model']['createRangeOn'](_0x3fc152));},{'priority':'low'}),_0x4aba17['on']('insertRows',(_0xd43cb4,_0x367b69)=>{const [_0x5724f0,_0x2253be={}]=_0x367b69;if(!_0x315e35)return;const _0x5597a7=_0x2253be['at']||0x0,_0x145f57=_0x2253be['rows']||0x1;_0x315e35['rowInsertionIndexes']=new Array(_0x145f57)['fill'](_0x5597a7)['map']((_0x30f9f1,_0x362df8)=>_0x30f9f1+_0x362df8);for(const {cell:_0x3f63f8}of _0x4aba17['createTableWalker'](_0x5724f0,{'startRow':_0x5597a7,'endRow':_0x5597a7+_0x145f57-0x1}))_0x315e35['rowInsertionRanges']['push'](_0x20483a['model']['createRangeOn'](_0x3f63f8));},{'priority':'low'}),_0x1820db['descriptionFactory']['registerDescriptionCallback'](_0x4fbac5=>{if(_0x4fbac5['subType']&&_0x4fbac5['subType']['startsWith']('tablePaste'))return _0x4fbac5['previous']?{}:{'type':'insertion','content':o(_0x20483a['locale'],'*Replace\x20table\x20cells*')};});const _0x1a1818=()=>!0x1;for(const _0x17ffde of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x1820db['_suggestionFactory']['registerCustomCallback']('insertion',_0x17ffde,'join',_0x1a1818),_0x1820db['_suggestionFactory']['registerCustomCallback']('deletion',_0x17ffde,'join',_0x1a1818),_0x1820db['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x17ffde,'join',_0x1a1818);_0x1820db['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x1a1818),_0x1820db['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x53bd26,_0x3d075a,_0x21b3eb)=>{const _0x4bde9e=_0x53bd26['map'](_0xa2d963=>_0xa2d963['getContainedElement']())['filter'](_0x123ca4=>_0x123ca4),_0x2abd07=new Map(_0x4bde9e['map'](_0x5c8c81=>[_0x5c8c81,null]));if(_0x315e35){for(const {element:_0xfaa412,attributes:_0x32cb5c}of _0x315e35['cells'])_0x32cb5c&&_0x2abd07['set'](_0xfaa412,_0x32cb5c);}else{if(_0x21b3eb&&_0x21b3eb['markerAttributes'])for(const [_0x2aadf6,_0x42b8a5]of Object['entries'](_0x21b3eb['markerAttributes'])){const _0x53cbd6=_0x20483a['model']['markers']['get'](_0x2aadf6),_0x488fb8=_0x53cbd6?_0x53cbd6['getRange']()['getContainedElement']():null;_0x488fb8&&_0x2abd07['set'](_0x488fb8,_0x42b8a5);}}_0x20483a['model']['change'](_0x5f330e=>{for(const [_0x22280e,_0x53b8d6]of _0x2abd07)_0x5f330e['setAttributes']({...xe,..._0x53b8d6},_0x22280e);});});const _0x58c132=(_0x427318,_0x3d2974)=>{_0x1820db['_suggestionFactory']['registerCustomCallback'](_0x427318,'tablePaste',_0x3d2974,(_0x4d6ec4,_0x266022,_0x28baf5)=>{_0x20483a['model']['change'](_0x22390a=>{const _0x1a474d=[];for(const _0x17a3bf of _0x4d6ec4){const _0x4246be=_0x17a3bf['start']['nodeAfter'];_0x4246be['is']('element','tableCellSuggestion')&&_0x1a474d['push'](_0x4246be);}_0x1820db['_suggestionFactory']['getSuggestionCallback'](_0x427318,null,_0x3d2974)(_0x4d6ec4,_0x266022,_0x28baf5);for(const _0x4809fa of _0x1a474d)'$graveyard'!=_0x4809fa['root']['rootName']&&_0x22390a['unwrap'](_0x4809fa);});});};_0x58c132('insertion','accept'),_0x58c132('insertion','discard'),_0x58c132('deletion','accept'),_0x58c132('deletion','discard'),_0x1820db['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x113483=>{const _0x3e2d0b=_0x113483['map'](_0x30806c=>_0x30806c['getContainedElement']()),_0x4ec200=_0x3e2d0b[0x0]['findAncestor']('table'),{minRow:_0x4ae9ff,maxRow:_0xeb7169}=_0x417227['_getCoordsForCells'](_0x3e2d0b);_0x4aba17['removeRows'](_0x4ec200,{'at':_0x4ae9ff,'rows':_0xeb7169-_0x4ae9ff+0x1});}),_0x1820db['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x1672f6=>{const _0x40e4c1=_0x1672f6['map'](_0x354f6d=>_0x354f6d['getContainedElement']()),_0x2fd353=_0x40e4c1[0x0]['findAncestor']('table'),{minColumn:_0x33e676,maxColumn:_0x40180a}=_0x417227['_getCoordsForCells'](_0x40e4c1);_0x4aba17['removeColumns'](_0x2fd353,{'at':_0x33e676,'columns':_0x40180a-_0x33e676+0x1});});const _0x542e91=(_0x53aa61,_0x12734d)=>{if(!_0x12734d['subType']||!_0x12734d['subType']['startsWith']('tablePaste'))return;const _0x48ef7b=_0x12734d['attributes']['tablePasteChainId'],_0x64081a=_0x1820db['getSuggestions']()['filter'](_0x4799cf=>_0x4799cf['isInContent']&&_0x4799cf['attributes']&&_0x4799cf['attributes']['tablePasteChainId']==_0x48ef7b);_0x64081a['length']&&_0x12734d['getAllAdjacentSuggestions']()['length']!=_0x64081a['length']&&_0x64081a['reduce']((_0x2c2996,_0x4977e8)=>(_0x2c2996['next']=_0x4977e8,_0x4977e8['previous']=_0x2c2996,_0x4977e8));};function _0x21b660(_0x4dcbd8,_0x31eb98=!0x0){const {id:_0x321e96,authorId:_0x27b664}=_0x1820db['_splitMarkerName'](_0x4dcbd8['markerName']),_0x570f9c=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0xbc1945=_0x1820db['activeMarkers']['includes'](_0x4dcbd8['markerName']);return _0xbc1945&&_0x570f9c['push']('ck-suggestion-marker--active'),{'classes':_0x570f9c,'attributes':{'data-suggestion':_0x321e96,'data-author-id':_0x27b664},'priority':_0xbc1945&&_0x31eb98?0xbc2:0xbb8};}_0x1820db['on']('suggestionLoaded',_0x542e91,{'priority':'high'}),_0x1820db['on']('suggestionUnloaded',_0x542e91,{'priority':'high'}),_0x20483a['model']['document']['registerPostFixer'](()=>{let _0xb79fa0=!0x1;const _0x48947a=Array['from'](_0x20483a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x25a26b,data:_0x2cebf8}of _0x48947a){const {group:_0x39387a,type:_0x4b2232,id:_0x38fc80}=_0x1820db['_splitMarkerName'](_0x25a26b);if('suggestion'!=_0x39387a||'deletion'!=_0x4b2232||_0x2cebf8['oldRange'])continue;if(!_0x1820db['hasSuggestion'](_0x38fc80))continue;const _0x1bcfa0=_0x1820db['getSuggestion'](_0x38fc80)['getRanges'](),_0x592814=_0x20483a['plugins']['get']('Users')['me'];for(const _0x300dfc of _0x1820db['getSuggestions']()){if(!_0x300dfc['isInContent']||_0x300dfc['author']!=_0x592814)continue;if('formatBlock'!=_0x300dfc['type']||'tablePasteCell'!=_0x300dfc['subType'])continue;if(_0x300dfc['getRanges']()['every'](_0x51a299=>_0x1bcfa0['some'](_0x3ed448=>_0x3ed448['containsRange'](_0x51a299,!0x0)))){for(const _0x229d4d of _0x300dfc['getAllAdjacentSuggestions']())_0x229d4d['isInContent']&&(_0x229d4d['discard'](),_0xb79fa0=!0x0);}}}return _0xb79fa0;}),_0x20483a['model']['document']['registerPostFixer'](_0x3d6df9=>{const _0x21223d=_0x20483a['commands']['get']('redo');if(!_0x21223d||!_0x21223d['_createdBatches']['has'](_0x3d6df9['batch']))return!0x1;let _0x1ffd6c=!0x1;const _0x4579d4=_0x20483a['plugins']['get']('Users')['me'],_0x860a85=_0x20483a['model']['document']['differ']['getChanges'](),_0x3a8522=Array['from'](_0x20483a['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x52d15f,data:_0x25781b})=>{const {group:_0x825b4c,subType:_0x204574,authorId:_0x381c1b}=_0x1820db['_splitMarkerName'](_0x52d15f);return'suggestion'==_0x825b4c&&'tablePaste'==_0x204574&&_0x381c1b==_0x4579d4['id']&&!_0x25781b['oldRange'];});for(const _0x1f2b46 of _0x860a85){if('insert'!=_0x1f2b46['type']||'tableCellSuggestion'!=_0x1f2b46['name']||0x1!=_0x1f2b46['length'])continue;const _0x4a5f5d=_0x3d6df9['createRange'](_0x1f2b46['position'],_0x1f2b46['position']['getShiftedBy'](0x1));if(!_0x3a8522['find'](({data:_0x588d24})=>_0x588d24['newRange']['isEqual'](_0x4a5f5d))){for(const {name:_0x37d118,data:_0x118946}of _0x3a8522)if(_0x4a5f5d['containsRange'](_0x118946['newRange'])){_0x3d6df9['updateMarker'](_0x37d118,{'range':_0x4a5f5d}),_0x1ffd6c=!0x0;break;}}}return _0x1ffd6c;}),_0x20483a['model']['document']['registerPostFixer'](_0x4bb8a9=>{let _0x824375=!0x1;const _0x1d017c=_0x20483a['plugins']['get']('Users')['me'],_0x1ae0c4=_0x1820db['getSuggestions']()['filter'](_0x5c0616=>_0x5c0616['isInContent']&&_0x5c0616['author']==_0x1d017c),_0x478c1f=new Set(),_0x4659ac=new Set();for(const _0x3fcd7f of _0x1ae0c4)if('tablePaste'==_0x3fcd7f['subType'])for(const _0x2ef153 of _0x3fcd7f['getMarkers']()){const _0xf17d91=_0x2ef153['getRange']()['getContainedElement']();if(_0xf17d91){if(_0xf17d91['is']('element','tableCellSuggestion')&&Oe(_0xf17d91)){_0x3fcd7f['removeMarker'](_0x2ef153['name']),_0x478c1f['add'](_0xf17d91),_0x824375=!0x0;const _0x2c42c7=_0xf17d91['nextSibling'],_0x1eae4f=_0xf17d91['previousSibling'],_0x3b7ec5=_0x2c42c7&&_0x2c42c7['is']('element','tableCellSuggestion'),_0x523bd0=_0x1eae4f&&_0x1eae4f['is']('element','tableCellSuggestion');_0x3b7ec5&&!_0x478c1f['has'](_0x2c42c7)&&_0x4659ac['add'](_0x2c42c7),_0x523bd0&&!_0x478c1f['has'](_0x1eae4f)&&_0x4659ac['add'](_0x1eae4f);}else _0xf17d91['is']('element','paragraph')&&_0xf17d91['isEmpty']&&(_0x3fcd7f['removeMarker'](_0x2ef153['name']),_0x824375=!0x0);}}else{if('tablePasteCell'==_0x3fcd7f['subType']){if(!_0x3fcd7f['attributes']||!_0x3fcd7f['attributes']['tablePasteChainId'])continue;const _0x19a11c=_0x3fcd7f['attributes']['markerAttributes'];if(_0x19a11c&&Object['keys'](_0x19a11c)['length'])continue;const _0x39b2bf=_0x3fcd7f['attributes']['tablePasteChainId'];let _0xd51615=!0x0,_0x2e9d8e=!0x0;for(const _0x65e5c0 of _0x1ae0c4)if(_0x65e5c0['subType']&&_0x65e5c0['subType']['startsWith']('tablePaste')){if(!_0x65e5c0['attributes']['tablePasteChainId']){_0x2e9d8e=!0x1;break;}if(_0x65e5c0['id']!=_0x3fcd7f['id']&&_0x65e5c0['attributes']['tablePasteChainId']==_0x39b2bf){_0xd51615=!0x1;break;}}_0x2e9d8e&&_0xd51615&&(_0x3fcd7f['removeMarkers'](),_0x824375=!0x0);}}for(const _0x4ded59 of _0x478c1f)_0x4bb8a9['remove'](_0x4ded59);for(const _0x2143d0 of _0x4659ac)_0x4bb8a9['unwrap'](_0x2143d0);return _0x824375;}),_0x20483a['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0xbd47e4=>_0x21b660(_0xbd47e4),'converterPriority':'high'}),_0x20483a['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x3a040,_0x36cef7)=>_0x36cef7['options']['showSuggestionHighlights']?_0x21b660(_0x3a040,!0x1):null,'converterPriority':'high'});const _0x145269=_0x20483a['editing']['view'];this['listenTo'](_0x145269['document'],'clipboardOutput',(_0x3e893c,_0x48d156)=>{const _0xbca3f6=[];for(const _0x34b1f8 of _0x145269['createRangeIn'](_0x48d156['content'])['getItems']())_0x34b1f8['is']('element','suggestion-td')&&_0xbca3f6['push'](_0x34b1f8);_0x145269['change'](_0x4fcdb5=>{for(const _0x4271da of _0xbca3f6)_0x4fcdb5['move'](_0x4fcdb5['createRangeIn'](_0x4271da),_0x4fcdb5['createPositionBefore'](_0x4271da)),_0x4fcdb5['remove'](_0x4271da);});});}}function Oe(_0x23a37f){if(_0x23a37f['isEmpty'])return!0x0;const _0xf53b63=_0x23a37f['getChild'](0x0);return _0xf53b63['is']('element','paragraph')&&_0xf53b63['isEmpty'];}function Ue(_0x59b612,_0x2347bc={},_0x22a6e1){for(const {isAnchor:_0x27f020,cellHeight:_0x4efab3,cellWidth:_0x2f5ee0}of _0x22a6e1['createTableWalker'](_0x59b612,{'includeAllSlots':!0x0,..._0x2347bc}))if(!_0x27f020||0x1!=_0x4efab3||0x1!=_0x2f5ee0)return!0x1;return!0x0;}class Dt extends _0x236dec{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x2d8854=this['editor']['plugins']['get']('TrackChangesEditing');_0x2d8854['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x2d8854['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x2d8854['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2d8854['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x2d8854['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x2d8854['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x371ac1,_0x1edd2b){const _0xb220bc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2656c1=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x51f36e=_0x1edd2b['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x446107=_0x2656c1['getColumnGroupElement'](_0x51f36e);let _0x11ed86=_0x446107?_0x2656c1['getTableColumnsWidths'](_0x446107):null,_0x302e98=_0x51f36e['getAttribute']('tableWidth')||null;const _0x631dcb=_0x1edd2b['tableWidth']||_0x302e98,_0xc18e67=_0x1edd2b['columnWidths']||_0x11ed86,_0x413e37=this['editor']['plugins']['get']('Users')['me'];for(const _0x3e45d5 of _0xb220bc['getSuggestions']()){const _0x1c0a66=_0x3e45d5['getContainedElement']();if('resizeTable'===_0x3e45d5['subType']&&_0x1c0a66===_0x51f36e){_0x3e45d5['author']!==_0x413e37&&_0x3e45d5['discard']();const _0x40a370=_0x3e45d5['data']['commandParams'];_0x302e98=_0x40a370[0x0]['tableWidth'],_0x11ed86=_0x40a370[0x0]['columnWidths'];break;}}_0x371ac1({'table':_0x51f36e,'tableWidth':_0x631dcb,'columnWidths':_0xc18e67}),_0xb220bc['markBlockFormat'](_0x51f36e,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x302e98,'columnWidths':_0x11ed86}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x4b8cd7){if('formatBlock'!=_0x4b8cd7['type']&&'formatInline'!=_0x4b8cd7['type'])return;const {data:_0xe2ec39}=_0x4b8cd7;if(_0xe2ec39&&'resizeTable'===_0xe2ec39['formatGroupId']){const _0x58291e='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x58291e)};}}}class Mt extends _0x236dec{['afterInit'](){const _0xa50210=this['editor'];_0xa50210['plugins']['has']('Template')&&_0xa50210['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x236dec{['afterInit'](){const _0x28e09e=this['editor'];if(!_0x28e09e['commands']['get']('insertTableOfContents'))return;_0x28e09e['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x3b8b75=_0x28e09e['plugins']['get']('TrackChangesEditing'),_0x58b19f=_0x28e09e['locale'];_0x3b8b75['descriptionFactory']['registerElementLabel']('tableOfContents',_0x4c3fce=>o(_0x58b19f,'ELEMENT_TABLE_OF_CONTENTS',_0x4c3fce));}}class Bt extends _0x236dec{['afterInit'](){const _0x47426d=this['editor'];if(!_0x47426d['plugins']['has']('Title'))return;const _0x24bef4=_0x47426d['plugins']['get']('TrackChangesEditing');_0x24bef4['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x47426d['locale'],'ELEMENT_TITLE')),_0x47426d['model']['document']['registerPostFixer'](_0x450ff5=>{let _0x311862=!0x1;const _0x6d277=Array['from'](_0x47426d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1fddc2,data:_0x5c3a98}of _0x6d277){const {group:_0x3e76b6}=_0x24bef4['_splitMarkerName'](_0x1fddc2);if('suggestion'!==_0x3e76b6||!_0x5c3a98['newRange'])continue;const _0x1fdd80=_0x5c3a98['newRange'],_0x4cbde8=_0x1fdd80['end']['nodeBefore'];if(!_0x4cbde8||!_0x4cbde8['is']('element','title-content'))continue;if(!_0x1fdd80['start']['isTouching'](_0x1fdd80['end']))continue;const _0x1fe3f9=_0x47426d['model']['schema']['getNearestSelectionRange'](_0x1fdd80['end'],'forward');if(_0x1fe3f9&&_0x1fe3f9['isCollapsed']){const _0x235381=_0x450ff5['createRange'](_0x1fdd80['start'],_0x1fe3f9['start']);_0x235381['isEqual'](_0x1fdd80)||(_0x450ff5['updateMarker'](_0x1fddc2,{'range':_0x235381}),_0x311862=!0x0);}_0x311862||(_0x450ff5['removeMarker'](_0x1fddc2),_0x311862=!0x0);}return _0x311862;});}}class Ot extends _0x236dec{['afterInit'](){const _0xfd3629=this['editor'],_0x1d63ac=_0xfd3629['plugins']['get']('TrackChangesEditing');_0xfd3629['plugins']['has']('Uploadcare')&&(_0x1d63ac['enableCommand']('uploadcare'),_0xfd3629['plugins']['has']('UploadcareImageEdit')&&(_0x1d63ac['enableCommand']('uploadcareImageEdit'),_0x1d63ac['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x1d63ac['registerBlockAttribute']('uploadcareImageId'),_0x1d63ac['descriptionFactory']['registerDescriptionCallback'](_0x5a4b1f=>{if('attribute'!=_0x5a4b1f['type'])return;const {data:_0x58c8ed}=_0x5a4b1f;return _0x58c8ed&&'uploadcareImageId'==_0x58c8ed['key']?{'type':'format','content':''}:void 0x0;})));}}class Rt extends _0x236dec{['afterInit'](){const _0x392144=this['editor'],_0x5c3573=_0x392144['plugins']['get']('TrackChangesEditing');_0x392144['plugins']['has']('UndoEditing')&&(_0x5c3573['enableCommand']('undo'),_0x5c3573['enableCommand']('redo'));}}class Tt extends _0x236dec{static get['requires'](){return[vt];}['afterInit'](){const _0x56baf0=this['editor'];if(!_0x56baf0['plugins']['has']('TableCaptionEditing'))return;_0x56baf0['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class xt extends _0x236dec{['tableProperties'];['tableCellProperties'];constructor(_0x2333e7){super(_0x2333e7),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 _0x3a5f89=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x1363e3 of this['tableProperties'])_0x3a5f89['enableCommand'](_0x1363e3,(_0x3c9b82,_0x2c4bd1)=>{const _0x5c9d30=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x1363e3,[_0x5c9d30],this['tableProperties'],'tableProperties',_0x3c9b82,_0x2c4bd1);});_0x3a5f89['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x3a5f89['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3a5f89['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x5e0f69,_0x485d13)=>this['handleDiscardAction'](this['tableProperties'],_0x5e0f69,_0x485d13)),_0x3a5f89['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x2afb15 of this['tableCellProperties'])_0x3a5f89['enableCommand'](_0x2afb15,(_0x3811b0,_0x1213be)=>{const _0x1e5c73=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x2afb15,_0x1e5c73,this['tableCellProperties'],'tableCellProperties',_0x3811b0,_0x1213be);});_0x3a5f89['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x3a5f89['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3a5f89['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x1b98f2,_0x8aaf09)=>this['handleDiscardAction'](this['tableCellProperties'],_0x1b98f2,_0x8aaf09)),_0x3a5f89['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x3a5f89['descriptionFactory']['registerDescriptionCallback'](_0x4c3f44=>this['handleSuggestionDescription'](_0x4c3f44));}['_handlePropertyChange'](_0x4164e9,_0x6ebdac,_0x45f059,_0xd63a88,_0x2e2b2e,_0x10feb5){const _0x13bc97=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x10feb5['batch'],()=>{for(const _0x4fee84 of _0x6ebdac){if(this['_getSuggestion'](_0x4fee84,_0xd63a88))_0x2e2b2e(_0x10feb5);else{const _0xa0f89e={};for(const _0x471907 of _0x45f059){const _0x1f38a1=_0x4fee84['getAttribute'](_0x471907);void 0x0!==_0x1f38a1&&(_0xa0f89e[_0x471907]=_0x1f38a1);}_0x2e2b2e(_0x10feb5),_0x13bc97['markBlockFormat'](_0x4fee84,{'commandParams':[_0xa0f89e]},[],_0xd63a88);}}});}['handleDiscardAction'](_0x4abb34,_0x593613,_0x13d60d){const _0x3980d9=_0x593613[0x0]['start']['nodeAfter'],_0x43ea2a=_0x13d60d['commandParams'][0x0];this['editor']['model']['change'](_0x2d7255=>{for(const _0x284c96 of _0x4abb34)void 0x0!==_0x43ea2a[_0x284c96]?_0x2d7255['setAttribute'](_0x284c96,_0x43ea2a[_0x284c96],_0x3980d9):_0x2d7255['removeAttribute'](_0x284c96,_0x3980d9);});}['handleSuggestionDescription'](_0x20dc26){if(_0x20dc26['data'])switch(_0x20dc26['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'](_0x19d1b6,_0x148b1e){const _0x54d223=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0xc91f22 of _0x54d223['getSuggestions']({'skipNotAttached':!0x0})){const _0x966f96=_0xc91f22['getContainedElement']();if(_0xc91f22['subType']===_0x148b1e&&_0x966f96===_0x19d1b6)return _0xc91f22;}return null;}}const m='$elementName';class p extends _0x236dec{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x4d36d3,_0x2106e0,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(_0x6cda61){super(_0x6cda61),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x49a0ba,_0x3b8c9d,_0x48efe2,_0x2fbf86)=>{this['_model']['change'](()=>{for(const _0x3aa01c of[..._0x2fbf86,..._0x48efe2])this['_model']['markers']['has'](_0x3aa01c)&&_0x6cda61['editing']['reconvertMarker'](_0x3aa01c);});}),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']=_0x6cda61['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(),_0x6cda61['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x6cda61['config']['get']('trackChanges.trackFormatChanges'),_0x6cda61['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x6cda61['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x6cda61,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x749897=this['editor'],_0x5ab545=(_0x4a8d2e,_0x47a57f)=>{if('attribute'!=_0x4a8d2e)return'ck-suggestion-marker-'+_0x4a8d2e;const _0x50c5cc=_0x47a57f['split']('|')[0x0];return this['_isBlockAttribute'](_0x50c5cc)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x749897['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0xe047=>{const {id:_0x497c36,authorId:_0x4a6d94,type:_0x560c4b,subType:_0x57500f}=this['_splitMarkerName'](_0xe047['markerName']),_0x3f5b00=['ck-suggestion-marker',_0x5ab545(_0x560c4b,_0x57500f)];let _0x3c7baf=0xbb8;return this['activeMarkers']['includes'](_0xe047['markerName'])&&(_0x3f5b00['push']('ck-suggestion-marker--active'),_0x3c7baf=0xbc2),'deletion'==_0x560c4b&&(_0x3c7baf+=0x5),{'classes':_0x3f5b00,'attributes':{'data-suggestion':_0x497c36,'data-author-id':_0x4a6d94},'priority':_0x3c7baf};}}),_0x749897['conversion']['for']('dataDowncast')['add'](_0x83d0c4=>{_0x83d0c4['on']('addMarker:suggestion',(_0x28863f,_0xd7d388,_0x298f46)=>{if(!_0x298f46['options']['showSuggestionHighlights'])return;const _0x18b3e0=_0xd7d388['item'];if(!_0x18b3e0)return;const _0x202081=_0x298f46['mapper']['toViewElement'](_0x18b3e0);_0x749897['model']['schema']['isObject'](_0x18b3e0)&&_0x202081&&!_0x202081['getCustomProperty']('widget')&&_0x202081['is']('containerElement')&&_0x3c3dbf(_0x202081,_0x298f46['writer']);},{'priority':'high'});}),_0x749897['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x5700bd,_0x40580e)=>{if(!_0x40580e['options']['showSuggestionHighlights'])return null;const {type:_0xa2960f,subType:_0x23bbac}=this['_splitMarkerName'](_0x5700bd['markerName']);return{'classes':['ck-suggestion-marker',_0x5ab545(_0xa2960f,_0x23bbac)],'priority':0xbb8};}});const _0x44b2c2=({showActiveMarkers:_0x2d4439=!0x0,isAttributeSuggestion:_0x50d326=!0x1}={})=>(_0x515fcb,_0x5c6968,_0x2a7eeb)=>{if(!_0x5c6968['item'])return;const {id:_0x341f63,authorId:_0x5cd3e4}=this['_splitMarkerName'](_0x5c6968['markerName']);if(_0x50d326){const _0x2f0458=this['_suggestions']['get'](_0x341f63),_0x2a9083=this['_getAttributeKey'](_0x2f0458);if(!this['_isBlockAttribute'](_0x2a9083))return;}if(_0x5c6968['item']['is']('selection'))return void _0x2a7eeb['consumable']['consume'](_0x5c6968['item'],_0x515fcb['name']);const _0x2eff0b=_0x2a7eeb['mapper']['toViewElement'](_0x5c6968['item']);if(_0x5c6968['item']['is']('element')&&_0x749897['model']['schema']['isBlock'](_0x5c6968['item'])&&!_0x2eff0b['getCustomProperty']('addHighlight')){_0x2a7eeb['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x2eff0b),_0x2a7eeb['writer']['setAttribute']('data-suggestion',_0x341f63,_0x2eff0b),_0x2a7eeb['writer']['setAttribute']('data-author-id',_0x5cd3e4,_0x2eff0b),_0x2a7eeb['mapper']['bindElementToMarker'](_0x2eff0b,_0x5c6968['markerName']),_0x2d4439&&(this['activeMarkers']['includes'](_0x5c6968['markerName'])?_0x2a7eeb['writer']['addClass']('ck-suggestion-marker--active',_0x2eff0b):_0x2a7eeb['writer']['removeClass']('ck-suggestion-marker--active',_0x2eff0b));for(const _0x1589a4 of _0x749897['model']['createRangeIn'](_0x5c6968['item'])['getItems']())_0x2a7eeb['consumable']['consume'](_0x1589a4,_0x515fcb['name']);_0x2a7eeb['consumable']['consume'](_0x5c6968['item'],_0x515fcb['name']);}};_0x749897['conversion']['for']('dataDowncast')['add'](_0x404d7e=>{_0x404d7e['on']('addMarker:suggestion:formatBlock',(_0x21f4ab,_0x162cb9,_0x6099d0)=>{_0x6099d0['options']['showSuggestionHighlights']&&_0x44b2c2({'showActiveMarkers':!0x1})(_0x21f4ab,_0x162cb9,_0x6099d0);},{'priority':'highest'});}),_0x749897['conversion']['for']('dataDowncast')['add'](_0x44bae7=>{_0x44bae7['on']('addMarker:suggestion:attribute',(_0x2efe08,_0x2885e8,_0xcb30ef)=>{_0xcb30ef['options']['showSuggestionHighlights']&&_0x44b2c2({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x2efe08,_0x2885e8,_0xcb30ef);},{'priority':'highest'});}),_0x749897['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x5bb829,_0x39ede7)=>_0x39ede7['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x5bb829['substr'](0xb)}}),_0x749897['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x13bc5e,{writer:_0x2bbd3d})=>{let _0x16dfc6='suggestion:'+_0x13bc5e['getAttribute']('suggestion-type')+':'+_0x13bc5e['getAttribute']('id');return _0x13bc5e['getAttribute']('marker-count')&&(_0x16dfc6+=':'+_0x13bc5e['getAttribute']('marker-count')),_0x2bbd3d['createElement']('$marker',{'data-name':_0x16dfc6});}}),_0x749897['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x749897['conversion']['for']('editingDowncast')['add'](_0xa4522d=>{_0xa4522d['on']('addMarker:suggestion:formatBlock',_0x44b2c2(),{'priority':'high'});}),_0x749897['conversion']['for']('editingDowncast')['add'](_0x251c6b=>{_0x251c6b['on']('addMarker:suggestion:attribute',_0x44b2c2({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x749897['conversion']['for']('editingDowncast')['add'](_0x35329b=>{_0x35329b['on']('removeMarker:suggestion:formatBlock',(_0x3282e8,_0x2a959c,_0x1aaed3)=>{const _0x146f3c=_0x1aaed3['mapper']['markerNameToElements'](_0x2a959c['markerName']);if(_0x146f3c){for(const _0x120391 of _0x146f3c)_0x120391['getCustomProperty']('addHighlight')||(_0x1aaed3['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x120391),_0x1aaed3['writer']['removeAttribute']('data-suggestion',_0x120391),_0x1aaed3['writer']['removeAttribute']('data-author-id',_0x120391),_0x1aaed3['mapper']['unbindElementFromMarkerName'](_0x120391,_0x2a959c['markerName']));}},{'priority':'high'});}),_0x749897['conversion']['for']('editingDowncast')['add'](_0x3cff74=>{_0x3cff74['on']('removeMarker:suggestion:attribute',(_0x72f052,_0x42bad5,_0x5a7836)=>{const _0x5d8690=_0x5a7836['mapper']['markerNameToElements'](_0x42bad5['markerName']);if(!_0x5d8690)return;const {id:_0x4d0c47}=this['_splitMarkerName'](_0x42bad5['markerName']),_0x85cde8=this['_suggestions']['get'](_0x4d0c47),_0x1b4f76=this['_getAttributeKey'](_0x85cde8);if(this['_isBlockAttribute'](_0x1b4f76)){for(const _0x1ecf7d of _0x5d8690)_0x1ecf7d['getCustomProperty']('addHighlight')||(_0x5a7836['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1ecf7d),_0x5a7836['writer']['removeAttribute']('data-suggestion',_0x1ecf7d),_0x5a7836['writer']['removeAttribute']('data-author-id',_0x1ecf7d),_0x5a7836['mapper']['unbindElementFromMarkerName'](_0x1ecf7d,_0x42bad5['markerName']));}},{'priority':'high'});}),_0x749897['model']['document']['registerPostFixer'](_0x51b467=>{let _0x3bb0a4=!0x1;const _0x515f0d=Array['from'](_0x749897['model']['document']['differ']['getChangedMarkers']()),_0x538f57=new Set();for(const {name:_0x1c0330,data:_0x24ec62}of _0x515f0d){const {group:_0x22ac40,type:_0x528a26,subType:_0x1d08ff,id:_0x27aad2}=this['_splitMarkerName'](_0x1c0330);if('suggestion'!==_0x22ac40)continue;const _0x308139=this['_suggestions']['get'](_0x27aad2);if(null!=_0x24ec62['newRange']){'formatInline'==_0x528a26&&(_0x3bb0a4=_0x3bb0a4||Gt(_0x24ec62['newRange'],_0x1c0330,_0x51b467,_0x749897['model']['schema']));const _0x146a0f='attribute'==_0x528a26&&this['_isBlockAttribute'](_0x1d08ff['split']('|')[0x0]);if(_0x24ec62['newRange']['isCollapsed']||'$graveyard'==_0x24ec62['newRange']['root']['rootName']||'formatBlock'==_0x528a26&&!Lt(_0x24ec62['newRange'])||_0x146a0f&&!Lt(_0x24ec62['newRange'])||'deletion'==_0x528a26&&!(!Pt(_0x35006f=_0x24ec62['newRange'])&&!function(_0x599588){return _0x599588['start']['parent']==_0x599588['end']['nodeBefore']&&_0x599588['start']['isAtEnd'];}(_0x35006f)))_0x51b467['removeMarker'](_0x1c0330),_0x3bb0a4=!0x0;else{if(!_0x308139||!_0x308139['isInContent'])continue;if(_0x24ec62['newRange']&&_0x24ec62['oldRange']&&_0x24ec62['newRange']['isEqual'](_0x24ec62['oldRange']))continue;_0x538f57['add'](_0x308139);}}}var _0x35006f;return _0x538f57['size']>0x0&&(_0x3bb0a4=!!this['_joinWithAdjacentSuggestions'](_0x538f57)||_0x3bb0a4),_0x3bb0a4;}),_0x749897['model']['document']['registerPostFixer'](_0x26ef7d=>{let _0x1d7022=!0x1;for(const _0x4eacf8 of _0x749897['model']['document']['differ']['getChanges']())if('insert'==_0x4eacf8['type'])for(const _0xfabd52 of this['_suggestions']['values']()){if(_0xfabd52['isMultiRange']||!_0xfabd52['isInContent'])continue;const _0x165f86='formatBlock'==_0xfabd52['type'],_0x395058=this['_getAttributeKey'](_0xfabd52),_0x550e10=_0x395058&&this['_isBlockAttribute'](_0x395058);if(!_0x165f86&&!_0x550e10)continue;const _0x52a4fd=_0xfabd52['getFirstRange']();if(_0x52a4fd['start']['parent']!=_0x52a4fd['end']['parent']&&!_0x52a4fd['end']['isAtEnd']){const _0x199874=_0x749897['model']['createPositionAt'](_0x52a4fd['start']['nodeAfter'],'end'),_0x2a71e2=_0x749897['model']['createRange'](_0x52a4fd['start'],_0x199874);_0x26ef7d['updateMarker'](_0xfabd52['getFirstMarker'](),{'range':_0x2a71e2}),_0x1d7022=!0x0;}}return _0x1d7022;}),_0x749897['model']['document']['registerPostFixer'](_0x47a3ec=>this['_processAttributeChanges'](_0x47a3ec)),_0x749897['model']['document']['registerPostFixer'](_0x56527e=>!_0x56527e['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x56527e)),_0x749897['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x749897['model']['document']['on']('change:data',(_0x1eb842,_0x570212)=>{if(!_0x570212['isLocal']||_0x570212['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x1e28ba=_0x749897['model']['document']['differ']['getChanges']();if(0x0==_0x1e28ba['length'])return;const _0x5089df=[],_0x1687b5=_0x1e28ba['filter'](_0x48df78=>'attribute'==_0x48df78['type']),_0x513433=_0x1e28ba['filter'](_0x5557fb=>'insert'==_0x5557fb['type']&&'$text'!=_0x5557fb['name']);for(const _0x1fc18f of _0x1687b5)this['_isRegisteredAttribute'](_0x1fc18f['attributeKey'])&&_0x5089df['push']({'key':_0x1fc18f['attributeKey'],'newValue':_0x1fc18f['attributeNewValue'],'oldValue':_0x1fc18f['attributeOldValue'],'range':Jt(_0x1fc18f['range'],_0x749897['model'])});for(const _0x1e019d of _0x513433){if('rename'!=_0x1e019d['action']&&'refresh'!=_0x1e019d['action'])continue;const _0x2d10ac=Ht(_0x1e019d['position']['nodeAfter'],_0x749897['model']),_0x5e8003=_0x1e019d['before'];'rename'==_0x1e019d['action']&&_0x5089df['push']({'key':m,'newValue':_0x1e019d['name'],'oldValue':_0x5e8003['name'],'range':_0x2d10ac});for(const [_0x15c363,_0x3dbc14]of _0x5e8003['attributes']){if(!this['_isRegisteredAttribute'](_0x15c363))continue;const _0x125830=_0x1e019d['attributes']['get'](_0x15c363);_0x3dbc14!==_0x125830&&_0x5089df['push']({'key':_0x15c363,'newValue':_0x125830,'oldValue':_0x3dbc14,'range':_0x2d10ac});}for(const [_0x558cff,_0x5ce094]of _0x1e019d['attributes'])this['_isRegisteredAttribute'](_0x558cff)&&(_0x5e8003['attributes']['has'](_0x558cff)||_0x5089df['push']({'key':_0x558cff,'newValue':_0x5ce094,'oldValue':null,'range':_0x2d10ac}));}0x0!=_0x5089df['length']&&_0x749897['model']['enqueueChange'](_0x570212,_0x1b9058=>{const _0xb00886=_0x598835();for(const {range:_0x1ec613,key:_0x37c5c6,oldValue:_0x15fdcd,newValue:_0x536a91}of _0x5089df)this['markAttributeChange'](_0x1ec613,_0x37c5c6,_0x15fdcd,_0x536a91,{'groupId':_0xb00886});this['_reduceExistingSuggestions'](_0x1b9058,_0x5089df);});},{'priority':'lowest'}),_0x749897['model']['markers']['on']('update:suggestion',(_0x17bc6a,_0x49dc24,_0x289c41)=>{if(null==_0x289c41){const {id:_0x2e4207}=this['_splitMarkerName'](_0x49dc24['name']),_0x353282=this['_suggestions']['get'](_0x2e4207);_0x353282&&_0x353282['addMarkerName'](_0x49dc24['name']);}}),_0x749897['model']['document']['on']('change:data',()=>{const _0x30202f=Array['from'](_0x749897['model']['document']['differ']['getChangedMarkers']())['filter'](_0x1b130e=>'suggestion'===this['_splitMarkerName'](_0x1b130e['name'])['group']);if(0x0===_0x30202f['length'])return;_0x30202f['sort']((_0x2840ae,_0x1b20f0)=>{const _0x1778b2=_0x2840ae['data']['oldRange'],_0x58a187=_0x1b20f0['data']['oldRange'];return null===_0x1778b2&&null===_0x58a187?0x0:null===_0x1778b2&&null!==_0x58a187?-0x1:null!==_0x1778b2&&null===_0x58a187?0x1:_0x1778b2['start']['isBefore'](_0x58a187['start'])?-0x1:0x1;});const _0x3268ce=new Set(),_0x438a81=new Set();for(const {name:_0x243cb6,data:_0x3ff404}of _0x30202f){const {id:_0x18fb6f}=this['_splitMarkerName'](_0x243cb6);if(null===_0x3ff404['oldRange']){const _0x58841a=this['_handleNewSuggestionMarker'](_0x243cb6);_0x438a81['add'](_0x58841a);}else{const _0x7865e0=this['_suggestions']['get'](_0x18fb6f);null!==_0x3ff404['newRange']||_0x7865e0['isInContent']?(_0x3268ce['add'](_0x7865e0['head']),_0x438a81['add'](_0x7865e0)):this['_removeSuggestion'](_0x7865e0);}}_0x438a81['size']>0x0&&this['_refreshSuggestionsChain'](_0x438a81);for(const _0x4f34e9 of _0x3268ce)this['fire']('suggestionChanged',_0x4f34e9);}),_0x749897['model']['on']('applyOperation',(_0x2541f5,_0x5333e7)=>{const _0x2a4553=_0x5333e7[0x0];if(!this['_suggestions']['size'])return;if(!_0x2a4553['isDocumentOperation'])return;if(_0x2a4553['batch']['isUndo']||!_0x2a4553['batch']['isLocal'])return;let _0x2d9bc3,_0x5590a9;switch(_0x2a4553['type']){case'insert':_0x2d9bc3=_0x749897['model']['createPositionAt'](_0x2a4553['position']),_0x5590a9=_0x2d9bc3['getShiftedBy'](_0x2a4553['howMany']);break;case'split':_0x2d9bc3=_0x749897['model']['createPositionAt'](_0x2a4553['splitPosition']),_0x5590a9=_0x749897['model']['createPositionAt'](_0x2a4553['moveTargetPosition']);break;case'move':_0x2d9bc3=_0x749897['model']['createPositionAt'](_0x2a4553['targetPosition']),_0x5590a9=_0x2d9bc3['getShiftedBy'](_0x2a4553['howMany']);break;default:return;}const _0xe9e833=_0x749897['model']['createRange'](_0x2d9bc3,_0x5590a9);_0x749897['model']['change'](()=>{for(const {suggestion:_0x124103,meta:_0x40eefb}of this['_findSuggestions'](_0xe9e833)){if(_0x124103['isMultiRange'])continue;if('formatInline'==_0x124103['type'])continue;const _0x2cbdde=this['_getAttributeKey'](_0x124103);if(_0x2cbdde&&this['_isBlockAttribute'](_0x2cbdde)&&'split'!=_0x2a4553['type'])continue;const _0x25cf35=_0x124103['data']&&_0x124103['data']['multipleBlocks'];('formatBlock'!=_0x124103['type']||'split'==_0x2a4553['type']&&!_0x25cf35)&&(_0x40eefb['containsRangeInObject']||'insertion'==_0x124103['type']&&_0x40eefb['isOwn']||_0x124103['getFirstRange']()['containsRange'](_0xe9e833)&&this['_breakSuggestionMarker'](_0x124103,_0x2d9bc3,_0x5590a9));}});},{'priority':'lowest'}),_0x749897['model']['on']('deleteContent',(_0x464c86,_0x260a4e)=>{const _0x2fa5a1=_0x260a4e[0x0],_0x15c457=_0x260a4e[0x1];if(_0x15c457&&_0x15c457['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x2fa5a1['isCollapsed'])return;const _0x31e5f4=_0x749897['model']['schema'],{start:_0x223d53,end:_0x51381c}=_0x2fa5a1['getFirstRange'](),_0x5b485b=_0x223d53['nodeAfter']&&_0x31e5f4['isLimit'](_0x223d53['nodeAfter'])?null:_0x31e5f4['getNearestSelectionRange'](_0x223d53,'forward'),_0x50ae23=_0x51381c['nodeBefore']&&_0x31e5f4['isLimit'](_0x51381c['nodeBefore'])?null:_0x31e5f4['getNearestSelectionRange'](_0x51381c,'backward'),_0x19d7e2=_0x749897['model']['createRange'](_0x5b485b?_0x5b485b['start']:_0x223d53,_0x50ae23?_0x50ae23['end']:_0x51381c);_0x749897['model']['change'](_0x2219de=>{this['markDeletion'](_0x19d7e2);const _0x359c1e=_0x749897['model']['schema']['getNearestSelectionRange'](_0x19d7e2['start']);_0x2fa5a1['is']('documentSelection')?_0x2219de['setSelection'](_0x359c1e):_0x2fa5a1['setTo'](_0x359c1e);}),_0x464c86['stop']();},{'priority':_0x5255c7['normal']+0xa}),_0x749897['model']['on']('insertContent',(_0x515f83,_0x3ff7c0)=>{const _0x15239c=_0x3ff7c0[_0x3ff7c0['length']-0x1];_0x15239c&&_0x15239c['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x749897['model']['change'](()=>{let _0x2d8881=_0x749897['model']['insertContent'](_0x3ff7c0[0x0],_0x3ff7c0[0x1],_0x3ff7c0[0x2],{'forceDefaultExecution':!0x0});if(!_0x2d8881)return;_0x515f83['return']=_0x2d8881['clone']();const _0x27f986=_0x2d8881['end']['nodeBefore'],_0x2b46fa=_0x749897['model']['schema'];_0x27f986&&_0x2b46fa['isBlock'](_0x27f986)&&!_0x2b46fa['isObject'](_0x27f986)&&(_0x2d8881=_0x749897['model']['createRange'](_0x2d8881['start'],_0x749897['model']['createPositionAt'](_0x27f986,'end'))),this['markInsertion'](_0x2d8881);}),_0x515f83['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x31d1e1=new O(_0x749897,this['_suggestions']);_0x749897['commands']['add']('acceptSuggestion',_0x31d1e1),this['enableCommand']('acceptSuggestion');const _0x53b195=new R(_0x749897,this['_suggestions']);_0x749897['commands']['add']('discardSuggestion',_0x53b195),this['enableCommand']('discardSuggestion'),_0x749897['commands']['add']('acceptAllSuggestions',new x(_0x749897,_0x31d1e1,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x749897['commands']['add']('discardAllSuggestions',new x(_0x749897,_0x53b195,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x749897['commands']['add']('acceptSelectedSuggestions',new E(_0x749897,_0x31d1e1,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x749897['commands']['add']('discardSelectedSuggestions',new E(_0x749897,_0x53b195,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x4e7492=_0x749897['plugins']['get']('CommentsRepository');this['listenTo'](_0x4e7492,'addComment',(_0x58dcb2,{threadId:_0x861e24})=>{const _0x614714=this['_suggestions']['get'](_0x861e24);_0x614714&&_0x614714['commentThread']&&0x1===_0x614714['commentThread']['length']&&this['_updateSuggestionData'](_0x861e24,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x4e7492,'removeComment',(_0x29b373,{threadId:_0x156ef6})=>{const _0x24b935=this['_suggestions']['get'](_0x156ef6);_0x24b935&&_0x24b935['commentThread']&&!_0x24b935['commentThread']['length']&&this['_updateSuggestionData'](_0x156ef6,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x56a0e1){const _0x419d0c=_0x472fc3([0x46,0x64,0x42,0x59,0x6c,0x6b,0x7a,0x56,0x72,0x6f,0x66,0x34,0x4c,0x4a,0x47,0x73,0x6d,0x70,0x61,0x35,0x45,0x52,0x4e,0x74,0x58,0x79,0x53,0x50,0x49,0x67,0x48,0x36,0x57,0x62,0x38,0x76,0x44,0x77,0x33,0x54,0x65,0x6a,0x43,0x4d,0x32,0x51,0x63,0x71,0x41,0x75,0x30,0x69,0x55,0x68,0x37,0x31,0x4f,0x78,0x6e,0x4b,0x39,0x5a]),_0x1fbb7f=0x7d2545d5,_0x46388a=0x7d221b95^_0x1fbb7f,_0x39e2b3=window[_0x472fc3([0x44,0x61,0x74,0x65])][_0x472fc3([0x6e,0x6f,0x77])](),_0x1fd70e=_0x56a0e1[_0x472fc3([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x44e6af=new window[(_0x472fc3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x595fe2=>{_0x1fd70e[_0x472fc3([0x6f,0x6e,0x63,0x65])](_0x472fc3([0x72,0x65,0x61,0x64,0x79]),_0x595fe2);}),_0xd82112={[_0x472fc3([0x6b,0x74,0x79])]:_0x472fc3([0x45,0x43]),[_0x472fc3([0x75,0x73,0x65])]:_0x472fc3([0x73,0x69,0x67]),[_0x472fc3([0x63,0x72,0x76])]:_0x472fc3([0x50,0x2d,0x32,0x35,0x36]),[_0x472fc3([0x78])]:_0x472fc3([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]),[_0x472fc3([0x79])]:_0x472fc3([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]),[_0x472fc3([0x61,0x6c,0x67])]:_0x472fc3([0x45,0x53,0x32,0x35,0x36])},_0x2e0272=_0x1fd70e[_0x472fc3([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x472fc3([0x67,0x65,0x74])](_0x472fc3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x168e59(){let _0x1479d1,_0x5d0f24=null,_0x42def7=null;try{if(_0x2e0272==_0x472fc3([0x47,0x50,0x4c]))return _0x472fc3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1479d1=_0x3f9425(),!_0x1479d1)return _0x472fc3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1479d1[_0x472fc3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x42def7=_0x53c81f(_0x1479d1[_0x472fc3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1479d1[_0x472fc3([0x6a,0x74,0x69])])),await _0x448100()?_0x56ae07()?_0xe5a4c5()?_0x472fc3([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x553171()?(_0x1479d1[_0x472fc3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x472fc3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5d0f24=_0x188043(_0x472fc3([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1479d1[_0x472fc3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x472fc3([0x74,0x72,0x69,0x61,0x6c])&&(_0x5d0f24=_0x188043(_0x472fc3([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x37e128()):_0x472fc3([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x472fc3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x472fc3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x11d7f4){return _0x472fc3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xe5a4c5(){const _0x39133d=[_0x472fc3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x472fc3([0x74,0x72,0x69,0x61,0x6c])][_0x472fc3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1479d1[_0x472fc3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x39e2b3/0x3e8:0xe10*_0x46388a;return _0x1479d1[_0x472fc3([0x65,0x78,0x70])]<_0x39133d;}function _0x56ae07(){const _0x575583=_0x1479d1[_0x472fc3([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x575583)return!0x1;if(_0x575583[_0x472fc3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x472fc3([0x2a])))return!0x0;if(_0x575583[_0x472fc3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x472fc3([0x54,0x43])))return!0x0;if(_0x575583[_0x472fc3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x472fc3([0x52,0x54,0x43]))){if(_0x5bbd48())return!0x0;if(_0xbe2b59()||_0x343d42())return!0x0;}return!0x1;}function _0x553171(){const _0x3b90e5=_0x1479d1[_0x472fc3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3b90e5||0x0==_0x3b90e5[_0x472fc3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5de461}=new URL(window[_0x472fc3([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3b90e5[_0x472fc3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5de461))return!0x0;const _0x463e10=_0x5de461[_0x472fc3([0x73,0x70,0x6c,0x69,0x74])](_0x472fc3([0x2e]));return _0x3b90e5[_0x472fc3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3f0af7=>_0x3f0af7[_0x472fc3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x472fc3([0x2a])))[_0x472fc3([0x6d,0x61,0x70])](_0xd4f9f5=>_0xd4f9f5[_0x472fc3([0x73,0x70,0x6c,0x69,0x74])](_0x472fc3([0x2e])))[_0x472fc3([0x73,0x6f,0x6d,0x65])](_0x4396a1=>_0x463e10[_0x472fc3([0x65,0x76,0x65,0x72,0x79])]((_0x305636,_0x402c94)=>_0x4396a1[_0x402c94]===_0x305636||_0x4396a1[_0x402c94]===_0x472fc3([0x2a])));}function _0x37e128(){return _0x5d0f24&&_0x42def7?new window[(_0x472fc3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x18e10f,_0x2e1bb6)=>{_0x5d0f24[_0x472fc3([0x74,0x68,0x65,0x6e])](_0x18e10f,_0x2e1bb6),_0x42def7[_0x472fc3([0x74,0x68,0x65,0x6e])](_0x17e608=>{_0x17e608!=_0x472fc3([0x56,0x61,0x6c,0x69,0x64])&&_0x18e10f(_0x17e608);},_0x2e1bb6);}):_0x5d0f24||_0x42def7||_0x472fc3([0x56,0x61,0x6c,0x69,0x64]);}}function _0x53c81f(_0x29314d,_0x1874d3){return new window[(_0x472fc3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1821d3=>{if(_0x5efbf1())return _0x1821d3(_0x472fc3([0x56,0x61,0x6c,0x69,0x64]));_0x5d599d(),_0x1fd70e[_0x472fc3([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x472fc3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3ca15d=!0x1;const _0x1b4711=_0x598835();function _0x33b38d(_0x1b4808){return!!_0x1b4808&&(typeof _0x1b4808===_0x472fc3([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1b4808===_0x472fc3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1b4808[_0x472fc3([0x74,0x68,0x65,0x6e])]===_0x472fc3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1b4808[_0x472fc3([0x63,0x61,0x74,0x63,0x68])]===_0x472fc3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1fec98(_0x44d0de){_0x5b3c44(_0x44d0de)[_0x472fc3([0x74,0x68,0x65,0x6e])](_0xf9bdcd=>{if(!_0xf9bdcd||_0xf9bdcd[_0x472fc3([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x472fc3([0x6f,0x6b]))return _0x472fc3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x40f900(_0x55d45b(_0x1b4711+_0x1874d3))!=_0xf9bdcd[_0x472fc3([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x472fc3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x472fc3([0x56,0x61,0x6c,0x69,0x64]);})[_0x472fc3([0x74,0x68,0x65,0x6e])](_0x285be1=>(_0x2673a1(),_0x285be1),()=>{const _0x19f62a=_0x3b62a6();return null==_0x19f62a?(_0x2673a1(),_0x472fc3([0x56,0x61,0x6c,0x69,0x64])):_0x472fc3(_0x39e2b3-_0x19f62a>(0x5929c1d5^_0x1fbb7f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x472fc3([0x74,0x68,0x65,0x6e])](_0x1821d3)[_0x472fc3([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1821d3(_0x472fc3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5df9f5=0x7d13ab55^_0x1fbb7f;function _0x2673a1(){const _0xcfdc1a=_0x472fc3([0x6c,0x6c,0x63,0x74,0x2d])+_0x40f900(_0x55d45b(_0x29314d)),_0x5d5009=_0x20995e(_0x40f900(window[_0x472fc3([0x4d,0x61,0x74,0x68])][_0x472fc3([0x63,0x65,0x69,0x6c])](_0x39e2b3/_0x5df9f5)));window[_0x472fc3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x472fc3([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xcfdc1a,_0x5d5009);}function _0x3b62a6(){const _0xb80769=_0x472fc3([0x6c,0x6c,0x63,0x74,0x2d])+_0x40f900(_0x55d45b(_0x29314d)),_0x305778=window[_0x472fc3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x472fc3([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xb80769);return _0x305778?window[_0x472fc3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x20995e(_0x305778),0x10)*_0x5df9f5:null;}function _0x5b3c44(_0x5f4d60){return new window[(_0x472fc3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x30e636,_0x319f4e)=>{_0x5f4d60[_0x472fc3([0x74,0x68,0x65,0x6e])](_0x30e636,_0x319f4e),window[_0x472fc3([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x319f4e,0x7d249115^_0x1fbb7f);});}}_0x1fd70e[_0x472fc3([0x6f,0x6e])](_0x472fc3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x42f947,_0x44f4ac)=>{if(_0x44f4ac[0x0]!=_0x29314d)return _0x1821d3(_0x472fc3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x44f4ac[0x1]={..._0x44f4ac[0x1],[_0x472fc3([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1b4711};},{[_0x472fc3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x472fc3([0x68,0x69,0x67,0x68])}),_0x1fd70e[_0x472fc3([0x6f,0x6e])](_0x472fc3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4bc08a=>{_0x33b38d(_0x4bc08a[_0x472fc3([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3ca15d=!0x0,_0x1fec98(_0x4bc08a[_0x472fc3([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x472fc3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x472fc3([0x6c,0x6f,0x77])}),_0x44e6af[_0x472fc3([0x74,0x68,0x65,0x6e])](()=>{_0x3ca15d||_0x1821d3(_0x472fc3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5efbf1(){return _0x1fd70e[_0x472fc3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x472fc3([0x76,0x69,0x65,0x77])][_0x472fc3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x472fc3([0x61,0x75,0x74,0x6f]);}function _0x5d599d(){_0x1fd70e[_0x472fc3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x472fc3([0x76,0x69,0x65,0x77])][_0x472fc3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x472fc3([0x61,0x75,0x74,0x6f]);}}function _0x188043(_0x2ac8bd){const _0x43a973=[new window[(_0x472fc3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4d2003=>setTimeout(_0x4d2003,0x7d2c7b19^_0x1fbb7f)),_0x44e6af[_0x472fc3([0x74,0x68,0x65,0x6e])](()=>new window[(_0x472fc3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xaea1f6=>{let _0x1e8f21=0x0;_0x1fd70e[_0x472fc3([0x6d,0x6f,0x64,0x65,0x6c])][_0x472fc3([0x6f,0x6e])](_0x472fc3([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x56f0e2,_0x2a979a)=>{_0x2a979a[0x0][_0x472fc3([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1e8f21++,_0x1e8f21==(0x7d25442d^_0x1fbb7f)&&(_0xaea1f6(),_0x56f0e2[_0x472fc3([0x6f,0x66,0x66])]());});}))];return window[_0x472fc3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x472fc3([0x72,0x61,0x63,0x65])](_0x43a973)[_0x472fc3([0x74,0x68,0x65,0x6e])](()=>_0x2ac8bd);}async function _0x38f2e9(){await _0x44e6af,_0x1fd70e[_0x472fc3([0x6d,0x6f,0x64,0x65,0x6c])][_0x472fc3([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2f0c07,_0x1fd70e[_0x472fc3([0x6d,0x6f,0x64,0x65,0x6c])][_0x472fc3([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2f0c07,_0x1fd70e[_0x472fc3([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x472fc3([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5bbd48(){return _0xcfd898(_0x472fc3([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x1271da(_0x472fc3([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x472fc3([0x73,0x74,0x61,0x74,0x65])]==_0x472fc3([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0xbe2b59(){return _0xcfd898(_0x472fc3([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 _0x343d42(){return _0xcfd898(_0x472fc3([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x1296f5(_0x2cd7bd){const _0x1f7bda=_0x240616();_0x1fd70e[_0x1f7bda]=_0x472fc3([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2cd7bd,_0x2cd7bd!=_0x472fc3([0x56,0x61,0x6c,0x69,0x64])&&_0x38f2e9();}function _0x240616(){const _0x1037a7=window[_0x472fc3([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x472fc3([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x472fc3([0x6e,0x6f,0x77])]())[_0x472fc3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x472fc3([0x2e]),'');let _0x8f7bdb=_0x472fc3([0x46]);for(let _0x157285=0x0;_0x157285<_0x1037a7[_0x472fc3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x157285+=0x2){let _0x46c095=window[_0x472fc3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1037a7[_0x472fc3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x157285,_0x157285+0x2));_0x46c095>=_0x419d0c[_0x472fc3([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x46c095-=_0x419d0c[_0x472fc3([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x8f7bdb+=_0x419d0c[_0x46c095];}return _0x8f7bdb;}function _0x3f9425(){const _0x443504=_0x2e0272[_0x472fc3([0x73,0x70,0x6c,0x69,0x74])](_0x472fc3([0x2e]));if(0x3!=_0x443504[_0x472fc3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x25d45(_0x443504[0x1]);function _0x25d45(_0x52af96){const _0x45d0d0=_0x331cb6(_0x52af96);return _0x45d0d0&&_0x354c39()?_0x45d0d0:null;function _0x354c39(){const _0x4095a3=_0x45d0d0[_0x472fc3([0x6a,0x74,0x69])],_0x188414=window[_0x472fc3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4095a3[_0x472fc3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4095a3[_0x472fc3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x118f1a={..._0x45d0d0,[_0x472fc3([0x6a,0x74,0x69])]:_0x4095a3[_0x472fc3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4095a3[_0x472fc3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x118f1a[_0x472fc3([0x76,0x63])],_0x55d45b(_0x118f1a)==_0x188414;}}}async function _0x448100(){let _0x480270=!0x0;try{const _0x15d963=_0x2e0272[_0x472fc3([0x73,0x70,0x6c,0x69,0x74])](_0x472fc3([0x2e])),[_0x16b25d,_0x3b5d86,_0x44339a]=_0x15d963;return _0x52dd2a(_0x16b25d),await _0x578c77(_0x16b25d,_0x3b5d86,_0x44339a),_0x480270;}catch(_0x3ce0ad){return!0x1;}function _0x52dd2a(_0x1bd895){const _0x4e272d=_0x331cb6(_0x1bd895);_0x4e272d&&_0x4e272d[_0x472fc3([0x61,0x6c,0x67])]==_0x472fc3([0x45,0x53,0x32,0x35,0x36])||(_0x480270=!0x1);}async function _0x578c77(_0x342ef1,_0x39113b,_0x49dbd6){const _0x51dc13=window[_0x472fc3([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x472fc3([0x66,0x72,0x6f,0x6d])](_0x1c0b22(_0x49dbd6),_0xc3fa79=>_0xc3fa79[_0x472fc3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x312d2c=new window[(_0x472fc3([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x472fc3([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x342ef1+_0x472fc3([0x2e])+_0x39113b),_0x11321c=window[_0x472fc3([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x472fc3([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x11321c)return;const _0x74f5fc=await _0x11321c[_0x472fc3([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x472fc3([0x6a,0x77,0x6b]),_0xd82112,{[_0x472fc3([0x6e,0x61,0x6d,0x65])]:_0x472fc3([0x45,0x43,0x44,0x53,0x41]),[_0x472fc3([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x472fc3([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x472fc3([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x11321c[_0x472fc3([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x472fc3([0x6e,0x61,0x6d,0x65])]:_0x472fc3([0x45,0x43,0x44,0x53,0x41]),[_0x472fc3([0x68,0x61,0x73,0x68])]:{[_0x472fc3([0x6e,0x61,0x6d,0x65])]:_0x472fc3([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x74f5fc,_0x51dc13,_0x312d2c)||(_0x480270=!0x1);}}function _0x331cb6(_0x509866){return _0x509866[_0x472fc3([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x472fc3([0x65,0x79]))?JSON[_0x472fc3([0x70,0x61,0x72,0x73,0x65])](_0x1c0b22(_0x509866)):null;}function _0x1c0b22(_0x5a0446){return window[_0x472fc3([0x61,0x74,0x6f,0x62])](_0x5a0446[_0x472fc3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x472fc3([0x2b]))[_0x472fc3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x472fc3([0x2f])));}function _0x55d45b(_0xaf2e4c){let _0xe3f6a8=0x1505;function _0x3f37af(_0x2d98a0){for(let _0x4b86cc=0x0;_0x4b86cc<_0x2d98a0[_0x472fc3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4b86cc++){const _0x4bd598=_0x2d98a0[_0x472fc3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4b86cc);_0xe3f6a8=(_0xe3f6a8<<0x5)+_0xe3f6a8+_0x4bd598,_0xe3f6a8&=_0xe3f6a8;}}function _0x85315c(_0x4dbd7b){Array[_0x472fc3([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4dbd7b)?_0x4dbd7b[_0x472fc3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x85315c):_0x4dbd7b&&typeof _0x4dbd7b==_0x472fc3([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x472fc3([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4dbd7b)[_0x472fc3([0x73,0x6f,0x72,0x74])]()[_0x472fc3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x169bf9,_0x35b19f])=>{_0x3f37af(_0x169bf9),_0x85315c(_0x35b19f);}):_0x3f37af(window[_0x472fc3([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4dbd7b));}return _0x85315c(_0xaf2e4c),_0xe3f6a8>>>0x0;}function _0x40f900(_0xa86e31){return _0xa86e31[_0x472fc3([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x472fc3([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x472fc3([0x30]));}function _0x20995e(_0x3bb579){return _0x3bb579[_0x472fc3([0x73,0x70,0x6c,0x69,0x74])]('')[_0x472fc3([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x472fc3([0x6a,0x6f,0x69,0x6e])]('');}function _0xcfd898(_0x560017){return _0x1fd70e[_0x472fc3([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x472fc3([0x68,0x61,0x73])](_0x560017);}function _0x1271da(_0x46cdf3){return _0x1fd70e[_0x472fc3([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x472fc3([0x67,0x65,0x74])](_0x46cdf3);}function _0x2f0c07(){}function _0x472fc3(_0x12af42){return _0x12af42['map'](_0x528b7f=>String['fromCharCode'](_0x528b7f))['join']('');}_0x1296f5(await _0x168e59());}(this);}set['adapter'](_0x57ad47){if(this['_adapter'])throw new _0x1c08fa('track-changes-adapter-already-set',this);this['_adapter']=_0x57ad47;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x2f1c35=!0x1,toJSON:_0x6a1244=!0x1}={}){const _0x36261f=[];for(const _0x3bc18c of this['_suggestions']['values']())_0x2f1c35&&!_0x3bc18c['isInContent']||_0x36261f['push'](_0x3bc18c);return _0x6a1244?_0x36261f['map'](_0x4d3131=>_0x4d3131['toJSON']()):_0x36261f;}['getSuggestion'](_0x16ce6b){const _0x3e765f=this['_suggestions']['get'](_0x16ce6b);if(!_0x3e765f)throw new _0x1c08fa('track-changes-suggestion-not-found',this);return _0x3e765f;}['hasSuggestion'](_0x40fc37){return this['_suggestions']['has'](_0x40fc37);}['addSuggestionData'](_0x2e9ec3){const {authorId:_0x29f5f1,id:_0x56edea,attributes:_0x14b3db}=_0x2e9ec3,[_0x20a369,_0x4131a5]=_0x2e9ec3['type']['split'](':'),_0x3f6d10=this['_suggestions']['get'](_0x56edea)||this['_createSuggestion'](_0x20a369,_0x4131a5,_0x56edea,_0x29f5f1,_0x14b3db);if(this['_addThreadToSuggestion'](_0x3f6d10),this['_checkSuggestionCorrectness'](_0x3f6d10,_0x20a369,_0x4131a5||null,_0x29f5f1),_0x3f6d10['createdAt']=_0x2e9ec3['createdAt'],_0x3f6d10['_isDataLoaded']=!0x0,_0x14b3db&&_0x14b3db['@external']){const _0x127b7c=_0x14b3db['@external'],_0x4416ab=this['_getExternalAuthor'](_0x127b7c['authorName']);_0x3f6d10['authoredAt']=_0x127b7c['createdAt'],_0x3f6d10['author']=_0x4416ab,_0x3f6d10['isExternal']=!0x0;}else _0x3f6d10['authoredAt']=_0x2e9ec3['createdAt'];switch(_0x2e9ec3['data']&&(_0x3f6d10['data']=_0x2e9ec3['data']),_0x2e9ec3['attributes']&&(_0x3f6d10['attributes']=_0x2e9ec3['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x3f6d10['_saved']=!0x0),this['_suggestionState']['get'](_0x3f6d10)){case'notReady':this['_suggestionState']['set'](_0x3f6d10,'dataReady');break;case'markerReady':_0x3f6d10['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x3f6d10])),this['_refreshSuggestionsChain'](new Set([_0x3f6d10])),this['_suggestionState']['set'](_0x3f6d10,'ready'),this['fire']('suggestionLoaded',_0x3f6d10)):this['_suggestionState']['set'](_0x3f6d10,'removed');}return _0x3f6d10;}['acceptSuggestion'](_0x57af73){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3fa4f5 of _0x57af73['getAllAdjacentSuggestions']())_0x3fa4f5['accept']();});});}['discardSuggestion'](_0xeebd20){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3dfe77 of _0xeebd20['getAllAdjacentSuggestions']())_0x3dfe77['discard']();});});}['enableCommand'](_0x364527,_0x3a8452){const _0x3b9b7d=this['editor']['commands']['get'](_0x364527);if(!_0x3b9b7d)throw new _0x1c08fa('track-changes-command-not-found',this,{'commandName':_0x364527});if(this['_enabledCommands']['has'](_0x3b9b7d))throw new _0x1c08fa('track-changes-enable-command-twice',this,{'commandName':_0x364527});this['_enabledCommands']['add'](_0x3b9b7d),_0x3a8452&&_0x3b9b7d['on']('execute',(_0x311a94,_0x55ec64)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x55ec64['length']>0x0&&_0x55ec64[_0x55ec64['length']-0x1]&&_0x55ec64[_0x55ec64['length']-0x1]['forceDefaultExecution']?_0x55ec64['pop']():(_0x311a94['return']=_0x3a8452((..._0x4b3fc5)=>_0x3b9b7d['execute'](..._0x4b3fc5,{'forceDefaultExecution':!0x0}),..._0x55ec64),_0x311a94['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x2ea24f){let _0x5dfc2b,_0x2af9bf;const _0x23a630=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x5dfc2b=_0x2ea24f();}catch(_0x5e33b0){_0x2af9bf=_0x5e33b0;}return _0x23a630||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x2af9bf&&_0x1c08fa['rethrowUnexpectedError'](_0x2af9bf,this),_0x5dfc2b;}['markInsertion'](_0x213731,_0x431efe=null,_0x45262c={}){if(_0x213731['isCollapsed'])return null;const _0x450a6b=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x320f01,meta:_0x13852a}of this['_findSuggestions'](_0x213731,'insertion'))if(_0x13852a['isOwn']){if(!_0x13852a['isNextTo']){if(_0x13852a['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Kt(_0x320f01,_0x45262c))continue;return _0x320f01;}if(Kt(_0x320f01,_0x45262c))return _0x320f01;this['_breakSuggestionMarker'](_0x320f01,_0x213731['start'],_0x213731['end']);break;}if(_0x431efe==_0x320f01['subType']&&Kt(_0x320f01,_0x45262c)){const _0x4c33f0=_0x320f01['getFirstRange']();return _0x4c33f0['start']['isEqual'](_0x213731['end'])?this['_setSuggestionRange'](_0x320f01,this['_model']['createRange'](_0x213731['start'],_0x4c33f0['end'])):this['_setSuggestionRange'](_0x320f01,this['_model']['createRange'](_0x4c33f0['start'],_0x213731['end'])),_0x320f01;}}const _0x5e099b=_0x598835(),_0x552dca=_0x450a6b['id'],_0x3f575d=_0x431efe?'insertion:'+_0x431efe:'insertion',_0x585f3c=this['_setSuggestionData']({'id':_0x5e099b,'type':_0x3f575d,'createdAt':new Date(),'authorId':_0x552dca,'attributes':_0x45262c});return this['_addSuggestionMarker'](_0x3f575d,_0x5e099b,_0x552dca,_0x213731),_0x585f3c;}['markMultiRangeInsertion'](_0x1bc374,_0xe5efc='multi',_0x30d0a7={}){const _0x53d132=this['editor']['plugins']['get']('Users')['me'],_0x584f50=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0xe5efc,'join');for(const _0x18f9fa of this['getSuggestions']())if(_0x18f9fa['author']['id']==_0x53d132['id']&&'insertion'==_0x18f9fa['type']&&_0x18f9fa['subType']==_0xe5efc&&Kt(_0x18f9fa,_0x30d0a7)&&(_0x584f50(_0x18f9fa['getRanges'](),_0x1bc374)||_0x584f50(_0x1bc374,_0x18f9fa['getRanges']()))){for(const _0x2b1246 of _0x1bc374)_0x18f9fa['addRange'](_0x2b1246);return _0x18f9fa;}for(const {suggestion:_0x221a62,meta:_0x129f06}of this['_findSuggestions'](_0x1bc374,'insertion')){if(!_0x129f06['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x129f06['containsRangeInObject'])continue;if(!Kt(_0x221a62,_0x30d0a7))continue;let _0x2c3d62=!0x0;for(const _0x43b18a of _0x221a62['getRanges']())for(const _0x30ca8e of _0x1bc374)if(!_0x43b18a['containsRange'](_0x30ca8e)){_0x2c3d62=!0x1;break;}if(_0x2c3d62)return _0x221a62;}const _0x13f3c7=_0x598835(),_0x54b783=_0x53d132['id'],_0x166f5c='insertion:'+_0xe5efc,_0x6b513e=this['_setSuggestionData']({'id':_0x13f3c7,'type':_0x166f5c,'createdAt':new Date(),'authorId':_0x54b783,'attributes':_0x30d0a7});for(const _0x32b06f of _0x1bc374)this['_addSuggestionMarker'](_0x166f5c,_0x13f3c7,_0x54b783,_0x32b06f,u['getMultiRangeId']());return _0x6b513e;}['markInlineFormat'](_0x2e49ea,_0x53004f,_0x2c837c=null,_0x160986={}){if(_0x2c837c=_0x2c837c||Ft(_0x53004f),_0x2e49ea['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0xd7212=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2c837c,'accept');return this['forceDefaultExecution'](()=>_0xd7212([_0x2e49ea],_0x53004f,_0x160986)),null;}const _0x42d9ca=this['editor']['plugins']['get']('Users')['me'],_0x1f5aaa=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x17427e,meta:_0xed3bf6}of this['_findSuggestions'](_0x2e49ea,'insertion'))_0xed3bf6['isOwn']&&!_0xed3bf6['isInsideObject']&&_0x1f5aaa['push'](..._0x17427e['getRanges']());}const _0x2cc5b6=function(_0x5dd641,_0x1e72e6){const _0x47ad4c=[];for(const _0x119dec of _0x1e72e6){const _0xaf1bba=_0x5dd641['getIntersection'](_0x119dec);_0xaf1bba&&_0x47ad4c['push'](_0xaf1bba);}return _0x47ad4c;}(_0x2e49ea,_0x1f5aaa),_0x395331=function(_0x513ba6,_0x4f85f8){const _0x18d334=[_0x513ba6];for(const _0x416eb5 of _0x4f85f8){let _0x503a17=0x0;for(;_0x503a17<_0x18d334['length'];){const _0x2addf6=_0x18d334[_0x503a17]['getDifference'](_0x416eb5);_0x18d334['splice'](_0x503a17,0x1,..._0x2addf6),_0x503a17+=_0x2addf6['length'];}}return _0x18d334;}(_0x2e49ea,_0x1f5aaa);_0x2cc5b6['length']&&this['_model']['change'](()=>{for(const _0x550d5e of _0x2cc5b6){const _0x31fcba=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2c837c,'accept');this['forceDefaultExecution'](()=>_0x31fcba([_0x550d5e],_0x53004f,_0x160986));}});for(const _0x1d8ecd of _0x395331){let _0xb8c7c7=null,_0x203f18=_0x1d8ecd['start'],_0x1f4975=_0x1d8ecd['end'];for(const {suggestion:_0x177e6e,meta:_0xaf45aa}of this['_findSuggestions'](_0x1d8ecd,'formatInline')){if(!_0xaf45aa['isOwn'])continue;if(_0x177e6e['subType']!=_0x2c837c)continue;if(!Kt(_0x177e6e,_0x160986))continue;const _0x4fcd8c=_0x177e6e['getFirstRange']();if(_0x4fcd8c['containsRange'](_0x1d8ecd,!0x0))return null;_0x203f18=_0x203f18['isBefore'](_0x4fcd8c['start'])?_0x203f18:_0x4fcd8c['start'],_0x1f4975=_0x1f4975['isAfter'](_0x4fcd8c['end'])?_0x1f4975:_0x4fcd8c['end'],_0xb8c7c7?_0x4fcd8c['start']['isBefore'](_0xb8c7c7['getFirstRange']()['start'])?(_0xb8c7c7['removeMarkers'](),_0xb8c7c7=_0x177e6e):_0x177e6e['removeMarkers']():_0xb8c7c7=_0x177e6e;}const _0x480b1f=this['_model']['createRange'](_0x203f18,_0x1f4975);if(_0xb8c7c7)this['_setSuggestionRange'](_0xb8c7c7,_0x480b1f);else{const _0x69dd0e=_0x598835(),_0x34647f=_0x42d9ca['id'];this['_setSuggestionData']({'id':_0x69dd0e,'type':'formatInline:'+_0x2c837c,'data':_0x53004f,'createdAt':new Date(),'authorId':_0x34647f,'attributes':_0x160986}),this['_addSuggestionMarker']('formatInline:'+_0x2c837c,_0x69dd0e,_0x34647f,_0x480b1f);}}return null;}['markBlockFormat'](_0x4459f9,_0x2e51d5,_0x5e5f49=[],_0x113d3f=null,_0x571b70={}){_0x2e51d5['formatGroupId']||(_0x2e51d5['formatGroupId']=_0x2e51d5['commandName']),_0x2e51d5['multipleBlocks']=_0x4459f9['is']('range'),_0x113d3f=_0x113d3f||Ft(_0x2e51d5);const _0x1b0120=_0x5e5f49['map'](_0x56b9c5=>Ht(_0x56b9c5,this['_model'])),_0x31371b=_0x4459f9['is']('range')?_0x4459f9:Ht(_0x4459f9,this['_model']);if('never'===this['_trackFormatChanges']){const _0x2f27cd=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x113d3f,'accept');return this['forceDefaultExecution'](()=>_0x2f27cd([_0x31371b],_0x2e51d5,_0x571b70)),null;}_0x1b0120['push'](_0x31371b);let _0x531bc3=!0x0;for(const _0xc87e14 of _0x1b0120)if(!this['_rangeIsInLocalUserInsertion'](_0xc87e14)){_0x531bc3=!0x1;break;}if(_0x531bc3&&'always'!==this['_trackFormatChanges']){const _0xf5b4d0=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x113d3f,'accept');return this['forceDefaultExecution'](()=>_0xf5b4d0([_0x31371b],_0x2e51d5,_0x571b70)),null;}let _0x173c91=null,_0x406074=_0x31371b['start'],_0xcf86f1=_0x31371b['end'];for(const {suggestion:_0x3ea18d,meta:_0x1b77c2}of this['_findSuggestions'](_0x31371b,'formatBlock')){if(!_0x1b77c2['isOwn'])continue;if(_0x1b77c2['isNextTo']||_0x1b77c2['containsRangeInObject']||_0x1b77c2['isInsideObject'])continue;if(_0x3ea18d['data']['formatGroupId']!=_0x2e51d5['formatGroupId'])continue;if(!Kt(_0x3ea18d,_0x571b70))continue;const _0x43b725=_0x3ea18d['getFirstRange']();if(_0x3ea18d['subType']==_0x113d3f){if(_0x43b725['containsRange'](_0x31371b,!0x0))return null;_0x406074=_0x406074['isBefore'](_0x43b725['start'])?_0x406074:_0x43b725['start'],_0xcf86f1=_0xcf86f1['isAfter'](_0x43b725['end'])?_0xcf86f1:_0x43b725['end'],_0x173c91?_0x43b725['start']['isBefore'](_0x173c91['getFirstRange']()['start'])?(_0x173c91['removeMarkers'](),_0x173c91=_0x3ea18d):_0x3ea18d['removeMarkers']():_0x173c91=_0x3ea18d;}else{const _0x2cebdd=_0x31371b['getIntersection'](_0x43b725);this['_cutOutSuggestionMarker'](_0x3ea18d,_0x2cebdd);}}const _0x25f7e3=this['editor']['plugins']['get']('Users')['me'],_0x2bd86e=_0x598835(),_0x1475ed=_0x25f7e3['id'];if(_0x173c91)return this['_setSuggestionRange'](_0x173c91,this['_model']['createRange'](_0x406074,_0xcf86f1)),_0x173c91;{const _0x2fbb13=this['_setSuggestionData']({'id':_0x2bd86e,'type':'formatBlock:'+_0x113d3f,'data':_0x2e51d5,'createdAt':new Date(),'authorId':_0x1475ed,'attributes':_0x571b70});return this['_addSuggestionMarker']('formatBlock:'+_0x113d3f,_0x2bd86e,_0x1475ed,this['_model']['createRange'](_0x406074,_0xcf86f1)),_0x2fbb13;}}['markMultiRangeBlockFormat'](_0x1ca3fb,_0x12e11b,_0x4a2f2b=[],_0x6f76cc=null,_0x140d36={}){_0x12e11b['formatGroupId']||(_0x12e11b['formatGroupId']=_0x12e11b['commandName']);const _0x5275fe=_0x1ca3fb[0x0];_0x12e11b['multipleBlocks']=_0x5275fe['is']('range'),_0x6f76cc=_0x6f76cc||Ft(_0x12e11b);const _0x433f27=_0x4a2f2b['map'](_0x441d23=>Ht(_0x441d23,this['_model'])),_0x4b7caa=_0x5275fe['is']('range')?_0x1ca3fb:_0x1ca3fb['map'](_0x20d1d9=>Ht(_0x20d1d9,this['_model']));if('never'===this['_trackFormatChanges']){const _0x40a679=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x6f76cc,'accept');return this['forceDefaultExecution'](()=>_0x40a679(_0x4b7caa,_0x12e11b,_0x140d36)),null;}_0x433f27['push'](..._0x4b7caa);let _0x4ff8af=!0x0;for(const _0x54d2f8 of _0x433f27)if(!this['_rangeIsInLocalUserInsertion'](_0x54d2f8)){_0x4ff8af=!0x1;break;}if(_0x4ff8af&&'always'!==this['_trackFormatChanges']){const _0x190c0e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x6f76cc,'accept');return this['forceDefaultExecution'](()=>_0x190c0e(_0x4b7caa,_0x12e11b,_0x140d36)),null;}const _0x19e3ae=this['editor']['plugins']['get']('Users')['me'];for(const _0x43bbf3 of this['getSuggestions']()){if(_0x43bbf3['author']['id']!=_0x19e3ae['id'])continue;if('formatBlock'!=_0x43bbf3['type']||_0x43bbf3['data']['formatGroupId']!=_0x12e11b['formatGroupId'])continue;if(!Kt(_0x43bbf3,_0x140d36))continue;const _0x4d3d4a=_0x43bbf3['subType']==_0x6f76cc;for(let _0x24a3ed=0x0;_0x24a3ed<_0x4b7caa['length'];_0x24a3ed++){const _0x6a73d2=_0x4b7caa[_0x24a3ed];for(const _0xbcd81b of _0x43bbf3['getMarkers']()){const _0x44d5d3=_0xbcd81b['getRange']();if(_0x6a73d2['isEqual'](_0x44d5d3)){_0x4d3d4a?(_0x4b7caa['splice'](_0x24a3ed,0x1),_0x24a3ed--):_0x43bbf3['removeMarker'](_0xbcd81b['name']);break;}}}}if(0x0==_0x4b7caa['length'])return null;const _0x2f1b4c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x6f76cc,'join');for(const _0x2da684 of this['getSuggestions']())if(_0x2da684['author']['id']==_0x19e3ae['id']&&'formatBlock'==_0x2da684['type']&&_0x2da684['data']['formatGroupId']==_0x12e11b['formatGroupId']&&_0x2da684['subType']==_0x6f76cc&&Kt(_0x2da684,_0x140d36)&&(_0x2f1b4c(_0x2da684['getRanges'](),_0x4b7caa)||_0x2f1b4c(_0x4b7caa,_0x2da684['getRanges']()))){for(const _0x56497c of _0x4b7caa)_0x2da684['addRange'](_0x56497c);return _0x2da684;}const _0xae5ec5=_0x598835(),_0x3aba72=_0x19e3ae['id'],_0x55bd69='formatBlock:'+_0x6f76cc,_0x13496e=this['_setSuggestionData']({'id':_0xae5ec5,'type':_0x55bd69,'data':_0x12e11b,'createdAt':new Date(),'authorId':_0x3aba72,'attributes':_0x140d36});for(const _0x873dfe of _0x4b7caa)this['_addSuggestionMarker'](_0x55bd69,_0xae5ec5,_0x3aba72,_0x873dfe,u['getMultiRangeId']());return _0x13496e;}['markDeletion'](_0x3a1cfb,_0x45e585=null,_0x443394={}){if(_0x3a1cfb['isCollapsed'])return null;const _0x1bd2a5=this['editor']['plugins']['get']('Users')['me'],_0x47329c=new _0x78f3c6(_0x3a1cfb['start'],_0x3a1cfb['end']);for(const {suggestion:_0x30bb82,meta:_0x3cb599}of this['_findSuggestions'](_0x47329c,'insertion'))if(_0x3cb599['isOwn']&&!_0x3cb599['isNextTo']){if(_0x30bb82['isMultiRange']){const _0x214417=_0x30bb82['getRanges']()['filter'](_0x5d29db=>'$graveyard'!=_0x5d29db['root']['rootName']);_0x214417['every'](_0x23458a=>_0x47329c['containsRange'](_0x23458a,!0x0))&&_0x30bb82['discard']();if(_0x214417['some'](_0x130c88=>_0x130c88['containsRange'](_0x47329c,!0x0))){const _0x55925a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x45e585,'accept');return this['forceDefaultExecution'](()=>_0x55925a([_0x47329c],null,_0x443394)),null;}}else{const _0x44576e=_0x47329c['getIntersection'](_0x30bb82['getFirstRange']());null!==_0x44576e&&_0x30bb82['_onDiscard']([_0x44576e],null,_0x443394);}}if(_0x47329c['detach'](),_0x47329c['isCollapsed']||'$graveyard'==_0x47329c['root']['rootName'])return null;let _0x5e6a66=null,_0x4be197=_0x47329c['start'],_0x4d12f9=_0x47329c['end'];const _0x3570cd=this['_findSuggestions'](_0x47329c,'deletion');for(const {suggestion:_0x1d6bab,meta:_0x23ac2e}of _0x3570cd){const _0x158c4b=this['_model']['createRange'](_0x4be197,_0x4d12f9);if(_0x23ac2e['isOwn']&&(this['_mergeNestedSuggestions']||!_0x23ac2e['containsRangeInObject']&&!_0x23ac2e['isInsideObject'])){if(_0x1d6bab['isMultiRange']){if(!Kt(_0x1d6bab,_0x443394))continue;let _0x6bd5a9=!0x0;for(const _0x163bb3 of _0x1d6bab['getRanges']()){if(_0x163bb3['containsRange'](_0x158c4b,!0x0))return _0x1d6bab;_0x158c4b['containsRange'](_0x163bb3)||(_0x6bd5a9=!0x1);}_0x6bd5a9&&_0x1d6bab['discard']();}else{const _0x1d075a=_0x1d6bab['getFirstRange']();if(_0x1d075a['containsRange'](_0x158c4b,!0x0))return _0x1d6bab;if(!Kt(_0x1d6bab,_0x443394)){_0x158c4b['containsRange'](_0x1d075a)?_0x1d6bab['removeMarkers']():_0x1d075a['containsPosition'](_0x4be197)?_0x4be197=_0x1d075a['end']:_0x1d075a['containsPosition'](_0x4d12f9)&&(_0x4d12f9=_0x1d075a['start']);continue;}_0x4be197=_0x4be197['isBefore'](_0x1d075a['start'])?_0x4be197:_0x1d075a['start'],_0x4d12f9=_0x4d12f9['isAfter'](_0x1d075a['end'])?_0x4d12f9:_0x1d075a['end'],_0x443394=Object['assign']({},_0x1d6bab['attributes']),_0x5e6a66?_0x1d075a['start']['isBefore'](_0x5e6a66['getFirstRange']()['start'])?(_0x5e6a66['removeMarkers'](),_0x5e6a66=_0x1d6bab):_0x1d6bab['removeMarkers']():_0x5e6a66=_0x1d6bab;}}}if(_0x5e6a66)return this['_setSuggestionRange'](_0x5e6a66,this['_model']['createRange'](_0x4be197,_0x4d12f9)),_0x5e6a66;{const _0x59d36a=_0x598835(),_0x5c6d52=this['_model']['createRange'](_0x4be197,_0x4d12f9),_0x1d0523=_0x1bd2a5['id'],_0x3bcdff=_0x45e585?'deletion:'+_0x45e585:'deletion',_0x40b60c=this['_setSuggestionData']({'id':_0x59d36a,'type':_0x3bcdff,'createdAt':new Date(),'authorId':_0x1d0523,'attributes':_0x443394});return this['_addSuggestionMarker'](_0x3bcdff,_0x59d36a,_0x1d0523,_0x5c6d52),_0x40b60c;}}['markMultiRangeDeletion'](_0x5aece3,_0x75bdb3='multi',_0x32c05a={}){const _0x199240=this['editor']['plugins']['get']('Users')['me'],_0x149a97=_0x5aece3['map'](_0x882168=>new _0x78f3c6(_0x882168['start'],_0x882168['end'])),_0x1b82b4=new Set();for(const {suggestion:_0x1ad8d6,meta:_0x191ff5}of this['_findSuggestions'](_0x149a97,'insertion'))_0x191ff5['isOwn']&&!_0x191ff5['isNextTo']&&_0x1b82b4['add'](_0x1ad8d6);for(const _0x240139 of _0x1b82b4)if(_0x240139['isMultiRange']){const _0x3a700=_0x240139['getRanges']();(!_0x240139['attributes']||!_0x240139['attributes']['skipNestingCheck'])&&(_0x3a700['every'](_0x3844cd=>_0x149a97['some'](_0x42a630=>_0x42a630['containsRange'](_0x3844cd,!0x0)))&&_0x240139['discard']());if(_0x149a97['every'](_0xd8912b=>_0x3a700['some'](_0x31e256=>_0x31e256['containsRange'](_0xd8912b,!0x0)))){const _0x5a149c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x75bdb3,'accept');return this['forceDefaultExecution'](()=>_0x5a149c(_0x5aece3,null,_0x32c05a)),null;}}else{const _0x5e4d0a=_0x240139['getFirstRange']();_0x149a97['some'](_0x307a60=>_0x307a60['containsRange'](_0x5e4d0a,!0x0))&&_0x240139['discard']();if(_0x149a97['every'](_0x18bd98=>_0x5e4d0a['containsRange'](_0x18bd98,!0x0))){const _0x98a091=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x75bdb3,'accept');return this['forceDefaultExecution'](()=>_0x98a091(_0x149a97,null,_0x32c05a)),null;}}const _0x14c4e2=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x75bdb3,'join');let _0x1fbeb8=null;for(const _0x18fb77 of this['getSuggestions']())if(_0x18fb77['author']['id']==_0x199240['id']&&_0x18fb77['isInContent']&&'deletion'==_0x18fb77['type']&&_0x18fb77['subType']==_0x75bdb3&&Kt(_0x18fb77,_0x32c05a)&&(_0x14c4e2(_0x18fb77['getRanges'](),_0x149a97)||_0x14c4e2(_0x149a97,_0x18fb77['getRanges']()))){if(_0x1fbeb8){if(_0x18fb77['commentThread']&&_0x18fb77['commentThread']['length'])continue;for(const _0x30fb6a of _0x18fb77['getRanges']())_0x1fbeb8['isIntersectingWithRange'](_0x30fb6a)||_0x1fbeb8['addRange'](_0x30fb6a);_0x18fb77['removeMarkers']();}else{_0x1fbeb8=_0x18fb77;for(const _0xef07fd of _0x149a97)_0x18fb77['isIntersectingWithRange'](_0xef07fd)||_0x18fb77['addRange'](_0xef07fd);}}if(_0x1fbeb8)return _0x1fbeb8;_0x1b82b4['clear']();for(const {suggestion:_0xc3adf5,meta:_0x46bb61}of this['_findSuggestions'](_0x149a97,'deletion'))_0x46bb61['isOwn']&&(this['_mergeNestedSuggestions']||!_0x46bb61['containsRangeInObject']&&!_0x46bb61['isInsideObject'])&&Kt(_0xc3adf5,_0x32c05a)&&_0x1b82b4['add'](_0xc3adf5);for(const _0x52edb5 of _0x1b82b4){const _0x1567d6=_0x52edb5['getRanges']();if(!_0x32c05a||!_0x32c05a['skipNestingCheck']){if(_0x149a97['every'](_0x951ae7=>_0x1567d6['some'](_0x10feac=>_0x10feac['containsRange'](_0x951ae7,!0x0))))return _0x52edb5;}(!_0x52edb5['attributes']||!_0x52edb5['attributes']['skipNestingCheck'])&&(_0x1567d6['every'](_0x325a01=>_0x149a97['some'](_0x508b23=>_0x508b23['containsRange'](_0x325a01,!0x0)))&&_0x52edb5['discard']());}const _0x50e4c4=_0x598835(),_0x4224e9=_0x199240['id'],_0x5d1412='deletion:'+_0x75bdb3,_0xd5f5b0=this['_setSuggestionData']({'id':_0x50e4c4,'type':_0x5d1412,'createdAt':new Date(),'authorId':_0x4224e9,'attributes':_0x32c05a});for(const _0x5d2ec0 of _0x149a97)_0x5d2ec0['detach'](),_0x5d2ec0['isCollapsed']||'$graveyard'==_0x5d2ec0['root']['rootName']||this['_addSuggestionMarker'](_0x5d1412,_0x50e4c4,_0x4224e9,_0x5d2ec0,u['getMultiRangeId']());return _0xd5f5b0;}['markAttributeChange'](_0x49f845,_0x56dbc8,_0x4d5bd8,_0x1b922e,_0xd8b8ef){if(_0x49f845['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x2031c8=this['editor']['plugins']['get']('Users')['me']['id'],_0x36abec=Array['from'](this['_suggestions']['values']())['filter'](_0x446b99=>'attribute'==_0x446b99['type']&&_0x446b99['data']['key']==_0x56dbc8&&_0x446b99['isIntersectingWithRange'](_0x49f845));if('default'===this['_trackFormatChanges']){const _0x5d5cf3=this['_findSuggestions'](_0x49f845,'insertion')['filter'](({meta:_0x1f7bd3})=>_0x1f7bd3['isOwn']&&!_0x1f7bd3['isInsideObject']&&!_0x1f7bd3['isNextTo'])['map'](({suggestion:_0x3d1ad2})=>_0x3d1ad2);_0x36abec['unshift'](..._0x5d5cf3);}const _0x181ccd=new Map([[_0x49f845,_0x4d5bd8]]);for(const _0xf98060 of _0x36abec){const _0x53066c='attribute'==_0xf98060['type']?_0xf98060['data']['oldValue']:void 0x0,_0x4d4d49=_0xf98060['getFirstRange'](),_0x42a053=Array['from'](_0x181ccd['keys']())['find'](_0x57339=>_0x57339['isIntersecting'](_0x4d4d49));if(!_0x42a053)continue;const _0x35b4f8=_0x42a053['getDifference'](_0x4d4d49);this['_isBlockAttribute'](_0x56dbc8)&&'insertion'==_0xf98060['type']&&0x0!=_0x35b4f8['length']||(_0x181ccd['delete'](_0x42a053),_0x35b4f8['forEach'](_0x4e6026=>{_0x181ccd['set'](_0x4e6026,_0x4d5bd8);}),'insertion'!=_0xf98060['type']&&_0x53066c!=_0x1b922e&&_0x181ccd['set'](_0x42a053['getIntersection'](_0x4d4d49),_0x53066c));}const _0x382c76=[];for(const [_0x8cb49f,_0x164968]of _0x181ccd){const _0x138d48=_0x598835(),_0x4f977b={'key':_0x56dbc8,'oldValue':_0x164968,'newValue':_0x1b922e};_0x56dbc8['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':_0x56dbc8});const _0x54ff4b=('attribute:'+(_0x56dbc8+'|'+Ft({'newValue':_0x1b922e})))['substring'](0x0,0x3c),_0x5c0856=this['_setSuggestionData']({'id':_0x138d48,'type':_0x54ff4b,'data':_0x4f977b,'createdAt':new Date(),'authorId':_0x2031c8,'attributes':_0xd8b8ef});_0x382c76['push'](_0x5c0856),this['_addSuggestionMarker'](_0x54ff4b,_0x138d48,_0x2031c8,_0x8cb49f);}return _0x382c76;}['enableDefaultAttributesIntegration'](_0x5b4b77){this['enableCommand'](_0x5b4b77,(_0x11aa1e,..._0x3a1b21)=>{this['_recordAttributeChanges'](()=>{_0x11aa1e(..._0x3a1b21);});});}['registerBlockAttribute'](_0x4e264e){this['_blockAttributeKeys']['add'](_0x4e264e);}['registerInlineAttribute'](_0x49e053){this['_inlineAttributeKeys']['add'](_0x49e053);}['_getAttributeKey'](_0x295dcf){return'attribute'==_0x295dcf['type']?_0x295dcf['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x4a3978,_0x3d6d28){const _0x5bb322=_0x4a3978['getFirstMarker']();this['_model']['change'](_0x18022a=>{_0x18022a['updateMarker'](_0x5bb322,{'range':_0x3d6d28});});}['_addThreadToSuggestion'](_0x1ff9c0){const _0x5afd16=_0x1ff9c0['id'],_0x138353=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x5afd16)||this['_commentsRepository']['addCommentThread']({'channelId':_0x138353,'threadId':_0x5afd16,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1b5f76=this['_commentsRepository']['getCommentThread'](_0x5afd16);_0x1b5f76['unbind']('isRemovable'),_0x1b5f76['isRemovable']=!0x1,_0x1ff9c0['commentThread']=_0x1b5f76;}['_checkSuggestionCorrectness'](_0x267d4d,_0x5cfc2d,_0x2a1683,_0xdd6963){if(_0x267d4d['type']!=_0x5cfc2d||_0x267d4d['subType']!=_0x2a1683||_0x267d4d['creator']['id']!=_0xdd6963)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x1c08fa('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x31bac7,_0x5a6ecf){const _0x2d74a0=_0x31bac7['getFirstRange']();if(_0x5a6ecf['isEqual'](_0x2d74a0))_0x31bac7['removeMarkers']();else{if(_0x2d74a0['containsRange'](_0x5a6ecf)){const _0x4ef74f=this['_model']['createPositionAt'](_0x5a6ecf['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x31bac7,this['_model']['createRange'](_0x2d74a0['start'],_0x4ef74f));const _0x123228=_0x598835(),_0x209c2b=_0x31bac7['creator']['id'],_0xb07361=_0x31bac7['type']+':'+_0x31bac7['subType'];this['_setSuggestionData']({'id':_0x123228,'type':_0xb07361,'createdAt':new Date(),'authorId':_0x209c2b,'data':_0x31bac7['data'],'attributes':_0x31bac7['attributes']});const _0x4f7200=this['_model']['createPositionAt'](_0x5a6ecf['end']['parent'],'after'),_0x3ee6fa=this['_model']['createRange'](_0x4f7200,_0x2d74a0['end']);this['_addSuggestionMarker'](_0xb07361,_0x123228,_0x209c2b,_0x3ee6fa);}else{if(_0x2d74a0['containsPosition'](_0x5a6ecf['start'])){const _0x32d1f1=this['_model']['createPositionAt'](_0x5a6ecf['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x31bac7,this['_model']['createRange'](_0x2d74a0['start'],_0x32d1f1));}else{const _0x539d9e=this['_model']['createPositionAt'](_0x5a6ecf['end']['parent'],'after');this['_setSuggestionRange'](_0x31bac7,this['_model']['createRange'](_0x539d9e,_0x2d74a0['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x3166d9){for(const {suggestion:_0xedcaf,meta:_0x2b5f5e}of this['_findSuggestions'](_0x3166d9,'insertion')){if(!_0x2b5f5e['isOwn'])continue;const _0x32c7dc=_0xedcaf['getRanges']();for(const _0x50dec8 of _0x32c7dc)if(!_0x3166d9['getDifference'](_0x50dec8)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x5d220c){const _0x42c89a=this['editor']['plugins']['get']('Users')['getUser'](_0x5d220c);if(!_0x42c89a)throw new _0x1c08fa('track-changes-user-not-found',this);return _0x42c89a;}['_getExternalAuthor'](_0x426a36){const _0x4a10f5=this['editor']['plugins']['get']('Users'),_0x38c224=_0x202b58('external:'+_0x426a36),_0x4b10de=_0x4a10f5['getUser'](_0x38c224);return _0x4b10de||_0x4a10f5['addUser']({'id':_0x38c224,'name':_0x426a36});}['_createSuggestion'](_0x2a36ac,_0x17e43a,_0x34bf6d,_0x4ee655,_0x24d739){const _0x4d126d=this['_getAuthorFromId'](_0x4ee655),_0x93ddc1=this['_suggestionFactory']['buildSuggestion'](_0x2a36ac,_0x17e43a,_0x34bf6d,_0x4d126d,_0x24d739,_0x22524a=>{this['_updateSuggestionData'](_0x34bf6d,{'attributes':_0x22524a});const _0x5e4a99=this['getSuggestion'](_0x34bf6d);this['_joinWithAdjacentSuggestions'](new Set([_0x5e4a99])),this['_refreshSuggestionsChain'](new Set([_0x5e4a99]));});return this['listenTo'](_0x93ddc1,'accept',()=>{this['_updateSuggestionData'](_0x34bf6d,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x93ddc1,'discard',()=>{this['_updateSuggestionData'](_0x34bf6d,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x34bf6d,_0x93ddc1),this['_suggestionState']['set'](_0x93ddc1,'notReady'),_0x93ddc1;}['_splitMarkerName'](_0xcf7eb2){const _0x3f7b70=_0xcf7eb2['split'](':');return{'group':_0x3f7b70[0x0],'type':_0x3f7b70[0x1],'subType':_0x3f7b70['length']>=0x5?_0x3f7b70[0x2]:null,'id':_0x3f7b70['length']<0x5?_0x3f7b70[0x2]:_0x3f7b70[0x3],'authorId':_0x3f7b70['length']<0x5?_0x3f7b70[0x3]:_0x3f7b70[0x4],'markerCount':0x6==_0x3f7b70['length']?_0x3f7b70[0x5]:null};}['_breakSuggestionMarker'](_0x2d78de,_0x28be74,_0x3ca608){const _0x163d4b=_0x2d78de['getFirstRange'](),_0x1639de=_0x163d4b['start'],_0x26ace5=_0x163d4b['end'];this['_setSuggestionRange'](_0x2d78de,this['_model']['createRange'](_0x1639de,_0x28be74));const _0x20f79d=_0x598835(),_0x132992=_0x2d78de['creator']['id'],_0x118249=_0x2d78de['type']+(_0x2d78de['subType']?':'+_0x2d78de['subType']:'');this['_setSuggestionData']({'id':_0x20f79d,'type':_0x118249,'createdAt':new Date(),'authorId':_0x132992,'originalSuggestionId':_0x2d78de['id'],'attributes':_0x2d78de['attributes'],'data':_0x2d78de['data']});const _0x22b38c=this['_getAttributeKey'](_0x2d78de);('formatBlock'==_0x2d78de['type']||_0x22b38c&&this['_isBlockAttribute'](_0x22b38c))&&(_0x3ca608=this['_model']['createPositionBefore'](_0x3ca608['parent'])),this['_addSuggestionMarker'](_0x118249,_0x20f79d,_0x132992,this['_model']['createRange'](_0x3ca608,_0x26ace5));}['_findSuggestions'](_0x4729cf,_0x1b6feb=null){const _0x51af9b=[],_0x2ba5ec=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x4729cf)||(_0x4729cf=[_0x4729cf]);for(const _0x445f93 of this['getSuggestions']()){if(!_0x445f93['isInContent'])continue;if(_0x1b6feb&&_0x445f93['type']!=_0x1b6feb)continue;let _0x1d6607=!0x1;for(const _0x5e9ab5 of _0x445f93['getRanges']()){for(const _0x5b1720 of _0x4729cf){const _0x38401f=_0x5b1720['start']['isEqual'](_0x5e9ab5['end'])||_0x5b1720['end']['isEqual'](_0x5e9ab5['start']);if(_0x38401f||_0x5b1720['getIntersection'](_0x5e9ab5)){const _0x20c519=_0x5b1720['containsRange'](_0x5e9ab5)&&Vt(this['_model']['schema'],_0x5e9ab5['start'],_0x5b1720),_0x471e53=_0x5e9ab5['containsRange'](_0x5b1720)&&Vt(this['_model']['schema'],_0x5b1720['start'],_0x5e9ab5);_0x51af9b['push']({'suggestion':_0x445f93,'meta':{'isOwn':_0x2ba5ec==_0x445f93['author'],'isNextTo':_0x38401f,'isInsideObject':_0x20c519,'containsRangeInObject':_0x471e53}}),_0x1d6607=!0x0;break;}}if(_0x1d6607)break;}}return _0x51af9b;}['_addSuggestionMarker'](_0x39f127,_0x11a77d,_0x40e9ed,_0x11bde2,_0x2d09af){this['_model']['change'](_0x50c889=>{let _0x30a6cb='suggestion:'+_0x39f127+':'+_0x11a77d+':'+_0x40e9ed;_0x2d09af&&(_0x30a6cb=_0x30a6cb+':'+_0x2d09af),_0x50c889['addMarker'](_0x30a6cb,{'range':_0x11bde2,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x4c1a64){const _0x510ca8=_0x4c1a64['previous'],_0x30cdca=_0x4c1a64['next'];_0x4c1a64['previous']=null,_0x4c1a64['next']=null,null!=_0x510ca8&&_0x510ca8['next']==_0x4c1a64&&(_0x510ca8['next']=_0x30cdca),null!=_0x30cdca&&_0x30cdca['previous']==_0x4c1a64&&(_0x30cdca['previous']=_0x510ca8),'ready'==this['_suggestionState']['get'](_0x4c1a64)&&(this['_suggestionState']['set'](_0x4c1a64,'removed'),this['fire']('suggestionUnloaded',_0x4c1a64,_0x510ca8,_0x30cdca));}['_setSuggestionData'](_0x32e2a5){const _0x1ce4be=_0x32e2a5['id'],_0x292081=this['addSuggestionData'](_0x32e2a5);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x23d2cf=this['editor']['plugins']['get']('PendingActions'),_0x3d185a=_0x292081['hasComments'],_0x169269=_0x292081['subType']?_0x292081['type']+':'+_0x292081['subType']:_0x292081['type'],_0x4832c6=this['editor']['locale'],_0x5e676a=_0x23d2cf['add'](o(_0x4832c6,'PENDING_ACTION_SUGGESTION')),_0x454a91={'id':_0x1ce4be,'type':_0x169269,'hasComments':_0x3d185a,'data':_0x32e2a5['data']||null,'originalSuggestionId':_0x32e2a5['originalSuggestionId']||null,'attributes':_0x292081['attributes']};this['_adapter']['addSuggestion'](_0x454a91)['then'](_0x5ee53b=>{_0x292081['_saved']=!0x0,_0x23d2cf['remove'](_0x5e676a),_0x5ee53b&&_0x5ee53b['createdAt']&&(this['_suggestions']['get'](_0x1ce4be)['createdAt']=_0x5ee53b['createdAt']);})['catch'](_0x3c653b=>{throw _0x1f6d12('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x292081['discard']();}),_0x292081['stopListening'](),this['_suggestions']['delete'](_0x292081['id']),this['_suggestionState']['delete'](_0x292081),_0x3c653b;});}return _0x292081;}['_isBlockAttribute'](_0x58ab5d){return this['_blockAttributeKeys']['has'](_0x58ab5d);}['_updateSuggestionData'](_0x4f9e1d,_0x48e039){const _0x2e49fc=this['editor']['plugins']['get']('PendingActions'),_0x30c0ab=this['getSuggestion'](_0x4f9e1d);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x30c0ab['_saved']){const _0x1c400c=_0x2e49fc['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x4f9e1d,_0x48e039)['then'](()=>{_0x2e49fc['remove'](_0x1c400c);});}else _0x30c0ab['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x4f9e1d,_0x48e039);});}}['_getSuggestionData'](_0x1af918){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x1c08fa('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x1af918);}['_handleNewSuggestionMarker'](_0x521c95){const {id:_0x36a02d,type:_0x222612,subType:_0x23f35e,authorId:_0x5df79c}=this['_splitMarkerName'](_0x521c95),_0x3a0ae0=this['_suggestions']['get'](_0x36a02d)||this['_createSuggestion'](_0x222612,_0x23f35e,_0x36a02d,_0x5df79c,{});switch(this['_checkSuggestionCorrectness'](_0x3a0ae0,_0x222612,_0x23f35e,_0x5df79c),this['_suggestionState']['get'](_0x3a0ae0)){case'notReady':this['_getSuggestionData'](_0x36a02d)['then'](_0x4dce30=>{let _0x48cdaa=Promise['resolve']();_0x4dce30['hasComments']&&(_0x48cdaa=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x36a02d})),_0x48cdaa['then'](()=>{this['addSuggestionData'](_0x4dce30)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x3a0ae0,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x36a02d,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x3a0ae0,'ready'),this['fire']('suggestionLoaded',_0x3a0ae0);break;case'ready':this['fire']('suggestionChanged',_0x3a0ae0);}return _0x3a0ae0['addMarkerName'](_0x521c95),_0x3a0ae0;}['_refreshSuggestionsChain'](_0x231ee6){const _0x4c4989=Array['from'](_0x231ee6),_0x1e825e=_0x4c4989['filter'](_0x27d2b3=>'attribute'==_0x27d2b3['type']);this['_refreshAttributeSuggestionsChain'](_0x1e825e);const _0x1b165b=_0x4c4989['filter'](_0x155c6d=>!_0x155c6d['isMultiRange']&&'attribute'!=_0x155c6d['type']),_0x31fc5e=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3213eb=>!_0x3213eb['isMultiRange']&&'attribute'!=_0x3213eb['type']),_0x3ddb20=_0x31fc5e['filter'](_0x4ad266=>!_0x231ee6['has'](_0x4ad266)),_0x196e32=new Map(_0x31fc5e['map'](_0x188529=>[_0x188529,this['_suggestionFactory']['getSuggestionCallback'](_0x188529['type'],_0x188529['subType'],'chain')])),_0xfb5d4b=new Map(_0x31fc5e['map'](_0x55aa89=>[_0x55aa89,_0x55aa89['getFirstRange']()])),_0x28e5ac=new Set(),_0x375927=new Set();for(let _0x451106=0x0;_0x451106<_0x1b165b['length'];_0x451106++)_0x5b43b5(_0x1b165b[_0x451106],_0x1b165b,_0x451106+0x1);for(let _0x5658d0=0x0;_0x5658d0<_0x1b165b['length'];_0x5658d0++)_0x5b43b5(_0x1b165b[_0x5658d0],_0x3ddb20,0x0);const _0x1504ba=new Set();for(let _0x158151=0x0;_0x158151<_0x1b165b['length'];_0x158151++){const _0x2c6688=_0x1b165b[_0x158151];!_0x375927['has'](_0x2c6688)&&_0x2c6688['previous']&&(_0x1504ba['add'](_0x2c6688['previous']),_0x2c6688['previous']['next']===_0x2c6688&&(_0x2c6688['previous']['next']=null),_0x2c6688['previous']=null),!_0x28e5ac['has'](_0x2c6688)&&_0x2c6688['next']&&(_0x1504ba['add'](_0x2c6688['next']),_0x2c6688['next']['previous']===_0x2c6688&&(_0x2c6688['next']['previous']=null),_0x2c6688['next']=null);}function _0x5b43b5(_0x48dcd1,_0x1a315c,_0x1b734f){for(let _0x19ff2f=_0x1b734f;_0x19ff2f<_0x1a315c['length'];_0x19ff2f++){const _0x3d84fd=_0x318e1f(_0x48dcd1,_0x1a315c[_0x19ff2f]);_0x3d84fd&&(_0x3d84fd[0x0]['next']=_0x3d84fd[0x1],_0x3d84fd[0x1]['previous']=_0x3d84fd[0x0],_0x28e5ac['add'](_0x3d84fd[0x0]),_0x375927['add'](_0x3d84fd[0x1]));}}function _0x318e1f(_0x306769,_0x1716fd){if(_0x306769['author']['id']!==_0x1716fd['author']['id'])return null;const _0x4b2990=_0x196e32['get'](_0x306769)(_0x306769,_0x1716fd,_0xfb5d4b['get'](_0x306769),_0xfb5d4b['get'](_0x1716fd));if(!_0x4b2990)return null;return _0x196e32['get'](_0x1716fd)(_0x306769,_0x1716fd,_0xfb5d4b['get'](_0x306769),_0xfb5d4b['get'](_0x1716fd))?_0x4b2990[0x1]['commentThread']&&_0x4b2990[0x1]['commentThread']['length']?null:_0x4b2990:null;}_0x1504ba['size']&&this['_refreshSuggestionsChain'](_0x1504ba);}['_refreshAttributeSuggestionsChain'](_0x3902e5){if(0x0==_0x3902e5['length'])return;const _0x176217=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2efd2c=>'attribute'==_0x2efd2c['type']&&_0x2efd2c['_isDataLoaded']),_0x4a14e8=[],_0x3ca8eb=new Map();for(const _0x49f729 of _0x176217){const _0x330632=_0x202b58(_0x49f729['attributes']);_0x3ca8eb['has'](_0x330632)||(_0x3ca8eb['set'](_0x330632,_0x4a14e8['length']),_0x4a14e8['push']([]));const _0x2c5939=_0x3ca8eb['get'](_0x330632);_0x4a14e8[_0x2c5939]['push'](_0x49f729);}!(function(){_0x4a14e8['sort']((_0x1e8c0c,_0x328799)=>{const _0x57ea26=_0x1e8c0c[0x0]['createdAt'],_0xd3c7fb=_0x328799[0x0]['createdAt'];return _0x57ea26==_0xd3c7fb?_0x1e8c0c[0x0]['attributes']['groupId']<_0x328799[0x0]['attributes']['groupId']?-0x1:0x1:_0x57ea26<_0xd3c7fb?-0x1:0x1;});for(const _0x2ab920 of _0x4a14e8)_0x2ab920['sort']((_0x482858,_0x3cb163)=>_0x482858['id']<_0x3cb163['id']?-0x1:0x1);}());for(let _0x5b0b7b=0x0;_0x5b0b7b<_0x4a14e8['length'];_0x5b0b7b++){if(0x0==_0x4a14e8[_0x5b0b7b]['length'])continue;const _0x4a2ac9=[];for(let _0x19701d=_0x5b0b7b+0x1;_0x19701d<_0x4a14e8['length'];_0x19701d++)0x0!=_0x4a14e8[_0x19701d]['length']&&_0x498f8c(_0x4a14e8[_0x5b0b7b],_0x4a14e8[_0x19701d])&&_0x4a2ac9['push'](_0x19701d);for(const _0x343afc of _0x4a2ac9)_0x4a14e8[_0x5b0b7b]=_0x4a14e8[_0x5b0b7b]['concat'](_0x4a14e8[_0x343afc]),_0x4a14e8[_0x343afc]=[];}for(const _0xf29ecb of _0x4a14e8)for(let _0x1ea0b=0x0;_0x1ea0b<_0xf29ecb['length'];_0x1ea0b++){const _0x4e01e8=_0xf29ecb[_0x1ea0b+0x1]||null;_0xf29ecb[_0x1ea0b]['next']!==_0x4e01e8&&(_0xf29ecb[_0x1ea0b]['next']=_0x4e01e8);}for(const _0x356298 of _0x4a14e8)for(let _0x5d8253=0x0;_0x5d8253<_0x356298['length'];_0x5d8253++){const _0x5ae50b=_0x356298[_0x5d8253-0x1]||null;_0x356298[_0x5d8253]['previous']!==_0x5ae50b&&(_0x356298[_0x5d8253]['previous']=_0x5ae50b);}function _0x498f8c(_0x167221,_0x97528d){if(_0x167221[0x0]['attributes']['groupId']!==_0x97528d[0x0]['attributes']['groupId']&&_0x167221[0x0]['author']!==_0x97528d[0x0]['author'])return!0x1;if(!function(_0x42da68,_0x241c45){if(!_0x42da68['hasComments']&&!_0x241c45['hasComments'])return!0x0;if(_0x42da68['hasComments']&&_0x241c45['hasComments'])return!0x1;if(_0x42da68['hasComments']&&_0x241c45['createdAt']<_0x42da68['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x241c45['hasComments']&&_0x42da68['createdAt']<_0x241c45['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x167221[0x0],_0x97528d[0x0]))return!0x1;const _0x30440b=Et(_0x167221[0x0]['attributes'],'groupId'),_0x2f73a0=Et(_0x97528d[0x0]['attributes'],'groupId');if(!_0x5dbf15(_0x30440b,_0x2f73a0))return!0x1;return!!_0x167221['every'](_0x2a1ddc=>_0x97528d['some'](_0x23f643=>_0x2a1ddc['getFirstRange']()['isEqual'](_0x23f643['getFirstRange']())))&&_0x97528d['every'](_0x5f373e=>_0x167221['some'](_0x4c147a=>_0x5f373e['getFirstRange']()['isEqual'](_0x4c147a['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x37965a){const _0x4221a0=Array['from'](_0x37965a),_0x5909d5=this['getSuggestions']({'skipNotAttached':!0x0}),_0x10287f=_0x5909d5['filter'](_0x5c68b1=>!_0x37965a['has'](_0x5c68b1)),_0x422341=new Map(_0x4221a0['map'](_0x5e4724=>[_0x5e4724,this['_suggestionFactory']['getSuggestionCallback'](_0x5e4724['type'],_0x5e4724['subType'],'join')])),_0x587e57=new Map(_0x5909d5['map'](_0x414763=>[_0x414763,_0x414763['getRanges']()]));for(let _0xdcb84f=0x0;_0xdcb84f<_0x4221a0['length'];_0xdcb84f++){if(_0x3ec475(this,_0x4221a0[_0xdcb84f],_0x4221a0,_0xdcb84f+0x1))return!0x0;}for(let _0x4afaf7=0x0;_0x4afaf7<_0x4221a0['length'];_0x4afaf7++){if(_0x3ec475(this,_0x4221a0[_0x4afaf7],_0x10287f,0x0))return!0x0;}return!0x1;function _0x3ec475(_0x387ffb,_0x4268b0,_0x5cdf54,_0x141565){for(let _0x30f6c4=_0x141565;_0x30f6c4<_0x5cdf54['length'];_0x30f6c4++){const _0x45447d=_0x5cdf54[_0x30f6c4];if(_0x45447d['type']!==_0x4268b0['type']||_0x45447d['author']['id']!==_0x4268b0['author']['id']||_0x45447d['subType']!==_0x4268b0['subType'])continue;if(!zt(_0x4268b0,_0x45447d))continue;if('attribute'==_0x4268b0['type']&&_0x4268b0['data']['oldValue']!=_0x45447d['data']['oldValue'])continue;if('attribute'==_0x4268b0['type']&&_0x387ffb['_isBlockAttribute'](_0x4268b0['data']['key']))continue;if('formatBlock'==_0x4268b0['type']){const _0xe9961b=_0x387ffb['editor']['model'],_0x401f17=_0x4268b0['getContainedElement']();if(_0x401f17&&(_0xe9961b['schema']['isObject'](_0x401f17)||_0xe9961b['schema']['isLimit'](_0x401f17)))continue;}const _0x455259=_0x422341['get'](_0x4268b0),_0x33c244=_0x587e57['get'](_0x4268b0),_0x29007f=_0x587e57['get'](_0x45447d),_0x22f339=_0x4268b0['commentThread']&&_0x4268b0['commentThread']['length'],_0x601665=_0x45447d['commentThread']&&_0x45447d['commentThread']['length'];if(!_0x22f339&&_0x455259(_0x29007f,_0x33c244))return _0x387ffb['_joinSuggestions'](_0x45447d,_0x4268b0),_0x587e57['delete'](_0x4268b0),!0x0;if(!_0x601665&&_0x455259(_0x33c244,_0x29007f))return _0x387ffb['_joinSuggestions'](_0x4268b0,_0x45447d),_0x587e57['delete'](_0x45447d),!0x0;}return!0x1;}}['_joinSuggestions'](_0x1636b2,_0x1332a9){if(_0x1636b2['isMultiRange']){for(const _0x402920 of _0x1332a9['getRanges']())_0x1636b2['addRange'](_0x402920);}else{const _0xb9f48=_0x1332a9['getFirstRange']()['end'];this['_setSuggestionRange'](_0x1636b2,this['_model']['createRange'](_0x1636b2['getFirstRange']()['start'],_0xb9f48));}_0x1332a9['removeMarkers']();}['_getMarkerAnnouncementText'](_0x904b58,_0x84bb5a,_0x137aa5){const _0x20ffde=_0x904b58['startsWith']('format')||_0x904b58['startsWith']('attribute')?'FORMATTING':_0x904b58['toUpperCase']();return o(this['editor']['locale'],_0x84bb5a+'_'+_0x20ffde+'_SUGGESTION_ANNOUNCEMENT',_0x137aa5);}['_initAriaMarkerChangeAnnouncements'](){const _0x53813d=this['editor'];if(!_0x53813d['ui'])return;const {ariaLiveAnnouncer:_0x3e8930}=_0x53813d['ui'];_0xf25a02(this['_model'],({left:_0x403503,entered:_0x2ea1bb})=>{for(const _0x1542d5 of _0x403503){const {group:_0x50581b,type:_0x5464e8}=this['_splitMarkerName'](_0x1542d5['name']);if('suggestion'===_0x50581b){_0x3e8930['announce'](this['_getMarkerAnnouncementText'](_0x5464e8,'LEAVE'));break;}}for(const _0x49e309 of _0x2ea1bb){const {group:_0x390165,type:_0x43e5a2}=this['_splitMarkerName'](_0x49e309['name']);if('suggestion'===_0x390165){_0x3e8930['announce'](this['_getMarkerAnnouncementText'](_0x43e5a2,'ENTER',_0x389808(_0x869705)));break;}}});}['_processAttributeChanges'](_0x41006a){if(this['_recordAttributeSuggestions'])return!0x1;const _0x3a9911=this['editor'],_0x509e51=_0x3a9911['model']['document']['differ']['getChanges']();if(0x0==_0x509e51['length'])return!0x1;const _0x2b089e=[],_0x5bf100=_0x509e51['filter'](_0x8321c9=>'attribute'==_0x8321c9['type']),_0x53f277=_0x509e51['filter'](_0xcb270c=>'insert'==_0xcb270c['type']&&'$text'!=_0xcb270c['name']),_0x7091dd=_0x509e51['filter'](_0x335de9=>'remove'==_0x335de9['type']&&'$text'!=_0x335de9['name']);for(const _0x41bace of _0x5bf100)_0x2b089e['push']({'key':_0x41bace['attributeKey'],'newValue':_0x41bace['attributeNewValue'],'oldValue':_0x41bace['attributeOldValue'],'range':Jt(_0x41bace['range'],_0x3a9911['model'])});for(const _0x488275 of _0x53f277){const _0x896d4=_0x7091dd['find'](_0x589722=>_0x589722['position']['isEqual'](_0x488275['position']));_0x896d4&&_0x2b089e['push']({'key':m,'newValue':_0x488275['name'],'oldValue':_0x896d4['name'],'range':_0x3a9911['model']['createRangeOn'](_0x488275['position']['nodeAfter'])});}return 0x0!=_0x2b089e['length']&&this['_reduceExistingSuggestions'](_0x41006a,_0x2b089e);}['_processAttributeSuggestions'](_0x188159){let _0x1b6745=!0x1;const _0x21b1a4=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0xd48962=>_0xd48962['data']['newRange']&&_0xd48962['name']['startsWith']('suggestion:attribute:'));for(const _0x7a77b2 of _0x21b1a4){const {subType:_0x35431a,id:_0x194265}=this['_splitMarkerName'](_0x7a77b2['name']),_0x153428=_0x35431a['split']('|')[0x0];for(const _0x59dc6f of this['getSuggestions']({'skipNotAttached':!0x0}))_0x59dc6f['id']!=_0x194265&&'attribute'==_0x59dc6f['type']&&_0x59dc6f['data']&&_0x59dc6f['data']['key']==_0x153428&&_0x59dc6f['getFirstRange']()['isIntersecting'](_0x7a77b2['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x59dc6f,_0x7a77b2['data']['newRange'],_0x188159),_0x1b6745=!0x0);}return _0x1b6745;}['_recordAttributeChanges'](_0xf5db01){this['_recordAttributeSuggestions']=!0x0,_0xf5db01();}['_isRegisteredAttribute'](_0x56c7d3){const _0x559a5b=this['_isBlockAttribute'](_0x56c7d3),_0xad17a=this['_inlineAttributeKeys']['has'](_0x56c7d3);return _0x559a5b||_0xad17a;}['_reduceExistingSuggestions'](_0x43d49d,_0x2aaf83){if(0x0==_0x2aaf83['length'])return!0x1;let _0x3620bf=!0x1;for(const _0x1755d1 of _0x2aaf83){const _0xe1b3cc=this['_findSuggestions'](_0x1755d1['range'],'attribute')['filter'](_0x451bc8=>!_0x451bc8['meta']['isNextTo'])['map'](_0x3259cd=>_0x3259cd['suggestion']),_0x28a5a8=_0x202b58({'newValue':_0x1755d1['newValue']});_0xe1b3cc['filter'](_0x433ef0=>{const [_0x44fc64,_0x3b0d20]=_0x433ef0['subType']['split']('|');return _0x44fc64==_0x1755d1['key']&&_0x3b0d20!=_0x28a5a8;})['forEach'](_0x1b5216=>{this['_reduceSuggestionAttributeRange'](_0x1b5216,_0x1755d1['range'],_0x43d49d),_0x3620bf=!0x0;});}return _0x3620bf;}['_reduceSuggestionAttributeRange'](_0x14c96b,_0x5f14c0,_0x62dd04){const _0x5ad347=_0x14c96b['getFirstRange']()['getDifference'](_0x5f14c0);0x0!==_0x5ad347['length']?0x1!==_0x5ad347['length']?this['_breakSuggestionMarker'](_0x14c96b,_0x5f14c0['start'],_0x5f14c0['end']):this['_setSuggestionRange'](_0x14c96b,_0x5ad347[0x0]):_0x62dd04['removeMarker'](_0x14c96b['getFirstMarker']());}}class Ut{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x35b7a6){this['_editor']=_0x35b7a6,this['_model']=_0x35b7a6['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x3e48f9,_0x170923,_0x10dea8,_0x3aed6d,_0x56867d,_0x225166){return new u(this['_model'],{'type':_0x3e48f9,'subType':_0x170923,'id':_0x10dea8,'author':_0x3aed6d,'creator':_0x3aed6d,'attributes':_0x56867d,'onAttributesChange':_0x225166,'onAccept':(..._0x3e13fd)=>this['getSuggestionCallback'](_0x3e48f9,_0x170923,'accept')(..._0x3e13fd),'onDiscard':(..._0x1a399b)=>this['getSuggestionCallback'](_0x3e48f9,_0x170923,'discard')(..._0x1a399b)});}['registerCustomCallback'](_0xe2906a,_0x66a56e,_0x36405e,_0x13486b){const _0x4dbb69=_0xe2906a+':'+_0x66a56e+':'+_0x36405e;this['_customCallbacks']['set'](_0x4dbb69,_0x13486b);}['getSuggestionCallback'](_0x473faf,_0x516eb4,_0xf40dd4){const _0x1d7f67=_0x473faf+':'+_0x516eb4+':'+_0xf40dd4;return this['_customCallbacks']['get'](_0x1d7f67)||this['_defaultCallbacks']['get'](_0x473faf+':'+_0xf40dd4);}['_registerDefaultCallbacks'](){const _0x15993a=()=>!0x1,_0x191ca1=_0x459f51=>{_0x459f51['sort']((_0x5eb7fc,_0x4b4581)=>_0x5eb7fc['start']['isBefore'](_0x4b4581['start'])?0x1:-0x1),this['_model']['change'](_0x10764a=>{for(const _0x256949 of _0x459f51){let _0x5b432a;_0x5b432a=_0x256949['end']['isAtEnd']&&_0x256949['end']['parent']==_0x256949['start']['nodeAfter']?_0x10764a['createSelection'](_0x256949['start']['nodeAfter'],'on'):_0x10764a['createSelection'](_0x256949),this['_model']['deleteContent'](_0x5b432a,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0xf11aa3=(_0x3fe9ff,_0x229cfb)=>{_0x229cfb&&this['_model']['change'](_0x566bb7=>{const {commandName:_0x554130,commandParams:_0x1fe786=[]}=_0x229cfb,_0x2f9cf6=_0x3fe9ff['map'](_0x238244=>(Pt(_0x238244)&&(_0x238244=this['_model']['createRange'](_0x238244['end'])),_0x238244))['filter'](_0x1531ba=>'$graveyard'!==_0x1531ba['root']['rootName']);if(_0x2f9cf6['length']<0x1)return;const _0x351016=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x96a46c=>_0x78f3c6['fromRange'](_0x96a46c));_0x566bb7['setSelection'](_0x2f9cf6);for(const _0x57426d of this['_editor']['commands']['commands']())_0x57426d['refresh']();_0x1fe786['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x554130,..._0x1fe786);const _0x390cc3=_0x351016['filter'](_0x1f33c2=>'$graveyard'!=_0x1f33c2['root']['rootName']);_0x390cc3['length']>0x0&&_0x566bb7['setSelection'](_0x390cc3);for(const _0x567b1e of _0x351016)_0x567b1e['detach']();});},_0x51eeb8=(_0x48da87,_0x2c8c90)=>0x1==_0x48da87['length']&&0x1==_0x2c8c90['length']&&_0x48da87[0x0]['end']['isEqual'](_0x2c8c90[0x0]['start']),_0x49e14b=(_0x311c2b,_0x47a739,_0x9181be,_0x57faf5)=>qt(_0x311c2b,_0x47a739,_0x9181be,_0x57faf5)?[_0x311c2b,_0x47a739]:qt(_0x47a739,_0x311c2b,_0x57faf5,_0x9181be)?[_0x47a739,_0x311c2b]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x15993a),this['_defaultCallbacks']['set']('insertion:discard',_0x191ca1),this['_defaultCallbacks']['set']('insertion:join',_0x51eeb8),this['_defaultCallbacks']['set']('insertion:chain',_0x49e14b),this['_defaultCallbacks']['set']('deletion:accept',_0x191ca1),this['_defaultCallbacks']['set']('deletion:discard',_0x15993a),this['_defaultCallbacks']['set']('deletion:join',_0x51eeb8),this['_defaultCallbacks']['set']('deletion:chain',_0x49e14b),this['_defaultCallbacks']['set']('formatInline:accept',_0xf11aa3),this['_defaultCallbacks']['set']('formatInline:discard',_0x15993a),this['_defaultCallbacks']['set']('formatInline:join',_0x51eeb8),this['_defaultCallbacks']['set']('formatInline:chain',_0x15993a),this['_defaultCallbacks']['set']('formatBlock:accept',_0xf11aa3),this['_defaultCallbacks']['set']('formatBlock:discard',_0x15993a),this['_defaultCallbacks']['set']('formatBlock:join',_0x51eeb8),this['_defaultCallbacks']['set']('formatBlock:chain',_0x15993a),this['_defaultCallbacks']['set']('attribute:accept',_0x15993a),this['_defaultCallbacks']['set']('attribute:discard',(_0x55d152,_0x4f615b)=>{if(!_0x4f615b)return;const _0x46d503=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x5796e9=>{if(_0x4f615b['key']==m)for(const _0x19825d of _0x55d152){const _0x3680de=_0x19825d['start']['nodeAfter'],_0x9cd18b=_0x4f615b['oldValue'];_0x5796e9['rename'](_0x3680de,_0x9cd18b);}else{if(_0x46d503['_isBlockAttribute'](_0x4f615b['key'])){for(const _0x33939d of _0x55d152)void 0x0!==_0x4f615b['oldValue']?_0x5796e9['setAttribute'](_0x4f615b['key'],_0x4f615b['oldValue'],_0x33939d['start']['nodeAfter']):_0x5796e9['removeAttribute'](_0x4f615b['key'],_0x33939d['start']['nodeAfter']);}else{for(const _0x1f798f of _0x55d152)_0x4f615b['oldValue']?_0x5796e9['setAttribute'](_0x4f615b['key'],_0x4f615b['oldValue'],_0x1f798f):_0x5796e9['removeAttribute'](_0x4f615b['key'],_0x1f798f);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x51eeb8);}}function Vt(_0x3a7f2a,_0x5ef60e,_0x23c648){for(const _0x2161b2 of _0x5ef60e['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2161b2['root']==_0x2161b2)return!0x1;if(!_0x23c648['containsItem'](_0x2161b2))return!0x1;if(_0x3a7f2a['isObject'](_0x2161b2)||_0x3a7f2a['isLimit'](_0x2161b2))return!0x0;}return!0x1;}function Pt(_0x49f5de){return _0x49f5de['end']['parent']==_0x49f5de['start']['nodeAfter']&&_0x49f5de['end']['isAtStart'];}function Gt(_0x3a5610,_0x37207c,_0x5d3a62,_0x3d0b33){const _0x26ad67=_0x3d9389=>!_0x3d9389['item']['is']('$textProxy')&&!_0x3d0b33['isObject'](_0x3d9389['item']),_0x475a5b=_0x3a5610['start']['getLastMatchingPosition'](_0x26ad67),_0x569e1a=_0x3a5610['end']['getLastMatchingPosition'](_0x26ad67,{'direction':'backward'});return(!_0x3a5610['start']['isEqual'](_0x475a5b)||!_0x3a5610['end']['isEqual'](_0x569e1a))&&(_0x475a5b['isBefore'](_0x569e1a)?_0x5d3a62['updateMarker'](_0x37207c,{'range':_0x5d3a62['createRange'](_0x475a5b,_0x569e1a)}):_0x5d3a62['removeMarker'](_0x37207c),!0x0);}function Ft(_0x550dae){return _0x202b58(_0x550dae);}function Lt(_0x9cf10f){const _0x1f1b48=_0x9cf10f['start']['nodeAfter'];return _0x1f1b48&&_0x1f1b48['is']('element');}function Jt(_0x36ff2a,_0x289431){return null==_0x36ff2a['end']['nodeBefore']&&_0x36ff2a['end']['parent']==_0x36ff2a['start']['nodeAfter']?Ht(_0x36ff2a['start']['nodeAfter'],_0x289431):_0x36ff2a;}function Ht(_0x5e75b6,_0x4c45fb){const _0x5eb2ff=_0x4c45fb['schema']['isObject'](_0x5e75b6)||_0x4c45fb['schema']['isSelectable'](_0x5e75b6);return _0x4c45fb['createRange'](_0x4c45fb['createPositionAt'](_0x5e75b6,'before'),_0x5eb2ff?_0x4c45fb['createPositionAfter'](_0x5e75b6):_0x4c45fb['createPositionAt'](_0x5e75b6,'end'));}function qt(_0x400485,_0x12e977,_0x49e67d,_0x1b0be1){return!!zt(_0x400485,_0x12e977)&&_0x49e67d['end']['isEqual'](_0x1b0be1['start']);}function zt(_0x326d00,_0x1ef7c8){if(!_0x326d00['_isDataLoaded']||!_0x1ef7c8['_isDataLoaded'])return!0x1;const _0x1a4fc7=new Set(Object['keys'](_0x326d00['attributes'])),_0x3faaa1=new Set(Object['keys'](_0x1ef7c8['attributes']));if(_0x1a4fc7['delete']('groupId'),_0x3faaa1['delete']('groupId'),0x0==_0x1a4fc7['size']&&0x0==_0x3faaa1['size'])return!0x0;if(_0x1a4fc7['size']!=_0x3faaa1['size'])return!0x1;const _0x23f52b={..._0x326d00['attributes']},_0x3ec3d2={..._0x1ef7c8['attributes']};return delete _0x23f52b['groupId'],delete _0x3ec3d2['groupId'],JSON['stringify'](_0x23f52b)==JSON['stringify'](_0x3ec3d2);}function Kt(_0x396049,_0x513a27){const _0x7c5caf=Wt(_0x396049['attributes']),_0x31f38a=Wt(_0x513a27);if(!_0x396049['_isDataLoaded'])return!0x1;for(const _0x43ab3b of Object['keys'](_0x31f38a))if(!_0x5dbf15(_0x7c5caf[_0x43ab3b],_0x31f38a[_0x43ab3b]))return!0x1;return!0x0;}function Wt(_0x242ebd){const _0x1ae001=Object['assign']({},_0x242ebd);return delete _0x1ae001['skipNestingCheck'],delete _0x1ae001['tablePasteChainId'],_0x1ae001;}class Ce extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x1cb55e(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x51494d,_0x3ecf15,_0x419153,_0x491eba){super(),this['model']=_0x3ecf15,this['view']=_0x419153,this['commentThreadController']=_0x491eba,this['_editor']=_0x51494d,this['_acceptCommand']=_0x51494d['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x51494d['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x5323f8,_0x17f777)=>_0x5323f8||_0x17f777),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x36fbc9=>_0x36fbc9&&this['_editor']['model']['canEditAt'](_0x3ecf15['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x5d1016=>_0x5d1016&&this['_editor']['model']['canEditAt'](_0x3ecf15['getRanges']())),this['_pendingAction']=null,_0x419153['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x419153,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x419153,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x419153,'change:isDirty',()=>{_0x419153['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 _0x55732a=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x55732a);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class as extends _0x10742a{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x3cc7b3,_0x29880b,_0x16b313,_0xbca5f0){super(_0x3cc7b3),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x466482(_0x3cc7b3,o(_0x3cc7b3,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x29880b['authoredAt']),this['bind']('authoredAt')['to'](_0x29880b),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',_0x29880b,'authoredAt',this,'descriptionParts',(_0x4b7797,_0x347a33,_0x19c734)=>{const _0xc3c33d=_0x19c734['map'](_0x102816=>ns(_0x102816['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x4b7797-0x1,_0x29880b['author']['name'],_0x347a33?_0xbca5f0['formatDateTime'](_0x347a33):'',new DOMParser()['parseFromString'](_0xc3c33d,'text/html')['body']['textContent']]);}),this['focusables']=new _0x1adaf4(),this['focusTracker']=new _0xc673c(),this['keystrokes']=new _0x553953(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x5ed55e=>_0x5ed55e['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x29880b,this['_localUser']=_0x16b313,this['_config']=_0xbca5f0,_0xbca5f0['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x12a9e6(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x5a5379}=this['_config'];this['commentsListView']=new _0x5a5379(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',_0x5ed01d=>_0x5ed01d+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0xd52b4a,_0x469c37)=>_0xd52b4a||!!_0x469c37);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x10a2da}=this['_config'],_0x94c2b=new _0x10a2da(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x3966e5=_0x94c2b['commentInputView'];return _0x94c2b['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x3966e5,'value',(_0x10a415,_0x45b283,_0x3e8402)=>!!_0x3e8402||_0x10a415&&!_0x45b283),_0x3966e5['on']('submit',(_0x5aa8a3,_0x541302)=>{this['fire']('addComment',_0x541302),_0x3966e5['editor']['setData']('');}),_0x3966e5['on']('cancel',()=>this['focus']()),_0x3966e5['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x94c2b;}}class pe extends as{['suggestionView'];['_descriptionElement'];constructor(_0x3f68a5,_0x4b4bc2,_0x93f1f9,_0x12b187){super(_0x3f68a5,_0x4b4bc2,_0x93f1f9,_0x12b187),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x337377=>_0x337377&&_0x337377[0x0]?_0x337377[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x271834,_0x308af2)=>{let _0x1aeeb4='';for(const _0x5b753c of _0x271834)_0x1aeeb4+='<p>'+ns(_0x5b753c['content'],_0x5b753c['color'])+'</p>';return _0x308af2?_0x1aeeb4:_0x180605(_0x1aeeb4,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x12b187['SuggestionView'](_0x3f68a5,_0x4b4bc2,{'formatDateTime':_0x12b187['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 _0x416b80=this['bindTemplate'],_0x12be9f=[this['suggestionView']];return this['commentsListView']&&_0x12be9f['push'](this['commentsListView']),this['commentThreadInputView']&&_0x12be9f['push'](this['commentThreadInputView']),_0x12be9f['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x416b80['if']('isActive','ck-suggestion-wrapper--active'),_0x416b80['to']('type',_0x4dbe94=>'ck-suggestion-'+_0x4dbe94),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':_0x416b80['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x12be9f};}['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 _0x10742a{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x22b6fe,_0x132bb7,_0x4fae25){super(_0x22b6fe),this['_model']=_0x132bb7,this['_config']=_0x4fae25,this['set']('description',''),this['bind']('authoredAt')['to'](_0x132bb7),this['acceptButton']=this['_createButton'](o(_0x22b6fe,'Accept\x20suggestion'),_0x18d5fb['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x22b6fe,'Discard\x20suggestion'),_0x18d5fb['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x59efeb(_0x22b6fe,_0x132bb7['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x1adaf4([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0xc673c(),this['keystrokes']=new _0x553953(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x5b0134=>_0x5b0134['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x3e217b=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x3e217b['innerHTML']=this['description'],this['on']('change:description',(_0xb11d25,_0x3bd63e,_0x515bf1)=>{_0x3e217b['innerHTML']=_0x515bf1;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x50f815=this['bindTemplate'],_0x3d2bc4=[{'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':_0x50f815['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x50f815['to']('authoredAt',_0x43eeea=>this['_config']['formatDateTime'](_0x43eeea))}]}]},{'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']&&_0x3d2bc4['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':_0x3d2bc4}]};}['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'](_0x275884,_0x381874,_0x17da2c,_0x6dac5a,_0x4b72ed){const _0x21330b=new _0x24f414(this['locale']);return _0x21330b['set']({'label':_0x275884,'icon':_0x381874,'tooltip':!0x0,'tooltipPosition':_0x4b72ed}),_0x21330b['extendTemplate']({'attributes':{'class':_0x17da2c}}),_0x21330b['on']('execute',()=>{this['fire'](_0x6dac5a,this['_model']['id']);}),_0x21330b;}['_setupKeyboardNavigation'](){const _0x23c975=this['element'];this['keystrokes']['listenTo'](_0x23c975);for(const _0x7909d0 of this['focusables'])this['focusTracker']['add'](_0x7909d0['element']),this['keystrokes']['listenTo'](_0x7909d0['element']);this['keystrokes']['set']('enter',(_0x50e0c7,_0x4aa5d1)=>{_0x23c975===_0x50e0c7['target']&&(this['focusCycler']['focusFirst'](),_0x4aa5d1());}),this['keystrokes']['set']('esc',(_0x340225,_0xa70d4e)=>{_0x23c975!==_0x340225['target']&&(this['focus'](),_0xa70d4e());});}}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 _0x236dec{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x4d36d3,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x22c013){super(_0x22c013),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x4f6104=this['editor']['config'];_0x4f6104['define']('trackChanges.SuggestionThreadView',pe),_0x4f6104['define']('trackChanges.SuggestionView',fe),_0x4f6104['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x4f6104['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x17de1c,_0x482abb){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x573121,_0x3e3242]of this['_handleControllerBuffer']){const _0x12197b=this['_suggestionToController']['has'](_0x573121);_0x12197b||_0x3e3242?_0x12197b&&_0x3e3242&&this['_destroyController'](_0x573121):this['_initializeController'](_0x573121);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x17de1c,_0x482abb);}['init'](){const _0x8b507a=this['editor'],_0x4b5264=_0x8b507a['plugins']['get']('TrackChangesEditing'),_0x398806=_0x8b507a['plugins']['get']('Annotations'),_0x1bc450=_0x8b507a['plugins']['get']('EditorAnnotations'),_0x557bc7=_0x8b507a['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x1bc450['addSourceCollector'](()=>{const _0x2f7303=[];for(const [_0x535549,_0x1c9918]of Array['from'](this['_suggestionToController'])){const _0x44b127=_0x535549['getAllAdjacentSuggestions'](),_0x3b4858=[];for(const _0x1433d6 of _0x44b127){if(!_0x1433d6['isInContent'])continue;if(_0x1433d6['isMultiRange']){_0x3b4858['push'](..._0x1433d6['getRanges']());continue;}const _0x2857bb=_0x1433d6['getFirstRange']();if(_0x3b4858['length']>0x0){const _0x43c5e9=_0x3b4858[0x0]['getJoined'](_0x2857bb);if(_0x43c5e9){_0x3b4858[0x0]=_0x43c5e9;continue;}}_0x3b4858['push'](_0x2857bb);}_0x2f7303['push']([_0x1c9918['view'],_0x3b4858]);}return _0x2f7303;}),this['listenTo'](_0x4b5264,'suggestionLoaded',(_0xc1ddae,_0x454e78)=>{this['listenTo'](_0x454e78,'change:previous',(_0x264487,_0x1a6849,_0xc3b162,_0x2bf0fa)=>{_0x454e78['isInContent']&&(null==_0xc3b162?(this['_updateController'](_0x2bf0fa['head']),this['_handleSuggestionControllerDelayed'](_0x454e78,!0x1)):(this['_updateController'](_0xc3b162['head']),null==_0x2bf0fa&&this['_handleSuggestionControllerDelayed'](_0x454e78,!0x0)));}),null!==_0x454e78['previous']?this['_updateController'](_0x454e78['head']):this['_handleSuggestionControllerDelayed'](_0x454e78,!0x1);}),this['listenTo'](_0x4b5264,'suggestionUnloaded',(_0x2f5f7e,_0x2aaeaf,_0x471145)=>{this['stopListening'](_0x2aaeaf,'change:previous'),this['_handleControllerBuffer']['delete'](_0x2aaeaf),this['_suggestionToController']['has'](_0x2aaeaf)&&this['_destroyController'](_0x2aaeaf),_0x471145&&this['_updateController'](_0x471145['head']);}),this['listenTo'](_0x4b5264,'suggestionChanged',(_0x55f34b,_0x5908de)=>{this['_updateController'](_0x5908de);}),this['listenTo'](_0x398806,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x557bc7,'addComment',(_0x4338ec,{threadId:_0x1b45a6,isFromAdapter:_0xe404cb})=>{if(_0xe404cb||!_0x4b5264['hasSuggestion'](_0x1b45a6))return;const _0x544a6c=_0x4b5264['getSuggestion'](_0x1b45a6);this['_suggestionToController']['get'](_0x544a6c)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x38f92b=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x388fbb;for(const _0x5cb8f5 in _0x38f92b){const _0x5991c8=_0x5cb8f5,_0x286b82=_0x38f92b[_0x5991c8];if('trackChangesLicenseKeyValid'==_0x286b82||'trackChangesLicenseKeyInvalid'==_0x286b82||'trackChangesLicenseKeyExpired'==_0x286b82||'trackChangesLicenseKeyDomainLimit'==_0x286b82||'trackChangesLicenseKeyNotAllowed'==_0x286b82||'trackChangesLicenseKeyEvaluationLimit'==_0x286b82||'trackChangesLicenseKeyTrialLimit'==_0x286b82||'trackChangesLicenseKeyUsageLimit'==_0x286b82){delete _0x38f92b[_0x5991c8],_0x388fbb=_0x286b82,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x388fbb&&_0x38f92b['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x388fbb&&_0x38f92b['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x388fbb&&_0x38f92b['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x388fbb&&_0x38f92b['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x388fbb&&_0x38f92b['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x388fbb&&_0x38f92b['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x388fbb&&_0x38f92b['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x28cc6a=this['editor']['plugins']['get']('Annotations'),_0x19657c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2fe05a=Array['from'](_0x28cc6a['activeAnnotations'],_0x1440db=>_0x1440db['innerView'])['filter'](_0x1a13ed=>this['_viewToController']['has'](_0x1a13ed)),_0x543926=[];for(const _0xc968b9 of _0x2fe05a){const _0x958990=this['_viewToController']['get'](_0xc968b9)['model']['getAllAdjacentSuggestions']();_0x543926['push'](..._0x958990['reduce']((_0x216a2c,_0x510479)=>[..._0x216a2c,..._0x510479['getMarkerNames']()],[]));}_0x19657c['activeMarkers']=_0x543926;}['_addUIComponentsToFactory'](){const _0x30940f=this['editor'],_0xf6c332=_0x30940f['locale'],_0x20a79c=o(_0xf6c332,'Track\x20changes'),_0x4db925=new _0xfa107d([{'type':'switchbutton','model':new _0x12534b({'withText':!0x0,'isToggleable':!0x0,'label':_0x20a79c,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x12534b({'withText':!0x0,'label':o(_0xf6c332,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x12534b({'withText':!0x0,'label':o(_0xf6c332,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x12534b({'withText':!0x0,'label':o(_0xf6c332,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x12534b({'withText':!0x0,'label':o(_0xf6c332,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x30940f['plugins']['has']('TrackChangesPreview')&&_0x4db925['addMany']([{'type':'separator'},{'type':'button','model':new _0x12534b({'withText':!0x0,'label':o(_0xf6c332,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x2a08e6 of _0x4db925)if(ke(_0x2a08e6)){const _0x5abd73=_0x30940f['commands']['get'](_0x2a08e6['model']['commandName']);_0x2a08e6['model']['bind']('isOn','isEnabled')['to'](_0x5abd73,'value','isEnabled');}_0x30940f['ui']['componentFactory']['add']('trackChanges',_0x4e4f56=>this['_createToolbarButton'](_0x4e4f56,_0x4db925,_0x20a79c)),_0x30940f['ui']['componentFactory']['add']('menuBar:trackChanges',_0x4dbad1=>this['_createMenuBarMenu'](_0x4dbad1,_0x4db925,_0x20a79c));}['_createToolbarButton'](_0x2e3ed7,_0x32772b,_0x238387){const _0xac5a41=_0x292c0(_0x2e3ed7,_0x1da248),_0x46391d=this['editor']['commands']['get']('trackChanges');_0xac5a41['buttonView']['set']({'tooltip':_0x238387,'label':_0x238387,'icon':we}),_0xac5a41['buttonView']['bind']('isOn')['to'](_0x46391d,'value'),_0xac5a41['buttonView']['on']('execute',()=>{_0x46391d['execute'](),this['editor']['editing']['view']['focus']();}),_0x4243db(_0xac5a41,_0x32772b,{'role':'menu'});const _0x281a37=[];for(const _0xc291c9 of _0x32772b)ke(_0xc291c9)&&_0x281a37['push'](this['editor']['commands']['get'](_0xc291c9['model']['commandName']));const _0x20da19=_0xac5a41['buttonView'];return _0x20da19['actionView']['unbind']('isEnabled'),_0x20da19['arrowView']['unbind']('isEnabled'),_0x20da19['actionView']['bind']('isEnabled')['to'](_0x46391d,'isEnabled'),_0x20da19['arrowView']['bind']('isEnabled')['toMany'](_0x281a37,'isEnabled',(..._0x38ba48)=>_0x38ba48['some'](_0x3ccee3=>_0x3ccee3)),_0xac5a41['on']('execute',_0x370cf1=>{this['editor']['execute'](_0x370cf1['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0xac5a41;}['_createMenuBarMenu'](_0x24164b,_0x2f1b86,_0x490100){const _0x4ad6e2=new _0x4e2570(_0x24164b),_0x43cac9=this['editor']['commands']['get']('trackChanges');_0x4ad6e2['buttonView']['set']({'label':_0x490100,'icon':we});const _0x290e98=new _0x596de6(_0x24164b);for(const _0x10d305 of _0x2f1b86){if('separator'==_0x10d305['type']){_0x290e98['items']['add'](new _0x4bb519(_0x24164b));continue;}const _0x507796=new _0x2e60c3(_0x24164b,_0x4ad6e2),_0x769b06=new _0x296666(_0x24164b),_0x32de90=_0x10d305['model'];_0x769b06['bind'](...Object['keys'](_0x32de90))['to'](_0x32de90),_0x769b06['delegate']('execute')['to'](_0x4ad6e2),_0x769b06['on']('execute',()=>{this['editor']['execute'](_0x32de90['commandName']),this['editor']['editing']['view']['focus']();}),_0x507796['children']['add'](_0x769b06),_0x290e98['items']['add'](_0x507796);}return _0x4ad6e2['bind']('isEnabled')['to'](_0x43cac9,'isEnabled'),_0x4ad6e2['panelView']['children']['add'](_0x290e98),_0x4ad6e2;}['_initializeController'](_0x88b93c){const _0x3749f5=this['editor'],_0x452c80=_0x3749f5['config'],_0x3676f3=_0x3749f5['plugins']['get']('Annotations'),_0x4a0a74=_0x3749f5['plugins']['get']('CommentsRepository'),_0x4b7bc9=_0x3749f5['plugins']['get']('EditorAnnotations'),_0xff456d=_0x3749f5['plugins']['get'](_0x4d36d3)['me'],_0x3e9915=_0x452c80['get']('trackChanges')['SuggestionThreadView'],_0xcf668c=_0x452c80['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x1741a0,CommentThreadInputView:_0x176405}=_0x3749f5['plugins']['get']('CommentsUI');let _0x3c7fc2,_0x137366,_0x24c06c;this['_annotationViews']['has'](_0x88b93c['id'])?(_0x137366=this['_annotationViews']['get'](_0x88b93c['id']),_0x3c7fc2=_0x137366['mainView']):(_0x3c7fc2=new _0x3e9915(_0x3749f5['locale'],_0x88b93c,_0xff456d,{'disableComments':this['_disableComments'],'editorConfig':{..._0x452c80['get']('comments.editorConfig'),'licenseKey':_0x452c80['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x452c80['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x452c80['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x452c80['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x762855(_0x452c80['get']('locale')),'CommentView':_0x452c80['get']('comments')['CommentView'],'CommentsListView':_0x1741a0,'CommentThreadInputView':_0x176405,'SuggestionView':_0xcf668c}),_0x3c7fc2['suggestionView']['acceptButton']['on']('execute',()=>{_0x3749f5['editing']['view']['focus']();}),_0x3c7fc2['suggestionView']['discardButton']['on']('execute',()=>{_0x3749f5['editing']['view']['focus']();}),_0x137366=_0x3676f3['createAnnotationView'](this['editor']['locale'],_0x3c7fc2),_0x137366['bind']('isDirty')['to'](_0x3c7fc2,'isDirty'),_0x137366['bind']('length')['to'](_0x3c7fc2),_0x137366['bind']('type')['to'](_0x3c7fc2,'type',_0x25bd1c=>'suggestion-'+_0x25bd1c),_0x3c7fc2['on']('escape',()=>{_0x24c06c['fire']('escape');}),this['_annotationViews']['set'](_0x88b93c['id'],_0x137366));const _0xb4eb8d=_0x4a0a74['createCommentThreadController'](_0x88b93c['commentThread'],_0x3c7fc2),_0x3fcb84=new Ce(_0x3749f5,_0x88b93c,_0x3c7fc2,_0xb4eb8d),_0x5c44da=_0x88b93c['getAllAdjacentSuggestions']()['filter'](_0x42eaca=>_0x42eaca['isInContent']);_0x3c7fc2['descriptionParts']=_0x3749f5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x5c44da),this['_suggestionToController']['set'](_0x88b93c,_0x3fcb84),this['_viewToController']['set'](_0x3c7fc2,_0x3fcb84),_0x24c06c=_0x3676f3['createAnnotation']({'view':_0x137366,'target':()=>{const _0x3ab7ae=[],_0xfc063f=_0x88b93c['getAllAdjacentSuggestions']()['filter'](_0x3d02cb=>_0x3d02cb['isInContent']);for(const _0x1398b1 of _0xfc063f)_0x3ab7ae['push'](..._0x1398b1['getMarkers']());return _0x52fcf0(_0x3749f5['editing'],_0x3ab7ae);},'type':()=>'suggestion-'+_0x3fcb84['view']['type']}),_0x4a0a74['_bindAnnotationToEditors'](_0x3c7fc2,_0x24c06c),_0x3676f3['add'](_0x24c06c),_0x4b7bc9['registerAnnotation'](_0x24c06c);}['_destroyController'](_0x2e56a8){const _0xc314dc=this['editor']['plugins']['get']('CommentsRepository'),_0x27d8b7=this['editor']['plugins']['get']('Annotations'),_0x30254b=this['_suggestionToController']['get'](_0x2e56a8),_0x3e5e3a=_0x30254b['view'],_0x5dde00=_0x27d8b7['getByInnerView'](_0x3e5e3a);_0xc314dc['_unbindEditors'](_0x3e5e3a),_0x5dde00&&_0x27d8b7['remove'](_0x5dde00),this['_suggestionToController']['delete'](_0x2e56a8),this['_viewToController']['delete'](_0x3e5e3a),_0x30254b['destroy']();}['_updateController'](_0x2a47f1){if(!_0x2a47f1['isInContent']||!this['_suggestionToController']['has'](_0x2a47f1))return;const _0x11e04b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x17a253=this['_suggestionToController']['get'](_0x2a47f1),_0x322c5d=_0x2a47f1['getAllAdjacentSuggestions']();_0x17a253['view']['descriptionParts']=_0x11e04b['descriptionFactory']['getDescriptions'](_0x322c5d);}['destroy'](){for(const _0x3818f2 of this['_suggestionToController']['keys']())this['_destroyController'](_0x3818f2);for(const _0x584db3 of this['_annotationViews']['values']())_0x584db3['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x8deff1){return'model'in _0x8deff1;}class k extends _0x236dec{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x157335){this['editor']['plugins']['get'](p)['adapter']=_0x157335;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x3d0baa){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x3d0baa);}['getSuggestions']({skipNotAttached:_0x407ff6=!0x1,toJSON:_0x571dc3=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x407ff6,'toJSON':_0x571dc3});}['getSuggestion'](_0x428f52){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x428f52);}}const w=['Pagination'];class T extends _0x236dec{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x485c7f=this['editor'];if(_0x485c7f['config']['define']('trackChangesData.editorCreator',_0x3e01ac=>{const _0x5eafbd=_0x485c7f['model']['document']['getRootNames']()['reduce']((_0x2aa764,_0x3e1033)=>(_0x2aa764[_0x3e1033]='',_0x2aa764),{});return _0x485c7f['constructor']['create'](_0x5eafbd,_0x3e01ac);}),'function'!=typeof _0x485c7f['config']['get']('trackChangesData')['editorCreator'])throw new _0x1c08fa('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x1f6c5c){return N(this['editor'],!0x0,_0x1f6c5c);}['getDataWithDiscardedSuggestions'](_0xe2dc0b){return N(this['editor'],!0x1,_0xe2dc0b);}}class D extends _0x236dec{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x382b39){function _0x1f9150(_0x49389f){return _0x49389f['map'](_0x16755e=>String['fromCharCode'](_0x16755e))['join']('');}super(_0x382b39),this['result']='end',_0x382b39[_0x1f9150([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1f9150([0x76,0x69,0x65,0x77])][_0x1f9150([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1f9150([0x61,0x75,0x74,0x6f]),_0x382b39[_0x1f9150([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x1f9150([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1f9150([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x1f9150([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x1f9150([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(_0x1f489e){return void 0x0!==_0x1f489e['getRootsAttributes'];}async function N(_0x169657,_0x2562b5,_0x78824f){const _0x406bd6=_0x22d778(_0x169657,w);_0x406bd6['plugins']['push'](p,D),_0x406bd6['rootsAttributes']=Fe(_0x169657)?_0x169657['getRootsAttributes']():void 0x0;const _0x26fb6f=document['createDocumentFragment'](),_0x169e2a=_0x169657['config']['get']('trackChangesData')['editorCreator'],_0x155ef9=await _0x169e2a(_0x406bd6,()=>function(_0x20fa2a){const _0x128e69=document['createElement']('div');return _0x20fa2a['appendChild'](_0x128e69),_0x128e69;}(_0x26fb6f));!function(_0x2fae09,_0x4aa50f){const _0x9be240=_0x2fae09['model']['document']['getRootNames']()['reduce']((_0x16e921,_0x4a26b9)=>(_0x16e921[_0x4a26b9]=_0x2fae09['data']['get']({'rootName':_0x4a26b9}),_0x16e921),{}),_0x214f57=_0x2fae09['plugins']['get']('Users')['users']['map'](_0x5fbded=>({'id':_0x5fbded['id'],'name':_0x5fbded['name']})),_0x538950=_0x2fae09['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x8f8244=_0x2fae09['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5c0258=_0x4aa50f['plugins']['get']('Users'),_0x33cd47=_0x4aa50f['plugins']['get']('TrackChangesEditing'),_0x583ba4=_0x4aa50f['plugins']['get']('CommentsRepository');for(const _0x3bcf44 of _0x583ba4['getCommentThreads']())_0x3bcf44['remove']();for(const _0x3e07e9 of _0x214f57)_0x5c0258['getUser'](_0x3e07e9['id'])||_0x5c0258['addUser'](_0x3e07e9);_0x5c0258['me']||_0x5c0258['useAnonymousUser']();for(const _0x46dcda of _0x8f8244)_0x583ba4['addCommentThread'](_0x46dcda);for(const _0x403bb8 of _0x538950)_0x33cd47['addSuggestionData'](_0x403bb8);_0x4aa50f['data']['set'](_0x9be240);}(_0x169657,_0x155ef9),_0x155ef9['execute'](_0x2562b5?'acceptAllSuggestions':'discardAllSuggestions');const _0x3961ec=Fe(_0x155ef9)?_0x155ef9['getFullData'](_0x78824f):_0x155ef9['data']['get'](_0x78824f);return await _0x155ef9['destroy'](),_0x3961ec;}class Me extends _0x10742a{['options'];constructor(_0xe13562,_0x51ba5a){super(_0xe13562),this['options']=_0x51ba5a,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'](_0x29525a,_0x2a505e){if(!this['element'])return;const _0x4cffa6=[];for(const [_0x4d2c19,_0x4a5b65]of _0x29525a){const _0xe4f667=document['createElement']('div');_0xe4f667['setAttribute']('data-ck-root-name',_0x4d2c19),_0xe4f667['className']=_0x4a5b65['classes']+'\x20ck-track-changes-preview__root-container',_0xe4f667['innerHTML']=_0x4a5b65['content'],_0x4cffa6['push'](_0xe4f667);}_0x2a505e(this['element'],_0x4cffa6),this['element']['style']['width']='',this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends Qt{constructor(_0x2f95ee){super(_0x2f95ee),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x279206=this['editor'],_0x25d3c0=_0x279206['locale'],_0x56d3f2=_0x279206['plugins']['get']('Dialog');let _0x87f73c;const _0x339418=function(_0x9e4e46){const _0x1e37c7={};if('editables'in _0x9e4e46['ui']['view']){for(const [_0x20917c,_0x365a51]of Object['entries'](_0x9e4e46['ui']['view']['editables']))_0x1e37c7[_0x20917c]=_0x365a51['element'];}else _0x1e37c7[_0x9e4e46['model']['document']['getRootNames']()[0x0]]=_0x9e4e46['ui']['view']['editable']['element'];return _0x1e37c7;}(_0x279206),_0x4fa92c=function(_0x5948fd){let _0x45d4a3=0x0;for(const _0xa5b3d7 of Object['values'](_0x5948fd))_0x45d4a3=Math['max'](_0x45d4a3,_0xa5b3d7['getBoundingClientRect']()['width']);let _0x5c26b9=0x0;for(const _0x5e3a37 of Object['values'](_0x5948fd))_0x5c26b9+=_0x5e3a37['getBoundingClientRect']()['height'];const _0x406f46=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x38b452=Math['min'](_0x5c26b9,_0x406f46);return{'width':_0x45d4a3,'height':_0x38b452};}(_0x339418);_0x56d3f2['show']({'id':'finalContentPreview','title':o(_0x25d3c0,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x25d3c0,{'dialogRects':_0x4fa92c}),'onHide':()=>{_0x87f73c['detachFromDom']();},'onShow':()=>{_0x279206['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x4ef909=>{const _0x293658=this['_standarizeRootsData'](_0x4ef909,_0x279206,_0x339418);_0x56d3f2['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x293658,_0x279206['config']['get']('trackChanges.preview.renderFunction'));}),_0x87f73c=new _0x38f9f9(_0x25d3c0,[_0x56d3f2['view']]),_0x87f73c['attachToDom'](),_0x87f73c['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x279206['once']('destroy',()=>{_0x87f73c['detachFromDom']();});const _0xec128d=_0x56d3f2['view']['headerView']['class'];_0x56d3f2['view']['headerView']['class']=_0xec128d?_0xec128d+'\x20ck-reset_all':'ck-reset_all',_0x56d3f2['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x56d3f2['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x7dbcf9=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x57af5b=_0x7dbcf9['previewMode'],_0xad79cb={};if('$labels'===_0x57af5b){for(const _0x2d6f00 of _0x7dbcf9['getMergeFieldsIds']())_0xad79cb[_0x2d6f00]=_0x7dbcf9['getLabel'](_0x2d6f00)||_0x2d6f00;}else{const _0x3e59f2='$defaultValues'===_0x57af5b?_0x7dbcf9['getDefaultValues']():_0x7dbcf9['getDataSetValues'](_0x57af5b,!0x0);for(const _0x2727fb of Object['entries'](_0x3e59f2)){const [_0x2b85fe,_0x11f96a]=_0x2727fb;_0xad79cb[_0x2b85fe]=null!==_0x11f96a?_0x11f96a:_0x7dbcf9['getLabel'](_0x2b85fe)||_0x2b85fe;}}return{'mergeFieldsData':_0xad79cb};}['_standarizeRootsData'](_0x2e8a41,_0x1477bf,_0x1ced5a){let _0x139a6b;if('string'==typeof _0x2e8a41){const _0x1e12b3=_0x1477bf['model']['document']['getRootNames']()[0x0];_0x139a6b={[_0x1e12b3]:_0x2e8a41};}else _0x139a6b=_0x2e8a41;const _0x1568be=this['_fixMediaEmbeds'](_0x139a6b,_0x1477bf),_0xbcbaf3=function(_0x5d6162,_0x4caa02){for(const [_0x25e2c7,_0x6c13ec]of _0x5d6162)_0x6c13ec['classes']=_0x4caa02[_0x25e2c7]['classList']['value']['replace']('ck-focused','');return _0x5d6162;}(this['_sortRoots'](_0x1477bf)['reduce']((_0x4236ef,_0x7063c6)=>(_0x4236ef['push']([_0x7063c6,{'content':_0x1568be[_0x7063c6],'classes':''}]),_0x4236ef),[]),_0x1ced5a);return _0xbcbaf3;}['_fixMediaEmbeds'](_0x29ee63,_0x37a079){if(!_0x37a079['plugins']['has']('MediaEmbedEditing'))return _0x29ee63;const _0x4c9db6=_0x37a079['plugins']['get']('MediaEmbedEditing');for(const [_0x5ea41d,_0x3e7be7]of Object['entries'](_0x29ee63)){const _0x5af163=document['createElement']('div');_0x5af163['innerHTML']=_0x3e7be7,(_0x5af163['querySelectorAll']('figure.media')['forEach'](_0x4d51ed=>{const _0x42d29f=_0x4d51ed['querySelector']('oembed');if(_0x42d29f){const _0x45729f=_0x42d29f['getAttribute']('url');if(_0x45729f){const _0x3935c8=_0x4c9db6['registry']['getMediaViewElement'](new _0x3ecfa8(_0x37a079['editing']['view']['document']),_0x45729f,{'elementName':'','renderForEditingView':!0x0}),_0x8c58a8=document['createElement']('div');_0x8c58a8['classList']['add']('ck-media__wrapper'),_0x3935c8['render'](_0x8c58a8,_0x37a079['editing']['view']['domConverter']),_0x42d29f['replaceWith'](_0x8c58a8);}}}),_0x29ee63[_0x5ea41d]=_0x5af163['innerHTML']);}return _0x29ee63;}['_sortRoots'](_0xd9190c){if(!function(_0x37f334){return void 0x0!==_0x37f334['getRootsAttributes'];}(_0xd9190c))return _0xd9190c['model']['document']['getRootNames']();const _0x293675=[],_0x597a3c=new Map();for(const _0x1466d7 of _0xd9190c['model']['document']['getRootNames']()){const _0x343d88=_0xd9190c['editing']['view']['getDomRoot'](_0x1466d7)['getClientRects']()['item'](0x0);_0x293675['push'](_0x1466d7),_0x597a3c['set'](_0x1466d7,_0x343d88);}return _0x293675['sort']((_0x18ea40,_0x11bec7)=>{const _0x2f61ab=_0x597a3c['get'](_0x18ea40),_0x37aa44=_0x597a3c['get'](_0x11bec7);return _0x2f61ab['y']-_0x37aa44['y']||_0x2f61ab['x']-_0x37aa44['x'];}),_0x293675;}}class te extends _0x236dec{static get['requires'](){return[T,_0xe20bdc];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x244fb2){super(_0x244fb2),_0x244fb2['commands']['add']('previewFinalContent',new re(this['editor'])),_0x244fb2['config']['define']('trackChanges.preview.renderFunction',(_0x6f7e3a,_0x59f565)=>{for(const _0xf841fc of _0x59f565)_0x6f7e3a['appendChild'](_0xf841fc);});}}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};
|