@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20250213.0 → 0.0.0-nightly-20250214.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/emoji.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/imagestyle.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/legacylist.js +1 -1
- package/src/integrations/legacylistproperties.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/mergefields.js +1 -1
- package/src/integrations/multilevellist.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/replacesourcecommand.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/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 Yt,Plugin as
|
|
24
|
-
_0x5c5c94(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x535d8b,_0x13599d){super(),this['id']=_0x13599d['id'],this['type']=_0x13599d['type'],this['subType']=_0x13599d['subType']||null,this['author']=_0x13599d['author'],this['creator']=_0x13599d['creator']||_0x13599d['author'],this['isExternal']=Boolean(_0x13599d['attributes']&&_0x13599d['attributes']['@external']),this['data']=null,this['_model']=_0x535d8b,this['_onAccept']=_0x13599d['onAccept'],this['_onDiscard']=_0x13599d['onDiscard'],this['_onAttributesChange']=_0x13599d['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x13599d['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 _0xba1e7f=this;for(;_0xba1e7f['previous'];)_0xba1e7f=_0xba1e7f['previous'];return _0xba1e7f;}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'](_0x45d714){this['_markerNames']['add'](_0x45d714);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x9b7c8e=>this['_model']['markers']['get'](_0x9b7c8e))['filter'](_0x1650c4=>_0x1650c4);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x1de15f=>{for(const _0x297350 of this['getMarkers']())_0x1de15f['removeMarker'](_0x297350);}),this['_markerNames']['clear']();}['removeMarker'](_0xfaeb21){this['_model']['change'](_0x1dad7a=>{_0x1dad7a['removeMarker'](_0xfaeb21);}),this['_markerNames']['delete'](_0xfaeb21);}['addRange'](_0x5befa0){const _0x150478='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x150478),this['_model']['change'](_0x4f12fe=>{_0x4f12fe['addMarker'](_0x150478,{'range':_0x5befa0,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x4b27ba){for(const _0xfb3530 of this['getRanges']())if(_0xfb3530['isIntersecting'](_0x4b27ba))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x2a331f=>_0x2a331f['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x40f790,_0x3d3c94)=>[..._0x40f790,..._0x3d3c94['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x37658d=this['getRanges']();if(0x1!=_0x37658d['length'])return null;const _0x19cda3=_0x37658d[0x0],_0x10cf31=_0x19cda3['start']['nodeAfter'],_0x23d402=_0x19cda3['end']['nodeBefore'];return _0x10cf31 instanceof _0xa45e54?_0x10cf31!=_0x23d402?null:_0x10cf31: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 _0x1636ef=[];let _0x2ce3e6=this['head'];for(;_0x2ce3e6;)_0x1636ef['push'](_0x2ce3e6),_0x2ce3e6=_0x2ce3e6['next'];return _0x1636ef;}['setAttribute'](_0x407c68,_0xa2b57d){const _0x13e1f1=_0x161941(this['attributes']);_0x18dbd3(_0x13e1f1,_0x407c68,_0xa2b57d),_0x221df5(_0x13e1f1,this['attributes'])||(this['attributes']=_0x13e1f1,this['_onAttributesChange'](_0x13e1f1));}['removeAttribute'](_0x35e488){const _0x3ffd28=_0x161941(this['attributes']);_0x570c98(_0x3ffd28,_0x35e488),_0x221df5(_0x3ffd28,this['attributes'])||(this['attributes']=_0x3ffd28,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 _0x19169b()['substr'](0x1,0x5);}}function o(_0x59d13f,_0x12b4a0,_0x401e6e){const _0x22bd1e=_0x59d13f['t'],t=_0x59d13f['t'];switch(_0x12b4a0){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',_0x401e6e);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x401e6e);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x401e6e);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x401e6e);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x401e6e);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',_0x401e6e);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x401e6e);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',_0x401e6e);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x401e6e);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x401e6e);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x401e6e);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x401e6e);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x401e6e);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x401e6e);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x401e6e);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x401e6e);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x401e6e);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x401e6e);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x401e6e);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x401e6e);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x401e6e);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x401e6e);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x401e6e);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x401e6e);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'},_0x401e6e);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x401e6e);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x401e6e);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x401e6e);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x401e6e);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x401e6e);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'},_0x401e6e);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x401e6e);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x401e6e);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x401e6e);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x401e6e);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'},_0x401e6e);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x401e6e);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'},_0x401e6e);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'},_0x401e6e);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x401e6e);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'},_0x401e6e);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x401e6e);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'},_0x401e6e);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x401e6e);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x401e6e);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'},_0x401e6e);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x401e6e);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 _0x22bd1e({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x401e6e);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x22bd1e({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x401e6e);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x401e6e);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'},_0x401e6e);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'},_0x401e6e);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'},_0x401e6e);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x12b4a0;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0xae334,_0x10cd7c){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0xae334,this['_locale']=_0x10cd7c;}['getDescriptions'](_0x31c3cf){const _0x420755=[],_0x221324=new Set(),_0x11d895=new Set();for(let _0x53a8e3=0x0;_0x53a8e3<_0x31c3cf['length'];_0x53a8e3++){const _0x597dc9=_0x31c3cf[_0x53a8e3];if(!_0x597dc9['isInContent'])continue;const _0x5971e9=this['_handleCustomCallbackDescription'](_0x597dc9);if(_0x5971e9){if(null!=_0x597dc9['subType']){if(_0x221324['has'](_0x597dc9['subType']))continue;_0x221324['add'](_0x597dc9['subType']);}_0x420755['push'](_0x5971e9);}else{if('attribute'!=_0x597dc9['type'])'insertion'!=_0x597dc9['type']&&'deletion'!=_0x597dc9['type']||this['_handleInsertRemoveSuggestionDescription'](_0x420755,_0x597dc9,_0x31c3cf[_0x53a8e3+0x1]);else{const _0x275dc2=_0x597dc9['data']['key'];if(_0x11d895['has'](_0x275dc2))continue;_0x11d895['add'](_0x597dc9['data']['key']),_0x275dc2==m?this['_handleRenameSuggestionDescription'](_0x420755,_0x597dc9):this['_handleAttributeSuggestionDescription'](_0x420755,_0x597dc9);}}}return this['_resolveDescriptionItems'](_0x420755);}['registerDescriptionCallback'](_0x37230d){this['_customCallbacks']['push'](_0x37230d);}['registerElementLabel'](_0x3bb517,_0x4dc22f,_0x119514=_0x1c0c28['normal']){'function'==typeof _0x3bb517?_0x4d2dd3(this['_itemLabelsCallbacks'],{'matchingCallback':_0x3bb517,'label':_0x4dc22f,'priority':_0x119514}):this['_itemLabels']['set'](_0x3bb517,_0x4dc22f);}['registerAttributeLabel'](_0x1e57cc,_0x33ee2d){this['_attributeLabels']['set'](_0x1e57cc,_0x33ee2d);}['getItemLabel'](_0x39afa1,_0x56f2de=0x1){let _0x252435;for(const _0x5eb76b of this['_itemLabelsCallbacks'])if(_0x5eb76b['matchingCallback'](_0x39afa1)){_0x252435=_0x5eb76b['label'];break;}return _0x252435||(_0x252435=this['_itemLabels']['get'](_0x39afa1['name'])),_0x252435?_0x252435(_0x56f2de):0x1!==_0x56f2de?_0x56f2de+'\x20'+_0x39afa1['name']+'s':''+_0x39afa1['name'];}['_addDescriptionItems'](_0x5b97e7,_0x5db7ef){const _0x3d1f34=_0x5db7ef['getFirstRange']()['getWalker'](),_0x23afca='insertion'==_0x5db7ef['type']?'add':'remove';for(const _0x503506 of _0x3d1f34){const _0x304181=_0x503506['item'],_0x18c489=_0x5b97e7[_0x5b97e7['length']-0x1];if(_0x304181['is']('$textProxy'))_0x18c489&&_0x18c489['type']['indexOf']('Container')>-0x1&&_0x5b97e7['pop'](),_0x18c489&&'text'==_0x18c489['type']?_0x18c489[_0x23afca]+=_0x304181['data']:_0x5b97e7['push']({'type':'text','add':'add'==_0x23afca?_0x304181['data']:'','remove':'remove'==_0x23afca?_0x304181['data']:''});else{if(this['_schema']['isObject'](_0x304181)){const _0x3d6bfd=_0x304181;if(_0x18c489&&_0x18c489['type']['indexOf']('Container')>-0x1&&_0x5b97e7['pop'](),'elementEnd'==_0x503506['type'])continue;_0x18c489&&_0x18c489['type']==_0x23afca+'Object'&&_0x18c489['element']['name']==_0x3d6bfd['name']?_0x18c489['quantity']++:_0x5b97e7['push']({'type':_0x23afca+'Object','element':_0x3d6bfd,'quantity':0x1}),_0x3d1f34['skip'](_0x427611=>!('elementEnd'==_0x427611['type']&&_0x427611['item']==_0x304181));}else{if(this['_schema']['checkChild'](_0x304181,'$text')||_0x304181['is']('element','softBreak')){const _0x3714b4=_0x304181;if('add'==_0x23afca&&'elementStart'==_0x503506['type']||'remove'==_0x23afca&&'elementEnd'==_0x503506['type'])continue;if(_0x18c489&&-0x1==_0x18c489['type']['indexOf']('Container')){'text'==_0x18c489['type']&&(_0x18c489[_0x23afca]+='\x0a');continue;}let _0x4246a9;if(_0x4246a9='add'==_0x23afca?_0x3714b4['nextSibling']&&!this['_schema']['isObject'](_0x3714b4['nextSibling'])?_0x3714b4['nextSibling']:null:_0x3714b4['previousSibling']&&!this['_schema']['isObject'](_0x3714b4['previousSibling'])?_0x3714b4['previousSibling']:null,_0x3714b4['isEmpty']||_0x4246a9&&_0x4246a9['isEmpty']){const _0x556d94=_0x4246a9&&_0x4246a9['isEmpty']?_0x4246a9:_0x3714b4;_0x18c489&&_0x18c489['type']==_0x23afca+'EmptyContainer'&&_0x18c489['element']['name']==_0x556d94['name']?_0x18c489['quantity']++:_0x5b97e7['push']({'type':_0x23afca+'EmptyContainer','element':_0x556d94,'quantity':0x1});}else _0x5b97e7['push']({'type':_0x23afca+'Container','element':_0x3714b4});}}}}}['_resolveDescriptionItems'](_0x34cd81){const _0x4cbc9c=this['_locale'],_0x544a85=[],_0x448ed8=[],_0x3daa76=[];for(const _0x4aff7b of _0x34cd81)switch(_0x4aff7b['type']){case'text':if(_0x4aff7b['add']=_0x4aff7b['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x4aff7b['remove']=_0x4aff7b['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x4aff7b['add']&&''!=_0x4aff7b['remove']){_0x544a85['push']({'type':'replace','content':o(_0x4cbc9c,'REPLACE_TEXT',['\x22'+_0x4aff7b['remove']+'\x22','\x22'+_0x4aff7b['add']+'\x22'])});continue;}if(null!=_0x4aff7b['add']['match'](/^ +$/)){_0x544a85['push']({'type':'insertion','content':o(_0x4cbc9c,'*Insert:*\x20%0',o(_0x4cbc9c,'ELEMENT_SPACE',_0x4aff7b['add']['length']))});continue;}if(null!=_0x4aff7b['remove']['match'](/^ +$/)){_0x544a85['push']({'type':'deletion','content':o(_0x4cbc9c,'*Remove:*\x20%0',o(_0x4cbc9c,'ELEMENT_SPACE',_0x4aff7b['remove']['length']))});continue;}if(''!=_0x4aff7b['add']){_0x544a85['push']({'type':'insertion','content':o(_0x4cbc9c,'*Insert:*\x20%0','\x22'+_0x4aff7b['add']+'\x22')});continue;}_0x544a85['push']({'type':'deletion','content':o(_0x4cbc9c,'*Remove:*\x20%0','\x22'+_0x4aff7b['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x544a85['push']({'type':'insertion','content':o(_0x4cbc9c,'*Insert:*\x20%0',this['getItemLabel'](_0x4aff7b['element'],_0x4aff7b['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x544a85['push']({'type':'deletion','content':o(_0x4cbc9c,'*Remove:*\x20%0',this['getItemLabel'](_0x4aff7b['element'],_0x4aff7b['quantity']))});continue;case'addContainer':_0x544a85['push']({'type':'insertion','content':o(_0x4cbc9c,'*Split:*\x20%0',this['getItemLabel'](_0x4aff7b['element'],_0x4aff7b['quantity']))});continue;case'removeContainer':_0x544a85['push']({'type':'deletion','content':o(_0x4cbc9c,'*Merge:*\x20%0',this['getItemLabel'](_0x4aff7b['element'],_0x4aff7b['quantity']))});continue;case'addFormat':_0x448ed8['push'](_0x4aff7b['key']);continue;case'removeFormat':_0x3daa76['push'](_0x4aff7b['key']);continue;default:_0x544a85['push'](_0x4aff7b);}if(_0x448ed8['length']){const _0x2301cb=_0x448ed8['map'](_0x2e0323=>this['_attributeLabels']['has'](_0x2e0323)?this['_attributeLabels']['get'](_0x2e0323):_0x2e0323)['join'](',\x20');_0x544a85['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x2301cb)});}if(_0x3daa76['length']){const _0xcd9f42=_0x3daa76['map'](_0x1337d3=>this['_attributeLabels']['has'](_0x1337d3)?this['_attributeLabels']['get'](_0x1337d3):_0x1337d3)['join'](',\x20');_0x544a85['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0xcd9f42)});}return _0x544a85;}['_handleCustomCallbackDescription'](_0x31897e){for(const _0x1b3881 of this['_customCallbacks']){const _0x2b9717=_0x1b3881(_0x31897e);if(_0x2b9717&&'type'in _0x2b9717)return _0x2b9717;}}['_handleAttributeSuggestionDescription'](_0x9578e8,_0x265abd){const _0x2e3036=_0x265abd['data'],_0x320ec3=void 0x0===_0x2e3036['newValue']?'removeFormat':'addFormat';_0x9578e8['push']({'type':_0x320ec3,'key':_0x2e3036['key']});}['_handleRenameSuggestionDescription'](_0x48d31f,_0x2a5e69){_0x48d31f['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x2a5e69['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x10361f,_0x4e23ca,_0x387096){if(this['_addDescriptionItems'](_0x10361f,_0x4e23ca),_0x387096&&_0x387096['getFirstRange']()&&!_0x4e23ca['getFirstRange']()['end']['isEqual'](_0x387096['getFirstRange']()['start'])){const _0x101ed9=_0x10361f[_0x10361f['length']-0x1],_0x2ad72c='insertion'==_0x4e23ca['type']?'add':'remove';_0x101ed9&&'text'==_0x101ed9['type']&&(_0x101ed9[_0x2ad72c]+='\x0a');}}}class U extends _0x115581{['afterInit'](){const _0x1c593b=this['editor'],_0x4bcc29=_0x1c593b['plugins']['get']('TrackChangesEditing');_0x1c593b['commands']['get']('showAIAssistant')&&_0x4bcc29['enableCommand']('showAIAssistant');}}class V extends _0x115581{['afterInit'](){const _0x350c60=this['editor'],_0x3c4dc9=_0x350c60['locale'];if(!_0x350c60['plugins']['has']('AlignmentEditing'))return;const _0x36ac79=_0x350c60['plugins']['get']('TrackChangesEditing');_0x36ac79['enableDefaultAttributesIntegration']('alignment'),_0x36ac79['registerBlockAttribute']('alignment'),_0x36ac79['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x3c4dc9,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x44902e=this['editor'],_0x28f312=_0x44902e['locale'];_0x44902e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2bf061=>{if('formatBlock'!=_0x2bf061['type'])return;const {data:_0x3d64ec}=_0x2bf061;if(_0x3d64ec&&'alignment'==_0x3d64ec['commandName']){const _0x20b006=_0x3d64ec['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x28f312,'*Format:*\x20%0',function(_0x5beece){switch(_0x5beece){case'left':return o(_0x28f312,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x28f312,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x28f312,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x28f312,'FORMAT_JUSTIFY_TEXT');}}(_0x20b006))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x115581{['afterInit'](){const _0x443b35=this['editor'],_0x58f65b=_0x443b35['plugins']['get']('TrackChangesEditing'),_0x40c714=_0x443b35['locale'];for(const _0x187b3b of ti){if(!_0x443b35['plugins']['has'](_0x187b3b))continue;const _0x21c8d2=_0x187b3b['slice'](0x0,-0x7)['toLowerCase'](),_0x2425c2='FORMAT_'+_0x21c8d2['toUpperCase']();_0x58f65b['enableDefaultAttributesIntegration'](_0x21c8d2),_0x58f65b['registerInlineAttribute'](_0x21c8d2),_0x58f65b['descriptionFactory']['registerAttributeLabel'](_0x21c8d2,o(_0x40c714,_0x2425c2));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2420cb=this['editor'],_0x104929=_0x2420cb['locale'],_0x375bb4=_0x2420cb['plugins']['get']('TrackChangesEditing');function _0x303c02(_0x20f64e,_0x3f349f){_0x375bb4['descriptionFactory']['registerDescriptionCallback'](_0x442fad=>{if('formatInline'!=_0x442fad['type'])return;const {data:_0x5b216a}=_0x442fad;return _0x5b216a&&_0x5b216a['commandName']===_0x20f64e?_0x5b216a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x104929,'*Format:*\x20%0',_0x3f349f)}:{'type':'format','content':o(_0x104929,'*Remove\x20format:*\x20%0',_0x3f349f)}:void 0x0;});}_0x303c02('bold',o(_0x104929,'FORMAT_BOLD')),_0x303c02('italic',o(_0x104929,'FORMAT_ITALIC')),_0x303c02('underline',o(_0x104929,'FORMAT_UNDERLINE')),_0x303c02('code',o(_0x104929,'FORMAT_CODE')),_0x303c02('strikethrough',o(_0x104929,'FORMAT_STRIKETHROUGH')),_0x303c02('subscript',o(_0x104929,'FORMAT_SUBSCRIPT')),_0x303c02('superscript',o(_0x104929,'FORMAT_SUPERSCRIPT'));}}class F extends _0x115581{['afterInit'](){const _0x745c4=this['editor'],_0x5d2956=_0x745c4['locale'];if(!_0x745c4['plugins']['has']('BlockQuoteEditing'))return;const _0x51cb1b=_0x745c4['plugins']['get']('TrackChangesEditing'),_0x414bdf=this['editor']['commands']['get']('blockQuote');_0x51cb1b['enableCommand']('blockQuote',(_0x310526,_0x55bfe6={})=>{const _0x4aec54=this['editor']['model']['document']['selection'],_0x14f95d=_0x55bfe6&&void 0x0!==_0x55bfe6['forceValue']?_0x55bfe6['forceValue']:!_0x414bdf['value'];let _0x129e67=[];if(_0x14f95d){const _0x5dcc75=Array['from'](_0x4aec54['getSelectedBlocks']())['filter'](_0x2dafda=>oo(_0x2dafda)||function(_0x4aab91,_0x7addcd){const _0x1d4c07=_0x7addcd['checkChild'](_0x4aab91['parent'],'blockQuote'),_0x281d3f=_0x7addcd['checkChild'](['$root','blockQuote'],_0x4aab91);return _0x1d4c07&&_0x281d3f;}(_0x2dafda,this['editor']['model']['schema']));_0x129e67=to(_0x5dcc75,_0x745c4['model']);}else{const _0xa053ee=Array['from'](_0x4aec54['getSelectedBlocks']())['filter'](_0x30e1c1=>oo(_0x30e1c1));_0x129e67=to(_0xa053ee,_0x745c4['model']);}_0x745c4['model']['change'](()=>{for(const _0x187ec3 of _0x129e67)_0x51cb1b['markBlockFormat'](_0x187ec3,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x14f95d}]});});}),_0x51cb1b['descriptionFactory']['registerDescriptionCallback'](_0x57ae4d=>{const {data:_0x7caa7d}=_0x57ae4d;if(_0x7caa7d&&'blockQuote'==_0x7caa7d['commandName']){const _0x438679=o(_0x5d2956,'ELEMENT_BLOCK_QUOTE');return _0x7caa7d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5d2956,'*Set\x20format:*\x20%0',_0x438679)}:{'type':'format','content':o(_0x5d2956,'*Remove\x20format:*\x20%0',_0x438679)};}});}}function oo(_0xc8aeb1){return'blockQuote'==_0xc8aeb1['parent']['name'];}class L extends _0x115581{['afterInit'](){const _0x57340d=this['editor'],_0x5e14ee=_0x57340d['locale'],_0x52782b=_0x57340d['plugins']['get']('TrackChangesEditing');_0x57340d['plugins']['has']('BookmarkEditing')&&(_0x52782b['enableCommand']('insertBookmark'),_0x52782b['enableDefaultAttributesIntegration']('updateBookmark'),_0x52782b['registerBlockAttribute']('bookmarkId'),_0x52782b['descriptionFactory']['registerDescriptionCallback'](_0xb2d696=>{if('insertion'!=_0xb2d696['type']&&'deletion'!=_0xb2d696['type']&&'attribute'!=_0xb2d696['type'])return;const _0x1013fe=_0xb2d696['getContainedElement']();if(null==_0x1013fe)return;if(!_0x1013fe['is']('element','bookmark'))return;const _0x5733d2=_0x1013fe['getAttribute']('bookmarkId');if('insertion'==_0xb2d696['type'])return{'type':'insertion','content':o(_0x5e14ee,'*Insert:*\x20%0','\x22'+_0x5733d2+'\x22\x20'+o(_0x5e14ee,'ELEMENT_BOOKMARK'))};if('deletion'==_0xb2d696['type'])return{'type':'deletion','content':o(_0x5e14ee,'*Remove:*\x20%0','\x22'+_0x5733d2+'\x22\x20'+o(_0x5e14ee,'ELEMENT_BOOKMARK'))};const {data:_0x316ff8}=_0xb2d696;if(!_0x316ff8||'bookmarkId'!=_0x316ff8['key'])return;return{'type':'format','content':o(_0x5e14ee,'*Set\x20bookmark:*\x20%0','\x22'+_0x316ff8['newValue']+'\x22')};}));}}class J extends _0x115581{['afterInit'](){const _0x364de8=this['editor'];_0x364de8['plugins']['has']('CaseChange')&&(_0x364de8['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x364de8['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x364de8['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x115581{['afterInit'](){const _0x7ce69=this['editor'];_0x7ce69['commands']['get']('ckbox')&&_0x7ce69['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x115581{['afterInit'](){const _0x193ceb=this['editor'];if(!_0x193ceb['plugins']['has']('CodeBlock'))return;const _0x320191=_0x193ceb['plugins']['get']('TrackChangesEditing'),_0x3e103b=_0x193ceb['locale'],_0x3baeb4=_0x193ceb['config']['get']('codeBlock')['languages'],_0x14d47a=_0x193ceb['commands']['get']('codeBlock');_0x320191['enableCommand']('indentCodeBlock'),_0x320191['enableCommand']('outdentCodeBlock'),_0x320191['enableCommand']('codeBlock',(_0x3e23de,_0x393677={})=>{const _0x57de7f=_0x193ceb['model'],_0x3d74c=_0x193ceb['model']['document']['selection'],_0x22109d=_0x393677&&void 0x0!==_0x393677['forceValue']?_0x393677['forceValue']:!_0x14d47a['value'];let _0x1653c0;_0x393677['language']||(_0x393677['language']=_0x3baeb4[0x0]['language']),_0x1653c0=_0x22109d?Array['from'](_0x3d74c['getSelectedBlocks']())['filter'](_0x47dece=>eo(_0x47dece)||function(_0xfd4ab4,_0x2d0d8d){if(_0xfd4ab4['is']('rootElement')||_0x2d0d8d['isLimit'](_0xfd4ab4))return!0x1;return _0x2d0d8d['checkChild'](_0xfd4ab4['parent'],'codeBlock');}(_0x47dece,_0x57de7f['schema'])):Array['from'](_0x3d74c['getSelectedBlocks']())['filter'](_0x364095=>eo(_0x364095));const _0x35c4c0=to(_0x1653c0,_0x57de7f);_0x57de7f['change'](()=>{for(const _0x5a08b2 of _0x35c4c0)_0x320191['markBlockFormat'](_0x5a08b2,{'commandName':'codeBlock','commandParams':[{..._0x393677,'forceValue':_0x22109d}],'formatGroupId':'blockName'});});}),(_0x320191['descriptionFactory']['registerElementLabel']('codeBlock',_0x76a21c=>o(_0x3e103b,'ELEMENT_CODE_BLOCK',_0x76a21c)),_0x320191['descriptionFactory']['registerDescriptionCallback'](_0x233e83=>{if('formatBlock'!=_0x233e83['type'])return;const _0x4c3418=_0x3e103b['t'],{data:_0x1295b7}=_0x233e83;if(!_0x1295b7||'codeBlock'!=_0x1295b7['commandName'])return;const _0x1b7abe=_0x1295b7['commandParams'][0x0]['language'],_0x370093=_0x4c3418(_0x3baeb4['find'](_0x41c711=>_0x41c711['language']===_0x1b7abe)['label'])['toLowerCase']();return _0x1295b7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3e103b,'*Set\x20format:*\x20%0',o(_0x3e103b,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x370093+')')}:{'type':'format','content':o(_0x3e103b,'*Remove\x20format:*\x20%0',o(_0x3e103b,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x1576bb){return'codeBlock'==_0x1576bb['name'];}class z extends _0x115581{['afterInit'](){const _0x56ea30=this['editor'];if(!_0x56ea30['plugins']['has']('CommentsEditing'))return;_0x56ea30['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x55de90,_0x2668ed,_0x5ed520){const _0x3866eb=[];for(const _0x492b7e of _0x2668ed['getItems']())_0x492b7e['hasAttribute'](_0x55de90)&&_0x3866eb['push'](_0x5ed520['createRangeOn'](_0x492b7e));return _0x3866eb;}function De(_0x5a2ef8,_0x4b4e9f,{showActiveMarker:_0x90ed8f=!0x0}={}){const _0x21096a=_0x5a2ef8['plugins']['get']('TrackChangesEditing');return(_0x53a057,_0x47f1fd,_0x217d6f)=>{if(!_0x217d6f['consumable']['test'](_0x47f1fd['markerRange'],_0x53a057['name']))return;const _0x3d4d54=_0x47f1fd['markerRange']['getWalker'](),_0x14a782=_0x47f1fd['markerRange']['start'],_0x5399fb=_0x5a2ef8['model']['schema'];let _0x54b58a=null,_0x50ad57=null,_0x350d93=!0x1,_0x1983f0=!0x1;for(const _0xb1b99c of _0x3d4d54){const _0x3b10d5=_0xb1b99c['item'];_0x350d93=_0x350d93||_0x5399fb['isContent'](_0x3b10d5);const _0x49e7a9=_0x217d6f['mapper']['toViewElement'](_0x3b10d5);if(_0x49e7a9&&_0x49e7a9['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xb1b99c['type']&&(_0x5399fb['isBlock'](_0x3b10d5)&&!_0x5399fb['isLimit'](_0x3b10d5)&&(_0x3b10d5['nextSibling']||_0x14a782['isAtEnd']?_0x54b58a&&_0x54b58a['parent']==_0x3b10d5||(_0x54b58a=_0x3b10d5,_0x47c59e(_0xb1b99c['previousPosition']),_0x1983f0=!0x0):_0x50ad57=_0x50ad57||_0xb1b99c['previousPosition']));}function _0x47c59e(_0x4cf190){const {authorId:_0x1f6327}=_0x21096a['_splitMarkerName'](_0x47f1fd['markerName']),_0x4bd9ca=_0x217d6f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4b4e9f,'data-author-id':_0x1f6327}),_0x2702ee=_0x217d6f['mapper']['toViewPosition'](_0x4cf190);_0x90ed8f&&_0x21096a['activeMarkers']['includes'](_0x47f1fd['markerName'])&&_0x217d6f['writer']['addClass']('ck-suggestion-marker--active',_0x4bd9ca),_0x217d6f['writer']['insert'](_0x2702ee,_0x4bd9ca),_0x217d6f['mapper']['bindElementToMarker'](_0x4bd9ca,_0x47f1fd['markerName']);}_0x350d93||_0x1983f0||!_0x50ad57||_0x47c59e(_0x50ad57);};}class K extends _0x115581{static get['requires'](){return[_0x159f0a];}['init'](){const _0x30d91e=this['editor'],_0x55af2f=_0x30d91e['plugins']['get']('TrackChangesEditing');_0x55af2f['enableCommand']('delete');const _0x417212=_0x30d91e['commands']['get']('deleteForward');_0x55af2f['enableCommand']('deleteForward',(_0x2c6de4,_0x3ac320={})=>{const _0xb43ef5=_0x30d91e['model']['createSelection'](_0x30d91e['model']['document']['selection']);_0xb43ef5['isCollapsed']&&_0x30d91e['model']['modifySelection'](_0xb43ef5,{'direction':'forward','unit':_0x3ac320['unit']});const _0xa386b0=_0xb43ef5['getFirstRange'](),_0x149455=_0x7b347b['fromRange'](_0xa386b0);let _0x220a32;_0x2c6de4(_0x3ac320),_0x220a32='$graveyard'==_0x149455['root']['rootName']?_0x30d91e['model']['createRange'](_0xa386b0['start']):_0x30d91e['model']['createRange'](_0x149455['start'],_0x149455['end']),_0x149455['detach'](),_0x30d91e['model']['enqueueChange'](_0x417212['buffer']['batch'],_0x283699=>{_0x417212['buffer']['lock'](),_0x283699['setSelection'](_0x283699['createRange'](_0x220a32['end'])),_0x417212['buffer']['unlock']();});}),_0x30d91e['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x30d91e,'merge'),{'priority':'high'}),_0x30d91e['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x5e1bd3,_0xa58538,_0x16b384)=>{_0x16b384['options']['showSuggestionHighlights']&&De(_0x30d91e,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x5e1bd3,_0xa58538,_0x16b384);},{'priority':'high'}),_0x30d91e['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x4c2773,_0x2f9bcb,_0x42dec8)=>{const _0x2042f2=_0x42dec8['mapper']['markerNameToElements'](_0x2f9bcb['markerName']);if(_0x2042f2){for(const _0x2b501e of _0x2042f2)_0x2b501e['is']('uiElement')&&(_0x42dec8['mapper']['unbindElementFromMarkerName'](_0x2b501e,_0x2f9bcb['markerName']),_0x42dec8['writer']['remove'](_0x2b501e));}},{'priority':'high'});}}class W extends _0x115581{['afterInit'](){const _0x2aa36a=this['editor'];if(!_0x2aa36a['plugins']['has']('ListEditing'))return;const _0x278669=_0x2aa36a['locale'],_0x3e8c57=_0x2aa36a['plugins']['get']('TrackChangesEditing'),_0x5026a=_0x2aa36a['plugins']['has']('TodoListEditing'),_0x57c166=!!_0x2aa36a['config']['get']('list.multiBlock');function _0x1db863(_0x19980e){return{'type':'format','content':''+o(_0x278669,'*Set\x20format:*\x20%0',_0x19980e)};}function _0x1164d5(_0x213df5){return{'type':'format','content':''+o(_0x278669,'*Remove\x20format:*\x20%0',_0x213df5)};}_0x3e8c57['enableDefaultAttributesIntegration']('numberedList'),_0x3e8c57['enableDefaultAttributesIntegration']('bulletedList'),_0x3e8c57['enableDefaultAttributesIntegration']('customNumberedList'),_0x3e8c57['enableDefaultAttributesIntegration']('customBulletedList'),_0x3e8c57['enableDefaultAttributesIntegration']('indentList'),_0x3e8c57['enableDefaultAttributesIntegration']('outdentList'),_0x3e8c57['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x3e8c57['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x3e8c57['registerBlockAttribute']('listItemId'),_0x3e8c57['registerBlockAttribute']('listType'),_0x3e8c57['registerBlockAttribute']('listIndent'),_0x57c166&&(_0x3e8c57['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x3e8c57['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x5026a&&(_0x3e8c57['enableDefaultAttributesIntegration']('todoList'),_0x3e8c57['enableDefaultAttributesIntegration']('checkTodoList'),_0x3e8c57['registerBlockAttribute']('todoListChecked'),_0x3e8c57['descriptionFactory']['registerDescriptionCallback'](_0x27ad4a=>{const {data:_0x11567f}=_0x27ad4a;if(_0x11567f&&'todoListChecked'==_0x11567f['key'])return{'type':'format','content':_0x11567f['newValue']?o(_0x278669,'*Check\x20item*'):o(_0x278669,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x3a019d=>{if(_0x3a019d['batch']['isUndo'])return!0x1;let _0x5a98f9=!0x1;const _0x423caf=_0x3e8c57['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5bca2e=>'todoListChecked'===_0x3e8c57['_getAttributeKey'](_0x5bca2e));for(const _0x3507f7 of _0x423caf){'todo'!=_0x3507f7['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x3e8c57['_findSuggestions'](_0x3507f7['getFirstRange'](),'attribute')['find'](_0xaaf610=>'listType'===_0x3e8c57['_getAttributeKey'](_0xaaf610['suggestion']))||(_0x3a019d['removeMarker'](_0x3507f7['getFirstMarker']()),_0x5a98f9=!0x0));}return _0x5a98f9;})),_0x3e8c57['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x278669,'FORMAT_INDENT'));const _0x425330={'type':'format','content':''};_0x3e8c57['descriptionFactory']['registerDescriptionCallback'](_0x5adc7d=>{const {data:_0x580703}=_0x5adc7d;if(!_0x580703||'listType'!=_0x580703['key'])return;let _0xfc42d4=_0x5adc7d['head'];for(;_0xfc42d4;){if(_0xfc42d4['data']&&(('listStyle'==_0xfc42d4['data']['key']||'listMarkerStyle'==_0xfc42d4['data']['key'])&&(_0xfc42d4['data']['newValue']&&'default'!=_0xfc42d4['data']['newValue']||'default'!=_0xfc42d4['data']['oldValue']&&!_0x580703['newValue'])||!_0x57c166&&_0xfc42d4['data']['key']==m))return _0x425330;_0xfc42d4=_0xfc42d4['next'];}if(null==_0x580703['newValue'])switch(_0x580703['oldValue']){case'bulleted':return _0x1164d5(o(_0x278669,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1164d5(o(_0x278669,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1164d5(o(_0x278669,'ELEMENT_TODO_LIST'));}switch(_0x580703['newValue']){case'bulleted':return _0x1db863(o(_0x278669,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1db863(o(_0x278669,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1db863(o(_0x278669,'ELEMENT_TODO_LIST'));}}),_0x3e8c57['descriptionFactory']['registerDescriptionCallback'](_0x55e5e2=>{const {data:_0x53db94}=_0x55e5e2;if(_0x53db94&&'listIndent'==_0x53db94['key'])return null==_0x53db94['newValue']||null==_0x53db94['oldValue']&&0x0==_0x53db94['newValue']?_0x425330:void 0x0;}),_0x3e8c57['descriptionFactory']['registerDescriptionCallback'](_0x546af1=>{if('attribute'!=_0x546af1['type'])return;const {data:_0x3e7aa2}=_0x546af1;if(!_0x3e7aa2||'listItemId'!=_0x3e7aa2['key'])return;const _0x135ef0=Te(_0x546af1);return'newValue'==_0x135ef0?{'type':'format','content':o(_0x278669,'*Merge:*\x20list\x20item')}:'oldValue'==_0x135ef0?{'type':'format','content':o(_0x278669,'*Split:*\x20list\x20item')}:_0x425330;}),_0x2aa36a['model']['document']['registerPostFixer'](_0x13ae2a=>this['listItemIdFixer'](_0x13ae2a)),_0x2aa36a['model']['document']['registerPostFixer'](_0x1484d0=>this['noTrackChangesFixer'](_0x1484d0)),_0x2aa36a['model']['document']['on']('change:data',(_0xef80a,_0x14725b)=>{if(_0x14725b['isUndo']||!_0x14725b['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x4965ea){if(_0x4965ea['batch']['isUndo']||!_0x4965ea['batch']['isLocal'])return!0x1;let _0x31460e=!0x1;const _0x1be38a=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2375a6=>_0x2375a6['data']&&'listItemId'==_0x2375a6['data']['key'])['filter'](_0x4f1693=>_0x4f1693['data']['newValue']&&_0x4f1693['data']['oldValue']);for(const _0x1e3eda of _0x1be38a)Te(_0x1e3eda)||(_0x4965ea['removeMarker'](_0x1e3eda['getFirstMarker']()),_0x31460e=!0x0);return _0x31460e;}['noTrackChangesFixer'](_0x14a82b){if(_0x14a82b['batch']['isUndo']||!_0x14a82b['batch']['isLocal'])return!0x1;const _0x10a34a=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x10a34a['trackChangesCommand']['value'])return!0x1;let _0x1a7790=!0x1;const _0xd1ad4e=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x388991=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x3577ec=>'attribute'==_0x3577ec['type'])['filter'](_0x97a296=>_0xd1ad4e['includes'](_0x97a296['attributeKey']));if(0x0==_0x388991['length'])return _0x1a7790;for(const _0x15c2c4 of _0x388991){const _0x4f203c=_0x10a34a['_findSuggestions'](_0x15c2c4['range'],'attribute')['filter'](_0x2b97f0=>!_0x2b97f0['meta']['isNextTo'])['map'](_0x1fea6c=>_0x1fea6c['suggestion'])['filter'](_0x210132=>{const _0x2de525=_0x10a34a['_getAttributeKey'](_0x210132);return _0xd1ad4e['includes'](_0x2de525);});if(_0x4f203c['length']){for(const _0x4d8c91 of _0x4f203c)_0x14a82b['removeMarker'](_0x4d8c91['getFirstMarker']());_0x1a7790=!0x0;}}return _0x1a7790;}['assureChains'](){const _0x95b964=this['editor']['plugins']['get']('TrackChangesEditing'),_0xae827f=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x40eddb;const _0x1ac4de=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x577ec0=>{if(_0x577ec0['data']['oldRange']||!_0x577ec0['data']['newRange'])return null;if(!_0x577ec0['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x1d5389}=_0x95b964['_splitMarkerName'](_0x577ec0['name']);if(!_0x95b964['hasSuggestion'](_0x1d5389))return null;const _0x23e5da=_0x95b964['getSuggestion'](_0x1d5389);return _0xae827f['includes'](_0x23e5da['data']['key']);})['map'](_0x443eb4=>{const {id:_0x3fcfa5}=_0x95b964['_splitMarkerName'](_0x443eb4['name']),_0x539cab=_0x95b964['getSuggestion'](_0x3fcfa5);return _0x40eddb=_0x539cab['attributes']['groupId'],_0x539cab['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x1ac4de['size'])return;const _0x56b57e=_0x95b964['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1f0a17=>'attribute'==_0x1f0a17['type']&&_0x1f0a17['data']&&_0xae827f['includes'](_0x1f0a17['data']['key'])&&_0x1f0a17['attributes']['groupId']!=_0x40eddb)['map'](_0x318a59=>({'listItem':_0x318a59['getFirstRange']()['start']['nodeAfter'],'groupId':_0x318a59['attributes']['groupId']})),_0x9e4e01=new Set();for(const {groupId:_0x2f5cf5,listItem:_0x27ba6d}of _0x56b57e)_0x1ac4de['has'](_0x27ba6d)&&_0x9e4e01['add'](_0x2f5cf5);for(const _0x1d00ee of _0x95b964['getSuggestions']())_0x9e4e01['has'](_0x1d00ee['attributes']['groupId'])&&_0x1d00ee['setAttribute']('groupId',_0x40eddb);}['_supportLegacySuggestions'](){const _0x2e5c78=this['editor'],_0x24f863=_0x2e5c78['locale'],_0x2e86e6=_0x2e5c78['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x2e86e6['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x50611c,_0x3517d9){const _0x4fde2d=[];for(let _0x15d205 of _0x50611c)_0x15d205['start']['nodeAfter']===_0x15d205['end']['parent']&&(_0x15d205=_0x2e5c78['model']['createRange'](_0x2e5c78['model']['createPositionAt'](_0x15d205['start']['nodeAfter'],0x0))),_0x4fde2d['push'](_0x15d205);_0x2e5c78['model']['change'](_0x24bbfd=>{const _0x239ac8=_0x2e5c78['model']['document']['selection'],_0x6b8841=Array['from'](_0x239ac8['getRanges']())['map'](_0x2bb08b=>_0x7b347b['fromRange'](_0x2bb08b));_0x24bbfd['setSelection'](_0x4fde2d),_0x2e5c78['commands']['get'](_0x3517d9['commandName'])['refresh'](),_0x3517d9['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x2e5c78['execute'](_0x3517d9['commandName'],..._0x3517d9['commandParams']),_0x24bbfd['setSelection'](_0x6b8841);for(const _0x489d10 of _0x6b8841)_0x489d10['detach']();});}),_0x2e86e6['descriptionFactory']['registerElementLabel'](function(_0x5be1f5){const _0x56507a=!_0x2e5c78['model']['schema']['isObject'](_0x5be1f5),_0x424f6b=_0x5be1f5['previousSibling'],_0xd3f1ae=_0x5be1f5['nextSibling'],_0x5d513c=_0x5be1f5['getAttribute']('listItemId'),_0xab8c99=!_0x424f6b||_0x424f6b['getAttribute']('listItemId')!==_0x5d513c,_0x624a59=!_0xd3f1ae||_0xd3f1ae['getAttribute']('listItemId')!==_0x5d513c;return _0x56507a&&Boolean(_0x5d513c)&&_0xab8c99&&_0x624a59;},_0x31d2c3=>o(_0x24f863,'ELEMENT_LIST_ITEM',_0x31d2c3));}['_registerLegacyDescription'](){const _0xf19af4=this['editor'],_0x2467b4=_0xf19af4['locale'];function _0x9be4bb(_0x133805){const _0x808684=_0xf19af4['commands']['get']('bulletedList')['value'],_0x118349=_0xf19af4['commands']['get']('numberedList')['value'];return'numberedList'===_0x133805?_0x808684:_0x118349;}_0xf19af4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x46c337){if('formatBlock'!=_0x46c337['type'])return;const {data:_0x5cdee2}=_0x46c337;if(!_0x5cdee2)return;let _0x189339,_0x52b082,_0x262aed,_0x46b9c3;switch(_0x5cdee2['commandName']){case'bulletedList':_0x262aed=_0x5cdee2['commandParams'][0x0]['forceValue'],_0x46b9c3=_0x9be4bb(_0x5cdee2['commandName']),_0x189339=_0x262aed?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x46b9c3&&_0xf19af4['config']['get']('list.multiBlock')||(_0x189339='*Change\x20to:*\x20%0'),_0x52b082={'type':'format','content':o(_0x2467b4,_0x189339,o(_0x2467b4,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x262aed=_0x5cdee2['commandParams'][0x0]['forceValue'],_0x46b9c3=_0x9be4bb(_0x5cdee2['commandName']),_0x189339=_0x262aed?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x46b9c3&&_0xf19af4['config']['get']('list.multiBlock')||(_0x189339='*Change\x20to:*\x20%0'),_0x52b082={'type':'format','content':o(_0x2467b4,_0x189339,o(_0x2467b4,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x189339='*Indent:*\x20%0',_0x52b082={'type':'format','content':o(_0x2467b4,_0x189339,o(_0x2467b4,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x189339=function(_0x35c64d){const _0x39f9d1=_0x35c64d['getFirstRange']();let _0x2b4f89=_0x39f9d1['start']['nodeAfter'];for(;_0x2b4f89&&_0x39f9d1['containsItem'](_0x2b4f89);){if(_0x2b4f89['getAttribute']('listIndent')>0x0)return!0x1;_0x2b4f89=_0x2b4f89['nextSibling'];}return!0x0;}(_0x46c337)?o(_0x2467b4,'*Format:*\x20remove\x20from\x20%0',o(_0x2467b4,function(_0x59e3ea){return'ELEMENT_'+_0x59e3ea['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x46c337))):o(_0x2467b4,'*Outdent:*\x20%0',o(_0x2467b4,'ELEMENT_LIST_ITEM')),_0x52b082={'type':'format','content':_0x189339};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x5cdee2['multipleBlocks']&&(_0x189339='*Merge:*\x20%0',_0x52b082={'type':'deletion','content':o(_0x2467b4,_0x189339,o(_0x2467b4,'ELEMENT_LIST_ITEM'))});}return _0x52b082;});}}function Te(_0x4b8953){let _0x2969dc=_0x4b8953['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x2969dc;){const _0x450b6b=_0x2969dc['getAttribute']('listItemId');if(!_0x450b6b)return!0x1;if(_0x450b6b==_0x4b8953['data']['newValue'])return'newValue';if(_0x450b6b==_0x4b8953['data']['oldValue'])return'oldValue';_0x2969dc=_0x2969dc['previousSibling'];}return!0x1;}class Se extends _0x115581{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0xf44f64=this['editor']['config']['get']('list.properties'),_0x323926=this['editor']['plugins']['get']('TrackChangesEditing');_0xf44f64['styles']&&(_0x323926['enableDefaultAttributesIntegration']('listStyle'),_0x323926['registerBlockAttribute']('listStyle')),_0xf44f64['reversed']&&(_0x323926['enableDefaultAttributesIntegration']('listReversed'),_0x323926['registerBlockAttribute']('listReversed')),_0xf44f64['startIndex']&&(_0x323926['enableDefaultAttributesIntegration']('listStart'),_0x323926['registerBlockAttribute']('listStart'));const _0x494360={'type':'format','content':''};_0x323926['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x2cda98=this['editor']['locale'];_0x323926['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x2cda98,'FORMAT_LIST_REVERSED')),_0x323926['descriptionFactory']['registerDescriptionCallback'](_0xe94c4=>{const {data:_0x493fd6}=_0xe94c4;if(_0x493fd6&&'listReversed'==_0x493fd6['key'])return null==_0x493fd6['newValue']||0x0==_0x493fd6['newValue']&&null==_0x493fd6['oldValue']?_0x494360:void 0x0;}),_0x323926['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x2cda98,'FORMAT_LIST_START')),_0x323926['descriptionFactory']['registerDescriptionCallback'](_0x57bcf0=>{const {data:_0x5e8f2e}=_0x57bcf0;if(_0x5e8f2e&&'listStart'==_0x5e8f2e['key'])return null==_0x5e8f2e['newValue']||0x1==_0x5e8f2e['newValue']&&null==_0x5e8f2e['oldValue']?_0x494360:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x4e33d0=>{if(_0x4e33d0['batch']['isUndo'])return!0x1;let _0xa4a875=!0x1;const _0x11ecda=_0x323926['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4be035=>{const _0x4e0eaa=_0x323926['_getAttributeKey'](_0x4be035);return'listStart'==_0x4e0eaa||'listReversed'==_0x4e0eaa;});for(const _0x45b180 of _0x11ecda){const _0x128da7=_0x45b180['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x128da7||'customNumbered'==_0x128da7)continue;_0x323926['_findSuggestions'](_0x45b180['getFirstRange'](),'attribute')['find'](_0xfae845=>'listType'==_0x323926['_getAttributeKey'](_0xfae845['suggestion']))||(_0x4e33d0['removeMarker'](_0x45b180['getFirstMarker']()),_0xa4a875=!0x0);}return _0xa4a875;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x480cd2){const _0x5e261a=this['editor']['locale'],{data:_0x28f8bc}=_0x480cd2,_0x1387f1={'type':'format','content':''};if(!_0x28f8bc||'listStyle'!=_0x28f8bc['key'])return;if(!_0x28f8bc['oldValue'])return'default'==_0x28f8bc['newValue']?_0x1387f1:{'type':'format','content':''+o(_0x5e261a,'*Set\x20format:*\x20%0',o(_0x5e261a,this['_getTranslationKeyForListStyle'](_0x28f8bc['newValue'])))};if(!_0x28f8bc['newValue']){if('default'==_0x28f8bc['oldValue'])return _0x1387f1;let _0x2a0f3a=_0x480cd2['head'];for(;_0x2a0f3a;){if(_0x2a0f3a['data']&&'listType'==_0x2a0f3a['data']['key']&&_0x2a0f3a['data']['newValue'])return _0x1387f1;_0x2a0f3a=_0x2a0f3a['next'];}return{'type':'format','content':''+o(_0x5e261a,'*Remove\x20format:*\x20%0',o(_0x5e261a,this['_getTranslationKeyForListStyle'](_0x28f8bc['oldValue'])))};}if('default'!=_0x28f8bc['newValue'])return{'type':'format','content':''+o(_0x5e261a,'*Set\x20format:*\x20%0',o(_0x5e261a,this['_getTranslationKeyForListStyle'](_0x28f8bc['newValue'])))};let _0x5ac80f=_0x480cd2['head'];for(;_0x5ac80f;){if(_0x5ac80f['data']&&'listType'==_0x5ac80f['data']['key']&&_0x5ac80f['data']['newValue']&&_0x5ac80f['data']['oldValue'])return _0x1387f1;_0x5ac80f=_0x5ac80f['next'];}return{'type':'format','content':o(_0x5e261a,'*Set\x20format:*\x20%0',o(_0x5e261a,'ELEMENT_'+_0x480cd2['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x522d67=this['editor'],_0x6f3590=_0x522d67['locale'];_0x522d67['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4287dc=>{if('formatBlock'!=_0x4287dc['type'])return;const {data:_0x377c7c}=_0x4287dc;if(!_0x377c7c)return;let _0x41a62b,_0x7695f0;switch(_0x377c7c['commandName']){case'listStyle':_0x41a62b='*Change\x20to:*\x20%0',_0x7695f0={'type':'format','content':o(_0x6f3590,_0x41a62b,o(_0x6f3590,this['_getTranslationKeyForListStyle'](_0x377c7c['commandParams'][0x0]['type'])))};break;case'listReversed':_0x41a62b=_0x377c7c['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x7695f0={'type':'format','content':o(_0x6f3590,_0x41a62b)};break;case'listStart':_0x41a62b='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x7695f0={'type':'format','content':o(_0x6f3590,_0x41a62b,_0x377c7c['commandParams'][0x0]['startIndex'])};}return _0x7695f0;});}['_getTranslationKeyForListStyle'](_0xd51538){return'ELEMENT_'+function(_0xe320da){if(_e['includes'](_0xe320da))return'bulleted';if(Re['includes'](_0xe320da))return'numbered';return null;}(_0xd51538)['toUpperCase']()+'_LIST_'+_0xd51538['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x115581{['afterInit'](){const _0x23f7cd=this['editor'];_0x23f7cd['commands']['get']('emoji')&&_0x23f7cd['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x115581{static get['requires'](){return[_0x124573];}['init'](){const _0xb1ea0a=this['editor'],_0x4805f1=_0xb1ea0a['plugins']['get']('TrackChangesEditing'),_0xc0dfdb=_0xb1ea0a['commands']['get']('enter');_0x4805f1['enableCommand']('enter',()=>{_0xb1ea0a['model']['change'](_0x4546b2=>{const _0x3a860f=_0xb1ea0a['model']['document']['selection'],_0x30fd16=_0x3a860f['getFirstPosition'](),_0xf678fb=_0x7b347b['fromRange'](_0x3a860f['getFirstRange']());if(_0xc0dfdb['enterBlock'](_0x4546b2)){const _0x195c79=_0xb1ea0a['model']['createPositionAt'](_0x30fd16['parent']['nextSibling'],0x0),_0x6f5c4d=_0x4546b2['createRange'](_0x30fd16,_0x195c79);_0x4805f1['markInsertion'](_0x6f5c4d);}else _0x4546b2['setSelection'](_0x4546b2['createRange'](_0xf678fb['end']));_0xf678fb['detach'](),_0xc0dfdb['fire']('afterExecute',{'writer':_0x4546b2});});}),_0xb1ea0a['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0xb1ea0a,'split'),{'priority':'high'}),_0xb1ea0a['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x17c52c,_0x255936,_0x115302)=>{const _0x585b31=_0x115302['mapper']['markerNameToElements'](_0x255936['markerName']);if(_0x585b31){for(const _0x35e0f9 of _0x585b31)_0x35e0f9['hasClass']('ck-suggestion-marker-split')&&(_0x115302['mapper']['unbindElementFromMarkerName'](_0x35e0f9,_0x255936['markerName']),_0x115302['writer']['remove'](_0x35e0f9));}},{'priority':'high'}),_0xb1ea0a['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x69268b,_0x454593,_0x587df5)=>{_0x587df5['options']['showSuggestionHighlights']&&De(_0xb1ea0a,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x69268b,_0x454593,_0x587df5);},{'priority':'high'});}}class Z extends _0x115581{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x164c5a=this['editor']['plugins']['get']('TrackChangesEditing');_0x164c5a['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x164c5a['enableCommand']('findNext'),_0x164c5a['enableCommand']('findPrevious'),_0x164c5a['enableCommand']('replace'),_0x164c5a['enableCommand']('replaceAll');}['handleFindCommand'](_0x2aac35,_0x4e8b81,_0x486290={}){const _0x1d1742=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x2aac35(_0x41614f=>{let _0x1df316=('string'==typeof _0x4e8b81?_0x1d1742['findByTextCallback'](_0x4e8b81,_0x486290):_0x4e8b81)(_0x41614f);Array['isArray'](_0x1df316)&&(_0x1df316={'results':_0x1df316,'searchText':'string'==typeof _0x4e8b81?_0x4e8b81:''});const _0x4626a5=_0x1df316['results']['filter'](_0x308b61=>!0x1===this['_isInDeletionRange'](_0x308b61,_0x41614f['item']));return{..._0x1df316,'results':_0x4626a5};},_0x486290);}['_isInDeletionRange'](_0x5dd649,_0x23c5a9){const _0x24c6e0=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x23c5a9,_0x5dd649['start']),this['editor']['model']['createPositionAt'](_0x23c5a9,_0x5dd649['end']));for(const _0x22ee4d of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x24c6e0['getIntersection'](_0x22ee4d['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x115581{['afterInit'](){const _0x51e7b6=this['editor']['locale'],_0x1abd89=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x18d2ef,commandName:_0x288b17}of ro)this['editor']['plugins']['has'](_0x18d2ef)&&(_0x1abd89['enableDefaultAttributesIntegration'](_0x288b17),_0x1abd89['registerInlineAttribute'](_0x288b17));_0x1abd89['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x51e7b6,'FORMAT_FONT_SIZE')),_0x1abd89['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x51e7b6,'FORMAT_FONT_FAMILY')),_0x1abd89['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x51e7b6,'FORMAT_FONT_COLOR')),_0x1abd89['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x51e7b6,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xb1bc1f=this['editor'],_0xc1b76d=_0xb1bc1f['locale'];_0xb1bc1f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x434612=>{const _0x2c753f=_0xc1b76d['t'];if('formatInline'!=_0x434612['type'])return;const {data:_0x40a103}=_0x434612;if(null!=_0x40a103){if('fontSize'==_0x40a103['commandName']){const _0x14c50c=_0x40a103['commandParams'][0x0]['value'];if(_0x14c50c){const _0x4acdbf=_0x2c753f(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x4c9ab5=>_0x4c9ab5['model']==_0x14c50c)['title'])['toLowerCase']();return{'type':'format','content':o(_0xc1b76d,'*Set\x20font\x20size:*\x20%0',_0x4acdbf)};}return{'type':'format','content':o(_0xc1b76d,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x40a103['commandName']){const _0x54664a=_0x40a103['commandParams'][0x0]['value'];return _0x54664a?{'type':'format','content':o(_0xc1b76d,'*Set\x20font\x20family:*\x20%0',_0x54664a)}:{'type':'format','content':o(_0xc1b76d,'*Reset\x20font\x20family*')};}if('fontColor'==_0x40a103['commandName']){const _0x5c23e0=_0x40a103['commandParams'][0x0]['value'];if(_0x5c23e0){const _0x543a48=_0x5ee78a(this['editor']['config']['get']('fontColor.colors'))['find'](_0xbfb3d9=>_0xbfb3d9['model']==_0x5c23e0);let _0x522b56=_0x5c23e0,_0x2f0525='';return _0x543a48&&(_0x522b56=_0x543a48['label'],_0x2f0525=_0x2c753f(_0x522b56)['toLowerCase']()),{'type':'format','content':o(_0xc1b76d,'*Set\x20font\x20color:*\x20%0',_0x2f0525)['trim'](),'color':{'value':_0x5c23e0,'title':_0x2f0525||_0x522b56}};}return{'type':'format','content':o(_0xc1b76d,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x40a103['commandName']){const _0x4ad815=_0x40a103['commandParams'][0x0]['value'];if(_0x4ad815){const _0x7143f2=_0x5ee78a(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x2df063=>_0x2df063['model']==_0x4ad815);let _0x483c6a=_0x4ad815,_0x144ded='';return _0x7143f2&&(_0x483c6a=_0x7143f2['label'],_0x144ded=_0x2c753f(_0x483c6a)['toLowerCase']()),{'type':'format','content':o(_0xc1b76d,'*Set\x20font\x20background\x20color:*\x20%0',_0x144ded)['trim'](),'color':{'value':_0x4ad815,'title':_0x144ded||_0x483c6a}};}return{'type':'format','content':o(_0xc1b76d,'*Reset\x20font\x20background\x20color*')};}}});}}class nt extends _0x115581{['afterInit'](){const _0x3d2dcb=this['editor'],_0x366f61=_0x3d2dcb['plugins']['get']('TrackChangesEditing'),_0x304498=_0x3d2dcb['commands']['get']('copyFormat'),_0x164a9f=_0x3d2dcb['commands']['get']('pasteFormat');_0x304498&&_0x164a9f&&(_0x366f61['enableDefaultAttributesIntegration']('pasteFormat'),_0x366f61['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x47f27f=this['editor'],_0x50a7c3=_0x47f27f['locale'];_0x47f27f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x58de8f=>{if('formatBlock'!=_0x58de8f['type']&&'formatInline'!=_0x58de8f['type'])return;const {data:_0x4e4dbb}=_0x58de8f;if(_0x4e4dbb&&'pasteFormat'===_0x4e4dbb['commandName']){const _0x26c9b5=[],_0x1dfc7c=_0x4e4dbb['commandParams'][0x0];for(const [_0x44ba1e,_0xade1a0]of Object['entries'](_0x1dfc7c))_0x26c9b5['push'](so(_0x47f27f,_0x44ba1e,_0xade1a0));return _0x26c9b5['length']?{'type':'format','content':o(_0x50a7c3,'*Set\x20format\x20to:*\x20%0',_0x26c9b5['join'](',\x20'))}:{'type':'format','content':o(_0x50a7c3,'*Remove\x20all\x20formatting*')};}});}}function so(_0x46e966,_0x3e0d57,_0x21459c){const _0x15d9df=_0x46e966['locale']['t'],_0x24b0ec=_0x3e0d57['split'](/(?=[A-Z])/)['join']('\x20'),_0x839a6f=_0x15d9df(_0x24b0ec['charAt'](0x0)['toUpperCase']()+_0x24b0ec['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x21459c)return _0x839a6f;if('fontColor'===_0x3e0d57||'fontBackgroundColor'===_0x3e0d57){const _0xacd078=_0x5ee78a(_0x46e966['config']['get']('fontColor.colors'))['find'](_0x3ca6a4=>_0x3ca6a4['model']==_0x21459c);return _0x839a6f+'\x20('+(_0xacd078?_0x15d9df(_0xacd078['label'])['toLowerCase']():_0x21459c)+')';}if('fontSize'===_0x3e0d57&&isNaN(parseFloat(_0x21459c))){const _0x227284=_0x46e966['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x46e966['config']['get']('fontSize.options'))['find'](_0x20ba82=>_0x20ba82['model']==_0x21459c);return _0x839a6f+'\x20('+(_0x227284?_0x15d9df(_0x227284['title'])['toLowerCase']():_0x21459c)+')';}return _0x839a6f+'\x20('+_0x21459c+')';}class it extends _0x115581{['_headingOptions'];['afterInit'](){const _0x50d5af=this['editor'];if(!_0x50d5af['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x50d5af['config']['get']('heading.options');const _0x5ef490=_0x50d5af['locale'],_0x895180=_0x50d5af['plugins']['get']('TrackChangesEditing');_0x895180['enableDefaultAttributesIntegration']('heading');for(const _0x163df4 of this['_headingOptions'])'paragraph'!=_0x163df4['model']&&_0x895180['descriptionFactory']['registerElementLabel'](_0x163df4['model'],_0x268da4=>{const _0xe3ee4e=this['_getHeadingLevel'](_0x163df4['model']);return null!==_0xe3ee4e?_0x25d43e(_0x268da4,_0xe3ee4e):_0x17199e(_0x268da4,_0x163df4['title']);});function _0x25d43e(_0xece10c,_0x3ad11c){return o(_0x5ef490,'ELEMENT_HEADING',[_0xece10c,_0x3ad11c]);}function _0x17199e(_0x29370d,_0x540b86){return o(_0x5ef490,'ELEMENT_HEADING_CUSTOM',[_0x29370d,_0x540b86]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4f0e01=this['editor'],_0x112763=_0x4f0e01['locale'];function _0x5c093c(_0xfc3bfa,_0x11f303){return o(_0x112763,'ELEMENT_HEADING_CUSTOM',[_0xfc3bfa,_0x11f303]);}_0x4f0e01['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x15abfa=>{if('formatBlock'!=_0x15abfa['type'])return;const {data:_0x4b08bf}=_0x15abfa;if(_0x4b08bf&&'heading'==_0x4b08bf['commandName']){const _0x58e521=_0x4b08bf['commandParams'][0x0]['value'],_0x5d040c=this['_getHeadingLevel'](_0x58e521);if(null!==_0x5d040c)return{'type':'format','content':o(_0x112763,'*Change\x20to:*\x20%0',(_0x4b5606=0x1,_0x5ae757=_0x5d040c,o(_0x112763,'ELEMENT_HEADING',[_0x4b5606,_0x5ae757])))};const _0xb056ca=this['_headingOptions']['find'](_0x5911c6=>_0x5911c6['model']===_0x58e521)['title'];return{'type':'format','content':o(_0x112763,'*Change\x20to:*\x20%0',_0x5c093c(0x1,_0xb056ca))};}var _0x4b5606,_0x5ae757;});}['_getHeadingLevel'](_0x3980a7){const _0x7cb4ae=_0x3980a7['match'](/^heading(\d+)/);if(_0x7cb4ae)return _0x7cb4ae[0x1];const _0x1ae8a0=this['_headingOptions']?.['find'](_0x24d9a7=>_0x24d9a7['model']==_0x3980a7);if(_0x1ae8a0&&_0x1ae8a0['view']){const _0x419338=_0x1ae8a0['view'],_0x4cfa6a=(_0x419338['name']??_0x419338)['match'](/^h(\d+)/);if(_0x4cfa6a)return _0x4cfa6a[0x1];}return null;}}class et extends _0x115581{['afterInit'](){const _0x57539c=this['editor'];if(!_0x57539c['plugins']['has']('HighlightEditing'))return;const _0x3d2b61=_0x57539c['plugins']['get']('TrackChangesEditing'),_0x389395=_0x57539c['locale'];_0x3d2b61['enableDefaultAttributesIntegration']('highlight'),_0x3d2b61['registerInlineAttribute']('highlight'),_0x3d2b61['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x389395,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2cce0c=this['editor'],_0x2a7a56=_0x2cce0c['locale'];_0x2cce0c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xc11908=>{if('formatInline'!=_0xc11908['type'])return;const {data:_0x3cde19}=_0xc11908;if(_0x3cde19&&'highlight'==_0x3cde19['commandName']){const _0x3f01e8=_0x2a7a56['t'],_0x430f32=_0x3cde19['commandParams'][0x0]['value'];if(_0x430f32){const _0x5b002e=_0x2cce0c['config']['get']('highlight.options')['find'](_0x1068ae=>_0x1068ae['model']==_0x430f32),_0x202748=_0x3f01e8(_0x5b002e['title'])['toLowerCase']();return{'type':'format','content':o(_0x2a7a56,'*Set\x20highlight:*\x20%0',_0x202748),'color':{'value':_0x5b002e['color'],'title':_0x5b002e['title']}};}return{'type':'format','content':o(_0x2a7a56,'*Remove\x20highlight*',o(_0x2a7a56,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x115581{['afterInit'](){const _0x2736bb=this['editor'];if(!_0x2736bb['plugins']['has']('HorizontalLineEditing'))return;_0x2736bb['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x104549=_0x2736bb['plugins']['get']('TrackChangesEditing'),_0x99c278=_0x2736bb['locale'];_0x104549['descriptionFactory']['registerElementLabel']('horizontalLine',_0x12706e=>o(_0x99c278,'ELEMENT_HORIZONTAL_LINE',_0x12706e)),_0x2736bb['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x33ff05,{writer:_0x249071,options:_0x3d1f1b})=>{if(!_0x3d1f1b['showSuggestionHighlights'])return null;const _0x3e612b=_0x249071['createContainerElement']('div'),_0x48a2fa=_0x249071['createEmptyElement']('hr');return _0x249071['addClass']('ck-horizontal-line',_0x3e612b),_0x249071['insert'](_0x249071['createPositionAt'](_0x3e612b,0x0),_0x48a2fa),_0x3e612b;},'converterPriority':'high'});}}class ot extends _0x115581{['afterInit'](){const _0x5fae0b=this['editor'];if(!_0x5fae0b['plugins']['has']('HtmlEmbed'))return;const _0xb91cb=_0x5fae0b['plugins']['get']('TrackChangesEditing'),_0x299210=_0x5fae0b['locale'];_0xb91cb['descriptionFactory']['registerElementLabel']('rawHtml',_0xabd8f5=>o(_0x299210,'ELEMENT_HTML_EMBED',_0xabd8f5)),_0xb91cb['enableDefaultAttributesIntegration']('htmlEmbed'),_0xb91cb['registerBlockAttribute']('value'),_0xb91cb['descriptionFactory']['registerDescriptionCallback'](_0x2e3311=>{if('attribute'!=_0x2e3311['type'])return;const {data:_0x5d2521}=_0x2e3311;if(_0x5d2521&&'value'==_0x5d2521['key']&&_0x2e3311['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x4b8f1a=o(_0x299210,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x299210,'*Change\x20%0\x20content*',_0x4b8f1a)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3052cb=this['editor'],_0x26e25c=_0x3052cb['locale'];_0x3052cb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x472eef=>{if('formatBlock'!=_0x472eef['type'])return;const {data:_0x480eb6}=_0x472eef;if(_0x480eb6&&'htmlEmbed'==_0x480eb6['commandName']){const _0x16b436=o(_0x26e25c,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x26e25c,'*Change\x20%0\x20content*',_0x16b436)};}});}}class rt extends _0x115581{['afterInit'](){const _0x5301fa=this['editor'];if(!_0x5301fa['plugins']['has']('ImageEditing'))return;const _0x1b8e25=_0x5301fa['plugins']['get']('TrackChangesEditing'),_0x3abdaa=_0x5301fa['plugins']['get']('ImageUtils'),_0xd4ce2=_0x5301fa['locale'];_0x1b8e25['enableCommand']('insertImage'),_0x1b8e25['descriptionFactory']['registerElementLabel']('imageBlock',_0x314594=>o(_0xd4ce2,'ELEMENT_IMAGE',_0x314594)),_0x1b8e25['descriptionFactory']['registerElementLabel']('imageInline',_0x4d8883=>o(_0xd4ce2,'ELEMENT_INLINE_IMAGE',_0x4d8883)),_0x1b8e25['descriptionFactory']['registerElementLabel']('caption',()=>o(_0xd4ce2,'ELEMENT_CAPTION')),_0x5301fa['plugins']['has']('ImageUploadEditing')&&_0x1b8e25['enableCommand']('uploadImage'),_0x5301fa['plugins']['has']('ImageBlockEditing')&&_0x5301fa['plugins']['has']('ImageInlineEditing')&&(_0x1b8e25['enableCommand']('imageTypeInline',(_0x3dac42,_0x412c94)=>{const _0x3523ed=_0x3abdaa['getClosestSelectedImageElement'](_0x5301fa['model']['document']['selection']);_0x5301fa['model']['change'](()=>{_0x1b8e25['markBlockFormat'](_0x3523ed,{'commandName':'imageTypeInline','commandParams':[_0x412c94]},[],'convertBlockImageToInline');});}),_0x1b8e25['enableCommand']('imageTypeBlock',(_0x2a1595,_0x3995d3)=>{_0x5301fa['model']['change'](_0x26cbe7=>{let _0x33ad2d=_0x3abdaa['getClosestSelectedImageElement'](_0x5301fa['model']['document']['selection']),_0x10b91c=_0x26cbe7['createRangeOn'](_0x33ad2d);const _0x4701a5=_0x441db['fromPosition'](_0x10b91c['start'],'toPrevious'),_0x2c4b39=_0x441db['fromPosition'](_0x10b91c['end'],'toNext');_0x1b8e25['forceDefaultExecution'](()=>_0x2a1595(_0x3995d3)),_0x33ad2d=_0x3abdaa['getClosestSelectedImageElement'](_0x5301fa['model']['document']['selection']),_0x10b91c=_0x26cbe7['createRangeOn'](_0x33ad2d);const _0x2a1982=_0x26cbe7['createRange'](_0x4701a5,_0x2c4b39);_0x4701a5['detach'](),_0x2c4b39['detach'](),_0x1b8e25['markBlockFormat'](_0x33ad2d,{'commandName':'imageTypeInline','commandParams':[_0x3995d3]},[],'convertInlineImageToBlock'),_0x2a1982['start']['isBefore'](_0x10b91c['start'])&&_0x1b8e25['markInsertion'](_0x26cbe7['createRange'](_0x2a1982['start'],_0x10b91c['start']),'convertInlineImageToBlock'),_0x10b91c['end']['isBefore'](_0x2a1982['end'])&&_0x1b8e25['markInsertion'](_0x26cbe7['createRange'](_0x10b91c['end'],_0x2a1982['end']),'convertInlineImageToBlock');});}),_0x1b8e25['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x1b8e25['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x1b8e25['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x1b8e25['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x1b8e25['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x1b8e25['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x55d84c])=>{const _0x5ad922=_0x1b8e25['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x1ec84a=_0x55d84c['start'],_0x488a44=_0x55d84c['end'];const _0x517ef9=_0x5301fa['model']['schema']['getNearestSelectionRange'](_0x1ec84a,'backward'),_0x5ca3a1=_0x5301fa['model']['schema']['getNearestSelectionRange'](_0x488a44,'forward');_0x517ef9['isCollapsed']&&(_0x1ec84a=_0x517ef9['start']),_0x5ca3a1['isCollapsed']&&(_0x488a44=_0x5ca3a1['end']),_0x5ad922([_0x5301fa['model']['createRange'](_0x1ec84a,_0x488a44)]);}),_0x1b8e25['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x339c0a),_0x1b8e25['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x339c0a)),_0x5301fa['plugins']['has']('ImageCaptionEditing')&&(_0x1b8e25['enableCommand']('toggleImageCaption',(_0x4abae3,_0x1e63f2)=>{const _0x4e9a14=_0x5301fa['plugins']['get']('ImageCaptionUtils');let _0x2d24b8=_0x3abdaa['getClosestSelectedImageElement'](_0x5301fa['model']['document']['selection']),_0x5a5204=_0x4e9a14['getCaptionFromImageModelElement'](_0x2d24b8);_0x5301fa['model']['change'](()=>{if(_0x5a5204)return void _0x1b8e25['markDeletion'](_0x5301fa['model']['createRangeOn'](_0x5a5204));const _0x13ebd9=_0x3abdaa['isBlockImage'](_0x2d24b8);_0x4abae3(_0x1e63f2),_0x2d24b8=_0x3abdaa['getClosestSelectedImageElement'](_0x5301fa['model']['document']['selection']),_0x5a5204=_0x4e9a14['getCaptionFromImageModelElement'](_0x2d24b8),_0x1b8e25['markInsertion'](_0x5301fa['model']['createRangeOn'](_0x5a5204),_0x13ebd9?null:'imageCaption');});}),_0x1b8e25['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x339c0a));const _0x27031a=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x53a0f1(_0x2916f8,_0x15fb7f){const _0x51748d=_0x27031a['findIndex'](({type:_0x4037b5,subType:_0x178fe3})=>_0x2916f8['type']==_0x4037b5&&_0x2916f8['subType']==_0x178fe3),_0xe861b1=_0x27031a['findIndex'](({type:_0x3b5a74,subType:_0x5bea9f})=>_0x15fb7f['type']==_0x3b5a74&&_0x15fb7f['subType']==_0x5bea9f);if(_0x51748d<0x0||_0xe861b1<0x0)return!0x1;const _0x566739=_0x2916f8['getFirstRange'](),_0x24ce0b=_0x15fb7f['getFirstRange']();if((0x0==_0x51748d||0x1==_0x51748d)&&0x2==_0xe861b1&&_0x566739['isIntersecting'](_0x24ce0b))return!0x0;if(0x2==_0x51748d&&0x3==_0xe861b1){const _0x3995c1=_0x1b8e25['_findSuggestions'](_0x566739,'insertion')['filter'](({suggestion:_0x4d14d4,meta:_0x215366})=>_0x215366['isOwn']&&'convertInlineImageToBlock'==_0x4d14d4['subType']);if(_0x3995c1['length']>0x1&&_0x24ce0b['end']['isEqual'](_0x566739['start']))return!0x0;if(0x1==_0x3995c1['length']&&(_0x566739['start']['isEqual'](_0x24ce0b['end'])||_0x566739['end']['isEqual'](_0x24ce0b['start'])))return!0x0;}if(0x3==_0x51748d&&0x3==_0xe861b1&&_0x566739['start']['isBefore'](_0x24ce0b['start'])){const _0x1f10a1=_0x566739['end']['nodeAfter'],_0x4807d7=_0x24ce0b['start']['nodeBefore'];return _0x3abdaa['isBlockImage'](_0x1f10a1)&&_0x1f10a1===_0x4807d7;}return!0x1;}function _0x339c0a(_0x54c75f,_0x37a5fc){return _0x53a0f1(_0x54c75f,_0x37a5fc)?[_0x54c75f,_0x37a5fc]:_0x53a0f1(_0x37a5fc,_0x54c75f)?[_0x37a5fc,_0x54c75f]:null;}_0x5301fa['plugins']['has']('ImageResize')&&(_0x1b8e25['enableDefaultAttributesIntegration']('resizeImage'),_0x1b8e25['registerBlockAttribute']('resizedWidth'),_0x1b8e25['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0xd4ce2,'FORMAT_IMAGE_SIZE'))),_0x5301fa['plugins']['has']('ImageTextAlternativeEditing')&&(_0x1b8e25['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x1b8e25['registerBlockAttribute']('alt')),_0x5301fa['plugins']['has']('PictureEditing')&&(_0x1b8e25['registerBlockAttribute']('sources'),_0x1b8e25['descriptionFactory']['registerDescriptionCallback'](_0x5a2635=>{if('attribute'!=_0x5a2635['type'])return;const {data:_0x337a17}=_0x5a2635;return _0x337a17&&'sources'==_0x337a17['key']?{'type':'format','content':''}:void 0x0;})),_0x5301fa['plugins']['has']('ImageSizeAttributes')&&(_0x1b8e25['registerBlockAttribute']('width'),_0x1b8e25['registerBlockAttribute']('height'),_0x1b8e25['descriptionFactory']['registerDescriptionCallback'](_0x3f7f4c=>{if('attribute'!=_0x3f7f4c['type'])return;const {data:_0x3942e8}=_0x3f7f4c;return!_0x3942e8||'width'!=_0x3942e8['key']&&'height'!=_0x3942e8['key']?void 0x0:{'type':'format','content':''};})),_0x1b8e25['descriptionFactory']['registerDescriptionCallback'](_0x30c0b0=>{if(!!_0x27031a['find'](({type:_0x5e7a43,subType:_0x49c9a4})=>_0x30c0b0['type']==_0x5e7a43&&_0x30c0b0['subType']==_0x49c9a4))return _0x30c0b0['previous']?{}:void 0x0;}),_0x1b8e25['descriptionFactory']['registerDescriptionCallback'](_0x4456c=>{if('insertion'==_0x4456c['type']||'deletion'==_0x4456c['type']){const _0xddb396=_0x4456c['getContainedElement']();if(_0xddb396&&_0xddb396['is']('element','caption'))return{'type':'insertion'==_0x4456c['type']?'addObject':'removeObject','element':_0xddb396,'quantity':0x1};}}),_0x1b8e25['descriptionFactory']['registerDescriptionCallback'](_0x2bcf4c=>'formatBlock'==_0x2bcf4c['type']&&'convertInlineImageToBlock'==_0x2bcf4c['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x2bcf4c['type']&&'convertBlockImageToInline'==_0x2bcf4c['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x1b8e25['descriptionFactory']['registerDescriptionCallback'](_0x4442b3=>{if('attribute'!=_0x4442b3['type'])return;const {data:_0xaefebe}=_0x4442b3;if(!_0xaefebe||'alt'!=_0xaefebe['key'])return;const _0x36b518=_0xaefebe['newValue'];return _0x36b518?{'type':'format','content':o(_0xd4ce2,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x36b518+'\x22')}:{'type':'format','content':o(_0xd4ce2,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4de858=this['editor'],_0xfe3cc1=_0x4de858['locale'];_0x4de858['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5b5d8f=>{if('formatBlock'!=_0x5b5d8f['type']&&'formatInline'!=_0x5b5d8f['type'])return;const {data:_0xf570be}=_0x5b5d8f;if(_0xf570be){if('imageTextAlternative'==_0xf570be['commandName']){const _0x55c638=_0xf570be['commandParams'][0x0]['newValue'];return _0x55c638?{'type':'format','content':o(_0xfe3cc1,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x55c638+'\x22')}:{'type':'format','content':o(_0xfe3cc1,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0xf570be['commandName']){const _0x5adab3=_0xf570be['commandParams'][0x0]['width'];return _0x5adab3?{'type':'format','content':o(_0xfe3cc1,'*Set\x20image\x20width:*\x20%0',_0x5adab3)}:{'type':'format','content':o(_0xfe3cc1,'*Reset\x20image\x20width*')};}}});}}class at extends _0x115581{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x5ad0ed=this['editor']['locale'],_0x25bd82=this['editor']['plugins']['get']('TrackChangesEditing');_0x25bd82['enableDefaultAttributesIntegration']('replaceImageSource'),_0x25bd82['registerBlockAttribute']('src'),_0x25bd82['descriptionFactory']['registerDescriptionCallback'](_0x113bd3=>{if('attribute'!=_0x113bd3['type'])return;const {data:_0x2c049c}=_0x113bd3;return _0x2c049c&&'src'==_0x2c049c['key']?_0x2c049c['newValue']&&_0x2c049c['oldValue']?{'type':'format','content':o(_0x5ad0ed,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x243459=this['editor']['plugins']['get']('TrackChangesEditing');_0x243459['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x243459['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x243459['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x243459['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3beaeb=this['editor'],_0x5765af=_0x3beaeb['locale'];_0x3beaeb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x173cea=>{if('formatBlock'!=_0x173cea['type']&&'formatInline'!=_0x173cea['type'])return;const {data:_0x25b86a}=_0x173cea;if(!_0x25b86a||'replaceImageSource'!=_0x25b86a['commandName'])return;return{'type':'format','content':o(_0x5765af,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x115581{['afterInit'](){const _0x4b5b3a=this['editor'];if(!_0x4b5b3a['plugins']['has']('ImageStyleEditing'))return;const _0x108f2e=_0x4b5b3a['plugins']['get']('TrackChangesEditing'),_0x1cffcb=_0x4b5b3a['plugins']['get']('ImageUtils'),_0x4b3982={};_0x108f2e['enableCommand']('imageStyle',(_0x299446,_0x4b334a)=>{const _0x53a332=_0x4b5b3a['plugins']['get']('Users')['me'],_0x28c77a=_0x4b5b3a['commands']['get']('imageStyle');let _0x360ef2=_0x1cffcb['getClosestSelectedImageElement'](_0x4b5b3a['model']['document']['selection']),_0x4da32b=_0x4b5b3a['model']['createRangeOn'](_0x360ef2),_0x3edfa9=_0x28c77a['value'];if(_0x3edfa9==_0x4b334a['value'])return;const _0x31e9d3={'commandName':'imageStyle','commandParams':[_0x4b334a],'formatGroupId':_0x19169b()};_0x4b5b3a['model']['change'](()=>{if(_0x108f2e['getSuggestions']()['filter'](_0x28e76f=>_0x28e76f['isInContent']&&_0x53a332==_0x28e76f['author']&&('formatBlock'==_0x28e76f['type']||'formatInline'==_0x28e76f['type'])&&('imageStylePreApply'==_0x28e76f['subType']||'imageStylePostApply'==_0x28e76f['subType'])&&_0x28e76f['getFirstRange']()['isEqual'](_0x4da32b))['forEach'](_0xffee58=>_0x108f2e['discardSuggestion'](_0xffee58['head'])),_0x360ef2=_0x1cffcb['getClosestSelectedImageElement'](_0x4b5b3a['model']['document']['selection']),_0x4da32b=_0x4b5b3a['model']['createRangeOn'](_0x360ef2),_0x28c77a['refresh'](),_0x4b5b3a['commands']['get']('imageTypeInline')['refresh'](),_0x4b5b3a['commands']['get']('imageTypeBlock')['refresh'](),_0x3edfa9=_0x28c77a['value'],_0x3edfa9!=_0x4b334a['value'])return _0x1cffcb['isInlineImage'](_0x360ef2)&&_0x28c77a['shouldConvertImageType'](_0x4b334a['value'],_0x360ef2)?(_0x299446({..._0x4b334a,'setImageSizes':!0x1}),_0x360ef2=_0x1cffcb['getClosestSelectedImageElement'](_0x4b5b3a['model']['document']['selection']),void _0x108f2e['markBlockFormat'](_0x360ef2,{..._0x31e9d3,'commandReversedParams':[{'value':_0x3edfa9||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x1cffcb['isBlockImage'](_0x360ef2)?_0x108f2e['markBlockFormat'](_0x360ef2,_0x31e9d3,[],'imageStylePostApply'):_0x108f2e['markInlineFormat'](_0x4da32b,_0x31e9d3,'imageStylePostApply'));});});for(const _0x5d2907 of _0x4b5b3a['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x4b3982[_0x5d2907['name']]=_0x5d2907['title']['toLowerCase']();_0x108f2e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x108f2e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x108f2e['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x108f2e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x49a163])=>{_0x1cffcb['setImageNaturalSizeAttributes'](_0x49a163['getContainedElement']());}),_0x108f2e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x3b2c10,_0x1cc511)=>{_0x108f2e['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x3b2c10,{'commandName':_0x1cc511['commandName'],'commandParams':_0x1cc511['commandReversedParams']});}),_0x108f2e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x25a54a,_0x543485){if(_0x2cc1c8(_0x25a54a,_0x543485))return[_0x25a54a,_0x543485];if(_0x2cc1c8(_0x543485,_0x25a54a))return[_0x543485,_0x25a54a];return null;});const _0x53f15c=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2cc1c8(_0x85a28b,_0xf543f3){const _0x404c8d=_0x53f15c['findIndex'](({type:_0x21d5df,subType:_0x3828ee})=>_0x85a28b['type']==_0x21d5df&&_0x85a28b['subType']==_0x3828ee),_0x136e32=_0x53f15c['findIndex'](({type:_0x16a611,subType:_0x3bab8d})=>_0xf543f3['type']==_0x16a611&&_0xf543f3['subType']==_0x3bab8d);if(_0x404c8d<0x0||_0x136e32<0x0)return!0x1;const _0x4cc19c=_0x85a28b['getFirstRange'](),_0x435191=_0xf543f3['getFirstRange']();if((0x0==_0x404c8d||0x1==_0x404c8d)&&0x2==_0x136e32&&_0x4cc19c['isIntersecting'](_0x435191))return!0x0;if(0x2==_0x404c8d&&0x3==_0x136e32){const _0x1de32c=_0x108f2e['_findSuggestions'](_0x4cc19c,'insertion')['filter'](({suggestion:_0x3921b6,meta:_0x486b9c})=>_0x486b9c['isOwn']&&'convertInlineImageToBlock'==_0x3921b6['subType']);if(_0x1de32c['length']>0x1&&_0x435191['end']['isEqual'](_0x4cc19c['start']))return!0x0;if(0x1==_0x1de32c['length']&&(_0x4cc19c['start']['isEqual'](_0x435191['end'])||_0x4cc19c['end']['isEqual'](_0x435191['start'])))return!0x0;}if(0x3==_0x404c8d&&0x3==_0x136e32&&_0x4cc19c['start']['isBefore'](_0x435191['start'])){const _0x53944f=_0x4cc19c['end']['nodeAfter'],_0x1aeada=_0x435191['start']['nodeBefore'];return _0x1cffcb['isBlockImage'](_0x53944f)&&_0x53944f===_0x1aeada;}return!0x1;}_0x4b5b3a['model']['document']['registerPostFixer'](()=>{let _0x1a7742=!0x1;const _0x57b612=Array['from'](_0x4b5b3a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1bfd94,data:_0xd23dcc}of _0x57b612){const {group:_0x2f432a,type:_0xd9038d,subType:_0x268a95,id:_0x30c224}=_0x108f2e['_splitMarkerName'](_0x1bfd94);if('suggestion'==_0x2f432a&&_0x108f2e['hasSuggestion'](_0x30c224)){if('formatBlock'==_0xd9038d&&('imageStylePreApply'==_0x268a95||'imageStylePostApply'==_0x268a95)){const _0x5bb359=_0x108f2e['getSuggestion'](_0x30c224);if(_0xd23dcc['newRange']){const _0x256734=_0x5bb359['getFirstRange']()['getContainedElement']();if(_0x1cffcb['isBlockImage'](_0x256734))continue;_0x108f2e['discardSuggestion'](_0x5bb359),_0x1a7742=!0x0;}}if('insertion'==_0xd9038d&&'imageCaption'==_0x268a95&&!_0xd23dcc['newRange']){const _0x39f18a=_0x108f2e['getSuggestion'](_0x30c224);_0x39f18a['next']&&_0x39f18a['next']['isInContent']&&(_0x108f2e['discardSuggestion'](_0x39f18a['next']),_0x1a7742=!0x0);}}}return _0x1a7742;}),this['_registerLegacyDescription'](_0x4b3982);}['_registerLegacyDescription'](_0x260e91){const _0x451092=this['editor'],_0x2a4abe=_0x451092['locale'];_0x451092['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x273d78=>{if('formatBlock'!=_0x273d78['type']&&'formatInline'!=_0x273d78['type'])return;const {data:_0x1b5265}=_0x273d78;if(!_0x1b5265||'imageStyle'!=_0x1b5265['commandName'])return;const _0x138e50=_0x1b5265['commandParams'][0x0]['value'];return _0x22b97b('side'===_0x138e50?o(_0x2a4abe,'FORMAT_SIDE_IMAGE'):_0x260e91[_0x138e50]||_0x138e50);function _0x22b97b(_0x325748){return{'type':'format','content':o(_0x2a4abe,'*Format:*\x20%0',_0x325748)};}});}}class ut extends _0x115581{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x21c49b){super(_0x21c49b),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x332c7a=this['editor'],_0x486c82=_0x332c7a['commands']['get']('importWord'),_0x6549e3=_0x332c7a['commands']['get']('trackChanges');_0x486c82&&(_0x486c82['on']('execute',(_0x5e34d8,[,_0x5cb1e4])=>{this['_trackChangesValueDuringImport']=_0x6549e3['value'],_0x5cb1e4['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x486c82,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x486c82,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x6549e3['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x332c7a['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x651a28,_0x4f11c4){const {suggestions:_0x2f6bad}=_0x4f11c4,_0x2e5a52=this['editor']['commands']['get']('trackChanges'),_0x38104c=_0x2e5a52['value'];this['_trackChangesValueDuringImport']!==_0x38104c&&(_0x2e5a52['execute'](),this['_trackChangesExecuted']=!0x0),_0x2f6bad&&_0x2f6bad['forEach'](({id:_0x1b0720,type:_0x42b29e,author:_0x3b6f17,created_at:_0x31ff0d})=>{const _0x3e34c7={'id':_0x1b0720,'type':_0x42b29e,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x3b6f17,'createdAt':_0x31ff0d?new Date(_0x31ff0d):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x3e34c7);});}}class ft extends _0x115581{['afterInit'](){const _0x374093=this['editor'],_0x5591dc=_0x374093['plugins']['get']('TrackChangesEditing');if(_0x374093['plugins']['has']('IndentEditing')&&(_0x5591dc['enableCommand']('indent'),_0x5591dc['enableCommand']('outdent')),_0x374093['plugins']['has']('IndentBlock')){for(const _0x4c9b36 of['indentBlock','outdentBlock'])_0x5591dc['enableDefaultAttributesIntegration'](_0x4c9b36);}const _0x16707f=_0x374093['locale'];_0x5591dc['registerBlockAttribute']('blockIndent'),_0x5591dc['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x16707f,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x594cd9=this['editor'],_0xf89f16=_0x594cd9['locale'],_0x288229=_0x594cd9['plugins']['get']('TrackChangesEditing');_0x288229['descriptionFactory']['registerDescriptionCallback'](_0x17c658=>{if('formatBlock'!=_0x17c658['type'])return;const {data:_0x3ef1a1}=_0x17c658;if(!_0x3ef1a1)return;if('indentBlock'!=_0x3ef1a1['commandName']&&'outdentBlock'!=_0x3ef1a1['commandName'])return;const _0x181bdc=_0x17c658['getItems']()[0x0],_0x59a5fd=_0x288229['descriptionFactory']['getItemLabel'](_0x181bdc);return'indentBlock'==_0x3ef1a1['commandName']?{'type':'format','content':o(_0xf89f16,'*Indent:*\x20%0',_0x59a5fd)}:'outdentBlock'==_0x3ef1a1['commandName']?{'type':'format','content':o(_0xf89f16,'*Outdent:*\x20%0',_0x59a5fd)}:void 0x0;});}}class ht extends _0x115581{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x115581{['afterInit'](){const _0x3b6bc3=this['editor'];if(!_0x3b6bc3['plugins']['has']('LinkEditing'))return;const _0x77b4bc=_0x3b6bc3['plugins']['get']('TrackChangesEditing'),_0x24efe2=_0x3b6bc3['commands']['get']('link');_0x77b4bc['enableDefaultAttributesIntegration']('link'),_0x77b4bc['enableDefaultAttributesIntegration']('unlink'),_0x77b4bc['registerInlineAttribute']('linkHref');for(const _0x5a1aa5 of _0x24efe2['manualDecorators'])_0x77b4bc['registerInlineAttribute'](_0x5a1aa5['id']),_0x77b4bc['descriptionFactory']['registerAttributeLabel'](_0x5a1aa5['id'],'link\x20('+_0x5a1aa5['label']['toLowerCase']()+')');_0x77b4bc['descriptionFactory']['registerDescriptionCallback'](_0x561f28=>{if('attribute'!=_0x561f28['type'])return;const {data:_0x372fa3}=_0x561f28;if(!_0x372fa3||'linkHref'!=_0x372fa3['key'])return;const _0x206288=_0x372fa3['newValue'],_0x4e73d6=_0x3b6bc3['locale'];return{'type':'format','content':null==_0x206288?o(_0x4e73d6,'*Remove\x20link*'):o(_0x4e73d6,'*Set\x20link:*\x20%0','\x22'+_0x206288+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x57b4c7=this['editor'],_0x51f873=_0x57b4c7['locale'];_0x57b4c7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x15818c=>{if('formatInline'!=_0x15818c['type'])return;const {data:_0x3d1495}=_0x15818c;if(_0x3d1495){if('link'==_0x3d1495['commandName']){const _0x36e1e2=_0x3d1495['commandParams'][0x0];return{'type':'format','content':o(_0x51f873,'*Set\x20link:*\x20%0','\x22'+_0x36e1e2+'\x22')};}return'unlink'==_0x3d1495['commandName']?{'type':'format','content':o(_0x51f873,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x115581{['afterInit'](){const _0x453513=this['editor'],_0x110e42=_0x453513['locale'];if(!_0x453513['plugins']['has']('LegacyListEditing'))return;const _0x23f669=_0x453513['plugins']['get']('TrackChangesEditing'),_0x5353ef=_0x453513['plugins']['has']('LegacyTodoListEditing');function _0x4fb91b(_0x5ab9c8){return()=>{const _0x46e190=_0x453513['model']['document']['selection'],_0xa5c16b=_0x453513['commands']['get'](_0x5ab9c8);if(_0xa5c16b['value'])return void _0x453513['execute']('paragraph',{});const _0x33b70f=_0x5ab9c8['slice'](0x0,-0x4),_0xa31e3f=function(_0xdcbe33,_0x950380,_0x4a1dc7){let _0x14e6c5=Array['from'](_0xdcbe33)['filter'](_0x5cefd4=>function(_0x466a85,_0x2fd475){return _0x2fd475['checkChild'](_0x466a85['parent'],'listItem')&&!_0x2fd475['isObject'](_0x466a85);}(_0x5cefd4,_0x4a1dc7));_0x14e6c5=_0x14e6c5['filter'](_0x394de6=>!_0x394de6['is']('element','listItem')||_0x394de6['getAttribute']('listType')!=_0x950380);const _0x274032=new Set();for(const _0x5b270d of _0x14e6c5)_0x5b270d['is']('element','listItem')?_0x274032['add'](Le(_0x5b270d)):_0x274032['add'](_0x5b270d);return Array['from'](_0x274032);}(_0x46e190['getSelectedBlocks'](),_0x33b70f,_0x453513['model']['schema']);_0x453513['model']['change'](()=>{for(const _0x3658de of _0xa31e3f)_0x23f669['markBlockFormat'](_0x3658de,{'commandName':_0x5ab9c8,'commandParams':[{'forceValue':!_0xa5c16b['value']}],'formatGroupId':'blockName'},Ee(_0x3658de));});};}function _0x346d72(_0x309c59){return()=>{const _0xfc308b=function(_0x514361){let _0x4e621c=Array['from'](_0x514361);const _0x2897aa=_0x4e621c['findIndex'](_0x249e36=>'listItem'!=_0x249e36['name']);return _0x2897aa>-0x1&&(_0x4e621c=_0x4e621c['slice'](0x0,_0x2897aa)),_0x4e621c;}(_0x453513['model']['document']['selection']['getSelectedBlocks']()),_0x171b0c=_0x453513['model']['createRange'](_0x453513['model']['createPositionAt'](_0xfc308b[0x0],'before'),_0x453513['model']['createPositionAt'](_0xfc308b[_0xfc308b['length']-0x1],'end'));_0x453513['model']['change'](()=>{_0x23f669['markBlockFormat'](_0x171b0c,{'commandName':_0x309c59,'commandParams':[],'formatGroupId':'listIndent'},function(_0x573c48){const _0x59f375=new Set();for(const _0x585915 of _0x573c48){let _0x2e8830=_0x585915['nextSibling'];for(;_0x2e8830&&_0x2e8830['getAttribute']('listIndent')>_0x585915['getAttribute']('listIndent');)_0x59f375['add'](_0x2e8830),_0x2e8830=_0x2e8830['nextSibling'];}return Array['from'](_0x59f375);}(_0xfc308b));});};}_0x23f669['enableCommand']('numberedList',_0x4fb91b('numberedList')),_0x23f669['enableCommand']('bulletedList',_0x4fb91b('bulletedList')),_0x5353ef&&_0x23f669['enableCommand']('todoList',_0x4fb91b('todoList')),_0x23f669['enableCommand']('indentList',_0x346d72('indentList')),_0x23f669['enableCommand']('outdentList',_0x346d72('outdentList')),_0x5353ef&&_0x23f669['enableCommand']('checkTodoList',()=>{const _0x509a1f=_0x453513['commands']['get']('checkTodoList'),_0x55ccb4=Array['from'](_0x509a1f['_selectedElements']);_0x55ccb4['filter'](_0x9eef73=>_0x9eef73['getAttribute']('todoListChecked')!=_0x509a1f['value']),_0x453513['model']['change'](()=>{for(const _0x51f09a of _0x55ccb4)_0x23f669['markBlockFormat'](_0x51f09a,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x509a1f['value']}]});});}),_0x23f669['descriptionFactory']['registerElementLabel']('listItem',_0x2203b0=>o(_0x110e42,'ELEMENT_LIST_ITEM',_0x2203b0)),_0x23f669['descriptionFactory']['registerDescriptionCallback'](_0x416039=>{if('formatBlock'!=_0x416039['type']&&'formatInline'!=_0x416039['type'])return;const {data:_0x47fe1f}=_0x416039;if(_0x47fe1f){if('numberedList'==_0x47fe1f['commandName']||'bulletedList'==_0x47fe1f['commandName']||'todoList'==_0x47fe1f['commandName'])switch(_0x47fe1f['commandName']['replace']('List','')){case'bulleted':return _0xf7ed09(o(_0x110e42,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xf7ed09(o(_0x110e42,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xf7ed09(o(_0x110e42,'ELEMENT_TODO_LIST'));}if('indentList'==_0x47fe1f['commandName'])return{'type':'format','content':o(_0x110e42,'*Indent:*\x20%0',o(_0x110e42,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x47fe1f['commandName'])return{'type':'format','content':o(_0x110e42,'*Outdent:*\x20%0',o(_0x110e42,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x47fe1f['commandName'])return _0x47fe1f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x110e42,'*Check\x20item*')}:{'type':'format','content':o(_0x110e42,'*Uncheck\x20item*')};}function _0xf7ed09(_0x2eee44){return{'type':'format','content':o(_0x110e42,'*Change\x20to:*\x20%0',_0x2eee44)};}});}}function Le(_0x178a2f){const _0x5d43f9=_0x178a2f['getAttribute']('listIndent');if(0x0==_0x5d43f9)return _0x178a2f;let _0x582b79=_0x178a2f;for(;_0x178a2f['previousSibling']&&_0x178a2f['previousSibling']['is']('element','listItem');){const _0x33f0fe=_0x178a2f['previousSibling']['getAttribute']('listIndent');if(_0x33f0fe==_0x5d43f9)_0x582b79=_0x178a2f['previousSibling'];else{if(_0x33f0fe<_0x5d43f9)break;}_0x178a2f=_0x178a2f['previousSibling'];}return _0x582b79;}function Ee(_0x51084f){const _0x1e216d=[];if(_0x51084f['is']('element','listItem')&&_0x51084f['getAttribute']('listIndent')>0x0){let _0x5794d4=_0x51084f['nextSibling'];for(;_0x5794d4&&'listItem'==_0x5794d4['name']&&_0x5794d4['getAttribute']('listIndent')==_0x51084f['getAttribute']('listIndent');)_0x1e216d['push'](_0x5794d4),_0x5794d4=_0x5794d4['nextSibling'];}return _0x1e216d;}class Q extends _0x115581{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x5c90a1=this['editor']['config']['get']('list.properties'),_0x4b6453=this['editor']['plugins']['get']('TrackChangesEditing');_0x5c90a1['styles']&&_0x4b6453['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x5c90a1['reversed']&&_0x4b6453['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x5c90a1['startIndex']&&_0x4b6453['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x4b6453['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x201976,_0x57a9c9={}){const _0x130f2f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5134b9=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x130f2f['markMultiRangeBlockFormat'](_0x5134b9,{'commandName':'listStyle','commandParams':[{'type':_0x57a9c9['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x25d6a7,_0x326bcb={}){const _0x5183f4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1d8c04=this['_getSuggestionBlocks'](_0x1f44bf=>_0x1f44bf['is']('element','listItem')&&'numbered'===_0x1f44bf['getAttribute']('listType'));if(_0x1d8c04['length']<0x1)return;const _0x75ae68=_0x1d8c04['map'](_0x3725a8=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3725a8,'before'),this['editor']['model']['createPositionAt'](_0x3725a8,0x0)));this['editor']['model']['change'](()=>{_0x5183f4['markMultiRangeBlockFormat'](_0x75ae68,{'commandName':'listReversed','commandParams':[{'reversed':_0x326bcb['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x573e4e,_0x4ed5df={}){const _0x320565=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5ea017=this['_getSuggestionBlocks'](_0x5b2121=>_0x5b2121['is']('element','listItem')&&'numbered'===_0x5b2121['getAttribute']('listType'));if(_0x5ea017['length']<0x1)return;const _0x435e03=_0x5ea017['map'](_0x2ec158=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2ec158,'before'),this['editor']['model']['createPositionAt'](_0x2ec158,0x0)));this['editor']['model']['change'](()=>{_0x320565['markMultiRangeBlockFormat'](_0x435e03,{'commandName':'listStart','commandParams':[{'startIndex':_0x4ed5df['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x541989){if('formatBlock'!=_0x541989['type']&&'formatInline'!=_0x541989['type'])return;const _0x2eab5d=this['editor']['locale'],{data:_0x4dc0e9}=_0x541989;if(!_0x4dc0e9)return;let _0x3df4f6,_0x53ba95;switch(_0x4dc0e9['commandName']){case'listStyle':_0x3df4f6='*Change\x20to:*\x20%0',_0x53ba95={'type':'format','content':o(_0x2eab5d,_0x3df4f6,o(_0x2eab5d,this['_getTranslationKeyForListStyle'](_0x4dc0e9['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3df4f6=_0x4dc0e9['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x53ba95={'type':'format','content':o(_0x2eab5d,_0x3df4f6)};break;case'listStart':_0x3df4f6='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x53ba95={'type':'format','content':o(_0x2eab5d,_0x3df4f6,_0x4dc0e9['commandParams'][0x0]['startIndex'])};}return _0x53ba95;}['_getSuggestionBlocksForListStyle'](){const _0x386194=this['editor']['plugins']['get']('LegacyListUtils');let _0x361ea0=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x361ea0[0x0]?.['is']('element','listItem')&&_0x361ea0['unshift'](..._0x386194['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x361ea0[_0x361ea0['length']-0x1]?.['is']('element','listItem')&&_0x361ea0['push'](..._0x386194['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x361ea0=[...new Set(_0x361ea0)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x361ea0=_0x361ea0['filter'](_0x4d1f1b=>_0x4d1f1b['is']('element','listItem'))),_0x361ea0;}['_getSuggestionBlocks'](_0x46e652){const _0xbb86f7=this['editor']['plugins']['get']('LegacyListUtils');let _0x3e31eb=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x46e652)['map'](_0x492442=>{const _0x5a1817=this['editor']['model']['createPositionAt'](_0x492442,0x0);return[..._0xbb86f7['getSiblingNodes'](_0x5a1817,'backward'),..._0xbb86f7['getSiblingNodes'](_0x5a1817,'forward')];})['flat']();return _0x3e31eb=[...new Set(_0x3e31eb)],_0x3e31eb;}['_getTranslationKeyForListStyle'](_0x397789){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x397789)||'default')['toUpperCase']()+'_LIST_'+_0x397789['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x115581{['afterInit'](){const _0x11cd94=this['editor'];if(!_0x11cd94['plugins']['has']('MediaEmbedEditing'))return;const _0x3cea8e=_0x11cd94['plugins']['get']('TrackChangesEditing'),_0x47a0bc=_0x11cd94['locale'];_0x3cea8e['enableCommand']('mediaEmbed'),_0x3cea8e['descriptionFactory']['registerElementLabel']('media',_0x4c6443=>o(_0x47a0bc,'ELEMENT_MEDIA',_0x4c6443)),_0x11cd94['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0xad922,{writer:_0x2477b6,options:_0x3c6851})=>{if(_0x3c6851['showSuggestionHighlights'])return _0x2477b6['createEmptyElement']('div');},'converterPriority':'high'}),_0x11cd94['data']['downcastDispatcher']['on']('attribute:url:media',(_0x123af0,_0x4d1ae6,_0x1a6c96)=>{_0x1a6c96['options']['showSuggestionHighlights']&&_0x123af0['stop']();},{'priority':'high'});}}class pt extends _0x115581{['afterInit'](){const _0x45accb=this['editor'];_0x45accb['plugins']['has']('MentionEditing')&&_0x45accb['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x115581{['afterInit'](){const _0x1e0550=this['editor'];if(!_0x1e0550['plugins']['has']('MergeFieldsEditing'))return;const _0x4e3dc8=_0x1e0550['plugins']['get']('TrackChangesEditing'),_0xedab9=_0x1e0550['locale'];_0x4e3dc8['enableCommand']('insertMergeField'),_0x4e3dc8['enableCommand']('insertMergeFieldBlock'),_0x4e3dc8['enableCommand']('insertMergeFieldImage'),_0x4e3dc8['descriptionFactory']['registerElementLabel']('mergeField',_0x1ee8ae=>o(_0xedab9,'ELEMENT_MERGE_FIELD',_0x1ee8ae)),_0x4e3dc8['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x2f5e3b=>o(_0xedab9,'ELEMENT_MERGE_FIELD',_0x2f5e3b)),_0x4e3dc8['descriptionFactory']['registerDescriptionCallback'](_0x2767f8=>{if('insertion'!=_0x2767f8['type']&&'deletion'!=_0x2767f8['type'])return;const _0x5ec95a=_0x2767f8['getContainedElement']();if(null==_0x5ec95a)return;const _0x202981=_0x1e0550['plugins']['get']('MergeFieldsEditing');let _0x528162;switch(_0x202981['getMergeFieldType'](_0x5ec95a)){case null:return;case'image':{const _0x31ed3f=_0x202981['unwrapAffixes'](_0x5ec95a['getAttribute']('src'));_0x528162=_0x202981['getLabel'](_0x31ed3f)||_0x31ed3f;break;}default:{const _0x42bba9=_0x5ec95a['getAttribute']('id');_0x528162=_0x202981['getLabel'](_0x42bba9)||_0x42bba9;break;}}return'insertion'==_0x2767f8['type']?{'type':'insertion','content':o(_0xedab9,'*Insert:*\x20%0','\x22'+_0x528162+'\x22\x20'+o(_0xedab9,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0xedab9,'*Remove:*\x20%0','\x22'+_0x528162+'\x22\x20'+o(_0xedab9,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x115581{['afterInit'](){const _0x372646=this['editor'],_0x2fe9ff=_0x372646['plugins']['get']('TrackChangesEditing');_0x372646['plugins']['has']('MultiLevelList')&&(_0x2fe9ff['enableDefaultAttributesIntegration']('multiLevelList'),_0x2fe9ff['registerBlockAttribute']('listMarkerStyle'),_0x2fe9ff['descriptionFactory']['registerDescriptionCallback'](_0x307dda=>this['handleDescriptions'](_0x307dda)));}['handleDescriptions'](_0x587985){const _0x520af1=this['editor']['locale'],{data:_0x5d50e6}=_0x587985,_0x200c90={'type':'format','content':''};if(_0x5d50e6&&'listMarkerStyle'==_0x5d50e6['key']){if(!_0x5d50e6['oldValue'])return{'type':'format','content':o(_0x520af1,'*Set\x20format:*\x20%0',o(_0x520af1,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5d50e6['newValue']+')'};if(!_0x5d50e6['newValue']){let _0x394608=_0x587985['head'];for(;_0x394608;){if(_0x394608['data']&&'listType'==_0x394608['data']['key']&&_0x394608['data']['newValue'])return _0x200c90;_0x394608=_0x394608['next'];}return{'type':'format','content':o(_0x520af1,'*Remove\x20format:*\x20%0',o(_0x520af1,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5d50e6['oldValue']+')'};}}}}class bt extends _0x115581{['afterInit'](){const _0x2d5172=this['editor'];if(!_0x2d5172['plugins']['has']('PageBreakEditing'))return;_0x2d5172['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x40a171=_0x2d5172['plugins']['get']('TrackChangesEditing'),_0x340bae=_0x2d5172['locale'];_0x40a171['descriptionFactory']['registerElementLabel']('pageBreak',_0x255fee=>o(_0x340bae,'ELEMENT_PAGE_BREAK',_0x255fee));}}class yt extends _0x115581{['afterInit'](){const _0xdde8d=this['editor'];if(!_0xdde8d['plugins']['has']('Paragraph'))return;const _0x44744f=_0xdde8d['locale'],_0x78dfd1=_0xdde8d['plugins']['get']('TrackChangesEditing');_0x78dfd1['descriptionFactory']['registerElementLabel']('paragraph',_0x366a8f=>o(_0x44744f,'ELEMENT_PARAGRAPH',_0x366a8f)),_0x78dfd1['enableDefaultAttributesIntegration']('paragraph'),_0x78dfd1['enableCommand']('insertParagraph'),_0xdde8d['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0xdde8d),{'priority':'highest'}),_0xdde8d['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x9012c,_0x4ef587,_0x18f13a)=>{_0x18f13a['options']['showSuggestionHighlights']&&nr(_0xdde8d,{'showActiveMarker':!0x1})(_0x9012c,_0x4ef587,_0x18f13a);},{'priority':'highest'});const _0x441c4c=_0x78dfd1['descriptionFactory'];_0x441c4c['registerDescriptionCallback'](_0x39239f=>{if('insertion'!==_0x39239f['type'])return;const {start:_0x41d7b8,end:_0xa27a77}=_0x39239f['getFirstRange']();if(!_0x41d7b8['isTouching'](_0xa27a77)||!_0x41d7b8['nodeAfter'])return;const _0x32e785=_0xdde8d['model']['schema'],_0x454326=_0x41d7b8['nodeAfter'];return _0x32e785['isBlock'](_0x454326)&&!_0x32e785['isLimit'](_0x454326)&&_0x32e785['checkChild'](_0x454326,'$text')?{'type':'insertion','content':o(_0x44744f,'*Insert:*\x20%0',_0x441c4c['getItemLabel'](_0x454326,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x196d83=this['editor'],_0x562ad6=_0x196d83['locale'];_0x196d83['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x39b7de=>{if('formatBlock'!=_0x39b7de['type'])return;const {data:_0x32ffa8}=_0x39b7de;return _0x32ffa8&&'paragraph'==_0x32ffa8['commandName']?{'type':'format','content':o(_0x562ad6,'*Change\x20to:*\x20%0',o(_0x562ad6,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0xa80cab,{showActiveMarker:_0x5d2a5f=!0x0}={}){return(_0x18ee39,_0x22b90e,_0x401c22)=>{const _0x23f850=_0xa80cab['plugins']['get']('TrackChangesEditing'),_0x5ea7b4=_0x22b90e['markerRange']['start'],_0x53d713=_0x22b90e['markerRange']['end'],_0x28b26f=_0xa80cab['model']['schema'];if(!_0x5ea7b4['isTouching'](_0x53d713)||!_0x5ea7b4['nodeAfter'])return;const _0x557c81=_0x5ea7b4['nodeAfter'];if(_0x28b26f['isBlock'](_0x557c81)&&!_0x28b26f['isLimit'](_0x557c81)&&_0x28b26f['checkChild'](_0x557c81,'$text')){if(!_0x401c22['consumable']['consume'](_0x22b90e['markerRange'],_0x18ee39['name']))return;const {authorId:_0x42a301}=_0x23f850['_splitMarkerName'](_0x22b90e['markerName']),_0x35dd8f=_0x401c22['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x42a301}),_0x1a0291=_0x401c22['mapper']['toViewPosition'](_0x53d713);_0x5d2a5f&&_0x23f850['activeMarkers']['includes'](_0x22b90e['markerName'])&&_0x401c22['writer']['addClass']('ck-suggestion-marker--active',_0x35dd8f),_0x401c22['writer']['insert'](_0x1a0291,_0x35dd8f),_0x401c22['mapper']['bindElementToMarker'](_0x35dd8f,_0x22b90e['markerName']);}};}class jt extends _0x115581{['afterInit'](){const _0x2a326f=this['editor'];_0x2a326f['commands']['get']('replaceSource')&&_0x2a326f['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x115581{['afterInit'](){const _0x472d95=this['editor'];if(!_0x472d95['plugins']['has']('RemoveFormatEditing'))return;_0x472d95['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4e9a26=this['editor'];_0x4e9a26['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4f0b60=>{if('formatBlock'!=_0x4f0b60['type']&&'formatInline'!=_0x4f0b60['type'])return;const {data:_0x56213c}=_0x4f0b60;return _0x56213c&&'removeFormat'==_0x56213c['commandName']?{'type':'format','content':o(_0x4e9a26['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x115581{['afterInit'](){const _0x1bf4ac=this['editor'];if(!_0x1bf4ac['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x288463=_0x1bf4ac['plugins']['get']('TrackChangesEditing');_0x288463['enableCommand']('goToPreviousRestrictedEditingException'),_0x288463['enableCommand']('goToNextRestrictedEditingException');const _0x5ac8b5=_0x1bf4ac['plugins']['get']('RestrictedEditingModeEditing');_0x5ac8b5['enableCommand']('trackChanges'),_0x5ac8b5['enableCommand']('acceptSuggestion'),_0x5ac8b5['enableCommand']('discardSuggestion'),_0x5ac8b5['enableCommand']('acceptAllSuggestions'),_0x5ac8b5['enableCommand']('discardAllSuggestions'),_0x5ac8b5['enableCommand']('acceptSelectedSuggestions'),_0x5ac8b5['enableCommand']('discardSelectedSuggestions');}}class It extends _0x115581{static get['requires'](){return[_0x4b5d70];}['init'](){const _0x41f38a=this['editor'],_0x4b4ab3=_0x41f38a['plugins']['get']('TrackChangesEditing');_0x4b4ab3['enableCommand']('shiftEnter'),_0x41f38a['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x41f38a),{'priority':'high'}),_0x41f38a['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x41f38a),{'priority':'high'}),_0x41f38a['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x256cee,_0xba1f50,_0x5ad370)=>{_0x5ad370['options']['showSuggestionHighlights']&&je(_0x41f38a,{'showActiveMarker':!0x1})(_0x256cee,_0xba1f50,_0x5ad370);}),_0x4b4ab3['descriptionFactory']['registerElementLabel']('softBreak',_0x5a7b9c=>o(_0x41f38a['locale'],'ELEMENT_LINE_BREAK',_0x5a7b9c));}}function je(_0xcca643,{showActiveMarker:_0x5e254e=!0x0}={}){return(_0x314894,_0x22fa79,_0x5778c1)=>{const _0x47ddf7=_0xcca643['plugins']['get']('TrackChangesEditing');if(!_0x5778c1['consumable']['test'](_0x22fa79['markerRange'],_0x314894['name']))return;const _0x4f5d8b=_0xcca643['model'];for(const _0x301318 of _0x22fa79['markerRange']['getItems']()){if(!_0x301318['is']('element','softBreak'))continue;const _0x505500='deletion'==_0x22fa79['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x25fb4c}=_0x47ddf7['_splitMarkerName'](_0x22fa79['markerName']),_0x38052a=_0x5778c1['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x505500,'data-author-id':_0x25fb4c}),_0x5631e5=_0x5778c1['mapper']['toViewPosition'](_0x4f5d8b['createPositionBefore'](_0x301318));_0x5e254e&&_0x47ddf7['activeMarkers']['includes'](_0x22fa79['markerName'])&&_0x5778c1['writer']['addClass']('ck-suggestion-marker--active',_0x38052a),_0x5778c1['writer']['insert'](_0x5631e5,_0x38052a),_0x5778c1['mapper']['bindElementToMarker'](_0x38052a,_0x22fa79['markerName']);}};}class vt extends _0x115581{['afterInit'](){const _0x2657fd=this['editor'],_0x213b99=_0x2657fd['model'],_0x2eabf0=_0x2657fd['locale'];if(!_0x2657fd['plugins']['has']('StandardEditingModeEditing'))return;const _0x2920b9=_0x2657fd['plugins']['get']('TrackChangesEditing'),_0x406bba='restrictedEditingException',_0x48d8fe=_0x2657fd['commands']['get'](_0x406bba);_0x2920b9['enableCommand'](_0x406bba,(_0x532d60,_0x4369a8={})=>{const _0x28a8f2=_0x213b99['document']['selection'];if(_0x28a8f2['isCollapsed'])return void _0x532d60(_0x4369a8);const _0x2c9c24=void 0x0!==_0x4369a8['forceValue']?_0x4369a8['forceValue']:!_0x48d8fe['value'];_0x213b99['change'](()=>{const _0x1473ef=Array['from'](_0x28a8f2['getRanges']());for(const _0xfd5bbe of _0x1473ef){const _0x395548=_0x2c9c24?[_0xfd5bbe]:io(_0x406bba,_0xfd5bbe,_0x213b99);for(const _0x1d1197 of _0x395548)_0x2920b9['markInlineFormat'](_0x1d1197,{'commandName':_0x406bba,'commandParams':[{'forceValue':_0x2c9c24}]});}});}),_0x2920b9['descriptionFactory']['registerDescriptionCallback'](_0x5020b8=>{if('formatBlock'!=_0x5020b8['type']&&'formatInline'!=_0x5020b8['type'])return;const {data:_0x777a73}=_0x5020b8;return _0x777a73&&_0x777a73['commandName']==_0x406bba?_0x777a73['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2eabf0,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x2eabf0,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class _t extends _0x115581{['afterInit'](){const _0x33aeaa=this['editor'];if(!_0x33aeaa['plugins']['has']('Style')||!_0x33aeaa['plugins']['has']('DataSchema'))return;const _0x1cb150=_0x33aeaa['plugins']['get']('TrackChangesEditing'),_0x2adf9d=_0x33aeaa['locale'],_0x9abde=_0x33aeaa['config']['get']('style')||{},_0x46f5e4=_0x33aeaa['plugins']['get']('GeneralHtmlSupport'),_0x234495=_0x33aeaa['plugins']['get']('StyleUtils')['normalizeConfig'](_0x33aeaa['plugins']['get']('DataSchema'),_0x9abde['definitions']);_0x1cb150['enableDefaultAttributesIntegration']('style');const _0x3f6a74=new Set();for(const _0x3f4641 of _0x234495['block']){const _0x4649d4=_0x46f5e4['getGhsAttributeNameForElement'](_0x3f4641['element']);_0x3f6a74['add'](_0x4649d4);}const _0x16e6e3=new Set();for(const _0x109bf1 of _0x234495['inline']){const _0x363380=_0x46f5e4['getGhsAttributeNameForElement'](_0x109bf1['element']);_0x16e6e3['add'](_0x363380);for(const _0x58d63e of _0x109bf1['ghsAttributes'])_0x16e6e3['add'](_0x58d63e);}for(const _0x56984a of _0x3f6a74)_0x1cb150['registerBlockAttribute'](_0x56984a),_0x1cb150['descriptionFactory']['registerAttributeLabel'](_0x56984a,o(_0x2adf9d,'FORMAT_STYLE'));for(const _0x414745 of _0x16e6e3)_0x1cb150['registerInlineAttribute'](_0x414745),_0x1cb150['descriptionFactory']['registerAttributeLabel'](_0x414745,o(_0x2adf9d,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x286091=this['editor'],_0x3cde3b=_0x286091['locale'];_0x286091['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x241a6a=>{if('formatBlock'!=_0x241a6a['type']&&'formatInline'!=_0x241a6a['type'])return;const {data:_0x1a0094}=_0x241a6a;return _0x1a0094&&'style'===_0x1a0094['commandName']?_0x1a0094['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3cde3b,'*Set\x20format:*\x20%0',_0x1a0094['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x3cde3b,'*Remove\x20format:*\x20%0',_0x1a0094['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x115581{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x5760ed){super(_0x5760ed),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x4875e5=this['editor'],_0xf21b63=_0x4875e5['model']['document']['selection'];if(!_0x4875e5['plugins']['has']('TableEditing'))return;const _0x59be2f=_0x4875e5['locale'],_0x2815fc=_0x4875e5['plugins']['get']('TrackChangesEditing'),_0x1b7532=_0x4875e5['plugins']['get']('TableUtils');_0x2815fc['descriptionFactory']['registerElementLabel']('table',_0x36f305=>o(_0x59be2f,'ELEMENT_TABLE',_0x36f305)),this['_setupColumnsRowsFixing'](),_0x2815fc['enableCommand']('insertTable'),_0x2815fc['enableCommand']('selectTableRow'),_0x2815fc['enableCommand']('selectTableColumn');for(const _0x1e3157 of['insertTableRowAbove','insertTableRowBelow']){const _0x527084=_0x4875e5['commands']['get'](_0x1e3157);_0x2815fc['enableCommand'](_0x1e3157,_0x22f276=>{_0x4875e5['model']['change'](_0x5ca45b=>{_0x22f276();const _0x2d38ab='above'===_0x527084['order'],_0x4a3841=_0x1b7532['getSelectionAffectedTableCells'](_0xf21b63),_0x2607d0=_0x1b7532['getRowIndexes'](_0x4a3841),_0x3da5a6=_0x2d38ab?_0x2607d0['first']-0x1:_0x2607d0['last']+0x1,_0xb9f9cb=_0x4a3841[0x0]['findAncestor']('table'),_0x34d065=_0x1b7532['createTableWalker'](_0xb9f9cb,{'startRow':_0x3da5a6,'endRow':_0x3da5a6}),_0x133ae7=Array['from'](_0x34d065)['map'](_0x4ed703=>_0x5ca45b['createRangeOn'](_0x4ed703['cell']));_0x2815fc['markMultiRangeInsertion'](_0x133ae7,'tableRow');});});}for(const _0x10d001 of['insertTableColumnLeft','insertTableColumnRight']){const _0x5d6cfc=_0x4875e5['commands']['get'](_0x10d001);_0x2815fc['enableCommand'](_0x10d001,_0x264119=>{_0x4875e5['model']['change'](_0x91a08e=>{_0x264119();const _0x322237='left'===_0x5d6cfc['order'],_0x891fc9=_0x1b7532['getSelectionAffectedTableCells'](_0xf21b63),_0x56a98a=_0x1b7532['getColumnIndexes'](_0x891fc9),_0x1b5f36=_0x322237?_0x56a98a['first']-0x1:_0x56a98a['last']+0x1,_0xc4a7d2=_0x891fc9[0x0]['findAncestor']('table'),_0x3fdb13=_0x1b7532['createTableWalker'](_0xc4a7d2,{'startRow':0x0,'column':_0x1b5f36,'includeAllSlots':!0x1}),_0x5b464e=Array['from'](_0x3fdb13)['map'](_0x42196e=>_0x91a08e['createRangeOn'](_0x42196e['cell']));_0x2815fc['markMultiRangeInsertion'](_0x5b464e,'tableColumn');});});}for(const _0xccc4ca of['removeTableRow','removeTableColumn']){const _0x278dbd=_0xccc4ca['substr'](0xb),_0x2063e4=_0x278dbd['toLowerCase'](),_0x21ad9e=_0x2063e4['substr'](0x0,0x3)+'span',_0x185ac3='table'+_0x278dbd,_0x1585c4='min'+_0x278dbd,_0x11b066='max'+_0x278dbd;_0x2815fc['enableCommand'](_0xccc4ca,()=>{_0x4875e5['model']['change'](_0x1df12b=>{const _0x268eb4=_0x1b7532['getSelectionAffectedTableCells'](_0xf21b63),_0x6fc398=_0x268eb4[0x0]['findAncestor']('table');let _0x660aae;if('removeTableRow'==_0xccc4ca){const _0x536966=_0x1b7532['getRowIndexes'](_0x268eb4);_0x660aae={'startRow':_0x536966['first'],'endRow':_0x536966['last'],'includeAllSlots':!0x0};}else{const _0x455558=_0x1b7532['getColumnIndexes'](_0x268eb4);_0x660aae={'startColumn':_0x455558['first'],'endColumn':_0x455558['last'],'includeAllSlots':!0x0};}const _0xa15cb3=_0x1b7532['createTableWalker'](_0x6fc398,_0x660aae),_0x5aa17c=Array['from'](_0xa15cb3)['map'](({cell:_0x553955})=>_0x553955),_0x72d15c=Ne(_0x5aa17c['filter'](_0x4b9c62=>_0x4b9c62['hasAttribute'](_0x21ad9e))),_0x30d7ce=Ne(_0x5aa17c['filter'](_0x3b2a45=>!_0x3b2a45['hasAttribute'](_0x21ad9e)))['map'](_0x491068=>_0x1df12b['createRangeOn'](_0x491068)),_0x1ff878=_0x2815fc['markMultiRangeDeletion'](_0x30d7ce,_0x185ac3);if(_0x1ff878&&('tableRow'==_0x1ff878['subType']||'tableColumn'==_0x1ff878['subType'])){const _0x2b3ccb=this['_getSuggestionCoords'](_0x1ff878);for(const _0x479e9c of _0x72d15c){const _0x32cfc6=_0x1df12b['createRangeOn'](_0x479e9c),_0xebefe8=_0x1b7532['getCellLocation'](_0x479e9c),_0x28ba14=_0x479e9c['getAttribute'](_0x21ad9e)-0x1,_0x559d3a=_0x2b3ccb[_0x1585c4],_0x3a0ea1=_0x2b3ccb[_0x11b066];_0x559d3a<=_0xebefe8[_0x2063e4]&&_0xebefe8[_0x2063e4]+_0x28ba14<=_0x3a0ea1&&_0x1ff878['addRange'](_0x32cfc6);}}});});}function _0x3e2fb8(_0x17e3d3){const _0x4a9de=Array['from'](_0xf21b63['getRanges']())['map'](_0x138ff9=>_0x7b347b['fromRange'](_0x138ff9));_0x4875e5['model']['change'](_0x3c2984=>{const _0x194281=_0x3c2984['batch'];_0x17e3d3=_0x17e3d3['filter'](_0x340445=>'$graveyard'!=_0x340445['root']['rootName']),_0x3c2984['setSelection'](_0x17e3d3),_0x4875e5['commands']['get']('removeTableRow')['refresh'](),_0x4875e5['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x4875e5['model']['enqueueChange'](()=>{_0x4875e5['model']['enqueueChange'](_0x194281,_0x4fe3d0=>{const _0x372186=_0x4a9de['filter'](_0x5797f5=>'$graveyard'!=_0x5797f5['root']['rootName']);_0x372186['length']>0x0&&_0x4fe3d0['setSelection'](_0x372186);for(const _0xbe0c77 of _0x4a9de)_0xbe0c77['detach']();});});});}function _0xad286(_0x39f1a7){_0x4875e5['model']['change'](_0x3a722c=>{const _0x3de750=Array['from'](_0xf21b63['getRanges']())['map'](_0x226ad5=>_0x7b347b['fromRange'](_0x226ad5)),_0x415866=[];for(const _0x52b653 of _0x39f1a7)for(const _0x21ec79 of _0x52b653['getItems']({'shallow':!0x0}))_0x415866['push'](_0x21ec79);for(const _0x3d03e7 of _0x415866)'$graveyard'!=_0x3d03e7['root']['rootName']&&(_0x3a722c['setSelection'](_0x3a722c['createPositionAt'](_0x3d03e7,0x0)),_0x4875e5['commands']['get']('removeTableColumn')['refresh'](),_0x4875e5['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x52a254=_0x3de750['filter'](_0x8fed9=>'$graveyard'!=_0x8fed9['root']['rootName']);_0x52a254['length']>0x0&&_0x3a722c['setSelection'](_0x52a254);for(const _0x32678c of _0x3de750)_0x32678c['detach']();});}function _0x4065c4(_0x5b8522,_0x1eb13c){return _0x1eb13c['every'](_0x2e43b9=>_0x5b8522['some'](_0x25a532=>_0x25a532['end']['isEqual'](_0x2e43b9['start'])||_0x2e43b9['end']['isEqual'](_0x25a532['start'])));}function _0x2a3478(_0x279b70,_0x1e97ae){return!_0x279b70['some'](_0x3e1cfb=>_0x1e97ae['some'](_0x1347b5=>_0x3e1cfb['isIntersecting'](_0x1347b5)))&&_0x279b70['some'](_0x3690d4=>_0x1e97ae['some'](_0x518440=>_0x3690d4['end']['isTouching'](_0x518440['start'])));}_0x4875e5['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3cbadd,_0x36a421,_0xfbb44b)=>{if(!_0xfbb44b['options']['showSuggestionHighlights'])return;const _0x596af6=_0x36a421['item'];if(!_0x596af6)return;const _0x1cd266=_0xfbb44b['mapper']['toViewElement'](_0x596af6);function _0x48de1f(_0x419b12){return Array['isArray'](_0x419b12)?_0x419b12:[_0x419b12];}_0x1cd266&&'tableCell'===_0x596af6['name']&&_0x2f2cdf(_0x1cd266,_0xfbb44b['writer'],(_0x1e27c0,_0x18b7ac,_0x9651de)=>_0x9651de['addClass'](_0x48de1f(_0x18b7ac['classes']),_0x1e27c0),(_0x24696c,_0x19fa37,_0x5952d2)=>_0x5952d2['removeClass'](_0x48de1f(_0x19fa37['classes']),_0x24696c));},{'priority':'highest'}),_0x2815fc['descriptionFactory']['registerDescriptionCallback'](_0x305d5f=>{if('insertion'!=_0x305d5f['type']&&'deletion'!=_0x305d5f['type'])return;const _0xe682c8=_0x305d5f['getContainedElement']();if(null!=_0xe682c8&&_0xe682c8['is']('element','table')){if('insertion'==_0x305d5f['type']){const _0x23c9f9=_0x305d5f['getItems']()['filter'](_0x50053a=>_0x50053a['is']('$textProxy'))['map'](_0x192d1a=>_0x192d1a['data']);if(_0x23c9f9['length'])return{'type':'insertion','content':o(_0x59be2f,'*Insert:*\x20%0',o(_0x59be2f,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x23c9f9['join']('\x20')+'\x22'))};}if('deletion'==_0x305d5f['type']){const _0x5e546e=_0x305d5f['getItems']()['filter'](_0x2ccd93=>_0x2ccd93['is']('$textProxy'))['map'](_0x56ce86=>_0x56ce86['data']);if(_0x5e546e['length'])return{'type':'deletion','content':o(_0x59be2f,'*Remove:*\x20%0',o(_0x59be2f,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5e546e['join']('\x20')+'\x22'))};}}}),_0x2815fc['descriptionFactory']['registerDescriptionCallback'](_0x385aa0=>{if('tableRow'==_0x385aa0['subType']){const _0x4275c0=_0x385aa0['getItems']()['filter'](_0x14061a=>_0x14061a['is']('$textProxy'))['map'](_0x1a8c0c=>_0x1a8c0c['data']),_0x5a5d5f=this['_getSuggestionCoords'](_0x385aa0),_0x30f54e=_0x5a5d5f['maxRow']-_0x5a5d5f['minRow']+0x1;if('insertion'==_0x385aa0['type'])return _0x4275c0['length']?{'type':'insertion','content':o(_0x59be2f,'*Insert:*\x20%0',o(_0x59be2f,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x30f54e,'\x22'+_0x4275c0['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x59be2f,'*Insert:*\x20%0',o(_0x59be2f,'ELEMENT_TABLE_ROW',_0x30f54e))};if('deletion'==_0x385aa0['type'])return _0x4275c0['length']?{'type':'deletion','content':o(_0x59be2f,'*Remove:*\x20%0',o(_0x59be2f,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x30f54e,'\x22'+_0x4275c0['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x59be2f,'*Remove:*\x20%0',o(_0x59be2f,'ELEMENT_TABLE_ROW',_0x30f54e))};}if('tableColumn'==_0x385aa0['subType']){const _0x2a4495=_0x385aa0['getItems']()['filter'](_0x4b3bae=>_0x4b3bae['is']('$textProxy'))['map'](_0x3eb0dc=>_0x3eb0dc['data']),_0x2207b6=this['_getSuggestionCoords'](_0x385aa0),_0x217004=_0x2207b6['maxColumn']-_0x2207b6['minColumn']+0x1;if('insertion'==_0x385aa0['type'])return _0x2a4495['length']?{'type':'insertion','content':o(_0x59be2f,'*Insert:*\x20%0',o(_0x59be2f,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x217004,'\x22'+_0x2a4495['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x59be2f,'*Insert:*\x20%0',o(_0x59be2f,'ELEMENT_TABLE_COLUMN',_0x217004))};if('deletion'==_0x385aa0['type'])return _0x2a4495['length']?{'type':'deletion','content':o(_0x59be2f,'*Remove:*\x20%0',o(_0x59be2f,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x217004,'\x22'+_0x2a4495['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x59be2f,'*Remove:*\x20%0',o(_0x59be2f,'ELEMENT_TABLE_COLUMN',_0x217004))};}}),_0x2815fc['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x3e2fb8),_0x2815fc['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x3e2fb8),_0x2815fc['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0xad286),_0x2815fc['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0xad286),_0x2815fc['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x4065c4),_0x2815fc['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x4065c4),_0x2815fc['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x2a3478),_0x2815fc['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x2a3478);}['_acceptFormatSuggestionCallbackFactory'](){const _0x9395fe=this['editor'],_0x49549b=_0x9395fe['model']['document']['selection'];return(_0x383d1c,_0x55b282)=>{_0x9395fe['model']['change'](_0x5ead50=>{const {commandName:_0x139654,commandParams:_0x520d84}=_0x55b282;let _0x370e57=_0x383d1c[0x0]['end']['nodeBefore'];_0x520d84&&_0x520d84[0x0]&&!0x1===_0x520d84[0x0]['forceValue']&&(_0x370e57=_0x383d1c[0x0]['start']['nodeAfter']);const _0x230172=_0x5ead50['createRangeIn'](_0x370e57);if('$graveyard'==_0x230172['root']['rootName'])return;const _0x278a87=Array['from'](_0x49549b['getRanges']())['map'](_0x27371f=>_0x7b347b['fromRange'](_0x27371f));_0x5ead50['setSelection'](_0x230172),_0x9395fe['commands']['get'](_0x139654)['refresh'](),_0x520d84['push']({'forceDefaultExecution':!0x0}),_0x9395fe['execute'](_0x139654,..._0x520d84);const _0x4432cf=_0x278a87['filter'](_0x21861d=>'$graveyard'!=_0x21861d['root']['rootName']);_0x4432cf['length']>0x0&&_0x5ead50['setSelection'](_0x4432cf);for(const _0x528909 of _0x278a87)_0x528909['detach']();});};}['_getCoordsForCells'](_0x11e76b){const _0x3b382e=this['editor']['plugins']['get']('TableUtils');let _0x542347=Number['MAX_SAFE_INTEGER'],_0x3560f6=Number['MIN_SAFE_INTEGER'],_0x1dcf4e=Number['MAX_SAFE_INTEGER'],_0x3aaa8c=Number['MIN_SAFE_INTEGER'];for(const _0x2402c7 of _0x11e76b){if('$graveyard'==_0x2402c7['root']['rootName'])continue;const {row:_0x4be6f8,column:_0x958705}=_0x3b382e['getCellLocation'](_0x2402c7),_0x14b7b6=_0x2402c7['hasAttribute']('rowspan')?_0x2402c7['getAttribute']('rowspan')-0x1:0x0,_0x2f2b48=_0x2402c7['hasAttribute']('colspan')?_0x2402c7['getAttribute']('colspan')-0x1:0x0;_0x542347=_0x4be6f8<_0x542347?_0x4be6f8:_0x542347,_0x3560f6=_0x4be6f8+_0x14b7b6>_0x3560f6?_0x4be6f8+_0x14b7b6:_0x3560f6,_0x1dcf4e=_0x958705<_0x1dcf4e?_0x958705:_0x1dcf4e,_0x3aaa8c=_0x958705+_0x2f2b48>_0x3aaa8c?_0x958705+_0x2f2b48:_0x3aaa8c;}return{'minRow':_0x542347,'maxRow':_0x3560f6,'minColumn':_0x1dcf4e,'maxColumn':_0x3aaa8c};}['_setupColumnsRowsFixing'](){const _0x118556=this['editor'],_0x26addc=_0x118556['plugins']['get']('TrackChangesEditing'),_0x5cc74f=_0x118556['plugins']['get']('TableUtils');_0x118556['model']['document']['on']('change:data',()=>{const _0x4373fe=Array['from'](_0x118556['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x424c20,data:_0x1427ea}of _0x4373fe){const {group:_0x4cba11,id:_0x21e18c,subType:_0x1f198c}=_0x26addc['_splitMarkerName'](_0x424c20);if('suggestion'!=_0x4cba11)continue;if(null!=_0x1427ea['oldRange'])continue;const _0xddfd61=_0x26addc['getSuggestion'](_0x21e18c);this['_tablePostFixingSubtypes']['includes'](_0x1f198c)&&this['_tableSuggestions']['add'](_0xddfd61);}},{'priority':'low'});const _0x23f222=(_0x594092,_0x4229bb)=>{let _0x36a4a6=!0x1;const _0x5564a0=_0x4229bb['createRangeOn'](_0x594092),_0xe4e921=_0x594092['findAncestor']('table'),_0x386092=_0x5cc74f['getCellLocation'](_0x594092);for(const _0x19c2a1 of this['_tableSuggestions']){const _0x1740df=_0x19c2a1['subType'],_0x2e0c43=_0x1740df['startsWith']('tablePaste'),_0x59cb38=_0x1740df['substr'](_0x2e0c43?0xa:0x5),_0x5317d7=_0x59cb38['toLowerCase'](),_0x2ae8af=_0x5317d7['substr'](0x0,0x3)+'span',_0x534c4c='min'+_0x59cb38,_0x5e8a1d='max'+_0x59cb38;if(!_0x19c2a1['isInContent'])continue;if(_0xe4e921!=_0x19c2a1['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x19c2a1['isIntersectingWithRange'](_0x5564a0))continue;const _0x1a93a3=_0x594092['hasAttribute'](_0x2ae8af)?_0x594092['getAttribute'](_0x2ae8af)-0x1:0x0,_0x36d2ad=this['_getSuggestionCoords'](_0x19c2a1),_0x93c5db=_0x36d2ad[_0x534c4c],_0x3c33c5=_0x36d2ad[_0x5e8a1d];_0x93c5db<=_0x386092[_0x5317d7]&&_0x386092[_0x5317d7]+_0x1a93a3<=_0x3c33c5&&(_0x19c2a1['addRange'](_0x5564a0),_0x36a4a6=!0x0);}return _0x36a4a6;};_0x118556['model']['document']['registerPostFixer'](_0x14cc2a=>{let _0x141ad8=!0x1;for(const _0x2061ba of _0x118556['model']['document']['differ']['getChanges']())if('insert'==_0x2061ba['type']){if('tableRow'==_0x2061ba['name']){for(const _0x15b2e5 of _0x2061ba['position']['nodeAfter']['getChildren']())_0x141ad8=_0x141ad8||_0x23f222(_0x15b2e5,_0x14cc2a);}else'tableCell'==_0x2061ba['name']&&(_0x141ad8=_0x141ad8||_0x23f222(_0x2061ba['position']['nodeAfter'],_0x14cc2a));}return _0x141ad8;});}['_getSuggestionCoords'](_0x8bbd82){return this['_getCoordsForCells'](_0x8bbd82['getRanges']()['map'](_0x3f014d=>_0x3f014d['start']['nodeAfter']));}}function Ne(_0x4fb44f){return Array['from'](new Set(_0x4fb44f)['values']());}class Nt extends _0x115581{static get['requires'](){return[Ct];}['afterInit'](){const _0x327fd0=this['editor'],_0x156efe=_0x327fd0['model']['document']['selection'],_0x1e311d=_0x327fd0['locale'];if(!_0x327fd0['plugins']['has']('TableEditing'))return;const _0x49b883=_0x327fd0['plugins']['get']('TrackChangesEditing'),_0x3bdeb8=_0x327fd0['plugins']['get']('TableUtils'),_0x352df7=_0x327fd0['plugins']['get'](Ct);_0x352df7['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x49b883['enableCommand']('mergeTableCells',()=>{const _0x4f848d=_0x3bdeb8['getSelectionAffectedTableCells'](_0x327fd0['model']['document']['selection']);_0x327fd0['model']['change'](()=>{_0x49b883['markMultiRangeBlockFormat'](_0x4f848d,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x327fd0['commands']['get']('mergeTableCells')['on']('execute',(_0x37ac48,_0x3553eb)=>{_0x327fd0['commands']['get']('trackChanges')['value']&&(_0x3553eb['length']>0x0&&_0x3553eb[_0x3553eb['length']-0x1]&&_0x3553eb[_0x3553eb['length']-0x1]['forceDefaultExecution']||_0x49b883['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x37ac48['stop']());},{'priority':'highest'});for(const _0x4b120c of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x519f85=_0x327fd0['commands']['get'](_0x4b120c);_0x49b883['enableCommand'](_0x4b120c,()=>{const _0x49ccc6=_0x327fd0['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x403816=>_0x403816['is']('element','tableCell')),_0x43308f=_0x519f85['value'];_0x327fd0['model']['change'](()=>{_0x49b883['markMultiRangeBlockFormat']([_0x49ccc6,_0x43308f],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x337b66 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x392a18=_0x327fd0['commands']['get'](_0x337b66);_0x49b883['enableCommand'](_0x337b66,()=>{const _0x3906d7=_0x3bdeb8['getSelectionAffectedTableCells'](_0x327fd0['model']['document']['selection'])[0x0],_0x2ac942=_0x3906d7['findAncestor']('table'),{column:_0x53574c,row:_0xd22f37}=_0x3bdeb8['getCellLocation'](_0x3906d7);let _0x5054b1=[];if('horizontally'==_0x392a18['direction']){const _0x321015=_0x3bdeb8['createTableWalker'](_0x2ac942,{'startRow':_0xd22f37,'endRow':_0xd22f37,'includeAllSlots':!0x0});_0x5054b1=Array['from'](_0x321015)['map'](_0x3dc8f7=>_0x3dc8f7['cell']);}else{const _0x31611a=_0x3bdeb8['createTableWalker'](_0x2ac942,{'column':_0x53574c,'includeAllSlots':!0x0});_0x5054b1=Array['from'](_0x31611a)['map'](_0x1dbb80=>_0x1dbb80['cell']);}_0x327fd0['model']['change'](_0x23ee67=>{_0x49b883['markBlockFormat'](_0x23ee67['createRangeOn'](_0x3906d7),{'commandName':_0x337b66,'commandParams':[]},_0x5054b1,_0x337b66);});});}_0x49b883['descriptionFactory']['registerDescriptionCallback'](_0x57d900=>{if('formatBlock'!=_0x57d900['type']&&'formatInline'!=_0x57d900['type'])return;const {data:_0x37fb6f}=_0x57d900;return _0x37fb6f&&'mergeTableCells'==_0x37fb6f['commandName']?{'type':'format','content':o(_0x1e311d,'*Merge\x20cells*')}:void 0x0;}),_0x49b883['descriptionFactory']['registerDescriptionCallback'](_0x183ac5=>{if('formatBlock'!=_0x183ac5['type']&&'formatInline'!=_0x183ac5['type'])return;const {data:_0x3bd0ad}=_0x183ac5;return _0x3bd0ad?'splitTableCellVertically'==_0x3bd0ad['commandName']?{'type':'format','content':o(_0x1e311d,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x3bd0ad['commandName']?{'type':'format','content':o(_0x1e311d,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x18274e=_0x352df7['_acceptFormatSuggestionCallbackFactory']();for(const _0x1e2229 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x49b883['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1e2229,'accept',_0x18274e);for(const _0x35636e of['splitTableCellVertically','splitTableCellHorizontally'])_0x49b883['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x35636e,'accept',_0x18274e);_0x49b883['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x258fac=>{_0x327fd0['model']['change'](_0x3cda37=>{const _0x2c68bd=Array['from'](_0x156efe['getRanges']())['map'](_0x49b844=>_0x7b347b['fromRange'](_0x49b844));_0x3cda37['setSelection'](_0x258fac),_0x327fd0['commands']['get']('mergeTableCells')['refresh'](),_0x327fd0['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x508f68=_0x2c68bd['filter'](_0x21bb08=>'$graveyard'!=_0x21bb08['root']['rootName']);_0x508f68['length']>0x0&&_0x3cda37['setSelection'](_0x508f68);for(const _0x439b64 of _0x2c68bd)_0x439b64['detach']();});});for(const _0x445ac0 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x5d9eae=_0x327fd0['commands']['get'](_0x445ac0);_0x5d9eae['on']('set:isEnabled',(_0x45691c,_0x556217,_0x3a596a)=>{if(_0x3a596a){const _0x4d31f4=_0x327fd0['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x24d0a2=>_0x24d0a2['is']('element','tableCell'));this['_areMergableCells'](_0x5d9eae['value'],_0x4d31f4)||(_0x45691c['return']=!0x1,_0x45691c['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0xe71c36=this['editor']['commands']['get']('mergeTableCells'),_0x280632=this['editor']['plugins']['get']('TableUtils');if(!_0xe71c36['isEnabled'])return!0x1;const _0x114001=_0x280632['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0xfbe907 of _0x114001)for(const _0x294f57 of _0x114001)if(_0xfbe907!=_0x294f57&&!this['_areMergableCells'](_0xfbe907,_0x294f57))return!0x1;return!0x0;}['_areMergableCells'](_0x48f316,_0x38164e){const _0x303e6b=this['editor']['plugins']['get']('TrackChangesEditing'),_0xf56640=this['editor']['model']['createRangeOn'](_0x48f316),_0x1fbb7c=this['editor']['model']['createRangeOn'](_0x38164e),_0x4670ac=new Set(),_0x30be7f=new Set();for(const _0x1a3e46 of _0x303e6b['getSuggestions']())if(('insertion'==_0x1a3e46['type']||'deletion'==_0x1a3e46['type']||'mergeTableCells'==_0x1a3e46['subType'])&&_0x1a3e46['isInContent']){for(const _0x1604ae of _0x1a3e46['getRanges']())_0x1604ae['containsRange'](_0xf56640,!0x0)&&_0x4670ac['add'](_0x1a3e46['type']+':'+_0x1a3e46['author']['id']),_0x1604ae['containsRange'](_0x1fbb7c,!0x0)&&_0x30be7f['add'](_0x1a3e46['type']+':'+_0x1a3e46['author']['id']);}if(_0x4670ac['size']!=_0x30be7f['size'])return!0x1;for(const _0x52b0ee of _0x4670ac)if(!_0x30be7f['has'](_0x52b0ee))return!0x1;return!0x0;}}class Dt extends _0x115581{static get['requires'](){return[Ct];}['afterInit'](){const _0x1aa19e=this['editor'];if(!_0x1aa19e['plugins']['has']('TableEditing'))return;const _0x4bd955=_0x1aa19e['locale'],_0x3fab39=_0x1aa19e['plugins']['get']('TrackChangesEditing');_0x3fab39['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x3fab39['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x3fab39['registerBlockAttribute']('headingRows'),_0x3fab39['registerBlockAttribute']('headingColumns'),_0x3fab39['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x4bd955,'FORMAT_HEADER_ROW')),_0x3fab39['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x4bd955,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4b7769=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4a1547=this['editor']['plugins']['get']('TableUtils'),_0x4b9e10=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x41ba11({showActiveMarker:_0x1fc998=!0x0,setDataAttribute:_0x12838a=!0x0}={}){return(_0x46c9b0,_0xf8067e,_0xfaeae7)=>{const {type:_0x2048f7,id:_0x162379}=_0x4b7769['_splitMarkerName'](_0xf8067e['markerName']),_0x2e2fb5=_0x4b7769['getSuggestion'](_0x162379),_0x4c53e6=_0x2e2fb5['data'];if('formatBlock'!=_0x2e2fb5['type']||!_0x4c53e6||'setTableColumnHeader'!=_0x4c53e6['commandName'])return;if(_0xf8067e['item'])return void _0x46c9b0['stop']();if(!_0xfaeae7['consumable']['consume'](_0xf8067e['markerRange'],_0x46c9b0['name']))return;const _0x4ec91c=_0xf8067e['markerRange']['start']['nodeAfter'],_0x1a5f64=_0xf8067e['markerRange']['end']['nodeBefore'],_0x17de3a=_0x4ec91c['parent']['parent'],{column:_0x3e183f}=_0x4a1547['getCellLocation'](_0x4ec91c),{column:_0x9227b4}=_0x4a1547['getCellLocation'](_0x1a5f64);for(let _0x227bf6=_0x3e183f;_0x227bf6<=_0x9227b4;_0x227bf6++){const _0x548533=_0x4a1547['createTableWalker'](_0x17de3a,{'column':_0x227bf6,'includeAllSlots':!0x1});for(const _0xd83321 of _0x548533){const _0x2ca15c=_0xd83321['cell'],_0x212e0e=_0xfaeae7['mapper']['toViewElement'](_0x2ca15c);_0xfaeae7['writer']['addClass']('ck-suggestion-marker-'+_0x2048f7,_0x212e0e),_0x12838a&&_0xfaeae7['writer']['setAttribute']('data-suggestion',_0x162379,_0x212e0e),_0xfaeae7['mapper']['bindElementToMarker'](_0x212e0e,_0xf8067e['markerName']),_0x1fc998&&(_0x4b7769['activeMarkers']['includes'](_0xf8067e['markerName'])?_0xfaeae7['writer']['addClass']('ck-suggestion-marker--active',_0x212e0e):_0xfaeae7['writer']['removeClass']('ck-suggestion-marker--active',_0x212e0e));}}};}_0x4b7769['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x4b9e10),_0x4b7769['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x4b9e10),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x41ba11(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x62e55a,_0x2efe56,_0x2d9d98)=>{_0x2d9d98['options']['showSuggestionHighlights']&&_0x41ba11({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x62e55a,_0x2efe56,_0x2d9d98);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x514bef,_0x5cefaa,_0x5cc8bf)=>{const {type:_0x42b4e6,id:_0x1858b1}=_0x4b7769['_splitMarkerName'](_0x5cefaa['markerName']),_0x5d4791=_0x4b7769['getSuggestion'](_0x1858b1),_0x50eb85=_0x5d4791['data'];if('formatBlock'!=_0x5d4791['type']||!_0x50eb85||'setTableColumnHeader'!=_0x50eb85['commandName'])return;const _0x30c8fb=_0x5cc8bf['mapper']['markerNameToElements'](_0x5cefaa['markerName']);if(_0x30c8fb){for(const _0x594913 of _0x30c8fb)_0x5cc8bf['writer']['removeClass']('ck-suggestion-marker-'+_0x42b4e6,_0x594913),_0x5cc8bf['writer']['removeClass']('ck-suggestion-marker--active',_0x594913),_0x5cc8bf['writer']['removeAttribute']('data-suggestion',_0x594913),_0x5cc8bf['mapper']['unbindElementFromMarkerName'](_0x594913,_0x5cefaa['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x543ba6=this['editor'],_0x2ecd55=_0x543ba6['locale'];function _0x4d56fb(_0x34d666){return{'type':'format','content':o(_0x2ecd55,'*Format:*\x20%0',_0x34d666)};}_0x543ba6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x519b68=>{if('formatBlock'!=_0x519b68['type'])return;const {data:_0xad2c1}=_0x519b68;if(_0xad2c1){if('setTableRowHeader'==_0xad2c1['commandName']){const _0x303383=_0xad2c1['commandParams'][0x0]['forceValue'];return _0x4d56fb(o(_0x2ecd55,_0x303383?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0xad2c1['commandName']){const _0x251704=_0xad2c1['commandParams'][0x0]['forceValue'];return _0x4d56fb(o(_0x2ecd55,_0x251704?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x330689=>[_0x330689,null]));class Mt extends _0x115581{static get['requires'](){return[Ct];}['afterInit'](){const _0x5e5611=this['editor'];if(!_0x5e5611['plugins']['has']('TableClipboard'))return;const _0x284ec8=_0x5e5611['plugins']['get']('TrackChangesEditing'),_0x2be9ca=_0x5e5611['plugins']['get']('TableUtils'),_0x27f78c=_0x5e5611['plugins']['get'](Ct),_0xb76c22=_0x5e5611['plugins']['get']('TableClipboard');_0x27f78c['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x5e5611['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x5e5611['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x94973f=null;_0x5e5611['model']['on']('insertContent',(_0x5cda07,_0x42f54b)=>{const [_0x31d5de,_0x4fc6f7]=_0x42f54b,_0x42039a=_0x42f54b[_0x42f54b['length']-0x1];_0x42039a&&_0x42039a['forceDefaultExecution']||_0x284ec8['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x73f6c,_0x16c945,_0x3cb6ec,_0x388847,_0x16cc08){if(_0x16c945&&!_0x16c945['is']('documentSelection'))return!0x1;const _0x1cc6a4=_0x16cc08['getTableIfOnlyTableInContent'](_0x73f6c,_0x3cb6ec);if(!_0x1cc6a4||!Ue(_0x1cc6a4,void 0x0,_0x388847))return!0x1;const _0x78bbe8=_0x388847['getSelectionAffectedTableCells'](_0x3cb6ec['document']['selection']);if(!_0x78bbe8['length'])return!0x1;const _0x2bc25c=_0x78bbe8[0x0]['findAncestor']('table'),_0x3950fa=_0x388847['getRowIndexes'](_0x78bbe8),_0x2be638=_0x388847['getColumnIndexes'](_0x78bbe8),_0x1ab641={'startRow':_0x3950fa['first'],'endRow':_0x3950fa['last'],'startColumn':_0x2be638['first'],'endColumn':_0x2be638['last']};return 0x1==_0x78bbe8['length']&&(_0x1ab641['endRow']+=_0x388847['getRows'](_0x1cc6a4)-0x1,_0x1ab641['endColumn']+=_0x388847['getColumns'](_0x1cc6a4)-0x1),Ue(_0x2bc25c,_0x1ab641,_0x388847);}(_0x31d5de,_0x4fc6f7,_0x5e5611['model'],_0x2be9ca,_0xb76c22)&&(_0x5cda07['stop'](),_0x94973f={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x5e5611['model']['change'](()=>{_0x5e5611['model']['insertContent'](_0x42f54b[0x0],_0x42f54b[0x1],_0x42f54b[0x2],{'forceDefaultExecution':!0x0});const _0x39fa95=_0x19169b(),{rowInsertionRanges:_0x3ae92c,columnInsertionRanges:_0x54919a,insertionRanges:_0x53b4b1,deletionRanges:_0x3e83de,cells:_0x46fb4e}=_0x94973f;_0x3ae92c['length']&&_0x284ec8['markMultiRangeInsertion'](_0x3ae92c,'tablePasteRow',{'tablePasteChainId':_0x39fa95}),_0x54919a['length']&&_0x284ec8['markMultiRangeInsertion'](_0x54919a,'tablePasteColumn',{'tablePasteChainId':_0x39fa95}),_0x53b4b1['length']&&(_0x284ec8['markMultiRangeInsertion'](_0x53b4b1,'tablePaste',{'tablePasteChainId':_0x39fa95,'skipNestingCheck':!0x0}),_0x53b4b1['forEach'](_0x171f29=>_0x171f29['detach']?.())),_0x3e83de['length']&&(_0x284ec8['markMultiRangeDeletion'](_0x3e83de,'tablePaste',{'tablePasteChainId':_0x39fa95,'skipNestingCheck':!0x0}),_0x3e83de['forEach'](_0x29c398=>_0x29c398['detach']?.()));const _0x2bf44d=_0x284ec8['markMultiRangeBlockFormat'](_0x46fb4e['map'](({element:_0x28b409})=>_0x28b409),{'formatGroupId':_0x19169b()},[],'tablePasteCell',{'tablePasteChainId':_0x39fa95});if(_0x2bf44d){const _0x27e6cb=_0x2bf44d['getMarkers'](),_0x1d3c05=[];for(const {element:_0x1e6c4a,attributes:_0x1b5ddd}of _0x46fb4e){if(!_0x1b5ddd)continue;const _0x1a836b=_0x5e5611['model']['createRangeOn'](_0x1e6c4a),_0x281501=_0x27e6cb['find'](_0x4bf5d2=>_0x4bf5d2['getRange']()['isEqual'](_0x1a836b));_0x281501&&_0x1d3c05['push']([_0x281501['name'],_0x1b5ddd]);}_0x1d3c05['length']&&_0x2bf44d['setAttribute']('markerAttributes',Object['fromEntries'](_0x1d3c05));}_0x94973f=null;}));},{'priority':_0x1c0c28['high']+0xa}),_0x5e5611['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x2d64b0,_0x1b0830)=>{const [_0x1593cf,_0x3bc4db,,_0x1fa649]=_0x1b0830;if(!_0x94973f)return;_0x2d64b0['stop']();const _0x4e1d70=_0x1593cf['cell'],_0x57f9b7=_0x3bc4db,_0x50fee2=Oe(_0x4e1d70),_0x52a2dc=Oe(_0x57f9b7);_0x2d64b0['return']=_0x4e1d70;let _0x52c0dd=null,_0x39c519=null;if(_0x52a2dc||_0x50fee2){if(_0x50fee2&&!_0x52a2dc){_0x1fa649['remove'](_0x4e1d70['getChild'](0x0));for(const _0xcbbe73 of Array['from'](_0x57f9b7['getChildren']()))_0x1fa649['insert'](_0xcbbe73,_0x4e1d70,'end');const _0x2b1faf=_0x94973f['rowInsertionIndexes']['includes'](_0x1593cf['row']),_0x291ce0=_0x94973f['columnInsertionIndexes']['includes'](_0x1593cf['column']);_0x2b1faf||_0x291ce0||(_0x52c0dd=_0x7b347b['fromRange'](_0x1fa649['createRangeIn'](_0x4e1d70)));}else _0x52a2dc&&!_0x50fee2&&(_0x39c519=_0x1fa649['createRangeIn'](_0x4e1d70));}else{const _0x158995=_0x1fa649['createElement']('tableCellSuggestion'),_0x16cbc8=_0x1fa649['createElement']('tableCellSuggestion');_0x1fa649['wrap'](_0x1fa649['createRangeIn'](_0x4e1d70),_0x16cbc8),_0x1fa649['insert'](_0x158995,_0x4e1d70,0x0);for(const _0x4026fa of Array['from'](_0x57f9b7['getChildren']()))_0x1fa649['insert'](_0x4026fa,_0x158995,'end');_0x52c0dd=_0x7b347b['fromRange'](_0x1fa649['createRangeOn'](_0x158995)),_0x39c519=_0x7b347b['fromRange'](_0x1fa649['createRangeOn'](_0x16cbc8));}const _0x1dbda3=Array['from'](_0x57f9b7['getAttributes']())['filter'](([_0x3c7549])=>Be['includes'](_0x3c7549));_0x94973f['cells']['push']({'element':_0x4e1d70,'attributes':_0x1dbda3['length']?Object['fromEntries'](_0x1dbda3):null}),_0x52c0dd&&_0x94973f['insertionRanges']['push'](_0x52c0dd),_0x39c519&&_0x94973f['deletionRanges']['push'](_0x39c519);},{'priority':'high'}),_0x2be9ca['on']('insertColumns',(_0x16195c,_0x44d857)=>{const [_0x23e13b,_0x4b3077={}]=_0x44d857;if(!_0x94973f)return;const _0x58b9f2=_0x4b3077['at']||0x0,_0x4a6fd2=_0x4b3077['columns']||0x1;_0x94973f['columnInsertionIndexes']=new Array(_0x4a6fd2)['fill'](_0x58b9f2)['map']((_0x5b78a5,_0x232db3)=>_0x5b78a5+_0x232db3);for(const {cell:_0xd0fe6c}of _0x2be9ca['createTableWalker'](_0x23e13b,{'startColumn':_0x58b9f2,'endColumn':_0x58b9f2+_0x4a6fd2-0x1}))_0x94973f['columnInsertionRanges']['push'](_0x5e5611['model']['createRangeOn'](_0xd0fe6c));},{'priority':'low'}),_0x2be9ca['on']('insertRows',(_0x3090ea,_0x33d857)=>{const [_0x25a423,_0x4e1fa6={}]=_0x33d857;if(!_0x94973f)return;const _0x422cd4=_0x4e1fa6['at']||0x0,_0x399852=_0x4e1fa6['rows']||0x1;_0x94973f['rowInsertionIndexes']=new Array(_0x399852)['fill'](_0x422cd4)['map']((_0xc4b0d7,_0x23c8d4)=>_0xc4b0d7+_0x23c8d4);for(const {cell:_0x12c6fb}of _0x2be9ca['createTableWalker'](_0x25a423,{'startRow':_0x422cd4,'endRow':_0x422cd4+_0x399852-0x1}))_0x94973f['rowInsertionRanges']['push'](_0x5e5611['model']['createRangeOn'](_0x12c6fb));},{'priority':'low'}),_0x284ec8['descriptionFactory']['registerDescriptionCallback'](_0x3a0f1a=>{if(_0x3a0f1a['subType']&&_0x3a0f1a['subType']['startsWith']('tablePaste'))return _0x3a0f1a['previous']?{}:{'type':'insertion','content':o(_0x5e5611['locale'],'*Replace\x20table\x20cells*')};});const _0x45e380=()=>!0x1;for(const _0x4926aa of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x284ec8['_suggestionFactory']['registerCustomCallback']('insertion',_0x4926aa,'join',_0x45e380),_0x284ec8['_suggestionFactory']['registerCustomCallback']('deletion',_0x4926aa,'join',_0x45e380),_0x284ec8['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4926aa,'join',_0x45e380);_0x284ec8['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x45e380),_0x284ec8['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x55ed6e,_0x24d5f0,_0x23942b)=>{const _0x13f983=_0x55ed6e['map'](_0x37901b=>_0x37901b['getContainedElement']())['filter'](_0x1310de=>_0x1310de),_0x3285bb=new Map(_0x13f983['map'](_0x5d2f6f=>[_0x5d2f6f,null]));if(_0x94973f){for(const {element:_0x5b8999,attributes:_0x128b28}of _0x94973f['cells'])_0x128b28&&_0x3285bb['set'](_0x5b8999,_0x128b28);}else{if(_0x23942b&&_0x23942b['markerAttributes'])for(const [_0x8386f0,_0xfe7588]of Object['entries'](_0x23942b['markerAttributes'])){const _0x1d47ee=_0x5e5611['model']['markers']['get'](_0x8386f0),_0x33a5d9=_0x1d47ee?_0x1d47ee['getRange']()['getContainedElement']():null;_0x33a5d9&&_0x3285bb['set'](_0x33a5d9,_0xfe7588);}}_0x5e5611['model']['change'](_0x2d4e16=>{for(const [_0x3b133f,_0x2c4634]of _0x3285bb)_0x2d4e16['setAttributes']({...xe,..._0x2c4634},_0x3b133f);});});const _0x50695b=(_0x12d260,_0x47a5d4)=>{_0x284ec8['_suggestionFactory']['registerCustomCallback'](_0x12d260,'tablePaste',_0x47a5d4,(_0x1cc051,_0x58bc81,_0xaa0b04)=>{_0x5e5611['model']['change'](_0x376819=>{const _0xea41c0=[];for(const _0x4299d0 of _0x1cc051){const _0x19bbe1=_0x4299d0['start']['nodeAfter'];_0x19bbe1['is']('element','tableCellSuggestion')&&_0xea41c0['push'](_0x19bbe1);}_0x284ec8['_suggestionFactory']['getSuggestionCallback'](_0x12d260,null,_0x47a5d4)(_0x1cc051,_0x58bc81,_0xaa0b04);for(const _0x3eb8d8 of _0xea41c0)'$graveyard'!=_0x3eb8d8['root']['rootName']&&_0x376819['unwrap'](_0x3eb8d8);});});};_0x50695b('insertion','accept'),_0x50695b('insertion','discard'),_0x50695b('deletion','accept'),_0x50695b('deletion','discard'),_0x284ec8['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x2b0691=>{const _0x55b191=_0x2b0691['map'](_0x1ee0e1=>_0x1ee0e1['getContainedElement']()),_0x49c230=_0x55b191[0x0]['findAncestor']('table'),{minRow:_0x5ba021,maxRow:_0x28bdaf}=_0x27f78c['_getCoordsForCells'](_0x55b191);_0x2be9ca['removeRows'](_0x49c230,{'at':_0x5ba021,'rows':_0x28bdaf-_0x5ba021+0x1});}),_0x284ec8['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x4898c3=>{const _0x34eca0=_0x4898c3['map'](_0x1adac9=>_0x1adac9['getContainedElement']()),_0x513ff3=_0x34eca0[0x0]['findAncestor']('table'),{minColumn:_0x1afbe1,maxColumn:_0x32efc8}=_0x27f78c['_getCoordsForCells'](_0x34eca0);_0x2be9ca['removeColumns'](_0x513ff3,{'at':_0x1afbe1,'columns':_0x32efc8-_0x1afbe1+0x1});});const _0x4e91a8=(_0x443f3b,_0x1dffc4)=>{if(!_0x1dffc4['subType']||!_0x1dffc4['subType']['startsWith']('tablePaste'))return;const _0x592e6b=_0x1dffc4['attributes']['tablePasteChainId'],_0x3b584b=_0x284ec8['getSuggestions']()['filter'](_0x5ed9a4=>_0x5ed9a4['isInContent']&&_0x5ed9a4['attributes']&&_0x5ed9a4['attributes']['tablePasteChainId']==_0x592e6b);_0x3b584b['length']&&_0x1dffc4['getAllAdjacentSuggestions']()['length']!=_0x3b584b['length']&&_0x3b584b['reduce']((_0x52acde,_0x21b65a)=>(_0x52acde['next']=_0x21b65a,_0x21b65a['previous']=_0x52acde,_0x21b65a));};function _0x3a53d0(_0xa245c8,_0x4b1252=!0x0){const {id:_0x4219b2,authorId:_0x3295c3}=_0x284ec8['_splitMarkerName'](_0xa245c8['markerName']),_0x5bfb84=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x3d6a2e=_0x284ec8['activeMarkers']['includes'](_0xa245c8['markerName']);return _0x3d6a2e&&_0x5bfb84['push']('ck-suggestion-marker--active'),{'classes':_0x5bfb84,'attributes':{'data-suggestion':_0x4219b2,'data-author-id':_0x3295c3},'priority':_0x3d6a2e&&_0x4b1252?0xbc2:0xbb8};}_0x284ec8['on']('suggestionLoaded',_0x4e91a8,{'priority':'high'}),_0x284ec8['on']('suggestionUnloaded',_0x4e91a8,{'priority':'high'}),_0x5e5611['model']['document']['registerPostFixer'](()=>{let _0x533bef=!0x1;const _0x151805=Array['from'](_0x5e5611['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2ebfb8,data:_0x188c98}of _0x151805){const {group:_0x40acbf,type:_0xe6a648,id:_0x20447a}=_0x284ec8['_splitMarkerName'](_0x2ebfb8);if('suggestion'!=_0x40acbf||'deletion'!=_0xe6a648||_0x188c98['oldRange'])continue;if(!_0x284ec8['hasSuggestion'](_0x20447a))continue;const _0xdad93d=_0x284ec8['getSuggestion'](_0x20447a)['getRanges'](),_0x49f467=_0x5e5611['plugins']['get']('Users')['me'];for(const _0x5aeeab of _0x284ec8['getSuggestions']()){if(!_0x5aeeab['isInContent']||_0x5aeeab['author']!=_0x49f467)continue;if('formatBlock'!=_0x5aeeab['type']||'tablePasteCell'!=_0x5aeeab['subType'])continue;if(_0x5aeeab['getRanges']()['every'](_0x1dda00=>_0xdad93d['some'](_0x3ef4d3=>_0x3ef4d3['containsRange'](_0x1dda00,!0x0)))){for(const _0x4d5e76 of _0x5aeeab['getAllAdjacentSuggestions']())_0x4d5e76['isInContent']&&(_0x4d5e76['discard'](),_0x533bef=!0x0);}}}return _0x533bef;}),_0x5e5611['model']['document']['registerPostFixer'](_0x244421=>{const _0x17d41e=_0x5e5611['commands']['get']('redo');if(!_0x17d41e||!_0x17d41e['_createdBatches']['has'](_0x244421['batch']))return!0x1;let _0x1a4150=!0x1;const _0x5891a7=_0x5e5611['plugins']['get']('Users')['me'],_0x5f42de=_0x5e5611['model']['document']['differ']['getChanges'](),_0x4ce329=Array['from'](_0x5e5611['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0xf182b6,data:_0x2a9bbd})=>{const {group:_0x3ebfb9,subType:_0x5be4b5,authorId:_0xed44f7}=_0x284ec8['_splitMarkerName'](_0xf182b6);return'suggestion'==_0x3ebfb9&&'tablePaste'==_0x5be4b5&&_0xed44f7==_0x5891a7['id']&&!_0x2a9bbd['oldRange'];});for(const _0x5360af of _0x5f42de){if('insert'!=_0x5360af['type']||'tableCellSuggestion'!=_0x5360af['name']||0x1!=_0x5360af['length'])continue;const _0xce6ae6=_0x244421['createRange'](_0x5360af['position'],_0x5360af['position']['getShiftedBy'](0x1));if(!_0x4ce329['find'](({data:_0x5e8455})=>_0x5e8455['newRange']['isEqual'](_0xce6ae6))){for(const {name:_0x921164,data:_0x3c1226}of _0x4ce329)if(_0xce6ae6['containsRange'](_0x3c1226['newRange'])){_0x244421['updateMarker'](_0x921164,{'range':_0xce6ae6}),_0x1a4150=!0x0;break;}}}return _0x1a4150;}),_0x5e5611['model']['document']['registerPostFixer'](_0x25fcca=>{let _0x109cb8=!0x1;const _0x4d53db=_0x5e5611['plugins']['get']('Users')['me'],_0x16fa2c=_0x284ec8['getSuggestions']()['filter'](_0x3c804d=>_0x3c804d['isInContent']&&_0x3c804d['author']==_0x4d53db),_0x262c16=new Set(),_0xf1cba6=new Set();for(const _0x2f0929 of _0x16fa2c)if('tablePaste'==_0x2f0929['subType'])for(const _0x13355c of _0x2f0929['getMarkers']()){const _0x43e934=_0x13355c['getRange']()['getContainedElement']();if(_0x43e934){if(_0x43e934['is']('element','tableCellSuggestion')&&Oe(_0x43e934)){_0x2f0929['removeMarker'](_0x13355c['name']),_0x262c16['add'](_0x43e934),_0x109cb8=!0x0;const _0x4462f5=_0x43e934['nextSibling'],_0x55ddc5=_0x43e934['previousSibling'],_0x4830b6=_0x4462f5&&_0x4462f5['is']('element','tableCellSuggestion'),_0x55d671=_0x55ddc5&&_0x55ddc5['is']('element','tableCellSuggestion');_0x4830b6&&!_0x262c16['has'](_0x4462f5)&&_0xf1cba6['add'](_0x4462f5),_0x55d671&&!_0x262c16['has'](_0x55ddc5)&&_0xf1cba6['add'](_0x55ddc5);}else _0x43e934['is']('element','paragraph')&&_0x43e934['isEmpty']&&(_0x2f0929['removeMarker'](_0x13355c['name']),_0x109cb8=!0x0);}}else{if('tablePasteCell'==_0x2f0929['subType']){if(!_0x2f0929['attributes']||!_0x2f0929['attributes']['tablePasteChainId'])continue;const _0x36fff2=_0x2f0929['attributes']['markerAttributes'];if(_0x36fff2&&Object['keys'](_0x36fff2)['length'])continue;const _0x18ec7e=_0x2f0929['attributes']['tablePasteChainId'];let _0x28d2d3=!0x0,_0x3b9074=!0x0;for(const _0xa75123 of _0x16fa2c)if(_0xa75123['subType']&&_0xa75123['subType']['startsWith']('tablePaste')){if(!_0xa75123['attributes']['tablePasteChainId']){_0x3b9074=!0x1;break;}if(_0xa75123['id']!=_0x2f0929['id']&&_0xa75123['attributes']['tablePasteChainId']==_0x18ec7e){_0x28d2d3=!0x1;break;}}_0x3b9074&&_0x28d2d3&&(_0x2f0929['removeMarkers'](),_0x109cb8=!0x0);}}for(const _0x204801 of _0x262c16)_0x25fcca['remove'](_0x204801);for(const _0x36cd40 of _0xf1cba6)_0x25fcca['unwrap'](_0x36cd40);return _0x109cb8;}),_0x5e5611['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x3b7d74=>_0x3a53d0(_0x3b7d74),'converterPriority':'high'}),_0x5e5611['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x496e7e,_0x2c114b)=>_0x2c114b['options']['showSuggestionHighlights']?_0x3a53d0(_0x496e7e,!0x1):null,'converterPriority':'high'});const _0x274da8=_0x5e5611['editing']['view'];this['listenTo'](_0x274da8['document'],'clipboardOutput',(_0xa8f6c2,_0x4f5b35)=>{const _0x44e8e6=[];for(const _0x16b2bd of _0x274da8['createRangeIn'](_0x4f5b35['content'])['getItems']())_0x16b2bd['is']('element','suggestion-td')&&_0x44e8e6['push'](_0x16b2bd);_0x274da8['change'](_0x526c3b=>{for(const _0x137036 of _0x44e8e6)_0x526c3b['move'](_0x526c3b['createRangeIn'](_0x137036),_0x526c3b['createPositionBefore'](_0x137036)),_0x526c3b['remove'](_0x137036);});});}}function Oe(_0x138935){if(_0x138935['isEmpty'])return!0x0;const _0x4bd4de=_0x138935['getChild'](0x0);return _0x4bd4de['is']('element','paragraph')&&_0x4bd4de['isEmpty'];}function Ue(_0x4e71ec,_0x4e0112={},_0x2b65aa){for(const {isAnchor:_0x40ac12,cellHeight:_0x23d3ba,cellWidth:_0xe6532f}of _0x2b65aa['createTableWalker'](_0x4e71ec,{'includeAllSlots':!0x0,..._0x4e0112}))if(!_0x40ac12||0x1!=_0x23d3ba||0x1!=_0xe6532f)return!0x1;return!0x0;}class $t extends _0x115581{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x1d5d82=this['editor']['plugins']['get']('TrackChangesEditing');_0x1d5d82['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x1d5d82['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x1d5d82['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1d5d82['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x1d5d82['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x1d5d82['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x4b4eb4,_0xbcaaf1){const _0x1a575f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3bc650=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x30740a=_0xbcaaf1['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x2eee5e=_0x3bc650['getColumnGroupElement'](_0x30740a);let _0x1d01a5=_0x2eee5e?_0x3bc650['getTableColumnsWidths'](_0x2eee5e):null,_0xcefbac=_0x30740a['getAttribute']('tableWidth')||null;const _0x272b3d=_0xbcaaf1['tableWidth']||_0xcefbac,_0x210233=_0xbcaaf1['columnWidths']||_0x1d01a5,_0xf44fd7=this['editor']['plugins']['get']('Users')['me'];for(const _0x14095a of _0x1a575f['getSuggestions']()){const _0x36324b=_0x14095a['getContainedElement']();if('resizeTable'===_0x14095a['subType']&&_0x36324b===_0x30740a){_0x14095a['author']!==_0xf44fd7&&_0x14095a['discard']();const _0x580259=_0x14095a['data']['commandParams'];_0xcefbac=_0x580259[0x0]['tableWidth'],_0x1d01a5=_0x580259[0x0]['columnWidths'];break;}}_0x4b4eb4({'table':_0x30740a,'tableWidth':_0x272b3d,'columnWidths':_0x210233}),_0x1a575f['markBlockFormat'](_0x30740a,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0xcefbac,'columnWidths':_0x1d01a5}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x56ccf6){if('formatBlock'!=_0x56ccf6['type']&&'formatInline'!=_0x56ccf6['type'])return;const {data:_0x3d2eaf}=_0x56ccf6;if(_0x3d2eaf&&'resizeTable'===_0x3d2eaf['formatGroupId']){const _0x40bc60='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x40bc60)};}}}class Bt extends _0x115581{['afterInit'](){const _0x304408=this['editor'];_0x304408['plugins']['has']('Template')&&_0x304408['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x115581{['afterInit'](){const _0x44cc87=this['editor'];if(!_0x44cc87['commands']['get']('insertTableOfContents'))return;_0x44cc87['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x1c908d=_0x44cc87['plugins']['get']('TrackChangesEditing'),_0x23a238=_0x44cc87['locale'];_0x1c908d['descriptionFactory']['registerElementLabel']('tableOfContents',_0x1f37f6=>o(_0x23a238,'ELEMENT_TABLE_OF_CONTENTS',_0x1f37f6));}}class Rt extends _0x115581{['afterInit'](){const _0x1b3708=this['editor'];if(!_0x1b3708['plugins']['has']('Title'))return;const _0x35574d=_0x1b3708['plugins']['get']('TrackChangesEditing');_0x35574d['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x1b3708['locale'],'ELEMENT_TITLE')),_0x1b3708['model']['document']['registerPostFixer'](_0x15062d=>{let _0x39398f=!0x1;const _0x5ef50d=Array['from'](_0x1b3708['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x57bb39,data:_0x35149b}of _0x5ef50d){const {group:_0x103b38}=_0x35574d['_splitMarkerName'](_0x57bb39);if('suggestion'!==_0x103b38||!_0x35149b['newRange'])continue;const _0x598595=_0x35149b['newRange'],_0x49a1c6=_0x598595['end']['nodeBefore'];if(!_0x49a1c6||!_0x49a1c6['is']('element','title-content'))continue;if(!_0x598595['start']['isTouching'](_0x598595['end']))continue;const _0x20c907=_0x1b3708['model']['schema']['getNearestSelectionRange'](_0x598595['end'],'forward');if(_0x20c907&&_0x20c907['isCollapsed']){const _0x2845ef=_0x15062d['createRange'](_0x598595['start'],_0x20c907['start']);_0x2845ef['isEqual'](_0x598595)||(_0x15062d['updateMarker'](_0x57bb39,{'range':_0x2845ef}),_0x39398f=!0x0);}_0x39398f||(_0x15062d['removeMarker'](_0x57bb39),_0x39398f=!0x0);}return _0x39398f;});}}class Tt extends _0x115581{['afterInit'](){const _0x1d686b=this['editor'],_0xcb4dee=_0x1d686b['plugins']['get']('TrackChangesEditing');_0x1d686b['plugins']['has']('Uploadcare')&&(_0xcb4dee['enableCommand']('uploadcare'),_0x1d686b['plugins']['has']('UploadcareImageEdit')&&(_0xcb4dee['enableCommand']('uploadcareImageEdit'),_0xcb4dee['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0xcb4dee['registerBlockAttribute']('uploadcareImageId'),_0xcb4dee['descriptionFactory']['registerDescriptionCallback'](_0x80702e=>{if('attribute'!=_0x80702e['type'])return;const {data:_0x53cf8a}=_0x80702e;return _0x53cf8a&&'uploadcareImageId'==_0x53cf8a['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0x115581{['afterInit'](){const _0x2df7f0=this['editor'],_0x510fbb=_0x2df7f0['plugins']['get']('TrackChangesEditing');_0x2df7f0['plugins']['has']('UndoEditing')&&(_0x510fbb['enableCommand']('undo'),_0x510fbb['enableCommand']('redo'));}}class Et extends _0x115581{static get['requires'](){return[Ct];}['afterInit'](){const _0x552b16=this['editor'];if(!_0x552b16['plugins']['has']('TableCaptionEditing'))return;_0x552b16['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ut extends _0x115581{['tableProperties'];['tableCellProperties'];constructor(_0x1a6d0d){super(_0x1a6d0d),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 _0xe26b7=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x1636a9 of this['tableProperties'])_0xe26b7['enableCommand'](_0x1636a9,(_0x4fbef6,_0x18af7d)=>{const _0xd6c3d1=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x1636a9,[_0xd6c3d1],this['tableProperties'],'tableProperties',_0x4fbef6,_0x18af7d);});_0xe26b7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0xe26b7['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xe26b7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x200294,_0x4261ca)=>this['handleDiscardAction'](this['tableProperties'],_0x200294,_0x4261ca)),_0xe26b7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x3e2717 of this['tableCellProperties'])_0xe26b7['enableCommand'](_0x3e2717,(_0x40ea79,_0xc20334)=>{const _0xedd824=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x3e2717,_0xedd824,this['tableCellProperties'],'tableCellProperties',_0x40ea79,_0xc20334);});_0xe26b7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0xe26b7['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xe26b7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x2c7351,_0x262d74)=>this['handleDiscardAction'](this['tableCellProperties'],_0x2c7351,_0x262d74)),_0xe26b7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0xe26b7['descriptionFactory']['registerDescriptionCallback'](_0x5bdd1f=>this['handleSuggestionDescription'](_0x5bdd1f));}['_handlePropertyChange'](_0x2cc120,_0x401249,_0x37dd24,_0x52a0f0,_0x27eabb,_0x52930d){const _0x48f34e=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x52930d['batch'],()=>{for(const _0xb99b56 of _0x401249){if(this['_getSuggestion'](_0xb99b56,_0x52a0f0))_0x27eabb(_0x52930d);else{const _0x33e07={};for(const _0x3537bc of _0x37dd24){const _0x1c8265=_0xb99b56['getAttribute'](_0x3537bc);void 0x0!==_0x1c8265&&(_0x33e07[_0x3537bc]=_0x1c8265);}_0x27eabb(_0x52930d),_0x48f34e['markBlockFormat'](_0xb99b56,{'commandParams':[_0x33e07]},[],_0x52a0f0);}}});}['handleDiscardAction'](_0x260d22,_0x38bdf6,_0x439c48){const _0x2145d6=_0x38bdf6[0x0]['start']['nodeAfter'],_0xfece89=_0x439c48['commandParams'][0x0];this['editor']['model']['change'](_0x395f81=>{for(const _0x492448 of _0x260d22)void 0x0!==_0xfece89[_0x492448]?_0x395f81['setAttribute'](_0x492448,_0xfece89[_0x492448],_0x2145d6):_0x395f81['removeAttribute'](_0x492448,_0x2145d6);});}['handleSuggestionDescription'](_0x546e2f){if(_0x546e2f['data'])switch(_0x546e2f['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'](_0x375917,_0x402d52){const _0x55303c=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x11e6e3 of _0x55303c['getSuggestions']({'skipNotAttached':!0x0})){const _0x144886=_0x11e6e3['getContainedElement']();if(_0x11e6e3['subType']===_0x402d52&&_0x144886===_0x375917)return _0x11e6e3;}return null;}}const m='$elementName';class p extends _0x115581{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x403e21,_0x368802,U,V,G,F,L,H,J,q,z,K,X,Y,Z,tt,nt,it,et,st,ot,rt,ct,at,ut,ft,ht,gt,Q,kt,lt,W,Se,dt,pt,wt,bt,yt,jt,St,At,It,vt,_t,Ct,Nt,Dt,Et,Mt,$t,Ot,Ut,Bt,Rt,Tt,xt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1a8338){super(_0x1a8338),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x234e50,_0xcb616f,_0x15fe3d,_0x11f2b1)=>{this['_model']['change'](()=>{for(const _0x2d6ff6 of[..._0x11f2b1,..._0x15fe3d])this['_model']['markers']['has'](_0x2d6ff6)&&_0x1a8338['editing']['reconvertMarker'](_0x2d6ff6);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Pt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x1a8338['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(),_0x1a8338['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x1a8338['config']['get']('trackChanges.trackFormatChanges'),_0x1a8338['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x1a8338['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x1a8338,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x71312e=this['editor'],_0x33d637=(_0x14ac6c,_0xc9006a)=>{if('attribute'!=_0x14ac6c)return'ck-suggestion-marker-'+_0x14ac6c;const _0x7054c2=_0xc9006a['split']('|')[0x0];return this['_isBlockAttribute'](_0x7054c2)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x71312e['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x284003=>{const {id:_0x102c6a,authorId:_0xe40d13,type:_0x15970e,subType:_0x1763db}=this['_splitMarkerName'](_0x284003['markerName']),_0x1cd9bf=['ck-suggestion-marker',_0x33d637(_0x15970e,_0x1763db)];let _0x45edab=0xbb8;return this['activeMarkers']['includes'](_0x284003['markerName'])&&(_0x1cd9bf['push']('ck-suggestion-marker--active'),_0x45edab=0xbc2),'deletion'==_0x15970e&&(_0x45edab+=0x5),{'classes':_0x1cd9bf,'attributes':{'data-suggestion':_0x102c6a,'data-author-id':_0xe40d13},'priority':_0x45edab};}}),_0x71312e['conversion']['for']('dataDowncast')['add'](_0x4dd71c=>{_0x4dd71c['on']('addMarker:suggestion',(_0x155613,_0x27fef2,_0x3558f7)=>{if(!_0x3558f7['options']['showSuggestionHighlights'])return;const _0x24f99a=_0x27fef2['item'];if(!_0x24f99a)return;const _0x438738=_0x3558f7['mapper']['toViewElement'](_0x24f99a);_0x71312e['model']['schema']['isObject'](_0x24f99a)&&_0x438738&&!_0x438738['getCustomProperty']('widget')&&_0x438738['is']('containerElement')&&_0x597d06(_0x438738,_0x3558f7['writer']);},{'priority':'high'});}),_0x71312e['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x5276a7,_0x3c2c6e)=>{if(!_0x3c2c6e['options']['showSuggestionHighlights'])return null;const {type:_0x3fd89d,subType:_0x371b11}=this['_splitMarkerName'](_0x5276a7['markerName']);return{'classes':['ck-suggestion-marker',_0x33d637(_0x3fd89d,_0x371b11)],'priority':0xbb8};}});const _0x4d35ba=({showActiveMarkers:_0x56b4ea=!0x0,isAttributeSuggestion:_0x219d28=!0x1}={})=>(_0x269309,_0x43ad96,_0x2ccb7a)=>{if(!_0x43ad96['item'])return;const {id:_0x55f961,authorId:_0x35b4aa}=this['_splitMarkerName'](_0x43ad96['markerName']);if(_0x219d28){const _0x3017c9=this['_suggestions']['get'](_0x55f961),_0x4f13e3=this['_getAttributeKey'](_0x3017c9);if(!this['_isBlockAttribute'](_0x4f13e3))return;}if(_0x43ad96['item']['is']('selection'))return void _0x2ccb7a['consumable']['consume'](_0x43ad96['item'],_0x269309['name']);const _0x8af8be=_0x2ccb7a['mapper']['toViewElement'](_0x43ad96['item']);if(_0x43ad96['item']['is']('element')&&_0x71312e['model']['schema']['isBlock'](_0x43ad96['item'])&&!_0x8af8be['getCustomProperty']('addHighlight')){_0x2ccb7a['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x8af8be),_0x2ccb7a['writer']['setAttribute']('data-suggestion',_0x55f961,_0x8af8be),_0x2ccb7a['writer']['setAttribute']('data-author-id',_0x35b4aa,_0x8af8be),_0x2ccb7a['mapper']['bindElementToMarker'](_0x8af8be,_0x43ad96['markerName']),_0x56b4ea&&(this['activeMarkers']['includes'](_0x43ad96['markerName'])?_0x2ccb7a['writer']['addClass']('ck-suggestion-marker--active',_0x8af8be):_0x2ccb7a['writer']['removeClass']('ck-suggestion-marker--active',_0x8af8be));for(const _0x4188f8 of _0x71312e['model']['createRangeIn'](_0x43ad96['item'])['getItems']())_0x2ccb7a['consumable']['consume'](_0x4188f8,_0x269309['name']);_0x2ccb7a['consumable']['consume'](_0x43ad96['item'],_0x269309['name']);}};_0x71312e['conversion']['for']('dataDowncast')['add'](_0x1d3dc3=>{_0x1d3dc3['on']('addMarker:suggestion:formatBlock',(_0x1b8805,_0x855274,_0x787ca4)=>{_0x787ca4['options']['showSuggestionHighlights']&&_0x4d35ba({'showActiveMarkers':!0x1})(_0x1b8805,_0x855274,_0x787ca4);},{'priority':'highest'});}),_0x71312e['conversion']['for']('dataDowncast')['add'](_0x5cd2b5=>{_0x5cd2b5['on']('addMarker:suggestion:attribute',(_0x878b07,_0xf16f12,_0x12a1ad)=>{_0x12a1ad['options']['showSuggestionHighlights']&&_0x4d35ba({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x878b07,_0xf16f12,_0x12a1ad);},{'priority':'highest'});}),_0x71312e['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x1ed728,_0x421d71)=>_0x421d71['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x1ed728['substr'](0xb)}}),_0x71312e['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x25fe3e,{writer:_0x2ce8ee})=>{let _0x6ddac3='suggestion:'+_0x25fe3e['getAttribute']('suggestion-type')+':'+_0x25fe3e['getAttribute']('id');return _0x25fe3e['getAttribute']('marker-count')&&(_0x6ddac3+=':'+_0x25fe3e['getAttribute']('marker-count')),_0x2ce8ee['createElement']('$marker',{'data-name':_0x6ddac3});}}),_0x71312e['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x71312e['conversion']['for']('editingDowncast')['add'](_0x2fa51a=>{_0x2fa51a['on']('addMarker:suggestion:formatBlock',_0x4d35ba(),{'priority':'high'});}),_0x71312e['conversion']['for']('editingDowncast')['add'](_0x758122=>{_0x758122['on']('addMarker:suggestion:attribute',_0x4d35ba({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x71312e['conversion']['for']('editingDowncast')['add'](_0x331fec=>{_0x331fec['on']('removeMarker:suggestion:formatBlock',(_0xdfcc15,_0x1a5613,_0x5e83db)=>{const _0x5d4ec1=_0x5e83db['mapper']['markerNameToElements'](_0x1a5613['markerName']);if(_0x5d4ec1){for(const _0x134d5e of _0x5d4ec1)_0x134d5e['getCustomProperty']('addHighlight')||(_0x5e83db['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x134d5e),_0x5e83db['writer']['removeAttribute']('data-suggestion',_0x134d5e),_0x5e83db['writer']['removeAttribute']('data-author-id',_0x134d5e),_0x5e83db['mapper']['unbindElementFromMarkerName'](_0x134d5e,_0x1a5613['markerName']));}},{'priority':'high'});}),_0x71312e['conversion']['for']('editingDowncast')['add'](_0x563e46=>{_0x563e46['on']('removeMarker:suggestion:attribute',(_0x559f2b,_0x52e836,_0x484412)=>{const _0x4698b2=_0x484412['mapper']['markerNameToElements'](_0x52e836['markerName']);if(!_0x4698b2)return;const {id:_0x441729}=this['_splitMarkerName'](_0x52e836['markerName']),_0xd4711a=this['_suggestions']['get'](_0x441729),_0x356d2e=this['_getAttributeKey'](_0xd4711a);if(this['_isBlockAttribute'](_0x356d2e)){for(const _0x1f46b4 of _0x4698b2)_0x1f46b4['getCustomProperty']('addHighlight')||(_0x484412['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1f46b4),_0x484412['writer']['removeAttribute']('data-suggestion',_0x1f46b4),_0x484412['writer']['removeAttribute']('data-author-id',_0x1f46b4),_0x484412['mapper']['unbindElementFromMarkerName'](_0x1f46b4,_0x52e836['markerName']));}},{'priority':'high'});}),_0x71312e['model']['document']['registerPostFixer'](_0x5d6f50=>{let _0x56a345=!0x1;const _0x229e0d=Array['from'](_0x71312e['model']['document']['differ']['getChangedMarkers']()),_0x2a266e=new Set();for(const {name:_0x20b892,data:_0x2dce55}of _0x229e0d){const {group:_0x5edb36,type:_0x3de788,subType:_0x1ef2da,id:_0x512e08}=this['_splitMarkerName'](_0x20b892);if('suggestion'!==_0x5edb36)continue;const _0x302dc9=this['_suggestions']['get'](_0x512e08);if(null!=_0x2dce55['newRange']){'formatInline'==_0x3de788&&(_0x56a345=_0x56a345||Lt(_0x2dce55['newRange'],_0x20b892,_0x5d6f50,_0x71312e['model']['schema']));const _0x37b21e='attribute'==_0x3de788&&this['_isBlockAttribute'](_0x1ef2da['split']('|')[0x0]);if(_0x2dce55['newRange']['isCollapsed']||'$graveyard'==_0x2dce55['newRange']['root']['rootName']||'formatBlock'==_0x3de788&&!Ht(_0x2dce55['newRange'])||_0x37b21e&&!Ht(_0x2dce55['newRange'])||'deletion'==_0x3de788&&!(!Ft(_0x19804c=_0x2dce55['newRange'])&&!function(_0x51fa49){return _0x51fa49['start']['parent']==_0x51fa49['end']['nodeBefore']&&_0x51fa49['start']['isAtEnd'];}(_0x19804c)))_0x5d6f50['removeMarker'](_0x20b892),_0x56a345=!0x0;else{if(!_0x302dc9||!_0x302dc9['isInContent'])continue;if(_0x2dce55['newRange']&&_0x2dce55['oldRange']&&_0x2dce55['newRange']['isEqual'](_0x2dce55['oldRange']))continue;_0x2a266e['add'](_0x302dc9);}}}var _0x19804c;return _0x2a266e['size']>0x0&&(_0x56a345=!!this['_joinWithAdjacentSuggestions'](_0x2a266e)||_0x56a345),_0x56a345;}),_0x71312e['model']['document']['registerPostFixer'](_0xea8978=>{let _0x3f89a8=!0x1;for(const _0x9ac8ce of _0x71312e['model']['document']['differ']['getChanges']())if('insert'==_0x9ac8ce['type'])for(const _0x5c0002 of this['_suggestions']['values']()){if(_0x5c0002['isMultiRange']||!_0x5c0002['isInContent'])continue;const _0x5ce691='formatBlock'==_0x5c0002['type'],_0x455b60=this['_getAttributeKey'](_0x5c0002),_0x188721=_0x455b60&&this['_isBlockAttribute'](_0x455b60);if(!_0x5ce691&&!_0x188721)continue;const _0x408c57=_0x5c0002['getFirstRange']();if(_0x408c57['start']['parent']!=_0x408c57['end']['parent']&&!_0x408c57['end']['isAtEnd']){const _0x3adbb0=_0x71312e['model']['createPositionAt'](_0x408c57['start']['nodeAfter'],'end'),_0x12525f=_0x71312e['model']['createRange'](_0x408c57['start'],_0x3adbb0);_0xea8978['updateMarker'](_0x5c0002['getFirstMarker'](),{'range':_0x12525f}),_0x3f89a8=!0x0;}}return _0x3f89a8;}),_0x71312e['model']['document']['registerPostFixer'](_0x2ee3ea=>this['_processAttributeChanges'](_0x2ee3ea)),_0x71312e['model']['document']['registerPostFixer'](_0x59cc55=>!_0x59cc55['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x59cc55)),_0x71312e['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x71312e['model']['document']['on']('change:data',(_0x33ef8b,_0x328fce)=>{if(!_0x328fce['isLocal']||_0x328fce['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x3ef903=_0x71312e['model']['document']['differ']['getChanges']();if(0x0==_0x3ef903['length'])return;const _0x5ae806=[],_0x382300=_0x3ef903['filter'](_0x34d0c8=>'attribute'==_0x34d0c8['type']),_0x497252=_0x3ef903['filter'](_0x1b5074=>'insert'==_0x1b5074['type']&&'$text'!=_0x1b5074['name']);for(const _0x202b8c of _0x382300)this['_isRegisteredAttribute'](_0x202b8c['attributeKey'])&&_0x5ae806['push']({'key':_0x202b8c['attributeKey'],'newValue':_0x202b8c['attributeNewValue'],'oldValue':_0x202b8c['attributeOldValue'],'range':qt(_0x202b8c['range'],_0x71312e['model'])});for(const _0x585189 of _0x497252){if('rename'!=_0x585189['action']&&'refresh'!=_0x585189['action'])continue;const _0x677f8=zt(_0x585189['position']['nodeAfter'],_0x71312e['model']),_0x4a1a88=_0x585189['before'];'rename'==_0x585189['action']&&_0x5ae806['push']({'key':m,'newValue':_0x585189['name'],'oldValue':_0x4a1a88['name'],'range':_0x677f8});for(const [_0x4edec0,_0xdbf26d]of _0x4a1a88['attributes']){if(!this['_isRegisteredAttribute'](_0x4edec0))continue;const _0x47c705=_0x585189['attributes']['get'](_0x4edec0);_0xdbf26d!==_0x47c705&&_0x5ae806['push']({'key':_0x4edec0,'newValue':_0x47c705,'oldValue':_0xdbf26d,'range':_0x677f8});}for(const [_0x1cff49,_0x1557f0]of _0x585189['attributes'])this['_isRegisteredAttribute'](_0x1cff49)&&(_0x4a1a88['attributes']['has'](_0x1cff49)||_0x5ae806['push']({'key':_0x1cff49,'newValue':_0x1557f0,'oldValue':null,'range':_0x677f8}));}0x0!=_0x5ae806['length']&&_0x71312e['model']['enqueueChange'](_0x328fce,_0x2013a4=>{const _0x34e7ea=_0x19169b();for(const {range:_0x1f225d,key:_0x5e0210,oldValue:_0x2ec2aa,newValue:_0x24c54b}of _0x5ae806)this['markAttributeChange'](_0x1f225d,_0x5e0210,_0x2ec2aa,_0x24c54b,{'groupId':_0x34e7ea});this['_reduceExistingSuggestions'](_0x2013a4,_0x5ae806);});},{'priority':'lowest'}),_0x71312e['model']['markers']['on']('update:suggestion',(_0x4fd7cd,_0x4a5821,_0x377def)=>{if(null==_0x377def){const {id:_0x4d32b2}=this['_splitMarkerName'](_0x4a5821['name']),_0x7738f=this['_suggestions']['get'](_0x4d32b2);_0x7738f&&_0x7738f['addMarkerName'](_0x4a5821['name']);}}),_0x71312e['model']['document']['on']('change:data',()=>{const _0x1e19bb=Array['from'](_0x71312e['model']['document']['differ']['getChangedMarkers']())['filter'](_0x3f9520=>'suggestion'===this['_splitMarkerName'](_0x3f9520['name'])['group']);if(0x0===_0x1e19bb['length'])return;_0x1e19bb['sort']((_0x17dae0,_0x1ad48d)=>{const _0x5acc33=_0x17dae0['data']['oldRange'],_0x24d23d=_0x1ad48d['data']['oldRange'];return null===_0x5acc33&&null===_0x24d23d?0x0:null===_0x5acc33&&null!==_0x24d23d?-0x1:null!==_0x5acc33&&null===_0x24d23d?0x1:_0x5acc33['start']['isBefore'](_0x24d23d['start'])?-0x1:0x1;});const _0x3d11fb=new Set(),_0x16ccf5=new Set();for(const {name:_0x38327a,data:_0x286f0b}of _0x1e19bb){const {id:_0x5828cc}=this['_splitMarkerName'](_0x38327a);if(null===_0x286f0b['oldRange']){const _0x4cedc2=this['_handleNewSuggestionMarker'](_0x38327a);_0x16ccf5['add'](_0x4cedc2);}else{const _0x31ff48=this['_suggestions']['get'](_0x5828cc);null!==_0x286f0b['newRange']||_0x31ff48['isInContent']?(_0x3d11fb['add'](_0x31ff48['head']),_0x16ccf5['add'](_0x31ff48)):this['_removeSuggestion'](_0x31ff48);}}_0x16ccf5['size']>0x0&&this['_refreshSuggestionsChain'](_0x16ccf5);for(const _0x487f09 of _0x3d11fb)this['fire']('suggestionChanged',_0x487f09);}),_0x71312e['model']['on']('applyOperation',(_0x490019,_0x49c903)=>{const _0x1ae2c4=_0x49c903[0x0];if(!this['_suggestions']['size'])return;if(!_0x1ae2c4['isDocumentOperation'])return;if(_0x1ae2c4['batch']['isUndo']||!_0x1ae2c4['batch']['isLocal'])return;let _0x51a5b8,_0x216324;switch(_0x1ae2c4['type']){case'insert':_0x51a5b8=_0x71312e['model']['createPositionAt'](_0x1ae2c4['position']),_0x216324=_0x51a5b8['getShiftedBy'](_0x1ae2c4['howMany']);break;case'split':_0x51a5b8=_0x71312e['model']['createPositionAt'](_0x1ae2c4['splitPosition']),_0x216324=_0x71312e['model']['createPositionAt'](_0x1ae2c4['moveTargetPosition']);break;case'move':_0x51a5b8=_0x71312e['model']['createPositionAt'](_0x1ae2c4['targetPosition']),_0x216324=_0x51a5b8['getShiftedBy'](_0x1ae2c4['howMany']);break;default:return;}const _0x1d48af=_0x71312e['model']['createRange'](_0x51a5b8,_0x216324);_0x71312e['model']['change'](()=>{for(const {suggestion:_0x304fa4,meta:_0x491905}of this['_findSuggestions'](_0x1d48af)){if(_0x304fa4['isMultiRange'])continue;if('formatInline'==_0x304fa4['type'])continue;const _0xa84537=this['_getAttributeKey'](_0x304fa4);if(_0xa84537&&this['_isBlockAttribute'](_0xa84537)&&'split'!=_0x1ae2c4['type'])continue;const _0x4713f3=_0x304fa4['data']&&_0x304fa4['data']['multipleBlocks'];('formatBlock'!=_0x304fa4['type']||'split'==_0x1ae2c4['type']&&!_0x4713f3)&&(_0x491905['containsRangeInObject']||'insertion'==_0x304fa4['type']&&_0x491905['isOwn']||_0x304fa4['getFirstRange']()['containsRange'](_0x1d48af)&&this['_breakSuggestionMarker'](_0x304fa4,_0x51a5b8,_0x216324));}});},{'priority':'lowest'}),_0x71312e['model']['on']('deleteContent',(_0x151d4d,_0x999e10)=>{const _0x510ccc=_0x999e10[0x0],_0x48d7b0=_0x999e10[0x1];if(_0x48d7b0&&_0x48d7b0['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x510ccc['isCollapsed'])return;const _0x120d5b=_0x71312e['model']['schema'],{start:_0x2862b6,end:_0x3f8d65}=_0x510ccc['getFirstRange'](),_0x30b744=_0x2862b6['nodeAfter']&&_0x120d5b['isLimit'](_0x2862b6['nodeAfter'])?null:_0x120d5b['getNearestSelectionRange'](_0x2862b6,'forward'),_0x3bd092=_0x3f8d65['nodeBefore']&&_0x120d5b['isLimit'](_0x3f8d65['nodeBefore'])?null:_0x120d5b['getNearestSelectionRange'](_0x3f8d65,'backward'),_0x123419=_0x71312e['model']['createRange'](_0x30b744?_0x30b744['start']:_0x2862b6,_0x3bd092?_0x3bd092['end']:_0x3f8d65);_0x71312e['model']['change'](_0x194bc6=>{this['markDeletion'](_0x123419);const _0x3099f1=_0x71312e['model']['schema']['getNearestSelectionRange'](_0x123419['start']);_0x510ccc['is']('documentSelection')?_0x194bc6['setSelection'](_0x3099f1):_0x510ccc['setTo'](_0x3099f1);}),_0x151d4d['stop']();},{'priority':_0x1c0c28['normal']+0xa}),_0x71312e['model']['on']('insertContent',(_0x16e744,_0x599474)=>{const _0x3570eb=_0x599474[_0x599474['length']-0x1];_0x3570eb&&_0x3570eb['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x71312e['model']['change'](()=>{let _0x4c60e6=_0x71312e['model']['insertContent'](_0x599474[0x0],_0x599474[0x1],_0x599474[0x2],{'forceDefaultExecution':!0x0});if(!_0x4c60e6)return;_0x16e744['return']=_0x4c60e6['clone']();const _0x38fd59=_0x4c60e6['end']['nodeBefore'],_0x52ad63=_0x71312e['model']['schema'];_0x38fd59&&_0x52ad63['isBlock'](_0x38fd59)&&!_0x52ad63['isObject'](_0x38fd59)&&(_0x4c60e6=_0x71312e['model']['createRange'](_0x4c60e6['start'],_0x71312e['model']['createPositionAt'](_0x38fd59,'end'))),this['markInsertion'](_0x4c60e6);}),_0x16e744['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x16fc9f=new O(_0x71312e,this['_suggestions']);_0x71312e['commands']['add']('acceptSuggestion',_0x16fc9f),this['enableCommand']('acceptSuggestion');const _0x1b11aa=new R(_0x71312e,this['_suggestions']);_0x71312e['commands']['add']('discardSuggestion',_0x1b11aa),this['enableCommand']('discardSuggestion'),_0x71312e['commands']['add']('acceptAllSuggestions',new x(_0x71312e,_0x16fc9f,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x71312e['commands']['add']('discardAllSuggestions',new x(_0x71312e,_0x1b11aa,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x71312e['commands']['add']('acceptSelectedSuggestions',new E(_0x71312e,_0x16fc9f,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x71312e['commands']['add']('discardSelectedSuggestions',new E(_0x71312e,_0x1b11aa,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x4542dd=_0x71312e['plugins']['get']('CommentsRepository');this['listenTo'](_0x4542dd,'addComment',(_0x3117c5,{threadId:_0x1804cf})=>{const _0x319a35=this['_suggestions']['get'](_0x1804cf);_0x319a35&&_0x319a35['commentThread']&&0x1===_0x319a35['commentThread']['length']&&this['_updateSuggestionData'](_0x1804cf,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x4542dd,'removeComment',(_0x3301a0,{threadId:_0x16f427})=>{const _0x1090d2=this['_suggestions']['get'](_0x16f427);_0x1090d2&&_0x1090d2['commentThread']&&!_0x1090d2['commentThread']['length']&&this['_updateSuggestionData'](_0x16f427,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x4d0a92){const _0x1cee28=_0x4ef803([0x34,0x51,0x41,0x75,0x79,0x33,0x78,0x36,0x6c,0x53,0x46,0x67,0x6a,0x72,0x54,0x30,0x6b,0x43,0x70,0x65,0x64,0x62,0x47,0x6e,0x45,0x49,0x32,0x61,0x4d,0x76,0x52,0x55,0x74,0x42,0x48,0x68,0x63,0x56,0x4b,0x44,0x6f,0x4a,0x31,0x4e,0x59,0x50,0x71,0x7a,0x35,0x77,0x6d,0x37,0x73,0x69,0x4f,0x58,0x38,0x66,0x5a,0x39,0x57,0x4c]),_0x4a63d4=0x1a31179a,_0x2148f1=0x1a3648fa^_0x4a63d4,_0x145d8a=window[_0x4ef803([0x44,0x61,0x74,0x65])][_0x4ef803([0x6e,0x6f,0x77])](),_0x41b076=_0x4d0a92[_0x4ef803([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x38a62c=new window[(_0x4ef803([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3d8417=>{_0x41b076[_0x4ef803([0x6f,0x6e,0x63,0x65])](_0x4ef803([0x72,0x65,0x61,0x64,0x79]),_0x3d8417);}),_0x3665e6={[_0x4ef803([0x6b,0x74,0x79])]:_0x4ef803([0x45,0x43]),[_0x4ef803([0x75,0x73,0x65])]:_0x4ef803([0x73,0x69,0x67]),[_0x4ef803([0x63,0x72,0x76])]:_0x4ef803([0x50,0x2d,0x32,0x35,0x36]),[_0x4ef803([0x78])]:_0x4ef803([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]),[_0x4ef803([0x79])]:_0x4ef803([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]),[_0x4ef803([0x61,0x6c,0x67])]:_0x4ef803([0x45,0x53,0x32,0x35,0x36])},_0xfbcb60=_0x41b076[_0x4ef803([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4ef803([0x67,0x65,0x74])](_0x4ef803([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x58285a(){let _0x27cdcd,_0x4b67c7=null,_0x1aa1b5=null;try{if(_0xfbcb60==_0x4ef803([0x47,0x50,0x4c]))return _0x4ef803([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x27cdcd=_0x2d7bc1(),!_0x27cdcd)return _0x4ef803([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x27cdcd[_0x4ef803([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1aa1b5=_0x7eb4a7(_0x27cdcd[_0x4ef803([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x27cdcd[_0x4ef803([0x6a,0x74,0x69])])),await _0x4b9829()?_0x187400()?_0x4674c3()?_0x4ef803([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x12ba2f()?(_0x27cdcd[_0x4ef803([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4ef803([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4b67c7=_0x53b437(_0x4ef803([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x27cdcd[_0x4ef803([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4ef803([0x74,0x72,0x69,0x61,0x6c])&&(_0x4b67c7=_0x53b437(_0x4ef803([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x44b425()):_0x4ef803([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4ef803([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4ef803([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x382831){return _0x4ef803([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4674c3(){const _0x3e7709=[_0x4ef803([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4ef803([0x74,0x72,0x69,0x61,0x6c])][_0x4ef803([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x27cdcd[_0x4ef803([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x145d8a/0x3e8:0xe10*_0x2148f1;return _0x27cdcd[_0x4ef803([0x65,0x78,0x70])]<_0x3e7709;}function _0x187400(){const _0x168862=_0x27cdcd[_0x4ef803([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x168862)return!0x1;if(_0x168862[_0x4ef803([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4ef803([0x2a])))return!0x0;if(_0x168862[_0x4ef803([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4ef803([0x54,0x43])))return!0x0;if(_0x168862[_0x4ef803([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4ef803([0x52,0x54,0x43]))){if(_0x3e6b22())return!0x0;if(_0x2d8a68()||_0x4022c0())return!0x0;}return!0x1;}function _0x12ba2f(){const _0x5c5721=_0x27cdcd[_0x4ef803([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5c5721||0x0==_0x5c5721[_0x4ef803([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x28fcaf}=new URL(window[_0x4ef803([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5c5721[_0x4ef803([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x28fcaf))return!0x0;const _0x25cef0=_0x28fcaf[_0x4ef803([0x73,0x70,0x6c,0x69,0x74])](_0x4ef803([0x2e]));return _0x5c5721[_0x4ef803([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1e3a59=>_0x1e3a59[_0x4ef803([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4ef803([0x2a])))[_0x4ef803([0x6d,0x61,0x70])](_0x579655=>_0x579655[_0x4ef803([0x73,0x70,0x6c,0x69,0x74])](_0x4ef803([0x2e])))[_0x4ef803([0x73,0x6f,0x6d,0x65])](_0xb750fa=>_0x25cef0[_0x4ef803([0x65,0x76,0x65,0x72,0x79])]((_0x29a7df,_0x18f6db)=>_0xb750fa[_0x18f6db]===_0x29a7df||_0xb750fa[_0x18f6db]===_0x4ef803([0x2a])));}function _0x44b425(){return _0x4b67c7&&_0x1aa1b5?new window[(_0x4ef803([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x43a168,_0x34762d)=>{_0x4b67c7[_0x4ef803([0x74,0x68,0x65,0x6e])](_0x43a168,_0x34762d),_0x1aa1b5[_0x4ef803([0x74,0x68,0x65,0x6e])](_0x474fd8=>{_0x474fd8!=_0x4ef803([0x56,0x61,0x6c,0x69,0x64])&&_0x43a168(_0x474fd8);},_0x34762d);}):_0x4b67c7||_0x1aa1b5||_0x4ef803([0x56,0x61,0x6c,0x69,0x64]);}}function _0x7eb4a7(_0x86d3f5,_0x48e8ad){return new window[(_0x4ef803([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x55c58b=>{if(_0x50fc92())return _0x55c58b(_0x4ef803([0x56,0x61,0x6c,0x69,0x64]));_0x1ace8c(),_0x41b076[_0x4ef803([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4ef803([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x54d5fa=!0x1;const _0x3292a6=_0x19169b();function _0x2d5883(_0x137074){return!!_0x137074&&(typeof _0x137074===_0x4ef803([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x137074===_0x4ef803([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x137074[_0x4ef803([0x74,0x68,0x65,0x6e])]===_0x4ef803([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x137074[_0x4ef803([0x63,0x61,0x74,0x63,0x68])]===_0x4ef803([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x307efc(_0x501629){_0x2a9306(_0x501629)[_0x4ef803([0x74,0x68,0x65,0x6e])](_0x10169b=>{if(!_0x10169b||_0x10169b[_0x4ef803([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4ef803([0x6f,0x6b]))return _0x4ef803([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5e61e4(_0x30492a(_0x3292a6+_0x48e8ad))!=_0x10169b[_0x4ef803([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4ef803([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4ef803([0x56,0x61,0x6c,0x69,0x64]);})[_0x4ef803([0x74,0x68,0x65,0x6e])](_0x25c184=>(_0x44d2ac(),_0x25c184),()=>{const _0x4c77e2=_0x5c4483();return null==_0x4c77e2?(_0x44d2ac(),_0x4ef803([0x56,0x61,0x6c,0x69,0x64])):_0x4ef803(_0x145d8a-_0x4c77e2>(0x3e3d939a^_0x4a63d4)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4ef803([0x74,0x68,0x65,0x6e])](_0x55c58b)[_0x4ef803([0x63,0x61,0x74,0x63,0x68])](()=>{_0x55c58b(_0x4ef803([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x19d897=0x1a07f91a^_0x4a63d4;function _0x44d2ac(){const _0x44b4b7=_0x4ef803([0x6c,0x6c,0x63,0x74,0x2d])+_0x5e61e4(_0x30492a(_0x86d3f5)),_0x15d092=_0x2be78b(_0x5e61e4(window[_0x4ef803([0x4d,0x61,0x74,0x68])][_0x4ef803([0x63,0x65,0x69,0x6c])](_0x145d8a/_0x19d897)));window[_0x4ef803([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4ef803([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x44b4b7,_0x15d092);}function _0x5c4483(){const _0x2e4e0f=_0x4ef803([0x6c,0x6c,0x63,0x74,0x2d])+_0x5e61e4(_0x30492a(_0x86d3f5)),_0x31c100=window[_0x4ef803([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4ef803([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2e4e0f);return _0x31c100?window[_0x4ef803([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2be78b(_0x31c100),0x10)*_0x19d897:null;}function _0x2a9306(_0x36a127){return new window[(_0x4ef803([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x12f973,_0x37ed0f)=>{_0x36a127[_0x4ef803([0x74,0x68,0x65,0x6e])](_0x12f973,_0x37ed0f),window[_0x4ef803([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x37ed0f,0x1a30c35a^_0x4a63d4);});}}_0x41b076[_0x4ef803([0x6f,0x6e])](_0x4ef803([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3a6077,_0x62e779)=>{if(_0x62e779[0x0]!=_0x86d3f5)return _0x55c58b(_0x4ef803([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x62e779[0x1]={..._0x62e779[0x1],[_0x4ef803([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3292a6};},{[_0x4ef803([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4ef803([0x68,0x69,0x67,0x68])}),_0x41b076[_0x4ef803([0x6f,0x6e])](_0x4ef803([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x547030=>{_0x2d5883(_0x547030[_0x4ef803([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x54d5fa=!0x0,_0x307efc(_0x547030[_0x4ef803([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4ef803([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4ef803([0x6c,0x6f,0x77])}),_0x38a62c[_0x4ef803([0x74,0x68,0x65,0x6e])](()=>{_0x54d5fa||_0x55c58b(_0x4ef803([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x50fc92(){return _0x41b076[_0x4ef803([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4ef803([0x76,0x69,0x65,0x77])][_0x4ef803([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4ef803([0x61,0x75,0x74,0x6f]);}function _0x1ace8c(){_0x41b076[_0x4ef803([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4ef803([0x76,0x69,0x65,0x77])][_0x4ef803([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4ef803([0x61,0x75,0x74,0x6f]);}}function _0x53b437(_0x40fffd){const _0x3b04db=[new window[(_0x4ef803([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1c6aca=>setTimeout(_0x1c6aca,0x1a382956^_0x4a63d4)),_0x38a62c[_0x4ef803([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4ef803([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1d0c6c=>{let _0x3c5436=0x0;_0x41b076[_0x4ef803([0x6d,0x6f,0x64,0x65,0x6c])][_0x4ef803([0x6f,0x6e])](_0x4ef803([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x598bb9,_0x58f4e9)=>{_0x58f4e9[0x0][_0x4ef803([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3c5436++,_0x3c5436==(0x1a311662^_0x4a63d4)&&(_0x1d0c6c(),_0x598bb9[_0x4ef803([0x6f,0x66,0x66])]());});}))];return window[_0x4ef803([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4ef803([0x72,0x61,0x63,0x65])](_0x3b04db)[_0x4ef803([0x74,0x68,0x65,0x6e])](()=>_0x40fffd);}async function _0xc35077(){await _0x38a62c,_0x41b076[_0x4ef803([0x6d,0x6f,0x64,0x65,0x6c])][_0x4ef803([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x73ce5,_0x41b076[_0x4ef803([0x6d,0x6f,0x64,0x65,0x6c])][_0x4ef803([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x73ce5,_0x41b076[_0x4ef803([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4ef803([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3e6b22(){return _0x230f64(_0x4ef803([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x33ab21(_0x4ef803([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x4ef803([0x73,0x74,0x61,0x74,0x65])]==_0x4ef803([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x2d8a68(){return _0x230f64(_0x4ef803([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 _0x4022c0(){return _0x230f64(_0x4ef803([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x2e9ff3(_0x3d161f){const _0x24c8f7=_0x4bbaa3();_0x41b076[_0x24c8f7]=_0x4ef803([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3d161f,_0x3d161f!=_0x4ef803([0x56,0x61,0x6c,0x69,0x64])&&_0xc35077();}function _0x4bbaa3(){const _0x353d89=window[_0x4ef803([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4ef803([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4ef803([0x6e,0x6f,0x77])]())[_0x4ef803([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4ef803([0x2e]),'');let _0x46cdf6=_0x4ef803([0x51]);for(let _0x393bcc=0x0;_0x393bcc<_0x353d89[_0x4ef803([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x393bcc+=0x2){let _0x4d60f3=window[_0x4ef803([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x353d89[_0x4ef803([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x393bcc,_0x393bcc+0x2));_0x4d60f3>=_0x1cee28[_0x4ef803([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4d60f3-=_0x1cee28[_0x4ef803([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x46cdf6+=_0x1cee28[_0x4d60f3];}return _0x46cdf6;}function _0x2d7bc1(){const _0x7c26ef=_0xfbcb60[_0x4ef803([0x73,0x70,0x6c,0x69,0x74])](_0x4ef803([0x2e]));if(0x3!=_0x7c26ef[_0x4ef803([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x13953a(_0x7c26ef[0x1]);function _0x13953a(_0x3bdda3){const _0x1689eb=_0x2fe285(_0x3bdda3);return _0x1689eb&&_0x14c320()?_0x1689eb:null;function _0x14c320(){const _0x515da8=_0x1689eb[_0x4ef803([0x6a,0x74,0x69])],_0xda23bf=window[_0x4ef803([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x515da8[_0x4ef803([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x515da8[_0x4ef803([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1613a8={..._0x1689eb,[_0x4ef803([0x6a,0x74,0x69])]:_0x515da8[_0x4ef803([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x515da8[_0x4ef803([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1613a8[_0x4ef803([0x76,0x63])],_0x30492a(_0x1613a8)==_0xda23bf;}}}async function _0x4b9829(){let _0x368d3a=!0x0;try{const _0x22956a=_0xfbcb60[_0x4ef803([0x73,0x70,0x6c,0x69,0x74])](_0x4ef803([0x2e])),[_0x34d8f3,_0x5a8b01,_0x536a61]=_0x22956a;return _0x593120(_0x34d8f3),await _0x15fd38(_0x34d8f3,_0x5a8b01,_0x536a61),_0x368d3a;}catch(_0x15729e){return!0x1;}function _0x593120(_0x2fbd74){const _0x52bf03=_0x2fe285(_0x2fbd74);_0x52bf03&&_0x52bf03[_0x4ef803([0x61,0x6c,0x67])]==_0x4ef803([0x45,0x53,0x32,0x35,0x36])||(_0x368d3a=!0x1);}async function _0x15fd38(_0x65b87e,_0x444cee,_0x27a3d2){const _0x189276=window[_0x4ef803([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4ef803([0x66,0x72,0x6f,0x6d])](_0x6b45d9(_0x27a3d2),_0x2c9ea5=>_0x2c9ea5[_0x4ef803([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x517296=new window[(_0x4ef803([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4ef803([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x65b87e+_0x4ef803([0x2e])+_0x444cee),_0x2fe5c3=window[_0x4ef803([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4ef803([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2fe5c3)return;const _0x46718c=await _0x2fe5c3[_0x4ef803([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4ef803([0x6a,0x77,0x6b]),_0x3665e6,{[_0x4ef803([0x6e,0x61,0x6d,0x65])]:_0x4ef803([0x45,0x43,0x44,0x53,0x41]),[_0x4ef803([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4ef803([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4ef803([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2fe5c3[_0x4ef803([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4ef803([0x6e,0x61,0x6d,0x65])]:_0x4ef803([0x45,0x43,0x44,0x53,0x41]),[_0x4ef803([0x68,0x61,0x73,0x68])]:{[_0x4ef803([0x6e,0x61,0x6d,0x65])]:_0x4ef803([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x46718c,_0x189276,_0x517296)||(_0x368d3a=!0x1);}}function _0x2fe285(_0x269824){return _0x269824[_0x4ef803([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4ef803([0x65,0x79]))?JSON[_0x4ef803([0x70,0x61,0x72,0x73,0x65])](_0x6b45d9(_0x269824)):null;}function _0x6b45d9(_0x518347){return window[_0x4ef803([0x61,0x74,0x6f,0x62])](_0x518347[_0x4ef803([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4ef803([0x2b]))[_0x4ef803([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4ef803([0x2f])));}function _0x30492a(_0x5a804e){let _0x55da9d=0x1505;function _0x15fddb(_0xbb32dd){for(let _0x4846dc=0x0;_0x4846dc<_0xbb32dd[_0x4ef803([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4846dc++){const _0xd03f13=_0xbb32dd[_0x4ef803([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4846dc);_0x55da9d=(_0x55da9d<<0x5)+_0x55da9d+_0xd03f13,_0x55da9d&=_0x55da9d;}}function _0x69c539(_0x487bc3){Array[_0x4ef803([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x487bc3)?_0x487bc3[_0x4ef803([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x69c539):_0x487bc3&&typeof _0x487bc3==_0x4ef803([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4ef803([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x487bc3)[_0x4ef803([0x73,0x6f,0x72,0x74])]()[_0x4ef803([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x16d3ec,_0x4dcbd9])=>{_0x15fddb(_0x16d3ec),_0x69c539(_0x4dcbd9);}):_0x15fddb(window[_0x4ef803([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x487bc3));}return _0x69c539(_0x5a804e),_0x55da9d>>>0x0;}function _0x5e61e4(_0x1caf0c){return _0x1caf0c[_0x4ef803([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4ef803([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4ef803([0x30]));}function _0x2be78b(_0x3d71ab){return _0x3d71ab[_0x4ef803([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4ef803([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4ef803([0x6a,0x6f,0x69,0x6e])]('');}function _0x230f64(_0x2f72a8){return _0x41b076[_0x4ef803([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4ef803([0x68,0x61,0x73])](_0x2f72a8);}function _0x33ab21(_0x42b197){return _0x41b076[_0x4ef803([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4ef803([0x67,0x65,0x74])](_0x42b197);}function _0x73ce5(){}function _0x4ef803(_0x20bf3f){return _0x20bf3f['map'](_0x3b9363=>String['fromCharCode'](_0x3b9363))['join']('');}_0x2e9ff3(await _0x58285a());}(this);}set['adapter'](_0x20b65f){if(this['_adapter'])throw new _0x52121e('track-changes-adapter-already-set',this);this['_adapter']=_0x20b65f;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x1b0790=!0x1,toJSON:_0x4811f1=!0x1}={}){const _0x18dd92=[];for(const _0x296dfa of this['_suggestions']['values']())_0x1b0790&&!_0x296dfa['isInContent']||_0x18dd92['push'](_0x296dfa);return _0x4811f1?_0x18dd92['map'](_0x38cd00=>_0x38cd00['toJSON']()):_0x18dd92;}['getSuggestion'](_0x1bad66){const _0xd94608=this['_suggestions']['get'](_0x1bad66);if(!_0xd94608)throw new _0x52121e('track-changes-suggestion-not-found',this);return _0xd94608;}['hasSuggestion'](_0x1dbb9a){return this['_suggestions']['has'](_0x1dbb9a);}['addSuggestionData'](_0x325738){const {authorId:_0x3bab18,id:_0xeeb4f0,attributes:_0x542a79}=_0x325738,[_0x513509,_0x51b468]=_0x325738['type']['split'](':'),_0x87dcf8=this['_suggestions']['get'](_0xeeb4f0)||this['_createSuggestion'](_0x513509,_0x51b468,_0xeeb4f0,_0x3bab18,_0x542a79);if(this['_addThreadToSuggestion'](_0x87dcf8),this['_checkSuggestionCorrectness'](_0x87dcf8,_0x513509,_0x51b468||null,_0x3bab18),_0x87dcf8['createdAt']=_0x325738['createdAt'],_0x87dcf8['_isDataLoaded']=!0x0,_0x542a79&&_0x542a79['@external']){const _0x567e6e=_0x542a79['@external'],_0x31ea67=this['_getExternalAuthor'](_0x567e6e['authorName']);_0x87dcf8['authoredAt']=_0x567e6e['createdAt'],_0x87dcf8['author']=_0x31ea67,_0x87dcf8['isExternal']=!0x0;}else _0x87dcf8['authoredAt']=_0x325738['createdAt'];switch(_0x325738['data']&&(_0x87dcf8['data']=_0x325738['data']),_0x325738['attributes']&&(_0x87dcf8['attributes']=_0x325738['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x87dcf8['_saved']=!0x0),this['_suggestionState']['get'](_0x87dcf8)){case'notReady':this['_suggestionState']['set'](_0x87dcf8,'dataReady');break;case'markerReady':_0x87dcf8['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x87dcf8])),this['_refreshSuggestionsChain'](new Set([_0x87dcf8])),this['_suggestionState']['set'](_0x87dcf8,'ready'),this['fire']('suggestionLoaded',_0x87dcf8)):this['_suggestionState']['set'](_0x87dcf8,'removed');}return _0x87dcf8;}['acceptSuggestion'](_0x24fc20){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1d5d01 of _0x24fc20['getAllAdjacentSuggestions']())_0x1d5d01['accept']();});});}['discardSuggestion'](_0x5ef805){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x47e421 of _0x5ef805['getAllAdjacentSuggestions']())_0x47e421['discard']();});});}['enableCommand'](_0x2ed777,_0x5125b9){const _0x3c1dd2=this['editor']['commands']['get'](_0x2ed777);if(!_0x3c1dd2)throw new _0x52121e('track-changes-command-not-found',this,{'commandName':_0x2ed777});if(this['_enabledCommands']['has'](_0x3c1dd2))throw new _0x52121e('track-changes-enable-command-twice',this,{'commandName':_0x2ed777});this['_enabledCommands']['add'](_0x3c1dd2),_0x5125b9&&_0x3c1dd2['on']('execute',(_0x1e8dbb,_0x417844)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x417844['length']>0x0&&_0x417844[_0x417844['length']-0x1]&&_0x417844[_0x417844['length']-0x1]['forceDefaultExecution']?_0x417844['pop']():(_0x1e8dbb['return']=_0x5125b9((..._0x34ea82)=>_0x3c1dd2['execute'](..._0x34ea82,{'forceDefaultExecution':!0x0}),..._0x417844),_0x1e8dbb['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x55d82f){let _0x1a1138,_0x28e3a5;const _0xbb7f39=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x1a1138=_0x55d82f();}catch(_0x6ccd27){_0x28e3a5=_0x6ccd27;}return _0xbb7f39||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x28e3a5&&_0x52121e['rethrowUnexpectedError'](_0x28e3a5,this),_0x1a1138;}['markInsertion'](_0x227a1f,_0x3e9814=null,_0x259f81={}){if(_0x227a1f['isCollapsed'])return null;const _0x5da4b4=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x1ddf42,meta:_0x5ad1ee}of this['_findSuggestions'](_0x227a1f,'insertion'))if(_0x5ad1ee['isOwn']){if(!_0x5ad1ee['isNextTo']){if(_0x5ad1ee['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0x1ddf42,_0x259f81))continue;return _0x1ddf42;}if(Qt(_0x1ddf42,_0x259f81))return _0x1ddf42;this['_breakSuggestionMarker'](_0x1ddf42,_0x227a1f['start'],_0x227a1f['end']);break;}if(_0x3e9814==_0x1ddf42['subType']&&Qt(_0x1ddf42,_0x259f81)){const _0x56f7d4=_0x1ddf42['getFirstRange']();return _0x56f7d4['start']['isEqual'](_0x227a1f['end'])?this['_setSuggestionRange'](_0x1ddf42,this['_model']['createRange'](_0x227a1f['start'],_0x56f7d4['end'])):this['_setSuggestionRange'](_0x1ddf42,this['_model']['createRange'](_0x56f7d4['start'],_0x227a1f['end'])),_0x1ddf42;}}const _0x1cc16e=_0x19169b(),_0x226b99=_0x5da4b4['id'],_0x41b2fa=_0x3e9814?'insertion:'+_0x3e9814:'insertion',_0xc3450c=this['_setSuggestionData']({'id':_0x1cc16e,'type':_0x41b2fa,'createdAt':new Date(),'authorId':_0x226b99,'attributes':_0x259f81});return this['_addSuggestionMarker'](_0x41b2fa,_0x1cc16e,_0x226b99,_0x227a1f),_0xc3450c;}['markMultiRangeInsertion'](_0xf00a8d,_0x25ca77='multi',_0x143a14={}){const _0x405055=this['editor']['plugins']['get']('Users')['me'],_0xd3a62a=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x25ca77,'join');for(const _0x55e0ef of this['getSuggestions']())if(_0x55e0ef['author']['id']==_0x405055['id']&&'insertion'==_0x55e0ef['type']&&_0x55e0ef['subType']==_0x25ca77&&Qt(_0x55e0ef,_0x143a14)&&(_0xd3a62a(_0x55e0ef['getRanges'](),_0xf00a8d)||_0xd3a62a(_0xf00a8d,_0x55e0ef['getRanges']()))){for(const _0xe1f21f of _0xf00a8d)_0x55e0ef['addRange'](_0xe1f21f);return _0x55e0ef;}for(const {suggestion:_0x786672,meta:_0xedf550}of this['_findSuggestions'](_0xf00a8d,'insertion')){if(!_0xedf550['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0xedf550['containsRangeInObject'])continue;if(!Qt(_0x786672,_0x143a14))continue;let _0x4d5fe3=!0x0;for(const _0x34dfe6 of _0x786672['getRanges']())for(const _0x372e58 of _0xf00a8d)if(!_0x34dfe6['containsRange'](_0x372e58)){_0x4d5fe3=!0x1;break;}if(_0x4d5fe3)return _0x786672;}const _0x23d6b2=_0x19169b(),_0x24d2f1=_0x405055['id'],_0x5b3697='insertion:'+_0x25ca77,_0x55bb21=this['_setSuggestionData']({'id':_0x23d6b2,'type':_0x5b3697,'createdAt':new Date(),'authorId':_0x24d2f1,'attributes':_0x143a14});for(const _0x17413e of _0xf00a8d)this['_addSuggestionMarker'](_0x5b3697,_0x23d6b2,_0x24d2f1,_0x17413e,u['getMultiRangeId']());return _0x55bb21;}['markInlineFormat'](_0x1af84f,_0x1bf6fd,_0x44692b=null,_0x476859={}){if(_0x44692b=_0x44692b||Jt(_0x1bf6fd),_0x1af84f['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x7c13b=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x44692b,'accept');return this['forceDefaultExecution'](()=>_0x7c13b([_0x1af84f],_0x1bf6fd,_0x476859)),null;}const _0x2a85d7=this['editor']['plugins']['get']('Users')['me'],_0x323982=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x36d143,meta:_0x2e5214}of this['_findSuggestions'](_0x1af84f,'insertion'))_0x2e5214['isOwn']&&!_0x2e5214['isInsideObject']&&_0x323982['push'](..._0x36d143['getRanges']());}const _0x16d670=function(_0x333d9c,_0x53ba57){const _0x42abe7=[];for(const _0x1cba1d of _0x53ba57){const _0x3c2001=_0x333d9c['getIntersection'](_0x1cba1d);_0x3c2001&&_0x42abe7['push'](_0x3c2001);}return _0x42abe7;}(_0x1af84f,_0x323982),_0x5aeb86=function(_0x5bff4e,_0x15fa1d){const _0x162064=[_0x5bff4e];for(const _0xfe8c3 of _0x15fa1d){let _0x221fff=0x0;for(;_0x221fff<_0x162064['length'];){const _0x26f29b=_0x162064[_0x221fff]['getDifference'](_0xfe8c3);_0x162064['splice'](_0x221fff,0x1,..._0x26f29b),_0x221fff+=_0x26f29b['length'];}}return _0x162064;}(_0x1af84f,_0x323982);_0x16d670['length']&&this['_model']['change'](()=>{for(const _0x114b5f of _0x16d670){const _0x4d5fb5=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x44692b,'accept');this['forceDefaultExecution'](()=>_0x4d5fb5([_0x114b5f],_0x1bf6fd,_0x476859));}});for(const _0x4d22a2 of _0x5aeb86){let _0x3287c0=null,_0x848cd3=_0x4d22a2['start'],_0x59136d=_0x4d22a2['end'];for(const {suggestion:_0x125c23,meta:_0x16e42b}of this['_findSuggestions'](_0x4d22a2,'formatInline')){if(!_0x16e42b['isOwn'])continue;if(_0x125c23['subType']!=_0x44692b)continue;if(!Qt(_0x125c23,_0x476859))continue;const _0x1c8c95=_0x125c23['getFirstRange']();if(_0x1c8c95['containsRange'](_0x4d22a2,!0x0))return null;_0x848cd3=_0x848cd3['isBefore'](_0x1c8c95['start'])?_0x848cd3:_0x1c8c95['start'],_0x59136d=_0x59136d['isAfter'](_0x1c8c95['end'])?_0x59136d:_0x1c8c95['end'],_0x3287c0?_0x1c8c95['start']['isBefore'](_0x3287c0['getFirstRange']()['start'])?(_0x3287c0['removeMarkers'](),_0x3287c0=_0x125c23):_0x125c23['removeMarkers']():_0x3287c0=_0x125c23;}const _0x27a9b7=this['_model']['createRange'](_0x848cd3,_0x59136d);if(_0x3287c0)this['_setSuggestionRange'](_0x3287c0,_0x27a9b7);else{const _0x31091e=_0x19169b(),_0x57bdf4=_0x2a85d7['id'];this['_setSuggestionData']({'id':_0x31091e,'type':'formatInline:'+_0x44692b,'data':_0x1bf6fd,'createdAt':new Date(),'authorId':_0x57bdf4,'attributes':_0x476859}),this['_addSuggestionMarker']('formatInline:'+_0x44692b,_0x31091e,_0x57bdf4,_0x27a9b7);}}return null;}['markBlockFormat'](_0x214708,_0x3ae2a9,_0x10a194=[],_0x4b746b=null,_0x54a761={}){_0x3ae2a9['formatGroupId']||(_0x3ae2a9['formatGroupId']=_0x3ae2a9['commandName']),_0x3ae2a9['multipleBlocks']=_0x214708['is']('range'),_0x4b746b=_0x4b746b||Jt(_0x3ae2a9);const _0x1e03e5=_0x10a194['map'](_0x33ea7f=>zt(_0x33ea7f,this['_model'])),_0x497c59=_0x214708['is']('range')?_0x214708:zt(_0x214708,this['_model']);if('never'===this['_trackFormatChanges']){const _0x214220=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4b746b,'accept');return this['forceDefaultExecution'](()=>_0x214220([_0x497c59],_0x3ae2a9,_0x54a761)),null;}_0x1e03e5['push'](_0x497c59);let _0x37ad47=!0x0;for(const _0x8b3097 of _0x1e03e5)if(!this['_rangeIsInLocalUserInsertion'](_0x8b3097)){_0x37ad47=!0x1;break;}if(_0x37ad47&&'always'!==this['_trackFormatChanges']){const _0x18c093=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4b746b,'accept');return this['forceDefaultExecution'](()=>_0x18c093([_0x497c59],_0x3ae2a9,_0x54a761)),null;}let _0x1c9dda=null,_0x56e52e=_0x497c59['start'],_0x1423c4=_0x497c59['end'];for(const {suggestion:_0x3ee770,meta:_0xdfc340}of this['_findSuggestions'](_0x497c59,'formatBlock')){if(!_0xdfc340['isOwn'])continue;if(_0xdfc340['isNextTo']||_0xdfc340['containsRangeInObject']||_0xdfc340['isInsideObject'])continue;if(_0x3ee770['data']['formatGroupId']!=_0x3ae2a9['formatGroupId'])continue;if(!Qt(_0x3ee770,_0x54a761))continue;const _0x476682=_0x3ee770['getFirstRange']();if(_0x3ee770['subType']==_0x4b746b){if(_0x476682['containsRange'](_0x497c59,!0x0))return null;_0x56e52e=_0x56e52e['isBefore'](_0x476682['start'])?_0x56e52e:_0x476682['start'],_0x1423c4=_0x1423c4['isAfter'](_0x476682['end'])?_0x1423c4:_0x476682['end'],_0x1c9dda?_0x476682['start']['isBefore'](_0x1c9dda['getFirstRange']()['start'])?(_0x1c9dda['removeMarkers'](),_0x1c9dda=_0x3ee770):_0x3ee770['removeMarkers']():_0x1c9dda=_0x3ee770;}else{const _0x13b2ef=_0x497c59['getIntersection'](_0x476682);this['_cutOutSuggestionMarker'](_0x3ee770,_0x13b2ef);}}const _0x22739f=this['editor']['plugins']['get']('Users')['me'],_0x722fb0=_0x19169b(),_0xfa0192=_0x22739f['id'];if(_0x1c9dda)return this['_setSuggestionRange'](_0x1c9dda,this['_model']['createRange'](_0x56e52e,_0x1423c4)),_0x1c9dda;{const _0x800ee2=this['_setSuggestionData']({'id':_0x722fb0,'type':'formatBlock:'+_0x4b746b,'data':_0x3ae2a9,'createdAt':new Date(),'authorId':_0xfa0192,'attributes':_0x54a761});return this['_addSuggestionMarker']('formatBlock:'+_0x4b746b,_0x722fb0,_0xfa0192,this['_model']['createRange'](_0x56e52e,_0x1423c4)),_0x800ee2;}}['markMultiRangeBlockFormat'](_0x26c29a,_0x2fe8c1,_0x3c0cd8=[],_0x175844=null,_0x38cb3e={}){_0x2fe8c1['formatGroupId']||(_0x2fe8c1['formatGroupId']=_0x2fe8c1['commandName']);const _0x5045f1=_0x26c29a[0x0];_0x2fe8c1['multipleBlocks']=_0x5045f1['is']('range'),_0x175844=_0x175844||Jt(_0x2fe8c1);const _0x360e8f=_0x3c0cd8['map'](_0x4bf290=>zt(_0x4bf290,this['_model'])),_0x47bb29=_0x5045f1['is']('range')?_0x26c29a:_0x26c29a['map'](_0x47c702=>zt(_0x47c702,this['_model']));if('never'===this['_trackFormatChanges']){const _0x2d6518=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x175844,'accept');return this['forceDefaultExecution'](()=>_0x2d6518(_0x47bb29,_0x2fe8c1,_0x38cb3e)),null;}_0x360e8f['push'](..._0x47bb29);let _0xdb72a8=!0x0;for(const _0x513baf of _0x360e8f)if(!this['_rangeIsInLocalUserInsertion'](_0x513baf)){_0xdb72a8=!0x1;break;}if(_0xdb72a8&&'always'!==this['_trackFormatChanges']){const _0x1d04f6=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x175844,'accept');return this['forceDefaultExecution'](()=>_0x1d04f6(_0x47bb29,_0x2fe8c1,_0x38cb3e)),null;}const _0x5c261e=this['editor']['plugins']['get']('Users')['me'];for(const _0x58d690 of this['getSuggestions']()){if(_0x58d690['author']['id']!=_0x5c261e['id'])continue;if('formatBlock'!=_0x58d690['type']||_0x58d690['data']['formatGroupId']!=_0x2fe8c1['formatGroupId'])continue;if(!Qt(_0x58d690,_0x38cb3e))continue;const _0x5ab43b=_0x58d690['subType']==_0x175844;for(let _0x461e72=0x0;_0x461e72<_0x47bb29['length'];_0x461e72++){const _0x30392c=_0x47bb29[_0x461e72];for(const _0x2a004f of _0x58d690['getMarkers']()){const _0x7ee181=_0x2a004f['getRange']();if(_0x30392c['isEqual'](_0x7ee181)){_0x5ab43b?(_0x47bb29['splice'](_0x461e72,0x1),_0x461e72--):_0x58d690['removeMarker'](_0x2a004f['name']);break;}}}}if(0x0==_0x47bb29['length'])return null;const _0x2c61b5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x175844,'join');for(const _0x10ff4f of this['getSuggestions']())if(_0x10ff4f['author']['id']==_0x5c261e['id']&&'formatBlock'==_0x10ff4f['type']&&_0x10ff4f['data']['formatGroupId']==_0x2fe8c1['formatGroupId']&&_0x10ff4f['subType']==_0x175844&&Qt(_0x10ff4f,_0x38cb3e)&&(_0x2c61b5(_0x10ff4f['getRanges'](),_0x47bb29)||_0x2c61b5(_0x47bb29,_0x10ff4f['getRanges']()))){for(const _0x2d9e68 of _0x47bb29)_0x10ff4f['addRange'](_0x2d9e68);return _0x10ff4f;}const _0x4af863=_0x19169b(),_0x6252d8=_0x5c261e['id'],_0x55f87d='formatBlock:'+_0x175844,_0x56b699=this['_setSuggestionData']({'id':_0x4af863,'type':_0x55f87d,'data':_0x2fe8c1,'createdAt':new Date(),'authorId':_0x6252d8,'attributes':_0x38cb3e});for(const _0x4e79ea of _0x47bb29)this['_addSuggestionMarker'](_0x55f87d,_0x4af863,_0x6252d8,_0x4e79ea,u['getMultiRangeId']());return _0x56b699;}['markDeletion'](_0x339276,_0x1e1ec1=null,_0x74bc30={}){if(_0x339276['isCollapsed'])return null;const _0x447d1f=this['editor']['plugins']['get']('Users')['me'],_0x4a4496=new _0x7b347b(_0x339276['start'],_0x339276['end']);for(const {suggestion:_0x4b1fd7,meta:_0x177a48}of this['_findSuggestions'](_0x4a4496,'insertion'))if(_0x177a48['isOwn']&&!_0x177a48['isNextTo']){if(_0x4b1fd7['isMultiRange']){const _0x505675=_0x4b1fd7['getRanges']()['filter'](_0x49550c=>'$graveyard'!=_0x49550c['root']['rootName']);_0x505675['every'](_0x3faac4=>_0x4a4496['containsRange'](_0x3faac4,!0x0))&&_0x4b1fd7['discard']();if(_0x505675['some'](_0x12bcd2=>_0x12bcd2['containsRange'](_0x4a4496,!0x0))){const _0x3de407=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1e1ec1,'accept');return this['forceDefaultExecution'](()=>_0x3de407([_0x4a4496],null,_0x74bc30)),null;}}else{const _0xdb4a38=_0x4a4496['getIntersection'](_0x4b1fd7['getFirstRange']());null!==_0xdb4a38&&_0x4b1fd7['_onDiscard']([_0xdb4a38],null,_0x74bc30);}}if(_0x4a4496['detach'](),_0x4a4496['isCollapsed']||'$graveyard'==_0x4a4496['root']['rootName'])return null;let _0x50b625=null,_0x5078d4=_0x4a4496['start'],_0x353884=_0x4a4496['end'];const _0x24d133=this['_findSuggestions'](_0x4a4496,'deletion');for(const {suggestion:_0x1290f4,meta:_0x11a200}of _0x24d133){const _0x1828f6=this['_model']['createRange'](_0x5078d4,_0x353884);if(_0x11a200['isOwn']&&(this['_mergeNestedSuggestions']||!_0x11a200['containsRangeInObject']&&!_0x11a200['isInsideObject'])){if(_0x1290f4['isMultiRange']){if(!Qt(_0x1290f4,_0x74bc30))continue;let _0x24a343=!0x0;for(const _0x505806 of _0x1290f4['getRanges']()){if(_0x505806['containsRange'](_0x1828f6,!0x0))return _0x1290f4;_0x1828f6['containsRange'](_0x505806)||(_0x24a343=!0x1);}_0x24a343&&_0x1290f4['discard']();}else{const _0x4dd9ef=_0x1290f4['getFirstRange']();if(_0x4dd9ef['containsRange'](_0x1828f6,!0x0))return _0x1290f4;if(!Qt(_0x1290f4,_0x74bc30)){_0x1828f6['containsRange'](_0x4dd9ef)?_0x1290f4['removeMarkers']():_0x4dd9ef['containsPosition'](_0x5078d4)?_0x5078d4=_0x4dd9ef['end']:_0x4dd9ef['containsPosition'](_0x353884)&&(_0x353884=_0x4dd9ef['start']);continue;}_0x5078d4=_0x5078d4['isBefore'](_0x4dd9ef['start'])?_0x5078d4:_0x4dd9ef['start'],_0x353884=_0x353884['isAfter'](_0x4dd9ef['end'])?_0x353884:_0x4dd9ef['end'],_0x74bc30=Object['assign']({},_0x1290f4['attributes']),_0x50b625?_0x4dd9ef['start']['isBefore'](_0x50b625['getFirstRange']()['start'])?(_0x50b625['removeMarkers'](),_0x50b625=_0x1290f4):_0x1290f4['removeMarkers']():_0x50b625=_0x1290f4;}}}if(_0x50b625)return this['_setSuggestionRange'](_0x50b625,this['_model']['createRange'](_0x5078d4,_0x353884)),_0x50b625;{const _0x26c4e1=_0x19169b(),_0x351a06=this['_model']['createRange'](_0x5078d4,_0x353884),_0x355d9e=_0x447d1f['id'],_0x4ec4f5=_0x1e1ec1?'deletion:'+_0x1e1ec1:'deletion',_0x315b9a=this['_setSuggestionData']({'id':_0x26c4e1,'type':_0x4ec4f5,'createdAt':new Date(),'authorId':_0x355d9e,'attributes':_0x74bc30});return this['_addSuggestionMarker'](_0x4ec4f5,_0x26c4e1,_0x355d9e,_0x351a06),_0x315b9a;}}['markMultiRangeDeletion'](_0x19c0db,_0x261b53='multi',_0x3f27ae={}){const _0x556d6f=this['editor']['plugins']['get']('Users')['me'],_0x280d83=_0x19c0db['map'](_0x420b4c=>new _0x7b347b(_0x420b4c['start'],_0x420b4c['end'])),_0x1d9e52=new Set();for(const {suggestion:_0x2be1fc,meta:_0x33a1df}of this['_findSuggestions'](_0x280d83,'insertion'))_0x33a1df['isOwn']&&!_0x33a1df['isNextTo']&&_0x1d9e52['add'](_0x2be1fc);for(const _0x26de2e of _0x1d9e52)if(_0x26de2e['isMultiRange']){const _0x4e2852=_0x26de2e['getRanges']();(!_0x26de2e['attributes']||!_0x26de2e['attributes']['skipNestingCheck'])&&(_0x4e2852['every'](_0x16c9d0=>_0x280d83['some'](_0x2e2bbc=>_0x2e2bbc['containsRange'](_0x16c9d0,!0x0)))&&_0x26de2e['discard']());if(_0x280d83['every'](_0x537183=>_0x4e2852['some'](_0x2d3f5c=>_0x2d3f5c['containsRange'](_0x537183,!0x0)))){const _0x888433=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x261b53,'accept');return this['forceDefaultExecution'](()=>_0x888433(_0x19c0db,null,_0x3f27ae)),null;}}else{const _0x292c0e=_0x26de2e['getFirstRange']();_0x280d83['some'](_0x11bebd=>_0x11bebd['containsRange'](_0x292c0e,!0x0))&&_0x26de2e['discard']();if(_0x280d83['every'](_0x2b6cab=>_0x292c0e['containsRange'](_0x2b6cab,!0x0))){const _0x16f4e2=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x261b53,'accept');return this['forceDefaultExecution'](()=>_0x16f4e2(_0x280d83,null,_0x3f27ae)),null;}}const _0x20bad1=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x261b53,'join');let _0x37b7ce=null;for(const _0x5acca4 of this['getSuggestions']())if(_0x5acca4['author']['id']==_0x556d6f['id']&&_0x5acca4['isInContent']&&'deletion'==_0x5acca4['type']&&_0x5acca4['subType']==_0x261b53&&Qt(_0x5acca4,_0x3f27ae)&&(_0x20bad1(_0x5acca4['getRanges'](),_0x280d83)||_0x20bad1(_0x280d83,_0x5acca4['getRanges']()))){if(_0x37b7ce){if(_0x5acca4['commentThread']&&_0x5acca4['commentThread']['length'])continue;for(const _0x406c36 of _0x5acca4['getRanges']())_0x37b7ce['isIntersectingWithRange'](_0x406c36)||_0x37b7ce['addRange'](_0x406c36);_0x5acca4['removeMarkers']();}else{_0x37b7ce=_0x5acca4;for(const _0x149c74 of _0x280d83)_0x5acca4['isIntersectingWithRange'](_0x149c74)||_0x5acca4['addRange'](_0x149c74);}}if(_0x37b7ce)return _0x37b7ce;_0x1d9e52['clear']();for(const {suggestion:_0x237d1b,meta:_0x45927b}of this['_findSuggestions'](_0x280d83,'deletion'))_0x45927b['isOwn']&&(this['_mergeNestedSuggestions']||!_0x45927b['containsRangeInObject']&&!_0x45927b['isInsideObject'])&&Qt(_0x237d1b,_0x3f27ae)&&_0x1d9e52['add'](_0x237d1b);for(const _0x25bae5 of _0x1d9e52){const _0x3d7adb=_0x25bae5['getRanges']();if(!_0x3f27ae||!_0x3f27ae['skipNestingCheck']){if(_0x280d83['every'](_0x41e2cb=>_0x3d7adb['some'](_0x547cd9=>_0x547cd9['containsRange'](_0x41e2cb,!0x0))))return _0x25bae5;}(!_0x25bae5['attributes']||!_0x25bae5['attributes']['skipNestingCheck'])&&(_0x3d7adb['every'](_0x15d992=>_0x280d83['some'](_0xc46d1f=>_0xc46d1f['containsRange'](_0x15d992,!0x0)))&&_0x25bae5['discard']());}const _0x54e24c=_0x19169b(),_0x4aeaa7=_0x556d6f['id'],_0x76ed25='deletion:'+_0x261b53,_0x412e44=this['_setSuggestionData']({'id':_0x54e24c,'type':_0x76ed25,'createdAt':new Date(),'authorId':_0x4aeaa7,'attributes':_0x3f27ae});for(const _0x19fa59 of _0x280d83)_0x19fa59['detach'](),_0x19fa59['isCollapsed']||'$graveyard'==_0x19fa59['root']['rootName']||this['_addSuggestionMarker'](_0x76ed25,_0x54e24c,_0x4aeaa7,_0x19fa59,u['getMultiRangeId']());return _0x412e44;}['markAttributeChange'](_0x8d20f5,_0x47d3d4,_0x533e53,_0x16a2c3,_0x58124c){if(_0x8d20f5['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x8c166e=this['editor']['plugins']['get']('Users')['me']['id'],_0x5ef370=Array['from'](this['_suggestions']['values']())['filter'](_0x1a175d=>'attribute'==_0x1a175d['type']&&_0x1a175d['data']['key']==_0x47d3d4&&_0x1a175d['isIntersectingWithRange'](_0x8d20f5));if('default'===this['_trackFormatChanges']){const _0x225f70=this['_findSuggestions'](_0x8d20f5,'insertion')['filter'](({meta:_0x18c754})=>_0x18c754['isOwn']&&!_0x18c754['isInsideObject']&&!_0x18c754['isNextTo'])['map'](({suggestion:_0x5154cb})=>_0x5154cb);_0x5ef370['unshift'](..._0x225f70);}const _0x5eb884=new Map([[_0x8d20f5,_0x533e53]]);for(const _0x29b62c of _0x5ef370){const _0x4978eb='attribute'==_0x29b62c['type']?_0x29b62c['data']['oldValue']:void 0x0,_0x17ddbb=_0x29b62c['getFirstRange'](),_0x59f5c5=Array['from'](_0x5eb884['keys']())['find'](_0x2c6e77=>_0x2c6e77['isIntersecting'](_0x17ddbb));if(!_0x59f5c5)continue;const _0x1e6914=_0x59f5c5['getDifference'](_0x17ddbb);this['_isBlockAttribute'](_0x47d3d4)&&'insertion'==_0x29b62c['type']&&0x0!=_0x1e6914['length']||(_0x5eb884['delete'](_0x59f5c5),_0x1e6914['forEach'](_0x24bce0=>{_0x5eb884['set'](_0x24bce0,_0x533e53);}),'insertion'!=_0x29b62c['type']&&_0x4978eb!=_0x16a2c3&&_0x5eb884['set'](_0x59f5c5['getIntersection'](_0x17ddbb),_0x4978eb));}const _0x487f72=[];for(const [_0x138c07,_0x5b892b]of _0x5eb884){const _0x537768=_0x19169b(),_0x136543={'key':_0x47d3d4,'oldValue':_0x5b892b,'newValue':_0x16a2c3};_0x47d3d4['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':_0x47d3d4});const _0x575bb3=('attribute:'+(_0x47d3d4+'|'+Jt({'newValue':_0x16a2c3})))['substring'](0x0,0x3c),_0x34caca=this['_setSuggestionData']({'id':_0x537768,'type':_0x575bb3,'data':_0x136543,'createdAt':new Date(),'authorId':_0x8c166e,'attributes':_0x58124c});_0x487f72['push'](_0x34caca),this['_addSuggestionMarker'](_0x575bb3,_0x537768,_0x8c166e,_0x138c07);}return _0x487f72;}['enableDefaultAttributesIntegration'](_0x2a9545){this['enableCommand'](_0x2a9545,(_0xd42769,..._0x185411)=>{this['_recordAttributeChanges'](()=>{_0xd42769(..._0x185411);});});}['registerBlockAttribute'](_0x5330e2){this['_blockAttributeKeys']['add'](_0x5330e2);}['registerInlineAttribute'](_0x4db435){this['_inlineAttributeKeys']['add'](_0x4db435);}['_getAttributeKey'](_0x17e061){return'attribute'==_0x17e061['type']?_0x17e061['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x30b487,_0x2c993f){const _0x287d13=_0x30b487['getFirstMarker']();this['_model']['change'](_0x2b86af=>{_0x2b86af['updateMarker'](_0x287d13,{'range':_0x2c993f});});}['_addThreadToSuggestion'](_0x2e7036){const _0xb56840=_0x2e7036['id'],_0x260cf9=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0xb56840)||this['_commentsRepository']['addCommentThread']({'channelId':_0x260cf9,'threadId':_0xb56840,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x530db1=this['_commentsRepository']['getCommentThread'](_0xb56840);_0x530db1['unbind']('isRemovable'),_0x530db1['isRemovable']=!0x1,_0x2e7036['commentThread']=_0x530db1;}['_checkSuggestionCorrectness'](_0x191e00,_0x220281,_0x23e7cd,_0x58c461){if(_0x191e00['type']!=_0x220281||_0x191e00['subType']!=_0x23e7cd||_0x191e00['creator']['id']!=_0x58c461)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x52121e('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x2530fb,_0x13454c){const _0x11ce3a=_0x2530fb['getFirstRange']();if(_0x13454c['isEqual'](_0x11ce3a))_0x2530fb['removeMarkers']();else{if(_0x11ce3a['containsRange'](_0x13454c)){const _0xfe1887=this['_model']['createPositionAt'](_0x13454c['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2530fb,this['_model']['createRange'](_0x11ce3a['start'],_0xfe1887));const _0x53c33f=_0x19169b(),_0x5f5a4c=_0x2530fb['creator']['id'],_0x1f213c=_0x2530fb['type']+':'+_0x2530fb['subType'];this['_setSuggestionData']({'id':_0x53c33f,'type':_0x1f213c,'createdAt':new Date(),'authorId':_0x5f5a4c,'data':_0x2530fb['data'],'attributes':_0x2530fb['attributes']});const _0x56441d=this['_model']['createPositionAt'](_0x13454c['end']['parent'],'after'),_0x355308=this['_model']['createRange'](_0x56441d,_0x11ce3a['end']);this['_addSuggestionMarker'](_0x1f213c,_0x53c33f,_0x5f5a4c,_0x355308);}else{if(_0x11ce3a['containsPosition'](_0x13454c['start'])){const _0xabfafd=this['_model']['createPositionAt'](_0x13454c['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2530fb,this['_model']['createRange'](_0x11ce3a['start'],_0xabfafd));}else{const _0x16374c=this['_model']['createPositionAt'](_0x13454c['end']['parent'],'after');this['_setSuggestionRange'](_0x2530fb,this['_model']['createRange'](_0x16374c,_0x11ce3a['end']));}}}}['_rangeIsInLocalUserInsertion'](_0xcc2fe5){for(const {suggestion:_0x4361b7,meta:_0x36c711}of this['_findSuggestions'](_0xcc2fe5,'insertion')){if(!_0x36c711['isOwn'])continue;const _0x36dd41=_0x4361b7['getRanges']();for(const _0x59f293 of _0x36dd41)if(!_0xcc2fe5['getDifference'](_0x59f293)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x4ac6ef){const _0x17bc76=this['editor']['plugins']['get']('Users')['getUser'](_0x4ac6ef);if(!_0x17bc76)throw new _0x52121e('track-changes-user-not-found',this);return _0x17bc76;}['_getExternalAuthor'](_0x5320ab){const _0x4ac860=this['editor']['plugins']['get']('Users'),_0x480836=_0x277bbc('external:'+_0x5320ab),_0x403ed0=_0x4ac860['getUser'](_0x480836);return _0x403ed0||_0x4ac860['addUser']({'id':_0x480836,'name':_0x5320ab});}['_createSuggestion'](_0x46bc9a,_0x52c348,_0x534929,_0x264084,_0x45f45d){const _0x34e9d9=this['_getAuthorFromId'](_0x264084),_0x3cb68c=this['_suggestionFactory']['buildSuggestion'](_0x46bc9a,_0x52c348,_0x534929,_0x34e9d9,_0x45f45d,_0x4a3c6e=>{this['_updateSuggestionData'](_0x534929,{'attributes':_0x4a3c6e});const _0x54da3a=this['getSuggestion'](_0x534929);this['_joinWithAdjacentSuggestions'](new Set([_0x54da3a])),this['_refreshSuggestionsChain'](new Set([_0x54da3a]));});return this['listenTo'](_0x3cb68c,'accept',()=>{this['_updateSuggestionData'](_0x534929,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x3cb68c,'discard',()=>{this['_updateSuggestionData'](_0x534929,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x534929,_0x3cb68c),this['_suggestionState']['set'](_0x3cb68c,'notReady'),_0x3cb68c;}['_splitMarkerName'](_0x366aab){const _0x93f4b8=_0x366aab['split'](':');return{'group':_0x93f4b8[0x0],'type':_0x93f4b8[0x1],'subType':_0x93f4b8['length']>=0x5?_0x93f4b8[0x2]:null,'id':_0x93f4b8['length']<0x5?_0x93f4b8[0x2]:_0x93f4b8[0x3],'authorId':_0x93f4b8['length']<0x5?_0x93f4b8[0x3]:_0x93f4b8[0x4],'markerCount':0x6==_0x93f4b8['length']?_0x93f4b8[0x5]:null};}['_breakSuggestionMarker'](_0x146e4a,_0x4f1ec4,_0x57b837){const _0x40c010=_0x146e4a['getFirstRange'](),_0xc74af9=_0x40c010['start'],_0x3755ae=_0x40c010['end'];this['_setSuggestionRange'](_0x146e4a,this['_model']['createRange'](_0xc74af9,_0x4f1ec4));const _0x36599c=_0x19169b(),_0x264ab0=_0x146e4a['creator']['id'],_0x139220=_0x146e4a['type']+(_0x146e4a['subType']?':'+_0x146e4a['subType']:'');this['_setSuggestionData']({'id':_0x36599c,'type':_0x139220,'createdAt':new Date(),'authorId':_0x264ab0,'originalSuggestionId':_0x146e4a['id'],'attributes':_0x146e4a['attributes'],'data':_0x146e4a['data']});const _0x4bae2e=this['_getAttributeKey'](_0x146e4a);('formatBlock'==_0x146e4a['type']||_0x4bae2e&&this['_isBlockAttribute'](_0x4bae2e))&&(_0x57b837=this['_model']['createPositionBefore'](_0x57b837['parent'])),this['_addSuggestionMarker'](_0x139220,_0x36599c,_0x264ab0,this['_model']['createRange'](_0x57b837,_0x3755ae));}['_findSuggestions'](_0x3a5054,_0x511e97=null){const _0x2715c3=[],_0x48df20=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x3a5054)||(_0x3a5054=[_0x3a5054]);for(const _0x33d896 of this['getSuggestions']()){if(!_0x33d896['isInContent'])continue;if(_0x511e97&&_0x33d896['type']!=_0x511e97)continue;let _0x1f3194=!0x1;for(const _0x51a83f of _0x33d896['getRanges']()){for(const _0x1373f7 of _0x3a5054){const _0xfbd852=_0x1373f7['start']['isEqual'](_0x51a83f['end'])||_0x1373f7['end']['isEqual'](_0x51a83f['start']);if(_0xfbd852||_0x1373f7['getIntersection'](_0x51a83f)){const _0x429a16=_0x1373f7['containsRange'](_0x51a83f)&&Gt(this['_model']['schema'],_0x51a83f['start'],_0x1373f7),_0x4ba0d6=_0x51a83f['containsRange'](_0x1373f7)&&Gt(this['_model']['schema'],_0x1373f7['start'],_0x51a83f);_0x2715c3['push']({'suggestion':_0x33d896,'meta':{'isOwn':_0x48df20==_0x33d896['author'],'isNextTo':_0xfbd852,'isInsideObject':_0x429a16,'containsRangeInObject':_0x4ba0d6}}),_0x1f3194=!0x0;break;}}if(_0x1f3194)break;}}return _0x2715c3;}['_addSuggestionMarker'](_0xdbad53,_0x59db8a,_0x28bdae,_0xa39813,_0x22d580){this['_model']['change'](_0x57388e=>{let _0x4bdf0e='suggestion:'+_0xdbad53+':'+_0x59db8a+':'+_0x28bdae;_0x22d580&&(_0x4bdf0e=_0x4bdf0e+':'+_0x22d580),_0x57388e['addMarker'](_0x4bdf0e,{'range':_0xa39813,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x2c9508){const _0x8f82f=_0x2c9508['previous'],_0x443d5b=_0x2c9508['next'];_0x2c9508['previous']=null,_0x2c9508['next']=null,null!=_0x8f82f&&_0x8f82f['next']==_0x2c9508&&(_0x8f82f['next']=_0x443d5b),null!=_0x443d5b&&_0x443d5b['previous']==_0x2c9508&&(_0x443d5b['previous']=_0x8f82f),'ready'==this['_suggestionState']['get'](_0x2c9508)&&(this['_suggestionState']['set'](_0x2c9508,'removed'),this['fire']('suggestionUnloaded',_0x2c9508,_0x8f82f,_0x443d5b));}['_setSuggestionData'](_0x4ef483){const _0xbc5884=_0x4ef483['id'],_0x50ea79=this['addSuggestionData'](_0x4ef483);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x10fba2=this['editor']['plugins']['get']('PendingActions'),_0x13dde1=_0x50ea79['hasComments'],_0x3d6de7=_0x50ea79['subType']?_0x50ea79['type']+':'+_0x50ea79['subType']:_0x50ea79['type'],_0x2b6c4c=this['editor']['locale'],_0x236cc0=_0x10fba2['add'](o(_0x2b6c4c,'PENDING_ACTION_SUGGESTION')),_0x46c58b={'id':_0xbc5884,'type':_0x3d6de7,'hasComments':_0x13dde1,'data':_0x4ef483['data']||null,'originalSuggestionId':_0x4ef483['originalSuggestionId']||null,'attributes':_0x50ea79['attributes']};this['_adapter']['addSuggestion'](_0x46c58b)['then'](_0x32ec49=>{_0x50ea79['_saved']=!0x0,_0x10fba2['remove'](_0x236cc0),_0x32ec49&&_0x32ec49['createdAt']&&(this['_suggestions']['get'](_0xbc5884)['createdAt']=_0x32ec49['createdAt']);})['catch'](_0x3d0ec5=>{throw _0x4cef65('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x50ea79['discard']();}),_0x50ea79['stopListening'](),this['_suggestions']['delete'](_0x50ea79['id']),this['_suggestionState']['delete'](_0x50ea79),_0x3d0ec5;});}return _0x50ea79;}['_isBlockAttribute'](_0x32d049){return this['_blockAttributeKeys']['has'](_0x32d049);}['_updateSuggestionData'](_0x4f56d4,_0x14335d){const _0x17a6d5=this['editor']['plugins']['get']('PendingActions'),_0x5c6678=this['getSuggestion'](_0x4f56d4);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x5c6678['_saved']){const _0x4dfb42=_0x17a6d5['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x4f56d4,_0x14335d)['then'](()=>{_0x17a6d5['remove'](_0x4dfb42);});}else _0x5c6678['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x4f56d4,_0x14335d);});}}['_getSuggestionData'](_0x2acc25){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x52121e('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x2acc25);}['_handleNewSuggestionMarker'](_0x5c881a){const {id:_0x4f2c04,type:_0x44c58d,subType:_0x5f0b42,authorId:_0x297baf}=this['_splitMarkerName'](_0x5c881a),_0x858a49=this['_suggestions']['get'](_0x4f2c04)||this['_createSuggestion'](_0x44c58d,_0x5f0b42,_0x4f2c04,_0x297baf,{});switch(this['_checkSuggestionCorrectness'](_0x858a49,_0x44c58d,_0x5f0b42,_0x297baf),this['_suggestionState']['get'](_0x858a49)){case'notReady':this['_getSuggestionData'](_0x4f2c04)['then'](_0x4c4962=>{let _0xe0dc82=Promise['resolve']();_0x4c4962['hasComments']&&(_0xe0dc82=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x4f2c04})),_0xe0dc82['then'](()=>{this['addSuggestionData'](_0x4c4962)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x858a49,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x4f2c04,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x858a49,'ready'),this['fire']('suggestionLoaded',_0x858a49);break;case'ready':this['fire']('suggestionChanged',_0x858a49);}return _0x858a49['addMarkerName'](_0x5c881a),_0x858a49;}['_refreshSuggestionsChain'](_0x3f1277){const _0x4f0919=Array['from'](_0x3f1277),_0x1a1600=_0x4f0919['filter'](_0x162c24=>'attribute'==_0x162c24['type']);this['_refreshAttributeSuggestionsChain'](_0x1a1600);const _0x29dba1=_0x4f0919['filter'](_0x2e7790=>!_0x2e7790['isMultiRange']&&'attribute'!=_0x2e7790['type']),_0x2e5ce9=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4ffc44=>!_0x4ffc44['isMultiRange']&&'attribute'!=_0x4ffc44['type']),_0x4ed3e3=_0x2e5ce9['filter'](_0x7188b=>!_0x3f1277['has'](_0x7188b)),_0x4c9b16=new Map(_0x2e5ce9['map'](_0x2807e3=>[_0x2807e3,this['_suggestionFactory']['getSuggestionCallback'](_0x2807e3['type'],_0x2807e3['subType'],'chain')])),_0x34479a=new Map(_0x2e5ce9['map'](_0x4bd5be=>[_0x4bd5be,_0x4bd5be['getFirstRange']()])),_0x3874a7=new Set(),_0x267f12=new Set();for(let _0x4cbbb5=0x0;_0x4cbbb5<_0x29dba1['length'];_0x4cbbb5++)_0x2ab988(_0x29dba1[_0x4cbbb5],_0x29dba1,_0x4cbbb5+0x1);for(let _0x55ae74=0x0;_0x55ae74<_0x29dba1['length'];_0x55ae74++)_0x2ab988(_0x29dba1[_0x55ae74],_0x4ed3e3,0x0);const _0x25d2fe=new Set();for(let _0x58bb86=0x0;_0x58bb86<_0x29dba1['length'];_0x58bb86++){const _0x4369b0=_0x29dba1[_0x58bb86];!_0x267f12['has'](_0x4369b0)&&_0x4369b0['previous']&&(_0x25d2fe['add'](_0x4369b0['previous']),_0x4369b0['previous']['next']===_0x4369b0&&(_0x4369b0['previous']['next']=null),_0x4369b0['previous']=null),!_0x3874a7['has'](_0x4369b0)&&_0x4369b0['next']&&(_0x25d2fe['add'](_0x4369b0['next']),_0x4369b0['next']['previous']===_0x4369b0&&(_0x4369b0['next']['previous']=null),_0x4369b0['next']=null);}function _0x2ab988(_0x155820,_0x33a491,_0x577519){for(let _0x4143a5=_0x577519;_0x4143a5<_0x33a491['length'];_0x4143a5++){const _0x2db196=_0x1fb6e7(_0x155820,_0x33a491[_0x4143a5]);_0x2db196&&(_0x2db196[0x0]['next']=_0x2db196[0x1],_0x2db196[0x1]['previous']=_0x2db196[0x0],_0x3874a7['add'](_0x2db196[0x0]),_0x267f12['add'](_0x2db196[0x1]));}}function _0x1fb6e7(_0x1e979b,_0x30e01c){if(_0x1e979b['author']['id']!==_0x30e01c['author']['id'])return null;const _0x45af45=_0x4c9b16['get'](_0x1e979b)(_0x1e979b,_0x30e01c,_0x34479a['get'](_0x1e979b),_0x34479a['get'](_0x30e01c));if(!_0x45af45)return null;return _0x4c9b16['get'](_0x30e01c)(_0x1e979b,_0x30e01c,_0x34479a['get'](_0x1e979b),_0x34479a['get'](_0x30e01c))?_0x45af45[0x1]['commentThread']&&_0x45af45[0x1]['commentThread']['length']?null:_0x45af45:null;}_0x25d2fe['size']&&this['_refreshSuggestionsChain'](_0x25d2fe);}['_refreshAttributeSuggestionsChain'](_0x16c52c){if(0x0==_0x16c52c['length'])return;const _0x2662b0=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2db586=>'attribute'==_0x2db586['type']&&_0x2db586['_isDataLoaded']),_0x3c8a4a=[],_0x52b9e3=new Map();for(const _0x223ccf of _0x2662b0){const _0x315de7=_0x277bbc(_0x223ccf['attributes']);_0x52b9e3['has'](_0x315de7)||(_0x52b9e3['set'](_0x315de7,_0x3c8a4a['length']),_0x3c8a4a['push']([]));const _0x4eeec5=_0x52b9e3['get'](_0x315de7);_0x3c8a4a[_0x4eeec5]['push'](_0x223ccf);}!(function(){_0x3c8a4a['sort']((_0x397192,_0x2efad6)=>{const _0x3b415f=_0x397192[0x0]['createdAt'],_0x3c7cb3=_0x2efad6[0x0]['createdAt'];return _0x3b415f==_0x3c7cb3?_0x397192[0x0]['attributes']['groupId']<_0x2efad6[0x0]['attributes']['groupId']?-0x1:0x1:_0x3b415f<_0x3c7cb3?-0x1:0x1;});for(const _0x1d8907 of _0x3c8a4a)_0x1d8907['sort']((_0x46cd98,_0x55d813)=>_0x46cd98['id']<_0x55d813['id']?-0x1:0x1);}());for(let _0x3c6afb=0x0;_0x3c6afb<_0x3c8a4a['length'];_0x3c6afb++){if(0x0==_0x3c8a4a[_0x3c6afb]['length'])continue;const _0x463d53=[];for(let _0x2e5f01=_0x3c6afb+0x1;_0x2e5f01<_0x3c8a4a['length'];_0x2e5f01++)0x0!=_0x3c8a4a[_0x2e5f01]['length']&&_0x2410d5(_0x3c8a4a[_0x3c6afb],_0x3c8a4a[_0x2e5f01])&&_0x463d53['push'](_0x2e5f01);for(const _0x437bb2 of _0x463d53)_0x3c8a4a[_0x3c6afb]=_0x3c8a4a[_0x3c6afb]['concat'](_0x3c8a4a[_0x437bb2]),_0x3c8a4a[_0x437bb2]=[];}for(const _0x5954d4 of _0x3c8a4a)for(let _0x1cab13=0x0;_0x1cab13<_0x5954d4['length'];_0x1cab13++){const _0x5c5b9e=_0x5954d4[_0x1cab13+0x1]||null;_0x5954d4[_0x1cab13]['next']!==_0x5c5b9e&&(_0x5954d4[_0x1cab13]['next']=_0x5c5b9e);}for(const _0x1fbcbe of _0x3c8a4a)for(let _0x3a21af=0x0;_0x3a21af<_0x1fbcbe['length'];_0x3a21af++){const _0x58fc4e=_0x1fbcbe[_0x3a21af-0x1]||null;_0x1fbcbe[_0x3a21af]['previous']!==_0x58fc4e&&(_0x1fbcbe[_0x3a21af]['previous']=_0x58fc4e);}function _0x2410d5(_0x26159e,_0x1726ba){if(_0x26159e[0x0]['attributes']['groupId']!==_0x1726ba[0x0]['attributes']['groupId']&&_0x26159e[0x0]['author']!==_0x1726ba[0x0]['author'])return!0x1;if(!function(_0x2160b1,_0x517137){if(!_0x2160b1['hasComments']&&!_0x517137['hasComments'])return!0x0;if(_0x2160b1['hasComments']&&_0x517137['hasComments'])return!0x1;if(_0x2160b1['hasComments']&&_0x517137['createdAt']<_0x2160b1['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x517137['hasComments']&&_0x2160b1['createdAt']<_0x517137['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x26159e[0x0],_0x1726ba[0x0]))return!0x1;const _0x1c439b=Vt(_0x26159e[0x0]['attributes'],'groupId'),_0x3f0e8b=Vt(_0x1726ba[0x0]['attributes'],'groupId');if(!_0x221df5(_0x1c439b,_0x3f0e8b))return!0x1;return!!_0x26159e['every'](_0x3a30be=>_0x1726ba['some'](_0x401880=>_0x3a30be['getFirstRange']()['isEqual'](_0x401880['getFirstRange']())))&&_0x1726ba['every'](_0x377afa=>_0x26159e['some'](_0x5173fe=>_0x377afa['getFirstRange']()['isEqual'](_0x5173fe['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x4426eb){const _0xc88d9c=Array['from'](_0x4426eb),_0x104f5e=this['getSuggestions']({'skipNotAttached':!0x0}),_0x3637a3=_0x104f5e['filter'](_0x2e5010=>!_0x4426eb['has'](_0x2e5010)),_0x60eb19=new Map(_0xc88d9c['map'](_0x3635f0=>[_0x3635f0,this['_suggestionFactory']['getSuggestionCallback'](_0x3635f0['type'],_0x3635f0['subType'],'join')])),_0x27c78f=new Map(_0x104f5e['map'](_0x3a528c=>[_0x3a528c,_0x3a528c['getRanges']()]));for(let _0x602b5e=0x0;_0x602b5e<_0xc88d9c['length'];_0x602b5e++){if(_0x37ba17(this,_0xc88d9c[_0x602b5e],_0xc88d9c,_0x602b5e+0x1))return!0x0;}for(let _0x5da9a0=0x0;_0x5da9a0<_0xc88d9c['length'];_0x5da9a0++){if(_0x37ba17(this,_0xc88d9c[_0x5da9a0],_0x3637a3,0x0))return!0x0;}return!0x1;function _0x37ba17(_0x24777c,_0x84d545,_0x1828ca,_0x37e8cc){for(let _0x24b738=_0x37e8cc;_0x24b738<_0x1828ca['length'];_0x24b738++){const _0x151815=_0x1828ca[_0x24b738];if(_0x151815['type']!==_0x84d545['type']||_0x151815['author']['id']!==_0x84d545['author']['id']||_0x151815['subType']!==_0x84d545['subType'])continue;if(!Wt(_0x84d545,_0x151815))continue;if('attribute'==_0x84d545['type']&&_0x84d545['data']['oldValue']!=_0x151815['data']['oldValue'])continue;if('attribute'==_0x84d545['type']&&_0x24777c['_isBlockAttribute'](_0x84d545['data']['key']))continue;if('formatBlock'==_0x84d545['type']){const _0x5eed90=_0x24777c['editor']['model'],_0x286236=_0x84d545['getContainedElement']();if(_0x286236&&(_0x5eed90['schema']['isObject'](_0x286236)||_0x5eed90['schema']['isLimit'](_0x286236)))continue;}const _0x5063a8=_0x60eb19['get'](_0x84d545),_0x33883f=_0x27c78f['get'](_0x84d545),_0x1e2388=_0x27c78f['get'](_0x151815),_0x456fb2=_0x84d545['commentThread']&&_0x84d545['commentThread']['length'],_0x266353=_0x151815['commentThread']&&_0x151815['commentThread']['length'];if(!_0x456fb2&&_0x5063a8(_0x1e2388,_0x33883f))return _0x24777c['_joinSuggestions'](_0x151815,_0x84d545),_0x27c78f['delete'](_0x84d545),!0x0;if(!_0x266353&&_0x5063a8(_0x33883f,_0x1e2388))return _0x24777c['_joinSuggestions'](_0x84d545,_0x151815),_0x27c78f['delete'](_0x151815),!0x0;}return!0x1;}}['_joinSuggestions'](_0x4c52c8,_0x509166){if(_0x4c52c8['isMultiRange']){for(const _0x30a38d of _0x509166['getRanges']())_0x4c52c8['addRange'](_0x30a38d);}else{const _0x402338=_0x509166['getFirstRange']()['end'];this['_setSuggestionRange'](_0x4c52c8,this['_model']['createRange'](_0x4c52c8['getFirstRange']()['start'],_0x402338));}_0x509166['removeMarkers']();}['_getMarkerAnnouncementText'](_0x3412e2,_0x23e6d6,_0x2b0c96){const _0x37649a=_0x3412e2['startsWith']('format')||_0x3412e2['startsWith']('attribute')?'FORMATTING':_0x3412e2['toUpperCase']();return o(this['editor']['locale'],_0x23e6d6+'_'+_0x37649a+'_SUGGESTION_ANNOUNCEMENT',_0x2b0c96);}['_initAriaMarkerChangeAnnouncements'](){const _0x3f2e8c=this['editor'];if(!_0x3f2e8c['ui'])return;const {ariaLiveAnnouncer:_0x2d4099}=_0x3f2e8c['ui'];_0x131f3d(this['_model'],({left:_0x25861f,entered:_0x37da28})=>{for(const _0x2e204e of _0x25861f){const {group:_0x304ff0,type:_0xae77cd}=this['_splitMarkerName'](_0x2e204e['name']);if('suggestion'===_0x304ff0){_0x2d4099['announce'](this['_getMarkerAnnouncementText'](_0xae77cd,'LEAVE'));break;}}for(const _0xc025c3 of _0x37da28){const {group:_0x49e884,type:_0x43eb90}=this['_splitMarkerName'](_0xc025c3['name']);if('suggestion'===_0x49e884){_0x2d4099['announce'](this['_getMarkerAnnouncementText'](_0x43eb90,'ENTER',_0x359353(_0x11cc48)));break;}}});}['_processAttributeChanges'](_0x211778){if(this['_recordAttributeSuggestions'])return!0x1;const _0x349cf3=this['editor'],_0x888ef8=_0x349cf3['model']['document']['differ']['getChanges']();if(0x0==_0x888ef8['length'])return!0x1;const _0x52e08d=[],_0x2bf6c1=_0x888ef8['filter'](_0x2d202d=>'attribute'==_0x2d202d['type']),_0x27af63=_0x888ef8['filter'](_0x4d2835=>'insert'==_0x4d2835['type']&&'$text'!=_0x4d2835['name']),_0x23a2be=_0x888ef8['filter'](_0x5b9c93=>'remove'==_0x5b9c93['type']&&'$text'!=_0x5b9c93['name']);for(const _0x489414 of _0x2bf6c1)_0x52e08d['push']({'key':_0x489414['attributeKey'],'newValue':_0x489414['attributeNewValue'],'oldValue':_0x489414['attributeOldValue'],'range':qt(_0x489414['range'],_0x349cf3['model'])});for(const _0x202041 of _0x27af63){const _0x5381d7=_0x23a2be['find'](_0x10eb44=>_0x10eb44['position']['isEqual'](_0x202041['position']));_0x5381d7&&_0x52e08d['push']({'key':m,'newValue':_0x202041['name'],'oldValue':_0x5381d7['name'],'range':_0x349cf3['model']['createRangeOn'](_0x202041['position']['nodeAfter'])});}return 0x0!=_0x52e08d['length']&&this['_reduceExistingSuggestions'](_0x211778,_0x52e08d);}['_processAttributeSuggestions'](_0x404edd){let _0x47c344=!0x1;const _0x156ef0=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x228dd8=>_0x228dd8['data']['newRange']&&_0x228dd8['name']['startsWith']('suggestion:attribute:'));for(const _0x576762 of _0x156ef0){const {subType:_0x35f5d6,id:_0xc9cf20}=this['_splitMarkerName'](_0x576762['name']),_0x599557=_0x35f5d6['split']('|')[0x0];for(const _0xf8b51d of this['getSuggestions']({'skipNotAttached':!0x0}))_0xf8b51d['id']!=_0xc9cf20&&'attribute'==_0xf8b51d['type']&&_0xf8b51d['data']&&_0xf8b51d['data']['key']==_0x599557&&_0xf8b51d['getFirstRange']()['isIntersecting'](_0x576762['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0xf8b51d,_0x576762['data']['newRange'],_0x404edd),_0x47c344=!0x0);}return _0x47c344;}['_recordAttributeChanges'](_0x5642ac){this['_recordAttributeSuggestions']=!0x0,_0x5642ac();}['_isRegisteredAttribute'](_0x57d924){const _0xfa9cbc=this['_isBlockAttribute'](_0x57d924),_0x2ac5e1=this['_inlineAttributeKeys']['has'](_0x57d924);return _0xfa9cbc||_0x2ac5e1;}['_reduceExistingSuggestions'](_0x1a0cec,_0x3d71d8){if(0x0==_0x3d71d8['length'])return!0x1;let _0x570642=!0x1;for(const _0x728453 of _0x3d71d8){const _0x3e1301=this['_findSuggestions'](_0x728453['range'],'attribute')['filter'](_0x4f6b7a=>!_0x4f6b7a['meta']['isNextTo'])['map'](_0x42e141=>_0x42e141['suggestion']),_0x13b8ac=_0x277bbc({'newValue':_0x728453['newValue']});_0x3e1301['filter'](_0x1ddf4f=>{const [_0x40dfd2,_0x3ab546]=_0x1ddf4f['subType']['split']('|');return _0x40dfd2==_0x728453['key']&&_0x3ab546!=_0x13b8ac;})['forEach'](_0x33fe88=>{this['_reduceSuggestionAttributeRange'](_0x33fe88,_0x728453['range'],_0x1a0cec),_0x570642=!0x0;});}return _0x570642;}['_reduceSuggestionAttributeRange'](_0x43630d,_0x11c645,_0x3edba9){const _0x26df10=_0x43630d['getFirstRange']()['getDifference'](_0x11c645);0x0!==_0x26df10['length']?0x1!==_0x26df10['length']?this['_breakSuggestionMarker'](_0x43630d,_0x11c645['start'],_0x11c645['end']):this['_setSuggestionRange'](_0x43630d,_0x26df10[0x0]):_0x3edba9['removeMarker'](_0x43630d['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x18ea6e){this['_editor']=_0x18ea6e,this['_model']=_0x18ea6e['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x4040c7,_0x4ed41a,_0x19a515,_0x4c35e0,_0x345956,_0x1a88d7){return new u(this['_model'],{'type':_0x4040c7,'subType':_0x4ed41a,'id':_0x19a515,'author':_0x4c35e0,'creator':_0x4c35e0,'attributes':_0x345956,'onAttributesChange':_0x1a88d7,'onAccept':(..._0x4b2d90)=>this['getSuggestionCallback'](_0x4040c7,_0x4ed41a,'accept')(..._0x4b2d90),'onDiscard':(..._0x4587a5)=>this['getSuggestionCallback'](_0x4040c7,_0x4ed41a,'discard')(..._0x4587a5)});}['registerCustomCallback'](_0x2fa7c7,_0x4dcf70,_0x1c58e9,_0x157543){const _0x57bc51=_0x2fa7c7+':'+_0x4dcf70+':'+_0x1c58e9;this['_customCallbacks']['set'](_0x57bc51,_0x157543);}['getSuggestionCallback'](_0x4690ba,_0x1def5f,_0xf1a636){const _0x118c58=_0x4690ba+':'+_0x1def5f+':'+_0xf1a636;return this['_customCallbacks']['get'](_0x118c58)||this['_defaultCallbacks']['get'](_0x4690ba+':'+_0xf1a636);}['_registerDefaultCallbacks'](){const _0x1e8831=()=>!0x1,_0x389f30=_0x58723e=>{_0x58723e['sort']((_0x4675bf,_0xdcc0a2)=>_0x4675bf['start']['isBefore'](_0xdcc0a2['start'])?0x1:-0x1),this['_model']['change'](_0x32a86f=>{for(const _0x26d8f3 of _0x58723e){let _0x177eeb;_0x177eeb=_0x26d8f3['end']['isAtEnd']&&_0x26d8f3['end']['parent']==_0x26d8f3['start']['nodeAfter']?_0x32a86f['createSelection'](_0x26d8f3['start']['nodeAfter'],'on'):_0x32a86f['createSelection'](_0x26d8f3),this['_model']['deleteContent'](_0x177eeb,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x479578=(_0x42757a,_0x51efe8)=>{_0x51efe8&&this['_model']['change'](_0x5c1f20=>{const {commandName:_0x366da4,commandParams:_0x5f3658=[]}=_0x51efe8,_0x1ebbfa=_0x42757a['map'](_0x424f3c=>(Ft(_0x424f3c)&&(_0x424f3c=this['_model']['createRange'](_0x424f3c['end'])),_0x424f3c))['filter'](_0x3479a0=>'$graveyard'!==_0x3479a0['root']['rootName']);if(_0x1ebbfa['length']<0x1)return;const _0x1ff7d7=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x5c9b99=>_0x7b347b['fromRange'](_0x5c9b99));_0x5c1f20['setSelection'](_0x1ebbfa);for(const _0x358023 of this['_editor']['commands']['commands']())_0x358023['refresh']();_0x5f3658['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x366da4,..._0x5f3658);const _0x17caf7=_0x1ff7d7['filter'](_0x2134b4=>'$graveyard'!=_0x2134b4['root']['rootName']);_0x17caf7['length']>0x0&&_0x5c1f20['setSelection'](_0x17caf7);for(const _0x531070 of _0x1ff7d7)_0x531070['detach']();});},_0x2d0d7f=(_0x390ff5,_0x4de069)=>0x1==_0x390ff5['length']&&0x1==_0x4de069['length']&&_0x390ff5[0x0]['end']['isEqual'](_0x4de069[0x0]['start']),_0x57c606=(_0x44fe1b,_0x4cd254,_0x58de4d,_0x51ef1d)=>Kt(_0x44fe1b,_0x4cd254,_0x58de4d,_0x51ef1d)?[_0x44fe1b,_0x4cd254]:Kt(_0x4cd254,_0x44fe1b,_0x51ef1d,_0x58de4d)?[_0x4cd254,_0x44fe1b]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x1e8831),this['_defaultCallbacks']['set']('insertion:discard',_0x389f30),this['_defaultCallbacks']['set']('insertion:join',_0x2d0d7f),this['_defaultCallbacks']['set']('insertion:chain',_0x57c606),this['_defaultCallbacks']['set']('deletion:accept',_0x389f30),this['_defaultCallbacks']['set']('deletion:discard',_0x1e8831),this['_defaultCallbacks']['set']('deletion:join',_0x2d0d7f),this['_defaultCallbacks']['set']('deletion:chain',_0x57c606),this['_defaultCallbacks']['set']('formatInline:accept',_0x479578),this['_defaultCallbacks']['set']('formatInline:discard',_0x1e8831),this['_defaultCallbacks']['set']('formatInline:join',_0x2d0d7f),this['_defaultCallbacks']['set']('formatInline:chain',_0x1e8831),this['_defaultCallbacks']['set']('formatBlock:accept',_0x479578),this['_defaultCallbacks']['set']('formatBlock:discard',_0x1e8831),this['_defaultCallbacks']['set']('formatBlock:join',_0x2d0d7f),this['_defaultCallbacks']['set']('formatBlock:chain',_0x1e8831),this['_defaultCallbacks']['set']('attribute:accept',_0x1e8831),this['_defaultCallbacks']['set']('attribute:discard',(_0x2cd1b6,_0x2686f0)=>{if(!_0x2686f0)return;const _0x10be03=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x51aee6=>{if(_0x2686f0['key']==m)for(const _0x141471 of _0x2cd1b6){const _0x53816d=_0x141471['start']['nodeAfter'],_0x810afb=_0x2686f0['oldValue'];_0x51aee6['rename'](_0x53816d,_0x810afb);}else{if(_0x10be03['_isBlockAttribute'](_0x2686f0['key'])){for(const _0x12ed90 of _0x2cd1b6)void 0x0!==_0x2686f0['oldValue']?_0x51aee6['setAttribute'](_0x2686f0['key'],_0x2686f0['oldValue'],_0x12ed90['start']['nodeAfter']):_0x51aee6['removeAttribute'](_0x2686f0['key'],_0x12ed90['start']['nodeAfter']);}else{for(const _0x42cc0a of _0x2cd1b6)_0x2686f0['oldValue']?_0x51aee6['setAttribute'](_0x2686f0['key'],_0x2686f0['oldValue'],_0x42cc0a):_0x51aee6['removeAttribute'](_0x2686f0['key'],_0x42cc0a);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x2d0d7f);}}function Gt(_0x11558d,_0x282bd7,_0x4d3b0a){for(const _0x3cf3b9 of _0x282bd7['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x3cf3b9['root']==_0x3cf3b9)return!0x1;if(!_0x4d3b0a['containsItem'](_0x3cf3b9))return!0x1;if(_0x11558d['isObject'](_0x3cf3b9)||_0x11558d['isLimit'](_0x3cf3b9))return!0x0;}return!0x1;}function Ft(_0x46cba5){return _0x46cba5['end']['parent']==_0x46cba5['start']['nodeAfter']&&_0x46cba5['end']['isAtStart'];}function Lt(_0xcc1dfc,_0x4ac039,_0x254b7e,_0x17fda4){const _0x26c8de=_0x2fd00c=>!_0x2fd00c['item']['is']('$textProxy')&&!_0x17fda4['isObject'](_0x2fd00c['item']),_0x47795a=_0xcc1dfc['start']['getLastMatchingPosition'](_0x26c8de),_0x243666=_0xcc1dfc['end']['getLastMatchingPosition'](_0x26c8de,{'direction':'backward'});return(!_0xcc1dfc['start']['isEqual'](_0x47795a)||!_0xcc1dfc['end']['isEqual'](_0x243666))&&(_0x47795a['isBefore'](_0x243666)?_0x254b7e['updateMarker'](_0x4ac039,{'range':_0x254b7e['createRange'](_0x47795a,_0x243666)}):_0x254b7e['removeMarker'](_0x4ac039),!0x0);}function Jt(_0x299935){return _0x277bbc(_0x299935);}function Ht(_0x5dd3df){const _0x3e0b37=_0x5dd3df['start']['nodeAfter'];return _0x3e0b37&&_0x3e0b37['is']('element');}function qt(_0x745d14,_0x3ac818){return null==_0x745d14['end']['nodeBefore']&&_0x745d14['end']['parent']==_0x745d14['start']['nodeAfter']?zt(_0x745d14['start']['nodeAfter'],_0x3ac818):_0x745d14;}function zt(_0x523ef9,_0x2520c4){const _0x5e9147=_0x2520c4['schema']['isObject'](_0x523ef9)||_0x2520c4['schema']['isSelectable'](_0x523ef9);return _0x2520c4['createRange'](_0x2520c4['createPositionAt'](_0x523ef9,'before'),_0x5e9147?_0x2520c4['createPositionAfter'](_0x523ef9):_0x2520c4['createPositionAt'](_0x523ef9,'end'));}function Kt(_0x6936f4,_0x1c17e2,_0x50f12d,_0x597b37){return!!Wt(_0x6936f4,_0x1c17e2)&&_0x50f12d['end']['isEqual'](_0x597b37['start']);}function Wt(_0x1ff5d9,_0x240758){if(!_0x1ff5d9['_isDataLoaded']||!_0x240758['_isDataLoaded'])return!0x1;const _0x407725=new Set(Object['keys'](_0x1ff5d9['attributes'])),_0xd1db79=new Set(Object['keys'](_0x240758['attributes']));if(_0x407725['delete']('groupId'),_0xd1db79['delete']('groupId'),0x0==_0x407725['size']&&0x0==_0xd1db79['size'])return!0x0;if(_0x407725['size']!=_0xd1db79['size'])return!0x1;const _0x169c8f={..._0x1ff5d9['attributes']},_0xf55aba={..._0x240758['attributes']};return delete _0x169c8f['groupId'],delete _0xf55aba['groupId'],JSON['stringify'](_0x169c8f)==JSON['stringify'](_0xf55aba);}function Qt(_0x554821,_0x15852d){const _0x557dde=Xt(_0x554821['attributes']),_0x1c0b70=Xt(_0x15852d);if(!_0x554821['_isDataLoaded'])return!0x1;for(const _0x58f687 of Object['keys'](_0x1c0b70))if(!_0x221df5(_0x557dde[_0x58f687],_0x1c0b70[_0x58f687]))return!0x1;return!0x0;}function Xt(_0x343c0a){const _0x12f1cb=Object['assign']({},_0x343c0a);return delete _0x12f1cb['skipNestingCheck'],delete _0x12f1cb['tablePasteChainId'],_0x12f1cb;}class Ce extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x5c5c94(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x5bfbeb,_0x42b8cf,_0x4fd1fd,_0x2f0b06){super(),this['model']=_0x42b8cf,this['view']=_0x4fd1fd,this['commentThreadController']=_0x2f0b06,this['_editor']=_0x5bfbeb,this['_acceptCommand']=_0x5bfbeb['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x5bfbeb['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x2fb6d3,_0xc77aff)=>_0x2fb6d3||_0xc77aff),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x49d9b7=>_0x49d9b7&&this['_editor']['model']['canEditAt'](_0x42b8cf['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x145ab1=>_0x145ab1&&this['_editor']['model']['canEditAt'](_0x42b8cf['getRanges']())),this['_pendingAction']=null,_0x4fd1fd['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x4fd1fd,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x4fd1fd,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x4fd1fd,'change:isDirty',()=>{_0x4fd1fd['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 _0x45c651=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x45c651);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ms extends _0x15b666{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x36a032,_0x23d37e,_0x5b00cd,_0x51966f){super(_0x36a032),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x142fd3(_0x36a032,o(_0x36a032,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x23d37e['authoredAt']),this['bind']('authoredAt')['to'](_0x23d37e),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',_0x23d37e,'authoredAt',this,'descriptionParts',(_0x244f89,_0x3e188f,_0x35ab66)=>{const _0x3192c3=_0x35ab66['map'](_0x2c8f82=>cs(_0x2c8f82['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x244f89-0x1,_0x23d37e['author']['name'],_0x3e188f?_0x51966f['formatDateTime'](_0x3e188f):'',new DOMParser()['parseFromString'](_0x3192c3,'text/html')['body']['textContent']]);}),this['focusables']=new _0x59df53(),this['focusTracker']=new _0x58f04c(),this['keystrokes']=new _0x5a8356(),this['focusCycler']=new _0x33a187({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x46231d=>_0x46231d['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x23d37e,this['_localUser']=_0x5b00cd,this['_config']=_0x51966f,_0x51966f['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x168051(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x2d4545}=this['_config'];this['commentsListView']=new _0x2d4545(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',_0x17903b=>_0x17903b+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x4bc23e,_0x1efe8e)=>_0x4bc23e||!!_0x1efe8e);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x2ff136}=this['_config'],_0x2f23a5=new _0x2ff136(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x567fbd=_0x2f23a5['commentInputView'];return _0x2f23a5['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x567fbd,'value',(_0x3da340,_0x57d10f,_0x58a1ce)=>!!_0x58a1ce||_0x3da340&&!_0x57d10f),_0x567fbd['on']('submit',(_0x6adae0,_0x334cf8)=>{this['fire']('addComment',_0x334cf8),_0x567fbd['editor']['setData']('');}),_0x567fbd['on']('cancel',()=>this['focus']()),_0x567fbd['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x2f23a5;}}class pe extends ms{['suggestionView'];['_descriptionElement'];constructor(_0x3a7c8e,_0x1d9b50,_0x4029e7,_0x2c6d16){super(_0x3a7c8e,_0x1d9b50,_0x4029e7,_0x2c6d16),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x4e31fa=>_0x4e31fa&&_0x4e31fa[0x0]?_0x4e31fa[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x50b0cc,_0x47d304)=>{let _0x446a42='';for(const _0x5dcbff of _0x50b0cc)_0x446a42+='<p>'+cs(_0x5dcbff['content'],_0x5dcbff['color'])+'</p>';return _0x47d304?_0x446a42:_0x185d47(_0x446a42,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x2c6d16['SuggestionView'](_0x3a7c8e,_0x1d9b50,{'formatDateTime':_0x2c6d16['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 _0x45bc49=this['bindTemplate'],_0x481a1f=[this['suggestionView']];return this['commentsListView']&&_0x481a1f['push'](this['commentsListView']),this['commentThreadInputView']&&_0x481a1f['push'](this['commentThreadInputView']),_0x481a1f['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x45bc49['if']('isActive','ck-suggestion-wrapper--active'),_0x45bc49['to']('type',_0x2a47bc=>'ck-suggestion-'+_0x2a47bc),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':_0x45bc49['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x481a1f};}['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 _0x15b666{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0xda9918,_0x17da23,_0x589247){super(_0xda9918),this['_model']=_0x17da23,this['_config']=_0x589247,this['set']('description',''),this['bind']('authoredAt')['to'](_0x17da23),this['acceptButton']=this['_createButton'](o(_0xda9918,'Accept\x20suggestion'),_0x3aa37f['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0xda9918,'Discard\x20suggestion'),_0x3aa37f['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x53a86b(_0xda9918,_0x17da23['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x59df53([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x58f04c(),this['keystrokes']=new _0x5a8356(),this['focusCycler']=new _0x33a187({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x55b413=>_0x55b413['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x254aa6=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x254aa6['innerHTML']=this['description'],this['on']('change:description',(_0x1ee62f,_0x2478e4,_0x2526cf)=>{_0x254aa6['innerHTML']=_0x2526cf;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x3ea268=this['bindTemplate'],_0x427580=[{'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':_0x3ea268['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x3ea268['to']('authoredAt',_0x24156b=>this['_config']['formatDateTime'](_0x24156b))}]}]},{'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']&&_0x427580['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':_0x427580}]};}['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'](_0x1d7520,_0xce7e35,_0x28c249,_0x3fe573,_0x509f2c){const _0x517447=new _0x298767(this['locale']);return _0x517447['set']({'label':_0x1d7520,'icon':_0xce7e35,'tooltip':!0x0,'tooltipPosition':_0x509f2c}),_0x517447['extendTemplate']({'attributes':{'class':_0x28c249}}),_0x517447['on']('execute',()=>{this['fire'](_0x3fe573,this['_model']['id']);}),_0x517447;}['_setupKeyboardNavigation'](){const _0x197375=this['element'];this['keystrokes']['listenTo'](_0x197375);for(const _0x58e789 of this['focusables'])this['focusTracker']['add'](_0x58e789['element']),this['keystrokes']['listenTo'](_0x58e789['element']);this['keystrokes']['set']('enter',(_0x1d46cb,_0x3be3cc)=>{_0x197375===_0x1d46cb['target']&&(this['focusCycler']['focusFirst'](),_0x3be3cc());}),this['keystrokes']['set']('esc',(_0x6b87b6,_0x5bfd47)=>{_0x197375!==_0x6b87b6['target']&&(this['focus'](),_0x5bfd47());});}}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 _0x115581{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x403e21,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2735aa){super(_0x2735aa),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x1f7106=this['editor']['config'];_0x1f7106['define']('trackChanges.SuggestionThreadView',pe),_0x1f7106['define']('trackChanges.SuggestionView',fe),_0x1f7106['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x1f7106['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0xc67cf1,_0x4270a8){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x509bf8,_0x599c2a]of this['_handleControllerBuffer']){const _0x16468f=this['_suggestionToController']['has'](_0x509bf8);_0x16468f||_0x599c2a?_0x16468f&&_0x599c2a&&this['_destroyController'](_0x509bf8):this['_initializeController'](_0x509bf8);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0xc67cf1,_0x4270a8);}['init'](){const _0x4b96b3=this['editor'],_0x4bf860=_0x4b96b3['plugins']['get']('TrackChangesEditing'),_0x557447=_0x4b96b3['plugins']['get']('Annotations'),_0x3c3544=_0x4b96b3['plugins']['get']('EditorAnnotations'),_0x469e12=_0x4b96b3['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x3c3544['addSourceCollector'](()=>{const _0x53bed6=[];for(const [_0x255ced,_0x29a863]of Array['from'](this['_suggestionToController'])){const _0x2239af=_0x255ced['getAllAdjacentSuggestions'](),_0x920fdf=[];for(const _0x5b028e of _0x2239af){if(!_0x5b028e['isInContent'])continue;if(_0x5b028e['isMultiRange']){_0x920fdf['push'](..._0x5b028e['getRanges']());continue;}const _0x28a3ac=_0x5b028e['getFirstRange']();if(_0x920fdf['length']>0x0){const _0x13ad30=_0x920fdf[0x0]['getJoined'](_0x28a3ac);if(_0x13ad30){_0x920fdf[0x0]=_0x13ad30;continue;}}_0x920fdf['push'](_0x28a3ac);}_0x53bed6['push']([_0x29a863['view'],_0x920fdf]);}return _0x53bed6;}),this['listenTo'](_0x4bf860,'suggestionLoaded',(_0xde254a,_0x59f3c5)=>{this['listenTo'](_0x59f3c5,'change:previous',(_0x248a1f,_0x31cae7,_0x2c1064,_0x4ff49c)=>{_0x59f3c5['isInContent']&&(null==_0x2c1064?(this['_updateController'](_0x4ff49c['head']),this['_handleSuggestionControllerDelayed'](_0x59f3c5,!0x1)):(this['_updateController'](_0x2c1064['head']),null==_0x4ff49c&&this['_handleSuggestionControllerDelayed'](_0x59f3c5,!0x0)));}),null!==_0x59f3c5['previous']?this['_updateController'](_0x59f3c5['head']):this['_handleSuggestionControllerDelayed'](_0x59f3c5,!0x1);}),this['listenTo'](_0x4bf860,'suggestionUnloaded',(_0x71a86d,_0x42859a,_0x117fe6)=>{this['stopListening'](_0x42859a,'change:previous'),this['_handleControllerBuffer']['delete'](_0x42859a),this['_suggestionToController']['has'](_0x42859a)&&this['_destroyController'](_0x42859a),_0x117fe6&&this['_updateController'](_0x117fe6['head']);}),this['listenTo'](_0x4bf860,'suggestionChanged',(_0x5b5d15,_0x2ecb46)=>{this['_updateController'](_0x2ecb46);}),this['listenTo'](_0x557447,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x469e12,'addComment',(_0x23644c,{threadId:_0x470035,isFromAdapter:_0x47b84e})=>{if(_0x47b84e||!_0x4bf860['hasSuggestion'](_0x470035))return;const _0x48d74b=_0x4bf860['getSuggestion'](_0x470035);this['_suggestionToController']['get'](_0x48d74b)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x26c9d1=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3e8ee3;for(const _0x1007c4 in _0x26c9d1){const _0x3927ee=_0x1007c4,_0x84cf51=_0x26c9d1[_0x3927ee];if('trackChangesLicenseKeyValid'==_0x84cf51||'trackChangesLicenseKeyInvalid'==_0x84cf51||'trackChangesLicenseKeyExpired'==_0x84cf51||'trackChangesLicenseKeyDomainLimit'==_0x84cf51||'trackChangesLicenseKeyNotAllowed'==_0x84cf51||'trackChangesLicenseKeyEvaluationLimit'==_0x84cf51||'trackChangesLicenseKeyTrialLimit'==_0x84cf51||'trackChangesLicenseKeyUsageLimit'==_0x84cf51){delete _0x26c9d1[_0x3927ee],_0x3e8ee3=_0x84cf51,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x3e8ee3&&_0x26c9d1['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x3e8ee3&&_0x26c9d1['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x3e8ee3&&_0x26c9d1['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x3e8ee3&&_0x26c9d1['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x3e8ee3&&_0x26c9d1['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x3e8ee3&&_0x26c9d1['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x3e8ee3&&_0x26c9d1['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x5d236b=this['editor']['plugins']['get']('Annotations'),_0x12fe18=this['editor']['plugins']['get']('TrackChangesEditing'),_0x56c969=Array['from'](_0x5d236b['activeAnnotations'],_0x49c520=>_0x49c520['innerView'])['filter'](_0x501645=>this['_viewToController']['has'](_0x501645)),_0x1b82ee=[];for(const _0x160fdd of _0x56c969){const _0x308596=this['_viewToController']['get'](_0x160fdd)['model']['getAllAdjacentSuggestions']();_0x1b82ee['push'](..._0x308596['reduce']((_0x2ba634,_0x367c1e)=>[..._0x2ba634,..._0x367c1e['getMarkerNames']()],[]));}_0x12fe18['activeMarkers']=_0x1b82ee;}['_addUIComponentsToFactory'](){const _0x2e69f2=this['editor'],_0x1d7d5a=_0x2e69f2['locale'],_0x133dc4=o(_0x1d7d5a,'Track\x20changes'),_0x1c5698=new _0x2078bc([{'type':'switchbutton','model':new _0x52d3a9({'withText':!0x0,'isToggleable':!0x0,'label':_0x133dc4,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x52d3a9({'withText':!0x0,'label':o(_0x1d7d5a,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x52d3a9({'withText':!0x0,'label':o(_0x1d7d5a,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x52d3a9({'withText':!0x0,'label':o(_0x1d7d5a,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x52d3a9({'withText':!0x0,'label':o(_0x1d7d5a,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x2e69f2['plugins']['has']('TrackChangesPreview')&&_0x1c5698['addMany']([{'type':'separator'},{'type':'button','model':new _0x52d3a9({'withText':!0x0,'label':o(_0x1d7d5a,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x9ce0f2 of _0x1c5698)if(ke(_0x9ce0f2)){const _0x359e85=_0x2e69f2['commands']['get'](_0x9ce0f2['model']['commandName']);_0x9ce0f2['model']['bind']('isOn','isEnabled')['to'](_0x359e85,'value','isEnabled');}_0x2e69f2['ui']['componentFactory']['add']('trackChanges',_0x38aa52=>this['_createToolbarButton'](_0x38aa52,_0x1c5698,_0x133dc4)),_0x2e69f2['ui']['componentFactory']['add']('menuBar:trackChanges',_0x2026ad=>this['_createMenuBarMenu'](_0x2026ad,_0x1c5698,_0x133dc4));}['_createToolbarButton'](_0x38797c,_0x5923e2,_0x2685b6){const _0x4c1562=_0x1ae96c(_0x38797c,_0x47d642),_0x52087e=this['editor']['commands']['get']('trackChanges');_0x4c1562['buttonView']['set']({'tooltip':_0x2685b6,'label':_0x2685b6,'icon':we}),_0x4c1562['buttonView']['bind']('isOn')['to'](_0x52087e,'value'),_0x4c1562['buttonView']['on']('execute',()=>{_0x52087e['execute'](),this['editor']['editing']['view']['focus']();}),_0x1e0bf3(_0x4c1562,_0x5923e2,{'role':'menu'});const _0x5ca6c7=[];for(const _0x5790fd of _0x5923e2)ke(_0x5790fd)&&_0x5ca6c7['push'](this['editor']['commands']['get'](_0x5790fd['model']['commandName']));const _0x44e774=_0x4c1562['buttonView'];return _0x44e774['actionView']['unbind']('isEnabled'),_0x44e774['arrowView']['unbind']('isEnabled'),_0x44e774['actionView']['bind']('isEnabled')['to'](_0x52087e,'isEnabled'),_0x44e774['arrowView']['bind']('isEnabled')['toMany'](_0x5ca6c7,'isEnabled',(..._0x52dcce)=>_0x52dcce['some'](_0x10a34d=>_0x10a34d)),_0x4c1562['on']('execute',_0x4252de=>{this['editor']['execute'](_0x4252de['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x4c1562;}['_createMenuBarMenu'](_0x45af2a,_0x5d92d9,_0x449857){const _0x6d80de=new _0x344c8e(_0x45af2a),_0x14a996=this['editor']['commands']['get']('trackChanges');_0x6d80de['buttonView']['set']({'label':_0x449857,'icon':we});const _0x2d8f51=new _0x388899(_0x45af2a);for(const _0x570537 of _0x5d92d9){if('separator'==_0x570537['type']){_0x2d8f51['items']['add'](new _0x321805(_0x45af2a));continue;}const _0x4031ac=new _0x1acd74(_0x45af2a,_0x6d80de),_0x79ba99=new _0x3e34e6(_0x45af2a),_0x2fa626=_0x570537['model'];_0x79ba99['bind'](...Object['keys'](_0x2fa626))['to'](_0x2fa626),_0x79ba99['delegate']('execute')['to'](_0x6d80de),_0x79ba99['on']('execute',()=>{this['editor']['execute'](_0x2fa626['commandName']),this['editor']['editing']['view']['focus']();}),_0x4031ac['children']['add'](_0x79ba99),_0x2d8f51['items']['add'](_0x4031ac);}return _0x6d80de['bind']('isEnabled')['to'](_0x14a996,'isEnabled'),_0x6d80de['panelView']['children']['add'](_0x2d8f51),_0x6d80de;}['_initializeController'](_0x5b51ce){const _0x42ec19=this['editor'],_0x5ae742=_0x42ec19['config'],_0x195bab=_0x42ec19['plugins']['get']('Annotations'),_0xc48bbb=_0x42ec19['plugins']['get']('CommentsRepository'),_0x4075a5=_0x42ec19['plugins']['get']('EditorAnnotations'),_0x286798=_0x42ec19['plugins']['get'](_0x403e21)['me'],_0x1fbf52=_0x5ae742['get']('trackChanges')['SuggestionThreadView'],_0x57b5e3=_0x5ae742['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x5c0a70,CommentThreadInputView:_0x41659a}=_0x42ec19['plugins']['get']('CommentsUI');let _0x862647,_0x294358,_0x1f27cf;this['_annotationViews']['has'](_0x5b51ce['id'])?(_0x294358=this['_annotationViews']['get'](_0x5b51ce['id']),_0x862647=_0x294358['mainView']):(_0x862647=new _0x1fbf52(_0x42ec19['locale'],_0x5b51ce,_0x286798,{'disableComments':this['_disableComments'],'editorConfig':{..._0x5ae742['get']('comments.editorConfig'),'licenseKey':_0x5ae742['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x5ae742['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x5ae742['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x5ae742['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x5024d6(_0x5ae742['get']('locale')),'CommentView':_0x5ae742['get']('comments')['CommentView'],'CommentsListView':_0x5c0a70,'CommentThreadInputView':_0x41659a,'SuggestionView':_0x57b5e3}),_0x862647['suggestionView']['acceptButton']['on']('execute',()=>{_0x42ec19['editing']['view']['focus']();}),_0x862647['suggestionView']['discardButton']['on']('execute',()=>{_0x42ec19['editing']['view']['focus']();}),_0x294358=_0x195bab['createAnnotationView'](this['editor']['locale'],_0x862647),_0x294358['bind']('isDirty')['to'](_0x862647,'isDirty'),_0x294358['bind']('length')['to'](_0x862647),_0x294358['bind']('type')['to'](_0x862647,'type',_0x4cff15=>'suggestion-'+_0x4cff15),_0x862647['on']('escape',()=>{_0x1f27cf['fire']('escape');}),this['_annotationViews']['set'](_0x5b51ce['id'],_0x294358));const _0x20e6a2=_0xc48bbb['createCommentThreadController'](_0x5b51ce['commentThread'],_0x862647),_0x3cd993=new Ce(_0x42ec19,_0x5b51ce,_0x862647,_0x20e6a2),_0x169f09=_0x5b51ce['getAllAdjacentSuggestions']()['filter'](_0x5b0811=>_0x5b0811['isInContent']);_0x862647['descriptionParts']=_0x42ec19['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x169f09),this['_suggestionToController']['set'](_0x5b51ce,_0x3cd993),this['_viewToController']['set'](_0x862647,_0x3cd993),_0x1f27cf=_0x195bab['createAnnotation']({'view':_0x294358,'target':()=>{const _0x5c3b1c=[],_0x3aaa1f=_0x5b51ce['getAllAdjacentSuggestions']()['filter'](_0x5df9c5=>_0x5df9c5['isInContent']);for(const _0x21f121 of _0x3aaa1f)_0x5c3b1c['push'](..._0x21f121['getMarkers']());return _0x3d4116(_0x42ec19['editing'],_0x5c3b1c);},'type':()=>'suggestion-'+_0x3cd993['view']['type']}),_0xc48bbb['_bindAnnotationToEditors'](_0x862647,_0x1f27cf),_0x195bab['add'](_0x1f27cf),_0x4075a5['registerAnnotation'](_0x1f27cf);}['_destroyController'](_0x22890e){const _0x1fe138=this['editor']['plugins']['get']('CommentsRepository'),_0x224027=this['editor']['plugins']['get']('Annotations'),_0x12e2fc=this['_suggestionToController']['get'](_0x22890e),_0xf95485=_0x12e2fc['view'],_0x39094b=_0x224027['getByInnerView'](_0xf95485);_0x1fe138['_unbindEditors'](_0xf95485),_0x39094b&&_0x224027['remove'](_0x39094b),this['_suggestionToController']['delete'](_0x22890e),this['_viewToController']['delete'](_0xf95485),_0x12e2fc['destroy']();}['_updateController'](_0x763dc2){if(!_0x763dc2['isInContent']||!this['_suggestionToController']['has'](_0x763dc2))return;const _0xd8c69=this['editor']['plugins']['get']('TrackChangesEditing'),_0x189d09=this['_suggestionToController']['get'](_0x763dc2),_0x1a275e=_0x763dc2['getAllAdjacentSuggestions']();_0x189d09['view']['descriptionParts']=_0xd8c69['descriptionFactory']['getDescriptions'](_0x1a275e);}['destroy'](){for(const _0x3394ea of this['_suggestionToController']['keys']())this['_destroyController'](_0x3394ea);for(const _0x688619 of this['_annotationViews']['values']())_0x688619['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x176b88){return'model'in _0x176b88;}class k extends _0x115581{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x65214e){this['editor']['plugins']['get'](p)['adapter']=_0x65214e;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x22c8e4){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x22c8e4);}['getSuggestions']({skipNotAttached:_0x1bbe60=!0x1,toJSON:_0x4d1a24=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x1bbe60,'toJSON':_0x4d1a24});}['getSuggestion'](_0x343be0){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x343be0);}}const w=['Pagination'];class T extends _0x115581{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x13a391=this['editor'];if(_0x13a391['config']['define']('trackChangesData.editorCreator',_0x222140=>{const _0x4fb6e=_0x13a391['model']['document']['getRootNames']()['reduce']((_0x5b1e53,_0x152b17)=>(_0x5b1e53[_0x152b17]='',_0x5b1e53),{});return _0x13a391['constructor']['create'](_0x4fb6e,_0x222140);}),'function'!=typeof _0x13a391['config']['get']('trackChangesData')['editorCreator'])throw new _0x52121e('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x232679){return N(this['editor'],!0x0,_0x232679);}['getDataWithDiscardedSuggestions'](_0xfca55c){return N(this['editor'],!0x1,_0xfca55c);}}class D extends _0x115581{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x32f1ba){function _0x402941(_0x3013a9){return _0x3013a9['map'](_0x1db01c=>String['fromCharCode'](_0x1db01c))['join']('');}super(_0x32f1ba),this['result']='end',_0x32f1ba[_0x402941([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x402941([0x76,0x69,0x65,0x77])][_0x402941([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x402941([0x61,0x75,0x74,0x6f]),_0x32f1ba[_0x402941([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x402941([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x402941([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x402941([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x402941([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(_0x15f603){return void 0x0!==_0x15f603['getRootsAttributes'];}async function N(_0x5d3832,_0x403fb1,_0x5068fb){const _0x1a29e8=_0x7e261c(_0x5d3832,w);_0x1a29e8['plugins']['push'](p,D),_0x1a29e8['rootsAttributes']=Fe(_0x5d3832)?_0x5d3832['getRootsAttributes']():void 0x0;const _0x4d6236=document['createDocumentFragment'](),_0x3cc92a=_0x5d3832['config']['get']('trackChangesData')['editorCreator'],_0x4e63b8=await _0x3cc92a(_0x1a29e8,()=>function(_0x3438f0){const _0x31df33=document['createElement']('div');return _0x3438f0['appendChild'](_0x31df33),_0x31df33;}(_0x4d6236));!function(_0x7df5bc,_0x546dd2){const _0x5349cf=_0x7df5bc['model']['document']['getRootNames']()['reduce']((_0x9bf8b1,_0x1e8a81)=>(_0x9bf8b1[_0x1e8a81]=_0x7df5bc['data']['get']({'rootName':_0x1e8a81}),_0x9bf8b1),{}),_0xd0d6b0=_0x7df5bc['plugins']['get']('Users')['users']['map'](_0x87829a=>({'id':_0x87829a['id'],'name':_0x87829a['name']})),_0x4d7be1=_0x7df5bc['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2180c6=_0x7df5bc['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x49b725=_0x546dd2['plugins']['get']('Users'),_0x451300=_0x546dd2['plugins']['get']('TrackChangesEditing'),_0x165fd8=_0x546dd2['plugins']['get']('CommentsRepository');for(const _0x404ac5 of _0x165fd8['getCommentThreads']())_0x404ac5['remove']();for(const _0x50ed26 of _0xd0d6b0)_0x49b725['getUser'](_0x50ed26['id'])||_0x49b725['addUser'](_0x50ed26);_0x49b725['me']||_0x49b725['useAnonymousUser']();for(const _0x597e78 of _0x2180c6)_0x165fd8['addCommentThread'](_0x597e78);for(const _0x1924cc of _0x4d7be1)_0x451300['addSuggestionData'](_0x1924cc);_0x546dd2['data']['set'](_0x5349cf);}(_0x5d3832,_0x4e63b8),_0x4e63b8['execute'](_0x403fb1?'acceptAllSuggestions':'discardAllSuggestions');const _0x364911=Fe(_0x4e63b8)?_0x4e63b8['getFullData'](_0x5068fb):_0x4e63b8['data']['get'](_0x5068fb);return await _0x4e63b8['destroy'](),_0x364911;}class Me extends _0x15b666{['options'];constructor(_0x14be87,_0x260751){super(_0x14be87),this['options']=_0x260751,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'](_0x14ff64,_0x455fbc){if(!this['element'])return;const _0x5039b8=[];for(const [_0x5f4c5e,_0x4da9eb]of _0x14ff64){const _0x304e63=document['createElement']('div');_0x304e63['setAttribute']('data-ck-root-name',_0x5f4c5e),_0x304e63['className']=_0x4da9eb['classes']+'\x20ck-track-changes-preview__root-container',_0x304e63['innerHTML']=_0x4da9eb['content'],_0x5039b8['push'](_0x304e63);}_0x455fbc(this['element'],_0x5039b8),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends Yt{constructor(_0x5750d2){super(_0x5750d2),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x2e1833=this['editor'],_0x101a14=_0x2e1833['locale'],_0x2e01fb=_0x2e1833['plugins']['get']('Dialog');let _0x556b31;const _0x22b0d6=function(_0x23007f){const _0x1098ec={};if('editables'in _0x23007f['ui']['view']){for(const [_0x4df8ef,_0x480c78]of Object['entries'](_0x23007f['ui']['view']['editables']))_0x1098ec[_0x4df8ef]=_0x480c78['element'];}else _0x1098ec[_0x23007f['model']['document']['getRootNames']()[0x0]]=_0x23007f['ui']['view']['editable']['element'];return _0x1098ec;}(_0x2e1833),_0x2cdf9d=function(_0x2fb0ea){let _0xb1c522=0x0;for(const _0x3f7e2f of Object['values'](_0x2fb0ea))_0xb1c522=Math['max'](_0xb1c522,_0x3f7e2f['getBoundingClientRect']()['width']);let _0x5175d2=0x0;for(const _0x56451d of Object['values'](_0x2fb0ea))_0x5175d2+=_0x56451d['getBoundingClientRect']()['height'];const _0x3891db=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x5ecdf5=Math['min'](_0x5175d2,_0x3891db);return{'width':_0xb1c522,'height':_0x5ecdf5};}(_0x22b0d6);_0x2e01fb['show']({'id':'finalContentPreview','title':o(_0x101a14,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x101a14,{'dialogRects':_0x2cdf9d}),'onHide':()=>{_0x556b31['detachFromDom']();},'onShow':()=>{_0x2e1833['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x5c9a7c=>{const _0xe8bc1=this['_standarizeRootsData'](_0x5c9a7c,_0x2e1833,_0x22b0d6);_0x2e01fb['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0xe8bc1,_0x2e1833['config']['get']('trackChanges.preview.renderFunction'));}),_0x556b31=new _0x2edee0(_0x101a14,[_0x2e01fb['view']]),_0x556b31['attachToDom'](),_0x556b31['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x2e1833['once']('destroy',()=>{_0x556b31['detachFromDom']();});const _0x58f73a=_0x2e01fb['view']['headerView']['class'];_0x2e01fb['view']['headerView']['class']=_0x58f73a?_0x58f73a+'\x20ck-reset_all':'ck-reset_all',_0x2e01fb['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x2e01fb['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x3adfc0=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x42dd67=_0x3adfc0['previewMode'],_0x4b57ac={};if('$labels'===_0x42dd67){for(const _0x30f75c of _0x3adfc0['getMergeFieldsIds']())_0x4b57ac[_0x30f75c]=_0x3adfc0['getLabel'](_0x30f75c)||_0x30f75c;}else{const _0x375f12='$defaultValues'===_0x42dd67?_0x3adfc0['getDefaultValues']():_0x3adfc0['getDataSetValues'](_0x42dd67,!0x0);for(const _0x4d3d42 of Object['entries'](_0x375f12)){const [_0x16c07c,_0x4e2312]=_0x4d3d42;_0x4b57ac[_0x16c07c]=null!==_0x4e2312?_0x4e2312:_0x3adfc0['getLabel'](_0x16c07c)||_0x16c07c;}}return{'mergeFieldsData':_0x4b57ac};}['_standarizeRootsData'](_0x4f267d,_0x5099d9,_0x398e66){let _0x41015f;if('string'==typeof _0x4f267d){const _0x2cc19a=_0x5099d9['model']['document']['getRootNames']()[0x0];_0x41015f={[_0x2cc19a]:_0x4f267d};}else _0x41015f=_0x4f267d;const _0x42282f=this['_fixMediaEmbeds'](_0x41015f,_0x5099d9),_0x2d9eae=function(_0x269af0,_0x158473){for(const [_0x6e0362,_0x3b16b9]of _0x269af0)_0x3b16b9['classes']=_0x158473[_0x6e0362]['classList']['value']['replace']('ck-focused','');return _0x269af0;}(this['_sortRoots'](_0x5099d9)['reduce']((_0x5009ad,_0x166297)=>(_0x5009ad['push']([_0x166297,{'content':_0x42282f[_0x166297],'classes':''}]),_0x5009ad),[]),_0x398e66);return _0x2d9eae;}['_fixMediaEmbeds'](_0x36ec9d,_0x110048){if(!_0x110048['plugins']['has']('MediaEmbedEditing'))return _0x36ec9d;const _0x2a9035=_0x110048['plugins']['get']('MediaEmbedEditing');for(const [_0x2faab4,_0x416538]of Object['entries'](_0x36ec9d)){const _0x497cc8=document['createElement']('div');_0x497cc8['innerHTML']=_0x416538,(_0x497cc8['querySelectorAll']('figure.media')['forEach'](_0x15b6aa=>{const _0x3dabbb=_0x15b6aa['querySelector']('oembed');if(_0x3dabbb){const _0x5ded26=_0x3dabbb['getAttribute']('url');if(_0x5ded26){const _0x157036=_0x2a9035['registry']['getMediaViewElement'](new _0x455eb2(_0x110048['editing']['view']['document']),_0x5ded26,{'elementName':'','renderForEditingView':!0x0}),_0x41122e=document['createElement']('div');_0x41122e['classList']['add']('ck-media__wrapper'),_0x157036['render'](_0x41122e,_0x110048['editing']['view']['domConverter']),_0x3dabbb['replaceWith'](_0x41122e);}}}),_0x36ec9d[_0x2faab4]=_0x497cc8['innerHTML']);}return _0x36ec9d;}['_sortRoots'](_0x428868){if(!function(_0x398302){return void 0x0!==_0x398302['getRootsAttributes'];}(_0x428868))return _0x428868['model']['document']['getRootNames']();const _0x41b57b=[],_0x521ece=new Map();for(const _0x3ae34d of _0x428868['model']['document']['getRootNames']()){const _0x11cc69=_0x428868['editing']['view']['getDomRoot'](_0x3ae34d)['getClientRects']()['item'](0x0);_0x41b57b['push'](_0x3ae34d),_0x521ece['set'](_0x3ae34d,_0x11cc69);}return _0x41b57b['sort']((_0x30e676,_0x144779)=>{const _0x1928cb=_0x521ece['get'](_0x30e676),_0xa0a075=_0x521ece['get'](_0x144779);return _0x1928cb['y']-_0xa0a075['y']||_0x1928cb['x']-_0xa0a075['x'];}),_0x41b57b;}}class te extends _0x115581{static get['requires'](){return[T,_0x4794b8];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x382e93){super(_0x382e93),_0x382e93['commands']['add']('previewFinalContent',new re(this['editor'])),_0x382e93['config']['define']('trackChanges.preview.renderFunction',(_0xeae1cd,_0x1fc6b9)=>{for(const _0x5b9cc5 of _0x1fc6b9)_0xeae1cd['appendChild'](_0x5b9cc5);});}}export{ms as BaseSuggestionThreadView,u as Suggestion,pe as SuggestionThreadView,fe as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
|
|
23
|
+
import{Command as Yt,Plugin as _0x2e0600,PendingActions as _0x396b21,icons as _0x4ff397}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x1c235c,ObservableMixin as _0x357011,uid as _0x502eb1,priorities as _0xffa7dc,insertToPriorityArray as _0x155509,logWarning as _0x5db013,getEnvKeystrokeText as _0x3ec30c,FocusTracker as _0x5b40b3,KeystrokeHandler as _0x1f3671,Collection as _0x424f10}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x21d4ef,View as _0x18ecc2,ViewCollection as _0x41a95c,FocusCycler as _0x2c0406,ViewModel as _0x3570d2,createDropdown as _0x5bae48,SplitButtonView as _0x15d7f7,addListToDropdown as _0x5172de,MenuBarMenuView as _0x346073,MenuBarMenuListView as _0x1d7800,ListSeparatorView as _0x1e1643,MenuBarMenuListItemView as _0x9caca5,MenuBarMenuListItemButtonView as _0x32b585,BodyCollection as _0x240a52,Dialog as _0x32d43f}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x483d85,hashObject as _0x2dc0b9,surroundingMarkersDetector as _0x3f2b80,FOCUS_ANNOTATION_KEYSTROKE as _0x5f1d9f,AriaDescriptionView as _0x15cfc2,setupThreadKeyboardNavigation as _0x24f4c2,trimHtml as _0x586920,UserView as _0x219a7c,LateFocusButtonView as _0x254f07,getDateTimeFormatter as _0x2167ca,getAllMarkersDomElementsSorted as _0x16b1a5,sanitizeEditorConfig as _0x3e1684}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x488a98,LiveRange as _0x1200ae,LivePosition as _0x4c297e,DowncastWriter as _0x343a56}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x4b20b2,toWidget as _0x3dbc81}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x4b5e25,set as _0x299b13,isEqual as _0x344f35,unset as _0x1d4566,omit as Vt}from'lodash-es';import{Delete as _0x3f742a,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x57352a,ShiftEnter as _0xf6831f}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends Yt{['_enabledCommands'];constructor(_0x1aa571,_0x3d20ec){super(_0x1aa571),this['_enabledCommands']=_0x3d20ec,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 _0x2f9cc9 of this['editor']['commands']['commands']())_0x2f9cc9['affectsData']&&!this['_enabledCommands']['has'](_0x2f9cc9)&&_0x2f9cc9['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x25f1b0 of this['editor']['commands']['commands']())_0x25f1b0['affectsData']&&!this['_enabledCommands']['has'](_0x25f1b0)&&_0x25f1b0['clearForceDisabled']('TrackChangesCommand');}}class O extends Yt{['_suggestions'];constructor(_0x15cc55,_0x25bf55){super(_0x15cc55),this['_suggestions']=_0x25bf55,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x2cbb8b){const _0x23ac18=this['_suggestions']['get'](_0x2cbb8b);if(!_0x23ac18)throw new _0x1c235c('track-changes-accept-suggestion-not-found',this);const _0x2894d2=_0x23ac18['getRanges']();this['editor']['model']['canEditAt'](_0x2894d2)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x23ac18);}}class R extends Yt{['_suggestions'];constructor(_0x45bd34,_0x131111){super(_0x45bd34),this['_suggestions']=_0x131111,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x421506){const _0x3b4527=this['_suggestions']['get'](_0x421506);if(!_0x3b4527)throw new _0x1c235c('track-changes-discard-suggestion-not-found',this);const _0x42d8c1=_0x3b4527['getRanges']();this['editor']['model']['canEditAt'](_0x42d8c1)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x3b4527);}}function cs(_0x165798,_0x4e6aa9){let _0x27fb29='';return _0x27fb29+=_0x165798['split']('*')['map']((_0x3804ed,_0x32def2)=>_0x32def2%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x3804ed)+'</span>':nn(_0x3804ed))['join'](''),_0x4e6aa9&&(_0x27fb29+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x4e6aa9['value']+'\x22\x20title=\x22'+_0x4e6aa9['title']+'\x22></span>'),_0x27fb29;}function nn(_0x1f9d15){const _0x38dee4=document['createElement']('span');return _0x38dee4['innerText']=_0x1f9d15,_0x38dee4['innerHTML'];}function Zt(_0x3e5b4e){return _0x3e5b4e['sort']((_0x2be016,_0x230945)=>'deletion'==_0x2be016['type']&&'deletion'!=_0x230945['type']?-0x1:'deletion'!=_0x2be016['type']&&'deletion'==_0x230945['type']?0x1:0x0);}function to(_0x14b4ba,_0x314e33){let _0x58fb11,_0x592ece=0x0;const _0x155ce3=[],_0x3c5dbf=_0x314e33['schema'];for(;_0x592ece<_0x14b4ba['length'];){const _0x42ca9e=_0x14b4ba[_0x592ece],_0x13e6af=_0x14b4ba[_0x592ece+0x1];_0x58fb11||(_0x58fb11=_0x314e33['createPositionBefore'](_0x42ca9e)),on(_0x314e33,_0x42ca9e,_0x13e6af)||(_0x155ce3['push'](_0x314e33['createRange'](_0x58fb11,_0x3c5dbf['isObject'](_0x42ca9e)?_0x314e33['createPositionAfter'](_0x42ca9e):_0x314e33['createPositionAt'](_0x42ca9e,'end'))),_0x58fb11=null),_0x592ece++;}return _0x155ce3;}function on(_0xa5c85f,_0x1c5e2c,_0x5b95bb){if(!_0x5b95bb)return!0x1;const _0x569085=_0xa5c85f['createPositionAfter'](_0x1c5e2c),_0x14c7c8=_0xa5c85f['createPositionBefore'](_0x5b95bb);return _0x569085['isTouching'](_0x14c7c8);}function ts(_0x453075,_0x23b129,_0x3994d4){for(;_0x3994d4['length'];){const _0x18676d=_0x3994d4['splice'](0x0,0x64);_0x453075['change'](()=>{for(const _0x323f37 of _0x18676d)_0x323f37['isInContent']&&_0x23b129['execute'](_0x323f37['id']);});}}class x extends Yt{['_command'];['_suggestions'];constructor(_0xc5d0fa,_0x3b71e7,_0x2b032b){super(_0xc5d0fa),this['_command']=_0x3b71e7,this['_suggestions']=_0x2b032b,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x36b2e2=Array['from'](this['_suggestions']['values']())['some'](_0xa6f75b=>_0xa6f75b['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x36b2e2;}['execute'](){const _0x48e809=Zt(Array['from'](this['_suggestions']['values']()));for(const _0x5e7852 of _0x48e809){const _0x315743=_0x5e7852['getRanges']();if(!this['editor']['model']['canEditAt'](_0x315743))return;}ts(this['editor']['model'],this['_command'],_0x48e809);}}class E extends Yt{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0xd3a2d9,_0x341870,_0x462a15){super(_0xd3a2d9),this['_command']=_0x341870,this['_suggestions']=_0x462a15,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x16bfe0=this['editor']['model']['document']['selection'],_0x3f1162=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x10dbd1,_0x2d23e4){const _0xcbd259=Array['from'](_0x10dbd1['getRanges']()),_0x23c334=new Set();for(const _0x1dbbf2 of _0x2d23e4)if(_0x1dbbf2['isInContent']){for(const _0x1d10e0 of _0xcbd259)for(const _0x2e3606 of _0x1dbbf2['getRanges']())(_0x1d10e0['isIntersecting'](_0x2e3606)||_0x10dbd1['isCollapsed']&&!_0x1dbbf2['isMultiRange']&&_0x1dbbf2['next']&&_0x2e3606['end']['isTouching'](_0x1d10e0['start']))&&_0x23c334['add'](_0x1dbbf2);}return _0x23c334;}(_0x16bfe0,_0x3f1162),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x55b7c5=Zt(Array['from'](this['_selectedSuggestions']));for(const _0x29f32f of _0x55b7c5){const _0x492708=_0x29f32f['getRanges']();if(!this['editor']['model']['canEditAt'](_0x492708))return;}ts(this['editor']['model'],this['_command'],_0x55b7c5);}}class u extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x357011(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0xa821f4,_0x3daa80){super(),this['id']=_0x3daa80['id'],this['type']=_0x3daa80['type'],this['subType']=_0x3daa80['subType']||null,this['author']=_0x3daa80['author'],this['creator']=_0x3daa80['creator']||_0x3daa80['author'],this['isExternal']=Boolean(_0x3daa80['attributes']&&_0x3daa80['attributes']['@external']),this['data']=null,this['_model']=_0xa821f4,this['_onAccept']=_0x3daa80['onAccept'],this['_onDiscard']=_0x3daa80['onDiscard'],this['_onAttributesChange']=_0x3daa80['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x3daa80['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 _0x113b71=this;for(;_0x113b71['previous'];)_0x113b71=_0x113b71['previous'];return _0x113b71;}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'](_0xddbb38){this['_markerNames']['add'](_0xddbb38);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x35303f=>this['_model']['markers']['get'](_0x35303f))['filter'](_0x17e7bb=>_0x17e7bb);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x25262b=>{for(const _0x48c818 of this['getMarkers']())_0x25262b['removeMarker'](_0x48c818);}),this['_markerNames']['clear']();}['removeMarker'](_0x4b4f86){this['_model']['change'](_0x1c8648=>{_0x1c8648['removeMarker'](_0x4b4f86);}),this['_markerNames']['delete'](_0x4b4f86);}['addRange'](_0x2ad4b9){const _0x2d949f='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x2d949f),this['_model']['change'](_0x553d84=>{_0x553d84['addMarker'](_0x2d949f,{'range':_0x2ad4b9,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x224857){for(const _0x5414dd of this['getRanges']())if(_0x5414dd['isIntersecting'](_0x224857))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x5267fc=>_0x5267fc['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x37f8d3,_0x1343e9)=>[..._0x37f8d3,..._0x1343e9['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x351a89=this['getRanges']();if(0x1!=_0x351a89['length'])return null;const _0x441b23=_0x351a89[0x0],_0x2b8657=_0x441b23['start']['nodeAfter'],_0x4cb540=_0x441b23['end']['nodeBefore'];return _0x2b8657 instanceof _0x488a98?_0x2b8657!=_0x4cb540?null:_0x2b8657: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 _0x4c4d49=[];let _0x498d65=this['head'];for(;_0x498d65;)_0x4c4d49['push'](_0x498d65),_0x498d65=_0x498d65['next'];return _0x4c4d49;}['setAttribute'](_0x2f35ce,_0x5ce16f){const _0x5c6182=_0x4b5e25(this['attributes']);_0x299b13(_0x5c6182,_0x2f35ce,_0x5ce16f),_0x344f35(_0x5c6182,this['attributes'])||(this['attributes']=_0x5c6182,this['_onAttributesChange'](_0x5c6182));}['removeAttribute'](_0x45584){const _0x5c8e99=_0x4b5e25(this['attributes']);_0x1d4566(_0x5c8e99,_0x45584),_0x344f35(_0x5c8e99,this['attributes'])||(this['attributes']=_0x5c8e99,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 _0x502eb1()['substr'](0x1,0x5);}}function o(_0x9d19c,_0x265be2,_0x1d3201){const _0x529ea7=_0x9d19c['t'],t=_0x9d19c['t'];switch(_0x265be2){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',_0x1d3201);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x1d3201);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x1d3201);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x1d3201);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x1d3201);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',_0x1d3201);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x1d3201);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',_0x1d3201);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x1d3201);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x1d3201);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x1d3201);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x1d3201);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x1d3201);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x1d3201);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x1d3201);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x1d3201);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x1d3201);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x1d3201);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x1d3201);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x1d3201);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x1d3201);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x1d3201);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x1d3201);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x1d3201);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'},_0x1d3201);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x1d3201);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x1d3201);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x1d3201);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x1d3201);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x1d3201);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'},_0x1d3201);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x1d3201);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x1d3201);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x1d3201);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x1d3201);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'},_0x1d3201);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x1d3201);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'},_0x1d3201);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'},_0x1d3201);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x1d3201);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'},_0x1d3201);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x1d3201);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'},_0x1d3201);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x1d3201);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x1d3201);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'},_0x1d3201);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x1d3201);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 _0x529ea7({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x1d3201);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x529ea7({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x1d3201);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x1d3201);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'},_0x1d3201);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'},_0x1d3201);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'},_0x1d3201);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x265be2;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x217dba,_0x33e871){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x217dba,this['_locale']=_0x33e871;}['getDescriptions'](_0x357c3c){const _0x1fb323=[],_0x4bf2db=new Set(),_0x5df890=new Set();for(let _0x452125=0x0;_0x452125<_0x357c3c['length'];_0x452125++){const _0x16a0a0=_0x357c3c[_0x452125];if(!_0x16a0a0['isInContent'])continue;const _0x43a272=this['_handleCustomCallbackDescription'](_0x16a0a0);if(_0x43a272){if(null!=_0x16a0a0['subType']){if(_0x4bf2db['has'](_0x16a0a0['subType']))continue;_0x4bf2db['add'](_0x16a0a0['subType']);}_0x1fb323['push'](_0x43a272);}else{if('attribute'!=_0x16a0a0['type'])'insertion'!=_0x16a0a0['type']&&'deletion'!=_0x16a0a0['type']||this['_handleInsertRemoveSuggestionDescription'](_0x1fb323,_0x16a0a0,_0x357c3c[_0x452125+0x1]);else{const _0x5bff85=_0x16a0a0['data']['key'];if(_0x5df890['has'](_0x5bff85))continue;_0x5df890['add'](_0x16a0a0['data']['key']),_0x5bff85==m?this['_handleRenameSuggestionDescription'](_0x1fb323,_0x16a0a0):this['_handleAttributeSuggestionDescription'](_0x1fb323,_0x16a0a0);}}}return this['_resolveDescriptionItems'](_0x1fb323);}['registerDescriptionCallback'](_0x5a31bc){this['_customCallbacks']['push'](_0x5a31bc);}['registerElementLabel'](_0x25b69a,_0xd26676,_0x2aa8b2=_0xffa7dc['normal']){'function'==typeof _0x25b69a?_0x155509(this['_itemLabelsCallbacks'],{'matchingCallback':_0x25b69a,'label':_0xd26676,'priority':_0x2aa8b2}):this['_itemLabels']['set'](_0x25b69a,_0xd26676);}['registerAttributeLabel'](_0x3e4494,_0x269c5d){this['_attributeLabels']['set'](_0x3e4494,_0x269c5d);}['getItemLabel'](_0x2b9311,_0x514b04=0x1){let _0x50fb7b;for(const _0x2b8e5f of this['_itemLabelsCallbacks'])if(_0x2b8e5f['matchingCallback'](_0x2b9311)){_0x50fb7b=_0x2b8e5f['label'];break;}return _0x50fb7b||(_0x50fb7b=this['_itemLabels']['get'](_0x2b9311['name'])),_0x50fb7b?_0x50fb7b(_0x514b04):0x1!==_0x514b04?_0x514b04+'\x20'+_0x2b9311['name']+'s':''+_0x2b9311['name'];}['_addDescriptionItems'](_0x32918d,_0x5a8ed1){const _0x2ea6a9=_0x5a8ed1['getFirstRange']()['getWalker'](),_0x965dbd='insertion'==_0x5a8ed1['type']?'add':'remove';for(const _0x1beeca of _0x2ea6a9){const _0x4bbc1e=_0x1beeca['item'],_0x34b0ff=_0x32918d[_0x32918d['length']-0x1];if(_0x4bbc1e['is']('$textProxy'))_0x34b0ff&&_0x34b0ff['type']['indexOf']('Container')>-0x1&&_0x32918d['pop'](),_0x34b0ff&&'text'==_0x34b0ff['type']?_0x34b0ff[_0x965dbd]+=_0x4bbc1e['data']:_0x32918d['push']({'type':'text','add':'add'==_0x965dbd?_0x4bbc1e['data']:'','remove':'remove'==_0x965dbd?_0x4bbc1e['data']:''});else{if(this['_schema']['isObject'](_0x4bbc1e)){const _0x7a0258=_0x4bbc1e;if(_0x34b0ff&&_0x34b0ff['type']['indexOf']('Container')>-0x1&&_0x32918d['pop'](),'elementEnd'==_0x1beeca['type'])continue;_0x34b0ff&&_0x34b0ff['type']==_0x965dbd+'Object'&&_0x34b0ff['element']['name']==_0x7a0258['name']?_0x34b0ff['quantity']++:_0x32918d['push']({'type':_0x965dbd+'Object','element':_0x7a0258,'quantity':0x1}),_0x2ea6a9['skip'](_0x54159e=>!('elementEnd'==_0x54159e['type']&&_0x54159e['item']==_0x4bbc1e));}else{if(this['_schema']['checkChild'](_0x4bbc1e,'$text')||_0x4bbc1e['is']('element','softBreak')){const _0x57984b=_0x4bbc1e;if('add'==_0x965dbd&&'elementStart'==_0x1beeca['type']||'remove'==_0x965dbd&&'elementEnd'==_0x1beeca['type'])continue;if(_0x34b0ff&&-0x1==_0x34b0ff['type']['indexOf']('Container')){'text'==_0x34b0ff['type']&&(_0x34b0ff[_0x965dbd]+='\x0a');continue;}let _0x588bbf;if(_0x588bbf='add'==_0x965dbd?_0x57984b['nextSibling']&&!this['_schema']['isObject'](_0x57984b['nextSibling'])?_0x57984b['nextSibling']:null:_0x57984b['previousSibling']&&!this['_schema']['isObject'](_0x57984b['previousSibling'])?_0x57984b['previousSibling']:null,_0x57984b['isEmpty']||_0x588bbf&&_0x588bbf['isEmpty']){const _0x105b55=_0x588bbf&&_0x588bbf['isEmpty']?_0x588bbf:_0x57984b;_0x34b0ff&&_0x34b0ff['type']==_0x965dbd+'EmptyContainer'&&_0x34b0ff['element']['name']==_0x105b55['name']?_0x34b0ff['quantity']++:_0x32918d['push']({'type':_0x965dbd+'EmptyContainer','element':_0x105b55,'quantity':0x1});}else _0x32918d['push']({'type':_0x965dbd+'Container','element':_0x57984b});}}}}}['_resolveDescriptionItems'](_0x48a862){const _0x401033=this['_locale'],_0x593530=[],_0x8b8a9f=[],_0x8f3321=[];for(const _0x2a9a57 of _0x48a862)switch(_0x2a9a57['type']){case'text':if(_0x2a9a57['add']=_0x2a9a57['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x2a9a57['remove']=_0x2a9a57['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x2a9a57['add']&&''!=_0x2a9a57['remove']){_0x593530['push']({'type':'replace','content':o(_0x401033,'REPLACE_TEXT',['\x22'+_0x2a9a57['remove']+'\x22','\x22'+_0x2a9a57['add']+'\x22'])});continue;}if(null!=_0x2a9a57['add']['match'](/^ +$/)){_0x593530['push']({'type':'insertion','content':o(_0x401033,'*Insert:*\x20%0',o(_0x401033,'ELEMENT_SPACE',_0x2a9a57['add']['length']))});continue;}if(null!=_0x2a9a57['remove']['match'](/^ +$/)){_0x593530['push']({'type':'deletion','content':o(_0x401033,'*Remove:*\x20%0',o(_0x401033,'ELEMENT_SPACE',_0x2a9a57['remove']['length']))});continue;}if(''!=_0x2a9a57['add']){_0x593530['push']({'type':'insertion','content':o(_0x401033,'*Insert:*\x20%0','\x22'+_0x2a9a57['add']+'\x22')});continue;}_0x593530['push']({'type':'deletion','content':o(_0x401033,'*Remove:*\x20%0','\x22'+_0x2a9a57['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x593530['push']({'type':'insertion','content':o(_0x401033,'*Insert:*\x20%0',this['getItemLabel'](_0x2a9a57['element'],_0x2a9a57['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x593530['push']({'type':'deletion','content':o(_0x401033,'*Remove:*\x20%0',this['getItemLabel'](_0x2a9a57['element'],_0x2a9a57['quantity']))});continue;case'addContainer':_0x593530['push']({'type':'insertion','content':o(_0x401033,'*Split:*\x20%0',this['getItemLabel'](_0x2a9a57['element'],_0x2a9a57['quantity']))});continue;case'removeContainer':_0x593530['push']({'type':'deletion','content':o(_0x401033,'*Merge:*\x20%0',this['getItemLabel'](_0x2a9a57['element'],_0x2a9a57['quantity']))});continue;case'addFormat':_0x8b8a9f['push'](_0x2a9a57['key']);continue;case'removeFormat':_0x8f3321['push'](_0x2a9a57['key']);continue;default:_0x593530['push'](_0x2a9a57);}if(_0x8b8a9f['length']){const _0x77bbde=_0x8b8a9f['map'](_0x4fd500=>this['_attributeLabels']['has'](_0x4fd500)?this['_attributeLabels']['get'](_0x4fd500):_0x4fd500)['join'](',\x20');_0x593530['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x77bbde)});}if(_0x8f3321['length']){const _0x391438=_0x8f3321['map'](_0x326853=>this['_attributeLabels']['has'](_0x326853)?this['_attributeLabels']['get'](_0x326853):_0x326853)['join'](',\x20');_0x593530['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x391438)});}return _0x593530;}['_handleCustomCallbackDescription'](_0x571ad9){for(const _0x1e8962 of this['_customCallbacks']){const _0xce907d=_0x1e8962(_0x571ad9);if(_0xce907d&&'type'in _0xce907d)return _0xce907d;}}['_handleAttributeSuggestionDescription'](_0xbcbb60,_0x4c5103){const _0x6d54bd=_0x4c5103['data'],_0x598397=void 0x0===_0x6d54bd['newValue']?'removeFormat':'addFormat';_0xbcbb60['push']({'type':_0x598397,'key':_0x6d54bd['key']});}['_handleRenameSuggestionDescription'](_0x3764ca,_0x38d6e5){_0x3764ca['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x38d6e5['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x4f6891,_0x43dbe6,_0x527f9e){if(this['_addDescriptionItems'](_0x4f6891,_0x43dbe6),_0x527f9e&&_0x527f9e['getFirstRange']()&&!_0x43dbe6['getFirstRange']()['end']['isEqual'](_0x527f9e['getFirstRange']()['start'])){const _0x3d27d2=_0x4f6891[_0x4f6891['length']-0x1],_0x2d4278='insertion'==_0x43dbe6['type']?'add':'remove';_0x3d27d2&&'text'==_0x3d27d2['type']&&(_0x3d27d2[_0x2d4278]+='\x0a');}}}class U extends _0x2e0600{['afterInit'](){const _0x290537=this['editor'],_0x561ed7=_0x290537['plugins']['get']('TrackChangesEditing');_0x290537['commands']['get']('showAIAssistant')&&_0x561ed7['enableCommand']('showAIAssistant');}}class V extends _0x2e0600{['afterInit'](){const _0x14f071=this['editor'],_0x224b8c=_0x14f071['locale'];if(!_0x14f071['plugins']['has']('AlignmentEditing'))return;const _0x58a244=_0x14f071['plugins']['get']('TrackChangesEditing');_0x58a244['enableDefaultAttributesIntegration']('alignment'),_0x58a244['registerBlockAttribute']('alignment'),_0x58a244['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x224b8c,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x26a48f=this['editor'],_0x464e2f=_0x26a48f['locale'];_0x26a48f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x209f39=>{if('formatBlock'!=_0x209f39['type'])return;const {data:_0x5ba7cc}=_0x209f39;if(_0x5ba7cc&&'alignment'==_0x5ba7cc['commandName']){const _0x1e922f=_0x5ba7cc['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x464e2f,'*Format:*\x20%0',function(_0x214f18){switch(_0x214f18){case'left':return o(_0x464e2f,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x464e2f,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x464e2f,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x464e2f,'FORMAT_JUSTIFY_TEXT');}}(_0x1e922f))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x2e0600{['afterInit'](){const _0x331e8a=this['editor'],_0x57ae4c=_0x331e8a['plugins']['get']('TrackChangesEditing'),_0x6a27b3=_0x331e8a['locale'];for(const _0x38cced of ti){if(!_0x331e8a['plugins']['has'](_0x38cced))continue;const _0x42cd04=_0x38cced['slice'](0x0,-0x7)['toLowerCase'](),_0x346999='FORMAT_'+_0x42cd04['toUpperCase']();_0x57ae4c['enableDefaultAttributesIntegration'](_0x42cd04),_0x57ae4c['registerInlineAttribute'](_0x42cd04),_0x57ae4c['descriptionFactory']['registerAttributeLabel'](_0x42cd04,o(_0x6a27b3,_0x346999));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xf8f15d=this['editor'],_0xfd491b=_0xf8f15d['locale'],_0xd1a704=_0xf8f15d['plugins']['get']('TrackChangesEditing');function _0x4f0337(_0x43aa20,_0xdce536){_0xd1a704['descriptionFactory']['registerDescriptionCallback'](_0x1e834c=>{if('formatInline'!=_0x1e834c['type'])return;const {data:_0x301748}=_0x1e834c;return _0x301748&&_0x301748['commandName']===_0x43aa20?_0x301748['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xfd491b,'*Format:*\x20%0',_0xdce536)}:{'type':'format','content':o(_0xfd491b,'*Remove\x20format:*\x20%0',_0xdce536)}:void 0x0;});}_0x4f0337('bold',o(_0xfd491b,'FORMAT_BOLD')),_0x4f0337('italic',o(_0xfd491b,'FORMAT_ITALIC')),_0x4f0337('underline',o(_0xfd491b,'FORMAT_UNDERLINE')),_0x4f0337('code',o(_0xfd491b,'FORMAT_CODE')),_0x4f0337('strikethrough',o(_0xfd491b,'FORMAT_STRIKETHROUGH')),_0x4f0337('subscript',o(_0xfd491b,'FORMAT_SUBSCRIPT')),_0x4f0337('superscript',o(_0xfd491b,'FORMAT_SUPERSCRIPT'));}}class F extends _0x2e0600{['afterInit'](){const _0x2903e3=this['editor'],_0x1998e8=_0x2903e3['locale'];if(!_0x2903e3['plugins']['has']('BlockQuoteEditing'))return;const _0x4a9891=_0x2903e3['plugins']['get']('TrackChangesEditing'),_0x357e23=this['editor']['commands']['get']('blockQuote');_0x4a9891['enableCommand']('blockQuote',(_0x5a43e3,_0x1dc276={})=>{const _0x512d3d=this['editor']['model']['document']['selection'],_0xdb3124=_0x1dc276&&void 0x0!==_0x1dc276['forceValue']?_0x1dc276['forceValue']:!_0x357e23['value'];let _0x427608=[];if(_0xdb3124){const _0x54d3d2=Array['from'](_0x512d3d['getSelectedBlocks']())['filter'](_0x412f80=>oo(_0x412f80)||function(_0x4fc3a7,_0x417994){const _0x36a4c4=_0x417994['checkChild'](_0x4fc3a7['parent'],'blockQuote'),_0x3996a6=_0x417994['checkChild'](['$root','blockQuote'],_0x4fc3a7);return _0x36a4c4&&_0x3996a6;}(_0x412f80,this['editor']['model']['schema']));_0x427608=to(_0x54d3d2,_0x2903e3['model']);}else{const _0x25f9c0=Array['from'](_0x512d3d['getSelectedBlocks']())['filter'](_0x3d8541=>oo(_0x3d8541));_0x427608=to(_0x25f9c0,_0x2903e3['model']);}_0x2903e3['model']['change'](()=>{for(const _0x544660 of _0x427608)_0x4a9891['markBlockFormat'](_0x544660,{'commandName':'blockQuote','commandParams':[{'forceValue':_0xdb3124}]});});}),_0x4a9891['descriptionFactory']['registerDescriptionCallback'](_0x5ba1da=>{const {data:_0x189eb8}=_0x5ba1da;if(_0x189eb8&&'blockQuote'==_0x189eb8['commandName']){const _0x3a10d2=o(_0x1998e8,'ELEMENT_BLOCK_QUOTE');return _0x189eb8['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1998e8,'*Set\x20format:*\x20%0',_0x3a10d2)}:{'type':'format','content':o(_0x1998e8,'*Remove\x20format:*\x20%0',_0x3a10d2)};}});}}function oo(_0x3dc04f){return'blockQuote'==_0x3dc04f['parent']['name'];}class L extends _0x2e0600{['afterInit'](){const _0x22748d=this['editor'],_0x517618=_0x22748d['locale'],_0x1dc7e4=_0x22748d['plugins']['get']('TrackChangesEditing');_0x22748d['plugins']['has']('BookmarkEditing')&&(_0x1dc7e4['enableCommand']('insertBookmark'),_0x1dc7e4['enableDefaultAttributesIntegration']('updateBookmark'),_0x1dc7e4['registerBlockAttribute']('bookmarkId'),_0x1dc7e4['descriptionFactory']['registerDescriptionCallback'](_0xedf6bc=>{if('insertion'!=_0xedf6bc['type']&&'deletion'!=_0xedf6bc['type']&&'attribute'!=_0xedf6bc['type'])return;const _0x39e3dd=_0xedf6bc['getContainedElement']();if(null==_0x39e3dd)return;if(!_0x39e3dd['is']('element','bookmark'))return;const _0x21c8a2=_0x39e3dd['getAttribute']('bookmarkId');if('insertion'==_0xedf6bc['type'])return{'type':'insertion','content':o(_0x517618,'*Insert:*\x20%0','\x22'+_0x21c8a2+'\x22\x20'+o(_0x517618,'ELEMENT_BOOKMARK'))};if('deletion'==_0xedf6bc['type'])return{'type':'deletion','content':o(_0x517618,'*Remove:*\x20%0','\x22'+_0x21c8a2+'\x22\x20'+o(_0x517618,'ELEMENT_BOOKMARK'))};const {data:_0x3c16b7}=_0xedf6bc;if(!_0x3c16b7||'bookmarkId'!=_0x3c16b7['key'])return;return{'type':'format','content':o(_0x517618,'*Set\x20bookmark:*\x20%0','\x22'+_0x3c16b7['newValue']+'\x22')};}));}}class J extends _0x2e0600{['afterInit'](){const _0x58bcc8=this['editor'];_0x58bcc8['plugins']['has']('CaseChange')&&(_0x58bcc8['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x58bcc8['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x58bcc8['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x2e0600{['afterInit'](){const _0x43658e=this['editor'];_0x43658e['commands']['get']('ckbox')&&_0x43658e['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x2e0600{['afterInit'](){const _0x1ab686=this['editor'];if(!_0x1ab686['plugins']['has']('CodeBlock'))return;const _0x1a7b28=_0x1ab686['plugins']['get']('TrackChangesEditing'),_0x4011b6=_0x1ab686['locale'],_0x169427=_0x1ab686['config']['get']('codeBlock')['languages'],_0x53de97=_0x1ab686['commands']['get']('codeBlock');_0x1a7b28['enableCommand']('indentCodeBlock'),_0x1a7b28['enableCommand']('outdentCodeBlock'),_0x1a7b28['enableCommand']('codeBlock',(_0x5cceb3,_0x37a2b9={})=>{const _0x508098=_0x1ab686['model'],_0x4d40de=_0x1ab686['model']['document']['selection'],_0x251479=_0x37a2b9&&void 0x0!==_0x37a2b9['forceValue']?_0x37a2b9['forceValue']:!_0x53de97['value'];let _0x10fab6;_0x37a2b9['language']||(_0x37a2b9['language']=_0x169427[0x0]['language']),_0x10fab6=_0x251479?Array['from'](_0x4d40de['getSelectedBlocks']())['filter'](_0x5a87fa=>eo(_0x5a87fa)||function(_0x27dcd8,_0x262330){if(_0x27dcd8['is']('rootElement')||_0x262330['isLimit'](_0x27dcd8))return!0x1;return _0x262330['checkChild'](_0x27dcd8['parent'],'codeBlock');}(_0x5a87fa,_0x508098['schema'])):Array['from'](_0x4d40de['getSelectedBlocks']())['filter'](_0xcdaa19=>eo(_0xcdaa19));const _0x31368c=to(_0x10fab6,_0x508098);_0x508098['change'](()=>{for(const _0x1300e2 of _0x31368c)_0x1a7b28['markBlockFormat'](_0x1300e2,{'commandName':'codeBlock','commandParams':[{..._0x37a2b9,'forceValue':_0x251479}],'formatGroupId':'blockName'});});}),(_0x1a7b28['descriptionFactory']['registerElementLabel']('codeBlock',_0x559db5=>o(_0x4011b6,'ELEMENT_CODE_BLOCK',_0x559db5)),_0x1a7b28['descriptionFactory']['registerDescriptionCallback'](_0x210c9d=>{if('formatBlock'!=_0x210c9d['type'])return;const _0x5261d1=_0x4011b6['t'],{data:_0x3607c9}=_0x210c9d;if(!_0x3607c9||'codeBlock'!=_0x3607c9['commandName'])return;const _0x1520d8=_0x3607c9['commandParams'][0x0]['language'],_0x1a5a29=_0x5261d1(_0x169427['find'](_0xf619c2=>_0xf619c2['language']===_0x1520d8)['label'])['toLowerCase']();return _0x3607c9['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4011b6,'*Set\x20format:*\x20%0',o(_0x4011b6,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x1a5a29+')')}:{'type':'format','content':o(_0x4011b6,'*Remove\x20format:*\x20%0',o(_0x4011b6,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x16cbed){return'codeBlock'==_0x16cbed['name'];}class z extends _0x2e0600{['afterInit'](){const _0x16d43b=this['editor'];if(!_0x16d43b['plugins']['has']('CommentsEditing'))return;_0x16d43b['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x1ced4a,_0x355d37,_0x5ca6a8){const _0x4b842e=[];for(const _0x30e482 of _0x355d37['getItems']())_0x30e482['hasAttribute'](_0x1ced4a)&&_0x4b842e['push'](_0x5ca6a8['createRangeOn'](_0x30e482));return _0x4b842e;}function De(_0x2b8868,_0x2c6098,{showActiveMarker:_0x4c5db2=!0x0}={}){const _0x5f9113=_0x2b8868['plugins']['get']('TrackChangesEditing');return(_0x3ee509,_0x3bbff0,_0x3396a2)=>{if(!_0x3396a2['consumable']['test'](_0x3bbff0['markerRange'],_0x3ee509['name']))return;const _0x7fd851=_0x3bbff0['markerRange']['getWalker'](),_0x278592=_0x3bbff0['markerRange']['start'],_0x55f7c8=_0x2b8868['model']['schema'];let _0x514d53=null,_0x213831=null,_0x44bf40=!0x1,_0x27e866=!0x1;for(const _0x3d62f5 of _0x7fd851){const _0x11604d=_0x3d62f5['item'];_0x44bf40=_0x44bf40||_0x55f7c8['isContent'](_0x11604d);const _0x2b24bd=_0x3396a2['mapper']['toViewElement'](_0x11604d);if(_0x2b24bd&&_0x2b24bd['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3d62f5['type']&&(_0x55f7c8['isBlock'](_0x11604d)&&!_0x55f7c8['isLimit'](_0x11604d)&&(_0x11604d['nextSibling']||_0x278592['isAtEnd']?_0x514d53&&_0x514d53['parent']==_0x11604d||(_0x514d53=_0x11604d,_0x1d0f8a(_0x3d62f5['previousPosition']),_0x27e866=!0x0):_0x213831=_0x213831||_0x3d62f5['previousPosition']));}function _0x1d0f8a(_0x30f58d){const {authorId:_0x6dee33}=_0x5f9113['_splitMarkerName'](_0x3bbff0['markerName']),_0xe25a94=_0x3396a2['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2c6098,'data-author-id':_0x6dee33}),_0x5d9fdc=_0x3396a2['mapper']['toViewPosition'](_0x30f58d);_0x4c5db2&&_0x5f9113['activeMarkers']['includes'](_0x3bbff0['markerName'])&&_0x3396a2['writer']['addClass']('ck-suggestion-marker--active',_0xe25a94),_0x3396a2['writer']['insert'](_0x5d9fdc,_0xe25a94),_0x3396a2['mapper']['bindElementToMarker'](_0xe25a94,_0x3bbff0['markerName']);}_0x44bf40||_0x27e866||!_0x213831||_0x1d0f8a(_0x213831);};}class K extends _0x2e0600{static get['requires'](){return[_0x3f742a];}['init'](){const _0x5e37bd=this['editor'],_0x82122b=_0x5e37bd['plugins']['get']('TrackChangesEditing');_0x82122b['enableCommand']('delete');const _0x4e29d2=_0x5e37bd['commands']['get']('deleteForward');_0x82122b['enableCommand']('deleteForward',(_0x2d3c35,_0x427bd2={})=>{const _0x88cad7=_0x5e37bd['model']['createSelection'](_0x5e37bd['model']['document']['selection']);_0x88cad7['isCollapsed']&&_0x5e37bd['model']['modifySelection'](_0x88cad7,{'direction':'forward','unit':_0x427bd2['unit']});const _0x34b773=_0x88cad7['getFirstRange'](),_0x10ca2f=_0x1200ae['fromRange'](_0x34b773);let _0xe2e3c1;_0x2d3c35(_0x427bd2),_0xe2e3c1='$graveyard'==_0x10ca2f['root']['rootName']?_0x5e37bd['model']['createRange'](_0x34b773['start']):_0x5e37bd['model']['createRange'](_0x10ca2f['start'],_0x10ca2f['end']),_0x10ca2f['detach'](),_0x5e37bd['model']['enqueueChange'](_0x4e29d2['buffer']['batch'],_0xe0333e=>{_0x4e29d2['buffer']['lock'](),_0xe0333e['setSelection'](_0xe0333e['createRange'](_0xe2e3c1['end'])),_0x4e29d2['buffer']['unlock']();});}),_0x5e37bd['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x5e37bd,'merge'),{'priority':'high'}),_0x5e37bd['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x3059a7,_0x567117,_0x5aba88)=>{_0x5aba88['options']['showSuggestionHighlights']&&De(_0x5e37bd,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x3059a7,_0x567117,_0x5aba88);},{'priority':'high'}),_0x5e37bd['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x1c2dfc,_0x101ec7,_0x318ed1)=>{const _0x23d0bb=_0x318ed1['mapper']['markerNameToElements'](_0x101ec7['markerName']);if(_0x23d0bb){for(const _0x5d3d5b of _0x23d0bb)_0x5d3d5b['is']('uiElement')&&(_0x318ed1['mapper']['unbindElementFromMarkerName'](_0x5d3d5b,_0x101ec7['markerName']),_0x318ed1['writer']['remove'](_0x5d3d5b));}},{'priority':'high'});}}class W extends _0x2e0600{['afterInit'](){const _0x3c8bb3=this['editor'];if(!_0x3c8bb3['plugins']['has']('ListEditing'))return;const _0x1ff684=_0x3c8bb3['locale'],_0x19b2d6=_0x3c8bb3['plugins']['get']('TrackChangesEditing'),_0x2cb101=_0x3c8bb3['plugins']['has']('TodoListEditing'),_0x84f3b=!!_0x3c8bb3['config']['get']('list.multiBlock');function _0xe39364(_0x452869){return{'type':'format','content':''+o(_0x1ff684,'*Set\x20format:*\x20%0',_0x452869)};}function _0x49b532(_0x16ebbc){return{'type':'format','content':''+o(_0x1ff684,'*Remove\x20format:*\x20%0',_0x16ebbc)};}_0x19b2d6['enableDefaultAttributesIntegration']('numberedList'),_0x19b2d6['enableDefaultAttributesIntegration']('bulletedList'),_0x19b2d6['enableDefaultAttributesIntegration']('customNumberedList'),_0x19b2d6['enableDefaultAttributesIntegration']('customBulletedList'),_0x19b2d6['enableDefaultAttributesIntegration']('indentList'),_0x19b2d6['enableDefaultAttributesIntegration']('outdentList'),_0x19b2d6['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x19b2d6['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x19b2d6['registerBlockAttribute']('listItemId'),_0x19b2d6['registerBlockAttribute']('listType'),_0x19b2d6['registerBlockAttribute']('listIndent'),_0x84f3b&&(_0x19b2d6['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x19b2d6['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x2cb101&&(_0x19b2d6['enableDefaultAttributesIntegration']('todoList'),_0x19b2d6['enableDefaultAttributesIntegration']('checkTodoList'),_0x19b2d6['registerBlockAttribute']('todoListChecked'),_0x19b2d6['descriptionFactory']['registerDescriptionCallback'](_0x49bbc4=>{const {data:_0x27938d}=_0x49bbc4;if(_0x27938d&&'todoListChecked'==_0x27938d['key'])return{'type':'format','content':_0x27938d['newValue']?o(_0x1ff684,'*Check\x20item*'):o(_0x1ff684,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x2e729e=>{if(_0x2e729e['batch']['isUndo'])return!0x1;let _0x50d6ab=!0x1;const _0xca2976=_0x19b2d6['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x27991a=>'todoListChecked'===_0x19b2d6['_getAttributeKey'](_0x27991a));for(const _0x349106 of _0xca2976){'todo'!=_0x349106['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x19b2d6['_findSuggestions'](_0x349106['getFirstRange'](),'attribute')['find'](_0x5cea32=>'listType'===_0x19b2d6['_getAttributeKey'](_0x5cea32['suggestion']))||(_0x2e729e['removeMarker'](_0x349106['getFirstMarker']()),_0x50d6ab=!0x0));}return _0x50d6ab;})),_0x19b2d6['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x1ff684,'FORMAT_INDENT'));const _0x51364f={'type':'format','content':''};_0x19b2d6['descriptionFactory']['registerDescriptionCallback'](_0x138b1c=>{const {data:_0x17834a}=_0x138b1c;if(!_0x17834a||'listType'!=_0x17834a['key'])return;let _0x508503=_0x138b1c['head'];for(;_0x508503;){if(_0x508503['data']&&(('listStyle'==_0x508503['data']['key']||'listMarkerStyle'==_0x508503['data']['key'])&&(_0x508503['data']['newValue']&&'default'!=_0x508503['data']['newValue']||'default'!=_0x508503['data']['oldValue']&&!_0x17834a['newValue'])||!_0x84f3b&&_0x508503['data']['key']==m))return _0x51364f;_0x508503=_0x508503['next'];}if(null==_0x17834a['newValue'])switch(_0x17834a['oldValue']){case'bulleted':return _0x49b532(o(_0x1ff684,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x49b532(o(_0x1ff684,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x49b532(o(_0x1ff684,'ELEMENT_TODO_LIST'));}switch(_0x17834a['newValue']){case'bulleted':return _0xe39364(o(_0x1ff684,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xe39364(o(_0x1ff684,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xe39364(o(_0x1ff684,'ELEMENT_TODO_LIST'));}}),_0x19b2d6['descriptionFactory']['registerDescriptionCallback'](_0x4bef2b=>{const {data:_0x2d590a}=_0x4bef2b;if(_0x2d590a&&'listIndent'==_0x2d590a['key'])return null==_0x2d590a['newValue']||null==_0x2d590a['oldValue']&&0x0==_0x2d590a['newValue']?_0x51364f:void 0x0;}),_0x19b2d6['descriptionFactory']['registerDescriptionCallback'](_0x308ff3=>{if('attribute'!=_0x308ff3['type'])return;const {data:_0x52b2ee}=_0x308ff3;if(!_0x52b2ee||'listItemId'!=_0x52b2ee['key'])return;const _0x3b331a=Te(_0x308ff3);return'newValue'==_0x3b331a?{'type':'format','content':o(_0x1ff684,'*Merge:*\x20list\x20item')}:'oldValue'==_0x3b331a?{'type':'format','content':o(_0x1ff684,'*Split:*\x20list\x20item')}:_0x51364f;}),_0x3c8bb3['model']['document']['registerPostFixer'](_0x28bf2d=>this['listItemIdFixer'](_0x28bf2d)),_0x3c8bb3['model']['document']['registerPostFixer'](_0x43fbb5=>this['noTrackChangesFixer'](_0x43fbb5)),_0x3c8bb3['model']['document']['on']('change:data',(_0x42a948,_0x569431)=>{if(_0x569431['isUndo']||!_0x569431['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x54b69d){if(_0x54b69d['batch']['isUndo']||!_0x54b69d['batch']['isLocal'])return!0x1;let _0x583bcd=!0x1;const _0x5e982d=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x28efbd=>_0x28efbd['data']&&'listItemId'==_0x28efbd['data']['key'])['filter'](_0x4845a3=>_0x4845a3['data']['newValue']&&_0x4845a3['data']['oldValue']);for(const _0x23ecd7 of _0x5e982d)Te(_0x23ecd7)||(_0x54b69d['removeMarker'](_0x23ecd7['getFirstMarker']()),_0x583bcd=!0x0);return _0x583bcd;}['noTrackChangesFixer'](_0x18bd0b){if(_0x18bd0b['batch']['isUndo']||!_0x18bd0b['batch']['isLocal'])return!0x1;const _0x2cae98=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x2cae98['trackChangesCommand']['value'])return!0x1;let _0x4e9973=!0x1;const _0x104ccc=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x26281a=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0xd8b0f3=>'attribute'==_0xd8b0f3['type'])['filter'](_0xdfe5fe=>_0x104ccc['includes'](_0xdfe5fe['attributeKey']));if(0x0==_0x26281a['length'])return _0x4e9973;for(const _0x3623f7 of _0x26281a){const _0xa4d3dd=_0x2cae98['_findSuggestions'](_0x3623f7['range'],'attribute')['filter'](_0x1f74ee=>!_0x1f74ee['meta']['isNextTo'])['map'](_0x30a112=>_0x30a112['suggestion'])['filter'](_0x17fb30=>{const _0x17343c=_0x2cae98['_getAttributeKey'](_0x17fb30);return _0x104ccc['includes'](_0x17343c);});if(_0xa4d3dd['length']){for(const _0x4bbb52 of _0xa4d3dd)_0x18bd0b['removeMarker'](_0x4bbb52['getFirstMarker']());_0x4e9973=!0x0;}}return _0x4e9973;}['assureChains'](){const _0x4c2c1e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1e4211=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x3f15bb;const _0x28288b=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x41f6b1=>{if(_0x41f6b1['data']['oldRange']||!_0x41f6b1['data']['newRange'])return null;if(!_0x41f6b1['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x7a6527}=_0x4c2c1e['_splitMarkerName'](_0x41f6b1['name']);if(!_0x4c2c1e['hasSuggestion'](_0x7a6527))return null;const _0x23ce5f=_0x4c2c1e['getSuggestion'](_0x7a6527);return _0x1e4211['includes'](_0x23ce5f['data']['key']);})['map'](_0x52637b=>{const {id:_0x2c62c5}=_0x4c2c1e['_splitMarkerName'](_0x52637b['name']),_0x11324d=_0x4c2c1e['getSuggestion'](_0x2c62c5);return _0x3f15bb=_0x11324d['attributes']['groupId'],_0x11324d['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x28288b['size'])return;const _0x535942=_0x4c2c1e['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5e3fde=>'attribute'==_0x5e3fde['type']&&_0x5e3fde['data']&&_0x1e4211['includes'](_0x5e3fde['data']['key'])&&_0x5e3fde['attributes']['groupId']!=_0x3f15bb)['map'](_0x1b0931=>({'listItem':_0x1b0931['getFirstRange']()['start']['nodeAfter'],'groupId':_0x1b0931['attributes']['groupId']})),_0x50b7f0=new Set();for(const {groupId:_0x1a3be5,listItem:_0xc59330}of _0x535942)_0x28288b['has'](_0xc59330)&&_0x50b7f0['add'](_0x1a3be5);for(const _0x2d3f8a of _0x4c2c1e['getSuggestions']())_0x50b7f0['has'](_0x2d3f8a['attributes']['groupId'])&&_0x2d3f8a['setAttribute']('groupId',_0x3f15bb);}['_supportLegacySuggestions'](){const _0x1d61f4=this['editor'],_0x2d940d=_0x1d61f4['locale'],_0x2044a1=_0x1d61f4['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x2044a1['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x478d38,_0x1ebc4f){const _0x463ef3=[];for(let _0x323b0b of _0x478d38)_0x323b0b['start']['nodeAfter']===_0x323b0b['end']['parent']&&(_0x323b0b=_0x1d61f4['model']['createRange'](_0x1d61f4['model']['createPositionAt'](_0x323b0b['start']['nodeAfter'],0x0))),_0x463ef3['push'](_0x323b0b);_0x1d61f4['model']['change'](_0x4f89f7=>{const _0x431e95=_0x1d61f4['model']['document']['selection'],_0x1d6562=Array['from'](_0x431e95['getRanges']())['map'](_0x393d85=>_0x1200ae['fromRange'](_0x393d85));_0x4f89f7['setSelection'](_0x463ef3),_0x1d61f4['commands']['get'](_0x1ebc4f['commandName'])['refresh'](),_0x1ebc4f['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x1d61f4['execute'](_0x1ebc4f['commandName'],..._0x1ebc4f['commandParams']),_0x4f89f7['setSelection'](_0x1d6562);for(const _0x5a7167 of _0x1d6562)_0x5a7167['detach']();});}),_0x2044a1['descriptionFactory']['registerElementLabel'](function(_0x3ba480){const _0x29e254=!_0x1d61f4['model']['schema']['isObject'](_0x3ba480),_0xb7924f=_0x3ba480['previousSibling'],_0x66c644=_0x3ba480['nextSibling'],_0x1bf1f6=_0x3ba480['getAttribute']('listItemId'),_0x2af26d=!_0xb7924f||_0xb7924f['getAttribute']('listItemId')!==_0x1bf1f6,_0x23af1d=!_0x66c644||_0x66c644['getAttribute']('listItemId')!==_0x1bf1f6;return _0x29e254&&Boolean(_0x1bf1f6)&&_0x2af26d&&_0x23af1d;},_0x5053f1=>o(_0x2d940d,'ELEMENT_LIST_ITEM',_0x5053f1));}['_registerLegacyDescription'](){const _0x16c323=this['editor'],_0x121f1d=_0x16c323['locale'];function _0x2fe687(_0x4c0a29){const _0x563a0e=_0x16c323['commands']['get']('bulletedList')['value'],_0x3ab993=_0x16c323['commands']['get']('numberedList')['value'];return'numberedList'===_0x4c0a29?_0x563a0e:_0x3ab993;}_0x16c323['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0xf8b0ea){if('formatBlock'!=_0xf8b0ea['type'])return;const {data:_0x224e54}=_0xf8b0ea;if(!_0x224e54)return;let _0x2640d0,_0x4eda40,_0x867544,_0x25ea17;switch(_0x224e54['commandName']){case'bulletedList':_0x867544=_0x224e54['commandParams'][0x0]['forceValue'],_0x25ea17=_0x2fe687(_0x224e54['commandName']),_0x2640d0=_0x867544?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x25ea17&&_0x16c323['config']['get']('list.multiBlock')||(_0x2640d0='*Change\x20to:*\x20%0'),_0x4eda40={'type':'format','content':o(_0x121f1d,_0x2640d0,o(_0x121f1d,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x867544=_0x224e54['commandParams'][0x0]['forceValue'],_0x25ea17=_0x2fe687(_0x224e54['commandName']),_0x2640d0=_0x867544?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x25ea17&&_0x16c323['config']['get']('list.multiBlock')||(_0x2640d0='*Change\x20to:*\x20%0'),_0x4eda40={'type':'format','content':o(_0x121f1d,_0x2640d0,o(_0x121f1d,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x2640d0='*Indent:*\x20%0',_0x4eda40={'type':'format','content':o(_0x121f1d,_0x2640d0,o(_0x121f1d,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x2640d0=function(_0x5c4f5e){const _0x156dc4=_0x5c4f5e['getFirstRange']();let _0x5f23e0=_0x156dc4['start']['nodeAfter'];for(;_0x5f23e0&&_0x156dc4['containsItem'](_0x5f23e0);){if(_0x5f23e0['getAttribute']('listIndent')>0x0)return!0x1;_0x5f23e0=_0x5f23e0['nextSibling'];}return!0x0;}(_0xf8b0ea)?o(_0x121f1d,'*Format:*\x20remove\x20from\x20%0',o(_0x121f1d,function(_0x5cd9bd){return'ELEMENT_'+_0x5cd9bd['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0xf8b0ea))):o(_0x121f1d,'*Outdent:*\x20%0',o(_0x121f1d,'ELEMENT_LIST_ITEM')),_0x4eda40={'type':'format','content':_0x2640d0};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x224e54['multipleBlocks']&&(_0x2640d0='*Merge:*\x20%0',_0x4eda40={'type':'deletion','content':o(_0x121f1d,_0x2640d0,o(_0x121f1d,'ELEMENT_LIST_ITEM'))});}return _0x4eda40;});}}function Te(_0xa56162){let _0x25c47e=_0xa56162['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x25c47e;){const _0x3cb1d5=_0x25c47e['getAttribute']('listItemId');if(!_0x3cb1d5)return!0x1;if(_0x3cb1d5==_0xa56162['data']['newValue'])return'newValue';if(_0x3cb1d5==_0xa56162['data']['oldValue'])return'oldValue';_0x25c47e=_0x25c47e['previousSibling'];}return!0x1;}class Se extends _0x2e0600{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x5a11eb=this['editor']['config']['get']('list.properties'),_0x268095=this['editor']['plugins']['get']('TrackChangesEditing');_0x5a11eb['styles']&&(_0x268095['enableDefaultAttributesIntegration']('listStyle'),_0x268095['registerBlockAttribute']('listStyle')),_0x5a11eb['reversed']&&(_0x268095['enableDefaultAttributesIntegration']('listReversed'),_0x268095['registerBlockAttribute']('listReversed')),_0x5a11eb['startIndex']&&(_0x268095['enableDefaultAttributesIntegration']('listStart'),_0x268095['registerBlockAttribute']('listStart'));const _0x2d74a2={'type':'format','content':''};_0x268095['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x462243=this['editor']['locale'];_0x268095['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x462243,'FORMAT_LIST_REVERSED')),_0x268095['descriptionFactory']['registerDescriptionCallback'](_0x37daf0=>{const {data:_0x2caa57}=_0x37daf0;if(_0x2caa57&&'listReversed'==_0x2caa57['key'])return null==_0x2caa57['newValue']||0x0==_0x2caa57['newValue']&&null==_0x2caa57['oldValue']?_0x2d74a2:void 0x0;}),_0x268095['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x462243,'FORMAT_LIST_START')),_0x268095['descriptionFactory']['registerDescriptionCallback'](_0x2840d4=>{const {data:_0x1da6b4}=_0x2840d4;if(_0x1da6b4&&'listStart'==_0x1da6b4['key'])return null==_0x1da6b4['newValue']||0x1==_0x1da6b4['newValue']&&null==_0x1da6b4['oldValue']?_0x2d74a2:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x38add2=>{if(_0x38add2['batch']['isUndo'])return!0x1;let _0x572d55=!0x1;const _0x5a42c0=_0x268095['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3ef185=>{const _0x41922e=_0x268095['_getAttributeKey'](_0x3ef185);return'listStart'==_0x41922e||'listReversed'==_0x41922e;});for(const _0x4d67b5 of _0x5a42c0){const _0x5480b0=_0x4d67b5['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x5480b0||'customNumbered'==_0x5480b0)continue;_0x268095['_findSuggestions'](_0x4d67b5['getFirstRange'](),'attribute')['find'](_0x228796=>'listType'==_0x268095['_getAttributeKey'](_0x228796['suggestion']))||(_0x38add2['removeMarker'](_0x4d67b5['getFirstMarker']()),_0x572d55=!0x0);}return _0x572d55;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x513c98){const _0x2a447e=this['editor']['locale'],{data:_0x2ffa28}=_0x513c98,_0x8216e9={'type':'format','content':''};if(!_0x2ffa28||'listStyle'!=_0x2ffa28['key'])return;if(!_0x2ffa28['oldValue'])return'default'==_0x2ffa28['newValue']?_0x8216e9:{'type':'format','content':''+o(_0x2a447e,'*Set\x20format:*\x20%0',o(_0x2a447e,this['_getTranslationKeyForListStyle'](_0x2ffa28['newValue'])))};if(!_0x2ffa28['newValue']){if('default'==_0x2ffa28['oldValue'])return _0x8216e9;let _0x5018d5=_0x513c98['head'];for(;_0x5018d5;){if(_0x5018d5['data']&&'listType'==_0x5018d5['data']['key']&&_0x5018d5['data']['newValue'])return _0x8216e9;_0x5018d5=_0x5018d5['next'];}return{'type':'format','content':''+o(_0x2a447e,'*Remove\x20format:*\x20%0',o(_0x2a447e,this['_getTranslationKeyForListStyle'](_0x2ffa28['oldValue'])))};}if('default'!=_0x2ffa28['newValue'])return{'type':'format','content':''+o(_0x2a447e,'*Set\x20format:*\x20%0',o(_0x2a447e,this['_getTranslationKeyForListStyle'](_0x2ffa28['newValue'])))};let _0x315296=_0x513c98['head'];for(;_0x315296;){if(_0x315296['data']&&'listType'==_0x315296['data']['key']&&_0x315296['data']['newValue']&&_0x315296['data']['oldValue'])return _0x8216e9;_0x315296=_0x315296['next'];}return{'type':'format','content':o(_0x2a447e,'*Set\x20format:*\x20%0',o(_0x2a447e,'ELEMENT_'+_0x513c98['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x77dc0f=this['editor'],_0x32a998=_0x77dc0f['locale'];_0x77dc0f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1c0e78=>{if('formatBlock'!=_0x1c0e78['type'])return;const {data:_0x55431c}=_0x1c0e78;if(!_0x55431c)return;let _0x3dae3e,_0x202400;switch(_0x55431c['commandName']){case'listStyle':_0x3dae3e='*Change\x20to:*\x20%0',_0x202400={'type':'format','content':o(_0x32a998,_0x3dae3e,o(_0x32a998,this['_getTranslationKeyForListStyle'](_0x55431c['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3dae3e=_0x55431c['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x202400={'type':'format','content':o(_0x32a998,_0x3dae3e)};break;case'listStart':_0x3dae3e='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x202400={'type':'format','content':o(_0x32a998,_0x3dae3e,_0x55431c['commandParams'][0x0]['startIndex'])};}return _0x202400;});}['_getTranslationKeyForListStyle'](_0x5064b2){return'ELEMENT_'+function(_0x32f5a8){if(_e['includes'](_0x32f5a8))return'bulleted';if(Re['includes'](_0x32f5a8))return'numbered';return null;}(_0x5064b2)['toUpperCase']()+'_LIST_'+_0x5064b2['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x2e0600{['afterInit'](){const _0x2cc144=this['editor'];_0x2cc144['commands']['get']('emoji')&&_0x2cc144['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x2e0600{static get['requires'](){return[_0x57352a];}['init'](){const _0x21e530=this['editor'],_0x46b60d=_0x21e530['plugins']['get']('TrackChangesEditing'),_0x359871=_0x21e530['commands']['get']('enter');_0x46b60d['enableCommand']('enter',()=>{_0x21e530['model']['change'](_0x2a9486=>{const _0x4c9580=_0x21e530['model']['document']['selection'],_0x12495e=_0x4c9580['getFirstPosition'](),_0x380f14=_0x1200ae['fromRange'](_0x4c9580['getFirstRange']());if(_0x359871['enterBlock'](_0x2a9486)){const _0x5d8048=_0x21e530['model']['createPositionAt'](_0x12495e['parent']['nextSibling'],0x0),_0x3f9928=_0x2a9486['createRange'](_0x12495e,_0x5d8048);_0x46b60d['markInsertion'](_0x3f9928);}else _0x2a9486['setSelection'](_0x2a9486['createRange'](_0x380f14['end']));_0x380f14['detach'](),_0x359871['fire']('afterExecute',{'writer':_0x2a9486});});}),_0x21e530['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x21e530,'split'),{'priority':'high'}),_0x21e530['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x4e394f,_0x5c92ec,_0x5a2b11)=>{const _0x1e0bca=_0x5a2b11['mapper']['markerNameToElements'](_0x5c92ec['markerName']);if(_0x1e0bca){for(const _0x5852af of _0x1e0bca)_0x5852af['hasClass']('ck-suggestion-marker-split')&&(_0x5a2b11['mapper']['unbindElementFromMarkerName'](_0x5852af,_0x5c92ec['markerName']),_0x5a2b11['writer']['remove'](_0x5852af));}},{'priority':'high'}),_0x21e530['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x54346d,_0x301da1,_0x738d66)=>{_0x738d66['options']['showSuggestionHighlights']&&De(_0x21e530,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x54346d,_0x301da1,_0x738d66);},{'priority':'high'});}}class Z extends _0x2e0600{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x2e37d3=this['editor']['plugins']['get']('TrackChangesEditing');_0x2e37d3['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x2e37d3['enableCommand']('findNext'),_0x2e37d3['enableCommand']('findPrevious'),_0x2e37d3['enableCommand']('replace'),_0x2e37d3['enableCommand']('replaceAll');}['handleFindCommand'](_0x44d5aa,_0x54cb49,_0x371d35={}){const _0x4d717f=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x44d5aa(_0x2dac6d=>{let _0x1e1a08=('string'==typeof _0x54cb49?_0x4d717f['findByTextCallback'](_0x54cb49,_0x371d35):_0x54cb49)(_0x2dac6d);Array['isArray'](_0x1e1a08)&&(_0x1e1a08={'results':_0x1e1a08,'searchText':'string'==typeof _0x54cb49?_0x54cb49:''});const _0x46f75e=_0x1e1a08['results']['filter'](_0x485f9f=>!0x1===this['_isInDeletionRange'](_0x485f9f,_0x2dac6d['item']));return{..._0x1e1a08,'results':_0x46f75e};},_0x371d35);}['_isInDeletionRange'](_0x2d3daf,_0x289ae5){const _0x24e159=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x289ae5,_0x2d3daf['start']),this['editor']['model']['createPositionAt'](_0x289ae5,_0x2d3daf['end']));for(const _0x3f01a6 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x24e159['getIntersection'](_0x3f01a6['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x2e0600{['afterInit'](){const _0x2be158=this['editor']['locale'],_0x35d741=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x3b697e,commandName:_0x2349a2}of ro)this['editor']['plugins']['has'](_0x3b697e)&&(_0x35d741['enableDefaultAttributesIntegration'](_0x2349a2),_0x35d741['registerInlineAttribute'](_0x2349a2));_0x35d741['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x2be158,'FORMAT_FONT_SIZE')),_0x35d741['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x2be158,'FORMAT_FONT_FAMILY')),_0x35d741['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x2be158,'FORMAT_FONT_COLOR')),_0x35d741['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x2be158,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x15ef07=this['editor'],_0x674347=_0x15ef07['locale'];_0x15ef07['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x30e06f=>{const _0x175681=_0x674347['t'];if('formatInline'!=_0x30e06f['type'])return;const {data:_0x4a0cf1}=_0x30e06f;if(null!=_0x4a0cf1){if('fontSize'==_0x4a0cf1['commandName']){const _0x460514=_0x4a0cf1['commandParams'][0x0]['value'];if(_0x460514){const _0x58114e=_0x175681(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x1dcd31=>_0x1dcd31['model']==_0x460514)['title'])['toLowerCase']();return{'type':'format','content':o(_0x674347,'*Set\x20font\x20size:*\x20%0',_0x58114e)};}return{'type':'format','content':o(_0x674347,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x4a0cf1['commandName']){const _0x1a270d=_0x4a0cf1['commandParams'][0x0]['value'];return _0x1a270d?{'type':'format','content':o(_0x674347,'*Set\x20font\x20family:*\x20%0',_0x1a270d)}:{'type':'format','content':o(_0x674347,'*Reset\x20font\x20family*')};}if('fontColor'==_0x4a0cf1['commandName']){const _0x3cd5f6=_0x4a0cf1['commandParams'][0x0]['value'];if(_0x3cd5f6){const _0xd93d42=_0x21d4ef(this['editor']['config']['get']('fontColor.colors'))['find'](_0x9f4664=>_0x9f4664['model']==_0x3cd5f6);let _0x44ac69=_0x3cd5f6,_0x24bc22='';return _0xd93d42&&(_0x44ac69=_0xd93d42['label'],_0x24bc22=_0x175681(_0x44ac69)['toLowerCase']()),{'type':'format','content':o(_0x674347,'*Set\x20font\x20color:*\x20%0',_0x24bc22)['trim'](),'color':{'value':_0x3cd5f6,'title':_0x24bc22||_0x44ac69}};}return{'type':'format','content':o(_0x674347,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x4a0cf1['commandName']){const _0x5b6426=_0x4a0cf1['commandParams'][0x0]['value'];if(_0x5b6426){const _0x23ca3a=_0x21d4ef(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x2bc7e6=>_0x2bc7e6['model']==_0x5b6426);let _0x51daaa=_0x5b6426,_0x3f6abb='';return _0x23ca3a&&(_0x51daaa=_0x23ca3a['label'],_0x3f6abb=_0x175681(_0x51daaa)['toLowerCase']()),{'type':'format','content':o(_0x674347,'*Set\x20font\x20background\x20color:*\x20%0',_0x3f6abb)['trim'](),'color':{'value':_0x5b6426,'title':_0x3f6abb||_0x51daaa}};}return{'type':'format','content':o(_0x674347,'*Reset\x20font\x20background\x20color*')};}}});}}class nt extends _0x2e0600{['afterInit'](){const _0x45512f=this['editor'],_0x5a225f=_0x45512f['plugins']['get']('TrackChangesEditing'),_0x57cdfb=_0x45512f['commands']['get']('copyFormat'),_0x20c24d=_0x45512f['commands']['get']('pasteFormat');_0x57cdfb&&_0x20c24d&&(_0x5a225f['enableDefaultAttributesIntegration']('pasteFormat'),_0x5a225f['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x2270eb=this['editor'],_0x4dfd70=_0x2270eb['locale'];_0x2270eb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x54f683=>{if('formatBlock'!=_0x54f683['type']&&'formatInline'!=_0x54f683['type'])return;const {data:_0x190652}=_0x54f683;if(_0x190652&&'pasteFormat'===_0x190652['commandName']){const _0x634378=[],_0x6c4420=_0x190652['commandParams'][0x0];for(const [_0x1201fd,_0x38ee24]of Object['entries'](_0x6c4420))_0x634378['push'](so(_0x2270eb,_0x1201fd,_0x38ee24));return _0x634378['length']?{'type':'format','content':o(_0x4dfd70,'*Set\x20format\x20to:*\x20%0',_0x634378['join'](',\x20'))}:{'type':'format','content':o(_0x4dfd70,'*Remove\x20all\x20formatting*')};}});}}function so(_0x25fa30,_0x3e93e7,_0x245ab9){const _0x295de4=_0x25fa30['locale']['t'],_0x2eced4=_0x3e93e7['split'](/(?=[A-Z])/)['join']('\x20'),_0x9aa178=_0x295de4(_0x2eced4['charAt'](0x0)['toUpperCase']()+_0x2eced4['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x245ab9)return _0x9aa178;if('fontColor'===_0x3e93e7||'fontBackgroundColor'===_0x3e93e7){const _0x4643e5=_0x21d4ef(_0x25fa30['config']['get']('fontColor.colors'))['find'](_0x27a34c=>_0x27a34c['model']==_0x245ab9);return _0x9aa178+'\x20('+(_0x4643e5?_0x295de4(_0x4643e5['label'])['toLowerCase']():_0x245ab9)+')';}if('fontSize'===_0x3e93e7&&isNaN(parseFloat(_0x245ab9))){const _0x47e4e4=_0x25fa30['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x25fa30['config']['get']('fontSize.options'))['find'](_0x126d73=>_0x126d73['model']==_0x245ab9);return _0x9aa178+'\x20('+(_0x47e4e4?_0x295de4(_0x47e4e4['title'])['toLowerCase']():_0x245ab9)+')';}return _0x9aa178+'\x20('+_0x245ab9+')';}class it extends _0x2e0600{['_headingOptions'];['afterInit'](){const _0x1d2115=this['editor'];if(!_0x1d2115['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x1d2115['config']['get']('heading.options');const _0x20983c=_0x1d2115['locale'],_0x227330=_0x1d2115['plugins']['get']('TrackChangesEditing');_0x227330['enableDefaultAttributesIntegration']('heading');for(const _0x2c71e6 of this['_headingOptions'])'paragraph'!=_0x2c71e6['model']&&_0x227330['descriptionFactory']['registerElementLabel'](_0x2c71e6['model'],_0x4e8074=>{const _0x40d82e=this['_getHeadingLevel'](_0x2c71e6['model']);return null!==_0x40d82e?_0x583fad(_0x4e8074,_0x40d82e):_0x9703df(_0x4e8074,_0x2c71e6['title']);});function _0x583fad(_0x250df9,_0x57371e){return o(_0x20983c,'ELEMENT_HEADING',[_0x250df9,_0x57371e]);}function _0x9703df(_0x4b81cf,_0x34ea1f){return o(_0x20983c,'ELEMENT_HEADING_CUSTOM',[_0x4b81cf,_0x34ea1f]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x53ac82=this['editor'],_0x1ca338=_0x53ac82['locale'];function _0x717043(_0x30eb89,_0x4e08b6){return o(_0x1ca338,'ELEMENT_HEADING_CUSTOM',[_0x30eb89,_0x4e08b6]);}_0x53ac82['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x262a4d=>{if('formatBlock'!=_0x262a4d['type'])return;const {data:_0x2ad253}=_0x262a4d;if(_0x2ad253&&'heading'==_0x2ad253['commandName']){const _0x3256cc=_0x2ad253['commandParams'][0x0]['value'],_0x5dd8a5=this['_getHeadingLevel'](_0x3256cc);if(null!==_0x5dd8a5)return{'type':'format','content':o(_0x1ca338,'*Change\x20to:*\x20%0',(_0x3cfcd0=0x1,_0x284ecc=_0x5dd8a5,o(_0x1ca338,'ELEMENT_HEADING',[_0x3cfcd0,_0x284ecc])))};const _0x3f0f74=this['_headingOptions']['find'](_0x489f91=>_0x489f91['model']===_0x3256cc)['title'];return{'type':'format','content':o(_0x1ca338,'*Change\x20to:*\x20%0',_0x717043(0x1,_0x3f0f74))};}var _0x3cfcd0,_0x284ecc;});}['_getHeadingLevel'](_0x2bae37){const _0x926714=_0x2bae37['match'](/^heading(\d+)/);if(_0x926714)return _0x926714[0x1];const _0x517c45=this['_headingOptions']?.['find'](_0x15c3d4=>_0x15c3d4['model']==_0x2bae37);if(_0x517c45&&_0x517c45['view']){const _0x50f595=_0x517c45['view'],_0x1ed9bf=(_0x50f595['name']??_0x50f595)['match'](/^h(\d+)/);if(_0x1ed9bf)return _0x1ed9bf[0x1];}return null;}}class et extends _0x2e0600{['afterInit'](){const _0x3f6432=this['editor'];if(!_0x3f6432['plugins']['has']('HighlightEditing'))return;const _0x341293=_0x3f6432['plugins']['get']('TrackChangesEditing'),_0x1dffd5=_0x3f6432['locale'];_0x341293['enableDefaultAttributesIntegration']('highlight'),_0x341293['registerInlineAttribute']('highlight'),_0x341293['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x1dffd5,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x93034c=this['editor'],_0xcc2e5=_0x93034c['locale'];_0x93034c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x45609b=>{if('formatInline'!=_0x45609b['type'])return;const {data:_0x28b393}=_0x45609b;if(_0x28b393&&'highlight'==_0x28b393['commandName']){const _0x476bb3=_0xcc2e5['t'],_0x454177=_0x28b393['commandParams'][0x0]['value'];if(_0x454177){const _0x1b5259=_0x93034c['config']['get']('highlight.options')['find'](_0x3de839=>_0x3de839['model']==_0x454177),_0x58f7ab=_0x476bb3(_0x1b5259['title'])['toLowerCase']();return{'type':'format','content':o(_0xcc2e5,'*Set\x20highlight:*\x20%0',_0x58f7ab),'color':{'value':_0x1b5259['color'],'title':_0x1b5259['title']}};}return{'type':'format','content':o(_0xcc2e5,'*Remove\x20highlight*',o(_0xcc2e5,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x2e0600{['afterInit'](){const _0x5f2a9e=this['editor'];if(!_0x5f2a9e['plugins']['has']('HorizontalLineEditing'))return;_0x5f2a9e['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x34f016=_0x5f2a9e['plugins']['get']('TrackChangesEditing'),_0x6953f6=_0x5f2a9e['locale'];_0x34f016['descriptionFactory']['registerElementLabel']('horizontalLine',_0x5dfdcd=>o(_0x6953f6,'ELEMENT_HORIZONTAL_LINE',_0x5dfdcd)),_0x5f2a9e['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x3a0909,{writer:_0x5e042f,options:_0x732e79})=>{if(!_0x732e79['showSuggestionHighlights'])return null;const _0x5d94c0=_0x5e042f['createContainerElement']('div'),_0x51f65a=_0x5e042f['createEmptyElement']('hr');return _0x5e042f['addClass']('ck-horizontal-line',_0x5d94c0),_0x5e042f['insert'](_0x5e042f['createPositionAt'](_0x5d94c0,0x0),_0x51f65a),_0x5d94c0;},'converterPriority':'high'});}}class ot extends _0x2e0600{['afterInit'](){const _0x21cf2d=this['editor'];if(!_0x21cf2d['plugins']['has']('HtmlEmbed'))return;const _0x221655=_0x21cf2d['plugins']['get']('TrackChangesEditing'),_0x52f807=_0x21cf2d['locale'];_0x221655['descriptionFactory']['registerElementLabel']('rawHtml',_0x247f5e=>o(_0x52f807,'ELEMENT_HTML_EMBED',_0x247f5e)),_0x221655['enableDefaultAttributesIntegration']('htmlEmbed'),_0x221655['registerBlockAttribute']('value'),_0x221655['descriptionFactory']['registerDescriptionCallback'](_0x43b621=>{if('attribute'!=_0x43b621['type'])return;const {data:_0x1d431e}=_0x43b621;if(_0x1d431e&&'value'==_0x1d431e['key']&&_0x43b621['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x4cbe91=o(_0x52f807,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x52f807,'*Change\x20%0\x20content*',_0x4cbe91)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3cca6c=this['editor'],_0x536664=_0x3cca6c['locale'];_0x3cca6c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xc5a49b=>{if('formatBlock'!=_0xc5a49b['type'])return;const {data:_0x1e31ec}=_0xc5a49b;if(_0x1e31ec&&'htmlEmbed'==_0x1e31ec['commandName']){const _0x10fb7b=o(_0x536664,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x536664,'*Change\x20%0\x20content*',_0x10fb7b)};}});}}class rt extends _0x2e0600{['afterInit'](){const _0x5b344f=this['editor'];if(!_0x5b344f['plugins']['has']('ImageEditing'))return;const _0x2538e2=_0x5b344f['plugins']['get']('TrackChangesEditing'),_0x16afab=_0x5b344f['plugins']['get']('ImageUtils'),_0x468869=_0x5b344f['locale'];_0x2538e2['enableCommand']('insertImage'),_0x2538e2['descriptionFactory']['registerElementLabel']('imageBlock',_0x68d6a1=>o(_0x468869,'ELEMENT_IMAGE',_0x68d6a1)),_0x2538e2['descriptionFactory']['registerElementLabel']('imageInline',_0x1a8587=>o(_0x468869,'ELEMENT_INLINE_IMAGE',_0x1a8587)),_0x2538e2['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x468869,'ELEMENT_CAPTION')),_0x5b344f['plugins']['has']('ImageUploadEditing')&&_0x2538e2['enableCommand']('uploadImage'),_0x5b344f['plugins']['has']('ImageBlockEditing')&&_0x5b344f['plugins']['has']('ImageInlineEditing')&&(_0x2538e2['enableCommand']('imageTypeInline',(_0x27f546,_0x578d37)=>{const _0x117393=_0x16afab['getClosestSelectedImageElement'](_0x5b344f['model']['document']['selection']);_0x5b344f['model']['change'](()=>{_0x2538e2['markBlockFormat'](_0x117393,{'commandName':'imageTypeInline','commandParams':[_0x578d37]},[],'convertBlockImageToInline');});}),_0x2538e2['enableCommand']('imageTypeBlock',(_0x4ab7ac,_0x558812)=>{_0x5b344f['model']['change'](_0x51214c=>{let _0x2e330d=_0x16afab['getClosestSelectedImageElement'](_0x5b344f['model']['document']['selection']),_0x4f1b64=_0x51214c['createRangeOn'](_0x2e330d);const _0xed66f3=_0x4c297e['fromPosition'](_0x4f1b64['start'],'toPrevious'),_0x31b669=_0x4c297e['fromPosition'](_0x4f1b64['end'],'toNext');_0x2538e2['forceDefaultExecution'](()=>_0x4ab7ac(_0x558812)),_0x2e330d=_0x16afab['getClosestSelectedImageElement'](_0x5b344f['model']['document']['selection']),_0x4f1b64=_0x51214c['createRangeOn'](_0x2e330d);const _0x5e9388=_0x51214c['createRange'](_0xed66f3,_0x31b669);_0xed66f3['detach'](),_0x31b669['detach'](),_0x2538e2['markBlockFormat'](_0x2e330d,{'commandName':'imageTypeInline','commandParams':[_0x558812]},[],'convertInlineImageToBlock'),_0x5e9388['start']['isBefore'](_0x4f1b64['start'])&&_0x2538e2['markInsertion'](_0x51214c['createRange'](_0x5e9388['start'],_0x4f1b64['start']),'convertInlineImageToBlock'),_0x4f1b64['end']['isBefore'](_0x5e9388['end'])&&_0x2538e2['markInsertion'](_0x51214c['createRange'](_0x4f1b64['end'],_0x5e9388['end']),'convertInlineImageToBlock');});}),_0x2538e2['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x2538e2['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x2538e2['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x2538e2['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x2538e2['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x2538e2['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x3144df])=>{const _0x40bfee=_0x2538e2['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x51749c=_0x3144df['start'],_0x29ea90=_0x3144df['end'];const _0x508b30=_0x5b344f['model']['schema']['getNearestSelectionRange'](_0x51749c,'backward'),_0x5cd96b=_0x5b344f['model']['schema']['getNearestSelectionRange'](_0x29ea90,'forward');_0x508b30['isCollapsed']&&(_0x51749c=_0x508b30['start']),_0x5cd96b['isCollapsed']&&(_0x29ea90=_0x5cd96b['end']),_0x40bfee([_0x5b344f['model']['createRange'](_0x51749c,_0x29ea90)]);}),_0x2538e2['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x37a7e1),_0x2538e2['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x37a7e1)),_0x5b344f['plugins']['has']('ImageCaptionEditing')&&(_0x2538e2['enableCommand']('toggleImageCaption',(_0x45c002,_0x47e5ce)=>{const _0x21b37e=_0x5b344f['plugins']['get']('ImageCaptionUtils');let _0x48d7d0=_0x16afab['getClosestSelectedImageElement'](_0x5b344f['model']['document']['selection']),_0x1cafa3=_0x21b37e['getCaptionFromImageModelElement'](_0x48d7d0);_0x5b344f['model']['change'](()=>{if(_0x1cafa3)return void _0x2538e2['markDeletion'](_0x5b344f['model']['createRangeOn'](_0x1cafa3));const _0x394446=_0x16afab['isBlockImage'](_0x48d7d0);_0x45c002(_0x47e5ce),_0x48d7d0=_0x16afab['getClosestSelectedImageElement'](_0x5b344f['model']['document']['selection']),_0x1cafa3=_0x21b37e['getCaptionFromImageModelElement'](_0x48d7d0),_0x2538e2['markInsertion'](_0x5b344f['model']['createRangeOn'](_0x1cafa3),_0x394446?null:'imageCaption');});}),_0x2538e2['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x37a7e1));const _0x552e1f=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x131dbf(_0x21201d,_0x5e22f9){const _0x21a801=_0x552e1f['findIndex'](({type:_0x790da4,subType:_0x565cb9})=>_0x21201d['type']==_0x790da4&&_0x21201d['subType']==_0x565cb9),_0x18f1c4=_0x552e1f['findIndex'](({type:_0x2c1827,subType:_0x29cf16})=>_0x5e22f9['type']==_0x2c1827&&_0x5e22f9['subType']==_0x29cf16);if(_0x21a801<0x0||_0x18f1c4<0x0)return!0x1;const _0x34aea8=_0x21201d['getFirstRange'](),_0xeb49ff=_0x5e22f9['getFirstRange']();if((0x0==_0x21a801||0x1==_0x21a801)&&0x2==_0x18f1c4&&_0x34aea8['isIntersecting'](_0xeb49ff))return!0x0;if(0x2==_0x21a801&&0x3==_0x18f1c4){const _0x668f2d=_0x2538e2['_findSuggestions'](_0x34aea8,'insertion')['filter'](({suggestion:_0x285607,meta:_0x7b8413})=>_0x7b8413['isOwn']&&'convertInlineImageToBlock'==_0x285607['subType']);if(_0x668f2d['length']>0x1&&_0xeb49ff['end']['isEqual'](_0x34aea8['start']))return!0x0;if(0x1==_0x668f2d['length']&&(_0x34aea8['start']['isEqual'](_0xeb49ff['end'])||_0x34aea8['end']['isEqual'](_0xeb49ff['start'])))return!0x0;}if(0x3==_0x21a801&&0x3==_0x18f1c4&&_0x34aea8['start']['isBefore'](_0xeb49ff['start'])){const _0x469847=_0x34aea8['end']['nodeAfter'],_0x3aec12=_0xeb49ff['start']['nodeBefore'];return _0x16afab['isBlockImage'](_0x469847)&&_0x469847===_0x3aec12;}return!0x1;}function _0x37a7e1(_0x25e8f4,_0x2accf3){return _0x131dbf(_0x25e8f4,_0x2accf3)?[_0x25e8f4,_0x2accf3]:_0x131dbf(_0x2accf3,_0x25e8f4)?[_0x2accf3,_0x25e8f4]:null;}_0x5b344f['plugins']['has']('ImageResize')&&(_0x2538e2['enableDefaultAttributesIntegration']('resizeImage'),_0x2538e2['registerBlockAttribute']('resizedWidth'),_0x2538e2['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x468869,'FORMAT_IMAGE_SIZE'))),_0x5b344f['plugins']['has']('ImageTextAlternativeEditing')&&(_0x2538e2['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x2538e2['registerBlockAttribute']('alt')),_0x5b344f['plugins']['has']('PictureEditing')&&(_0x2538e2['registerBlockAttribute']('sources'),_0x2538e2['descriptionFactory']['registerDescriptionCallback'](_0x1d5f18=>{if('attribute'!=_0x1d5f18['type'])return;const {data:_0x2d47e2}=_0x1d5f18;return _0x2d47e2&&'sources'==_0x2d47e2['key']?{'type':'format','content':''}:void 0x0;})),_0x5b344f['plugins']['has']('ImageSizeAttributes')&&(_0x2538e2['registerBlockAttribute']('width'),_0x2538e2['registerBlockAttribute']('height'),_0x2538e2['descriptionFactory']['registerDescriptionCallback'](_0x1c530f=>{if('attribute'!=_0x1c530f['type'])return;const {data:_0x1287a1}=_0x1c530f;return!_0x1287a1||'width'!=_0x1287a1['key']&&'height'!=_0x1287a1['key']?void 0x0:{'type':'format','content':''};})),_0x2538e2['descriptionFactory']['registerDescriptionCallback'](_0x45aefc=>{if(!!_0x552e1f['find'](({type:_0x1b2481,subType:_0x46deaf})=>_0x45aefc['type']==_0x1b2481&&_0x45aefc['subType']==_0x46deaf))return _0x45aefc['previous']?{}:void 0x0;}),_0x2538e2['descriptionFactory']['registerDescriptionCallback'](_0x1b6908=>{if('insertion'==_0x1b6908['type']||'deletion'==_0x1b6908['type']){const _0x52f7c3=_0x1b6908['getContainedElement']();if(_0x52f7c3&&_0x52f7c3['is']('element','caption'))return{'type':'insertion'==_0x1b6908['type']?'addObject':'removeObject','element':_0x52f7c3,'quantity':0x1};}}),_0x2538e2['descriptionFactory']['registerDescriptionCallback'](_0x38f2ca=>'formatBlock'==_0x38f2ca['type']&&'convertInlineImageToBlock'==_0x38f2ca['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x38f2ca['type']&&'convertBlockImageToInline'==_0x38f2ca['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x2538e2['descriptionFactory']['registerDescriptionCallback'](_0x3930aa=>{if('attribute'!=_0x3930aa['type'])return;const {data:_0x216579}=_0x3930aa;if(!_0x216579||'alt'!=_0x216579['key'])return;const _0x23f238=_0x216579['newValue'];return _0x23f238?{'type':'format','content':o(_0x468869,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x23f238+'\x22')}:{'type':'format','content':o(_0x468869,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x784fc=this['editor'],_0x35e076=_0x784fc['locale'];_0x784fc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x178be7=>{if('formatBlock'!=_0x178be7['type']&&'formatInline'!=_0x178be7['type'])return;const {data:_0x16c171}=_0x178be7;if(_0x16c171){if('imageTextAlternative'==_0x16c171['commandName']){const _0x1320be=_0x16c171['commandParams'][0x0]['newValue'];return _0x1320be?{'type':'format','content':o(_0x35e076,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1320be+'\x22')}:{'type':'format','content':o(_0x35e076,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x16c171['commandName']){const _0x469fb2=_0x16c171['commandParams'][0x0]['width'];return _0x469fb2?{'type':'format','content':o(_0x35e076,'*Set\x20image\x20width:*\x20%0',_0x469fb2)}:{'type':'format','content':o(_0x35e076,'*Reset\x20image\x20width*')};}}});}}class at extends _0x2e0600{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0xbb4a71=this['editor']['locale'],_0x4c5b18=this['editor']['plugins']['get']('TrackChangesEditing');_0x4c5b18['enableDefaultAttributesIntegration']('replaceImageSource'),_0x4c5b18['registerBlockAttribute']('src'),_0x4c5b18['descriptionFactory']['registerDescriptionCallback'](_0x3ab1bc=>{if('attribute'!=_0x3ab1bc['type'])return;const {data:_0xbde9a2}=_0x3ab1bc;return _0xbde9a2&&'src'==_0xbde9a2['key']?_0xbde9a2['newValue']&&_0xbde9a2['oldValue']?{'type':'format','content':o(_0xbb4a71,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0xc78b86=this['editor']['plugins']['get']('TrackChangesEditing');_0xc78b86['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0xc78b86['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xc78b86['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0xc78b86['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x170017=this['editor'],_0x4d50c8=_0x170017['locale'];_0x170017['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2dd663=>{if('formatBlock'!=_0x2dd663['type']&&'formatInline'!=_0x2dd663['type'])return;const {data:_0xda2873}=_0x2dd663;if(!_0xda2873||'replaceImageSource'!=_0xda2873['commandName'])return;return{'type':'format','content':o(_0x4d50c8,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x2e0600{['afterInit'](){const _0x33c5ae=this['editor'];if(!_0x33c5ae['plugins']['has']('ImageStyleEditing'))return;const _0x28d9fc=_0x33c5ae['plugins']['get']('TrackChangesEditing'),_0x15934b=_0x33c5ae['plugins']['get']('ImageUtils'),_0x182a47={};_0x28d9fc['enableCommand']('imageStyle',(_0x31482a,_0x783a4e)=>{const _0x272f2b=_0x33c5ae['plugins']['get']('Users')['me'],_0x4eeb98=_0x33c5ae['commands']['get']('imageStyle');let _0x2bd976=_0x15934b['getClosestSelectedImageElement'](_0x33c5ae['model']['document']['selection']),_0xf13510=_0x33c5ae['model']['createRangeOn'](_0x2bd976),_0x4e5f2a=_0x4eeb98['value'];if(_0x4e5f2a==_0x783a4e['value'])return;const _0x3a8e02={'commandName':'imageStyle','commandParams':[_0x783a4e],'formatGroupId':_0x502eb1()};_0x33c5ae['model']['change'](()=>{if(_0x28d9fc['getSuggestions']()['filter'](_0x320396=>_0x320396['isInContent']&&_0x272f2b==_0x320396['author']&&('formatBlock'==_0x320396['type']||'formatInline'==_0x320396['type'])&&('imageStylePreApply'==_0x320396['subType']||'imageStylePostApply'==_0x320396['subType'])&&_0x320396['getFirstRange']()['isEqual'](_0xf13510))['forEach'](_0x225897=>_0x28d9fc['discardSuggestion'](_0x225897['head'])),_0x2bd976=_0x15934b['getClosestSelectedImageElement'](_0x33c5ae['model']['document']['selection']),_0xf13510=_0x33c5ae['model']['createRangeOn'](_0x2bd976),_0x4eeb98['refresh'](),_0x33c5ae['commands']['get']('imageTypeInline')['refresh'](),_0x33c5ae['commands']['get']('imageTypeBlock')['refresh'](),_0x4e5f2a=_0x4eeb98['value'],_0x4e5f2a!=_0x783a4e['value'])return _0x15934b['isInlineImage'](_0x2bd976)&&_0x4eeb98['shouldConvertImageType'](_0x783a4e['value'],_0x2bd976)?(_0x31482a({..._0x783a4e,'setImageSizes':!0x1}),_0x2bd976=_0x15934b['getClosestSelectedImageElement'](_0x33c5ae['model']['document']['selection']),void _0x28d9fc['markBlockFormat'](_0x2bd976,{..._0x3a8e02,'commandReversedParams':[{'value':_0x4e5f2a||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x15934b['isBlockImage'](_0x2bd976)?_0x28d9fc['markBlockFormat'](_0x2bd976,_0x3a8e02,[],'imageStylePostApply'):_0x28d9fc['markInlineFormat'](_0xf13510,_0x3a8e02,'imageStylePostApply'));});});for(const _0x4c0b66 of _0x33c5ae['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x182a47[_0x4c0b66['name']]=_0x4c0b66['title']['toLowerCase']();_0x28d9fc['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x28d9fc['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x28d9fc['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x28d9fc['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x120d79])=>{_0x15934b['setImageNaturalSizeAttributes'](_0x120d79['getContainedElement']());}),_0x28d9fc['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x11231a,_0x237b71)=>{_0x28d9fc['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x11231a,{'commandName':_0x237b71['commandName'],'commandParams':_0x237b71['commandReversedParams']});}),_0x28d9fc['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x3f3c4a,_0x124123){if(_0x35145b(_0x3f3c4a,_0x124123))return[_0x3f3c4a,_0x124123];if(_0x35145b(_0x124123,_0x3f3c4a))return[_0x124123,_0x3f3c4a];return null;});const _0x3b49d9=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x35145b(_0x5674af,_0xd16d1a){const _0x2bc41d=_0x3b49d9['findIndex'](({type:_0x1228c1,subType:_0x3b86d5})=>_0x5674af['type']==_0x1228c1&&_0x5674af['subType']==_0x3b86d5),_0x3c8955=_0x3b49d9['findIndex'](({type:_0x59d061,subType:_0x2a5e79})=>_0xd16d1a['type']==_0x59d061&&_0xd16d1a['subType']==_0x2a5e79);if(_0x2bc41d<0x0||_0x3c8955<0x0)return!0x1;const _0x4715bd=_0x5674af['getFirstRange'](),_0x57ac77=_0xd16d1a['getFirstRange']();if((0x0==_0x2bc41d||0x1==_0x2bc41d)&&0x2==_0x3c8955&&_0x4715bd['isIntersecting'](_0x57ac77))return!0x0;if(0x2==_0x2bc41d&&0x3==_0x3c8955){const _0x3fbec=_0x28d9fc['_findSuggestions'](_0x4715bd,'insertion')['filter'](({suggestion:_0x206174,meta:_0x3df8ac})=>_0x3df8ac['isOwn']&&'convertInlineImageToBlock'==_0x206174['subType']);if(_0x3fbec['length']>0x1&&_0x57ac77['end']['isEqual'](_0x4715bd['start']))return!0x0;if(0x1==_0x3fbec['length']&&(_0x4715bd['start']['isEqual'](_0x57ac77['end'])||_0x4715bd['end']['isEqual'](_0x57ac77['start'])))return!0x0;}if(0x3==_0x2bc41d&&0x3==_0x3c8955&&_0x4715bd['start']['isBefore'](_0x57ac77['start'])){const _0x2a0888=_0x4715bd['end']['nodeAfter'],_0x431750=_0x57ac77['start']['nodeBefore'];return _0x15934b['isBlockImage'](_0x2a0888)&&_0x2a0888===_0x431750;}return!0x1;}_0x33c5ae['model']['document']['registerPostFixer'](()=>{let _0x303f39=!0x1;const _0x1fd618=Array['from'](_0x33c5ae['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5736f8,data:_0x3e06f9}of _0x1fd618){const {group:_0x15a973,type:_0x58e142,subType:_0x479da1,id:_0x56aa20}=_0x28d9fc['_splitMarkerName'](_0x5736f8);if('suggestion'==_0x15a973&&_0x28d9fc['hasSuggestion'](_0x56aa20)){if('formatBlock'==_0x58e142&&('imageStylePreApply'==_0x479da1||'imageStylePostApply'==_0x479da1)){const _0x26868f=_0x28d9fc['getSuggestion'](_0x56aa20);if(_0x3e06f9['newRange']){const _0xbe8c9d=_0x26868f['getFirstRange']()['getContainedElement']();if(_0x15934b['isBlockImage'](_0xbe8c9d))continue;_0x28d9fc['discardSuggestion'](_0x26868f),_0x303f39=!0x0;}}if('insertion'==_0x58e142&&'imageCaption'==_0x479da1&&!_0x3e06f9['newRange']){const _0x4f2d3e=_0x28d9fc['getSuggestion'](_0x56aa20);_0x4f2d3e['next']&&_0x4f2d3e['next']['isInContent']&&(_0x28d9fc['discardSuggestion'](_0x4f2d3e['next']),_0x303f39=!0x0);}}}return _0x303f39;}),this['_registerLegacyDescription'](_0x182a47);}['_registerLegacyDescription'](_0x4cf03b){const _0x48d572=this['editor'],_0xf091e4=_0x48d572['locale'];_0x48d572['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x47021b=>{if('formatBlock'!=_0x47021b['type']&&'formatInline'!=_0x47021b['type'])return;const {data:_0x409d9d}=_0x47021b;if(!_0x409d9d||'imageStyle'!=_0x409d9d['commandName'])return;const _0x3e93d1=_0x409d9d['commandParams'][0x0]['value'];return _0x53931c('side'===_0x3e93d1?o(_0xf091e4,'FORMAT_SIDE_IMAGE'):_0x4cf03b[_0x3e93d1]||_0x3e93d1);function _0x53931c(_0x5ef3f9){return{'type':'format','content':o(_0xf091e4,'*Format:*\x20%0',_0x5ef3f9)};}});}}class ut extends _0x2e0600{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x90cd3){super(_0x90cd3),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0xc4eae6=this['editor'],_0x459574=_0xc4eae6['commands']['get']('importWord'),_0x2186d2=_0xc4eae6['commands']['get']('trackChanges');_0x459574&&(_0x459574['on']('execute',(_0x382580,[,_0xb4d1ef])=>{this['_trackChangesValueDuringImport']=_0x2186d2['value'],_0xb4d1ef['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x459574,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x459574,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x2186d2['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0xc4eae6['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x133e76,_0x23f3cb){const {suggestions:_0x34fe81}=_0x23f3cb,_0x35f44d=this['editor']['commands']['get']('trackChanges'),_0x29a092=_0x35f44d['value'];this['_trackChangesValueDuringImport']!==_0x29a092&&(_0x35f44d['execute'](),this['_trackChangesExecuted']=!0x0),_0x34fe81&&_0x34fe81['forEach'](({id:_0x577d88,type:_0x496abb,author:_0x348d0e,created_at:_0x1f86f0})=>{const _0xf5eeb9={'id':_0x577d88,'type':_0x496abb,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x348d0e,'createdAt':_0x1f86f0?new Date(_0x1f86f0):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0xf5eeb9);});}}class ft extends _0x2e0600{['afterInit'](){const _0x25fd6c=this['editor'],_0x2cb2d5=_0x25fd6c['plugins']['get']('TrackChangesEditing');if(_0x25fd6c['plugins']['has']('IndentEditing')&&(_0x2cb2d5['enableCommand']('indent'),_0x2cb2d5['enableCommand']('outdent')),_0x25fd6c['plugins']['has']('IndentBlock')){for(const _0x520e7e of['indentBlock','outdentBlock'])_0x2cb2d5['enableDefaultAttributesIntegration'](_0x520e7e);}const _0x51f310=_0x25fd6c['locale'];_0x2cb2d5['registerBlockAttribute']('blockIndent'),_0x2cb2d5['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x51f310,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x176275=this['editor'],_0x54fc96=_0x176275['locale'],_0x599726=_0x176275['plugins']['get']('TrackChangesEditing');_0x599726['descriptionFactory']['registerDescriptionCallback'](_0x25d8a5=>{if('formatBlock'!=_0x25d8a5['type'])return;const {data:_0x1b0120}=_0x25d8a5;if(!_0x1b0120)return;if('indentBlock'!=_0x1b0120['commandName']&&'outdentBlock'!=_0x1b0120['commandName'])return;const _0x276770=_0x25d8a5['getItems']()[0x0],_0x4b36d1=_0x599726['descriptionFactory']['getItemLabel'](_0x276770);return'indentBlock'==_0x1b0120['commandName']?{'type':'format','content':o(_0x54fc96,'*Indent:*\x20%0',_0x4b36d1)}:'outdentBlock'==_0x1b0120['commandName']?{'type':'format','content':o(_0x54fc96,'*Outdent:*\x20%0',_0x4b36d1)}:void 0x0;});}}class ht extends _0x2e0600{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x2e0600{['afterInit'](){const _0x54c595=this['editor'];if(!_0x54c595['plugins']['has']('LinkEditing'))return;const _0x3295e0=_0x54c595['plugins']['get']('TrackChangesEditing'),_0xe29651=_0x54c595['commands']['get']('link');_0x3295e0['enableDefaultAttributesIntegration']('link'),_0x3295e0['enableDefaultAttributesIntegration']('unlink'),_0x3295e0['registerInlineAttribute']('linkHref');for(const _0x3d4f8d of _0xe29651['manualDecorators'])_0x3295e0['registerInlineAttribute'](_0x3d4f8d['id']),_0x3295e0['descriptionFactory']['registerAttributeLabel'](_0x3d4f8d['id'],'link\x20('+_0x3d4f8d['label']['toLowerCase']()+')');_0x3295e0['descriptionFactory']['registerDescriptionCallback'](_0xbfe9b8=>{if('attribute'!=_0xbfe9b8['type'])return;const {data:_0x14f0cf}=_0xbfe9b8;if(!_0x14f0cf||'linkHref'!=_0x14f0cf['key'])return;const _0x499e2d=_0x14f0cf['newValue'],_0x1e7667=_0x54c595['locale'];return{'type':'format','content':null==_0x499e2d?o(_0x1e7667,'*Remove\x20link*'):o(_0x1e7667,'*Set\x20link:*\x20%0','\x22'+_0x499e2d+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2d945e=this['editor'],_0x1ddf27=_0x2d945e['locale'];_0x2d945e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x379339=>{if('formatInline'!=_0x379339['type'])return;const {data:_0x122357}=_0x379339;if(_0x122357){if('link'==_0x122357['commandName']){const _0x2cc261=_0x122357['commandParams'][0x0];return{'type':'format','content':o(_0x1ddf27,'*Set\x20link:*\x20%0','\x22'+_0x2cc261+'\x22')};}return'unlink'==_0x122357['commandName']?{'type':'format','content':o(_0x1ddf27,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x2e0600{['afterInit'](){const _0x32ad26=this['editor'],_0x3e3e94=_0x32ad26['locale'];if(!_0x32ad26['plugins']['has']('LegacyListEditing'))return;const _0x55353a=_0x32ad26['plugins']['get']('TrackChangesEditing'),_0xaa934d=_0x32ad26['plugins']['has']('LegacyTodoListEditing');function _0x516a28(_0x47ddd8){return()=>{const _0x1b441d=_0x32ad26['model']['document']['selection'],_0x158885=_0x32ad26['commands']['get'](_0x47ddd8);if(_0x158885['value'])return void _0x32ad26['execute']('paragraph',{});const _0x25a217=_0x47ddd8['slice'](0x0,-0x4),_0x2cd492=function(_0x243b0e,_0x3fb4d7,_0x4c4890){let _0x5c19b3=Array['from'](_0x243b0e)['filter'](_0x2de50d=>function(_0x518ce0,_0x1dd75f){return _0x1dd75f['checkChild'](_0x518ce0['parent'],'listItem')&&!_0x1dd75f['isObject'](_0x518ce0);}(_0x2de50d,_0x4c4890));_0x5c19b3=_0x5c19b3['filter'](_0xf8b057=>!_0xf8b057['is']('element','listItem')||_0xf8b057['getAttribute']('listType')!=_0x3fb4d7);const _0x595f83=new Set();for(const _0x329d90 of _0x5c19b3)_0x329d90['is']('element','listItem')?_0x595f83['add'](Le(_0x329d90)):_0x595f83['add'](_0x329d90);return Array['from'](_0x595f83);}(_0x1b441d['getSelectedBlocks'](),_0x25a217,_0x32ad26['model']['schema']);_0x32ad26['model']['change'](()=>{for(const _0x39b33f of _0x2cd492)_0x55353a['markBlockFormat'](_0x39b33f,{'commandName':_0x47ddd8,'commandParams':[{'forceValue':!_0x158885['value']}],'formatGroupId':'blockName'},Ee(_0x39b33f));});};}function _0x42f548(_0x1f9c01){return()=>{const _0x25d5c5=function(_0x266ab2){let _0x49d8ec=Array['from'](_0x266ab2);const _0x4067b6=_0x49d8ec['findIndex'](_0x169575=>'listItem'!=_0x169575['name']);return _0x4067b6>-0x1&&(_0x49d8ec=_0x49d8ec['slice'](0x0,_0x4067b6)),_0x49d8ec;}(_0x32ad26['model']['document']['selection']['getSelectedBlocks']()),_0x20adbf=_0x32ad26['model']['createRange'](_0x32ad26['model']['createPositionAt'](_0x25d5c5[0x0],'before'),_0x32ad26['model']['createPositionAt'](_0x25d5c5[_0x25d5c5['length']-0x1],'end'));_0x32ad26['model']['change'](()=>{_0x55353a['markBlockFormat'](_0x20adbf,{'commandName':_0x1f9c01,'commandParams':[],'formatGroupId':'listIndent'},function(_0x3dcc14){const _0x4a49af=new Set();for(const _0x477f3d of _0x3dcc14){let _0x210f37=_0x477f3d['nextSibling'];for(;_0x210f37&&_0x210f37['getAttribute']('listIndent')>_0x477f3d['getAttribute']('listIndent');)_0x4a49af['add'](_0x210f37),_0x210f37=_0x210f37['nextSibling'];}return Array['from'](_0x4a49af);}(_0x25d5c5));});};}_0x55353a['enableCommand']('numberedList',_0x516a28('numberedList')),_0x55353a['enableCommand']('bulletedList',_0x516a28('bulletedList')),_0xaa934d&&_0x55353a['enableCommand']('todoList',_0x516a28('todoList')),_0x55353a['enableCommand']('indentList',_0x42f548('indentList')),_0x55353a['enableCommand']('outdentList',_0x42f548('outdentList')),_0xaa934d&&_0x55353a['enableCommand']('checkTodoList',()=>{const _0x4becf1=_0x32ad26['commands']['get']('checkTodoList'),_0x23f9e2=Array['from'](_0x4becf1['_selectedElements']);_0x23f9e2['filter'](_0x454c19=>_0x454c19['getAttribute']('todoListChecked')!=_0x4becf1['value']),_0x32ad26['model']['change'](()=>{for(const _0x1df379 of _0x23f9e2)_0x55353a['markBlockFormat'](_0x1df379,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x4becf1['value']}]});});}),_0x55353a['descriptionFactory']['registerElementLabel']('listItem',_0x37c056=>o(_0x3e3e94,'ELEMENT_LIST_ITEM',_0x37c056)),_0x55353a['descriptionFactory']['registerDescriptionCallback'](_0x3181f7=>{if('formatBlock'!=_0x3181f7['type']&&'formatInline'!=_0x3181f7['type'])return;const {data:_0x566a10}=_0x3181f7;if(_0x566a10){if('numberedList'==_0x566a10['commandName']||'bulletedList'==_0x566a10['commandName']||'todoList'==_0x566a10['commandName'])switch(_0x566a10['commandName']['replace']('List','')){case'bulleted':return _0x121cb2(o(_0x3e3e94,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x121cb2(o(_0x3e3e94,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x121cb2(o(_0x3e3e94,'ELEMENT_TODO_LIST'));}if('indentList'==_0x566a10['commandName'])return{'type':'format','content':o(_0x3e3e94,'*Indent:*\x20%0',o(_0x3e3e94,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x566a10['commandName'])return{'type':'format','content':o(_0x3e3e94,'*Outdent:*\x20%0',o(_0x3e3e94,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x566a10['commandName'])return _0x566a10['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3e3e94,'*Check\x20item*')}:{'type':'format','content':o(_0x3e3e94,'*Uncheck\x20item*')};}function _0x121cb2(_0x3b838d){return{'type':'format','content':o(_0x3e3e94,'*Change\x20to:*\x20%0',_0x3b838d)};}});}}function Le(_0x29bd37){const _0x300c0f=_0x29bd37['getAttribute']('listIndent');if(0x0==_0x300c0f)return _0x29bd37;let _0x510a4d=_0x29bd37;for(;_0x29bd37['previousSibling']&&_0x29bd37['previousSibling']['is']('element','listItem');){const _0x54a668=_0x29bd37['previousSibling']['getAttribute']('listIndent');if(_0x54a668==_0x300c0f)_0x510a4d=_0x29bd37['previousSibling'];else{if(_0x54a668<_0x300c0f)break;}_0x29bd37=_0x29bd37['previousSibling'];}return _0x510a4d;}function Ee(_0x315fc7){const _0x5c4384=[];if(_0x315fc7['is']('element','listItem')&&_0x315fc7['getAttribute']('listIndent')>0x0){let _0x3972cd=_0x315fc7['nextSibling'];for(;_0x3972cd&&'listItem'==_0x3972cd['name']&&_0x3972cd['getAttribute']('listIndent')==_0x315fc7['getAttribute']('listIndent');)_0x5c4384['push'](_0x3972cd),_0x3972cd=_0x3972cd['nextSibling'];}return _0x5c4384;}class Q extends _0x2e0600{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x46f01d=this['editor']['config']['get']('list.properties'),_0x549130=this['editor']['plugins']['get']('TrackChangesEditing');_0x46f01d['styles']&&_0x549130['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x46f01d['reversed']&&_0x549130['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x46f01d['startIndex']&&_0x549130['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x549130['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x4cb6b6,_0x3b142f={}){const _0x305d6e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3a458a=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x305d6e['markMultiRangeBlockFormat'](_0x3a458a,{'commandName':'listStyle','commandParams':[{'type':_0x3b142f['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x4c0c2f,_0xc54c6={}){const _0x2db8f5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x141fe4=this['_getSuggestionBlocks'](_0x5c68b9=>_0x5c68b9['is']('element','listItem')&&'numbered'===_0x5c68b9['getAttribute']('listType'));if(_0x141fe4['length']<0x1)return;const _0x44c10d=_0x141fe4['map'](_0x1692d2=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1692d2,'before'),this['editor']['model']['createPositionAt'](_0x1692d2,0x0)));this['editor']['model']['change'](()=>{_0x2db8f5['markMultiRangeBlockFormat'](_0x44c10d,{'commandName':'listReversed','commandParams':[{'reversed':_0xc54c6['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x387c4c,_0x3ffca1={}){const _0xf9f7b0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x247958=this['_getSuggestionBlocks'](_0x4f7e29=>_0x4f7e29['is']('element','listItem')&&'numbered'===_0x4f7e29['getAttribute']('listType'));if(_0x247958['length']<0x1)return;const _0x4761a0=_0x247958['map'](_0x5831e8=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5831e8,'before'),this['editor']['model']['createPositionAt'](_0x5831e8,0x0)));this['editor']['model']['change'](()=>{_0xf9f7b0['markMultiRangeBlockFormat'](_0x4761a0,{'commandName':'listStart','commandParams':[{'startIndex':_0x3ffca1['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x2c4fcb){if('formatBlock'!=_0x2c4fcb['type']&&'formatInline'!=_0x2c4fcb['type'])return;const _0x25eeec=this['editor']['locale'],{data:_0x13e3aa}=_0x2c4fcb;if(!_0x13e3aa)return;let _0x341658,_0x332adf;switch(_0x13e3aa['commandName']){case'listStyle':_0x341658='*Change\x20to:*\x20%0',_0x332adf={'type':'format','content':o(_0x25eeec,_0x341658,o(_0x25eeec,this['_getTranslationKeyForListStyle'](_0x13e3aa['commandParams'][0x0]['type'])))};break;case'listReversed':_0x341658=_0x13e3aa['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x332adf={'type':'format','content':o(_0x25eeec,_0x341658)};break;case'listStart':_0x341658='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x332adf={'type':'format','content':o(_0x25eeec,_0x341658,_0x13e3aa['commandParams'][0x0]['startIndex'])};}return _0x332adf;}['_getSuggestionBlocksForListStyle'](){const _0x1514c1=this['editor']['plugins']['get']('LegacyListUtils');let _0x539376=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x539376[0x0]?.['is']('element','listItem')&&_0x539376['unshift'](..._0x1514c1['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x539376[_0x539376['length']-0x1]?.['is']('element','listItem')&&_0x539376['push'](..._0x1514c1['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x539376=[...new Set(_0x539376)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x539376=_0x539376['filter'](_0x45a30b=>_0x45a30b['is']('element','listItem'))),_0x539376;}['_getSuggestionBlocks'](_0xf8da1a){const _0x25f638=this['editor']['plugins']['get']('LegacyListUtils');let _0x21520a=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0xf8da1a)['map'](_0xe65c53=>{const _0x1620c2=this['editor']['model']['createPositionAt'](_0xe65c53,0x0);return[..._0x25f638['getSiblingNodes'](_0x1620c2,'backward'),..._0x25f638['getSiblingNodes'](_0x1620c2,'forward')];})['flat']();return _0x21520a=[...new Set(_0x21520a)],_0x21520a;}['_getTranslationKeyForListStyle'](_0x2388b1){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x2388b1)||'default')['toUpperCase']()+'_LIST_'+_0x2388b1['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x2e0600{['afterInit'](){const _0x1f9641=this['editor'];if(!_0x1f9641['plugins']['has']('MediaEmbedEditing'))return;const _0x1d3a79=_0x1f9641['plugins']['get']('TrackChangesEditing'),_0x2923b0=_0x1f9641['locale'];_0x1d3a79['enableCommand']('mediaEmbed'),_0x1d3a79['descriptionFactory']['registerElementLabel']('media',_0x39d698=>o(_0x2923b0,'ELEMENT_MEDIA',_0x39d698)),_0x1f9641['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x30c5be,{writer:_0x3955c4,options:_0x2332e1})=>{if(_0x2332e1['showSuggestionHighlights'])return _0x3955c4['createEmptyElement']('div');},'converterPriority':'high'}),_0x1f9641['data']['downcastDispatcher']['on']('attribute:url:media',(_0x3b3616,_0x24b458,_0x552083)=>{_0x552083['options']['showSuggestionHighlights']&&_0x3b3616['stop']();},{'priority':'high'});}}class pt extends _0x2e0600{['afterInit'](){const _0x200a4d=this['editor'];_0x200a4d['plugins']['has']('MentionEditing')&&_0x200a4d['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x2e0600{['afterInit'](){const _0x58557f=this['editor'];if(!_0x58557f['plugins']['has']('MergeFieldsEditing'))return;const _0x57dede=_0x58557f['plugins']['get']('TrackChangesEditing'),_0x21027a=_0x58557f['locale'];_0x57dede['enableCommand']('insertMergeField'),_0x57dede['enableCommand']('insertMergeFieldBlock'),_0x57dede['enableCommand']('insertMergeFieldImage'),_0x57dede['descriptionFactory']['registerElementLabel']('mergeField',_0x47be0e=>o(_0x21027a,'ELEMENT_MERGE_FIELD',_0x47be0e)),_0x57dede['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x3ae3a2=>o(_0x21027a,'ELEMENT_MERGE_FIELD',_0x3ae3a2)),_0x57dede['descriptionFactory']['registerDescriptionCallback'](_0x1ac635=>{if('insertion'!=_0x1ac635['type']&&'deletion'!=_0x1ac635['type'])return;const _0x525482=_0x1ac635['getContainedElement']();if(null==_0x525482)return;const _0x2457ec=_0x58557f['plugins']['get']('MergeFieldsEditing');let _0x1e4b8c;switch(_0x2457ec['getMergeFieldType'](_0x525482)){case null:return;case'image':{const _0x4530e2=_0x2457ec['unwrapAffixes'](_0x525482['getAttribute']('src'));_0x1e4b8c=_0x2457ec['getLabel'](_0x4530e2)||_0x4530e2;break;}default:{const _0x230a30=_0x525482['getAttribute']('id');_0x1e4b8c=_0x2457ec['getLabel'](_0x230a30)||_0x230a30;break;}}return'insertion'==_0x1ac635['type']?{'type':'insertion','content':o(_0x21027a,'*Insert:*\x20%0','\x22'+_0x1e4b8c+'\x22\x20'+o(_0x21027a,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x21027a,'*Remove:*\x20%0','\x22'+_0x1e4b8c+'\x22\x20'+o(_0x21027a,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x2e0600{['afterInit'](){const _0x195ffd=this['editor'],_0xf91540=_0x195ffd['plugins']['get']('TrackChangesEditing');_0x195ffd['plugins']['has']('MultiLevelList')&&(_0xf91540['enableDefaultAttributesIntegration']('multiLevelList'),_0xf91540['registerBlockAttribute']('listMarkerStyle'),_0xf91540['descriptionFactory']['registerDescriptionCallback'](_0x179aed=>this['handleDescriptions'](_0x179aed)));}['handleDescriptions'](_0x255b20){const _0xc3b2bd=this['editor']['locale'],{data:_0xdca3e2}=_0x255b20,_0x117578={'type':'format','content':''};if(_0xdca3e2&&'listMarkerStyle'==_0xdca3e2['key']){if(!_0xdca3e2['oldValue'])return{'type':'format','content':o(_0xc3b2bd,'*Set\x20format:*\x20%0',o(_0xc3b2bd,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xdca3e2['newValue']+')'};if(!_0xdca3e2['newValue']){let _0x21608a=_0x255b20['head'];for(;_0x21608a;){if(_0x21608a['data']&&'listType'==_0x21608a['data']['key']&&_0x21608a['data']['newValue'])return _0x117578;_0x21608a=_0x21608a['next'];}return{'type':'format','content':o(_0xc3b2bd,'*Remove\x20format:*\x20%0',o(_0xc3b2bd,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xdca3e2['oldValue']+')'};}}}}class bt extends _0x2e0600{['afterInit'](){const _0x2a2587=this['editor'];if(!_0x2a2587['plugins']['has']('PageBreakEditing'))return;_0x2a2587['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x4c1c4e=_0x2a2587['plugins']['get']('TrackChangesEditing'),_0x3111cc=_0x2a2587['locale'];_0x4c1c4e['descriptionFactory']['registerElementLabel']('pageBreak',_0x4e5ddc=>o(_0x3111cc,'ELEMENT_PAGE_BREAK',_0x4e5ddc));}}class yt extends _0x2e0600{['afterInit'](){const _0x2762e9=this['editor'];if(!_0x2762e9['plugins']['has']('Paragraph'))return;const _0x33f59b=_0x2762e9['locale'],_0x40c1b4=_0x2762e9['plugins']['get']('TrackChangesEditing');_0x40c1b4['descriptionFactory']['registerElementLabel']('paragraph',_0x5627ac=>o(_0x33f59b,'ELEMENT_PARAGRAPH',_0x5627ac)),_0x40c1b4['enableDefaultAttributesIntegration']('paragraph'),_0x40c1b4['enableCommand']('insertParagraph'),_0x2762e9['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x2762e9),{'priority':'highest'}),_0x2762e9['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x131ba7,_0xce5ae9,_0x29656b)=>{_0x29656b['options']['showSuggestionHighlights']&&nr(_0x2762e9,{'showActiveMarker':!0x1})(_0x131ba7,_0xce5ae9,_0x29656b);},{'priority':'highest'});const _0x5ecf4a=_0x40c1b4['descriptionFactory'];_0x5ecf4a['registerDescriptionCallback'](_0x27b33c=>{if('insertion'!==_0x27b33c['type'])return;const {start:_0x1684ef,end:_0x4700c8}=_0x27b33c['getFirstRange']();if(!_0x1684ef['isTouching'](_0x4700c8)||!_0x1684ef['nodeAfter'])return;const _0x38ad07=_0x2762e9['model']['schema'],_0x5e534b=_0x1684ef['nodeAfter'];return _0x38ad07['isBlock'](_0x5e534b)&&!_0x38ad07['isLimit'](_0x5e534b)&&_0x38ad07['checkChild'](_0x5e534b,'$text')?{'type':'insertion','content':o(_0x33f59b,'*Insert:*\x20%0',_0x5ecf4a['getItemLabel'](_0x5e534b,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5a0ec4=this['editor'],_0x52951c=_0x5a0ec4['locale'];_0x5a0ec4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2cef1d=>{if('formatBlock'!=_0x2cef1d['type'])return;const {data:_0x48e9be}=_0x2cef1d;return _0x48e9be&&'paragraph'==_0x48e9be['commandName']?{'type':'format','content':o(_0x52951c,'*Change\x20to:*\x20%0',o(_0x52951c,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x26779c,{showActiveMarker:_0x79521d=!0x0}={}){return(_0x1eae1d,_0x414f7b,_0xcbfb20)=>{const _0x177a51=_0x26779c['plugins']['get']('TrackChangesEditing'),_0x44ff76=_0x414f7b['markerRange']['start'],_0x4723cd=_0x414f7b['markerRange']['end'],_0x299944=_0x26779c['model']['schema'];if(!_0x44ff76['isTouching'](_0x4723cd)||!_0x44ff76['nodeAfter'])return;const _0x439391=_0x44ff76['nodeAfter'];if(_0x299944['isBlock'](_0x439391)&&!_0x299944['isLimit'](_0x439391)&&_0x299944['checkChild'](_0x439391,'$text')){if(!_0xcbfb20['consumable']['consume'](_0x414f7b['markerRange'],_0x1eae1d['name']))return;const {authorId:_0x5ee0e2}=_0x177a51['_splitMarkerName'](_0x414f7b['markerName']),_0x208855=_0xcbfb20['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x5ee0e2}),_0x582418=_0xcbfb20['mapper']['toViewPosition'](_0x4723cd);_0x79521d&&_0x177a51['activeMarkers']['includes'](_0x414f7b['markerName'])&&_0xcbfb20['writer']['addClass']('ck-suggestion-marker--active',_0x208855),_0xcbfb20['writer']['insert'](_0x582418,_0x208855),_0xcbfb20['mapper']['bindElementToMarker'](_0x208855,_0x414f7b['markerName']);}};}class jt extends _0x2e0600{['afterInit'](){const _0x5e347d=this['editor'];_0x5e347d['commands']['get']('replaceSource')&&_0x5e347d['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x2e0600{['afterInit'](){const _0x2d3548=this['editor'];if(!_0x2d3548['plugins']['has']('RemoveFormatEditing'))return;_0x2d3548['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x548afa=this['editor'];_0x548afa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xdf968b=>{if('formatBlock'!=_0xdf968b['type']&&'formatInline'!=_0xdf968b['type'])return;const {data:_0x507ec7}=_0xdf968b;return _0x507ec7&&'removeFormat'==_0x507ec7['commandName']?{'type':'format','content':o(_0x548afa['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x2e0600{['afterInit'](){const _0x150162=this['editor'];if(!_0x150162['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x388cef=_0x150162['plugins']['get']('TrackChangesEditing');_0x388cef['enableCommand']('goToPreviousRestrictedEditingException'),_0x388cef['enableCommand']('goToNextRestrictedEditingException');const _0x4c20e3=_0x150162['plugins']['get']('RestrictedEditingModeEditing');_0x4c20e3['enableCommand']('trackChanges'),_0x4c20e3['enableCommand']('acceptSuggestion'),_0x4c20e3['enableCommand']('discardSuggestion'),_0x4c20e3['enableCommand']('acceptAllSuggestions'),_0x4c20e3['enableCommand']('discardAllSuggestions'),_0x4c20e3['enableCommand']('acceptSelectedSuggestions'),_0x4c20e3['enableCommand']('discardSelectedSuggestions');}}class It extends _0x2e0600{static get['requires'](){return[_0xf6831f];}['init'](){const _0x2cd0a2=this['editor'],_0x7c2f3d=_0x2cd0a2['plugins']['get']('TrackChangesEditing');_0x7c2f3d['enableCommand']('shiftEnter'),_0x2cd0a2['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x2cd0a2),{'priority':'high'}),_0x2cd0a2['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x2cd0a2),{'priority':'high'}),_0x2cd0a2['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2271a7,_0x12adbc,_0x2bf714)=>{_0x2bf714['options']['showSuggestionHighlights']&&je(_0x2cd0a2,{'showActiveMarker':!0x1})(_0x2271a7,_0x12adbc,_0x2bf714);}),_0x7c2f3d['descriptionFactory']['registerElementLabel']('softBreak',_0x7d9611=>o(_0x2cd0a2['locale'],'ELEMENT_LINE_BREAK',_0x7d9611));}}function je(_0x38a22a,{showActiveMarker:_0x5e918d=!0x0}={}){return(_0x173441,_0x515c2b,_0x235870)=>{const _0x478830=_0x38a22a['plugins']['get']('TrackChangesEditing');if(!_0x235870['consumable']['test'](_0x515c2b['markerRange'],_0x173441['name']))return;const _0x3d6387=_0x38a22a['model'];for(const _0x694307 of _0x515c2b['markerRange']['getItems']()){if(!_0x694307['is']('element','softBreak'))continue;const _0x7e2976='deletion'==_0x515c2b['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x536d48}=_0x478830['_splitMarkerName'](_0x515c2b['markerName']),_0x362d32=_0x235870['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x7e2976,'data-author-id':_0x536d48}),_0x1d61b2=_0x235870['mapper']['toViewPosition'](_0x3d6387['createPositionBefore'](_0x694307));_0x5e918d&&_0x478830['activeMarkers']['includes'](_0x515c2b['markerName'])&&_0x235870['writer']['addClass']('ck-suggestion-marker--active',_0x362d32),_0x235870['writer']['insert'](_0x1d61b2,_0x362d32),_0x235870['mapper']['bindElementToMarker'](_0x362d32,_0x515c2b['markerName']);}};}class vt extends _0x2e0600{['afterInit'](){const _0x541d35=this['editor'],_0x2025cc=_0x541d35['model'],_0x74ea2c=_0x541d35['locale'];if(!_0x541d35['plugins']['has']('StandardEditingModeEditing'))return;const _0x7c4857=_0x541d35['plugins']['get']('TrackChangesEditing'),_0x6fae29='restrictedEditingException',_0x171800=_0x541d35['commands']['get'](_0x6fae29);_0x7c4857['enableCommand'](_0x6fae29,(_0xbaf935,_0x2abf92={})=>{const _0x770a3a=_0x2025cc['document']['selection'];if(_0x770a3a['isCollapsed'])return void _0xbaf935(_0x2abf92);const _0x420a75=void 0x0!==_0x2abf92['forceValue']?_0x2abf92['forceValue']:!_0x171800['value'];_0x2025cc['change'](()=>{const _0x23566d=Array['from'](_0x770a3a['getRanges']());for(const _0x482236 of _0x23566d){const _0x7f2eff=_0x420a75?[_0x482236]:io(_0x6fae29,_0x482236,_0x2025cc);for(const _0x4348b1 of _0x7f2eff)_0x7c4857['markInlineFormat'](_0x4348b1,{'commandName':_0x6fae29,'commandParams':[{'forceValue':_0x420a75}]});}});}),_0x7c4857['descriptionFactory']['registerDescriptionCallback'](_0xca3da8=>{if('formatBlock'!=_0xca3da8['type']&&'formatInline'!=_0xca3da8['type'])return;const {data:_0x2fcd90}=_0xca3da8;return _0x2fcd90&&_0x2fcd90['commandName']==_0x6fae29?_0x2fcd90['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x74ea2c,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x74ea2c,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class _t extends _0x2e0600{['afterInit'](){const _0x293580=this['editor'];if(!_0x293580['plugins']['has']('Style')||!_0x293580['plugins']['has']('DataSchema'))return;const _0x309922=_0x293580['plugins']['get']('TrackChangesEditing'),_0x7188e4=_0x293580['locale'],_0x4283e1=_0x293580['config']['get']('style')||{},_0x44f6fb=_0x293580['plugins']['get']('GeneralHtmlSupport'),_0x2636cf=_0x293580['plugins']['get']('StyleUtils')['normalizeConfig'](_0x293580['plugins']['get']('DataSchema'),_0x4283e1['definitions']);_0x309922['enableDefaultAttributesIntegration']('style');const _0x2d691b=new Set();for(const _0x3d8cd3 of _0x2636cf['block']){const _0x45f0d1=_0x44f6fb['getGhsAttributeNameForElement'](_0x3d8cd3['element']);_0x2d691b['add'](_0x45f0d1);}const _0x529ffd=new Set();for(const _0x1774be of _0x2636cf['inline']){const _0x401c22=_0x44f6fb['getGhsAttributeNameForElement'](_0x1774be['element']);_0x529ffd['add'](_0x401c22);for(const _0x2f7643 of _0x1774be['ghsAttributes'])_0x529ffd['add'](_0x2f7643);}for(const _0x469040 of _0x2d691b)_0x309922['registerBlockAttribute'](_0x469040),_0x309922['descriptionFactory']['registerAttributeLabel'](_0x469040,o(_0x7188e4,'FORMAT_STYLE'));for(const _0x514934 of _0x529ffd)_0x309922['registerInlineAttribute'](_0x514934),_0x309922['descriptionFactory']['registerAttributeLabel'](_0x514934,o(_0x7188e4,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1dda2d=this['editor'],_0x264887=_0x1dda2d['locale'];_0x1dda2d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x326074=>{if('formatBlock'!=_0x326074['type']&&'formatInline'!=_0x326074['type'])return;const {data:_0x47e4b0}=_0x326074;return _0x47e4b0&&'style'===_0x47e4b0['commandName']?_0x47e4b0['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x264887,'*Set\x20format:*\x20%0',_0x47e4b0['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x264887,'*Remove\x20format:*\x20%0',_0x47e4b0['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x2e0600{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x437ebc){super(_0x437ebc),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x53ac16=this['editor'],_0x5de87a=_0x53ac16['model']['document']['selection'];if(!_0x53ac16['plugins']['has']('TableEditing'))return;const _0x14e08d=_0x53ac16['locale'],_0x5dac0a=_0x53ac16['plugins']['get']('TrackChangesEditing'),_0x2eb49c=_0x53ac16['plugins']['get']('TableUtils');_0x5dac0a['descriptionFactory']['registerElementLabel']('table',_0x581f8a=>o(_0x14e08d,'ELEMENT_TABLE',_0x581f8a)),this['_setupColumnsRowsFixing'](),_0x5dac0a['enableCommand']('insertTable'),_0x5dac0a['enableCommand']('selectTableRow'),_0x5dac0a['enableCommand']('selectTableColumn');for(const _0x45e751 of['insertTableRowAbove','insertTableRowBelow']){const _0x20a504=_0x53ac16['commands']['get'](_0x45e751);_0x5dac0a['enableCommand'](_0x45e751,_0x3277c5=>{_0x53ac16['model']['change'](_0x2eaf8d=>{_0x3277c5();const _0x27ae55='above'===_0x20a504['order'],_0x1cc107=_0x2eb49c['getSelectionAffectedTableCells'](_0x5de87a),_0x45510e=_0x2eb49c['getRowIndexes'](_0x1cc107),_0x3456f4=_0x27ae55?_0x45510e['first']-0x1:_0x45510e['last']+0x1,_0x58eb3b=_0x1cc107[0x0]['findAncestor']('table'),_0x444314=_0x2eb49c['createTableWalker'](_0x58eb3b,{'startRow':_0x3456f4,'endRow':_0x3456f4}),_0x425013=Array['from'](_0x444314)['map'](_0x5adddb=>_0x2eaf8d['createRangeOn'](_0x5adddb['cell']));_0x5dac0a['markMultiRangeInsertion'](_0x425013,'tableRow');});});}for(const _0x32b8b9 of['insertTableColumnLeft','insertTableColumnRight']){const _0x40440b=_0x53ac16['commands']['get'](_0x32b8b9);_0x5dac0a['enableCommand'](_0x32b8b9,_0x127af3=>{_0x53ac16['model']['change'](_0x1e35f8=>{_0x127af3();const _0x5cd73e='left'===_0x40440b['order'],_0x33b24a=_0x2eb49c['getSelectionAffectedTableCells'](_0x5de87a),_0x3ed815=_0x2eb49c['getColumnIndexes'](_0x33b24a),_0x3cbc73=_0x5cd73e?_0x3ed815['first']-0x1:_0x3ed815['last']+0x1,_0x574886=_0x33b24a[0x0]['findAncestor']('table'),_0x1044af=_0x2eb49c['createTableWalker'](_0x574886,{'startRow':0x0,'column':_0x3cbc73,'includeAllSlots':!0x1}),_0x58800c=Array['from'](_0x1044af)['map'](_0x2a18af=>_0x1e35f8['createRangeOn'](_0x2a18af['cell']));_0x5dac0a['markMultiRangeInsertion'](_0x58800c,'tableColumn');});});}for(const _0x3153a8 of['removeTableRow','removeTableColumn']){const _0x2794a6=_0x3153a8['substr'](0xb),_0x2890ae=_0x2794a6['toLowerCase'](),_0x2601cf=_0x2890ae['substr'](0x0,0x3)+'span',_0x191063='table'+_0x2794a6,_0x206df6='min'+_0x2794a6,_0xa84b33='max'+_0x2794a6;_0x5dac0a['enableCommand'](_0x3153a8,()=>{_0x53ac16['model']['change'](_0x573cd6=>{const _0x9a96bc=_0x2eb49c['getSelectionAffectedTableCells'](_0x5de87a),_0x289056=_0x9a96bc[0x0]['findAncestor']('table');let _0x594f9b;if('removeTableRow'==_0x3153a8){const _0x533ba0=_0x2eb49c['getRowIndexes'](_0x9a96bc);_0x594f9b={'startRow':_0x533ba0['first'],'endRow':_0x533ba0['last'],'includeAllSlots':!0x0};}else{const _0x913988=_0x2eb49c['getColumnIndexes'](_0x9a96bc);_0x594f9b={'startColumn':_0x913988['first'],'endColumn':_0x913988['last'],'includeAllSlots':!0x0};}const _0x273e87=_0x2eb49c['createTableWalker'](_0x289056,_0x594f9b),_0x4d8c4f=Array['from'](_0x273e87)['map'](({cell:_0x27eb28})=>_0x27eb28),_0x290e31=Ne(_0x4d8c4f['filter'](_0x18fd01=>_0x18fd01['hasAttribute'](_0x2601cf))),_0x4c195d=Ne(_0x4d8c4f['filter'](_0x5a1f7d=>!_0x5a1f7d['hasAttribute'](_0x2601cf)))['map'](_0x336ce3=>_0x573cd6['createRangeOn'](_0x336ce3)),_0xb3ea15=_0x5dac0a['markMultiRangeDeletion'](_0x4c195d,_0x191063);if(_0xb3ea15&&('tableRow'==_0xb3ea15['subType']||'tableColumn'==_0xb3ea15['subType'])){const _0x5d79c=this['_getSuggestionCoords'](_0xb3ea15);for(const _0x3c300b of _0x290e31){const _0x476062=_0x573cd6['createRangeOn'](_0x3c300b),_0x2d127c=_0x2eb49c['getCellLocation'](_0x3c300b),_0x4ec87e=_0x3c300b['getAttribute'](_0x2601cf)-0x1,_0x2b20ba=_0x5d79c[_0x206df6],_0x5ef164=_0x5d79c[_0xa84b33];_0x2b20ba<=_0x2d127c[_0x2890ae]&&_0x2d127c[_0x2890ae]+_0x4ec87e<=_0x5ef164&&_0xb3ea15['addRange'](_0x476062);}}});});}function _0x14b03a(_0xfe50f5){const _0x343119=Array['from'](_0x5de87a['getRanges']())['map'](_0x2d80fa=>_0x1200ae['fromRange'](_0x2d80fa));_0x53ac16['model']['change'](_0x3d644b=>{const _0x576438=_0x3d644b['batch'];_0xfe50f5=_0xfe50f5['filter'](_0x43f84f=>'$graveyard'!=_0x43f84f['root']['rootName']),_0x3d644b['setSelection'](_0xfe50f5),_0x53ac16['commands']['get']('removeTableRow')['refresh'](),_0x53ac16['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x53ac16['model']['enqueueChange'](()=>{_0x53ac16['model']['enqueueChange'](_0x576438,_0x436401=>{const _0x40a1ef=_0x343119['filter'](_0x1c1bda=>'$graveyard'!=_0x1c1bda['root']['rootName']);_0x40a1ef['length']>0x0&&_0x436401['setSelection'](_0x40a1ef);for(const _0x4a88d9 of _0x343119)_0x4a88d9['detach']();});});});}function _0x3aae32(_0x565ea3){_0x53ac16['model']['change'](_0x544549=>{const _0x195cef=Array['from'](_0x5de87a['getRanges']())['map'](_0x307497=>_0x1200ae['fromRange'](_0x307497)),_0x1720b9=[];for(const _0xfb6764 of _0x565ea3)for(const _0x74af32 of _0xfb6764['getItems']({'shallow':!0x0}))_0x1720b9['push'](_0x74af32);for(const _0x3f3586 of _0x1720b9)'$graveyard'!=_0x3f3586['root']['rootName']&&(_0x544549['setSelection'](_0x544549['createPositionAt'](_0x3f3586,0x0)),_0x53ac16['commands']['get']('removeTableColumn')['refresh'](),_0x53ac16['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x56b3ae=_0x195cef['filter'](_0x5dd967=>'$graveyard'!=_0x5dd967['root']['rootName']);_0x56b3ae['length']>0x0&&_0x544549['setSelection'](_0x56b3ae);for(const _0x42e52c of _0x195cef)_0x42e52c['detach']();});}function _0x3b5cb4(_0xab9bda,_0xa67c0d){return _0xa67c0d['every'](_0x30dda8=>_0xab9bda['some'](_0x4f8896=>_0x4f8896['end']['isEqual'](_0x30dda8['start'])||_0x30dda8['end']['isEqual'](_0x4f8896['start'])));}function _0x292af0(_0x5fc4d9,_0x59dff3){return!_0x5fc4d9['some'](_0x21ceb3=>_0x59dff3['some'](_0x2e3957=>_0x21ceb3['isIntersecting'](_0x2e3957)))&&_0x5fc4d9['some'](_0x11d325=>_0x59dff3['some'](_0x3ae9db=>_0x11d325['end']['isTouching'](_0x3ae9db['start'])));}_0x53ac16['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x35fc5a,_0x3a62fa,_0x4b2f3b)=>{if(!_0x4b2f3b['options']['showSuggestionHighlights'])return;const _0x1c403e=_0x3a62fa['item'];if(!_0x1c403e)return;const _0x3d00e5=_0x4b2f3b['mapper']['toViewElement'](_0x1c403e);function _0x13434a(_0x1827f8){return Array['isArray'](_0x1827f8)?_0x1827f8:[_0x1827f8];}_0x3d00e5&&'tableCell'===_0x1c403e['name']&&_0x4b20b2(_0x3d00e5,_0x4b2f3b['writer'],(_0x1d4bd6,_0x2956e4,_0x180dbe)=>_0x180dbe['addClass'](_0x13434a(_0x2956e4['classes']),_0x1d4bd6),(_0x49fb8c,_0x2bb926,_0x38ea70)=>_0x38ea70['removeClass'](_0x13434a(_0x2bb926['classes']),_0x49fb8c));},{'priority':'highest'}),_0x5dac0a['descriptionFactory']['registerDescriptionCallback'](_0x26bd41=>{if('insertion'!=_0x26bd41['type']&&'deletion'!=_0x26bd41['type'])return;const _0x39ee23=_0x26bd41['getContainedElement']();if(null!=_0x39ee23&&_0x39ee23['is']('element','table')){if('insertion'==_0x26bd41['type']){const _0x3d269=_0x26bd41['getItems']()['filter'](_0x449186=>_0x449186['is']('$textProxy'))['map'](_0x185a4d=>_0x185a4d['data']);if(_0x3d269['length'])return{'type':'insertion','content':o(_0x14e08d,'*Insert:*\x20%0',o(_0x14e08d,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3d269['join']('\x20')+'\x22'))};}if('deletion'==_0x26bd41['type']){const _0x57dc54=_0x26bd41['getItems']()['filter'](_0x3412c1=>_0x3412c1['is']('$textProxy'))['map'](_0x114983=>_0x114983['data']);if(_0x57dc54['length'])return{'type':'deletion','content':o(_0x14e08d,'*Remove:*\x20%0',o(_0x14e08d,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x57dc54['join']('\x20')+'\x22'))};}}}),_0x5dac0a['descriptionFactory']['registerDescriptionCallback'](_0xec58f=>{if('tableRow'==_0xec58f['subType']){const _0x1c296a=_0xec58f['getItems']()['filter'](_0x10f95f=>_0x10f95f['is']('$textProxy'))['map'](_0x8ff7ec=>_0x8ff7ec['data']),_0x1110e5=this['_getSuggestionCoords'](_0xec58f),_0x57277a=_0x1110e5['maxRow']-_0x1110e5['minRow']+0x1;if('insertion'==_0xec58f['type'])return _0x1c296a['length']?{'type':'insertion','content':o(_0x14e08d,'*Insert:*\x20%0',o(_0x14e08d,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x57277a,'\x22'+_0x1c296a['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x14e08d,'*Insert:*\x20%0',o(_0x14e08d,'ELEMENT_TABLE_ROW',_0x57277a))};if('deletion'==_0xec58f['type'])return _0x1c296a['length']?{'type':'deletion','content':o(_0x14e08d,'*Remove:*\x20%0',o(_0x14e08d,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x57277a,'\x22'+_0x1c296a['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x14e08d,'*Remove:*\x20%0',o(_0x14e08d,'ELEMENT_TABLE_ROW',_0x57277a))};}if('tableColumn'==_0xec58f['subType']){const _0x4f2429=_0xec58f['getItems']()['filter'](_0x34dadb=>_0x34dadb['is']('$textProxy'))['map'](_0x398047=>_0x398047['data']),_0x2c7cba=this['_getSuggestionCoords'](_0xec58f),_0x4e1e81=_0x2c7cba['maxColumn']-_0x2c7cba['minColumn']+0x1;if('insertion'==_0xec58f['type'])return _0x4f2429['length']?{'type':'insertion','content':o(_0x14e08d,'*Insert:*\x20%0',o(_0x14e08d,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4e1e81,'\x22'+_0x4f2429['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x14e08d,'*Insert:*\x20%0',o(_0x14e08d,'ELEMENT_TABLE_COLUMN',_0x4e1e81))};if('deletion'==_0xec58f['type'])return _0x4f2429['length']?{'type':'deletion','content':o(_0x14e08d,'*Remove:*\x20%0',o(_0x14e08d,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4e1e81,'\x22'+_0x4f2429['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x14e08d,'*Remove:*\x20%0',o(_0x14e08d,'ELEMENT_TABLE_COLUMN',_0x4e1e81))};}}),_0x5dac0a['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x14b03a),_0x5dac0a['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x14b03a),_0x5dac0a['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x3aae32),_0x5dac0a['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x3aae32),_0x5dac0a['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x3b5cb4),_0x5dac0a['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x3b5cb4),_0x5dac0a['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x292af0),_0x5dac0a['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x292af0);}['_acceptFormatSuggestionCallbackFactory'](){const _0x2af668=this['editor'],_0x4a8530=_0x2af668['model']['document']['selection'];return(_0x44f943,_0x507c61)=>{_0x2af668['model']['change'](_0x15074a=>{const {commandName:_0x3e5980,commandParams:_0x11dd41}=_0x507c61;let _0x2fb1fe=_0x44f943[0x0]['end']['nodeBefore'];_0x11dd41&&_0x11dd41[0x0]&&!0x1===_0x11dd41[0x0]['forceValue']&&(_0x2fb1fe=_0x44f943[0x0]['start']['nodeAfter']);const _0x50075a=_0x15074a['createRangeIn'](_0x2fb1fe);if('$graveyard'==_0x50075a['root']['rootName'])return;const _0x51edb6=Array['from'](_0x4a8530['getRanges']())['map'](_0xf4abca=>_0x1200ae['fromRange'](_0xf4abca));_0x15074a['setSelection'](_0x50075a),_0x2af668['commands']['get'](_0x3e5980)['refresh'](),_0x11dd41['push']({'forceDefaultExecution':!0x0}),_0x2af668['execute'](_0x3e5980,..._0x11dd41);const _0x387531=_0x51edb6['filter'](_0x33829e=>'$graveyard'!=_0x33829e['root']['rootName']);_0x387531['length']>0x0&&_0x15074a['setSelection'](_0x387531);for(const _0x59738d of _0x51edb6)_0x59738d['detach']();});};}['_getCoordsForCells'](_0x3cfee6){const _0x5709a1=this['editor']['plugins']['get']('TableUtils');let _0x3cd249=Number['MAX_SAFE_INTEGER'],_0x1a44d4=Number['MIN_SAFE_INTEGER'],_0x3887be=Number['MAX_SAFE_INTEGER'],_0x8a49dc=Number['MIN_SAFE_INTEGER'];for(const _0x5ec766 of _0x3cfee6){if('$graveyard'==_0x5ec766['root']['rootName'])continue;const {row:_0x45f53a,column:_0x2d22fd}=_0x5709a1['getCellLocation'](_0x5ec766),_0x3b4bb5=_0x5ec766['hasAttribute']('rowspan')?_0x5ec766['getAttribute']('rowspan')-0x1:0x0,_0x846d99=_0x5ec766['hasAttribute']('colspan')?_0x5ec766['getAttribute']('colspan')-0x1:0x0;_0x3cd249=_0x45f53a<_0x3cd249?_0x45f53a:_0x3cd249,_0x1a44d4=_0x45f53a+_0x3b4bb5>_0x1a44d4?_0x45f53a+_0x3b4bb5:_0x1a44d4,_0x3887be=_0x2d22fd<_0x3887be?_0x2d22fd:_0x3887be,_0x8a49dc=_0x2d22fd+_0x846d99>_0x8a49dc?_0x2d22fd+_0x846d99:_0x8a49dc;}return{'minRow':_0x3cd249,'maxRow':_0x1a44d4,'minColumn':_0x3887be,'maxColumn':_0x8a49dc};}['_setupColumnsRowsFixing'](){const _0x24f1a4=this['editor'],_0x332d43=_0x24f1a4['plugins']['get']('TrackChangesEditing'),_0xf7f847=_0x24f1a4['plugins']['get']('TableUtils');_0x24f1a4['model']['document']['on']('change:data',()=>{const _0x1c9414=Array['from'](_0x24f1a4['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x420ca2,data:_0x1cd512}of _0x1c9414){const {group:_0x178331,id:_0x464341,subType:_0x54243b}=_0x332d43['_splitMarkerName'](_0x420ca2);if('suggestion'!=_0x178331)continue;if(null!=_0x1cd512['oldRange'])continue;const _0x584fad=_0x332d43['getSuggestion'](_0x464341);this['_tablePostFixingSubtypes']['includes'](_0x54243b)&&this['_tableSuggestions']['add'](_0x584fad);}},{'priority':'low'});const _0x22ac30=(_0x13b07b,_0x39b953)=>{let _0x50a309=!0x1;const _0x10d19b=_0x39b953['createRangeOn'](_0x13b07b),_0x422e15=_0x13b07b['findAncestor']('table'),_0x405442=_0xf7f847['getCellLocation'](_0x13b07b);for(const _0x579a57 of this['_tableSuggestions']){const _0xf58c=_0x579a57['subType'],_0x3392e4=_0xf58c['startsWith']('tablePaste'),_0xb35e38=_0xf58c['substr'](_0x3392e4?0xa:0x5),_0x3e5df9=_0xb35e38['toLowerCase'](),_0x39e561=_0x3e5df9['substr'](0x0,0x3)+'span',_0x43f222='min'+_0xb35e38,_0x59db0e='max'+_0xb35e38;if(!_0x579a57['isInContent'])continue;if(_0x422e15!=_0x579a57['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x579a57['isIntersectingWithRange'](_0x10d19b))continue;const _0x27a2bc=_0x13b07b['hasAttribute'](_0x39e561)?_0x13b07b['getAttribute'](_0x39e561)-0x1:0x0,_0x6b9a60=this['_getSuggestionCoords'](_0x579a57),_0x166ab5=_0x6b9a60[_0x43f222],_0x4c17b6=_0x6b9a60[_0x59db0e];_0x166ab5<=_0x405442[_0x3e5df9]&&_0x405442[_0x3e5df9]+_0x27a2bc<=_0x4c17b6&&(_0x579a57['addRange'](_0x10d19b),_0x50a309=!0x0);}return _0x50a309;};_0x24f1a4['model']['document']['registerPostFixer'](_0x518e37=>{let _0x3255e1=!0x1;for(const _0x316570 of _0x24f1a4['model']['document']['differ']['getChanges']())if('insert'==_0x316570['type']){if('tableRow'==_0x316570['name']){for(const _0x258871 of _0x316570['position']['nodeAfter']['getChildren']())_0x3255e1=_0x3255e1||_0x22ac30(_0x258871,_0x518e37);}else'tableCell'==_0x316570['name']&&(_0x3255e1=_0x3255e1||_0x22ac30(_0x316570['position']['nodeAfter'],_0x518e37));}return _0x3255e1;});}['_getSuggestionCoords'](_0x4b0772){return this['_getCoordsForCells'](_0x4b0772['getRanges']()['map'](_0x5a2e51=>_0x5a2e51['start']['nodeAfter']));}}function Ne(_0x2ba02d){return Array['from'](new Set(_0x2ba02d)['values']());}class Nt extends _0x2e0600{static get['requires'](){return[Ct];}['afterInit'](){const _0xccdef0=this['editor'],_0x2aa0b6=_0xccdef0['model']['document']['selection'],_0x6cf939=_0xccdef0['locale'];if(!_0xccdef0['plugins']['has']('TableEditing'))return;const _0x308822=_0xccdef0['plugins']['get']('TrackChangesEditing'),_0x25d36a=_0xccdef0['plugins']['get']('TableUtils'),_0x386d8b=_0xccdef0['plugins']['get'](Ct);_0x386d8b['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x308822['enableCommand']('mergeTableCells',()=>{const _0x42c0be=_0x25d36a['getSelectionAffectedTableCells'](_0xccdef0['model']['document']['selection']);_0xccdef0['model']['change'](()=>{_0x308822['markMultiRangeBlockFormat'](_0x42c0be,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0xccdef0['commands']['get']('mergeTableCells')['on']('execute',(_0x46647b,_0x15ffb0)=>{_0xccdef0['commands']['get']('trackChanges')['value']&&(_0x15ffb0['length']>0x0&&_0x15ffb0[_0x15ffb0['length']-0x1]&&_0x15ffb0[_0x15ffb0['length']-0x1]['forceDefaultExecution']||_0x308822['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x46647b['stop']());},{'priority':'highest'});for(const _0x174032 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x1b57ff=_0xccdef0['commands']['get'](_0x174032);_0x308822['enableCommand'](_0x174032,()=>{const _0x4e5618=_0xccdef0['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1e6630=>_0x1e6630['is']('element','tableCell')),_0x2fa137=_0x1b57ff['value'];_0xccdef0['model']['change'](()=>{_0x308822['markMultiRangeBlockFormat']([_0x4e5618,_0x2fa137],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x235992 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x12db03=_0xccdef0['commands']['get'](_0x235992);_0x308822['enableCommand'](_0x235992,()=>{const _0x25f8c3=_0x25d36a['getSelectionAffectedTableCells'](_0xccdef0['model']['document']['selection'])[0x0],_0x3fef95=_0x25f8c3['findAncestor']('table'),{column:_0x341cbd,row:_0x36b089}=_0x25d36a['getCellLocation'](_0x25f8c3);let _0x588869=[];if('horizontally'==_0x12db03['direction']){const _0x498280=_0x25d36a['createTableWalker'](_0x3fef95,{'startRow':_0x36b089,'endRow':_0x36b089,'includeAllSlots':!0x0});_0x588869=Array['from'](_0x498280)['map'](_0x53c1b8=>_0x53c1b8['cell']);}else{const _0x2a7813=_0x25d36a['createTableWalker'](_0x3fef95,{'column':_0x341cbd,'includeAllSlots':!0x0});_0x588869=Array['from'](_0x2a7813)['map'](_0x32ad9c=>_0x32ad9c['cell']);}_0xccdef0['model']['change'](_0x267838=>{_0x308822['markBlockFormat'](_0x267838['createRangeOn'](_0x25f8c3),{'commandName':_0x235992,'commandParams':[]},_0x588869,_0x235992);});});}_0x308822['descriptionFactory']['registerDescriptionCallback'](_0x1dcf99=>{if('formatBlock'!=_0x1dcf99['type']&&'formatInline'!=_0x1dcf99['type'])return;const {data:_0x5ec1d9}=_0x1dcf99;return _0x5ec1d9&&'mergeTableCells'==_0x5ec1d9['commandName']?{'type':'format','content':o(_0x6cf939,'*Merge\x20cells*')}:void 0x0;}),_0x308822['descriptionFactory']['registerDescriptionCallback'](_0xab40dd=>{if('formatBlock'!=_0xab40dd['type']&&'formatInline'!=_0xab40dd['type'])return;const {data:_0xcb1fe2}=_0xab40dd;return _0xcb1fe2?'splitTableCellVertically'==_0xcb1fe2['commandName']?{'type':'format','content':o(_0x6cf939,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0xcb1fe2['commandName']?{'type':'format','content':o(_0x6cf939,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x5d0d0f=_0x386d8b['_acceptFormatSuggestionCallbackFactory']();for(const _0x151ff1 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x308822['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x151ff1,'accept',_0x5d0d0f);for(const _0xbdc16 of['splitTableCellVertically','splitTableCellHorizontally'])_0x308822['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xbdc16,'accept',_0x5d0d0f);_0x308822['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x4e10b6=>{_0xccdef0['model']['change'](_0x58319b=>{const _0x5b8380=Array['from'](_0x2aa0b6['getRanges']())['map'](_0x178490=>_0x1200ae['fromRange'](_0x178490));_0x58319b['setSelection'](_0x4e10b6),_0xccdef0['commands']['get']('mergeTableCells')['refresh'](),_0xccdef0['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x44b7ac=_0x5b8380['filter'](_0x32bc98=>'$graveyard'!=_0x32bc98['root']['rootName']);_0x44b7ac['length']>0x0&&_0x58319b['setSelection'](_0x44b7ac);for(const _0x4387c9 of _0x5b8380)_0x4387c9['detach']();});});for(const _0x37160a of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x9633aa=_0xccdef0['commands']['get'](_0x37160a);_0x9633aa['on']('set:isEnabled',(_0xedd21a,_0x4aa04a,_0x13e837)=>{if(_0x13e837){const _0xb6a16e=_0xccdef0['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1b8d74=>_0x1b8d74['is']('element','tableCell'));this['_areMergableCells'](_0x9633aa['value'],_0xb6a16e)||(_0xedd21a['return']=!0x1,_0xedd21a['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x2f233a=this['editor']['commands']['get']('mergeTableCells'),_0x467057=this['editor']['plugins']['get']('TableUtils');if(!_0x2f233a['isEnabled'])return!0x1;const _0x318ac8=_0x467057['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x4d6b61 of _0x318ac8)for(const _0x4413f8 of _0x318ac8)if(_0x4d6b61!=_0x4413f8&&!this['_areMergableCells'](_0x4d6b61,_0x4413f8))return!0x1;return!0x0;}['_areMergableCells'](_0x546252,_0x4f00cb){const _0x4be8e3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x51d13e=this['editor']['model']['createRangeOn'](_0x546252),_0x3e9719=this['editor']['model']['createRangeOn'](_0x4f00cb),_0x1099e2=new Set(),_0x589b85=new Set();for(const _0xcc7c36 of _0x4be8e3['getSuggestions']())if(('insertion'==_0xcc7c36['type']||'deletion'==_0xcc7c36['type']||'mergeTableCells'==_0xcc7c36['subType'])&&_0xcc7c36['isInContent']){for(const _0x3e7c8e of _0xcc7c36['getRanges']())_0x3e7c8e['containsRange'](_0x51d13e,!0x0)&&_0x1099e2['add'](_0xcc7c36['type']+':'+_0xcc7c36['author']['id']),_0x3e7c8e['containsRange'](_0x3e9719,!0x0)&&_0x589b85['add'](_0xcc7c36['type']+':'+_0xcc7c36['author']['id']);}if(_0x1099e2['size']!=_0x589b85['size'])return!0x1;for(const _0x315b15 of _0x1099e2)if(!_0x589b85['has'](_0x315b15))return!0x1;return!0x0;}}class Dt extends _0x2e0600{static get['requires'](){return[Ct];}['afterInit'](){const _0x1ab344=this['editor'];if(!_0x1ab344['plugins']['has']('TableEditing'))return;const _0x87bfd5=_0x1ab344['locale'],_0x15f613=_0x1ab344['plugins']['get']('TrackChangesEditing');_0x15f613['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x15f613['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x15f613['registerBlockAttribute']('headingRows'),_0x15f613['registerBlockAttribute']('headingColumns'),_0x15f613['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x87bfd5,'FORMAT_HEADER_ROW')),_0x15f613['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x87bfd5,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x39e66b=this['editor']['plugins']['get']('TrackChangesEditing'),_0xc2edcf=this['editor']['plugins']['get']('TableUtils'),_0x13a7e8=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x5c11d8({showActiveMarker:_0x27d216=!0x0,setDataAttribute:_0x2680bf=!0x0}={}){return(_0x349820,_0x657668,_0x4929cd)=>{const {type:_0x14bd3a,id:_0x4ae920}=_0x39e66b['_splitMarkerName'](_0x657668['markerName']),_0x342941=_0x39e66b['getSuggestion'](_0x4ae920),_0x448e4e=_0x342941['data'];if('formatBlock'!=_0x342941['type']||!_0x448e4e||'setTableColumnHeader'!=_0x448e4e['commandName'])return;if(_0x657668['item'])return void _0x349820['stop']();if(!_0x4929cd['consumable']['consume'](_0x657668['markerRange'],_0x349820['name']))return;const _0x24a5cf=_0x657668['markerRange']['start']['nodeAfter'],_0x1518cb=_0x657668['markerRange']['end']['nodeBefore'],_0x51b072=_0x24a5cf['parent']['parent'],{column:_0x3cb8a3}=_0xc2edcf['getCellLocation'](_0x24a5cf),{column:_0x35cebb}=_0xc2edcf['getCellLocation'](_0x1518cb);for(let _0x52d63e=_0x3cb8a3;_0x52d63e<=_0x35cebb;_0x52d63e++){const _0x19ca4e=_0xc2edcf['createTableWalker'](_0x51b072,{'column':_0x52d63e,'includeAllSlots':!0x1});for(const _0x277a61 of _0x19ca4e){const _0x414dd1=_0x277a61['cell'],_0x16b1e8=_0x4929cd['mapper']['toViewElement'](_0x414dd1);_0x4929cd['writer']['addClass']('ck-suggestion-marker-'+_0x14bd3a,_0x16b1e8),_0x2680bf&&_0x4929cd['writer']['setAttribute']('data-suggestion',_0x4ae920,_0x16b1e8),_0x4929cd['mapper']['bindElementToMarker'](_0x16b1e8,_0x657668['markerName']),_0x27d216&&(_0x39e66b['activeMarkers']['includes'](_0x657668['markerName'])?_0x4929cd['writer']['addClass']('ck-suggestion-marker--active',_0x16b1e8):_0x4929cd['writer']['removeClass']('ck-suggestion-marker--active',_0x16b1e8));}}};}_0x39e66b['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x13a7e8),_0x39e66b['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x13a7e8),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x5c11d8(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x195a7e,_0x504713,_0x3a3f5d)=>{_0x3a3f5d['options']['showSuggestionHighlights']&&_0x5c11d8({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x195a7e,_0x504713,_0x3a3f5d);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x41fc91,_0xe5bac5,_0x56a367)=>{const {type:_0x217872,id:_0x543ffc}=_0x39e66b['_splitMarkerName'](_0xe5bac5['markerName']),_0x1ffe90=_0x39e66b['getSuggestion'](_0x543ffc),_0x56a422=_0x1ffe90['data'];if('formatBlock'!=_0x1ffe90['type']||!_0x56a422||'setTableColumnHeader'!=_0x56a422['commandName'])return;const _0x4d534f=_0x56a367['mapper']['markerNameToElements'](_0xe5bac5['markerName']);if(_0x4d534f){for(const _0x1bc7d1 of _0x4d534f)_0x56a367['writer']['removeClass']('ck-suggestion-marker-'+_0x217872,_0x1bc7d1),_0x56a367['writer']['removeClass']('ck-suggestion-marker--active',_0x1bc7d1),_0x56a367['writer']['removeAttribute']('data-suggestion',_0x1bc7d1),_0x56a367['mapper']['unbindElementFromMarkerName'](_0x1bc7d1,_0xe5bac5['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x292c98=this['editor'],_0x400ecc=_0x292c98['locale'];function _0x4d942b(_0x423de5){return{'type':'format','content':o(_0x400ecc,'*Format:*\x20%0',_0x423de5)};}_0x292c98['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x434ead=>{if('formatBlock'!=_0x434ead['type'])return;const {data:_0x16b13b}=_0x434ead;if(_0x16b13b){if('setTableRowHeader'==_0x16b13b['commandName']){const _0x1082cb=_0x16b13b['commandParams'][0x0]['forceValue'];return _0x4d942b(o(_0x400ecc,_0x1082cb?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x16b13b['commandName']){const _0x54307f=_0x16b13b['commandParams'][0x0]['forceValue'];return _0x4d942b(o(_0x400ecc,_0x54307f?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x552ea0=>[_0x552ea0,null]));class Mt extends _0x2e0600{static get['requires'](){return[Ct];}['afterInit'](){const _0x1918a5=this['editor'];if(!_0x1918a5['plugins']['has']('TableClipboard'))return;const _0x388eb8=_0x1918a5['plugins']['get']('TrackChangesEditing'),_0x25ec40=_0x1918a5['plugins']['get']('TableUtils'),_0xc8e4f1=_0x1918a5['plugins']['get'](Ct),_0x1712e2=_0x1918a5['plugins']['get']('TableClipboard');_0xc8e4f1['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x1918a5['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x1918a5['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x32f439=null;_0x1918a5['model']['on']('insertContent',(_0x229365,_0x5bed15)=>{const [_0x4d607b,_0x56dd5a]=_0x5bed15,_0x3c04f6=_0x5bed15[_0x5bed15['length']-0x1];_0x3c04f6&&_0x3c04f6['forceDefaultExecution']||_0x388eb8['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x5c5a1f,_0x323177,_0x3c6c0f,_0x186e96,_0x162737){if(_0x323177&&!_0x323177['is']('documentSelection'))return!0x1;const _0xdcec7=_0x162737['getTableIfOnlyTableInContent'](_0x5c5a1f,_0x3c6c0f);if(!_0xdcec7||!Ue(_0xdcec7,void 0x0,_0x186e96))return!0x1;const _0x3d4480=_0x186e96['getSelectionAffectedTableCells'](_0x3c6c0f['document']['selection']);if(!_0x3d4480['length'])return!0x1;const _0x10b5bc=_0x3d4480[0x0]['findAncestor']('table'),_0x53be86=_0x186e96['getRowIndexes'](_0x3d4480),_0x3ba077=_0x186e96['getColumnIndexes'](_0x3d4480),_0x277190={'startRow':_0x53be86['first'],'endRow':_0x53be86['last'],'startColumn':_0x3ba077['first'],'endColumn':_0x3ba077['last']};return 0x1==_0x3d4480['length']&&(_0x277190['endRow']+=_0x186e96['getRows'](_0xdcec7)-0x1,_0x277190['endColumn']+=_0x186e96['getColumns'](_0xdcec7)-0x1),Ue(_0x10b5bc,_0x277190,_0x186e96);}(_0x4d607b,_0x56dd5a,_0x1918a5['model'],_0x25ec40,_0x1712e2)&&(_0x229365['stop'](),_0x32f439={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x1918a5['model']['change'](()=>{_0x1918a5['model']['insertContent'](_0x5bed15[0x0],_0x5bed15[0x1],_0x5bed15[0x2],{'forceDefaultExecution':!0x0});const _0x41ab49=_0x502eb1(),{rowInsertionRanges:_0x219724,columnInsertionRanges:_0x501117,insertionRanges:_0x3cd0d,deletionRanges:_0x20dfee,cells:_0x28710f}=_0x32f439;_0x219724['length']&&_0x388eb8['markMultiRangeInsertion'](_0x219724,'tablePasteRow',{'tablePasteChainId':_0x41ab49}),_0x501117['length']&&_0x388eb8['markMultiRangeInsertion'](_0x501117,'tablePasteColumn',{'tablePasteChainId':_0x41ab49}),_0x3cd0d['length']&&(_0x388eb8['markMultiRangeInsertion'](_0x3cd0d,'tablePaste',{'tablePasteChainId':_0x41ab49,'skipNestingCheck':!0x0}),_0x3cd0d['forEach'](_0x2b7c03=>_0x2b7c03['detach']?.())),_0x20dfee['length']&&(_0x388eb8['markMultiRangeDeletion'](_0x20dfee,'tablePaste',{'tablePasteChainId':_0x41ab49,'skipNestingCheck':!0x0}),_0x20dfee['forEach'](_0x9a5d58=>_0x9a5d58['detach']?.()));const _0x2b1bae=_0x388eb8['markMultiRangeBlockFormat'](_0x28710f['map'](({element:_0x310556})=>_0x310556),{'formatGroupId':_0x502eb1()},[],'tablePasteCell',{'tablePasteChainId':_0x41ab49});if(_0x2b1bae){const _0x7b698f=_0x2b1bae['getMarkers'](),_0x416267=[];for(const {element:_0x10034d,attributes:_0x1ec55a}of _0x28710f){if(!_0x1ec55a)continue;const _0x3d2c0d=_0x1918a5['model']['createRangeOn'](_0x10034d),_0x6a1cdc=_0x7b698f['find'](_0x4a96f1=>_0x4a96f1['getRange']()['isEqual'](_0x3d2c0d));_0x6a1cdc&&_0x416267['push']([_0x6a1cdc['name'],_0x1ec55a]);}_0x416267['length']&&_0x2b1bae['setAttribute']('markerAttributes',Object['fromEntries'](_0x416267));}_0x32f439=null;}));},{'priority':_0xffa7dc['high']+0xa}),_0x1918a5['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x4b46e2,_0xc78f3d)=>{const [_0x3ffa88,_0x29f545,,_0x3d1a1e]=_0xc78f3d;if(!_0x32f439)return;_0x4b46e2['stop']();const _0x222cdd=_0x3ffa88['cell'],_0x4a4806=_0x29f545,_0x4d84c3=Oe(_0x222cdd),_0x1bf885=Oe(_0x4a4806);_0x4b46e2['return']=_0x222cdd;let _0xcea442=null,_0x5ccfba=null;if(_0x1bf885||_0x4d84c3){if(_0x4d84c3&&!_0x1bf885){_0x3d1a1e['remove'](_0x222cdd['getChild'](0x0));for(const _0x49db5c of Array['from'](_0x4a4806['getChildren']()))_0x3d1a1e['insert'](_0x49db5c,_0x222cdd,'end');const _0x13cec2=_0x32f439['rowInsertionIndexes']['includes'](_0x3ffa88['row']),_0x3a265c=_0x32f439['columnInsertionIndexes']['includes'](_0x3ffa88['column']);_0x13cec2||_0x3a265c||(_0xcea442=_0x1200ae['fromRange'](_0x3d1a1e['createRangeIn'](_0x222cdd)));}else _0x1bf885&&!_0x4d84c3&&(_0x5ccfba=_0x3d1a1e['createRangeIn'](_0x222cdd));}else{const _0x8dec16=_0x3d1a1e['createElement']('tableCellSuggestion'),_0x18e3d7=_0x3d1a1e['createElement']('tableCellSuggestion');_0x3d1a1e['wrap'](_0x3d1a1e['createRangeIn'](_0x222cdd),_0x18e3d7),_0x3d1a1e['insert'](_0x8dec16,_0x222cdd,0x0);for(const _0x39c298 of Array['from'](_0x4a4806['getChildren']()))_0x3d1a1e['insert'](_0x39c298,_0x8dec16,'end');_0xcea442=_0x1200ae['fromRange'](_0x3d1a1e['createRangeOn'](_0x8dec16)),_0x5ccfba=_0x1200ae['fromRange'](_0x3d1a1e['createRangeOn'](_0x18e3d7));}const _0x23da30=Array['from'](_0x4a4806['getAttributes']())['filter'](([_0x1f2d4d])=>Be['includes'](_0x1f2d4d));_0x32f439['cells']['push']({'element':_0x222cdd,'attributes':_0x23da30['length']?Object['fromEntries'](_0x23da30):null}),_0xcea442&&_0x32f439['insertionRanges']['push'](_0xcea442),_0x5ccfba&&_0x32f439['deletionRanges']['push'](_0x5ccfba);},{'priority':'high'}),_0x25ec40['on']('insertColumns',(_0x611971,_0x5e1801)=>{const [_0x29299e,_0x341bfe={}]=_0x5e1801;if(!_0x32f439)return;const _0x2a6b56=_0x341bfe['at']||0x0,_0x4507fd=_0x341bfe['columns']||0x1;_0x32f439['columnInsertionIndexes']=new Array(_0x4507fd)['fill'](_0x2a6b56)['map']((_0x2b9244,_0x4c8e8a)=>_0x2b9244+_0x4c8e8a);for(const {cell:_0x25b4d3}of _0x25ec40['createTableWalker'](_0x29299e,{'startColumn':_0x2a6b56,'endColumn':_0x2a6b56+_0x4507fd-0x1}))_0x32f439['columnInsertionRanges']['push'](_0x1918a5['model']['createRangeOn'](_0x25b4d3));},{'priority':'low'}),_0x25ec40['on']('insertRows',(_0x52a59f,_0x3e3302)=>{const [_0x5f2d62,_0x19f8f3={}]=_0x3e3302;if(!_0x32f439)return;const _0x5402c9=_0x19f8f3['at']||0x0,_0x3c469c=_0x19f8f3['rows']||0x1;_0x32f439['rowInsertionIndexes']=new Array(_0x3c469c)['fill'](_0x5402c9)['map']((_0x422720,_0x210104)=>_0x422720+_0x210104);for(const {cell:_0x3b89c8}of _0x25ec40['createTableWalker'](_0x5f2d62,{'startRow':_0x5402c9,'endRow':_0x5402c9+_0x3c469c-0x1}))_0x32f439['rowInsertionRanges']['push'](_0x1918a5['model']['createRangeOn'](_0x3b89c8));},{'priority':'low'}),_0x388eb8['descriptionFactory']['registerDescriptionCallback'](_0x4644ea=>{if(_0x4644ea['subType']&&_0x4644ea['subType']['startsWith']('tablePaste'))return _0x4644ea['previous']?{}:{'type':'insertion','content':o(_0x1918a5['locale'],'*Replace\x20table\x20cells*')};});const _0x26e0dd=()=>!0x1;for(const _0xd593c7 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x388eb8['_suggestionFactory']['registerCustomCallback']('insertion',_0xd593c7,'join',_0x26e0dd),_0x388eb8['_suggestionFactory']['registerCustomCallback']('deletion',_0xd593c7,'join',_0x26e0dd),_0x388eb8['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xd593c7,'join',_0x26e0dd);_0x388eb8['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x26e0dd),_0x388eb8['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x1e2c8d,_0x4dd017,_0x2d6863)=>{const _0x3dcf59=_0x1e2c8d['map'](_0x1c087a=>_0x1c087a['getContainedElement']())['filter'](_0x5b0e1d=>_0x5b0e1d),_0x55f8ca=new Map(_0x3dcf59['map'](_0x5ef279=>[_0x5ef279,null]));if(_0x32f439){for(const {element:_0x2234b2,attributes:_0x29ea97}of _0x32f439['cells'])_0x29ea97&&_0x55f8ca['set'](_0x2234b2,_0x29ea97);}else{if(_0x2d6863&&_0x2d6863['markerAttributes'])for(const [_0x30d25a,_0x568147]of Object['entries'](_0x2d6863['markerAttributes'])){const _0x4076bc=_0x1918a5['model']['markers']['get'](_0x30d25a),_0x161f97=_0x4076bc?_0x4076bc['getRange']()['getContainedElement']():null;_0x161f97&&_0x55f8ca['set'](_0x161f97,_0x568147);}}_0x1918a5['model']['change'](_0x35db3e=>{for(const [_0xd3767,_0x1e8a08]of _0x55f8ca)_0x35db3e['setAttributes']({...xe,..._0x1e8a08},_0xd3767);});});const _0x695155=(_0x26e38d,_0x48ebb5)=>{_0x388eb8['_suggestionFactory']['registerCustomCallback'](_0x26e38d,'tablePaste',_0x48ebb5,(_0x27fa07,_0x1e0d7a,_0x33756d)=>{_0x1918a5['model']['change'](_0x2d9626=>{const _0x58e723=[];for(const _0x228730 of _0x27fa07){const _0x3513e6=_0x228730['start']['nodeAfter'];_0x3513e6['is']('element','tableCellSuggestion')&&_0x58e723['push'](_0x3513e6);}_0x388eb8['_suggestionFactory']['getSuggestionCallback'](_0x26e38d,null,_0x48ebb5)(_0x27fa07,_0x1e0d7a,_0x33756d);for(const _0x377af4 of _0x58e723)'$graveyard'!=_0x377af4['root']['rootName']&&_0x2d9626['unwrap'](_0x377af4);});});};_0x695155('insertion','accept'),_0x695155('insertion','discard'),_0x695155('deletion','accept'),_0x695155('deletion','discard'),_0x388eb8['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x29a32f=>{const _0x23aa59=_0x29a32f['map'](_0xbb5e0a=>_0xbb5e0a['getContainedElement']()),_0x7f884c=_0x23aa59[0x0]['findAncestor']('table'),{minRow:_0x4cd99a,maxRow:_0x39fbc9}=_0xc8e4f1['_getCoordsForCells'](_0x23aa59);_0x25ec40['removeRows'](_0x7f884c,{'at':_0x4cd99a,'rows':_0x39fbc9-_0x4cd99a+0x1});}),_0x388eb8['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x5a8381=>{const _0x1d4336=_0x5a8381['map'](_0x4ff8e=>_0x4ff8e['getContainedElement']()),_0x4aa729=_0x1d4336[0x0]['findAncestor']('table'),{minColumn:_0x54edea,maxColumn:_0x3e6cdc}=_0xc8e4f1['_getCoordsForCells'](_0x1d4336);_0x25ec40['removeColumns'](_0x4aa729,{'at':_0x54edea,'columns':_0x3e6cdc-_0x54edea+0x1});});const _0x21560e=(_0x7c5541,_0x5f0fea)=>{if(!_0x5f0fea['subType']||!_0x5f0fea['subType']['startsWith']('tablePaste'))return;const _0x38e642=_0x5f0fea['attributes']['tablePasteChainId'],_0x3a94b6=_0x388eb8['getSuggestions']()['filter'](_0x36349a=>_0x36349a['isInContent']&&_0x36349a['attributes']&&_0x36349a['attributes']['tablePasteChainId']==_0x38e642);_0x3a94b6['length']&&_0x5f0fea['getAllAdjacentSuggestions']()['length']!=_0x3a94b6['length']&&_0x3a94b6['reduce']((_0x29710e,_0xeb60cf)=>(_0x29710e['next']=_0xeb60cf,_0xeb60cf['previous']=_0x29710e,_0xeb60cf));};function _0xb2299d(_0x14c7eb,_0x3ef91b=!0x0){const {id:_0x9b3b05,authorId:_0x411557}=_0x388eb8['_splitMarkerName'](_0x14c7eb['markerName']),_0x3308f6=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x5f5395=_0x388eb8['activeMarkers']['includes'](_0x14c7eb['markerName']);return _0x5f5395&&_0x3308f6['push']('ck-suggestion-marker--active'),{'classes':_0x3308f6,'attributes':{'data-suggestion':_0x9b3b05,'data-author-id':_0x411557},'priority':_0x5f5395&&_0x3ef91b?0xbc2:0xbb8};}_0x388eb8['on']('suggestionLoaded',_0x21560e,{'priority':'high'}),_0x388eb8['on']('suggestionUnloaded',_0x21560e,{'priority':'high'}),_0x1918a5['model']['document']['registerPostFixer'](()=>{let _0x145ae6=!0x1;const _0x4b7873=Array['from'](_0x1918a5['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1ffc8e,data:_0x5ef7a6}of _0x4b7873){const {group:_0x2bf0fb,type:_0x102bee,id:_0x4c8c6e}=_0x388eb8['_splitMarkerName'](_0x1ffc8e);if('suggestion'!=_0x2bf0fb||'deletion'!=_0x102bee||_0x5ef7a6['oldRange'])continue;if(!_0x388eb8['hasSuggestion'](_0x4c8c6e))continue;const _0x1f0d83=_0x388eb8['getSuggestion'](_0x4c8c6e)['getRanges'](),_0x3ca478=_0x1918a5['plugins']['get']('Users')['me'];for(const _0x108f28 of _0x388eb8['getSuggestions']()){if(!_0x108f28['isInContent']||_0x108f28['author']!=_0x3ca478)continue;if('formatBlock'!=_0x108f28['type']||'tablePasteCell'!=_0x108f28['subType'])continue;if(_0x108f28['getRanges']()['every'](_0x1d5d59=>_0x1f0d83['some'](_0x30155f=>_0x30155f['containsRange'](_0x1d5d59,!0x0)))){for(const _0x4501b8 of _0x108f28['getAllAdjacentSuggestions']())_0x4501b8['isInContent']&&(_0x4501b8['discard'](),_0x145ae6=!0x0);}}}return _0x145ae6;}),_0x1918a5['model']['document']['registerPostFixer'](_0x50d1eb=>{const _0x1e7803=_0x1918a5['commands']['get']('redo');if(!_0x1e7803||!_0x1e7803['_createdBatches']['has'](_0x50d1eb['batch']))return!0x1;let _0x1cb68f=!0x1;const _0x2ef0b5=_0x1918a5['plugins']['get']('Users')['me'],_0x2634de=_0x1918a5['model']['document']['differ']['getChanges'](),_0x282ced=Array['from'](_0x1918a5['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x547dcc,data:_0x46471e})=>{const {group:_0x4da735,subType:_0x41cbed,authorId:_0x1f6561}=_0x388eb8['_splitMarkerName'](_0x547dcc);return'suggestion'==_0x4da735&&'tablePaste'==_0x41cbed&&_0x1f6561==_0x2ef0b5['id']&&!_0x46471e['oldRange'];});for(const _0x12786a of _0x2634de){if('insert'!=_0x12786a['type']||'tableCellSuggestion'!=_0x12786a['name']||0x1!=_0x12786a['length'])continue;const _0x57207b=_0x50d1eb['createRange'](_0x12786a['position'],_0x12786a['position']['getShiftedBy'](0x1));if(!_0x282ced['find'](({data:_0x24060e})=>_0x24060e['newRange']['isEqual'](_0x57207b))){for(const {name:_0x37b25a,data:_0xb9ed92}of _0x282ced)if(_0x57207b['containsRange'](_0xb9ed92['newRange'])){_0x50d1eb['updateMarker'](_0x37b25a,{'range':_0x57207b}),_0x1cb68f=!0x0;break;}}}return _0x1cb68f;}),_0x1918a5['model']['document']['registerPostFixer'](_0x5cfc7f=>{let _0x1e8903=!0x1;const _0x263851=_0x1918a5['plugins']['get']('Users')['me'],_0xc8190e=_0x388eb8['getSuggestions']()['filter'](_0x277246=>_0x277246['isInContent']&&_0x277246['author']==_0x263851),_0x41d33c=new Set(),_0x994c1c=new Set();for(const _0x1a6e32 of _0xc8190e)if('tablePaste'==_0x1a6e32['subType'])for(const _0x3a52b6 of _0x1a6e32['getMarkers']()){const _0x5ca87f=_0x3a52b6['getRange']()['getContainedElement']();if(_0x5ca87f){if(_0x5ca87f['is']('element','tableCellSuggestion')&&Oe(_0x5ca87f)){_0x1a6e32['removeMarker'](_0x3a52b6['name']),_0x41d33c['add'](_0x5ca87f),_0x1e8903=!0x0;const _0x4609a7=_0x5ca87f['nextSibling'],_0x3e7436=_0x5ca87f['previousSibling'],_0xf75cf2=_0x4609a7&&_0x4609a7['is']('element','tableCellSuggestion'),_0x2f7c84=_0x3e7436&&_0x3e7436['is']('element','tableCellSuggestion');_0xf75cf2&&!_0x41d33c['has'](_0x4609a7)&&_0x994c1c['add'](_0x4609a7),_0x2f7c84&&!_0x41d33c['has'](_0x3e7436)&&_0x994c1c['add'](_0x3e7436);}else _0x5ca87f['is']('element','paragraph')&&_0x5ca87f['isEmpty']&&(_0x1a6e32['removeMarker'](_0x3a52b6['name']),_0x1e8903=!0x0);}}else{if('tablePasteCell'==_0x1a6e32['subType']){if(!_0x1a6e32['attributes']||!_0x1a6e32['attributes']['tablePasteChainId'])continue;const _0x447f19=_0x1a6e32['attributes']['markerAttributes'];if(_0x447f19&&Object['keys'](_0x447f19)['length'])continue;const _0x331416=_0x1a6e32['attributes']['tablePasteChainId'];let _0x1546dd=!0x0,_0x140268=!0x0;for(const _0x20c37e of _0xc8190e)if(_0x20c37e['subType']&&_0x20c37e['subType']['startsWith']('tablePaste')){if(!_0x20c37e['attributes']['tablePasteChainId']){_0x140268=!0x1;break;}if(_0x20c37e['id']!=_0x1a6e32['id']&&_0x20c37e['attributes']['tablePasteChainId']==_0x331416){_0x1546dd=!0x1;break;}}_0x140268&&_0x1546dd&&(_0x1a6e32['removeMarkers'](),_0x1e8903=!0x0);}}for(const _0xc7c1dd of _0x41d33c)_0x5cfc7f['remove'](_0xc7c1dd);for(const _0x955bf5 of _0x994c1c)_0x5cfc7f['unwrap'](_0x955bf5);return _0x1e8903;}),_0x1918a5['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x399c81=>_0xb2299d(_0x399c81),'converterPriority':'high'}),_0x1918a5['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x3b8076,_0x4709f1)=>_0x4709f1['options']['showSuggestionHighlights']?_0xb2299d(_0x3b8076,!0x1):null,'converterPriority':'high'});const _0x144d31=_0x1918a5['editing']['view'];this['listenTo'](_0x144d31['document'],'clipboardOutput',(_0x51215f,_0x356ecc)=>{const _0x3ade54=[];for(const _0x124e81 of _0x144d31['createRangeIn'](_0x356ecc['content'])['getItems']())_0x124e81['is']('element','suggestion-td')&&_0x3ade54['push'](_0x124e81);_0x144d31['change'](_0x279334=>{for(const _0x2db623 of _0x3ade54)_0x279334['move'](_0x279334['createRangeIn'](_0x2db623),_0x279334['createPositionBefore'](_0x2db623)),_0x279334['remove'](_0x2db623);});});}}function Oe(_0x55a935){if(_0x55a935['isEmpty'])return!0x0;const _0x5155ea=_0x55a935['getChild'](0x0);return _0x5155ea['is']('element','paragraph')&&_0x5155ea['isEmpty'];}function Ue(_0x137ec3,_0x5e1219={},_0x8f8c63){for(const {isAnchor:_0x55534a,cellHeight:_0x1c64d3,cellWidth:_0x2062cb}of _0x8f8c63['createTableWalker'](_0x137ec3,{'includeAllSlots':!0x0,..._0x5e1219}))if(!_0x55534a||0x1!=_0x1c64d3||0x1!=_0x2062cb)return!0x1;return!0x0;}class $t extends _0x2e0600{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x5386f7=this['editor']['plugins']['get']('TrackChangesEditing');_0x5386f7['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x5386f7['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x5386f7['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5386f7['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x5386f7['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x5386f7['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x22dd97,_0x935dbd){const _0x43310d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x52a3e9=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x3cef07=_0x935dbd['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x2e602b=_0x52a3e9['getColumnGroupElement'](_0x3cef07);let _0x3c2b47=_0x2e602b?_0x52a3e9['getTableColumnsWidths'](_0x2e602b):null,_0x487eb0=_0x3cef07['getAttribute']('tableWidth')||null;const _0x341392=_0x935dbd['tableWidth']||_0x487eb0,_0x40e9c6=_0x935dbd['columnWidths']||_0x3c2b47,_0x104995=this['editor']['plugins']['get']('Users')['me'];for(const _0xcd8d9b of _0x43310d['getSuggestions']()){const _0x159ff7=_0xcd8d9b['getContainedElement']();if('resizeTable'===_0xcd8d9b['subType']&&_0x159ff7===_0x3cef07){_0xcd8d9b['author']!==_0x104995&&_0xcd8d9b['discard']();const _0x5dc3ed=_0xcd8d9b['data']['commandParams'];_0x487eb0=_0x5dc3ed[0x0]['tableWidth'],_0x3c2b47=_0x5dc3ed[0x0]['columnWidths'];break;}}_0x22dd97({'table':_0x3cef07,'tableWidth':_0x341392,'columnWidths':_0x40e9c6}),_0x43310d['markBlockFormat'](_0x3cef07,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x487eb0,'columnWidths':_0x3c2b47}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x41ad4b){if('formatBlock'!=_0x41ad4b['type']&&'formatInline'!=_0x41ad4b['type'])return;const {data:_0x1fd361}=_0x41ad4b;if(_0x1fd361&&'resizeTable'===_0x1fd361['formatGroupId']){const _0x44ed58='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x44ed58)};}}}class Bt extends _0x2e0600{['afterInit'](){const _0x14cf9a=this['editor'];_0x14cf9a['plugins']['has']('Template')&&_0x14cf9a['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x2e0600{['afterInit'](){const _0x3fcf6e=this['editor'];if(!_0x3fcf6e['commands']['get']('insertTableOfContents'))return;_0x3fcf6e['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x5629e4=_0x3fcf6e['plugins']['get']('TrackChangesEditing'),_0x358c03=_0x3fcf6e['locale'];_0x5629e4['descriptionFactory']['registerElementLabel']('tableOfContents',_0x26a4de=>o(_0x358c03,'ELEMENT_TABLE_OF_CONTENTS',_0x26a4de));}}class Rt extends _0x2e0600{['afterInit'](){const _0x4dfa44=this['editor'];if(!_0x4dfa44['plugins']['has']('Title'))return;const _0x5962f5=_0x4dfa44['plugins']['get']('TrackChangesEditing');_0x5962f5['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x4dfa44['locale'],'ELEMENT_TITLE')),_0x4dfa44['model']['document']['registerPostFixer'](_0xe5a037=>{let _0x125c39=!0x1;const _0x1de241=Array['from'](_0x4dfa44['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x259ce5,data:_0x2beb7e}of _0x1de241){const {group:_0x58aea4}=_0x5962f5['_splitMarkerName'](_0x259ce5);if('suggestion'!==_0x58aea4||!_0x2beb7e['newRange'])continue;const _0xaedca=_0x2beb7e['newRange'],_0x57cd30=_0xaedca['end']['nodeBefore'];if(!_0x57cd30||!_0x57cd30['is']('element','title-content'))continue;if(!_0xaedca['start']['isTouching'](_0xaedca['end']))continue;const _0x1af0aa=_0x4dfa44['model']['schema']['getNearestSelectionRange'](_0xaedca['end'],'forward');if(_0x1af0aa&&_0x1af0aa['isCollapsed']){const _0x279acd=_0xe5a037['createRange'](_0xaedca['start'],_0x1af0aa['start']);_0x279acd['isEqual'](_0xaedca)||(_0xe5a037['updateMarker'](_0x259ce5,{'range':_0x279acd}),_0x125c39=!0x0);}_0x125c39||(_0xe5a037['removeMarker'](_0x259ce5),_0x125c39=!0x0);}return _0x125c39;});}}class Tt extends _0x2e0600{['afterInit'](){const _0x4f5dd6=this['editor'],_0x3de29c=_0x4f5dd6['plugins']['get']('TrackChangesEditing');_0x4f5dd6['plugins']['has']('Uploadcare')&&(_0x3de29c['enableCommand']('uploadcare'),_0x4f5dd6['plugins']['has']('UploadcareImageEdit')&&(_0x3de29c['enableCommand']('uploadcareImageEdit'),_0x3de29c['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x3de29c['registerBlockAttribute']('uploadcareImageId'),_0x3de29c['descriptionFactory']['registerDescriptionCallback'](_0x470968=>{if('attribute'!=_0x470968['type'])return;const {data:_0x547f85}=_0x470968;return _0x547f85&&'uploadcareImageId'==_0x547f85['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0x2e0600{['afterInit'](){const _0x4e4e76=this['editor'],_0x435a54=_0x4e4e76['plugins']['get']('TrackChangesEditing');_0x4e4e76['plugins']['has']('UndoEditing')&&(_0x435a54['enableCommand']('undo'),_0x435a54['enableCommand']('redo'));}}class Et extends _0x2e0600{static get['requires'](){return[Ct];}['afterInit'](){const _0x2159db=this['editor'];if(!_0x2159db['plugins']['has']('TableCaptionEditing'))return;_0x2159db['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ut extends _0x2e0600{['tableProperties'];['tableCellProperties'];constructor(_0x16e262){super(_0x16e262),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 _0x1d8c47=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0xd5056d of this['tableProperties'])_0x1d8c47['enableCommand'](_0xd5056d,(_0x325952,_0x23ebe2)=>{const _0x3b32a0=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0xd5056d,[_0x3b32a0],this['tableProperties'],'tableProperties',_0x325952,_0x23ebe2);});_0x1d8c47['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x1d8c47['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1d8c47['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x5a66d4,_0x142a83)=>this['handleDiscardAction'](this['tableProperties'],_0x5a66d4,_0x142a83)),_0x1d8c47['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x27bade of this['tableCellProperties'])_0x1d8c47['enableCommand'](_0x27bade,(_0x3d7417,_0x116818)=>{const _0x101a21=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x27bade,_0x101a21,this['tableCellProperties'],'tableCellProperties',_0x3d7417,_0x116818);});_0x1d8c47['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x1d8c47['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1d8c47['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x44ce9b,_0x5899a7)=>this['handleDiscardAction'](this['tableCellProperties'],_0x44ce9b,_0x5899a7)),_0x1d8c47['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x1d8c47['descriptionFactory']['registerDescriptionCallback'](_0x473dc8=>this['handleSuggestionDescription'](_0x473dc8));}['_handlePropertyChange'](_0x4644cc,_0xd39997,_0x3dd668,_0x485b5c,_0x19490c,_0x1e8de4){const _0x4ac5e9=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x1e8de4['batch'],()=>{for(const _0x59b5c7 of _0xd39997){if(this['_getSuggestion'](_0x59b5c7,_0x485b5c))_0x19490c(_0x1e8de4);else{const _0x1120e9={};for(const _0x178c9c of _0x3dd668){const _0x51d812=_0x59b5c7['getAttribute'](_0x178c9c);void 0x0!==_0x51d812&&(_0x1120e9[_0x178c9c]=_0x51d812);}_0x19490c(_0x1e8de4),_0x4ac5e9['markBlockFormat'](_0x59b5c7,{'commandParams':[_0x1120e9]},[],_0x485b5c);}}});}['handleDiscardAction'](_0x158033,_0x1b89c8,_0x58c0b3){const _0x509a54=_0x1b89c8[0x0]['start']['nodeAfter'],_0x47f152=_0x58c0b3['commandParams'][0x0];this['editor']['model']['change'](_0x5de16b=>{for(const _0x49abd6 of _0x158033)void 0x0!==_0x47f152[_0x49abd6]?_0x5de16b['setAttribute'](_0x49abd6,_0x47f152[_0x49abd6],_0x509a54):_0x5de16b['removeAttribute'](_0x49abd6,_0x509a54);});}['handleSuggestionDescription'](_0x1eda3e){if(_0x1eda3e['data'])switch(_0x1eda3e['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'](_0x511183,_0x4d3608){const _0x564162=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x39e2f4 of _0x564162['getSuggestions']({'skipNotAttached':!0x0})){const _0x51ee9d=_0x39e2f4['getContainedElement']();if(_0x39e2f4['subType']===_0x4d3608&&_0x51ee9d===_0x511183)return _0x39e2f4;}return null;}}const m='$elementName';class p extends _0x2e0600{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x483d85,_0x396b21,U,V,G,F,L,H,J,q,z,K,X,Y,Z,tt,nt,it,et,st,ot,rt,ct,at,ut,ft,ht,gt,Q,kt,lt,W,Se,dt,pt,wt,bt,yt,jt,St,At,It,vt,_t,Ct,Nt,Dt,Et,Mt,$t,Ot,Ut,Bt,Rt,Tt,xt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xd08ece){super(_0xd08ece),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x2e1eab,_0x3fc1f0,_0x2f2c93,_0x4f52cd)=>{this['_model']['change'](()=>{for(const _0x1e4751 of[..._0x4f52cd,..._0x2f2c93])this['_model']['markers']['has'](_0x1e4751)&&_0xd08ece['editing']['reconvertMarker'](_0x1e4751);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Pt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0xd08ece['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(),_0xd08ece['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0xd08ece['config']['get']('trackChanges.trackFormatChanges'),_0xd08ece['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0xd08ece['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0xd08ece,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x51ec80=this['editor'],_0x951bf3=(_0x1abddc,_0x2bdeb4)=>{if('attribute'!=_0x1abddc)return'ck-suggestion-marker-'+_0x1abddc;const _0x33ffe7=_0x2bdeb4['split']('|')[0x0];return this['_isBlockAttribute'](_0x33ffe7)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x51ec80['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x144b6c=>{const {id:_0x4fe63d,authorId:_0x12d99f,type:_0x78429b,subType:_0x6855f5}=this['_splitMarkerName'](_0x144b6c['markerName']),_0x5cc0e3=['ck-suggestion-marker',_0x951bf3(_0x78429b,_0x6855f5)];let _0x462b91=0xbb8;return this['activeMarkers']['includes'](_0x144b6c['markerName'])&&(_0x5cc0e3['push']('ck-suggestion-marker--active'),_0x462b91=0xbc2),'deletion'==_0x78429b&&(_0x462b91+=0x5),{'classes':_0x5cc0e3,'attributes':{'data-suggestion':_0x4fe63d,'data-author-id':_0x12d99f},'priority':_0x462b91};}}),_0x51ec80['conversion']['for']('dataDowncast')['add'](_0x9aa039=>{_0x9aa039['on']('addMarker:suggestion',(_0x231111,_0x489ba8,_0x1ebaaf)=>{if(!_0x1ebaaf['options']['showSuggestionHighlights'])return;const _0xff39e9=_0x489ba8['item'];if(!_0xff39e9)return;const _0x2fdd89=_0x1ebaaf['mapper']['toViewElement'](_0xff39e9);_0x51ec80['model']['schema']['isObject'](_0xff39e9)&&_0x2fdd89&&!_0x2fdd89['getCustomProperty']('widget')&&_0x2fdd89['is']('containerElement')&&_0x3dbc81(_0x2fdd89,_0x1ebaaf['writer']);},{'priority':'high'});}),_0x51ec80['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x4b464a,_0x4cee2e)=>{if(!_0x4cee2e['options']['showSuggestionHighlights'])return null;const {type:_0x8ddfdd,subType:_0x1eff1e}=this['_splitMarkerName'](_0x4b464a['markerName']);return{'classes':['ck-suggestion-marker',_0x951bf3(_0x8ddfdd,_0x1eff1e)],'priority':0xbb8};}});const _0x1ec902=({showActiveMarkers:_0x1923b5=!0x0,isAttributeSuggestion:_0x37f348=!0x1}={})=>(_0x14d816,_0x370301,_0x310378)=>{if(!_0x370301['item'])return;const {id:_0xac1779,authorId:_0xd5b1b0}=this['_splitMarkerName'](_0x370301['markerName']);if(_0x37f348){const _0x1327db=this['_suggestions']['get'](_0xac1779),_0x1fa8fb=this['_getAttributeKey'](_0x1327db);if(!this['_isBlockAttribute'](_0x1fa8fb))return;}if(_0x370301['item']['is']('selection'))return void _0x310378['consumable']['consume'](_0x370301['item'],_0x14d816['name']);const _0x33ccd2=_0x310378['mapper']['toViewElement'](_0x370301['item']);if(_0x370301['item']['is']('element')&&_0x51ec80['model']['schema']['isBlock'](_0x370301['item'])&&!_0x33ccd2['getCustomProperty']('addHighlight')){_0x310378['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x33ccd2),_0x310378['writer']['setAttribute']('data-suggestion',_0xac1779,_0x33ccd2),_0x310378['writer']['setAttribute']('data-author-id',_0xd5b1b0,_0x33ccd2),_0x310378['mapper']['bindElementToMarker'](_0x33ccd2,_0x370301['markerName']),_0x1923b5&&(this['activeMarkers']['includes'](_0x370301['markerName'])?_0x310378['writer']['addClass']('ck-suggestion-marker--active',_0x33ccd2):_0x310378['writer']['removeClass']('ck-suggestion-marker--active',_0x33ccd2));for(const _0x419d65 of _0x51ec80['model']['createRangeIn'](_0x370301['item'])['getItems']())_0x310378['consumable']['consume'](_0x419d65,_0x14d816['name']);_0x310378['consumable']['consume'](_0x370301['item'],_0x14d816['name']);}};_0x51ec80['conversion']['for']('dataDowncast')['add'](_0x469e0f=>{_0x469e0f['on']('addMarker:suggestion:formatBlock',(_0x1745a7,_0x593206,_0x102398)=>{_0x102398['options']['showSuggestionHighlights']&&_0x1ec902({'showActiveMarkers':!0x1})(_0x1745a7,_0x593206,_0x102398);},{'priority':'highest'});}),_0x51ec80['conversion']['for']('dataDowncast')['add'](_0x1ce73=>{_0x1ce73['on']('addMarker:suggestion:attribute',(_0x10b6ac,_0x5591c1,_0x2f5830)=>{_0x2f5830['options']['showSuggestionHighlights']&&_0x1ec902({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x10b6ac,_0x5591c1,_0x2f5830);},{'priority':'highest'});}),_0x51ec80['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x464c86,_0x388d62)=>_0x388d62['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x464c86['substr'](0xb)}}),_0x51ec80['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x3c6d10,{writer:_0x471fd2})=>{let _0x10c682='suggestion:'+_0x3c6d10['getAttribute']('suggestion-type')+':'+_0x3c6d10['getAttribute']('id');return _0x3c6d10['getAttribute']('marker-count')&&(_0x10c682+=':'+_0x3c6d10['getAttribute']('marker-count')),_0x471fd2['createElement']('$marker',{'data-name':_0x10c682});}}),_0x51ec80['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x51ec80['conversion']['for']('editingDowncast')['add'](_0x102fdb=>{_0x102fdb['on']('addMarker:suggestion:formatBlock',_0x1ec902(),{'priority':'high'});}),_0x51ec80['conversion']['for']('editingDowncast')['add'](_0x2ca9fe=>{_0x2ca9fe['on']('addMarker:suggestion:attribute',_0x1ec902({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x51ec80['conversion']['for']('editingDowncast')['add'](_0x54b7fd=>{_0x54b7fd['on']('removeMarker:suggestion:formatBlock',(_0x53247e,_0x25842e,_0xd97aa)=>{const _0x3021be=_0xd97aa['mapper']['markerNameToElements'](_0x25842e['markerName']);if(_0x3021be){for(const _0xd27ffd of _0x3021be)_0xd27ffd['getCustomProperty']('addHighlight')||(_0xd97aa['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0xd27ffd),_0xd97aa['writer']['removeAttribute']('data-suggestion',_0xd27ffd),_0xd97aa['writer']['removeAttribute']('data-author-id',_0xd27ffd),_0xd97aa['mapper']['unbindElementFromMarkerName'](_0xd27ffd,_0x25842e['markerName']));}},{'priority':'high'});}),_0x51ec80['conversion']['for']('editingDowncast')['add'](_0x2f4250=>{_0x2f4250['on']('removeMarker:suggestion:attribute',(_0x5b7d85,_0xbd1040,_0x4b18d9)=>{const _0xe60829=_0x4b18d9['mapper']['markerNameToElements'](_0xbd1040['markerName']);if(!_0xe60829)return;const {id:_0x56d092}=this['_splitMarkerName'](_0xbd1040['markerName']),_0x463f32=this['_suggestions']['get'](_0x56d092),_0x3808a0=this['_getAttributeKey'](_0x463f32);if(this['_isBlockAttribute'](_0x3808a0)){for(const _0x2f461f of _0xe60829)_0x2f461f['getCustomProperty']('addHighlight')||(_0x4b18d9['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2f461f),_0x4b18d9['writer']['removeAttribute']('data-suggestion',_0x2f461f),_0x4b18d9['writer']['removeAttribute']('data-author-id',_0x2f461f),_0x4b18d9['mapper']['unbindElementFromMarkerName'](_0x2f461f,_0xbd1040['markerName']));}},{'priority':'high'});}),_0x51ec80['model']['document']['registerPostFixer'](_0x40fa60=>{let _0x35777a=!0x1;const _0x42e6fa=Array['from'](_0x51ec80['model']['document']['differ']['getChangedMarkers']()),_0x48b949=new Set();for(const {name:_0x3e8516,data:_0x2ea9ab}of _0x42e6fa){const {group:_0x21b6a2,type:_0x54e133,subType:_0x45cadf,id:_0x5bdcb4}=this['_splitMarkerName'](_0x3e8516);if('suggestion'!==_0x21b6a2)continue;const _0x304293=this['_suggestions']['get'](_0x5bdcb4);if(null!=_0x2ea9ab['newRange']){'formatInline'==_0x54e133&&(_0x35777a=_0x35777a||Lt(_0x2ea9ab['newRange'],_0x3e8516,_0x40fa60,_0x51ec80['model']['schema']));const _0x13bda5='attribute'==_0x54e133&&this['_isBlockAttribute'](_0x45cadf['split']('|')[0x0]);if(_0x2ea9ab['newRange']['isCollapsed']||'$graveyard'==_0x2ea9ab['newRange']['root']['rootName']||'formatBlock'==_0x54e133&&!Ht(_0x2ea9ab['newRange'])||_0x13bda5&&!Ht(_0x2ea9ab['newRange'])||'deletion'==_0x54e133&&!(!Ft(_0x829121=_0x2ea9ab['newRange'])&&!function(_0x29da2a){return _0x29da2a['start']['parent']==_0x29da2a['end']['nodeBefore']&&_0x29da2a['start']['isAtEnd'];}(_0x829121)))_0x40fa60['removeMarker'](_0x3e8516),_0x35777a=!0x0;else{if(!_0x304293||!_0x304293['isInContent'])continue;if(_0x2ea9ab['newRange']&&_0x2ea9ab['oldRange']&&_0x2ea9ab['newRange']['isEqual'](_0x2ea9ab['oldRange']))continue;_0x48b949['add'](_0x304293);}}}var _0x829121;return _0x48b949['size']>0x0&&(_0x35777a=!!this['_joinWithAdjacentSuggestions'](_0x48b949)||_0x35777a),_0x35777a;}),_0x51ec80['model']['document']['registerPostFixer'](_0x235083=>{let _0x254bdd=!0x1;for(const _0x582b24 of _0x51ec80['model']['document']['differ']['getChanges']())if('insert'==_0x582b24['type'])for(const _0x397f89 of this['_suggestions']['values']()){if(_0x397f89['isMultiRange']||!_0x397f89['isInContent'])continue;const _0x51ab9f='formatBlock'==_0x397f89['type'],_0x35ca87=this['_getAttributeKey'](_0x397f89),_0x5ea59b=_0x35ca87&&this['_isBlockAttribute'](_0x35ca87);if(!_0x51ab9f&&!_0x5ea59b)continue;const _0x6a5a5b=_0x397f89['getFirstRange']();if(_0x6a5a5b['start']['parent']!=_0x6a5a5b['end']['parent']&&!_0x6a5a5b['end']['isAtEnd']){const _0x4e1bce=_0x51ec80['model']['createPositionAt'](_0x6a5a5b['start']['nodeAfter'],'end'),_0x34d135=_0x51ec80['model']['createRange'](_0x6a5a5b['start'],_0x4e1bce);_0x235083['updateMarker'](_0x397f89['getFirstMarker'](),{'range':_0x34d135}),_0x254bdd=!0x0;}}return _0x254bdd;}),_0x51ec80['model']['document']['registerPostFixer'](_0x5c0aeb=>this['_processAttributeChanges'](_0x5c0aeb)),_0x51ec80['model']['document']['registerPostFixer'](_0xf3ab1d=>!_0xf3ab1d['batch']['isLocal']&&this['_processAttributeSuggestions'](_0xf3ab1d)),_0x51ec80['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x51ec80['model']['document']['on']('change:data',(_0x1e228b,_0x2b14b7)=>{if(!_0x2b14b7['isLocal']||_0x2b14b7['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x5e276c=_0x51ec80['model']['document']['differ']['getChanges']();if(0x0==_0x5e276c['length'])return;const _0x5a5c61=[],_0xc62975=_0x5e276c['filter'](_0x23e92e=>'attribute'==_0x23e92e['type']),_0x37f46e=_0x5e276c['filter'](_0x2c04ca=>'insert'==_0x2c04ca['type']&&'$text'!=_0x2c04ca['name']);for(const _0x5e3151 of _0xc62975)this['_isRegisteredAttribute'](_0x5e3151['attributeKey'])&&_0x5a5c61['push']({'key':_0x5e3151['attributeKey'],'newValue':_0x5e3151['attributeNewValue'],'oldValue':_0x5e3151['attributeOldValue'],'range':qt(_0x5e3151['range'],_0x51ec80['model'])});for(const _0x216613 of _0x37f46e){if('rename'!=_0x216613['action']&&'refresh'!=_0x216613['action'])continue;const _0x38cd9f=zt(_0x216613['position']['nodeAfter'],_0x51ec80['model']),_0x5c8bbf=_0x216613['before'];'rename'==_0x216613['action']&&_0x5a5c61['push']({'key':m,'newValue':_0x216613['name'],'oldValue':_0x5c8bbf['name'],'range':_0x38cd9f});for(const [_0x337584,_0x21b300]of _0x5c8bbf['attributes']){if(!this['_isRegisteredAttribute'](_0x337584))continue;const _0xdfb2d2=_0x216613['attributes']['get'](_0x337584);_0x21b300!==_0xdfb2d2&&_0x5a5c61['push']({'key':_0x337584,'newValue':_0xdfb2d2,'oldValue':_0x21b300,'range':_0x38cd9f});}for(const [_0xc9d2ba,_0x1c060d]of _0x216613['attributes'])this['_isRegisteredAttribute'](_0xc9d2ba)&&(_0x5c8bbf['attributes']['has'](_0xc9d2ba)||_0x5a5c61['push']({'key':_0xc9d2ba,'newValue':_0x1c060d,'oldValue':null,'range':_0x38cd9f}));}0x0!=_0x5a5c61['length']&&_0x51ec80['model']['enqueueChange'](_0x2b14b7,_0x3544c4=>{const _0x5115e3=_0x502eb1();for(const {range:_0xa79a41,key:_0x4d0627,oldValue:_0x1e1101,newValue:_0x37366f}of _0x5a5c61)this['markAttributeChange'](_0xa79a41,_0x4d0627,_0x1e1101,_0x37366f,{'groupId':_0x5115e3});this['_reduceExistingSuggestions'](_0x3544c4,_0x5a5c61);});},{'priority':'lowest'}),_0x51ec80['model']['markers']['on']('update:suggestion',(_0x4706d6,_0xef4e95,_0x2afdcb)=>{if(null==_0x2afdcb){const {id:_0x5e8088}=this['_splitMarkerName'](_0xef4e95['name']),_0x267cea=this['_suggestions']['get'](_0x5e8088);_0x267cea&&_0x267cea['addMarkerName'](_0xef4e95['name']);}}),_0x51ec80['model']['document']['on']('change:data',()=>{const _0x1fa56d=Array['from'](_0x51ec80['model']['document']['differ']['getChangedMarkers']())['filter'](_0x17691f=>'suggestion'===this['_splitMarkerName'](_0x17691f['name'])['group']);if(0x0===_0x1fa56d['length'])return;_0x1fa56d['sort']((_0x4f2706,_0xf2106b)=>{const _0x4fd8e3=_0x4f2706['data']['oldRange'],_0x15325a=_0xf2106b['data']['oldRange'];return null===_0x4fd8e3&&null===_0x15325a?0x0:null===_0x4fd8e3&&null!==_0x15325a?-0x1:null!==_0x4fd8e3&&null===_0x15325a?0x1:_0x4fd8e3['start']['isBefore'](_0x15325a['start'])?-0x1:0x1;});const _0xe66a32=new Set(),_0x111733=new Set();for(const {name:_0x255024,data:_0x265a3c}of _0x1fa56d){const {id:_0x115dba}=this['_splitMarkerName'](_0x255024);if(null===_0x265a3c['oldRange']){const _0x30d8f0=this['_handleNewSuggestionMarker'](_0x255024);_0x111733['add'](_0x30d8f0);}else{const _0x386bab=this['_suggestions']['get'](_0x115dba);null!==_0x265a3c['newRange']||_0x386bab['isInContent']?(_0xe66a32['add'](_0x386bab['head']),_0x111733['add'](_0x386bab)):this['_removeSuggestion'](_0x386bab);}}_0x111733['size']>0x0&&this['_refreshSuggestionsChain'](_0x111733);for(const _0x4e2d92 of _0xe66a32)this['fire']('suggestionChanged',_0x4e2d92);}),_0x51ec80['model']['on']('applyOperation',(_0x4339c1,_0xf9d03c)=>{const _0x5993d6=_0xf9d03c[0x0];if(!this['_suggestions']['size'])return;if(!_0x5993d6['isDocumentOperation'])return;if(_0x5993d6['batch']['isUndo']||!_0x5993d6['batch']['isLocal'])return;let _0x5bda15,_0x429f7e;switch(_0x5993d6['type']){case'insert':_0x5bda15=_0x51ec80['model']['createPositionAt'](_0x5993d6['position']),_0x429f7e=_0x5bda15['getShiftedBy'](_0x5993d6['howMany']);break;case'split':_0x5bda15=_0x51ec80['model']['createPositionAt'](_0x5993d6['splitPosition']),_0x429f7e=_0x51ec80['model']['createPositionAt'](_0x5993d6['moveTargetPosition']);break;case'move':_0x5bda15=_0x51ec80['model']['createPositionAt'](_0x5993d6['targetPosition']),_0x429f7e=_0x5bda15['getShiftedBy'](_0x5993d6['howMany']);break;default:return;}const _0x11cc38=_0x51ec80['model']['createRange'](_0x5bda15,_0x429f7e);_0x51ec80['model']['change'](()=>{for(const {suggestion:_0x16b508,meta:_0x556f70}of this['_findSuggestions'](_0x11cc38)){if(_0x16b508['isMultiRange'])continue;if('formatInline'==_0x16b508['type'])continue;const _0x916fd9=this['_getAttributeKey'](_0x16b508);if(_0x916fd9&&this['_isBlockAttribute'](_0x916fd9)&&'split'!=_0x5993d6['type'])continue;const _0x2c561d=_0x16b508['data']&&_0x16b508['data']['multipleBlocks'];('formatBlock'!=_0x16b508['type']||'split'==_0x5993d6['type']&&!_0x2c561d)&&(_0x556f70['containsRangeInObject']||'insertion'==_0x16b508['type']&&_0x556f70['isOwn']||_0x16b508['getFirstRange']()['containsRange'](_0x11cc38)&&this['_breakSuggestionMarker'](_0x16b508,_0x5bda15,_0x429f7e));}});},{'priority':'lowest'}),_0x51ec80['model']['on']('deleteContent',(_0x386665,_0x401a52)=>{const _0x5e78d3=_0x401a52[0x0],_0x18506f=_0x401a52[0x1];if(_0x18506f&&_0x18506f['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x5e78d3['isCollapsed'])return;const _0xfbdd39=_0x51ec80['model']['schema'],{start:_0x4e5c06,end:_0x51c716}=_0x5e78d3['getFirstRange'](),_0x307a90=_0x4e5c06['nodeAfter']&&_0xfbdd39['isLimit'](_0x4e5c06['nodeAfter'])?null:_0xfbdd39['getNearestSelectionRange'](_0x4e5c06,'forward'),_0x49bec0=_0x51c716['nodeBefore']&&_0xfbdd39['isLimit'](_0x51c716['nodeBefore'])?null:_0xfbdd39['getNearestSelectionRange'](_0x51c716,'backward'),_0x504749=_0x51ec80['model']['createRange'](_0x307a90?_0x307a90['start']:_0x4e5c06,_0x49bec0?_0x49bec0['end']:_0x51c716);_0x51ec80['model']['change'](_0x885ba5=>{this['markDeletion'](_0x504749);const _0x41bf80=_0x51ec80['model']['schema']['getNearestSelectionRange'](_0x504749['start']);_0x5e78d3['is']('documentSelection')?_0x885ba5['setSelection'](_0x41bf80):_0x5e78d3['setTo'](_0x41bf80);}),_0x386665['stop']();},{'priority':_0xffa7dc['normal']+0xa}),_0x51ec80['model']['on']('insertContent',(_0x31d363,_0x3b5e64)=>{const _0xc3fe71=_0x3b5e64[_0x3b5e64['length']-0x1];_0xc3fe71&&_0xc3fe71['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x51ec80['model']['change'](()=>{let _0x54790d=_0x51ec80['model']['insertContent'](_0x3b5e64[0x0],_0x3b5e64[0x1],_0x3b5e64[0x2],{'forceDefaultExecution':!0x0});if(!_0x54790d)return;_0x31d363['return']=_0x54790d['clone']();const _0x23fe13=_0x54790d['end']['nodeBefore'],_0x59b031=_0x51ec80['model']['schema'];_0x23fe13&&_0x59b031['isBlock'](_0x23fe13)&&!_0x59b031['isObject'](_0x23fe13)&&(_0x54790d=_0x51ec80['model']['createRange'](_0x54790d['start'],_0x51ec80['model']['createPositionAt'](_0x23fe13,'end'))),this['markInsertion'](_0x54790d);}),_0x31d363['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x3c66e6=new O(_0x51ec80,this['_suggestions']);_0x51ec80['commands']['add']('acceptSuggestion',_0x3c66e6),this['enableCommand']('acceptSuggestion');const _0x2e7f04=new R(_0x51ec80,this['_suggestions']);_0x51ec80['commands']['add']('discardSuggestion',_0x2e7f04),this['enableCommand']('discardSuggestion'),_0x51ec80['commands']['add']('acceptAllSuggestions',new x(_0x51ec80,_0x3c66e6,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x51ec80['commands']['add']('discardAllSuggestions',new x(_0x51ec80,_0x2e7f04,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x51ec80['commands']['add']('acceptSelectedSuggestions',new E(_0x51ec80,_0x3c66e6,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x51ec80['commands']['add']('discardSelectedSuggestions',new E(_0x51ec80,_0x2e7f04,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x397fa1=_0x51ec80['plugins']['get']('CommentsRepository');this['listenTo'](_0x397fa1,'addComment',(_0xa1e7a0,{threadId:_0x599fa3})=>{const _0x1f935d=this['_suggestions']['get'](_0x599fa3);_0x1f935d&&_0x1f935d['commentThread']&&0x1===_0x1f935d['commentThread']['length']&&this['_updateSuggestionData'](_0x599fa3,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x397fa1,'removeComment',(_0x228967,{threadId:_0xb52985})=>{const _0x5c7f7=this['_suggestions']['get'](_0xb52985);_0x5c7f7&&_0x5c7f7['commentThread']&&!_0x5c7f7['commentThread']['length']&&this['_updateSuggestionData'](_0xb52985,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x3a1cd3){const _0x2a029d=_0x256c32([0x64,0x73,0x76,0x4e,0x59,0x71,0x43,0x52,0x4d,0x45,0x6f,0x49,0x44,0x6d,0x58,0x4c,0x7a,0x4b,0x6c,0x54,0x48,0x32,0x6a,0x37,0x31,0x53,0x78,0x77,0x72,0x42,0x39,0x41,0x36,0x66,0x30,0x55,0x69,0x46,0x57,0x65,0x67,0x4f,0x75,0x5a,0x34,0x50,0x6b,0x63,0x56,0x51,0x35,0x68,0x6e,0x38,0x74,0x70,0x47,0x79,0x33,0x62,0x61,0x4a]),_0x32ca70=0x691f93a9,_0x5910f6=0x6918ccd1^_0x32ca70,_0xae269e=window[_0x256c32([0x44,0x61,0x74,0x65])][_0x256c32([0x6e,0x6f,0x77])](),_0x4f953c=_0x3a1cd3[_0x256c32([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x58d0e9=new window[(_0x256c32([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x206966=>{_0x4f953c[_0x256c32([0x6f,0x6e,0x63,0x65])](_0x256c32([0x72,0x65,0x61,0x64,0x79]),_0x206966);}),_0x1ea037={[_0x256c32([0x6b,0x74,0x79])]:_0x256c32([0x45,0x43]),[_0x256c32([0x75,0x73,0x65])]:_0x256c32([0x73,0x69,0x67]),[_0x256c32([0x63,0x72,0x76])]:_0x256c32([0x50,0x2d,0x32,0x35,0x36]),[_0x256c32([0x78])]:_0x256c32([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]),[_0x256c32([0x79])]:_0x256c32([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]),[_0x256c32([0x61,0x6c,0x67])]:_0x256c32([0x45,0x53,0x32,0x35,0x36])},_0x4cac36=_0x4f953c[_0x256c32([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x256c32([0x67,0x65,0x74])](_0x256c32([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x239d44(){let _0x28e3ab,_0x5ed2bc=null,_0x2e2cdf=null;try{if(_0x4cac36==_0x256c32([0x47,0x50,0x4c]))return _0x256c32([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x28e3ab=_0x1b4caf(),!_0x28e3ab)return _0x256c32([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x28e3ab[_0x256c32([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2e2cdf=_0x5d7a09(_0x28e3ab[_0x256c32([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x28e3ab[_0x256c32([0x6a,0x74,0x69])])),await _0x29808b()?_0x4482da()?_0x4d4a47()?_0x256c32([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2243cc()?(_0x28e3ab[_0x256c32([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x256c32([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5ed2bc=_0x1852c7(_0x256c32([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x28e3ab[_0x256c32([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x256c32([0x74,0x72,0x69,0x61,0x6c])&&(_0x5ed2bc=_0x1852c7(_0x256c32([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x469726()):_0x256c32([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x256c32([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x256c32([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0xf088c6){return _0x256c32([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4d4a47(){const _0x466c5d=[_0x256c32([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x256c32([0x74,0x72,0x69,0x61,0x6c])][_0x256c32([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x28e3ab[_0x256c32([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xae269e/0x3e8:0xe10*_0x5910f6;return _0x28e3ab[_0x256c32([0x65,0x78,0x70])]<_0x466c5d;}function _0x4482da(){const _0x39f3c7=_0x28e3ab[_0x256c32([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x39f3c7)return!0x1;if(_0x39f3c7[_0x256c32([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x256c32([0x2a])))return!0x0;if(_0x39f3c7[_0x256c32([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x256c32([0x54,0x43])))return!0x0;if(_0x39f3c7[_0x256c32([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x256c32([0x52,0x54,0x43]))){if(_0xeeccdc())return!0x0;if(_0x1a1494()||_0x185c92())return!0x0;}return!0x1;}function _0x2243cc(){const _0x30f120=_0x28e3ab[_0x256c32([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x30f120||0x0==_0x30f120[_0x256c32([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x353141}=new URL(window[_0x256c32([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x30f120[_0x256c32([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x353141))return!0x0;const _0x11c194=_0x353141[_0x256c32([0x73,0x70,0x6c,0x69,0x74])](_0x256c32([0x2e]));return _0x30f120[_0x256c32([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3d0e0f=>_0x3d0e0f[_0x256c32([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x256c32([0x2a])))[_0x256c32([0x6d,0x61,0x70])](_0x59fac4=>_0x59fac4[_0x256c32([0x73,0x70,0x6c,0x69,0x74])](_0x256c32([0x2e])))[_0x256c32([0x73,0x6f,0x6d,0x65])](_0x3a93b7=>_0x11c194[_0x256c32([0x65,0x76,0x65,0x72,0x79])]((_0x3d12d1,_0x42f23f)=>_0x3a93b7[_0x42f23f]===_0x3d12d1||_0x3a93b7[_0x42f23f]===_0x256c32([0x2a])));}function _0x469726(){return _0x5ed2bc&&_0x2e2cdf?new window[(_0x256c32([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x401efc,_0x1cd9c3)=>{_0x5ed2bc[_0x256c32([0x74,0x68,0x65,0x6e])](_0x401efc,_0x1cd9c3),_0x2e2cdf[_0x256c32([0x74,0x68,0x65,0x6e])](_0x2b4af7=>{_0x2b4af7!=_0x256c32([0x56,0x61,0x6c,0x69,0x64])&&_0x401efc(_0x2b4af7);},_0x1cd9c3);}):_0x5ed2bc||_0x2e2cdf||_0x256c32([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5d7a09(_0x3eb4e9,_0x376100){return new window[(_0x256c32([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4aee65=>{if(_0x4076bf())return _0x4aee65(_0x256c32([0x56,0x61,0x6c,0x69,0x64]));_0x1e63fb(),_0x4f953c[_0x256c32([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x256c32([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x39a546=!0x1;const _0x3159bc=_0x502eb1();function _0x35c92e(_0x51254a){return!!_0x51254a&&(typeof _0x51254a===_0x256c32([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x51254a===_0x256c32([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x51254a[_0x256c32([0x74,0x68,0x65,0x6e])]===_0x256c32([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x51254a[_0x256c32([0x63,0x61,0x74,0x63,0x68])]===_0x256c32([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3d2917(_0x2f5489){_0x227f8e(_0x2f5489)[_0x256c32([0x74,0x68,0x65,0x6e])](_0x4fc8b6=>{if(!_0x4fc8b6||_0x4fc8b6[_0x256c32([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x256c32([0x6f,0x6b]))return _0x256c32([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x587e8d(_0x38bbf6(_0x3159bc+_0x376100))!=_0x4fc8b6[_0x256c32([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x256c32([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x256c32([0x56,0x61,0x6c,0x69,0x64]);})[_0x256c32([0x74,0x68,0x65,0x6e])](_0x56df1d=>(_0x255386(),_0x56df1d),()=>{const _0x48c781=_0x3b73fa();return null==_0x48c781?(_0x255386(),_0x256c32([0x56,0x61,0x6c,0x69,0x64])):_0x256c32(_0xae269e-_0x48c781>(0x4d1317a9^_0x32ca70)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x256c32([0x74,0x68,0x65,0x6e])](_0x4aee65)[_0x256c32([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4aee65(_0x256c32([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x37ceca=0x69297d29^_0x32ca70;function _0x255386(){const _0x578abd=_0x256c32([0x6c,0x6c,0x63,0x74,0x2d])+_0x587e8d(_0x38bbf6(_0x3eb4e9)),_0x120ce9=_0x192947(_0x587e8d(window[_0x256c32([0x4d,0x61,0x74,0x68])][_0x256c32([0x63,0x65,0x69,0x6c])](_0xae269e/_0x37ceca)));window[_0x256c32([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x256c32([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x578abd,_0x120ce9);}function _0x3b73fa(){const _0x16277b=_0x256c32([0x6c,0x6c,0x63,0x74,0x2d])+_0x587e8d(_0x38bbf6(_0x3eb4e9)),_0x5230b7=window[_0x256c32([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x256c32([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x16277b);return _0x5230b7?window[_0x256c32([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x192947(_0x5230b7),0x10)*_0x37ceca:null;}function _0x227f8e(_0x5665be){return new window[(_0x256c32([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2febde,_0x3ec374)=>{_0x5665be[_0x256c32([0x74,0x68,0x65,0x6e])](_0x2febde,_0x3ec374),window[_0x256c32([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3ec374,0x691e4769^_0x32ca70);});}}_0x4f953c[_0x256c32([0x6f,0x6e])](_0x256c32([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x283eee,_0x442bff)=>{if(_0x442bff[0x0]!=_0x3eb4e9)return _0x4aee65(_0x256c32([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x442bff[0x1]={..._0x442bff[0x1],[_0x256c32([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3159bc};},{[_0x256c32([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x256c32([0x68,0x69,0x67,0x68])}),_0x4f953c[_0x256c32([0x6f,0x6e])](_0x256c32([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x46cf5a=>{_0x35c92e(_0x46cf5a[_0x256c32([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x39a546=!0x0,_0x3d2917(_0x46cf5a[_0x256c32([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x256c32([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x256c32([0x6c,0x6f,0x77])}),_0x58d0e9[_0x256c32([0x74,0x68,0x65,0x6e])](()=>{_0x39a546||_0x4aee65(_0x256c32([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4076bf(){return _0x4f953c[_0x256c32([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x256c32([0x76,0x69,0x65,0x77])][_0x256c32([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x256c32([0x61,0x75,0x74,0x6f]);}function _0x1e63fb(){_0x4f953c[_0x256c32([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x256c32([0x76,0x69,0x65,0x77])][_0x256c32([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x256c32([0x61,0x75,0x74,0x6f]);}}function _0x1852c7(_0x4097bd){const _0x1837df=[new window[(_0x256c32([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5d1971=>setTimeout(_0x5d1971,0x6916ad65^_0x32ca70)),_0x58d0e9[_0x256c32([0x74,0x68,0x65,0x6e])](()=>new window[(_0x256c32([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4691f5=>{let _0x1ab10e=0x0;_0x4f953c[_0x256c32([0x6d,0x6f,0x64,0x65,0x6c])][_0x256c32([0x6f,0x6e])](_0x256c32([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x241548,_0x2db274)=>{_0x2db274[0x0][_0x256c32([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1ab10e++,_0x1ab10e==(0x691f9251^_0x32ca70)&&(_0x4691f5(),_0x241548[_0x256c32([0x6f,0x66,0x66])]());});}))];return window[_0x256c32([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x256c32([0x72,0x61,0x63,0x65])](_0x1837df)[_0x256c32([0x74,0x68,0x65,0x6e])](()=>_0x4097bd);}async function _0x147fd9(){await _0x58d0e9,_0x4f953c[_0x256c32([0x6d,0x6f,0x64,0x65,0x6c])][_0x256c32([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x16c3bb,_0x4f953c[_0x256c32([0x6d,0x6f,0x64,0x65,0x6c])][_0x256c32([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x16c3bb,_0x4f953c[_0x256c32([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x256c32([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xeeccdc(){return _0x9fdc60(_0x256c32([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0xdc01fd(_0x256c32([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x256c32([0x73,0x74,0x61,0x74,0x65])]==_0x256c32([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x1a1494(){return _0x9fdc60(_0x256c32([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 _0x185c92(){return _0x9fdc60(_0x256c32([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x5f3bf5(_0x25fa05){const _0x1a73d9=_0x5c5640();_0x4f953c[_0x1a73d9]=_0x256c32([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x25fa05,_0x25fa05!=_0x256c32([0x56,0x61,0x6c,0x69,0x64])&&_0x147fd9();}function _0x5c5640(){const _0x351b59=window[_0x256c32([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x256c32([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x256c32([0x6e,0x6f,0x77])]())[_0x256c32([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x256c32([0x2e]),'');let _0x3647fe=_0x256c32([0x64]);for(let _0xc41b1d=0x0;_0xc41b1d<_0x351b59[_0x256c32([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xc41b1d+=0x2){let _0x54ed0d=window[_0x256c32([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x351b59[_0x256c32([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xc41b1d,_0xc41b1d+0x2));_0x54ed0d>=_0x2a029d[_0x256c32([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x54ed0d-=_0x2a029d[_0x256c32([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3647fe+=_0x2a029d[_0x54ed0d];}return _0x3647fe;}function _0x1b4caf(){const _0x91a8f1=_0x4cac36[_0x256c32([0x73,0x70,0x6c,0x69,0x74])](_0x256c32([0x2e]));if(0x3!=_0x91a8f1[_0x256c32([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x92d231(_0x91a8f1[0x1]);function _0x92d231(_0x59341c){const _0x54623d=_0x31dbe7(_0x59341c);return _0x54623d&&_0x245c3e()?_0x54623d:null;function _0x245c3e(){const _0x4ff086=_0x54623d[_0x256c32([0x6a,0x74,0x69])],_0x193c09=window[_0x256c32([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4ff086[_0x256c32([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4ff086[_0x256c32([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3e45fb={..._0x54623d,[_0x256c32([0x6a,0x74,0x69])]:_0x4ff086[_0x256c32([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4ff086[_0x256c32([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3e45fb[_0x256c32([0x76,0x63])],_0x38bbf6(_0x3e45fb)==_0x193c09;}}}async function _0x29808b(){let _0x1855c3=!0x0;try{const _0x1bdac3=_0x4cac36[_0x256c32([0x73,0x70,0x6c,0x69,0x74])](_0x256c32([0x2e])),[_0x219de1,_0x2a7f82,_0xe94ad0]=_0x1bdac3;return _0xd3a2cf(_0x219de1),await _0x1c081e(_0x219de1,_0x2a7f82,_0xe94ad0),_0x1855c3;}catch(_0x5225cc){return!0x1;}function _0xd3a2cf(_0x4cb7c4){const _0x11485e=_0x31dbe7(_0x4cb7c4);_0x11485e&&_0x11485e[_0x256c32([0x61,0x6c,0x67])]==_0x256c32([0x45,0x53,0x32,0x35,0x36])||(_0x1855c3=!0x1);}async function _0x1c081e(_0x3a70cc,_0x38e57e,_0x2a4e46){const _0x52e314=window[_0x256c32([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x256c32([0x66,0x72,0x6f,0x6d])](_0x540e7d(_0x2a4e46),_0x5d6c4c=>_0x5d6c4c[_0x256c32([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3ad120=new window[(_0x256c32([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x256c32([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3a70cc+_0x256c32([0x2e])+_0x38e57e),_0x20eb3c=window[_0x256c32([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x256c32([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x20eb3c)return;const _0x51d627=await _0x20eb3c[_0x256c32([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x256c32([0x6a,0x77,0x6b]),_0x1ea037,{[_0x256c32([0x6e,0x61,0x6d,0x65])]:_0x256c32([0x45,0x43,0x44,0x53,0x41]),[_0x256c32([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x256c32([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x256c32([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x20eb3c[_0x256c32([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x256c32([0x6e,0x61,0x6d,0x65])]:_0x256c32([0x45,0x43,0x44,0x53,0x41]),[_0x256c32([0x68,0x61,0x73,0x68])]:{[_0x256c32([0x6e,0x61,0x6d,0x65])]:_0x256c32([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x51d627,_0x52e314,_0x3ad120)||(_0x1855c3=!0x1);}}function _0x31dbe7(_0x36935c){return _0x36935c[_0x256c32([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x256c32([0x65,0x79]))?JSON[_0x256c32([0x70,0x61,0x72,0x73,0x65])](_0x540e7d(_0x36935c)):null;}function _0x540e7d(_0x6e807c){return window[_0x256c32([0x61,0x74,0x6f,0x62])](_0x6e807c[_0x256c32([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x256c32([0x2b]))[_0x256c32([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x256c32([0x2f])));}function _0x38bbf6(_0x1f9f76){let _0x18f3fb=0x1505;function _0x59158a(_0x25ab1c){for(let _0x46a863=0x0;_0x46a863<_0x25ab1c[_0x256c32([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x46a863++){const _0x14ab79=_0x25ab1c[_0x256c32([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x46a863);_0x18f3fb=(_0x18f3fb<<0x5)+_0x18f3fb+_0x14ab79,_0x18f3fb&=_0x18f3fb;}}function _0x44a6fc(_0x5d8956){Array[_0x256c32([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5d8956)?_0x5d8956[_0x256c32([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x44a6fc):_0x5d8956&&typeof _0x5d8956==_0x256c32([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x256c32([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5d8956)[_0x256c32([0x73,0x6f,0x72,0x74])]()[_0x256c32([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x8cfbb5,_0x176d90])=>{_0x59158a(_0x8cfbb5),_0x44a6fc(_0x176d90);}):_0x59158a(window[_0x256c32([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5d8956));}return _0x44a6fc(_0x1f9f76),_0x18f3fb>>>0x0;}function _0x587e8d(_0x28cd05){return _0x28cd05[_0x256c32([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x256c32([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x256c32([0x30]));}function _0x192947(_0x2d5a12){return _0x2d5a12[_0x256c32([0x73,0x70,0x6c,0x69,0x74])]('')[_0x256c32([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x256c32([0x6a,0x6f,0x69,0x6e])]('');}function _0x9fdc60(_0xdcd39f){return _0x4f953c[_0x256c32([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x256c32([0x68,0x61,0x73])](_0xdcd39f);}function _0xdc01fd(_0x1bcdb4){return _0x4f953c[_0x256c32([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x256c32([0x67,0x65,0x74])](_0x1bcdb4);}function _0x16c3bb(){}function _0x256c32(_0x2baa5d){return _0x2baa5d['map'](_0x332dff=>String['fromCharCode'](_0x332dff))['join']('');}_0x5f3bf5(await _0x239d44());}(this);}set['adapter'](_0x1befb2){if(this['_adapter'])throw new _0x1c235c('track-changes-adapter-already-set',this);this['_adapter']=_0x1befb2;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x516101=!0x1,toJSON:_0x500bea=!0x1}={}){const _0x64104d=[];for(const _0x151136 of this['_suggestions']['values']())_0x516101&&!_0x151136['isInContent']||_0x64104d['push'](_0x151136);return _0x500bea?_0x64104d['map'](_0x5d7b08=>_0x5d7b08['toJSON']()):_0x64104d;}['getSuggestion'](_0x45cbe3){const _0xabb30e=this['_suggestions']['get'](_0x45cbe3);if(!_0xabb30e)throw new _0x1c235c('track-changes-suggestion-not-found',this);return _0xabb30e;}['hasSuggestion'](_0x3263d2){return this['_suggestions']['has'](_0x3263d2);}['addSuggestionData'](_0x1ccc86){const {authorId:_0x344261,id:_0x287025,attributes:_0x3d6d58}=_0x1ccc86,[_0x1d750d,_0x4c6d53]=_0x1ccc86['type']['split'](':'),_0x246b7b=this['_suggestions']['get'](_0x287025)||this['_createSuggestion'](_0x1d750d,_0x4c6d53,_0x287025,_0x344261,_0x3d6d58);if(this['_addThreadToSuggestion'](_0x246b7b),this['_checkSuggestionCorrectness'](_0x246b7b,_0x1d750d,_0x4c6d53||null,_0x344261),_0x246b7b['createdAt']=_0x1ccc86['createdAt'],_0x246b7b['_isDataLoaded']=!0x0,_0x3d6d58&&_0x3d6d58['@external']){const _0x3c0ea4=_0x3d6d58['@external'],_0x2705e3=this['_getExternalAuthor'](_0x3c0ea4['authorName']);_0x246b7b['authoredAt']=_0x3c0ea4['createdAt'],_0x246b7b['author']=_0x2705e3,_0x246b7b['isExternal']=!0x0;}else _0x246b7b['authoredAt']=_0x1ccc86['createdAt'];switch(_0x1ccc86['data']&&(_0x246b7b['data']=_0x1ccc86['data']),_0x1ccc86['attributes']&&(_0x246b7b['attributes']=_0x1ccc86['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x246b7b['_saved']=!0x0),this['_suggestionState']['get'](_0x246b7b)){case'notReady':this['_suggestionState']['set'](_0x246b7b,'dataReady');break;case'markerReady':_0x246b7b['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x246b7b])),this['_refreshSuggestionsChain'](new Set([_0x246b7b])),this['_suggestionState']['set'](_0x246b7b,'ready'),this['fire']('suggestionLoaded',_0x246b7b)):this['_suggestionState']['set'](_0x246b7b,'removed');}return _0x246b7b;}['acceptSuggestion'](_0x4f889b){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x321958 of _0x4f889b['getAllAdjacentSuggestions']())_0x321958['accept']();});});}['discardSuggestion'](_0x394aba){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4cc1e1 of _0x394aba['getAllAdjacentSuggestions']())_0x4cc1e1['discard']();});});}['enableCommand'](_0x3c5a58,_0x20123f){const _0x1e573b=this['editor']['commands']['get'](_0x3c5a58);if(!_0x1e573b)throw new _0x1c235c('track-changes-command-not-found',this,{'commandName':_0x3c5a58});if(this['_enabledCommands']['has'](_0x1e573b))throw new _0x1c235c('track-changes-enable-command-twice',this,{'commandName':_0x3c5a58});this['_enabledCommands']['add'](_0x1e573b),_0x20123f&&_0x1e573b['on']('execute',(_0x1feeee,_0x49d519)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x49d519['length']>0x0&&_0x49d519[_0x49d519['length']-0x1]&&_0x49d519[_0x49d519['length']-0x1]['forceDefaultExecution']?_0x49d519['pop']():(_0x1feeee['return']=_0x20123f((..._0x2046c7)=>_0x1e573b['execute'](..._0x2046c7,{'forceDefaultExecution':!0x0}),..._0x49d519),_0x1feeee['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x3c94f0){let _0x4f2985,_0x375750;const _0x4d3478=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x4f2985=_0x3c94f0();}catch(_0x478ee3){_0x375750=_0x478ee3;}return _0x4d3478||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x375750&&_0x1c235c['rethrowUnexpectedError'](_0x375750,this),_0x4f2985;}['markInsertion'](_0x92b562,_0x1d0acc=null,_0xdc1b84={}){if(_0x92b562['isCollapsed'])return null;const _0x387640=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x48903f,meta:_0xc6723d}of this['_findSuggestions'](_0x92b562,'insertion'))if(_0xc6723d['isOwn']){if(!_0xc6723d['isNextTo']){if(_0xc6723d['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0x48903f,_0xdc1b84))continue;return _0x48903f;}if(Qt(_0x48903f,_0xdc1b84))return _0x48903f;this['_breakSuggestionMarker'](_0x48903f,_0x92b562['start'],_0x92b562['end']);break;}if(_0x1d0acc==_0x48903f['subType']&&Qt(_0x48903f,_0xdc1b84)){const _0x3aa21d=_0x48903f['getFirstRange']();return _0x3aa21d['start']['isEqual'](_0x92b562['end'])?this['_setSuggestionRange'](_0x48903f,this['_model']['createRange'](_0x92b562['start'],_0x3aa21d['end'])):this['_setSuggestionRange'](_0x48903f,this['_model']['createRange'](_0x3aa21d['start'],_0x92b562['end'])),_0x48903f;}}const _0x5c212b=_0x502eb1(),_0x47d496=_0x387640['id'],_0x4c0339=_0x1d0acc?'insertion:'+_0x1d0acc:'insertion',_0x3706a5=this['_setSuggestionData']({'id':_0x5c212b,'type':_0x4c0339,'createdAt':new Date(),'authorId':_0x47d496,'attributes':_0xdc1b84});return this['_addSuggestionMarker'](_0x4c0339,_0x5c212b,_0x47d496,_0x92b562),_0x3706a5;}['markMultiRangeInsertion'](_0x863b0e,_0x210b7c='multi',_0x3f1e0f={}){const _0x3b37bf=this['editor']['plugins']['get']('Users')['me'],_0x4ef97e=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x210b7c,'join');for(const _0x5ae239 of this['getSuggestions']())if(_0x5ae239['author']['id']==_0x3b37bf['id']&&'insertion'==_0x5ae239['type']&&_0x5ae239['subType']==_0x210b7c&&Qt(_0x5ae239,_0x3f1e0f)&&(_0x4ef97e(_0x5ae239['getRanges'](),_0x863b0e)||_0x4ef97e(_0x863b0e,_0x5ae239['getRanges']()))){for(const _0x181daa of _0x863b0e)_0x5ae239['addRange'](_0x181daa);return _0x5ae239;}for(const {suggestion:_0x5b3c15,meta:_0x3fd696}of this['_findSuggestions'](_0x863b0e,'insertion')){if(!_0x3fd696['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x3fd696['containsRangeInObject'])continue;if(!Qt(_0x5b3c15,_0x3f1e0f))continue;let _0xfcff06=!0x0;for(const _0x1da0cd of _0x5b3c15['getRanges']())for(const _0x5073cf of _0x863b0e)if(!_0x1da0cd['containsRange'](_0x5073cf)){_0xfcff06=!0x1;break;}if(_0xfcff06)return _0x5b3c15;}const _0x4e3454=_0x502eb1(),_0x55bbe5=_0x3b37bf['id'],_0x3bcac7='insertion:'+_0x210b7c,_0x3bbaea=this['_setSuggestionData']({'id':_0x4e3454,'type':_0x3bcac7,'createdAt':new Date(),'authorId':_0x55bbe5,'attributes':_0x3f1e0f});for(const _0x59e289 of _0x863b0e)this['_addSuggestionMarker'](_0x3bcac7,_0x4e3454,_0x55bbe5,_0x59e289,u['getMultiRangeId']());return _0x3bbaea;}['markInlineFormat'](_0x16f9ef,_0x48523c,_0x845f05=null,_0x57d9d2={}){if(_0x845f05=_0x845f05||Jt(_0x48523c),_0x16f9ef['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x51208a=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x845f05,'accept');return this['forceDefaultExecution'](()=>_0x51208a([_0x16f9ef],_0x48523c,_0x57d9d2)),null;}const _0xd802c8=this['editor']['plugins']['get']('Users')['me'],_0x3abfa8=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x420e9b,meta:_0x439527}of this['_findSuggestions'](_0x16f9ef,'insertion'))_0x439527['isOwn']&&!_0x439527['isInsideObject']&&_0x3abfa8['push'](..._0x420e9b['getRanges']());}const _0x209df1=function(_0x50205f,_0x38f4c7){const _0x5214e6=[];for(const _0x5a1b9d of _0x38f4c7){const _0x91b712=_0x50205f['getIntersection'](_0x5a1b9d);_0x91b712&&_0x5214e6['push'](_0x91b712);}return _0x5214e6;}(_0x16f9ef,_0x3abfa8),_0x4a37f0=function(_0x325e1f,_0x15351c){const _0x12c79c=[_0x325e1f];for(const _0x57ed2b of _0x15351c){let _0x42b524=0x0;for(;_0x42b524<_0x12c79c['length'];){const _0x224a3c=_0x12c79c[_0x42b524]['getDifference'](_0x57ed2b);_0x12c79c['splice'](_0x42b524,0x1,..._0x224a3c),_0x42b524+=_0x224a3c['length'];}}return _0x12c79c;}(_0x16f9ef,_0x3abfa8);_0x209df1['length']&&this['_model']['change'](()=>{for(const _0x1b3a7c of _0x209df1){const _0x1b117a=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x845f05,'accept');this['forceDefaultExecution'](()=>_0x1b117a([_0x1b3a7c],_0x48523c,_0x57d9d2));}});for(const _0x3e7467 of _0x4a37f0){let _0x5172bf=null,_0x3ef69b=_0x3e7467['start'],_0x84e4ba=_0x3e7467['end'];for(const {suggestion:_0x36baa0,meta:_0x20084a}of this['_findSuggestions'](_0x3e7467,'formatInline')){if(!_0x20084a['isOwn'])continue;if(_0x36baa0['subType']!=_0x845f05)continue;if(!Qt(_0x36baa0,_0x57d9d2))continue;const _0x25a2c9=_0x36baa0['getFirstRange']();if(_0x25a2c9['containsRange'](_0x3e7467,!0x0))return null;_0x3ef69b=_0x3ef69b['isBefore'](_0x25a2c9['start'])?_0x3ef69b:_0x25a2c9['start'],_0x84e4ba=_0x84e4ba['isAfter'](_0x25a2c9['end'])?_0x84e4ba:_0x25a2c9['end'],_0x5172bf?_0x25a2c9['start']['isBefore'](_0x5172bf['getFirstRange']()['start'])?(_0x5172bf['removeMarkers'](),_0x5172bf=_0x36baa0):_0x36baa0['removeMarkers']():_0x5172bf=_0x36baa0;}const _0x3021f5=this['_model']['createRange'](_0x3ef69b,_0x84e4ba);if(_0x5172bf)this['_setSuggestionRange'](_0x5172bf,_0x3021f5);else{const _0x320cd7=_0x502eb1(),_0x3bd951=_0xd802c8['id'];this['_setSuggestionData']({'id':_0x320cd7,'type':'formatInline:'+_0x845f05,'data':_0x48523c,'createdAt':new Date(),'authorId':_0x3bd951,'attributes':_0x57d9d2}),this['_addSuggestionMarker']('formatInline:'+_0x845f05,_0x320cd7,_0x3bd951,_0x3021f5);}}return null;}['markBlockFormat'](_0x5a8a01,_0x2bcafc,_0x211dc3=[],_0x3085e6=null,_0x20fb1d={}){_0x2bcafc['formatGroupId']||(_0x2bcafc['formatGroupId']=_0x2bcafc['commandName']),_0x2bcafc['multipleBlocks']=_0x5a8a01['is']('range'),_0x3085e6=_0x3085e6||Jt(_0x2bcafc);const _0x27dfd3=_0x211dc3['map'](_0x59f034=>zt(_0x59f034,this['_model'])),_0x4cf6b4=_0x5a8a01['is']('range')?_0x5a8a01:zt(_0x5a8a01,this['_model']);if('never'===this['_trackFormatChanges']){const _0x40e65a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3085e6,'accept');return this['forceDefaultExecution'](()=>_0x40e65a([_0x4cf6b4],_0x2bcafc,_0x20fb1d)),null;}_0x27dfd3['push'](_0x4cf6b4);let _0x44f79e=!0x0;for(const _0x19cd7b of _0x27dfd3)if(!this['_rangeIsInLocalUserInsertion'](_0x19cd7b)){_0x44f79e=!0x1;break;}if(_0x44f79e&&'always'!==this['_trackFormatChanges']){const _0x2c53c0=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3085e6,'accept');return this['forceDefaultExecution'](()=>_0x2c53c0([_0x4cf6b4],_0x2bcafc,_0x20fb1d)),null;}let _0x4e332f=null,_0x1379b0=_0x4cf6b4['start'],_0x50e2f7=_0x4cf6b4['end'];for(const {suggestion:_0x321543,meta:_0x14ed8a}of this['_findSuggestions'](_0x4cf6b4,'formatBlock')){if(!_0x14ed8a['isOwn'])continue;if(_0x14ed8a['isNextTo']||_0x14ed8a['containsRangeInObject']||_0x14ed8a['isInsideObject'])continue;if(_0x321543['data']['formatGroupId']!=_0x2bcafc['formatGroupId'])continue;if(!Qt(_0x321543,_0x20fb1d))continue;const _0x22bc11=_0x321543['getFirstRange']();if(_0x321543['subType']==_0x3085e6){if(_0x22bc11['containsRange'](_0x4cf6b4,!0x0))return null;_0x1379b0=_0x1379b0['isBefore'](_0x22bc11['start'])?_0x1379b0:_0x22bc11['start'],_0x50e2f7=_0x50e2f7['isAfter'](_0x22bc11['end'])?_0x50e2f7:_0x22bc11['end'],_0x4e332f?_0x22bc11['start']['isBefore'](_0x4e332f['getFirstRange']()['start'])?(_0x4e332f['removeMarkers'](),_0x4e332f=_0x321543):_0x321543['removeMarkers']():_0x4e332f=_0x321543;}else{const _0x423463=_0x4cf6b4['getIntersection'](_0x22bc11);this['_cutOutSuggestionMarker'](_0x321543,_0x423463);}}const _0x593549=this['editor']['plugins']['get']('Users')['me'],_0xd79aea=_0x502eb1(),_0x4512d7=_0x593549['id'];if(_0x4e332f)return this['_setSuggestionRange'](_0x4e332f,this['_model']['createRange'](_0x1379b0,_0x50e2f7)),_0x4e332f;{const _0x438f3d=this['_setSuggestionData']({'id':_0xd79aea,'type':'formatBlock:'+_0x3085e6,'data':_0x2bcafc,'createdAt':new Date(),'authorId':_0x4512d7,'attributes':_0x20fb1d});return this['_addSuggestionMarker']('formatBlock:'+_0x3085e6,_0xd79aea,_0x4512d7,this['_model']['createRange'](_0x1379b0,_0x50e2f7)),_0x438f3d;}}['markMultiRangeBlockFormat'](_0x3fe26d,_0x1964d1,_0xd689b6=[],_0x479afb=null,_0x514c3e={}){_0x1964d1['formatGroupId']||(_0x1964d1['formatGroupId']=_0x1964d1['commandName']);const _0x3c4f94=_0x3fe26d[0x0];_0x1964d1['multipleBlocks']=_0x3c4f94['is']('range'),_0x479afb=_0x479afb||Jt(_0x1964d1);const _0x45ac0a=_0xd689b6['map'](_0x440ddb=>zt(_0x440ddb,this['_model'])),_0x469577=_0x3c4f94['is']('range')?_0x3fe26d:_0x3fe26d['map'](_0x351e20=>zt(_0x351e20,this['_model']));if('never'===this['_trackFormatChanges']){const _0x15f26f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x479afb,'accept');return this['forceDefaultExecution'](()=>_0x15f26f(_0x469577,_0x1964d1,_0x514c3e)),null;}_0x45ac0a['push'](..._0x469577);let _0x2ebcd0=!0x0;for(const _0x39c08b of _0x45ac0a)if(!this['_rangeIsInLocalUserInsertion'](_0x39c08b)){_0x2ebcd0=!0x1;break;}if(_0x2ebcd0&&'always'!==this['_trackFormatChanges']){const _0x6b32b1=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x479afb,'accept');return this['forceDefaultExecution'](()=>_0x6b32b1(_0x469577,_0x1964d1,_0x514c3e)),null;}const _0x3585de=this['editor']['plugins']['get']('Users')['me'];for(const _0x4eb221 of this['getSuggestions']()){if(_0x4eb221['author']['id']!=_0x3585de['id'])continue;if('formatBlock'!=_0x4eb221['type']||_0x4eb221['data']['formatGroupId']!=_0x1964d1['formatGroupId'])continue;if(!Qt(_0x4eb221,_0x514c3e))continue;const _0x311743=_0x4eb221['subType']==_0x479afb;for(let _0x4d1a4f=0x0;_0x4d1a4f<_0x469577['length'];_0x4d1a4f++){const _0x52b845=_0x469577[_0x4d1a4f];for(const _0xaae552 of _0x4eb221['getMarkers']()){const _0x35d036=_0xaae552['getRange']();if(_0x52b845['isEqual'](_0x35d036)){_0x311743?(_0x469577['splice'](_0x4d1a4f,0x1),_0x4d1a4f--):_0x4eb221['removeMarker'](_0xaae552['name']);break;}}}}if(0x0==_0x469577['length'])return null;const _0x43161c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x479afb,'join');for(const _0x2a0af4 of this['getSuggestions']())if(_0x2a0af4['author']['id']==_0x3585de['id']&&'formatBlock'==_0x2a0af4['type']&&_0x2a0af4['data']['formatGroupId']==_0x1964d1['formatGroupId']&&_0x2a0af4['subType']==_0x479afb&&Qt(_0x2a0af4,_0x514c3e)&&(_0x43161c(_0x2a0af4['getRanges'](),_0x469577)||_0x43161c(_0x469577,_0x2a0af4['getRanges']()))){for(const _0x197c3f of _0x469577)_0x2a0af4['addRange'](_0x197c3f);return _0x2a0af4;}const _0x55e530=_0x502eb1(),_0x43179d=_0x3585de['id'],_0x2e2864='formatBlock:'+_0x479afb,_0x1da295=this['_setSuggestionData']({'id':_0x55e530,'type':_0x2e2864,'data':_0x1964d1,'createdAt':new Date(),'authorId':_0x43179d,'attributes':_0x514c3e});for(const _0xb19595 of _0x469577)this['_addSuggestionMarker'](_0x2e2864,_0x55e530,_0x43179d,_0xb19595,u['getMultiRangeId']());return _0x1da295;}['markDeletion'](_0x1d3e72,_0x448f09=null,_0xb2eb3c={}){if(_0x1d3e72['isCollapsed'])return null;const _0x4493b2=this['editor']['plugins']['get']('Users')['me'],_0x30f9e6=new _0x1200ae(_0x1d3e72['start'],_0x1d3e72['end']);for(const {suggestion:_0x426d3a,meta:_0x7f4f47}of this['_findSuggestions'](_0x30f9e6,'insertion'))if(_0x7f4f47['isOwn']&&!_0x7f4f47['isNextTo']){if(_0x426d3a['isMultiRange']){const _0x45b20c=_0x426d3a['getRanges']()['filter'](_0x5156db=>'$graveyard'!=_0x5156db['root']['rootName']);_0x45b20c['every'](_0x5418e1=>_0x30f9e6['containsRange'](_0x5418e1,!0x0))&&_0x426d3a['discard']();if(_0x45b20c['some'](_0x5779f2=>_0x5779f2['containsRange'](_0x30f9e6,!0x0))){const _0x5577ce=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x448f09,'accept');return this['forceDefaultExecution'](()=>_0x5577ce([_0x30f9e6],null,_0xb2eb3c)),null;}}else{const _0x2fa9fd=_0x30f9e6['getIntersection'](_0x426d3a['getFirstRange']());null!==_0x2fa9fd&&_0x426d3a['_onDiscard']([_0x2fa9fd],null,_0xb2eb3c);}}if(_0x30f9e6['detach'](),_0x30f9e6['isCollapsed']||'$graveyard'==_0x30f9e6['root']['rootName'])return null;let _0x2353c9=null,_0x132c4f=_0x30f9e6['start'],_0xd27970=_0x30f9e6['end'];const _0x56e862=this['_findSuggestions'](_0x30f9e6,'deletion');for(const {suggestion:_0x387e0e,meta:_0x45e767}of _0x56e862){const _0x288945=this['_model']['createRange'](_0x132c4f,_0xd27970);if(_0x45e767['isOwn']&&(this['_mergeNestedSuggestions']||!_0x45e767['containsRangeInObject']&&!_0x45e767['isInsideObject'])){if(_0x387e0e['isMultiRange']){if(!Qt(_0x387e0e,_0xb2eb3c))continue;let _0x453898=!0x0;for(const _0x5e89ab of _0x387e0e['getRanges']()){if(_0x5e89ab['containsRange'](_0x288945,!0x0))return _0x387e0e;_0x288945['containsRange'](_0x5e89ab)||(_0x453898=!0x1);}_0x453898&&_0x387e0e['discard']();}else{const _0x245d1a=_0x387e0e['getFirstRange']();if(_0x245d1a['containsRange'](_0x288945,!0x0))return _0x387e0e;if(!Qt(_0x387e0e,_0xb2eb3c)){_0x288945['containsRange'](_0x245d1a)?_0x387e0e['removeMarkers']():_0x245d1a['containsPosition'](_0x132c4f)?_0x132c4f=_0x245d1a['end']:_0x245d1a['containsPosition'](_0xd27970)&&(_0xd27970=_0x245d1a['start']);continue;}_0x132c4f=_0x132c4f['isBefore'](_0x245d1a['start'])?_0x132c4f:_0x245d1a['start'],_0xd27970=_0xd27970['isAfter'](_0x245d1a['end'])?_0xd27970:_0x245d1a['end'],_0xb2eb3c=Object['assign']({},_0x387e0e['attributes']),_0x2353c9?_0x245d1a['start']['isBefore'](_0x2353c9['getFirstRange']()['start'])?(_0x2353c9['removeMarkers'](),_0x2353c9=_0x387e0e):_0x387e0e['removeMarkers']():_0x2353c9=_0x387e0e;}}}if(_0x2353c9)return this['_setSuggestionRange'](_0x2353c9,this['_model']['createRange'](_0x132c4f,_0xd27970)),_0x2353c9;{const _0x229363=_0x502eb1(),_0x55aa2c=this['_model']['createRange'](_0x132c4f,_0xd27970),_0x3dfcbf=_0x4493b2['id'],_0x4026ce=_0x448f09?'deletion:'+_0x448f09:'deletion',_0x49ada9=this['_setSuggestionData']({'id':_0x229363,'type':_0x4026ce,'createdAt':new Date(),'authorId':_0x3dfcbf,'attributes':_0xb2eb3c});return this['_addSuggestionMarker'](_0x4026ce,_0x229363,_0x3dfcbf,_0x55aa2c),_0x49ada9;}}['markMultiRangeDeletion'](_0x2f6691,_0x318c81='multi',_0x12df4c={}){const _0x20961c=this['editor']['plugins']['get']('Users')['me'],_0x12df49=_0x2f6691['map'](_0x5d1937=>new _0x1200ae(_0x5d1937['start'],_0x5d1937['end'])),_0x2749e8=new Set();for(const {suggestion:_0x4465a5,meta:_0x2c6ecd}of this['_findSuggestions'](_0x12df49,'insertion'))_0x2c6ecd['isOwn']&&!_0x2c6ecd['isNextTo']&&_0x2749e8['add'](_0x4465a5);for(const _0x125c98 of _0x2749e8)if(_0x125c98['isMultiRange']){const _0x1f0a1d=_0x125c98['getRanges']();(!_0x125c98['attributes']||!_0x125c98['attributes']['skipNestingCheck'])&&(_0x1f0a1d['every'](_0x501b3e=>_0x12df49['some'](_0x5dead9=>_0x5dead9['containsRange'](_0x501b3e,!0x0)))&&_0x125c98['discard']());if(_0x12df49['every'](_0x49b41f=>_0x1f0a1d['some'](_0x27c059=>_0x27c059['containsRange'](_0x49b41f,!0x0)))){const _0x51282b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x318c81,'accept');return this['forceDefaultExecution'](()=>_0x51282b(_0x2f6691,null,_0x12df4c)),null;}}else{const _0x3a2f8d=_0x125c98['getFirstRange']();_0x12df49['some'](_0x1b2042=>_0x1b2042['containsRange'](_0x3a2f8d,!0x0))&&_0x125c98['discard']();if(_0x12df49['every'](_0x3b8931=>_0x3a2f8d['containsRange'](_0x3b8931,!0x0))){const _0x1be06c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x318c81,'accept');return this['forceDefaultExecution'](()=>_0x1be06c(_0x12df49,null,_0x12df4c)),null;}}const _0x25eace=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x318c81,'join');let _0xabf10=null;for(const _0xd6b60f of this['getSuggestions']())if(_0xd6b60f['author']['id']==_0x20961c['id']&&_0xd6b60f['isInContent']&&'deletion'==_0xd6b60f['type']&&_0xd6b60f['subType']==_0x318c81&&Qt(_0xd6b60f,_0x12df4c)&&(_0x25eace(_0xd6b60f['getRanges'](),_0x12df49)||_0x25eace(_0x12df49,_0xd6b60f['getRanges']()))){if(_0xabf10){if(_0xd6b60f['commentThread']&&_0xd6b60f['commentThread']['length'])continue;for(const _0x57afca of _0xd6b60f['getRanges']())_0xabf10['isIntersectingWithRange'](_0x57afca)||_0xabf10['addRange'](_0x57afca);_0xd6b60f['removeMarkers']();}else{_0xabf10=_0xd6b60f;for(const _0x4fc3b8 of _0x12df49)_0xd6b60f['isIntersectingWithRange'](_0x4fc3b8)||_0xd6b60f['addRange'](_0x4fc3b8);}}if(_0xabf10)return _0xabf10;_0x2749e8['clear']();for(const {suggestion:_0x1da3d5,meta:_0x2515f5}of this['_findSuggestions'](_0x12df49,'deletion'))_0x2515f5['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2515f5['containsRangeInObject']&&!_0x2515f5['isInsideObject'])&&Qt(_0x1da3d5,_0x12df4c)&&_0x2749e8['add'](_0x1da3d5);for(const _0x50203a of _0x2749e8){const _0x3fac7d=_0x50203a['getRanges']();if(!_0x12df4c||!_0x12df4c['skipNestingCheck']){if(_0x12df49['every'](_0x5fb903=>_0x3fac7d['some'](_0x48517b=>_0x48517b['containsRange'](_0x5fb903,!0x0))))return _0x50203a;}(!_0x50203a['attributes']||!_0x50203a['attributes']['skipNestingCheck'])&&(_0x3fac7d['every'](_0x4829ec=>_0x12df49['some'](_0x3595d4=>_0x3595d4['containsRange'](_0x4829ec,!0x0)))&&_0x50203a['discard']());}const _0x443af5=_0x502eb1(),_0x331b4b=_0x20961c['id'],_0x23b50f='deletion:'+_0x318c81,_0x4db052=this['_setSuggestionData']({'id':_0x443af5,'type':_0x23b50f,'createdAt':new Date(),'authorId':_0x331b4b,'attributes':_0x12df4c});for(const _0x405646 of _0x12df49)_0x405646['detach'](),_0x405646['isCollapsed']||'$graveyard'==_0x405646['root']['rootName']||this['_addSuggestionMarker'](_0x23b50f,_0x443af5,_0x331b4b,_0x405646,u['getMultiRangeId']());return _0x4db052;}['markAttributeChange'](_0x4ea9ce,_0xef98b,_0x1f7ff5,_0x2512be,_0x1c4388){if(_0x4ea9ce['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x39e0d9=this['editor']['plugins']['get']('Users')['me']['id'],_0x4487d5=Array['from'](this['_suggestions']['values']())['filter'](_0x2e290f=>'attribute'==_0x2e290f['type']&&_0x2e290f['data']['key']==_0xef98b&&_0x2e290f['isIntersectingWithRange'](_0x4ea9ce));if('default'===this['_trackFormatChanges']){const _0x532e35=this['_findSuggestions'](_0x4ea9ce,'insertion')['filter'](({meta:_0xf0b8cf})=>_0xf0b8cf['isOwn']&&!_0xf0b8cf['isInsideObject']&&!_0xf0b8cf['isNextTo'])['map'](({suggestion:_0x150567})=>_0x150567);_0x4487d5['unshift'](..._0x532e35);}const _0x1d622c=new Map([[_0x4ea9ce,_0x1f7ff5]]);for(const _0x161765 of _0x4487d5){const _0x30b624='attribute'==_0x161765['type']?_0x161765['data']['oldValue']:void 0x0,_0x1b3a05=_0x161765['getFirstRange'](),_0x4b1fef=Array['from'](_0x1d622c['keys']())['find'](_0x5917f0=>_0x5917f0['isIntersecting'](_0x1b3a05));if(!_0x4b1fef)continue;const _0x1e121c=_0x4b1fef['getDifference'](_0x1b3a05);this['_isBlockAttribute'](_0xef98b)&&'insertion'==_0x161765['type']&&0x0!=_0x1e121c['length']||(_0x1d622c['delete'](_0x4b1fef),_0x1e121c['forEach'](_0x1274d0=>{_0x1d622c['set'](_0x1274d0,_0x1f7ff5);}),'insertion'!=_0x161765['type']&&_0x30b624!=_0x2512be&&_0x1d622c['set'](_0x4b1fef['getIntersection'](_0x1b3a05),_0x30b624));}const _0x2c5832=[];for(const [_0x24b8e0,_0x2c1dca]of _0x1d622c){const _0x2e17a1=_0x502eb1(),_0x702368={'key':_0xef98b,'oldValue':_0x2c1dca,'newValue':_0x2512be};_0xef98b['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':_0xef98b});const _0x340600=('attribute:'+(_0xef98b+'|'+Jt({'newValue':_0x2512be})))['substring'](0x0,0x3c),_0x47c294=this['_setSuggestionData']({'id':_0x2e17a1,'type':_0x340600,'data':_0x702368,'createdAt':new Date(),'authorId':_0x39e0d9,'attributes':_0x1c4388});_0x2c5832['push'](_0x47c294),this['_addSuggestionMarker'](_0x340600,_0x2e17a1,_0x39e0d9,_0x24b8e0);}return _0x2c5832;}['enableDefaultAttributesIntegration'](_0x2bd597){this['enableCommand'](_0x2bd597,(_0x5de21e,..._0x5a764e)=>{this['_recordAttributeChanges'](()=>{_0x5de21e(..._0x5a764e);});});}['registerBlockAttribute'](_0x309dec){this['_blockAttributeKeys']['add'](_0x309dec);}['registerInlineAttribute'](_0x2ed75f){this['_inlineAttributeKeys']['add'](_0x2ed75f);}['_getAttributeKey'](_0x2a3760){return'attribute'==_0x2a3760['type']?_0x2a3760['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x4e9f78,_0x78a05){const _0x2e449a=_0x4e9f78['getFirstMarker']();this['_model']['change'](_0x2283e7=>{_0x2283e7['updateMarker'](_0x2e449a,{'range':_0x78a05});});}['_addThreadToSuggestion'](_0x55480b){const _0x2669bb=_0x55480b['id'],_0x14abce=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x2669bb)||this['_commentsRepository']['addCommentThread']({'channelId':_0x14abce,'threadId':_0x2669bb,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x2c65a4=this['_commentsRepository']['getCommentThread'](_0x2669bb);_0x2c65a4['unbind']('isRemovable'),_0x2c65a4['isRemovable']=!0x1,_0x55480b['commentThread']=_0x2c65a4;}['_checkSuggestionCorrectness'](_0x427992,_0x541636,_0xa42c11,_0x3450b8){if(_0x427992['type']!=_0x541636||_0x427992['subType']!=_0xa42c11||_0x427992['creator']['id']!=_0x3450b8)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x1c235c('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x252300,_0x15b544){const _0x37dab7=_0x252300['getFirstRange']();if(_0x15b544['isEqual'](_0x37dab7))_0x252300['removeMarkers']();else{if(_0x37dab7['containsRange'](_0x15b544)){const _0x51dee3=this['_model']['createPositionAt'](_0x15b544['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x252300,this['_model']['createRange'](_0x37dab7['start'],_0x51dee3));const _0xc45520=_0x502eb1(),_0x277490=_0x252300['creator']['id'],_0x116dce=_0x252300['type']+':'+_0x252300['subType'];this['_setSuggestionData']({'id':_0xc45520,'type':_0x116dce,'createdAt':new Date(),'authorId':_0x277490,'data':_0x252300['data'],'attributes':_0x252300['attributes']});const _0x247885=this['_model']['createPositionAt'](_0x15b544['end']['parent'],'after'),_0x1772e8=this['_model']['createRange'](_0x247885,_0x37dab7['end']);this['_addSuggestionMarker'](_0x116dce,_0xc45520,_0x277490,_0x1772e8);}else{if(_0x37dab7['containsPosition'](_0x15b544['start'])){const _0x2c95a0=this['_model']['createPositionAt'](_0x15b544['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x252300,this['_model']['createRange'](_0x37dab7['start'],_0x2c95a0));}else{const _0x52ec54=this['_model']['createPositionAt'](_0x15b544['end']['parent'],'after');this['_setSuggestionRange'](_0x252300,this['_model']['createRange'](_0x52ec54,_0x37dab7['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x2cc61b){for(const {suggestion:_0x15fd47,meta:_0x47a62d}of this['_findSuggestions'](_0x2cc61b,'insertion')){if(!_0x47a62d['isOwn'])continue;const _0x2d0b17=_0x15fd47['getRanges']();for(const _0x272040 of _0x2d0b17)if(!_0x2cc61b['getDifference'](_0x272040)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0xd9968e){const _0xad975b=this['editor']['plugins']['get']('Users')['getUser'](_0xd9968e);if(!_0xad975b)throw new _0x1c235c('track-changes-user-not-found',this);return _0xad975b;}['_getExternalAuthor'](_0x129bce){const _0x3124cc=this['editor']['plugins']['get']('Users'),_0x5e7a73=_0x2dc0b9('external:'+_0x129bce),_0x31fd86=_0x3124cc['getUser'](_0x5e7a73);return _0x31fd86||_0x3124cc['addUser']({'id':_0x5e7a73,'name':_0x129bce});}['_createSuggestion'](_0x2f187d,_0x420206,_0x1ac0ab,_0x4b2de2,_0x46774e){const _0x3f1491=this['_getAuthorFromId'](_0x4b2de2),_0xe516c3=this['_suggestionFactory']['buildSuggestion'](_0x2f187d,_0x420206,_0x1ac0ab,_0x3f1491,_0x46774e,_0x155eeb=>{this['_updateSuggestionData'](_0x1ac0ab,{'attributes':_0x155eeb});const _0x53fff4=this['getSuggestion'](_0x1ac0ab);this['_joinWithAdjacentSuggestions'](new Set([_0x53fff4])),this['_refreshSuggestionsChain'](new Set([_0x53fff4]));});return this['listenTo'](_0xe516c3,'accept',()=>{this['_updateSuggestionData'](_0x1ac0ab,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0xe516c3,'discard',()=>{this['_updateSuggestionData'](_0x1ac0ab,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x1ac0ab,_0xe516c3),this['_suggestionState']['set'](_0xe516c3,'notReady'),_0xe516c3;}['_splitMarkerName'](_0x3386e7){const _0x2e9ac2=_0x3386e7['split'](':');return{'group':_0x2e9ac2[0x0],'type':_0x2e9ac2[0x1],'subType':_0x2e9ac2['length']>=0x5?_0x2e9ac2[0x2]:null,'id':_0x2e9ac2['length']<0x5?_0x2e9ac2[0x2]:_0x2e9ac2[0x3],'authorId':_0x2e9ac2['length']<0x5?_0x2e9ac2[0x3]:_0x2e9ac2[0x4],'markerCount':0x6==_0x2e9ac2['length']?_0x2e9ac2[0x5]:null};}['_breakSuggestionMarker'](_0x54126c,_0x1ab184,_0x38dd1d){const _0x11657a=_0x54126c['getFirstRange'](),_0x1c2fd6=_0x11657a['start'],_0x268bff=_0x11657a['end'];this['_setSuggestionRange'](_0x54126c,this['_model']['createRange'](_0x1c2fd6,_0x1ab184));const _0x26733d=_0x502eb1(),_0x472efc=_0x54126c['creator']['id'],_0x4bd6f9=_0x54126c['type']+(_0x54126c['subType']?':'+_0x54126c['subType']:'');this['_setSuggestionData']({'id':_0x26733d,'type':_0x4bd6f9,'createdAt':new Date(),'authorId':_0x472efc,'originalSuggestionId':_0x54126c['id'],'attributes':_0x54126c['attributes'],'data':_0x54126c['data']});const _0x217a0c=this['_getAttributeKey'](_0x54126c);('formatBlock'==_0x54126c['type']||_0x217a0c&&this['_isBlockAttribute'](_0x217a0c))&&(_0x38dd1d=this['_model']['createPositionBefore'](_0x38dd1d['parent'])),this['_addSuggestionMarker'](_0x4bd6f9,_0x26733d,_0x472efc,this['_model']['createRange'](_0x38dd1d,_0x268bff));}['_findSuggestions'](_0xee5cb8,_0x21baa0=null){const _0x26d301=[],_0x463e8f=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0xee5cb8)||(_0xee5cb8=[_0xee5cb8]);for(const _0x104eb6 of this['getSuggestions']()){if(!_0x104eb6['isInContent'])continue;if(_0x21baa0&&_0x104eb6['type']!=_0x21baa0)continue;let _0x2503ce=!0x1;for(const _0x2a71f9 of _0x104eb6['getRanges']()){for(const _0x2a0f2c of _0xee5cb8){const _0x432487=_0x2a0f2c['start']['isEqual'](_0x2a71f9['end'])||_0x2a0f2c['end']['isEqual'](_0x2a71f9['start']);if(_0x432487||_0x2a0f2c['getIntersection'](_0x2a71f9)){const _0x5b7de7=_0x2a0f2c['containsRange'](_0x2a71f9)&&Gt(this['_model']['schema'],_0x2a71f9['start'],_0x2a0f2c),_0x11e6ab=_0x2a71f9['containsRange'](_0x2a0f2c)&&Gt(this['_model']['schema'],_0x2a0f2c['start'],_0x2a71f9);_0x26d301['push']({'suggestion':_0x104eb6,'meta':{'isOwn':_0x463e8f==_0x104eb6['author'],'isNextTo':_0x432487,'isInsideObject':_0x5b7de7,'containsRangeInObject':_0x11e6ab}}),_0x2503ce=!0x0;break;}}if(_0x2503ce)break;}}return _0x26d301;}['_addSuggestionMarker'](_0x10d939,_0x45f5a4,_0x4a5b96,_0x24fed9,_0x16113a){this['_model']['change'](_0x490541=>{let _0x3919f0='suggestion:'+_0x10d939+':'+_0x45f5a4+':'+_0x4a5b96;_0x16113a&&(_0x3919f0=_0x3919f0+':'+_0x16113a),_0x490541['addMarker'](_0x3919f0,{'range':_0x24fed9,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x534bf8){const _0x4aa0ec=_0x534bf8['previous'],_0x501ea0=_0x534bf8['next'];_0x534bf8['previous']=null,_0x534bf8['next']=null,null!=_0x4aa0ec&&_0x4aa0ec['next']==_0x534bf8&&(_0x4aa0ec['next']=_0x501ea0),null!=_0x501ea0&&_0x501ea0['previous']==_0x534bf8&&(_0x501ea0['previous']=_0x4aa0ec),'ready'==this['_suggestionState']['get'](_0x534bf8)&&(this['_suggestionState']['set'](_0x534bf8,'removed'),this['fire']('suggestionUnloaded',_0x534bf8,_0x4aa0ec,_0x501ea0));}['_setSuggestionData'](_0x2fcb3a){const _0x51b97d=_0x2fcb3a['id'],_0x1d8137=this['addSuggestionData'](_0x2fcb3a);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x1df9b3=this['editor']['plugins']['get']('PendingActions'),_0x2e9cb8=_0x1d8137['hasComments'],_0x3c0261=_0x1d8137['subType']?_0x1d8137['type']+':'+_0x1d8137['subType']:_0x1d8137['type'],_0x117540=this['editor']['locale'],_0x4adb70=_0x1df9b3['add'](o(_0x117540,'PENDING_ACTION_SUGGESTION')),_0x12f004={'id':_0x51b97d,'type':_0x3c0261,'hasComments':_0x2e9cb8,'data':_0x2fcb3a['data']||null,'originalSuggestionId':_0x2fcb3a['originalSuggestionId']||null,'attributes':_0x1d8137['attributes']};this['_adapter']['addSuggestion'](_0x12f004)['then'](_0x3db7e1=>{_0x1d8137['_saved']=!0x0,_0x1df9b3['remove'](_0x4adb70),_0x3db7e1&&_0x3db7e1['createdAt']&&(this['_suggestions']['get'](_0x51b97d)['createdAt']=_0x3db7e1['createdAt']);})['catch'](_0x1674b1=>{throw _0x5db013('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x1d8137['discard']();}),_0x1d8137['stopListening'](),this['_suggestions']['delete'](_0x1d8137['id']),this['_suggestionState']['delete'](_0x1d8137),_0x1674b1;});}return _0x1d8137;}['_isBlockAttribute'](_0x52c441){return this['_blockAttributeKeys']['has'](_0x52c441);}['_updateSuggestionData'](_0x182c5d,_0x3512ff){const _0x3412f3=this['editor']['plugins']['get']('PendingActions'),_0x37b44d=this['getSuggestion'](_0x182c5d);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x37b44d['_saved']){const _0xc48118=_0x3412f3['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x182c5d,_0x3512ff)['then'](()=>{_0x3412f3['remove'](_0xc48118);});}else _0x37b44d['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x182c5d,_0x3512ff);});}}['_getSuggestionData'](_0x3c4e4b){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x1c235c('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x3c4e4b);}['_handleNewSuggestionMarker'](_0xd8a840){const {id:_0x19d3a1,type:_0x582de4,subType:_0x32dfb2,authorId:_0x3ccc3d}=this['_splitMarkerName'](_0xd8a840),_0x4aa858=this['_suggestions']['get'](_0x19d3a1)||this['_createSuggestion'](_0x582de4,_0x32dfb2,_0x19d3a1,_0x3ccc3d,{});switch(this['_checkSuggestionCorrectness'](_0x4aa858,_0x582de4,_0x32dfb2,_0x3ccc3d),this['_suggestionState']['get'](_0x4aa858)){case'notReady':this['_getSuggestionData'](_0x19d3a1)['then'](_0x2f1b0a=>{let _0x384e23=Promise['resolve']();_0x2f1b0a['hasComments']&&(_0x384e23=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x19d3a1})),_0x384e23['then'](()=>{this['addSuggestionData'](_0x2f1b0a)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x4aa858,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x19d3a1,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x4aa858,'ready'),this['fire']('suggestionLoaded',_0x4aa858);break;case'ready':this['fire']('suggestionChanged',_0x4aa858);}return _0x4aa858['addMarkerName'](_0xd8a840),_0x4aa858;}['_refreshSuggestionsChain'](_0x374034){const _0x5260ec=Array['from'](_0x374034),_0x3d3d02=_0x5260ec['filter'](_0x36753e=>'attribute'==_0x36753e['type']);this['_refreshAttributeSuggestionsChain'](_0x3d3d02);const _0x1cea01=_0x5260ec['filter'](_0x3bf6c4=>!_0x3bf6c4['isMultiRange']&&'attribute'!=_0x3bf6c4['type']),_0x3b2f9d=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xa6bafd=>!_0xa6bafd['isMultiRange']&&'attribute'!=_0xa6bafd['type']),_0xd0691c=_0x3b2f9d['filter'](_0x199969=>!_0x374034['has'](_0x199969)),_0x1e4baa=new Map(_0x3b2f9d['map'](_0x553e83=>[_0x553e83,this['_suggestionFactory']['getSuggestionCallback'](_0x553e83['type'],_0x553e83['subType'],'chain')])),_0x7b29a7=new Map(_0x3b2f9d['map'](_0x46ffa4=>[_0x46ffa4,_0x46ffa4['getFirstRange']()])),_0x1eb967=new Set(),_0x14688e=new Set();for(let _0xe33b95=0x0;_0xe33b95<_0x1cea01['length'];_0xe33b95++)_0x40fee1(_0x1cea01[_0xe33b95],_0x1cea01,_0xe33b95+0x1);for(let _0x53477a=0x0;_0x53477a<_0x1cea01['length'];_0x53477a++)_0x40fee1(_0x1cea01[_0x53477a],_0xd0691c,0x0);const _0x43f227=new Set();for(let _0x1e6909=0x0;_0x1e6909<_0x1cea01['length'];_0x1e6909++){const _0x566f2f=_0x1cea01[_0x1e6909];!_0x14688e['has'](_0x566f2f)&&_0x566f2f['previous']&&(_0x43f227['add'](_0x566f2f['previous']),_0x566f2f['previous']['next']===_0x566f2f&&(_0x566f2f['previous']['next']=null),_0x566f2f['previous']=null),!_0x1eb967['has'](_0x566f2f)&&_0x566f2f['next']&&(_0x43f227['add'](_0x566f2f['next']),_0x566f2f['next']['previous']===_0x566f2f&&(_0x566f2f['next']['previous']=null),_0x566f2f['next']=null);}function _0x40fee1(_0xf1ddda,_0xfdd047,_0x273eb1){for(let _0x31bbba=_0x273eb1;_0x31bbba<_0xfdd047['length'];_0x31bbba++){const _0x114bd5=_0xe6b333(_0xf1ddda,_0xfdd047[_0x31bbba]);_0x114bd5&&(_0x114bd5[0x0]['next']=_0x114bd5[0x1],_0x114bd5[0x1]['previous']=_0x114bd5[0x0],_0x1eb967['add'](_0x114bd5[0x0]),_0x14688e['add'](_0x114bd5[0x1]));}}function _0xe6b333(_0x10b7ef,_0x3eff02){if(_0x10b7ef['author']['id']!==_0x3eff02['author']['id'])return null;const _0x2b3eb4=_0x1e4baa['get'](_0x10b7ef)(_0x10b7ef,_0x3eff02,_0x7b29a7['get'](_0x10b7ef),_0x7b29a7['get'](_0x3eff02));if(!_0x2b3eb4)return null;return _0x1e4baa['get'](_0x3eff02)(_0x10b7ef,_0x3eff02,_0x7b29a7['get'](_0x10b7ef),_0x7b29a7['get'](_0x3eff02))?_0x2b3eb4[0x1]['commentThread']&&_0x2b3eb4[0x1]['commentThread']['length']?null:_0x2b3eb4:null;}_0x43f227['size']&&this['_refreshSuggestionsChain'](_0x43f227);}['_refreshAttributeSuggestionsChain'](_0x123007){if(0x0==_0x123007['length'])return;const _0x2a9c2d=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x26f978=>'attribute'==_0x26f978['type']&&_0x26f978['_isDataLoaded']),_0x36fee9=[],_0x190900=new Map();for(const _0x290b03 of _0x2a9c2d){const _0x156f48=_0x2dc0b9(_0x290b03['attributes']);_0x190900['has'](_0x156f48)||(_0x190900['set'](_0x156f48,_0x36fee9['length']),_0x36fee9['push']([]));const _0x37e29f=_0x190900['get'](_0x156f48);_0x36fee9[_0x37e29f]['push'](_0x290b03);}!(function(){_0x36fee9['sort']((_0x33c1a5,_0x3a36a1)=>{const _0x48a470=_0x33c1a5[0x0]['createdAt'],_0x752af7=_0x3a36a1[0x0]['createdAt'];return _0x48a470==_0x752af7?_0x33c1a5[0x0]['attributes']['groupId']<_0x3a36a1[0x0]['attributes']['groupId']?-0x1:0x1:_0x48a470<_0x752af7?-0x1:0x1;});for(const _0x46d4f7 of _0x36fee9)_0x46d4f7['sort']((_0x21ca85,_0x303c7f)=>_0x21ca85['id']<_0x303c7f['id']?-0x1:0x1);}());for(let _0x29471b=0x0;_0x29471b<_0x36fee9['length'];_0x29471b++){if(0x0==_0x36fee9[_0x29471b]['length'])continue;const _0x1257c6=[];for(let _0x2f24cc=_0x29471b+0x1;_0x2f24cc<_0x36fee9['length'];_0x2f24cc++)0x0!=_0x36fee9[_0x2f24cc]['length']&&_0x99355d(_0x36fee9[_0x29471b],_0x36fee9[_0x2f24cc])&&_0x1257c6['push'](_0x2f24cc);for(const _0xb5c3d5 of _0x1257c6)_0x36fee9[_0x29471b]=_0x36fee9[_0x29471b]['concat'](_0x36fee9[_0xb5c3d5]),_0x36fee9[_0xb5c3d5]=[];}for(const _0x5cceb2 of _0x36fee9)for(let _0x178c4b=0x0;_0x178c4b<_0x5cceb2['length'];_0x178c4b++){const _0x54f5f3=_0x5cceb2[_0x178c4b+0x1]||null;_0x5cceb2[_0x178c4b]['next']!==_0x54f5f3&&(_0x5cceb2[_0x178c4b]['next']=_0x54f5f3);}for(const _0x50be0b of _0x36fee9)for(let _0x2976ef=0x0;_0x2976ef<_0x50be0b['length'];_0x2976ef++){const _0x1abee1=_0x50be0b[_0x2976ef-0x1]||null;_0x50be0b[_0x2976ef]['previous']!==_0x1abee1&&(_0x50be0b[_0x2976ef]['previous']=_0x1abee1);}function _0x99355d(_0x578965,_0xbce572){if(_0x578965[0x0]['attributes']['groupId']!==_0xbce572[0x0]['attributes']['groupId']&&_0x578965[0x0]['author']!==_0xbce572[0x0]['author'])return!0x1;if(!function(_0x4e07a8,_0x43c063){if(!_0x4e07a8['hasComments']&&!_0x43c063['hasComments'])return!0x0;if(_0x4e07a8['hasComments']&&_0x43c063['hasComments'])return!0x1;if(_0x4e07a8['hasComments']&&_0x43c063['createdAt']<_0x4e07a8['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x43c063['hasComments']&&_0x4e07a8['createdAt']<_0x43c063['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x578965[0x0],_0xbce572[0x0]))return!0x1;const _0x10d499=Vt(_0x578965[0x0]['attributes'],'groupId'),_0x353b09=Vt(_0xbce572[0x0]['attributes'],'groupId');if(!_0x344f35(_0x10d499,_0x353b09))return!0x1;return!!_0x578965['every'](_0x31f231=>_0xbce572['some'](_0x5ba95e=>_0x31f231['getFirstRange']()['isEqual'](_0x5ba95e['getFirstRange']())))&&_0xbce572['every'](_0x48c9db=>_0x578965['some'](_0x45e575=>_0x48c9db['getFirstRange']()['isEqual'](_0x45e575['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x4e7763){const _0x3d019c=Array['from'](_0x4e7763),_0x17f111=this['getSuggestions']({'skipNotAttached':!0x0}),_0x462688=_0x17f111['filter'](_0xe376dd=>!_0x4e7763['has'](_0xe376dd)),_0xe11b52=new Map(_0x3d019c['map'](_0x38e058=>[_0x38e058,this['_suggestionFactory']['getSuggestionCallback'](_0x38e058['type'],_0x38e058['subType'],'join')])),_0x5ce7d8=new Map(_0x17f111['map'](_0xc46768=>[_0xc46768,_0xc46768['getRanges']()]));for(let _0x17fe96=0x0;_0x17fe96<_0x3d019c['length'];_0x17fe96++){if(_0x3ae519(this,_0x3d019c[_0x17fe96],_0x3d019c,_0x17fe96+0x1))return!0x0;}for(let _0x376dec=0x0;_0x376dec<_0x3d019c['length'];_0x376dec++){if(_0x3ae519(this,_0x3d019c[_0x376dec],_0x462688,0x0))return!0x0;}return!0x1;function _0x3ae519(_0x1d8e86,_0x302b82,_0x1ed8bb,_0x90c9a0){for(let _0x433bd2=_0x90c9a0;_0x433bd2<_0x1ed8bb['length'];_0x433bd2++){const _0x4e88bd=_0x1ed8bb[_0x433bd2];if(_0x4e88bd['type']!==_0x302b82['type']||_0x4e88bd['author']['id']!==_0x302b82['author']['id']||_0x4e88bd['subType']!==_0x302b82['subType'])continue;if(!Wt(_0x302b82,_0x4e88bd))continue;if('attribute'==_0x302b82['type']&&_0x302b82['data']['oldValue']!=_0x4e88bd['data']['oldValue'])continue;if('attribute'==_0x302b82['type']&&_0x1d8e86['_isBlockAttribute'](_0x302b82['data']['key']))continue;if('formatBlock'==_0x302b82['type']){const _0x3f7934=_0x1d8e86['editor']['model'],_0x296ff5=_0x302b82['getContainedElement']();if(_0x296ff5&&(_0x3f7934['schema']['isObject'](_0x296ff5)||_0x3f7934['schema']['isLimit'](_0x296ff5)))continue;}const _0x442c1e=_0xe11b52['get'](_0x302b82),_0x5784c4=_0x5ce7d8['get'](_0x302b82),_0x5c7f21=_0x5ce7d8['get'](_0x4e88bd),_0x387d6e=_0x302b82['commentThread']&&_0x302b82['commentThread']['length'],_0x384d32=_0x4e88bd['commentThread']&&_0x4e88bd['commentThread']['length'];if(!_0x387d6e&&_0x442c1e(_0x5c7f21,_0x5784c4))return _0x1d8e86['_joinSuggestions'](_0x4e88bd,_0x302b82),_0x5ce7d8['delete'](_0x302b82),!0x0;if(!_0x384d32&&_0x442c1e(_0x5784c4,_0x5c7f21))return _0x1d8e86['_joinSuggestions'](_0x302b82,_0x4e88bd),_0x5ce7d8['delete'](_0x4e88bd),!0x0;}return!0x1;}}['_joinSuggestions'](_0x2c1c9a,_0x1ee9af){if(_0x2c1c9a['isMultiRange']){for(const _0x1e7ddc of _0x1ee9af['getRanges']())_0x2c1c9a['addRange'](_0x1e7ddc);}else{const _0x503a73=_0x1ee9af['getFirstRange']()['end'];this['_setSuggestionRange'](_0x2c1c9a,this['_model']['createRange'](_0x2c1c9a['getFirstRange']()['start'],_0x503a73));}_0x1ee9af['removeMarkers']();}['_getMarkerAnnouncementText'](_0x83f2f7,_0x71167e,_0x1141de){const _0x58b0be=_0x83f2f7['startsWith']('format')||_0x83f2f7['startsWith']('attribute')?'FORMATTING':_0x83f2f7['toUpperCase']();return o(this['editor']['locale'],_0x71167e+'_'+_0x58b0be+'_SUGGESTION_ANNOUNCEMENT',_0x1141de);}['_initAriaMarkerChangeAnnouncements'](){const _0xebf6aa=this['editor'];if(!_0xebf6aa['ui'])return;const {ariaLiveAnnouncer:_0x5e2e44}=_0xebf6aa['ui'];_0x3f2b80(this['_model'],({left:_0x2bee9,entered:_0x5267c2})=>{for(const _0x38660c of _0x2bee9){const {group:_0x4ccc11,type:_0x40ffd1}=this['_splitMarkerName'](_0x38660c['name']);if('suggestion'===_0x4ccc11){_0x5e2e44['announce'](this['_getMarkerAnnouncementText'](_0x40ffd1,'LEAVE'));break;}}for(const _0xb6db82 of _0x5267c2){const {group:_0x44ee54,type:_0x453365}=this['_splitMarkerName'](_0xb6db82['name']);if('suggestion'===_0x44ee54){_0x5e2e44['announce'](this['_getMarkerAnnouncementText'](_0x453365,'ENTER',_0x3ec30c(_0x5f1d9f)));break;}}});}['_processAttributeChanges'](_0x5908a3){if(this['_recordAttributeSuggestions'])return!0x1;const _0x5d44fd=this['editor'],_0x3f6df7=_0x5d44fd['model']['document']['differ']['getChanges']();if(0x0==_0x3f6df7['length'])return!0x1;const _0x148fc9=[],_0x4066a1=_0x3f6df7['filter'](_0x3d0d06=>'attribute'==_0x3d0d06['type']),_0x1c662c=_0x3f6df7['filter'](_0xeda7fc=>'insert'==_0xeda7fc['type']&&'$text'!=_0xeda7fc['name']),_0x19d7b2=_0x3f6df7['filter'](_0x4a0584=>'remove'==_0x4a0584['type']&&'$text'!=_0x4a0584['name']);for(const _0x233aa1 of _0x4066a1)_0x148fc9['push']({'key':_0x233aa1['attributeKey'],'newValue':_0x233aa1['attributeNewValue'],'oldValue':_0x233aa1['attributeOldValue'],'range':qt(_0x233aa1['range'],_0x5d44fd['model'])});for(const _0x515936 of _0x1c662c){const _0x2ef466=_0x19d7b2['find'](_0x50c5ce=>_0x50c5ce['position']['isEqual'](_0x515936['position']));_0x2ef466&&_0x148fc9['push']({'key':m,'newValue':_0x515936['name'],'oldValue':_0x2ef466['name'],'range':_0x5d44fd['model']['createRangeOn'](_0x515936['position']['nodeAfter'])});}return 0x0!=_0x148fc9['length']&&this['_reduceExistingSuggestions'](_0x5908a3,_0x148fc9);}['_processAttributeSuggestions'](_0x431547){let _0x4360c3=!0x1;const _0x3786c5=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2bafe1=>_0x2bafe1['data']['newRange']&&_0x2bafe1['name']['startsWith']('suggestion:attribute:'));for(const _0x20f7ad of _0x3786c5){const {subType:_0x5d034b,id:_0x17ce1b}=this['_splitMarkerName'](_0x20f7ad['name']),_0x17f3fc=_0x5d034b['split']('|')[0x0];for(const _0x396529 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x396529['id']!=_0x17ce1b&&'attribute'==_0x396529['type']&&_0x396529['data']&&_0x396529['data']['key']==_0x17f3fc&&_0x396529['getFirstRange']()['isIntersecting'](_0x20f7ad['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x396529,_0x20f7ad['data']['newRange'],_0x431547),_0x4360c3=!0x0);}return _0x4360c3;}['_recordAttributeChanges'](_0x48b390){this['_recordAttributeSuggestions']=!0x0,_0x48b390();}['_isRegisteredAttribute'](_0x1eb960){const _0x41fdbb=this['_isBlockAttribute'](_0x1eb960),_0x3acafb=this['_inlineAttributeKeys']['has'](_0x1eb960);return _0x41fdbb||_0x3acafb;}['_reduceExistingSuggestions'](_0x44fc0b,_0x2d9feb){if(0x0==_0x2d9feb['length'])return!0x1;let _0x44f5c4=!0x1;for(const _0x5c484a of _0x2d9feb){const _0x586841=this['_findSuggestions'](_0x5c484a['range'],'attribute')['filter'](_0x571267=>!_0x571267['meta']['isNextTo'])['map'](_0x1d9a28=>_0x1d9a28['suggestion']),_0x56cb35=_0x2dc0b9({'newValue':_0x5c484a['newValue']});_0x586841['filter'](_0x34e863=>{const [_0x513e86,_0x4952f5]=_0x34e863['subType']['split']('|');return _0x513e86==_0x5c484a['key']&&_0x4952f5!=_0x56cb35;})['forEach'](_0x496d57=>{this['_reduceSuggestionAttributeRange'](_0x496d57,_0x5c484a['range'],_0x44fc0b),_0x44f5c4=!0x0;});}return _0x44f5c4;}['_reduceSuggestionAttributeRange'](_0x3a8aed,_0x4881d7,_0x334e3a){const _0x338404=_0x3a8aed['getFirstRange']()['getDifference'](_0x4881d7);0x0!==_0x338404['length']?0x1!==_0x338404['length']?this['_breakSuggestionMarker'](_0x3a8aed,_0x4881d7['start'],_0x4881d7['end']):this['_setSuggestionRange'](_0x3a8aed,_0x338404[0x0]):_0x334e3a['removeMarker'](_0x3a8aed['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x2deb7c){this['_editor']=_0x2deb7c,this['_model']=_0x2deb7c['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x5b0077,_0x2b3c72,_0x14eff2,_0x27e300,_0x80e2e1,_0x63e0b8){return new u(this['_model'],{'type':_0x5b0077,'subType':_0x2b3c72,'id':_0x14eff2,'author':_0x27e300,'creator':_0x27e300,'attributes':_0x80e2e1,'onAttributesChange':_0x63e0b8,'onAccept':(..._0x53ad20)=>this['getSuggestionCallback'](_0x5b0077,_0x2b3c72,'accept')(..._0x53ad20),'onDiscard':(..._0x4bed23)=>this['getSuggestionCallback'](_0x5b0077,_0x2b3c72,'discard')(..._0x4bed23)});}['registerCustomCallback'](_0x15b97a,_0x12e8e1,_0xcfcacd,_0x268631){const _0x33cc75=_0x15b97a+':'+_0x12e8e1+':'+_0xcfcacd;this['_customCallbacks']['set'](_0x33cc75,_0x268631);}['getSuggestionCallback'](_0x5e9413,_0x203ffa,_0x3f9e1d){const _0x171e7f=_0x5e9413+':'+_0x203ffa+':'+_0x3f9e1d;return this['_customCallbacks']['get'](_0x171e7f)||this['_defaultCallbacks']['get'](_0x5e9413+':'+_0x3f9e1d);}['_registerDefaultCallbacks'](){const _0x2d0939=()=>!0x1,_0x5750a8=_0x3f7fc3=>{_0x3f7fc3['sort']((_0x1d46c3,_0x1e2f35)=>_0x1d46c3['start']['isBefore'](_0x1e2f35['start'])?0x1:-0x1),this['_model']['change'](_0x19241f=>{for(const _0x38b1e9 of _0x3f7fc3){let _0x5bd321;_0x5bd321=_0x38b1e9['end']['isAtEnd']&&_0x38b1e9['end']['parent']==_0x38b1e9['start']['nodeAfter']?_0x19241f['createSelection'](_0x38b1e9['start']['nodeAfter'],'on'):_0x19241f['createSelection'](_0x38b1e9),this['_model']['deleteContent'](_0x5bd321,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x41f546=(_0xe0b5f8,_0x4fbccb)=>{_0x4fbccb&&this['_model']['change'](_0x35fc61=>{const {commandName:_0x1dccd1,commandParams:_0x49590b=[]}=_0x4fbccb,_0x4ec14e=_0xe0b5f8['map'](_0x39c5ad=>(Ft(_0x39c5ad)&&(_0x39c5ad=this['_model']['createRange'](_0x39c5ad['end'])),_0x39c5ad))['filter'](_0x3f9ea8=>'$graveyard'!==_0x3f9ea8['root']['rootName']);if(_0x4ec14e['length']<0x1)return;const _0xc8c941=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x4cd511=>_0x1200ae['fromRange'](_0x4cd511));_0x35fc61['setSelection'](_0x4ec14e);for(const _0x8559ee of this['_editor']['commands']['commands']())_0x8559ee['refresh']();_0x49590b['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x1dccd1,..._0x49590b);const _0x35dfe5=_0xc8c941['filter'](_0x1b91a5=>'$graveyard'!=_0x1b91a5['root']['rootName']);_0x35dfe5['length']>0x0&&_0x35fc61['setSelection'](_0x35dfe5);for(const _0x426765 of _0xc8c941)_0x426765['detach']();});},_0x20ee66=(_0x4371c4,_0x54ee4e)=>0x1==_0x4371c4['length']&&0x1==_0x54ee4e['length']&&_0x4371c4[0x0]['end']['isEqual'](_0x54ee4e[0x0]['start']),_0x1c383d=(_0x580409,_0x43ff7a,_0x3ef19a,_0x212fb9)=>Kt(_0x580409,_0x43ff7a,_0x3ef19a,_0x212fb9)?[_0x580409,_0x43ff7a]:Kt(_0x43ff7a,_0x580409,_0x212fb9,_0x3ef19a)?[_0x43ff7a,_0x580409]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x2d0939),this['_defaultCallbacks']['set']('insertion:discard',_0x5750a8),this['_defaultCallbacks']['set']('insertion:join',_0x20ee66),this['_defaultCallbacks']['set']('insertion:chain',_0x1c383d),this['_defaultCallbacks']['set']('deletion:accept',_0x5750a8),this['_defaultCallbacks']['set']('deletion:discard',_0x2d0939),this['_defaultCallbacks']['set']('deletion:join',_0x20ee66),this['_defaultCallbacks']['set']('deletion:chain',_0x1c383d),this['_defaultCallbacks']['set']('formatInline:accept',_0x41f546),this['_defaultCallbacks']['set']('formatInline:discard',_0x2d0939),this['_defaultCallbacks']['set']('formatInline:join',_0x20ee66),this['_defaultCallbacks']['set']('formatInline:chain',_0x2d0939),this['_defaultCallbacks']['set']('formatBlock:accept',_0x41f546),this['_defaultCallbacks']['set']('formatBlock:discard',_0x2d0939),this['_defaultCallbacks']['set']('formatBlock:join',_0x20ee66),this['_defaultCallbacks']['set']('formatBlock:chain',_0x2d0939),this['_defaultCallbacks']['set']('attribute:accept',_0x2d0939),this['_defaultCallbacks']['set']('attribute:discard',(_0x347e2d,_0x5ec873)=>{if(!_0x5ec873)return;const _0x110c92=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x5b5c80=>{if(_0x5ec873['key']==m)for(const _0x39704c of _0x347e2d){const _0x317c7b=_0x39704c['start']['nodeAfter'],_0x37e762=_0x5ec873['oldValue'];_0x5b5c80['rename'](_0x317c7b,_0x37e762);}else{if(_0x110c92['_isBlockAttribute'](_0x5ec873['key'])){for(const _0x27b710 of _0x347e2d)void 0x0!==_0x5ec873['oldValue']?_0x5b5c80['setAttribute'](_0x5ec873['key'],_0x5ec873['oldValue'],_0x27b710['start']['nodeAfter']):_0x5b5c80['removeAttribute'](_0x5ec873['key'],_0x27b710['start']['nodeAfter']);}else{for(const _0x20f6a9 of _0x347e2d)_0x5ec873['oldValue']?_0x5b5c80['setAttribute'](_0x5ec873['key'],_0x5ec873['oldValue'],_0x20f6a9):_0x5b5c80['removeAttribute'](_0x5ec873['key'],_0x20f6a9);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x20ee66);}}function Gt(_0x14a70d,_0x3db303,_0x4e0b11){for(const _0x26997f of _0x3db303['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x26997f['root']==_0x26997f)return!0x1;if(!_0x4e0b11['containsItem'](_0x26997f))return!0x1;if(_0x14a70d['isObject'](_0x26997f)||_0x14a70d['isLimit'](_0x26997f))return!0x0;}return!0x1;}function Ft(_0x1a409f){return _0x1a409f['end']['parent']==_0x1a409f['start']['nodeAfter']&&_0x1a409f['end']['isAtStart'];}function Lt(_0x2d91f1,_0x567311,_0x8e35c6,_0x911158){const _0x14aab4=_0x81cf0d=>!_0x81cf0d['item']['is']('$textProxy')&&!_0x911158['isObject'](_0x81cf0d['item']),_0x138234=_0x2d91f1['start']['getLastMatchingPosition'](_0x14aab4),_0x406904=_0x2d91f1['end']['getLastMatchingPosition'](_0x14aab4,{'direction':'backward'});return(!_0x2d91f1['start']['isEqual'](_0x138234)||!_0x2d91f1['end']['isEqual'](_0x406904))&&(_0x138234['isBefore'](_0x406904)?_0x8e35c6['updateMarker'](_0x567311,{'range':_0x8e35c6['createRange'](_0x138234,_0x406904)}):_0x8e35c6['removeMarker'](_0x567311),!0x0);}function Jt(_0x5befdd){return _0x2dc0b9(_0x5befdd);}function Ht(_0xb3a147){const _0xd39078=_0xb3a147['start']['nodeAfter'];return _0xd39078&&_0xd39078['is']('element');}function qt(_0x2bbe5c,_0x360c6e){return null==_0x2bbe5c['end']['nodeBefore']&&_0x2bbe5c['end']['parent']==_0x2bbe5c['start']['nodeAfter']?zt(_0x2bbe5c['start']['nodeAfter'],_0x360c6e):_0x2bbe5c;}function zt(_0x33e07d,_0x1aeefd){const _0x4df8e9=_0x1aeefd['schema']['isObject'](_0x33e07d)||_0x1aeefd['schema']['isSelectable'](_0x33e07d);return _0x1aeefd['createRange'](_0x1aeefd['createPositionAt'](_0x33e07d,'before'),_0x4df8e9?_0x1aeefd['createPositionAfter'](_0x33e07d):_0x1aeefd['createPositionAt'](_0x33e07d,'end'));}function Kt(_0x15b65a,_0x52f459,_0x61879,_0x525252){return!!Wt(_0x15b65a,_0x52f459)&&_0x61879['end']['isEqual'](_0x525252['start']);}function Wt(_0x18dac4,_0x3563dc){if(!_0x18dac4['_isDataLoaded']||!_0x3563dc['_isDataLoaded'])return!0x1;const _0x179caf=new Set(Object['keys'](_0x18dac4['attributes'])),_0x2aeecd=new Set(Object['keys'](_0x3563dc['attributes']));if(_0x179caf['delete']('groupId'),_0x2aeecd['delete']('groupId'),0x0==_0x179caf['size']&&0x0==_0x2aeecd['size'])return!0x0;if(_0x179caf['size']!=_0x2aeecd['size'])return!0x1;const _0xd2b2c8={..._0x18dac4['attributes']},_0x51ab74={..._0x3563dc['attributes']};return delete _0xd2b2c8['groupId'],delete _0x51ab74['groupId'],JSON['stringify'](_0xd2b2c8)==JSON['stringify'](_0x51ab74);}function Qt(_0x18f64f,_0x18b542){const _0x19a01c=Xt(_0x18f64f['attributes']),_0x27ef9c=Xt(_0x18b542);if(!_0x18f64f['_isDataLoaded'])return!0x1;for(const _0xba2855 of Object['keys'](_0x27ef9c))if(!_0x344f35(_0x19a01c[_0xba2855],_0x27ef9c[_0xba2855]))return!0x1;return!0x0;}function Xt(_0x43fb63){const _0x1e017d=Object['assign']({},_0x43fb63);return delete _0x1e017d['skipNestingCheck'],delete _0x1e017d['tablePasteChainId'],_0x1e017d;}class Ce extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x357011(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x2254b6,_0x5949f4,_0x2a90b8,_0x466d0b){super(),this['model']=_0x5949f4,this['view']=_0x2a90b8,this['commentThreadController']=_0x466d0b,this['_editor']=_0x2254b6,this['_acceptCommand']=_0x2254b6['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x2254b6['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x49d055,_0x3ff0d6)=>_0x49d055||_0x3ff0d6),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x213ea9=>_0x213ea9&&this['_editor']['model']['canEditAt'](_0x5949f4['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0xb3cdb6=>_0xb3cdb6&&this['_editor']['model']['canEditAt'](_0x5949f4['getRanges']())),this['_pendingAction']=null,_0x2a90b8['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x2a90b8,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x2a90b8,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x2a90b8,'change:isDirty',()=>{_0x2a90b8['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 _0x520c09=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x520c09);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ms extends _0x18ecc2{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x2df0f8,_0x785e6f,_0x439521,_0x4ca53b){super(_0x2df0f8),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x15cfc2(_0x2df0f8,o(_0x2df0f8,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x785e6f['authoredAt']),this['bind']('authoredAt')['to'](_0x785e6f),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',_0x785e6f,'authoredAt',this,'descriptionParts',(_0x392f7c,_0x475a34,_0x4a889f)=>{const _0x1353f5=_0x4a889f['map'](_0x488bb6=>cs(_0x488bb6['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x392f7c-0x1,_0x785e6f['author']['name'],_0x475a34?_0x4ca53b['formatDateTime'](_0x475a34):'',new DOMParser()['parseFromString'](_0x1353f5,'text/html')['body']['textContent']]);}),this['focusables']=new _0x41a95c(),this['focusTracker']=new _0x5b40b3(),this['keystrokes']=new _0x1f3671(),this['focusCycler']=new _0x2c0406({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x378e17=>_0x378e17['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x785e6f,this['_localUser']=_0x439521,this['_config']=_0x4ca53b,_0x4ca53b['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x24f4c2(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0xb3d18d}=this['_config'];this['commentsListView']=new _0xb3d18d(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',_0x281620=>_0x281620+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x3d65a3,_0x4b7732)=>_0x3d65a3||!!_0x4b7732);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x32a747}=this['_config'],_0x28d798=new _0x32a747(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x3f33bc=_0x28d798['commentInputView'];return _0x28d798['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x3f33bc,'value',(_0x1a4561,_0x43a48a,_0x5f1d5d)=>!!_0x5f1d5d||_0x1a4561&&!_0x43a48a),_0x3f33bc['on']('submit',(_0x3d4319,_0x267d8b)=>{this['fire']('addComment',_0x267d8b),_0x3f33bc['editor']['setData']('');}),_0x3f33bc['on']('cancel',()=>this['focus']()),_0x3f33bc['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x28d798;}}class pe extends ms{['suggestionView'];['_descriptionElement'];constructor(_0x2ddd18,_0x4486f1,_0x2915dd,_0x2d44b3){super(_0x2ddd18,_0x4486f1,_0x2915dd,_0x2d44b3),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x5c771d=>_0x5c771d&&_0x5c771d[0x0]?_0x5c771d[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x257ce9,_0x39d2e8)=>{let _0x44e33e='';for(const _0x179fb5 of _0x257ce9)_0x44e33e+='<p>'+cs(_0x179fb5['content'],_0x179fb5['color'])+'</p>';return _0x39d2e8?_0x44e33e:_0x586920(_0x44e33e,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x2d44b3['SuggestionView'](_0x2ddd18,_0x4486f1,{'formatDateTime':_0x2d44b3['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 _0xfb5097=this['bindTemplate'],_0x2f28c7=[this['suggestionView']];return this['commentsListView']&&_0x2f28c7['push'](this['commentsListView']),this['commentThreadInputView']&&_0x2f28c7['push'](this['commentThreadInputView']),_0x2f28c7['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0xfb5097['if']('isActive','ck-suggestion-wrapper--active'),_0xfb5097['to']('type',_0x50956b=>'ck-suggestion-'+_0x50956b),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':_0xfb5097['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x2f28c7};}['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 _0x18ecc2{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x152da1,_0x5167fe,_0x3f9e2e){super(_0x152da1),this['_model']=_0x5167fe,this['_config']=_0x3f9e2e,this['set']('description',''),this['bind']('authoredAt')['to'](_0x5167fe),this['acceptButton']=this['_createButton'](o(_0x152da1,'Accept\x20suggestion'),_0x4ff397['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x152da1,'Discard\x20suggestion'),_0x4ff397['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x219a7c(_0x152da1,_0x5167fe['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x41a95c([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x5b40b3(),this['keystrokes']=new _0x1f3671(),this['focusCycler']=new _0x2c0406({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x1af188=>_0x1af188['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x38d307=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x38d307['innerHTML']=this['description'],this['on']('change:description',(_0x4bd2cf,_0x889aee,_0x6230cb)=>{_0x38d307['innerHTML']=_0x6230cb;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x1442e7=this['bindTemplate'],_0x37cfd5=[{'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':_0x1442e7['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x1442e7['to']('authoredAt',_0x285887=>this['_config']['formatDateTime'](_0x285887))}]}]},{'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']&&_0x37cfd5['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':_0x37cfd5}]};}['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'](_0xc00b10,_0x209b4f,_0x6ca547,_0x2f1a1a,_0x3cd3b7){const _0x18aa13=new _0x254f07(this['locale']);return _0x18aa13['set']({'label':_0xc00b10,'icon':_0x209b4f,'tooltip':!0x0,'tooltipPosition':_0x3cd3b7}),_0x18aa13['extendTemplate']({'attributes':{'class':_0x6ca547}}),_0x18aa13['on']('execute',()=>{this['fire'](_0x2f1a1a,this['_model']['id']);}),_0x18aa13;}['_setupKeyboardNavigation'](){const _0x5e0b62=this['element'];this['keystrokes']['listenTo'](_0x5e0b62);for(const _0x1a44fd of this['focusables'])this['focusTracker']['add'](_0x1a44fd['element']),this['keystrokes']['listenTo'](_0x1a44fd['element']);this['keystrokes']['set']('enter',(_0xba2a13,_0x2727a3)=>{_0x5e0b62===_0xba2a13['target']&&(this['focusCycler']['focusFirst'](),_0x2727a3());}),this['keystrokes']['set']('esc',(_0x242d3e,_0x1a57db)=>{_0x5e0b62!==_0x242d3e['target']&&(this['focus'](),_0x1a57db());});}}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 _0x2e0600{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x483d85,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x457d08){super(_0x457d08),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x33a434=this['editor']['config'];_0x33a434['define']('trackChanges.SuggestionThreadView',pe),_0x33a434['define']('trackChanges.SuggestionView',fe),_0x33a434['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x33a434['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x200eff,_0x2ce034){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x24bc24,_0x2e0550]of this['_handleControllerBuffer']){const _0x313e88=this['_suggestionToController']['has'](_0x24bc24);_0x313e88||_0x2e0550?_0x313e88&&_0x2e0550&&this['_destroyController'](_0x24bc24):this['_initializeController'](_0x24bc24);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x200eff,_0x2ce034);}['init'](){const _0x173b64=this['editor'],_0x7cf4d8=_0x173b64['plugins']['get']('TrackChangesEditing'),_0x4ca4ea=_0x173b64['plugins']['get']('Annotations'),_0x5867c0=_0x173b64['plugins']['get']('EditorAnnotations'),_0x4b68ac=_0x173b64['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x5867c0['addSourceCollector'](()=>{const _0x68e6e4=[];for(const [_0x18a724,_0x209199]of Array['from'](this['_suggestionToController'])){const _0x2e3531=_0x18a724['getAllAdjacentSuggestions'](),_0x1f5e5c=[];for(const _0x278f4b of _0x2e3531){if(!_0x278f4b['isInContent'])continue;if(_0x278f4b['isMultiRange']){_0x1f5e5c['push'](..._0x278f4b['getRanges']());continue;}const _0x780c2d=_0x278f4b['getFirstRange']();if(_0x1f5e5c['length']>0x0){const _0x2877d8=_0x1f5e5c[0x0]['getJoined'](_0x780c2d);if(_0x2877d8){_0x1f5e5c[0x0]=_0x2877d8;continue;}}_0x1f5e5c['push'](_0x780c2d);}_0x68e6e4['push']([_0x209199['view'],_0x1f5e5c]);}return _0x68e6e4;}),this['listenTo'](_0x7cf4d8,'suggestionLoaded',(_0x1b8709,_0x5b8cea)=>{this['listenTo'](_0x5b8cea,'change:previous',(_0x4eb8a5,_0x5df060,_0x20012f,_0x4af603)=>{_0x5b8cea['isInContent']&&(null==_0x20012f?(this['_updateController'](_0x4af603['head']),this['_handleSuggestionControllerDelayed'](_0x5b8cea,!0x1)):(this['_updateController'](_0x20012f['head']),null==_0x4af603&&this['_handleSuggestionControllerDelayed'](_0x5b8cea,!0x0)));}),null!==_0x5b8cea['previous']?this['_updateController'](_0x5b8cea['head']):this['_handleSuggestionControllerDelayed'](_0x5b8cea,!0x1);}),this['listenTo'](_0x7cf4d8,'suggestionUnloaded',(_0x387e6d,_0xad32d2,_0x5452ae)=>{this['stopListening'](_0xad32d2,'change:previous'),this['_handleControllerBuffer']['delete'](_0xad32d2),this['_suggestionToController']['has'](_0xad32d2)&&this['_destroyController'](_0xad32d2),_0x5452ae&&this['_updateController'](_0x5452ae['head']);}),this['listenTo'](_0x7cf4d8,'suggestionChanged',(_0x592333,_0x43680e)=>{this['_updateController'](_0x43680e);}),this['listenTo'](_0x4ca4ea,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x4b68ac,'addComment',(_0x2c7971,{threadId:_0x2b35ad,isFromAdapter:_0x5c3cbc})=>{if(_0x5c3cbc||!_0x7cf4d8['hasSuggestion'](_0x2b35ad))return;const _0x4a4306=_0x7cf4d8['getSuggestion'](_0x2b35ad);this['_suggestionToController']['get'](_0x4a4306)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xdd1150=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2b0186;for(const _0x3603b7 in _0xdd1150){const _0x2671ae=_0x3603b7,_0x1d7c51=_0xdd1150[_0x2671ae];if('trackChangesLicenseKeyValid'==_0x1d7c51||'trackChangesLicenseKeyInvalid'==_0x1d7c51||'trackChangesLicenseKeyExpired'==_0x1d7c51||'trackChangesLicenseKeyDomainLimit'==_0x1d7c51||'trackChangesLicenseKeyNotAllowed'==_0x1d7c51||'trackChangesLicenseKeyEvaluationLimit'==_0x1d7c51||'trackChangesLicenseKeyTrialLimit'==_0x1d7c51||'trackChangesLicenseKeyUsageLimit'==_0x1d7c51){delete _0xdd1150[_0x2671ae],_0x2b0186=_0x1d7c51,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x2b0186&&_0xdd1150['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x2b0186&&_0xdd1150['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x2b0186&&_0xdd1150['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x2b0186&&_0xdd1150['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x2b0186&&_0xdd1150['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x2b0186&&_0xdd1150['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x2b0186&&_0xdd1150['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x22aac5=this['editor']['plugins']['get']('Annotations'),_0x4554bc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3c3cc2=Array['from'](_0x22aac5['activeAnnotations'],_0x59d656=>_0x59d656['innerView'])['filter'](_0x3d39b4=>this['_viewToController']['has'](_0x3d39b4)),_0x5bd92f=[];for(const _0x4bd9da of _0x3c3cc2){const _0x3a0b7c=this['_viewToController']['get'](_0x4bd9da)['model']['getAllAdjacentSuggestions']();_0x5bd92f['push'](..._0x3a0b7c['reduce']((_0x5c73ab,_0x116953)=>[..._0x5c73ab,..._0x116953['getMarkerNames']()],[]));}_0x4554bc['activeMarkers']=_0x5bd92f;}['_addUIComponentsToFactory'](){const _0x860f3d=this['editor'],_0xbaeca8=_0x860f3d['locale'],_0x4503a6=o(_0xbaeca8,'Track\x20changes'),_0x292907=new _0x424f10([{'type':'switchbutton','model':new _0x3570d2({'withText':!0x0,'isToggleable':!0x0,'label':_0x4503a6,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x3570d2({'withText':!0x0,'label':o(_0xbaeca8,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3570d2({'withText':!0x0,'label':o(_0xbaeca8,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3570d2({'withText':!0x0,'label':o(_0xbaeca8,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3570d2({'withText':!0x0,'label':o(_0xbaeca8,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x860f3d['plugins']['has']('TrackChangesPreview')&&_0x292907['addMany']([{'type':'separator'},{'type':'button','model':new _0x3570d2({'withText':!0x0,'label':o(_0xbaeca8,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x8756ac of _0x292907)if(ke(_0x8756ac)){const _0x5848ed=_0x860f3d['commands']['get'](_0x8756ac['model']['commandName']);_0x8756ac['model']['bind']('isOn','isEnabled')['to'](_0x5848ed,'value','isEnabled');}_0x860f3d['ui']['componentFactory']['add']('trackChanges',_0x287f14=>this['_createToolbarButton'](_0x287f14,_0x292907,_0x4503a6)),_0x860f3d['ui']['componentFactory']['add']('menuBar:trackChanges',_0x3680e1=>this['_createMenuBarMenu'](_0x3680e1,_0x292907,_0x4503a6));}['_createToolbarButton'](_0x58371d,_0x3f5afa,_0x3c3eb6){const _0x5f0315=_0x5bae48(_0x58371d,_0x15d7f7),_0x47d7fc=this['editor']['commands']['get']('trackChanges');_0x5f0315['buttonView']['set']({'tooltip':_0x3c3eb6,'label':_0x3c3eb6,'icon':we}),_0x5f0315['buttonView']['bind']('isOn')['to'](_0x47d7fc,'value'),_0x5f0315['buttonView']['on']('execute',()=>{_0x47d7fc['execute'](),this['editor']['editing']['view']['focus']();}),_0x5172de(_0x5f0315,_0x3f5afa,{'role':'menu'});const _0x2ce076=[];for(const _0x587acc of _0x3f5afa)ke(_0x587acc)&&_0x2ce076['push'](this['editor']['commands']['get'](_0x587acc['model']['commandName']));const _0x2e5a74=_0x5f0315['buttonView'];return _0x2e5a74['actionView']['unbind']('isEnabled'),_0x2e5a74['arrowView']['unbind']('isEnabled'),_0x2e5a74['actionView']['bind']('isEnabled')['to'](_0x47d7fc,'isEnabled'),_0x2e5a74['arrowView']['bind']('isEnabled')['toMany'](_0x2ce076,'isEnabled',(..._0x39586a)=>_0x39586a['some'](_0x6ffd73=>_0x6ffd73)),_0x5f0315['on']('execute',_0x7cf5d3=>{this['editor']['execute'](_0x7cf5d3['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x5f0315;}['_createMenuBarMenu'](_0x43d01d,_0x5793a8,_0x4b93bd){const _0x420519=new _0x346073(_0x43d01d),_0x3ddd42=this['editor']['commands']['get']('trackChanges');_0x420519['buttonView']['set']({'label':_0x4b93bd,'icon':we});const _0xaddb52=new _0x1d7800(_0x43d01d);for(const _0x500f1a of _0x5793a8){if('separator'==_0x500f1a['type']){_0xaddb52['items']['add'](new _0x1e1643(_0x43d01d));continue;}const _0x379c36=new _0x9caca5(_0x43d01d,_0x420519),_0x213583=new _0x32b585(_0x43d01d),_0x3234dd=_0x500f1a['model'];_0x213583['bind'](...Object['keys'](_0x3234dd))['to'](_0x3234dd),_0x213583['delegate']('execute')['to'](_0x420519),_0x213583['on']('execute',()=>{this['editor']['execute'](_0x3234dd['commandName']),this['editor']['editing']['view']['focus']();}),_0x379c36['children']['add'](_0x213583),_0xaddb52['items']['add'](_0x379c36);}return _0x420519['bind']('isEnabled')['to'](_0x3ddd42,'isEnabled'),_0x420519['panelView']['children']['add'](_0xaddb52),_0x420519;}['_initializeController'](_0x2dc65f){const _0x397f0f=this['editor'],_0x1cd26b=_0x397f0f['config'],_0x393dc4=_0x397f0f['plugins']['get']('Annotations'),_0xf221b2=_0x397f0f['plugins']['get']('CommentsRepository'),_0x1f59e7=_0x397f0f['plugins']['get']('EditorAnnotations'),_0xfa6bf5=_0x397f0f['plugins']['get'](_0x483d85)['me'],_0x343efd=_0x1cd26b['get']('trackChanges')['SuggestionThreadView'],_0x484494=_0x1cd26b['get']('trackChanges')['SuggestionView'],{CommentsListView:_0xb9e928,CommentThreadInputView:_0x46f464}=_0x397f0f['plugins']['get']('CommentsUI');let _0x140264,_0x53779f,_0x2d07b3;this['_annotationViews']['has'](_0x2dc65f['id'])?(_0x53779f=this['_annotationViews']['get'](_0x2dc65f['id']),_0x140264=_0x53779f['mainView']):(_0x140264=new _0x343efd(_0x397f0f['locale'],_0x2dc65f,_0xfa6bf5,{'disableComments':this['_disableComments'],'editorConfig':{..._0x1cd26b['get']('comments.editorConfig'),'licenseKey':_0x1cd26b['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x1cd26b['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x1cd26b['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x1cd26b['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x2167ca(_0x1cd26b['get']('locale')),'CommentView':_0x1cd26b['get']('comments')['CommentView'],'CommentsListView':_0xb9e928,'CommentThreadInputView':_0x46f464,'SuggestionView':_0x484494}),_0x140264['suggestionView']['acceptButton']['on']('execute',()=>{_0x397f0f['editing']['view']['focus']();}),_0x140264['suggestionView']['discardButton']['on']('execute',()=>{_0x397f0f['editing']['view']['focus']();}),_0x53779f=_0x393dc4['createAnnotationView'](this['editor']['locale'],_0x140264),_0x53779f['bind']('isDirty')['to'](_0x140264,'isDirty'),_0x53779f['bind']('length')['to'](_0x140264),_0x53779f['bind']('type')['to'](_0x140264,'type',_0x193464=>'suggestion-'+_0x193464),_0x140264['on']('escape',()=>{_0x2d07b3['fire']('escape');}),this['_annotationViews']['set'](_0x2dc65f['id'],_0x53779f));const _0x5e4e04=_0xf221b2['createCommentThreadController'](_0x2dc65f['commentThread'],_0x140264),_0x16f674=new Ce(_0x397f0f,_0x2dc65f,_0x140264,_0x5e4e04),_0x1e0ded=_0x2dc65f['getAllAdjacentSuggestions']()['filter'](_0x13d408=>_0x13d408['isInContent']);_0x140264['descriptionParts']=_0x397f0f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x1e0ded),this['_suggestionToController']['set'](_0x2dc65f,_0x16f674),this['_viewToController']['set'](_0x140264,_0x16f674),_0x2d07b3=_0x393dc4['createAnnotation']({'view':_0x53779f,'target':()=>{const _0x2a8664=[],_0x33ae01=_0x2dc65f['getAllAdjacentSuggestions']()['filter'](_0x2d9ead=>_0x2d9ead['isInContent']);for(const _0x30ed79 of _0x33ae01)_0x2a8664['push'](..._0x30ed79['getMarkers']());return _0x16b1a5(_0x397f0f['editing'],_0x2a8664);},'type':()=>'suggestion-'+_0x16f674['view']['type']}),_0xf221b2['_bindAnnotationToEditors'](_0x140264,_0x2d07b3),_0x393dc4['add'](_0x2d07b3),_0x1f59e7['registerAnnotation'](_0x2d07b3);}['_destroyController'](_0x2b856b){const _0x3bb5b9=this['editor']['plugins']['get']('CommentsRepository'),_0x50acbd=this['editor']['plugins']['get']('Annotations'),_0x545ff3=this['_suggestionToController']['get'](_0x2b856b),_0x4631e2=_0x545ff3['view'],_0x2719be=_0x50acbd['getByInnerView'](_0x4631e2);_0x3bb5b9['_unbindEditors'](_0x4631e2),_0x2719be&&_0x50acbd['remove'](_0x2719be),this['_suggestionToController']['delete'](_0x2b856b),this['_viewToController']['delete'](_0x4631e2),_0x545ff3['destroy']();}['_updateController'](_0x396641){if(!_0x396641['isInContent']||!this['_suggestionToController']['has'](_0x396641))return;const _0x5b8bd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x147cc1=this['_suggestionToController']['get'](_0x396641),_0x43dbc7=_0x396641['getAllAdjacentSuggestions']();_0x147cc1['view']['descriptionParts']=_0x5b8bd['descriptionFactory']['getDescriptions'](_0x43dbc7);}['destroy'](){for(const _0x5c5e98 of this['_suggestionToController']['keys']())this['_destroyController'](_0x5c5e98);for(const _0x4ac3e5 of this['_annotationViews']['values']())_0x4ac3e5['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x1b5540){return'model'in _0x1b5540;}class k extends _0x2e0600{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x57764f){this['editor']['plugins']['get'](p)['adapter']=_0x57764f;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0xfa9588){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0xfa9588);}['getSuggestions']({skipNotAttached:_0x20bc6d=!0x1,toJSON:_0x473c52=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x20bc6d,'toJSON':_0x473c52});}['getSuggestion'](_0xc0dd51){return this['editor']['plugins']['get'](p)['getSuggestion'](_0xc0dd51);}}const w=['Pagination'];class T extends _0x2e0600{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x341b56=this['editor'];if(_0x341b56['config']['define']('trackChangesData.editorCreator',_0x3768c3=>{const _0x35e8c9=_0x341b56['model']['document']['getRootNames']()['reduce']((_0x257b68,_0x5f2d00)=>(_0x257b68[_0x5f2d00]='',_0x257b68),{});return _0x341b56['constructor']['create'](_0x35e8c9,_0x3768c3);}),'function'!=typeof _0x341b56['config']['get']('trackChangesData')['editorCreator'])throw new _0x1c235c('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x2e3ea0){return N(this['editor'],!0x0,_0x2e3ea0);}['getDataWithDiscardedSuggestions'](_0x4ac80e){return N(this['editor'],!0x1,_0x4ac80e);}}class D extends _0x2e0600{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x201415){function _0x357b64(_0x304be6){return _0x304be6['map'](_0x155595=>String['fromCharCode'](_0x155595))['join']('');}super(_0x201415),this['result']='end',_0x201415[_0x357b64([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x357b64([0x76,0x69,0x65,0x77])][_0x357b64([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x357b64([0x61,0x75,0x74,0x6f]),_0x201415[_0x357b64([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x357b64([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x357b64([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x357b64([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x357b64([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(_0x3353fc){return void 0x0!==_0x3353fc['getRootsAttributes'];}async function N(_0x1f7ddd,_0x37ea78,_0x3c1f35){const _0x21c5c4=_0x3e1684(_0x1f7ddd,w);_0x21c5c4['plugins']['push'](p,D),_0x21c5c4['rootsAttributes']=Fe(_0x1f7ddd)?_0x1f7ddd['getRootsAttributes']():void 0x0;const _0x2a2187=document['createDocumentFragment'](),_0x454a5f=_0x1f7ddd['config']['get']('trackChangesData')['editorCreator'],_0x43df52=await _0x454a5f(_0x21c5c4,()=>function(_0xe244d5){const _0x23140c=document['createElement']('div');return _0xe244d5['appendChild'](_0x23140c),_0x23140c;}(_0x2a2187));!function(_0x4412ba,_0x40217b){const _0x2b48ab=_0x4412ba['model']['document']['getRootNames']()['reduce']((_0x3ac794,_0xb379b7)=>(_0x3ac794[_0xb379b7]=_0x4412ba['data']['get']({'rootName':_0xb379b7}),_0x3ac794),{}),_0x1c1616=_0x4412ba['plugins']['get']('Users')['users']['map'](_0x5e342d=>({'id':_0x5e342d['id'],'name':_0x5e342d['name']})),_0x452328=_0x4412ba['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x283ab7=_0x4412ba['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x327c65=_0x40217b['plugins']['get']('Users'),_0x46facb=_0x40217b['plugins']['get']('TrackChangesEditing'),_0x4cc32e=_0x40217b['plugins']['get']('CommentsRepository');for(const _0xac6a27 of _0x4cc32e['getCommentThreads']())_0xac6a27['remove']();for(const _0x56d0dc of _0x1c1616)_0x327c65['getUser'](_0x56d0dc['id'])||_0x327c65['addUser'](_0x56d0dc);_0x327c65['me']||_0x327c65['useAnonymousUser']();for(const _0x2ea585 of _0x283ab7)_0x4cc32e['addCommentThread'](_0x2ea585);for(const _0x5252b9 of _0x452328)_0x46facb['addSuggestionData'](_0x5252b9);_0x40217b['data']['set'](_0x2b48ab);}(_0x1f7ddd,_0x43df52),_0x43df52['execute'](_0x37ea78?'acceptAllSuggestions':'discardAllSuggestions');const _0x24a87d=Fe(_0x43df52)?_0x43df52['getFullData'](_0x3c1f35):_0x43df52['data']['get'](_0x3c1f35);return await _0x43df52['destroy'](),_0x24a87d;}class Me extends _0x18ecc2{['options'];constructor(_0x1516ac,_0x35d0cf){super(_0x1516ac),this['options']=_0x35d0cf,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'](_0x5cc238,_0x5332f5){if(!this['element'])return;const _0x48f612=[];for(const [_0x327288,_0x4ac171]of _0x5cc238){const _0x54b7e1=document['createElement']('div');_0x54b7e1['setAttribute']('data-ck-root-name',_0x327288),_0x54b7e1['className']=_0x4ac171['classes']+'\x20ck-track-changes-preview__root-container',_0x54b7e1['innerHTML']=_0x4ac171['content'],_0x48f612['push'](_0x54b7e1);}_0x5332f5(this['element'],_0x48f612),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends Yt{constructor(_0x5d152b){super(_0x5d152b),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x292db0=this['editor'],_0x58c42a=_0x292db0['locale'],_0xabca27=_0x292db0['plugins']['get']('Dialog');let _0x5ed42c;const _0x3fa83f=function(_0x36473d){const _0x5da63c={};if('editables'in _0x36473d['ui']['view']){for(const [_0x4b6e22,_0x190d94]of Object['entries'](_0x36473d['ui']['view']['editables']))_0x5da63c[_0x4b6e22]=_0x190d94['element'];}else _0x5da63c[_0x36473d['model']['document']['getRootNames']()[0x0]]=_0x36473d['ui']['view']['editable']['element'];return _0x5da63c;}(_0x292db0),_0xc701d4=function(_0xed28a5){let _0x2b0c8c=0x0;for(const _0x94a42a of Object['values'](_0xed28a5))_0x2b0c8c=Math['max'](_0x2b0c8c,_0x94a42a['getBoundingClientRect']()['width']);let _0x53e711=0x0;for(const _0x54dc0f of Object['values'](_0xed28a5))_0x53e711+=_0x54dc0f['getBoundingClientRect']()['height'];const _0x55b788=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x19a040=Math['min'](_0x53e711,_0x55b788);return{'width':_0x2b0c8c,'height':_0x19a040};}(_0x3fa83f);_0xabca27['show']({'id':'finalContentPreview','title':o(_0x58c42a,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x58c42a,{'dialogRects':_0xc701d4}),'onHide':()=>{_0x5ed42c['detachFromDom']();},'onShow':()=>{_0x292db0['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x20e693=>{const _0x293dab=this['_standarizeRootsData'](_0x20e693,_0x292db0,_0x3fa83f);_0xabca27['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x293dab,_0x292db0['config']['get']('trackChanges.preview.renderFunction'));}),_0x5ed42c=new _0x240a52(_0x58c42a,[_0xabca27['view']]),_0x5ed42c['attachToDom'](),_0x5ed42c['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x292db0['once']('destroy',()=>{_0x5ed42c['detachFromDom']();});const _0x2ee9a6=_0xabca27['view']['headerView']['class'];_0xabca27['view']['headerView']['class']=_0x2ee9a6?_0x2ee9a6+'\x20ck-reset_all':'ck-reset_all',_0xabca27['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0xabca27['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x50f814=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x7ef7ac=_0x50f814['previewMode'],_0x15b575={};if('$labels'===_0x7ef7ac){for(const _0x1eae5b of _0x50f814['getMergeFieldsIds']())_0x15b575[_0x1eae5b]=_0x50f814['getLabel'](_0x1eae5b)||_0x1eae5b;}else{const _0x3f2bdd='$defaultValues'===_0x7ef7ac?_0x50f814['getDefaultValues']():_0x50f814['getDataSetValues'](_0x7ef7ac,!0x0);for(const _0x9f21a4 of Object['entries'](_0x3f2bdd)){const [_0x1a02b2,_0x52ceb5]=_0x9f21a4;_0x15b575[_0x1a02b2]=null!==_0x52ceb5?_0x52ceb5:_0x50f814['getLabel'](_0x1a02b2)||_0x1a02b2;}}return{'mergeFieldsData':_0x15b575};}['_standarizeRootsData'](_0x5a8d1c,_0x525451,_0x4779c6){let _0x21cb8a;if('string'==typeof _0x5a8d1c){const _0x360475=_0x525451['model']['document']['getRootNames']()[0x0];_0x21cb8a={[_0x360475]:_0x5a8d1c};}else _0x21cb8a=_0x5a8d1c;const _0x3a59a3=this['_fixMediaEmbeds'](_0x21cb8a,_0x525451),_0x184c01=function(_0x3adf75,_0x35bb37){for(const [_0x33a6f8,_0x2cb374]of _0x3adf75)_0x2cb374['classes']=_0x35bb37[_0x33a6f8]['classList']['value']['replace']('ck-focused','');return _0x3adf75;}(this['_sortRoots'](_0x525451)['reduce']((_0x3bf842,_0x40357e)=>(_0x3bf842['push']([_0x40357e,{'content':_0x3a59a3[_0x40357e],'classes':''}]),_0x3bf842),[]),_0x4779c6);return _0x184c01;}['_fixMediaEmbeds'](_0x44728b,_0x52130d){if(!_0x52130d['plugins']['has']('MediaEmbedEditing'))return _0x44728b;const _0x378848=_0x52130d['plugins']['get']('MediaEmbedEditing');for(const [_0x5c0de8,_0x1f22ec]of Object['entries'](_0x44728b)){const _0x2ae8ac=document['createElement']('div');_0x2ae8ac['innerHTML']=_0x1f22ec,(_0x2ae8ac['querySelectorAll']('figure.media')['forEach'](_0x66ef03=>{const _0x582f78=_0x66ef03['querySelector']('oembed');if(_0x582f78){const _0x5321f4=_0x582f78['getAttribute']('url');if(_0x5321f4){const _0x35e904=_0x378848['registry']['getMediaViewElement'](new _0x343a56(_0x52130d['editing']['view']['document']),_0x5321f4,{'elementName':'','renderForEditingView':!0x0}),_0x2779c9=document['createElement']('div');_0x2779c9['classList']['add']('ck-media__wrapper'),_0x35e904['render'](_0x2779c9,_0x52130d['editing']['view']['domConverter']),_0x582f78['replaceWith'](_0x2779c9);}}}),_0x44728b[_0x5c0de8]=_0x2ae8ac['innerHTML']);}return _0x44728b;}['_sortRoots'](_0x4b831d){if(!function(_0x4f2c33){return void 0x0!==_0x4f2c33['getRootsAttributes'];}(_0x4b831d))return _0x4b831d['model']['document']['getRootNames']();const _0xeeb3e9=[],_0x4b0fbb=new Map();for(const _0x5f4589 of _0x4b831d['model']['document']['getRootNames']()){const _0x3ee5db=_0x4b831d['editing']['view']['getDomRoot'](_0x5f4589)['getClientRects']()['item'](0x0);_0xeeb3e9['push'](_0x5f4589),_0x4b0fbb['set'](_0x5f4589,_0x3ee5db);}return _0xeeb3e9['sort']((_0x3d75bc,_0x3607e7)=>{const _0x5dd176=_0x4b0fbb['get'](_0x3d75bc),_0x34ce33=_0x4b0fbb['get'](_0x3607e7);return _0x5dd176['y']-_0x34ce33['y']||_0x5dd176['x']-_0x34ce33['x'];}),_0xeeb3e9;}}class te extends _0x2e0600{static get['requires'](){return[T,_0x32d43f];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1c983c){super(_0x1c983c),_0x1c983c['commands']['add']('previewFinalContent',new re(this['editor'])),_0x1c983c['config']['define']('trackChanges.preview.renderFunction',(_0x57eb19,_0x117820)=>{for(const _0x44a1ca of _0x117820)_0x57eb19['appendChild'](_0x44a1ca);});}}export{ms as BaseSuggestionThreadView,u as Suggestion,pe as SuggestionThreadView,fe as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
|