@ckeditor/ckeditor5-track-changes 47.7.4 → 47.7.5-alpha.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 +4 -4
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +26 -26
- 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/ai.js +1 -1
- package/src/integrations/aiassistant.js +1 -1
- package/src/integrations/aiquickactions.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/footnotes.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/lineheight.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 +2 -2
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablelayout.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/uploadcare.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +2 -2
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangespreview.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +2 -2
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/ui/view/suggestionview.js +1 -1
- package/src/ui/view/trackchangespreviewview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as
|
|
24
|
-
_0x4c00e9(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0xa7b1ad,_0x38be44){super(),this['id']=_0x38be44['id'],this['type']=_0x38be44['type'],this['subType']=_0x38be44['subType']||null,this['author']=_0x38be44['author'],this['creator']=_0x38be44['creator']||_0x38be44['author'],this['isExternal']=Boolean(_0x38be44['attributes']&&_0x38be44['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x38be44['originalSuggestionId']||null,this['_model']=_0xa7b1ad,this['_onAccept']=_0x38be44['onAccept'],this['_onDiscard']=_0x38be44['onDiscard'],this['_onAttributesChange']=_0x38be44['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x38be44['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 _0xc55250=this;for(;_0xc55250['previous'];)_0xc55250=_0xc55250['previous'];return _0xc55250;}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'](_0x5bc805){this['_markerNames']['add'](_0x5bc805);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x1ea3c3=>this['_model']['markers']['get'](_0x1ea3c3))['filter'](_0x17eb1c=>_0x17eb1c);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0xac15e9=>{for(const _0x15ff53 of this['getMarkers']())_0xac15e9['removeMarker'](_0x15ff53);}),this['_markerNames']['clear']();}['removeMarker'](_0x5d4020){this['_model']['change'](_0x3f8013=>{_0x3f8013['removeMarker'](_0x5d4020);}),this['_markerNames']['delete'](_0x5d4020);}['addRange'](_0x1abdb8){const _0x4bc876='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x4bc876),this['_model']['change'](_0x2b522b=>{_0x2b522b['addMarker'](_0x4bc876,{'range':_0x1abdb8,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x241cc3){for(const _0x47b720 of this['getRanges']())if(_0x47b720['isIntersecting'](_0x241cc3))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x3723e0=>_0x3723e0['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0xfaf0b8,_0x5ebb97)=>[..._0xfaf0b8,..._0x5ebb97['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x49be23=this['getRanges']();if(0x1!=_0x49be23['length'])return null;const _0x5bf2f4=_0x49be23[0x0],_0x397338=_0x5bf2f4['start']['nodeAfter'],_0x1ecc00=_0x5bf2f4['end']['nodeBefore'];return _0x397338 instanceof _0x102fc7?_0x397338!=_0x1ecc00?null:_0x397338: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 _0x589730=[];let _0x12931f=this['head'];for(;_0x12931f;)_0x589730['push'](_0x12931f),_0x12931f=_0x12931f['next'];return _0x589730;}['setAttribute'](_0x47349d,_0x3e9f6b){const _0x4b1ac8=_0x516c92(this['attributes']);_0xe69e1(_0x4b1ac8,_0x47349d,_0x3e9f6b),_0x4d6333(_0x4b1ac8,this['attributes'])||(this['attributes']=_0x4b1ac8,this['_onAttributesChange'](_0x4b1ac8));}['removeAttribute'](_0xbdc736){const _0x30a4fb=_0x516c92(this['attributes']);_0x37560e(_0x30a4fb,_0xbdc736),_0x4d6333(_0x30a4fb,this['attributes'])||(this['attributes']=_0x30a4fb,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 _0x43100d()['substr'](0x1,0x5);}}function o(_0x21248d,_0x16b415,_0x484f9b){const _0x9f122b=_0x21248d['t'],t=_0x21248d['t'];switch(_0x16b415){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',_0x484f9b);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x484f9b);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x484f9b);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x484f9b);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x484f9b);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',_0x484f9b);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x484f9b);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',_0x484f9b);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x484f9b);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x484f9b);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x484f9b);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x484f9b);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x484f9b);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x484f9b);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x484f9b);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x484f9b);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x484f9b);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x484f9b);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x484f9b);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x484f9b);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x484f9b);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x484f9b);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x484f9b);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x484f9b);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x484f9b);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'},_0x484f9b);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x484f9b);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x484f9b);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x484f9b);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x484f9b);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x484f9b);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x484f9b);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x484f9b);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'},_0x484f9b);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x484f9b);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x484f9b);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x484f9b);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x484f9b);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_NUMBERED_LIST_ARABIC_INDIC':return t({'string':'numbered\x20list\x20(arabic-indic)','id':'ELEMENT_NUMBERED_LIST_ARABIC_INDIC'});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'},_0x484f9b);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x484f9b);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'},_0x484f9b);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'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_TYPE':return t({'string':'table\x20cell\x20type','id':'FORMAT_TABLE_CELL_TYPE'});case'FORMAT_FOOTNOTES_LIST_STYLE':return t({'string':'footnotes\x20list\x20style','id':'FORMAT_FOOTNOTES_LIST_STYLE'});case'FORMAT_FOOTNOTES_LIST_START':return t({'string':'footnotes\x20list\x20start','id':'FORMAT_FOOTNOTES_LIST_START'});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'},_0x484f9b);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x484f9b);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'},_0x484f9b);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x484f9b);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'},_0x484f9b);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x484f9b);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x484f9b);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x484f9b);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x484f9b);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x484f9b);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'},_0x484f9b);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x484f9b);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 _0x9f122b({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x484f9b);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x9f122b({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x484f9b);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x484f9b);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'},_0x484f9b);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'},_0x484f9b);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'},_0x484f9b);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x16b415;}}class E{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x4ac397,_0x130bd7){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x4ac397,this['_locale']=_0x130bd7;}['getDescriptions'](_0x25ffe7){const _0x11e825=[],_0x220c84=new Set(),_0x34867c=new Set();for(let _0x4ad353=0x0;_0x4ad353<_0x25ffe7['length'];_0x4ad353++){const _0x2c1650=_0x25ffe7[_0x4ad353];if(!_0x2c1650['isInContent'])continue;const _0x10fcd4=this['_handleCustomCallbackDescription'](_0x2c1650);if(_0x10fcd4){if(null!=_0x2c1650['subType']){if(_0x220c84['has'](_0x2c1650['subType']))continue;_0x220c84['add'](_0x2c1650['subType']);}_0x11e825['push'](_0x10fcd4);}else{if('attribute'==_0x2c1650['type']){const _0x228711=_0x2c1650['data']['key'];if(_0x34867c['has'](_0x228711))continue;_0x34867c['add'](_0x2c1650['data']['key']),_0x228711==m?this['_handleRenameSuggestionDescription'](_0x11e825,_0x2c1650):this['_handleAttributeSuggestionDescription'](_0x11e825,_0x2c1650);continue;}'insertion'!=_0x2c1650['type']&&'deletion'!=_0x2c1650['type']||this['_handleInsertRemoveSuggestionDescription'](_0x11e825,_0x2c1650,_0x25ffe7[_0x4ad353+0x1]);}}return this['_resolveDescriptionItems'](_0x11e825);}['registerDescriptionCallback'](_0x3c8106){this['_customCallbacks']['push'](_0x3c8106);}['registerElementLabel'](_0x417464,_0x4a2977,_0x5d440e=_0x1bfb2d['normal']){'function'==typeof _0x417464?_0x1714fe(this['_itemLabelsCallbacks'],{'matchingCallback':_0x417464,'label':_0x4a2977,'priority':_0x5d440e}):this['_itemLabels']['set'](_0x417464,_0x4a2977);}['registerAttributeLabel'](_0x5f0462,_0x4075f4){this['_attributeLabels']['set'](_0x5f0462,_0x4075f4);}['getItemLabel'](_0x50caea,_0x9f6232=0x1){let _0x15aef4;for(const _0x540456 of this['_itemLabelsCallbacks'])if(_0x540456['matchingCallback'](_0x50caea)){_0x15aef4=_0x540456['label'];break;}return _0x15aef4||(_0x15aef4=this['_itemLabels']['get'](_0x50caea['name'])),_0x15aef4?_0x15aef4(_0x9f6232):0x1!==_0x9f6232?_0x9f6232+'\x20'+_0x50caea['name']+'s':''+_0x50caea['name'];}['_addDescriptionItems'](_0x2dc1aa,_0x476bf8){const _0x1cd7b5=_0x476bf8['getFirstRange']()['getWalker'](),_0x253996='insertion'==_0x476bf8['type']?'add':'remove';for(const _0x4b3147 of _0x1cd7b5){const _0xc90e3e=_0x4b3147['item'],_0x5a380c=_0x2dc1aa[_0x2dc1aa['length']-0x1];if(_0xc90e3e['is']('$textProxy'))_0x5a380c&&_0x5a380c['type']['indexOf']('Container')>-0x1&&_0x2dc1aa['pop'](),_0x5a380c&&'text'==_0x5a380c['type']?_0x5a380c[_0x253996]+=_0xc90e3e['data']:_0x2dc1aa['push']({'type':'text','add':'add'==_0x253996?_0xc90e3e['data']:'','remove':'remove'==_0x253996?_0xc90e3e['data']:''});else{if(this['_schema']['isObject'](_0xc90e3e)){const _0x3ef87e=_0xc90e3e;if(_0x5a380c&&_0x5a380c['type']['indexOf']('Container')>-0x1&&_0x2dc1aa['pop'](),'elementEnd'==_0x4b3147['type'])continue;_0x5a380c&&_0x5a380c['type']==_0x253996+'Object'&&_0x5a380c['element']['name']==_0x3ef87e['name']?_0x5a380c['quantity']++:_0x2dc1aa['push']({'type':_0x253996+'Object','element':_0x3ef87e,'quantity':0x1}),_0x1cd7b5['skip'](_0x4e3c6c=>!('elementEnd'==_0x4e3c6c['type']&&_0x4e3c6c['item']==_0xc90e3e));}else{if(this['_schema']['checkChild'](_0xc90e3e,'$text')||_0xc90e3e['is']('element','softBreak')){const _0x207989=_0xc90e3e;if('add'==_0x253996&&'elementStart'==_0x4b3147['type']||'remove'==_0x253996&&'elementEnd'==_0x4b3147['type'])continue;if(_0x5a380c&&-0x1==_0x5a380c['type']['indexOf']('Container')){'text'==_0x5a380c['type']&&(_0x5a380c[_0x253996]+='\x0a');continue;}let _0x1ab935;if(_0x1ab935='add'==_0x253996?_0x207989['nextSibling']&&!this['_schema']['isObject'](_0x207989['nextSibling'])?_0x207989['nextSibling']:null:_0x207989['previousSibling']&&!this['_schema']['isObject'](_0x207989['previousSibling'])?_0x207989['previousSibling']:null,_0x207989['isEmpty']||_0x1ab935&&_0x1ab935['isEmpty']){const _0x568838=_0x1ab935&&_0x1ab935['isEmpty']?_0x1ab935:_0x207989;_0x5a380c&&_0x5a380c['type']==_0x253996+'EmptyContainer'&&_0x5a380c['element']['name']==_0x568838['name']?_0x5a380c['quantity']++:_0x2dc1aa['push']({'type':_0x253996+'EmptyContainer','element':_0x568838,'quantity':0x1});}else _0x2dc1aa['push']({'type':_0x253996+'Container','element':_0x207989});}}}}}['_resolveDescriptionItems'](_0x5e17d7){const _0x1bef36=this['_locale'],_0xceb01=[],_0x356815=[],_0x400d0e=[];for(const _0x1183d1 of _0x5e17d7)switch(_0x1183d1['type']){case'text':if(_0x1183d1['add']=_0x1183d1['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x1183d1['remove']=_0x1183d1['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x1183d1['add']&&''!=_0x1183d1['remove']){_0xceb01['push']({'type':'replace','content':o(_0x1bef36,'REPLACE_TEXT',['\x22'+_0x1183d1['remove']+'\x22','\x22'+_0x1183d1['add']+'\x22'])});continue;}if(null!=_0x1183d1['add']['match'](/^ +$/)){_0xceb01['push']({'type':'insertion','content':o(_0x1bef36,'*Insert:*\x20%0',o(_0x1bef36,'ELEMENT_SPACE',_0x1183d1['add']['length']))});continue;}if(null!=_0x1183d1['remove']['match'](/^ +$/)){_0xceb01['push']({'type':'deletion','content':o(_0x1bef36,'*Remove:*\x20%0',o(_0x1bef36,'ELEMENT_SPACE',_0x1183d1['remove']['length']))});continue;}if(''!=_0x1183d1['add']){_0xceb01['push']({'type':'insertion','content':o(_0x1bef36,'*Insert:*\x20%0','\x22'+_0x1183d1['add']+'\x22')});continue;}_0xceb01['push']({'type':'deletion','content':o(_0x1bef36,'*Remove:*\x20%0','\x22'+_0x1183d1['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0xceb01['push']({'type':'insertion','content':o(_0x1bef36,'*Insert:*\x20%0',this['getItemLabel'](_0x1183d1['element'],_0x1183d1['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0xceb01['push']({'type':'deletion','content':o(_0x1bef36,'*Remove:*\x20%0',this['getItemLabel'](_0x1183d1['element'],_0x1183d1['quantity']))});continue;case'addContainer':_0xceb01['push']({'type':'insertion','content':o(_0x1bef36,'*Split:*\x20%0',this['getItemLabel'](_0x1183d1['element'],_0x1183d1['quantity']))});continue;case'removeContainer':_0xceb01['push']({'type':'deletion','content':o(_0x1bef36,'*Merge:*\x20%0',this['getItemLabel'](_0x1183d1['element'],_0x1183d1['quantity']))});continue;case'addFormat':_0x356815['push'](_0x1183d1['key']);continue;case'removeFormat':_0x400d0e['push'](_0x1183d1['key']);continue;default:_0xceb01['push'](_0x1183d1);}if(_0x356815['length']){const _0x170372=_0x356815['map'](_0x32c141=>this['_attributeLabels']['has'](_0x32c141)?this['_attributeLabels']['get'](_0x32c141):_0x32c141)['join'](',\x20');_0xceb01['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x170372)});}if(_0x400d0e['length']){const _0x210311=_0x400d0e['map'](_0x216007=>this['_attributeLabels']['has'](_0x216007)?this['_attributeLabels']['get'](_0x216007):_0x216007)['join'](',\x20');_0xceb01['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x210311)});}return _0xceb01;}['_handleCustomCallbackDescription'](_0x44c544){for(const _0x4fc7d2 of this['_customCallbacks']){const _0x489e54=_0x4fc7d2(_0x44c544);if(_0x489e54&&'type'in _0x489e54)return _0x489e54;}}['_handleAttributeSuggestionDescription'](_0x500154,_0x4dde38){const _0x43c707=_0x4dde38['data'],_0x275ca3=void 0x0===_0x43c707['newValue']?'removeFormat':'addFormat';_0x500154['push']({'type':_0x275ca3,'key':_0x43c707['key']});}['_handleRenameSuggestionDescription'](_0x1009a7,_0x190d56){_0x1009a7['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x190d56['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x3930e8,_0x292b21,_0x38efc3){if(this['_addDescriptionItems'](_0x3930e8,_0x292b21),_0x38efc3&&_0x38efc3['getFirstRange']()&&!_0x292b21['getFirstRange']()['end']['isEqual'](_0x38efc3['getFirstRange']()['start'])){const _0x1a0f5e=_0x3930e8[_0x3930e8['length']-0x1],_0x1abb89='insertion'==_0x292b21['type']?'add':'remove';_0x1a0f5e&&'text'==_0x1a0f5e['type']&&(_0x1a0f5e[_0x1abb89]+='\x0a');}}}class U extends _0xb2d1b5{['afterInit'](){const _0x3fb591=this['editor'],_0x33ade8=_0x3fb591['plugins']['get']('TrackChangesEditing');_0x3fb591['commands']['get']('showAIAssistant')&&_0x33ade8['enableCommand']('showAIAssistant');}}class V extends _0xb2d1b5{['afterInit'](){const _0x99fad=this['editor'],_0x5e75fe=_0x99fad['plugins']['get']('TrackChangesEditing');_0x99fad['commands']['get']('toggleAi')&&_0x5e75fe['enableCommand']('toggleAi');}}class F extends _0xb2d1b5{['afterInit'](){const _0x4eecec=this['editor'],_0x2e3bd0=_0x4eecec['plugins']['get']('TrackChangesEditing');_0x4eecec['commands']['get']('aiQuickAction')&&_0x2e3bd0['enableCommand']('aiQuickAction');}}class G extends _0xb2d1b5{['afterInit'](){const _0x4ba15a=this['editor'],_0xa1b6b1=_0x4ba15a['locale'];if(!_0x4ba15a['plugins']['has']('AlignmentEditing'))return;const _0x2e7ccf=_0x4ba15a['plugins']['get']('TrackChangesEditing');_0x2e7ccf['enableDefaultAttributesIntegration']('alignment'),_0x2e7ccf['descriptionFactory']['registerAttributeLabel']('alignment',o(_0xa1b6b1,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x337714=this['editor'],_0x2b33dc=_0x337714['locale'];_0x337714['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x19baa7=>{if('formatBlock'!=_0x19baa7['type'])return;const {data:_0x47d29b}=_0x19baa7;if(_0x47d29b&&'alignment'==_0x47d29b['commandName']){const _0x4c4ac4=_0x47d29b['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x2b33dc,'*Format:*\x20%0',function(_0x1b8fc0){switch(_0x1b8fc0){case'left':return o(_0x2b33dc,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x2b33dc,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x2b33dc,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x2b33dc,'FORMAT_JUSTIFY_TEXT');}}(_0x4c4ac4))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class L extends _0xb2d1b5{['afterInit'](){const _0x34b2fe=this['editor'],_0x414bef=_0x34b2fe['plugins']['get']('TrackChangesEditing'),_0x483767=_0x34b2fe['locale'];for(const _0x2d39bf of ti){if(!_0x34b2fe['plugins']['has'](_0x2d39bf))continue;const _0x1b5698=_0x2d39bf['slice'](0x0,-0x7)['toLowerCase'](),_0x18717d='FORMAT_'+_0x1b5698['toUpperCase']();_0x414bef['enableDefaultAttributesIntegration'](_0x1b5698),_0x414bef['descriptionFactory']['registerAttributeLabel'](_0x1b5698,o(_0x483767,_0x18717d));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5e1538=this['editor'],_0x4d6fd7=_0x5e1538['locale'],_0x2722ce=_0x5e1538['plugins']['get']('TrackChangesEditing');function _0x491c32(_0xf37232,_0x4784b0){_0x2722ce['descriptionFactory']['registerDescriptionCallback'](_0x5e07b1=>{if('formatInline'!=_0x5e07b1['type'])return;const {data:_0x2816fa}=_0x5e07b1;return _0x2816fa&&_0x2816fa['commandName']===_0xf37232?_0x2816fa['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4d6fd7,'*Format:*\x20%0',_0x4784b0)}:{'type':'format','content':o(_0x4d6fd7,'*Remove\x20format:*\x20%0',_0x4784b0)}:void 0x0;});}_0x491c32('bold',o(_0x4d6fd7,'FORMAT_BOLD')),_0x491c32('italic',o(_0x4d6fd7,'FORMAT_ITALIC')),_0x491c32('underline',o(_0x4d6fd7,'FORMAT_UNDERLINE')),_0x491c32('code',o(_0x4d6fd7,'FORMAT_CODE')),_0x491c32('strikethrough',o(_0x4d6fd7,'FORMAT_STRIKETHROUGH')),_0x491c32('subscript',o(_0x4d6fd7,'FORMAT_SUBSCRIPT')),_0x491c32('superscript',o(_0x4d6fd7,'FORMAT_SUPERSCRIPT'));}}class J extends _0xb2d1b5{['afterInit'](){const _0x4f40ca=this['editor'],_0x14c6b5=_0x4f40ca['locale'];if(!_0x4f40ca['plugins']['has']('BlockQuoteEditing'))return;const _0x369cc1=_0x4f40ca['plugins']['get']('TrackChangesEditing'),_0x3d7dad=this['editor']['commands']['get']('blockQuote');_0x369cc1['enableCommand']('blockQuote',(_0x22d44e,_0x492844={})=>{const _0x13f210=this['editor']['model']['document']['selection'],_0x20ed63=_0x492844&&void 0x0!==_0x492844['forceValue']?_0x492844['forceValue']:!_0x3d7dad['value'];let _0x1c7a03=[];if(_0x20ed63){const _0x5b034b=Array['from'](_0x13f210['getSelectedBlocks']())['filter'](_0x57ac3e=>oo(_0x57ac3e)||function(_0x453bb1,_0x1e7c90){const _0x4491c2=_0x1e7c90['checkChild'](_0x453bb1['parent'],'blockQuote'),_0x1e8ba0=_0x1e7c90['checkChild'](['$root','blockQuote'],_0x453bb1);return _0x4491c2&&_0x1e8ba0;}(_0x57ac3e,this['editor']['model']['schema']));_0x1c7a03=to(_0x5b034b,_0x4f40ca['model']);}else{const _0x64c75d=Array['from'](_0x13f210['getSelectedBlocks']())['filter'](_0x5827a8=>oo(_0x5827a8));_0x1c7a03=to(_0x64c75d,_0x4f40ca['model']);}_0x4f40ca['model']['change'](()=>{for(const _0x2037a3 of _0x1c7a03)_0x369cc1['markBlockFormat'](_0x2037a3,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x20ed63}]});});}),_0x369cc1['descriptionFactory']['registerDescriptionCallback'](_0x2381ff=>{const {data:_0x2eedf1}=_0x2381ff;if(_0x2eedf1&&'blockQuote'==_0x2eedf1['commandName']){const _0x471160=o(_0x14c6b5,'ELEMENT_BLOCK_QUOTE');return _0x2eedf1['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x14c6b5,'*Set\x20format:*\x20%0',_0x471160)}:{'type':'format','content':o(_0x14c6b5,'*Remove\x20format:*\x20%0',_0x471160)};}});}}function oo(_0x26af56){return'blockQuote'==_0x26af56['parent']['name'];}class q extends _0xb2d1b5{['afterInit'](){const _0x53f905=this['editor'],_0x4ba5dd=_0x53f905['locale'],_0x518499=_0x53f905['plugins']['get']('TrackChangesEditing');_0x53f905['plugins']['has']('BookmarkEditing')&&(_0x518499['enableCommand']('insertBookmark'),_0x518499['enableDefaultAttributesIntegration']('updateBookmark'),_0x518499['descriptionFactory']['registerDescriptionCallback'](_0x413c3e=>{if('insertion'!=_0x413c3e['type']&&'deletion'!=_0x413c3e['type']&&'attribute'!=_0x413c3e['type'])return;const _0xb585c=_0x413c3e['getContainedElement']();if(null==_0xb585c)return;if(!_0xb585c['is']('element','bookmark'))return;const _0xf7ef00=_0xb585c['getAttribute']('bookmarkId');if('insertion'==_0x413c3e['type'])return{'type':'insertion','content':o(_0x4ba5dd,'*Insert:*\x20%0','\x22'+_0xf7ef00+'\x22\x20'+o(_0x4ba5dd,'ELEMENT_BOOKMARK'))};if('deletion'==_0x413c3e['type'])return{'type':'deletion','content':o(_0x4ba5dd,'*Remove:*\x20%0','\x22'+_0xf7ef00+'\x22\x20'+o(_0x4ba5dd,'ELEMENT_BOOKMARK'))};const {data:_0x15d9fa}=_0x413c3e;if(!_0x15d9fa||'bookmarkId'!=_0x15d9fa['key'])return;return{'type':'format','content':o(_0x4ba5dd,'*Set\x20bookmark:*\x20%0','\x22'+_0x15d9fa['newValue']+'\x22')};}));}}class z extends _0xb2d1b5{['afterInit'](){const _0x19f553=this['editor'];_0x19f553['plugins']['has']('CaseChange')&&(_0x19f553['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x19f553['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x19f553['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0xb2d1b5{['afterInit'](){const _0x527c53=this['editor'];_0x527c53['commands']['get']('ckbox')&&_0x527c53['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class W extends _0xb2d1b5{['afterInit'](){const _0x2902a2=this['editor'];if(!_0x2902a2['plugins']['has']('CodeBlock'))return;const _0x1cf4ba=_0x2902a2['plugins']['get']('TrackChangesEditing'),_0x47227d=_0x2902a2['locale'],_0x474fca=_0x2902a2['config']['get']('codeBlock')['languages'],_0xbc0e1=_0x2902a2['commands']['get']('codeBlock');_0x1cf4ba['enableCommand']('indentCodeBlock'),_0x1cf4ba['enableCommand']('outdentCodeBlock'),_0x1cf4ba['enableCommand']('codeBlock',(_0x1464e5,_0x5e4230={})=>{const _0x385a95=_0x2902a2['model'],_0x4c99f6=_0x2902a2['model']['document']['selection'],_0x30a035=_0x5e4230&&void 0x0!==_0x5e4230['forceValue']?_0x5e4230['forceValue']:!_0xbc0e1['value'];let _0x47d41b;_0x5e4230['language']||(_0x5e4230['language']=_0x474fca[0x0]['language']),_0x47d41b=_0x30a035?Array['from'](_0x4c99f6['getSelectedBlocks']())['filter'](_0x58eaec=>co(_0x58eaec)||function(_0x3fdae9,_0x4b34c7){if(_0x3fdae9['is']('rootElement')||_0x4b34c7['isLimit'](_0x3fdae9))return!0x1;return _0x4b34c7['checkChild'](_0x3fdae9['parent'],'codeBlock');}(_0x58eaec,_0x385a95['schema'])):Array['from'](_0x4c99f6['getSelectedBlocks']())['filter'](_0x1dfd56=>co(_0x1dfd56));const _0x2628d0=to(_0x47d41b,_0x385a95);_0x385a95['change'](()=>{for(const _0x7f2ebb of _0x2628d0)_0x1cf4ba['markBlockFormat'](_0x7f2ebb,{'commandName':'codeBlock','commandParams':[{..._0x5e4230,'forceValue':_0x30a035}],'formatGroupId':'blockName'});});}),(_0x1cf4ba['descriptionFactory']['registerElementLabel']('codeBlock',_0x1ef83a=>o(_0x47227d,'ELEMENT_CODE_BLOCK',_0x1ef83a)),_0x1cf4ba['descriptionFactory']['registerDescriptionCallback'](_0x4649b1=>{if('formatBlock'!=_0x4649b1['type'])return;const _0x5e7bb7=_0x47227d['t'],{data:_0x5752fa}=_0x4649b1;if(!_0x5752fa||'codeBlock'!=_0x5752fa['commandName'])return;const _0x116513=_0x5752fa['commandParams'][0x0]['language'],_0x7d06ad=_0x5e7bb7(_0x474fca['find'](_0x5b241b=>_0x5b241b['language']===_0x116513)['label'])['toLowerCase']();return _0x5752fa['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x47227d,'*Set\x20format:*\x20%0',o(_0x47227d,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x7d06ad+')')}:{'type':'format','content':o(_0x47227d,'*Remove\x20format:*\x20%0',o(_0x47227d,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x3216f1){return'codeBlock'==_0x3216f1['name'];}class H extends _0xb2d1b5{['afterInit'](){const _0x526937=this['editor'];if(!_0x526937['plugins']['has']('CommentsEditing'))return;_0x526937['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class Q extends _0xb2d1b5{static get['requires'](){return[_0x4aa35b];}['init'](){const _0x2c64af=this['editor'],_0x28f95f=_0x2c64af['plugins']['get']('TrackChangesEditing');_0x28f95f['enableCommand']('delete');const _0x4906be=_0x2c64af['commands']['get']('deleteForward');_0x28f95f['enableCommand']('deleteForward',(_0x1886f9,_0x119d6c={})=>{const _0x2d2b02=_0x2c64af['model']['createSelection'](_0x2c64af['model']['document']['selection']);_0x2d2b02['isCollapsed']&&_0x2c64af['model']['modifySelection'](_0x2d2b02,{'direction':'forward','unit':_0x119d6c['unit']});const _0x269cbc=_0x2d2b02['getFirstRange'](),_0x101b8f=_0x23cc14['fromRange'](_0x269cbc);let _0x5afc36;_0x1886f9(_0x119d6c),_0x5afc36='$graveyard'==_0x101b8f['root']['rootName']?_0x2c64af['model']['createRange'](_0x269cbc['start']):_0x2c64af['model']['createRange'](_0x101b8f['start'],_0x101b8f['end']),_0x101b8f['detach'](),_0x2c64af['model']['enqueueChange'](_0x4906be['buffer']['batch'],_0xd18584=>{_0x4906be['buffer']['lock'](),_0xd18584['setSelection'](_0xd18584['createRange'](_0x5afc36['end'])),_0x4906be['buffer']['unlock']();});});}}class X extends _0xb2d1b5{['afterInit'](){const _0x372934=this['editor'];if(!_0x372934['plugins']['has']('ListEditing'))return;const _0x5e3f9f=_0x372934['locale'],_0x26b74f=_0x372934['plugins']['get']('TrackChangesEditing'),_0xb9f395=_0x372934['plugins']['has']('TodoListEditing'),_0x856bc7=!!_0x372934['config']['get']('list.multiBlock');function _0x3378be(_0x445df9){return{'type':'format','content':''+o(_0x5e3f9f,'*Set\x20format:*\x20%0',_0x445df9)};}function _0x147264(_0x141f60){return{'type':'format','content':''+o(_0x5e3f9f,'*Remove\x20format:*\x20%0',_0x141f60)};}_0x26b74f['enableDefaultAttributesIntegration']('numberedList'),_0x26b74f['enableDefaultAttributesIntegration']('bulletedList'),_0x26b74f['enableDefaultAttributesIntegration']('customNumberedList'),_0x26b74f['enableDefaultAttributesIntegration']('customBulletedList'),_0x26b74f['enableDefaultAttributesIntegration']('indentList'),_0x26b74f['enableDefaultAttributesIntegration']('outdentList'),_0x26b74f['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x26b74f['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x856bc7&&(_0x26b74f['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x26b74f['enableDefaultAttributesIntegration']('mergeListItemForward')),_0xb9f395&&(_0x26b74f['enableDefaultAttributesIntegration']('todoList'),_0x26b74f['enableDefaultAttributesIntegration']('checkTodoList'),_0x26b74f['descriptionFactory']['registerDescriptionCallback'](_0xfc00ea=>{const {data:_0x333f21}=_0xfc00ea;if(_0x333f21&&'todoListChecked'==_0x333f21['key'])return{'type':'format','content':_0x333f21['newValue']?o(_0x5e3f9f,'*Check\x20item*'):o(_0x5e3f9f,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x436944=>{if(_0x436944['batch']['isUndo'])return!0x1;let _0x491ca7=!0x1;const _0x41fddf=_0x26b74f['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x366fc9=>'todoListChecked'===_0x26b74f['_getAttributeKey'](_0x366fc9));for(const _0x49acda of _0x41fddf){'todo'!=_0x49acda['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x26b74f['_findSuggestions'](_0x49acda['getFirstRange'](),'attribute')['find'](_0x89c66=>'listType'===_0x26b74f['_getAttributeKey'](_0x89c66['suggestion']))||(_0x436944['removeMarker'](_0x49acda['getFirstMarker']()),_0x491ca7=!0x0));}return _0x491ca7;})),_0x26b74f['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x5e3f9f,'FORMAT_INDENT'));const _0x3f03d6={'type':'format','content':''};_0x26b74f['descriptionFactory']['registerDescriptionCallback'](_0x48cb13=>{const {data:_0x25708a}=_0x48cb13;if(!_0x25708a||'listType'!=_0x25708a['key'])return;let _0x3b572b=_0x48cb13['head'];for(;_0x3b572b;){if(_0x3b572b['data']&&(('listStyle'==_0x3b572b['data']['key']||'listMarkerStyle'==_0x3b572b['data']['key'])&&(_0x3b572b['data']['newValue']&&'default'!=_0x3b572b['data']['newValue']||'default'!=_0x3b572b['data']['oldValue']&&!_0x25708a['newValue'])||!_0x856bc7&&_0x3b572b['data']['key']==m))return _0x3f03d6;_0x3b572b=_0x3b572b['next'];}if(null==_0x25708a['newValue'])switch(_0x25708a['oldValue']){case'bulleted':return _0x147264(o(_0x5e3f9f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x147264(o(_0x5e3f9f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x147264(o(_0x5e3f9f,'ELEMENT_TODO_LIST'));}switch(_0x25708a['newValue']){case'bulleted':return _0x3378be(o(_0x5e3f9f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3378be(o(_0x5e3f9f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3378be(o(_0x5e3f9f,'ELEMENT_TODO_LIST'));}}),_0x26b74f['descriptionFactory']['registerDescriptionCallback'](_0x245095=>{const {data:_0x2d2242}=_0x245095;if(_0x2d2242&&'listIndent'==_0x2d2242['key'])return null==_0x2d2242['newValue']||null==_0x2d2242['oldValue']&&0x0==_0x2d2242['newValue']?_0x3f03d6:void 0x0;}),_0x26b74f['descriptionFactory']['registerDescriptionCallback'](_0x99feca=>{if('attribute'!=_0x99feca['type'])return;const {data:_0x5511cb}=_0x99feca;if(!_0x5511cb||'listItemId'!=_0x5511cb['key'])return;const _0x1c557a=Te(_0x99feca);return'newValue'==_0x1c557a?{'type':'format','content':o(_0x5e3f9f,'*Merge:*\x20list\x20item')}:'oldValue'==_0x1c557a?{'type':'format','content':o(_0x5e3f9f,'*Split:*\x20list\x20item')}:_0x3f03d6;}),_0x372934['model']['document']['registerPostFixer'](_0x2be671=>this['listItemIdFixer'](_0x2be671)),_0x372934['model']['document']['registerPostFixer'](_0x21095c=>this['noTrackChangesFixer'](_0x21095c)),_0x372934['model']['document']['on']('change:data',(_0x178b5b,_0x4cb61b)=>{if(_0x4cb61b['isUndo']||!_0x4cb61b['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x10b27b){if(_0x10b27b['batch']['isUndo']||!_0x10b27b['batch']['isLocal'])return!0x1;let _0x533bc3=!0x1;const _0x19640d=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x597888=>_0x597888['data']&&'listItemId'==_0x597888['data']['key'])['filter'](_0x432e5e=>_0x432e5e['data']['newValue']&&_0x432e5e['data']['oldValue']);for(const _0x3f65a3 of _0x19640d)Te(_0x3f65a3)||(_0x10b27b['removeMarker'](_0x3f65a3['getFirstMarker']()),_0x533bc3=!0x0);return _0x533bc3;}['noTrackChangesFixer'](_0x3e1edc){if(_0x3e1edc['batch']['isUndo']||!_0x3e1edc['batch']['isLocal'])return!0x1;const _0x2a0b9b=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x2a0b9b['trackChangesCommand']['value'])return!0x1;let _0x58498c=!0x1;const _0x5112b6=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x550f30=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x16aa18=>'attribute'==_0x16aa18['type'])['filter'](_0x538fcd=>_0x5112b6['includes'](_0x538fcd['attributeKey']));if(0x0==_0x550f30['length'])return _0x58498c;for(const _0x56a3ff of _0x550f30){const _0x565437=_0x2a0b9b['_findSuggestions'](_0x56a3ff['range'],'attribute')['filter'](_0x5280af=>!_0x5280af['meta']['isNextTo'])['map'](_0x46bbb0=>_0x46bbb0['suggestion'])['filter'](_0x41e807=>{const _0x598d5c=_0x2a0b9b['_getAttributeKey'](_0x41e807);return _0x5112b6['includes'](_0x598d5c);});if(_0x565437['length']){for(const _0x2e24d4 of _0x565437)_0x3e1edc['removeMarker'](_0x2e24d4['getFirstMarker']());_0x58498c=!0x0;}}return _0x58498c;}['assureChains'](){const _0x5a83d8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x43ad8e=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x1e9a78;const _0x550576=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4339d7=>{if(_0x4339d7['data']['oldRange']||!_0x4339d7['data']['newRange'])return null;if(!_0x4339d7['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x1bd4a6}=_0x5a83d8['_splitMarkerName'](_0x4339d7['name']);if(!_0x5a83d8['hasSuggestion'](_0x1bd4a6))return null;const _0x5b64ba=_0x5a83d8['getSuggestion'](_0x1bd4a6);return _0x43ad8e['includes'](_0x5b64ba['data']['key']);})['map'](_0x3f495c=>{const {id:_0x204c4f}=_0x5a83d8['_splitMarkerName'](_0x3f495c['name']),_0x109dda=_0x5a83d8['getSuggestion'](_0x204c4f);return _0x1e9a78=_0x109dda['attributes']['groupId'],_0x109dda['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x550576['size'])return;const _0x4576d5=_0x5a83d8['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x325fbf=>'attribute'==_0x325fbf['type']&&_0x325fbf['data']&&_0x43ad8e['includes'](_0x325fbf['data']['key'])&&_0x325fbf['attributes']['groupId']!=_0x1e9a78)['map'](_0x40e09f=>({'listItem':_0x40e09f['getFirstRange']()['start']['nodeAfter'],'groupId':_0x40e09f['attributes']['groupId']})),_0x2850cc=new Set();for(const {groupId:_0x16f9fb,listItem:_0x59750e}of _0x4576d5)_0x550576['has'](_0x59750e)&&_0x2850cc['add'](_0x16f9fb);for(const _0x338c9b of _0x5a83d8['getSuggestions']())_0x2850cc['has'](_0x338c9b['attributes']['groupId'])&&_0x338c9b['setAttribute']('groupId',_0x1e9a78);}['_supportLegacySuggestions'](){const _0x19c513=this['editor'],_0x48f3a1=_0x19c513['locale'],_0x1851a5=_0x19c513['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x1851a5['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x596e66,_0xfcd0e7){const _0x5510de=[];for(let _0x2cb82c of _0x596e66)_0x2cb82c['start']['nodeAfter']===_0x2cb82c['end']['parent']&&(_0x2cb82c=_0x19c513['model']['createRange'](_0x19c513['model']['createPositionAt'](_0x2cb82c['start']['nodeAfter'],0x0))),_0x5510de['push'](_0x2cb82c);_0x19c513['model']['change'](_0x56a37b=>{const _0x47e37b=_0x19c513['model']['document']['selection'],_0xb46773=Array['from'](_0x47e37b['getRanges']())['map'](_0x4a6587=>_0x23cc14['fromRange'](_0x4a6587));_0x56a37b['setSelection'](_0x5510de),_0x19c513['commands']['get'](_0xfcd0e7['commandName'])['refresh'](),_0xfcd0e7['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x19c513['execute'](_0xfcd0e7['commandName'],..._0xfcd0e7['commandParams']),_0x56a37b['setSelection'](_0xb46773);for(const _0x3144dd of _0xb46773)_0x3144dd['detach']();});}),_0x1851a5['descriptionFactory']['registerElementLabel'](function(_0x1335cd){const _0x32a042=!_0x19c513['model']['schema']['isObject'](_0x1335cd),_0x531fc3=_0x1335cd['previousSibling'],_0x11cf9f=_0x1335cd['nextSibling'],_0x18ceb8=_0x1335cd['getAttribute']('listItemId'),_0x52ac80=!_0x531fc3||_0x531fc3['getAttribute']('listItemId')!==_0x18ceb8,_0x3392e4=!_0x11cf9f||_0x11cf9f['getAttribute']('listItemId')!==_0x18ceb8;return _0x32a042&&Boolean(_0x18ceb8)&&_0x52ac80&&_0x3392e4;},_0x2895e4=>o(_0x48f3a1,'ELEMENT_LIST_ITEM',_0x2895e4));}['_registerLegacyDescription'](){const _0x208076=this['editor'],_0x5f03b6=_0x208076['locale'];function _0x4e1cea(_0x3b84b6){const _0x3a4eeb=_0x208076['commands']['get']('bulletedList')['value'],_0x2b6094=_0x208076['commands']['get']('numberedList')['value'];return'numberedList'===_0x3b84b6?_0x3a4eeb:_0x2b6094;}_0x208076['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0xe7caae){if('formatBlock'!=_0xe7caae['type'])return;const {data:_0xc9c486}=_0xe7caae;if(!_0xc9c486)return;let _0x2a3aa9,_0x15f23a,_0x24e56b,_0x5578fe;switch(_0xc9c486['commandName']){case'bulletedList':_0x24e56b=_0xc9c486['commandParams'][0x0]['forceValue'],_0x5578fe=_0x4e1cea(_0xc9c486['commandName']),_0x2a3aa9=_0x24e56b?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5578fe&&_0x208076['config']['get']('list.multiBlock')||(_0x2a3aa9='*Change\x20to:*\x20%0'),_0x15f23a={'type':'format','content':o(_0x5f03b6,_0x2a3aa9,o(_0x5f03b6,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x24e56b=_0xc9c486['commandParams'][0x0]['forceValue'],_0x5578fe=_0x4e1cea(_0xc9c486['commandName']),_0x2a3aa9=_0x24e56b?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5578fe&&_0x208076['config']['get']('list.multiBlock')||(_0x2a3aa9='*Change\x20to:*\x20%0'),_0x15f23a={'type':'format','content':o(_0x5f03b6,_0x2a3aa9,o(_0x5f03b6,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x2a3aa9='*Indent:*\x20%0',_0x15f23a={'type':'format','content':o(_0x5f03b6,_0x2a3aa9,o(_0x5f03b6,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x2a3aa9=function(_0x4f369){const _0xb6d535=_0x4f369['getFirstRange']();let _0x5bf898=_0xb6d535['start']['nodeAfter'];for(;_0x5bf898&&_0xb6d535['containsItem'](_0x5bf898);){if(_0x5bf898['getAttribute']('listIndent')>0x0)return!0x1;_0x5bf898=_0x5bf898['nextSibling'];}return!0x0;}(_0xe7caae)?o(_0x5f03b6,'*Format:*\x20remove\x20from\x20%0',o(_0x5f03b6,function(_0x4ccfd1){return'ELEMENT_'+_0x4ccfd1['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0xe7caae))):o(_0x5f03b6,'*Outdent:*\x20%0',o(_0x5f03b6,'ELEMENT_LIST_ITEM')),_0x15f23a={'type':'format','content':_0x2a3aa9};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0xc9c486['multipleBlocks']&&(_0x2a3aa9='*Merge:*\x20%0',_0x15f23a={'type':'deletion','content':o(_0x5f03b6,_0x2a3aa9,o(_0x5f03b6,'ELEMENT_LIST_ITEM'))});}return _0x15f23a;});}}function Te(_0x32adab){let _0x1caa36=_0x32adab['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x1caa36;){const _0x35830e=_0x1caa36['getAttribute']('listItemId');if(!_0x35830e)return!0x1;if(_0x35830e==_0x32adab['data']['newValue'])return'newValue';if(_0x35830e==_0x32adab['data']['oldValue'])return'oldValue';_0x1caa36=_0x1caa36['previousSibling'];}return!0x1;}class Y extends _0xb2d1b5{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x4f2a34=this['editor']['config']['get']('list.properties'),_0x2105b4=this['editor']['plugins']['get']('TrackChangesEditing');_0x4f2a34['styles']&&_0x2105b4['enableDefaultAttributesIntegration']('listStyle'),_0x4f2a34['reversed']&&_0x2105b4['enableDefaultAttributesIntegration']('listReversed'),_0x4f2a34['startIndex']&&_0x2105b4['enableDefaultAttributesIntegration']('listStart');const _0x59a52c={'type':'format','content':''};_0x2105b4['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x122e91=this['editor']['locale'];_0x2105b4['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x122e91,'FORMAT_LIST_REVERSED')),_0x2105b4['descriptionFactory']['registerDescriptionCallback'](_0x1dbc98=>{const {data:_0x420713}=_0x1dbc98;if(_0x420713&&'listReversed'==_0x420713['key'])return null==_0x420713['newValue']||0x0==_0x420713['newValue']&&null==_0x420713['oldValue']?_0x59a52c:void 0x0;}),_0x2105b4['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x122e91,'FORMAT_LIST_START')),_0x2105b4['descriptionFactory']['registerDescriptionCallback'](_0x465e91=>{const {data:_0x4b9edd}=_0x465e91;if(_0x4b9edd&&'listStart'==_0x4b9edd['key'])return null==_0x4b9edd['newValue']||0x1==_0x4b9edd['newValue']&&null==_0x4b9edd['oldValue']?_0x59a52c:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x2e37a9=>{if(_0x2e37a9['batch']['isUndo'])return!0x1;let _0x28e6d9=!0x1;const _0x2e07e8=_0x2105b4['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x25a615=>{const _0x42b38e=_0x2105b4['_getAttributeKey'](_0x25a615);return'listStart'==_0x42b38e||'listReversed'==_0x42b38e;});for(const _0x99b9c3 of _0x2e07e8){const _0x50b74e=_0x99b9c3['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x50b74e||'customNumbered'==_0x50b74e)continue;_0x2105b4['_findSuggestions'](_0x99b9c3['getFirstRange'](),'attribute')['find'](_0x57836c=>'listType'==_0x2105b4['_getAttributeKey'](_0x57836c['suggestion']))||(_0x2e37a9['removeMarker'](_0x99b9c3['getFirstMarker']()),_0x28e6d9=!0x0);}return _0x28e6d9;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x30f381){const _0x2f9b76=this['editor']['locale'],{data:_0x4519ae}=_0x30f381,_0x5c7f9a={'type':'format','content':''};if(!_0x4519ae||'listStyle'!=_0x4519ae['key'])return;if(!_0x4519ae['oldValue'])return'default'==_0x4519ae['newValue']?_0x5c7f9a:{'type':'format','content':''+o(_0x2f9b76,'*Set\x20format:*\x20%0',o(_0x2f9b76,this['_getTranslationKeyForListStyle'](_0x4519ae['newValue'])))};if(!_0x4519ae['newValue']){if('default'==_0x4519ae['oldValue'])return _0x5c7f9a;let _0x4772aa=_0x30f381['head'];for(;_0x4772aa;){if(_0x4772aa['data']&&'listType'==_0x4772aa['data']['key']&&_0x4772aa['data']['newValue'])return _0x5c7f9a;_0x4772aa=_0x4772aa['next'];}return{'type':'format','content':''+o(_0x2f9b76,'*Remove\x20format:*\x20%0',o(_0x2f9b76,this['_getTranslationKeyForListStyle'](_0x4519ae['oldValue'])))};}if('default'!=_0x4519ae['newValue'])return{'type':'format','content':''+o(_0x2f9b76,'*Set\x20format:*\x20%0',o(_0x2f9b76,this['_getTranslationKeyForListStyle'](_0x4519ae['newValue'])))};let _0x191e6a=_0x30f381['head'];for(;_0x191e6a;){if(_0x191e6a['data']&&'listType'==_0x191e6a['data']['key']&&_0x191e6a['data']['newValue']&&_0x191e6a['data']['oldValue'])return _0x5c7f9a;_0x191e6a=_0x191e6a['next'];}return{'type':'format','content':o(_0x2f9b76,'*Set\x20format:*\x20%0',o(_0x2f9b76,'ELEMENT_'+_0x30f381['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x4962c8=this['editor'],_0x30fe62=_0x4962c8['locale'];_0x4962c8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x852cae=>{if('formatBlock'!=_0x852cae['type'])return;const {data:_0x21d141}=_0x852cae;if(!_0x21d141)return;let _0x5d56f5,_0x37712f;switch(_0x21d141['commandName']){case'listStyle':_0x5d56f5='*Change\x20to:*\x20%0',_0x37712f={'type':'format','content':o(_0x30fe62,_0x5d56f5,o(_0x30fe62,this['_getTranslationKeyForListStyle'](_0x21d141['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5d56f5=_0x21d141['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x37712f={'type':'format','content':o(_0x30fe62,_0x5d56f5)};break;case'listStart':_0x5d56f5='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x37712f={'type':'format','content':o(_0x30fe62,_0x5d56f5,_0x21d141['commandParams'][0x0]['startIndex'])};}return _0x37712f;});}['_getTranslationKeyForListStyle'](_0x15dd52){return'ELEMENT_'+function(_0x4b811a){if(ye['includes'](_0x4b811a))return'bulleted';if(Se['includes'](_0x4b811a))return'numbered';return null;}(_0x15dd52)['toUpperCase']()+'_LIST_'+_0x15dd52['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];class Z extends _0xb2d1b5{['afterInit'](){const _0xf5c4ec=this['editor'];_0xf5c4ec['commands']['get']('emoji')&&_0xf5c4ec['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class tt extends _0xb2d1b5{static get['requires'](){return[_0x589834];}['init'](){const _0x4a9f00=this['editor'],_0x2188b3=_0x4a9f00['plugins']['get']('TrackChangesEditing'),_0x156753=_0x4a9f00['commands']['get']('enter');_0x2188b3['enableCommand']('enter',()=>{_0x4a9f00['model']['change'](_0x24b0ae=>{const _0x2b994d=_0x4a9f00['model']['document']['selection'],_0x54aa4d=_0x2b994d['getFirstPosition'](),_0x411a2f=_0x23cc14['fromRange'](_0x2b994d['getFirstRange']());if(_0x156753['enterBlock'](_0x24b0ae)){const _0x25a200=_0x4a9f00['model']['createPositionAt'](_0x54aa4d['parent']['nextSibling'],0x0),_0x1d5d8b=_0x24b0ae['createRange'](_0x54aa4d,_0x25a200);_0x2188b3['markInsertion'](_0x1d5d8b);}else _0x24b0ae['setSelection'](_0x24b0ae['createRange'](_0x411a2f['end']));_0x411a2f['detach'](),_0x156753['fire']('afterExecute',{'writer':_0x24b0ae});});});}}class nt extends _0xb2d1b5{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x5d4718=this['editor']['plugins']['get']('TrackChangesEditing');_0x5d4718['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x5d4718['enableCommand']('findNext'),_0x5d4718['enableCommand']('findPrevious'),_0x5d4718['enableCommand']('replace'),_0x5d4718['enableCommand']('replaceAll');}['handleFindCommand'](_0x463dbe,_0x5605ca,_0x4fd8b0={}){const _0x4e8bf4=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x463dbe(_0x5bca34=>{let _0x137109=('string'==typeof _0x5605ca?_0x4e8bf4['findByTextCallback'](_0x5605ca,_0x4fd8b0):_0x5605ca)(_0x5bca34);Array['isArray'](_0x137109)&&(_0x137109={'results':_0x137109,'searchText':'string'==typeof _0x5605ca?_0x5605ca:''});const _0x268937=_0x137109['results']['filter'](_0x11765c=>!0x1===this['_isInDeletionRange'](_0x11765c,_0x5bca34['item']));return{..._0x137109,'results':_0x268937};},_0x4fd8b0);}['_isInDeletionRange'](_0x4b9865,_0x2bea32){const _0x3fe5b5=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2bea32,_0x4b9865['start']),this['editor']['model']['createPositionAt'](_0x2bea32,_0x4b9865['end']));for(const _0x5c8b38 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x3fe5b5['getIntersection'](_0x5c8b38['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class it extends _0xb2d1b5{['afterInit'](){const _0x1c498b=this['editor']['locale'],_0x127454=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x324f29,commandName:_0x3aafbc}of eo)this['editor']['plugins']['has'](_0x324f29)&&_0x127454['enableDefaultAttributesIntegration'](_0x3aafbc);_0x127454['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x1c498b,'FORMAT_FONT_SIZE')),_0x127454['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x1c498b,'FORMAT_FONT_FAMILY')),_0x127454['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x1c498b,'FORMAT_FONT_COLOR')),_0x127454['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x1c498b,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5b45f2=this['editor'],_0x52364b=_0x5b45f2['locale'];_0x5b45f2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x558a84=>{const _0x567d22=_0x52364b['t'];if('formatInline'!=_0x558a84['type'])return;const {data:_0x212526}=_0x558a84;if(null!=_0x212526){if('fontSize'==_0x212526['commandName']){const _0xe5dd9=_0x212526['commandParams'][0x0]['value'];if(_0xe5dd9){const _0x3d03f6=_0x567d22(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x267754=>_0x267754['model']==_0xe5dd9)['title'])['toLowerCase']();return{'type':'format','content':o(_0x52364b,'*Set\x20font\x20size:*\x20%0',_0x3d03f6)};}return{'type':'format','content':o(_0x52364b,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x212526['commandName']){const _0x100fb2=_0x212526['commandParams'][0x0]['value'];return _0x100fb2?{'type':'format','content':o(_0x52364b,'*Set\x20font\x20family:*\x20%0',_0x100fb2)}:{'type':'format','content':o(_0x52364b,'*Reset\x20font\x20family*')};}if('fontColor'==_0x212526['commandName']){const _0x5d047c=_0x212526['commandParams'][0x0]['value'];if(_0x5d047c){const _0x382a97=_0x396374(this['editor']['config']['get']('fontColor.colors'))['find'](_0x577949=>_0x577949['model']==_0x5d047c);let _0x520719=_0x5d047c,_0x3e0db4='';return _0x382a97&&(_0x520719=_0x382a97['label'],_0x3e0db4=_0x567d22(_0x520719)['toLowerCase']()),{'type':'format','content':o(_0x52364b,'*Set\x20font\x20color:*\x20%0',_0x3e0db4)['trim'](),'color':{'value':_0x5d047c,'title':_0x3e0db4||_0x520719}};}return{'type':'format','content':o(_0x52364b,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x212526['commandName']){const _0x5c8209=_0x212526['commandParams'][0x0]['value'];if(_0x5c8209){const _0x42efe1=_0x396374(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x5a4a12=>_0x5a4a12['model']==_0x5c8209);let _0x5bba68=_0x5c8209,_0x22590e='';return _0x42efe1&&(_0x5bba68=_0x42efe1['label'],_0x22590e=_0x567d22(_0x5bba68)['toLowerCase']()),{'type':'format','content':o(_0x52364b,'*Set\x20font\x20background\x20color:*\x20%0',_0x22590e)['trim'](),'color':{'value':_0x5c8209,'title':_0x22590e||_0x5bba68}};}return{'type':'format','content':o(_0x52364b,'*Reset\x20font\x20background\x20color*')};}}});}}class et extends _0xb2d1b5{['afterInit'](){const {plugins:_0x4e43a4}=this['editor'];_0x4e43a4['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x4e43a4['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x343614,plugins:_0x1616c8,commands:_0x5098af}=this['editor'],_0x132175=_0x1616c8['get']('TrackChangesEditing');_0x5098af['get']('footnotesStyle')&&_0x132175['enableDefaultAttributesIntegration']('footnotesStyle'),_0x5098af['get']('footnotesStart')&&_0x132175['enableDefaultAttributesIntegration']('footnotesStart'),_0x132175['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',o(_0x343614,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x132175['descriptionFactory']['registerAttributeLabel']('footnotesListStart',o(_0x343614,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x508f56=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x22670f,commands:_0x3bcd21}=this['editor'];_0x3bcd21['get']('insertFootnote')&&_0x508f56['enableCommand']('insertFootnote'),_0x508f56['descriptionFactory']['registerElementLabel']('footnoteRef',_0x4c1c2e=>o(_0x22670f,'ELEMENT_FOOTNOTE_REF',_0x4c1c2e)),_0x508f56['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x43ef78=>o(_0x22670f,'ELEMENT_FOOTNOTE_DEFINITION',_0x43ef78)),_0x508f56['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x198685=>o(_0x22670f,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x198685));}}class st extends _0xb2d1b5{['afterInit'](){const _0x59459b=this['editor'],_0x9d5c43=_0x59459b['plugins']['get']('TrackChangesEditing'),_0x320a03=_0x59459b['commands']['get']('copyFormat'),_0x57441f=_0x59459b['commands']['get']('pasteFormat');_0x320a03&&_0x57441f&&(_0x9d5c43['enableDefaultAttributesIntegration']('pasteFormat'),_0x9d5c43['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x2279de=this['editor'],_0x3dc6a1=_0x2279de['locale'];_0x2279de['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x20513b=>{if('formatBlock'!=_0x20513b['type']&&'formatInline'!=_0x20513b['type'])return;const {data:_0x5e6566}=_0x20513b;if(_0x5e6566&&'pasteFormat'===_0x5e6566['commandName']){const _0x2a0da7=[],_0x34783a=_0x5e6566['commandParams'][0x0];for(const [_0x4fa1b5,_0x5a7939]of Object['entries'](_0x34783a))_0x2a0da7['push'](ro(_0x2279de,_0x4fa1b5,_0x5a7939));return _0x2a0da7['length']?{'type':'format','content':o(_0x3dc6a1,'*Set\x20format\x20to:*\x20%0',_0x2a0da7['join'](',\x20'))}:{'type':'format','content':o(_0x3dc6a1,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x3810d4,_0x24b0d4,_0x54a90f){const _0x2a5697=_0x3810d4['locale']['t'],_0x111aa0=_0x24b0d4['split'](/(?=[A-Z])/)['join']('\x20'),_0x30bc7b=_0x2a5697(_0x111aa0['charAt'](0x0)['toUpperCase']()+_0x111aa0['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x54a90f)return _0x30bc7b;if('fontColor'===_0x24b0d4||'fontBackgroundColor'===_0x24b0d4){const _0x3f3bc5=_0x396374(_0x3810d4['config']['get']('fontColor.colors'))['find'](_0x750f94=>_0x750f94['model']==_0x54a90f);return _0x30bc7b+'\x20('+(_0x3f3bc5?_0x2a5697(_0x3f3bc5['label'])['toLowerCase']():_0x54a90f)+')';}if('fontSize'===_0x24b0d4&&isNaN(parseFloat(_0x54a90f))){const _0x2eda39=_0x3810d4['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x3810d4['config']['get']('fontSize.options'))['find'](_0x1fec4c=>_0x1fec4c['model']==_0x54a90f);return _0x30bc7b+'\x20('+(_0x2eda39?_0x2a5697(_0x2eda39['title'])['toLowerCase']():_0x54a90f)+')';}return _0x30bc7b+'\x20('+_0x54a90f+')';}class ot extends _0xb2d1b5{['_headingOptions'];['afterInit'](){const _0x4cf39d=this['editor'];if(!_0x4cf39d['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x4cf39d['config']['get']('heading.options');const _0x3a3edf=_0x4cf39d['locale'],_0x5aead3=_0x4cf39d['plugins']['get']('TrackChangesEditing');_0x5aead3['enableDefaultAttributesIntegration']('heading');for(const _0x47552a of this['_headingOptions'])'paragraph'!=_0x47552a['model']&&_0x5aead3['descriptionFactory']['registerElementLabel'](_0x47552a['model'],_0x587808=>{const _0x282f1e=this['_getHeadingLevel'](_0x47552a['model']);return null!==_0x282f1e?_0x2e7542(_0x587808,_0x282f1e):_0x381599(_0x587808,_0x47552a['title']);});function _0x2e7542(_0x49e73b,_0x3ac82a){return o(_0x3a3edf,'ELEMENT_HEADING',[_0x49e73b,_0x3ac82a]);}function _0x381599(_0x397072,_0x1fc26d){return o(_0x3a3edf,'ELEMENT_HEADING_CUSTOM',[_0x397072,_0x1fc26d]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x50ffd1=this['editor'],_0x3444cc=_0x50ffd1['locale'];function _0xa496d2(_0x12c090,_0x2b0a72){return o(_0x3444cc,'ELEMENT_HEADING_CUSTOM',[_0x12c090,_0x2b0a72]);}_0x50ffd1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x465b39=>{if('formatBlock'!=_0x465b39['type'])return;const {data:_0x2b7a92}=_0x465b39;if(_0x2b7a92&&'heading'==_0x2b7a92['commandName']){const _0x7e109c=_0x2b7a92['commandParams'][0x0]['value'],_0x25702d=this['_getHeadingLevel'](_0x7e109c);if(null!==_0x25702d)return{'type':'format','content':o(_0x3444cc,'*Change\x20to:*\x20%0',(_0x31f5eb=0x1,_0x2dc787=_0x25702d,o(_0x3444cc,'ELEMENT_HEADING',[_0x31f5eb,_0x2dc787])))};const _0x2c8f08=this['_headingOptions']['find'](_0x4e761a=>_0x4e761a['model']===_0x7e109c)['title'];return{'type':'format','content':o(_0x3444cc,'*Change\x20to:*\x20%0',_0xa496d2(0x1,_0x2c8f08))};}var _0x31f5eb,_0x2dc787;});}['_getHeadingLevel'](_0x4143ea){const _0x285a22=_0x4143ea['match'](/^heading(\d+)/);if(_0x285a22)return _0x285a22[0x1];const _0x5472eb=this['_headingOptions']?.['find'](_0xda0a5e=>_0xda0a5e['model']==_0x4143ea);if(_0x5472eb&&_0x5472eb['view']){const _0x2c1527=_0x5472eb['view'],_0x55cb0=(_0x2c1527['name']??_0x2c1527)['match'](/^h(\d+)/);if(_0x55cb0)return _0x55cb0[0x1];}return null;}}class rt extends _0xb2d1b5{['afterInit'](){const _0x42c83e=this['editor'];if(!_0x42c83e['plugins']['has']('HighlightEditing'))return;const _0x1a4495=_0x42c83e['plugins']['get']('TrackChangesEditing'),_0x5ca602=_0x42c83e['locale'];_0x1a4495['enableDefaultAttributesIntegration']('highlight'),_0x1a4495['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x5ca602,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4ce69b=this['editor'],_0x45f98c=_0x4ce69b['locale'];_0x4ce69b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2b7143=>{if('formatInline'!=_0x2b7143['type'])return;const {data:_0x261880}=_0x2b7143;if(_0x261880&&'highlight'==_0x261880['commandName']){const _0x2decfe=_0x45f98c['t'],_0x4ee5bd=_0x261880['commandParams'][0x0]['value'];if(_0x4ee5bd){const _0x21e8b2=_0x4ce69b['config']['get']('highlight.options')['find'](_0x15db5d=>_0x15db5d['model']==_0x4ee5bd),_0x13f3d0=_0x2decfe(_0x21e8b2['title'])['toLowerCase']();return{'type':'format','content':o(_0x45f98c,'*Set\x20highlight:*\x20%0',_0x13f3d0),'color':{'value':_0x21e8b2['color'],'title':_0x21e8b2['title']}};}return{'type':'format','content':o(_0x45f98c,'*Remove\x20highlight*',o(_0x45f98c,'FORMAT_HIGHLIGHT'))};}});}}class at extends _0xb2d1b5{['afterInit'](){const _0x20bcfd=this['editor'];if(!_0x20bcfd['plugins']['has']('HorizontalLineEditing'))return;_0x20bcfd['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x2db61e=_0x20bcfd['plugins']['get']('TrackChangesEditing'),_0xc13811=_0x20bcfd['locale'];_0x2db61e['descriptionFactory']['registerElementLabel']('horizontalLine',_0x5bd541=>o(_0xc13811,'ELEMENT_HORIZONTAL_LINE',_0x5bd541));}}class ct extends _0xb2d1b5{['afterInit'](){const _0xc553f6=this['editor'];if(!_0xc553f6['plugins']['has']('HtmlEmbed'))return;const _0x2d4d39=_0xc553f6['plugins']['get']('TrackChangesEditing'),_0x268276=_0xc553f6['locale'];_0x2d4d39['descriptionFactory']['registerElementLabel']('rawHtml',_0x3e5fcf=>o(_0x268276,'ELEMENT_HTML_EMBED',_0x3e5fcf)),_0x2d4d39['enableDefaultAttributesIntegration']('htmlEmbed'),_0x2d4d39['descriptionFactory']['registerDescriptionCallback'](_0x1b8787=>{if('attribute'!=_0x1b8787['type'])return;const {data:_0x14e0b5}=_0x1b8787;if(_0x14e0b5&&'value'==_0x14e0b5['key']&&_0x1b8787['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x407a6e=o(_0x268276,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x268276,'*Change\x20%0\x20content*',_0x407a6e)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4b9cab=this['editor'],_0x45154b=_0x4b9cab['locale'];_0x4b9cab['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5698b5=>{if('formatBlock'!=_0x5698b5['type'])return;const {data:_0x59afe6}=_0x5698b5;if(_0x59afe6&&'htmlEmbed'==_0x59afe6['commandName']){const _0x3b5b91=o(_0x45154b,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x45154b,'*Change\x20%0\x20content*',_0x3b5b91)};}});}}class ut extends _0xb2d1b5{['afterInit'](){const _0x4c066f=this['editor'];if(!_0x4c066f['plugins']['has']('ImageEditing'))return;const _0x531984=_0x4c066f['plugins']['get']('TrackChangesEditing'),_0x1cc19a=_0x4c066f['plugins']['get']('ImageUtils'),_0x2f67a0=_0x4c066f['locale'];_0x531984['enableCommand']('insertImage'),_0x531984['descriptionFactory']['registerElementLabel']('imageBlock',_0x3eb559=>o(_0x2f67a0,'ELEMENT_IMAGE',_0x3eb559)),_0x531984['descriptionFactory']['registerElementLabel']('imageInline',_0x4b3e22=>o(_0x2f67a0,'ELEMENT_INLINE_IMAGE',_0x4b3e22)),_0x531984['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x2f67a0,'ELEMENT_CAPTION')),_0x4c066f['plugins']['has']('ImageUploadEditing')&&_0x531984['enableCommand']('uploadImage'),_0x4c066f['plugins']['has']('ImageBlockEditing')&&_0x4c066f['plugins']['has']('ImageInlineEditing')&&(_0x531984['enableCommand']('imageTypeInline',(_0x241da1,_0x3e618f)=>{const _0x20502e=_0x1cc19a['getClosestSelectedImageElement'](_0x4c066f['model']['document']['selection']);_0x4c066f['model']['change'](()=>{_0x531984['markBlockFormat'](_0x20502e,{'commandName':'imageTypeInline','commandParams':[_0x3e618f]},[],'convertBlockImageToInline');});}),_0x531984['enableCommand']('imageTypeBlock',(_0x2194eb,_0x4b135a)=>{_0x4c066f['model']['change'](_0x32f68a=>{let _0x27bef3=_0x1cc19a['getClosestSelectedImageElement'](_0x4c066f['model']['document']['selection']),_0x4fbbf4=_0x32f68a['createRangeOn'](_0x27bef3);const _0x2c2a32=_0x22534a['fromPosition'](_0x4fbbf4['start'],'toPrevious'),_0x51ee18=_0x22534a['fromPosition'](_0x4fbbf4['end'],'toNext');_0x531984['forceDefaultExecution'](()=>_0x2194eb(_0x4b135a)),_0x27bef3=_0x1cc19a['getClosestSelectedImageElement'](_0x4c066f['model']['document']['selection']),_0x4fbbf4=_0x32f68a['createRangeOn'](_0x27bef3);const _0x367b96=_0x32f68a['createRange'](_0x2c2a32,_0x51ee18);_0x2c2a32['detach'](),_0x51ee18['detach'](),_0x531984['markBlockFormat'](_0x27bef3,{'commandName':'imageTypeInline','commandParams':[_0x4b135a]},[],'convertInlineImageToBlock'),_0x367b96['start']['isBefore'](_0x4fbbf4['start'])&&_0x531984['markInsertion'](_0x32f68a['createRange'](_0x367b96['start'],_0x4fbbf4['start']),'convertInlineImageToBlock'),_0x4fbbf4['end']['isBefore'](_0x367b96['end'])&&_0x531984['markInsertion'](_0x32f68a['createRange'](_0x4fbbf4['end'],_0x367b96['end']),'convertInlineImageToBlock');});}),_0x531984['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x531984['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x531984['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x531984['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x531984['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x531984['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x1540bf])=>{const _0x31f423=_0x531984['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x3f2847=_0x1540bf['start'],_0x446a98=_0x1540bf['end'];const _0x14d2ac=_0x4c066f['model']['schema']['getNearestSelectionRange'](_0x3f2847,'backward'),_0x42db44=_0x4c066f['model']['schema']['getNearestSelectionRange'](_0x446a98,'forward');_0x14d2ac['isCollapsed']&&(_0x3f2847=_0x14d2ac['start']),_0x42db44['isCollapsed']&&(_0x446a98=_0x42db44['end']),_0x31f423([_0x4c066f['model']['createRange'](_0x3f2847,_0x446a98)]);}),_0x531984['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x34f86f),_0x531984['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x34f86f)),_0x4c066f['plugins']['has']('ImageCaptionEditing')&&(_0x531984['enableCommand']('toggleImageCaption',(_0x290e9d,_0x58a74b)=>{const _0x48286d=_0x4c066f['plugins']['get']('ImageCaptionUtils');let _0x5b36ed=_0x1cc19a['getClosestSelectedImageElement'](_0x4c066f['model']['document']['selection']),_0x2c1776=_0x48286d['getCaptionFromImageModelElement'](_0x5b36ed);_0x4c066f['model']['change'](()=>{if(_0x2c1776)return void _0x531984['markDeletion'](_0x4c066f['model']['createRangeOn'](_0x2c1776));const _0x21546a=_0x1cc19a['isBlockImage'](_0x5b36ed);_0x290e9d(_0x58a74b),_0x5b36ed=_0x1cc19a['getClosestSelectedImageElement'](_0x4c066f['model']['document']['selection']),_0x2c1776=_0x48286d['getCaptionFromImageModelElement'](_0x5b36ed),_0x531984['markInsertion'](_0x4c066f['model']['createRangeOn'](_0x2c1776),_0x21546a?null:'imageCaption');});}),_0x531984['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x34f86f));const _0x1ef665=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4b1a89(_0x49dcb0,_0x1c09f3){const _0x5da8fc=_0x1ef665['findIndex'](({type:_0x5c0b27,subType:_0x3f1c63})=>_0x49dcb0['type']==_0x5c0b27&&_0x49dcb0['subType']==_0x3f1c63),_0x21aa22=_0x1ef665['findIndex'](({type:_0x7c1ee2,subType:_0x54756f})=>_0x1c09f3['type']==_0x7c1ee2&&_0x1c09f3['subType']==_0x54756f);if(_0x5da8fc<0x0||_0x21aa22<0x0)return!0x1;const _0x55a24a=_0x49dcb0['getFirstRange'](),_0x49cd81=_0x1c09f3['getFirstRange']();if((0x0==_0x5da8fc||0x1==_0x5da8fc)&&0x2==_0x21aa22&&_0x55a24a['isIntersecting'](_0x49cd81))return!0x0;if(0x2==_0x5da8fc&&0x3==_0x21aa22){const _0xdb9577=_0x531984['_findSuggestions'](_0x55a24a,'insertion')['filter'](({suggestion:_0x56d682,meta:_0x5a63c1})=>_0x5a63c1['isOwn']&&'convertInlineImageToBlock'==_0x56d682['subType']);if(_0xdb9577['length']>0x1&&_0x49cd81['end']['isEqual'](_0x55a24a['start']))return!0x0;if(0x1==_0xdb9577['length']&&(_0x55a24a['start']['isEqual'](_0x49cd81['end'])||_0x55a24a['end']['isEqual'](_0x49cd81['start'])))return!0x0;}if(0x3==_0x5da8fc&&0x3==_0x21aa22&&_0x55a24a['start']['isBefore'](_0x49cd81['start'])){const _0x40d675=_0x55a24a['end']['nodeAfter'],_0x15fcd9=_0x49cd81['start']['nodeBefore'];return _0x1cc19a['isBlockImage'](_0x40d675)&&_0x40d675===_0x15fcd9;}return!0x1;}function _0x34f86f(_0x333b82,_0x2a4e01){return _0x4b1a89(_0x333b82,_0x2a4e01)?[_0x333b82,_0x2a4e01]:_0x4b1a89(_0x2a4e01,_0x333b82)?[_0x2a4e01,_0x333b82]:null;}_0x4c066f['plugins']['has']('ImageResize')&&(_0x531984['enableDefaultAttributesIntegration']('resizeImage'),_0x531984['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x2f67a0,'FORMAT_IMAGE_SIZE'))),_0x4c066f['plugins']['has']('ImageTextAlternativeEditing')&&_0x531984['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x4c066f['plugins']['has']('PictureEditing')&&_0x531984['descriptionFactory']['registerDescriptionCallback'](_0x451143=>{if('attribute'!=_0x451143['type'])return;const {data:_0x5037fc}=_0x451143;return _0x5037fc&&'sources'==_0x5037fc['key']?{'type':'format','content':''}:void 0x0;}),_0x4c066f['plugins']['has']('ImageSizeAttributes')&&_0x531984['descriptionFactory']['registerDescriptionCallback'](_0x2e7132=>{if('attribute'!=_0x2e7132['type'])return;const {data:_0x2e8db7}=_0x2e7132;return!_0x2e8db7||'width'!=_0x2e8db7['key']&&'height'!=_0x2e8db7['key']?void 0x0:{'type':'format','content':''};}),_0x531984['descriptionFactory']['registerDescriptionCallback'](_0x46d074=>{if(!!_0x1ef665['find'](({type:_0x47be7b,subType:_0xebc9fa})=>_0x46d074['type']==_0x47be7b&&_0x46d074['subType']==_0xebc9fa))return _0x46d074['previous']?{}:void 0x0;}),_0x531984['descriptionFactory']['registerDescriptionCallback'](_0x135895=>{if('insertion'==_0x135895['type']||'deletion'==_0x135895['type']){const _0x46fe2e=_0x135895['getContainedElement']();if(_0x46fe2e&&_0x46fe2e['is']('element','caption'))return{'type':'insertion'==_0x135895['type']?'addObject':'removeObject','element':_0x46fe2e,'quantity':0x1};}}),_0x531984['descriptionFactory']['registerDescriptionCallback'](_0x265f9f=>'formatBlock'==_0x265f9f['type']&&'convertInlineImageToBlock'==_0x265f9f['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x265f9f['type']&&'convertBlockImageToInline'==_0x265f9f['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x531984['descriptionFactory']['registerDescriptionCallback'](_0x5801ac=>{if('attribute'!=_0x5801ac['type'])return;const {data:_0x3aaa63}=_0x5801ac;if(!_0x3aaa63||'alt'!=_0x3aaa63['key'])return;const _0x4e16c2=_0x3aaa63['newValue'];return _0x4e16c2?{'type':'format','content':o(_0x2f67a0,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4e16c2+'\x22')}:{'type':'format','content':o(_0x2f67a0,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x49512d=this['editor'],_0xf0285b=_0x49512d['locale'];_0x49512d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x39a8cc=>{if('formatBlock'!=_0x39a8cc['type']&&'formatInline'!=_0x39a8cc['type'])return;const {data:_0x134ec2}=_0x39a8cc;if(_0x134ec2){if('imageTextAlternative'==_0x134ec2['commandName']){const _0x494b42=_0x134ec2['commandParams'][0x0]['newValue'];return _0x494b42?{'type':'format','content':o(_0xf0285b,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x494b42+'\x22')}:{'type':'format','content':o(_0xf0285b,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x134ec2['commandName']){const _0x464c65=_0x134ec2['commandParams'][0x0]['width'];return _0x464c65?{'type':'format','content':o(_0xf0285b,'*Set\x20image\x20width:*\x20%0',_0x464c65)}:{'type':'format','content':o(_0xf0285b,'*Reset\x20image\x20width*')};}}});}}class ft extends _0xb2d1b5{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x436653=this['editor']['locale'],_0x4bf36e=this['editor']['plugins']['get']('TrackChangesEditing');_0x4bf36e['enableDefaultAttributesIntegration']('replaceImageSource'),_0x4bf36e['descriptionFactory']['registerDescriptionCallback'](_0x14d6e=>{if('attribute'!=_0x14d6e['type'])return;const {data:_0x2da49a}=_0x14d6e;return _0x2da49a&&'src'==_0x2da49a['key']?_0x2da49a['newValue']&&_0x2da49a['oldValue']?{'type':'format','content':o(_0x436653,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0xb5e253=this['editor']['plugins']['get']('TrackChangesEditing');_0xb5e253['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0xb5e253['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xb5e253['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0xb5e253['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4c9c12=this['editor'],_0x355108=_0x4c9c12['locale'];_0x4c9c12['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5a8934=>{if('formatBlock'!=_0x5a8934['type']&&'formatInline'!=_0x5a8934['type'])return;const {data:_0x4e9367}=_0x5a8934;if(!_0x4e9367||'replaceImageSource'!=_0x4e9367['commandName'])return;return{'type':'format','content':o(_0x355108,'*Format:*\x20replace\x20image\x20URL')};});}}class ht extends _0xb2d1b5{['afterInit'](){const _0x3b4cb7=this['editor'];if(!_0x3b4cb7['plugins']['has']('ImageStyleEditing'))return;const _0x5a583b=_0x3b4cb7['plugins']['get']('TrackChangesEditing'),_0x40d30e=_0x3b4cb7['plugins']['get']('ImageUtils'),_0x2f8f01={};_0x5a583b['enableCommand']('imageStyle',(_0x2af620,_0x1ac0b5)=>{const _0x238a42=_0x3b4cb7['plugins']['get']('Users')['me'],_0x593b27=_0x3b4cb7['commands']['get']('imageStyle');let _0x55fcc2=_0x40d30e['getClosestSelectedImageElement'](_0x3b4cb7['model']['document']['selection']),_0x21e887=_0x3b4cb7['model']['createRangeOn'](_0x55fcc2),_0x348609=_0x593b27['value'];if(_0x348609==_0x1ac0b5['value'])return;const _0x2c137b={'commandName':'imageStyle','commandParams':[_0x1ac0b5],'formatGroupId':_0x43100d()};_0x3b4cb7['model']['change'](()=>{if(_0x5a583b['getSuggestions']()['filter'](_0x139904=>_0x139904['isInContent']&&_0x238a42==_0x139904['author']&&('formatBlock'==_0x139904['type']||'formatInline'==_0x139904['type'])&&('imageStylePreApply'==_0x139904['subType']||'imageStylePostApply'==_0x139904['subType'])&&_0x139904['getFirstRange']()['isEqual'](_0x21e887))['forEach'](_0x513704=>_0x5a583b['discardSuggestion'](_0x513704['head'])),_0x55fcc2=_0x40d30e['getClosestSelectedImageElement'](_0x3b4cb7['model']['document']['selection']),_0x21e887=_0x3b4cb7['model']['createRangeOn'](_0x55fcc2),_0x593b27['refresh'](),_0x3b4cb7['commands']['get']('imageTypeInline')['refresh'](),_0x3b4cb7['commands']['get']('imageTypeBlock')['refresh'](),_0x348609=_0x593b27['value'],_0x348609!=_0x1ac0b5['value'])return _0x40d30e['isInlineImage'](_0x55fcc2)&&_0x593b27['shouldConvertImageType'](_0x1ac0b5['value'],_0x55fcc2)?(_0x2af620({..._0x1ac0b5,'setImageSizes':!0x1}),_0x55fcc2=_0x40d30e['getClosestSelectedImageElement'](_0x3b4cb7['model']['document']['selection']),void _0x5a583b['markBlockFormat'](_0x55fcc2,{..._0x2c137b,'commandReversedParams':[{'value':_0x348609||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x40d30e['isBlockImage'](_0x55fcc2)?_0x5a583b['markBlockFormat'](_0x55fcc2,_0x2c137b,[],'imageStylePostApply'):_0x5a583b['markInlineFormat'](_0x21e887,_0x2c137b,'imageStylePostApply'));});});for(const _0x1d01f5 of _0x3b4cb7['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x2f8f01[_0x1d01f5['name']]=_0x1d01f5['title']['toLowerCase']();_0x5a583b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x5a583b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x5a583b['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x5a583b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x3228b8])=>{_0x40d30e['setImageNaturalSizeAttributes'](_0x3228b8['getContainedElement']());}),_0x5a583b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x45cad3,_0x41bb37)=>{_0x5a583b['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x45cad3,{'commandName':_0x41bb37['commandName'],'commandParams':_0x41bb37['commandReversedParams']});}),_0x5a583b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x488afe,_0x2c16e7){if(_0xee771c(_0x488afe,_0x2c16e7))return[_0x488afe,_0x2c16e7];if(_0xee771c(_0x2c16e7,_0x488afe))return[_0x2c16e7,_0x488afe];return null;});const _0xa58328=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xee771c(_0x1f61ed,_0x4ba783){const _0xf0a1a9=_0xa58328['findIndex'](({type:_0x5f4cd8,subType:_0x339f9f})=>_0x1f61ed['type']==_0x5f4cd8&&_0x1f61ed['subType']==_0x339f9f),_0xcaef3c=_0xa58328['findIndex'](({type:_0x368bd6,subType:_0x20e95a})=>_0x4ba783['type']==_0x368bd6&&_0x4ba783['subType']==_0x20e95a);if(_0xf0a1a9<0x0||_0xcaef3c<0x0)return!0x1;const _0x25be08=_0x1f61ed['getFirstRange'](),_0x1284bd=_0x4ba783['getFirstRange']();if((0x0==_0xf0a1a9||0x1==_0xf0a1a9)&&0x2==_0xcaef3c&&_0x25be08['isIntersecting'](_0x1284bd))return!0x0;if(0x2==_0xf0a1a9&&0x3==_0xcaef3c){const _0x5c2175=_0x5a583b['_findSuggestions'](_0x25be08,'insertion')['filter'](({suggestion:_0x4c48aa,meta:_0x4752ef})=>_0x4752ef['isOwn']&&'convertInlineImageToBlock'==_0x4c48aa['subType']);if(_0x5c2175['length']>0x1&&_0x1284bd['end']['isEqual'](_0x25be08['start']))return!0x0;if(0x1==_0x5c2175['length']&&(_0x25be08['start']['isEqual'](_0x1284bd['end'])||_0x25be08['end']['isEqual'](_0x1284bd['start'])))return!0x0;}if(0x3==_0xf0a1a9&&0x3==_0xcaef3c&&_0x25be08['start']['isBefore'](_0x1284bd['start'])){const _0x138642=_0x25be08['end']['nodeAfter'],_0x361f81=_0x1284bd['start']['nodeBefore'];return _0x40d30e['isBlockImage'](_0x138642)&&_0x138642===_0x361f81;}return!0x1;}_0x3b4cb7['model']['document']['registerPostFixer'](()=>{let _0x45a4eb=!0x1;const _0x5726b3=Array['from'](_0x3b4cb7['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x21be7e,data:_0x24fb6e}of _0x5726b3){const {group:_0x3b76d8,type:_0x419e05,subType:_0x1ad483,id:_0x574ea4}=_0x5a583b['_splitMarkerName'](_0x21be7e);if('suggestion'==_0x3b76d8&&_0x5a583b['hasSuggestion'](_0x574ea4)){if('formatBlock'==_0x419e05&&('imageStylePreApply'==_0x1ad483||'imageStylePostApply'==_0x1ad483)){const _0x50a31a=_0x5a583b['getSuggestion'](_0x574ea4);if(_0x24fb6e['newRange']){const _0x165cf0=_0x50a31a['getFirstRange']()['getContainedElement']();if(_0x40d30e['isBlockImage'](_0x165cf0))continue;_0x5a583b['discardSuggestion'](_0x50a31a),_0x45a4eb=!0x0;}}if('insertion'==_0x419e05&&'imageCaption'==_0x1ad483&&!_0x24fb6e['newRange']){const _0x23238e=_0x5a583b['getSuggestion'](_0x574ea4);_0x23238e['next']&&_0x23238e['next']['isInContent']&&(_0x5a583b['discardSuggestion'](_0x23238e['next']),_0x45a4eb=!0x0);}}}return _0x45a4eb;}),this['_registerLegacyDescription'](_0x2f8f01);}['_registerLegacyDescription'](_0x11c3a2){const _0x4b3137=this['editor'],_0x485f91=_0x4b3137['locale'];_0x4b3137['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x112915=>{if('formatBlock'!=_0x112915['type']&&'formatInline'!=_0x112915['type'])return;const {data:_0x50ef0c}=_0x112915;if(!_0x50ef0c||'imageStyle'!=_0x50ef0c['commandName'])return;const _0x456539=_0x50ef0c['commandParams'][0x0]['value'];return _0x32efc5('side'===_0x456539?o(_0x485f91,'FORMAT_SIDE_IMAGE'):_0x11c3a2[_0x456539]||_0x456539);function _0x32efc5(_0x5620c7){return{'type':'format','content':o(_0x485f91,'*Format:*\x20%0',_0x5620c7)};}});}}class lt extends _0xb2d1b5{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x492244){super(_0x492244),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x55cdca=this['editor'],_0x22730b=_0x55cdca['commands']['get']('importWord'),_0x286e5f=_0x55cdca['commands']['get']('trackChanges');_0x22730b&&(_0x22730b['on']('execute',(_0x4a6393,[,_0x5f4e02])=>{this['_trackChangesValueDuringImport']=_0x286e5f['value'],_0x5f4e02['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x22730b,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x22730b,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x286e5f['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x55cdca['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x3f51ec,_0x2b3e2d){const {suggestions:_0x40dc0c}=_0x2b3e2d,_0x20c737=this['editor']['commands']['get']('trackChanges'),_0x4195ae=_0x20c737['value'];this['_trackChangesValueDuringImport']!==_0x4195ae&&(_0x20c737['execute'](),this['_trackChangesExecuted']=!0x0),_0x40dc0c&&_0x40dc0c['forEach'](({id:_0x538c5b,type:_0x164184,author:_0x227b39,created_at:_0x362a97})=>{const _0x5aa6e0={'id':_0x538c5b,'type':_0x164184,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x227b39,'createdAt':_0x362a97?new Date(_0x362a97):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x5aa6e0);});}}class gt extends _0xb2d1b5{['afterInit'](){const _0x33af1d=this['editor'],_0x435313=_0x33af1d['plugins']['get']('TrackChangesEditing');if(_0x33af1d['plugins']['has']('IndentEditing')&&(_0x435313['enableCommand']('indent'),_0x435313['enableCommand']('outdent')),_0x33af1d['plugins']['has']('IndentBlock')){for(const _0x8b76b7 of['indentBlock','outdentBlock'])_0x435313['enableDefaultAttributesIntegration'](_0x8b76b7);if(_0x33af1d['plugins']['has']('ListEditing')){for(const _0x3a690f of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x435313['enableDefaultAttributesIntegration'](_0x3a690f);}}const _0x2701ae=_0x33af1d['locale'];_0x435313['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x2701ae,'FORMAT_INDENT')),_0x435313['descriptionFactory']['registerAttributeLabel']('blockIndentList',o(_0x2701ae,'FORMAT_INDENT')),_0x435313['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',o(_0x2701ae,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3a65dd=this['editor'],_0x354116=_0x3a65dd['locale'],_0x2109ea=_0x3a65dd['plugins']['get']('TrackChangesEditing');_0x2109ea['descriptionFactory']['registerDescriptionCallback'](_0x5e8dfd=>{if('formatBlock'!=_0x5e8dfd['type'])return;const {data:_0x3fbb64}=_0x5e8dfd;if(!_0x3fbb64)return;if('indentBlock'!=_0x3fbb64['commandName']&&'outdentBlock'!=_0x3fbb64['commandName'])return;const _0x5dce5a=_0x5e8dfd['getItems']()[0x0],_0x13518d=_0x2109ea['descriptionFactory']['getItemLabel'](_0x5dce5a);return'indentBlock'==_0x3fbb64['commandName']?{'type':'format','content':o(_0x354116,'*Indent:*\x20%0',_0x13518d)}:'outdentBlock'==_0x3fbb64['commandName']?{'type':'format','content':o(_0x354116,'*Outdent:*\x20%0',_0x13518d)}:void 0x0;});}}class mt extends _0xb2d1b5{static get['requires'](){return[_0x3ca699];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class dt extends _0xb2d1b5{['afterInit'](){const _0x4ffb51=this['editor'];if(!_0x4ffb51['plugins']['has']('LinkEditing'))return;const _0x52360f=_0x4ffb51['plugins']['get']('TrackChangesEditing'),_0x5e0fad=_0x4ffb51['commands']['get']('link');_0x52360f['enableDefaultAttributesIntegration']('link'),_0x52360f['enableDefaultAttributesIntegration']('unlink');for(const _0x194a00 of _0x5e0fad['manualDecorators'])_0x52360f['descriptionFactory']['registerAttributeLabel'](_0x194a00['id'],'link\x20('+_0x194a00['label']['toLowerCase']()+')');_0x52360f['descriptionFactory']['registerDescriptionCallback'](_0x4a6b06=>{if('attribute'!=_0x4a6b06['type'])return;const {data:_0x555735}=_0x4a6b06;if(!_0x555735||'linkHref'!=_0x555735['key'])return;const _0x9a2b7c=_0x555735['newValue'],_0x1a415c=_0x4ffb51['locale'];return{'type':'format','content':null==_0x9a2b7c?o(_0x1a415c,'*Remove\x20link*'):o(_0x1a415c,'*Set\x20link:*\x20%0','\x22'+_0x9a2b7c+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x422e62=this['editor'],_0x33f667=_0x422e62['locale'];_0x422e62['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ddd11=>{if('formatInline'!=_0x4ddd11['type'])return;const {data:_0x24dc8e}=_0x4ddd11;if(_0x24dc8e){if('link'==_0x24dc8e['commandName']){const _0x2236ea=_0x24dc8e['commandParams'][0x0];return{'type':'format','content':o(_0x33f667,'*Set\x20link:*\x20%0','\x22'+_0x2236ea+'\x22')};}return'unlink'==_0x24dc8e['commandName']?{'type':'format','content':o(_0x33f667,'*Remove\x20link*')}:void 0x0;}});}}class pt extends _0xb2d1b5{['afterInit'](){const _0x1915a2=this['editor'],_0x4815f8=_0x1915a2['locale'];if(!_0x1915a2['plugins']['has']('LegacyListEditing'))return;const _0x16f0a4=_0x1915a2['plugins']['get']('TrackChangesEditing'),_0x45a64d=_0x1915a2['plugins']['has']('LegacyTodoListEditing');function _0x4b9ca6(_0x4b5d85){return()=>{const _0x59281c=_0x1915a2['model']['document']['selection'],_0x2daae1=_0x1915a2['commands']['get'](_0x4b5d85);if(_0x2daae1['value'])return void _0x1915a2['execute']('paragraph',{});const _0x381673=_0x4b5d85['slice'](0x0,-0x4),_0x181d0c=function(_0x598331,_0x4fb414,_0x1f2c58){let _0x260773=Array['from'](_0x598331)['filter'](_0x288889=>function(_0xacd61f,_0x3b6b5a){return _0x3b6b5a['checkChild'](_0xacd61f['parent'],'listItem')&&!_0x3b6b5a['isObject'](_0xacd61f);}(_0x288889,_0x1f2c58));_0x260773=_0x260773['filter'](_0x2a2496=>!_0x2a2496['is']('element','listItem')||_0x2a2496['getAttribute']('listType')!=_0x4fb414);const _0x138a24=new Set();for(const _0x56ecb2 of _0x260773)_0x56ecb2['is']('element','listItem')?_0x138a24['add'](Le(_0x56ecb2)):_0x138a24['add'](_0x56ecb2);return Array['from'](_0x138a24);}(_0x59281c['getSelectedBlocks'](),_0x381673,_0x1915a2['model']['schema']);_0x1915a2['model']['change'](()=>{for(const _0x597047 of _0x181d0c)_0x16f0a4['markBlockFormat'](_0x597047,{'commandName':_0x4b5d85,'commandParams':[{'forceValue':!_0x2daae1['value']}],'formatGroupId':'blockName'},Ee(_0x597047));});};}function _0x438631(_0x8073c8){return()=>{const _0x47aa0a=function(_0x10583d){let _0x47dfbe=Array['from'](_0x10583d);const _0x3f09e0=_0x47dfbe['findIndex'](_0x2462f1=>'listItem'!=_0x2462f1['name']);return _0x3f09e0>-0x1&&(_0x47dfbe=_0x47dfbe['slice'](0x0,_0x3f09e0)),_0x47dfbe;}(_0x1915a2['model']['document']['selection']['getSelectedBlocks']()),_0x300ded=_0x1915a2['model']['createRange'](_0x1915a2['model']['createPositionAt'](_0x47aa0a[0x0],'before'),_0x1915a2['model']['createPositionAt'](_0x47aa0a[_0x47aa0a['length']-0x1],'end'));_0x1915a2['model']['change'](()=>{_0x16f0a4['markBlockFormat'](_0x300ded,{'commandName':_0x8073c8,'commandParams':[],'formatGroupId':'listIndent'},function(_0x4bff24){const _0x40a7cd=new Set();for(const _0x1b4fd9 of _0x4bff24){let _0x5c5353=_0x1b4fd9['nextSibling'];for(;_0x5c5353&&_0x5c5353['getAttribute']('listIndent')>_0x1b4fd9['getAttribute']('listIndent');)_0x40a7cd['add'](_0x5c5353),_0x5c5353=_0x5c5353['nextSibling'];}return Array['from'](_0x40a7cd);}(_0x47aa0a));});};}_0x16f0a4['enableCommand']('numberedList',_0x4b9ca6('numberedList')),_0x16f0a4['enableCommand']('bulletedList',_0x4b9ca6('bulletedList')),_0x45a64d&&_0x16f0a4['enableCommand']('todoList',_0x4b9ca6('todoList')),_0x16f0a4['enableCommand']('indentList',_0x438631('indentList')),_0x16f0a4['enableCommand']('outdentList',_0x438631('outdentList')),_0x45a64d&&_0x16f0a4['enableCommand']('checkTodoList',()=>{const _0x52886a=_0x1915a2['commands']['get']('checkTodoList'),_0x35465a=Array['from'](_0x52886a['_selectedElements']);_0x35465a['filter'](_0x2c3924=>_0x2c3924['getAttribute']('todoListChecked')!=_0x52886a['value']),_0x1915a2['model']['change'](()=>{for(const _0x508161 of _0x35465a)_0x16f0a4['markBlockFormat'](_0x508161,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x52886a['value']}]});});}),_0x16f0a4['descriptionFactory']['registerElementLabel']('listItem',_0x4fcd4a=>o(_0x4815f8,'ELEMENT_LIST_ITEM',_0x4fcd4a)),_0x16f0a4['descriptionFactory']['registerDescriptionCallback'](_0x1a0dae=>{if('formatBlock'!=_0x1a0dae['type']&&'formatInline'!=_0x1a0dae['type'])return;const {data:_0x4b1227}=_0x1a0dae;if(_0x4b1227){if('numberedList'==_0x4b1227['commandName']||'bulletedList'==_0x4b1227['commandName']||'todoList'==_0x4b1227['commandName'])switch(_0x4b1227['commandName']['replace']('List','')){case'bulleted':return _0xb6405f(o(_0x4815f8,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xb6405f(o(_0x4815f8,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xb6405f(o(_0x4815f8,'ELEMENT_TODO_LIST'));}if('indentList'==_0x4b1227['commandName'])return{'type':'format','content':o(_0x4815f8,'*Indent:*\x20%0',o(_0x4815f8,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x4b1227['commandName'])return{'type':'format','content':o(_0x4815f8,'*Outdent:*\x20%0',o(_0x4815f8,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x4b1227['commandName'])return _0x4b1227['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4815f8,'*Check\x20item*')}:{'type':'format','content':o(_0x4815f8,'*Uncheck\x20item*')};}function _0xb6405f(_0x19c40c){return{'type':'format','content':o(_0x4815f8,'*Change\x20to:*\x20%0',_0x19c40c)};}});}}function Le(_0x4da017){const _0x587e8a=_0x4da017['getAttribute']('listIndent');if(0x0==_0x587e8a)return _0x4da017;let _0x4feb6a=_0x4da017;for(;_0x4da017['previousSibling']&&_0x4da017['previousSibling']['is']('element','listItem');){const _0x4d2158=_0x4da017['previousSibling']['getAttribute']('listIndent');if(_0x4d2158==_0x587e8a)_0x4feb6a=_0x4da017['previousSibling'];else{if(_0x4d2158<_0x587e8a)break;}_0x4da017=_0x4da017['previousSibling'];}return _0x4feb6a;}function Ee(_0x4b0ee3){const _0x52ceea=[];if(_0x4b0ee3['is']('element','listItem')&&_0x4b0ee3['getAttribute']('listIndent')>0x0){let _0x19a489=_0x4b0ee3['nextSibling'];for(;_0x19a489&&'listItem'==_0x19a489['name']&&_0x19a489['getAttribute']('listIndent')==_0x4b0ee3['getAttribute']('listIndent');)_0x52ceea['push'](_0x19a489),_0x19a489=_0x19a489['nextSibling'];}return _0x52ceea;}class wt extends _0xb2d1b5{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x41b7f4=this['editor']['config']['get']('list.properties'),_0x3acc77=this['editor']['plugins']['get']('TrackChangesEditing');_0x41b7f4['styles']&&_0x3acc77['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x41b7f4['reversed']&&_0x3acc77['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x41b7f4['startIndex']&&_0x3acc77['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x3acc77['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x5859aa,_0x5bd82d={}){const _0x5cb0b7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3bebd4=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x5cb0b7['markMultiRangeBlockFormat'](_0x3bebd4,{'commandName':'listStyle','commandParams':[{'type':_0x5bd82d['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x1e2066,_0xbccac8={}){const _0x4be486=this['editor']['plugins']['get']('TrackChangesEditing'),_0x21b417=this['_getSuggestionBlocks'](_0x1c0e4f=>_0x1c0e4f['is']('element','listItem')&&'numbered'===_0x1c0e4f['getAttribute']('listType'));if(_0x21b417['length']<0x1)return;const _0x43b757=_0x21b417['map'](_0x314b17=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x314b17,'before'),this['editor']['model']['createPositionAt'](_0x314b17,0x0)));this['editor']['model']['change'](()=>{_0x4be486['markMultiRangeBlockFormat'](_0x43b757,{'commandName':'listReversed','commandParams':[{'reversed':_0xbccac8['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x24c653,_0x330002={}){const _0x88c3da=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2c94b5=this['_getSuggestionBlocks'](_0x361628=>_0x361628['is']('element','listItem')&&'numbered'===_0x361628['getAttribute']('listType'));if(_0x2c94b5['length']<0x1)return;const _0x12886d=_0x2c94b5['map'](_0x30b9bf=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x30b9bf,'before'),this['editor']['model']['createPositionAt'](_0x30b9bf,0x0)));this['editor']['model']['change'](()=>{_0x88c3da['markMultiRangeBlockFormat'](_0x12886d,{'commandName':'listStart','commandParams':[{'startIndex':_0x330002['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x4c8fa6){if('formatBlock'!=_0x4c8fa6['type']&&'formatInline'!=_0x4c8fa6['type'])return;const _0x427fc2=this['editor']['locale'],{data:_0x570bc4}=_0x4c8fa6;if(!_0x570bc4)return;let _0x3cdd71,_0x103b73;switch(_0x570bc4['commandName']){case'listStyle':_0x3cdd71='*Change\x20to:*\x20%0',_0x103b73={'type':'format','content':o(_0x427fc2,_0x3cdd71,o(_0x427fc2,this['_getTranslationKeyForListStyle'](_0x570bc4['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3cdd71=_0x570bc4['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x103b73={'type':'format','content':o(_0x427fc2,_0x3cdd71)};break;case'listStart':_0x3cdd71='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x103b73={'type':'format','content':o(_0x427fc2,_0x3cdd71,_0x570bc4['commandParams'][0x0]['startIndex'])};}return _0x103b73;}['_getSuggestionBlocksForListStyle'](){const _0x568907=this['editor']['plugins']['get']('LegacyListUtils');let _0x56b5ea=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x56b5ea[0x0]?.['is']('element','listItem')&&_0x56b5ea['unshift'](..._0x568907['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x56b5ea[_0x56b5ea['length']-0x1]?.['is']('element','listItem')&&_0x56b5ea['push'](..._0x568907['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x56b5ea=[...new Set(_0x56b5ea)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x56b5ea=_0x56b5ea['filter'](_0x531d16=>_0x531d16['is']('element','listItem'))),_0x56b5ea;}['_getSuggestionBlocks'](_0x4d1c45){const _0x12e9d7=this['editor']['plugins']['get']('LegacyListUtils');let _0x488ee7=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x4d1c45)['map'](_0x4ea67f=>{const _0x154d3f=this['editor']['model']['createPositionAt'](_0x4ea67f,0x0);return[..._0x12e9d7['getSiblingNodes'](_0x154d3f,'backward'),..._0x12e9d7['getSiblingNodes'](_0x154d3f,'forward')];})['flat']();return _0x488ee7=[...new Set(_0x488ee7)],_0x488ee7;}['_getTranslationKeyForListStyle'](_0x2b443d){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x2b443d)||'default')['toUpperCase']()+'_LIST_'+_0x2b443d['toUpperCase']()['replace'](/-/g,'_');}}class kt extends _0xb2d1b5{['afterInit'](){const _0x5da138=this['editor'];if(!_0x5da138['plugins']['has']('MediaEmbedEditing'))return;const _0x180e9d=_0x5da138['plugins']['get']('TrackChangesEditing'),_0x2094db=_0x5da138['locale'];_0x180e9d['enableCommand']('mediaEmbed'),_0x180e9d['descriptionFactory']['registerElementLabel']('media',_0x55334b=>o(_0x2094db,'ELEMENT_MEDIA',_0x55334b));}}class bt extends _0xb2d1b5{['afterInit'](){const _0x52cf3d=this['editor'];_0x52cf3d['plugins']['has']('MentionEditing')&&_0x52cf3d['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class yt extends _0xb2d1b5{['afterInit'](){const _0xebab59=this['editor'];if(!_0xebab59['plugins']['has']('MergeFieldsEditing'))return;const _0x5c4443=_0xebab59['plugins']['get']('TrackChangesEditing'),_0x546e0=_0xebab59['locale'];_0x5c4443['enableCommand']('insertMergeField'),_0x5c4443['enableCommand']('insertMergeFieldBlock'),_0x5c4443['enableCommand']('insertMergeFieldImage'),_0x5c4443['descriptionFactory']['registerElementLabel']('mergeField',_0x37d6a3=>o(_0x546e0,'ELEMENT_MERGE_FIELD',_0x37d6a3)),_0x5c4443['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x5547e7=>o(_0x546e0,'ELEMENT_MERGE_FIELD',_0x5547e7)),_0x5c4443['descriptionFactory']['registerDescriptionCallback'](_0x5bc0ba=>{if('insertion'!=_0x5bc0ba['type']&&'deletion'!=_0x5bc0ba['type'])return;const _0x524919=_0x5bc0ba['getContainedElement']();if(null==_0x524919)return;const _0x28de5e=_0xebab59['plugins']['get']('MergeFieldsEditing');let _0x835c07;switch(_0x28de5e['getMergeFieldType'](_0x524919)){case null:return;case'image':{const _0x90dc6b=_0x28de5e['unwrapAffixes'](_0x524919['getAttribute']('src'));_0x835c07=_0x28de5e['getLabel'](_0x90dc6b)||_0x90dc6b;break;}default:{const _0x174df5=_0x524919['getAttribute']('id');_0x835c07=_0x28de5e['getLabel'](_0x174df5)||_0x174df5;break;}}return'insertion'==_0x5bc0ba['type']?{'type':'insertion','content':o(_0x546e0,'*Insert:*\x20%0','\x22'+_0x835c07+'\x22\x20'+o(_0x546e0,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x546e0,'*Remove:*\x20%0','\x22'+_0x835c07+'\x22\x20'+o(_0x546e0,'ELEMENT_MERGE_FIELD'))};});}}class jt extends _0xb2d1b5{['afterInit'](){const _0x2b597d=this['editor'],_0x646ea8=_0x2b597d['plugins']['get']('TrackChangesEditing');_0x2b597d['plugins']['has']('MultiLevelList')&&(_0x646ea8['enableDefaultAttributesIntegration']('multiLevelList'),_0x646ea8['descriptionFactory']['registerDescriptionCallback'](_0x56a51c=>this['handleDescriptions'](_0x56a51c)));}['handleDescriptions'](_0x305af7){const _0x53559a=this['editor']['locale'],{data:_0x2195c6}=_0x305af7,_0x4217cb={'type':'format','content':''};if(_0x2195c6&&'listMarkerStyle'==_0x2195c6['key']){if(!_0x2195c6['oldValue'])return{'type':'format','content':o(_0x53559a,'*Set\x20format:*\x20%0',o(_0x53559a,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2195c6['newValue']+')'};if(!_0x2195c6['newValue']){let _0x1511ed=_0x305af7['head'];for(;_0x1511ed;){if(_0x1511ed['data']&&'listType'==_0x1511ed['data']['key']&&_0x1511ed['data']['newValue'])return _0x4217cb;_0x1511ed=_0x1511ed['next'];}return{'type':'format','content':o(_0x53559a,'*Remove\x20format:*\x20%0',o(_0x53559a,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2195c6['oldValue']+')'};}}}}class St extends _0xb2d1b5{['afterInit'](){const _0x3b776e=this['editor'];if(!_0x3b776e['plugins']['has']('PageBreakEditing'))return;_0x3b776e['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x3d11d9=_0x3b776e['plugins']['get']('TrackChangesEditing'),_0x2951de=_0x3b776e['locale'];_0x3d11d9['descriptionFactory']['registerElementLabel']('pageBreak',_0x46296=>o(_0x2951de,'ELEMENT_PAGE_BREAK',_0x46296));}}class It extends _0xb2d1b5{['afterInit'](){const _0x3a5211=this['editor'];if(!_0x3a5211['plugins']['has']('Paragraph'))return;const _0x249c59=_0x3a5211['locale'],_0x35c5ac=_0x3a5211['plugins']['get']('TrackChangesEditing');_0x35c5ac['descriptionFactory']['registerElementLabel']('paragraph',_0x2ba34c=>o(_0x249c59,'ELEMENT_PARAGRAPH',_0x2ba34c)),_0x35c5ac['enableDefaultAttributesIntegration']('paragraph'),_0x35c5ac['enableCommand']('insertParagraph');const _0x563650=_0x35c5ac['descriptionFactory'];_0x563650['registerDescriptionCallback'](_0x583bba=>{if('insertion'!==_0x583bba['type'])return;const {start:_0x24adb1,end:_0x53e377}=_0x583bba['getFirstRange']();if(!_0x24adb1['isTouching'](_0x53e377)||!_0x24adb1['nodeAfter'])return;const _0x323736=_0x3a5211['model']['schema'],_0x2f1a0d=_0x24adb1['nodeAfter'];return _0x323736['isBlock'](_0x2f1a0d)&&!_0x323736['isLimit'](_0x2f1a0d)&&_0x323736['checkChild'](_0x2f1a0d,'$text')?{'type':'insertion','content':o(_0x249c59,'*Insert:*\x20%0',_0x563650['getItemLabel'](_0x2f1a0d,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x539b40=this['editor'],_0x24d6d9=_0x539b40['locale'];_0x539b40['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x238696=>{if('formatBlock'!=_0x238696['type'])return;const {data:_0x2aa02e}=_0x238696;return _0x2aa02e&&'paragraph'==_0x2aa02e['commandName']?{'type':'format','content':o(_0x24d6d9,'*Change\x20to:*\x20%0',o(_0x24d6d9,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class At extends _0xb2d1b5{['afterInit'](){const _0x5641c3=this['editor'];_0x5641c3['commands']['get']('replaceSource')&&_0x5641c3['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class _t extends _0xb2d1b5{['afterInit'](){const _0x44bfed=this['editor'];if(!_0x44bfed['plugins']['has']('RemoveFormatEditing'))return;_0x44bfed['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1430d9=this['editor'];_0x1430d9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x32743a=>{if('formatBlock'!=_0x32743a['type']&&'formatInline'!=_0x32743a['type'])return;const {data:_0x185a44}=_0x32743a;return _0x185a44&&'removeFormat'==_0x185a44['commandName']?{'type':'format','content':o(_0x1430d9['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class Ct extends _0xb2d1b5{['afterInit'](){const _0x2ce0a9=this['editor'];if(!_0x2ce0a9['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x5d83af=_0x2ce0a9['plugins']['get']('TrackChangesEditing');_0x5d83af['enableCommand']('goToPreviousRestrictedEditingException'),_0x5d83af['enableCommand']('goToNextRestrictedEditingException');const _0x59d428=_0x2ce0a9['plugins']['get']('RestrictedEditingModeEditing');_0x59d428['enableCommand']('trackChanges'),_0x59d428['enableCommand']('acceptSuggestion'),_0x59d428['enableCommand']('discardSuggestion'),_0x59d428['enableCommand']('acceptAllSuggestions'),_0x59d428['enableCommand']('discardAllSuggestions'),_0x59d428['enableCommand']('acceptSelectedSuggestions'),_0x59d428['enableCommand']('discardSelectedSuggestions');}}class Nt extends _0xb2d1b5{['afterInit'](){const _0x2555da=this['editor'];if(!_0x2555da['plugins']['has']('ShiftEnter'))return;const _0x56ada7=_0x2555da['plugins']['get']('TrackChangesEditing');_0x56ada7['enableCommand']('shiftEnter'),_0x56ada7['descriptionFactory']['registerElementLabel']('softBreak',_0x48db13=>o(_0x2555da['locale'],'ELEMENT_LINE_BREAK',_0x48db13));}}function cn(_0x1bc9df,_0x2436f0,_0x48a263){const _0x154a10=[];for(const _0x3a94ec of _0x2436f0['getItems']())_0x3a94ec['hasAttribute'](_0x1bc9df)&&_0x154a10['push'](_0x48a263['createRangeOn'](_0x3a94ec));return _0x154a10;}class $t extends _0xb2d1b5{['afterInit'](){const _0x137937=this['editor'],_0x995da3=_0x137937['plugins']['get']('TrackChangesEditing');_0x137937['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x995da3['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x596199=this['editor'],_0x1b1950=_0x596199['model'],_0x24b21b=_0x596199['locale'],_0x21d6cd=_0x596199['plugins']['get']('TrackChangesEditing'),_0x50a0d9='restrictedEditingException',_0x23853c=_0x596199['commands']['get'](_0x50a0d9);_0x21d6cd['enableCommand'](_0x50a0d9,(_0x5b7595,_0x31f6f8={})=>{const _0x23737c=_0x1b1950['document']['selection'];if(_0x23737c['isCollapsed'])return void _0x5b7595(_0x31f6f8);const _0x59656f=void 0x0!==_0x31f6f8['forceValue']?_0x31f6f8['forceValue']:!_0x23853c['value'];_0x1b1950['change'](()=>{const _0x387b24=Array['from'](_0x23737c['getRanges']());for(const _0x4cc80a of _0x387b24){const _0x20b7b5=_0x59656f?[_0x4cc80a]:cn(_0x50a0d9,_0x4cc80a,_0x1b1950);for(const _0x52ba4c of _0x20b7b5)_0x21d6cd['markInlineFormat'](_0x52ba4c,{'commandName':_0x50a0d9,'commandParams':[{'forceValue':_0x59656f}]});}});}),_0x21d6cd['descriptionFactory']['registerDescriptionCallback'](_0xd625ef=>{if('formatBlock'!=_0xd625ef['type']&&'formatInline'!=_0xd625ef['type'])return;const {data:_0x3222e7}=_0xd625ef;return _0x3222e7&&_0x3222e7['commandName']==_0x50a0d9?_0x3222e7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x24b21b,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x24b21b,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x301032=this['editor'],_0x27299e=_0x301032['locale'],_0x4cbe01=_0x301032['plugins']['get']('TrackChangesEditing'),_0x4826ab='restrictedEditingExceptionBlock',_0x3f4eb6=this['editor']['commands']['get'](_0x4826ab);_0x4cbe01['enableCommand'](_0x4826ab,(_0x15db59,_0x58b535={})=>{const _0x2a26ba=this['editor']['model']['document']['selection'],_0x30be7f=_0x58b535&&void 0x0!==_0x58b535['forceValue']?_0x58b535['forceValue']:!_0x3f4eb6['value'];let _0x46187a=[];if(_0x30be7f){const _0x3dcc4e=Array['from'](_0x2a26ba['getSelectedBlocks']())['filter'](_0x31a2aa=>function(_0x133f3c){return!!_0x133f3c['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x31a2aa)||function(_0x1fd43a,_0x5c53ab){const _0x24795f=_0x5c53ab['createContext'](_0x1fd43a['parent']);if(!_0x5c53ab['checkChild'](_0x24795f,'restrictedEditingException'))return!0x1;if(!_0x5c53ab['checkChild'](_0x24795f['push']('restrictedEditingException'),_0x1fd43a))return!0x1;return!0x0;}(_0x31a2aa,this['editor']['model']['schema']));_0x46187a=to(_0x3dcc4e,_0x301032['model']);}else{const _0x483ba5=Array['from'](_0x2a26ba['getSelectedBlocks']())['map'](_0x4ad047=>function(_0x562ccd){let _0x3f8e43=_0x562ccd;for(;_0x3f8e43['parent'];){if('restrictedEditingException'==_0x3f8e43['parent']['name'])return _0x3f8e43;_0x3f8e43=_0x3f8e43['parent'];}return null;}(_0x4ad047))['filter'](_0x121470=>!!_0x121470);_0x46187a=to(_0x483ba5,_0x301032['model']);}_0x301032['model']['change'](()=>{for(const _0x27d64c of _0x46187a)_0x4cbe01['markBlockFormat'](_0x27d64c,{'commandName':_0x4826ab,'commandParams':[{'forceValue':_0x30be7f}]});});}),_0x4cbe01['descriptionFactory']['registerDescriptionCallback'](_0x16056b=>{const {data:_0x5e114f}=_0x16056b;if(_0x5e114f&&_0x5e114f['commandName']==_0x4826ab)return _0x5e114f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x27299e,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x27299e,'FORMAT_RESTRICTED_DISABLED')};});}}class vt extends _0xb2d1b5{['afterInit'](){const _0x5819a7=this['editor'];if(!_0x5819a7['plugins']['has']('Style')||!_0x5819a7['plugins']['has']('DataSchema'))return;const _0x136c10=_0x5819a7['plugins']['get']('TrackChangesEditing'),_0x3f9881=_0x5819a7['locale'],_0x820992=_0x5819a7['config']['get']('style')||{},_0x5d3c9b=_0x5819a7['plugins']['get']('GeneralHtmlSupport'),_0x27f3b8=_0x5819a7['plugins']['get']('StyleUtils')['normalizeConfig'](_0x5819a7['plugins']['get']('DataSchema'),_0x820992['definitions']);_0x136c10['enableDefaultAttributesIntegration']('style');const _0x1450ef=new Set();for(const _0x5d447b of _0x27f3b8['block']){const _0x543d8f=_0x5d3c9b['getGhsAttributeNameForElement'](_0x5d447b['element']);_0x1450ef['add'](_0x543d8f);}const _0x3b8eef=new Set();for(const _0x24b522 of _0x27f3b8['inline']){const _0x13ea42=_0x5d3c9b['getGhsAttributeNameForElement'](_0x24b522['element']);_0x3b8eef['add'](_0x13ea42);for(const _0x1d8c3e of _0x24b522['ghsAttributes'])_0x3b8eef['add'](_0x1d8c3e);}for(const _0x422ba9 of _0x1450ef)_0x136c10['descriptionFactory']['registerAttributeLabel'](_0x422ba9,o(_0x3f9881,'FORMAT_STYLE'));for(const _0x2872e7 of _0x3b8eef)_0x136c10['descriptionFactory']['registerAttributeLabel'](_0x2872e7,o(_0x3f9881,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5c347a=this['editor'],_0x105729=_0x5c347a['locale'];_0x5c347a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4f30df=>{if('formatBlock'!=_0x4f30df['type']&&'formatInline'!=_0x4f30df['type'])return;const {data:_0x4287ca}=_0x4f30df;return _0x4287ca&&'style'===_0x4287ca['commandName']?_0x4287ca['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x105729,'*Set\x20format:*\x20%0',_0x4287ca['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x105729,'*Remove\x20format:*\x20%0',_0x4287ca['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Dt extends _0xb2d1b5{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x3173fe){super(_0x3173fe),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x5c0096=this['editor'],_0x154421=_0x5c0096['model']['document']['selection'];if(!_0x5c0096['plugins']['has']('TableEditing'))return;const _0x3cb0f9=_0x5c0096['locale'],_0xbeb673=_0x5c0096['plugins']['get']('TrackChangesEditing'),_0x2250cb=_0x5c0096['plugins']['get']('TableUtils');_0xbeb673['descriptionFactory']['registerElementLabel']('table',_0x197523=>o(_0x3cb0f9,'ELEMENT_TABLE',_0x197523)),this['_setupColumnsRowsFixing'](),_0xbeb673['enableCommand']('insertTable'),_0xbeb673['enableCommand']('selectTableRow'),_0xbeb673['enableCommand']('selectTableColumn');for(const _0xdc3cc9 of['insertTableRowAbove','insertTableRowBelow']){const _0xa5c678=_0x5c0096['commands']['get'](_0xdc3cc9);_0xbeb673['enableCommand'](_0xdc3cc9,_0x516c85=>{_0x5c0096['model']['change'](_0x2dd3ae=>{_0x516c85();const _0x2cd9b8='above'===_0xa5c678['order'],_0xf3db08=_0x2250cb['getSelectionAffectedTableCells'](_0x154421),_0x4287d6=_0x2250cb['getRowIndexes'](_0xf3db08),_0x171857=_0x2cd9b8?_0x4287d6['first']-0x1:_0x4287d6['last']+0x1,_0x10ebdd=_0xf3db08[0x0]['findAncestor']('table'),_0x2fc67b=_0x2250cb['createTableWalker'](_0x10ebdd,{'startRow':_0x171857,'endRow':_0x171857}),_0x2e267e=Array['from'](_0x2fc67b)['map'](_0xfdfed3=>_0x2dd3ae['createRangeOn'](_0xfdfed3['cell']));_0xbeb673['markMultiRangeInsertion'](_0x2e267e,'tableRow');});});}for(const _0x5de424 of['insertTableColumnLeft','insertTableColumnRight']){const _0x3d3ec3=_0x5c0096['commands']['get'](_0x5de424);_0xbeb673['enableCommand'](_0x5de424,_0x4bb255=>{_0x5c0096['model']['change'](_0x2cd7ea=>{_0x4bb255();const _0x58b471='left'===_0x3d3ec3['order'],_0xbd8152=_0x2250cb['getSelectionAffectedTableCells'](_0x154421),_0x39c6e4=_0x2250cb['getColumnIndexes'](_0xbd8152),_0x4ae1ec=_0x58b471?_0x39c6e4['first']-0x1:_0x39c6e4['last']+0x1,_0x4e66b7=_0xbd8152[0x0]['findAncestor']('table'),_0x372965=_0x2250cb['createTableWalker'](_0x4e66b7,{'startRow':0x0,'column':_0x4ae1ec,'includeAllSlots':!0x1}),_0x162714=Array['from'](_0x372965)['map'](_0x40163c=>_0x2cd7ea['createRangeOn'](_0x40163c['cell']));_0xbeb673['markMultiRangeInsertion'](_0x162714,'tableColumn');});});}for(const _0x13993a of['removeTableRow','removeTableColumn']){const _0xf5c22d=_0x13993a['substr'](0xb),_0x2d2c35=_0xf5c22d['toLowerCase'](),_0x5d02a1=_0x2d2c35['substr'](0x0,0x3)+'span',_0x5257c0='table'+_0xf5c22d,_0x30b872='min'+_0xf5c22d,_0x3c9ec8='max'+_0xf5c22d;_0xbeb673['enableCommand'](_0x13993a,()=>{_0x5c0096['model']['change'](_0x5e2708=>{const _0x55ab38=_0x2250cb['getSelectionAffectedTableCells'](_0x154421),_0x5d58c8=_0x55ab38[0x0]['findAncestor']('table');let _0x343ebc;if('removeTableRow'==_0x13993a){const _0xf3958=_0x2250cb['getRowIndexes'](_0x55ab38);_0x343ebc={'startRow':_0xf3958['first'],'endRow':_0xf3958['last'],'includeAllSlots':!0x0};}else{const _0x3c4057=_0x2250cb['getColumnIndexes'](_0x55ab38);_0x343ebc={'startColumn':_0x3c4057['first'],'endColumn':_0x3c4057['last'],'includeAllSlots':!0x0};}const _0x30cff0=_0x2250cb['createTableWalker'](_0x5d58c8,_0x343ebc),_0x1761fa=Array['from'](_0x30cff0)['map'](({cell:_0x1e001e})=>_0x1e001e),_0x5b097f=_e(_0x1761fa['filter'](_0x524136=>_0x524136['hasAttribute'](_0x5d02a1))),_0x1ed6b3=_e(_0x1761fa['filter'](_0xd7964=>!_0xd7964['hasAttribute'](_0x5d02a1)))['map'](_0x284734=>_0x5e2708['createRangeOn'](_0x284734)),_0x43804d=_0xbeb673['markMultiRangeDeletion'](_0x1ed6b3,_0x5257c0);if(_0x43804d&&('tableRow'==_0x43804d['subType']||'tableColumn'==_0x43804d['subType'])){const _0x7f524f=this['_getSuggestionCoords'](_0x43804d);for(const _0x38760c of _0x5b097f){const _0x5be94d=_0x5e2708['createRangeOn'](_0x38760c),_0xbc60eb=_0x2250cb['getCellLocation'](_0x38760c),_0x2ab386=_0x38760c['getAttribute'](_0x5d02a1)-0x1,_0x3382ea=_0x7f524f[_0x30b872],_0x4e3db1=_0x7f524f[_0x3c9ec8];_0x3382ea<=_0xbc60eb[_0x2d2c35]&&_0xbc60eb[_0x2d2c35]+_0x2ab386<=_0x4e3db1&&_0x43804d['addRange'](_0x5be94d);}}});});}function _0x538094(_0x1c44fe){const _0x56f270=Array['from'](_0x154421['getRanges']())['map'](_0x3cc4dc=>_0x23cc14['fromRange'](_0x3cc4dc));_0x5c0096['model']['change'](_0x5b24ac=>{const _0x3c392e=_0x5b24ac['batch'];_0x1c44fe=_0x1c44fe['filter'](_0x28fdeb=>'$graveyard'!=_0x28fdeb['root']['rootName']),_0x5b24ac['setSelection'](_0x1c44fe),_0x5c0096['commands']['get']('removeTableRow')['refresh'](),_0x5c0096['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x5c0096['model']['enqueueChange'](()=>{_0x5c0096['model']['enqueueChange'](_0x3c392e,_0xcbe2aa=>{const _0x588161=_0x56f270['filter'](_0x1788a7=>'$graveyard'!=_0x1788a7['root']['rootName']);_0x588161['length']>0x0&&_0xcbe2aa['setSelection'](_0x588161);for(const _0x25ffe1 of _0x56f270)_0x25ffe1['detach']();});});});}function _0x515151(_0x2eab4a){_0x5c0096['model']['change'](_0x8e58e3=>{const _0x2f48cb=Array['from'](_0x154421['getRanges']())['map'](_0x4e721c=>_0x23cc14['fromRange'](_0x4e721c)),_0x2e7851=[];for(const _0x505831 of _0x2eab4a)for(const _0x381bb6 of _0x505831['getItems']({'shallow':!0x0}))_0x2e7851['push'](_0x381bb6);for(const _0x2cf848 of _0x2e7851)'$graveyard'!=_0x2cf848['root']['rootName']&&(_0x8e58e3['setSelection'](_0x8e58e3['createPositionAt'](_0x2cf848,0x0)),_0x5c0096['commands']['get']('removeTableColumn')['refresh'](),_0x5c0096['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x6cf92b=_0x2f48cb['filter'](_0x1c8bef=>'$graveyard'!=_0x1c8bef['root']['rootName']);_0x6cf92b['length']>0x0&&_0x8e58e3['setSelection'](_0x6cf92b);for(const _0x397c95 of _0x2f48cb)_0x397c95['detach']();});}function _0x5c9198(_0x4f6974,_0x22afa1){return _0x22afa1['every'](_0x2181a9=>_0x4f6974['some'](_0x2ee432=>_0x2ee432['end']['isEqual'](_0x2181a9['start'])||_0x2181a9['end']['isEqual'](_0x2ee432['start'])));}function _0x19e319(_0x468ab6,_0x5e01d1){return!_0x468ab6['some'](_0x2aa8ca=>_0x5e01d1['some'](_0x51e672=>_0x2aa8ca['isIntersecting'](_0x51e672)))&&_0x468ab6['some'](_0x129ea7=>_0x5e01d1['some'](_0x55c51c=>_0x129ea7['end']['isTouching'](_0x55c51c['start'])));}_0xbeb673['descriptionFactory']['registerDescriptionCallback'](_0x358fc1=>{if('insertion'!=_0x358fc1['type']&&'deletion'!=_0x358fc1['type'])return;const _0x3674ad=_0x358fc1['getContainedElement']();if(null!=_0x3674ad&&_0x3674ad['is']('element','table')){if('insertion'==_0x358fc1['type']){const _0x2d9856=_0x358fc1['getItems']()['filter'](_0x44aa29=>_0x44aa29['is']('$textProxy'))['map'](_0x54e5e7=>_0x54e5e7['data']);if(_0x2d9856['length'])return{'type':'insertion','content':o(_0x3cb0f9,'*Insert:*\x20%0',o(_0x3cb0f9,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2d9856['join']('\x20')+'\x22'))};}if('deletion'==_0x358fc1['type']){const _0x3e83c4=_0x358fc1['getItems']()['filter'](_0x2762c1=>_0x2762c1['is']('$textProxy'))['map'](_0x22658a=>_0x22658a['data']);if(_0x3e83c4['length'])return{'type':'deletion','content':o(_0x3cb0f9,'*Remove:*\x20%0',o(_0x3cb0f9,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3e83c4['join']('\x20')+'\x22'))};}}}),_0xbeb673['descriptionFactory']['registerDescriptionCallback'](_0x2b3e82=>{if('tableRow'==_0x2b3e82['subType']){const _0x4e8c44=_0x2b3e82['getItems']()['filter'](_0xc36b71=>_0xc36b71['is']('$textProxy'))['map'](_0x21de58=>_0x21de58['data']),_0x100015=this['_getSuggestionCoords'](_0x2b3e82),_0x5557fa=_0x100015['maxRow']-_0x100015['minRow']+0x1;if('insertion'==_0x2b3e82['type'])return _0x4e8c44['length']?{'type':'insertion','content':o(_0x3cb0f9,'*Insert:*\x20%0',o(_0x3cb0f9,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x5557fa,'\x22'+_0x4e8c44['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x3cb0f9,'*Insert:*\x20%0',o(_0x3cb0f9,'ELEMENT_TABLE_ROW',_0x5557fa))};if('deletion'==_0x2b3e82['type'])return _0x4e8c44['length']?{'type':'deletion','content':o(_0x3cb0f9,'*Remove:*\x20%0',o(_0x3cb0f9,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x5557fa,'\x22'+_0x4e8c44['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x3cb0f9,'*Remove:*\x20%0',o(_0x3cb0f9,'ELEMENT_TABLE_ROW',_0x5557fa))};}if('tableColumn'==_0x2b3e82['subType']){const _0x26b4a4=_0x2b3e82['getItems']()['filter'](_0x208325=>_0x208325['is']('$textProxy'))['map'](_0x43c720=>_0x43c720['data']),_0x14ffc7=this['_getSuggestionCoords'](_0x2b3e82),_0x1612ab=_0x14ffc7['maxColumn']-_0x14ffc7['minColumn']+0x1;if('insertion'==_0x2b3e82['type'])return _0x26b4a4['length']?{'type':'insertion','content':o(_0x3cb0f9,'*Insert:*\x20%0',o(_0x3cb0f9,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1612ab,'\x22'+_0x26b4a4['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x3cb0f9,'*Insert:*\x20%0',o(_0x3cb0f9,'ELEMENT_TABLE_COLUMN',_0x1612ab))};if('deletion'==_0x2b3e82['type'])return _0x26b4a4['length']?{'type':'deletion','content':o(_0x3cb0f9,'*Remove:*\x20%0',o(_0x3cb0f9,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1612ab,'\x22'+_0x26b4a4['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x3cb0f9,'*Remove:*\x20%0',o(_0x3cb0f9,'ELEMENT_TABLE_COLUMN',_0x1612ab))};}}),_0xbeb673['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x538094),_0xbeb673['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x538094),_0xbeb673['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x515151),_0xbeb673['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x515151),_0xbeb673['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x5c9198),_0xbeb673['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x5c9198),_0xbeb673['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x19e319),_0xbeb673['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x19e319);}['_acceptFormatSuggestionCallbackFactory'](){const _0x31e308=this['editor'],_0x4682e2=_0x31e308['model']['document']['selection'];return(_0x16978e,_0x4ee620)=>{_0x31e308['model']['change'](_0x45ddce=>{const {commandName:_0xf1cf7b,commandParams:_0x2b9c8f}=_0x4ee620;let _0x49ed2c=_0x16978e[0x0]['end']['nodeBefore'];_0x2b9c8f&&_0x2b9c8f[0x0]&&!0x1===_0x2b9c8f[0x0]['forceValue']&&(_0x49ed2c=_0x16978e[0x0]['start']['nodeAfter']);const _0x288c15=_0x45ddce['createRangeIn'](_0x49ed2c);if('$graveyard'==_0x288c15['root']['rootName'])return;const _0x148ffb=Array['from'](_0x4682e2['getRanges']())['map'](_0x5b5b43=>_0x23cc14['fromRange'](_0x5b5b43));_0x45ddce['setSelection'](_0x288c15),_0x31e308['commands']['get'](_0xf1cf7b)['refresh'](),_0x2b9c8f['push']({'forceDefaultExecution':!0x0}),_0x31e308['execute'](_0xf1cf7b,..._0x2b9c8f);const _0x5094ce=_0x148ffb['filter'](_0x2b9f0c=>'$graveyard'!=_0x2b9f0c['root']['rootName']);_0x5094ce['length']>0x0&&_0x45ddce['setSelection'](_0x5094ce);for(const _0xfa6b6d of _0x148ffb)_0xfa6b6d['detach']();});};}['_getCoordsForCells'](_0xbcc2d1){const _0x9f13f=this['editor']['plugins']['get']('TableUtils');let _0x1bcdb=Number['MAX_SAFE_INTEGER'],_0x135ad9=Number['MIN_SAFE_INTEGER'],_0x2eae90=Number['MAX_SAFE_INTEGER'],_0x183a46=Number['MIN_SAFE_INTEGER'];for(const _0x1a8fda of _0xbcc2d1){if('$graveyard'==_0x1a8fda['root']['rootName'])continue;const {row:_0x486f97,column:_0x2c5314}=_0x9f13f['getCellLocation'](_0x1a8fda),_0x1bc903=_0x1a8fda['hasAttribute']('rowspan')?_0x1a8fda['getAttribute']('rowspan')-0x1:0x0,_0x3f9a63=_0x1a8fda['hasAttribute']('colspan')?_0x1a8fda['getAttribute']('colspan')-0x1:0x0;_0x1bcdb=_0x486f97<_0x1bcdb?_0x486f97:_0x1bcdb,_0x135ad9=_0x486f97+_0x1bc903>_0x135ad9?_0x486f97+_0x1bc903:_0x135ad9,_0x2eae90=_0x2c5314<_0x2eae90?_0x2c5314:_0x2eae90,_0x183a46=_0x2c5314+_0x3f9a63>_0x183a46?_0x2c5314+_0x3f9a63:_0x183a46;}return{'minRow':_0x1bcdb,'maxRow':_0x135ad9,'minColumn':_0x2eae90,'maxColumn':_0x183a46};}['_setupColumnsRowsFixing'](){const _0x3942d8=this['editor'],_0x338881=_0x3942d8['plugins']['get']('TrackChangesEditing'),_0x21dca3=_0x3942d8['plugins']['get']('TableUtils');_0x3942d8['model']['document']['on']('change:data',()=>{const _0x2dd153=Array['from'](_0x3942d8['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4e7680,data:_0x1aee4f}of _0x2dd153){const {group:_0x50f114,id:_0x1b4b1d,subType:_0xb4b4d6}=_0x338881['_splitMarkerName'](_0x4e7680);if('suggestion'!=_0x50f114)continue;if(null!=_0x1aee4f['oldRange'])continue;const _0x4a8226=_0x338881['getSuggestion'](_0x1b4b1d);this['_tablePostFixingSubtypes']['includes'](_0xb4b4d6)&&this['_tableSuggestions']['add'](_0x4a8226);}},{'priority':'low'});const _0x3a3021=(_0x543ea2,_0x5a39f6)=>{let _0x48e5e6=!0x1;const _0x2e9c80=_0x5a39f6['createRangeOn'](_0x543ea2),_0x3f77bf=_0x543ea2['findAncestor']('table'),_0x3d3075=_0x21dca3['getCellLocation'](_0x543ea2);for(const _0x139eea of this['_tableSuggestions']){const _0x4f2706=_0x139eea['subType'],_0x152aa5=_0x4f2706['startsWith']('tablePaste'),_0x4ee09e=_0x4f2706['substr'](_0x152aa5?0xa:0x5),_0x1aebca=_0x4ee09e['toLowerCase'](),_0x202aba=_0x1aebca['substr'](0x0,0x3)+'span',_0x4c0ca8='min'+_0x4ee09e,_0x4deca8='max'+_0x4ee09e;if(!_0x139eea['isInContent'])continue;if(_0x3f77bf!=_0x139eea['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x139eea['isIntersectingWithRange'](_0x2e9c80))continue;const _0x5e081e=_0x543ea2['hasAttribute'](_0x202aba)?_0x543ea2['getAttribute'](_0x202aba)-0x1:0x0,_0x20b656=this['_getSuggestionCoords'](_0x139eea),_0x471a7d=_0x20b656[_0x4c0ca8],_0x30182a=_0x20b656[_0x4deca8];_0x471a7d<=_0x3d3075[_0x1aebca]&&_0x3d3075[_0x1aebca]+_0x5e081e<=_0x30182a&&(_0x139eea['addRange'](_0x2e9c80),_0x48e5e6=!0x0);}return _0x48e5e6;};_0x3942d8['model']['document']['registerPostFixer'](_0x50af33=>{let _0x5a108f=!0x1;for(const _0x2a9897 of _0x3942d8['model']['document']['differ']['getChanges']())if('insert'==_0x2a9897['type']){if('tableRow'==_0x2a9897['name']){for(const _0x9246ae of _0x2a9897['position']['nodeAfter']['getChildren']())_0x5a108f=_0x5a108f||_0x3a3021(_0x9246ae,_0x50af33);}else'tableCell'==_0x2a9897['name']&&(_0x5a108f=_0x5a108f||_0x3a3021(_0x2a9897['position']['nodeAfter'],_0x50af33));}return _0x5a108f;});}['_getSuggestionCoords'](_0x35b96d){return this['_getCoordsForCells'](_0x35b96d['getRanges']()['map'](_0x106b63=>_0x106b63['start']['nodeAfter']));}}function _e(_0x8a2f44){return Array['from'](new Set(_0x8a2f44)['values']());}class Bt extends _0xb2d1b5{static get['requires'](){return[Dt];}['afterInit'](){const _0x574453=this['editor'],_0xfe79dd=_0x574453['model']['document']['selection'],_0x4b29ea=_0x574453['locale'];if(!_0x574453['plugins']['has']('TableEditing'))return;const _0x509527=_0x574453['plugins']['get']('TrackChangesEditing'),_0x18311a=_0x574453['plugins']['get']('TableUtils'),_0x4b3321=_0x574453['plugins']['get'](Dt);_0x4b3321['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x509527['enableCommand']('mergeTableCells',()=>{const _0x44a713=_0x18311a['getSelectionAffectedTableCells'](_0x574453['model']['document']['selection']);_0x574453['model']['change'](()=>{_0x509527['markMultiRangeBlockFormat'](_0x44a713,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x574453['commands']['get']('mergeTableCells')['on']('execute',(_0x3559f3,_0x4c3eb4)=>{_0x574453['commands']['get']('trackChanges')['value']&&(_0x4c3eb4['length']>0x0&&_0x4c3eb4[_0x4c3eb4['length']-0x1]&&_0x4c3eb4[_0x4c3eb4['length']-0x1]['forceDefaultExecution']||_0x509527['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x3559f3['stop']());},{'priority':'highest'});for(const _0x21514c of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x40fead=_0x574453['commands']['get'](_0x21514c);_0x509527['enableCommand'](_0x21514c,()=>{const _0x938f14=_0x574453['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2c3c2a=>_0x2c3c2a['is']('element','tableCell')),_0x3d0a79=_0x40fead['value'];_0x574453['model']['change'](()=>{_0x509527['markMultiRangeBlockFormat']([_0x938f14,_0x3d0a79],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x437cfe of['splitTableCellVertically','splitTableCellHorizontally']){const _0x474038=_0x574453['commands']['get'](_0x437cfe);_0x509527['enableCommand'](_0x437cfe,()=>{const _0x363f29=_0x18311a['getSelectionAffectedTableCells'](_0x574453['model']['document']['selection'])[0x0],_0x1f3cea=_0x363f29['findAncestor']('table'),{column:_0x5b608b,row:_0x45cdc7}=_0x18311a['getCellLocation'](_0x363f29);let _0x3d72a7=[];if('horizontally'==_0x474038['direction']){const _0x52f362=_0x18311a['createTableWalker'](_0x1f3cea,{'startRow':_0x45cdc7,'endRow':_0x45cdc7,'includeAllSlots':!0x0});_0x3d72a7=Array['from'](_0x52f362)['map'](_0xc1b823=>_0xc1b823['cell']);}else{const _0x27015e=_0x18311a['createTableWalker'](_0x1f3cea,{'column':_0x5b608b,'includeAllSlots':!0x0});_0x3d72a7=Array['from'](_0x27015e)['map'](_0x253c2b=>_0x253c2b['cell']);}_0x574453['model']['change'](_0x1be7a7=>{_0x509527['markBlockFormat'](_0x1be7a7['createRangeOn'](_0x363f29),{'commandName':_0x437cfe,'commandParams':[]},_0x3d72a7,_0x437cfe);});});}_0x509527['descriptionFactory']['registerDescriptionCallback'](_0x465816=>{if('formatBlock'!=_0x465816['type']&&'formatInline'!=_0x465816['type'])return;const {data:_0x5e0f83}=_0x465816;return _0x5e0f83&&'mergeTableCells'==_0x5e0f83['commandName']?{'type':'format','content':o(_0x4b29ea,'*Merge\x20cells*')}:void 0x0;}),_0x509527['descriptionFactory']['registerDescriptionCallback'](_0x5b2119=>{if('formatBlock'!=_0x5b2119['type']&&'formatInline'!=_0x5b2119['type'])return;const {data:_0x54e6a6}=_0x5b2119;return _0x54e6a6?'splitTableCellVertically'==_0x54e6a6['commandName']?{'type':'format','content':o(_0x4b29ea,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x54e6a6['commandName']?{'type':'format','content':o(_0x4b29ea,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x191a24=_0x4b3321['_acceptFormatSuggestionCallbackFactory']();for(const _0x446d56 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x509527['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x446d56,'accept',_0x191a24);for(const _0x1c8124 of['splitTableCellVertically','splitTableCellHorizontally'])_0x509527['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1c8124,'accept',_0x191a24);_0x509527['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x26357b=>{_0x574453['model']['change'](_0x5655f2=>{const _0x35575c=Array['from'](_0xfe79dd['getRanges']())['map'](_0x4ff8ec=>_0x23cc14['fromRange'](_0x4ff8ec));_0x5655f2['setSelection'](_0x26357b),_0x574453['commands']['get']('mergeTableCells')['refresh'](),_0x574453['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x8a3fae=_0x35575c['filter'](_0x39493d=>'$graveyard'!=_0x39493d['root']['rootName']);_0x8a3fae['length']>0x0&&_0x5655f2['setSelection'](_0x8a3fae);for(const _0x1e145d of _0x35575c)_0x1e145d['detach']();});});for(const _0x59e76e of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x4fad93=_0x574453['commands']['get'](_0x59e76e);_0x4fad93['on']('set:isEnabled',(_0x8facc5,_0x2c7c61,_0x26b5f3)=>{if(_0x26b5f3){const _0x5b1722=_0x574453['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xfba656=>_0xfba656['is']('element','tableCell'));this['_areMergableCells'](_0x4fad93['value'],_0x5b1722)||(_0x8facc5['return']=!0x1,_0x8facc5['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x27da84=this['editor']['commands']['get']('mergeTableCells'),_0x615dd7=this['editor']['plugins']['get']('TableUtils');if(!_0x27da84['isEnabled'])return!0x1;const _0x27c97=_0x615dd7['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x5d4780 of _0x27c97)for(const _0x4b064a of _0x27c97)if(_0x5d4780!=_0x4b064a&&!this['_areMergableCells'](_0x5d4780,_0x4b064a))return!0x1;return!0x0;}['_areMergableCells'](_0x5b637e,_0x358f70){const _0x9dd38=this['editor']['plugins']['get']('TrackChangesEditing'),_0x17b224=this['editor']['model']['createRangeOn'](_0x5b637e),_0x5c75d0=this['editor']['model']['createRangeOn'](_0x358f70),_0x110561=new Set(),_0x168ae2=new Set();for(const _0x5ce7c9 of _0x9dd38['getSuggestions']())if(('insertion'==_0x5ce7c9['type']||'deletion'==_0x5ce7c9['type']||'mergeTableCells'==_0x5ce7c9['subType'])&&_0x5ce7c9['isInContent']){for(const _0x3b9938 of _0x5ce7c9['getRanges']())_0x3b9938['containsRange'](_0x17b224,!0x0)&&_0x110561['add'](_0x5ce7c9['type']+':'+_0x5ce7c9['author']['id']),_0x3b9938['containsRange'](_0x5c75d0,!0x0)&&_0x168ae2['add'](_0x5ce7c9['type']+':'+_0x5ce7c9['author']['id']);}if(_0x110561['size']!=_0x168ae2['size'])return!0x1;for(const _0x2514d4 of _0x110561)if(!_0x168ae2['has'](_0x2514d4))return!0x1;return!0x0;}}class Ot extends _0xb2d1b5{static get['requires'](){return[Dt];}['afterInit'](){const _0x1c97ef=this['editor'];if(!_0x1c97ef['plugins']['has']('TableEditing'))return;const _0x3b08bf=_0x1c97ef['locale'],_0x398ec8=_0x1c97ef['plugins']['get']('TrackChangesEditing');_0x398ec8['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x398ec8['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x398ec8['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x3b08bf,'FORMAT_HEADER_ROW')),_0x398ec8['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x3b08bf,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x42ed8e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4e5232=this['editor']['plugins']['get'](Dt)['_acceptFormatSuggestionCallbackFactory']();_0x42ed8e['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x4e5232),_0x42ed8e['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x4e5232),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x286d15=this['editor']['plugins']['get']('TrackChangesEditing'),_0x33bcc9=this['editor']['plugins']['get']('TableUtils');function _0x409b62({showActiveMarker:_0x4f67fc=!0x0,setDataAttribute:_0x428dd4=!0x0}={}){return(_0x32459d,_0x5a87db,_0x36b8fe)=>{const {type:_0x1a9c5f,id:_0x25ffd6}=_0x286d15['_splitMarkerName'](_0x5a87db['markerName']);if(!_0x286d15['hasSuggestion'](_0x25ffd6))return;const _0x57d7a9=_0x286d15['getSuggestion'](_0x25ffd6),_0x3540fc=_0x57d7a9['data'];if('formatBlock'!=_0x57d7a9['type']||!_0x3540fc||'setTableColumnHeader'!=_0x3540fc['commandName'])return;if(_0x5a87db['item'])return void _0x32459d['stop']();if(!_0x36b8fe['consumable']['consume'](_0x5a87db['markerRange'],_0x32459d['name']))return;const _0x48d40c=_0x5a87db['markerRange']['start']['nodeAfter'],_0x2c122c=_0x5a87db['markerRange']['end']['nodeBefore'],_0x22d730=_0x48d40c['parent']['parent'],{column:_0xda6e06}=_0x33bcc9['getCellLocation'](_0x48d40c),{column:_0x4cfed9}=_0x33bcc9['getCellLocation'](_0x2c122c);for(let _0x24a9b1=_0xda6e06;_0x24a9b1<=_0x4cfed9;_0x24a9b1++){const _0x5c38a9=_0x33bcc9['createTableWalker'](_0x22d730,{'column':_0x24a9b1,'includeAllSlots':!0x1});for(const _0x2ecad6 of _0x5c38a9){const _0x2dc684=_0x2ecad6['cell'],_0x5047a8=_0x36b8fe['mapper']['toViewElement'](_0x2dc684);_0x36b8fe['writer']['addClass']('ck-suggestion-marker-'+_0x1a9c5f,_0x5047a8),_0x428dd4&&_0x36b8fe['writer']['setAttribute']('data-suggestion',_0x25ffd6,_0x5047a8),_0x36b8fe['mapper']['bindElementToMarker'](_0x5047a8,_0x5a87db['markerName']),_0x4f67fc&&(_0x286d15['activeMarkers']['includes'](_0x5a87db['markerName'])?_0x36b8fe['writer']['addClass']('ck-suggestion-marker--active',_0x5047a8):_0x36b8fe['writer']['removeClass']('ck-suggestion-marker--active',_0x5047a8));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x409b62(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x29d91b,_0x28fd58,_0x1af15b)=>{_0x1af15b['options']['showSuggestionHighlights']&&_0x409b62({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x29d91b,_0x28fd58,_0x1af15b);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x40dd9f,_0x596019,_0x5854bf)=>{const {type:_0x49991a,id:_0x1a3e84}=_0x286d15['_splitMarkerName'](_0x596019['markerName']);if(!_0x286d15['hasSuggestion'](_0x1a3e84))return;const _0x469c3a=_0x286d15['getSuggestion'](_0x1a3e84),_0x5daddd=_0x469c3a['data'];if('formatBlock'!=_0x469c3a['type']||!_0x5daddd||'setTableColumnHeader'!=_0x5daddd['commandName'])return;const _0x378d50=_0x5854bf['mapper']['markerNameToElements'](_0x596019['markerName']);if(_0x378d50){for(const _0x1fd598 of _0x378d50)_0x5854bf['writer']['removeClass']('ck-suggestion-marker-'+_0x49991a,_0x1fd598),_0x5854bf['writer']['removeClass']('ck-suggestion-marker--active',_0x1fd598),_0x5854bf['writer']['removeAttribute']('data-suggestion',_0x1fd598),_0x5854bf['mapper']['unbindElementFromMarkerName'](_0x1fd598,_0x596019['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x120580=this['editor'],_0x391e27=_0x120580['locale'];function _0x40f0a6(_0x1b2bbd){return{'type':'format','content':o(_0x391e27,'*Format:*\x20%0',_0x1b2bbd)};}_0x120580['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4b2d14=>{if('formatBlock'!=_0x4b2d14['type'])return;const {data:_0x244191}=_0x4b2d14;if(_0x244191){if('setTableRowHeader'==_0x244191['commandName']){const _0xec45bd=_0x244191['commandParams'][0x0]['forceValue'];return _0x40f0a6(o(_0x391e27,_0xec45bd?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x244191['commandName']){const _0x54aa1a=_0x244191['commandParams'][0x0]['forceValue'];return _0x40f0a6(o(_0x391e27,_0x54aa1a?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class xt extends _0xb2d1b5{['afterInit'](){const _0x1b4461=this['editor'],_0x24e6bd=_0x1b4461['locale'],_0x5851e1=_0x1b4461['plugins']['get']('TrackChangesEditing');function _0x1ed57b(_0x33ae98){return{'type':'format','content':''+o(_0x24e6bd,'*Set\x20table\x20type:*\x20%0',_0x33ae98)};}_0x1b4461['plugins']['has']('TableLayout')&&(_0x5851e1['enableCommand']('insertTableLayout'),_0x5851e1['enableDefaultAttributesIntegration']('tableType'),_0x5851e1['descriptionFactory']['registerElementLabel'](_0x46ff3c=>_0x46ff3c['is']('element','table')&&'layout'===_0x46ff3c['getAttribute']('tableType'),_0xf9c7d=>o(_0x24e6bd,'ELEMENT_LAYOUT_TABLE',_0xf9c7d)),_0x5851e1['descriptionFactory']['registerDescriptionCallback'](_0xb709d1=>{const {data:_0x1c84e6}=_0xb709d1;if(_0x1c84e6&&'tableType'==_0x1c84e6['key'])switch(_0x1c84e6['newValue']){case'layout':return _0x1ed57b(o(_0x24e6bd,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x1ed57b(o(_0x24e6bd,'ELEMENT_CONTENT_TABLE'));}}));}}const Re=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ae=/* #__PURE__ -- @preserve */
|
|
25
|
-
Object['fromEntries'](Re['map'](_0x4fc7ac=>[_0x4fc7ac,null]));class Mt extends _0xb2d1b5{static get['requires'](){return[Dt];}['afterInit'](){const _0x4dc7e9=this['editor'];if(!_0x4dc7e9['plugins']['has']('TableClipboard'))return;const _0x655afd=_0x4dc7e9['plugins']['get']('TrackChangesEditing'),_0xa7589=_0x4dc7e9['plugins']['get']('TableUtils'),_0x537514=_0x4dc7e9['plugins']['get'](Dt),_0x378e67=_0x4dc7e9['plugins']['get']('TableClipboard'),_0x15e0db=_0x4dc7e9['plugins']['get']('TableSelection'),_0x31225f=_0x4dc7e9['plugins']['get'](_0x1bb9ae);_0x537514['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x4dc7e9['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x4dc7e9['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0xa3c80d=null,_0x579916=!0x1;_0x31225f['on']('contentInsertion',(_0x403d6a,_0x5e30c9)=>{_0x579916='paste'===_0x5e30c9['method'];}),_0x4dc7e9['model']['on']('insertContent',(_0x1e9b57,_0x25d5e6)=>{if(!_0x579916&&null===_0x15e0db['getSelectedTableCells']())return;const [_0x473203,_0xe43c8c]=_0x25d5e6,_0x5f4781=_0x25d5e6[_0x25d5e6['length']-0x1];_0x5f4781&&_0x5f4781['forceDefaultExecution']||_0x655afd['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x2a4c21,_0x5bb7c7,_0x1026af,_0x5a4f0c,_0x438f70){if(_0x5bb7c7&&!_0x5bb7c7['is']('documentSelection'))return!0x1;const _0x3335b2=_0x438f70['getTableIfOnlyTableInContent'](_0x2a4c21,_0x1026af);if(!_0x3335b2||!Oe(_0x3335b2,void 0x0,_0x5a4f0c))return!0x1;const _0x19401d=_0x5a4f0c['getSelectionAffectedTableCells'](_0x1026af['document']['selection']);if(!_0x19401d['length'])return!0x1;const _0x3d32f3=_0x19401d[0x0]['findAncestor']('table'),_0x4cc82c=_0x5a4f0c['getRowIndexes'](_0x19401d),_0x1ddbb5=_0x5a4f0c['getColumnIndexes'](_0x19401d),_0x3b13c0={'startRow':_0x4cc82c['first'],'endRow':_0x4cc82c['last'],'startColumn':_0x1ddbb5['first'],'endColumn':_0x1ddbb5['last']};return 0x1==_0x19401d['length']&&(_0x3b13c0['endRow']+=_0x5a4f0c['getRows'](_0x3335b2)-0x1,_0x3b13c0['endColumn']+=_0x5a4f0c['getColumns'](_0x3335b2)-0x1),Oe(_0x3d32f3,_0x3b13c0,_0x5a4f0c);}(_0x473203,_0xe43c8c,_0x4dc7e9['model'],_0xa7589,_0x378e67)&&(_0x1e9b57['stop'](),_0xa3c80d={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x4dc7e9['model']['change'](()=>{_0x4dc7e9['model']['insertContent'](_0x25d5e6[0x0],_0x25d5e6[0x1],_0x25d5e6[0x2],{'forceDefaultExecution':!0x0});const _0x33a328=_0x43100d(),{rowInsertionRanges:_0x296d71,columnInsertionRanges:_0x51e0a5,insertionRanges:_0x181736,deletionRanges:_0x15b829,cells:_0x54dcd0}=_0xa3c80d;_0x296d71['length']&&_0x655afd['markMultiRangeInsertion'](_0x296d71,'tablePasteRow',{'tablePasteChainId':_0x33a328}),_0x51e0a5['length']&&_0x655afd['markMultiRangeInsertion'](_0x51e0a5,'tablePasteColumn',{'tablePasteChainId':_0x33a328}),_0x181736['length']&&(_0x655afd['markMultiRangeInsertion'](_0x181736,'tablePaste',{'tablePasteChainId':_0x33a328,'skipNestingCheck':!0x0}),_0x181736['forEach'](_0x2077ba=>_0x2077ba['detach']?.())),_0x15b829['length']&&(_0x655afd['markMultiRangeDeletion'](_0x15b829,'tablePaste',{'tablePasteChainId':_0x33a328,'skipNestingCheck':!0x0}),_0x15b829['forEach'](_0x9b4d1e=>_0x9b4d1e['detach']?.()));const _0x545364=_0x655afd['markMultiRangeBlockFormat'](_0x54dcd0['map'](({element:_0x493d5d})=>_0x493d5d),{'formatGroupId':_0x43100d()},[],'tablePasteCell',{'tablePasteChainId':_0x33a328});if(_0x545364){const _0x1de7c5=_0x545364['getMarkers'](),_0x5aa827=[];for(const {element:_0x4f6c7e,attributes:_0x45d258}of _0x54dcd0){if(!_0x45d258)continue;const _0xa32576=_0x4dc7e9['model']['createRangeOn'](_0x4f6c7e),_0x3e3960=_0x1de7c5['find'](_0x475bbd=>_0x475bbd['getRange']()['isEqual'](_0xa32576));_0x3e3960&&_0x5aa827['push']([_0x3e3960['name'],_0x45d258]);}_0x5aa827['length']&&_0x545364['setAttribute']('markerAttributes',Object['fromEntries'](_0x5aa827));}_0xa3c80d=null;}));},{'priority':_0x1bfb2d['high']+0xa}),_0x31225f['on']('contentInsertion',()=>{_0x579916=!0x1;},{'priority':'lowest'}),_0x4dc7e9['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0xbbe5ff,_0x3c0f6f)=>{const [_0x378402,_0x3ea1d1,,_0x5396a3]=_0x3c0f6f;if(!_0xa3c80d)return;_0xbbe5ff['stop']();const _0x5ec317=_0x378402['cell'],_0x5d0bcf=_0x3ea1d1,_0x5466ac=Be(_0x5ec317),_0x5666f8=Be(_0x5d0bcf);_0xbbe5ff['return']=_0x5ec317;let _0x2f7a57=null,_0x475f0a=null;if(_0x5666f8||_0x5466ac){if(_0x5466ac&&!_0x5666f8){_0x5396a3['remove'](_0x5ec317['getChild'](0x0));for(const _0x54dc36 of Array['from'](_0x5d0bcf['getChildren']()))_0x5396a3['insert'](_0x54dc36,_0x5ec317,'end');const _0x35efc1=_0xa3c80d['rowInsertionIndexes']['includes'](_0x378402['row']),_0x5ec609=_0xa3c80d['columnInsertionIndexes']['includes'](_0x378402['column']);_0x35efc1||_0x5ec609||(_0x2f7a57=_0x23cc14['fromRange'](_0x5396a3['createRangeIn'](_0x5ec317)));}else _0x5666f8&&!_0x5466ac&&(_0x475f0a=_0x5396a3['createRangeIn'](_0x5ec317));}else{const _0x25e41a=_0x5396a3['createElement']('tableCellSuggestion'),_0x4f9abe=_0x5396a3['createElement']('tableCellSuggestion');_0x5396a3['wrap'](_0x5396a3['createRangeIn'](_0x5ec317),_0x4f9abe),_0x5396a3['insert'](_0x25e41a,_0x5ec317,0x0);for(const _0x3dc4d9 of Array['from'](_0x5d0bcf['getChildren']()))_0x5396a3['insert'](_0x3dc4d9,_0x25e41a,'end');_0x2f7a57=_0x23cc14['fromRange'](_0x5396a3['createRangeOn'](_0x25e41a)),_0x475f0a=_0x23cc14['fromRange'](_0x5396a3['createRangeOn'](_0x4f9abe));}const _0x381caf=Array['from'](_0x5d0bcf['getAttributes']())['filter'](([_0x11a42b])=>Re['includes'](_0x11a42b));_0xa3c80d['cells']['push']({'element':_0x5ec317,'attributes':_0x381caf['length']?Object['fromEntries'](_0x381caf):null}),_0x2f7a57&&_0xa3c80d['insertionRanges']['push'](_0x2f7a57),_0x475f0a&&_0xa3c80d['deletionRanges']['push'](_0x475f0a);},{'priority':'high'}),_0xa7589['on']('insertColumns',(_0x1744c8,_0x531c59)=>{const [_0x1427f2,_0x167549={}]=_0x531c59;if(!_0xa3c80d)return;const _0x3bb9d6=_0x167549['at']||0x0,_0x29016a=_0x167549['columns']||0x1;_0xa3c80d['columnInsertionIndexes']=new Array(_0x29016a)['fill'](_0x3bb9d6)['map']((_0x15b732,_0x5e0223)=>_0x15b732+_0x5e0223);for(const {cell:_0x709331}of _0xa7589['createTableWalker'](_0x1427f2,{'startColumn':_0x3bb9d6,'endColumn':_0x3bb9d6+_0x29016a-0x1}))_0xa3c80d['columnInsertionRanges']['push'](_0x4dc7e9['model']['createRangeOn'](_0x709331));},{'priority':'low'}),_0xa7589['on']('insertRows',(_0x17163e,_0x5e4a12)=>{const [_0x5bcdb5,_0x4728b1={}]=_0x5e4a12;if(!_0xa3c80d)return;const _0x1a02e4=_0x4728b1['at']||0x0,_0x4861b1=_0x4728b1['rows']||0x1;_0xa3c80d['rowInsertionIndexes']=new Array(_0x4861b1)['fill'](_0x1a02e4)['map']((_0x5d939c,_0x5c5d55)=>_0x5d939c+_0x5c5d55);for(const {cell:_0x508195}of _0xa7589['createTableWalker'](_0x5bcdb5,{'startRow':_0x1a02e4,'endRow':_0x1a02e4+_0x4861b1-0x1}))_0xa3c80d['rowInsertionRanges']['push'](_0x4dc7e9['model']['createRangeOn'](_0x508195));},{'priority':'low'}),_0x655afd['descriptionFactory']['registerDescriptionCallback'](_0x3ec383=>{if(_0x3ec383['subType']&&_0x3ec383['subType']['startsWith']('tablePaste'))return _0x3ec383['previous']?{}:{'type':'insertion','content':o(_0x4dc7e9['locale'],'*Replace\x20table\x20cells*')};});const _0x10d743=()=>!0x1;for(const _0x28e01f of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x655afd['_suggestionFactory']['registerCustomCallback']('insertion',_0x28e01f,'join',_0x10d743),_0x655afd['_suggestionFactory']['registerCustomCallback']('deletion',_0x28e01f,'join',_0x10d743),_0x655afd['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x28e01f,'join',_0x10d743);_0x655afd['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x10d743),_0x655afd['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x3a0ace,_0x324af2,_0x3b3b23)=>{const _0x5a9b69=_0x3a0ace['map'](_0x4aa7c3=>_0x4aa7c3['getContainedElement']())['filter'](_0x5cd673=>_0x5cd673),_0x50c140=new Map(_0x5a9b69['map'](_0x46a8d0=>[_0x46a8d0,null]));if(_0xa3c80d){for(const {element:_0x258256,attributes:_0x2e986b}of _0xa3c80d['cells'])_0x2e986b&&_0x50c140['set'](_0x258256,_0x2e986b);}else{if(_0x3b3b23&&_0x3b3b23['markerAttributes'])for(const [_0x4536ec,_0x4ff998]of Object['entries'](_0x3b3b23['markerAttributes'])){const _0x50db00=_0x4dc7e9['model']['markers']['get'](_0x4536ec),_0x10e59e=_0x50db00?_0x50db00['getRange']()['getContainedElement']():null;_0x10e59e&&_0x50c140['set'](_0x10e59e,_0x4ff998);}}_0x4dc7e9['model']['change'](_0x2e51fb=>{for(const [_0x135d26,_0x5e6c97]of _0x50c140)_0x2e51fb['setAttributes']({...Ae,..._0x5e6c97},_0x135d26);});});const _0x7bacc0=(_0x1fe0f5,_0x5d48e0)=>{_0x655afd['_suggestionFactory']['registerCustomCallback'](_0x1fe0f5,'tablePaste',_0x5d48e0,(_0xc1cd73,_0x4a9e4b,_0xdfd0fc)=>{_0x4dc7e9['model']['change'](_0x1de17f=>{const _0x2c1bc2=[];for(const _0x54594b of _0xc1cd73){const _0xbe5dda=_0x54594b['start']['nodeAfter'];_0xbe5dda['is']('element','tableCellSuggestion')&&_0x2c1bc2['push'](_0xbe5dda);}_0x655afd['_suggestionFactory']['getSuggestionCallback'](_0x1fe0f5,null,_0x5d48e0)(_0xc1cd73,_0x4a9e4b,_0xdfd0fc);for(const _0x2154bc of _0x2c1bc2)'$graveyard'!=_0x2154bc['root']['rootName']&&_0x1de17f['unwrap'](_0x2154bc);});});};_0x7bacc0('insertion','accept'),_0x7bacc0('insertion','discard'),_0x7bacc0('deletion','accept'),_0x7bacc0('deletion','discard'),_0x655afd['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x4b363b=>{const _0x4dc805=_0x4b363b['map'](_0x277752=>_0x277752['getContainedElement']()),_0x3af43a=_0x4dc805[0x0]['findAncestor']('table'),{minRow:_0x2e901a,maxRow:_0x55fedb}=_0x537514['_getCoordsForCells'](_0x4dc805);_0xa7589['removeRows'](_0x3af43a,{'at':_0x2e901a,'rows':_0x55fedb-_0x2e901a+0x1});}),_0x655afd['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x570049=>{const _0x47ef95=_0x570049['map'](_0x1b9dba=>_0x1b9dba['getContainedElement']()),_0x967fbc=_0x47ef95[0x0]['findAncestor']('table'),{minColumn:_0x10eb2a,maxColumn:_0x3716ee}=_0x537514['_getCoordsForCells'](_0x47ef95);_0xa7589['removeColumns'](_0x967fbc,{'at':_0x10eb2a,'columns':_0x3716ee-_0x10eb2a+0x1});});const _0x10d465=(_0x1f71fc,_0x2de018)=>{if(!_0x2de018['subType']||!_0x2de018['subType']['startsWith']('tablePaste'))return;const _0x566954=_0x2de018['attributes']['tablePasteChainId'],_0x363de8=_0x655afd['getSuggestions']()['filter'](_0x41e2fe=>_0x41e2fe['isInContent']&&_0x41e2fe['attributes']&&_0x41e2fe['attributes']['tablePasteChainId']==_0x566954);_0x363de8['length']&&_0x2de018['getAllAdjacentSuggestions']()['length']!=_0x363de8['length']&&_0x363de8['reduce']((_0x3adafd,_0xbe26ff)=>(_0x3adafd['next']=_0xbe26ff,_0xbe26ff['previous']=_0x3adafd,_0xbe26ff));};function _0x35ab9d(_0x515d02,_0x3c3e8f=!0x0){const {id:_0xef949,authorId:_0x6091c8}=_0x655afd['_splitMarkerName'](_0x515d02['markerName']),_0xc3dcd1=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x40c891=_0x655afd['activeMarkers']['includes'](_0x515d02['markerName']);return _0x40c891&&_0xc3dcd1['push']('ck-suggestion-marker--active'),{'classes':_0xc3dcd1,'attributes':{'data-suggestion':_0xef949,'data-author-id':_0x6091c8},'priority':_0x40c891&&_0x3c3e8f?0xbc2:0xbb8};}_0x655afd['on']('suggestionLoaded',_0x10d465,{'priority':'high'}),_0x655afd['on']('suggestionUnloaded',_0x10d465,{'priority':'high'}),_0x4dc7e9['model']['document']['registerPostFixer'](()=>{let _0x5ebe43=!0x1;const _0x4a9271=Array['from'](_0x4dc7e9['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x346ba6,data:_0x5e55a6}of _0x4a9271){const {group:_0x56802f,type:_0x41061b,id:_0x252da9}=_0x655afd['_splitMarkerName'](_0x346ba6);if('suggestion'!=_0x56802f||'deletion'!=_0x41061b||_0x5e55a6['oldRange'])continue;if(!_0x655afd['hasSuggestion'](_0x252da9))continue;const _0x5762e3=_0x655afd['getSuggestion'](_0x252da9)['getRanges'](),_0x4324a5=_0x4dc7e9['plugins']['get']('Users')['me'];for(const _0x5c0648 of _0x655afd['getSuggestions']()){if(!_0x5c0648['isInContent']||_0x5c0648['author']!=_0x4324a5)continue;if('formatBlock'!=_0x5c0648['type']||'tablePasteCell'!=_0x5c0648['subType'])continue;if(_0x5c0648['getRanges']()['every'](_0x1eb2d8=>_0x5762e3['some'](_0xb54501=>_0xb54501['containsRange'](_0x1eb2d8,!0x0)))){for(const _0x2883b4 of _0x5c0648['getAllAdjacentSuggestions']())_0x2883b4['isInContent']&&(_0x2883b4['discard'](),_0x5ebe43=!0x0);}}}return _0x5ebe43;}),_0x4dc7e9['model']['document']['registerPostFixer'](_0x4a8ccd=>{const _0x549052=_0x4dc7e9['commands']['get']('redo');if(!_0x549052||!_0x549052['_createdBatches']['has'](_0x4a8ccd['batch']))return!0x1;let _0xcbddfd=!0x1;const _0x4cec1d=_0x4dc7e9['plugins']['get']('Users')['me'],_0x577d7d=_0x4dc7e9['model']['document']['differ']['getChanges'](),_0xb7d3e4=Array['from'](_0x4dc7e9['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x5ebe4,data:_0x21beb3})=>{const {group:_0x1add06,subType:_0x4aa319,authorId:_0x2ff6b5}=_0x655afd['_splitMarkerName'](_0x5ebe4);return'suggestion'==_0x1add06&&'tablePaste'==_0x4aa319&&_0x2ff6b5==_0x4cec1d['id']&&!_0x21beb3['oldRange'];});for(const _0x743692 of _0x577d7d){if('insert'!=_0x743692['type']||'tableCellSuggestion'!=_0x743692['name']||0x1!=_0x743692['length'])continue;const _0xa3504b=_0x4a8ccd['createRange'](_0x743692['position'],_0x743692['position']['getShiftedBy'](0x1));if(!_0xb7d3e4['find'](({data:_0x544bce})=>_0x544bce['newRange']['isEqual'](_0xa3504b))){for(const {name:_0x5accac,data:_0x512eb0}of _0xb7d3e4)if(_0xa3504b['containsRange'](_0x512eb0['newRange'])){_0x4a8ccd['updateMarker'](_0x5accac,{'range':_0xa3504b}),_0xcbddfd=!0x0;break;}}}return _0xcbddfd;}),_0x4dc7e9['model']['document']['registerPostFixer'](_0x3e5c5e=>{let _0x1b6d6b=!0x1;const _0x354a08=_0x4dc7e9['plugins']['get']('Users')['me'],_0x38bd03=_0x655afd['getSuggestions']()['filter'](_0x2523f2=>_0x2523f2['isInContent']&&_0x2523f2['author']==_0x354a08),_0x204e86=new Set(),_0xd3b9e4=new Set();for(const _0x32a089 of _0x38bd03)if('tablePaste'==_0x32a089['subType'])for(const _0x4b237b of _0x32a089['getMarkers']()){const _0x7d6d82=_0x4b237b['getRange']()['getContainedElement']();if(_0x7d6d82){if(_0x7d6d82['is']('element','tableCellSuggestion')&&Be(_0x7d6d82)){_0x32a089['removeMarker'](_0x4b237b['name']),_0x204e86['add'](_0x7d6d82),_0x1b6d6b=!0x0;const _0x52ab1d=_0x7d6d82['nextSibling'],_0x15e5bd=_0x7d6d82['previousSibling'],_0xe3e794=_0x52ab1d&&_0x52ab1d['is']('element','tableCellSuggestion'),_0x1156c2=_0x15e5bd&&_0x15e5bd['is']('element','tableCellSuggestion');_0xe3e794&&!_0x204e86['has'](_0x52ab1d)&&_0xd3b9e4['add'](_0x52ab1d),_0x1156c2&&!_0x204e86['has'](_0x15e5bd)&&_0xd3b9e4['add'](_0x15e5bd);}else _0x7d6d82['is']('element','paragraph')&&_0x7d6d82['isEmpty']&&(_0x32a089['removeMarker'](_0x4b237b['name']),_0x1b6d6b=!0x0);}}else{if('tablePasteCell'==_0x32a089['subType']){if(!_0x32a089['attributes']||!_0x32a089['attributes']['tablePasteChainId'])continue;const _0x182a12=_0x32a089['attributes']['markerAttributes'];if(_0x182a12&&Object['keys'](_0x182a12)['length'])continue;const _0x22edda=_0x32a089['attributes']['tablePasteChainId'];let _0x2dae5d=!0x0,_0x301673=!0x0;for(const _0x43324e of _0x38bd03)if(_0x43324e['subType']&&_0x43324e['subType']['startsWith']('tablePaste')){if(!_0x43324e['attributes']['tablePasteChainId']){_0x301673=!0x1;break;}if(_0x43324e['id']!=_0x32a089['id']&&_0x43324e['attributes']['tablePasteChainId']==_0x22edda){_0x2dae5d=!0x1;break;}}_0x301673&&_0x2dae5d&&(_0x32a089['removeMarkers'](),_0x1b6d6b=!0x0);}}for(const _0x43bb33 of _0x204e86)_0x3e5c5e['remove'](_0x43bb33);for(const _0x43c698 of _0xd3b9e4)_0x3e5c5e['unwrap'](_0x43c698);return _0x1b6d6b;}),_0x4dc7e9['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x4a20c3=>_0x35ab9d(_0x4a20c3),'converterPriority':'high'}),_0x4dc7e9['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x3c57cb,_0x1d789a)=>_0x1d789a['options']['showSuggestionHighlights']?_0x35ab9d(_0x3c57cb,!0x1):null,'converterPriority':'high'});const _0x330697=_0x4dc7e9['editing']['view'];this['listenTo'](_0x330697['document'],'clipboardOutput',(_0x4bbf6e,_0x2f4686)=>{const _0x5bd2a1=[];for(const _0x4278de of _0x330697['createRangeIn'](_0x2f4686['content'])['getItems']())_0x4278de['is']('element','suggestion-td')&&_0x5bd2a1['push'](_0x4278de);_0x330697['change'](_0x24ba3c=>{for(const _0x5223ae of _0x5bd2a1)_0x24ba3c['move'](_0x24ba3c['createRangeIn'](_0x5223ae),_0x24ba3c['createPositionBefore'](_0x5223ae)),_0x24ba3c['remove'](_0x5223ae);});});}}function Be(_0x3ba6c4){if(_0x3ba6c4['isEmpty'])return!0x0;const _0x4c7362=_0x3ba6c4['getChild'](0x0);return _0x4c7362['is']('element','paragraph')&&_0x4c7362['isEmpty'];}function Oe(_0x3abca8,_0xdf57c9={},_0x10819a){for(const {isAnchor:_0x3263ab,cellHeight:_0x50c61e,cellWidth:_0x1b35b1}of _0x10819a['createTableWalker'](_0x3abca8,{'includeAllSlots':!0x0,..._0xdf57c9}))if(!_0x3263ab||0x1!=_0x50c61e||0x1!=_0x1b35b1)return!0x1;return!0x0;}class Rt extends _0xb2d1b5{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x57b6c3=this['editor']['plugins']['get']('TrackChangesEditing');_0x57b6c3['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x57b6c3['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x57b6c3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x57b6c3['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x57b6c3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x57b6c3['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x47d836,_0x3d9bd7){const _0x151ed2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5c1aac=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x123d26=_0x3d9bd7['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x3f2d33=_0x5c1aac['getColumnGroupElement'](_0x123d26);let _0x4085a8=_0x3f2d33?_0x5c1aac['getTableColumnsWidths'](_0x3f2d33):null,_0x2c8574=_0x123d26['getAttribute']('tableWidth')||null;const _0x374faa=_0x3d9bd7['tableWidth']||_0x2c8574,_0x27a5a6=_0x3d9bd7['columnWidths']||_0x4085a8,_0x9bbd43=this['editor']['plugins']['get']('Users')['me'];for(const _0x5a788e of _0x151ed2['getSuggestions']()){const _0x541f0b=_0x5a788e['getContainedElement']();if('resizeTable'===_0x5a788e['subType']&&_0x541f0b===_0x123d26){_0x5a788e['author']!==_0x9bbd43&&_0x5a788e['discard']();const _0x3dc91=_0x5a788e['data']['commandParams'];_0x2c8574=_0x3dc91[0x0]['tableWidth'],_0x4085a8=_0x3dc91[0x0]['columnWidths'];break;}}_0x47d836({'table':_0x123d26,'tableWidth':_0x374faa,'columnWidths':_0x27a5a6}),_0x151ed2['markBlockFormat'](_0x123d26,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x2c8574,'columnWidths':_0x4085a8}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x160be8){if('formatBlock'!=_0x160be8['type']&&'formatInline'!=_0x160be8['type'])return;const {data:_0x2e2580}=_0x160be8;if(_0x2e2580&&'resizeTable'===_0x2e2580['formatGroupId']){const _0x43fb14='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x43fb14)};}}}class Tt extends _0xb2d1b5{['afterInit'](){const _0x3c7daf=this['editor'];_0x3c7daf['plugins']['has']('Template')&&_0x3c7daf['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Et extends _0xb2d1b5{['afterInit'](){const _0xb76c78=this['editor'];if(!_0xb76c78['commands']['get']('insertTableOfContents'))return;_0xb76c78['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x599e0d=_0xb76c78['plugins']['get']('TrackChangesEditing'),_0x1a3b95=_0xb76c78['locale'];_0x599e0d['descriptionFactory']['registerElementLabel']('tableOfContents',_0x1eab45=>o(_0x1a3b95,'ELEMENT_TABLE_OF_CONTENTS',_0x1eab45));}}class Ut extends _0xb2d1b5{['afterInit'](){const _0x1cf5f9=this['editor'];if(!_0x1cf5f9['plugins']['has']('Title'))return;const _0x526ed8=_0x1cf5f9['plugins']['get']('TrackChangesEditing');_0x526ed8['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x1cf5f9['locale'],'ELEMENT_TITLE')),_0x1cf5f9['model']['document']['registerPostFixer'](_0x296e32=>{let _0x2404df=!0x1;const _0x4ffb15=Array['from'](_0x1cf5f9['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2b1228,data:_0x8383b4}of _0x4ffb15){const {group:_0x31b39c}=_0x526ed8['_splitMarkerName'](_0x2b1228);if('suggestion'!==_0x31b39c||!_0x8383b4['newRange'])continue;const _0x5a1843=_0x8383b4['newRange'],_0x277f75=_0x5a1843['end']['nodeBefore'];if(!_0x277f75||!_0x277f75['is']('element','title-content'))continue;if(!_0x5a1843['start']['isTouching'](_0x5a1843['end']))continue;const _0x372fed=_0x1cf5f9['model']['schema']['getNearestSelectionRange'](_0x5a1843['end'],'forward');if(_0x372fed&&_0x372fed['isCollapsed']){const _0x357406=_0x296e32['createRange'](_0x5a1843['start'],_0x372fed['start']);_0x357406['isEqual'](_0x5a1843)||(_0x296e32['updateMarker'](_0x2b1228,{'range':_0x357406}),_0x2404df=!0x0);}_0x2404df||(_0x296e32['removeMarker'](_0x2b1228),_0x2404df=!0x0);}return _0x2404df;});}}class Vt extends _0xb2d1b5{['afterInit'](){const _0xc08151=this['editor'],_0x25c566=_0xc08151['plugins']['get']('TrackChangesEditing');_0xc08151['plugins']['has']('Uploadcare')&&(_0x25c566['enableCommand']('uploadcare'),_0xc08151['plugins']['has']('UploadcareImageEdit')&&(_0x25c566['enableCommand']('uploadcareImageEdit'),_0x25c566['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x25c566['descriptionFactory']['registerDescriptionCallback'](_0x11974b=>{if('attribute'!=_0x11974b['type'])return;const {data:_0x32ab03}=_0x11974b;return _0x32ab03&&'uploadcareImageId'==_0x32ab03['key']?{'type':'format','content':''}:void 0x0;})));}}class Ft extends _0xb2d1b5{['afterInit'](){const _0x2aa556=this['editor'],_0x415aa7=_0x2aa556['plugins']['get']('TrackChangesEditing');_0x2aa556['plugins']['has']('UndoEditing')&&(_0x415aa7['enableCommand']('undo'),_0x415aa7['enableCommand']('redo'));}}class Pt extends _0xb2d1b5{static get['requires'](){return[Dt];}['afterInit'](){const _0x22e5cd=this['editor'];if(!_0x22e5cd['plugins']['has']('TableCaptionEditing'))return;_0x22e5cd['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Gt extends _0xb2d1b5{['tableProperties'];['tableCellProperties'];constructor(_0x5d67b4){super(_0x5d67b4),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'],_0x5d67b4['config']['get']('experimentalFlags.tableCellTypeSupport')&&this['tableCellProperties']['push']('tableCellType');}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x41ce5b=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x3ac735 of this['tableProperties'])_0x41ce5b['enableCommand'](_0x3ac735,(_0x34be9d,_0x104b9f)=>{const _0x3209ee=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x3ac735,[_0x3209ee],this['tableProperties'],'tableProperties',_0x34be9d,_0x104b9f);});_0x41ce5b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x41ce5b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x41ce5b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x4699f6,_0x3ad063)=>this['handleDiscardAction'](this['tableProperties'],_0x4699f6,_0x3ad063)),_0x41ce5b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x1e2592 of this['tableCellProperties'])this['editor']['commands']['get'](_0x1e2592)&&_0x41ce5b['enableCommand'](_0x1e2592,(_0xfcd9a,_0x1a7a1b)=>{const _0xa5183f=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x1e2592,_0xa5183f,this['tableCellProperties'],'tableCellProperties',_0xfcd9a,_0x1a7a1b);});_0x41ce5b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x41ce5b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x41ce5b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x31e1cc,_0x193e6a)=>this['handleDiscardAction'](this['tableCellProperties'],_0x31e1cc,_0x193e6a)),_0x41ce5b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x41ce5b['descriptionFactory']['registerAttributeLabel']('tableCellType',o(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x41ce5b['descriptionFactory']['registerDescriptionCallback'](_0xc5e820=>this['handleSuggestionDescription'](_0xc5e820)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x20e4b2,_0x2fe8d7,_0x3c3a7e,_0x4dc862,_0x355089,_0x45807e){const _0x36a0c3=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x45807e['batch'],()=>{for(const _0x52d15a of _0x2fe8d7){if(this['_getSuggestion'](_0x52d15a,_0x4dc862))_0x355089(_0x45807e);else{const _0x499d1a={};for(const _0x2b38ff of _0x3c3a7e){const _0x3e2d03=_0x52d15a['getAttribute'](_0x2b38ff);void 0x0!==_0x3e2d03&&(_0x499d1a[_0x2b38ff]=_0x3e2d03);}_0x355089(_0x45807e),_0x36a0c3['markBlockFormat'](_0x52d15a,{'commandParams':[_0x499d1a]},[],_0x4dc862);}}});}['handleDiscardAction'](_0x3e5ad0,_0x98e735,_0x4c0024){const _0x1d00ac=_0x98e735[0x0]['start']['nodeAfter'],_0x53b15a=_0x4c0024['commandParams'][0x0];this['editor']['model']['change'](_0x440950=>{for(const _0x4e2048 of _0x3e5ad0)void 0x0!==_0x53b15a[_0x4e2048]?_0x440950['setAttribute'](_0x4e2048,_0x53b15a[_0x4e2048],_0x1d00ac):_0x440950['removeAttribute'](_0x4e2048,_0x1d00ac);});}['handleSuggestionDescription'](_0x188da7){if(_0x188da7['data'])switch(_0x188da7['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'](_0x44306c,_0xb705e1){const _0x4b4bc5=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x1bef0c of _0x4b4bc5['getSuggestions']({'skipNotAttached':!0x0})){const _0x4dc3f5=_0x1bef0c['getContainedElement']();if(_0x1bef0c['subType']===_0xb705e1&&_0x4dc3f5===_0x44306c)return _0x1bef0c;}return null;}['_registerTablePropertiesAttributes'](){const _0x32198e=this['editor']['plugins']['get']('TrackChangesEditing'),_0xb87017=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x33f710 of _0xb87017){const _0x3b699c=_0x33f710['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x32198e['descriptionFactory']['registerAttributeLabel'](_0x33f710,o(this['editor']['locale'],'FORMAT_'+_0x3b699c));}}}class Lt extends _0xb2d1b5{['afterInit'](){const _0x54c44e=this['editor'];if(!_0x54c44e['plugins']['has']('LineHeight'))return;const _0x33b4a2=_0x54c44e['plugins']['get']('TrackChangesEditing'),_0x2c3f75=_0x54c44e['locale'];_0x33b4a2['enableDefaultAttributesIntegration']('lineHeight'),_0x33b4a2['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x2c3f75,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0xb2d1b5{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x24828a,_0x3dac01,_0x24c32b,_0x2299d5,U,V,F,G,L,J,q,K,z,W,H,Q,Z,tt,nt,it,et,st,ot,rt,at,ct,ut,ht,ft,lt,gt,mt,pt,wt,jt,dt,X,Lt,Y,kt,bt,yt,St,It,At,_t,Ct,Nt,$t,vt,Dt,Bt,Ot,xt,Pt,Mt,Rt,Et,Gt,Tt,Ut,Vt,Ft];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x45e8e4){super(_0x45e8e4),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x5cec7c,_0x32637c,_0x4dfc00,_0x107e87)=>{this['_model']['change'](()=>{for(const _0x3c1cb5 of[..._0x107e87,..._0x4dfc00])this['_model']['markers']['has'](_0x3c1cb5)&&_0x45e8e4['editing']['reconvertMarker'](_0x3c1cb5);});}),this['descriptionFactory']=new E(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new SuggestionFactory(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x45e8e4['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x45e8e4['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x45e8e4['config']['get']('trackChanges.trackFormatChanges'),_0x45e8e4['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x45e8e4['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x45e8e4,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x1986b3=this['editor'];_0x1986b3['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x633635,{writer:_0x1d51a3})=>{let _0x38d843='suggestion:'+_0x633635['getAttribute']('suggestion-type')+':'+_0x633635['getAttribute']('id');return _0x633635['getAttribute']('marker-count')&&(_0x38d843+=':'+_0x633635['getAttribute']('marker-count')),_0x1d51a3['createElement']('$marker',{'data-name':_0x38d843});}}),_0x1986b3['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x1986b3['model']['document']['registerPostFixer'](_0x52a2ad=>{let _0x2c1382=!0x1;const _0x11c228=Array['from'](_0x1986b3['model']['document']['differ']['getChangedMarkers']()),_0xbf3239=new Set();for(const {name:_0x23074e,data:_0x59e170}of _0x11c228){const {group:_0xa958e9,type:_0x4c0e53,subType:_0x590290,id:_0x212e84}=this['_splitMarkerName'](_0x23074e);if('suggestion'!==_0xa958e9)continue;const _0x3c124d=_0x590290?'suggestion:'+_0x4c0e53+':'+_0x590290+':'+_0x212e84:'suggestion:'+_0x4c0e53+':'+_0x212e84,_0x5cde55=_0x1986b3['model']['markers']['getMarkersGroup'](_0x3c124d),_0x358c47=_0x1986b3['model']['markers']['get'](_0x23074e),_0x7b4947=this['_suggestions']['get'](_0x212e84);if(null!=_0x59e170['newRange']){'formatInline'==_0x4c0e53&&(_0x2c1382=_0x2c1382||Kt(_0x59e170['newRange'],_0x23074e,_0x52a2ad,_0x1986b3['model']['schema']));const _0x268a0e='attribute'==_0x4c0e53&&this['_isBlockAttribute'](_0x590290['split']('|')[0x0]),_0xa8a1e3='attribute'==_0x4c0e53&&this['_isInlineAttribute'](_0x590290['split']('|')[0x0]);if(_0x59e170['newRange']['isCollapsed']||'$graveyard'==_0x59e170['newRange']['root']['rootName']||'formatBlock'==_0x4c0e53&&!Ht(_0x59e170['newRange'])||_0x268a0e&&!Ht(_0x59e170['newRange'])||_0xa8a1e3&&Qt(_0x59e170['newRange'])||'deletion'==_0x4c0e53&&Qt(_0x59e170['newRange'])||_0x358c47&&Xt(_0x358c47,_0x5cde55))_0x52a2ad['removeMarker'](_0x23074e),_0x2c1382=!0x0;else{if(!_0x7b4947||!_0x7b4947['isInContent'])continue;if(_0x59e170['newRange']&&_0x59e170['oldRange']&&_0x59e170['newRange']['isEqual'](_0x59e170['oldRange']))continue;_0xbf3239['add'](_0x7b4947);}}}return _0xbf3239['size']>0x0&&(_0x2c1382=!!this['_joinWithAdjacentSuggestions'](_0xbf3239)||_0x2c1382),_0x2c1382;}),_0x1986b3['model']['document']['registerPostFixer'](_0x28ebd9=>{let _0x3b6b8f=!0x1;for(const _0x3da09b of _0x1986b3['model']['document']['differ']['getChanges']())if('insert'==_0x3da09b['type'])for(const _0x267756 of this['_suggestions']['values']()){if(_0x267756['isMultiRange']||!_0x267756['isInContent'])continue;const _0x3a958d='formatBlock'==_0x267756['type'],_0xf99daf=this['_getAttributeKey'](_0x267756),_0x5d58a7=_0xf99daf&&this['_isBlockAttribute'](_0xf99daf);if(!_0x3a958d&&!_0x5d58a7)continue;const _0x2014ea=_0x267756['getFirstRange']();if(_0x2014ea['start']['parent']!=_0x2014ea['end']['parent']&&!_0x2014ea['end']['isAtEnd']){const _0x542a45=_0x1986b3['model']['createPositionAt'](_0x2014ea['start']['nodeAfter'],'end'),_0x2b4fa3=_0x1986b3['model']['createRange'](_0x2014ea['start'],_0x542a45);_0x28ebd9['updateMarker'](_0x267756['getFirstMarker'](),{'range':_0x2b4fa3}),_0x3b6b8f=!0x0;}}return _0x3b6b8f;}),_0x1986b3['model']['document']['registerPostFixer'](_0x29a0a0=>this['_processAttributeChanges'](_0x29a0a0)),_0x1986b3['model']['document']['registerPostFixer'](_0x37f108=>!_0x37f108['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x37f108)),_0x1986b3['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x1986b3['model']['document']['on']('change:data',(_0x17d8b9,_0x3a06be)=>{if(!_0x3a06be['isLocal']||_0x3a06be['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x1ed664=_0x1986b3['model']['document']['differ']['getChanges']();if(0x0==_0x1ed664['length'])return;const _0x55f0c9=[],_0x384a7c=_0x1ed664['filter'](_0x6ebdd8=>'attribute'==_0x6ebdd8['type']),_0x1ccdef=_0x1ed664['filter'](_0x54a693=>'insert'==_0x54a693['type']&&'$text'!=_0x54a693['name']);for(const _0x2e48ac of _0x384a7c)this['_isRegisteredAttribute'](_0x2e48ac['attributeKey'])&&_0x55f0c9['push']({'key':_0x2e48ac['attributeKey'],'newValue':_0x2e48ac['attributeNewValue'],'oldValue':_0x2e48ac['attributeOldValue'],'range':Yt(_0x2e48ac['range'],_0x1986b3['model'])});for(const _0x54b3d0 of _0x1ccdef){if('rename'!=_0x54b3d0['action']&&'refresh'!=_0x54b3d0['action'])continue;const _0x58cdd8=Zt(_0x54b3d0['position']['nodeAfter'],_0x1986b3['model']),_0x38cb2a=_0x54b3d0['before'];'rename'==_0x54b3d0['action']&&_0x55f0c9['push']({'key':m,'newValue':_0x54b3d0['name'],'oldValue':_0x38cb2a['name'],'range':_0x58cdd8});for(const [_0x3aad29,_0x116bfc]of _0x38cb2a['attributes']){if(!this['_isRegisteredAttribute'](_0x3aad29))continue;const _0x21a0cb=_0x54b3d0['attributes']['get'](_0x3aad29);_0x116bfc!==_0x21a0cb&&_0x55f0c9['push']({'key':_0x3aad29,'newValue':_0x21a0cb,'oldValue':_0x116bfc,'range':_0x58cdd8});}for(const [_0x26b492,_0x2c656d]of _0x54b3d0['attributes'])this['_isRegisteredAttribute'](_0x26b492)&&(_0x38cb2a['attributes']['has'](_0x26b492)||_0x55f0c9['push']({'key':_0x26b492,'newValue':_0x2c656d,'oldValue':null,'range':_0x58cdd8}));}0x0!=_0x55f0c9['length']&&_0x1986b3['model']['enqueueChange'](_0x3a06be,_0x321cd3=>{const _0x1cc7c9=_0x43100d();for(const {range:_0x5948db,key:_0x52d501,oldValue:_0x27660e,newValue:_0x1a76fe}of _0x55f0c9)this['markAttributeChange'](_0x5948db,_0x52d501,_0x27660e,_0x1a76fe,{'groupId':_0x1cc7c9});this['_reduceExistingSuggestions'](_0x321cd3,_0x55f0c9);});},{'priority':'lowest'}),_0x1986b3['model']['markers']['on']('update:suggestion',(_0x1eaafd,_0x14ba7c,_0xc6aade)=>{if(null==_0xc6aade){const {id:_0xf50b8}=this['_splitMarkerName'](_0x14ba7c['name']),_0x4743df=this['_suggestions']['get'](_0xf50b8);_0x4743df&&_0x4743df['addMarkerName'](_0x14ba7c['name']);}}),_0x1986b3['model']['document']['on']('change:data',()=>{const _0x44d5cd=Array['from'](_0x1986b3['model']['document']['differ']['getChangedMarkers']())['filter'](_0x73c99=>'suggestion'===this['_splitMarkerName'](_0x73c99['name'])['group']);if(0x0===_0x44d5cd['length'])return;_0x44d5cd['sort']((_0x5c1d27,_0x179c66)=>{const _0x2c75d1=_0x5c1d27['data']['oldRange'],_0x5ecbf6=_0x179c66['data']['oldRange'];return null===_0x2c75d1&&null===_0x5ecbf6?0x0:null===_0x2c75d1&&null!==_0x5ecbf6?-0x1:null!==_0x2c75d1&&null===_0x5ecbf6?0x1:_0x2c75d1['start']['isBefore'](_0x5ecbf6['start'])?-0x1:0x1;});const _0x17ab24=new Set(),_0x44e251=new Set();for(const {name:_0x3c7080,data:_0x3996ab}of _0x44d5cd){const {id:_0x50eb93}=this['_splitMarkerName'](_0x3c7080);if(null===_0x3996ab['oldRange']){const _0x49716b=this['_handleNewSuggestionMarker'](_0x3c7080);_0x44e251['add'](_0x49716b);}else{const _0x8ce376=this['_suggestions']['get'](_0x50eb93);null!==_0x3996ab['newRange']||_0x8ce376['isInContent']?(_0x17ab24['add'](_0x8ce376['head']),_0x44e251['add'](_0x8ce376)):this['_removeSuggestion'](_0x8ce376);}}_0x44e251['size']>0x0&&this['_refreshSuggestionsChain'](_0x44e251);for(const _0x86933d of _0x17ab24)this['fire']('suggestionChanged',_0x86933d);}),_0x1986b3['model']['on']('applyOperation',(_0x8b865d,_0x349b23)=>{const _0x1f7d14=_0x349b23[0x0];if(!this['_suggestions']['size'])return;if(!_0x1f7d14['isDocumentOperation'])return;if(_0x1f7d14['batch']['isUndo']||!_0x1f7d14['batch']['isLocal'])return;let _0x60c12,_0x51efcc;switch(_0x1f7d14['type']){case'insert':_0x60c12=_0x1986b3['model']['createPositionAt'](_0x1f7d14['position']),_0x51efcc=_0x60c12['getShiftedBy'](_0x1f7d14['howMany']);break;case'split':_0x60c12=_0x1986b3['model']['createPositionAt'](_0x1f7d14['splitPosition']),_0x51efcc=_0x1986b3['model']['createPositionAt'](_0x1f7d14['moveTargetPosition']);break;case'move':_0x60c12=_0x1986b3['model']['createPositionAt'](_0x1f7d14['targetPosition']),_0x51efcc=_0x60c12['getShiftedBy'](_0x1f7d14['howMany']);break;default:return;}const _0x34d607=_0x1986b3['model']['createRange'](_0x60c12,_0x51efcc);_0x1986b3['model']['change'](()=>{for(const {suggestion:_0x3ea80d,meta:_0x29176d}of this['_findSuggestions'](_0x34d607)){if(_0x3ea80d['isMultiRange'])continue;if('formatInline'==_0x3ea80d['type'])continue;const _0x4bea8b=this['_getAttributeKey'](_0x3ea80d);if(_0x4bea8b&&this['_isBlockAttribute'](_0x4bea8b)&&'split'!=_0x1f7d14['type'])continue;const _0x2d1990=_0x3ea80d['data']&&_0x3ea80d['data']['multipleBlocks'];('formatBlock'!=_0x3ea80d['type']||'split'==_0x1f7d14['type']&&!_0x2d1990)&&(_0x29176d['containsRangeInObject']||'insertion'==_0x3ea80d['type']&&_0x29176d['isOwn']||_0x3ea80d['getFirstRange']()['containsRange'](_0x34d607)&&this['_breakSuggestionMarker'](_0x3ea80d,_0x60c12,_0x51efcc));}});},{'priority':'lowest'}),_0x1986b3['model']['on']('deleteContent',(_0x587c5a,_0x322975)=>{const _0xb3ce37=_0x322975[0x0],_0x4e712f=_0x322975[0x1];if(_0x4e712f&&_0x4e712f['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0xb3ce37['isCollapsed'])return;const _0x48f395=_0x1986b3['model']['schema'],{start:_0x249ca6,end:_0x4e3865}=_0xb3ce37['getFirstRange'](),_0x1794aa=_0x249ca6['nodeAfter']&&_0x48f395['isLimit'](_0x249ca6['nodeAfter'])?null:_0x48f395['getNearestSelectionRange'](_0x249ca6,'forward'),_0x238fcb=_0x4e3865['nodeBefore']&&_0x48f395['isLimit'](_0x4e3865['nodeBefore'])?null:_0x48f395['getNearestSelectionRange'](_0x4e3865,'backward'),_0x330434=_0x1986b3['model']['createRange'](_0x1794aa?_0x1794aa['start']:_0x249ca6,_0x238fcb?_0x238fcb['end']:_0x4e3865);_0x1986b3['model']['change'](_0x5ec732=>{this['markDeletion'](_0x330434);const _0x2744f2=_0x1986b3['model']['schema']['getNearestSelectionRange'](_0x330434['start']);_0xb3ce37['is']('documentSelection')?_0x5ec732['setSelection'](_0x2744f2):_0xb3ce37['setTo'](_0x2744f2);}),_0x587c5a['stop']();},{'priority':_0x1bfb2d['normal']+0xa}),_0x1986b3['model']['on']('insertContent',(_0x2245b2,_0x29ab3d)=>{const _0x5d59c3=_0x29ab3d[_0x29ab3d['length']-0x1];_0x5d59c3&&_0x5d59c3['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x1986b3['model']['change'](()=>{let _0xe93a33=_0x1986b3['model']['insertContent'](_0x29ab3d[0x0],_0x29ab3d[0x1],_0x29ab3d[0x2],{'forceDefaultExecution':!0x0});if(!_0xe93a33)return;_0x2245b2['return']=_0xe93a33['clone']();const _0xe28d9b=_0xe93a33['end']['nodeBefore'],_0xad7d3=_0x1986b3['model']['schema'];_0xe28d9b&&_0xad7d3['isBlock'](_0xe28d9b)&&!_0xad7d3['isObject'](_0xe28d9b)&&(_0xe93a33=_0x1986b3['model']['createRange'](_0xe93a33['start'],_0x1986b3['model']['createPositionAt'](_0xe28d9b,'end'))),this['markInsertion'](_0xe93a33);}),_0x2245b2['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x513c17=new O(_0x1986b3,this['_suggestions']);_0x1986b3['commands']['add']('acceptSuggestion',_0x513c17),this['enableCommand']('acceptSuggestion');const _0x2ad2c0=new x(_0x1986b3,this['_suggestions']);_0x1986b3['commands']['add']('discardSuggestion',_0x2ad2c0),this['enableCommand']('discardSuggestion'),_0x1986b3['commands']['add']('acceptAllSuggestions',new M(_0x1986b3,_0x513c17,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x1986b3['commands']['add']('discardAllSuggestions',new M(_0x1986b3,_0x2ad2c0,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x1986b3['commands']['add']('acceptSelectedSuggestions',new R(_0x1986b3,_0x513c17,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x1986b3['commands']['add']('discardSelectedSuggestions',new R(_0x1986b3,_0x2ad2c0,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x223c93=_0x1986b3['plugins']['get']('CommentsRepository');this['listenTo'](_0x223c93,'addComment',(_0x38128c,{threadId:_0x516ed7})=>{const _0x59384e=this['_suggestions']['get'](_0x516ed7);_0x59384e&&_0x59384e['commentThread']&&0x1===_0x59384e['commentThread']['length']&&this['_updateSuggestionData'](_0x516ed7,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x223c93,'removeComment',(_0x9afad0,{threadId:_0x188061})=>{const _0x332a4d=this['_suggestions']['get'](_0x188061);_0x332a4d&&_0x332a4d['commentThread']&&!_0x332a4d['commentThread']['length']&&this['_updateSuggestionData'](_0x188061,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x55898c){const _0x99a5d3=_0x3bb055([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x4a0037=0x3d8d0df,_0x576650=0x3df451f^_0x4a0037,_0x9eb8e7=window[_0x3bb055([0x44,0x61,0x74,0x65])][_0x3bb055([0x6e,0x6f,0x77])](),_0x2dacdd=_0x55898c[_0x3bb055([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2a0683=new window[(_0x3bb055([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x329261=>{_0x2dacdd[_0x3bb055([0x6f,0x6e,0x63,0x65])](_0x3bb055([0x72,0x65,0x61,0x64,0x79]),_0x329261);}),_0x1117c6={[_0x3bb055([0x6b,0x74,0x79])]:_0x3bb055([0x45,0x43]),[_0x3bb055([0x75,0x73,0x65])]:_0x3bb055([0x73,0x69,0x67]),[_0x3bb055([0x63,0x72,0x76])]:_0x3bb055([0x50,0x2d,0x32,0x35,0x36]),[_0x3bb055([0x78])]:_0x3bb055([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]),[_0x3bb055([0x79])]:_0x3bb055([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]),[_0x3bb055([0x61,0x6c,0x67])]:_0x3bb055([0x45,0x53,0x32,0x35,0x36])},_0x48d589=_0x2dacdd[_0x3bb055([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3bb055([0x67,0x65,0x74])](_0x3bb055([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x14a2f3(){let _0x516eb2,_0x35ba5e=null,_0x4b2512=null;try{if(_0x48d589==_0x3bb055([0x47,0x50,0x4c]))return _0x3bb055([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x516eb2=_0x1996a4(),!_0x516eb2)return _0x3bb055([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x516eb2[_0x3bb055([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4b2512=_0x52513e(_0x516eb2[_0x3bb055([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x516eb2[_0x3bb055([0x6a,0x74,0x69])])),await _0x39ec4f()?_0x325904()?_0x50fd30()?_0x3bb055([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x470d65()?(_0x516eb2[_0x3bb055([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3bb055([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x35ba5e=_0x59cabd(_0x3bb055([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4e29e0()):_0x3bb055([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3bb055([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3bb055([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3bb055([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x50fd30(){const _0x1fb6aa=[_0x3bb055([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3bb055([0x74,0x72,0x69,0x61,0x6c])][_0x3bb055([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x516eb2[_0x3bb055([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x9eb8e7/0x3e8:0xe10*_0x576650;return _0x516eb2[_0x3bb055([0x65,0x78,0x70])]<_0x1fb6aa;}function _0x325904(){const _0x7ca9b3=_0x516eb2[_0x3bb055([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x7ca9b3)return!0x1;if(_0x7ca9b3[_0x3bb055([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3bb055([0x2a])))return!0x0;if(_0x7ca9b3[_0x3bb055([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3bb055([0x54,0x43])))return!0x0;if(_0x7ca9b3[_0x3bb055([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3bb055([0x52,0x54,0x43]))){if(_0x3bc414())return!0x0;if(_0x411621()||_0x36e790())return!0x0;}return!0x1;}function _0x470d65(){const _0x17d2f6=_0x516eb2[_0x3bb055([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x17d2f6||0x0==_0x17d2f6[_0x3bb055([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x119249}=new URL(window[_0x3bb055([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x17d2f6[_0x3bb055([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x119249))return!0x0;const _0x49fc6b=_0x119249[_0x3bb055([0x73,0x70,0x6c,0x69,0x74])](_0x3bb055([0x2e]));return _0x17d2f6[_0x3bb055([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x29a1b6=>_0x29a1b6[_0x3bb055([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3bb055([0x2a])))[_0x3bb055([0x6d,0x61,0x70])](_0x23eab2=>_0x23eab2[_0x3bb055([0x73,0x70,0x6c,0x69,0x74])](_0x3bb055([0x2e])))[_0x3bb055([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x36be13=>_0x36be13[_0x3bb055([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x49fc6b[_0x3bb055([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3bb055([0x6d,0x61,0x70])](_0x489a1d=>Array(_0x49fc6b[_0x3bb055([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x489a1d[_0x3bb055([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3bb055([0x66,0x69,0x6c,0x6c])](_0x489a1d[0x0]===_0x3bb055([0x2a])?_0x3bb055([0x2a]):'')[_0x3bb055([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x489a1d))[_0x3bb055([0x73,0x6f,0x6d,0x65])](_0x15bc34=>_0x49fc6b[_0x3bb055([0x65,0x76,0x65,0x72,0x79])]((_0x5570e7,_0x4f6fbd)=>_0x15bc34[_0x4f6fbd]===_0x5570e7||_0x15bc34[_0x4f6fbd]===_0x3bb055([0x2a])));}function _0x4e29e0(){return _0x35ba5e&&_0x4b2512?new window[(_0x3bb055([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1c89bc,_0x3539f6)=>{_0x35ba5e[_0x3bb055([0x74,0x68,0x65,0x6e])](_0x1c89bc,_0x3539f6),_0x4b2512[_0x3bb055([0x74,0x68,0x65,0x6e])](_0x8b6c9c=>{_0x8b6c9c!=_0x3bb055([0x56,0x61,0x6c,0x69,0x64])&&_0x1c89bc(_0x8b6c9c);},_0x3539f6);}):_0x35ba5e||_0x4b2512||_0x3bb055([0x56,0x61,0x6c,0x69,0x64]);}}function _0x52513e(_0x4cf269,_0x54407f){return new window[(_0x3bb055([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5a930a=>{if(_0xde4cf5())return _0x5a930a(_0x3bb055([0x56,0x61,0x6c,0x69,0x64]));_0x4fde0d(),_0x2dacdd[_0x3bb055([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3bb055([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5848e1=!0x1;const _0xde6b4=_0x43100d();function _0x4be6b5(_0x8d5607){return!!_0x8d5607&&(typeof _0x8d5607===_0x3bb055([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x8d5607===_0x3bb055([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x8d5607[_0x3bb055([0x74,0x68,0x65,0x6e])]===_0x3bb055([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x8d5607[_0x3bb055([0x63,0x61,0x74,0x63,0x68])]===_0x3bb055([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1eabf0(_0x52197f){_0x50f27b(_0x52197f)[_0x3bb055([0x74,0x68,0x65,0x6e])](_0x5c1265=>{if(!_0x5c1265||_0x5c1265[_0x3bb055([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3bb055([0x6f,0x6b]))return _0x3bb055([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x20ba74(_0x56c997(_0xde6b4+_0x54407f))!=_0x5c1265[_0x3bb055([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3bb055([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3bb055([0x56,0x61,0x6c,0x69,0x64]);})[_0x3bb055([0x74,0x68,0x65,0x6e])](_0x2f25ea=>(_0x25b506(),_0x2f25ea),()=>{const _0x17c574=_0x2c3b8d();return null==_0x17c574?(_0x25b506(),_0x3bb055([0x56,0x61,0x6c,0x69,0x64])):_0x3bb055(_0x9eb8e7-_0x17c574>(0x27d454df^_0x4a0037)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3bb055([0x74,0x68,0x65,0x6e])](_0x5a930a)[_0x3bb055([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5a930a(_0x3bb055([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x136616=0x3ee3e5f^_0x4a0037;function _0x25b506(){const _0x299ffb=_0x3bb055([0x6c,0x6c,0x63,0x74,0x2d])+_0x20ba74(_0x56c997(_0x4cf269)),_0xaa09=_0x408768(_0x20ba74(window[_0x3bb055([0x4d,0x61,0x74,0x68])][_0x3bb055([0x63,0x65,0x69,0x6c])](_0x9eb8e7/_0x136616)));window[_0x3bb055([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3bb055([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x299ffb,_0xaa09);}function _0x2c3b8d(){const _0x352da5=_0x3bb055([0x6c,0x6c,0x63,0x74,0x2d])+_0x20ba74(_0x56c997(_0x4cf269)),_0x2c971c=window[_0x3bb055([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3bb055([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x352da5);return _0x2c971c?window[_0x3bb055([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x408768(_0x2c971c),0x10)*_0x136616:null;}function _0x50f27b(_0x1de5e7){return new window[(_0x3bb055([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4e3bc3,_0x114462)=>{_0x1de5e7[_0x3bb055([0x74,0x68,0x65,0x6e])](_0x4e3bc3,_0x114462),window[_0x3bb055([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x114462,0x3d9041f^_0x4a0037);});}}_0x2dacdd[_0x3bb055([0x6f,0x6e])](_0x3bb055([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x368ad9,_0x30eda1)=>{if(_0x30eda1[0x0]!=_0x4cf269)return _0x5a930a(_0x3bb055([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x30eda1[0x1]={..._0x30eda1[0x1],[_0x3bb055([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xde6b4};},{[_0x3bb055([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3bb055([0x68,0x69,0x67,0x68])}),_0x2dacdd[_0x3bb055([0x6f,0x6e])](_0x3bb055([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xf7a2b5=>{_0x4be6b5(_0xf7a2b5[_0x3bb055([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5848e1=!0x0,_0x1eabf0(_0xf7a2b5[_0x3bb055([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3bb055([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3bb055([0x6c,0x6f,0x77])}),_0x2a0683[_0x3bb055([0x74,0x68,0x65,0x6e])](()=>{_0x5848e1||_0x5a930a(_0x3bb055([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xde4cf5(){return _0x2dacdd[_0x3bb055([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3bb055([0x76,0x69,0x65,0x77])][_0x3bb055([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3bb055([0x61,0x75,0x74,0x6f]);}function _0x4fde0d(){_0x2dacdd[_0x3bb055([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3bb055([0x76,0x69,0x65,0x77])][_0x3bb055([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3bb055([0x61,0x75,0x74,0x6f]);}}function _0x59cabd(_0x414eba){const _0x7eb797=[new window[(_0x3bb055([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4c4960=>setTimeout(_0x4c4960,0x3d1ee13^_0x4a0037)),_0x2a0683[_0x3bb055([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3bb055([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x146bec=>{let _0x2c28f0=0x0;_0x2dacdd[_0x3bb055([0x6d,0x6f,0x64,0x65,0x6c])][_0x3bb055([0x6f,0x6e])](_0x3bb055([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x251b1e,_0x511d86)=>{_0x511d86[0x0][_0x3bb055([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2c28f0++,_0x2c28f0==(0x3d8d537^_0x4a0037)&&(_0x146bec(),_0x251b1e[_0x3bb055([0x6f,0x66,0x66])]());});}))];return window[_0x3bb055([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3bb055([0x72,0x61,0x63,0x65])](_0x7eb797)[_0x3bb055([0x74,0x68,0x65,0x6e])](()=>_0x414eba);}async function _0x41a883(){await _0x2a0683,_0x2dacdd[_0x3bb055([0x6d,0x6f,0x64,0x65,0x6c])][_0x3bb055([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3a1fda,_0x2dacdd[_0x3bb055([0x6d,0x6f,0x64,0x65,0x6c])][_0x3bb055([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3a1fda,_0x2dacdd[_0x3bb055([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3bb055([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3bc414(){return _0x9c5be3(_0x3bb055([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x162534(_0x3bb055([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x3bb055([0x73,0x74,0x61,0x74,0x65])]==_0x3bb055([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x411621(){return _0x9c5be3(_0x3bb055([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 _0x36e790(){return _0x9c5be3(_0x3bb055([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x3c4bd1(_0x284063){const _0x37650d=_0x258918();_0x2dacdd[_0x37650d]=_0x3bb055([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x284063,_0x284063!=_0x3bb055([0x56,0x61,0x6c,0x69,0x64])&&_0x41a883();}function _0x258918(){const _0x57869c=window[_0x3bb055([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3bb055([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3bb055([0x6e,0x6f,0x77])]())[_0x3bb055([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3bb055([0x2e]),'');let _0x3fa793=_0x3bb055([0x52]);for(let _0x4f3419=0x0;_0x4f3419<_0x57869c[_0x3bb055([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4f3419+=0x2){let _0x5257d6=window[_0x3bb055([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x57869c[_0x3bb055([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4f3419,_0x4f3419+0x2));_0x5257d6>=_0x99a5d3[_0x3bb055([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5257d6-=_0x99a5d3[_0x3bb055([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3fa793+=_0x99a5d3[_0x5257d6];}return _0x3fa793;}function _0x1996a4(){const _0x34ee75=_0x48d589[_0x3bb055([0x73,0x70,0x6c,0x69,0x74])](_0x3bb055([0x2e]));if(0x3!=_0x34ee75[_0x3bb055([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1e4807(_0x34ee75[0x1]);function _0x1e4807(_0x5c508e){const _0x33fcca=_0x19fbb7(_0x5c508e);return _0x33fcca&&_0x513ff4()?_0x33fcca:null;function _0x513ff4(){const _0x217486=_0x33fcca[_0x3bb055([0x6a,0x74,0x69])],_0x29c35b=window[_0x3bb055([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x217486[_0x3bb055([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x217486[_0x3bb055([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x6912e9={..._0x33fcca,[_0x3bb055([0x6a,0x74,0x69])]:_0x217486[_0x3bb055([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x217486[_0x3bb055([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x6912e9[_0x3bb055([0x76,0x63])],_0x56c997(_0x6912e9)==_0x29c35b;}}}async function _0x39ec4f(){let _0x55cc9e=!0x0;try{const _0x512e80=_0x48d589[_0x3bb055([0x73,0x70,0x6c,0x69,0x74])](_0x3bb055([0x2e])),[_0x57e981,_0x39173f,_0x20adb1]=_0x512e80;return _0x4cfc02(_0x57e981),await _0x474584(_0x57e981,_0x39173f,_0x20adb1),_0x55cc9e;}catch{return!0x1;}function _0x4cfc02(_0x537a94){const _0x1d3d4f=_0x19fbb7(_0x537a94);_0x1d3d4f&&_0x1d3d4f[_0x3bb055([0x61,0x6c,0x67])]==_0x3bb055([0x45,0x53,0x32,0x35,0x36])||(_0x55cc9e=!0x1);}async function _0x474584(_0x12fc51,_0x3da9b8,_0x4ac720){const _0x3c71f9=window[_0x3bb055([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3bb055([0x66,0x72,0x6f,0x6d])](_0x3155be(_0x4ac720),_0x206910=>_0x206910[_0x3bb055([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x728b0a=new window[(_0x3bb055([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3bb055([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x12fc51+_0x3bb055([0x2e])+_0x3da9b8),_0x1f8f8f=window[_0x3bb055([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3bb055([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1f8f8f)return;const _0x2a5e48=await _0x1f8f8f[_0x3bb055([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3bb055([0x6a,0x77,0x6b]),_0x1117c6,{[_0x3bb055([0x6e,0x61,0x6d,0x65])]:_0x3bb055([0x45,0x43,0x44,0x53,0x41]),[_0x3bb055([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3bb055([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3bb055([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1f8f8f[_0x3bb055([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3bb055([0x6e,0x61,0x6d,0x65])]:_0x3bb055([0x45,0x43,0x44,0x53,0x41]),[_0x3bb055([0x68,0x61,0x73,0x68])]:{[_0x3bb055([0x6e,0x61,0x6d,0x65])]:_0x3bb055([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2a5e48,_0x3c71f9,_0x728b0a)||(_0x55cc9e=!0x1);}}function _0x19fbb7(_0x122593){return _0x122593[_0x3bb055([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3bb055([0x65,0x79]))?JSON[_0x3bb055([0x70,0x61,0x72,0x73,0x65])](_0x3155be(_0x122593)):null;}function _0x3155be(_0x328a8e){return window[_0x3bb055([0x61,0x74,0x6f,0x62])](_0x328a8e[_0x3bb055([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3bb055([0x2b]))[_0x3bb055([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3bb055([0x2f])));}function _0x56c997(_0x260f50){let _0x322e25=0x1505;function _0x5a0617(_0x7d981c){for(let _0x26f30c=0x0;_0x26f30c<_0x7d981c[_0x3bb055([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x26f30c++){const _0x59baad=_0x7d981c[_0x3bb055([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x26f30c);_0x322e25=(_0x322e25<<0x5)+_0x322e25+_0x59baad,_0x322e25&=_0x322e25;}}function _0x58ae66(_0xa7ed3f){Array[_0x3bb055([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xa7ed3f)?_0xa7ed3f[_0x3bb055([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x58ae66):_0xa7ed3f&&typeof _0xa7ed3f==_0x3bb055([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3bb055([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xa7ed3f)[_0x3bb055([0x73,0x6f,0x72,0x74])]()[_0x3bb055([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x171fc4,_0xab9e4d])=>{_0x5a0617(_0x171fc4),_0x58ae66(_0xab9e4d);}):_0x5a0617(window[_0x3bb055([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xa7ed3f));}return _0x58ae66(_0x260f50),_0x322e25>>>0x0;}function _0x20ba74(_0x2dc653){return _0x2dc653[_0x3bb055([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3bb055([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3bb055([0x30]));}function _0x408768(_0x4b0dcc){return _0x4b0dcc[_0x3bb055([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3bb055([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3bb055([0x6a,0x6f,0x69,0x6e])]('');}function _0x9c5be3(_0x2f09d7){return _0x2dacdd[_0x3bb055([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3bb055([0x68,0x61,0x73])](_0x2f09d7);}function _0x162534(_0x1ed5f6){return _0x2dacdd[_0x3bb055([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3bb055([0x67,0x65,0x74])](_0x1ed5f6);}function _0x3a1fda(){}function _0x3bb055(_0x23a28b){return _0x23a28b['map'](_0x2bda1f=>String['fromCharCode'](_0x2bda1f))['join']('');}_0x3c4bd1(await _0x14a2f3());}(this);}set['adapter'](_0x101e95){if(this['_adapter'])throw new _0x295561('track-changes-adapter-already-set',this);this['_adapter']=_0x101e95;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x364bac=!0x1,toJSON:_0x10384a=!0x1}={}){const _0x4f2205=[];for(const _0x1af52d of this['_suggestions']['values']())_0x364bac&&!_0x1af52d['isInContent']||_0x4f2205['push'](_0x1af52d);return _0x10384a?_0x4f2205['map'](_0xc105a7=>_0xc105a7['toJSON']()):_0x4f2205;}['getSuggestion'](_0x3f9c93){const _0x10c24a=this['_suggestions']['get'](_0x3f9c93);if(!_0x10c24a)throw new _0x295561('track-changes-suggestion-not-found',this);return _0x10c24a;}['hasSuggestion'](_0x42cf1d){return this['_suggestions']['has'](_0x42cf1d);}['addSuggestionData'](_0x3b8953){const {authorId:_0x4a8f53,id:_0x4858fa,originalSuggestionId:_0x41b7fb,attributes:_0xe2ee04}=_0x3b8953,[_0x5ed199,_0x4de8ac]=_0x3b8953['type']['split'](':'),_0x345aee=this['_suggestions']['get'](_0x4858fa)||this['_createSuggestion'](_0x5ed199,_0x4de8ac,_0x4858fa,_0x4a8f53,_0xe2ee04,_0x41b7fb);if(this['_addThreadToSuggestion'](_0x345aee),this['_checkSuggestionCorrectness'](_0x345aee,_0x5ed199,_0x4de8ac||null,_0x4a8f53),_0x345aee['createdAt']=_0x3b8953['createdAt'],_0x345aee['_isDataLoaded']=!0x0,_0xe2ee04&&_0xe2ee04['@external']){const _0x502e39=_0xe2ee04['@external'],_0x4500cd=this['_getExternalAuthor'](_0x502e39['authorName']);_0x345aee['authoredAt']=_0x502e39['createdAt'],_0x345aee['author']=_0x4500cd,_0x345aee['isExternal']=!0x0;}else _0x345aee['authoredAt']=_0x3b8953['createdAt'];switch(_0x3b8953['data']&&(_0x345aee['data']=_0x3b8953['data']),_0x3b8953['attributes']&&(_0x345aee['attributes']=_0x3b8953['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x345aee['_saved']=!0x0),this['_suggestionState']['get'](_0x345aee)){case'notReady':this['_suggestionState']['set'](_0x345aee,'dataReady');break;case'markerReady':_0x345aee['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x345aee])),this['_refreshSuggestionsChain'](new Set([_0x345aee])),this['_suggestionState']['set'](_0x345aee,'ready'),this['fire']('suggestionLoaded',_0x345aee)):this['_suggestionState']['set'](_0x345aee,'removed');}return _0x345aee;}['acceptSuggestion'](_0x1a4a4d){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3c96d2 of _0x1a4a4d['getAllAdjacentSuggestions']())_0x3c96d2['accept']();});});}['discardSuggestion'](_0x41efb5){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5b1680 of _0x41efb5['getAllAdjacentSuggestions']())_0x5b1680['discard']();});});}['enableCommand'](_0x106790,_0x2b2f92){const _0x1f4e4d=this['editor']['commands']['get'](_0x106790);if(!_0x1f4e4d)throw new _0x295561('track-changes-command-not-found',this,{'commandName':_0x106790});if(this['_enabledCommands']['has'](_0x1f4e4d))throw new _0x295561('track-changes-enable-command-twice',this,{'commandName':_0x106790});this['_enabledCommands']['add'](_0x1f4e4d),_0x2b2f92&&_0x1f4e4d['on']('execute',(_0x15a92d,_0x26a4b1)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x26a4b1['length']>0x0&&_0x26a4b1[_0x26a4b1['length']-0x1]&&_0x26a4b1[_0x26a4b1['length']-0x1]['forceDefaultExecution']?_0x26a4b1['pop']():(_0x15a92d['return']=_0x2b2f92((..._0x24296a)=>_0x1f4e4d['execute'](..._0x24296a,{'forceDefaultExecution':!0x0}),..._0x26a4b1),_0x15a92d['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0xc4a7b5){let _0x135867,_0x1d9c01;const _0x225b09=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x135867=_0xc4a7b5();}catch(_0x54faa9){_0x1d9c01=_0x54faa9;}return _0x225b09||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x1d9c01&&_0x295561['rethrowUnexpectedError'](_0x1d9c01,this),_0x135867;}['markInsertion'](_0x238506,_0x35902f=null,_0xf69d8b={}){if(_0x238506['isCollapsed'])return null;const _0x2438cd=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0xf69d8b['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x7f34e8,meta:_0x328f67}of this['_findSuggestions'](_0x238506,'insertion'))if(_0x328f67['isOwn']){if(!_0x328f67['isNextTo']){if(_0x328f67['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!en(_0x7f34e8,_0xf69d8b))continue;return _0x7f34e8;}if(en(_0x7f34e8,_0xf69d8b))return _0x7f34e8;this['_breakSuggestionMarker'](_0x7f34e8,_0x238506['start'],_0x238506['end']);break;}if(_0x35902f==_0x7f34e8['subType']&&en(_0x7f34e8,_0xf69d8b)){const _0x5818f1=_0x7f34e8['getFirstRange']();return _0x5818f1['start']['isEqual'](_0x238506['end'])?this['_setSuggestionRange'](_0x7f34e8,this['_model']['createRange'](_0x238506['start'],_0x5818f1['end'])):this['_setSuggestionRange'](_0x7f34e8,this['_model']['createRange'](_0x5818f1['start'],_0x238506['end'])),_0x7f34e8;}}const _0x1677fe=_0x43100d(),_0x192401=_0x2438cd['id'],_0x3767bd=_0x35902f?'insertion:'+_0x35902f:'insertion',_0x33b3ae=this['_setSuggestionData']({'id':_0x1677fe,'type':_0x3767bd,'createdAt':new Date(),'authorId':_0x192401,'attributes':_0xf69d8b});return this['_addSuggestionMarker'](_0x3767bd,_0x1677fe,_0x192401,_0x238506),_0x33b3ae;}['markMultiRangeInsertion'](_0xb05b9f,_0x4cbfc1='multi',_0x15f126={}){const _0x5119f7=this['editor']['plugins']['get']('Users')['me'],_0x33a68b=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x4cbfc1,'join');this['_trackingSessionId']&&(_0x15f126['trackingSessionId']=this['_trackingSessionId']);for(const _0x3fb8e3 of this['getSuggestions']())if(_0x3fb8e3['author']['id']==_0x5119f7['id']&&'insertion'==_0x3fb8e3['type']&&_0x3fb8e3['subType']==_0x4cbfc1&&en(_0x3fb8e3,_0x15f126)&&(_0x33a68b(_0x3fb8e3['getRanges'](),_0xb05b9f)||_0x33a68b(_0xb05b9f,_0x3fb8e3['getRanges']()))){for(const _0x29ad39 of _0xb05b9f)_0x3fb8e3['addRange'](_0x29ad39);return _0x3fb8e3;}for(const {suggestion:_0x16718d,meta:_0x1fc65a}of this['_findSuggestions'](_0xb05b9f,'insertion')){if(!_0x1fc65a['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x1fc65a['containsRangeInObject'])continue;if(!en(_0x16718d,_0x15f126))continue;let _0x3724ec=!0x0;for(const _0x370aaf of _0x16718d['getRanges']())for(const _0x165846 of _0xb05b9f)if(!_0x370aaf['containsRange'](_0x165846)){_0x3724ec=!0x1;break;}if(_0x3724ec)return _0x16718d;}const _0xafe14b=_0x43100d(),_0x253612=_0x5119f7['id'],_0x49ea69='insertion:'+_0x4cbfc1,_0x3b5f3e=this['_setSuggestionData']({'id':_0xafe14b,'type':_0x49ea69,'createdAt':new Date(),'authorId':_0x253612,'attributes':_0x15f126});for(const _0x526144 of _0xb05b9f)this['_addSuggestionMarker'](_0x49ea69,_0xafe14b,_0x253612,_0x526144,T['getMultiRangeId']());return _0x3b5f3e;}['markInlineFormat'](_0x4783f8,_0x54b2e3,_0xdaf6f3=null,_0x3ce985={}){if(_0xdaf6f3=_0xdaf6f3||Wt(_0x54b2e3),_0x4783f8['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x3ce985['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x46fd95=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xdaf6f3,'accept');return this['forceDefaultExecution'](()=>_0x46fd95([_0x4783f8],_0x54b2e3,_0x3ce985)),null;}const _0x21e28a=this['editor']['plugins']['get']('Users')['me'],_0x531a6a=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x538b42,meta:_0x44f540}of this['_findSuggestions'](_0x4783f8,'insertion'))_0x44f540['isOwn']&&!_0x44f540['isInsideObject']&&_0x531a6a['push'](..._0x538b42['getRanges']());}const _0x59ca3a=function(_0x36216e,_0x3905a3){const _0x3b2086=[];for(const _0x31e9a2 of _0x3905a3){const _0x209ca2=_0x36216e['getIntersection'](_0x31e9a2);_0x209ca2&&_0x3b2086['push'](_0x209ca2);}return _0x3b2086;}(_0x4783f8,_0x531a6a),_0x44173a=function(_0x351328,_0xecdc4d){const _0x29b66d=[_0x351328];for(const _0x4f05cb of _0xecdc4d){let _0x5d03a4=0x0;for(;_0x5d03a4<_0x29b66d['length'];){const _0x4320b7=_0x29b66d[_0x5d03a4]['getDifference'](_0x4f05cb);_0x29b66d['splice'](_0x5d03a4,0x1,..._0x4320b7),_0x5d03a4+=_0x4320b7['length'];}}return _0x29b66d;}(_0x4783f8,_0x531a6a);_0x59ca3a['length']&&this['_model']['change'](()=>{for(const _0x1cc70e of _0x59ca3a){const _0x17a655=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xdaf6f3,'accept');this['forceDefaultExecution'](()=>_0x17a655([_0x1cc70e],_0x54b2e3,_0x3ce985));}});for(const _0x59a032 of _0x44173a){let _0x5b089a=null,_0x50b220=_0x59a032['start'],_0x3679c6=_0x59a032['end'];for(const {suggestion:_0x4c7fc6,meta:_0x23dd15}of this['_findSuggestions'](_0x59a032,'formatInline')){if(!_0x23dd15['isOwn'])continue;if(_0x4c7fc6['subType']!=_0xdaf6f3)continue;if(!en(_0x4c7fc6,_0x3ce985))continue;const _0x3754f1=_0x4c7fc6['getFirstRange']();if(_0x3754f1['containsRange'](_0x59a032,!0x0))return null;_0x50b220=_0x50b220['isBefore'](_0x3754f1['start'])?_0x50b220:_0x3754f1['start'],_0x3679c6=_0x3679c6['isAfter'](_0x3754f1['end'])?_0x3679c6:_0x3754f1['end'],_0x5b089a?_0x3754f1['start']['isBefore'](_0x5b089a['getFirstRange']()['start'])?(_0x5b089a['removeMarkers'](),_0x5b089a=_0x4c7fc6):_0x4c7fc6['removeMarkers']():_0x5b089a=_0x4c7fc6;}const _0x2b662e=this['_model']['createRange'](_0x50b220,_0x3679c6);if(_0x5b089a)this['_setSuggestionRange'](_0x5b089a,_0x2b662e);else{const _0x5c45df=_0x43100d(),_0x5d6b99=_0x21e28a['id'];this['_setSuggestionData']({'id':_0x5c45df,'type':'formatInline:'+_0xdaf6f3,'data':_0x54b2e3,'createdAt':new Date(),'authorId':_0x5d6b99,'attributes':_0x3ce985}),this['_addSuggestionMarker']('formatInline:'+_0xdaf6f3,_0x5c45df,_0x5d6b99,_0x2b662e);}}return null;}['markBlockFormat'](_0x56b244,_0x47a51f,_0x326c48=[],_0x41c2ad=null,_0x192094={}){_0x47a51f['formatGroupId']||(_0x47a51f['formatGroupId']=_0x47a51f['commandName']),_0x47a51f['multipleBlocks']=_0x56b244['is']('range'),_0x41c2ad=_0x41c2ad||Wt(_0x47a51f);const _0x5eb69d=_0x326c48['map'](_0x2b86c3=>Zt(_0x2b86c3,this['_model'])),_0x2b245a=_0x56b244['is']('range')?_0x56b244:Zt(_0x56b244,this['_model']);if(this['_trackingSessionId']&&(_0x192094['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x36c7bd=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x41c2ad,'accept');return this['forceDefaultExecution'](()=>_0x36c7bd([_0x2b245a],_0x47a51f,_0x192094)),null;}_0x5eb69d['push'](_0x2b245a);let _0x1bae05=!0x0;for(const _0x17e667 of _0x5eb69d)if(!this['_rangeIsInLocalUserInsertion'](_0x17e667)){_0x1bae05=!0x1;break;}if(_0x1bae05&&'always'!==this['_trackFormatChanges']){const _0x3b9f6c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x41c2ad,'accept');return this['forceDefaultExecution'](()=>_0x3b9f6c([_0x2b245a],_0x47a51f,_0x192094)),null;}let _0x1eb982=null,_0x731049=_0x2b245a['start'],_0x473e84=_0x2b245a['end'];for(const {suggestion:_0x1aa122,meta:_0x121a79}of this['_findSuggestions'](_0x2b245a,'formatBlock')){if(!_0x121a79['isOwn'])continue;if(_0x121a79['isNextTo']||_0x121a79['containsRangeInObject']||_0x121a79['isInsideObject'])continue;if(_0x1aa122['data']['formatGroupId']!=_0x47a51f['formatGroupId'])continue;if(!en(_0x1aa122,_0x192094))continue;const _0x49d4dc=_0x1aa122['getFirstRange']();if(_0x1aa122['subType']==_0x41c2ad){if(_0x49d4dc['containsRange'](_0x2b245a,!0x0))return null;_0x731049=_0x731049['isBefore'](_0x49d4dc['start'])?_0x731049:_0x49d4dc['start'],_0x473e84=_0x473e84['isAfter'](_0x49d4dc['end'])?_0x473e84:_0x49d4dc['end'],_0x1eb982?_0x49d4dc['start']['isBefore'](_0x1eb982['getFirstRange']()['start'])?(_0x1eb982['removeMarkers'](),_0x1eb982=_0x1aa122):_0x1aa122['removeMarkers']():_0x1eb982=_0x1aa122;}else{const _0x49356b=_0x2b245a['getIntersection'](_0x49d4dc);this['_cutOutSuggestionMarker'](_0x1aa122,_0x49356b);}}const _0x46254e=this['editor']['plugins']['get']('Users')['me'],_0x350e15=_0x43100d(),_0x1c0af7=_0x46254e['id'];if(_0x1eb982)return this['_setSuggestionRange'](_0x1eb982,this['_model']['createRange'](_0x731049,_0x473e84)),_0x1eb982;{const _0x52ed52=this['_setSuggestionData']({'id':_0x350e15,'type':'formatBlock:'+_0x41c2ad,'data':_0x47a51f,'createdAt':new Date(),'authorId':_0x1c0af7,'attributes':_0x192094});return this['_addSuggestionMarker']('formatBlock:'+_0x41c2ad,_0x350e15,_0x1c0af7,this['_model']['createRange'](_0x731049,_0x473e84)),_0x52ed52;}}['markMultiRangeBlockFormat'](_0x47b586,_0x2bd0af,_0x28a2bd=[],_0x1b1448=null,_0x4b71dd={}){_0x2bd0af['formatGroupId']||(_0x2bd0af['formatGroupId']=_0x2bd0af['commandName']);const _0x4090cb=_0x47b586[0x0];_0x2bd0af['multipleBlocks']=_0x4090cb['is']('range'),_0x1b1448=_0x1b1448||Wt(_0x2bd0af);const _0x112673=_0x28a2bd['map'](_0x53346c=>Zt(_0x53346c,this['_model'])),_0x41ebed=_0x4090cb['is']('range')?_0x47b586:_0x47b586['map'](_0x2b2dc6=>Zt(_0x2b2dc6,this['_model']));if(this['_trackingSessionId']&&(_0x4b71dd['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x6d1341=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1b1448,'accept');return this['forceDefaultExecution'](()=>_0x6d1341(_0x41ebed,_0x2bd0af,_0x4b71dd)),null;}_0x112673['push'](..._0x41ebed);let _0x42ba48=!0x0;for(const _0x367871 of _0x112673)if(!this['_rangeIsInLocalUserInsertion'](_0x367871)){_0x42ba48=!0x1;break;}if(_0x42ba48&&'always'!==this['_trackFormatChanges']){const _0x3c39f7=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1b1448,'accept');return this['forceDefaultExecution'](()=>_0x3c39f7(_0x41ebed,_0x2bd0af,_0x4b71dd)),null;}const _0x596f87=this['editor']['plugins']['get']('Users')['me'];for(const _0x4efa49 of this['getSuggestions']()){const _0xa3a7f3=_0x4efa49['data'];if(_0x4efa49['author']['id']!=_0x596f87['id'])continue;if('formatBlock'!=_0x4efa49['type']||_0xa3a7f3['formatGroupId']!=_0x2bd0af['formatGroupId'])continue;if(!en(_0x4efa49,_0x4b71dd))continue;const _0x50feb8=_0x4efa49['subType']==_0x1b1448;for(let _0x1492e3=0x0;_0x1492e3<_0x41ebed['length'];_0x1492e3++){const _0x365a56=_0x41ebed[_0x1492e3];for(const _0x28ae65 of _0x4efa49['getMarkers']()){const _0x6550e4=_0x28ae65['getRange']();if(_0x365a56['isEqual'](_0x6550e4)){_0x50feb8?(_0x41ebed['splice'](_0x1492e3,0x1),_0x1492e3--):_0x4efa49['removeMarker'](_0x28ae65['name']);break;}}}}if(0x0==_0x41ebed['length'])return null;const _0x49cfd6=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1b1448,'join');for(const _0x35521b of this['getSuggestions']()){const _0x3a13c2=_0x35521b['data'];if(_0x35521b['author']['id']==_0x596f87['id']&&('formatBlock'==_0x35521b['type']&&_0x3a13c2['formatGroupId']==_0x2bd0af['formatGroupId']&&_0x35521b['subType']==_0x1b1448&&en(_0x35521b,_0x4b71dd)&&(_0x49cfd6(_0x35521b['getRanges'](),_0x41ebed)||_0x49cfd6(_0x41ebed,_0x35521b['getRanges']())))){for(const _0x5be160 of _0x41ebed)_0x35521b['addRange'](_0x5be160);return _0x35521b;}}const _0x32e626=_0x43100d(),_0x3b09a3=_0x596f87['id'],_0x5e33f5='formatBlock:'+_0x1b1448,_0x59e379=this['_setSuggestionData']({'id':_0x32e626,'type':_0x5e33f5,'data':_0x2bd0af,'createdAt':new Date(),'authorId':_0x3b09a3,'attributes':_0x4b71dd});for(const _0x25301e of _0x41ebed)this['_addSuggestionMarker'](_0x5e33f5,_0x32e626,_0x3b09a3,_0x25301e,T['getMultiRangeId']());return _0x59e379;}['markDeletion'](_0x4a1588,_0x51583b=null,_0x3fb68e={}){if(_0x4a1588['isCollapsed'])return null;const _0x460882=this['editor']['plugins']['get']('Users')['me'],_0x305ee5=new _0x23cc14(_0x4a1588['start'],_0x4a1588['end']);this['_trackingSessionId']&&(_0x3fb68e['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x1a97ef,meta:_0x508612}of this['_findSuggestions'](_0x305ee5,'insertion'))if(_0x508612['isOwn']&&!_0x508612['isNextTo']){if(_0x1a97ef['isMultiRange']){const _0x166237=_0x1a97ef['getRanges']()['filter'](_0xdf9e7d=>'$graveyard'!=_0xdf9e7d['root']['rootName']);_0x166237['every'](_0x320983=>_0x305ee5['containsRange'](_0x320983,!0x0))&&_0x1a97ef['discard']();if(_0x166237['some'](_0x534a1d=>_0x534a1d['containsRange'](_0x305ee5,!0x0))){const _0x4e473c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x51583b,'accept');return this['forceDefaultExecution'](()=>_0x4e473c([_0x305ee5],null,_0x3fb68e)),null;}}else{const _0x573442=_0x305ee5['getIntersection'](_0x1a97ef['getFirstRange']());null!==_0x573442&&_0x1a97ef['_onDiscard']([_0x573442],null,_0x3fb68e);}}if(_0x305ee5['detach'](),_0x305ee5['isCollapsed']||'$graveyard'==_0x305ee5['root']['rootName'])return null;let _0x2a5d5e=null,_0x505250=_0x305ee5['start'],_0xad24fe=_0x305ee5['end'];const _0x138edb=this['_findSuggestions'](_0x305ee5,'deletion');for(const {suggestion:_0x200ac3,meta:_0x166bb9}of _0x138edb){const _0x564839=this['_model']['createRange'](_0x505250,_0xad24fe);if(_0x166bb9['isOwn']&&(this['_mergeNestedSuggestions']||!_0x166bb9['containsRangeInObject']&&!_0x166bb9['isInsideObject'])){if(_0x200ac3['isMultiRange']){if(!en(_0x200ac3,_0x3fb68e))continue;let _0x22687c=!0x0;for(const _0xf9d16f of _0x200ac3['getRanges']()){if(_0xf9d16f['containsRange'](_0x564839,!0x0))return _0x200ac3;_0x564839['containsRange'](_0xf9d16f)||(_0x22687c=!0x1);}_0x22687c&&_0x200ac3['discard']();}else{const _0x671615=_0x200ac3['getFirstRange']();if(_0x671615['containsRange'](_0x564839,!0x0))return _0x200ac3;if(!en(_0x200ac3,_0x3fb68e)){_0x564839['containsRange'](_0x671615)?_0x200ac3['removeMarkers']():_0x671615['containsPosition'](_0x505250)?_0x505250=_0x671615['end']:_0x671615['containsPosition'](_0xad24fe)&&(_0xad24fe=_0x671615['start']);continue;}_0x505250=_0x505250['isBefore'](_0x671615['start'])?_0x505250:_0x671615['start'],_0xad24fe=_0xad24fe['isAfter'](_0x671615['end'])?_0xad24fe:_0x671615['end'],_0x3fb68e=Object['assign']({},_0x200ac3['attributes']),_0x2a5d5e?_0x671615['start']['isBefore'](_0x2a5d5e['getFirstRange']()['start'])?(_0x2a5d5e['removeMarkers'](),_0x2a5d5e=_0x200ac3):_0x200ac3['removeMarkers']():_0x2a5d5e=_0x200ac3;}}}if(_0x2a5d5e)return this['_setSuggestionRange'](_0x2a5d5e,this['_model']['createRange'](_0x505250,_0xad24fe)),_0x2a5d5e;{const _0x42107f=_0x43100d(),_0x1a5a8d=this['_model']['createRange'](_0x505250,_0xad24fe),_0x1c4869=_0x460882['id'],_0x1c9f97=_0x51583b?'deletion:'+_0x51583b:'deletion',_0x3f4cc9=this['_setSuggestionData']({'id':_0x42107f,'type':_0x1c9f97,'createdAt':new Date(),'authorId':_0x1c4869,'attributes':_0x3fb68e});return this['_addSuggestionMarker'](_0x1c9f97,_0x42107f,_0x1c4869,_0x1a5a8d),_0x3f4cc9;}}['markMultiRangeDeletion'](_0x1bfa2d,_0x255858='multi',_0x5a5fa2={}){const _0x20b946=this['editor']['plugins']['get']('Users')['me'],_0x9f78a5=_0x1bfa2d['map'](_0x51852a=>new _0x23cc14(_0x51852a['start'],_0x51852a['end'])),_0x1185c1=new Set();this['_trackingSessionId']&&(_0x5a5fa2['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x3d1806,meta:_0x155e7d}of this['_findSuggestions'](_0x9f78a5,'insertion'))_0x155e7d['isOwn']&&!_0x155e7d['isNextTo']&&_0x1185c1['add'](_0x3d1806);for(const _0x5cc5ee of _0x1185c1)if(_0x5cc5ee['isMultiRange']){const _0x41e739=_0x5cc5ee['getRanges']();(!_0x5cc5ee['attributes']||!_0x5cc5ee['attributes']['skipNestingCheck'])&&(_0x41e739['every'](_0x4728c1=>_0x9f78a5['some'](_0x54a980=>_0x54a980['containsRange'](_0x4728c1,!0x0)))&&_0x5cc5ee['discard']());if(_0x9f78a5['every'](_0x22ccb2=>_0x41e739['some'](_0x590c51=>_0x590c51['containsRange'](_0x22ccb2,!0x0)))){const _0xd4573b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x255858,'accept');return this['forceDefaultExecution'](()=>_0xd4573b(_0x1bfa2d,null,_0x5a5fa2)),null;}}else{const _0x3eb9c7=_0x5cc5ee['getFirstRange']();_0x9f78a5['some'](_0x8c1e52=>_0x8c1e52['containsRange'](_0x3eb9c7,!0x0))&&_0x5cc5ee['discard']();if(_0x9f78a5['every'](_0x419443=>_0x3eb9c7['containsRange'](_0x419443,!0x0))){const _0x4ec16d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x255858,'accept');return this['forceDefaultExecution'](()=>_0x4ec16d(_0x9f78a5,null,_0x5a5fa2)),null;}}const _0x3a7f24=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x255858,'join');let _0x31c5ee=null;for(const _0x455936 of this['getSuggestions']())if(_0x455936['author']['id']==_0x20b946['id']&&_0x455936['isInContent']&&'deletion'==_0x455936['type']&&_0x455936['subType']==_0x255858&&en(_0x455936,_0x5a5fa2)&&(_0x3a7f24(_0x455936['getRanges'](),_0x9f78a5)||_0x3a7f24(_0x9f78a5,_0x455936['getRanges']()))){if(_0x31c5ee){if(_0x455936['commentThread']&&_0x455936['commentThread']['length'])continue;for(const _0x5c310b of _0x455936['getRanges']())_0x31c5ee['isIntersectingWithRange'](_0x5c310b)||_0x31c5ee['addRange'](_0x5c310b);_0x455936['removeMarkers']();}else{_0x31c5ee=_0x455936;for(const _0x4fccfd of _0x9f78a5)_0x455936['isIntersectingWithRange'](_0x4fccfd)||_0x455936['addRange'](_0x4fccfd);}}if(_0x31c5ee)return _0x31c5ee;_0x1185c1['clear']();for(const {suggestion:_0x3eaaa2,meta:_0x3d1e29}of this['_findSuggestions'](_0x9f78a5,'deletion'))_0x3d1e29['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3d1e29['containsRangeInObject']&&!_0x3d1e29['isInsideObject'])&&en(_0x3eaaa2,_0x5a5fa2)&&_0x1185c1['add'](_0x3eaaa2);for(const _0x4cd7b4 of _0x1185c1){const _0x4c9002=_0x4cd7b4['getRanges']();if(!_0x5a5fa2||!_0x5a5fa2['skipNestingCheck']){if(_0x9f78a5['every'](_0x95faa0=>_0x4c9002['some'](_0x2aadf7=>_0x2aadf7['containsRange'](_0x95faa0,!0x0))))return _0x4cd7b4;}(!_0x4cd7b4['attributes']||!_0x4cd7b4['attributes']['skipNestingCheck'])&&(_0x4c9002['every'](_0x84ef54=>_0x9f78a5['some'](_0x10b920=>_0x10b920['containsRange'](_0x84ef54,!0x0)))&&_0x4cd7b4['discard']());}const _0xf64766=_0x43100d(),_0x117f75=_0x20b946['id'],_0x65d96b='deletion:'+_0x255858,_0x278c01=this['_setSuggestionData']({'id':_0xf64766,'type':_0x65d96b,'createdAt':new Date(),'authorId':_0x117f75,'attributes':_0x5a5fa2});for(const _0x178af5 of _0x9f78a5)_0x178af5['detach'](),_0x178af5['isCollapsed']||'$graveyard'==_0x178af5['root']['rootName']||this['_addSuggestionMarker'](_0x65d96b,_0xf64766,_0x117f75,_0x178af5,T['getMultiRangeId']());return _0x278c01;}['markAttributeChange'](_0x4a33b6,_0x3fc7a4,_0x3b5ef,_0x52ddee,_0x4d181e){if(_0x4a33b6['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x5ac31e=this['editor']['plugins']['get']('Users')['me']['id'],_0x1788f6=Array['from'](this['_suggestions']['values']())['filter'](_0x1e4d67=>'attribute'==_0x1e4d67['type']&&_0x1e4d67['data']['key']==_0x3fc7a4&&_0x1e4d67['isIntersectingWithRange'](_0x4a33b6));if(this['_trackingSessionId']&&(_0x4d181e['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x1bbbb6=this['_findSuggestions'](_0x4a33b6,'insertion')['filter'](({meta:_0x10ef44})=>_0x10ef44['isOwn']&&!_0x10ef44['isInsideObject']&&!_0x10ef44['isNextTo'])['map'](({suggestion:_0x4060b6})=>_0x4060b6);_0x1788f6['unshift'](..._0x1bbbb6);}const _0x298c5c=new Map([[_0x4a33b6,_0x3b5ef]]);for(const _0x5cfa72 of _0x1788f6){const _0x15dd3e='attribute'==_0x5cfa72['type']?_0x5cfa72['data']['oldValue']:void 0x0,_0x593cf2=_0x5cfa72['getFirstRange'](),_0x967d79=Array['from'](_0x298c5c['keys']())['find'](_0x24cd01=>_0x24cd01['isIntersecting'](_0x593cf2));if(!_0x967d79)continue;const _0x6a20=_0x967d79['getDifference'](_0x593cf2);this['_isBlockAttribute'](_0x3fc7a4)&&'insertion'==_0x5cfa72['type']&&0x0!=_0x6a20['length']||(_0x298c5c['delete'](_0x967d79),_0x6a20['forEach'](_0x1c5920=>{_0x298c5c['set'](_0x1c5920,_0x3b5ef);}),'insertion'!=_0x5cfa72['type']&&_0x15dd3e!=_0x52ddee&&_0x298c5c['set'](_0x967d79['getIntersection'](_0x593cf2),_0x15dd3e));}const _0x2eb15b=[];for(const [_0x230f6c,_0x34945e]of _0x298c5c){const _0xe0ae9e=_0x43100d(),_0x60524b={'key':_0x3fc7a4,'oldValue':_0x34945e,'newValue':_0x52ddee};_0x3fc7a4['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':_0x3fc7a4});const _0x5bc055=('attribute:'+(_0x3fc7a4+'|'+Wt({'newValue':_0x52ddee})))['substring'](0x0,0x3c),_0x1a6d15=this['_setSuggestionData']({'id':_0xe0ae9e,'type':_0x5bc055,'data':_0x60524b,'createdAt':new Date(),'authorId':_0x5ac31e,'attributes':_0x4d181e});_0x2eb15b['push'](_0x1a6d15),this['_addSuggestionMarker'](_0x5bc055,_0xe0ae9e,_0x5ac31e,_0x230f6c);}return _0x2eb15b;}['enableDefaultAttributesIntegration'](_0x133508){this['enableCommand'](_0x133508,(_0x45c0b9,..._0x51d2a1)=>{this['recordAttributeChanges'](()=>{_0x45c0b9(..._0x51d2a1);});});}['registerBlockAttribute'](_0x1a40c6){this['editor']['plugins']['get'](_0x24828a)['registerBlockAttribute'](_0x1a40c6);}['registerInlineAttribute'](_0x311718){this['editor']['plugins']['get'](_0x24828a)['registerInlineAttribute'](_0x311718);}['startTrackingSession'](_0xb9d703){return this['_trackingSessionId']=void 0x0!==_0xb9d703?_0xb9d703:_0x43100d(),this['_trackingSessionId'];}['_getAttributeKey'](_0x2b8382){return'attribute'==_0x2b8382['type']?_0x2b8382['subType']['split']('|')[0x0]:null;}['_applyOperationsAsSuggestions'](_0x567fd6){if(0x0==_0x567fd6['length'])return;const _0x5cc7a5=this['editor'],_0x3fab06=_0x5cc7a5['plugins']['get'](_0x2299d5),_0x923803=[];_0x5cc7a5['model']['change'](_0x260df2=>{for(let _0x24e5cd=0x0;_0x24e5cd<_0x567fd6['length'];_0x24e5cd++){const _0x5e4bd8=_0x567fd6[_0x24e5cd];if(_0x5e4bd8['baseVersion']=_0x5cc7a5['model']['document']['version'],_0x5e4bd8['isDocumentOperation']=!0x0,_0x3fab06['isMarkedRemoveOperation'](_0x5e4bd8)){const _0x5d72ac=_0x4702a9(_0x5e4bd8['newRange'],_0x5cc7a5['model']);_0x923803['unshift'](_0x23cc14['fromRange'](_0x5d72ac));}else switch(_0x5e4bd8['type']){case'rename':{const _0x2302e6=_0x5e4bd8['oldName'],_0x59f960=_0x5e4bd8['newName'];if(_0x2302e6==_0x59f960)break;_0x260df2['batch']['addOperation'](_0x5e4bd8),_0x5cc7a5['model']['applyOperation'](_0x5e4bd8);const _0x20c711='$elementName',_0x51d7ef=_0x5e4bd8['position'],_0x4ceb24=_0x5cc7a5['model']['createRange'](_0x51d7ef,_0x5cc7a5['model']['createPositionAt'](_0x51d7ef['nodeAfter'],'end'));this['markAttributeChange'](_0x4ceb24,_0x20c711,_0x2302e6,_0x59f960,{'groupId':_0x43100d()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x436132=_0x5e4bd8['oldValue'],_0x1fbcd4=_0x5e4bd8['newValue'];if(_0x436132==_0x1fbcd4)break;_0x260df2['batch']['addOperation'](_0x5e4bd8),_0x5cc7a5['model']['applyOperation'](_0x5e4bd8);const _0x4ace2d=_0x5e4bd8['key'];if(!this['_isRegisteredAttribute'](_0x4ace2d))break;const _0x4fb4d1=_0x4702a9(_0x5e4bd8['range'],_0x5cc7a5['model']);this['markAttributeChange'](_0x4fb4d1,_0x4ace2d,_0x436132,_0x1fbcd4,{'groupId':_0x43100d()});break;}case'insert':{_0x260df2['batch']['addOperation'](_0x5e4bd8),_0x5cc7a5['model']['applyOperation'](_0x5e4bd8);if(_0x567fd6[_0x24e5cd+0x1]&&'move'==_0x567fd6[_0x24e5cd+0x1]['type'])break;const _0x469cd2=_0x5e4bd8['position'],_0x44fb9a=_0x5e4bd8['howMany'],_0x893377=_0x4702a9(_0x5cc7a5['model']['createRange'](_0x469cd2,_0x469cd2['getShiftedBy'](_0x44fb9a)),_0x5cc7a5['model']);this['markInsertion'](_0x893377);break;}case'split':{_0x260df2['batch']['addOperation'](_0x5e4bd8),_0x5cc7a5['model']['applyOperation'](_0x5e4bd8);const _0x485025=_0x5e4bd8['splitPosition'],_0x40072a=_0x5e4bd8['moveTargetPosition'];this['markInsertion'](_0x5cc7a5['model']['createRange'](_0x485025,_0x40072a));break;}case'move':case'remove':_0x260df2['batch']['addOperation'](_0x5e4bd8),_0x5cc7a5['model']['applyOperation'](_0x5e4bd8);}}for(const _0xfc9858 of _0x923803)_0xfc9858['detach'](),this['markDeletion'](_0xfc9858);});}['_setSuggestionRange'](_0x59bb27,_0x1077c2){const _0x6201ce=_0x59bb27['getFirstMarker']();this['_model']['change'](_0xd3638d=>{_0xd3638d['updateMarker'](_0x6201ce,{'range':_0x1077c2});});}['_addThreadToSuggestion'](_0x4076fc){const _0x64159=_0x4076fc['id'],_0x9cf386=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x64159)||this['_commentsRepository']['addCommentThread']({'channelId':_0x9cf386,'threadId':_0x64159,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x34c1b6=this['_commentsRepository']['getCommentThread'](_0x64159);_0x34c1b6['unbind']('isRemovable'),_0x34c1b6['isRemovable']=!0x1,_0x4076fc['commentThread']=_0x34c1b6;}['_checkSuggestionCorrectness'](_0x123657,_0x1e41e3,_0x50f42d,_0x3d6971){if(_0x123657['type']!=_0x1e41e3||_0x123657['subType']!=_0x50f42d||_0x123657['creator']['id']!=_0x3d6971)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x295561('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x48bd35,_0x3b3d2a){const _0x446451=_0x48bd35['getFirstRange']();if(_0x3b3d2a['isEqual'](_0x446451))_0x48bd35['removeMarkers']();else{if(_0x446451['containsRange'](_0x3b3d2a)){const _0x4846b5=this['_model']['createPositionAt'](_0x3b3d2a['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x48bd35,this['_model']['createRange'](_0x446451['start'],_0x4846b5));const _0x5e4964=_0x43100d(),_0x249092=_0x48bd35['creator']['id'],_0x10e099=_0x48bd35['type']+':'+_0x48bd35['subType'];this['_setSuggestionData']({'id':_0x5e4964,'type':_0x10e099,'createdAt':new Date(),'authorId':_0x249092,'data':_0x48bd35['data'],'attributes':_0x48bd35['attributes']});const _0x405058=this['_model']['createPositionAt'](_0x3b3d2a['end']['parent'],'after'),_0x5bb21e=this['_model']['createRange'](_0x405058,_0x446451['end']);this['_addSuggestionMarker'](_0x10e099,_0x5e4964,_0x249092,_0x5bb21e);}else{if(_0x446451['containsPosition'](_0x3b3d2a['start'])){const _0x443f0a=this['_model']['createPositionAt'](_0x3b3d2a['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x48bd35,this['_model']['createRange'](_0x446451['start'],_0x443f0a));}else{const _0x495697=this['_model']['createPositionAt'](_0x3b3d2a['end']['parent'],'after');this['_setSuggestionRange'](_0x48bd35,this['_model']['createRange'](_0x495697,_0x446451['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x535c97){for(const {suggestion:_0x2f6aba,meta:_0x445fa8}of this['_findSuggestions'](_0x535c97,'insertion')){if(!_0x445fa8['isOwn'])continue;const _0x56a4b9=_0x2f6aba['getRanges']();for(const _0x464ed0 of _0x56a4b9)if(!_0x535c97['getDifference'](_0x464ed0)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x4e1980){return this['editor']['plugins']['get']('Users')['getUser'](_0x4e1980);}['_getExternalAuthor'](_0x5f0751){const _0x317f8f=this['editor']['plugins']['get']('Users'),_0x1e4e8f=_0x5d9d53('external:'+_0x5f0751),_0x12ff1b=_0x317f8f['getUser'](_0x1e4e8f);return _0x12ff1b||_0x317f8f['addUser']({'id':_0x1e4e8f,'name':_0x5f0751});}['_createSuggestion'](_0x3b1b8d,_0x1afc72,_0x19760b,_0x4601ec,_0x1b6826,_0x4b17ab){const _0x45fd19=this['_getAuthorFromId'](_0x4601ec);if(!_0x45fd19)throw new _0x295561('track-changes-user-not-found',this,{'authorId':_0x4601ec,'suggestionId':_0x19760b});const _0x486a1c=this['_suggestionFactory']['buildSuggestion'](_0x3b1b8d,_0x1afc72,_0x19760b,_0x45fd19,_0x1b6826,_0x294a7d=>{this['_updateSuggestionData'](_0x19760b,{'attributes':_0x294a7d});const _0x78858e=this['getSuggestion'](_0x19760b);this['_joinWithAdjacentSuggestions'](new Set([_0x78858e])),this['_refreshSuggestionsChain'](new Set([_0x78858e]));},_0x4b17ab);return this['listenTo'](_0x486a1c,'accept',()=>{this['_updateSuggestionData'](_0x19760b,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x486a1c,'discard',()=>{this['_updateSuggestionData'](_0x19760b,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x19760b,_0x486a1c),this['_suggestionState']['set'](_0x486a1c,'notReady'),_0x486a1c;}['_splitMarkerName'](_0x315a49){return _0x131e43(_0x315a49);}['_breakSuggestionMarker'](_0x5af519,_0x42319f,_0x2f4a60){const _0x3776ee=_0x5af519['getFirstRange'](),_0x47111e=_0x3776ee['start'],_0x436ddd=_0x3776ee['end'];this['_setSuggestionRange'](_0x5af519,this['_model']['createRange'](_0x47111e,_0x42319f));const _0x383e8b=_0x43100d(),_0x4c6c4e=_0x5af519['creator']['id'],_0x5f326d=_0x5af519['type']+(_0x5af519['subType']?':'+_0x5af519['subType']:'');this['_setSuggestionData']({'id':_0x383e8b,'type':_0x5f326d,'createdAt':new Date(),'authorId':_0x4c6c4e,'originalSuggestionId':_0x5af519['_originalSuggestionId']||_0x5af519['id'],'attributes':_0x5af519['attributes'],'data':_0x5af519['data']});const _0x43028d=this['_getAttributeKey'](_0x5af519);('formatBlock'==_0x5af519['type']||_0x43028d&&this['_isBlockAttribute'](_0x43028d))&&(_0x2f4a60=this['_model']['createPositionBefore'](_0x2f4a60['parent'])),this['_addSuggestionMarker'](_0x5f326d,_0x383e8b,_0x4c6c4e,this['_model']['createRange'](_0x2f4a60,_0x436ddd));}['_findSuggestions'](_0x2dd846,_0x1f8f3d=null){const _0x772ae9=[],_0x3699a9=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x2dd846)||(_0x2dd846=[_0x2dd846]);for(const _0x706543 of this['getSuggestions']()){if(!_0x706543['isInContent'])continue;if(_0x1f8f3d&&_0x706543['type']!=_0x1f8f3d)continue;let _0x4d47b7=!0x1;for(const _0x288c98 of _0x706543['getRanges']()){for(const _0x70c7ed of _0x2dd846){const _0x2c84eb=_0x70c7ed['start']['isEqual'](_0x288c98['end'])||_0x70c7ed['end']['isEqual'](_0x288c98['start']);if(_0x2c84eb||_0x70c7ed['getIntersection'](_0x288c98)){const _0xe0bc92=_0x70c7ed['containsRange'](_0x288c98)&&qt(this['_model']['schema'],_0x288c98['start'],_0x70c7ed),_0x35ddc2=_0x288c98['containsRange'](_0x70c7ed)&&qt(this['_model']['schema'],_0x70c7ed['start'],_0x288c98);_0x772ae9['push']({'suggestion':_0x706543,'meta':{'isOwn':_0x3699a9==_0x706543['author'],'isNextTo':_0x2c84eb,'isInsideObject':_0xe0bc92,'containsRangeInObject':_0x35ddc2}}),_0x4d47b7=!0x0;break;}}if(_0x4d47b7)break;}}return _0x772ae9;}['_addSuggestionMarker'](_0x4dda4c,_0x19711c,_0x4faed5,_0x2e0161,_0x51a55a){this['_model']['change'](_0x397d48=>{let _0x260508='suggestion:'+_0x4dda4c+':'+_0x19711c+':'+_0x4faed5;_0x51a55a&&(_0x260508=_0x260508+':'+_0x51a55a),_0x397d48['addMarker'](_0x260508,{'range':_0x2e0161,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x53c4c7){const _0xd6cafd=_0x53c4c7['previous'],_0x489079=_0x53c4c7['next'];_0x53c4c7['previous']=null,_0x53c4c7['next']=null,null!=_0xd6cafd&&_0xd6cafd['next']==_0x53c4c7&&(_0xd6cafd['next']=_0x489079),null!=_0x489079&&_0x489079['previous']==_0x53c4c7&&(_0x489079['previous']=_0xd6cafd),'ready'==this['_suggestionState']['get'](_0x53c4c7)&&(this['_suggestionState']['set'](_0x53c4c7,'removed'),this['fire']('suggestionUnloaded',_0x53c4c7,_0xd6cafd,_0x489079));}['_setSuggestionData'](_0x2e20b5){const _0x1d0cee=_0x2e20b5['id'],_0x5bf872=this['addSuggestionData'](_0x2e20b5);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x40a679=this['editor']['plugins']['get']('PendingActions'),_0x3d3db6=_0x5bf872['hasComments'],_0xb697cc=_0x5bf872['subType']?_0x5bf872['type']+':'+_0x5bf872['subType']:_0x5bf872['type'],_0x6b4e3a=this['editor']['locale'],_0x4b867a=_0x40a679['add'](o(_0x6b4e3a,'PENDING_ACTION_SUGGESTION')),_0x1cc0c3={'id':_0x1d0cee,'type':_0xb697cc,'hasComments':_0x3d3db6,'data':_0x2e20b5['data']||null,'originalSuggestionId':_0x2e20b5['originalSuggestionId']||null,'attributes':_0x5bf872['attributes']};this['_adapter']['addSuggestion'](_0x1cc0c3)['then'](_0x49a5e7=>{_0x5bf872['_saved']=!0x0,_0x40a679['remove'](_0x4b867a),_0x49a5e7&&_0x49a5e7['createdAt']&&(this['_suggestions']['get'](_0x1d0cee)['createdAt']=_0x49a5e7['createdAt']);})['catch'](_0x2c07a0=>{throw _0x534041('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x5bf872['discard']();}),_0x5bf872['stopListening'](),this['_suggestions']['delete'](_0x5bf872['id']),this['_suggestionState']['delete'](_0x5bf872),_0x2c07a0;});}return _0x5bf872;}['_isBlockAttribute'](_0x268a7a){return this['editor']['plugins']['get'](_0x24828a)['isBlockAttribute'](_0x268a7a);}['_isInlineAttribute'](_0x1df630){return this['editor']['plugins']['get'](_0x24828a)['isInlineAttribute'](_0x1df630);}['_updateSuggestionData'](_0x3cd7a8,_0x1f07dd){const _0xc2b538=this['editor']['plugins']['get']('PendingActions'),_0x1ca070=this['getSuggestion'](_0x3cd7a8);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x1ca070['_saved']){const _0x156bb6=_0xc2b538['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x3cd7a8,_0x1f07dd)['then'](()=>{_0xc2b538['remove'](_0x156bb6);});}else _0x1ca070['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x3cd7a8,_0x1f07dd);});}}['_getSuggestionData'](_0x1492f6){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x295561('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x1492f6);}['_handleNewSuggestionMarker'](_0x2ae38b){const {id:_0xb9d854,type:_0xcec47,subType:_0x11b4b1,authorId:_0x45c11c}=this['_splitMarkerName'](_0x2ae38b),_0x5989a4=this['_suggestions']['get'](_0xb9d854)||this['_createSuggestion'](_0xcec47,_0x11b4b1,_0xb9d854,_0x45c11c,{});switch(this['_checkSuggestionCorrectness'](_0x5989a4,_0xcec47,_0x11b4b1,_0x45c11c),this['_suggestionState']['get'](_0x5989a4)){case'notReady':this['_getSuggestionData'](_0xb9d854)['then'](_0x573e9f=>{let _0x56c681=Promise['resolve']();_0x573e9f['hasComments']&&(_0x56c681=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0xb9d854})),_0x56c681['then'](()=>{this['addSuggestionData'](_0x573e9f)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x5989a4,'markerReady');break;case'removed':this['_updateSuggestionData'](_0xb9d854,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x5989a4,'ready'),this['fire']('suggestionLoaded',_0x5989a4);break;case'ready':this['fire']('suggestionChanged',_0x5989a4);}return _0x5989a4['addMarkerName'](_0x2ae38b),_0x5989a4;}['_refreshSuggestionsChain'](_0x5307c3){const _0x942796=Array['from'](_0x5307c3),_0x200aa5=_0x942796['filter'](_0x242623=>'attribute'==_0x242623['type']);this['_refreshAttributeSuggestionsChain'](_0x200aa5);const _0x5c44c9=_0x942796['filter'](_0xb55c0c=>!_0xb55c0c['isMultiRange']&&'attribute'!=_0xb55c0c['type']),_0x13549d=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2a98a7=>!_0x2a98a7['isMultiRange']&&'attribute'!=_0x2a98a7['type']),_0x20f294=_0x13549d['filter'](_0x4d142a=>!_0x5307c3['has'](_0x4d142a)),_0x5f08e3=new Map(_0x13549d['map'](_0xa7ca11=>[_0xa7ca11,this['_suggestionFactory']['getSuggestionCallback'](_0xa7ca11['type'],_0xa7ca11['subType'],'chain')])),_0x39386d=new Map(_0x13549d['map'](_0x3db22b=>[_0x3db22b,_0x3db22b['getFirstRange']()])),_0x3b8354=new Set(),_0xf0f37c=new Set();for(let _0x51b113=0x0;_0x51b113<_0x5c44c9['length'];_0x51b113++)_0x2ea7fc(_0x5c44c9[_0x51b113],_0x5c44c9,_0x51b113+0x1);for(let _0x2aa34a=0x0;_0x2aa34a<_0x5c44c9['length'];_0x2aa34a++)_0x2ea7fc(_0x5c44c9[_0x2aa34a],_0x20f294,0x0);const _0x545e27=new Set();for(let _0x5a99ab=0x0;_0x5a99ab<_0x5c44c9['length'];_0x5a99ab++){const _0x461366=_0x5c44c9[_0x5a99ab];!_0xf0f37c['has'](_0x461366)&&_0x461366['previous']&&(_0x545e27['add'](_0x461366['previous']),_0x461366['previous']['next']===_0x461366&&(_0x461366['previous']['next']=null),_0x461366['previous']=null),!_0x3b8354['has'](_0x461366)&&_0x461366['next']&&(_0x545e27['add'](_0x461366['next']),_0x461366['next']['previous']===_0x461366&&(_0x461366['next']['previous']=null),_0x461366['next']=null);}function _0x2ea7fc(_0x3aaa2b,_0x5eb664,_0x2a7136){for(let _0x2c4bda=_0x2a7136;_0x2c4bda<_0x5eb664['length'];_0x2c4bda++){const _0x1b24f3=_0x3674d0(_0x3aaa2b,_0x5eb664[_0x2c4bda]);_0x1b24f3&&(_0x1b24f3[0x0]['next']=_0x1b24f3[0x1],_0x1b24f3[0x1]['previous']=_0x1b24f3[0x0],_0x3b8354['add'](_0x1b24f3[0x0]),_0xf0f37c['add'](_0x1b24f3[0x1]));}}function _0x3674d0(_0x5e78f5,_0x575b95){if(_0x5e78f5['author']['id']!==_0x575b95['author']['id'])return null;const _0x54ddb6=_0x5f08e3['get'](_0x5e78f5)(_0x5e78f5,_0x575b95,_0x39386d['get'](_0x5e78f5),_0x39386d['get'](_0x575b95));if(!_0x54ddb6)return null;return _0x5f08e3['get'](_0x575b95)(_0x5e78f5,_0x575b95,_0x39386d['get'](_0x5e78f5),_0x39386d['get'](_0x575b95))?_0x54ddb6[0x1]['commentThread']&&_0x54ddb6[0x1]['commentThread']['length']?null:_0x54ddb6:null;}_0x545e27['size']&&this['_refreshSuggestionsChain'](_0x545e27);}['_refreshAttributeSuggestionsChain'](_0x3aee45){if(0x0==_0x3aee45['length'])return;const _0x102932=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2a780c=>'attribute'==_0x2a780c['type']&&_0x2a780c['_isDataLoaded']),_0x22197e=[],_0x32673f=new Map();for(const _0x3fd73b of _0x102932){const _0x5ed2ee=_0x5d9d53(_0x3fd73b['attributes']);_0x32673f['has'](_0x5ed2ee)||(_0x32673f['set'](_0x5ed2ee,_0x22197e['length']),_0x22197e['push']([]));const _0x2799bf=_0x32673f['get'](_0x5ed2ee);_0x22197e[_0x2799bf]['push'](_0x3fd73b);}!(function(){_0x22197e['sort']((_0x1a708d,_0x52f8de)=>{const _0x2f8b13=_0x1a708d[0x0]['createdAt'],_0x53faf6=_0x52f8de[0x0]['createdAt'];return _0x2f8b13==_0x53faf6?_0x1a708d[0x0]['attributes']['groupId']<_0x52f8de[0x0]['attributes']['groupId']?-0x1:0x1:_0x2f8b13<_0x53faf6?-0x1:0x1;});for(const _0x7fd104 of _0x22197e)_0x7fd104['sort']((_0x173a04,_0x4fedee)=>_0x173a04['id']<_0x4fedee['id']?-0x1:0x1);}());for(let _0x423f94=0x0;_0x423f94<_0x22197e['length'];_0x423f94++){if(0x0==_0x22197e[_0x423f94]['length'])continue;const _0x660d9a=[];for(let _0x1816e7=_0x423f94+0x1;_0x1816e7<_0x22197e['length'];_0x1816e7++)0x0!=_0x22197e[_0x1816e7]['length']&&_0x3a1b07(_0x22197e[_0x423f94],_0x22197e[_0x1816e7])&&_0x660d9a['push'](_0x1816e7);for(const _0x245638 of _0x660d9a)_0x22197e[_0x423f94]=_0x22197e[_0x423f94]['concat'](_0x22197e[_0x245638]),_0x22197e[_0x245638]=[];}for(const _0x2073de of _0x22197e)for(let _0x337217=0x0;_0x337217<_0x2073de['length'];_0x337217++){const _0x3f087a=_0x2073de[_0x337217+0x1]||null;_0x2073de[_0x337217]['next']!==_0x3f087a&&(_0x2073de[_0x337217]['next']=_0x3f087a);}for(const _0x4ed1dc of _0x22197e)for(let _0x251414=0x0;_0x251414<_0x4ed1dc['length'];_0x251414++){const _0x106bcb=_0x4ed1dc[_0x251414-0x1]||null;_0x4ed1dc[_0x251414]['previous']!==_0x106bcb&&(_0x4ed1dc[_0x251414]['previous']=_0x106bcb);}function _0x3a1b07(_0x3d3b79,_0x1836ff){if(_0x3d3b79[0x0]['attributes']['groupId']!==_0x1836ff[0x0]['attributes']['groupId']&&_0x3d3b79[0x0]['author']!==_0x1836ff[0x0]['author'])return!0x1;if(!function(_0x4a9a44,_0x5ee855){if(!_0x4a9a44['hasComments']&&!_0x5ee855['hasComments'])return!0x0;if(_0x4a9a44['hasComments']&&_0x5ee855['hasComments'])return!0x1;if(_0x4a9a44['hasComments']&&_0x5ee855['createdAt']<_0x4a9a44['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x5ee855['hasComments']&&_0x4a9a44['createdAt']<_0x5ee855['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x3d3b79[0x0],_0x1836ff[0x0]))return!0x1;const _0x441743=Jt(_0x3d3b79[0x0]['attributes'],['groupId','trackingSessionId']),_0x3640cb=Jt(_0x1836ff[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x4d6333(_0x441743,_0x3640cb))return!0x1;if(_0x3d3b79[0x0]['attributes']['groupId']==_0x1836ff[0x0]['attributes']['groupId'])return!0x0;if(_0x3d3b79[0x0]['attributes']['trackingSessionId']!==_0x1836ff[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x3d3b79['every'](_0x30dda5=>_0x1836ff['some'](_0x27b377=>_0x30dda5['getFirstRange']()['isEqual'](_0x27b377['getFirstRange']())))&&_0x1836ff['every'](_0x1a0d53=>_0x3d3b79['some'](_0x3e03eb=>_0x1a0d53['getFirstRange']()['isEqual'](_0x3e03eb['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x51c781){const _0x2c50b7=Array['from'](_0x51c781),_0x2155dc=this['getSuggestions']({'skipNotAttached':!0x0}),_0x5e9d59=_0x2155dc['filter'](_0x1f9a21=>!_0x51c781['has'](_0x1f9a21)),_0xd11390=new Map(_0x2c50b7['map'](_0x249635=>[_0x249635,this['_suggestionFactory']['getSuggestionCallback'](_0x249635['type'],_0x249635['subType'],'join')])),_0x14df98=new Map(_0x2155dc['map'](_0x17e795=>[_0x17e795,_0x17e795['getRanges']()]));for(let _0x4eea53=0x0;_0x4eea53<_0x2c50b7['length'];_0x4eea53++){if(_0x57e792(this,_0x2c50b7[_0x4eea53],_0x2c50b7,_0x4eea53+0x1))return!0x0;}for(let _0x18537c=0x0;_0x18537c<_0x2c50b7['length'];_0x18537c++){if(_0x57e792(this,_0x2c50b7[_0x18537c],_0x5e9d59,0x0))return!0x0;}return!0x1;function _0x57e792(_0x21c809,_0x32dab3,_0x2733a1,_0xac210f){for(let _0x1d24de=_0xac210f;_0x1d24de<_0x2733a1['length'];_0x1d24de++){const _0x1c9b66=_0x2733a1[_0x1d24de];if(_0x1c9b66['type']!==_0x32dab3['type']||_0x1c9b66['author']['id']!==_0x32dab3['author']['id']||_0x1c9b66['subType']!==_0x32dab3['subType'])continue;if(!nn(_0x32dab3,_0x1c9b66))continue;if('attribute'==_0x32dab3['type']&&_0x32dab3['data']['oldValue']!=_0x1c9b66['data']['oldValue'])continue;if('attribute'==_0x32dab3['type']&&_0x21c809['_isBlockAttribute'](_0x32dab3['data']['key']))continue;if('formatBlock'==_0x32dab3['type']){const _0x3efa0b=_0x21c809['editor']['model'],_0x4ce82c=_0x32dab3['getContainedElement']();if(_0x4ce82c&&(_0x3efa0b['schema']['isObject'](_0x4ce82c)||_0x3efa0b['schema']['isLimit'](_0x4ce82c)))continue;}const _0x21173b=_0xd11390['get'](_0x32dab3),_0x28bb99=_0x14df98['get'](_0x32dab3),_0x41472f=_0x14df98['get'](_0x1c9b66),_0x593b88=_0x32dab3['commentThread']&&_0x32dab3['commentThread']['length'],_0x3cddf5=_0x1c9b66['commentThread']&&_0x1c9b66['commentThread']['length'];if(!_0x593b88&&_0x21173b(_0x41472f,_0x28bb99))return _0x21c809['_joinSuggestions'](_0x1c9b66,_0x32dab3),_0x14df98['delete'](_0x32dab3),!0x0;if(!_0x3cddf5&&_0x21173b(_0x28bb99,_0x41472f))return _0x21c809['_joinSuggestions'](_0x32dab3,_0x1c9b66),_0x14df98['delete'](_0x1c9b66),!0x0;}return!0x1;}}['_joinSuggestions'](_0x1ea7b9,_0x485b8f){if(_0x1ea7b9['isMultiRange']){for(const _0x49c10d of _0x485b8f['getRanges']())_0x1ea7b9['addRange'](_0x49c10d);}else{const _0x1a5509=_0x485b8f['getFirstRange']()['end'];this['_setSuggestionRange'](_0x1ea7b9,this['_model']['createRange'](_0x1ea7b9['getFirstRange']()['start'],_0x1a5509));}_0x485b8f['removeMarkers']();}['_getMarkerAnnouncementText'](_0x2fe041,_0x4fdaa0,_0x24baf7){const _0x2d11e4=_0x2fe041['startsWith']('format')||_0x2fe041['startsWith']('attribute')?'FORMATTING':_0x2fe041['toUpperCase']();return o(this['editor']['locale'],_0x4fdaa0+'_'+_0x2d11e4+'_SUGGESTION_ANNOUNCEMENT',_0x24baf7);}['_initAriaMarkerChangeAnnouncements'](){const _0x2eb49d=this['editor'];if(!_0x2eb49d['ui'])return;const {ariaLiveAnnouncer:_0x5be7a0}=_0x2eb49d['ui'];_0x540d08(this['_model'],({left:_0x117053,entered:_0x56bc0b})=>{for(const _0x3b6933 of _0x117053){const {group:_0x4a1b8a,type:_0x44a8dc}=this['_splitMarkerName'](_0x3b6933['name']);if('suggestion'===_0x4a1b8a){_0x5be7a0['announce'](this['_getMarkerAnnouncementText'](_0x44a8dc,'LEAVE'));break;}}for(const _0x1abdcc of _0x56bc0b){const {group:_0x279c27,type:_0x134945}=this['_splitMarkerName'](_0x1abdcc['name']);if('suggestion'===_0x279c27){_0x5be7a0['announce'](this['_getMarkerAnnouncementText'](_0x134945,'ENTER',_0x123b9d(_0x12f96f)));break;}}});}['_processAttributeChanges'](_0x564490){if(this['_recordAttributeSuggestions'])return!0x1;const _0x43da54=this['editor'],_0x2bc55b=_0x43da54['model']['document']['differ']['getChanges']();if(0x0==_0x2bc55b['length'])return!0x1;const _0x425245=[],_0xdd6726=_0x2bc55b['filter'](_0x2649aa=>'attribute'==_0x2649aa['type']),_0x4c9738=_0x2bc55b['filter'](_0x31b323=>'insert'==_0x31b323['type']&&'$text'!=_0x31b323['name']),_0x37cd5c=_0x2bc55b['filter'](_0x22718a=>'remove'==_0x22718a['type']&&'$text'!=_0x22718a['name']);for(const _0x53df8c of _0xdd6726)_0x425245['push']({'key':_0x53df8c['attributeKey'],'newValue':_0x53df8c['attributeNewValue'],'oldValue':_0x53df8c['attributeOldValue'],'range':Yt(_0x53df8c['range'],_0x43da54['model'])});for(const _0x121586 of _0x4c9738){const _0x21d73c=_0x37cd5c['find'](_0x42226e=>_0x42226e['position']['isEqual'](_0x121586['position']));_0x21d73c&&_0x425245['push']({'key':m,'newValue':_0x121586['name'],'oldValue':_0x21d73c['name'],'range':_0x43da54['model']['createRangeOn'](_0x121586['position']['nodeAfter'])});}return 0x0!=_0x425245['length']&&this['_reduceExistingSuggestions'](_0x564490,_0x425245);}['_processAttributeSuggestions'](_0x5eb6fb){let _0x5dff5d=!0x1;const _0x299900=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1bf593=>_0x1bf593['data']['newRange']&&_0x1bf593['name']['startsWith']('suggestion:attribute:'));for(const _0x43c5c6 of _0x299900){const {subType:_0x5d8ea7,id:_0x115823}=this['_splitMarkerName'](_0x43c5c6['name']),_0x3e6586=_0x5d8ea7['split']('|')[0x0];for(const _0x54dd72 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x54dd72['id']!=_0x115823&&'attribute'==_0x54dd72['type']&&_0x54dd72['data']&&_0x54dd72['data']['key']==_0x3e6586&&_0x54dd72['getFirstRange']()['isIntersecting'](_0x43c5c6['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x54dd72,_0x43c5c6['data']['newRange'],_0x5eb6fb),_0x5dff5d=!0x0);}return _0x5dff5d;}['recordAttributeChanges'](_0xcf568f){this['_recordAttributeSuggestions']=!0x0,_0xcf568f();}['_isRegisteredAttribute'](_0x559d7d){return this['editor']['plugins']['get'](_0x24828a)['isRegisteredAttribute'](_0x559d7d);}['_reduceExistingSuggestions'](_0xe583c2,_0xf8c65f){if(0x0==_0xf8c65f['length'])return!0x1;let _0x506923=!0x1;for(const _0x28b417 of _0xf8c65f){const _0x40504f=this['_findSuggestions'](_0x28b417['range'],'attribute')['filter'](_0x34df2f=>!_0x34df2f['meta']['isNextTo'])['map'](_0xfb70fd=>_0xfb70fd['suggestion']),_0x433ad4=_0x5d9d53({'newValue':_0x28b417['newValue']});_0x40504f['filter'](_0x47dac0=>{const [_0x1fdaa4,_0x4397cd]=_0x47dac0['subType']['split']('|');return _0x1fdaa4==_0x28b417['key']&&_0x4397cd!=_0x433ad4;})['forEach'](_0x40a5e7=>{this['_reduceSuggestionAttributeRange'](_0x40a5e7,_0x28b417['range'],_0xe583c2),_0x506923=!0x0;});}return _0x506923;}['_reduceSuggestionAttributeRange'](_0x280722,_0x22a8fd,_0x4362a2){const _0x56a8de=_0x280722['getFirstRange']()['getDifference'](_0x22a8fd);0x0!==_0x56a8de['length']?0x1!==_0x56a8de['length']?this['_breakSuggestionMarker'](_0x280722,_0x22a8fd['start'],_0x22a8fd['end']):this['_setSuggestionRange'](_0x280722,_0x56a8de[0x0]):_0x4362a2['removeMarker'](_0x280722['getFirstMarker']());}}class SuggestionFactory{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x29e4ce){this['_editor']=_0x29e4ce,this['_model']=_0x29e4ce['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x301558,_0x1a40a1,_0x1d4a31,_0x5c5dac,_0x38c707,_0x315ea8,_0x16dda2){return new T(this['_model'],{'type':_0x301558,'subType':_0x1a40a1,'id':_0x1d4a31,'originalSuggestionId':_0x16dda2,'author':_0x5c5dac,'creator':_0x5c5dac,'attributes':_0x38c707,'onAttributesChange':_0x315ea8,'onAccept':(..._0x387f1d)=>this['getSuggestionCallback'](_0x301558,_0x1a40a1,'accept')(..._0x387f1d),'onDiscard':(..._0x4621e6)=>this['getSuggestionCallback'](_0x301558,_0x1a40a1,'discard')(..._0x4621e6)});}['registerCustomCallback'](_0x82388a,_0x3eb09e,_0x1e1c66,_0x11c3aa){const _0x294e28=_0x82388a+':'+_0x3eb09e+':'+_0x1e1c66;this['_customCallbacks']['set'](_0x294e28,_0x11c3aa);}['getSuggestionCallback'](_0x4f5d9e,_0x246241,_0x419391){const _0x960cbc=_0x4f5d9e+':'+_0x246241+':'+_0x419391;return this['_customCallbacks']['get'](_0x960cbc)||this['_defaultCallbacks']['get'](_0x4f5d9e+':'+_0x419391);}['_registerDefaultCallbacks'](){const _0x3da2c6=()=>!0x1,_0x153f64=_0x29dd26=>{_0x29dd26['sort']((_0x544ac7,_0x132ec9)=>_0x544ac7['start']['isBefore'](_0x132ec9['start'])?0x1:-0x1),this['_model']['change'](_0x3cfb16=>{for(const _0x59e38c of _0x29dd26){let _0x2082e3;_0x2082e3=_0x59e38c['end']['isAtEnd']&&_0x59e38c['end']['parent']==_0x59e38c['start']['nodeAfter']?_0x3cfb16['createSelection'](_0x59e38c['start']['nodeAfter'],'on'):_0x3cfb16['createSelection'](_0x59e38c),this['_model']['deleteContent'](_0x2082e3,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x1a39b6=(_0x5c7412,_0x1ad7bb)=>{_0x1ad7bb&&this['_model']['change'](_0x37e09d=>{const {commandName:_0x42b884,commandParams:_0x48e2fe=[]}=_0x1ad7bb,_0x1902fe=_0x5c7412['map'](_0x426e25=>(zt(_0x426e25)&&(_0x426e25=this['_model']['createRange'](_0x426e25['end'])),_0x426e25))['filter'](_0x3e4da3=>'$graveyard'!==_0x3e4da3['root']['rootName']);if(_0x1902fe['length']<0x1)return;const _0x3091e9=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x1898f0=>_0x23cc14['fromRange'](_0x1898f0));_0x37e09d['setSelection'](_0x1902fe);for(const _0x5dc1df of this['_editor']['commands']['commands']())_0x5dc1df['refresh']();_0x48e2fe['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x42b884,..._0x48e2fe);const _0x2834a6=_0x3091e9['filter'](_0x4d7bed=>'$graveyard'!=_0x4d7bed['root']['rootName']);_0x2834a6['length']>0x0&&_0x37e09d['setSelection'](_0x2834a6);for(const _0x2f1d76 of _0x3091e9)_0x2f1d76['detach']();});},_0x26198a=(_0x351b5b,_0x10fece)=>0x1==_0x351b5b['length']&&0x1==_0x10fece['length']&&_0x351b5b[0x0]['end']['isEqual'](_0x10fece[0x0]['start']),_0x353027=(_0x27c167,_0x1defcc,_0x25fc0e,_0x4ac7a6)=>tn(_0x27c167,_0x1defcc,_0x25fc0e,_0x4ac7a6)?[_0x27c167,_0x1defcc]:tn(_0x1defcc,_0x27c167,_0x4ac7a6,_0x25fc0e)?[_0x1defcc,_0x27c167]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x3da2c6),this['_defaultCallbacks']['set']('insertion:discard',_0x153f64),this['_defaultCallbacks']['set']('insertion:join',_0x26198a),this['_defaultCallbacks']['set']('insertion:chain',_0x353027),this['_defaultCallbacks']['set']('deletion:accept',_0x153f64),this['_defaultCallbacks']['set']('deletion:discard',_0x3da2c6),this['_defaultCallbacks']['set']('deletion:join',_0x26198a),this['_defaultCallbacks']['set']('deletion:chain',_0x353027),this['_defaultCallbacks']['set']('formatInline:accept',_0x1a39b6),this['_defaultCallbacks']['set']('formatInline:discard',_0x3da2c6),this['_defaultCallbacks']['set']('formatInline:join',_0x26198a),this['_defaultCallbacks']['set']('formatInline:chain',_0x3da2c6),this['_defaultCallbacks']['set']('formatBlock:accept',_0x1a39b6),this['_defaultCallbacks']['set']('formatBlock:discard',_0x3da2c6),this['_defaultCallbacks']['set']('formatBlock:join',_0x26198a),this['_defaultCallbacks']['set']('formatBlock:chain',_0x3da2c6),this['_defaultCallbacks']['set']('attribute:accept',_0x3da2c6),this['_defaultCallbacks']['set']('attribute:discard',(_0x5ba0be,_0x58c4ad)=>{if(!_0x58c4ad)return;const _0x296ddf=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x5e9c34=>{if(_0x58c4ad['key']==m)for(const _0x27770a of _0x5ba0be){const _0x2871fc=_0x27770a['start']['nodeAfter'],_0x394060=_0x58c4ad['oldValue'];_0x5e9c34['rename'](_0x2871fc,_0x394060);}else{if(_0x296ddf['_isBlockAttribute'](_0x58c4ad['key'])){for(const _0xcc69cc of _0x5ba0be)void 0x0!==_0x58c4ad['oldValue']?_0x5e9c34['setAttribute'](_0x58c4ad['key'],_0x58c4ad['oldValue'],_0xcc69cc['start']['nodeAfter']):_0x5e9c34['removeAttribute'](_0x58c4ad['key'],_0xcc69cc['start']['nodeAfter']);}else{for(const _0x438ba0 of _0x5ba0be)_0x58c4ad['oldValue']?_0x5e9c34['setAttribute'](_0x58c4ad['key'],_0x58c4ad['oldValue'],_0x438ba0):_0x5e9c34['removeAttribute'](_0x58c4ad['key'],_0x438ba0);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x26198a);}}function qt(_0x3e11f8,_0x3ee93b,_0x2f5b65){for(const _0x43d25e of _0x3ee93b['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x43d25e['root']==_0x43d25e)return!0x1;if(!_0x2f5b65['containsItem'](_0x43d25e))return!0x1;if(_0x3e11f8['isObject'](_0x43d25e)||_0x3e11f8['isLimit'](_0x43d25e))return!0x0;}return!0x1;}function zt(_0x3dd3f9){return _0x3dd3f9['end']['parent']==_0x3dd3f9['start']['nodeAfter']&&_0x3dd3f9['end']['isAtStart'];}function Kt(_0x122168,_0xdbce9a,_0x2522dc,_0x4ef4d6){const _0x593647=_0x565ee7=>!_0x565ee7['item']['is']('$textProxy')&&!_0x4ef4d6['isObject'](_0x565ee7['item']),_0x4ee1a2=_0x122168['start']['getLastMatchingPosition'](_0x593647),_0x43557d=_0x122168['end']['getLastMatchingPosition'](_0x593647,{'direction':'backward'});return(!_0x122168['start']['isEqual'](_0x4ee1a2)||!_0x122168['end']['isEqual'](_0x43557d))&&(_0x4ee1a2['isBefore'](_0x43557d)?_0x2522dc['updateMarker'](_0xdbce9a,{'range':_0x2522dc['createRange'](_0x4ee1a2,_0x43557d)}):_0x2522dc['removeMarker'](_0xdbce9a),!0x0);}function Wt(_0xf78eda){return _0x5d9d53(_0xf78eda);}function Ht(_0x40df1b){const _0x512ae1=_0x40df1b['start']['nodeAfter'];return _0x512ae1&&_0x512ae1['is']('element');}function Qt(_0x26a380){return zt(_0x26a380)||function(_0x3ba0bc){return _0x3ba0bc['start']['parent']==_0x3ba0bc['end']['nodeBefore']&&_0x3ba0bc['start']['isAtEnd'];}(_0x26a380);}function Xt(_0x21d39c,_0x51aa10){try{const _0x27f0cd=_0x21d39c['getRange']();for(const _0x26e439 of _0x51aa10)if(_0x21d39c!==_0x26e439&&_0x27f0cd&&_0x27f0cd['isIntersecting'](_0x26e439['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function Yt(_0x81a9ac,_0x565bb8){return null==_0x81a9ac['end']['nodeBefore']&&_0x81a9ac['end']['parent']==_0x81a9ac['start']['nodeAfter']?Zt(_0x81a9ac['start']['nodeAfter'],_0x565bb8):_0x81a9ac;}function Zt(_0x40dec0,_0x506b26){const _0x24d9b7=_0x506b26['schema']['isObject'](_0x40dec0)||_0x506b26['schema']['isSelectable'](_0x40dec0);return _0x506b26['createRange'](_0x506b26['createPositionAt'](_0x40dec0,'before'),_0x24d9b7?_0x506b26['createPositionAfter'](_0x40dec0):_0x506b26['createPositionAt'](_0x40dec0,'end'));}function tn(_0x31eefe,_0x3b226a,_0x47fd7c,_0x2a9644){return!!nn(_0x31eefe,_0x3b226a)&&_0x47fd7c['end']['isEqual'](_0x2a9644['start']);}function nn(_0x303e83,_0x3d7f8a){if(!_0x303e83['_isDataLoaded']||!_0x3d7f8a['_isDataLoaded'])return!0x1;const _0x5ae297=new Set(Object['keys'](_0x303e83['attributes'])),_0xe1f275=new Set(Object['keys'](_0x3d7f8a['attributes']));if(_0x5ae297['delete']('groupId'),_0xe1f275['delete']('groupId'),0x0==_0x5ae297['size']&&0x0==_0xe1f275['size'])return!0x0;if(_0x5ae297['size']!=_0xe1f275['size'])return!0x1;const _0x4a68d0={..._0x303e83['attributes']},_0x4bed03={..._0x3d7f8a['attributes']};return delete _0x4a68d0['groupId'],delete _0x4bed03['groupId'],JSON['stringify'](_0x4a68d0)==JSON['stringify'](_0x4bed03);}function en(_0x473a2c,_0x3a29e3){const _0x529b47=sn(_0x473a2c['attributes']),_0x9db86b=sn(_0x3a29e3);if(!_0x473a2c['_isDataLoaded'])return!0x1;for(const _0xf90882 of Object['keys'](_0x9db86b))if(!_0x4d6333(_0x529b47[_0xf90882],_0x9db86b[_0xf90882]))return!0x1;return!0x0;}function sn(_0x5463a4){const _0x277e38=Object['assign']({},_0x5463a4);return delete _0x277e38['skipNestingCheck'],delete _0x277e38['tablePasteChainId'],_0x277e38;}class pe extends/* #__PURE__ -- @preserve */
|
|
26
|
-
_0x4c00e9(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x3da7d5,_0x3b7ee6,_0x9abd22,_0x461739){super(),this['model']=_0x3b7ee6,this['view']=_0x9abd22,this['commentThreadController']=_0x461739,this['_editor']=_0x3da7d5,this['_acceptCommand']=_0x3da7d5['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x3da7d5['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x4d3649,_0x1e43ec)=>_0x4d3649||_0x1e43ec),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x4674b6=>_0x4674b6&&this['_editor']['model']['canEditAt'](_0x3b7ee6['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x26eac8=>_0x26eac8&&this['_editor']['model']['canEditAt'](_0x3b7ee6['getRanges']())),this['_pendingAction']=null,_0x9abd22['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x9abd22,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x9abd22,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x9abd22,'change:isDirty',()=>{_0x9abd22['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 _0x2c6f66=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x2c6f66);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x573a46{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x5d3aee,_0x27fa61,_0x542696,_0x586656){super(_0x5d3aee),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x4309bd(_0x5d3aee,o(_0x5d3aee,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x27fa61['authoredAt']),this['bind']('authoredAt')['to'](_0x27fa61),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',_0x27fa61,'authoredAt',this,'descriptionParts',(_0x44558c,_0x3eb937,_0x89a254)=>{const _0x420b1a=_0x89a254['map'](_0x186ed5=>ls(_0x186ed5['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x44558c-0x1,_0x27fa61['author']['name'],_0x3eb937?_0x586656['formatDateTime'](_0x3eb937):'',new DOMParser()['parseFromString'](_0x420b1a,'text/html')['body']['textContent']]);}),this['focusables']=new _0x50abef(),this['focusTracker']=new _0x3e0955(),this['keystrokes']=new _0x57edfc(),this['focusCycler']=new _0x43fa24({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x390e7b=>_0x390e7b['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x27fa61,this['_localUser']=_0x542696,this['_config']=_0x586656,_0x586656['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x5b961c(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x4df3eb}=this['_config'];this['commentsListView']=new _0x4df3eb(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',_0x4820f3=>_0x4820f3+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0xaed1b1,_0x52366f)=>_0xaed1b1||!!_0x52366f);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x3d0c24}=this['_config'],_0x5dfcbd=new _0x3d0c24(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x2b60a7=_0x5dfcbd['commentInputView'];return _0x5dfcbd['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x2b60a7,'value',(_0x96ef52,_0x2ec725,_0x2f4175)=>!!_0x2f4175||_0x96ef52&&!_0x2ec725),_0x2b60a7['on']('submit',(_0x1ea29b,_0x227981)=>{this['fire']('addComment',_0x227981),_0x2b60a7['editor']['setData']('');}),_0x2b60a7['on']('cancel',()=>this['focus']()),_0x2b60a7['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x5dfcbd;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x3ab6e0,_0x2071b3,_0x440f3f,_0x2d390a){super(_0x3ab6e0,_0x2071b3,_0x440f3f,_0x2d390a),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x26b7fd=>_0x26b7fd&&_0x26b7fd[0x0]?_0x26b7fd[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x3feccf,_0x518ba2)=>{let _0x3ad5fc='';for(const _0x209a47 of _0x3feccf)_0x3ad5fc+='<p>'+ls(_0x209a47['content'],_0x209a47['color'])+'</p>';return _0x518ba2?_0x3ad5fc:_0x9c05dc(_0x3ad5fc,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x2d390a['SuggestionView'](_0x3ab6e0,_0x2071b3,{'formatDateTime':_0x2d390a['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 _0x41093b=this['bindTemplate'],_0x412100=[this['suggestionView']];return this['commentsListView']&&_0x412100['push'](this['commentsListView']),this['commentThreadInputView']&&_0x412100['push'](this['commentThreadInputView']),_0x412100['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x41093b['if']('isActive','ck-suggestion-wrapper--active'),_0x41093b['to']('type',_0x94b22a=>'ck-suggestion-'+_0x94b22a),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':_0x41093b['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x412100};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class we extends _0x573a46{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x405076,_0x2d5540,_0x31b561){super(_0x405076),this['_model']=_0x2d5540,this['_config']=_0x31b561,this['set']('description',''),this['bind']('authoredAt')['to'](_0x2d5540),this['acceptButton']=this['_createButton'](o(_0x405076,'Accept\x20suggestion'),_0x5c1126,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x405076,'Discard\x20suggestion'),_0x39fb50,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x3af776(_0x405076,_0x2d5540['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x50abef([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x3e0955(),this['keystrokes']=new _0x57edfc(),this['focusCycler']=new _0x43fa24({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0xa6d11=>_0xa6d11['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x1b6f3b=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x1b6f3b['innerHTML']=this['description'],this['on']('change:description',(_0x4e5d08,_0x3e9c0f,_0x1f79f6)=>{_0x1b6f3b['innerHTML']=_0x1f79f6;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x3e9be6=this['bindTemplate'],_0x226208=[{'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':_0x3e9be6['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x3e9be6['to']('authoredAt',_0x1c7ef6=>this['_config']['formatDateTime'](_0x1c7ef6))}]}]},{'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']&&_0x226208['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':_0x226208}]};}['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'](_0x5b35d5,_0x78a642,_0x1bc94a,_0x34cb89,_0x6eac55){const _0x3e33c1=new _0x48d323(this['locale']);return _0x3e33c1['set']({'label':_0x5b35d5,'icon':_0x78a642,'tooltip':!0x0,'tooltipPosition':_0x6eac55}),_0x3e33c1['extendTemplate']({'attributes':{'class':_0x1bc94a}}),_0x3e33c1['on']('execute',()=>{this['fire'](_0x34cb89,this['_model']['id']);}),_0x3e33c1;}['_setupKeyboardNavigation'](){const _0x3de1b4=this['element'];this['keystrokes']['listenTo'](_0x3de1b4);for(const _0x52bdd3 of this['focusables'])this['focusTracker']['add'](_0x52bdd3['element']),this['keystrokes']['listenTo'](_0x52bdd3['element']);this['keystrokes']['set']('enter',(_0x413c22,_0x1b9914)=>{_0x3de1b4===_0x413c22['target']&&(this['focusCycler']['focusFirst'](),_0x1b9914());}),this['keystrokes']['set']('esc',(_0x573240,_0x483b05)=>{_0x3de1b4!==_0x573240['target']&&(this['focus'](),_0x483b05());});}}class u extends _0xb2d1b5{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x3dac01,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x13f32e){super(_0x13f32e),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x2899d7=this['editor']['config'];_0x2899d7['define']('trackChanges.SuggestionThreadView',fe),_0x2899d7['define']('trackChanges.SuggestionView',we),_0x2899d7['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x2899d7['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x574106,_0x9ddcb0){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x4bdf15,_0x3ac4f2]of this['_handleControllerBuffer']){const _0x59ed93=this['_suggestionToController']['has'](_0x4bdf15);_0x59ed93||_0x3ac4f2?_0x59ed93&&_0x3ac4f2&&this['_destroyController'](_0x4bdf15):this['_initializeController'](_0x4bdf15);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x574106,_0x9ddcb0);}['init'](){const _0x3f45a7=this['editor'],_0x3bcfb3=_0x3f45a7['plugins']['get']('TrackChangesEditing'),_0x3959c3=_0x3f45a7['plugins']['get']('Annotations'),_0x128b5e=_0x3f45a7['plugins']['get']('EditorAnnotations'),_0x247ad8=_0x3f45a7['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x128b5e['addSourceCollector'](()=>{const _0x5bc2d4=[];for(const [_0x6c6d88,_0x70f613]of Array['from'](this['_suggestionToController'])){const _0x2f8257=_0x6c6d88['getAllAdjacentSuggestions'](),_0x5ed028=[];for(const _0x20d3a3 of _0x2f8257){if(!_0x20d3a3['isInContent'])continue;if(_0x20d3a3['isMultiRange']){_0x5ed028['push'](..._0x20d3a3['getRanges']());continue;}const _0x10370a=_0x20d3a3['getFirstRange']();if(_0x5ed028['length']>0x0){const _0x4de376=_0x5ed028[0x0]['getJoined'](_0x10370a);if(_0x4de376){_0x5ed028[0x0]=_0x4de376;continue;}}_0x5ed028['push'](_0x10370a);}_0x5bc2d4['push']([_0x70f613['view'],_0x5ed028]);}return _0x5bc2d4;}),this['listenTo'](_0x3bcfb3,'suggestionLoaded',(_0x5a2ea9,_0x40fe3f)=>{this['listenTo'](_0x40fe3f,'change:previous',(_0x54a6f4,_0x574a07,_0x26ed2a,_0x294d9c)=>{_0x40fe3f['isInContent']&&(null==_0x26ed2a?(this['_updateController'](_0x294d9c['head']),this['_handleSuggestionControllerDelayed'](_0x40fe3f,!0x1)):(this['_updateController'](_0x26ed2a['head']),null==_0x294d9c&&this['_handleSuggestionControllerDelayed'](_0x40fe3f,!0x0)));}),null!==_0x40fe3f['previous']?this['_updateController'](_0x40fe3f['head']):this['_handleSuggestionControllerDelayed'](_0x40fe3f,!0x1);}),this['listenTo'](_0x3bcfb3,'suggestionUnloaded',(_0x3bad27,_0x542f6d,_0x679997)=>{this['stopListening'](_0x542f6d,'change:previous'),this['_handleControllerBuffer']['delete'](_0x542f6d),this['_suggestionToController']['has'](_0x542f6d)&&this['_destroyController'](_0x542f6d),_0x679997&&this['_updateController'](_0x679997['head']);}),this['listenTo'](_0x3bcfb3,'suggestionChanged',(_0x2617b7,_0x2f688f)=>{this['_updateController'](_0x2f688f);}),this['listenTo'](_0x3959c3,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x247ad8,'addComment',(_0x247eb4,{threadId:_0x17b70c,isFromAdapter:_0x1898d6})=>{if(_0x1898d6||!_0x3bcfb3['hasSuggestion'](_0x17b70c))return;const _0x35e407=_0x3bcfb3['getSuggestion'](_0x17b70c);this['_suggestionToController']['get'](_0x35e407)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xb9ea1f=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1c5ca9;for(const _0x3b5d9b in _0xb9ea1f){const _0x4c7e98=_0x3b5d9b,_0x2713e3=_0xb9ea1f[_0x4c7e98];if('trackChangesLicenseKeyValid'==_0x2713e3||'trackChangesLicenseKeyInvalid'==_0x2713e3||'trackChangesLicenseKeyExpired'==_0x2713e3||'trackChangesLicenseKeyDomainLimit'==_0x2713e3||'trackChangesLicenseKeyNotAllowed'==_0x2713e3||'trackChangesLicenseKeyEvaluationLimit'==_0x2713e3||'trackChangesLicenseKeyUsageLimit'==_0x2713e3){delete _0xb9ea1f[_0x4c7e98],_0x1c5ca9=_0x2713e3,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x1c5ca9&&_0xb9ea1f['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x1c5ca9&&_0xb9ea1f['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x1c5ca9&&_0xb9ea1f['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x1c5ca9&&_0xb9ea1f['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x1c5ca9&&_0xb9ea1f['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x1c5ca9&&_0xb9ea1f['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x5224d5){const _0x5a9c20=this['_suggestionToController']['get'](_0x5224d5);if(!_0x5a9c20)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x5a9c20['view'])||null;}['getSuggestionForAnnotation'](_0x1cc975){const _0x32ac75=this['_viewToController']['get'](_0x1cc975['innerView']);return _0x32ac75?_0x32ac75['model']:null;}['_refreshActiveMarkers'](){const _0x4ce91c=this['editor']['plugins']['get']('Annotations'),_0x4940db=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3fb9b2=Array['from'](_0x4ce91c['activeAnnotations'],_0x5b3e95=>_0x5b3e95['innerView'])['filter'](_0x35d240=>this['_viewToController']['has'](_0x35d240)),_0x5edff7=[];for(const _0xdc2627 of _0x3fb9b2){const _0x2232a8=this['_viewToController']['get'](_0xdc2627)['model']['getAllAdjacentSuggestions']();_0x5edff7['push'](..._0x2232a8['reduce']((_0x24f7f1,_0x57a691)=>[..._0x24f7f1,..._0x57a691['getMarkerNames']()],[]));}_0x4940db['activeMarkers']=_0x5edff7;}['_addUIComponentsToFactory'](){const _0x15095c=this['editor'],_0x272e5d=_0x15095c['locale'],_0x1b62da=o(_0x272e5d,'Track\x20changes'),_0x352878=new _0x5ce0c6([{'type':'switchbutton','model':new _0xc19d80({'withText':!0x0,'isToggleable':!0x0,'label':_0x1b62da,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0xc19d80({'withText':!0x0,'label':o(_0x272e5d,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0xc19d80({'withText':!0x0,'label':o(_0x272e5d,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0xc19d80({'withText':!0x0,'label':o(_0x272e5d,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0xc19d80({'withText':!0x0,'label':o(_0x272e5d,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x15095c['plugins']['has']('TrackChangesPreview')&&_0x352878['addMany']([{'type':'separator'},{'type':'button','model':new _0xc19d80({'withText':!0x0,'label':o(_0x272e5d,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x4b75ef of _0x352878)if(ke(_0x4b75ef)){const _0x467833=_0x15095c['commands']['get'](_0x4b75ef['model']['commandName']);_0x4b75ef['model']['bind']('isOn','isEnabled')['to'](_0x467833,'value','isEnabled');}_0x15095c['ui']['componentFactory']['add']('trackChanges',_0x768fe5=>this['_createToolbarButton'](_0x768fe5,_0x352878,_0x1b62da)),_0x15095c['ui']['componentFactory']['add']('menuBar:trackChanges',_0x5b13d6=>this['_createMenuBarMenu'](_0x5b13d6,_0x352878,_0x1b62da));}['_createToolbarButton'](_0x20ae82,_0x4c70a9,_0x142d39){const _0x5763d0=_0x34a91b(_0x20ae82,_0x536e38),_0x1ba6d0=this['editor']['commands']['get']('trackChanges');_0x5763d0['buttonView']['set']({'tooltip':_0x142d39,'label':_0x142d39,'icon':_0x27e754}),_0x5763d0['buttonView']['bind']('isOn')['to'](_0x1ba6d0,'value'),_0x5763d0['buttonView']['on']('execute',()=>{_0x1ba6d0['execute'](),this['editor']['editing']['view']['focus']();}),_0x4f5156(_0x5763d0,_0x4c70a9,{'role':'menu'});const _0x362345=[];for(const _0x3af071 of _0x4c70a9)ke(_0x3af071)&&_0x362345['push'](this['editor']['commands']['get'](_0x3af071['model']['commandName']));const _0x3ad081=_0x5763d0['buttonView'];return _0x3ad081['actionView']['unbind']('isEnabled'),_0x3ad081['arrowView']['unbind']('isEnabled'),_0x3ad081['actionView']['bind']('isEnabled')['to'](_0x1ba6d0,'isEnabled'),_0x3ad081['arrowView']['bind']('isEnabled')['toMany'](_0x362345,'isEnabled',(..._0xb0d3e8)=>_0xb0d3e8['some'](_0xf0a273=>_0xf0a273)),_0x5763d0['on']('execute',_0x387c4f=>{this['editor']['execute'](_0x387c4f['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x5763d0;}['_createMenuBarMenu'](_0x2bde5b,_0x5080a1,_0x4ccb3d){const _0x25c50c=new _0x28fba2(_0x2bde5b),_0x4db2f2=this['editor']['commands']['get']('trackChanges');_0x25c50c['buttonView']['set']({'label':_0x4ccb3d,'icon':_0x27e754});const _0x7bb57c=new _0x5a56a0(_0x2bde5b);for(const _0x41049d of _0x5080a1){if('separator'==_0x41049d['type']){_0x7bb57c['items']['add'](new _0x39d913(_0x2bde5b));continue;}const _0x3a466f=new _0x3d6e00(_0x2bde5b,_0x25c50c),_0x3fa671=new _0xf0efae(_0x2bde5b),_0x40568c=_0x41049d['model'];_0x3fa671['bind'](...Object['keys'](_0x40568c))['to'](_0x40568c),_0x3fa671['delegate']('execute')['to'](_0x25c50c),_0x3fa671['on']('execute',()=>{this['editor']['execute'](_0x40568c['commandName']),this['editor']['editing']['view']['focus']();}),_0x3a466f['children']['add'](_0x3fa671),_0x7bb57c['items']['add'](_0x3a466f);}return _0x25c50c['bind']('isEnabled')['to'](_0x4db2f2,'isEnabled'),_0x25c50c['panelView']['children']['add'](_0x7bb57c),_0x25c50c;}['_initializeController'](_0xc3ebbe){const _0x23996f=this['editor'],_0x20dbf4=_0x23996f['config'],_0x1df4af=_0x23996f['plugins']['get']('Annotations'),_0x5cc2ae=_0x23996f['plugins']['get']('CommentsRepository'),_0x2bdfcf=_0x23996f['plugins']['get']('EditorAnnotations'),_0x5c4c46=_0x23996f['plugins']['get'](_0x3dac01)['me'],_0x573852=_0x20dbf4['get']('trackChanges')['SuggestionThreadView'],_0x1c4ca5=_0x20dbf4['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x145c84,CommentThreadInputView:_0x436690}=_0x23996f['plugins']['get']('CommentsUI');let _0x579cf9,_0x3d3d3e,_0x1de85d;this['_annotationViews']['has'](_0xc3ebbe['id'])?(_0x3d3d3e=this['_annotationViews']['get'](_0xc3ebbe['id']),_0x579cf9=_0x3d3d3e['mainView']):(_0x579cf9=new _0x573852(_0x23996f['locale'],_0xc3ebbe,_0x5c4c46,{'disableComments':this['_disableComments'],'editorConfig':{..._0x20dbf4['get']('comments.editorConfig'),'licenseKey':_0x20dbf4['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x20dbf4['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x20dbf4['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x20dbf4['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0xbcc4e5(_0x20dbf4['get']('locale'),_0x23996f['locale']),'CommentView':_0x20dbf4['get']('comments')['CommentView'],'CommentsListView':_0x145c84,'CommentThreadInputView':_0x436690,'SuggestionView':_0x1c4ca5}),_0x579cf9['suggestionView']['acceptButton']['on']('execute',()=>{_0x23996f['editing']['view']['focus']();}),_0x579cf9['suggestionView']['discardButton']['on']('execute',()=>{_0x23996f['editing']['view']['focus']();}),_0x3d3d3e=_0x1df4af['createAnnotationView'](this['editor']['locale'],_0x579cf9),_0x3d3d3e['bind']('isDirty')['to'](_0x579cf9,'isDirty'),_0x3d3d3e['bind']('length')['to'](_0x579cf9),_0x3d3d3e['bind']('type')['to'](_0x579cf9,'type',_0x105bde=>'suggestion-'+_0x105bde),_0x579cf9['on']('escape',()=>{_0x1de85d['fire']('escape');}),this['_annotationViews']['set'](_0xc3ebbe['id'],_0x3d3d3e));const _0x2ae4c8=_0x5cc2ae['createCommentThreadController'](_0xc3ebbe['commentThread'],_0x579cf9),_0x5bf451=new pe(_0x23996f,_0xc3ebbe,_0x579cf9,_0x2ae4c8),_0x1979dd=_0xc3ebbe['getAllAdjacentSuggestions']()['filter'](_0x20c689=>_0x20c689['isInContent']);_0x579cf9['descriptionParts']=_0x23996f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x1979dd),this['_suggestionToController']['set'](_0xc3ebbe,_0x5bf451),this['_viewToController']['set'](_0x579cf9,_0x5bf451);const _0x283c8d=()=>{const _0xb43f12=[],_0x3d9274=_0xc3ebbe['getAllAdjacentSuggestions']()['filter'](_0x848711=>_0x848711['isInContent']);for(const _0x1f74c8 of _0x3d9274)_0xb43f12['push'](..._0x1f74c8['getMarkers']());return _0x22b66d(_0x23996f['editing'],_0xb43f12);};_0x1de85d=_0x1df4af['createAnnotation']({'view':_0x3d3d3e,'target':_0x283c8d,'type':()=>'suggestion-'+_0x5bf451['view']['type'],'isVisible':!!_0x283c8d()}),_0x5cc2ae['_bindAnnotationToEditors'](_0x579cf9,_0x1de85d),_0x1df4af['add'](_0x1de85d),_0x2bdfcf['registerAnnotation'](_0x1de85d);}['_destroyController'](_0x33630b){const _0x48acd1=this['editor']['plugins']['get']('CommentsRepository'),_0x261f4f=this['editor']['plugins']['get']('Annotations'),_0x583287=this['_suggestionToController']['get'](_0x33630b),_0x534ff1=_0x583287['view'],_0x4ac78b=_0x261f4f['getByInnerView'](_0x534ff1);_0x48acd1['_unbindEditors'](_0x534ff1),_0x4ac78b&&_0x261f4f['remove'](_0x4ac78b),this['_suggestionToController']['delete'](_0x33630b),this['_viewToController']['delete'](_0x534ff1),_0x583287['destroy']();}['_updateController'](_0x3f5d19){if(!_0x3f5d19['isInContent']||!this['_suggestionToController']['has'](_0x3f5d19))return;const _0x2d68f8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1de2dc=this['_suggestionToController']['get'](_0x3f5d19),_0x5c13e8=_0x3f5d19['getAllAdjacentSuggestions']();_0x1de2dc['view']['descriptionParts']=_0x2d68f8['descriptionFactory']['getDescriptions'](_0x5c13e8);}['destroy'](){for(const _0x7564b2 of this['_suggestionToController']['keys']())this['_destroyController'](_0x7564b2);for(const _0x54bd26 of this['_annotationViews']['values']())_0x54bd26['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x23fa02){return'model'in _0x23fa02;}class TrackChanges extends _0xb2d1b5{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x82fee0){this['editor']['plugins']['get'](d)['adapter']=_0x82fee0;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x1a71f7){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x1a71f7);}['getSuggestions']({skipNotAttached:_0x2d5332=!0x1,toJSON:_0x20a1ff=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x2d5332,'toJSON':_0x20a1ff});}['getSuggestion'](_0x1dce48){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x1dce48);}}const p=['Pagination'];class re extends _0xb2d1b5{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x2746c8=this['editor'];if(_0x2746c8['config']['define']('trackChangesData.editorCreator',_0x3688ca=>{const _0x1fa77a=_0x2746c8['model']['document']['getRootNames']()['reduce']((_0x4bcb7b,_0x2e44b0)=>(_0x4bcb7b[_0x2e44b0]='',_0x4bcb7b),{});return _0x2746c8['constructor']['create'](_0x1fa77a,_0x3688ca);}),'function'!=typeof _0x2746c8['config']['get']('trackChangesData')['editorCreator'])throw new _0x295561('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x4053f6){return P(this['editor'],!0x0,_0x4053f6);}['getDataWithDiscardedSuggestions'](_0x42216b){return P(this['editor'],!0x1,_0x42216b);}}class TrackChangesDataGetter extends _0xb2d1b5{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xca5b6c){function _0x5a3c75(_0x2b4072){return _0x2b4072['map'](_0x2ef79a=>String['fromCharCode'](_0x2ef79a))['join']('');}super(_0xca5b6c),this['result']='end',_0xca5b6c[_0x5a3c75([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5a3c75([0x76,0x69,0x65,0x77])][_0x5a3c75([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5a3c75([0x61,0x75,0x74,0x6f]),_0xca5b6c[_0x5a3c75([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x5a3c75([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5a3c75([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x5a3c75([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x5a3c75([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 Ne(_0x383fa6){return void 0x0!==_0x383fa6['getRootsAttributes'];}async function P(_0x27b05b,_0x138da4,_0x59b6b6){const _0x57f090=_0x4288c4(_0x27b05b,p);_0x57f090['plugins']['push'](d,TrackChangesDataGetter),_0x57f090['rootsAttributes']=Ne(_0x27b05b)?_0x27b05b['getRootsAttributes']():void 0x0;const _0x2fc80a=document['createDocumentFragment'](),_0x51823b=_0x27b05b['config']['get']('trackChangesData')['editorCreator'],_0x4f01e8=await _0x51823b(_0x57f090,()=>function(_0x3fe923){const _0x127ac8=document['createElement']('div');return _0x3fe923['appendChild'](_0x127ac8),_0x127ac8;}(_0x2fc80a));!function(_0x93e0fa,_0x2ced10){const _0x3e8908=_0x93e0fa['model']['document']['getRootNames']()['reduce']((_0x290d22,_0x28d16d)=>(_0x290d22[_0x28d16d]=_0x93e0fa['data']['get']({'rootName':_0x28d16d}),_0x290d22),{}),_0x3d745d=_0x93e0fa['plugins']['get']('Users')['users']['map'](_0x439f64=>({'id':_0x439f64['id'],'name':_0x439f64['name']})),_0x3c3c6a=_0x93e0fa['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x275eae=_0x93e0fa['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4a263f=_0x2ced10['plugins']['get']('Users'),_0xb3e609=_0x2ced10['plugins']['get']('TrackChangesEditing'),_0x1975a8=_0x2ced10['plugins']['get']('CommentsRepository');for(const _0x3d8f88 of _0x1975a8['getCommentThreads']())_0x3d8f88['remove']();for(const _0x4e606f of _0x3d745d)_0x4a263f['getUser'](_0x4e606f['id'])||_0x4a263f['addUser'](_0x4e606f);_0x4a263f['me']||_0x4a263f['useAnonymousUser']();for(const _0xa18462 of _0x275eae)_0x1975a8['addCommentThread'](_0xa18462);for(const _0x3d492f of _0x3c3c6a)_0xb3e609['addSuggestionData'](_0x3d492f);_0x2ced10['data']['set'](_0x3e8908);}(_0x27b05b,_0x4f01e8),_0x4f01e8['execute'](_0x138da4?'acceptAllSuggestions':'discardAllSuggestions');const _0x37a360=Ne(_0x4f01e8)?_0x4f01e8['getFullData'](_0x59b6b6):_0x4f01e8['data']['get'](_0x59b6b6);return await _0x4f01e8['destroy'](),_0x37a360;}class Me extends _0x573a46{['options'];constructor(_0x107a02,_0x392b72){super(_0x107a02),this['options']=_0x392b72,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'](_0x21f53b,_0x18d570){if(!this['element'])return;const _0x1295d3=[];for(const [_0x120826,_0xe9d5c6]of _0x21f53b){const _0x32ad11=document['createElement']('div');_0x32ad11['setAttribute']('data-ck-root-name',_0x120826),_0x32ad11['className']=_0xe9d5c6['classes']+'\x20ck-track-changes-preview__root-container',_0x32ad11['innerHTML']=_0xe9d5c6['content'],_0x1295d3['push'](_0x32ad11);}_0x18d570(this['element'],_0x1295d3),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x572003{constructor(_0x1bf712){super(_0x1bf712),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x3b70da=this['editor'],_0x339e14=_0x3b70da['locale'],_0x1d7252=_0x3b70da['plugins']['get']('Dialog');let _0x52b9d7;const _0xf4aea7=function(_0x58be44){const _0x2af387={};if('editables'in _0x58be44['ui']['view']){for(const [_0x27ff69,_0x178bc1]of Object['entries'](_0x58be44['ui']['view']['editables']))_0x2af387[_0x27ff69]=_0x178bc1['element'];}else _0x2af387[_0x58be44['model']['document']['getRootNames']()[0x0]]=_0x58be44['ui']['view']['editable']['element'];return _0x2af387;}(_0x3b70da),_0xc03e67=function(_0x10954d){let _0x3d1854=0x0;for(const _0x4655bb of Object['values'](_0x10954d))_0x3d1854=Math['max'](_0x3d1854,_0x4655bb['getBoundingClientRect']()['width']);let _0x84ea8=0x0;for(const _0x150738 of Object['values'](_0x10954d))_0x84ea8+=_0x150738['getBoundingClientRect']()['height'];const _0x572e90=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x404ca5=Math['min'](_0x84ea8,_0x572e90);return{'width':_0x3d1854,'height':_0x404ca5};}(_0xf4aea7);_0x1d7252['show']({'id':'finalContentPreview','title':o(_0x339e14,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x339e14,{'dialogRects':_0xc03e67}),'onHide':()=>{_0x52b9d7['detachFromDom']();},'onShow':()=>{_0x3b70da['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x2a5912=>{const _0x16dd79=this['_standarizeRootsData'](_0x2a5912,_0x3b70da,_0xf4aea7);_0x1d7252['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x16dd79,_0x3b70da['config']['get']('trackChanges.preview.renderFunction'));}),_0x52b9d7=new _0x2c05ec(_0x339e14,[_0x1d7252['view']]),_0x52b9d7['attachToDom'](),_0x52b9d7['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x3b70da['once']('destroy',()=>{_0x52b9d7['detachFromDom']();});const _0x1741df=_0x1d7252['view']['headerView']['class'];_0x1d7252['view']['headerView']['class']=_0x1741df?_0x1741df+'\x20ck-reset_all':'ck-reset_all',_0x1d7252['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x1d7252['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x13af92=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x22360=_0x13af92['previewMode'],_0x2777a8={};if('$labels'===_0x22360){for(const _0x16188f of _0x13af92['getMergeFieldsIds']())_0x2777a8[_0x16188f]=_0x13af92['getLabel'](_0x16188f)||_0x16188f;}else{const _0xf14ecb='$defaultValues'===_0x22360?_0x13af92['getDefaultValues']():_0x13af92['getDataSetValues'](_0x22360,!0x0);for(const _0x38c9bf of Object['entries'](_0xf14ecb)){const [_0x3d26b2,_0x1dfa48]=_0x38c9bf;_0x2777a8[_0x3d26b2]=null!==_0x1dfa48?_0x1dfa48:_0x13af92['getLabel'](_0x3d26b2)||_0x3d26b2;}}return{'mergeFieldsData':_0x2777a8};}['_standarizeRootsData'](_0x2ff6d1,_0x1ec2a6,_0x5e1ede){let _0x1048c2;if('string'==typeof _0x2ff6d1){const _0x1b40bf=_0x1ec2a6['model']['document']['getRootNames']()[0x0];_0x1048c2={[_0x1b40bf]:_0x2ff6d1};}else _0x1048c2=_0x2ff6d1;const _0x1f6bb2=this['_fixMediaEmbeds'](_0x1048c2,_0x1ec2a6),_0x107e65=function(_0x31fadf,_0x59c921){for(const [_0x416c64,_0x1a82a5]of _0x31fadf)_0x1a82a5['classes']=_0x59c921[_0x416c64]['classList']['value']['replace']('ck-focused','');return _0x31fadf;}(this['_sortRoots'](_0x1ec2a6)['reduce']((_0x3a3589,_0xa8ce48)=>(_0x3a3589['push']([_0xa8ce48,{'content':_0x1f6bb2[_0xa8ce48],'classes':''}]),_0x3a3589),[]),_0x5e1ede);return _0x107e65;}['_fixMediaEmbeds'](_0x5ddf59,_0x2ba273){if(!_0x2ba273['plugins']['has']('MediaEmbedEditing'))return _0x5ddf59;const _0x5aa7d0=_0x2ba273['plugins']['get']('MediaEmbedEditing');for(const [_0x272f28,_0x3f2fa9]of Object['entries'](_0x5ddf59)){const _0x101ec3=document['createElement']('div');_0x101ec3['innerHTML']=_0x3f2fa9,(_0x101ec3['querySelectorAll']('figure.media')['forEach'](_0x2b54c4=>{const _0x1bf20b=_0x2b54c4['querySelector']('oembed');if(_0x1bf20b){const _0x2159f7=_0x1bf20b['getAttribute']('url');if(_0x2159f7){const _0x173ed2=_0x5aa7d0['registry']['getMediaViewElement'](new _0x327f92(_0x2ba273['editing']['view']['document']),_0x2159f7,{'elementName':'','renderForEditingView':!0x0}),_0x491f79=document['createElement']('div');_0x491f79['classList']['add']('ck-media__wrapper'),_0x173ed2['render'](_0x491f79,_0x2ba273['editing']['view']['domConverter']),_0x1bf20b['replaceWith'](_0x491f79);}}}),_0x5ddf59[_0x272f28]=_0x101ec3['innerHTML']);}return _0x5ddf59;}['_sortRoots'](_0x3a249c){if(!function(_0x5d51a4){return void 0x0!==_0x5d51a4['getRootsAttributes'];}(_0x3a249c))return _0x3a249c['model']['document']['getRootNames']();const _0xdbea9e=[],_0x3f1032=new Map();for(const _0x64a7df of _0x3a249c['model']['document']['getRootNames']()){const _0x3129d8=_0x3a249c['editing']['view']['getDomRoot'](_0x64a7df)['getClientRects']()['item'](0x0);_0xdbea9e['push'](_0x64a7df),_0x3f1032['set'](_0x64a7df,_0x3129d8);}return _0xdbea9e['sort']((_0x188359,_0x556fad)=>{const _0xbe981=_0x3f1032['get'](_0x188359),_0x47af7f=_0x3f1032['get'](_0x556fad);return _0xbe981['y']-_0x47af7f['y']||_0xbe981['x']-_0x47af7f['x'];}),_0xdbea9e;}}class TrackChangesPreview extends _0xb2d1b5{static get['requires'](){return[re,_0x419992];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2ee08e){super(_0x2ee08e),_0x2ee08e['commands']['add']('previewFinalContent',new te(this['editor'])),_0x2ee08e['config']['define']('trackChanges.preview.renderFunction',(_0x1c3edb,_0x326cd2)=>{for(const _0x466131 of _0x326cd2)_0x1c3edb['appendChild'](_0x466131);});}}export{O as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,x as DiscardSuggestionCommand,M as ExecuteOnAllSuggestionsCommand,R as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,T as Suggestion,E as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,TrackChanges,B as TrackChangesCommand,re as TrackChangesData,TrackChangesDataGetter,d as TrackChangesEditing,TrackChangesPreview,u as TrackChangesUI};
|
|
23
|
+
import{Command as _0x57590b,Plugin as _0x22959f,PendingActions as _0x4f71d4}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x5ab934,ObservableMixin as _0xa24922,uid as _0x34c54d,priorities as _0x35b182,insertToPriorityArray as _0x5ca17f,logWarning as _0x91c02e,getEnvKeystrokeText as _0x5923ba,FocusTracker as _0x1db73d,KeystrokeHandler as _0x54a461,Collection as _0x358b4a}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0xbd233b,IconCancel as _0x2405cc,IconTrackChanges as _0x15c4d6}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x575e27,View as _0x581a2d,ViewCollection as _0x5caa43,FocusCycler as _0xa87013,UIModel as _0x3a99a9,createDropdown as _0x3fc811,SplitButtonView as _0x48905c,addListToDropdown as _0x5e3f8b,MenuBarMenuView as _0x2ae14c,MenuBarMenuListView as _0x1889ad,ListSeparatorView as _0x212a40,MenuBarMenuListItemView as _0x24c920,MenuBarMenuListItemButtonView as _0x3aac14,BodyCollection as _0x5c9131,Dialog as _0x355b64}from'@ckeditor/ckeditor5-ui/dist/index.js';import{SuggestionsConversion as _0x2dc7a8,Users as _0x32dac4,DocumentCompare as _0x49d3c9,fixElementSuggestionRange as _0xe1354d,hashObject as _0xa636f,splitSuggestionMarkerName as _0x2e5e45,surroundingMarkersDetector as _0x30cdc2,FOCUS_ANNOTATION_KEYSTROKE as _0xb7e07a,AriaDescriptionView as _0xece040,setupThreadKeyboardNavigation as _0xfd4b34,trimHtml as _0x2f9193,UserView as _0x50a768,LateFocusButtonView as _0x44443e,getDateTimeFormatter as _0x55c261,getAllMarkersDomElementsSorted as _0x497f67,sanitizeEditorConfig as _0x774467}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x4004c6,ModelLiveRange as _0xfc1203,ModelLivePosition as _0x30aae8,ViewDowncastWriter as _0xc50697}from'@ckeditor/ckeditor5-engine/dist/index.js';import{cloneDeep as _0x34c9e3,set as _0x596ca9,isEqual as _0x5c135e,unset as _0x19fc1a,omit as Jt}from'es-toolkit/compat';import{Delete as _0x2253c5,Input as _0x4576bf}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x3bd78d}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0xea6e8f}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x57590b{['_enabledCommands'];constructor(_0x20b194,_0x3059f8){super(_0x20b194),this['_enabledCommands']=_0x3059f8,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 _0x3af6f9 of this['editor']['commands']['commands']())_0x3af6f9['affectsData']&&!this['_enabledCommands']['has'](_0x3af6f9)&&_0x3af6f9['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x3c1380 of this['editor']['commands']['commands']())_0x3c1380['affectsData']&&!this['_enabledCommands']['has'](_0x3c1380)&&_0x3c1380['clearForceDisabled']('TrackChangesCommand');}}class O extends _0x57590b{['_suggestions'];constructor(_0x15836d,_0xe58ec0){super(_0x15836d),this['_suggestions']=_0xe58ec0,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x131527){const _0xc28611=this['_suggestions']['get'](_0x131527);if(!_0xc28611)throw new _0x5ab934('track-changes-accept-suggestion-not-found',this);const _0x481447=_0xc28611['getRanges']();this['editor']['model']['canEditAt'](_0x481447)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0xc28611);}}class x extends _0x57590b{['_suggestions'];constructor(_0xa67221,_0x231002){super(_0xa67221),this['_suggestions']=_0x231002,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3cb633){const _0x51b3c1=this['_suggestions']['get'](_0x3cb633);if(!_0x51b3c1)throw new _0x5ab934('track-changes-discard-suggestion-not-found',this);const _0xb02c08=_0x51b3c1['getRanges']();this['editor']['model']['canEditAt'](_0xb02c08)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x51b3c1);}}function ls(_0xcae4de,_0x5bb834){let _0x529779='';return _0x529779+=_0xcae4de['split']('*')['map']((_0x3f5cac,_0x38f499)=>_0x38f499%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+rn(_0x3f5cac)+'</span>':rn(_0x3f5cac))['join'](''),_0x5bb834&&(_0x529779+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x5bb834['value']+'\x22\x20title=\x22'+_0x5bb834['title']+'\x22></span>'),_0x529779;}function rn(_0x335d2a){const _0x395bf4=document['createElement']('span');return _0x395bf4['innerText']=_0x335d2a,_0x395bf4['innerHTML'];}function ts(_0xadb56d){return _0xadb56d['sort']((_0x330fe8,_0x3c1f36)=>'attribute'===_0x330fe8['type']&&'attribute'!==_0x3c1f36['type']?-0x1:'attribute'!==_0x330fe8['type']&&'attribute'===_0x3c1f36['type']?0x1:'deletion'==_0x330fe8['type']&&'deletion'!=_0x3c1f36['type']?-0x1:'deletion'!=_0x330fe8['type']&&'deletion'==_0x3c1f36['type']?0x1:0x0);}function to(_0x438e8f,_0x3b4fd0){let _0x12b958,_0x5b1ee0=0x0;const _0x7cd4be=[],_0x49a8ff=_0x3b4fd0['schema'];for(;_0x5b1ee0<_0x438e8f['length'];){const _0xa28647=_0x438e8f[_0x5b1ee0],_0xd87e69=_0x438e8f[_0x5b1ee0+0x1];_0x12b958||(_0x12b958=_0x3b4fd0['createPositionBefore'](_0xa28647)),cn(_0x3b4fd0,_0xa28647,_0xd87e69)||(_0x7cd4be['push'](_0x3b4fd0['createRange'](_0x12b958,_0x49a8ff['isObject'](_0xa28647)?_0x3b4fd0['createPositionAfter'](_0xa28647):_0x3b4fd0['createPositionAt'](_0xa28647,'end'))),_0x12b958=null),_0x5b1ee0++;}return _0x7cd4be;}function cn(_0x1ad5fd,_0x190fd1,_0x21d459){if(!_0x21d459)return!0x1;const _0x476157=_0x1ad5fd['createPositionAfter'](_0x190fd1),_0x4e4289=_0x1ad5fd['createPositionBefore'](_0x21d459);return _0x476157['isTouching'](_0x4e4289);}function rs(_0x42865f,_0x402ef6,_0x194f4d){for(;_0x194f4d['length'];){const _0x3c107f=_0x194f4d['splice'](0x0,0x64);_0x42865f['change'](()=>{for(const _0xed650c of _0x3c107f)_0xed650c['isInContent']&&_0x402ef6['execute'](_0xed650c['id']);});}}class M extends _0x57590b{['_command'];['_suggestions'];constructor(_0x213c89,_0x5dbc49,_0x246244){super(_0x213c89),this['_command']=_0x5dbc49,this['_suggestions']=_0x246244,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x414f3a=Array['from'](this['_suggestions']['values']())['some'](_0x3b6561=>_0x3b6561['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x414f3a;}['execute'](){const _0x1934f8=ts(Array['from'](this['_suggestions']['values']()));for(const _0x394177 of _0x1934f8){const _0x230728=_0x394177['getRanges']();if(!this['editor']['model']['canEditAt'](_0x230728))return;}rs(this['editor']['model'],this['_command'],_0x1934f8);}}class R extends _0x57590b{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x5895a8,_0x5b1de7,_0x342293){super(_0x5895a8),this['_command']=_0x5b1de7,this['_suggestions']=_0x342293,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x4c5522=this['editor']['model']['document']['selection'],_0x2540e1=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x43416e,_0x33f28e){const _0x508867=Array['from'](_0x43416e['getRanges']()),_0x3d22d9=new Set();for(const _0x110fdd of _0x33f28e)if(_0x110fdd['isInContent']){for(const _0x2403f6 of _0x508867)for(const _0x4d14f3 of _0x110fdd['getRanges']())(_0x2403f6['isIntersecting'](_0x4d14f3)||_0x43416e['isCollapsed']&&!_0x110fdd['isMultiRange']&&_0x110fdd['next']&&_0x4d14f3['end']['isTouching'](_0x2403f6['start']))&&_0x3d22d9['add'](_0x110fdd);}return _0x3d22d9;}(_0x4c5522,_0x2540e1),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0xfe979d=ts(Array['from'](this['_selectedSuggestions']));for(const _0x42c562 of _0xfe979d){const _0x2da8e5=_0x42c562['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2da8e5))return;}rs(this['editor']['model'],this['_command'],_0xfe979d);}}class T extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0xa24922(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x3f71d6,_0x5380ae){super(),this['id']=_0x5380ae['id'],this['type']=_0x5380ae['type'],this['subType']=_0x5380ae['subType']||null,this['author']=_0x5380ae['author'],this['creator']=_0x5380ae['creator']||_0x5380ae['author'],this['isExternal']=Boolean(_0x5380ae['attributes']&&_0x5380ae['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x5380ae['originalSuggestionId']||null,this['_model']=_0x3f71d6,this['_onAccept']=_0x5380ae['onAccept'],this['_onDiscard']=_0x5380ae['onDiscard'],this['_onAttributesChange']=_0x5380ae['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x5380ae['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 _0x225aad=this;for(;_0x225aad['previous'];)_0x225aad=_0x225aad['previous'];return _0x225aad;}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'](_0x3d06a6){this['_markerNames']['add'](_0x3d06a6);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x4472c6=>this['_model']['markers']['get'](_0x4472c6))['filter'](_0x3d379c=>_0x3d379c);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x3b574d=>{for(const _0x2b8a00 of this['getMarkers']())_0x3b574d['removeMarker'](_0x2b8a00);}),this['_markerNames']['clear']();}['removeMarker'](_0x169501){this['_model']['change'](_0x413b69=>{_0x413b69['removeMarker'](_0x169501);}),this['_markerNames']['delete'](_0x169501);}['addRange'](_0x4869bf){const _0x286ea4='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x286ea4),this['_model']['change'](_0x1470dc=>{_0x1470dc['addMarker'](_0x286ea4,{'range':_0x4869bf,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x14a1a8){for(const _0x220a62 of this['getRanges']())if(_0x220a62['isIntersecting'](_0x14a1a8))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x2aa017=>_0x2aa017['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x10824a,_0x2b8aac)=>[..._0x10824a,..._0x2b8aac['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x432956=this['getRanges']();if(0x1!=_0x432956['length'])return null;const _0x1df300=_0x432956[0x0],_0x41eb78=_0x1df300['start']['nodeAfter'],_0x2045dc=_0x1df300['end']['nodeBefore'];return _0x41eb78 instanceof _0x4004c6?_0x41eb78!=_0x2045dc?null:_0x41eb78: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 _0x27d51e=[];let _0x29191d=this['head'];for(;_0x29191d;)_0x27d51e['push'](_0x29191d),_0x29191d=_0x29191d['next'];return _0x27d51e;}['setAttribute'](_0x1129c6,_0x4389f5){const _0x186a46=_0x34c9e3(this['attributes']);_0x596ca9(_0x186a46,_0x1129c6,_0x4389f5),_0x5c135e(_0x186a46,this['attributes'])||(this['attributes']=_0x186a46,this['_onAttributesChange'](_0x186a46));}['removeAttribute'](_0x48e232){const _0x1b27ef=_0x34c9e3(this['attributes']);_0x19fc1a(_0x1b27ef,_0x48e232),_0x5c135e(_0x1b27ef,this['attributes'])||(this['attributes']=_0x1b27ef,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 _0x34c54d()['substr'](0x1,0x5);}}function o(_0x2d4caa,_0x271c82,_0x31a429){const _0x5b789c=_0x2d4caa['t'],t=_0x2d4caa['t'];switch(_0x271c82){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',_0x31a429);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x31a429);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x31a429);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x31a429);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x31a429);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',_0x31a429);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x31a429);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',_0x31a429);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x31a429);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x31a429);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x31a429);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x31a429);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x31a429);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x31a429);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x31a429);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x31a429);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x31a429);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x31a429);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x31a429);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x31a429);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x31a429);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x31a429);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x31a429);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x31a429);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x31a429);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'},_0x31a429);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x31a429);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x31a429);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x31a429);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x31a429);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x31a429);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x31a429);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x31a429);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'},_0x31a429);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x31a429);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x31a429);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x31a429);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x31a429);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_NUMBERED_LIST_ARABIC_INDIC':return t({'string':'numbered\x20list\x20(arabic-indic)','id':'ELEMENT_NUMBERED_LIST_ARABIC_INDIC'});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'},_0x31a429);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x31a429);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'},_0x31a429);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'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_TYPE':return t({'string':'table\x20cell\x20type','id':'FORMAT_TABLE_CELL_TYPE'});case'FORMAT_FOOTNOTES_LIST_STYLE':return t({'string':'footnotes\x20list\x20style','id':'FORMAT_FOOTNOTES_LIST_STYLE'});case'FORMAT_FOOTNOTES_LIST_START':return t({'string':'footnotes\x20list\x20start','id':'FORMAT_FOOTNOTES_LIST_START'});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'},_0x31a429);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x31a429);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'},_0x31a429);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x31a429);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'},_0x31a429);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x31a429);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x31a429);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x31a429);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x31a429);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x31a429);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'},_0x31a429);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x31a429);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 _0x5b789c({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x31a429);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x5b789c({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x31a429);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x31a429);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'},_0x31a429);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'},_0x31a429);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'},_0x31a429);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x271c82;}}class E{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x472eb6,_0x2e4750){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x472eb6,this['_locale']=_0x2e4750;}['getDescriptions'](_0x5b37d5){const _0x84819b=[],_0x57cd1f=new Set(),_0x3ec53b=new Set();for(let _0xa8d04d=0x0;_0xa8d04d<_0x5b37d5['length'];_0xa8d04d++){const _0x4e56ea=_0x5b37d5[_0xa8d04d];if(!_0x4e56ea['isInContent'])continue;const _0x253d1c=this['_handleCustomCallbackDescription'](_0x4e56ea);if(_0x253d1c){if(null!=_0x4e56ea['subType']){if(_0x57cd1f['has'](_0x4e56ea['subType']))continue;_0x57cd1f['add'](_0x4e56ea['subType']);}_0x84819b['push'](_0x253d1c);}else{if('attribute'==_0x4e56ea['type']){const _0x33b55d=_0x4e56ea['data']['key'];if(_0x3ec53b['has'](_0x33b55d))continue;_0x3ec53b['add'](_0x4e56ea['data']['key']),_0x33b55d==m?this['_handleRenameSuggestionDescription'](_0x84819b,_0x4e56ea):this['_handleAttributeSuggestionDescription'](_0x84819b,_0x4e56ea);continue;}'insertion'!=_0x4e56ea['type']&&'deletion'!=_0x4e56ea['type']||this['_handleInsertRemoveSuggestionDescription'](_0x84819b,_0x4e56ea,_0x5b37d5[_0xa8d04d+0x1]);}}return this['_resolveDescriptionItems'](_0x84819b);}['registerDescriptionCallback'](_0x5b6eca){this['_customCallbacks']['push'](_0x5b6eca);}['registerElementLabel'](_0x36d5d6,_0x33cd2d,_0x83506=_0x35b182['normal']){'function'==typeof _0x36d5d6?_0x5ca17f(this['_itemLabelsCallbacks'],{'matchingCallback':_0x36d5d6,'label':_0x33cd2d,'priority':_0x83506}):this['_itemLabels']['set'](_0x36d5d6,_0x33cd2d);}['registerAttributeLabel'](_0x13974a,_0x3f04d1){this['_attributeLabels']['set'](_0x13974a,_0x3f04d1);}['getItemLabel'](_0x30d0a6,_0x1731ff=0x1){let _0x3b65a8;for(const _0x18ae65 of this['_itemLabelsCallbacks'])if(_0x18ae65['matchingCallback'](_0x30d0a6)){_0x3b65a8=_0x18ae65['label'];break;}return _0x3b65a8||(_0x3b65a8=this['_itemLabels']['get'](_0x30d0a6['name'])),_0x3b65a8?_0x3b65a8(_0x1731ff):0x1!==_0x1731ff?_0x1731ff+'\x20'+_0x30d0a6['name']+'s':''+_0x30d0a6['name'];}['_addDescriptionItems'](_0x2c705b,_0x4721b9){const _0x3a3f06=_0x4721b9['getFirstRange']()['getWalker'](),_0x330eb5='insertion'==_0x4721b9['type']?'add':'remove';for(const _0x2c2cbf of _0x3a3f06){const _0x8d5510=_0x2c2cbf['item'],_0x48e7aa=_0x2c705b[_0x2c705b['length']-0x1];if(_0x8d5510['is']('$textProxy'))_0x48e7aa&&_0x48e7aa['type']['indexOf']('Container')>-0x1&&_0x2c705b['pop'](),_0x48e7aa&&'text'==_0x48e7aa['type']?_0x48e7aa[_0x330eb5]+=_0x8d5510['data']:_0x2c705b['push']({'type':'text','add':'add'==_0x330eb5?_0x8d5510['data']:'','remove':'remove'==_0x330eb5?_0x8d5510['data']:''});else{if(this['_schema']['isObject'](_0x8d5510)){const _0x3d7a31=_0x8d5510;if(_0x48e7aa&&_0x48e7aa['type']['indexOf']('Container')>-0x1&&_0x2c705b['pop'](),'elementEnd'==_0x2c2cbf['type'])continue;_0x48e7aa&&_0x48e7aa['type']==_0x330eb5+'Object'&&_0x48e7aa['element']['name']==_0x3d7a31['name']?_0x48e7aa['quantity']++:_0x2c705b['push']({'type':_0x330eb5+'Object','element':_0x3d7a31,'quantity':0x1}),_0x3a3f06['skip'](_0x2f144a=>!('elementEnd'==_0x2f144a['type']&&_0x2f144a['item']==_0x8d5510));}else{if(this['_schema']['checkChild'](_0x8d5510,'$text')||_0x8d5510['is']('element','softBreak')){const _0x5ad589=_0x8d5510;if('add'==_0x330eb5&&'elementStart'==_0x2c2cbf['type']||'remove'==_0x330eb5&&'elementEnd'==_0x2c2cbf['type'])continue;if(_0x48e7aa&&-0x1==_0x48e7aa['type']['indexOf']('Container')){'text'==_0x48e7aa['type']&&(_0x48e7aa[_0x330eb5]+='\x0a');continue;}let _0x1c1dd2;if(_0x1c1dd2='add'==_0x330eb5?_0x5ad589['nextSibling']&&!this['_schema']['isObject'](_0x5ad589['nextSibling'])?_0x5ad589['nextSibling']:null:_0x5ad589['previousSibling']&&!this['_schema']['isObject'](_0x5ad589['previousSibling'])?_0x5ad589['previousSibling']:null,_0x5ad589['isEmpty']||_0x1c1dd2&&_0x1c1dd2['isEmpty']){const _0x20e149=_0x1c1dd2&&_0x1c1dd2['isEmpty']?_0x1c1dd2:_0x5ad589;_0x48e7aa&&_0x48e7aa['type']==_0x330eb5+'EmptyContainer'&&_0x48e7aa['element']['name']==_0x20e149['name']?_0x48e7aa['quantity']++:_0x2c705b['push']({'type':_0x330eb5+'EmptyContainer','element':_0x20e149,'quantity':0x1});}else _0x2c705b['push']({'type':_0x330eb5+'Container','element':_0x5ad589});}}}}}['_resolveDescriptionItems'](_0x1ae22b){const _0x4920d2=this['_locale'],_0x343975=[],_0xe2736f=[],_0x42f963=[];for(const _0x308dca of _0x1ae22b)switch(_0x308dca['type']){case'text':if(_0x308dca['add']=_0x308dca['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x308dca['remove']=_0x308dca['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x308dca['add']&&''!=_0x308dca['remove']){_0x343975['push']({'type':'replace','content':o(_0x4920d2,'REPLACE_TEXT',['\x22'+_0x308dca['remove']+'\x22','\x22'+_0x308dca['add']+'\x22'])});continue;}if(null!=_0x308dca['add']['match'](/^ +$/)){_0x343975['push']({'type':'insertion','content':o(_0x4920d2,'*Insert:*\x20%0',o(_0x4920d2,'ELEMENT_SPACE',_0x308dca['add']['length']))});continue;}if(null!=_0x308dca['remove']['match'](/^ +$/)){_0x343975['push']({'type':'deletion','content':o(_0x4920d2,'*Remove:*\x20%0',o(_0x4920d2,'ELEMENT_SPACE',_0x308dca['remove']['length']))});continue;}if(''!=_0x308dca['add']){_0x343975['push']({'type':'insertion','content':o(_0x4920d2,'*Insert:*\x20%0','\x22'+_0x308dca['add']+'\x22')});continue;}_0x343975['push']({'type':'deletion','content':o(_0x4920d2,'*Remove:*\x20%0','\x22'+_0x308dca['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x343975['push']({'type':'insertion','content':o(_0x4920d2,'*Insert:*\x20%0',this['getItemLabel'](_0x308dca['element'],_0x308dca['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x343975['push']({'type':'deletion','content':o(_0x4920d2,'*Remove:*\x20%0',this['getItemLabel'](_0x308dca['element'],_0x308dca['quantity']))});continue;case'addContainer':_0x343975['push']({'type':'insertion','content':o(_0x4920d2,'*Split:*\x20%0',this['getItemLabel'](_0x308dca['element'],_0x308dca['quantity']))});continue;case'removeContainer':_0x343975['push']({'type':'deletion','content':o(_0x4920d2,'*Merge:*\x20%0',this['getItemLabel'](_0x308dca['element'],_0x308dca['quantity']))});continue;case'addFormat':_0xe2736f['push'](_0x308dca['key']);continue;case'removeFormat':_0x42f963['push'](_0x308dca['key']);continue;default:_0x343975['push'](_0x308dca);}if(_0xe2736f['length']){const _0x2acc17=_0xe2736f['map'](_0x1b06d9=>this['_attributeLabels']['has'](_0x1b06d9)?this['_attributeLabels']['get'](_0x1b06d9):_0x1b06d9)['join'](',\x20');_0x343975['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x2acc17)});}if(_0x42f963['length']){const _0x441e90=_0x42f963['map'](_0x1e9493=>this['_attributeLabels']['has'](_0x1e9493)?this['_attributeLabels']['get'](_0x1e9493):_0x1e9493)['join'](',\x20');_0x343975['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x441e90)});}return _0x343975;}['_handleCustomCallbackDescription'](_0x8f2bd1){for(const _0x3b6b2f of this['_customCallbacks']){const _0xf3b52c=_0x3b6b2f(_0x8f2bd1);if(_0xf3b52c&&'type'in _0xf3b52c)return _0xf3b52c;}}['_handleAttributeSuggestionDescription'](_0x4f52bd,_0x3c5036){const _0x3a0629=_0x3c5036['data'],_0x46ec12=void 0x0===_0x3a0629['newValue']?'removeFormat':'addFormat';_0x4f52bd['push']({'type':_0x46ec12,'key':_0x3a0629['key']});}['_handleRenameSuggestionDescription'](_0x375271,_0x533d05){_0x375271['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x533d05['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0xef74d4,_0x4b91be,_0x49f8c1){if(this['_addDescriptionItems'](_0xef74d4,_0x4b91be),_0x49f8c1&&_0x49f8c1['getFirstRange']()&&!_0x4b91be['getFirstRange']()['end']['isEqual'](_0x49f8c1['getFirstRange']()['start'])){const _0x5014ad=_0xef74d4[_0xef74d4['length']-0x1],_0x4d24a5='insertion'==_0x4b91be['type']?'add':'remove';_0x5014ad&&'text'==_0x5014ad['type']&&(_0x5014ad[_0x4d24a5]+='\x0a');}}}class U extends _0x22959f{['afterInit'](){const _0x14b59c=this['editor'],_0x35c044=_0x14b59c['plugins']['get']('TrackChangesEditing');_0x14b59c['commands']['get']('showAIAssistant')&&_0x35c044['enableCommand']('showAIAssistant');}}class V extends _0x22959f{['afterInit'](){const _0x18dd03=this['editor'],_0x20e334=_0x18dd03['plugins']['get']('TrackChangesEditing');_0x18dd03['commands']['get']('toggleAi')&&_0x20e334['enableCommand']('toggleAi');}}class F extends _0x22959f{['afterInit'](){const _0x21788b=this['editor'],_0x165c10=_0x21788b['plugins']['get']('TrackChangesEditing');_0x21788b['commands']['get']('aiQuickAction')&&_0x165c10['enableCommand']('aiQuickAction');}}class G extends _0x22959f{['afterInit'](){const _0x35bf89=this['editor'],_0x3bf462=_0x35bf89['locale'];if(!_0x35bf89['plugins']['has']('AlignmentEditing'))return;const _0x28d05a=_0x35bf89['plugins']['get']('TrackChangesEditing');_0x28d05a['enableDefaultAttributesIntegration']('alignment'),_0x28d05a['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x3bf462,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3f14c0=this['editor'],_0x2a2f4a=_0x3f14c0['locale'];_0x3f14c0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x19e7b5=>{if('formatBlock'!=_0x19e7b5['type'])return;const {data:_0x377a4f}=_0x19e7b5;if(_0x377a4f&&'alignment'==_0x377a4f['commandName']){const _0x401d92=_0x377a4f['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x2a2f4a,'*Format:*\x20%0',function(_0x471e21){switch(_0x471e21){case'left':return o(_0x2a2f4a,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x2a2f4a,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x2a2f4a,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x2a2f4a,'FORMAT_JUSTIFY_TEXT');}}(_0x401d92))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class L extends _0x22959f{['afterInit'](){const _0x46d986=this['editor'],_0xad41a4=_0x46d986['plugins']['get']('TrackChangesEditing'),_0x1d3ca8=_0x46d986['locale'];for(const _0x3c4a8e of ti){if(!_0x46d986['plugins']['has'](_0x3c4a8e))continue;const _0x4029be=_0x3c4a8e['slice'](0x0,-0x7)['toLowerCase'](),_0xa2935a='FORMAT_'+_0x4029be['toUpperCase']();_0xad41a4['enableDefaultAttributesIntegration'](_0x4029be),_0xad41a4['descriptionFactory']['registerAttributeLabel'](_0x4029be,o(_0x1d3ca8,_0xa2935a));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x9067b0=this['editor'],_0x1e7dae=_0x9067b0['locale'],_0x5cdd77=_0x9067b0['plugins']['get']('TrackChangesEditing');function _0x480216(_0xa4f5f6,_0x1904f2){_0x5cdd77['descriptionFactory']['registerDescriptionCallback'](_0x44d0d2=>{if('formatInline'!=_0x44d0d2['type'])return;const {data:_0x15d4fe}=_0x44d0d2;return _0x15d4fe&&_0x15d4fe['commandName']===_0xa4f5f6?_0x15d4fe['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1e7dae,'*Format:*\x20%0',_0x1904f2)}:{'type':'format','content':o(_0x1e7dae,'*Remove\x20format:*\x20%0',_0x1904f2)}:void 0x0;});}_0x480216('bold',o(_0x1e7dae,'FORMAT_BOLD')),_0x480216('italic',o(_0x1e7dae,'FORMAT_ITALIC')),_0x480216('underline',o(_0x1e7dae,'FORMAT_UNDERLINE')),_0x480216('code',o(_0x1e7dae,'FORMAT_CODE')),_0x480216('strikethrough',o(_0x1e7dae,'FORMAT_STRIKETHROUGH')),_0x480216('subscript',o(_0x1e7dae,'FORMAT_SUBSCRIPT')),_0x480216('superscript',o(_0x1e7dae,'FORMAT_SUPERSCRIPT'));}}class J extends _0x22959f{['afterInit'](){const _0xfb9d2f=this['editor'],_0x5e6efd=_0xfb9d2f['locale'];if(!_0xfb9d2f['plugins']['has']('BlockQuoteEditing'))return;const _0x502498=_0xfb9d2f['plugins']['get']('TrackChangesEditing'),_0x52513c=this['editor']['commands']['get']('blockQuote');_0x502498['enableCommand']('blockQuote',(_0x53a929,_0x1295ae={})=>{const _0x406808=this['editor']['model']['document']['selection'],_0x495991=_0x1295ae&&void 0x0!==_0x1295ae['forceValue']?_0x1295ae['forceValue']:!_0x52513c['value'];let _0x449840=[];if(_0x495991){const _0x526d71=Array['from'](_0x406808['getSelectedBlocks']())['filter'](_0x9cfd95=>oo(_0x9cfd95)||function(_0x8b0937,_0x3a4f19){const _0x5bef08=_0x3a4f19['checkChild'](_0x8b0937['parent'],'blockQuote'),_0x3a50ee=_0x3a4f19['checkChild'](['$root','blockQuote'],_0x8b0937);return _0x5bef08&&_0x3a50ee;}(_0x9cfd95,this['editor']['model']['schema']));_0x449840=to(_0x526d71,_0xfb9d2f['model']);}else{const _0x4623fa=Array['from'](_0x406808['getSelectedBlocks']())['filter'](_0x24a3cc=>oo(_0x24a3cc));_0x449840=to(_0x4623fa,_0xfb9d2f['model']);}_0xfb9d2f['model']['change'](()=>{for(const _0x3789b3 of _0x449840)_0x502498['markBlockFormat'](_0x3789b3,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x495991}]});});}),_0x502498['descriptionFactory']['registerDescriptionCallback'](_0x59590c=>{const {data:_0x2a92b2}=_0x59590c;if(_0x2a92b2&&'blockQuote'==_0x2a92b2['commandName']){const _0x4ed399=o(_0x5e6efd,'ELEMENT_BLOCK_QUOTE');return _0x2a92b2['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5e6efd,'*Set\x20format:*\x20%0',_0x4ed399)}:{'type':'format','content':o(_0x5e6efd,'*Remove\x20format:*\x20%0',_0x4ed399)};}});}}function oo(_0x2e4fd6){return'blockQuote'==_0x2e4fd6['parent']['name'];}class q extends _0x22959f{['afterInit'](){const _0x1b8d63=this['editor'],_0x766d09=_0x1b8d63['locale'],_0x4c7a09=_0x1b8d63['plugins']['get']('TrackChangesEditing');_0x1b8d63['plugins']['has']('BookmarkEditing')&&(_0x4c7a09['enableCommand']('insertBookmark'),_0x4c7a09['enableDefaultAttributesIntegration']('updateBookmark'),_0x4c7a09['descriptionFactory']['registerDescriptionCallback'](_0x1049f3=>{if('insertion'!=_0x1049f3['type']&&'deletion'!=_0x1049f3['type']&&'attribute'!=_0x1049f3['type'])return;const _0x5c3cb1=_0x1049f3['getContainedElement']();if(null==_0x5c3cb1)return;if(!_0x5c3cb1['is']('element','bookmark'))return;const _0x3ae389=_0x5c3cb1['getAttribute']('bookmarkId');if('insertion'==_0x1049f3['type'])return{'type':'insertion','content':o(_0x766d09,'*Insert:*\x20%0','\x22'+_0x3ae389+'\x22\x20'+o(_0x766d09,'ELEMENT_BOOKMARK'))};if('deletion'==_0x1049f3['type'])return{'type':'deletion','content':o(_0x766d09,'*Remove:*\x20%0','\x22'+_0x3ae389+'\x22\x20'+o(_0x766d09,'ELEMENT_BOOKMARK'))};const {data:_0x126cdf}=_0x1049f3;if(!_0x126cdf||'bookmarkId'!=_0x126cdf['key'])return;return{'type':'format','content':o(_0x766d09,'*Set\x20bookmark:*\x20%0','\x22'+_0x126cdf['newValue']+'\x22')};}));}}class z extends _0x22959f{['afterInit'](){const _0x269031=this['editor'];_0x269031['plugins']['has']('CaseChange')&&(_0x269031['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x269031['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x269031['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x22959f{['afterInit'](){const _0x24256e=this['editor'];_0x24256e['commands']['get']('ckbox')&&_0x24256e['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class W extends _0x22959f{['afterInit'](){const _0x5649b0=this['editor'];if(!_0x5649b0['plugins']['has']('CodeBlock'))return;const _0x1cff02=_0x5649b0['plugins']['get']('TrackChangesEditing'),_0x222320=_0x5649b0['locale'],_0x265a77=_0x5649b0['config']['get']('codeBlock')['languages'],_0x445990=_0x5649b0['commands']['get']('codeBlock');_0x1cff02['enableCommand']('indentCodeBlock'),_0x1cff02['enableCommand']('outdentCodeBlock'),_0x1cff02['enableCommand']('codeBlock',(_0x583fc2,_0x3b14ce={})=>{const _0x4d9288=_0x5649b0['model'],_0x372adb=_0x5649b0['model']['document']['selection'],_0x339dff=_0x3b14ce&&void 0x0!==_0x3b14ce['forceValue']?_0x3b14ce['forceValue']:!_0x445990['value'];let _0x21e976;_0x3b14ce['language']||(_0x3b14ce['language']=_0x265a77[0x0]['language']),_0x21e976=_0x339dff?Array['from'](_0x372adb['getSelectedBlocks']())['filter'](_0x5b9527=>co(_0x5b9527)||function(_0x2c4163,_0x5070ed){if(_0x2c4163['is']('rootElement')||_0x5070ed['isLimit'](_0x2c4163))return!0x1;return _0x5070ed['checkChild'](_0x2c4163['parent'],'codeBlock');}(_0x5b9527,_0x4d9288['schema'])):Array['from'](_0x372adb['getSelectedBlocks']())['filter'](_0x209ac7=>co(_0x209ac7));const _0xf6e076=to(_0x21e976,_0x4d9288);_0x4d9288['change'](()=>{for(const _0x282a53 of _0xf6e076)_0x1cff02['markBlockFormat'](_0x282a53,{'commandName':'codeBlock','commandParams':[{..._0x3b14ce,'forceValue':_0x339dff}],'formatGroupId':'blockName'});});}),(_0x1cff02['descriptionFactory']['registerElementLabel']('codeBlock',_0x117be9=>o(_0x222320,'ELEMENT_CODE_BLOCK',_0x117be9)),_0x1cff02['descriptionFactory']['registerDescriptionCallback'](_0x2fefac=>{if('formatBlock'!=_0x2fefac['type'])return;const _0x41972e=_0x222320['t'],{data:_0x4bc15a}=_0x2fefac;if(!_0x4bc15a||'codeBlock'!=_0x4bc15a['commandName'])return;const _0x418eb4=_0x4bc15a['commandParams'][0x0]['language'],_0xb094c5=_0x41972e(_0x265a77['find'](_0xefb46f=>_0xefb46f['language']===_0x418eb4)['label'])['toLowerCase']();return _0x4bc15a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x222320,'*Set\x20format:*\x20%0',o(_0x222320,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0xb094c5+')')}:{'type':'format','content':o(_0x222320,'*Remove\x20format:*\x20%0',o(_0x222320,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x325f70){return'codeBlock'==_0x325f70['name'];}class H extends _0x22959f{['afterInit'](){const _0x58291a=this['editor'];if(!_0x58291a['plugins']['has']('CommentsEditing'))return;_0x58291a['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class Q extends _0x22959f{static get['requires'](){return[_0x2253c5];}['init'](){const _0x423c73=this['editor'],_0x303477=_0x423c73['plugins']['get']('TrackChangesEditing');_0x303477['enableCommand']('delete');const _0x267232=_0x423c73['commands']['get']('deleteForward');_0x303477['enableCommand']('deleteForward',(_0xf1cffe,_0x340a62={})=>{const _0x19d8b9=_0x423c73['model']['createSelection'](_0x423c73['model']['document']['selection']);_0x19d8b9['isCollapsed']&&_0x423c73['model']['modifySelection'](_0x19d8b9,{'direction':'forward','unit':_0x340a62['unit']});const _0x4ff7c4=_0x19d8b9['getFirstRange'](),_0x3bd75e=_0xfc1203['fromRange'](_0x4ff7c4);let _0x14ace8;_0xf1cffe(_0x340a62),_0x14ace8='$graveyard'==_0x3bd75e['root']['rootName']?_0x423c73['model']['createRange'](_0x4ff7c4['start']):_0x423c73['model']['createRange'](_0x3bd75e['start'],_0x3bd75e['end']),_0x3bd75e['detach'](),_0x423c73['model']['enqueueChange'](_0x267232['buffer']['batch'],_0x7cc941=>{_0x267232['buffer']['lock'](),_0x7cc941['setSelection'](_0x7cc941['createRange'](_0x14ace8['end'])),_0x267232['buffer']['unlock']();});});}}class X extends _0x22959f{['afterInit'](){const _0x5ca763=this['editor'];if(!_0x5ca763['plugins']['has']('ListEditing'))return;const _0x42c2d1=_0x5ca763['locale'],_0x517718=_0x5ca763['plugins']['get']('TrackChangesEditing'),_0x376033=_0x5ca763['plugins']['has']('TodoListEditing'),_0x56d3ad=!!_0x5ca763['config']['get']('list.multiBlock');function _0x250ed6(_0x437811){return{'type':'format','content':''+o(_0x42c2d1,'*Set\x20format:*\x20%0',_0x437811)};}function _0x3241ce(_0x19c715){return{'type':'format','content':''+o(_0x42c2d1,'*Remove\x20format:*\x20%0',_0x19c715)};}_0x517718['enableDefaultAttributesIntegration']('numberedList'),_0x517718['enableDefaultAttributesIntegration']('bulletedList'),_0x517718['enableDefaultAttributesIntegration']('customNumberedList'),_0x517718['enableDefaultAttributesIntegration']('customBulletedList'),_0x517718['enableDefaultAttributesIntegration']('indentList'),_0x517718['enableDefaultAttributesIntegration']('outdentList'),_0x517718['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x517718['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x56d3ad&&(_0x517718['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x517718['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x376033&&(_0x517718['enableDefaultAttributesIntegration']('todoList'),_0x517718['enableDefaultAttributesIntegration']('checkTodoList'),_0x517718['descriptionFactory']['registerDescriptionCallback'](_0x275d0c=>{const {data:_0xd4ea77}=_0x275d0c;if(_0xd4ea77&&'todoListChecked'==_0xd4ea77['key'])return{'type':'format','content':_0xd4ea77['newValue']?o(_0x42c2d1,'*Check\x20item*'):o(_0x42c2d1,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x375f02=>{if(_0x375f02['batch']['isUndo'])return!0x1;let _0x535213=!0x1;const _0x3981e4=_0x517718['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x28ebb1=>'todoListChecked'===_0x517718['_getAttributeKey'](_0x28ebb1));for(const _0x94fbac of _0x3981e4){'todo'!=_0x94fbac['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x517718['_findSuggestions'](_0x94fbac['getFirstRange'](),'attribute')['find'](_0x2a5bbc=>'listType'===_0x517718['_getAttributeKey'](_0x2a5bbc['suggestion']))||(_0x375f02['removeMarker'](_0x94fbac['getFirstMarker']()),_0x535213=!0x0));}return _0x535213;})),_0x517718['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x42c2d1,'FORMAT_INDENT'));const _0x360144={'type':'format','content':''};_0x517718['descriptionFactory']['registerDescriptionCallback'](_0x4f4f9f=>{const {data:_0x404f01}=_0x4f4f9f;if(!_0x404f01||'listType'!=_0x404f01['key'])return;let _0x1ab9b5=_0x4f4f9f['head'];for(;_0x1ab9b5;){if(_0x1ab9b5['data']&&(('listStyle'==_0x1ab9b5['data']['key']||'listMarkerStyle'==_0x1ab9b5['data']['key'])&&(_0x1ab9b5['data']['newValue']&&'default'!=_0x1ab9b5['data']['newValue']||'default'!=_0x1ab9b5['data']['oldValue']&&!_0x404f01['newValue'])||!_0x56d3ad&&_0x1ab9b5['data']['key']==m))return _0x360144;_0x1ab9b5=_0x1ab9b5['next'];}if(null==_0x404f01['newValue'])switch(_0x404f01['oldValue']){case'bulleted':return _0x3241ce(o(_0x42c2d1,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3241ce(o(_0x42c2d1,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3241ce(o(_0x42c2d1,'ELEMENT_TODO_LIST'));}switch(_0x404f01['newValue']){case'bulleted':return _0x250ed6(o(_0x42c2d1,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x250ed6(o(_0x42c2d1,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x250ed6(o(_0x42c2d1,'ELEMENT_TODO_LIST'));}}),_0x517718['descriptionFactory']['registerDescriptionCallback'](_0x2c99fa=>{const {data:_0x28c132}=_0x2c99fa;if(_0x28c132&&'listIndent'==_0x28c132['key'])return null==_0x28c132['newValue']||null==_0x28c132['oldValue']&&0x0==_0x28c132['newValue']?_0x360144:void 0x0;}),_0x517718['descriptionFactory']['registerDescriptionCallback'](_0x59842d=>{if('attribute'!=_0x59842d['type'])return;const {data:_0x11aa08}=_0x59842d;if(!_0x11aa08||'listItemId'!=_0x11aa08['key'])return;const _0x282c28=Te(_0x59842d);return'newValue'==_0x282c28?{'type':'format','content':o(_0x42c2d1,'*Merge:*\x20list\x20item')}:'oldValue'==_0x282c28?{'type':'format','content':o(_0x42c2d1,'*Split:*\x20list\x20item')}:_0x360144;}),_0x5ca763['model']['document']['registerPostFixer'](_0x238d79=>this['listItemIdFixer'](_0x238d79)),_0x5ca763['model']['document']['registerPostFixer'](_0x44c2be=>this['noTrackChangesFixer'](_0x44c2be)),_0x5ca763['model']['document']['on']('change:data',(_0x5aa829,_0x306e9d)=>{if(_0x306e9d['isUndo']||!_0x306e9d['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x5dfaf3){if(_0x5dfaf3['batch']['isUndo']||!_0x5dfaf3['batch']['isLocal'])return!0x1;let _0x144c7b=!0x1;const _0x5eb95d=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x494b5b=>_0x494b5b['data']&&'listItemId'==_0x494b5b['data']['key'])['filter'](_0xaebb56=>_0xaebb56['data']['newValue']&&_0xaebb56['data']['oldValue']);for(const _0xf2f4f6 of _0x5eb95d)Te(_0xf2f4f6)||(_0x5dfaf3['removeMarker'](_0xf2f4f6['getFirstMarker']()),_0x144c7b=!0x0);return _0x144c7b;}['noTrackChangesFixer'](_0x301e65){if(_0x301e65['batch']['isUndo']||!_0x301e65['batch']['isLocal'])return!0x1;const _0x4240bb=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x4240bb['trackChangesCommand']['value'])return!0x1;let _0x43f52f=!0x1;const _0x16f7c6=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x517293=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x3688bc=>'attribute'==_0x3688bc['type'])['filter'](_0x69f8e5=>_0x16f7c6['includes'](_0x69f8e5['attributeKey']));if(0x0==_0x517293['length'])return _0x43f52f;for(const _0x274cd0 of _0x517293){const _0x36d571=_0x4240bb['_findSuggestions'](_0x274cd0['range'],'attribute')['filter'](_0x3fcdb4=>!_0x3fcdb4['meta']['isNextTo'])['map'](_0xacfc23=>_0xacfc23['suggestion'])['filter'](_0x271ce1=>{const _0x1a23f0=_0x4240bb['_getAttributeKey'](_0x271ce1);return _0x16f7c6['includes'](_0x1a23f0);});if(_0x36d571['length']){for(const _0x3e67ee of _0x36d571)_0x301e65['removeMarker'](_0x3e67ee['getFirstMarker']());_0x43f52f=!0x0;}}return _0x43f52f;}['assureChains'](){const _0x43fd65=this['editor']['plugins']['get']('TrackChangesEditing'),_0x41f318=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x6d7ec6;const _0x473a81=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x10d159=>{if(_0x10d159['data']['oldRange']||!_0x10d159['data']['newRange'])return null;if(!_0x10d159['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x6aff16}=_0x43fd65['_splitMarkerName'](_0x10d159['name']);if(!_0x43fd65['hasSuggestion'](_0x6aff16))return null;const _0x421c59=_0x43fd65['getSuggestion'](_0x6aff16);return _0x41f318['includes'](_0x421c59['data']['key']);})['map'](_0x3df219=>{const {id:_0x4f96be}=_0x43fd65['_splitMarkerName'](_0x3df219['name']),_0x3ba098=_0x43fd65['getSuggestion'](_0x4f96be);return _0x6d7ec6=_0x3ba098['attributes']['groupId'],_0x3ba098['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x473a81['size'])return;const _0x4b84f9=_0x43fd65['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4e6c41=>'attribute'==_0x4e6c41['type']&&_0x4e6c41['data']&&_0x41f318['includes'](_0x4e6c41['data']['key'])&&_0x4e6c41['attributes']['groupId']!=_0x6d7ec6)['map'](_0xdb443d=>({'listItem':_0xdb443d['getFirstRange']()['start']['nodeAfter'],'groupId':_0xdb443d['attributes']['groupId']})),_0x54f174=new Set();for(const {groupId:_0x56a85a,listItem:_0x367f7f}of _0x4b84f9)_0x473a81['has'](_0x367f7f)&&_0x54f174['add'](_0x56a85a);for(const _0xf29696 of _0x43fd65['getSuggestions']())_0x54f174['has'](_0xf29696['attributes']['groupId'])&&_0xf29696['setAttribute']('groupId',_0x6d7ec6);}['_supportLegacySuggestions'](){const _0x2e0d8c=this['editor'],_0x1ae53c=_0x2e0d8c['locale'],_0x44683e=_0x2e0d8c['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x44683e['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x262e51,_0x3a66b4){const _0x388f34=[];for(let _0x5e83e9 of _0x262e51)_0x5e83e9['start']['nodeAfter']===_0x5e83e9['end']['parent']&&(_0x5e83e9=_0x2e0d8c['model']['createRange'](_0x2e0d8c['model']['createPositionAt'](_0x5e83e9['start']['nodeAfter'],0x0))),_0x388f34['push'](_0x5e83e9);_0x2e0d8c['model']['change'](_0xc134a2=>{const _0x15da0d=_0x2e0d8c['model']['document']['selection'],_0x1dc559=Array['from'](_0x15da0d['getRanges']())['map'](_0x1c710f=>_0xfc1203['fromRange'](_0x1c710f));_0xc134a2['setSelection'](_0x388f34),_0x2e0d8c['commands']['get'](_0x3a66b4['commandName'])['refresh'](),_0x3a66b4['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x2e0d8c['execute'](_0x3a66b4['commandName'],..._0x3a66b4['commandParams']),_0xc134a2['setSelection'](_0x1dc559);for(const _0x19fdfb of _0x1dc559)_0x19fdfb['detach']();});}),_0x44683e['descriptionFactory']['registerElementLabel'](function(_0x4efb60){const _0x5caab9=!_0x2e0d8c['model']['schema']['isObject'](_0x4efb60),_0x28c895=_0x4efb60['previousSibling'],_0x380885=_0x4efb60['nextSibling'],_0x52934f=_0x4efb60['getAttribute']('listItemId'),_0x403f8e=!_0x28c895||_0x28c895['getAttribute']('listItemId')!==_0x52934f,_0x2b17e5=!_0x380885||_0x380885['getAttribute']('listItemId')!==_0x52934f;return _0x5caab9&&Boolean(_0x52934f)&&_0x403f8e&&_0x2b17e5;},_0x1c447a=>o(_0x1ae53c,'ELEMENT_LIST_ITEM',_0x1c447a));}['_registerLegacyDescription'](){const _0x58d4f1=this['editor'],_0x5dad5d=_0x58d4f1['locale'];function _0x3f3539(_0x3df6ce){const _0x4fb310=_0x58d4f1['commands']['get']('bulletedList')['value'],_0x1f1054=_0x58d4f1['commands']['get']('numberedList')['value'];return'numberedList'===_0x3df6ce?_0x4fb310:_0x1f1054;}_0x58d4f1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x6506b1){if('formatBlock'!=_0x6506b1['type'])return;const {data:_0x560502}=_0x6506b1;if(!_0x560502)return;let _0x5e1fcd,_0x1a733a,_0x2ab325,_0x2b2073;switch(_0x560502['commandName']){case'bulletedList':_0x2ab325=_0x560502['commandParams'][0x0]['forceValue'],_0x2b2073=_0x3f3539(_0x560502['commandName']),_0x5e1fcd=_0x2ab325?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2b2073&&_0x58d4f1['config']['get']('list.multiBlock')||(_0x5e1fcd='*Change\x20to:*\x20%0'),_0x1a733a={'type':'format','content':o(_0x5dad5d,_0x5e1fcd,o(_0x5dad5d,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x2ab325=_0x560502['commandParams'][0x0]['forceValue'],_0x2b2073=_0x3f3539(_0x560502['commandName']),_0x5e1fcd=_0x2ab325?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2b2073&&_0x58d4f1['config']['get']('list.multiBlock')||(_0x5e1fcd='*Change\x20to:*\x20%0'),_0x1a733a={'type':'format','content':o(_0x5dad5d,_0x5e1fcd,o(_0x5dad5d,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x5e1fcd='*Indent:*\x20%0',_0x1a733a={'type':'format','content':o(_0x5dad5d,_0x5e1fcd,o(_0x5dad5d,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x5e1fcd=function(_0x31a87d){const _0xcae84b=_0x31a87d['getFirstRange']();let _0x4acf43=_0xcae84b['start']['nodeAfter'];for(;_0x4acf43&&_0xcae84b['containsItem'](_0x4acf43);){if(_0x4acf43['getAttribute']('listIndent')>0x0)return!0x1;_0x4acf43=_0x4acf43['nextSibling'];}return!0x0;}(_0x6506b1)?o(_0x5dad5d,'*Format:*\x20remove\x20from\x20%0',o(_0x5dad5d,function(_0x1b98ff){return'ELEMENT_'+_0x1b98ff['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x6506b1))):o(_0x5dad5d,'*Outdent:*\x20%0',o(_0x5dad5d,'ELEMENT_LIST_ITEM')),_0x1a733a={'type':'format','content':_0x5e1fcd};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x560502['multipleBlocks']&&(_0x5e1fcd='*Merge:*\x20%0',_0x1a733a={'type':'deletion','content':o(_0x5dad5d,_0x5e1fcd,o(_0x5dad5d,'ELEMENT_LIST_ITEM'))});}return _0x1a733a;});}}function Te(_0x3a28f1){let _0x7adbc4=_0x3a28f1['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x7adbc4;){const _0x47f1f2=_0x7adbc4['getAttribute']('listItemId');if(!_0x47f1f2)return!0x1;if(_0x47f1f2==_0x3a28f1['data']['newValue'])return'newValue';if(_0x47f1f2==_0x3a28f1['data']['oldValue'])return'oldValue';_0x7adbc4=_0x7adbc4['previousSibling'];}return!0x1;}class Y extends _0x22959f{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x1ad7c7=this['editor']['config']['get']('list.properties'),_0x2e7121=this['editor']['plugins']['get']('TrackChangesEditing');_0x1ad7c7['styles']&&_0x2e7121['enableDefaultAttributesIntegration']('listStyle'),_0x1ad7c7['reversed']&&_0x2e7121['enableDefaultAttributesIntegration']('listReversed'),_0x1ad7c7['startIndex']&&_0x2e7121['enableDefaultAttributesIntegration']('listStart');const _0xf5a2b0={'type':'format','content':''};_0x2e7121['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x345bb1=this['editor']['locale'];_0x2e7121['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x345bb1,'FORMAT_LIST_REVERSED')),_0x2e7121['descriptionFactory']['registerDescriptionCallback'](_0x234312=>{const {data:_0x2b9915}=_0x234312;if(_0x2b9915&&'listReversed'==_0x2b9915['key'])return null==_0x2b9915['newValue']||0x0==_0x2b9915['newValue']&&null==_0x2b9915['oldValue']?_0xf5a2b0:void 0x0;}),_0x2e7121['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x345bb1,'FORMAT_LIST_START')),_0x2e7121['descriptionFactory']['registerDescriptionCallback'](_0x40de9f=>{const {data:_0x34a21f}=_0x40de9f;if(_0x34a21f&&'listStart'==_0x34a21f['key'])return null==_0x34a21f['newValue']||0x1==_0x34a21f['newValue']&&null==_0x34a21f['oldValue']?_0xf5a2b0:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x33b0dd=>{if(_0x33b0dd['batch']['isUndo'])return!0x1;let _0x25d069=!0x1;const _0x39c210=_0x2e7121['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3c480e=>{const _0x2a3eda=_0x2e7121['_getAttributeKey'](_0x3c480e);return'listStart'==_0x2a3eda||'listReversed'==_0x2a3eda;});for(const _0x53f997 of _0x39c210){const _0x2b50b4=_0x53f997['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x2b50b4||'customNumbered'==_0x2b50b4)continue;_0x2e7121['_findSuggestions'](_0x53f997['getFirstRange'](),'attribute')['find'](_0x320672=>'listType'==_0x2e7121['_getAttributeKey'](_0x320672['suggestion']))||(_0x33b0dd['removeMarker'](_0x53f997['getFirstMarker']()),_0x25d069=!0x0);}return _0x25d069;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x13185c){const _0x27e12d=this['editor']['locale'],{data:_0x791758}=_0x13185c,_0x4f2d9f={'type':'format','content':''};if(!_0x791758||'listStyle'!=_0x791758['key'])return;if(!_0x791758['oldValue'])return'default'==_0x791758['newValue']?_0x4f2d9f:{'type':'format','content':''+o(_0x27e12d,'*Set\x20format:*\x20%0',o(_0x27e12d,this['_getTranslationKeyForListStyle'](_0x791758['newValue'])))};if(!_0x791758['newValue']){if('default'==_0x791758['oldValue'])return _0x4f2d9f;let _0x18e9ce=_0x13185c['head'];for(;_0x18e9ce;){if(_0x18e9ce['data']&&'listType'==_0x18e9ce['data']['key']&&_0x18e9ce['data']['newValue'])return _0x4f2d9f;_0x18e9ce=_0x18e9ce['next'];}return{'type':'format','content':''+o(_0x27e12d,'*Remove\x20format:*\x20%0',o(_0x27e12d,this['_getTranslationKeyForListStyle'](_0x791758['oldValue'])))};}if('default'!=_0x791758['newValue'])return{'type':'format','content':''+o(_0x27e12d,'*Set\x20format:*\x20%0',o(_0x27e12d,this['_getTranslationKeyForListStyle'](_0x791758['newValue'])))};let _0x22ef63=_0x13185c['head'];for(;_0x22ef63;){if(_0x22ef63['data']&&'listType'==_0x22ef63['data']['key']&&_0x22ef63['data']['newValue']&&_0x22ef63['data']['oldValue'])return _0x4f2d9f;_0x22ef63=_0x22ef63['next'];}return{'type':'format','content':o(_0x27e12d,'*Set\x20format:*\x20%0',o(_0x27e12d,'ELEMENT_'+_0x13185c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x56bbe8=this['editor'],_0x7aedd6=_0x56bbe8['locale'];_0x56bbe8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x50d0ca=>{if('formatBlock'!=_0x50d0ca['type'])return;const {data:_0x3b1f75}=_0x50d0ca;if(!_0x3b1f75)return;let _0x22c972,_0x5a4094;switch(_0x3b1f75['commandName']){case'listStyle':_0x22c972='*Change\x20to:*\x20%0',_0x5a4094={'type':'format','content':o(_0x7aedd6,_0x22c972,o(_0x7aedd6,this['_getTranslationKeyForListStyle'](_0x3b1f75['commandParams'][0x0]['type'])))};break;case'listReversed':_0x22c972=_0x3b1f75['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5a4094={'type':'format','content':o(_0x7aedd6,_0x22c972)};break;case'listStart':_0x22c972='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5a4094={'type':'format','content':o(_0x7aedd6,_0x22c972,_0x3b1f75['commandParams'][0x0]['startIndex'])};}return _0x5a4094;});}['_getTranslationKeyForListStyle'](_0x24d3c9){return'ELEMENT_'+function(_0x541598){if(ye['includes'](_0x541598))return'bulleted';if(Se['includes'](_0x541598))return'numbered';return null;}(_0x24d3c9)['toUpperCase']()+'_LIST_'+_0x24d3c9['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];class Z extends _0x22959f{['afterInit'](){const _0x48e222=this['editor'];_0x48e222['commands']['get']('emoji')&&_0x48e222['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class tt extends _0x22959f{static get['requires'](){return[_0x3bd78d];}['init'](){const _0x50fd2f=this['editor'],_0x2e515e=_0x50fd2f['plugins']['get']('TrackChangesEditing'),_0x194a2a=_0x50fd2f['commands']['get']('enter');_0x2e515e['enableCommand']('enter',()=>{_0x50fd2f['model']['change'](_0x5908c9=>{const _0x20b744=_0x50fd2f['model']['document']['selection'],_0x3d40dd=_0x20b744['getFirstPosition'](),_0x2fb0bc=_0xfc1203['fromRange'](_0x20b744['getFirstRange']());if(_0x194a2a['enterBlock'](_0x5908c9)){const _0x1fdbe1=_0x50fd2f['model']['createPositionAt'](_0x3d40dd['parent']['nextSibling'],0x0),_0x29ad30=_0x5908c9['createRange'](_0x3d40dd,_0x1fdbe1);_0x2e515e['markInsertion'](_0x29ad30);}else _0x5908c9['setSelection'](_0x5908c9['createRange'](_0x2fb0bc['end']));_0x2fb0bc['detach'](),_0x194a2a['fire']('afterExecute',{'writer':_0x5908c9});});});}}class nt extends _0x22959f{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x26a38d=this['editor']['plugins']['get']('TrackChangesEditing');_0x26a38d['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x26a38d['enableCommand']('findNext'),_0x26a38d['enableCommand']('findPrevious'),_0x26a38d['enableCommand']('replace'),_0x26a38d['enableCommand']('replaceAll');}['handleFindCommand'](_0x4b5c86,_0x5d3a90,_0x49c4b4={}){const _0x738a3a=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x4b5c86(_0x4447cd=>{let _0x2bcaab=('string'==typeof _0x5d3a90?_0x738a3a['findByTextCallback'](_0x5d3a90,_0x49c4b4):_0x5d3a90)(_0x4447cd);Array['isArray'](_0x2bcaab)&&(_0x2bcaab={'results':_0x2bcaab,'searchText':'string'==typeof _0x5d3a90?_0x5d3a90:''});const _0x16a3be=_0x2bcaab['results']['filter'](_0xbebaf8=>!0x1===this['_isInDeletionRange'](_0xbebaf8,_0x4447cd['item']));return{..._0x2bcaab,'results':_0x16a3be};},_0x49c4b4);}['_isInDeletionRange'](_0x9f461a,_0x12c41d){const _0x1bbbdb=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x12c41d,_0x9f461a['start']),this['editor']['model']['createPositionAt'](_0x12c41d,_0x9f461a['end']));for(const _0x29c5be of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x1bbbdb['getIntersection'](_0x29c5be['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class it extends _0x22959f{['afterInit'](){const _0x5ba6d7=this['editor']['locale'],_0x378706=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x19cfe2,commandName:_0x343623}of eo)this['editor']['plugins']['has'](_0x19cfe2)&&_0x378706['enableDefaultAttributesIntegration'](_0x343623);_0x378706['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x5ba6d7,'FORMAT_FONT_SIZE')),_0x378706['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x5ba6d7,'FORMAT_FONT_FAMILY')),_0x378706['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x5ba6d7,'FORMAT_FONT_COLOR')),_0x378706['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x5ba6d7,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x58483a=this['editor'],_0x439b5b=_0x58483a['locale'];_0x58483a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x24e9b9=>{const _0x3cc03b=_0x439b5b['t'];if('formatInline'!=_0x24e9b9['type'])return;const {data:_0x38ae11}=_0x24e9b9;if(null!=_0x38ae11){if('fontSize'==_0x38ae11['commandName']){const _0x1ed528=_0x38ae11['commandParams'][0x0]['value'];if(_0x1ed528){const _0x5f1633=_0x3cc03b(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x96fa59=>_0x96fa59['model']==_0x1ed528)['title'])['toLowerCase']();return{'type':'format','content':o(_0x439b5b,'*Set\x20font\x20size:*\x20%0',_0x5f1633)};}return{'type':'format','content':o(_0x439b5b,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x38ae11['commandName']){const _0x5885e2=_0x38ae11['commandParams'][0x0]['value'];return _0x5885e2?{'type':'format','content':o(_0x439b5b,'*Set\x20font\x20family:*\x20%0',_0x5885e2)}:{'type':'format','content':o(_0x439b5b,'*Reset\x20font\x20family*')};}if('fontColor'==_0x38ae11['commandName']){const _0x5883ed=_0x38ae11['commandParams'][0x0]['value'];if(_0x5883ed){const _0xbdad8e=_0x575e27(this['editor']['config']['get']('fontColor.colors'))['find'](_0x5a54ee=>_0x5a54ee['model']==_0x5883ed);let _0x16a7d8=_0x5883ed,_0x4b7dd0='';return _0xbdad8e&&(_0x16a7d8=_0xbdad8e['label'],_0x4b7dd0=_0x3cc03b(_0x16a7d8)['toLowerCase']()),{'type':'format','content':o(_0x439b5b,'*Set\x20font\x20color:*\x20%0',_0x4b7dd0)['trim'](),'color':{'value':_0x5883ed,'title':_0x4b7dd0||_0x16a7d8}};}return{'type':'format','content':o(_0x439b5b,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x38ae11['commandName']){const _0xf5fb4a=_0x38ae11['commandParams'][0x0]['value'];if(_0xf5fb4a){const _0x251727=_0x575e27(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x451ed8=>_0x451ed8['model']==_0xf5fb4a);let _0x3f6071=_0xf5fb4a,_0xcee9c0='';return _0x251727&&(_0x3f6071=_0x251727['label'],_0xcee9c0=_0x3cc03b(_0x3f6071)['toLowerCase']()),{'type':'format','content':o(_0x439b5b,'*Set\x20font\x20background\x20color:*\x20%0',_0xcee9c0)['trim'](),'color':{'value':_0xf5fb4a,'title':_0xcee9c0||_0x3f6071}};}return{'type':'format','content':o(_0x439b5b,'*Reset\x20font\x20background\x20color*')};}}});}}class et extends _0x22959f{['afterInit'](){const {plugins:_0x4431b6}=this['editor'];_0x4431b6['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x4431b6['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x478500,plugins:_0xc47d65,commands:_0x385751}=this['editor'],_0x5a709c=_0xc47d65['get']('TrackChangesEditing');_0x385751['get']('footnotesStyle')&&_0x5a709c['enableDefaultAttributesIntegration']('footnotesStyle'),_0x385751['get']('footnotesStart')&&_0x5a709c['enableDefaultAttributesIntegration']('footnotesStart'),_0x5a709c['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',o(_0x478500,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x5a709c['descriptionFactory']['registerAttributeLabel']('footnotesListStart',o(_0x478500,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x5e1919=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x342547,commands:_0x3a9807}=this['editor'];_0x3a9807['get']('insertFootnote')&&_0x5e1919['enableCommand']('insertFootnote'),_0x5e1919['descriptionFactory']['registerElementLabel']('footnoteRef',_0xa8d30b=>o(_0x342547,'ELEMENT_FOOTNOTE_REF',_0xa8d30b)),_0x5e1919['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x32c178=>o(_0x342547,'ELEMENT_FOOTNOTE_DEFINITION',_0x32c178)),_0x5e1919['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0xce5293=>o(_0x342547,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0xce5293));}}class st extends _0x22959f{['afterInit'](){const _0x4c9f44=this['editor'],_0x271d87=_0x4c9f44['plugins']['get']('TrackChangesEditing'),_0x10b7ee=_0x4c9f44['commands']['get']('copyFormat'),_0x3e34d3=_0x4c9f44['commands']['get']('pasteFormat');_0x10b7ee&&_0x3e34d3&&(_0x271d87['enableDefaultAttributesIntegration']('pasteFormat'),_0x271d87['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x19ac2a=this['editor'],_0x589ec2=_0x19ac2a['locale'];_0x19ac2a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x486982=>{if('formatBlock'!=_0x486982['type']&&'formatInline'!=_0x486982['type'])return;const {data:_0x664d88}=_0x486982;if(_0x664d88&&'pasteFormat'===_0x664d88['commandName']){const _0x2ff1f4=[],_0x2092dd=_0x664d88['commandParams'][0x0];for(const [_0x2221b0,_0x1f2a37]of Object['entries'](_0x2092dd))_0x2ff1f4['push'](ro(_0x19ac2a,_0x2221b0,_0x1f2a37));return _0x2ff1f4['length']?{'type':'format','content':o(_0x589ec2,'*Set\x20format\x20to:*\x20%0',_0x2ff1f4['join'](',\x20'))}:{'type':'format','content':o(_0x589ec2,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x294c08,_0x3911a5,_0x5cfc55){const _0x1aced3=_0x294c08['locale']['t'],_0x4095a9=_0x3911a5['split'](/(?=[A-Z])/)['join']('\x20'),_0x3269ae=_0x1aced3(_0x4095a9['charAt'](0x0)['toUpperCase']()+_0x4095a9['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x5cfc55)return _0x3269ae;if('fontColor'===_0x3911a5||'fontBackgroundColor'===_0x3911a5){const _0x2385a0=_0x575e27(_0x294c08['config']['get']('fontColor.colors'))['find'](_0x64241d=>_0x64241d['model']==_0x5cfc55);return _0x3269ae+'\x20('+(_0x2385a0?_0x1aced3(_0x2385a0['label'])['toLowerCase']():_0x5cfc55)+')';}if('fontSize'===_0x3911a5&&isNaN(parseFloat(_0x5cfc55))){const _0x21296c=_0x294c08['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x294c08['config']['get']('fontSize.options'))['find'](_0x2c66f0=>_0x2c66f0['model']==_0x5cfc55);return _0x3269ae+'\x20('+(_0x21296c?_0x1aced3(_0x21296c['title'])['toLowerCase']():_0x5cfc55)+')';}return _0x3269ae+'\x20('+_0x5cfc55+')';}class ot extends _0x22959f{['_headingOptions'];['afterInit'](){const _0x10628c=this['editor'];if(!_0x10628c['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x10628c['config']['get']('heading.options');const _0x1fa004=_0x10628c['locale'],_0x572658=_0x10628c['plugins']['get']('TrackChangesEditing');_0x572658['enableDefaultAttributesIntegration']('heading');for(const _0xd7b630 of this['_headingOptions'])'paragraph'!=_0xd7b630['model']&&_0x572658['descriptionFactory']['registerElementLabel'](_0xd7b630['model'],_0x489ae1=>{const _0x362e87=this['_getHeadingLevel'](_0xd7b630['model']);return null!==_0x362e87?_0x2d9249(_0x489ae1,_0x362e87):_0x21aa76(_0x489ae1,_0xd7b630['title']);});function _0x2d9249(_0x395a68,_0xaaa8a4){return o(_0x1fa004,'ELEMENT_HEADING',[_0x395a68,_0xaaa8a4]);}function _0x21aa76(_0x55ba0b,_0x3fa11a){return o(_0x1fa004,'ELEMENT_HEADING_CUSTOM',[_0x55ba0b,_0x3fa11a]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x59ea6d=this['editor'],_0x30c9eb=_0x59ea6d['locale'];function _0x172dee(_0x33b95a,_0x2d60d1){return o(_0x30c9eb,'ELEMENT_HEADING_CUSTOM',[_0x33b95a,_0x2d60d1]);}_0x59ea6d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x33215e=>{if('formatBlock'!=_0x33215e['type'])return;const {data:_0x12789f}=_0x33215e;if(_0x12789f&&'heading'==_0x12789f['commandName']){const _0x49b484=_0x12789f['commandParams'][0x0]['value'],_0x599730=this['_getHeadingLevel'](_0x49b484);if(null!==_0x599730)return{'type':'format','content':o(_0x30c9eb,'*Change\x20to:*\x20%0',(_0x16db69=0x1,_0x2ac5ae=_0x599730,o(_0x30c9eb,'ELEMENT_HEADING',[_0x16db69,_0x2ac5ae])))};const _0x2e70ce=this['_headingOptions']['find'](_0x221cc9=>_0x221cc9['model']===_0x49b484)['title'];return{'type':'format','content':o(_0x30c9eb,'*Change\x20to:*\x20%0',_0x172dee(0x1,_0x2e70ce))};}var _0x16db69,_0x2ac5ae;});}['_getHeadingLevel'](_0x5c74a8){const _0x5cd6f5=_0x5c74a8['match'](/^heading(\d+)/);if(_0x5cd6f5)return _0x5cd6f5[0x1];const _0x3d43b9=this['_headingOptions']?.['find'](_0x61710=>_0x61710['model']==_0x5c74a8);if(_0x3d43b9&&_0x3d43b9['view']){const _0x32e4ac=_0x3d43b9['view'],_0x308fcc=(_0x32e4ac['name']??_0x32e4ac)['match'](/^h(\d+)/);if(_0x308fcc)return _0x308fcc[0x1];}return null;}}class rt extends _0x22959f{['afterInit'](){const _0x1f041e=this['editor'];if(!_0x1f041e['plugins']['has']('HighlightEditing'))return;const _0x116b37=_0x1f041e['plugins']['get']('TrackChangesEditing'),_0x2b8ed0=_0x1f041e['locale'];_0x116b37['enableDefaultAttributesIntegration']('highlight'),_0x116b37['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x2b8ed0,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x39beaa=this['editor'],_0x2e3272=_0x39beaa['locale'];_0x39beaa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x50dc39=>{if('formatInline'!=_0x50dc39['type'])return;const {data:_0x4277fa}=_0x50dc39;if(_0x4277fa&&'highlight'==_0x4277fa['commandName']){const _0x4bbad5=_0x2e3272['t'],_0x485cc4=_0x4277fa['commandParams'][0x0]['value'];if(_0x485cc4){const _0x5bd084=_0x39beaa['config']['get']('highlight.options')['find'](_0x3c419c=>_0x3c419c['model']==_0x485cc4),_0x3406ed=_0x4bbad5(_0x5bd084['title'])['toLowerCase']();return{'type':'format','content':o(_0x2e3272,'*Set\x20highlight:*\x20%0',_0x3406ed),'color':{'value':_0x5bd084['color'],'title':_0x5bd084['title']}};}return{'type':'format','content':o(_0x2e3272,'*Remove\x20highlight*',o(_0x2e3272,'FORMAT_HIGHLIGHT'))};}});}}class at extends _0x22959f{['afterInit'](){const _0x4d4bb0=this['editor'];if(!_0x4d4bb0['plugins']['has']('HorizontalLineEditing'))return;_0x4d4bb0['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x5aabec=_0x4d4bb0['plugins']['get']('TrackChangesEditing'),_0x225b8e=_0x4d4bb0['locale'];_0x5aabec['descriptionFactory']['registerElementLabel']('horizontalLine',_0x4e4150=>o(_0x225b8e,'ELEMENT_HORIZONTAL_LINE',_0x4e4150));}}class ct extends _0x22959f{['afterInit'](){const _0x1777fe=this['editor'];if(!_0x1777fe['plugins']['has']('HtmlEmbed'))return;const _0x5ce462=_0x1777fe['plugins']['get']('TrackChangesEditing'),_0x28601f=_0x1777fe['locale'];_0x5ce462['descriptionFactory']['registerElementLabel']('rawHtml',_0x103819=>o(_0x28601f,'ELEMENT_HTML_EMBED',_0x103819)),_0x5ce462['enableDefaultAttributesIntegration']('htmlEmbed'),_0x5ce462['descriptionFactory']['registerDescriptionCallback'](_0x336d4b=>{if('attribute'!=_0x336d4b['type'])return;const {data:_0x5311c2}=_0x336d4b;if(_0x5311c2&&'value'==_0x5311c2['key']&&_0x336d4b['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x2a1a8c=o(_0x28601f,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x28601f,'*Change\x20%0\x20content*',_0x2a1a8c)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x289ea9=this['editor'],_0xddf16e=_0x289ea9['locale'];_0x289ea9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x188a74=>{if('formatBlock'!=_0x188a74['type'])return;const {data:_0xa40523}=_0x188a74;if(_0xa40523&&'htmlEmbed'==_0xa40523['commandName']){const _0x3c1b48=o(_0xddf16e,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0xddf16e,'*Change\x20%0\x20content*',_0x3c1b48)};}});}}class ut extends _0x22959f{['afterInit'](){const _0x36e180=this['editor'];if(!_0x36e180['plugins']['has']('ImageEditing'))return;const _0x200117=_0x36e180['plugins']['get']('TrackChangesEditing'),_0x29e676=_0x36e180['plugins']['get']('ImageUtils'),_0x2f2915=_0x36e180['locale'];_0x200117['enableCommand']('insertImage'),_0x200117['descriptionFactory']['registerElementLabel']('imageBlock',_0x432eff=>o(_0x2f2915,'ELEMENT_IMAGE',_0x432eff)),_0x200117['descriptionFactory']['registerElementLabel']('imageInline',_0x22147c=>o(_0x2f2915,'ELEMENT_INLINE_IMAGE',_0x22147c)),_0x200117['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x2f2915,'ELEMENT_CAPTION')),_0x36e180['plugins']['has']('ImageUploadEditing')&&_0x200117['enableCommand']('uploadImage'),_0x36e180['plugins']['has']('ImageBlockEditing')&&_0x36e180['plugins']['has']('ImageInlineEditing')&&(_0x200117['enableCommand']('imageTypeInline',(_0x1b26e0,_0x480ae2)=>{const _0x41068f=_0x29e676['getClosestSelectedImageElement'](_0x36e180['model']['document']['selection']);_0x36e180['model']['change'](()=>{_0x200117['markBlockFormat'](_0x41068f,{'commandName':'imageTypeInline','commandParams':[_0x480ae2]},[],'convertBlockImageToInline');});}),_0x200117['enableCommand']('imageTypeBlock',(_0x5ea449,_0x24a83e)=>{_0x36e180['model']['change'](_0x2744b3=>{let _0x277a5b=_0x29e676['getClosestSelectedImageElement'](_0x36e180['model']['document']['selection']),_0x170105=_0x2744b3['createRangeOn'](_0x277a5b);const _0x11f286=_0x30aae8['fromPosition'](_0x170105['start'],'toPrevious'),_0x2a32d6=_0x30aae8['fromPosition'](_0x170105['end'],'toNext');_0x200117['forceDefaultExecution'](()=>_0x5ea449(_0x24a83e)),_0x277a5b=_0x29e676['getClosestSelectedImageElement'](_0x36e180['model']['document']['selection']),_0x170105=_0x2744b3['createRangeOn'](_0x277a5b);const _0x453ba6=_0x2744b3['createRange'](_0x11f286,_0x2a32d6);_0x11f286['detach'](),_0x2a32d6['detach'](),_0x200117['markBlockFormat'](_0x277a5b,{'commandName':'imageTypeInline','commandParams':[_0x24a83e]},[],'convertInlineImageToBlock'),_0x453ba6['start']['isBefore'](_0x170105['start'])&&_0x200117['markInsertion'](_0x2744b3['createRange'](_0x453ba6['start'],_0x170105['start']),'convertInlineImageToBlock'),_0x170105['end']['isBefore'](_0x453ba6['end'])&&_0x200117['markInsertion'](_0x2744b3['createRange'](_0x170105['end'],_0x453ba6['end']),'convertInlineImageToBlock');});}),_0x200117['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x200117['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x200117['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x200117['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x200117['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x200117['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x59cc98])=>{const _0x25e56b=_0x200117['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x4a7e7d=_0x59cc98['start'],_0x74f317=_0x59cc98['end'];const _0xc1b696=_0x36e180['model']['schema']['getNearestSelectionRange'](_0x4a7e7d,'backward'),_0x46eb11=_0x36e180['model']['schema']['getNearestSelectionRange'](_0x74f317,'forward');_0xc1b696['isCollapsed']&&(_0x4a7e7d=_0xc1b696['start']),_0x46eb11['isCollapsed']&&(_0x74f317=_0x46eb11['end']),_0x25e56b([_0x36e180['model']['createRange'](_0x4a7e7d,_0x74f317)]);}),_0x200117['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x378dc6),_0x200117['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x378dc6)),_0x36e180['plugins']['has']('ImageCaptionEditing')&&(_0x200117['enableCommand']('toggleImageCaption',(_0x5aaca0,_0x225c66)=>{const _0x1e9db9=_0x36e180['plugins']['get']('ImageCaptionUtils');let _0x314c35=_0x29e676['getClosestSelectedImageElement'](_0x36e180['model']['document']['selection']),_0x59f97b=_0x1e9db9['getCaptionFromImageModelElement'](_0x314c35);_0x36e180['model']['change'](()=>{if(_0x59f97b)return void _0x200117['markDeletion'](_0x36e180['model']['createRangeOn'](_0x59f97b));const _0x22c2e5=_0x29e676['isBlockImage'](_0x314c35);_0x5aaca0(_0x225c66),_0x314c35=_0x29e676['getClosestSelectedImageElement'](_0x36e180['model']['document']['selection']),_0x59f97b=_0x1e9db9['getCaptionFromImageModelElement'](_0x314c35),_0x200117['markInsertion'](_0x36e180['model']['createRangeOn'](_0x59f97b),_0x22c2e5?null:'imageCaption');});}),_0x200117['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x378dc6));const _0x1e1e1d=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x24cdea(_0x5cc65a,_0x2d46a1){const _0x39eeae=_0x1e1e1d['findIndex'](({type:_0x64e769,subType:_0x4974ae})=>_0x5cc65a['type']==_0x64e769&&_0x5cc65a['subType']==_0x4974ae),_0x33d9f9=_0x1e1e1d['findIndex'](({type:_0x1f22ec,subType:_0x44a8d5})=>_0x2d46a1['type']==_0x1f22ec&&_0x2d46a1['subType']==_0x44a8d5);if(_0x39eeae<0x0||_0x33d9f9<0x0)return!0x1;const _0x33bc1c=_0x5cc65a['getFirstRange'](),_0x9efa93=_0x2d46a1['getFirstRange']();if((0x0==_0x39eeae||0x1==_0x39eeae)&&0x2==_0x33d9f9&&_0x33bc1c['isIntersecting'](_0x9efa93))return!0x0;if(0x2==_0x39eeae&&0x3==_0x33d9f9){const _0x15c0f0=_0x200117['_findSuggestions'](_0x33bc1c,'insertion')['filter'](({suggestion:_0x2acded,meta:_0x2dfd39})=>_0x2dfd39['isOwn']&&'convertInlineImageToBlock'==_0x2acded['subType']);if(_0x15c0f0['length']>0x1&&_0x9efa93['end']['isEqual'](_0x33bc1c['start']))return!0x0;if(0x1==_0x15c0f0['length']&&(_0x33bc1c['start']['isEqual'](_0x9efa93['end'])||_0x33bc1c['end']['isEqual'](_0x9efa93['start'])))return!0x0;}if(0x3==_0x39eeae&&0x3==_0x33d9f9&&_0x33bc1c['start']['isBefore'](_0x9efa93['start'])){const _0x1ec376=_0x33bc1c['end']['nodeAfter'],_0x379788=_0x9efa93['start']['nodeBefore'];return _0x29e676['isBlockImage'](_0x1ec376)&&_0x1ec376===_0x379788;}return!0x1;}function _0x378dc6(_0x173128,_0x3f72f8){return _0x24cdea(_0x173128,_0x3f72f8)?[_0x173128,_0x3f72f8]:_0x24cdea(_0x3f72f8,_0x173128)?[_0x3f72f8,_0x173128]:null;}_0x36e180['plugins']['has']('ImageResize')&&(_0x200117['enableDefaultAttributesIntegration']('resizeImage'),_0x200117['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x2f2915,'FORMAT_IMAGE_SIZE'))),_0x36e180['plugins']['has']('ImageTextAlternativeEditing')&&_0x200117['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x36e180['plugins']['has']('PictureEditing')&&_0x200117['descriptionFactory']['registerDescriptionCallback'](_0x52ac26=>{if('attribute'!=_0x52ac26['type'])return;const {data:_0xb83583}=_0x52ac26;return _0xb83583&&'sources'==_0xb83583['key']?{'type':'format','content':''}:void 0x0;}),_0x36e180['plugins']['has']('ImageSizeAttributes')&&_0x200117['descriptionFactory']['registerDescriptionCallback'](_0x307da7=>{if('attribute'!=_0x307da7['type'])return;const {data:_0x8849f4}=_0x307da7;return!_0x8849f4||'width'!=_0x8849f4['key']&&'height'!=_0x8849f4['key']?void 0x0:{'type':'format','content':''};}),_0x200117['descriptionFactory']['registerDescriptionCallback'](_0x382e51=>{if(!!_0x1e1e1d['find'](({type:_0x2dfc32,subType:_0x327ef6})=>_0x382e51['type']==_0x2dfc32&&_0x382e51['subType']==_0x327ef6))return _0x382e51['previous']?{}:void 0x0;}),_0x200117['descriptionFactory']['registerDescriptionCallback'](_0x5a7b12=>{if('insertion'==_0x5a7b12['type']||'deletion'==_0x5a7b12['type']){const _0x2774d2=_0x5a7b12['getContainedElement']();if(_0x2774d2&&_0x2774d2['is']('element','caption'))return{'type':'insertion'==_0x5a7b12['type']?'addObject':'removeObject','element':_0x2774d2,'quantity':0x1};}}),_0x200117['descriptionFactory']['registerDescriptionCallback'](_0x2ec13e=>'formatBlock'==_0x2ec13e['type']&&'convertInlineImageToBlock'==_0x2ec13e['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x2ec13e['type']&&'convertBlockImageToInline'==_0x2ec13e['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x200117['descriptionFactory']['registerDescriptionCallback'](_0x13c92d=>{if('attribute'!=_0x13c92d['type'])return;const {data:_0x516785}=_0x13c92d;if(!_0x516785||'alt'!=_0x516785['key'])return;const _0x1fb2d8=_0x516785['newValue'];return _0x1fb2d8?{'type':'format','content':o(_0x2f2915,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1fb2d8+'\x22')}:{'type':'format','content':o(_0x2f2915,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x18dae1=this['editor'],_0x5a49a2=_0x18dae1['locale'];_0x18dae1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x36046f=>{if('formatBlock'!=_0x36046f['type']&&'formatInline'!=_0x36046f['type'])return;const {data:_0x52cae5}=_0x36046f;if(_0x52cae5){if('imageTextAlternative'==_0x52cae5['commandName']){const _0xdfd95e=_0x52cae5['commandParams'][0x0]['newValue'];return _0xdfd95e?{'type':'format','content':o(_0x5a49a2,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xdfd95e+'\x22')}:{'type':'format','content':o(_0x5a49a2,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x52cae5['commandName']){const _0x413748=_0x52cae5['commandParams'][0x0]['width'];return _0x413748?{'type':'format','content':o(_0x5a49a2,'*Set\x20image\x20width:*\x20%0',_0x413748)}:{'type':'format','content':o(_0x5a49a2,'*Reset\x20image\x20width*')};}}});}}class ft extends _0x22959f{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x79676c=this['editor']['locale'],_0x1b53ad=this['editor']['plugins']['get']('TrackChangesEditing');_0x1b53ad['enableDefaultAttributesIntegration']('replaceImageSource'),_0x1b53ad['descriptionFactory']['registerDescriptionCallback'](_0x4b6a59=>{if('attribute'!=_0x4b6a59['type'])return;const {data:_0xca5109}=_0x4b6a59;return _0xca5109&&'src'==_0xca5109['key']?_0xca5109['newValue']&&_0xca5109['oldValue']?{'type':'format','content':o(_0x79676c,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x243c00=this['editor']['plugins']['get']('TrackChangesEditing');_0x243c00['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x243c00['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x243c00['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x243c00['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x206b74=this['editor'],_0x3a0669=_0x206b74['locale'];_0x206b74['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4f45e1=>{if('formatBlock'!=_0x4f45e1['type']&&'formatInline'!=_0x4f45e1['type'])return;const {data:_0x27c2bf}=_0x4f45e1;if(!_0x27c2bf||'replaceImageSource'!=_0x27c2bf['commandName'])return;return{'type':'format','content':o(_0x3a0669,'*Format:*\x20replace\x20image\x20URL')};});}}class ht extends _0x22959f{['afterInit'](){const _0x231fe5=this['editor'];if(!_0x231fe5['plugins']['has']('ImageStyleEditing'))return;const _0x5b7501=_0x231fe5['plugins']['get']('TrackChangesEditing'),_0x29f017=_0x231fe5['plugins']['get']('ImageUtils'),_0x3ffd81={};_0x5b7501['enableCommand']('imageStyle',(_0x33b596,_0x2bb4c4)=>{const _0x399ec2=_0x231fe5['plugins']['get']('Users')['me'],_0x675cba=_0x231fe5['commands']['get']('imageStyle');let _0x49cb6d=_0x29f017['getClosestSelectedImageElement'](_0x231fe5['model']['document']['selection']),_0x4de2a4=_0x231fe5['model']['createRangeOn'](_0x49cb6d),_0x5d4f71=_0x675cba['value'];if(_0x5d4f71==_0x2bb4c4['value'])return;const _0x583db7={'commandName':'imageStyle','commandParams':[_0x2bb4c4],'formatGroupId':_0x34c54d()};_0x231fe5['model']['change'](()=>{if(_0x5b7501['getSuggestions']()['filter'](_0xd61d97=>_0xd61d97['isInContent']&&_0x399ec2==_0xd61d97['author']&&('formatBlock'==_0xd61d97['type']||'formatInline'==_0xd61d97['type'])&&('imageStylePreApply'==_0xd61d97['subType']||'imageStylePostApply'==_0xd61d97['subType'])&&_0xd61d97['getFirstRange']()['isEqual'](_0x4de2a4))['forEach'](_0x15eb2b=>_0x5b7501['discardSuggestion'](_0x15eb2b['head'])),_0x49cb6d=_0x29f017['getClosestSelectedImageElement'](_0x231fe5['model']['document']['selection']),_0x4de2a4=_0x231fe5['model']['createRangeOn'](_0x49cb6d),_0x675cba['refresh'](),_0x231fe5['commands']['get']('imageTypeInline')['refresh'](),_0x231fe5['commands']['get']('imageTypeBlock')['refresh'](),_0x5d4f71=_0x675cba['value'],_0x5d4f71!=_0x2bb4c4['value'])return _0x29f017['isInlineImage'](_0x49cb6d)&&_0x675cba['shouldConvertImageType'](_0x2bb4c4['value'],_0x49cb6d)?(_0x33b596({..._0x2bb4c4,'setImageSizes':!0x1}),_0x49cb6d=_0x29f017['getClosestSelectedImageElement'](_0x231fe5['model']['document']['selection']),void _0x5b7501['markBlockFormat'](_0x49cb6d,{..._0x583db7,'commandReversedParams':[{'value':_0x5d4f71||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x29f017['isBlockImage'](_0x49cb6d)?_0x5b7501['markBlockFormat'](_0x49cb6d,_0x583db7,[],'imageStylePostApply'):_0x5b7501['markInlineFormat'](_0x4de2a4,_0x583db7,'imageStylePostApply'));});});for(const _0x2339c0 of _0x231fe5['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x3ffd81[_0x2339c0['name']]=_0x2339c0['title']['toLowerCase']();_0x5b7501['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x5b7501['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x5b7501['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x5b7501['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x2d24a6])=>{_0x29f017['setImageNaturalSizeAttributes'](_0x2d24a6['getContainedElement']());}),_0x5b7501['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2d03fb,_0x11f282)=>{_0x5b7501['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2d03fb,{'commandName':_0x11f282['commandName'],'commandParams':_0x11f282['commandReversedParams']});}),_0x5b7501['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x11fb38,_0x58a32d){if(_0x31d943(_0x11fb38,_0x58a32d))return[_0x11fb38,_0x58a32d];if(_0x31d943(_0x58a32d,_0x11fb38))return[_0x58a32d,_0x11fb38];return null;});const _0x238f48=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x31d943(_0x73ffd1,_0x593741){const _0x393f88=_0x238f48['findIndex'](({type:_0x3c9f72,subType:_0x4696bd})=>_0x73ffd1['type']==_0x3c9f72&&_0x73ffd1['subType']==_0x4696bd),_0x5ba0e9=_0x238f48['findIndex'](({type:_0x4d83db,subType:_0x41f4a7})=>_0x593741['type']==_0x4d83db&&_0x593741['subType']==_0x41f4a7);if(_0x393f88<0x0||_0x5ba0e9<0x0)return!0x1;const _0x167272=_0x73ffd1['getFirstRange'](),_0x2bea8d=_0x593741['getFirstRange']();if((0x0==_0x393f88||0x1==_0x393f88)&&0x2==_0x5ba0e9&&_0x167272['isIntersecting'](_0x2bea8d))return!0x0;if(0x2==_0x393f88&&0x3==_0x5ba0e9){const _0x2f96ce=_0x5b7501['_findSuggestions'](_0x167272,'insertion')['filter'](({suggestion:_0x3754eb,meta:_0x5a2b20})=>_0x5a2b20['isOwn']&&'convertInlineImageToBlock'==_0x3754eb['subType']);if(_0x2f96ce['length']>0x1&&_0x2bea8d['end']['isEqual'](_0x167272['start']))return!0x0;if(0x1==_0x2f96ce['length']&&(_0x167272['start']['isEqual'](_0x2bea8d['end'])||_0x167272['end']['isEqual'](_0x2bea8d['start'])))return!0x0;}if(0x3==_0x393f88&&0x3==_0x5ba0e9&&_0x167272['start']['isBefore'](_0x2bea8d['start'])){const _0x1b468c=_0x167272['end']['nodeAfter'],_0x319c5f=_0x2bea8d['start']['nodeBefore'];return _0x29f017['isBlockImage'](_0x1b468c)&&_0x1b468c===_0x319c5f;}return!0x1;}_0x231fe5['model']['document']['registerPostFixer'](()=>{let _0x4c12d6=!0x1;const _0x271a3f=Array['from'](_0x231fe5['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2beab0,data:_0x246603}of _0x271a3f){const {group:_0x5577a2,type:_0x42659c,subType:_0x1c2dfb,id:_0x172ed2}=_0x5b7501['_splitMarkerName'](_0x2beab0);if('suggestion'==_0x5577a2&&_0x5b7501['hasSuggestion'](_0x172ed2)){if('formatBlock'==_0x42659c&&('imageStylePreApply'==_0x1c2dfb||'imageStylePostApply'==_0x1c2dfb)){const _0x59716b=_0x5b7501['getSuggestion'](_0x172ed2);if(_0x246603['newRange']){const _0x320df5=_0x59716b['getFirstRange']()['getContainedElement']();if(_0x29f017['isBlockImage'](_0x320df5))continue;_0x5b7501['discardSuggestion'](_0x59716b),_0x4c12d6=!0x0;}}if('insertion'==_0x42659c&&'imageCaption'==_0x1c2dfb&&!_0x246603['newRange']){const _0x606ccc=_0x5b7501['getSuggestion'](_0x172ed2);_0x606ccc['next']&&_0x606ccc['next']['isInContent']&&(_0x5b7501['discardSuggestion'](_0x606ccc['next']),_0x4c12d6=!0x0);}}}return _0x4c12d6;}),this['_registerLegacyDescription'](_0x3ffd81);}['_registerLegacyDescription'](_0x120c10){const _0x528985=this['editor'],_0x11a68a=_0x528985['locale'];_0x528985['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2c6cd9=>{if('formatBlock'!=_0x2c6cd9['type']&&'formatInline'!=_0x2c6cd9['type'])return;const {data:_0x5ea3f5}=_0x2c6cd9;if(!_0x5ea3f5||'imageStyle'!=_0x5ea3f5['commandName'])return;const _0x201507=_0x5ea3f5['commandParams'][0x0]['value'];return _0x413f6a('side'===_0x201507?o(_0x11a68a,'FORMAT_SIDE_IMAGE'):_0x120c10[_0x201507]||_0x201507);function _0x413f6a(_0x2c1eda){return{'type':'format','content':o(_0x11a68a,'*Format:*\x20%0',_0x2c1eda)};}});}}class lt extends _0x22959f{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x1e8722){super(_0x1e8722),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x2702dd=this['editor'],_0x4f085c=_0x2702dd['commands']['get']('importWord'),_0xd9d380=_0x2702dd['commands']['get']('trackChanges');_0x4f085c&&(_0x4f085c['on']('execute',(_0x52c304,[,_0x36eddc])=>{this['_trackChangesValueDuringImport']=_0xd9d380['value'],_0x36eddc['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x4f085c,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x4f085c,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0xd9d380['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x2702dd['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x1228f7,_0x57284e){const {suggestions:_0x71269d}=_0x57284e,_0x274a8a=this['editor']['commands']['get']('trackChanges'),_0x5cc03d=_0x274a8a['value'];this['_trackChangesValueDuringImport']!==_0x5cc03d&&(_0x274a8a['execute'](),this['_trackChangesExecuted']=!0x0),_0x71269d&&_0x71269d['forEach'](({id:_0x2d183c,type:_0x53e101,author:_0x353182,created_at:_0x1e20b2})=>{const _0xe2b47f={'id':_0x2d183c,'type':_0x53e101,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x353182,'createdAt':_0x1e20b2?new Date(_0x1e20b2):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0xe2b47f);});}}class gt extends _0x22959f{['afterInit'](){const _0x2a45ef=this['editor'],_0x45525f=_0x2a45ef['plugins']['get']('TrackChangesEditing');if(_0x2a45ef['plugins']['has']('IndentEditing')&&(_0x45525f['enableCommand']('indent'),_0x45525f['enableCommand']('outdent')),_0x2a45ef['plugins']['has']('IndentBlock')){for(const _0x333990 of['indentBlock','outdentBlock'])_0x45525f['enableDefaultAttributesIntegration'](_0x333990);if(_0x2a45ef['plugins']['has']('ListEditing')){for(const _0x313d03 of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x45525f['enableDefaultAttributesIntegration'](_0x313d03);}}const _0x2222aa=_0x2a45ef['locale'];_0x45525f['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x2222aa,'FORMAT_INDENT')),_0x45525f['descriptionFactory']['registerAttributeLabel']('blockIndentList',o(_0x2222aa,'FORMAT_INDENT')),_0x45525f['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',o(_0x2222aa,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x306ba4=this['editor'],_0x4daba2=_0x306ba4['locale'],_0x303f90=_0x306ba4['plugins']['get']('TrackChangesEditing');_0x303f90['descriptionFactory']['registerDescriptionCallback'](_0x4af692=>{if('formatBlock'!=_0x4af692['type'])return;const {data:_0x559fc5}=_0x4af692;if(!_0x559fc5)return;if('indentBlock'!=_0x559fc5['commandName']&&'outdentBlock'!=_0x559fc5['commandName'])return;const _0x1043d3=_0x4af692['getItems']()[0x0],_0x37bd0b=_0x303f90['descriptionFactory']['getItemLabel'](_0x1043d3);return'indentBlock'==_0x559fc5['commandName']?{'type':'format','content':o(_0x4daba2,'*Indent:*\x20%0',_0x37bd0b)}:'outdentBlock'==_0x559fc5['commandName']?{'type':'format','content':o(_0x4daba2,'*Outdent:*\x20%0',_0x37bd0b)}:void 0x0;});}}class mt extends _0x22959f{static get['requires'](){return[_0x4576bf];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class dt extends _0x22959f{['afterInit'](){const _0x3a8432=this['editor'];if(!_0x3a8432['plugins']['has']('LinkEditing'))return;const _0x538c67=_0x3a8432['plugins']['get']('TrackChangesEditing'),_0x2d6419=_0x3a8432['commands']['get']('link');_0x538c67['enableDefaultAttributesIntegration']('link'),_0x538c67['enableDefaultAttributesIntegration']('unlink');for(const _0x99212 of _0x2d6419['manualDecorators'])_0x538c67['descriptionFactory']['registerAttributeLabel'](_0x99212['id'],'link\x20('+_0x99212['label']['toLowerCase']()+')');_0x538c67['descriptionFactory']['registerDescriptionCallback'](_0x15be94=>{if('attribute'!=_0x15be94['type'])return;const {data:_0x47a049}=_0x15be94;if(!_0x47a049||'linkHref'!=_0x47a049['key'])return;const _0x199955=_0x47a049['newValue'],_0x1b18b0=_0x3a8432['locale'];return{'type':'format','content':null==_0x199955?o(_0x1b18b0,'*Remove\x20link*'):o(_0x1b18b0,'*Set\x20link:*\x20%0','\x22'+_0x199955+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x14ed0e=this['editor'],_0x20b3d9=_0x14ed0e['locale'];_0x14ed0e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2f0e02=>{if('formatInline'!=_0x2f0e02['type'])return;const {data:_0x3f83e8}=_0x2f0e02;if(_0x3f83e8){if('link'==_0x3f83e8['commandName']){const _0x56212d=_0x3f83e8['commandParams'][0x0];return{'type':'format','content':o(_0x20b3d9,'*Set\x20link:*\x20%0','\x22'+_0x56212d+'\x22')};}return'unlink'==_0x3f83e8['commandName']?{'type':'format','content':o(_0x20b3d9,'*Remove\x20link*')}:void 0x0;}});}}class pt extends _0x22959f{['afterInit'](){const _0x39bf48=this['editor'],_0x54c863=_0x39bf48['locale'];if(!_0x39bf48['plugins']['has']('LegacyListEditing'))return;const _0xc02110=_0x39bf48['plugins']['get']('TrackChangesEditing'),_0x216c5c=_0x39bf48['plugins']['has']('LegacyTodoListEditing');function _0x469e0d(_0x382f85){return()=>{const _0x45f927=_0x39bf48['model']['document']['selection'],_0x5abd53=_0x39bf48['commands']['get'](_0x382f85);if(_0x5abd53['value'])return void _0x39bf48['execute']('paragraph',{});const _0x5061d5=_0x382f85['slice'](0x0,-0x4),_0x1f1219=function(_0xf8deae,_0x2ef6fd,_0x4b7e39){let _0x5388a1=Array['from'](_0xf8deae)['filter'](_0xd9a1e6=>function(_0x39e4f3,_0x484ffd){return _0x484ffd['checkChild'](_0x39e4f3['parent'],'listItem')&&!_0x484ffd['isObject'](_0x39e4f3);}(_0xd9a1e6,_0x4b7e39));_0x5388a1=_0x5388a1['filter'](_0x442d9b=>!_0x442d9b['is']('element','listItem')||_0x442d9b['getAttribute']('listType')!=_0x2ef6fd);const _0x4ed8f5=new Set();for(const _0x2be62f of _0x5388a1)_0x2be62f['is']('element','listItem')?_0x4ed8f5['add'](Le(_0x2be62f)):_0x4ed8f5['add'](_0x2be62f);return Array['from'](_0x4ed8f5);}(_0x45f927['getSelectedBlocks'](),_0x5061d5,_0x39bf48['model']['schema']);_0x39bf48['model']['change'](()=>{for(const _0x40bef0 of _0x1f1219)_0xc02110['markBlockFormat'](_0x40bef0,{'commandName':_0x382f85,'commandParams':[{'forceValue':!_0x5abd53['value']}],'formatGroupId':'blockName'},Ee(_0x40bef0));});};}function _0x3712a4(_0x12212c){return()=>{const _0x5423c2=function(_0x3579f3){let _0x293f62=Array['from'](_0x3579f3);const _0x424d25=_0x293f62['findIndex'](_0x470f7e=>'listItem'!=_0x470f7e['name']);return _0x424d25>-0x1&&(_0x293f62=_0x293f62['slice'](0x0,_0x424d25)),_0x293f62;}(_0x39bf48['model']['document']['selection']['getSelectedBlocks']()),_0xa016be=_0x39bf48['model']['createRange'](_0x39bf48['model']['createPositionAt'](_0x5423c2[0x0],'before'),_0x39bf48['model']['createPositionAt'](_0x5423c2[_0x5423c2['length']-0x1],'end'));_0x39bf48['model']['change'](()=>{_0xc02110['markBlockFormat'](_0xa016be,{'commandName':_0x12212c,'commandParams':[],'formatGroupId':'listIndent'},function(_0x12964c){const _0x493118=new Set();for(const _0x263ece of _0x12964c){let _0x5522a6=_0x263ece['nextSibling'];for(;_0x5522a6&&_0x5522a6['getAttribute']('listIndent')>_0x263ece['getAttribute']('listIndent');)_0x493118['add'](_0x5522a6),_0x5522a6=_0x5522a6['nextSibling'];}return Array['from'](_0x493118);}(_0x5423c2));});};}_0xc02110['enableCommand']('numberedList',_0x469e0d('numberedList')),_0xc02110['enableCommand']('bulletedList',_0x469e0d('bulletedList')),_0x216c5c&&_0xc02110['enableCommand']('todoList',_0x469e0d('todoList')),_0xc02110['enableCommand']('indentList',_0x3712a4('indentList')),_0xc02110['enableCommand']('outdentList',_0x3712a4('outdentList')),_0x216c5c&&_0xc02110['enableCommand']('checkTodoList',()=>{const _0x2d9dac=_0x39bf48['commands']['get']('checkTodoList'),_0x74b2b=Array['from'](_0x2d9dac['_selectedElements']);_0x74b2b['filter'](_0x4bad3a=>_0x4bad3a['getAttribute']('todoListChecked')!=_0x2d9dac['value']),_0x39bf48['model']['change'](()=>{for(const _0x208500 of _0x74b2b)_0xc02110['markBlockFormat'](_0x208500,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x2d9dac['value']}]});});}),_0xc02110['descriptionFactory']['registerElementLabel']('listItem',_0x557be0=>o(_0x54c863,'ELEMENT_LIST_ITEM',_0x557be0)),_0xc02110['descriptionFactory']['registerDescriptionCallback'](_0x36a503=>{if('formatBlock'!=_0x36a503['type']&&'formatInline'!=_0x36a503['type'])return;const {data:_0x8c819c}=_0x36a503;if(_0x8c819c){if('numberedList'==_0x8c819c['commandName']||'bulletedList'==_0x8c819c['commandName']||'todoList'==_0x8c819c['commandName'])switch(_0x8c819c['commandName']['replace']('List','')){case'bulleted':return _0x2501b5(o(_0x54c863,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2501b5(o(_0x54c863,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2501b5(o(_0x54c863,'ELEMENT_TODO_LIST'));}if('indentList'==_0x8c819c['commandName'])return{'type':'format','content':o(_0x54c863,'*Indent:*\x20%0',o(_0x54c863,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x8c819c['commandName'])return{'type':'format','content':o(_0x54c863,'*Outdent:*\x20%0',o(_0x54c863,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x8c819c['commandName'])return _0x8c819c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x54c863,'*Check\x20item*')}:{'type':'format','content':o(_0x54c863,'*Uncheck\x20item*')};}function _0x2501b5(_0x2146bb){return{'type':'format','content':o(_0x54c863,'*Change\x20to:*\x20%0',_0x2146bb)};}});}}function Le(_0x2377f5){const _0x79ce00=_0x2377f5['getAttribute']('listIndent');if(0x0==_0x79ce00)return _0x2377f5;let _0x2782b7=_0x2377f5;for(;_0x2377f5['previousSibling']&&_0x2377f5['previousSibling']['is']('element','listItem');){const _0x4ea50c=_0x2377f5['previousSibling']['getAttribute']('listIndent');if(_0x4ea50c==_0x79ce00)_0x2782b7=_0x2377f5['previousSibling'];else{if(_0x4ea50c<_0x79ce00)break;}_0x2377f5=_0x2377f5['previousSibling'];}return _0x2782b7;}function Ee(_0x328d7e){const _0x2ec7b1=[];if(_0x328d7e['is']('element','listItem')&&_0x328d7e['getAttribute']('listIndent')>0x0){let _0x3b316a=_0x328d7e['nextSibling'];for(;_0x3b316a&&'listItem'==_0x3b316a['name']&&_0x3b316a['getAttribute']('listIndent')==_0x328d7e['getAttribute']('listIndent');)_0x2ec7b1['push'](_0x3b316a),_0x3b316a=_0x3b316a['nextSibling'];}return _0x2ec7b1;}class wt extends _0x22959f{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x35d7fc=this['editor']['config']['get']('list.properties'),_0xdd5439=this['editor']['plugins']['get']('TrackChangesEditing');_0x35d7fc['styles']&&_0xdd5439['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x35d7fc['reversed']&&_0xdd5439['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x35d7fc['startIndex']&&_0xdd5439['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0xdd5439['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x50a481,_0x35c39c={}){const _0x70946a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1ccaee=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x70946a['markMultiRangeBlockFormat'](_0x1ccaee,{'commandName':'listStyle','commandParams':[{'type':_0x35c39c['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x153345,_0x3c0ccf={}){const _0x3e80e4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x11c864=this['_getSuggestionBlocks'](_0x3bf63c=>_0x3bf63c['is']('element','listItem')&&'numbered'===_0x3bf63c['getAttribute']('listType'));if(_0x11c864['length']<0x1)return;const _0x3ce4ed=_0x11c864['map'](_0xad896a=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xad896a,'before'),this['editor']['model']['createPositionAt'](_0xad896a,0x0)));this['editor']['model']['change'](()=>{_0x3e80e4['markMultiRangeBlockFormat'](_0x3ce4ed,{'commandName':'listReversed','commandParams':[{'reversed':_0x3c0ccf['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x182f04,_0x205fc7={}){const _0x199c41=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1c9e16=this['_getSuggestionBlocks'](_0x5aee54=>_0x5aee54['is']('element','listItem')&&'numbered'===_0x5aee54['getAttribute']('listType'));if(_0x1c9e16['length']<0x1)return;const _0x2d9421=_0x1c9e16['map'](_0x468471=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x468471,'before'),this['editor']['model']['createPositionAt'](_0x468471,0x0)));this['editor']['model']['change'](()=>{_0x199c41['markMultiRangeBlockFormat'](_0x2d9421,{'commandName':'listStart','commandParams':[{'startIndex':_0x205fc7['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x4a0750){if('formatBlock'!=_0x4a0750['type']&&'formatInline'!=_0x4a0750['type'])return;const _0x52706b=this['editor']['locale'],{data:_0x5463e1}=_0x4a0750;if(!_0x5463e1)return;let _0x5bb0b8,_0x329f95;switch(_0x5463e1['commandName']){case'listStyle':_0x5bb0b8='*Change\x20to:*\x20%0',_0x329f95={'type':'format','content':o(_0x52706b,_0x5bb0b8,o(_0x52706b,this['_getTranslationKeyForListStyle'](_0x5463e1['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5bb0b8=_0x5463e1['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x329f95={'type':'format','content':o(_0x52706b,_0x5bb0b8)};break;case'listStart':_0x5bb0b8='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x329f95={'type':'format','content':o(_0x52706b,_0x5bb0b8,_0x5463e1['commandParams'][0x0]['startIndex'])};}return _0x329f95;}['_getSuggestionBlocksForListStyle'](){const _0x5b0e45=this['editor']['plugins']['get']('LegacyListUtils');let _0x4ccffb=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x4ccffb[0x0]?.['is']('element','listItem')&&_0x4ccffb['unshift'](..._0x5b0e45['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x4ccffb[_0x4ccffb['length']-0x1]?.['is']('element','listItem')&&_0x4ccffb['push'](..._0x5b0e45['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x4ccffb=[...new Set(_0x4ccffb)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x4ccffb=_0x4ccffb['filter'](_0x363c56=>_0x363c56['is']('element','listItem'))),_0x4ccffb;}['_getSuggestionBlocks'](_0x3a442c){const _0x2366b8=this['editor']['plugins']['get']('LegacyListUtils');let _0x2d6004=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x3a442c)['map'](_0x1bafd8=>{const _0x2d5db1=this['editor']['model']['createPositionAt'](_0x1bafd8,0x0);return[..._0x2366b8['getSiblingNodes'](_0x2d5db1,'backward'),..._0x2366b8['getSiblingNodes'](_0x2d5db1,'forward')];})['flat']();return _0x2d6004=[...new Set(_0x2d6004)],_0x2d6004;}['_getTranslationKeyForListStyle'](_0x1783f0){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x1783f0)||'default')['toUpperCase']()+'_LIST_'+_0x1783f0['toUpperCase']()['replace'](/-/g,'_');}}class kt extends _0x22959f{['afterInit'](){const _0x5eddf2=this['editor'];if(!_0x5eddf2['plugins']['has']('MediaEmbedEditing'))return;const _0x1c83f5=_0x5eddf2['plugins']['get']('TrackChangesEditing'),_0x3d1e83=_0x5eddf2['locale'];_0x1c83f5['enableCommand']('mediaEmbed'),_0x1c83f5['descriptionFactory']['registerElementLabel']('media',_0x3ef55d=>o(_0x3d1e83,'ELEMENT_MEDIA',_0x3ef55d));}}class bt extends _0x22959f{['afterInit'](){const _0x46d4c7=this['editor'];_0x46d4c7['plugins']['has']('MentionEditing')&&_0x46d4c7['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class yt extends _0x22959f{['afterInit'](){const _0x302eab=this['editor'];if(!_0x302eab['plugins']['has']('MergeFieldsEditing'))return;const _0x3e5875=_0x302eab['plugins']['get']('TrackChangesEditing'),_0x29efd5=_0x302eab['locale'];_0x3e5875['enableCommand']('insertMergeField'),_0x3e5875['enableCommand']('insertMergeFieldBlock'),_0x3e5875['enableCommand']('insertMergeFieldImage'),_0x3e5875['descriptionFactory']['registerElementLabel']('mergeField',_0x35cf2a=>o(_0x29efd5,'ELEMENT_MERGE_FIELD',_0x35cf2a)),_0x3e5875['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x3dec17=>o(_0x29efd5,'ELEMENT_MERGE_FIELD',_0x3dec17)),_0x3e5875['descriptionFactory']['registerDescriptionCallback'](_0x3b9551=>{if('insertion'!=_0x3b9551['type']&&'deletion'!=_0x3b9551['type'])return;const _0x5a35bb=_0x3b9551['getContainedElement']();if(null==_0x5a35bb)return;const _0xaaa64b=_0x302eab['plugins']['get']('MergeFieldsEditing');let _0x2d5e69;switch(_0xaaa64b['getMergeFieldType'](_0x5a35bb)){case null:return;case'image':{const _0x52990d=_0xaaa64b['unwrapAffixes'](_0x5a35bb['getAttribute']('src'));_0x2d5e69=_0xaaa64b['getLabel'](_0x52990d)||_0x52990d;break;}default:{const _0x2a7d17=_0x5a35bb['getAttribute']('id');_0x2d5e69=_0xaaa64b['getLabel'](_0x2a7d17)||_0x2a7d17;break;}}return'insertion'==_0x3b9551['type']?{'type':'insertion','content':o(_0x29efd5,'*Insert:*\x20%0','\x22'+_0x2d5e69+'\x22\x20'+o(_0x29efd5,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x29efd5,'*Remove:*\x20%0','\x22'+_0x2d5e69+'\x22\x20'+o(_0x29efd5,'ELEMENT_MERGE_FIELD'))};});}}class jt extends _0x22959f{['afterInit'](){const _0x597457=this['editor'],_0x22cccd=_0x597457['plugins']['get']('TrackChangesEditing');_0x597457['plugins']['has']('MultiLevelList')&&(_0x22cccd['enableDefaultAttributesIntegration']('multiLevelList'),_0x22cccd['descriptionFactory']['registerDescriptionCallback'](_0x3102d6=>this['handleDescriptions'](_0x3102d6)));}['handleDescriptions'](_0x1b21fa){const _0x479d2d=this['editor']['locale'],{data:_0x128195}=_0x1b21fa,_0x35680e={'type':'format','content':''};if(_0x128195&&'listMarkerStyle'==_0x128195['key']){if(!_0x128195['oldValue'])return{'type':'format','content':o(_0x479d2d,'*Set\x20format:*\x20%0',o(_0x479d2d,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x128195['newValue']+')'};if(!_0x128195['newValue']){let _0x113efa=_0x1b21fa['head'];for(;_0x113efa;){if(_0x113efa['data']&&'listType'==_0x113efa['data']['key']&&_0x113efa['data']['newValue'])return _0x35680e;_0x113efa=_0x113efa['next'];}return{'type':'format','content':o(_0x479d2d,'*Remove\x20format:*\x20%0',o(_0x479d2d,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x128195['oldValue']+')'};}}}}class St extends _0x22959f{['afterInit'](){const _0x563bc6=this['editor'];if(!_0x563bc6['plugins']['has']('PageBreakEditing'))return;_0x563bc6['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x1ff2ef=_0x563bc6['plugins']['get']('TrackChangesEditing'),_0x283eb9=_0x563bc6['locale'];_0x1ff2ef['descriptionFactory']['registerElementLabel']('pageBreak',_0x55d7da=>o(_0x283eb9,'ELEMENT_PAGE_BREAK',_0x55d7da));}}class It extends _0x22959f{['afterInit'](){const _0xc9df4a=this['editor'];if(!_0xc9df4a['plugins']['has']('Paragraph'))return;const _0x227d34=_0xc9df4a['locale'],_0x403840=_0xc9df4a['plugins']['get']('TrackChangesEditing');_0x403840['descriptionFactory']['registerElementLabel']('paragraph',_0x5eb6c2=>o(_0x227d34,'ELEMENT_PARAGRAPH',_0x5eb6c2)),_0x403840['enableDefaultAttributesIntegration']('paragraph'),_0x403840['enableCommand']('insertParagraph');const _0x1baa1e=_0x403840['descriptionFactory'];_0x1baa1e['registerDescriptionCallback'](_0x15892e=>{if('insertion'!==_0x15892e['type'])return;const {start:_0x24f080,end:_0x1bb0ff}=_0x15892e['getFirstRange']();if(!_0x24f080['isTouching'](_0x1bb0ff)||!_0x24f080['nodeAfter'])return;const _0x16ea31=_0xc9df4a['model']['schema'],_0x17ba87=_0x24f080['nodeAfter'];return _0x16ea31['isBlock'](_0x17ba87)&&!_0x16ea31['isLimit'](_0x17ba87)&&_0x16ea31['checkChild'](_0x17ba87,'$text')?{'type':'insertion','content':o(_0x227d34,'*Insert:*\x20%0',_0x1baa1e['getItemLabel'](_0x17ba87,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2b87ff=this['editor'],_0x14273a=_0x2b87ff['locale'];_0x2b87ff['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x55c8f5=>{if('formatBlock'!=_0x55c8f5['type'])return;const {data:_0x44aab5}=_0x55c8f5;return _0x44aab5&&'paragraph'==_0x44aab5['commandName']?{'type':'format','content':o(_0x14273a,'*Change\x20to:*\x20%0',o(_0x14273a,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class At extends _0x22959f{['afterInit'](){const _0xd21b92=this['editor'];_0xd21b92['commands']['get']('replaceSource')&&_0xd21b92['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class _t extends _0x22959f{['afterInit'](){const _0x502e7d=this['editor'];if(!_0x502e7d['plugins']['has']('RemoveFormatEditing'))return;_0x502e7d['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x12fc0b=this['editor'];_0x12fc0b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x570832=>{if('formatBlock'!=_0x570832['type']&&'formatInline'!=_0x570832['type'])return;const {data:_0x1a0069}=_0x570832;return _0x1a0069&&'removeFormat'==_0x1a0069['commandName']?{'type':'format','content':o(_0x12fc0b['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class Ct extends _0x22959f{['afterInit'](){const _0x5b6b4e=this['editor'];if(!_0x5b6b4e['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x458589=_0x5b6b4e['plugins']['get']('TrackChangesEditing');_0x458589['enableCommand']('goToPreviousRestrictedEditingException'),_0x458589['enableCommand']('goToNextRestrictedEditingException');const _0x35748b=_0x5b6b4e['plugins']['get']('RestrictedEditingModeEditing');_0x35748b['enableCommand']('trackChanges'),_0x35748b['enableCommand']('acceptSuggestion'),_0x35748b['enableCommand']('discardSuggestion'),_0x35748b['enableCommand']('acceptAllSuggestions'),_0x35748b['enableCommand']('discardAllSuggestions'),_0x35748b['enableCommand']('acceptSelectedSuggestions'),_0x35748b['enableCommand']('discardSelectedSuggestions');}}class Nt extends _0x22959f{['afterInit'](){const _0x47b011=this['editor'];if(!_0x47b011['plugins']['has']('ShiftEnter'))return;const _0x479900=_0x47b011['plugins']['get']('TrackChangesEditing');_0x479900['enableCommand']('shiftEnter'),_0x479900['descriptionFactory']['registerElementLabel']('softBreak',_0x226c39=>o(_0x47b011['locale'],'ELEMENT_LINE_BREAK',_0x226c39));}}function on(_0x2ecb69,_0x205d59,_0x188653){const _0x399263=[];for(const _0x26db38 of _0x205d59['getItems']())_0x26db38['hasAttribute'](_0x2ecb69)&&_0x399263['push'](_0x188653['createRangeOn'](_0x26db38));return _0x399263;}class $t extends _0x22959f{['afterInit'](){const _0x267747=this['editor'],_0x30ef83=_0x267747['plugins']['get']('TrackChangesEditing');_0x267747['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x30ef83['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x290233=this['editor'],_0x4c5d9c=_0x290233['model'],_0x34e321=_0x290233['locale'],_0x1c9d09=_0x290233['plugins']['get']('TrackChangesEditing'),_0xce05c='restrictedEditingException',_0x297626=_0x290233['commands']['get'](_0xce05c);_0x1c9d09['enableCommand'](_0xce05c,(_0x174489,_0x3d81b7={})=>{const _0x3845ae=_0x4c5d9c['document']['selection'];if(_0x3845ae['isCollapsed'])return void _0x174489(_0x3d81b7);const _0x10d253=void 0x0!==_0x3d81b7['forceValue']?_0x3d81b7['forceValue']:!_0x297626['value'];_0x4c5d9c['change'](()=>{const _0x449253=Array['from'](_0x3845ae['getRanges']());for(const _0x878fff of _0x449253){const _0x152bb3=_0x10d253?[_0x878fff]:on(_0xce05c,_0x878fff,_0x4c5d9c);for(const _0x297878 of _0x152bb3)_0x1c9d09['markInlineFormat'](_0x297878,{'commandName':_0xce05c,'commandParams':[{'forceValue':_0x10d253}]});}});}),_0x1c9d09['descriptionFactory']['registerDescriptionCallback'](_0x242afd=>{if('formatBlock'!=_0x242afd['type']&&'formatInline'!=_0x242afd['type'])return;const {data:_0x2e55c9}=_0x242afd;return _0x2e55c9&&_0x2e55c9['commandName']==_0xce05c?_0x2e55c9['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x34e321,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x34e321,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x5d0a97=this['editor'],_0x57352d=_0x5d0a97['locale'],_0x12eb52=_0x5d0a97['plugins']['get']('TrackChangesEditing'),_0x391845='restrictedEditingExceptionBlock',_0x2f8ff5=this['editor']['commands']['get'](_0x391845);_0x12eb52['enableCommand'](_0x391845,(_0x4543d7,_0x4159a={})=>{const _0x1761aa=this['editor']['model']['document']['selection'],_0x46ab76=_0x4159a&&void 0x0!==_0x4159a['forceValue']?_0x4159a['forceValue']:!_0x2f8ff5['value'];let _0x38cf5b=[];if(_0x46ab76){const _0xfc249a=Array['from'](_0x1761aa['getSelectedBlocks']())['filter'](_0x49aca5=>function(_0x1c49bf){return!!_0x1c49bf['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x49aca5)||function(_0x4b892a,_0x4f0196){const _0x42708a=_0x4f0196['createContext'](_0x4b892a['parent']);if(!_0x4f0196['checkChild'](_0x42708a,'restrictedEditingException'))return!0x1;if(!_0x4f0196['checkChild'](_0x42708a['push']('restrictedEditingException'),_0x4b892a))return!0x1;return!0x0;}(_0x49aca5,this['editor']['model']['schema']));_0x38cf5b=to(_0xfc249a,_0x5d0a97['model']);}else{const _0x4bd7e5=Array['from'](_0x1761aa['getSelectedBlocks']())['map'](_0x1aa001=>function(_0xb95298){let _0x12a9a9=_0xb95298;for(;_0x12a9a9['parent'];){if('restrictedEditingException'==_0x12a9a9['parent']['name'])return _0x12a9a9;_0x12a9a9=_0x12a9a9['parent'];}return null;}(_0x1aa001))['filter'](_0x14af35=>!!_0x14af35);_0x38cf5b=to(_0x4bd7e5,_0x5d0a97['model']);}_0x5d0a97['model']['change'](()=>{for(const _0x5c0059 of _0x38cf5b)_0x12eb52['markBlockFormat'](_0x5c0059,{'commandName':_0x391845,'commandParams':[{'forceValue':_0x46ab76}]});});}),_0x12eb52['descriptionFactory']['registerDescriptionCallback'](_0x1523e0=>{const {data:_0x462712}=_0x1523e0;if(_0x462712&&_0x462712['commandName']==_0x391845)return _0x462712['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x57352d,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x57352d,'FORMAT_RESTRICTED_DISABLED')};});}}class vt extends _0x22959f{['afterInit'](){const _0x458a32=this['editor'];if(!_0x458a32['plugins']['has']('Style')||!_0x458a32['plugins']['has']('DataSchema'))return;const _0x2a39c4=_0x458a32['plugins']['get']('TrackChangesEditing'),_0x5a983a=_0x458a32['locale'],_0x4651f2=_0x458a32['config']['get']('style')||{},_0x2f6154=_0x458a32['plugins']['get']('GeneralHtmlSupport'),_0x368203=_0x458a32['plugins']['get']('StyleUtils')['normalizeConfig'](_0x458a32['plugins']['get']('DataSchema'),_0x4651f2['definitions']);_0x2a39c4['enableDefaultAttributesIntegration']('style');const _0x2d092b=new Set();for(const _0x1de23d of _0x368203['block']){const _0x38918c=_0x2f6154['getGhsAttributeNameForElement'](_0x1de23d['element']);_0x2d092b['add'](_0x38918c);}const _0x160486=new Set();for(const _0x4703d7 of _0x368203['inline']){const _0x233638=_0x2f6154['getGhsAttributeNameForElement'](_0x4703d7['element']);_0x160486['add'](_0x233638);for(const _0x35d826 of _0x4703d7['ghsAttributes'])_0x160486['add'](_0x35d826);}for(const _0x1260d9 of _0x2d092b)_0x2a39c4['descriptionFactory']['registerAttributeLabel'](_0x1260d9,o(_0x5a983a,'FORMAT_STYLE'));for(const _0x9d04b2 of _0x160486)_0x2a39c4['descriptionFactory']['registerAttributeLabel'](_0x9d04b2,o(_0x5a983a,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x34c983=this['editor'],_0x52c143=_0x34c983['locale'];_0x34c983['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x305613=>{if('formatBlock'!=_0x305613['type']&&'formatInline'!=_0x305613['type'])return;const {data:_0x23ba19}=_0x305613;return _0x23ba19&&'style'===_0x23ba19['commandName']?_0x23ba19['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x52c143,'*Set\x20format:*\x20%0',_0x23ba19['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x52c143,'*Remove\x20format:*\x20%0',_0x23ba19['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Dt extends _0x22959f{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x3fd61b){super(_0x3fd61b),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x362123=this['editor'],_0x496690=_0x362123['model']['document']['selection'];if(!_0x362123['plugins']['has']('TableEditing'))return;const _0x53efe1=_0x362123['locale'],_0x1efc19=_0x362123['plugins']['get']('TrackChangesEditing'),_0x121a8d=_0x362123['plugins']['get']('TableUtils');_0x1efc19['descriptionFactory']['registerElementLabel']('table',_0x2e4925=>o(_0x53efe1,'ELEMENT_TABLE',_0x2e4925)),this['_setupColumnsRowsFixing'](),_0x1efc19['enableCommand']('insertTable'),_0x1efc19['enableCommand']('selectTableRow'),_0x1efc19['enableCommand']('selectTableColumn');for(const _0x21a8d3 of['insertTableRowAbove','insertTableRowBelow']){const _0x360389=_0x362123['commands']['get'](_0x21a8d3);_0x1efc19['enableCommand'](_0x21a8d3,_0x377b0a=>{_0x362123['model']['change'](_0x3ddbe4=>{_0x377b0a();const _0x2e72c8='above'===_0x360389['order'],_0x233c32=_0x121a8d['getSelectionAffectedTableCells'](_0x496690),_0x3bacf6=_0x121a8d['getRowIndexes'](_0x233c32),_0x86ca63=_0x2e72c8?_0x3bacf6['first']-0x1:_0x3bacf6['last']+0x1,_0x3ffeb6=_0x233c32[0x0]['findAncestor']('table'),_0x5e5d64=_0x121a8d['createTableWalker'](_0x3ffeb6,{'startRow':_0x86ca63,'endRow':_0x86ca63}),_0xbfa496=Array['from'](_0x5e5d64)['map'](_0x4e3216=>_0x3ddbe4['createRangeOn'](_0x4e3216['cell']));_0x1efc19['markMultiRangeInsertion'](_0xbfa496,'tableRow');});});}for(const _0x26402e of['insertTableColumnLeft','insertTableColumnRight']){const _0x530039=_0x362123['commands']['get'](_0x26402e);_0x1efc19['enableCommand'](_0x26402e,_0x1a7301=>{_0x362123['model']['change'](_0x490aaf=>{_0x1a7301();const _0x2716ca='left'===_0x530039['order'],_0x111b96=_0x121a8d['getSelectionAffectedTableCells'](_0x496690),_0x203448=_0x121a8d['getColumnIndexes'](_0x111b96),_0x60fc9c=_0x2716ca?_0x203448['first']-0x1:_0x203448['last']+0x1,_0x589dd5=_0x111b96[0x0]['findAncestor']('table'),_0xe97c61=_0x121a8d['createTableWalker'](_0x589dd5,{'startRow':0x0,'column':_0x60fc9c,'includeAllSlots':!0x1}),_0xfa29fb=Array['from'](_0xe97c61)['map'](_0x1d2304=>_0x490aaf['createRangeOn'](_0x1d2304['cell']));_0x1efc19['markMultiRangeInsertion'](_0xfa29fb,'tableColumn');});});}for(const _0x53daa9 of['removeTableRow','removeTableColumn']){const _0x4c63a6=_0x53daa9['substr'](0xb),_0x53c489=_0x4c63a6['toLowerCase'](),_0xe965ff=_0x53c489['substr'](0x0,0x3)+'span',_0x556737='table'+_0x4c63a6,_0x546d2a='min'+_0x4c63a6,_0x318e57='max'+_0x4c63a6;_0x1efc19['enableCommand'](_0x53daa9,()=>{_0x362123['model']['change'](_0x524aef=>{const _0x52342a=_0x121a8d['getSelectionAffectedTableCells'](_0x496690),_0x3fc33a=_0x52342a[0x0]['findAncestor']('table');let _0x4d8ba7;if('removeTableRow'==_0x53daa9){const _0x3adc81=_0x121a8d['getRowIndexes'](_0x52342a);_0x4d8ba7={'startRow':_0x3adc81['first'],'endRow':_0x3adc81['last'],'includeAllSlots':!0x0};}else{const _0x4a05a3=_0x121a8d['getColumnIndexes'](_0x52342a);_0x4d8ba7={'startColumn':_0x4a05a3['first'],'endColumn':_0x4a05a3['last'],'includeAllSlots':!0x0};}const _0x10ea13=_0x121a8d['createTableWalker'](_0x3fc33a,_0x4d8ba7),_0x44cccb=Array['from'](_0x10ea13)['map'](({cell:_0x270365})=>_0x270365),_0x252687=_e(_0x44cccb['filter'](_0x53c65f=>_0x53c65f['hasAttribute'](_0xe965ff))),_0x321581=_e(_0x44cccb['filter'](_0x5a7eca=>!_0x5a7eca['hasAttribute'](_0xe965ff)))['map'](_0x2916a2=>_0x524aef['createRangeOn'](_0x2916a2)),_0x4ca3fe=_0x1efc19['markMultiRangeDeletion'](_0x321581,_0x556737);if(_0x4ca3fe&&('tableRow'==_0x4ca3fe['subType']||'tableColumn'==_0x4ca3fe['subType'])){const _0x749efc=this['_getSuggestionCoords'](_0x4ca3fe);for(const _0x48f9e7 of _0x252687){const _0x5a6ca0=_0x524aef['createRangeOn'](_0x48f9e7),_0x27b941=_0x121a8d['getCellLocation'](_0x48f9e7),_0x7f4e31=_0x48f9e7['getAttribute'](_0xe965ff)-0x1,_0x546c60=_0x749efc[_0x546d2a],_0x3767d3=_0x749efc[_0x318e57];_0x546c60<=_0x27b941[_0x53c489]&&_0x27b941[_0x53c489]+_0x7f4e31<=_0x3767d3&&_0x4ca3fe['addRange'](_0x5a6ca0);}}});});}function _0x4f2b5a(_0x286942){const _0x1151d5=Array['from'](_0x496690['getRanges']())['map'](_0x2b38c0=>_0xfc1203['fromRange'](_0x2b38c0));_0x362123['model']['change'](_0x1df1f6=>{const _0x3b83fc=_0x1df1f6['batch'];_0x286942=_0x286942['filter'](_0x19d32c=>'$graveyard'!=_0x19d32c['root']['rootName']),_0x1df1f6['setSelection'](_0x286942),_0x362123['commands']['get']('removeTableRow')['refresh'](),_0x362123['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x362123['model']['enqueueChange'](()=>{_0x362123['model']['enqueueChange'](_0x3b83fc,_0x4bbecd=>{const _0x5b258f=_0x1151d5['filter'](_0x50c56a=>'$graveyard'!=_0x50c56a['root']['rootName']);_0x5b258f['length']>0x0&&_0x4bbecd['setSelection'](_0x5b258f);for(const _0x412948 of _0x1151d5)_0x412948['detach']();});});});}function _0x41eec0(_0x266a4e){_0x362123['model']['change'](_0x43176f=>{const _0x268fa1=Array['from'](_0x496690['getRanges']())['map'](_0x8e820f=>_0xfc1203['fromRange'](_0x8e820f)),_0x5e7dae=[];for(const _0x385728 of _0x266a4e)for(const _0x5c808 of _0x385728['getItems']({'shallow':!0x0}))_0x5e7dae['push'](_0x5c808);for(const _0x388e3a of _0x5e7dae)'$graveyard'!=_0x388e3a['root']['rootName']&&(_0x43176f['setSelection'](_0x43176f['createPositionAt'](_0x388e3a,0x0)),_0x362123['commands']['get']('removeTableColumn')['refresh'](),_0x362123['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x158523=_0x268fa1['filter'](_0x35bac7=>'$graveyard'!=_0x35bac7['root']['rootName']);_0x158523['length']>0x0&&_0x43176f['setSelection'](_0x158523);for(const _0x25c33d of _0x268fa1)_0x25c33d['detach']();});}function _0x103d0d(_0x3db4ee,_0x5c1611){return _0x5c1611['every'](_0x26a557=>_0x3db4ee['some'](_0x37d07c=>_0x37d07c['end']['isEqual'](_0x26a557['start'])||_0x26a557['end']['isEqual'](_0x37d07c['start'])));}function _0x93c31a(_0x2a4394,_0x20a6b3){return!_0x2a4394['some'](_0x98362c=>_0x20a6b3['some'](_0x15f93a=>_0x98362c['isIntersecting'](_0x15f93a)))&&_0x2a4394['some'](_0x3401ee=>_0x20a6b3['some'](_0x17c2a9=>_0x3401ee['end']['isTouching'](_0x17c2a9['start'])));}_0x1efc19['descriptionFactory']['registerDescriptionCallback'](_0x948b67=>{if('insertion'!=_0x948b67['type']&&'deletion'!=_0x948b67['type'])return;const _0x4c4c04=_0x948b67['getContainedElement']();if(null!=_0x4c4c04&&_0x4c4c04['is']('element','table')){if('insertion'==_0x948b67['type']){const _0x5e3b6a=_0x948b67['getItems']()['filter'](_0x3980b7=>_0x3980b7['is']('$textProxy'))['map'](_0x37bb4a=>_0x37bb4a['data']);if(_0x5e3b6a['length'])return{'type':'insertion','content':o(_0x53efe1,'*Insert:*\x20%0',o(_0x53efe1,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5e3b6a['join']('\x20')+'\x22'))};}if('deletion'==_0x948b67['type']){const _0x1fac6c=_0x948b67['getItems']()['filter'](_0x5a4593=>_0x5a4593['is']('$textProxy'))['map'](_0x1c283c=>_0x1c283c['data']);if(_0x1fac6c['length'])return{'type':'deletion','content':o(_0x53efe1,'*Remove:*\x20%0',o(_0x53efe1,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1fac6c['join']('\x20')+'\x22'))};}}}),_0x1efc19['descriptionFactory']['registerDescriptionCallback'](_0x1ec8e0=>{if('tableRow'==_0x1ec8e0['subType']){const _0x510bf8=_0x1ec8e0['getItems']()['filter'](_0x56ef55=>_0x56ef55['is']('$textProxy'))['map'](_0x223a10=>_0x223a10['data']),_0x4181d5=this['_getSuggestionCoords'](_0x1ec8e0),_0xcabd67=_0x4181d5['maxRow']-_0x4181d5['minRow']+0x1;if('insertion'==_0x1ec8e0['type'])return _0x510bf8['length']?{'type':'insertion','content':o(_0x53efe1,'*Insert:*\x20%0',o(_0x53efe1,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xcabd67,'\x22'+_0x510bf8['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x53efe1,'*Insert:*\x20%0',o(_0x53efe1,'ELEMENT_TABLE_ROW',_0xcabd67))};if('deletion'==_0x1ec8e0['type'])return _0x510bf8['length']?{'type':'deletion','content':o(_0x53efe1,'*Remove:*\x20%0',o(_0x53efe1,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xcabd67,'\x22'+_0x510bf8['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x53efe1,'*Remove:*\x20%0',o(_0x53efe1,'ELEMENT_TABLE_ROW',_0xcabd67))};}if('tableColumn'==_0x1ec8e0['subType']){const _0x526b48=_0x1ec8e0['getItems']()['filter'](_0x5bf2a6=>_0x5bf2a6['is']('$textProxy'))['map'](_0x593a79=>_0x593a79['data']),_0x32ca31=this['_getSuggestionCoords'](_0x1ec8e0),_0x24ec31=_0x32ca31['maxColumn']-_0x32ca31['minColumn']+0x1;if('insertion'==_0x1ec8e0['type'])return _0x526b48['length']?{'type':'insertion','content':o(_0x53efe1,'*Insert:*\x20%0',o(_0x53efe1,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x24ec31,'\x22'+_0x526b48['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x53efe1,'*Insert:*\x20%0',o(_0x53efe1,'ELEMENT_TABLE_COLUMN',_0x24ec31))};if('deletion'==_0x1ec8e0['type'])return _0x526b48['length']?{'type':'deletion','content':o(_0x53efe1,'*Remove:*\x20%0',o(_0x53efe1,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x24ec31,'\x22'+_0x526b48['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x53efe1,'*Remove:*\x20%0',o(_0x53efe1,'ELEMENT_TABLE_COLUMN',_0x24ec31))};}}),_0x1efc19['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x4f2b5a),_0x1efc19['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x4f2b5a),_0x1efc19['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x41eec0),_0x1efc19['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x41eec0),_0x1efc19['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x103d0d),_0x1efc19['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x103d0d),_0x1efc19['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x93c31a),_0x1efc19['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x93c31a);}['_acceptFormatSuggestionCallbackFactory'](){const _0x4c163f=this['editor'],_0x27905c=_0x4c163f['model']['document']['selection'];return(_0x448e45,_0x57e865)=>{_0x4c163f['model']['change'](_0x2b66cd=>{const {commandName:_0x347fc5,commandParams:_0x3135c8}=_0x57e865;let _0x2da291=_0x448e45[0x0]['end']['nodeBefore'];_0x3135c8&&_0x3135c8[0x0]&&!0x1===_0x3135c8[0x0]['forceValue']&&(_0x2da291=_0x448e45[0x0]['start']['nodeAfter']);const _0x44d884=_0x2b66cd['createRangeIn'](_0x2da291);if('$graveyard'==_0x44d884['root']['rootName'])return;const _0x416d6a=Array['from'](_0x27905c['getRanges']())['map'](_0x1292fd=>_0xfc1203['fromRange'](_0x1292fd));_0x2b66cd['setSelection'](_0x44d884),_0x4c163f['commands']['get'](_0x347fc5)['refresh'](),_0x3135c8['push']({'forceDefaultExecution':!0x0}),_0x4c163f['execute'](_0x347fc5,..._0x3135c8);const _0x5230ab=_0x416d6a['filter'](_0xe11c82=>'$graveyard'!=_0xe11c82['root']['rootName']);_0x5230ab['length']>0x0&&_0x2b66cd['setSelection'](_0x5230ab);for(const _0x21319b of _0x416d6a)_0x21319b['detach']();});};}['_getCoordsForCells'](_0x338849){const _0xbe1d32=this['editor']['plugins']['get']('TableUtils');let _0x2b20b0=Number['MAX_SAFE_INTEGER'],_0x2fcc63=Number['MIN_SAFE_INTEGER'],_0x2c0d1e=Number['MAX_SAFE_INTEGER'],_0x16f3ea=Number['MIN_SAFE_INTEGER'];for(const _0x4547ee of _0x338849){if('$graveyard'==_0x4547ee['root']['rootName'])continue;const {row:_0x30925c,column:_0xd0b453}=_0xbe1d32['getCellLocation'](_0x4547ee),_0x56d4c6=_0x4547ee['hasAttribute']('rowspan')?_0x4547ee['getAttribute']('rowspan')-0x1:0x0,_0x1fec9e=_0x4547ee['hasAttribute']('colspan')?_0x4547ee['getAttribute']('colspan')-0x1:0x0;_0x2b20b0=_0x30925c<_0x2b20b0?_0x30925c:_0x2b20b0,_0x2fcc63=_0x30925c+_0x56d4c6>_0x2fcc63?_0x30925c+_0x56d4c6:_0x2fcc63,_0x2c0d1e=_0xd0b453<_0x2c0d1e?_0xd0b453:_0x2c0d1e,_0x16f3ea=_0xd0b453+_0x1fec9e>_0x16f3ea?_0xd0b453+_0x1fec9e:_0x16f3ea;}return{'minRow':_0x2b20b0,'maxRow':_0x2fcc63,'minColumn':_0x2c0d1e,'maxColumn':_0x16f3ea};}['_setupColumnsRowsFixing'](){const _0x3051ec=this['editor'],_0x106adf=_0x3051ec['plugins']['get']('TrackChangesEditing'),_0x4cd751=_0x3051ec['plugins']['get']('TableUtils');_0x3051ec['model']['document']['on']('change:data',()=>{const _0x938cf9=Array['from'](_0x3051ec['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1343b6,data:_0x5afa96}of _0x938cf9){const {group:_0x1ac165,id:_0x48dc9b,subType:_0xe647ea}=_0x106adf['_splitMarkerName'](_0x1343b6);if('suggestion'!=_0x1ac165)continue;if(null!=_0x5afa96['oldRange'])continue;const _0x4d9d8f=_0x106adf['getSuggestion'](_0x48dc9b);this['_tablePostFixingSubtypes']['includes'](_0xe647ea)&&this['_tableSuggestions']['add'](_0x4d9d8f);}},{'priority':'low'});const _0x13ae3d=(_0x406ef5,_0x4366ee)=>{let _0xa0250f=!0x1;const _0x47c413=_0x4366ee['createRangeOn'](_0x406ef5),_0x445922=_0x406ef5['findAncestor']('table'),_0x42199c=_0x4cd751['getCellLocation'](_0x406ef5);for(const _0xc21bf1 of this['_tableSuggestions']){const _0x5e9a2a=_0xc21bf1['subType'],_0x3e75e7=_0x5e9a2a['startsWith']('tablePaste'),_0x27c6fb=_0x5e9a2a['substr'](_0x3e75e7?0xa:0x5),_0x5bdff3=_0x27c6fb['toLowerCase'](),_0x47c63e=_0x5bdff3['substr'](0x0,0x3)+'span',_0x3b038b='min'+_0x27c6fb,_0x2bb763='max'+_0x27c6fb;if(!_0xc21bf1['isInContent'])continue;if(_0x445922!=_0xc21bf1['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0xc21bf1['isIntersectingWithRange'](_0x47c413))continue;const _0x1696cf=_0x406ef5['hasAttribute'](_0x47c63e)?_0x406ef5['getAttribute'](_0x47c63e)-0x1:0x0,_0x598d77=this['_getSuggestionCoords'](_0xc21bf1),_0x3d5cbd=_0x598d77[_0x3b038b],_0x3ef6d4=_0x598d77[_0x2bb763];_0x3d5cbd<=_0x42199c[_0x5bdff3]&&_0x42199c[_0x5bdff3]+_0x1696cf<=_0x3ef6d4&&(_0xc21bf1['addRange'](_0x47c413),_0xa0250f=!0x0);}return _0xa0250f;};_0x3051ec['model']['document']['registerPostFixer'](_0x523654=>{let _0x17ca91=!0x1;for(const _0x3ca055 of _0x3051ec['model']['document']['differ']['getChanges']())if('insert'==_0x3ca055['type']){if('tableRow'==_0x3ca055['name']){for(const _0x599995 of _0x3ca055['position']['nodeAfter']['getChildren']())_0x17ca91=_0x17ca91||_0x13ae3d(_0x599995,_0x523654);}else'tableCell'==_0x3ca055['name']&&(_0x17ca91=_0x17ca91||_0x13ae3d(_0x3ca055['position']['nodeAfter'],_0x523654));}return _0x17ca91;});}['_getSuggestionCoords'](_0x313d25){return this['_getCoordsForCells'](_0x313d25['getRanges']()['map'](_0x125274=>_0x125274['start']['nodeAfter']));}}function _e(_0x4e8169){return Array['from'](new Set(_0x4e8169)['values']());}class Bt extends _0x22959f{static get['requires'](){return[Dt];}['afterInit'](){const _0x3a0141=this['editor'],_0x365275=_0x3a0141['model']['document']['selection'],_0x1e240b=_0x3a0141['locale'];if(!_0x3a0141['plugins']['has']('TableEditing'))return;const _0x512711=_0x3a0141['plugins']['get']('TrackChangesEditing'),_0x54e0e9=_0x3a0141['plugins']['get']('TableUtils'),_0x3ca765=_0x3a0141['plugins']['get'](Dt);_0x3ca765['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x512711['enableCommand']('mergeTableCells',()=>{const _0x5cb310=_0x54e0e9['getSelectionAffectedTableCells'](_0x3a0141['model']['document']['selection']);_0x3a0141['model']['change'](()=>{_0x512711['markMultiRangeBlockFormat'](_0x5cb310,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x3a0141['commands']['get']('mergeTableCells')['on']('execute',(_0x339759,_0xbfa761)=>{_0x3a0141['commands']['get']('trackChanges')['value']&&(_0xbfa761['length']>0x0&&_0xbfa761[_0xbfa761['length']-0x1]&&_0xbfa761[_0xbfa761['length']-0x1]['forceDefaultExecution']||_0x512711['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x339759['stop']());},{'priority':'highest'});for(const _0x13e1ed of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x1aec60=_0x3a0141['commands']['get'](_0x13e1ed);_0x512711['enableCommand'](_0x13e1ed,()=>{const _0x169194=_0x3a0141['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1b7b61=>_0x1b7b61['is']('element','tableCell')),_0xcae638=_0x1aec60['value'];_0x3a0141['model']['change'](()=>{_0x512711['markMultiRangeBlockFormat']([_0x169194,_0xcae638],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x3d063f of['splitTableCellVertically','splitTableCellHorizontally']){const _0x30b08e=_0x3a0141['commands']['get'](_0x3d063f);_0x512711['enableCommand'](_0x3d063f,()=>{const _0x1bb491=_0x54e0e9['getSelectionAffectedTableCells'](_0x3a0141['model']['document']['selection'])[0x0],_0xffc6ab=_0x1bb491['findAncestor']('table'),{column:_0x332727,row:_0x5b6bc2}=_0x54e0e9['getCellLocation'](_0x1bb491);let _0x50fe41=[];if('horizontally'==_0x30b08e['direction']){const _0x2425f5=_0x54e0e9['createTableWalker'](_0xffc6ab,{'startRow':_0x5b6bc2,'endRow':_0x5b6bc2,'includeAllSlots':!0x0});_0x50fe41=Array['from'](_0x2425f5)['map'](_0x5a94f2=>_0x5a94f2['cell']);}else{const _0xf0ecf1=_0x54e0e9['createTableWalker'](_0xffc6ab,{'column':_0x332727,'includeAllSlots':!0x0});_0x50fe41=Array['from'](_0xf0ecf1)['map'](_0x57b09c=>_0x57b09c['cell']);}_0x3a0141['model']['change'](_0xcdf52f=>{_0x512711['markBlockFormat'](_0xcdf52f['createRangeOn'](_0x1bb491),{'commandName':_0x3d063f,'commandParams':[]},_0x50fe41,_0x3d063f);});});}_0x512711['descriptionFactory']['registerDescriptionCallback'](_0x2516c7=>{if('formatBlock'!=_0x2516c7['type']&&'formatInline'!=_0x2516c7['type'])return;const {data:_0x3e1582}=_0x2516c7;return _0x3e1582&&'mergeTableCells'==_0x3e1582['commandName']?{'type':'format','content':o(_0x1e240b,'*Merge\x20cells*')}:void 0x0;}),_0x512711['descriptionFactory']['registerDescriptionCallback'](_0x64757c=>{if('formatBlock'!=_0x64757c['type']&&'formatInline'!=_0x64757c['type'])return;const {data:_0x443238}=_0x64757c;return _0x443238?'splitTableCellVertically'==_0x443238['commandName']?{'type':'format','content':o(_0x1e240b,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x443238['commandName']?{'type':'format','content':o(_0x1e240b,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x2eccb8=_0x3ca765['_acceptFormatSuggestionCallbackFactory']();for(const _0x1da231 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x512711['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1da231,'accept',_0x2eccb8);for(const _0x564095 of['splitTableCellVertically','splitTableCellHorizontally'])_0x512711['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x564095,'accept',_0x2eccb8);_0x512711['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x8596fa=>{_0x3a0141['model']['change'](_0x1e2680=>{const _0x1f5460=Array['from'](_0x365275['getRanges']())['map'](_0x38e9c5=>_0xfc1203['fromRange'](_0x38e9c5));_0x1e2680['setSelection'](_0x8596fa),_0x3a0141['commands']['get']('mergeTableCells')['refresh'](),_0x3a0141['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x2515f0=_0x1f5460['filter'](_0x26d145=>'$graveyard'!=_0x26d145['root']['rootName']);_0x2515f0['length']>0x0&&_0x1e2680['setSelection'](_0x2515f0);for(const _0x1108ee of _0x1f5460)_0x1108ee['detach']();});});for(const _0x138f97 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x30b787=_0x3a0141['commands']['get'](_0x138f97);_0x30b787['on']('set:isEnabled',(_0x21cdfa,_0x4cd63e,_0x30876e)=>{if(_0x30876e){const _0x51a05e=_0x3a0141['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x11215a=>_0x11215a['is']('element','tableCell'));this['_areMergableCells'](_0x30b787['value'],_0x51a05e)||(_0x21cdfa['return']=!0x1,_0x21cdfa['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x47f7af=this['editor']['commands']['get']('mergeTableCells'),_0x5983d8=this['editor']['plugins']['get']('TableUtils');if(!_0x47f7af['isEnabled'])return!0x1;const _0x125513=_0x5983d8['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x3ed497 of _0x125513)for(const _0x215f54 of _0x125513)if(_0x3ed497!=_0x215f54&&!this['_areMergableCells'](_0x3ed497,_0x215f54))return!0x1;return!0x0;}['_areMergableCells'](_0x3ce4aa,_0x5c6197){const _0x1a5214=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2436ab=this['editor']['model']['createRangeOn'](_0x3ce4aa),_0xedffbb=this['editor']['model']['createRangeOn'](_0x5c6197),_0x39c18d=new Set(),_0x48746e=new Set();for(const _0x5f5511 of _0x1a5214['getSuggestions']())if(('insertion'==_0x5f5511['type']||'deletion'==_0x5f5511['type']||'mergeTableCells'==_0x5f5511['subType'])&&_0x5f5511['isInContent']){for(const _0x20d84d of _0x5f5511['getRanges']())_0x20d84d['containsRange'](_0x2436ab,!0x0)&&_0x39c18d['add'](_0x5f5511['type']+':'+_0x5f5511['author']['id']),_0x20d84d['containsRange'](_0xedffbb,!0x0)&&_0x48746e['add'](_0x5f5511['type']+':'+_0x5f5511['author']['id']);}if(_0x39c18d['size']!=_0x48746e['size'])return!0x1;for(const _0x4211c6 of _0x39c18d)if(!_0x48746e['has'](_0x4211c6))return!0x1;return!0x0;}}class Ot extends _0x22959f{static get['requires'](){return[Dt];}['afterInit'](){const _0x35cf44=this['editor'];if(!_0x35cf44['plugins']['has']('TableEditing'))return;const _0x447d0a=_0x35cf44['locale'],_0x42e5db=_0x35cf44['plugins']['get']('TrackChangesEditing');_0x42e5db['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x42e5db['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x42e5db['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x447d0a,'FORMAT_HEADER_ROW')),_0x42e5db['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x447d0a,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x16255a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x11a3e8=this['editor']['plugins']['get'](Dt)['_acceptFormatSuggestionCallbackFactory']();_0x16255a['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x11a3e8),_0x16255a['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x11a3e8),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0xb394ad=this['editor']['plugins']['get']('TrackChangesEditing'),_0x43b21b=this['editor']['plugins']['get']('TableUtils');function _0x3faf6e({showActiveMarker:_0x1c4ab8=!0x0,setDataAttribute:_0x12a865=!0x0}={}){return(_0x38292b,_0x112395,_0x2b49f7)=>{const {type:_0x4610b0,id:_0x259e36}=_0xb394ad['_splitMarkerName'](_0x112395['markerName']);if(!_0xb394ad['hasSuggestion'](_0x259e36))return;const _0x1d1ceb=_0xb394ad['getSuggestion'](_0x259e36),_0x39d00f=_0x1d1ceb['data'];if('formatBlock'!=_0x1d1ceb['type']||!_0x39d00f||'setTableColumnHeader'!=_0x39d00f['commandName'])return;if(_0x112395['item'])return void _0x38292b['stop']();if(!_0x2b49f7['consumable']['consume'](_0x112395['markerRange'],_0x38292b['name']))return;const _0x329b82=_0x112395['markerRange']['start']['nodeAfter'],_0x279610=_0x112395['markerRange']['end']['nodeBefore'],_0x473ac9=_0x329b82['parent']['parent'],{column:_0x1cba14}=_0x43b21b['getCellLocation'](_0x329b82),{column:_0x4c09c7}=_0x43b21b['getCellLocation'](_0x279610);for(let _0x40be8b=_0x1cba14;_0x40be8b<=_0x4c09c7;_0x40be8b++){const _0xd2239f=_0x43b21b['createTableWalker'](_0x473ac9,{'column':_0x40be8b,'includeAllSlots':!0x1});for(const _0x29ff4c of _0xd2239f){const _0x1c48a9=_0x29ff4c['cell'],_0x5cc890=_0x2b49f7['mapper']['toViewElement'](_0x1c48a9);_0x2b49f7['writer']['addClass']('ck-suggestion-marker-'+_0x4610b0,_0x5cc890),_0x12a865&&_0x2b49f7['writer']['setAttribute']('data-suggestion',_0x259e36,_0x5cc890),_0x2b49f7['mapper']['bindElementToMarker'](_0x5cc890,_0x112395['markerName']),_0x1c4ab8&&(_0xb394ad['activeMarkers']['includes'](_0x112395['markerName'])?_0x2b49f7['writer']['addClass']('ck-suggestion-marker--active',_0x5cc890):_0x2b49f7['writer']['removeClass']('ck-suggestion-marker--active',_0x5cc890));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x3faf6e(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5536bd,_0x29ea61,_0x22f337)=>{_0x22f337['options']['showSuggestionHighlights']&&_0x3faf6e({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x5536bd,_0x29ea61,_0x22f337);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x478cd5,_0x2c92e1,_0x17064a)=>{const {type:_0x1b3a01,id:_0x42fd22}=_0xb394ad['_splitMarkerName'](_0x2c92e1['markerName']);if(!_0xb394ad['hasSuggestion'](_0x42fd22))return;const _0x52f59a=_0xb394ad['getSuggestion'](_0x42fd22),_0x252b56=_0x52f59a['data'];if('formatBlock'!=_0x52f59a['type']||!_0x252b56||'setTableColumnHeader'!=_0x252b56['commandName'])return;const _0x5d5392=_0x17064a['mapper']['markerNameToElements'](_0x2c92e1['markerName']);if(_0x5d5392){for(const _0x11280b of _0x5d5392)_0x17064a['writer']['removeClass']('ck-suggestion-marker-'+_0x1b3a01,_0x11280b),_0x17064a['writer']['removeClass']('ck-suggestion-marker--active',_0x11280b),_0x17064a['writer']['removeAttribute']('data-suggestion',_0x11280b),_0x17064a['mapper']['unbindElementFromMarkerName'](_0x11280b,_0x2c92e1['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x549b94=this['editor'],_0x4ef78e=_0x549b94['locale'];function _0x457275(_0x3c2e2c){return{'type':'format','content':o(_0x4ef78e,'*Format:*\x20%0',_0x3c2e2c)};}_0x549b94['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x59b211=>{if('formatBlock'!=_0x59b211['type'])return;const {data:_0x43194a}=_0x59b211;if(_0x43194a){if('setTableRowHeader'==_0x43194a['commandName']){const _0x1e226d=_0x43194a['commandParams'][0x0]['forceValue'];return _0x457275(o(_0x4ef78e,_0x1e226d?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x43194a['commandName']){const _0x5e8ac8=_0x43194a['commandParams'][0x0]['forceValue'];return _0x457275(o(_0x4ef78e,_0x5e8ac8?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class xt extends _0x22959f{['afterInit'](){const _0x42565d=this['editor'],_0x3e3e3d=_0x42565d['locale'],_0x4d5b0f=_0x42565d['plugins']['get']('TrackChangesEditing');function _0x40f526(_0x1c967f){return{'type':'format','content':''+o(_0x3e3e3d,'*Set\x20table\x20type:*\x20%0',_0x1c967f)};}_0x42565d['plugins']['has']('TableLayout')&&(_0x4d5b0f['enableCommand']('insertTableLayout'),_0x4d5b0f['enableDefaultAttributesIntegration']('tableType'),_0x4d5b0f['descriptionFactory']['registerElementLabel'](_0x299006=>_0x299006['is']('element','table')&&'layout'===_0x299006['getAttribute']('tableType'),_0x22ce53=>o(_0x3e3e3d,'ELEMENT_LAYOUT_TABLE',_0x22ce53)),_0x4d5b0f['descriptionFactory']['registerDescriptionCallback'](_0x460652=>{const {data:_0x505c33}=_0x460652;if(_0x505c33&&'tableType'==_0x505c33['key'])switch(_0x505c33['newValue']){case'layout':return _0x40f526(o(_0x3e3e3d,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x40f526(o(_0x3e3e3d,'ELEMENT_CONTENT_TABLE'));}}));}}const Re=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ae=/* #__PURE__ -- @preserve */
|
|
25
|
+
Object['fromEntries'](Re['map'](_0x5c9657=>[_0x5c9657,null]));class Mt extends _0x22959f{static get['requires'](){return[Dt];}['afterInit'](){const _0xc9fb95=this['editor'];if(!_0xc9fb95['plugins']['has']('TableClipboard'))return;const _0x197c48=_0xc9fb95['plugins']['get']('TrackChangesEditing'),_0x30eab4=_0xc9fb95['plugins']['get']('TableUtils'),_0x4ada52=_0xc9fb95['plugins']['get'](Dt),_0xbad527=_0xc9fb95['plugins']['get']('TableClipboard'),_0x5a553f=_0xc9fb95['plugins']['get']('TableSelection'),_0x155b2c=_0xc9fb95['plugins']['get'](_0xea6e8f);_0x4ada52['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0xc9fb95['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0xc9fb95['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x579ce4=null,_0x4d0bef=!0x1;_0x155b2c['on']('contentInsertion',(_0x5f16a2,_0x4ec4aa)=>{_0x4d0bef='paste'===_0x4ec4aa['method'];}),_0xc9fb95['model']['on']('insertContent',(_0x48164f,_0x39dd5f)=>{if(!_0x4d0bef&&null===_0x5a553f['getSelectedTableCells']())return;const [_0x51a6fc,_0x264dee]=_0x39dd5f,_0x2e0389=_0x39dd5f[_0x39dd5f['length']-0x1];_0x2e0389&&_0x2e0389['forceDefaultExecution']||_0x197c48['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x35056f,_0xa87810,_0x312015,_0x4abede,_0x1285fc){if(_0xa87810&&!_0xa87810['is']('documentSelection'))return!0x1;const _0x445048=_0x1285fc['getTableIfOnlyTableInContent'](_0x35056f,_0x312015);if(!_0x445048||!Oe(_0x445048,void 0x0,_0x4abede))return!0x1;const _0x566354=_0x4abede['getSelectionAffectedTableCells'](_0x312015['document']['selection']);if(!_0x566354['length'])return!0x1;const _0x41e4d4=_0x566354[0x0]['findAncestor']('table'),_0x29cd55=_0x4abede['getRowIndexes'](_0x566354),_0x59b0b9=_0x4abede['getColumnIndexes'](_0x566354),_0x3373c9={'startRow':_0x29cd55['first'],'endRow':_0x29cd55['last'],'startColumn':_0x59b0b9['first'],'endColumn':_0x59b0b9['last']};return 0x1==_0x566354['length']&&(_0x3373c9['endRow']+=_0x4abede['getRows'](_0x445048)-0x1,_0x3373c9['endColumn']+=_0x4abede['getColumns'](_0x445048)-0x1),Oe(_0x41e4d4,_0x3373c9,_0x4abede);}(_0x51a6fc,_0x264dee,_0xc9fb95['model'],_0x30eab4,_0xbad527)&&(_0x48164f['stop'](),_0x579ce4={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0xc9fb95['model']['change'](()=>{_0xc9fb95['model']['insertContent'](_0x39dd5f[0x0],_0x39dd5f[0x1],_0x39dd5f[0x2],{'forceDefaultExecution':!0x0});const _0x4173a0=_0x34c54d(),{rowInsertionRanges:_0x4af7dc,columnInsertionRanges:_0x556cdd,insertionRanges:_0x1ba158,deletionRanges:_0x2355a4,cells:_0x576081}=_0x579ce4;_0x4af7dc['length']&&_0x197c48['markMultiRangeInsertion'](_0x4af7dc,'tablePasteRow',{'tablePasteChainId':_0x4173a0}),_0x556cdd['length']&&_0x197c48['markMultiRangeInsertion'](_0x556cdd,'tablePasteColumn',{'tablePasteChainId':_0x4173a0}),_0x1ba158['length']&&(_0x197c48['markMultiRangeInsertion'](_0x1ba158,'tablePaste',{'tablePasteChainId':_0x4173a0,'skipNestingCheck':!0x0}),_0x1ba158['forEach'](_0x5b9709=>_0x5b9709['detach']?.())),_0x2355a4['length']&&(_0x197c48['markMultiRangeDeletion'](_0x2355a4,'tablePaste',{'tablePasteChainId':_0x4173a0,'skipNestingCheck':!0x0}),_0x2355a4['forEach'](_0x54eb0c=>_0x54eb0c['detach']?.()));const _0x53dab6=_0x197c48['markMultiRangeBlockFormat'](_0x576081['map'](({element:_0xc7d0e9})=>_0xc7d0e9),{'formatGroupId':_0x34c54d()},[],'tablePasteCell',{'tablePasteChainId':_0x4173a0});if(_0x53dab6){const _0x17f842=_0x53dab6['getMarkers'](),_0x102ae1=[];for(const {element:_0x58ed07,attributes:_0x641f27}of _0x576081){if(!_0x641f27)continue;const _0x338fb1=_0xc9fb95['model']['createRangeOn'](_0x58ed07),_0x300270=_0x17f842['find'](_0x454048=>_0x454048['getRange']()['isEqual'](_0x338fb1));_0x300270&&_0x102ae1['push']([_0x300270['name'],_0x641f27]);}_0x102ae1['length']&&_0x53dab6['setAttribute']('markerAttributes',Object['fromEntries'](_0x102ae1));}_0x579ce4=null;}));},{'priority':_0x35b182['high']+0xa}),_0x155b2c['on']('contentInsertion',()=>{_0x4d0bef=!0x1;},{'priority':'lowest'}),_0xc9fb95['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x239afc,_0x103315)=>{const [_0x56cf10,_0x54a075,,_0x112468]=_0x103315;if(!_0x579ce4)return;_0x239afc['stop']();const _0x1bab1c=_0x56cf10['cell'],_0x2b4cfc=_0x54a075,_0x1261d9=Be(_0x1bab1c),_0x2b9597=Be(_0x2b4cfc);_0x239afc['return']=_0x1bab1c;let _0x4f6690=null,_0x57e0ba=null;if(_0x2b9597||_0x1261d9){if(_0x1261d9&&!_0x2b9597){_0x112468['remove'](_0x1bab1c['getChild'](0x0));for(const _0x22b371 of Array['from'](_0x2b4cfc['getChildren']()))_0x112468['insert'](_0x22b371,_0x1bab1c,'end');const _0x324a6b=_0x579ce4['rowInsertionIndexes']['includes'](_0x56cf10['row']),_0x2e22fb=_0x579ce4['columnInsertionIndexes']['includes'](_0x56cf10['column']);_0x324a6b||_0x2e22fb||(_0x4f6690=_0xfc1203['fromRange'](_0x112468['createRangeIn'](_0x1bab1c)));}else _0x2b9597&&!_0x1261d9&&(_0x57e0ba=_0x112468['createRangeIn'](_0x1bab1c));}else{const _0x187b96=_0x112468['createElement']('tableCellSuggestion'),_0x3bde5c=_0x112468['createElement']('tableCellSuggestion');_0x112468['wrap'](_0x112468['createRangeIn'](_0x1bab1c),_0x3bde5c),_0x112468['insert'](_0x187b96,_0x1bab1c,0x0);for(const _0x331f46 of Array['from'](_0x2b4cfc['getChildren']()))_0x112468['insert'](_0x331f46,_0x187b96,'end');_0x4f6690=_0xfc1203['fromRange'](_0x112468['createRangeOn'](_0x187b96)),_0x57e0ba=_0xfc1203['fromRange'](_0x112468['createRangeOn'](_0x3bde5c));}const _0x2bd4dd=Array['from'](_0x2b4cfc['getAttributes']())['filter'](([_0x1cdf95])=>Re['includes'](_0x1cdf95));_0x579ce4['cells']['push']({'element':_0x1bab1c,'attributes':_0x2bd4dd['length']?Object['fromEntries'](_0x2bd4dd):null}),_0x4f6690&&_0x579ce4['insertionRanges']['push'](_0x4f6690),_0x57e0ba&&_0x579ce4['deletionRanges']['push'](_0x57e0ba);},{'priority':'high'}),_0x30eab4['on']('insertColumns',(_0x1f7122,_0x204957)=>{const [_0x3a4a6d,_0x32035b={}]=_0x204957;if(!_0x579ce4)return;const _0x35b6eb=_0x32035b['at']||0x0,_0x143102=_0x32035b['columns']||0x1;_0x579ce4['columnInsertionIndexes']=new Array(_0x143102)['fill'](_0x35b6eb)['map']((_0x5e05ff,_0x31485f)=>_0x5e05ff+_0x31485f);for(const {cell:_0x4c061a}of _0x30eab4['createTableWalker'](_0x3a4a6d,{'startColumn':_0x35b6eb,'endColumn':_0x35b6eb+_0x143102-0x1}))_0x579ce4['columnInsertionRanges']['push'](_0xc9fb95['model']['createRangeOn'](_0x4c061a));},{'priority':'low'}),_0x30eab4['on']('insertRows',(_0x10ee0d,_0x687590)=>{const [_0x3398f6,_0x414169={}]=_0x687590;if(!_0x579ce4)return;const _0x318d8b=_0x414169['at']||0x0,_0x1ca3c2=_0x414169['rows']||0x1;_0x579ce4['rowInsertionIndexes']=new Array(_0x1ca3c2)['fill'](_0x318d8b)['map']((_0x4d1018,_0x13b3ef)=>_0x4d1018+_0x13b3ef);for(const {cell:_0xf89625}of _0x30eab4['createTableWalker'](_0x3398f6,{'startRow':_0x318d8b,'endRow':_0x318d8b+_0x1ca3c2-0x1}))_0x579ce4['rowInsertionRanges']['push'](_0xc9fb95['model']['createRangeOn'](_0xf89625));},{'priority':'low'}),_0x197c48['descriptionFactory']['registerDescriptionCallback'](_0xc67c21=>{if(_0xc67c21['subType']&&_0xc67c21['subType']['startsWith']('tablePaste'))return _0xc67c21['previous']?{}:{'type':'insertion','content':o(_0xc9fb95['locale'],'*Replace\x20table\x20cells*')};});const _0x19f061=()=>!0x1;for(const _0x2b66e4 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x197c48['_suggestionFactory']['registerCustomCallback']('insertion',_0x2b66e4,'join',_0x19f061),_0x197c48['_suggestionFactory']['registerCustomCallback']('deletion',_0x2b66e4,'join',_0x19f061),_0x197c48['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2b66e4,'join',_0x19f061);_0x197c48['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x19f061),_0x197c48['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x9aeb9a,_0x4bb805,_0x496f6c)=>{const _0x396ff2=_0x9aeb9a['map'](_0x401d26=>_0x401d26['getContainedElement']())['filter'](_0x39dde2=>_0x39dde2),_0x1dd7e2=new Map(_0x396ff2['map'](_0x1efc7b=>[_0x1efc7b,null]));if(_0x579ce4){for(const {element:_0x3674b0,attributes:_0x5c4172}of _0x579ce4['cells'])_0x5c4172&&_0x1dd7e2['set'](_0x3674b0,_0x5c4172);}else{if(_0x496f6c&&_0x496f6c['markerAttributes'])for(const [_0x1b7df7,_0x2a6ae0]of Object['entries'](_0x496f6c['markerAttributes'])){const _0xe9f45b=_0xc9fb95['model']['markers']['get'](_0x1b7df7),_0x66688e=_0xe9f45b?_0xe9f45b['getRange']()['getContainedElement']():null;_0x66688e&&_0x1dd7e2['set'](_0x66688e,_0x2a6ae0);}}_0xc9fb95['model']['change'](_0x2fa7fe=>{for(const [_0x59a380,_0x21affc]of _0x1dd7e2)_0x2fa7fe['setAttributes']({...Ae,..._0x21affc},_0x59a380);});});const _0xf326fb=(_0x73d8ee,_0x21c3d9)=>{_0x197c48['_suggestionFactory']['registerCustomCallback'](_0x73d8ee,'tablePaste',_0x21c3d9,(_0x5b2c5d,_0x2c839e,_0x3b085c)=>{_0xc9fb95['model']['change'](_0x48f9af=>{const _0x196467=[];for(const _0x42a96f of _0x5b2c5d){const _0x2b4a59=_0x42a96f['start']['nodeAfter'];_0x2b4a59['is']('element','tableCellSuggestion')&&_0x196467['push'](_0x2b4a59);}_0x197c48['_suggestionFactory']['getSuggestionCallback'](_0x73d8ee,null,_0x21c3d9)(_0x5b2c5d,_0x2c839e,_0x3b085c);for(const _0x27fd65 of _0x196467)'$graveyard'!=_0x27fd65['root']['rootName']&&_0x48f9af['unwrap'](_0x27fd65);});});};_0xf326fb('insertion','accept'),_0xf326fb('insertion','discard'),_0xf326fb('deletion','accept'),_0xf326fb('deletion','discard'),_0x197c48['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x4e6c54=>{const _0x3ae2ba=_0x4e6c54['map'](_0x5dd1f9=>_0x5dd1f9['getContainedElement']()),_0xb529df=_0x3ae2ba[0x0]['findAncestor']('table'),{minRow:_0x51eda6,maxRow:_0x4964f2}=_0x4ada52['_getCoordsForCells'](_0x3ae2ba);_0x30eab4['removeRows'](_0xb529df,{'at':_0x51eda6,'rows':_0x4964f2-_0x51eda6+0x1});}),_0x197c48['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x2b9c79=>{const _0x4d352d=_0x2b9c79['map'](_0x3d53fb=>_0x3d53fb['getContainedElement']()),_0x29a904=_0x4d352d[0x0]['findAncestor']('table'),{minColumn:_0x220d39,maxColumn:_0x3e2803}=_0x4ada52['_getCoordsForCells'](_0x4d352d);_0x30eab4['removeColumns'](_0x29a904,{'at':_0x220d39,'columns':_0x3e2803-_0x220d39+0x1});});const _0x3c24a9=(_0x4fe473,_0x345d3c)=>{if(!_0x345d3c['subType']||!_0x345d3c['subType']['startsWith']('tablePaste'))return;const _0x18fa47=_0x345d3c['attributes']['tablePasteChainId'],_0x49af1b=_0x197c48['getSuggestions']()['filter'](_0x83208f=>_0x83208f['isInContent']&&_0x83208f['attributes']&&_0x83208f['attributes']['tablePasteChainId']==_0x18fa47);_0x49af1b['length']&&_0x345d3c['getAllAdjacentSuggestions']()['length']!=_0x49af1b['length']&&_0x49af1b['reduce']((_0x1b014a,_0x100987)=>(_0x1b014a['next']=_0x100987,_0x100987['previous']=_0x1b014a,_0x100987));};function _0x2dc976(_0x35a66d,_0x314493=!0x0){const {id:_0x284e04,authorId:_0xe885e5}=_0x197c48['_splitMarkerName'](_0x35a66d['markerName']),_0xc7a2a4=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x41a758=_0x197c48['activeMarkers']['includes'](_0x35a66d['markerName']);return _0x41a758&&_0xc7a2a4['push']('ck-suggestion-marker--active'),{'classes':_0xc7a2a4,'attributes':{'data-suggestion':_0x284e04,'data-author-id':_0xe885e5},'priority':_0x41a758&&_0x314493?0xbc2:0xbb8};}_0x197c48['on']('suggestionLoaded',_0x3c24a9,{'priority':'high'}),_0x197c48['on']('suggestionUnloaded',_0x3c24a9,{'priority':'high'}),_0xc9fb95['model']['document']['registerPostFixer'](()=>{let _0x1b0c03=!0x1;const _0x3eff81=Array['from'](_0xc9fb95['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1216e1,data:_0x40c435}of _0x3eff81){const {group:_0x1dd61d,type:_0x3bb23a,id:_0x49be72}=_0x197c48['_splitMarkerName'](_0x1216e1);if('suggestion'!=_0x1dd61d||'deletion'!=_0x3bb23a||_0x40c435['oldRange'])continue;if(!_0x197c48['hasSuggestion'](_0x49be72))continue;const _0x55b448=_0x197c48['getSuggestion'](_0x49be72)['getRanges'](),_0xbae2c4=_0xc9fb95['plugins']['get']('Users')['me'];for(const _0x944027 of _0x197c48['getSuggestions']()){if(!_0x944027['isInContent']||_0x944027['author']!=_0xbae2c4)continue;if('formatBlock'!=_0x944027['type']||'tablePasteCell'!=_0x944027['subType'])continue;if(_0x944027['getRanges']()['every'](_0x38022f=>_0x55b448['some'](_0x107ec7=>_0x107ec7['containsRange'](_0x38022f,!0x0)))){for(const _0x5cb7cd of _0x944027['getAllAdjacentSuggestions']())_0x5cb7cd['isInContent']&&(_0x5cb7cd['discard'](),_0x1b0c03=!0x0);}}}return _0x1b0c03;}),_0xc9fb95['model']['document']['registerPostFixer'](_0x28c8ba=>{const _0xa7b6cb=_0xc9fb95['commands']['get']('redo');if(!_0xa7b6cb||!_0xa7b6cb['_createdBatches']['has'](_0x28c8ba['batch']))return!0x1;let _0xd12e45=!0x1;const _0x2faa8e=_0xc9fb95['plugins']['get']('Users')['me'],_0x15f33=_0xc9fb95['model']['document']['differ']['getChanges'](),_0x2b5e3e=Array['from'](_0xc9fb95['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x518deb,data:_0x10453e})=>{const {group:_0x46a083,subType:_0x507ce6,authorId:_0x2ae169}=_0x197c48['_splitMarkerName'](_0x518deb);return'suggestion'==_0x46a083&&'tablePaste'==_0x507ce6&&_0x2ae169==_0x2faa8e['id']&&!_0x10453e['oldRange'];});for(const _0x19c0ab of _0x15f33){if('insert'!=_0x19c0ab['type']||'tableCellSuggestion'!=_0x19c0ab['name']||0x1!=_0x19c0ab['length'])continue;const _0xcc8924=_0x28c8ba['createRange'](_0x19c0ab['position'],_0x19c0ab['position']['getShiftedBy'](0x1));if(!_0x2b5e3e['find'](({data:_0x5bc091})=>_0x5bc091['newRange']['isEqual'](_0xcc8924))){for(const {name:_0xdce2a5,data:_0x906924}of _0x2b5e3e)if(_0xcc8924['containsRange'](_0x906924['newRange'])){_0x28c8ba['updateMarker'](_0xdce2a5,{'range':_0xcc8924}),_0xd12e45=!0x0;break;}}}return _0xd12e45;}),_0xc9fb95['model']['document']['registerPostFixer'](_0x429d47=>{let _0x10198b=!0x1;const _0x16be79=_0xc9fb95['plugins']['get']('Users')['me'],_0x48c709=_0x197c48['getSuggestions']()['filter'](_0x2083da=>_0x2083da['isInContent']&&_0x2083da['author']==_0x16be79),_0x4b012d=new Set(),_0x5a3ea2=new Set();for(const _0x23eba5 of _0x48c709)if('tablePaste'==_0x23eba5['subType'])for(const _0x39dfd of _0x23eba5['getMarkers']()){const _0x45e2b5=_0x39dfd['getRange']()['getContainedElement']();if(_0x45e2b5){if(_0x45e2b5['is']('element','tableCellSuggestion')&&Be(_0x45e2b5)){_0x23eba5['removeMarker'](_0x39dfd['name']),_0x4b012d['add'](_0x45e2b5),_0x10198b=!0x0;const _0x5d8862=_0x45e2b5['nextSibling'],_0x2e140d=_0x45e2b5['previousSibling'],_0x568e8a=_0x5d8862&&_0x5d8862['is']('element','tableCellSuggestion'),_0x5eda02=_0x2e140d&&_0x2e140d['is']('element','tableCellSuggestion');_0x568e8a&&!_0x4b012d['has'](_0x5d8862)&&_0x5a3ea2['add'](_0x5d8862),_0x5eda02&&!_0x4b012d['has'](_0x2e140d)&&_0x5a3ea2['add'](_0x2e140d);}else _0x45e2b5['is']('element','paragraph')&&_0x45e2b5['isEmpty']&&(_0x23eba5['removeMarker'](_0x39dfd['name']),_0x10198b=!0x0);}}else{if('tablePasteCell'==_0x23eba5['subType']){if(!_0x23eba5['attributes']||!_0x23eba5['attributes']['tablePasteChainId'])continue;const _0x4a9682=_0x23eba5['attributes']['markerAttributes'];if(_0x4a9682&&Object['keys'](_0x4a9682)['length'])continue;const _0x1ec478=_0x23eba5['attributes']['tablePasteChainId'];let _0x29c809=!0x0,_0xc98f44=!0x0;for(const _0x47fcbe of _0x48c709)if(_0x47fcbe['subType']&&_0x47fcbe['subType']['startsWith']('tablePaste')){if(!_0x47fcbe['attributes']['tablePasteChainId']){_0xc98f44=!0x1;break;}if(_0x47fcbe['id']!=_0x23eba5['id']&&_0x47fcbe['attributes']['tablePasteChainId']==_0x1ec478){_0x29c809=!0x1;break;}}_0xc98f44&&_0x29c809&&(_0x23eba5['removeMarkers'](),_0x10198b=!0x0);}}for(const _0x598d57 of _0x4b012d)_0x429d47['remove'](_0x598d57);for(const _0x21d7d2 of _0x5a3ea2)_0x429d47['unwrap'](_0x21d7d2);return _0x10198b;}),_0xc9fb95['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x4f4f02=>_0x2dc976(_0x4f4f02),'converterPriority':'high'}),_0xc9fb95['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x2d2136,_0x2a32af)=>_0x2a32af['options']['showSuggestionHighlights']?_0x2dc976(_0x2d2136,!0x1):null,'converterPriority':'high'});const _0x3cfe45=_0xc9fb95['editing']['view'];this['listenTo'](_0x3cfe45['document'],'clipboardOutput',(_0x32ca78,_0x454397)=>{const _0x36aaa8=[];for(const _0x12a5ec of _0x3cfe45['createRangeIn'](_0x454397['content'])['getItems']())_0x12a5ec['is']('element','suggestion-td')&&_0x36aaa8['push'](_0x12a5ec);_0x3cfe45['change'](_0x51a000=>{for(const _0x3c0806 of _0x36aaa8)_0x51a000['move'](_0x51a000['createRangeIn'](_0x3c0806),_0x51a000['createPositionBefore'](_0x3c0806)),_0x51a000['remove'](_0x3c0806);});});}}function Be(_0x3f6533){if(_0x3f6533['isEmpty'])return!0x0;const _0x2f5010=_0x3f6533['getChild'](0x0);return _0x2f5010['is']('element','paragraph')&&_0x2f5010['isEmpty'];}function Oe(_0x5a0cf5,_0x16bcaf={},_0x323aa6){for(const {isAnchor:_0x3ac744,cellHeight:_0x1755c4,cellWidth:_0x1fdd9d}of _0x323aa6['createTableWalker'](_0x5a0cf5,{'includeAllSlots':!0x0,..._0x16bcaf}))if(!_0x3ac744||0x1!=_0x1755c4||0x1!=_0x1fdd9d)return!0x1;return!0x0;}class Rt extends _0x22959f{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x54bc67=this['editor']['plugins']['get']('TrackChangesEditing');_0x54bc67['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x54bc67['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x54bc67['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x54bc67['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x54bc67['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x54bc67['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x2e58e7,_0xa78399){const _0xfe99a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x171154=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x5595ab=_0xa78399['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x4ebcbf=_0x171154['getColumnGroupElement'](_0x5595ab);let _0x3545d7=_0x4ebcbf?_0x171154['getTableColumnsWidths'](_0x4ebcbf):null,_0x4f9c21=_0x5595ab['getAttribute']('tableWidth')||null;const _0x27a8f2=_0xa78399['tableWidth']||_0x4f9c21,_0x1bce29=_0xa78399['columnWidths']||_0x3545d7,_0x3914ce=this['editor']['plugins']['get']('Users')['me'];for(const _0x26d32b of _0xfe99a['getSuggestions']()){const _0x8a7b96=_0x26d32b['getContainedElement']();if('resizeTable'===_0x26d32b['subType']&&_0x8a7b96===_0x5595ab){_0x26d32b['author']!==_0x3914ce&&_0x26d32b['discard']();const _0x1fb917=_0x26d32b['data']['commandParams'];_0x4f9c21=_0x1fb917[0x0]['tableWidth'],_0x3545d7=_0x1fb917[0x0]['columnWidths'];break;}}_0x2e58e7({'table':_0x5595ab,'tableWidth':_0x27a8f2,'columnWidths':_0x1bce29}),_0xfe99a['markBlockFormat'](_0x5595ab,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x4f9c21,'columnWidths':_0x3545d7}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x47429f){if('formatBlock'!=_0x47429f['type']&&'formatInline'!=_0x47429f['type'])return;const {data:_0x5b1dda}=_0x47429f;if(_0x5b1dda&&'resizeTable'===_0x5b1dda['formatGroupId']){const _0x194962='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x194962)};}}}class Tt extends _0x22959f{['afterInit'](){const _0x146e31=this['editor'];_0x146e31['plugins']['has']('Template')&&_0x146e31['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Et extends _0x22959f{['afterInit'](){const _0x119773=this['editor'];if(!_0x119773['commands']['get']('insertTableOfContents'))return;_0x119773['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x518edc=_0x119773['plugins']['get']('TrackChangesEditing'),_0x474c63=_0x119773['locale'];_0x518edc['descriptionFactory']['registerElementLabel']('tableOfContents',_0x1caa90=>o(_0x474c63,'ELEMENT_TABLE_OF_CONTENTS',_0x1caa90));}}class Ut extends _0x22959f{['afterInit'](){const _0x491495=this['editor'];if(!_0x491495['plugins']['has']('Title'))return;const _0xad9f72=_0x491495['plugins']['get']('TrackChangesEditing');_0xad9f72['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x491495['locale'],'ELEMENT_TITLE')),_0x491495['model']['document']['registerPostFixer'](_0xb119f0=>{let _0x19a145=!0x1;const _0x5e01a2=Array['from'](_0x491495['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4fb1e1,data:_0x4c4d5f}of _0x5e01a2){const {group:_0x52fc57}=_0xad9f72['_splitMarkerName'](_0x4fb1e1);if('suggestion'!==_0x52fc57||!_0x4c4d5f['newRange'])continue;const _0x2e0bab=_0x4c4d5f['newRange'],_0xc77b3=_0x2e0bab['end']['nodeBefore'];if(!_0xc77b3||!_0xc77b3['is']('element','title-content'))continue;if(!_0x2e0bab['start']['isTouching'](_0x2e0bab['end']))continue;const _0x2333bc=_0x491495['model']['schema']['getNearestSelectionRange'](_0x2e0bab['end'],'forward');if(_0x2333bc&&_0x2333bc['isCollapsed']){const _0x7ca3cc=_0xb119f0['createRange'](_0x2e0bab['start'],_0x2333bc['start']);_0x7ca3cc['isEqual'](_0x2e0bab)||(_0xb119f0['updateMarker'](_0x4fb1e1,{'range':_0x7ca3cc}),_0x19a145=!0x0);}_0x19a145||(_0xb119f0['removeMarker'](_0x4fb1e1),_0x19a145=!0x0);}return _0x19a145;});}}class Vt extends _0x22959f{['afterInit'](){const _0x4a6068=this['editor'],_0x4d3017=_0x4a6068['plugins']['get']('TrackChangesEditing');_0x4a6068['plugins']['has']('Uploadcare')&&(_0x4d3017['enableCommand']('uploadcare'),_0x4a6068['plugins']['has']('UploadcareImageEdit')&&(_0x4d3017['enableCommand']('uploadcareImageEdit'),_0x4d3017['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x4d3017['descriptionFactory']['registerDescriptionCallback'](_0x575149=>{if('attribute'!=_0x575149['type'])return;const {data:_0x43683d}=_0x575149;return _0x43683d&&'uploadcareImageId'==_0x43683d['key']?{'type':'format','content':''}:void 0x0;})));}}class Ft extends _0x22959f{['afterInit'](){const _0x3fc0aa=this['editor'],_0x1b7406=_0x3fc0aa['plugins']['get']('TrackChangesEditing');_0x3fc0aa['plugins']['has']('UndoEditing')&&(_0x1b7406['enableCommand']('undo'),_0x1b7406['enableCommand']('redo'));}}class Pt extends _0x22959f{static get['requires'](){return[Dt];}['afterInit'](){const _0x15bc51=this['editor'];if(!_0x15bc51['plugins']['has']('TableCaptionEditing'))return;_0x15bc51['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Gt extends _0x22959f{['tableProperties'];['tableCellProperties'];constructor(_0x5b38c2){super(_0x5b38c2),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'],_0x5b38c2['config']['get']('experimentalFlags.tableCellTypeSupport')&&this['tableCellProperties']['push']('tableCellType');}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x467f8f=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x505433 of this['tableProperties'])_0x467f8f['enableCommand'](_0x505433,(_0x2465ea,_0x487706)=>{const _0x1bada8=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x505433,[_0x1bada8],this['tableProperties'],'tableProperties',_0x2465ea,_0x487706);});_0x467f8f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x467f8f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x467f8f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x22a378,_0x5ece8c)=>this['handleDiscardAction'](this['tableProperties'],_0x22a378,_0x5ece8c)),_0x467f8f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x153a73 of this['tableCellProperties'])this['editor']['commands']['get'](_0x153a73)&&_0x467f8f['enableCommand'](_0x153a73,(_0x58d171,_0x41d1f2)=>{const _0x2a35e5=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x153a73,_0x2a35e5,this['tableCellProperties'],'tableCellProperties',_0x58d171,_0x41d1f2);});_0x467f8f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x467f8f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x467f8f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x1c3531,_0x18c000)=>this['handleDiscardAction'](this['tableCellProperties'],_0x1c3531,_0x18c000)),_0x467f8f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x467f8f['descriptionFactory']['registerAttributeLabel']('tableCellType',o(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x467f8f['descriptionFactory']['registerDescriptionCallback'](_0x582e54=>this['handleSuggestionDescription'](_0x582e54)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x824c5d,_0x4eb75b,_0x44f23e,_0x52030e,_0x47d63e,_0x1bec51){const _0x3b9f2c=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x1bec51['batch'],()=>{for(const _0x18ad66 of _0x4eb75b){if(this['_getSuggestion'](_0x18ad66,_0x52030e))_0x47d63e(_0x1bec51);else{const _0xd7a51={};for(const _0x2731e0 of _0x44f23e){const _0x5c383a=_0x18ad66['getAttribute'](_0x2731e0);void 0x0!==_0x5c383a&&(_0xd7a51[_0x2731e0]=_0x5c383a);}_0x47d63e(_0x1bec51),_0x3b9f2c['markBlockFormat'](_0x18ad66,{'commandParams':[_0xd7a51]},[],_0x52030e);}}});}['handleDiscardAction'](_0x134fc9,_0x7bae8a,_0x515446){const _0x5e443f=_0x7bae8a[0x0]['start']['nodeAfter'],_0x1d97b6=_0x515446['commandParams'][0x0];this['editor']['model']['change'](_0x481887=>{for(const _0x218531 of _0x134fc9)void 0x0!==_0x1d97b6[_0x218531]?_0x481887['setAttribute'](_0x218531,_0x1d97b6[_0x218531],_0x5e443f):_0x481887['removeAttribute'](_0x218531,_0x5e443f);});}['handleSuggestionDescription'](_0x3b4113){if(_0x3b4113['data'])switch(_0x3b4113['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'](_0x21691f,_0x4bcc7e){const _0x14649c=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x3e5a21 of _0x14649c['getSuggestions']({'skipNotAttached':!0x0})){const _0x5b0d8a=_0x3e5a21['getContainedElement']();if(_0x3e5a21['subType']===_0x4bcc7e&&_0x5b0d8a===_0x21691f)return _0x3e5a21;}return null;}['_registerTablePropertiesAttributes'](){const _0x510caa=this['editor']['plugins']['get']('TrackChangesEditing'),_0x480bdc=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x41e24f of _0x480bdc){const _0x53419f=_0x41e24f['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x510caa['descriptionFactory']['registerAttributeLabel'](_0x41e24f,o(this['editor']['locale'],'FORMAT_'+_0x53419f));}}}class Lt extends _0x22959f{['afterInit'](){const _0x5eb4b5=this['editor'];if(!_0x5eb4b5['plugins']['has']('LineHeight'))return;const _0x565064=_0x5eb4b5['plugins']['get']('TrackChangesEditing'),_0x5c9e5d=_0x5eb4b5['locale'];_0x565064['enableDefaultAttributesIntegration']('lineHeight'),_0x565064['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x5c9e5d,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x22959f{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x2dc7a8,_0x32dac4,_0x4f71d4,_0x49d3c9,U,V,F,G,L,J,q,K,z,W,H,Q,Z,tt,nt,it,et,st,ot,rt,at,ct,ut,ht,ft,lt,gt,mt,pt,wt,jt,dt,X,Lt,Y,kt,bt,yt,St,It,At,_t,Ct,Nt,$t,vt,Dt,Bt,Ot,xt,Pt,Mt,Rt,Et,Gt,Tt,Ut,Vt,Ft];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x17b9a3){super(_0x17b9a3),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x2f8a7b,_0x51711a,_0x7fb984,_0x3c5f62)=>{this['_model']['change'](()=>{for(const _0x553778 of[..._0x3c5f62,..._0x7fb984])this['_model']['markers']['has'](_0x553778)&&_0x17b9a3['editing']['reconvertMarker'](_0x553778);});}),this['descriptionFactory']=new E(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new SuggestionFactory(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x17b9a3['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x17b9a3['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x17b9a3['config']['get']('trackChanges.trackFormatChanges'),_0x17b9a3['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x17b9a3['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x17b9a3,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x22a6f9=this['editor'];_0x22a6f9['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5d3ca6,{writer:_0x393adc})=>{let _0x3a38a9='suggestion:'+_0x5d3ca6['getAttribute']('suggestion-type')+':'+_0x5d3ca6['getAttribute']('id');return _0x5d3ca6['getAttribute']('marker-count')&&(_0x3a38a9+=':'+_0x5d3ca6['getAttribute']('marker-count')),_0x393adc['createElement']('$marker',{'data-name':_0x3a38a9});}}),_0x22a6f9['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x22a6f9['model']['document']['registerPostFixer'](_0xe79ac7=>{let _0x1c80c5=!0x1;const _0x370537=Array['from'](_0x22a6f9['model']['document']['differ']['getChangedMarkers']()),_0xd47151=new Set();for(const {name:_0x310819,data:_0x24eb80}of _0x370537){const {group:_0x24f218,type:_0xf38d3c,subType:_0x12627d,id:_0x35392f}=this['_splitMarkerName'](_0x310819);if('suggestion'!==_0x24f218)continue;const _0xaff20f=_0x12627d?'suggestion:'+_0xf38d3c+':'+_0x12627d+':'+_0x35392f:'suggestion:'+_0xf38d3c+':'+_0x35392f,_0x144183=_0x22a6f9['model']['markers']['getMarkersGroup'](_0xaff20f),_0x3b4180=_0x22a6f9['model']['markers']['get'](_0x310819),_0x4a82ba=this['_suggestions']['get'](_0x35392f);if(null!=_0x24eb80['newRange']){'formatInline'==_0xf38d3c&&(_0x1c80c5=_0x1c80c5||Kt(_0x24eb80['newRange'],_0x310819,_0xe79ac7,_0x22a6f9['model']['schema']));const _0x382d55='attribute'==_0xf38d3c&&this['_isBlockAttribute'](_0x12627d['split']('|')[0x0]),_0x1841ba='attribute'==_0xf38d3c&&this['_isInlineAttribute'](_0x12627d['split']('|')[0x0]);if(_0x24eb80['newRange']['isCollapsed']||'$graveyard'==_0x24eb80['newRange']['root']['rootName']||'formatBlock'==_0xf38d3c&&!Ht(_0x24eb80['newRange'])||_0x382d55&&!Ht(_0x24eb80['newRange'])||_0x1841ba&&Qt(_0x24eb80['newRange'])||'deletion'==_0xf38d3c&&Qt(_0x24eb80['newRange'])||_0x3b4180&&Xt(_0x3b4180,_0x144183))_0xe79ac7['removeMarker'](_0x310819),_0x1c80c5=!0x0;else{if(!_0x4a82ba||!_0x4a82ba['isInContent'])continue;if(_0x24eb80['newRange']&&_0x24eb80['oldRange']&&_0x24eb80['newRange']['isEqual'](_0x24eb80['oldRange']))continue;_0xd47151['add'](_0x4a82ba);}}}return _0xd47151['size']>0x0&&(_0x1c80c5=!!this['_joinWithAdjacentSuggestions'](_0xd47151)||_0x1c80c5),_0x1c80c5;}),_0x22a6f9['model']['document']['registerPostFixer'](_0x1fd86d=>{let _0x521694=!0x1;for(const _0x1d8fbf of _0x22a6f9['model']['document']['differ']['getChanges']())if('insert'==_0x1d8fbf['type'])for(const _0x12c3cb of this['_suggestions']['values']()){if(_0x12c3cb['isMultiRange']||!_0x12c3cb['isInContent'])continue;const _0x46d74e='formatBlock'==_0x12c3cb['type'],_0x3d84d2=this['_getAttributeKey'](_0x12c3cb),_0x26c918=_0x3d84d2&&this['_isBlockAttribute'](_0x3d84d2);if(!_0x46d74e&&!_0x26c918)continue;const _0x1da18e=_0x12c3cb['getFirstRange']();if(_0x1da18e['start']['parent']!=_0x1da18e['end']['parent']&&!_0x1da18e['end']['isAtEnd']){const _0xa67e70=_0x22a6f9['model']['createPositionAt'](_0x1da18e['start']['nodeAfter'],'end'),_0x238e25=_0x22a6f9['model']['createRange'](_0x1da18e['start'],_0xa67e70);_0x1fd86d['updateMarker'](_0x12c3cb['getFirstMarker'](),{'range':_0x238e25}),_0x521694=!0x0;}}return _0x521694;}),_0x22a6f9['model']['document']['registerPostFixer'](_0x3ea18e=>this['_processAttributeChanges'](_0x3ea18e)),_0x22a6f9['model']['document']['registerPostFixer'](_0x349ca3=>!_0x349ca3['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x349ca3)),_0x22a6f9['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x22a6f9['model']['document']['on']('change:data',(_0x3db3f4,_0x33e8ad)=>{if(!_0x33e8ad['isLocal']||_0x33e8ad['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x29bbcc=_0x22a6f9['model']['document']['differ']['getChanges']();if(0x0==_0x29bbcc['length'])return;const _0x4f188f=[],_0x2f47bb=_0x29bbcc['filter'](_0x511c69=>'attribute'==_0x511c69['type']),_0x52a43d=_0x29bbcc['filter'](_0x47aeef=>'insert'==_0x47aeef['type']&&'$text'!=_0x47aeef['name']);for(const _0x15d70b of _0x2f47bb)this['_isRegisteredAttribute'](_0x15d70b['attributeKey'])&&_0x4f188f['push']({'key':_0x15d70b['attributeKey'],'newValue':_0x15d70b['attributeNewValue'],'oldValue':_0x15d70b['attributeOldValue'],'range':Yt(_0x15d70b['range'],_0x22a6f9['model'])});for(const _0x44298c of _0x52a43d){if('rename'!=_0x44298c['action']&&'refresh'!=_0x44298c['action'])continue;const _0x5dbe43=Zt(_0x44298c['position']['nodeAfter'],_0x22a6f9['model']),_0x265772=_0x44298c['before'];'rename'==_0x44298c['action']&&_0x4f188f['push']({'key':m,'newValue':_0x44298c['name'],'oldValue':_0x265772['name'],'range':_0x5dbe43});for(const [_0x284313,_0x5a64fb]of _0x265772['attributes']){if(!this['_isRegisteredAttribute'](_0x284313))continue;const _0x10c3e5=_0x44298c['attributes']['get'](_0x284313);_0x5a64fb!==_0x10c3e5&&_0x4f188f['push']({'key':_0x284313,'newValue':_0x10c3e5,'oldValue':_0x5a64fb,'range':_0x5dbe43});}for(const [_0x1fba8c,_0x361fd9]of _0x44298c['attributes'])this['_isRegisteredAttribute'](_0x1fba8c)&&(_0x265772['attributes']['has'](_0x1fba8c)||_0x4f188f['push']({'key':_0x1fba8c,'newValue':_0x361fd9,'oldValue':null,'range':_0x5dbe43}));}0x0!=_0x4f188f['length']&&_0x22a6f9['model']['enqueueChange'](_0x33e8ad,_0x1e05cc=>{const _0x5e89e4=_0x34c54d();for(const {range:_0x12ae0e,key:_0xba3c5e,oldValue:_0x400dcf,newValue:_0x1d34f3}of _0x4f188f)this['markAttributeChange'](_0x12ae0e,_0xba3c5e,_0x400dcf,_0x1d34f3,{'groupId':_0x5e89e4});this['_reduceExistingSuggestions'](_0x1e05cc,_0x4f188f);});},{'priority':'lowest'}),_0x22a6f9['model']['markers']['on']('update:suggestion',(_0x4b9373,_0x20e1f3,_0x322953)=>{if(null==_0x322953){const {id:_0x205936}=this['_splitMarkerName'](_0x20e1f3['name']),_0x41a615=this['_suggestions']['get'](_0x205936);_0x41a615&&_0x41a615['addMarkerName'](_0x20e1f3['name']);}}),_0x22a6f9['model']['document']['on']('change:data',()=>{const _0x12725b=Array['from'](_0x22a6f9['model']['document']['differ']['getChangedMarkers']())['filter'](_0x40f869=>'suggestion'===this['_splitMarkerName'](_0x40f869['name'])['group']);if(0x0===_0x12725b['length'])return;_0x12725b['sort']((_0x1729e8,_0x4e521a)=>{const _0x5866ba=_0x1729e8['data']['oldRange'],_0x34ae86=_0x4e521a['data']['oldRange'];return null===_0x5866ba&&null===_0x34ae86?0x0:null===_0x5866ba&&null!==_0x34ae86?-0x1:null!==_0x5866ba&&null===_0x34ae86?0x1:_0x5866ba['start']['isBefore'](_0x34ae86['start'])?-0x1:0x1;});const _0x75fa8a=new Set(),_0x2dc5b0=new Set();for(const {name:_0x9eef54,data:_0x534274}of _0x12725b){const {id:_0x437cf5}=this['_splitMarkerName'](_0x9eef54);if(null===_0x534274['oldRange']){const _0x1bdd02=this['_handleNewSuggestionMarker'](_0x9eef54);_0x2dc5b0['add'](_0x1bdd02);}else{const _0x3cfe4e=this['_suggestions']['get'](_0x437cf5);null!==_0x534274['newRange']||_0x3cfe4e['isInContent']?(_0x75fa8a['add'](_0x3cfe4e['head']),_0x2dc5b0['add'](_0x3cfe4e)):this['_removeSuggestion'](_0x3cfe4e);}}_0x2dc5b0['size']>0x0&&this['_refreshSuggestionsChain'](_0x2dc5b0);for(const _0x28f294 of _0x75fa8a)this['fire']('suggestionChanged',_0x28f294);}),_0x22a6f9['model']['on']('applyOperation',(_0x2001ac,_0x4ac7d2)=>{const _0x36153f=_0x4ac7d2[0x0];if(!this['_suggestions']['size'])return;if(!_0x36153f['isDocumentOperation'])return;if(_0x36153f['batch']['isUndo']||!_0x36153f['batch']['isLocal'])return;let _0x5f525d,_0x27d273;switch(_0x36153f['type']){case'insert':_0x5f525d=_0x22a6f9['model']['createPositionAt'](_0x36153f['position']),_0x27d273=_0x5f525d['getShiftedBy'](_0x36153f['howMany']);break;case'split':_0x5f525d=_0x22a6f9['model']['createPositionAt'](_0x36153f['splitPosition']),_0x27d273=_0x22a6f9['model']['createPositionAt'](_0x36153f['moveTargetPosition']);break;case'move':_0x5f525d=_0x22a6f9['model']['createPositionAt'](_0x36153f['targetPosition']),_0x27d273=_0x5f525d['getShiftedBy'](_0x36153f['howMany']);break;default:return;}const _0x4fd04c=_0x22a6f9['model']['createRange'](_0x5f525d,_0x27d273);_0x22a6f9['model']['change'](()=>{for(const {suggestion:_0x4b8afc,meta:_0x25cb08}of this['_findSuggestions'](_0x4fd04c)){if(_0x4b8afc['isMultiRange'])continue;if('formatInline'==_0x4b8afc['type'])continue;const _0x28b1ac=this['_getAttributeKey'](_0x4b8afc);if(_0x28b1ac&&this['_isBlockAttribute'](_0x28b1ac)&&'split'!=_0x36153f['type'])continue;const _0x375ccb=_0x4b8afc['data']&&_0x4b8afc['data']['multipleBlocks'];('formatBlock'!=_0x4b8afc['type']||'split'==_0x36153f['type']&&!_0x375ccb)&&(_0x25cb08['containsRangeInObject']||'insertion'==_0x4b8afc['type']&&_0x25cb08['isOwn']||_0x4b8afc['getFirstRange']()['containsRange'](_0x4fd04c)&&this['_breakSuggestionMarker'](_0x4b8afc,_0x5f525d,_0x27d273));}});},{'priority':'lowest'}),_0x22a6f9['model']['on']('deleteContent',(_0x18e50c,_0x1ce8eb)=>{const _0x4c24b1=_0x1ce8eb[0x0],_0x2598a3=_0x1ce8eb[0x1];if(_0x2598a3&&_0x2598a3['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x4c24b1['isCollapsed'])return;const _0x3ddffa=_0x22a6f9['model']['schema'],{start:_0x3f56c6,end:_0x5ec665}=_0x4c24b1['getFirstRange'](),_0x4ebfa1=_0x3f56c6['nodeAfter']&&_0x3ddffa['isLimit'](_0x3f56c6['nodeAfter'])?null:_0x3ddffa['getNearestSelectionRange'](_0x3f56c6,'forward'),_0x4d8808=_0x5ec665['nodeBefore']&&_0x3ddffa['isLimit'](_0x5ec665['nodeBefore'])?null:_0x3ddffa['getNearestSelectionRange'](_0x5ec665,'backward'),_0x523f13=_0x22a6f9['model']['createRange'](_0x4ebfa1?_0x4ebfa1['start']:_0x3f56c6,_0x4d8808?_0x4d8808['end']:_0x5ec665);_0x22a6f9['model']['change'](_0x46681f=>{this['markDeletion'](_0x523f13);const _0x235f5b=_0x22a6f9['model']['schema']['getNearestSelectionRange'](_0x523f13['start']);_0x4c24b1['is']('documentSelection')?_0x46681f['setSelection'](_0x235f5b):_0x4c24b1['setTo'](_0x235f5b);}),_0x18e50c['stop']();},{'priority':_0x35b182['normal']+0xa}),_0x22a6f9['model']['on']('insertContent',(_0x6d3f2e,_0xa72af3)=>{const _0x13141f=_0xa72af3[_0xa72af3['length']-0x1];_0x13141f&&_0x13141f['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x22a6f9['model']['change'](()=>{let _0x372560=_0x22a6f9['model']['insertContent'](_0xa72af3[0x0],_0xa72af3[0x1],_0xa72af3[0x2],{'forceDefaultExecution':!0x0});if(!_0x372560)return;_0x6d3f2e['return']=_0x372560['clone']();const _0x277885=_0x372560['end']['nodeBefore'],_0x239574=_0x22a6f9['model']['schema'];_0x277885&&_0x239574['isBlock'](_0x277885)&&!_0x239574['isObject'](_0x277885)&&(_0x372560=_0x22a6f9['model']['createRange'](_0x372560['start'],_0x22a6f9['model']['createPositionAt'](_0x277885,'end'))),this['markInsertion'](_0x372560);}),_0x6d3f2e['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x189f82=new O(_0x22a6f9,this['_suggestions']);_0x22a6f9['commands']['add']('acceptSuggestion',_0x189f82),this['enableCommand']('acceptSuggestion');const _0x1d72ec=new x(_0x22a6f9,this['_suggestions']);_0x22a6f9['commands']['add']('discardSuggestion',_0x1d72ec),this['enableCommand']('discardSuggestion'),_0x22a6f9['commands']['add']('acceptAllSuggestions',new M(_0x22a6f9,_0x189f82,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x22a6f9['commands']['add']('discardAllSuggestions',new M(_0x22a6f9,_0x1d72ec,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x22a6f9['commands']['add']('acceptSelectedSuggestions',new R(_0x22a6f9,_0x189f82,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x22a6f9['commands']['add']('discardSelectedSuggestions',new R(_0x22a6f9,_0x1d72ec,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x94a326=_0x22a6f9['plugins']['get']('CommentsRepository');this['listenTo'](_0x94a326,'addComment',(_0x831fa0,{threadId:_0x364416})=>{const _0x2aa118=this['_suggestions']['get'](_0x364416);_0x2aa118&&_0x2aa118['commentThread']&&0x1===_0x2aa118['commentThread']['length']&&this['_updateSuggestionData'](_0x364416,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x94a326,'removeComment',(_0x5369d0,{threadId:_0xc8c46})=>{const _0x499ceb=this['_suggestions']['get'](_0xc8c46);_0x499ceb&&_0x499ceb['commentThread']&&!_0x499ceb['commentThread']['length']&&this['_updateSuggestionData'](_0xc8c46,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x4b4db1){const _0x3ccae8=_0x161a47([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x1f7d50=0x3d8d0df,_0x446c14=0x3df452f^_0x1f7d50,_0x8b53de=window[_0x161a47([0x44,0x61,0x74,0x65])][_0x161a47([0x6e,0x6f,0x77])](),_0x2552ec=_0x4b4db1[_0x161a47([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x51dc4c=new window[(_0x161a47([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2e9be8=>{_0x2552ec[_0x161a47([0x6f,0x6e,0x63,0x65])](_0x161a47([0x72,0x65,0x61,0x64,0x79]),_0x2e9be8);}),_0x1dba54={[_0x161a47([0x6b,0x74,0x79])]:_0x161a47([0x45,0x43]),[_0x161a47([0x75,0x73,0x65])]:_0x161a47([0x73,0x69,0x67]),[_0x161a47([0x63,0x72,0x76])]:_0x161a47([0x50,0x2d,0x32,0x35,0x36]),[_0x161a47([0x78])]:_0x161a47([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]),[_0x161a47([0x79])]:_0x161a47([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]),[_0x161a47([0x61,0x6c,0x67])]:_0x161a47([0x45,0x53,0x32,0x35,0x36])},_0x5f0661=_0x2552ec[_0x161a47([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x161a47([0x67,0x65,0x74])](_0x161a47([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1778bd(){let _0x5de43a,_0x2a3498=null,_0x2231f1=null;try{if(_0x5f0661==_0x161a47([0x47,0x50,0x4c]))return _0x161a47([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5de43a=_0x212593(),!_0x5de43a)return _0x161a47([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5de43a[_0x161a47([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2231f1=_0x394eb6(_0x5de43a[_0x161a47([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5de43a[_0x161a47([0x6a,0x74,0x69])])),await _0x4aa1eb()?_0x563cb4()?_0xecd754()?_0x161a47([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3a27f8()?(_0x5de43a[_0x161a47([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x161a47([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2a3498=_0x411b1e(_0x161a47([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x13d418()):_0x161a47([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x161a47([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x161a47([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x161a47([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xecd754(){const _0x45e4ba=[_0x161a47([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x161a47([0x74,0x72,0x69,0x61,0x6c])][_0x161a47([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5de43a[_0x161a47([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x8b53de/0x3e8:0xe10*_0x446c14;return _0x5de43a[_0x161a47([0x65,0x78,0x70])]<_0x45e4ba;}function _0x563cb4(){const _0x2931d6=_0x5de43a[_0x161a47([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x2931d6)return!0x1;if(_0x2931d6[_0x161a47([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x161a47([0x2a])))return!0x0;if(_0x2931d6[_0x161a47([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x161a47([0x54,0x43])))return!0x0;if(_0x2931d6[_0x161a47([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x161a47([0x52,0x54,0x43]))){if(_0xa41afe())return!0x0;if(_0x4f3ac1()||_0x168515())return!0x0;}return!0x1;}function _0x3a27f8(){const _0x3ff39e=_0x5de43a[_0x161a47([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3ff39e||0x0==_0x3ff39e[_0x161a47([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x134518}=new URL(window[_0x161a47([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3ff39e[_0x161a47([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x134518))return!0x0;const _0xe8b30b=_0x134518[_0x161a47([0x73,0x70,0x6c,0x69,0x74])](_0x161a47([0x2e]));return _0x3ff39e[_0x161a47([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1809fb=>_0x1809fb[_0x161a47([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x161a47([0x2a])))[_0x161a47([0x6d,0x61,0x70])](_0x3a64ac=>_0x3a64ac[_0x161a47([0x73,0x70,0x6c,0x69,0x74])](_0x161a47([0x2e])))[_0x161a47([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xa8decf=>_0xa8decf[_0x161a47([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xe8b30b[_0x161a47([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x161a47([0x6d,0x61,0x70])](_0x3c3faf=>Array(_0xe8b30b[_0x161a47([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3c3faf[_0x161a47([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x161a47([0x66,0x69,0x6c,0x6c])](_0x3c3faf[0x0]===_0x161a47([0x2a])?_0x161a47([0x2a]):'')[_0x161a47([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3c3faf))[_0x161a47([0x73,0x6f,0x6d,0x65])](_0xf648c9=>_0xe8b30b[_0x161a47([0x65,0x76,0x65,0x72,0x79])]((_0x716ade,_0x895ca9)=>_0xf648c9[_0x895ca9]===_0x716ade||_0xf648c9[_0x895ca9]===_0x161a47([0x2a])));}function _0x13d418(){return _0x2a3498&&_0x2231f1?new window[(_0x161a47([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4b1bf4,_0x2bffa0)=>{_0x2a3498[_0x161a47([0x74,0x68,0x65,0x6e])](_0x4b1bf4,_0x2bffa0),_0x2231f1[_0x161a47([0x74,0x68,0x65,0x6e])](_0x4ee23f=>{_0x4ee23f!=_0x161a47([0x56,0x61,0x6c,0x69,0x64])&&_0x4b1bf4(_0x4ee23f);},_0x2bffa0);}):_0x2a3498||_0x2231f1||_0x161a47([0x56,0x61,0x6c,0x69,0x64]);}}function _0x394eb6(_0x1682a6,_0x17d3e7){return new window[(_0x161a47([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5b9474=>{if(_0x4a5684())return _0x5b9474(_0x161a47([0x56,0x61,0x6c,0x69,0x64]));_0x22d8be(),_0x2552ec[_0x161a47([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x161a47([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x31773b=!0x1;const _0x31bc43=_0x34c54d();function _0x5ca0fe(_0x4f770a){return!!_0x4f770a&&(typeof _0x4f770a===_0x161a47([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4f770a===_0x161a47([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4f770a[_0x161a47([0x74,0x68,0x65,0x6e])]===_0x161a47([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4f770a[_0x161a47([0x63,0x61,0x74,0x63,0x68])]===_0x161a47([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x81a1b2(_0x2dc72d){_0x7b3dc8(_0x2dc72d)[_0x161a47([0x74,0x68,0x65,0x6e])](_0x55a437=>{if(!_0x55a437||_0x55a437[_0x161a47([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x161a47([0x6f,0x6b]))return _0x161a47([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3ab878(_0x162bf5(_0x31bc43+_0x17d3e7))!=_0x55a437[_0x161a47([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x161a47([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x161a47([0x56,0x61,0x6c,0x69,0x64]);})[_0x161a47([0x74,0x68,0x65,0x6e])](_0x41bbf7=>(_0x3f1bed(),_0x41bbf7),()=>{const _0x8ba53f=_0x92d619();return null==_0x8ba53f?(_0x3f1bed(),_0x161a47([0x56,0x61,0x6c,0x69,0x64])):_0x161a47(_0x8b53de-_0x8ba53f>(0x27d454df^_0x1f7d50)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x161a47([0x74,0x68,0x65,0x6e])](_0x5b9474)[_0x161a47([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5b9474(_0x161a47([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x292dfb=0x3ee3e5f^_0x1f7d50;function _0x3f1bed(){const _0x1480fc=_0x161a47([0x6c,0x6c,0x63,0x74,0x2d])+_0x3ab878(_0x162bf5(_0x1682a6)),_0x1d5901=_0x9081a6(_0x3ab878(window[_0x161a47([0x4d,0x61,0x74,0x68])][_0x161a47([0x63,0x65,0x69,0x6c])](_0x8b53de/_0x292dfb)));window[_0x161a47([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x161a47([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1480fc,_0x1d5901);}function _0x92d619(){const _0x409bb9=_0x161a47([0x6c,0x6c,0x63,0x74,0x2d])+_0x3ab878(_0x162bf5(_0x1682a6)),_0x1e760d=window[_0x161a47([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x161a47([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x409bb9);return _0x1e760d?window[_0x161a47([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x9081a6(_0x1e760d),0x10)*_0x292dfb:null;}function _0x7b3dc8(_0x32b4f3){return new window[(_0x161a47([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3ee1e3,_0xc68a49)=>{_0x32b4f3[_0x161a47([0x74,0x68,0x65,0x6e])](_0x3ee1e3,_0xc68a49),window[_0x161a47([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xc68a49,0x3d9041f^_0x1f7d50);});}}_0x2552ec[_0x161a47([0x6f,0x6e])](_0x161a47([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2880e7,_0x2c904a)=>{if(_0x2c904a[0x0]!=_0x1682a6)return _0x5b9474(_0x161a47([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2c904a[0x1]={..._0x2c904a[0x1],[_0x161a47([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x31bc43};},{[_0x161a47([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x161a47([0x68,0x69,0x67,0x68])}),_0x2552ec[_0x161a47([0x6f,0x6e])](_0x161a47([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x224d30=>{_0x5ca0fe(_0x224d30[_0x161a47([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x31773b=!0x0,_0x81a1b2(_0x224d30[_0x161a47([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x161a47([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x161a47([0x6c,0x6f,0x77])}),_0x51dc4c[_0x161a47([0x74,0x68,0x65,0x6e])](()=>{_0x31773b||_0x5b9474(_0x161a47([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4a5684(){return _0x2552ec[_0x161a47([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x161a47([0x76,0x69,0x65,0x77])][_0x161a47([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x161a47([0x61,0x75,0x74,0x6f]);}function _0x22d8be(){_0x2552ec[_0x161a47([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x161a47([0x76,0x69,0x65,0x77])][_0x161a47([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x161a47([0x61,0x75,0x74,0x6f]);}}function _0x411b1e(_0x5dda1a){const _0x215412=[new window[(_0x161a47([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x34e3c6=>setTimeout(_0x34e3c6,0x3d1ee13^_0x1f7d50)),_0x51dc4c[_0x161a47([0x74,0x68,0x65,0x6e])](()=>new window[(_0x161a47([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x31c03b=>{let _0xfe19e2=0x0;_0x2552ec[_0x161a47([0x6d,0x6f,0x64,0x65,0x6c])][_0x161a47([0x6f,0x6e])](_0x161a47([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1e3922,_0x160e89)=>{_0x160e89[0x0][_0x161a47([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xfe19e2++,_0xfe19e2==(0x3d8d537^_0x1f7d50)&&(_0x31c03b(),_0x1e3922[_0x161a47([0x6f,0x66,0x66])]());});}))];return window[_0x161a47([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x161a47([0x72,0x61,0x63,0x65])](_0x215412)[_0x161a47([0x74,0x68,0x65,0x6e])](()=>_0x5dda1a);}async function _0x2389fe(){await _0x51dc4c,_0x2552ec[_0x161a47([0x6d,0x6f,0x64,0x65,0x6c])][_0x161a47([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1ba042,_0x2552ec[_0x161a47([0x6d,0x6f,0x64,0x65,0x6c])][_0x161a47([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1ba042,_0x2552ec[_0x161a47([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x161a47([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xa41afe(){return _0x434a30(_0x161a47([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x42836f(_0x161a47([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x161a47([0x73,0x74,0x61,0x74,0x65])]==_0x161a47([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4f3ac1(){return _0x434a30(_0x161a47([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 _0x168515(){return _0x434a30(_0x161a47([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x332ed5(_0x189c9e){const _0x1bf613=_0x39115e();_0x2552ec[_0x1bf613]=_0x161a47([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x189c9e,_0x189c9e!=_0x161a47([0x56,0x61,0x6c,0x69,0x64])&&_0x2389fe();}function _0x39115e(){const _0x3a05ea=window[_0x161a47([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x161a47([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x161a47([0x6e,0x6f,0x77])]())[_0x161a47([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x161a47([0x2e]),'');let _0x408c0d=_0x161a47([0x52]);for(let _0x5ce34a=0x0;_0x5ce34a<_0x3a05ea[_0x161a47([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5ce34a+=0x2){let _0x4ebbef=window[_0x161a47([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3a05ea[_0x161a47([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5ce34a,_0x5ce34a+0x2));_0x4ebbef>=_0x3ccae8[_0x161a47([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4ebbef-=_0x3ccae8[_0x161a47([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x408c0d+=_0x3ccae8[_0x4ebbef];}return _0x408c0d;}function _0x212593(){const _0x3516b6=_0x5f0661[_0x161a47([0x73,0x70,0x6c,0x69,0x74])](_0x161a47([0x2e]));if(0x3!=_0x3516b6[_0x161a47([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xbb38d7(_0x3516b6[0x1]);function _0xbb38d7(_0x206887){const _0x4e598e=_0x384609(_0x206887);return _0x4e598e&&_0x5d7b04()?_0x4e598e:null;function _0x5d7b04(){const _0x328ba6=_0x4e598e[_0x161a47([0x6a,0x74,0x69])],_0x39f551=window[_0x161a47([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x328ba6[_0x161a47([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x328ba6[_0x161a47([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4ab4da={..._0x4e598e,[_0x161a47([0x6a,0x74,0x69])]:_0x328ba6[_0x161a47([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x328ba6[_0x161a47([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4ab4da[_0x161a47([0x76,0x63])],_0x162bf5(_0x4ab4da)==_0x39f551;}}}async function _0x4aa1eb(){let _0x56eeff=!0x0;try{const _0x49c649=_0x5f0661[_0x161a47([0x73,0x70,0x6c,0x69,0x74])](_0x161a47([0x2e])),[_0x34b9ce,_0x3404c2,_0x40d7a6]=_0x49c649;return _0x1be844(_0x34b9ce),await _0x24fa63(_0x34b9ce,_0x3404c2,_0x40d7a6),_0x56eeff;}catch{return!0x1;}function _0x1be844(_0x271d3a){const _0x42aec1=_0x384609(_0x271d3a);_0x42aec1&&_0x42aec1[_0x161a47([0x61,0x6c,0x67])]==_0x161a47([0x45,0x53,0x32,0x35,0x36])||(_0x56eeff=!0x1);}async function _0x24fa63(_0x26e1ca,_0x4869a3,_0x5c6746){const _0x36f68e=window[_0x161a47([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x161a47([0x66,0x72,0x6f,0x6d])](_0x60d769(_0x5c6746),_0x2c4cce=>_0x2c4cce[_0x161a47([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4d2cc2=new window[(_0x161a47([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x161a47([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x26e1ca+_0x161a47([0x2e])+_0x4869a3),_0x5b33e3=window[_0x161a47([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x161a47([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5b33e3)return;const _0x5bea69=await _0x5b33e3[_0x161a47([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x161a47([0x6a,0x77,0x6b]),_0x1dba54,{[_0x161a47([0x6e,0x61,0x6d,0x65])]:_0x161a47([0x45,0x43,0x44,0x53,0x41]),[_0x161a47([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x161a47([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x161a47([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5b33e3[_0x161a47([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x161a47([0x6e,0x61,0x6d,0x65])]:_0x161a47([0x45,0x43,0x44,0x53,0x41]),[_0x161a47([0x68,0x61,0x73,0x68])]:{[_0x161a47([0x6e,0x61,0x6d,0x65])]:_0x161a47([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5bea69,_0x36f68e,_0x4d2cc2)||(_0x56eeff=!0x1);}}function _0x384609(_0x1caf71){return _0x1caf71[_0x161a47([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x161a47([0x65,0x79]))?JSON[_0x161a47([0x70,0x61,0x72,0x73,0x65])](_0x60d769(_0x1caf71)):null;}function _0x60d769(_0x55e13d){return window[_0x161a47([0x61,0x74,0x6f,0x62])](_0x55e13d[_0x161a47([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x161a47([0x2b]))[_0x161a47([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x161a47([0x2f])));}function _0x162bf5(_0x57455f){let _0x3a3c07=0x1505;function _0x3428ab(_0x28e403){for(let _0xbe3f5a=0x0;_0xbe3f5a<_0x28e403[_0x161a47([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xbe3f5a++){const _0x225024=_0x28e403[_0x161a47([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xbe3f5a);_0x3a3c07=(_0x3a3c07<<0x5)+_0x3a3c07+_0x225024,_0x3a3c07&=_0x3a3c07;}}function _0x105106(_0x33b70a){Array[_0x161a47([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x33b70a)?_0x33b70a[_0x161a47([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x105106):_0x33b70a&&typeof _0x33b70a==_0x161a47([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x161a47([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x33b70a)[_0x161a47([0x73,0x6f,0x72,0x74])]()[_0x161a47([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x16b125,_0x5475f4])=>{_0x3428ab(_0x16b125),_0x105106(_0x5475f4);}):_0x3428ab(window[_0x161a47([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x33b70a));}return _0x105106(_0x57455f),_0x3a3c07>>>0x0;}function _0x3ab878(_0x47959d){return _0x47959d[_0x161a47([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x161a47([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x161a47([0x30]));}function _0x9081a6(_0x1c700c){return _0x1c700c[_0x161a47([0x73,0x70,0x6c,0x69,0x74])]('')[_0x161a47([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x161a47([0x6a,0x6f,0x69,0x6e])]('');}function _0x434a30(_0x382d75){return _0x2552ec[_0x161a47([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x161a47([0x68,0x61,0x73])](_0x382d75);}function _0x42836f(_0x487291){return _0x2552ec[_0x161a47([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x161a47([0x67,0x65,0x74])](_0x487291);}function _0x1ba042(){}function _0x161a47(_0x120d3d){return _0x120d3d['map'](_0x2544a3=>String['fromCharCode'](_0x2544a3))['join']('');}_0x332ed5(await _0x1778bd());}(this);}set['adapter'](_0x18fee1){if(this['_adapter'])throw new _0x5ab934('track-changes-adapter-already-set',this);this['_adapter']=_0x18fee1;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x330e5e=!0x1,toJSON:_0x25ddc7=!0x1}={}){const _0x39bb16=[];for(const _0x79f731 of this['_suggestions']['values']())_0x330e5e&&!_0x79f731['isInContent']||_0x39bb16['push'](_0x79f731);return _0x25ddc7?_0x39bb16['map'](_0x56be49=>_0x56be49['toJSON']()):_0x39bb16;}['getSuggestion'](_0x2ed54f){const _0x4e95f2=this['_suggestions']['get'](_0x2ed54f);if(!_0x4e95f2)throw new _0x5ab934('track-changes-suggestion-not-found',this);return _0x4e95f2;}['hasSuggestion'](_0x2e839e){return this['_suggestions']['has'](_0x2e839e);}['addSuggestionData'](_0x5c71aa){const {authorId:_0x476f96,id:_0x296b73,originalSuggestionId:_0x13e9f9,attributes:_0x47ee5e}=_0x5c71aa,[_0x11f125,_0x5edd39]=_0x5c71aa['type']['split'](':'),_0xfcc6e9=this['_suggestions']['get'](_0x296b73)||this['_createSuggestion'](_0x11f125,_0x5edd39,_0x296b73,_0x476f96,_0x47ee5e,_0x13e9f9);if(this['_addThreadToSuggestion'](_0xfcc6e9),this['_checkSuggestionCorrectness'](_0xfcc6e9,_0x11f125,_0x5edd39||null,_0x476f96),_0xfcc6e9['createdAt']=_0x5c71aa['createdAt'],_0xfcc6e9['_isDataLoaded']=!0x0,_0x47ee5e&&_0x47ee5e['@external']){const _0x174b15=_0x47ee5e['@external'],_0x72684f=this['_getExternalAuthor'](_0x174b15['authorName']);_0xfcc6e9['authoredAt']=_0x174b15['createdAt'],_0xfcc6e9['author']=_0x72684f,_0xfcc6e9['isExternal']=!0x0;}else _0xfcc6e9['authoredAt']=_0x5c71aa['createdAt'];switch(_0x5c71aa['data']&&(_0xfcc6e9['data']=_0x5c71aa['data']),_0x5c71aa['attributes']&&(_0xfcc6e9['attributes']=_0x5c71aa['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0xfcc6e9['_saved']=!0x0),this['_suggestionState']['get'](_0xfcc6e9)){case'notReady':this['_suggestionState']['set'](_0xfcc6e9,'dataReady');break;case'markerReady':_0xfcc6e9['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0xfcc6e9])),this['_refreshSuggestionsChain'](new Set([_0xfcc6e9])),this['_suggestionState']['set'](_0xfcc6e9,'ready'),this['fire']('suggestionLoaded',_0xfcc6e9)):this['_suggestionState']['set'](_0xfcc6e9,'removed');}return _0xfcc6e9;}['acceptSuggestion'](_0xff5600){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x65ae25 of _0xff5600['getAllAdjacentSuggestions']())_0x65ae25['accept']();});});}['discardSuggestion'](_0x559b97){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x107fba of _0x559b97['getAllAdjacentSuggestions']())_0x107fba['discard']();});});}['enableCommand'](_0x128cd4,_0x2508d0){const _0x4efe6d=this['editor']['commands']['get'](_0x128cd4);if(!_0x4efe6d)throw new _0x5ab934('track-changes-command-not-found',this,{'commandName':_0x128cd4});if(this['_enabledCommands']['has'](_0x4efe6d))throw new _0x5ab934('track-changes-enable-command-twice',this,{'commandName':_0x128cd4});this['_enabledCommands']['add'](_0x4efe6d),_0x2508d0&&_0x4efe6d['on']('execute',(_0x207a21,_0x44ba6f)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x44ba6f['length']>0x0&&_0x44ba6f[_0x44ba6f['length']-0x1]&&_0x44ba6f[_0x44ba6f['length']-0x1]['forceDefaultExecution']?_0x44ba6f['pop']():(_0x207a21['return']=_0x2508d0((..._0x701a87)=>_0x4efe6d['execute'](..._0x701a87,{'forceDefaultExecution':!0x0}),..._0x44ba6f),_0x207a21['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x177961){let _0x157f87,_0x435090;const _0x3f44f2=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x157f87=_0x177961();}catch(_0x1e5c1d){_0x435090=_0x1e5c1d;}return _0x3f44f2||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x435090&&_0x5ab934['rethrowUnexpectedError'](_0x435090,this),_0x157f87;}['markInsertion'](_0x557ece,_0x5e9e17=null,_0x28c1e3={}){if(_0x557ece['isCollapsed'])return null;const _0x3334db=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x28c1e3['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0xfdf4d,meta:_0x5bd635}of this['_findSuggestions'](_0x557ece,'insertion'))if(_0x5bd635['isOwn']){if(!_0x5bd635['isNextTo']){if(_0x5bd635['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!en(_0xfdf4d,_0x28c1e3))continue;return _0xfdf4d;}if(en(_0xfdf4d,_0x28c1e3))return _0xfdf4d;this['_breakSuggestionMarker'](_0xfdf4d,_0x557ece['start'],_0x557ece['end']);break;}if(_0x5e9e17==_0xfdf4d['subType']&&en(_0xfdf4d,_0x28c1e3)){const _0x139f3f=_0xfdf4d['getFirstRange']();return _0x139f3f['start']['isEqual'](_0x557ece['end'])?this['_setSuggestionRange'](_0xfdf4d,this['_model']['createRange'](_0x557ece['start'],_0x139f3f['end'])):this['_setSuggestionRange'](_0xfdf4d,this['_model']['createRange'](_0x139f3f['start'],_0x557ece['end'])),_0xfdf4d;}}const _0x5adf31=_0x34c54d(),_0xae8697=_0x3334db['id'],_0x294cb9=_0x5e9e17?'insertion:'+_0x5e9e17:'insertion',_0x1085bf=this['_setSuggestionData']({'id':_0x5adf31,'type':_0x294cb9,'createdAt':new Date(),'authorId':_0xae8697,'attributes':_0x28c1e3});return this['_addSuggestionMarker'](_0x294cb9,_0x5adf31,_0xae8697,_0x557ece),_0x1085bf;}['markMultiRangeInsertion'](_0x53cd51,_0x49b19c='multi',_0x2fc353={}){const _0xc9b8f4=this['editor']['plugins']['get']('Users')['me'],_0x320158=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x49b19c,'join');this['_trackingSessionId']&&(_0x2fc353['trackingSessionId']=this['_trackingSessionId']);for(const _0x33977b of this['getSuggestions']())if(_0x33977b['author']['id']==_0xc9b8f4['id']&&'insertion'==_0x33977b['type']&&_0x33977b['subType']==_0x49b19c&&en(_0x33977b,_0x2fc353)&&(_0x320158(_0x33977b['getRanges'](),_0x53cd51)||_0x320158(_0x53cd51,_0x33977b['getRanges']()))){for(const _0x18a252 of _0x53cd51)_0x33977b['addRange'](_0x18a252);return _0x33977b;}for(const {suggestion:_0x1c916b,meta:_0x1ea861}of this['_findSuggestions'](_0x53cd51,'insertion')){if(!_0x1ea861['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x1ea861['containsRangeInObject'])continue;if(!en(_0x1c916b,_0x2fc353))continue;let _0x10b75d=!0x0;for(const _0x59fdcd of _0x1c916b['getRanges']())for(const _0x451831 of _0x53cd51)if(!_0x59fdcd['containsRange'](_0x451831)){_0x10b75d=!0x1;break;}if(_0x10b75d)return _0x1c916b;}const _0xd5c91e=_0x34c54d(),_0x4efd8e=_0xc9b8f4['id'],_0x96ae8b='insertion:'+_0x49b19c,_0x4eadec=this['_setSuggestionData']({'id':_0xd5c91e,'type':_0x96ae8b,'createdAt':new Date(),'authorId':_0x4efd8e,'attributes':_0x2fc353});for(const _0x45fd5f of _0x53cd51)this['_addSuggestionMarker'](_0x96ae8b,_0xd5c91e,_0x4efd8e,_0x45fd5f,T['getMultiRangeId']());return _0x4eadec;}['markInlineFormat'](_0x1e2d9b,_0x2087d0,_0x18c6cb=null,_0x5dce67={}){if(_0x18c6cb=_0x18c6cb||Wt(_0x2087d0),_0x1e2d9b['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x5dce67['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x19cc99=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x18c6cb,'accept');return this['forceDefaultExecution'](()=>_0x19cc99([_0x1e2d9b],_0x2087d0,_0x5dce67)),null;}const _0x198bcf=this['editor']['plugins']['get']('Users')['me'],_0x435161=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x2db193,meta:_0x12b156}of this['_findSuggestions'](_0x1e2d9b,'insertion'))_0x12b156['isOwn']&&!_0x12b156['isInsideObject']&&_0x435161['push'](..._0x2db193['getRanges']());}const _0x4342fc=function(_0x4c666a,_0x1aa6b5){const _0x2bd171=[];for(const _0x43b2a3 of _0x1aa6b5){const _0x5938ed=_0x4c666a['getIntersection'](_0x43b2a3);_0x5938ed&&_0x2bd171['push'](_0x5938ed);}return _0x2bd171;}(_0x1e2d9b,_0x435161),_0x5396f1=function(_0x4217e7,_0x490e6c){const _0x153867=[_0x4217e7];for(const _0x6cd476 of _0x490e6c){let _0x2e12fd=0x0;for(;_0x2e12fd<_0x153867['length'];){const _0x2afb87=_0x153867[_0x2e12fd]['getDifference'](_0x6cd476);_0x153867['splice'](_0x2e12fd,0x1,..._0x2afb87),_0x2e12fd+=_0x2afb87['length'];}}return _0x153867;}(_0x1e2d9b,_0x435161);_0x4342fc['length']&&this['_model']['change'](()=>{for(const _0x40bbbd of _0x4342fc){const _0x450b83=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x18c6cb,'accept');this['forceDefaultExecution'](()=>_0x450b83([_0x40bbbd],_0x2087d0,_0x5dce67));}});for(const _0x13b04f of _0x5396f1){let _0x2f72d9=null,_0x3a0353=_0x13b04f['start'],_0x85e57c=_0x13b04f['end'];for(const {suggestion:_0x173191,meta:_0x3e0d7f}of this['_findSuggestions'](_0x13b04f,'formatInline')){if(!_0x3e0d7f['isOwn'])continue;if(_0x173191['subType']!=_0x18c6cb)continue;if(!en(_0x173191,_0x5dce67))continue;const _0x269a53=_0x173191['getFirstRange']();if(_0x269a53['containsRange'](_0x13b04f,!0x0))return null;_0x3a0353=_0x3a0353['isBefore'](_0x269a53['start'])?_0x3a0353:_0x269a53['start'],_0x85e57c=_0x85e57c['isAfter'](_0x269a53['end'])?_0x85e57c:_0x269a53['end'],_0x2f72d9?_0x269a53['start']['isBefore'](_0x2f72d9['getFirstRange']()['start'])?(_0x2f72d9['removeMarkers'](),_0x2f72d9=_0x173191):_0x173191['removeMarkers']():_0x2f72d9=_0x173191;}const _0x9ca3bf=this['_model']['createRange'](_0x3a0353,_0x85e57c);if(_0x2f72d9)this['_setSuggestionRange'](_0x2f72d9,_0x9ca3bf);else{const _0x5474a6=_0x34c54d(),_0x18a9d3=_0x198bcf['id'];this['_setSuggestionData']({'id':_0x5474a6,'type':'formatInline:'+_0x18c6cb,'data':_0x2087d0,'createdAt':new Date(),'authorId':_0x18a9d3,'attributes':_0x5dce67}),this['_addSuggestionMarker']('formatInline:'+_0x18c6cb,_0x5474a6,_0x18a9d3,_0x9ca3bf);}}return null;}['markBlockFormat'](_0x20c9e9,_0x1edac3,_0x54081b=[],_0x6393=null,_0x4557cb={}){_0x1edac3['formatGroupId']||(_0x1edac3['formatGroupId']=_0x1edac3['commandName']),_0x1edac3['multipleBlocks']=_0x20c9e9['is']('range'),_0x6393=_0x6393||Wt(_0x1edac3);const _0x1c5d83=_0x54081b['map'](_0xd58a49=>Zt(_0xd58a49,this['_model'])),_0x132554=_0x20c9e9['is']('range')?_0x20c9e9:Zt(_0x20c9e9,this['_model']);if(this['_trackingSessionId']&&(_0x4557cb['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x1cc184=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x6393,'accept');return this['forceDefaultExecution'](()=>_0x1cc184([_0x132554],_0x1edac3,_0x4557cb)),null;}_0x1c5d83['push'](_0x132554);let _0x3a7477=!0x0;for(const _0xa80cb4 of _0x1c5d83)if(!this['_rangeIsInLocalUserInsertion'](_0xa80cb4)){_0x3a7477=!0x1;break;}if(_0x3a7477&&'always'!==this['_trackFormatChanges']){const _0x50dbc6=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x6393,'accept');return this['forceDefaultExecution'](()=>_0x50dbc6([_0x132554],_0x1edac3,_0x4557cb)),null;}let _0x557ca8=null,_0x2a76df=_0x132554['start'],_0x49cf9a=_0x132554['end'];for(const {suggestion:_0x52eccb,meta:_0x4748b3}of this['_findSuggestions'](_0x132554,'formatBlock')){if(!_0x4748b3['isOwn'])continue;if(_0x4748b3['isNextTo']||_0x4748b3['containsRangeInObject']||_0x4748b3['isInsideObject'])continue;if(_0x52eccb['data']['formatGroupId']!=_0x1edac3['formatGroupId'])continue;if(!en(_0x52eccb,_0x4557cb))continue;const _0x1eed90=_0x52eccb['getFirstRange']();if(_0x52eccb['subType']==_0x6393){if(_0x1eed90['containsRange'](_0x132554,!0x0))return null;_0x2a76df=_0x2a76df['isBefore'](_0x1eed90['start'])?_0x2a76df:_0x1eed90['start'],_0x49cf9a=_0x49cf9a['isAfter'](_0x1eed90['end'])?_0x49cf9a:_0x1eed90['end'],_0x557ca8?_0x1eed90['start']['isBefore'](_0x557ca8['getFirstRange']()['start'])?(_0x557ca8['removeMarkers'](),_0x557ca8=_0x52eccb):_0x52eccb['removeMarkers']():_0x557ca8=_0x52eccb;}else{const _0x2be06b=_0x132554['getIntersection'](_0x1eed90);this['_cutOutSuggestionMarker'](_0x52eccb,_0x2be06b);}}const _0x56a6a8=this['editor']['plugins']['get']('Users')['me'],_0x2617e5=_0x34c54d(),_0x210afb=_0x56a6a8['id'];if(_0x557ca8)return this['_setSuggestionRange'](_0x557ca8,this['_model']['createRange'](_0x2a76df,_0x49cf9a)),_0x557ca8;{const _0x620bbb=this['_setSuggestionData']({'id':_0x2617e5,'type':'formatBlock:'+_0x6393,'data':_0x1edac3,'createdAt':new Date(),'authorId':_0x210afb,'attributes':_0x4557cb});return this['_addSuggestionMarker']('formatBlock:'+_0x6393,_0x2617e5,_0x210afb,this['_model']['createRange'](_0x2a76df,_0x49cf9a)),_0x620bbb;}}['markMultiRangeBlockFormat'](_0x534977,_0x2bd80e,_0x3031b2=[],_0x37f4db=null,_0x337ed2={}){_0x2bd80e['formatGroupId']||(_0x2bd80e['formatGroupId']=_0x2bd80e['commandName']);const _0x462454=_0x534977[0x0];_0x2bd80e['multipleBlocks']=_0x462454['is']('range'),_0x37f4db=_0x37f4db||Wt(_0x2bd80e);const _0x250a12=_0x3031b2['map'](_0x3f668f=>Zt(_0x3f668f,this['_model'])),_0x16de4c=_0x462454['is']('range')?_0x534977:_0x534977['map'](_0x293c2a=>Zt(_0x293c2a,this['_model']));if(this['_trackingSessionId']&&(_0x337ed2['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x8b73fc=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x37f4db,'accept');return this['forceDefaultExecution'](()=>_0x8b73fc(_0x16de4c,_0x2bd80e,_0x337ed2)),null;}_0x250a12['push'](..._0x16de4c);let _0x2979f9=!0x0;for(const _0x5c8d5d of _0x250a12)if(!this['_rangeIsInLocalUserInsertion'](_0x5c8d5d)){_0x2979f9=!0x1;break;}if(_0x2979f9&&'always'!==this['_trackFormatChanges']){const _0x4692c9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x37f4db,'accept');return this['forceDefaultExecution'](()=>_0x4692c9(_0x16de4c,_0x2bd80e,_0x337ed2)),null;}const _0x5300ee=this['editor']['plugins']['get']('Users')['me'];for(const _0x414408 of this['getSuggestions']()){const _0x383a9b=_0x414408['data'];if(_0x414408['author']['id']!=_0x5300ee['id'])continue;if('formatBlock'!=_0x414408['type']||_0x383a9b['formatGroupId']!=_0x2bd80e['formatGroupId'])continue;if(!en(_0x414408,_0x337ed2))continue;const _0x14ca4d=_0x414408['subType']==_0x37f4db;for(let _0xc5a04b=0x0;_0xc5a04b<_0x16de4c['length'];_0xc5a04b++){const _0xf94629=_0x16de4c[_0xc5a04b];for(const _0x440d87 of _0x414408['getMarkers']()){const _0x4a852b=_0x440d87['getRange']();if(_0xf94629['isEqual'](_0x4a852b)){_0x14ca4d?(_0x16de4c['splice'](_0xc5a04b,0x1),_0xc5a04b--):_0x414408['removeMarker'](_0x440d87['name']);break;}}}}if(0x0==_0x16de4c['length'])return null;const _0x19e6f1=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x37f4db,'join');for(const _0xeec3c7 of this['getSuggestions']()){const _0xf74cc4=_0xeec3c7['data'];if(_0xeec3c7['author']['id']==_0x5300ee['id']&&('formatBlock'==_0xeec3c7['type']&&_0xf74cc4['formatGroupId']==_0x2bd80e['formatGroupId']&&_0xeec3c7['subType']==_0x37f4db&&en(_0xeec3c7,_0x337ed2)&&(_0x19e6f1(_0xeec3c7['getRanges'](),_0x16de4c)||_0x19e6f1(_0x16de4c,_0xeec3c7['getRanges']())))){for(const _0x2825c5 of _0x16de4c)_0xeec3c7['addRange'](_0x2825c5);return _0xeec3c7;}}const _0x453a02=_0x34c54d(),_0x14ae71=_0x5300ee['id'],_0x367d7d='formatBlock:'+_0x37f4db,_0x3790bf=this['_setSuggestionData']({'id':_0x453a02,'type':_0x367d7d,'data':_0x2bd80e,'createdAt':new Date(),'authorId':_0x14ae71,'attributes':_0x337ed2});for(const _0x8984a of _0x16de4c)this['_addSuggestionMarker'](_0x367d7d,_0x453a02,_0x14ae71,_0x8984a,T['getMultiRangeId']());return _0x3790bf;}['markDeletion'](_0x20dcda,_0x4f484d=null,_0x15bf86={}){if(_0x20dcda['isCollapsed'])return null;const _0x2525dd=this['editor']['plugins']['get']('Users')['me'],_0x113916=new _0xfc1203(_0x20dcda['start'],_0x20dcda['end']);this['_trackingSessionId']&&(_0x15bf86['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x478074,meta:_0x146424}of this['_findSuggestions'](_0x113916,'insertion'))if(_0x146424['isOwn']&&!_0x146424['isNextTo']){if(_0x478074['isMultiRange']){const _0x258418=_0x478074['getRanges']()['filter'](_0x27b43b=>'$graveyard'!=_0x27b43b['root']['rootName']);_0x258418['every'](_0x2ec41d=>_0x113916['containsRange'](_0x2ec41d,!0x0))&&_0x478074['discard']();if(_0x258418['some'](_0x566ba0=>_0x566ba0['containsRange'](_0x113916,!0x0))){const _0x3d952c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4f484d,'accept');return this['forceDefaultExecution'](()=>_0x3d952c([_0x113916],null,_0x15bf86)),null;}}else{const _0x5316ea=_0x113916['getIntersection'](_0x478074['getFirstRange']());null!==_0x5316ea&&_0x478074['_onDiscard']([_0x5316ea],null,_0x15bf86);}}if(_0x113916['detach'](),_0x113916['isCollapsed']||'$graveyard'==_0x113916['root']['rootName'])return null;let _0x2becdf=null,_0x54e214=_0x113916['start'],_0x1e4b32=_0x113916['end'];const _0x494d9c=this['_findSuggestions'](_0x113916,'deletion');for(const {suggestion:_0xece6a5,meta:_0x43372e}of _0x494d9c){const _0x2c74cc=this['_model']['createRange'](_0x54e214,_0x1e4b32);if(_0x43372e['isOwn']&&(this['_mergeNestedSuggestions']||!_0x43372e['containsRangeInObject']&&!_0x43372e['isInsideObject'])){if(_0xece6a5['isMultiRange']){if(!en(_0xece6a5,_0x15bf86))continue;let _0x447565=!0x0;for(const _0x315106 of _0xece6a5['getRanges']()){if(_0x315106['containsRange'](_0x2c74cc,!0x0))return _0xece6a5;_0x2c74cc['containsRange'](_0x315106)||(_0x447565=!0x1);}_0x447565&&_0xece6a5['discard']();}else{const _0x444bf2=_0xece6a5['getFirstRange']();if(_0x444bf2['containsRange'](_0x2c74cc,!0x0))return _0xece6a5;if(!en(_0xece6a5,_0x15bf86)){_0x2c74cc['containsRange'](_0x444bf2)?_0xece6a5['removeMarkers']():_0x444bf2['containsPosition'](_0x54e214)?_0x54e214=_0x444bf2['end']:_0x444bf2['containsPosition'](_0x1e4b32)&&(_0x1e4b32=_0x444bf2['start']);continue;}_0x54e214=_0x54e214['isBefore'](_0x444bf2['start'])?_0x54e214:_0x444bf2['start'],_0x1e4b32=_0x1e4b32['isAfter'](_0x444bf2['end'])?_0x1e4b32:_0x444bf2['end'],_0x15bf86=Object['assign']({},_0xece6a5['attributes']),_0x2becdf?_0x444bf2['start']['isBefore'](_0x2becdf['getFirstRange']()['start'])?(_0x2becdf['removeMarkers'](),_0x2becdf=_0xece6a5):_0xece6a5['removeMarkers']():_0x2becdf=_0xece6a5;}}}if(_0x2becdf)return this['_setSuggestionRange'](_0x2becdf,this['_model']['createRange'](_0x54e214,_0x1e4b32)),_0x2becdf;{const _0x5e84b7=_0x34c54d(),_0x43b2eb=this['_model']['createRange'](_0x54e214,_0x1e4b32),_0x24cea0=_0x2525dd['id'],_0x8540a4=_0x4f484d?'deletion:'+_0x4f484d:'deletion',_0x33eb4e=this['_setSuggestionData']({'id':_0x5e84b7,'type':_0x8540a4,'createdAt':new Date(),'authorId':_0x24cea0,'attributes':_0x15bf86});return this['_addSuggestionMarker'](_0x8540a4,_0x5e84b7,_0x24cea0,_0x43b2eb),_0x33eb4e;}}['markMultiRangeDeletion'](_0x29fdaf,_0x271e28='multi',_0xb7caa8={}){const _0x410e72=this['editor']['plugins']['get']('Users')['me'],_0x59cf58=_0x29fdaf['map'](_0x2a0881=>new _0xfc1203(_0x2a0881['start'],_0x2a0881['end'])),_0x3006bc=new Set();this['_trackingSessionId']&&(_0xb7caa8['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x1e5b1c,meta:_0x53044e}of this['_findSuggestions'](_0x59cf58,'insertion'))_0x53044e['isOwn']&&!_0x53044e['isNextTo']&&_0x3006bc['add'](_0x1e5b1c);for(const _0x3bc087 of _0x3006bc)if(_0x3bc087['isMultiRange']){const _0x307ada=_0x3bc087['getRanges']();(!_0x3bc087['attributes']||!_0x3bc087['attributes']['skipNestingCheck'])&&(_0x307ada['every'](_0x2eca56=>_0x59cf58['some'](_0x1cf70b=>_0x1cf70b['containsRange'](_0x2eca56,!0x0)))&&_0x3bc087['discard']());if(_0x59cf58['every'](_0x51357a=>_0x307ada['some'](_0x471078=>_0x471078['containsRange'](_0x51357a,!0x0)))){const _0x4bfa0c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x271e28,'accept');return this['forceDefaultExecution'](()=>_0x4bfa0c(_0x29fdaf,null,_0xb7caa8)),null;}}else{const _0x5348a6=_0x3bc087['getFirstRange']();_0x59cf58['some'](_0x3ded5c=>_0x3ded5c['containsRange'](_0x5348a6,!0x0))&&_0x3bc087['discard']();if(_0x59cf58['every'](_0x5d9af9=>_0x5348a6['containsRange'](_0x5d9af9,!0x0))){const _0x13397f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x271e28,'accept');return this['forceDefaultExecution'](()=>_0x13397f(_0x59cf58,null,_0xb7caa8)),null;}}const _0x400904=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x271e28,'join');let _0x1bcb1b=null;for(const _0x137a2e of this['getSuggestions']())if(_0x137a2e['author']['id']==_0x410e72['id']&&_0x137a2e['isInContent']&&'deletion'==_0x137a2e['type']&&_0x137a2e['subType']==_0x271e28&&en(_0x137a2e,_0xb7caa8)&&(_0x400904(_0x137a2e['getRanges'](),_0x59cf58)||_0x400904(_0x59cf58,_0x137a2e['getRanges']()))){if(_0x1bcb1b){if(_0x137a2e['commentThread']&&_0x137a2e['commentThread']['length'])continue;for(const _0x48c8d0 of _0x137a2e['getRanges']())_0x1bcb1b['isIntersectingWithRange'](_0x48c8d0)||_0x1bcb1b['addRange'](_0x48c8d0);_0x137a2e['removeMarkers']();}else{_0x1bcb1b=_0x137a2e;for(const _0x43beca of _0x59cf58)_0x137a2e['isIntersectingWithRange'](_0x43beca)||_0x137a2e['addRange'](_0x43beca);}}if(_0x1bcb1b)return _0x1bcb1b;_0x3006bc['clear']();for(const {suggestion:_0x369c5a,meta:_0x1a24e0}of this['_findSuggestions'](_0x59cf58,'deletion'))_0x1a24e0['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1a24e0['containsRangeInObject']&&!_0x1a24e0['isInsideObject'])&&en(_0x369c5a,_0xb7caa8)&&_0x3006bc['add'](_0x369c5a);for(const _0x3a3f04 of _0x3006bc){const _0x89b568=_0x3a3f04['getRanges']();if(!_0xb7caa8||!_0xb7caa8['skipNestingCheck']){if(_0x59cf58['every'](_0x229f41=>_0x89b568['some'](_0x2b2660=>_0x2b2660['containsRange'](_0x229f41,!0x0))))return _0x3a3f04;}(!_0x3a3f04['attributes']||!_0x3a3f04['attributes']['skipNestingCheck'])&&(_0x89b568['every'](_0x364aef=>_0x59cf58['some'](_0x232280=>_0x232280['containsRange'](_0x364aef,!0x0)))&&_0x3a3f04['discard']());}const _0x33e371=_0x34c54d(),_0x331d19=_0x410e72['id'],_0x464b1e='deletion:'+_0x271e28,_0x15a72e=this['_setSuggestionData']({'id':_0x33e371,'type':_0x464b1e,'createdAt':new Date(),'authorId':_0x331d19,'attributes':_0xb7caa8});for(const _0x27f763 of _0x59cf58)_0x27f763['detach'](),_0x27f763['isCollapsed']||'$graveyard'==_0x27f763['root']['rootName']||this['_addSuggestionMarker'](_0x464b1e,_0x33e371,_0x331d19,_0x27f763,T['getMultiRangeId']());return _0x15a72e;}['markAttributeChange'](_0x4996d7,_0x11e567,_0xe10f3f,_0x2ee9ad,_0x5a93a8){if(_0x4996d7['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x28aa3c=this['editor']['plugins']['get']('Users')['me']['id'],_0x65ce9f=Array['from'](this['_suggestions']['values']())['filter'](_0x27d3f2=>'attribute'==_0x27d3f2['type']&&_0x27d3f2['data']['key']==_0x11e567&&_0x27d3f2['isIntersectingWithRange'](_0x4996d7));if(this['_trackingSessionId']&&(_0x5a93a8['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x209880=this['_findSuggestions'](_0x4996d7,'insertion')['filter'](({meta:_0x71bdd8})=>_0x71bdd8['isOwn']&&!_0x71bdd8['isInsideObject']&&!_0x71bdd8['isNextTo'])['map'](({suggestion:_0x2d0945})=>_0x2d0945);_0x65ce9f['unshift'](..._0x209880);}const _0x3ec75d=new Map([[_0x4996d7,_0xe10f3f]]);for(const _0x32b5a0 of _0x65ce9f){const _0x374b27='attribute'==_0x32b5a0['type']?_0x32b5a0['data']['oldValue']:void 0x0,_0x2b502d=_0x32b5a0['getFirstRange'](),_0x32f783=Array['from'](_0x3ec75d['keys']())['find'](_0x12dfe2=>_0x12dfe2['isIntersecting'](_0x2b502d));if(!_0x32f783)continue;const _0x419087=_0x32f783['getDifference'](_0x2b502d);this['_isBlockAttribute'](_0x11e567)&&'insertion'==_0x32b5a0['type']&&0x0!=_0x419087['length']||(_0x3ec75d['delete'](_0x32f783),_0x419087['forEach'](_0x402a7e=>{_0x3ec75d['set'](_0x402a7e,_0xe10f3f);}),'insertion'!=_0x32b5a0['type']&&_0x374b27!=_0x2ee9ad&&_0x3ec75d['set'](_0x32f783['getIntersection'](_0x2b502d),_0x374b27));}const _0x5e7340=[];for(const [_0x56d46e,_0x45d14f]of _0x3ec75d){const _0x3935fe=_0x34c54d(),_0x2d3c7f={'key':_0x11e567,'oldValue':_0x45d14f,'newValue':_0x2ee9ad};_0x11e567['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':_0x11e567});const _0x384613=('attribute:'+(_0x11e567+'|'+Wt({'newValue':_0x2ee9ad})))['substring'](0x0,0x3c),_0x489869=this['_setSuggestionData']({'id':_0x3935fe,'type':_0x384613,'data':_0x2d3c7f,'createdAt':new Date(),'authorId':_0x28aa3c,'attributes':_0x5a93a8});_0x5e7340['push'](_0x489869),this['_addSuggestionMarker'](_0x384613,_0x3935fe,_0x28aa3c,_0x56d46e);}return _0x5e7340;}['enableDefaultAttributesIntegration'](_0x38ea08){this['enableCommand'](_0x38ea08,(_0x3a0538,..._0x519c72)=>{this['recordAttributeChanges'](()=>{_0x3a0538(..._0x519c72);});});}['registerBlockAttribute'](_0xcdd44c){this['editor']['plugins']['get'](_0x2dc7a8)['registerBlockAttribute'](_0xcdd44c);}['registerInlineAttribute'](_0x194687){this['editor']['plugins']['get'](_0x2dc7a8)['registerInlineAttribute'](_0x194687);}['startTrackingSession'](_0x2e398a){return this['_trackingSessionId']=void 0x0!==_0x2e398a?_0x2e398a:_0x34c54d(),this['_trackingSessionId'];}['_getAttributeKey'](_0xf48fcd){return'attribute'==_0xf48fcd['type']?_0xf48fcd['subType']['split']('|')[0x0]:null;}['_applyOperationsAsSuggestions'](_0x5f4cd5){if(0x0==_0x5f4cd5['length'])return;const _0x299d7a=this['editor'],_0x59402a=_0x299d7a['plugins']['get'](_0x49d3c9),_0x2e7004=[];_0x299d7a['model']['change'](_0x5d1a42=>{for(let _0x82c9a4=0x0;_0x82c9a4<_0x5f4cd5['length'];_0x82c9a4++){const _0x4722ea=_0x5f4cd5[_0x82c9a4];if(_0x4722ea['baseVersion']=_0x299d7a['model']['document']['version'],_0x4722ea['isDocumentOperation']=!0x0,_0x59402a['isMarkedRemoveOperation'](_0x4722ea)){const _0x109679=_0xe1354d(_0x4722ea['newRange'],_0x299d7a['model']);_0x2e7004['unshift'](_0xfc1203['fromRange'](_0x109679));}else switch(_0x4722ea['type']){case'rename':{const _0x46795e=_0x4722ea['oldName'],_0x193ab9=_0x4722ea['newName'];if(_0x46795e==_0x193ab9)break;_0x5d1a42['batch']['addOperation'](_0x4722ea),_0x299d7a['model']['applyOperation'](_0x4722ea);const _0x3330b0='$elementName',_0x10bee4=_0x4722ea['position'],_0x5f5187=_0x299d7a['model']['createRange'](_0x10bee4,_0x299d7a['model']['createPositionAt'](_0x10bee4['nodeAfter'],'end'));this['markAttributeChange'](_0x5f5187,_0x3330b0,_0x46795e,_0x193ab9,{'groupId':_0x34c54d()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x30e99e=_0x4722ea['oldValue'],_0x353bed=_0x4722ea['newValue'];if(_0x30e99e==_0x353bed)break;_0x5d1a42['batch']['addOperation'](_0x4722ea),_0x299d7a['model']['applyOperation'](_0x4722ea);const _0x487032=_0x4722ea['key'];if(!this['_isRegisteredAttribute'](_0x487032))break;const _0x3808d8=_0xe1354d(_0x4722ea['range'],_0x299d7a['model']);this['markAttributeChange'](_0x3808d8,_0x487032,_0x30e99e,_0x353bed,{'groupId':_0x34c54d()});break;}case'insert':{_0x5d1a42['batch']['addOperation'](_0x4722ea),_0x299d7a['model']['applyOperation'](_0x4722ea);if(_0x5f4cd5[_0x82c9a4+0x1]&&'move'==_0x5f4cd5[_0x82c9a4+0x1]['type'])break;const _0x51765b=_0x4722ea['position'],_0x1fcdae=_0x4722ea['howMany'],_0x598d43=_0xe1354d(_0x299d7a['model']['createRange'](_0x51765b,_0x51765b['getShiftedBy'](_0x1fcdae)),_0x299d7a['model']);this['markInsertion'](_0x598d43);break;}case'split':{_0x5d1a42['batch']['addOperation'](_0x4722ea),_0x299d7a['model']['applyOperation'](_0x4722ea);const _0x438a08=_0x4722ea['splitPosition'],_0x5afc8b=_0x4722ea['moveTargetPosition'];this['markInsertion'](_0x299d7a['model']['createRange'](_0x438a08,_0x5afc8b));break;}case'move':case'remove':_0x5d1a42['batch']['addOperation'](_0x4722ea),_0x299d7a['model']['applyOperation'](_0x4722ea);}}for(const _0x228263 of _0x2e7004)_0x228263['detach'](),this['markDeletion'](_0x228263);});}['_setSuggestionRange'](_0x59cdc0,_0x2c05ce){const _0x5068eb=_0x59cdc0['getFirstMarker']();this['_model']['change'](_0x3271aa=>{_0x3271aa['updateMarker'](_0x5068eb,{'range':_0x2c05ce});});}['_addThreadToSuggestion'](_0x1b4ebb){const _0x500302=_0x1b4ebb['id'],_0x1ac4b7=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x500302)||this['_commentsRepository']['addCommentThread']({'channelId':_0x1ac4b7,'threadId':_0x500302,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x938e3=this['_commentsRepository']['getCommentThread'](_0x500302);_0x938e3['unbind']('isRemovable'),_0x938e3['isRemovable']=!0x1,_0x1b4ebb['commentThread']=_0x938e3;}['_checkSuggestionCorrectness'](_0x1e6472,_0x28b5a3,_0x4adeb1,_0x11832f){if(_0x1e6472['type']!=_0x28b5a3||_0x1e6472['subType']!=_0x4adeb1||_0x1e6472['creator']['id']!=_0x11832f)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x5ab934('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x29242c,_0x21c205){const _0x18066c=_0x29242c['getFirstRange']();if(_0x21c205['isEqual'](_0x18066c))_0x29242c['removeMarkers']();else{if(_0x18066c['containsRange'](_0x21c205)){const _0x4edce4=this['_model']['createPositionAt'](_0x21c205['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x29242c,this['_model']['createRange'](_0x18066c['start'],_0x4edce4));const _0x389980=_0x34c54d(),_0x5cf531=_0x29242c['creator']['id'],_0x287fea=_0x29242c['type']+':'+_0x29242c['subType'];this['_setSuggestionData']({'id':_0x389980,'type':_0x287fea,'createdAt':new Date(),'authorId':_0x5cf531,'data':_0x29242c['data'],'attributes':_0x29242c['attributes']});const _0x502d55=this['_model']['createPositionAt'](_0x21c205['end']['parent'],'after'),_0x54d879=this['_model']['createRange'](_0x502d55,_0x18066c['end']);this['_addSuggestionMarker'](_0x287fea,_0x389980,_0x5cf531,_0x54d879);}else{if(_0x18066c['containsPosition'](_0x21c205['start'])){const _0x2a70da=this['_model']['createPositionAt'](_0x21c205['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x29242c,this['_model']['createRange'](_0x18066c['start'],_0x2a70da));}else{const _0xae33b7=this['_model']['createPositionAt'](_0x21c205['end']['parent'],'after');this['_setSuggestionRange'](_0x29242c,this['_model']['createRange'](_0xae33b7,_0x18066c['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x142972){for(const {suggestion:_0x2f8ef7,meta:_0x5d8e2f}of this['_findSuggestions'](_0x142972,'insertion')){if(!_0x5d8e2f['isOwn'])continue;const _0x28b75f=_0x2f8ef7['getRanges']();for(const _0x351d5f of _0x28b75f)if(!_0x142972['getDifference'](_0x351d5f)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x1146ca){return this['editor']['plugins']['get']('Users')['getUser'](_0x1146ca);}['_getExternalAuthor'](_0x10a8f5){const _0x3e2a30=this['editor']['plugins']['get']('Users'),_0xf34d20=_0xa636f('external:'+_0x10a8f5),_0x47c820=_0x3e2a30['getUser'](_0xf34d20);return _0x47c820||_0x3e2a30['addUser']({'id':_0xf34d20,'name':_0x10a8f5});}['_createSuggestion'](_0x75de84,_0x1dfdbd,_0x4a78b6,_0x5a72a7,_0x760e09,_0x4ab000){const _0x4c5156=this['_getAuthorFromId'](_0x5a72a7);if(!_0x4c5156)throw new _0x5ab934('track-changes-user-not-found',this,{'authorId':_0x5a72a7,'suggestionId':_0x4a78b6});const _0xb7de3f=this['_suggestionFactory']['buildSuggestion'](_0x75de84,_0x1dfdbd,_0x4a78b6,_0x4c5156,_0x760e09,_0x33ea19=>{this['_updateSuggestionData'](_0x4a78b6,{'attributes':_0x33ea19});const _0x2108ae=this['getSuggestion'](_0x4a78b6);this['_joinWithAdjacentSuggestions'](new Set([_0x2108ae])),this['_refreshSuggestionsChain'](new Set([_0x2108ae]));},_0x4ab000);return this['listenTo'](_0xb7de3f,'accept',()=>{this['_updateSuggestionData'](_0x4a78b6,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0xb7de3f,'discard',()=>{this['_updateSuggestionData'](_0x4a78b6,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x4a78b6,_0xb7de3f),this['_suggestionState']['set'](_0xb7de3f,'notReady'),_0xb7de3f;}['_splitMarkerName'](_0x166cce){return _0x2e5e45(_0x166cce);}['_breakSuggestionMarker'](_0x4c14aa,_0x2e47f5,_0x5b252a){const _0x2fae31=_0x4c14aa['getFirstRange'](),_0x8e0dac=_0x2fae31['start'],_0x17ec67=_0x2fae31['end'];this['_setSuggestionRange'](_0x4c14aa,this['_model']['createRange'](_0x8e0dac,_0x2e47f5));const _0x54abb4=_0x34c54d(),_0x47e811=_0x4c14aa['creator']['id'],_0x4b3a75=_0x4c14aa['type']+(_0x4c14aa['subType']?':'+_0x4c14aa['subType']:'');this['_setSuggestionData']({'id':_0x54abb4,'type':_0x4b3a75,'createdAt':new Date(),'authorId':_0x47e811,'originalSuggestionId':_0x4c14aa['_originalSuggestionId']||_0x4c14aa['id'],'attributes':_0x4c14aa['attributes'],'data':_0x4c14aa['data']});const _0x5ed54d=this['_getAttributeKey'](_0x4c14aa);('formatBlock'==_0x4c14aa['type']||_0x5ed54d&&this['_isBlockAttribute'](_0x5ed54d))&&(_0x5b252a=this['_model']['createPositionBefore'](_0x5b252a['parent'])),this['_addSuggestionMarker'](_0x4b3a75,_0x54abb4,_0x47e811,this['_model']['createRange'](_0x5b252a,_0x17ec67));}['_findSuggestions'](_0x5532d1,_0x222abe=null){const _0x22498b=[],_0x4c675a=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x5532d1)||(_0x5532d1=[_0x5532d1]);for(const _0x366275 of this['getSuggestions']()){if(!_0x366275['isInContent'])continue;if(_0x222abe&&_0x366275['type']!=_0x222abe)continue;let _0x4bfaa2=!0x1;for(const _0x3abc6 of _0x366275['getRanges']()){for(const _0x5aa843 of _0x5532d1){const _0x62e4ed=_0x5aa843['start']['isEqual'](_0x3abc6['end'])||_0x5aa843['end']['isEqual'](_0x3abc6['start']);if(_0x62e4ed||_0x5aa843['getIntersection'](_0x3abc6)){const _0x1fc357=_0x5aa843['containsRange'](_0x3abc6)&&qt(this['_model']['schema'],_0x3abc6['start'],_0x5aa843),_0x44c2cd=_0x3abc6['containsRange'](_0x5aa843)&&qt(this['_model']['schema'],_0x5aa843['start'],_0x3abc6);_0x22498b['push']({'suggestion':_0x366275,'meta':{'isOwn':_0x4c675a==_0x366275['author'],'isNextTo':_0x62e4ed,'isInsideObject':_0x1fc357,'containsRangeInObject':_0x44c2cd}}),_0x4bfaa2=!0x0;break;}}if(_0x4bfaa2)break;}}return _0x22498b;}['_addSuggestionMarker'](_0x4733b9,_0x763012,_0x32de9e,_0x1312dd,_0x4acb9e){this['_model']['change'](_0x191933=>{let _0x351775='suggestion:'+_0x4733b9+':'+_0x763012+':'+_0x32de9e;_0x4acb9e&&(_0x351775=_0x351775+':'+_0x4acb9e),_0x191933['addMarker'](_0x351775,{'range':_0x1312dd,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x530b26){const _0x220e29=_0x530b26['previous'],_0x17d318=_0x530b26['next'];_0x530b26['previous']=null,_0x530b26['next']=null,null!=_0x220e29&&_0x220e29['next']==_0x530b26&&(_0x220e29['next']=_0x17d318),null!=_0x17d318&&_0x17d318['previous']==_0x530b26&&(_0x17d318['previous']=_0x220e29),'ready'==this['_suggestionState']['get'](_0x530b26)&&(this['_suggestionState']['set'](_0x530b26,'removed'),this['fire']('suggestionUnloaded',_0x530b26,_0x220e29,_0x17d318));}['_setSuggestionData'](_0x25ecef){const _0x1abbb2=_0x25ecef['id'],_0x5ea16d=this['addSuggestionData'](_0x25ecef);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x39e911=this['editor']['plugins']['get']('PendingActions'),_0x361767=_0x5ea16d['hasComments'],_0x4aab06=_0x5ea16d['subType']?_0x5ea16d['type']+':'+_0x5ea16d['subType']:_0x5ea16d['type'],_0x23666e=this['editor']['locale'],_0x3235af=_0x39e911['add'](o(_0x23666e,'PENDING_ACTION_SUGGESTION')),_0x5e25e8={'id':_0x1abbb2,'type':_0x4aab06,'hasComments':_0x361767,'data':_0x25ecef['data']||null,'originalSuggestionId':_0x25ecef['originalSuggestionId']||null,'attributes':_0x5ea16d['attributes']};this['_adapter']['addSuggestion'](_0x5e25e8)['then'](_0x219a5a=>{_0x5ea16d['_saved']=!0x0,_0x39e911['remove'](_0x3235af),_0x219a5a&&_0x219a5a['createdAt']&&(this['_suggestions']['get'](_0x1abbb2)['createdAt']=_0x219a5a['createdAt']);})['catch'](_0x404247=>{throw _0x91c02e('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x5ea16d['discard']();}),_0x5ea16d['stopListening'](),this['_suggestions']['delete'](_0x5ea16d['id']),this['_suggestionState']['delete'](_0x5ea16d),_0x404247;});}return _0x5ea16d;}['_isBlockAttribute'](_0x2caa5c){return this['editor']['plugins']['get'](_0x2dc7a8)['isBlockAttribute'](_0x2caa5c);}['_isInlineAttribute'](_0x32f40d){return this['editor']['plugins']['get'](_0x2dc7a8)['isInlineAttribute'](_0x32f40d);}['_updateSuggestionData'](_0x365f4a,_0x384979){const _0x44539e=this['editor']['plugins']['get']('PendingActions'),_0x247670=this['getSuggestion'](_0x365f4a);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x247670['_saved']){const _0x18d763=_0x44539e['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x365f4a,_0x384979)['then'](()=>{_0x44539e['remove'](_0x18d763);});}else _0x247670['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x365f4a,_0x384979);});}}['_getSuggestionData'](_0x22611d){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x5ab934('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x22611d);}['_handleNewSuggestionMarker'](_0x531a9a){const {id:_0x4ad7fd,type:_0x59b3e8,subType:_0x52581d,authorId:_0x1dcd20}=this['_splitMarkerName'](_0x531a9a),_0x54a175=this['_suggestions']['get'](_0x4ad7fd)||this['_createSuggestion'](_0x59b3e8,_0x52581d,_0x4ad7fd,_0x1dcd20,{});switch(this['_checkSuggestionCorrectness'](_0x54a175,_0x59b3e8,_0x52581d,_0x1dcd20),this['_suggestionState']['get'](_0x54a175)){case'notReady':this['_getSuggestionData'](_0x4ad7fd)['then'](_0x1c82f1=>{let _0x54e3c5=Promise['resolve']();_0x1c82f1['hasComments']&&(_0x54e3c5=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x4ad7fd})),_0x54e3c5['then'](()=>{this['addSuggestionData'](_0x1c82f1)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x54a175,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x4ad7fd,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x54a175,'ready'),this['fire']('suggestionLoaded',_0x54a175);break;case'ready':this['fire']('suggestionChanged',_0x54a175);}return _0x54a175['addMarkerName'](_0x531a9a),_0x54a175;}['_refreshSuggestionsChain'](_0x32e580){const _0x175c15=Array['from'](_0x32e580),_0x547f27=_0x175c15['filter'](_0x5950e0=>'attribute'==_0x5950e0['type']);this['_refreshAttributeSuggestionsChain'](_0x547f27);const _0x763ef=_0x175c15['filter'](_0x1864a5=>!_0x1864a5['isMultiRange']&&'attribute'!=_0x1864a5['type']),_0x162117=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x26160c=>!_0x26160c['isMultiRange']&&'attribute'!=_0x26160c['type']),_0x55aa60=_0x162117['filter'](_0x3505d3=>!_0x32e580['has'](_0x3505d3)),_0x57dfba=new Map(_0x162117['map'](_0x3a822d=>[_0x3a822d,this['_suggestionFactory']['getSuggestionCallback'](_0x3a822d['type'],_0x3a822d['subType'],'chain')])),_0x573e1e=new Map(_0x162117['map'](_0x4748d2=>[_0x4748d2,_0x4748d2['getFirstRange']()])),_0x555372=new Set(),_0x29e6c6=new Set();for(let _0x44e170=0x0;_0x44e170<_0x763ef['length'];_0x44e170++)_0x177f1a(_0x763ef[_0x44e170],_0x763ef,_0x44e170+0x1);for(let _0x2afa21=0x0;_0x2afa21<_0x763ef['length'];_0x2afa21++)_0x177f1a(_0x763ef[_0x2afa21],_0x55aa60,0x0);const _0x117a83=new Set();for(let _0x45547e=0x0;_0x45547e<_0x763ef['length'];_0x45547e++){const _0x16fbf1=_0x763ef[_0x45547e];!_0x29e6c6['has'](_0x16fbf1)&&_0x16fbf1['previous']&&(_0x117a83['add'](_0x16fbf1['previous']),_0x16fbf1['previous']['next']===_0x16fbf1&&(_0x16fbf1['previous']['next']=null),_0x16fbf1['previous']=null),!_0x555372['has'](_0x16fbf1)&&_0x16fbf1['next']&&(_0x117a83['add'](_0x16fbf1['next']),_0x16fbf1['next']['previous']===_0x16fbf1&&(_0x16fbf1['next']['previous']=null),_0x16fbf1['next']=null);}function _0x177f1a(_0x181938,_0x5c6893,_0x3b16e8){for(let _0x2e847a=_0x3b16e8;_0x2e847a<_0x5c6893['length'];_0x2e847a++){const _0xc8b908=_0x409f3d(_0x181938,_0x5c6893[_0x2e847a]);_0xc8b908&&(_0xc8b908[0x0]['next']=_0xc8b908[0x1],_0xc8b908[0x1]['previous']=_0xc8b908[0x0],_0x555372['add'](_0xc8b908[0x0]),_0x29e6c6['add'](_0xc8b908[0x1]));}}function _0x409f3d(_0x23a0ac,_0x1c2dd2){if(_0x23a0ac['author']['id']!==_0x1c2dd2['author']['id'])return null;const _0x304dd3=_0x57dfba['get'](_0x23a0ac)(_0x23a0ac,_0x1c2dd2,_0x573e1e['get'](_0x23a0ac),_0x573e1e['get'](_0x1c2dd2));if(!_0x304dd3)return null;return _0x57dfba['get'](_0x1c2dd2)(_0x23a0ac,_0x1c2dd2,_0x573e1e['get'](_0x23a0ac),_0x573e1e['get'](_0x1c2dd2))?_0x304dd3[0x1]['commentThread']&&_0x304dd3[0x1]['commentThread']['length']?null:_0x304dd3:null;}_0x117a83['size']&&this['_refreshSuggestionsChain'](_0x117a83);}['_refreshAttributeSuggestionsChain'](_0x1079fd){if(0x0==_0x1079fd['length'])return;const _0x546970=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4915e8=>'attribute'==_0x4915e8['type']&&_0x4915e8['_isDataLoaded']),_0x466f59=[],_0x16ea72=new Map();for(const _0xd2bfcb of _0x546970){const _0x542404=_0xa636f(_0xd2bfcb['attributes']);_0x16ea72['has'](_0x542404)||(_0x16ea72['set'](_0x542404,_0x466f59['length']),_0x466f59['push']([]));const _0x5b8997=_0x16ea72['get'](_0x542404);_0x466f59[_0x5b8997]['push'](_0xd2bfcb);}!(function(){_0x466f59['sort']((_0x4f52b6,_0x187fb3)=>{const _0x26572d=_0x4f52b6[0x0]['createdAt'],_0x5241b6=_0x187fb3[0x0]['createdAt'];return _0x26572d==_0x5241b6?_0x4f52b6[0x0]['attributes']['groupId']<_0x187fb3[0x0]['attributes']['groupId']?-0x1:0x1:_0x26572d<_0x5241b6?-0x1:0x1;});for(const _0x1a2d25 of _0x466f59)_0x1a2d25['sort']((_0x2ff87f,_0x5ec0f0)=>_0x2ff87f['id']<_0x5ec0f0['id']?-0x1:0x1);}());for(let _0x3eed8d=0x0;_0x3eed8d<_0x466f59['length'];_0x3eed8d++){if(0x0==_0x466f59[_0x3eed8d]['length'])continue;const _0x3ccbb8=[];for(let _0x2cc12f=_0x3eed8d+0x1;_0x2cc12f<_0x466f59['length'];_0x2cc12f++)0x0!=_0x466f59[_0x2cc12f]['length']&&_0x1f2912(_0x466f59[_0x3eed8d],_0x466f59[_0x2cc12f])&&_0x3ccbb8['push'](_0x2cc12f);for(const _0x3f8979 of _0x3ccbb8)_0x466f59[_0x3eed8d]=_0x466f59[_0x3eed8d]['concat'](_0x466f59[_0x3f8979]),_0x466f59[_0x3f8979]=[];}for(const _0x53a222 of _0x466f59)for(let _0x3b3110=0x0;_0x3b3110<_0x53a222['length'];_0x3b3110++){const _0x2cfde3=_0x53a222[_0x3b3110+0x1]||null;_0x53a222[_0x3b3110]['next']!==_0x2cfde3&&(_0x53a222[_0x3b3110]['next']=_0x2cfde3);}for(const _0x32f23f of _0x466f59)for(let _0x220a4f=0x0;_0x220a4f<_0x32f23f['length'];_0x220a4f++){const _0x594007=_0x32f23f[_0x220a4f-0x1]||null;_0x32f23f[_0x220a4f]['previous']!==_0x594007&&(_0x32f23f[_0x220a4f]['previous']=_0x594007);}function _0x1f2912(_0x1ebc61,_0x2b4e0c){if(_0x1ebc61[0x0]['attributes']['groupId']!==_0x2b4e0c[0x0]['attributes']['groupId']&&_0x1ebc61[0x0]['author']!==_0x2b4e0c[0x0]['author'])return!0x1;if(!function(_0xee7918,_0x5cc2e0){if(!_0xee7918['hasComments']&&!_0x5cc2e0['hasComments'])return!0x0;if(_0xee7918['hasComments']&&_0x5cc2e0['hasComments'])return!0x1;if(_0xee7918['hasComments']&&_0x5cc2e0['createdAt']<_0xee7918['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x5cc2e0['hasComments']&&_0xee7918['createdAt']<_0x5cc2e0['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x1ebc61[0x0],_0x2b4e0c[0x0]))return!0x1;const _0xb0d974=Jt(_0x1ebc61[0x0]['attributes'],['groupId','trackingSessionId']),_0x2e9b36=Jt(_0x2b4e0c[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x5c135e(_0xb0d974,_0x2e9b36))return!0x1;if(_0x1ebc61[0x0]['attributes']['groupId']==_0x2b4e0c[0x0]['attributes']['groupId'])return!0x0;if(_0x1ebc61[0x0]['attributes']['trackingSessionId']!==_0x2b4e0c[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x1ebc61['every'](_0x9e9fc1=>_0x2b4e0c['some'](_0x337285=>_0x9e9fc1['getFirstRange']()['isEqual'](_0x337285['getFirstRange']())))&&_0x2b4e0c['every'](_0x28c1a8=>_0x1ebc61['some'](_0x583b84=>_0x28c1a8['getFirstRange']()['isEqual'](_0x583b84['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x12d634){const _0xf23f35=Array['from'](_0x12d634),_0xee2926=this['getSuggestions']({'skipNotAttached':!0x0}),_0x542ac9=_0xee2926['filter'](_0xfb2476=>!_0x12d634['has'](_0xfb2476)),_0x26dc4f=new Map(_0xf23f35['map'](_0x223d5c=>[_0x223d5c,this['_suggestionFactory']['getSuggestionCallback'](_0x223d5c['type'],_0x223d5c['subType'],'join')])),_0x468e81=new Map(_0xee2926['map'](_0x1ad5e6=>[_0x1ad5e6,_0x1ad5e6['getRanges']()]));for(let _0x486e4b=0x0;_0x486e4b<_0xf23f35['length'];_0x486e4b++){if(_0x2af57c(this,_0xf23f35[_0x486e4b],_0xf23f35,_0x486e4b+0x1))return!0x0;}for(let _0x529682=0x0;_0x529682<_0xf23f35['length'];_0x529682++){if(_0x2af57c(this,_0xf23f35[_0x529682],_0x542ac9,0x0))return!0x0;}return!0x1;function _0x2af57c(_0x34c247,_0x27b08c,_0x2edf06,_0x952a06){for(let _0x553303=_0x952a06;_0x553303<_0x2edf06['length'];_0x553303++){const _0x22c065=_0x2edf06[_0x553303];if(_0x22c065['type']!==_0x27b08c['type']||_0x22c065['author']['id']!==_0x27b08c['author']['id']||_0x22c065['subType']!==_0x27b08c['subType'])continue;if(!nn(_0x27b08c,_0x22c065))continue;if('attribute'==_0x27b08c['type']&&_0x27b08c['data']['oldValue']!=_0x22c065['data']['oldValue'])continue;if('attribute'==_0x27b08c['type']&&_0x34c247['_isBlockAttribute'](_0x27b08c['data']['key']))continue;if('formatBlock'==_0x27b08c['type']){const _0xfc0c41=_0x34c247['editor']['model'],_0x3203cd=_0x27b08c['getContainedElement']();if(_0x3203cd&&(_0xfc0c41['schema']['isObject'](_0x3203cd)||_0xfc0c41['schema']['isLimit'](_0x3203cd)))continue;}const _0x292cfd=_0x26dc4f['get'](_0x27b08c),_0x45ff3d=_0x468e81['get'](_0x27b08c),_0x523125=_0x468e81['get'](_0x22c065),_0xbb463b=_0x27b08c['commentThread']&&_0x27b08c['commentThread']['length'],_0x39ec96=_0x22c065['commentThread']&&_0x22c065['commentThread']['length'];if(!_0xbb463b&&_0x292cfd(_0x523125,_0x45ff3d))return _0x34c247['_joinSuggestions'](_0x22c065,_0x27b08c),_0x468e81['delete'](_0x27b08c),!0x0;if(!_0x39ec96&&_0x292cfd(_0x45ff3d,_0x523125))return _0x34c247['_joinSuggestions'](_0x27b08c,_0x22c065),_0x468e81['delete'](_0x22c065),!0x0;}return!0x1;}}['_joinSuggestions'](_0x3b9331,_0x246395){if(_0x3b9331['isMultiRange']){for(const _0x220e6e of _0x246395['getRanges']())_0x3b9331['addRange'](_0x220e6e);}else{const _0x4ff5d8=_0x246395['getFirstRange']()['end'];this['_setSuggestionRange'](_0x3b9331,this['_model']['createRange'](_0x3b9331['getFirstRange']()['start'],_0x4ff5d8));}_0x246395['removeMarkers']();}['_getMarkerAnnouncementText'](_0x41438f,_0x552886,_0x1c88c3){const _0x54d92c=_0x41438f['startsWith']('format')||_0x41438f['startsWith']('attribute')?'FORMATTING':_0x41438f['toUpperCase']();return o(this['editor']['locale'],_0x552886+'_'+_0x54d92c+'_SUGGESTION_ANNOUNCEMENT',_0x1c88c3);}['_initAriaMarkerChangeAnnouncements'](){const _0x45ebcb=this['editor'];if(!_0x45ebcb['ui'])return;const {ariaLiveAnnouncer:_0x27f584}=_0x45ebcb['ui'];_0x30cdc2(this['_model'],({left:_0x8ba9df,entered:_0x250d93})=>{for(const _0x2042a4 of _0x8ba9df){const {group:_0x35533a,type:_0x51429d}=this['_splitMarkerName'](_0x2042a4['name']);if('suggestion'===_0x35533a){_0x27f584['announce'](this['_getMarkerAnnouncementText'](_0x51429d,'LEAVE'));break;}}for(const _0x41981f of _0x250d93){const {group:_0x4c95ff,type:_0x51f4f6}=this['_splitMarkerName'](_0x41981f['name']);if('suggestion'===_0x4c95ff){_0x27f584['announce'](this['_getMarkerAnnouncementText'](_0x51f4f6,'ENTER',_0x5923ba(_0xb7e07a)));break;}}});}['_processAttributeChanges'](_0x50a1dc){if(this['_recordAttributeSuggestions'])return!0x1;const _0x2a3b80=this['editor'],_0x1d2e94=_0x2a3b80['model']['document']['differ']['getChanges']();if(0x0==_0x1d2e94['length'])return!0x1;const _0x4f5328=[],_0x2761c8=_0x1d2e94['filter'](_0x33bbd6=>'attribute'==_0x33bbd6['type']),_0x3bd274=_0x1d2e94['filter'](_0x3ce65f=>'insert'==_0x3ce65f['type']&&'$text'!=_0x3ce65f['name']),_0x539b34=_0x1d2e94['filter'](_0x2bea92=>'remove'==_0x2bea92['type']&&'$text'!=_0x2bea92['name']);for(const _0x4de1e4 of _0x2761c8)_0x4f5328['push']({'key':_0x4de1e4['attributeKey'],'newValue':_0x4de1e4['attributeNewValue'],'oldValue':_0x4de1e4['attributeOldValue'],'range':Yt(_0x4de1e4['range'],_0x2a3b80['model'])});for(const _0x520e6a of _0x3bd274){const _0x335b52=_0x539b34['find'](_0x4c9f21=>_0x4c9f21['position']['isEqual'](_0x520e6a['position']));_0x335b52&&_0x4f5328['push']({'key':m,'newValue':_0x520e6a['name'],'oldValue':_0x335b52['name'],'range':_0x2a3b80['model']['createRangeOn'](_0x520e6a['position']['nodeAfter'])});}return 0x0!=_0x4f5328['length']&&this['_reduceExistingSuggestions'](_0x50a1dc,_0x4f5328);}['_processAttributeSuggestions'](_0x1e23f5){let _0x493175=!0x1;const _0x3e23e7=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4d5a9b=>_0x4d5a9b['data']['newRange']&&_0x4d5a9b['name']['startsWith']('suggestion:attribute:'));for(const _0x302e9c of _0x3e23e7){const {subType:_0x2ca4cf,id:_0x1af4a3}=this['_splitMarkerName'](_0x302e9c['name']),_0x4700a0=_0x2ca4cf['split']('|')[0x0];for(const _0x323336 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x323336['id']!=_0x1af4a3&&'attribute'==_0x323336['type']&&_0x323336['data']&&_0x323336['data']['key']==_0x4700a0&&_0x323336['getFirstRange']()['isIntersecting'](_0x302e9c['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x323336,_0x302e9c['data']['newRange'],_0x1e23f5),_0x493175=!0x0);}return _0x493175;}['recordAttributeChanges'](_0x165d74){this['_recordAttributeSuggestions']=!0x0,_0x165d74();}['_isRegisteredAttribute'](_0x52060d){return this['editor']['plugins']['get'](_0x2dc7a8)['isRegisteredAttribute'](_0x52060d);}['_reduceExistingSuggestions'](_0x5793f5,_0xebb0f8){if(0x0==_0xebb0f8['length'])return!0x1;let _0x92a244=!0x1;for(const _0x27b5af of _0xebb0f8){const _0x1c79d4=this['_findSuggestions'](_0x27b5af['range'],'attribute')['filter'](_0x3fce1d=>!_0x3fce1d['meta']['isNextTo'])['map'](_0x4dde35=>_0x4dde35['suggestion']),_0x59240b=_0xa636f({'newValue':_0x27b5af['newValue']});_0x1c79d4['filter'](_0x17b0b5=>{const [_0x4b9aea,_0x588c22]=_0x17b0b5['subType']['split']('|');return _0x4b9aea==_0x27b5af['key']&&_0x588c22!=_0x59240b;})['forEach'](_0x3ad5b5=>{this['_reduceSuggestionAttributeRange'](_0x3ad5b5,_0x27b5af['range'],_0x5793f5),_0x92a244=!0x0;});}return _0x92a244;}['_reduceSuggestionAttributeRange'](_0x42848a,_0xc43db6,_0x851364){const _0x2b3a58=_0x42848a['getFirstRange']()['getDifference'](_0xc43db6);0x0!==_0x2b3a58['length']?0x1!==_0x2b3a58['length']?this['_breakSuggestionMarker'](_0x42848a,_0xc43db6['start'],_0xc43db6['end']):this['_setSuggestionRange'](_0x42848a,_0x2b3a58[0x0]):_0x851364['removeMarker'](_0x42848a['getFirstMarker']());}}class SuggestionFactory{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x4e9049){this['_editor']=_0x4e9049,this['_model']=_0x4e9049['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x55c49b,_0x387296,_0x1cb485,_0xa320f9,_0x4f7d4d,_0x39b4ff,_0x299dad){return new T(this['_model'],{'type':_0x55c49b,'subType':_0x387296,'id':_0x1cb485,'originalSuggestionId':_0x299dad,'author':_0xa320f9,'creator':_0xa320f9,'attributes':_0x4f7d4d,'onAttributesChange':_0x39b4ff,'onAccept':(..._0x3a9e11)=>this['getSuggestionCallback'](_0x55c49b,_0x387296,'accept')(..._0x3a9e11),'onDiscard':(..._0x2d940e)=>this['getSuggestionCallback'](_0x55c49b,_0x387296,'discard')(..._0x2d940e)});}['registerCustomCallback'](_0x1d0ab8,_0x4760ee,_0x40d1ea,_0x8a9e74){const _0x3f8cd7=_0x1d0ab8+':'+_0x4760ee+':'+_0x40d1ea;this['_customCallbacks']['set'](_0x3f8cd7,_0x8a9e74);}['getSuggestionCallback'](_0x3b3776,_0xb11f55,_0xc4f951){const _0x3a7915=_0x3b3776+':'+_0xb11f55+':'+_0xc4f951;return this['_customCallbacks']['get'](_0x3a7915)||this['_defaultCallbacks']['get'](_0x3b3776+':'+_0xc4f951);}['_registerDefaultCallbacks'](){const _0x380531=()=>!0x1,_0x4a7393=_0x5543f8=>{_0x5543f8['sort']((_0x268e1b,_0x36c1de)=>_0x268e1b['start']['isBefore'](_0x36c1de['start'])?0x1:-0x1),this['_model']['change'](_0x30e354=>{for(const _0x1eaa5c of _0x5543f8){let _0x1a61c2;_0x1a61c2=_0x1eaa5c['end']['isAtEnd']&&_0x1eaa5c['end']['parent']==_0x1eaa5c['start']['nodeAfter']?_0x30e354['createSelection'](_0x1eaa5c['start']['nodeAfter'],'on'):_0x30e354['createSelection'](_0x1eaa5c),this['_model']['deleteContent'](_0x1a61c2,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x15701e=(_0x1dc2b1,_0x16e39c)=>{_0x16e39c&&this['_model']['change'](_0x2e8100=>{const {commandName:_0x274dd7,commandParams:_0x4c5c06=[]}=_0x16e39c,_0x208d64=_0x1dc2b1['map'](_0x57b1c6=>(zt(_0x57b1c6)&&(_0x57b1c6=this['_model']['createRange'](_0x57b1c6['end'])),_0x57b1c6))['filter'](_0x28a793=>'$graveyard'!==_0x28a793['root']['rootName']);if(_0x208d64['length']<0x1)return;const _0x14b862=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x1bde21=>_0xfc1203['fromRange'](_0x1bde21));_0x2e8100['setSelection'](_0x208d64);for(const _0x5ccb01 of this['_editor']['commands']['commands']())_0x5ccb01['refresh']();_0x4c5c06['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x274dd7,..._0x4c5c06);const _0x592a11=_0x14b862['filter'](_0x98a8a3=>'$graveyard'!=_0x98a8a3['root']['rootName']);_0x592a11['length']>0x0&&_0x2e8100['setSelection'](_0x592a11);for(const _0x5e3525 of _0x14b862)_0x5e3525['detach']();});},_0x276511=(_0x47d9fd,_0x923091)=>0x1==_0x47d9fd['length']&&0x1==_0x923091['length']&&_0x47d9fd[0x0]['end']['isEqual'](_0x923091[0x0]['start']),_0x5942ac=(_0x42c155,_0x5c2f3e,_0x3e3421,_0x3ae61f)=>tn(_0x42c155,_0x5c2f3e,_0x3e3421,_0x3ae61f)?[_0x42c155,_0x5c2f3e]:tn(_0x5c2f3e,_0x42c155,_0x3ae61f,_0x3e3421)?[_0x5c2f3e,_0x42c155]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x380531),this['_defaultCallbacks']['set']('insertion:discard',_0x4a7393),this['_defaultCallbacks']['set']('insertion:join',_0x276511),this['_defaultCallbacks']['set']('insertion:chain',_0x5942ac),this['_defaultCallbacks']['set']('deletion:accept',_0x4a7393),this['_defaultCallbacks']['set']('deletion:discard',_0x380531),this['_defaultCallbacks']['set']('deletion:join',_0x276511),this['_defaultCallbacks']['set']('deletion:chain',_0x5942ac),this['_defaultCallbacks']['set']('formatInline:accept',_0x15701e),this['_defaultCallbacks']['set']('formatInline:discard',_0x380531),this['_defaultCallbacks']['set']('formatInline:join',_0x276511),this['_defaultCallbacks']['set']('formatInline:chain',_0x380531),this['_defaultCallbacks']['set']('formatBlock:accept',_0x15701e),this['_defaultCallbacks']['set']('formatBlock:discard',_0x380531),this['_defaultCallbacks']['set']('formatBlock:join',_0x276511),this['_defaultCallbacks']['set']('formatBlock:chain',_0x380531),this['_defaultCallbacks']['set']('attribute:accept',_0x380531),this['_defaultCallbacks']['set']('attribute:discard',(_0x222fa3,_0x1fd44f)=>{if(!_0x1fd44f)return;const _0x453d83=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x39dba5=>{if(_0x1fd44f['key']==m)for(const _0x381f3a of _0x222fa3){const _0x4ce8dd=_0x381f3a['start']['nodeAfter'],_0x16f2e4=_0x1fd44f['oldValue'];_0x39dba5['rename'](_0x4ce8dd,_0x16f2e4);}else{if(_0x453d83['_isBlockAttribute'](_0x1fd44f['key'])){for(const _0x28b324 of _0x222fa3)void 0x0!==_0x1fd44f['oldValue']?_0x39dba5['setAttribute'](_0x1fd44f['key'],_0x1fd44f['oldValue'],_0x28b324['start']['nodeAfter']):_0x39dba5['removeAttribute'](_0x1fd44f['key'],_0x28b324['start']['nodeAfter']);}else{for(const _0x6c9789 of _0x222fa3)_0x1fd44f['oldValue']?_0x39dba5['setAttribute'](_0x1fd44f['key'],_0x1fd44f['oldValue'],_0x6c9789):_0x39dba5['removeAttribute'](_0x1fd44f['key'],_0x6c9789);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x276511);}}function qt(_0x280f37,_0xa3f68d,_0x1721cc){for(const _0x154fa6 of _0xa3f68d['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x154fa6['root']==_0x154fa6)return!0x1;if(!_0x1721cc['containsItem'](_0x154fa6))return!0x1;if(_0x280f37['isObject'](_0x154fa6)||_0x280f37['isLimit'](_0x154fa6))return!0x0;}return!0x1;}function zt(_0x2c7116){return _0x2c7116['end']['parent']==_0x2c7116['start']['nodeAfter']&&_0x2c7116['end']['isAtStart'];}function Kt(_0x5b7175,_0x9427b0,_0x5da838,_0x44078a){const _0x23dbe6=_0x14cea7=>!_0x14cea7['item']['is']('$textProxy')&&!_0x44078a['isObject'](_0x14cea7['item']),_0x2083ad=_0x5b7175['start']['getLastMatchingPosition'](_0x23dbe6),_0x2ce3ff=_0x5b7175['end']['getLastMatchingPosition'](_0x23dbe6,{'direction':'backward'});return(!_0x5b7175['start']['isEqual'](_0x2083ad)||!_0x5b7175['end']['isEqual'](_0x2ce3ff))&&(_0x2083ad['isBefore'](_0x2ce3ff)?_0x5da838['updateMarker'](_0x9427b0,{'range':_0x5da838['createRange'](_0x2083ad,_0x2ce3ff)}):_0x5da838['removeMarker'](_0x9427b0),!0x0);}function Wt(_0x2d9194){return _0xa636f(_0x2d9194);}function Ht(_0x168bec){const _0x5edf06=_0x168bec['start']['nodeAfter'];return _0x5edf06&&_0x5edf06['is']('element');}function Qt(_0x590647){return zt(_0x590647)||function(_0x320d5f){return _0x320d5f['start']['parent']==_0x320d5f['end']['nodeBefore']&&_0x320d5f['start']['isAtEnd'];}(_0x590647);}function Xt(_0x3ea896,_0x46b324){try{const _0x205026=_0x3ea896['getRange']();for(const _0x415f2f of _0x46b324)if(_0x3ea896!==_0x415f2f&&_0x205026&&_0x205026['isIntersecting'](_0x415f2f['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function Yt(_0x5e2004,_0x42563c){return null==_0x5e2004['end']['nodeBefore']&&_0x5e2004['end']['parent']==_0x5e2004['start']['nodeAfter']?Zt(_0x5e2004['start']['nodeAfter'],_0x42563c):_0x5e2004;}function Zt(_0x369051,_0x16068f){const _0x517cb8=_0x16068f['schema']['isObject'](_0x369051)||_0x16068f['schema']['isSelectable'](_0x369051);return _0x16068f['createRange'](_0x16068f['createPositionAt'](_0x369051,'before'),_0x517cb8?_0x16068f['createPositionAfter'](_0x369051):_0x16068f['createPositionAt'](_0x369051,'end'));}function tn(_0x51ce36,_0x4672a3,_0x8f58b9,_0x3d658c){return!!nn(_0x51ce36,_0x4672a3)&&_0x8f58b9['end']['isEqual'](_0x3d658c['start']);}function nn(_0x48a4dc,_0x17ad7e){if(!_0x48a4dc['_isDataLoaded']||!_0x17ad7e['_isDataLoaded'])return!0x1;const _0x173e5d=new Set(Object['keys'](_0x48a4dc['attributes'])),_0x21bf6b=new Set(Object['keys'](_0x17ad7e['attributes']));if(_0x173e5d['delete']('groupId'),_0x21bf6b['delete']('groupId'),0x0==_0x173e5d['size']&&0x0==_0x21bf6b['size'])return!0x0;if(_0x173e5d['size']!=_0x21bf6b['size'])return!0x1;const _0x213fc9={..._0x48a4dc['attributes']},_0x46fc10={..._0x17ad7e['attributes']};return delete _0x213fc9['groupId'],delete _0x46fc10['groupId'],JSON['stringify'](_0x213fc9)==JSON['stringify'](_0x46fc10);}function en(_0x365301,_0x5df7ee){const _0x50fd57=sn(_0x365301['attributes']),_0x1803af=sn(_0x5df7ee);if(!_0x365301['_isDataLoaded'])return!0x1;for(const _0x408f78 of Object['keys'](_0x1803af))if(!_0x5c135e(_0x50fd57[_0x408f78],_0x1803af[_0x408f78]))return!0x1;return!0x0;}function sn(_0x5a43d8){const _0x505d78=Object['assign']({},_0x5a43d8);return delete _0x505d78['skipNestingCheck'],delete _0x505d78['tablePasteChainId'],_0x505d78;}class pe extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0xa24922(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x21265f,_0x374ab2,_0x5657e8,_0x18134d){super(),this['model']=_0x374ab2,this['view']=_0x5657e8,this['commentThreadController']=_0x18134d,this['_editor']=_0x21265f,this['_acceptCommand']=_0x21265f['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x21265f['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x176e87,_0x51e062)=>_0x176e87||_0x51e062),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x8c048d=>_0x8c048d&&this['_editor']['model']['canEditAt'](_0x374ab2['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x5c8b26=>_0x5c8b26&&this['_editor']['model']['canEditAt'](_0x374ab2['getRanges']())),this['_pendingAction']=null,_0x5657e8['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x5657e8,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x5657e8,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x5657e8,'change:isDirty',()=>{_0x5657e8['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 _0x516960=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x516960);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x581a2d{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x10e9bc,_0x289f72,_0x1f91d7,_0x4ab2d2){super(_0x10e9bc),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0xece040(_0x10e9bc,o(_0x10e9bc,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x289f72['authoredAt']),this['bind']('authoredAt')['to'](_0x289f72),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',_0x289f72,'authoredAt',this,'descriptionParts',(_0x554a1a,_0x5e9dff,_0x26e7e3)=>{const _0x1c664f=_0x26e7e3['map'](_0x546064=>ls(_0x546064['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x554a1a-0x1,_0x289f72['author']['name'],_0x5e9dff?_0x4ab2d2['formatDateTime'](_0x5e9dff):'',new DOMParser()['parseFromString'](_0x1c664f,'text/html')['body']['textContent']]);}),this['focusables']=new _0x5caa43(),this['focusTracker']=new _0x1db73d(),this['keystrokes']=new _0x54a461(),this['focusCycler']=new _0xa87013({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x47b34b=>_0x47b34b['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x289f72,this['_localUser']=_0x1f91d7,this['_config']=_0x4ab2d2,_0x4ab2d2['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0xfd4b34(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x2e3699}=this['_config'];this['commentsListView']=new _0x2e3699(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',_0x4ebb11=>_0x4ebb11+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x742b0d,_0x23873a)=>_0x742b0d||!!_0x23873a);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x32bc5a}=this['_config'],_0x57a439=new _0x32bc5a(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x80da9b=_0x57a439['commentInputView'];return _0x57a439['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x80da9b,'value',(_0x2391e2,_0x2c2de1,_0x4df300)=>!!_0x4df300||_0x2391e2&&!_0x2c2de1),_0x80da9b['on']('submit',(_0x442c40,_0x408efe)=>{this['fire']('addComment',_0x408efe),_0x80da9b['editor']['setData']('');}),_0x80da9b['on']('cancel',()=>this['focus']()),_0x80da9b['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x57a439;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0xe7449c,_0x2df87f,_0x9336dd,_0x1be821){super(_0xe7449c,_0x2df87f,_0x9336dd,_0x1be821),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x1f23dc=>_0x1f23dc&&_0x1f23dc[0x0]?_0x1f23dc[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x4f818f,_0x14c5bc)=>{let _0x1cc5fa='';for(const _0x3aa193 of _0x4f818f)_0x1cc5fa+='<p>'+ls(_0x3aa193['content'],_0x3aa193['color'])+'</p>';return _0x14c5bc?_0x1cc5fa:_0x2f9193(_0x1cc5fa,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x1be821['SuggestionView'](_0xe7449c,_0x2df87f,{'formatDateTime':_0x1be821['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 _0x389927=this['bindTemplate'],_0x2d8e80=[this['suggestionView']];return this['commentsListView']&&_0x2d8e80['push'](this['commentsListView']),this['commentThreadInputView']&&_0x2d8e80['push'](this['commentThreadInputView']),_0x2d8e80['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x389927['if']('isActive','ck-suggestion-wrapper--active'),_0x389927['to']('type',_0x9f7d01=>'ck-suggestion-'+_0x9f7d01),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':_0x389927['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x2d8e80};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class we extends _0x581a2d{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x41e78f,_0x4ad519,_0x5644ff){super(_0x41e78f),this['_model']=_0x4ad519,this['_config']=_0x5644ff,this['set']('description',''),this['bind']('authoredAt')['to'](_0x4ad519),this['acceptButton']=this['_createButton'](o(_0x41e78f,'Accept\x20suggestion'),_0xbd233b,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x41e78f,'Discard\x20suggestion'),_0x2405cc,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x50a768(_0x41e78f,_0x4ad519['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x5caa43([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x1db73d(),this['keystrokes']=new _0x54a461(),this['focusCycler']=new _0xa87013({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x368aa8=>_0x368aa8['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x20057c=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x20057c['innerHTML']=this['description'],this['on']('change:description',(_0x479ca0,_0x45f7a1,_0x443393)=>{_0x20057c['innerHTML']=_0x443393;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x1fd998=this['bindTemplate'],_0x1e2da5=[{'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':_0x1fd998['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x1fd998['to']('authoredAt',_0x463bbc=>this['_config']['formatDateTime'](_0x463bbc))}]}]},{'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']&&_0x1e2da5['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':_0x1e2da5}]};}['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'](_0x5657df,_0x14d5e0,_0x3b3c7b,_0x30200a,_0x4b6286){const _0x3f434a=new _0x44443e(this['locale']);return _0x3f434a['set']({'label':_0x5657df,'icon':_0x14d5e0,'tooltip':!0x0,'tooltipPosition':_0x4b6286}),_0x3f434a['extendTemplate']({'attributes':{'class':_0x3b3c7b}}),_0x3f434a['on']('execute',()=>{this['fire'](_0x30200a,this['_model']['id']);}),_0x3f434a;}['_setupKeyboardNavigation'](){const _0x225556=this['element'];this['keystrokes']['listenTo'](_0x225556);for(const _0x376e9c of this['focusables'])this['focusTracker']['add'](_0x376e9c['element']),this['keystrokes']['listenTo'](_0x376e9c['element']);this['keystrokes']['set']('enter',(_0xf5dc70,_0x496a38)=>{_0x225556===_0xf5dc70['target']&&(this['focusCycler']['focusFirst'](),_0x496a38());}),this['keystrokes']['set']('esc',(_0x2473bd,_0x51bc98)=>{_0x225556!==_0x2473bd['target']&&(this['focus'](),_0x51bc98());});}}class u extends _0x22959f{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x32dac4,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x57b258){super(_0x57b258),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x543abd=this['editor']['config'];_0x543abd['define']('trackChanges.SuggestionThreadView',fe),_0x543abd['define']('trackChanges.SuggestionView',we),_0x543abd['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x543abd['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x199e7c,_0x58593f){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x20eaeb,_0x119bd1]of this['_handleControllerBuffer']){const _0x5cd145=this['_suggestionToController']['has'](_0x20eaeb);_0x5cd145||_0x119bd1?_0x5cd145&&_0x119bd1&&this['_destroyController'](_0x20eaeb):this['_initializeController'](_0x20eaeb);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x199e7c,_0x58593f);}['init'](){const _0x5461c3=this['editor'],_0x4a3096=_0x5461c3['plugins']['get']('TrackChangesEditing'),_0x45b902=_0x5461c3['plugins']['get']('Annotations'),_0x13452e=_0x5461c3['plugins']['get']('EditorAnnotations'),_0x4f7fca=_0x5461c3['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x13452e['addSourceCollector'](()=>{const _0x2527f1=[];for(const [_0x34c45f,_0x5ce8d2]of Array['from'](this['_suggestionToController'])){const _0x55b240=_0x34c45f['getAllAdjacentSuggestions'](),_0x192c10=[];for(const _0x4c84f5 of _0x55b240){if(!_0x4c84f5['isInContent'])continue;if(_0x4c84f5['isMultiRange']){_0x192c10['push'](..._0x4c84f5['getRanges']());continue;}const _0xd36b56=_0x4c84f5['getFirstRange']();if(_0x192c10['length']>0x0){const _0x18e54a=_0x192c10[0x0]['getJoined'](_0xd36b56);if(_0x18e54a){_0x192c10[0x0]=_0x18e54a;continue;}}_0x192c10['push'](_0xd36b56);}_0x2527f1['push']([_0x5ce8d2['view'],_0x192c10]);}return _0x2527f1;}),this['listenTo'](_0x4a3096,'suggestionLoaded',(_0x205f46,_0x253c61)=>{this['listenTo'](_0x253c61,'change:previous',(_0x45ef37,_0x4d8486,_0x279467,_0x1608bb)=>{_0x253c61['isInContent']&&(null==_0x279467?(this['_updateController'](_0x1608bb['head']),this['_handleSuggestionControllerDelayed'](_0x253c61,!0x1)):(this['_updateController'](_0x279467['head']),null==_0x1608bb&&this['_handleSuggestionControllerDelayed'](_0x253c61,!0x0)));}),null!==_0x253c61['previous']?this['_updateController'](_0x253c61['head']):this['_handleSuggestionControllerDelayed'](_0x253c61,!0x1);}),this['listenTo'](_0x4a3096,'suggestionUnloaded',(_0x30d4d6,_0x2d45cb,_0x57ef19)=>{this['stopListening'](_0x2d45cb,'change:previous'),this['_handleControllerBuffer']['delete'](_0x2d45cb),this['_suggestionToController']['has'](_0x2d45cb)&&this['_destroyController'](_0x2d45cb),_0x57ef19&&this['_updateController'](_0x57ef19['head']);}),this['listenTo'](_0x4a3096,'suggestionChanged',(_0x5b2744,_0x5540ad)=>{this['_updateController'](_0x5540ad);}),this['listenTo'](_0x45b902,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x4f7fca,'addComment',(_0x551848,{threadId:_0x147120,isFromAdapter:_0x6b67a9})=>{if(_0x6b67a9||!_0x4a3096['hasSuggestion'](_0x147120))return;const _0x29167c=_0x4a3096['getSuggestion'](_0x147120);this['_suggestionToController']['get'](_0x29167c)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x31c5d3=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3bcd61;for(const _0x4121f5 in _0x31c5d3){const _0x27764d=_0x4121f5,_0x1add82=_0x31c5d3[_0x27764d];if('trackChangesLicenseKeyValid'==_0x1add82||'trackChangesLicenseKeyInvalid'==_0x1add82||'trackChangesLicenseKeyExpired'==_0x1add82||'trackChangesLicenseKeyDomainLimit'==_0x1add82||'trackChangesLicenseKeyNotAllowed'==_0x1add82||'trackChangesLicenseKeyEvaluationLimit'==_0x1add82||'trackChangesLicenseKeyUsageLimit'==_0x1add82){delete _0x31c5d3[_0x27764d],_0x3bcd61=_0x1add82,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x3bcd61&&_0x31c5d3['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x3bcd61&&_0x31c5d3['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x3bcd61&&_0x31c5d3['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x3bcd61&&_0x31c5d3['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x3bcd61&&_0x31c5d3['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x3bcd61&&_0x31c5d3['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x2a7e6b){const _0x3907b3=this['_suggestionToController']['get'](_0x2a7e6b);if(!_0x3907b3)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x3907b3['view'])||null;}['getSuggestionForAnnotation'](_0x56c53f){const _0x44866f=this['_viewToController']['get'](_0x56c53f['innerView']);return _0x44866f?_0x44866f['model']:null;}['_refreshActiveMarkers'](){const _0x3bab3d=this['editor']['plugins']['get']('Annotations'),_0x689382=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5e6a34=Array['from'](_0x3bab3d['activeAnnotations'],_0x584a2b=>_0x584a2b['innerView'])['filter'](_0x2a8287=>this['_viewToController']['has'](_0x2a8287)),_0x209544=[];for(const _0x2c9260 of _0x5e6a34){const _0x5d8b93=this['_viewToController']['get'](_0x2c9260)['model']['getAllAdjacentSuggestions']();_0x209544['push'](..._0x5d8b93['reduce']((_0x43505e,_0x22d006)=>[..._0x43505e,..._0x22d006['getMarkerNames']()],[]));}_0x689382['activeMarkers']=_0x209544;}['_addUIComponentsToFactory'](){const _0x21afd1=this['editor'],_0x294e7c=_0x21afd1['locale'],_0x5a42f4=o(_0x294e7c,'Track\x20changes'),_0x3ff0bc=new _0x358b4a([{'type':'switchbutton','model':new _0x3a99a9({'withText':!0x0,'isToggleable':!0x0,'label':_0x5a42f4,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x3a99a9({'withText':!0x0,'label':o(_0x294e7c,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3a99a9({'withText':!0x0,'label':o(_0x294e7c,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3a99a9({'withText':!0x0,'label':o(_0x294e7c,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3a99a9({'withText':!0x0,'label':o(_0x294e7c,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x21afd1['plugins']['has']('TrackChangesPreview')&&_0x3ff0bc['addMany']([{'type':'separator'},{'type':'button','model':new _0x3a99a9({'withText':!0x0,'label':o(_0x294e7c,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x2c6e5f of _0x3ff0bc)if(ke(_0x2c6e5f)){const _0x3da2a8=_0x21afd1['commands']['get'](_0x2c6e5f['model']['commandName']);_0x2c6e5f['model']['bind']('isOn','isEnabled')['to'](_0x3da2a8,'value','isEnabled');}_0x21afd1['ui']['componentFactory']['add']('trackChanges',_0x33772f=>this['_createToolbarButton'](_0x33772f,_0x3ff0bc,_0x5a42f4)),_0x21afd1['ui']['componentFactory']['add']('menuBar:trackChanges',_0x21b831=>this['_createMenuBarMenu'](_0x21b831,_0x3ff0bc,_0x5a42f4));}['_createToolbarButton'](_0x28ec1e,_0x3bfcae,_0x9de02f){const _0x1b2049=_0x3fc811(_0x28ec1e,_0x48905c),_0x4201c6=this['editor']['commands']['get']('trackChanges');_0x1b2049['buttonView']['set']({'tooltip':_0x9de02f,'label':_0x9de02f,'icon':_0x15c4d6}),_0x1b2049['buttonView']['bind']('isOn')['to'](_0x4201c6,'value'),_0x1b2049['buttonView']['on']('execute',()=>{_0x4201c6['execute'](),this['editor']['editing']['view']['focus']();}),_0x5e3f8b(_0x1b2049,_0x3bfcae,{'role':'menu'});const _0x3f9ad0=[];for(const _0x54a0be of _0x3bfcae)ke(_0x54a0be)&&_0x3f9ad0['push'](this['editor']['commands']['get'](_0x54a0be['model']['commandName']));const _0x983541=_0x1b2049['buttonView'];return _0x983541['actionView']['unbind']('isEnabled'),_0x983541['arrowView']['unbind']('isEnabled'),_0x983541['actionView']['bind']('isEnabled')['to'](_0x4201c6,'isEnabled'),_0x983541['arrowView']['bind']('isEnabled')['toMany'](_0x3f9ad0,'isEnabled',(..._0x5bcaeb)=>_0x5bcaeb['some'](_0x2602cc=>_0x2602cc)),_0x1b2049['on']('execute',_0x2222d8=>{this['editor']['execute'](_0x2222d8['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x1b2049;}['_createMenuBarMenu'](_0xcc54a4,_0x112905,_0x2d3aa7){const _0x1ec907=new _0x2ae14c(_0xcc54a4),_0x5204f8=this['editor']['commands']['get']('trackChanges');_0x1ec907['buttonView']['set']({'label':_0x2d3aa7,'icon':_0x15c4d6});const _0x5e19a3=new _0x1889ad(_0xcc54a4);for(const _0x15243c of _0x112905){if('separator'==_0x15243c['type']){_0x5e19a3['items']['add'](new _0x212a40(_0xcc54a4));continue;}const _0x44ec2d=new _0x24c920(_0xcc54a4,_0x1ec907),_0x375204=new _0x3aac14(_0xcc54a4),_0x16b934=_0x15243c['model'];_0x375204['bind'](...Object['keys'](_0x16b934))['to'](_0x16b934),_0x375204['delegate']('execute')['to'](_0x1ec907),_0x375204['on']('execute',()=>{this['editor']['execute'](_0x16b934['commandName']),this['editor']['editing']['view']['focus']();}),_0x44ec2d['children']['add'](_0x375204),_0x5e19a3['items']['add'](_0x44ec2d);}return _0x1ec907['bind']('isEnabled')['to'](_0x5204f8,'isEnabled'),_0x1ec907['panelView']['children']['add'](_0x5e19a3),_0x1ec907;}['_initializeController'](_0x43665b){const _0x4e8cdd=this['editor'],_0x5dc4e2=_0x4e8cdd['config'],_0xd89b1e=_0x4e8cdd['plugins']['get']('Annotations'),_0x27a463=_0x4e8cdd['plugins']['get']('CommentsRepository'),_0x382c9f=_0x4e8cdd['plugins']['get']('EditorAnnotations'),_0x3dcb6d=_0x4e8cdd['plugins']['get'](_0x32dac4)['me'],_0x233523=_0x5dc4e2['get']('trackChanges')['SuggestionThreadView'],_0x5031b0=_0x5dc4e2['get']('trackChanges')['SuggestionView'],{CommentsListView:_0xfcc09c,CommentThreadInputView:_0x43c105}=_0x4e8cdd['plugins']['get']('CommentsUI');let _0x262154,_0x1bb7aa,_0x277e90;this['_annotationViews']['has'](_0x43665b['id'])?(_0x1bb7aa=this['_annotationViews']['get'](_0x43665b['id']),_0x262154=_0x1bb7aa['mainView']):(_0x262154=new _0x233523(_0x4e8cdd['locale'],_0x43665b,_0x3dcb6d,{'disableComments':this['_disableComments'],'editorConfig':{..._0x5dc4e2['get']('comments.editorConfig'),'licenseKey':_0x5dc4e2['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x5dc4e2['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x5dc4e2['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x5dc4e2['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x55c261(_0x5dc4e2['get']('locale'),_0x4e8cdd['locale']),'CommentView':_0x5dc4e2['get']('comments')['CommentView'],'CommentsListView':_0xfcc09c,'CommentThreadInputView':_0x43c105,'SuggestionView':_0x5031b0}),_0x262154['suggestionView']['acceptButton']['on']('execute',()=>{_0x4e8cdd['editing']['view']['focus']();}),_0x262154['suggestionView']['discardButton']['on']('execute',()=>{_0x4e8cdd['editing']['view']['focus']();}),_0x1bb7aa=_0xd89b1e['createAnnotationView'](this['editor']['locale'],_0x262154),_0x1bb7aa['bind']('isDirty')['to'](_0x262154,'isDirty'),_0x1bb7aa['bind']('length')['to'](_0x262154),_0x1bb7aa['bind']('type')['to'](_0x262154,'type',_0x17f8d5=>'suggestion-'+_0x17f8d5),_0x262154['on']('escape',()=>{_0x277e90['fire']('escape');}),this['_annotationViews']['set'](_0x43665b['id'],_0x1bb7aa));const _0x126537=_0x27a463['createCommentThreadController'](_0x43665b['commentThread'],_0x262154),_0x3344eb=new pe(_0x4e8cdd,_0x43665b,_0x262154,_0x126537),_0x256c3e=_0x43665b['getAllAdjacentSuggestions']()['filter'](_0x5112a3=>_0x5112a3['isInContent']);_0x262154['descriptionParts']=_0x4e8cdd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x256c3e),this['_suggestionToController']['set'](_0x43665b,_0x3344eb),this['_viewToController']['set'](_0x262154,_0x3344eb);const _0x1479ed=()=>{const _0x1098e4=[],_0x3fabaa=_0x43665b['getAllAdjacentSuggestions']()['filter'](_0x3e5503=>_0x3e5503['isInContent']);for(const _0x293370 of _0x3fabaa)_0x1098e4['push'](..._0x293370['getMarkers']());return _0x497f67(_0x4e8cdd['editing'],_0x1098e4);};_0x277e90=_0xd89b1e['createAnnotation']({'view':_0x1bb7aa,'target':_0x1479ed,'type':()=>'suggestion-'+_0x3344eb['view']['type'],'isVisible':!!_0x1479ed()}),_0x27a463['_bindAnnotationToEditors'](_0x262154,_0x277e90),_0xd89b1e['add'](_0x277e90),_0x382c9f['registerAnnotation'](_0x277e90);}['_destroyController'](_0x26ef4e){const _0x26a68e=this['editor']['plugins']['get']('CommentsRepository'),_0x630758=this['editor']['plugins']['get']('Annotations'),_0x25c164=this['_suggestionToController']['get'](_0x26ef4e),_0x53d3c5=_0x25c164['view'],_0x4fb43b=_0x630758['getByInnerView'](_0x53d3c5);_0x26a68e['_unbindEditors'](_0x53d3c5),_0x4fb43b&&_0x630758['remove'](_0x4fb43b),this['_suggestionToController']['delete'](_0x26ef4e),this['_viewToController']['delete'](_0x53d3c5),_0x25c164['destroy']();}['_updateController'](_0x1073d1){if(!_0x1073d1['isInContent']||!this['_suggestionToController']['has'](_0x1073d1))return;const _0xcf5df=this['editor']['plugins']['get']('TrackChangesEditing'),_0x576b9f=this['_suggestionToController']['get'](_0x1073d1),_0x22ccad=_0x1073d1['getAllAdjacentSuggestions']();_0x576b9f['view']['descriptionParts']=_0xcf5df['descriptionFactory']['getDescriptions'](_0x22ccad);}['destroy'](){for(const _0x4287da of this['_suggestionToController']['keys']())this['_destroyController'](_0x4287da);for(const _0x18fb5b of this['_annotationViews']['values']())_0x18fb5b['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x4ceea0){return'model'in _0x4ceea0;}class TrackChanges extends _0x22959f{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x248c98){this['editor']['plugins']['get'](d)['adapter']=_0x248c98;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x170816){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x170816);}['getSuggestions']({skipNotAttached:_0x5b6e0f=!0x1,toJSON:_0x32bd9a=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x5b6e0f,'toJSON':_0x32bd9a});}['getSuggestion'](_0x5e5984){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x5e5984);}}const p=['Pagination'];class re extends _0x22959f{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x43323b=this['editor'];if(_0x43323b['config']['define']('trackChangesData.editorCreator',_0x24d276=>{const _0x46853f=_0x43323b['model']['document']['getRootNames']()['reduce']((_0x4e0780,_0x2ed5b7)=>(_0x4e0780[_0x2ed5b7]='',_0x4e0780),{});return _0x43323b['constructor']['create'](_0x46853f,_0x24d276);}),'function'!=typeof _0x43323b['config']['get']('trackChangesData')['editorCreator'])throw new _0x5ab934('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x410a05){return P(this['editor'],!0x0,_0x410a05);}['getDataWithDiscardedSuggestions'](_0xdcc3df){return P(this['editor'],!0x1,_0xdcc3df);}}class TrackChangesDataGetter extends _0x22959f{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x444713){function _0x3961db(_0x31bceb){return _0x31bceb['map'](_0x49c104=>String['fromCharCode'](_0x49c104))['join']('');}super(_0x444713),this['result']='end',_0x444713[_0x3961db([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3961db([0x76,0x69,0x65,0x77])][_0x3961db([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3961db([0x61,0x75,0x74,0x6f]),_0x444713[_0x3961db([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x3961db([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3961db([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x3961db([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x3961db([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 Ne(_0x5b4752){return void 0x0!==_0x5b4752['getRootsAttributes'];}async function P(_0x5d2f59,_0x4922d1,_0x1244fa){const _0x267a84=_0x774467(_0x5d2f59,p);_0x267a84['plugins']['push'](d,TrackChangesDataGetter),_0x267a84['rootsAttributes']=Ne(_0x5d2f59)?_0x5d2f59['getRootsAttributes']():void 0x0;const _0x42875f=document['createDocumentFragment'](),_0x50f123=_0x5d2f59['config']['get']('trackChangesData')['editorCreator'],_0x5df1c6=await _0x50f123(_0x267a84,()=>function(_0x111636){const _0x5a15ee=document['createElement']('div');return _0x111636['appendChild'](_0x5a15ee),_0x5a15ee;}(_0x42875f));!function(_0x215d46,_0x1e848c){const _0xadc82c=_0x215d46['model']['document']['getRootNames']()['reduce']((_0xef474a,_0x36acea)=>(_0xef474a[_0x36acea]=_0x215d46['data']['get']({'rootName':_0x36acea}),_0xef474a),{}),_0x47c0ac=_0x215d46['plugins']['get']('Users')['users']['map'](_0x269d60=>({'id':_0x269d60['id'],'name':_0x269d60['name']})),_0x593a48=_0x215d46['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xdc0be0=_0x215d46['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2e4d5b=_0x1e848c['plugins']['get']('Users'),_0x2d082e=_0x1e848c['plugins']['get']('TrackChangesEditing'),_0x42cef9=_0x1e848c['plugins']['get']('CommentsRepository');for(const _0x396397 of _0x42cef9['getCommentThreads']())_0x396397['remove']();for(const _0x2cc772 of _0x47c0ac)_0x2e4d5b['getUser'](_0x2cc772['id'])||_0x2e4d5b['addUser'](_0x2cc772);_0x2e4d5b['me']||_0x2e4d5b['useAnonymousUser']();for(const _0x200883 of _0xdc0be0)_0x42cef9['addCommentThread'](_0x200883);for(const _0x173dcd of _0x593a48)_0x2d082e['addSuggestionData'](_0x173dcd);_0x1e848c['data']['set'](_0xadc82c);}(_0x5d2f59,_0x5df1c6),_0x5df1c6['execute'](_0x4922d1?'acceptAllSuggestions':'discardAllSuggestions');const _0x51707e=Ne(_0x5df1c6)?_0x5df1c6['getFullData'](_0x1244fa):_0x5df1c6['data']['get'](_0x1244fa);return await _0x5df1c6['destroy'](),_0x51707e;}class Me extends _0x581a2d{['options'];constructor(_0x3ca10b,_0x5c9fde){super(_0x3ca10b),this['options']=_0x5c9fde,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'](_0x482381,_0x14380d){if(!this['element'])return;const _0x46378f=[];for(const [_0x2f8150,_0x804829]of _0x482381){const _0x4d9158=document['createElement']('div');_0x4d9158['setAttribute']('data-ck-root-name',_0x2f8150),_0x4d9158['className']=_0x804829['classes']+'\x20ck-track-changes-preview__root-container',_0x4d9158['innerHTML']=_0x804829['content'],_0x46378f['push'](_0x4d9158);}_0x14380d(this['element'],_0x46378f),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x57590b{constructor(_0x19e2fb){super(_0x19e2fb),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x551a96=this['editor'],_0x30d066=_0x551a96['locale'],_0x52ccd6=_0x551a96['plugins']['get']('Dialog');let _0x4e2177;const _0x30b7e3=function(_0x3fb89d){const _0x19b2ff={};if('editables'in _0x3fb89d['ui']['view']){for(const [_0x5a65c0,_0x468741]of Object['entries'](_0x3fb89d['ui']['view']['editables']))_0x19b2ff[_0x5a65c0]=_0x468741['element'];}else _0x19b2ff[_0x3fb89d['model']['document']['getRootNames']()[0x0]]=_0x3fb89d['ui']['view']['editable']['element'];return _0x19b2ff;}(_0x551a96),_0x4c52e2=function(_0x571429){let _0x14d108=0x0;for(const _0x2c81d1 of Object['values'](_0x571429))_0x14d108=Math['max'](_0x14d108,_0x2c81d1['getBoundingClientRect']()['width']);let _0x2aad98=0x0;for(const _0x4a9248 of Object['values'](_0x571429))_0x2aad98+=_0x4a9248['getBoundingClientRect']()['height'];const _0x27e766=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x1c6f10=Math['min'](_0x2aad98,_0x27e766);return{'width':_0x14d108,'height':_0x1c6f10};}(_0x30b7e3);_0x52ccd6['show']({'id':'finalContentPreview','title':o(_0x30d066,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x30d066,{'dialogRects':_0x4c52e2}),'onHide':()=>{_0x4e2177['detachFromDom']();},'onShow':()=>{_0x551a96['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x56a348=>{const _0x47deb0=this['_standarizeRootsData'](_0x56a348,_0x551a96,_0x30b7e3);_0x52ccd6['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x47deb0,_0x551a96['config']['get']('trackChanges.preview.renderFunction'));}),_0x4e2177=new _0x5c9131(_0x30d066,[_0x52ccd6['view']]),_0x4e2177['attachToDom'](),_0x4e2177['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x551a96['once']('destroy',()=>{_0x4e2177['detachFromDom']();});const _0x493af3=_0x52ccd6['view']['headerView']['class'];_0x52ccd6['view']['headerView']['class']=_0x493af3?_0x493af3+'\x20ck-reset_all':'ck-reset_all',_0x52ccd6['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x52ccd6['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x96ef19=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x3222d6=_0x96ef19['previewMode'],_0x48ebe6={};if('$labels'===_0x3222d6){for(const _0x43b961 of _0x96ef19['getMergeFieldsIds']())_0x48ebe6[_0x43b961]=_0x96ef19['getLabel'](_0x43b961)||_0x43b961;}else{const _0x5e68f7='$defaultValues'===_0x3222d6?_0x96ef19['getDefaultValues']():_0x96ef19['getDataSetValues'](_0x3222d6,!0x0);for(const _0x4887bb of Object['entries'](_0x5e68f7)){const [_0x191d6f,_0xa017f7]=_0x4887bb;_0x48ebe6[_0x191d6f]=null!==_0xa017f7?_0xa017f7:_0x96ef19['getLabel'](_0x191d6f)||_0x191d6f;}}return{'mergeFieldsData':_0x48ebe6};}['_standarizeRootsData'](_0x9f8976,_0x2fb7d4,_0x452d05){let _0x2e059b;if('string'==typeof _0x9f8976){const _0x2bf100=_0x2fb7d4['model']['document']['getRootNames']()[0x0];_0x2e059b={[_0x2bf100]:_0x9f8976};}else _0x2e059b=_0x9f8976;const _0x139a99=this['_fixMediaEmbeds'](_0x2e059b,_0x2fb7d4),_0x561143=function(_0x39065f,_0x4e2178){for(const [_0x35ad6c,_0x372faa]of _0x39065f)_0x372faa['classes']=_0x4e2178[_0x35ad6c]['classList']['value']['replace']('ck-focused','');return _0x39065f;}(this['_sortRoots'](_0x2fb7d4)['reduce']((_0x19f04f,_0x5d0f9d)=>(_0x19f04f['push']([_0x5d0f9d,{'content':_0x139a99[_0x5d0f9d],'classes':''}]),_0x19f04f),[]),_0x452d05);return _0x561143;}['_fixMediaEmbeds'](_0x3e7fc8,_0x3d89a2){if(!_0x3d89a2['plugins']['has']('MediaEmbedEditing'))return _0x3e7fc8;const _0x561a86=_0x3d89a2['plugins']['get']('MediaEmbedEditing');for(const [_0xeeb4fb,_0x10f834]of Object['entries'](_0x3e7fc8)){const _0xfe9932=document['createElement']('div');_0xfe9932['innerHTML']=_0x10f834,(_0xfe9932['querySelectorAll']('figure.media')['forEach'](_0x541ce5=>{const _0x140d47=_0x541ce5['querySelector']('oembed');if(_0x140d47){const _0x2c5071=_0x140d47['getAttribute']('url');if(_0x2c5071){const _0x2910c9=_0x561a86['registry']['getMediaViewElement'](new _0xc50697(_0x3d89a2['editing']['view']['document']),_0x2c5071,{'elementName':'','renderForEditingView':!0x0}),_0x57ce46=document['createElement']('div');_0x57ce46['classList']['add']('ck-media__wrapper'),_0x2910c9['render'](_0x57ce46,_0x3d89a2['editing']['view']['domConverter']),_0x140d47['replaceWith'](_0x57ce46);}}}),_0x3e7fc8[_0xeeb4fb]=_0xfe9932['innerHTML']);}return _0x3e7fc8;}['_sortRoots'](_0x50da87){if(!function(_0x237787){return void 0x0!==_0x237787['getRootsAttributes'];}(_0x50da87))return _0x50da87['model']['document']['getRootNames']();const _0x3f0894=[],_0x4faca4=new Map();for(const _0x3d26e8 of _0x50da87['model']['document']['getRootNames']()){const _0x3ebf0a=_0x50da87['editing']['view']['getDomRoot'](_0x3d26e8)['getClientRects']()['item'](0x0);_0x3f0894['push'](_0x3d26e8),_0x4faca4['set'](_0x3d26e8,_0x3ebf0a);}return _0x3f0894['sort']((_0x300c3b,_0x5b79a1)=>{const _0x3433db=_0x4faca4['get'](_0x300c3b),_0x568d48=_0x4faca4['get'](_0x5b79a1);return _0x3433db['y']-_0x568d48['y']||_0x3433db['x']-_0x568d48['x'];}),_0x3f0894;}}class TrackChangesPreview extends _0x22959f{static get['requires'](){return[re,_0x355b64];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x29a45f){super(_0x29a45f),_0x29a45f['commands']['add']('previewFinalContent',new te(this['editor'])),_0x29a45f['config']['define']('trackChanges.preview.renderFunction',(_0x32e4ae,_0xca1e25)=>{for(const _0x23edc6 of _0xca1e25)_0x32e4ae['appendChild'](_0x23edc6);});}}export{O as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,x as DiscardSuggestionCommand,M as ExecuteOnAllSuggestionsCommand,R as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,T as Suggestion,E as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,TrackChanges,B as TrackChangesCommand,re as TrackChangesData,TrackChangesDataGetter,d as TrackChangesEditing,TrackChangesPreview,u as TrackChangesUI};
|