@ckeditor/ckeditor5-track-changes 46.1.0-alpha.0 → 46.1.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/dist/index.js +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 +27 -27
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/previewfinalcontentcommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/index.js +1 -1
- package/src/integrations/aiassistant.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/bookmark.js +1 -1
- package/src/integrations/casechange.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/emoji.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/imagestyle.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/legacylist.js +1 -1
- package/src/integrations/legacylistproperties.js +1 -1
- package/src/integrations/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
|
-
_0x290c21(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x576074,_0x1f62f4){super(),this['id']=_0x1f62f4['id'],this['type']=_0x1f62f4['type'],this['subType']=_0x1f62f4['subType']||null,this['author']=_0x1f62f4['author'],this['creator']=_0x1f62f4['creator']||_0x1f62f4['author'],this['isExternal']=Boolean(_0x1f62f4['attributes']&&_0x1f62f4['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x1f62f4['originalSuggestionId']||null,this['_model']=_0x576074,this['_onAccept']=_0x1f62f4['onAccept'],this['_onDiscard']=_0x1f62f4['onDiscard'],this['_onAttributesChange']=_0x1f62f4['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x1f62f4['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 _0x38837b=this;for(;_0x38837b['previous'];)_0x38837b=_0x38837b['previous'];return _0x38837b;}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'](_0x5386ca){this['_markerNames']['add'](_0x5386ca);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x44c6ca=>this['_model']['markers']['get'](_0x44c6ca))['filter'](_0xc4f79d=>_0xc4f79d);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x1f558f=>{for(const _0x48e1a3 of this['getMarkers']())_0x1f558f['removeMarker'](_0x48e1a3);}),this['_markerNames']['clear']();}['removeMarker'](_0x1ae526){this['_model']['change'](_0x3d92e4=>{_0x3d92e4['removeMarker'](_0x1ae526);}),this['_markerNames']['delete'](_0x1ae526);}['addRange'](_0x242db4){const _0x20ed94='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x20ed94),this['_model']['change'](_0x7a793b=>{_0x7a793b['addMarker'](_0x20ed94,{'range':_0x242db4,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x4832fb){for(const _0x5bb463 of this['getRanges']())if(_0x5bb463['isIntersecting'](_0x4832fb))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x277206=>_0x277206['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x2c8f0a,_0x615c04)=>[..._0x2c8f0a,..._0x615c04['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x292911=this['getRanges']();if(0x1!=_0x292911['length'])return null;const _0x1c4dec=_0x292911[0x0],_0x10947c=_0x1c4dec['start']['nodeAfter'],_0x141b13=_0x1c4dec['end']['nodeBefore'];return _0x10947c instanceof _0x55ee28?_0x10947c!=_0x141b13?null:_0x10947c: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 _0x464fb2=[];let _0x4e96e1=this['head'];for(;_0x4e96e1;)_0x464fb2['push'](_0x4e96e1),_0x4e96e1=_0x4e96e1['next'];return _0x464fb2;}['setAttribute'](_0x57282,_0x521e50){const _0x548f31=_0x2ad9da(this['attributes']);_0x55bf30(_0x548f31,_0x57282,_0x521e50),_0x48888a(_0x548f31,this['attributes'])||(this['attributes']=_0x548f31,this['_onAttributesChange'](_0x548f31));}['removeAttribute'](_0x46b1c3){const _0x3b8dcc=_0x2ad9da(this['attributes']);_0xc03c91(_0x3b8dcc,_0x46b1c3),_0x48888a(_0x3b8dcc,this['attributes'])||(this['attributes']=_0x3b8dcc,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 _0x29bcf7()['substr'](0x1,0x5);}}function o(_0x5a0591,_0x2ff201,_0x53e2e6){const _0x1ba2d2=_0x5a0591['t'],t=_0x5a0591['t'];switch(_0x2ff201){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',_0x53e2e6);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x53e2e6);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x53e2e6);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x53e2e6);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x53e2e6);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',_0x53e2e6);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x53e2e6);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',_0x53e2e6);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x53e2e6);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x53e2e6);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x53e2e6);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x53e2e6);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x53e2e6);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x53e2e6);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x53e2e6);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x53e2e6);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x53e2e6);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x53e2e6);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x53e2e6);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x53e2e6);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x53e2e6);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x53e2e6);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x53e2e6);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x53e2e6);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x53e2e6);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'},_0x53e2e6);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x53e2e6);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x53e2e6);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x53e2e6);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x53e2e6);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x53e2e6);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x53e2e6);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x53e2e6);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'},_0x53e2e6);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x53e2e6);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x53e2e6);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x53e2e6);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x53e2e6);case'ELEMENT_DEFAULT_LIST_DEFAULT':return t({'string':'default\x20list\x20style','id':'ELEMENT_DEFAULT_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_DEFAULT':return t({'string':'bulleted\x20list\x20(default)','id':'ELEMENT_BULLETED_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST_DEFAULT':return t({'string':'numbered\x20list\x20(default)','id':'ELEMENT_NUMBERED_LIST_DEFAULT'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'ELEMENT_MULTI_LEVEL_LIST':return t({'string':'multi-level\x20list','id':'ELEMENT_MULTI_LEVEL_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0x53e2e6);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x53e2e6);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'},_0x53e2e6);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'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'},_0x53e2e6);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x53e2e6);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'},_0x53e2e6);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x53e2e6);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'},_0x53e2e6);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x53e2e6);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x53e2e6);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'},_0x53e2e6);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x53e2e6);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 _0x1ba2d2({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x53e2e6);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x1ba2d2({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x53e2e6);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x53e2e6);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'},_0x53e2e6);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'},_0x53e2e6);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'},_0x53e2e6);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x2ff201;}}class x{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x15cf59,_0x50b0a1){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x15cf59,this['_locale']=_0x50b0a1;}['getDescriptions'](_0x4e9e02){const _0x454b17=[],_0x146a0d=new Set(),_0x1c43eb=new Set();for(let _0x194c34=0x0;_0x194c34<_0x4e9e02['length'];_0x194c34++){const _0x1881d2=_0x4e9e02[_0x194c34];if(!_0x1881d2['isInContent'])continue;const _0x64ebed=this['_handleCustomCallbackDescription'](_0x1881d2);if(_0x64ebed){if(null!=_0x1881d2['subType']){if(_0x146a0d['has'](_0x1881d2['subType']))continue;_0x146a0d['add'](_0x1881d2['subType']);}_0x454b17['push'](_0x64ebed);}else{if('attribute'==_0x1881d2['type']){const _0x37b80b=_0x1881d2['data']['key'];if(_0x1c43eb['has'](_0x37b80b))continue;_0x1c43eb['add'](_0x1881d2['data']['key']),_0x37b80b==m?this['_handleRenameSuggestionDescription'](_0x454b17,_0x1881d2):this['_handleAttributeSuggestionDescription'](_0x454b17,_0x1881d2);continue;}'insertion'!=_0x1881d2['type']&&'deletion'!=_0x1881d2['type']||this['_handleInsertRemoveSuggestionDescription'](_0x454b17,_0x1881d2,_0x4e9e02[_0x194c34+0x1]);}}return this['_resolveDescriptionItems'](_0x454b17);}['registerDescriptionCallback'](_0x4c39c8){this['_customCallbacks']['push'](_0x4c39c8);}['registerElementLabel'](_0x472153,_0x1f3d93,_0x57a04c=_0x3771e3['normal']){'function'==typeof _0x472153?_0x3bf6d0(this['_itemLabelsCallbacks'],{'matchingCallback':_0x472153,'label':_0x1f3d93,'priority':_0x57a04c}):this['_itemLabels']['set'](_0x472153,_0x1f3d93);}['registerAttributeLabel'](_0x22e22d,_0x39cfbe){this['_attributeLabels']['set'](_0x22e22d,_0x39cfbe);}['getItemLabel'](_0x34c33d,_0xec2120=0x1){let _0x4f18d7;for(const _0x3928b6 of this['_itemLabelsCallbacks'])if(_0x3928b6['matchingCallback'](_0x34c33d)){_0x4f18d7=_0x3928b6['label'];break;}return _0x4f18d7||(_0x4f18d7=this['_itemLabels']['get'](_0x34c33d['name'])),_0x4f18d7?_0x4f18d7(_0xec2120):0x1!==_0xec2120?_0xec2120+'\x20'+_0x34c33d['name']+'s':''+_0x34c33d['name'];}['_addDescriptionItems'](_0x18a840,_0x10e36d){const _0x5a1a79=_0x10e36d['getFirstRange']()['getWalker'](),_0x4f72d1='insertion'==_0x10e36d['type']?'add':'remove';for(const _0x275af9 of _0x5a1a79){const _0x32add5=_0x275af9['item'],_0x173df9=_0x18a840[_0x18a840['length']-0x1];if(_0x32add5['is']('$textProxy'))_0x173df9&&_0x173df9['type']['indexOf']('Container')>-0x1&&_0x18a840['pop'](),_0x173df9&&'text'==_0x173df9['type']?_0x173df9[_0x4f72d1]+=_0x32add5['data']:_0x18a840['push']({'type':'text','add':'add'==_0x4f72d1?_0x32add5['data']:'','remove':'remove'==_0x4f72d1?_0x32add5['data']:''});else{if(this['_schema']['isObject'](_0x32add5)){const _0x1de297=_0x32add5;if(_0x173df9&&_0x173df9['type']['indexOf']('Container')>-0x1&&_0x18a840['pop'](),'elementEnd'==_0x275af9['type'])continue;_0x173df9&&_0x173df9['type']==_0x4f72d1+'Object'&&_0x173df9['element']['name']==_0x1de297['name']?_0x173df9['quantity']++:_0x18a840['push']({'type':_0x4f72d1+'Object','element':_0x1de297,'quantity':0x1}),_0x5a1a79['skip'](_0x1550c9=>!('elementEnd'==_0x1550c9['type']&&_0x1550c9['item']==_0x32add5));}else{if(this['_schema']['checkChild'](_0x32add5,'$text')||_0x32add5['is']('element','softBreak')){const _0x4a2389=_0x32add5;if('add'==_0x4f72d1&&'elementStart'==_0x275af9['type']||'remove'==_0x4f72d1&&'elementEnd'==_0x275af9['type'])continue;if(_0x173df9&&-0x1==_0x173df9['type']['indexOf']('Container')){'text'==_0x173df9['type']&&(_0x173df9[_0x4f72d1]+='\x0a');continue;}let _0x135096;if(_0x135096='add'==_0x4f72d1?_0x4a2389['nextSibling']&&!this['_schema']['isObject'](_0x4a2389['nextSibling'])?_0x4a2389['nextSibling']:null:_0x4a2389['previousSibling']&&!this['_schema']['isObject'](_0x4a2389['previousSibling'])?_0x4a2389['previousSibling']:null,_0x4a2389['isEmpty']||_0x135096&&_0x135096['isEmpty']){const _0x5de5e1=_0x135096&&_0x135096['isEmpty']?_0x135096:_0x4a2389;_0x173df9&&_0x173df9['type']==_0x4f72d1+'EmptyContainer'&&_0x173df9['element']['name']==_0x5de5e1['name']?_0x173df9['quantity']++:_0x18a840['push']({'type':_0x4f72d1+'EmptyContainer','element':_0x5de5e1,'quantity':0x1});}else _0x18a840['push']({'type':_0x4f72d1+'Container','element':_0x4a2389});}}}}}['_resolveDescriptionItems'](_0x3337ee){const _0x20f951=this['_locale'],_0x2bd911=[],_0x292032=[],_0xdb06bd=[];for(const _0x48f4f5 of _0x3337ee)switch(_0x48f4f5['type']){case'text':if(_0x48f4f5['add']=_0x48f4f5['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x48f4f5['remove']=_0x48f4f5['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x48f4f5['add']&&''!=_0x48f4f5['remove']){_0x2bd911['push']({'type':'replace','content':o(_0x20f951,'REPLACE_TEXT',['\x22'+_0x48f4f5['remove']+'\x22','\x22'+_0x48f4f5['add']+'\x22'])});continue;}if(null!=_0x48f4f5['add']['match'](/^ +$/)){_0x2bd911['push']({'type':'insertion','content':o(_0x20f951,'*Insert:*\x20%0',o(_0x20f951,'ELEMENT_SPACE',_0x48f4f5['add']['length']))});continue;}if(null!=_0x48f4f5['remove']['match'](/^ +$/)){_0x2bd911['push']({'type':'deletion','content':o(_0x20f951,'*Remove:*\x20%0',o(_0x20f951,'ELEMENT_SPACE',_0x48f4f5['remove']['length']))});continue;}if(''!=_0x48f4f5['add']){_0x2bd911['push']({'type':'insertion','content':o(_0x20f951,'*Insert:*\x20%0','\x22'+_0x48f4f5['add']+'\x22')});continue;}_0x2bd911['push']({'type':'deletion','content':o(_0x20f951,'*Remove:*\x20%0','\x22'+_0x48f4f5['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x2bd911['push']({'type':'insertion','content':o(_0x20f951,'*Insert:*\x20%0',this['getItemLabel'](_0x48f4f5['element'],_0x48f4f5['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x2bd911['push']({'type':'deletion','content':o(_0x20f951,'*Remove:*\x20%0',this['getItemLabel'](_0x48f4f5['element'],_0x48f4f5['quantity']))});continue;case'addContainer':_0x2bd911['push']({'type':'insertion','content':o(_0x20f951,'*Split:*\x20%0',this['getItemLabel'](_0x48f4f5['element'],_0x48f4f5['quantity']))});continue;case'removeContainer':_0x2bd911['push']({'type':'deletion','content':o(_0x20f951,'*Merge:*\x20%0',this['getItemLabel'](_0x48f4f5['element'],_0x48f4f5['quantity']))});continue;case'addFormat':_0x292032['push'](_0x48f4f5['key']);continue;case'removeFormat':_0xdb06bd['push'](_0x48f4f5['key']);continue;default:_0x2bd911['push'](_0x48f4f5);}if(_0x292032['length']){const _0x3d9608=_0x292032['map'](_0x4535e6=>this['_attributeLabels']['has'](_0x4535e6)?this['_attributeLabels']['get'](_0x4535e6):_0x4535e6)['join'](',\x20');_0x2bd911['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x3d9608)});}if(_0xdb06bd['length']){const _0x168b6d=_0xdb06bd['map'](_0x186bf6=>this['_attributeLabels']['has'](_0x186bf6)?this['_attributeLabels']['get'](_0x186bf6):_0x186bf6)['join'](',\x20');_0x2bd911['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x168b6d)});}return _0x2bd911;}['_handleCustomCallbackDescription'](_0x49b660){for(const _0x3296d9 of this['_customCallbacks']){const _0x1e8e31=_0x3296d9(_0x49b660);if(_0x1e8e31&&'type'in _0x1e8e31)return _0x1e8e31;}}['_handleAttributeSuggestionDescription'](_0xbdf873,_0x1b1801){const _0x3fb4c8=_0x1b1801['data'],_0x4ee375=void 0x0===_0x3fb4c8['newValue']?'removeFormat':'addFormat';_0xbdf873['push']({'type':_0x4ee375,'key':_0x3fb4c8['key']});}['_handleRenameSuggestionDescription'](_0x19c463,_0x451a76){_0x19c463['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x451a76['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x3a40fc,_0x13874f,_0x27f1fa){if(this['_addDescriptionItems'](_0x3a40fc,_0x13874f),_0x27f1fa&&_0x27f1fa['getFirstRange']()&&!_0x13874f['getFirstRange']()['end']['isEqual'](_0x27f1fa['getFirstRange']()['start'])){const _0x113607=_0x3a40fc[_0x3a40fc['length']-0x1],_0x54bbee='insertion'==_0x13874f['type']?'add':'remove';_0x113607&&'text'==_0x113607['type']&&(_0x113607[_0x54bbee]+='\x0a');}}}class O extends _0xe680e7{['afterInit'](){const _0x50dc9d=this['editor'],_0x1ee3ba=_0x50dc9d['plugins']['get']('TrackChangesEditing');_0x50dc9d['commands']['get']('showAIAssistant')&&_0x1ee3ba['enableCommand']('showAIAssistant');}}class E extends _0xe680e7{['afterInit'](){const _0x5504f0=this['editor'],_0x33ed3b=_0x5504f0['locale'];if(!_0x5504f0['plugins']['has']('AlignmentEditing'))return;const _0x23cd62=_0x5504f0['plugins']['get']('TrackChangesEditing');_0x23cd62['enableDefaultAttributesIntegration']('alignment'),_0x23cd62['registerBlockAttribute']('alignment'),_0x23cd62['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x33ed3b,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3971ba=this['editor'],_0x5551d9=_0x3971ba['locale'];_0x3971ba['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2a2667=>{if('formatBlock'!=_0x2a2667['type'])return;const {data:_0x2f64b6}=_0x2a2667;if(_0x2f64b6&&'alignment'==_0x2f64b6['commandName']){const _0x42d556=_0x2f64b6['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x5551d9,'*Format:*\x20%0',function(_0x238c85){switch(_0x238c85){case'left':return o(_0x5551d9,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x5551d9,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x5551d9,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x5551d9,'FORMAT_JUSTIFY_TEXT');}}(_0x42d556))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class R extends _0xe680e7{['afterInit'](){const _0x5396be=this['editor'],_0x21acc8=_0x5396be['plugins']['get']('TrackChangesEditing'),_0x4a1c7a=_0x5396be['locale'];for(const _0x36922c of ti){if(!_0x5396be['plugins']['has'](_0x36922c))continue;const _0x4e0dc8=_0x36922c['slice'](0x0,-0x7)['toLowerCase'](),_0x453d71='FORMAT_'+_0x4e0dc8['toUpperCase']();_0x21acc8['enableDefaultAttributesIntegration'](_0x4e0dc8),_0x21acc8['registerInlineAttribute'](_0x4e0dc8),_0x21acc8['descriptionFactory']['registerAttributeLabel'](_0x4e0dc8,o(_0x4a1c7a,_0x453d71));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5cd65=this['editor'],_0x6ca807=_0x5cd65['locale'],_0x745d22=_0x5cd65['plugins']['get']('TrackChangesEditing');function _0x3822c8(_0x459356,_0x524ea4){_0x745d22['descriptionFactory']['registerDescriptionCallback'](_0x39bb12=>{if('formatInline'!=_0x39bb12['type'])return;const {data:_0x32f8ef}=_0x39bb12;return _0x32f8ef&&_0x32f8ef['commandName']===_0x459356?_0x32f8ef['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x6ca807,'*Format:*\x20%0',_0x524ea4)}:{'type':'format','content':o(_0x6ca807,'*Remove\x20format:*\x20%0',_0x524ea4)}:void 0x0;});}_0x3822c8('bold',o(_0x6ca807,'FORMAT_BOLD')),_0x3822c8('italic',o(_0x6ca807,'FORMAT_ITALIC')),_0x3822c8('underline',o(_0x6ca807,'FORMAT_UNDERLINE')),_0x3822c8('code',o(_0x6ca807,'FORMAT_CODE')),_0x3822c8('strikethrough',o(_0x6ca807,'FORMAT_STRIKETHROUGH')),_0x3822c8('subscript',o(_0x6ca807,'FORMAT_SUBSCRIPT')),_0x3822c8('superscript',o(_0x6ca807,'FORMAT_SUPERSCRIPT'));}}class U extends _0xe680e7{['afterInit'](){const _0x2c36af=this['editor'],_0x33df41=_0x2c36af['locale'];if(!_0x2c36af['plugins']['has']('BlockQuoteEditing'))return;const _0x160f8=_0x2c36af['plugins']['get']('TrackChangesEditing'),_0x551fb9=this['editor']['commands']['get']('blockQuote');_0x160f8['enableCommand']('blockQuote',(_0x53a45f,_0x3af5b0={})=>{const _0x4f1fd6=this['editor']['model']['document']['selection'],_0x5480e6=_0x3af5b0&&void 0x0!==_0x3af5b0['forceValue']?_0x3af5b0['forceValue']:!_0x551fb9['value'];let _0x5d32de=[];if(_0x5480e6){const _0x5f0477=Array['from'](_0x4f1fd6['getSelectedBlocks']())['filter'](_0x2dcdd8=>oo(_0x2dcdd8)||function(_0x561bbc,_0x47b81e){const _0x198bad=_0x47b81e['checkChild'](_0x561bbc['parent'],'blockQuote'),_0x50c935=_0x47b81e['checkChild'](['$root','blockQuote'],_0x561bbc);return _0x198bad&&_0x50c935;}(_0x2dcdd8,this['editor']['model']['schema']));_0x5d32de=to(_0x5f0477,_0x2c36af['model']);}else{const _0x10b7a2=Array['from'](_0x4f1fd6['getSelectedBlocks']())['filter'](_0x2e9ee8=>oo(_0x2e9ee8));_0x5d32de=to(_0x10b7a2,_0x2c36af['model']);}_0x2c36af['model']['change'](()=>{for(const _0x4c25cd of _0x5d32de)_0x160f8['markBlockFormat'](_0x4c25cd,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x5480e6}]});});}),_0x160f8['descriptionFactory']['registerDescriptionCallback'](_0x5c31e9=>{const {data:_0x568a47}=_0x5c31e9;if(_0x568a47&&'blockQuote'==_0x568a47['commandName']){const _0x4e37af=o(_0x33df41,'ELEMENT_BLOCK_QUOTE');return _0x568a47['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x33df41,'*Set\x20format:*\x20%0',_0x4e37af)}:{'type':'format','content':o(_0x33df41,'*Remove\x20format:*\x20%0',_0x4e37af)};}});}}function oo(_0x37eb5d){return'blockQuote'==_0x37eb5d['parent']['name'];}class V extends _0xe680e7{['afterInit'](){const _0x1fe498=this['editor'],_0x461943=_0x1fe498['locale'],_0x81c968=_0x1fe498['plugins']['get']('TrackChangesEditing');_0x1fe498['plugins']['has']('BookmarkEditing')&&(_0x81c968['enableCommand']('insertBookmark'),_0x81c968['enableDefaultAttributesIntegration']('updateBookmark'),_0x81c968['registerBlockAttribute']('bookmarkId'),_0x81c968['descriptionFactory']['registerDescriptionCallback'](_0x186a9b=>{if('insertion'!=_0x186a9b['type']&&'deletion'!=_0x186a9b['type']&&'attribute'!=_0x186a9b['type'])return;const _0x27e09f=_0x186a9b['getContainedElement']();if(null==_0x27e09f)return;if(!_0x27e09f['is']('element','bookmark'))return;const _0x592494=_0x27e09f['getAttribute']('bookmarkId');if('insertion'==_0x186a9b['type'])return{'type':'insertion','content':o(_0x461943,'*Insert:*\x20%0','\x22'+_0x592494+'\x22\x20'+o(_0x461943,'ELEMENT_BOOKMARK'))};if('deletion'==_0x186a9b['type'])return{'type':'deletion','content':o(_0x461943,'*Remove:*\x20%0','\x22'+_0x592494+'\x22\x20'+o(_0x461943,'ELEMENT_BOOKMARK'))};const {data:_0xfa72a9}=_0x186a9b;if(!_0xfa72a9||'bookmarkId'!=_0xfa72a9['key'])return;return{'type':'format','content':o(_0x461943,'*Set\x20bookmark:*\x20%0','\x22'+_0xfa72a9['newValue']+'\x22')};}));}}class F extends _0xe680e7{['afterInit'](){const _0x36b1ed=this['editor'];_0x36b1ed['plugins']['has']('CaseChange')&&(_0x36b1ed['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x36b1ed['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x36b1ed['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0xe680e7{['afterInit'](){const _0x25b689=this['editor'];_0x25b689['commands']['get']('ckbox')&&_0x25b689['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0xe680e7{['afterInit'](){const _0x58545c=this['editor'];if(!_0x58545c['plugins']['has']('CodeBlock'))return;const _0x5e4ad0=_0x58545c['plugins']['get']('TrackChangesEditing'),_0x274dce=_0x58545c['locale'],_0x2d5c7f=_0x58545c['config']['get']('codeBlock')['languages'],_0xeed1dd=_0x58545c['commands']['get']('codeBlock');_0x5e4ad0['enableCommand']('indentCodeBlock'),_0x5e4ad0['enableCommand']('outdentCodeBlock'),_0x5e4ad0['enableCommand']('codeBlock',(_0x5e99ee,_0x472869={})=>{const _0x2dfbf1=_0x58545c['model'],_0x12eb0d=_0x58545c['model']['document']['selection'],_0x3898e3=_0x472869&&void 0x0!==_0x472869['forceValue']?_0x472869['forceValue']:!_0xeed1dd['value'];let _0x202b5d;_0x472869['language']||(_0x472869['language']=_0x2d5c7f[0x0]['language']),_0x202b5d=_0x3898e3?Array['from'](_0x12eb0d['getSelectedBlocks']())['filter'](_0x52ac05=>co(_0x52ac05)||function(_0xe04058,_0x556574){if(_0xe04058['is']('rootElement')||_0x556574['isLimit'](_0xe04058))return!0x1;return _0x556574['checkChild'](_0xe04058['parent'],'codeBlock');}(_0x52ac05,_0x2dfbf1['schema'])):Array['from'](_0x12eb0d['getSelectedBlocks']())['filter'](_0x12cdd3=>co(_0x12cdd3));const _0x317831=to(_0x202b5d,_0x2dfbf1);_0x2dfbf1['change'](()=>{for(const _0x407e1a of _0x317831)_0x5e4ad0['markBlockFormat'](_0x407e1a,{'commandName':'codeBlock','commandParams':[{..._0x472869,'forceValue':_0x3898e3}],'formatGroupId':'blockName'});});}),(_0x5e4ad0['descriptionFactory']['registerElementLabel']('codeBlock',_0x1e78d3=>o(_0x274dce,'ELEMENT_CODE_BLOCK',_0x1e78d3)),_0x5e4ad0['descriptionFactory']['registerDescriptionCallback'](_0x210ff5=>{if('formatBlock'!=_0x210ff5['type'])return;const _0x1f8b1c=_0x274dce['t'],{data:_0x1d0d94}=_0x210ff5;if(!_0x1d0d94||'codeBlock'!=_0x1d0d94['commandName'])return;const _0x4b845c=_0x1d0d94['commandParams'][0x0]['language'],_0x37f4b8=_0x1f8b1c(_0x2d5c7f['find'](_0x3a2e22=>_0x3a2e22['language']===_0x4b845c)['label'])['toLowerCase']();return _0x1d0d94['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x274dce,'*Set\x20format:*\x20%0',o(_0x274dce,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x37f4b8+')')}:{'type':'format','content':o(_0x274dce,'*Remove\x20format:*\x20%0',o(_0x274dce,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x34cc1d){return'codeBlock'==_0x34cc1d['name'];}class J extends _0xe680e7{['afterInit'](){const _0x5dd943=this['editor'];if(!_0x5dd943['plugins']['has']('CommentsEditing'))return;_0x5dd943['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x11cf6e,_0x501919,_0x5eaea1){const _0x37a041=[];for(const _0x5668cb of _0x501919['getItems']())_0x5668cb['hasAttribute'](_0x11cf6e)&&_0x37a041['push'](_0x5eaea1['createRangeOn'](_0x5668cb));return _0x37a041;}function De(_0x22c5f6,_0xf2dfcb,{showActiveMarker:_0x3c98d=!0x0}={}){const _0x9afe90=_0x22c5f6['plugins']['get']('TrackChangesEditing');return(_0x4ed4c6,_0x3b2666,_0x202014)=>{if(!_0x202014['consumable']['test'](_0x3b2666['markerRange'],_0x4ed4c6['name']))return;const _0x5464f5=_0x3b2666['markerRange']['getWalker'](),_0x3dbca8=_0x3b2666['markerRange']['start'],_0x3e2c46=_0x22c5f6['model']['schema'];let _0x189283=null,_0x1bf25c=null,_0x48b725=!0x1,_0x52e52e=!0x1;for(const _0x205e67 of _0x5464f5){const _0x26642c=_0x205e67['item'];_0x48b725=_0x48b725||_0x3e2c46['isContent'](_0x26642c);const _0x1c61c9=_0x202014['mapper']['toViewElement'](_0x26642c);if(_0x1c61c9&&_0x1c61c9['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x205e67['type']&&(_0x3e2c46['isBlock'](_0x26642c)&&!_0x3e2c46['isLimit'](_0x26642c)&&(_0x26642c['nextSibling']||_0x3dbca8['isAtEnd']?_0x189283&&_0x189283['parent']==_0x26642c||(_0x189283=_0x26642c,_0x5e71d1(_0x205e67['previousPosition']),_0x52e52e=!0x0):_0x1bf25c=_0x1bf25c||_0x205e67['previousPosition']));}function _0x5e71d1(_0x13894e){const {id:_0x34a37e,authorId:_0x497f5b}=_0x9afe90['_splitMarkerName'](_0x3b2666['markerName']),_0x4e0a2d=_0x202014['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xf2dfcb,'data-suggestion':_0x34a37e,'data-author-id':_0x497f5b}),_0x3c61d5=_0x202014['mapper']['toViewPosition'](_0x13894e);_0x3c98d&&_0x9afe90['activeMarkers']['includes'](_0x3b2666['markerName'])&&_0x202014['writer']['addClass']('ck-suggestion-marker--active',_0x4e0a2d),_0x202014['writer']['insert'](_0x3c61d5,_0x4e0a2d),_0x202014['mapper']['bindElementToMarker'](_0x4e0a2d,_0x3b2666['markerName']);}_0x48b725||_0x52e52e||!_0x1bf25c||_0x5e71d1(_0x1bf25c);};}class K extends _0xe680e7{static get['requires'](){return[_0x37cb0f];}['init'](){const _0x56becb=this['editor'],_0x4298a1=_0x56becb['plugins']['get']('TrackChangesEditing');_0x4298a1['enableCommand']('delete');const _0x9b7d90=_0x56becb['commands']['get']('deleteForward');_0x4298a1['enableCommand']('deleteForward',(_0x4e83db,_0x3b83f1={})=>{const _0x46cb85=_0x56becb['model']['createSelection'](_0x56becb['model']['document']['selection']);_0x46cb85['isCollapsed']&&_0x56becb['model']['modifySelection'](_0x46cb85,{'direction':'forward','unit':_0x3b83f1['unit']});const _0x20d7a4=_0x46cb85['getFirstRange'](),_0x156ca6=_0x50a820['fromRange'](_0x20d7a4);let _0x33cbf2;_0x4e83db(_0x3b83f1),_0x33cbf2='$graveyard'==_0x156ca6['root']['rootName']?_0x56becb['model']['createRange'](_0x20d7a4['start']):_0x56becb['model']['createRange'](_0x156ca6['start'],_0x156ca6['end']),_0x156ca6['detach'](),_0x56becb['model']['enqueueChange'](_0x9b7d90['buffer']['batch'],_0xa02549=>{_0x9b7d90['buffer']['lock'](),_0xa02549['setSelection'](_0xa02549['createRange'](_0x33cbf2['end'])),_0x9b7d90['buffer']['unlock']();});}),_0x56becb['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x56becb,'merge'),{'priority':'high'}),_0x56becb['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x547fbe,_0x5e97c5,_0x5f4b7f)=>{_0x5f4b7f['options']['showSuggestionHighlights']&&De(_0x56becb,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x547fbe,_0x5e97c5,_0x5f4b7f);},{'priority':'high'}),_0x56becb['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x42dbb8,_0x3d7513,_0x183147)=>{const _0xb3ad1b=_0x183147['mapper']['markerNameToElements'](_0x3d7513['markerName']);if(_0xb3ad1b){for(const _0x56c423 of _0xb3ad1b)_0x56c423['is']('uiElement')&&(_0x183147['mapper']['unbindElementFromMarkerName'](_0x56c423,_0x3d7513['markerName']),_0x183147['writer']['remove'](_0x56c423));}},{'priority':'high'});}}class H extends _0xe680e7{['afterInit'](){const _0x419d73=this['editor'];if(!_0x419d73['plugins']['has']('ListEditing'))return;const _0x5d0712=_0x419d73['locale'],_0x46ad54=_0x419d73['plugins']['get']('TrackChangesEditing'),_0x3c59d8=_0x419d73['plugins']['has']('TodoListEditing'),_0x980703=!!_0x419d73['config']['get']('list.multiBlock');function _0x51d2c3(_0x4d09fd){return{'type':'format','content':''+o(_0x5d0712,'*Set\x20format:*\x20%0',_0x4d09fd)};}function _0x1e421a(_0x35e39e){return{'type':'format','content':''+o(_0x5d0712,'*Remove\x20format:*\x20%0',_0x35e39e)};}_0x46ad54['enableDefaultAttributesIntegration']('numberedList'),_0x46ad54['enableDefaultAttributesIntegration']('bulletedList'),_0x46ad54['enableDefaultAttributesIntegration']('customNumberedList'),_0x46ad54['enableDefaultAttributesIntegration']('customBulletedList'),_0x46ad54['enableDefaultAttributesIntegration']('indentList'),_0x46ad54['enableDefaultAttributesIntegration']('outdentList'),_0x46ad54['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x46ad54['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x46ad54['registerBlockAttribute']('listItemId'),_0x46ad54['registerBlockAttribute']('listType'),_0x46ad54['registerBlockAttribute']('listIndent'),_0x980703&&(_0x46ad54['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x46ad54['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x3c59d8&&(_0x46ad54['enableDefaultAttributesIntegration']('todoList'),_0x46ad54['enableDefaultAttributesIntegration']('checkTodoList'),_0x46ad54['registerBlockAttribute']('todoListChecked'),_0x46ad54['descriptionFactory']['registerDescriptionCallback'](_0x19c7b3=>{const {data:_0x3ea8e5}=_0x19c7b3;if(_0x3ea8e5&&'todoListChecked'==_0x3ea8e5['key'])return{'type':'format','content':_0x3ea8e5['newValue']?o(_0x5d0712,'*Check\x20item*'):o(_0x5d0712,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x2131f1=>{if(_0x2131f1['batch']['isUndo'])return!0x1;let _0x56e85b=!0x1;const _0x381ccd=_0x46ad54['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x48a629=>'todoListChecked'===_0x46ad54['_getAttributeKey'](_0x48a629));for(const _0x3b057a of _0x381ccd){'todo'!=_0x3b057a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x46ad54['_findSuggestions'](_0x3b057a['getFirstRange'](),'attribute')['find'](_0x4a2b2f=>'listType'===_0x46ad54['_getAttributeKey'](_0x4a2b2f['suggestion']))||(_0x2131f1['removeMarker'](_0x3b057a['getFirstMarker']()),_0x56e85b=!0x0));}return _0x56e85b;})),_0x46ad54['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x5d0712,'FORMAT_INDENT'));const _0xb781dd={'type':'format','content':''};_0x46ad54['descriptionFactory']['registerDescriptionCallback'](_0x3670c9=>{const {data:_0x94b9e0}=_0x3670c9;if(!_0x94b9e0||'listType'!=_0x94b9e0['key'])return;let _0x2395ef=_0x3670c9['head'];for(;_0x2395ef;){if(_0x2395ef['data']&&(('listStyle'==_0x2395ef['data']['key']||'listMarkerStyle'==_0x2395ef['data']['key'])&&(_0x2395ef['data']['newValue']&&'default'!=_0x2395ef['data']['newValue']||'default'!=_0x2395ef['data']['oldValue']&&!_0x94b9e0['newValue'])||!_0x980703&&_0x2395ef['data']['key']==m))return _0xb781dd;_0x2395ef=_0x2395ef['next'];}if(null==_0x94b9e0['newValue'])switch(_0x94b9e0['oldValue']){case'bulleted':return _0x1e421a(o(_0x5d0712,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1e421a(o(_0x5d0712,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1e421a(o(_0x5d0712,'ELEMENT_TODO_LIST'));}switch(_0x94b9e0['newValue']){case'bulleted':return _0x51d2c3(o(_0x5d0712,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x51d2c3(o(_0x5d0712,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x51d2c3(o(_0x5d0712,'ELEMENT_TODO_LIST'));}}),_0x46ad54['descriptionFactory']['registerDescriptionCallback'](_0x3eaeed=>{const {data:_0x906fa8}=_0x3eaeed;if(_0x906fa8&&'listIndent'==_0x906fa8['key'])return null==_0x906fa8['newValue']||null==_0x906fa8['oldValue']&&0x0==_0x906fa8['newValue']?_0xb781dd:void 0x0;}),_0x46ad54['descriptionFactory']['registerDescriptionCallback'](_0x5e4f90=>{if('attribute'!=_0x5e4f90['type'])return;const {data:_0x411762}=_0x5e4f90;if(!_0x411762||'listItemId'!=_0x411762['key'])return;const _0x20e3ca=Te(_0x5e4f90);return'newValue'==_0x20e3ca?{'type':'format','content':o(_0x5d0712,'*Merge:*\x20list\x20item')}:'oldValue'==_0x20e3ca?{'type':'format','content':o(_0x5d0712,'*Split:*\x20list\x20item')}:_0xb781dd;}),_0x419d73['model']['document']['registerPostFixer'](_0x4d0b54=>this['listItemIdFixer'](_0x4d0b54)),_0x419d73['model']['document']['registerPostFixer'](_0x1c4bd1=>this['noTrackChangesFixer'](_0x1c4bd1)),_0x419d73['model']['document']['on']('change:data',(_0x22cd26,_0x37a080)=>{if(_0x37a080['isUndo']||!_0x37a080['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x5282bd){if(_0x5282bd['batch']['isUndo']||!_0x5282bd['batch']['isLocal'])return!0x1;let _0x16a03f=!0x1;const _0x530b12=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x11e52b=>_0x11e52b['data']&&'listItemId'==_0x11e52b['data']['key'])['filter'](_0x2eaff4=>_0x2eaff4['data']['newValue']&&_0x2eaff4['data']['oldValue']);for(const _0x4cac9c of _0x530b12)Te(_0x4cac9c)||(_0x5282bd['removeMarker'](_0x4cac9c['getFirstMarker']()),_0x16a03f=!0x0);return _0x16a03f;}['noTrackChangesFixer'](_0x5e706c){if(_0x5e706c['batch']['isUndo']||!_0x5e706c['batch']['isLocal'])return!0x1;const _0x40a810=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x40a810['trackChangesCommand']['value'])return!0x1;let _0x4ea094=!0x1;const _0xd0f428=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x53a5c9=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x2cc6a7=>'attribute'==_0x2cc6a7['type'])['filter'](_0x194602=>_0xd0f428['includes'](_0x194602['attributeKey']));if(0x0==_0x53a5c9['length'])return _0x4ea094;for(const _0x697ebc of _0x53a5c9){const _0x5b701d=_0x40a810['_findSuggestions'](_0x697ebc['range'],'attribute')['filter'](_0x407f78=>!_0x407f78['meta']['isNextTo'])['map'](_0x19e9a9=>_0x19e9a9['suggestion'])['filter'](_0x11f947=>{const _0x23fc31=_0x40a810['_getAttributeKey'](_0x11f947);return _0xd0f428['includes'](_0x23fc31);});if(_0x5b701d['length']){for(const _0x2c4ac9 of _0x5b701d)_0x5e706c['removeMarker'](_0x2c4ac9['getFirstMarker']());_0x4ea094=!0x0;}}return _0x4ea094;}['assureChains'](){const _0x5edb89=this['editor']['plugins']['get']('TrackChangesEditing'),_0x220c8f=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x89df73;const _0x300e1d=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x39305c=>{if(_0x39305c['data']['oldRange']||!_0x39305c['data']['newRange'])return null;if(!_0x39305c['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x14eac6}=_0x5edb89['_splitMarkerName'](_0x39305c['name']);if(!_0x5edb89['hasSuggestion'](_0x14eac6))return null;const _0x36050b=_0x5edb89['getSuggestion'](_0x14eac6);return _0x220c8f['includes'](_0x36050b['data']['key']);})['map'](_0x150e1d=>{const {id:_0x44fbb7}=_0x5edb89['_splitMarkerName'](_0x150e1d['name']),_0x1296be=_0x5edb89['getSuggestion'](_0x44fbb7);return _0x89df73=_0x1296be['attributes']['groupId'],_0x1296be['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x300e1d['size'])return;const _0x263c0e=_0x5edb89['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xf5d787=>'attribute'==_0xf5d787['type']&&_0xf5d787['data']&&_0x220c8f['includes'](_0xf5d787['data']['key'])&&_0xf5d787['attributes']['groupId']!=_0x89df73)['map'](_0x4ec43d=>({'listItem':_0x4ec43d['getFirstRange']()['start']['nodeAfter'],'groupId':_0x4ec43d['attributes']['groupId']})),_0x2dad97=new Set();for(const {groupId:_0x490dd4,listItem:_0x24e67e}of _0x263c0e)_0x300e1d['has'](_0x24e67e)&&_0x2dad97['add'](_0x490dd4);for(const _0x2140ec of _0x5edb89['getSuggestions']())_0x2dad97['has'](_0x2140ec['attributes']['groupId'])&&_0x2140ec['setAttribute']('groupId',_0x89df73);}['_supportLegacySuggestions'](){const _0x4e4fb5=this['editor'],_0x32c757=_0x4e4fb5['locale'],_0x22ca4a=_0x4e4fb5['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x22ca4a['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0xd8eed2,_0x4b6e45){const _0x386554=[];for(let _0x3ad4c5 of _0xd8eed2)_0x3ad4c5['start']['nodeAfter']===_0x3ad4c5['end']['parent']&&(_0x3ad4c5=_0x4e4fb5['model']['createRange'](_0x4e4fb5['model']['createPositionAt'](_0x3ad4c5['start']['nodeAfter'],0x0))),_0x386554['push'](_0x3ad4c5);_0x4e4fb5['model']['change'](_0x2ba6c1=>{const _0x3a8846=_0x4e4fb5['model']['document']['selection'],_0x3870bb=Array['from'](_0x3a8846['getRanges']())['map'](_0x3c2f6b=>_0x50a820['fromRange'](_0x3c2f6b));_0x2ba6c1['setSelection'](_0x386554),_0x4e4fb5['commands']['get'](_0x4b6e45['commandName'])['refresh'](),_0x4b6e45['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x4e4fb5['execute'](_0x4b6e45['commandName'],..._0x4b6e45['commandParams']),_0x2ba6c1['setSelection'](_0x3870bb);for(const _0x497bff of _0x3870bb)_0x497bff['detach']();});}),_0x22ca4a['descriptionFactory']['registerElementLabel'](function(_0x580cee){const _0x15c63b=!_0x4e4fb5['model']['schema']['isObject'](_0x580cee),_0x24fd27=_0x580cee['previousSibling'],_0xe78ccd=_0x580cee['nextSibling'],_0x2189e5=_0x580cee['getAttribute']('listItemId'),_0x256009=!_0x24fd27||_0x24fd27['getAttribute']('listItemId')!==_0x2189e5,_0x4fd4fd=!_0xe78ccd||_0xe78ccd['getAttribute']('listItemId')!==_0x2189e5;return _0x15c63b&&Boolean(_0x2189e5)&&_0x256009&&_0x4fd4fd;},_0x48b904=>o(_0x32c757,'ELEMENT_LIST_ITEM',_0x48b904));}['_registerLegacyDescription'](){const _0x4900cb=this['editor'],_0xd1bb10=_0x4900cb['locale'];function _0x161f76(_0x58d940){const _0x4c7527=_0x4900cb['commands']['get']('bulletedList')['value'],_0x503336=_0x4900cb['commands']['get']('numberedList')['value'];return'numberedList'===_0x58d940?_0x4c7527:_0x503336;}_0x4900cb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x497eff){if('formatBlock'!=_0x497eff['type'])return;const {data:_0x27cff3}=_0x497eff;if(!_0x27cff3)return;let _0x5a171a,_0x267126,_0x2aa25f,_0x1eb413;switch(_0x27cff3['commandName']){case'bulletedList':_0x2aa25f=_0x27cff3['commandParams'][0x0]['forceValue'],_0x1eb413=_0x161f76(_0x27cff3['commandName']),_0x5a171a=_0x2aa25f?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1eb413&&_0x4900cb['config']['get']('list.multiBlock')||(_0x5a171a='*Change\x20to:*\x20%0'),_0x267126={'type':'format','content':o(_0xd1bb10,_0x5a171a,o(_0xd1bb10,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x2aa25f=_0x27cff3['commandParams'][0x0]['forceValue'],_0x1eb413=_0x161f76(_0x27cff3['commandName']),_0x5a171a=_0x2aa25f?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1eb413&&_0x4900cb['config']['get']('list.multiBlock')||(_0x5a171a='*Change\x20to:*\x20%0'),_0x267126={'type':'format','content':o(_0xd1bb10,_0x5a171a,o(_0xd1bb10,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x5a171a='*Indent:*\x20%0',_0x267126={'type':'format','content':o(_0xd1bb10,_0x5a171a,o(_0xd1bb10,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x5a171a=function(_0x5cba7d){const _0x341cab=_0x5cba7d['getFirstRange']();let _0xe902e0=_0x341cab['start']['nodeAfter'];for(;_0xe902e0&&_0x341cab['containsItem'](_0xe902e0);){if(_0xe902e0['getAttribute']('listIndent')>0x0)return!0x1;_0xe902e0=_0xe902e0['nextSibling'];}return!0x0;}(_0x497eff)?o(_0xd1bb10,'*Format:*\x20remove\x20from\x20%0',o(_0xd1bb10,function(_0x3a9648){return'ELEMENT_'+_0x3a9648['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x497eff))):o(_0xd1bb10,'*Outdent:*\x20%0',o(_0xd1bb10,'ELEMENT_LIST_ITEM')),_0x267126={'type':'format','content':_0x5a171a};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x27cff3['multipleBlocks']&&(_0x5a171a='*Merge:*\x20%0',_0x267126={'type':'deletion','content':o(_0xd1bb10,_0x5a171a,o(_0xd1bb10,'ELEMENT_LIST_ITEM'))});}return _0x267126;});}}function Te(_0x2492e8){let _0x4fcfa4=_0x2492e8['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x4fcfa4;){const _0x238d39=_0x4fcfa4['getAttribute']('listItemId');if(!_0x238d39)return!0x1;if(_0x238d39==_0x2492e8['data']['newValue'])return'newValue';if(_0x238d39==_0x2492e8['data']['oldValue'])return'oldValue';_0x4fcfa4=_0x4fcfa4['previousSibling'];}return!0x1;}class q extends _0xe680e7{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x187a3c=this['editor']['config']['get']('list.properties'),_0x526b54=this['editor']['plugins']['get']('TrackChangesEditing');_0x187a3c['styles']&&(_0x526b54['enableDefaultAttributesIntegration']('listStyle'),_0x526b54['registerBlockAttribute']('listStyle')),_0x187a3c['reversed']&&(_0x526b54['enableDefaultAttributesIntegration']('listReversed'),_0x526b54['registerBlockAttribute']('listReversed')),_0x187a3c['startIndex']&&(_0x526b54['enableDefaultAttributesIntegration']('listStart'),_0x526b54['registerBlockAttribute']('listStart'));const _0x4dd9a9={'type':'format','content':''};_0x526b54['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x13216f=this['editor']['locale'];_0x526b54['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x13216f,'FORMAT_LIST_REVERSED')),_0x526b54['descriptionFactory']['registerDescriptionCallback'](_0x498a2f=>{const {data:_0x4acc9d}=_0x498a2f;if(_0x4acc9d&&'listReversed'==_0x4acc9d['key'])return null==_0x4acc9d['newValue']||0x0==_0x4acc9d['newValue']&&null==_0x4acc9d['oldValue']?_0x4dd9a9:void 0x0;}),_0x526b54['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x13216f,'FORMAT_LIST_START')),_0x526b54['descriptionFactory']['registerDescriptionCallback'](_0x220e0b=>{const {data:_0xbfc0c3}=_0x220e0b;if(_0xbfc0c3&&'listStart'==_0xbfc0c3['key'])return null==_0xbfc0c3['newValue']||0x1==_0xbfc0c3['newValue']&&null==_0xbfc0c3['oldValue']?_0x4dd9a9:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x1c55eb=>{if(_0x1c55eb['batch']['isUndo'])return!0x1;let _0x10f18b=!0x1;const _0x2d05c8=_0x526b54['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3d8f1d=>{const _0x50889e=_0x526b54['_getAttributeKey'](_0x3d8f1d);return'listStart'==_0x50889e||'listReversed'==_0x50889e;});for(const _0x366b60 of _0x2d05c8){const _0x3f4f98=_0x366b60['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x3f4f98||'customNumbered'==_0x3f4f98)continue;_0x526b54['_findSuggestions'](_0x366b60['getFirstRange'](),'attribute')['find'](_0x3841e4=>'listType'==_0x526b54['_getAttributeKey'](_0x3841e4['suggestion']))||(_0x1c55eb['removeMarker'](_0x366b60['getFirstMarker']()),_0x10f18b=!0x0);}return _0x10f18b;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x2b2f5e){const _0x96dbea=this['editor']['locale'],{data:_0x207ea2}=_0x2b2f5e,_0x21d51b={'type':'format','content':''};if(!_0x207ea2||'listStyle'!=_0x207ea2['key'])return;if(!_0x207ea2['oldValue'])return'default'==_0x207ea2['newValue']?_0x21d51b:{'type':'format','content':''+o(_0x96dbea,'*Set\x20format:*\x20%0',o(_0x96dbea,this['_getTranslationKeyForListStyle'](_0x207ea2['newValue'])))};if(!_0x207ea2['newValue']){if('default'==_0x207ea2['oldValue'])return _0x21d51b;let _0xe731f2=_0x2b2f5e['head'];for(;_0xe731f2;){if(_0xe731f2['data']&&'listType'==_0xe731f2['data']['key']&&_0xe731f2['data']['newValue'])return _0x21d51b;_0xe731f2=_0xe731f2['next'];}return{'type':'format','content':''+o(_0x96dbea,'*Remove\x20format:*\x20%0',o(_0x96dbea,this['_getTranslationKeyForListStyle'](_0x207ea2['oldValue'])))};}if('default'!=_0x207ea2['newValue'])return{'type':'format','content':''+o(_0x96dbea,'*Set\x20format:*\x20%0',o(_0x96dbea,this['_getTranslationKeyForListStyle'](_0x207ea2['newValue'])))};let _0x35a508=_0x2b2f5e['head'];for(;_0x35a508;){if(_0x35a508['data']&&'listType'==_0x35a508['data']['key']&&_0x35a508['data']['newValue']&&_0x35a508['data']['oldValue'])return _0x21d51b;_0x35a508=_0x35a508['next'];}return{'type':'format','content':o(_0x96dbea,'*Set\x20format:*\x20%0',o(_0x96dbea,'ELEMENT_'+_0x2b2f5e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x29fd53=this['editor'],_0x332ef9=_0x29fd53['locale'];_0x29fd53['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4722e8=>{if('formatBlock'!=_0x4722e8['type'])return;const {data:_0x5a1f7a}=_0x4722e8;if(!_0x5a1f7a)return;let _0x5983ba,_0x59738a;switch(_0x5a1f7a['commandName']){case'listStyle':_0x5983ba='*Change\x20to:*\x20%0',_0x59738a={'type':'format','content':o(_0x332ef9,_0x5983ba,o(_0x332ef9,this['_getTranslationKeyForListStyle'](_0x5a1f7a['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5983ba=_0x5a1f7a['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x59738a={'type':'format','content':o(_0x332ef9,_0x5983ba)};break;case'listStart':_0x5983ba='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x59738a={'type':'format','content':o(_0x332ef9,_0x5983ba,_0x5a1f7a['commandParams'][0x0]['startIndex'])};}return _0x59738a;});}['_getTranslationKeyForListStyle'](_0x4e8256){return'ELEMENT_'+function(_0x500313){if(Se['includes'](_0x500313))return'bulleted';if(_e['includes'](_0x500313))return'numbered';return null;}(_0x4e8256)['toUpperCase']()+'_LIST_'+_0x4e8256['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class z extends _0xe680e7{['afterInit'](){const _0x15b983=this['editor'];_0x15b983['commands']['get']('emoji')&&_0x15b983['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class W extends _0xe680e7{static get['requires'](){return[_0x5927bb];}['init'](){const _0x2ea6cb=this['editor'],_0x468012=_0x2ea6cb['plugins']['get']('TrackChangesEditing'),_0x552ba8=_0x2ea6cb['commands']['get']('enter');_0x468012['enableCommand']('enter',()=>{_0x2ea6cb['model']['change'](_0x3f4ae9=>{const _0x4f0c6f=_0x2ea6cb['model']['document']['selection'],_0x89a376=_0x4f0c6f['getFirstPosition'](),_0x5234bf=_0x50a820['fromRange'](_0x4f0c6f['getFirstRange']());if(_0x552ba8['enterBlock'](_0x3f4ae9)){const _0x4f7210=_0x2ea6cb['model']['createPositionAt'](_0x89a376['parent']['nextSibling'],0x0),_0x5598c6=_0x3f4ae9['createRange'](_0x89a376,_0x4f7210);_0x468012['markInsertion'](_0x5598c6);}else _0x3f4ae9['setSelection'](_0x3f4ae9['createRange'](_0x5234bf['end']));_0x5234bf['detach'](),_0x552ba8['fire']('afterExecute',{'writer':_0x3f4ae9});});}),_0x2ea6cb['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x2ea6cb,'split'),{'priority':'high'}),_0x2ea6cb['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0xd0a560,_0x56b381,_0x1168f2)=>{const _0x249145=_0x1168f2['mapper']['markerNameToElements'](_0x56b381['markerName']);if(_0x249145){for(const _0x5d0a65 of _0x249145)_0x5d0a65['hasClass']('ck-suggestion-marker-split')&&(_0x1168f2['mapper']['unbindElementFromMarkerName'](_0x5d0a65,_0x56b381['markerName']),_0x1168f2['writer']['remove'](_0x5d0a65));}},{'priority':'high'}),_0x2ea6cb['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x328421,_0x4524a1,_0x4edd99)=>{_0x4edd99['options']['showSuggestionHighlights']&&De(_0x2ea6cb,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x328421,_0x4524a1,_0x4edd99);},{'priority':'high'});}}class Q extends _0xe680e7{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x41733f=this['editor']['plugins']['get']('TrackChangesEditing');_0x41733f['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x41733f['enableCommand']('findNext'),_0x41733f['enableCommand']('findPrevious'),_0x41733f['enableCommand']('replace'),_0x41733f['enableCommand']('replaceAll');}['handleFindCommand'](_0x146835,_0x44ad43,_0x4e1105={}){const _0x510f4e=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x146835(_0x15d37a=>{let _0x55b499=('string'==typeof _0x44ad43?_0x510f4e['findByTextCallback'](_0x44ad43,_0x4e1105):_0x44ad43)(_0x15d37a);Array['isArray'](_0x55b499)&&(_0x55b499={'results':_0x55b499,'searchText':'string'==typeof _0x44ad43?_0x44ad43:''});const _0x590933=_0x55b499['results']['filter'](_0xc2e9c3=>!0x1===this['_isInDeletionRange'](_0xc2e9c3,_0x15d37a['item']));return{..._0x55b499,'results':_0x590933};},_0x4e1105);}['_isInDeletionRange'](_0x4f4a07,_0x27805c){const _0x5827e8=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x27805c,_0x4f4a07['start']),this['editor']['model']['createPositionAt'](_0x27805c,_0x4f4a07['end']));for(const _0x3ed06f of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x5827e8['getIntersection'](_0x3ed06f['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class X extends _0xe680e7{['afterInit'](){const _0x2567dc=this['editor']['locale'],_0xc75144=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x283815,commandName:_0x4da0e7}of eo)this['editor']['plugins']['has'](_0x283815)&&(_0xc75144['enableDefaultAttributesIntegration'](_0x4da0e7),_0xc75144['registerInlineAttribute'](_0x4da0e7));_0xc75144['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x2567dc,'FORMAT_FONT_SIZE')),_0xc75144['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x2567dc,'FORMAT_FONT_FAMILY')),_0xc75144['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x2567dc,'FORMAT_FONT_COLOR')),_0xc75144['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x2567dc,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3fb6c0=this['editor'],_0x2d4afc=_0x3fb6c0['locale'];_0x3fb6c0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x333b15=>{const _0x5b8672=_0x2d4afc['t'];if('formatInline'!=_0x333b15['type'])return;const {data:_0x4c419b}=_0x333b15;if(null!=_0x4c419b){if('fontSize'==_0x4c419b['commandName']){const _0xb824da=_0x4c419b['commandParams'][0x0]['value'];if(_0xb824da){const _0x3b5e8c=_0x5b8672(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x38323f=>_0x38323f['model']==_0xb824da)['title'])['toLowerCase']();return{'type':'format','content':o(_0x2d4afc,'*Set\x20font\x20size:*\x20%0',_0x3b5e8c)};}return{'type':'format','content':o(_0x2d4afc,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x4c419b['commandName']){const _0x475f65=_0x4c419b['commandParams'][0x0]['value'];return _0x475f65?{'type':'format','content':o(_0x2d4afc,'*Set\x20font\x20family:*\x20%0',_0x475f65)}:{'type':'format','content':o(_0x2d4afc,'*Reset\x20font\x20family*')};}if('fontColor'==_0x4c419b['commandName']){const _0x24d5d0=_0x4c419b['commandParams'][0x0]['value'];if(_0x24d5d0){const _0x33f3d2=_0x267957(this['editor']['config']['get']('fontColor.colors'))['find'](_0x4bba45=>_0x4bba45['model']==_0x24d5d0);let _0x55e75b=_0x24d5d0,_0x5e99c7='';return _0x33f3d2&&(_0x55e75b=_0x33f3d2['label'],_0x5e99c7=_0x5b8672(_0x55e75b)['toLowerCase']()),{'type':'format','content':o(_0x2d4afc,'*Set\x20font\x20color:*\x20%0',_0x5e99c7)['trim'](),'color':{'value':_0x24d5d0,'title':_0x5e99c7||_0x55e75b}};}return{'type':'format','content':o(_0x2d4afc,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x4c419b['commandName']){const _0x3d8a10=_0x4c419b['commandParams'][0x0]['value'];if(_0x3d8a10){const _0x5b4bde=_0x267957(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x21c738=>_0x21c738['model']==_0x3d8a10);let _0x2568ae=_0x3d8a10,_0x5c1cab='';return _0x5b4bde&&(_0x2568ae=_0x5b4bde['label'],_0x5c1cab=_0x5b8672(_0x2568ae)['toLowerCase']()),{'type':'format','content':o(_0x2d4afc,'*Set\x20font\x20background\x20color:*\x20%0',_0x5c1cab)['trim'](),'color':{'value':_0x3d8a10,'title':_0x5c1cab||_0x2568ae}};}return{'type':'format','content':o(_0x2d4afc,'*Reset\x20font\x20background\x20color*')};}}});}}class Y extends _0xe680e7{['afterInit'](){const _0x2e9db2=this['editor'],_0x570e0f=_0x2e9db2['plugins']['get']('TrackChangesEditing'),_0x2ba9f1=_0x2e9db2['commands']['get']('copyFormat'),_0x58beaf=_0x2e9db2['commands']['get']('pasteFormat');_0x2ba9f1&&_0x58beaf&&(_0x570e0f['enableDefaultAttributesIntegration']('pasteFormat'),_0x570e0f['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x258646=this['editor'],_0x3123f7=_0x258646['locale'];_0x258646['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x198526=>{if('formatBlock'!=_0x198526['type']&&'formatInline'!=_0x198526['type'])return;const {data:_0x9bb44e}=_0x198526;if(_0x9bb44e&&'pasteFormat'===_0x9bb44e['commandName']){const _0x3730f0=[],_0x2e3f21=_0x9bb44e['commandParams'][0x0];for(const [_0x2a4b6f,_0x3f66f6]of Object['entries'](_0x2e3f21))_0x3730f0['push'](ro(_0x258646,_0x2a4b6f,_0x3f66f6));return _0x3730f0['length']?{'type':'format','content':o(_0x3123f7,'*Set\x20format\x20to:*\x20%0',_0x3730f0['join'](',\x20'))}:{'type':'format','content':o(_0x3123f7,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x4c47a3,_0x434e53,_0x21dad8){const _0x56ef2e=_0x4c47a3['locale']['t'],_0x1d6ab9=_0x434e53['split'](/(?=[A-Z])/)['join']('\x20'),_0x54666e=_0x56ef2e(_0x1d6ab9['charAt'](0x0)['toUpperCase']()+_0x1d6ab9['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x21dad8)return _0x54666e;if('fontColor'===_0x434e53||'fontBackgroundColor'===_0x434e53){const _0x37456f=_0x267957(_0x4c47a3['config']['get']('fontColor.colors'))['find'](_0x5163a9=>_0x5163a9['model']==_0x21dad8);return _0x54666e+'\x20('+(_0x37456f?_0x56ef2e(_0x37456f['label'])['toLowerCase']():_0x21dad8)+')';}if('fontSize'===_0x434e53&&isNaN(parseFloat(_0x21dad8))){const _0x2276de=_0x4c47a3['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x4c47a3['config']['get']('fontSize.options'))['find'](_0x11c11d=>_0x11c11d['model']==_0x21dad8);return _0x54666e+'\x20('+(_0x2276de?_0x56ef2e(_0x2276de['title'])['toLowerCase']():_0x21dad8)+')';}return _0x54666e+'\x20('+_0x21dad8+')';}class Z extends _0xe680e7{['_headingOptions'];['afterInit'](){const _0xa15e74=this['editor'];if(!_0xa15e74['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0xa15e74['config']['get']('heading.options');const _0x24aaa8=_0xa15e74['locale'],_0x4f67ea=_0xa15e74['plugins']['get']('TrackChangesEditing');_0x4f67ea['enableDefaultAttributesIntegration']('heading');for(const _0x186f85 of this['_headingOptions'])'paragraph'!=_0x186f85['model']&&_0x4f67ea['descriptionFactory']['registerElementLabel'](_0x186f85['model'],_0x30c2b0=>{const _0x25a627=this['_getHeadingLevel'](_0x186f85['model']);return null!==_0x25a627?_0x4b9851(_0x30c2b0,_0x25a627):_0x33a638(_0x30c2b0,_0x186f85['title']);});function _0x4b9851(_0x3456da,_0x4bb53b){return o(_0x24aaa8,'ELEMENT_HEADING',[_0x3456da,_0x4bb53b]);}function _0x33a638(_0x44efb0,_0x31e67b){return o(_0x24aaa8,'ELEMENT_HEADING_CUSTOM',[_0x44efb0,_0x31e67b]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x63bd5d=this['editor'],_0x19dcf8=_0x63bd5d['locale'];function _0x563df7(_0x57dbcd,_0x7adcba){return o(_0x19dcf8,'ELEMENT_HEADING_CUSTOM',[_0x57dbcd,_0x7adcba]);}_0x63bd5d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x440091=>{if('formatBlock'!=_0x440091['type'])return;const {data:_0xb0ef47}=_0x440091;if(_0xb0ef47&&'heading'==_0xb0ef47['commandName']){const _0x898425=_0xb0ef47['commandParams'][0x0]['value'],_0x217819=this['_getHeadingLevel'](_0x898425);if(null!==_0x217819)return{'type':'format','content':o(_0x19dcf8,'*Change\x20to:*\x20%0',(_0x1abefa=0x1,_0xd76eec=_0x217819,o(_0x19dcf8,'ELEMENT_HEADING',[_0x1abefa,_0xd76eec])))};const _0xfff39=this['_headingOptions']['find'](_0x4c867d=>_0x4c867d['model']===_0x898425)['title'];return{'type':'format','content':o(_0x19dcf8,'*Change\x20to:*\x20%0',_0x563df7(0x1,_0xfff39))};}var _0x1abefa,_0xd76eec;});}['_getHeadingLevel'](_0x4b61bf){const _0x3c4e38=_0x4b61bf['match'](/^heading(\d+)/);if(_0x3c4e38)return _0x3c4e38[0x1];const _0x4fabfb=this['_headingOptions']?.['find'](_0x2f9ed6=>_0x2f9ed6['model']==_0x4b61bf);if(_0x4fabfb&&_0x4fabfb['view']){const _0x52da34=_0x4fabfb['view'],_0x1180bf=(_0x52da34['name']??_0x52da34)['match'](/^h(\d+)/);if(_0x1180bf)return _0x1180bf[0x1];}return null;}}class tt extends _0xe680e7{['afterInit'](){const _0x54ff17=this['editor'];if(!_0x54ff17['plugins']['has']('HighlightEditing'))return;const _0x1b2383=_0x54ff17['plugins']['get']('TrackChangesEditing'),_0x4ef9e0=_0x54ff17['locale'];_0x1b2383['enableDefaultAttributesIntegration']('highlight'),_0x1b2383['registerInlineAttribute']('highlight'),_0x1b2383['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x4ef9e0,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x190a56=this['editor'],_0x444f23=_0x190a56['locale'];_0x190a56['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x114595=>{if('formatInline'!=_0x114595['type'])return;const {data:_0x1148d8}=_0x114595;if(_0x1148d8&&'highlight'==_0x1148d8['commandName']){const _0x23be4d=_0x444f23['t'],_0x2a7a67=_0x1148d8['commandParams'][0x0]['value'];if(_0x2a7a67){const _0x140e12=_0x190a56['config']['get']('highlight.options')['find'](_0x3869ff=>_0x3869ff['model']==_0x2a7a67),_0x5ef031=_0x23be4d(_0x140e12['title'])['toLowerCase']();return{'type':'format','content':o(_0x444f23,'*Set\x20highlight:*\x20%0',_0x5ef031),'color':{'value':_0x140e12['color'],'title':_0x140e12['title']}};}return{'type':'format','content':o(_0x444f23,'*Remove\x20highlight*',o(_0x444f23,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0xe680e7{['afterInit'](){const _0x4e4d67=this['editor'];if(!_0x4e4d67['plugins']['has']('HorizontalLineEditing'))return;_0x4e4d67['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x19de24=_0x4e4d67['plugins']['get']('TrackChangesEditing'),_0x1ae746=_0x4e4d67['locale'];_0x19de24['descriptionFactory']['registerElementLabel']('horizontalLine',_0x22d15a=>o(_0x1ae746,'ELEMENT_HORIZONTAL_LINE',_0x22d15a)),_0x4e4d67['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x2605c6,{writer:_0x2cc3a7,options:_0x135035})=>{if(!_0x135035['showSuggestionHighlights'])return null;const _0x76fcae=_0x2cc3a7['createContainerElement']('div'),_0x1db6a1=_0x2cc3a7['createEmptyElement']('hr');return _0x2cc3a7['addClass']('ck-horizontal-line',_0x76fcae),_0x2cc3a7['insert'](_0x2cc3a7['createPositionAt'](_0x76fcae,0x0),_0x1db6a1),_0x76fcae;},'converterPriority':'high'});}}class nt extends _0xe680e7{['afterInit'](){const _0x4c4535=this['editor'];if(!_0x4c4535['plugins']['has']('HtmlEmbed'))return;const _0x10df53=_0x4c4535['plugins']['get']('TrackChangesEditing'),_0x582ace=_0x4c4535['locale'];_0x10df53['descriptionFactory']['registerElementLabel']('rawHtml',_0x173d91=>o(_0x582ace,'ELEMENT_HTML_EMBED',_0x173d91)),_0x10df53['enableDefaultAttributesIntegration']('htmlEmbed'),_0x10df53['registerBlockAttribute']('value'),_0x10df53['descriptionFactory']['registerDescriptionCallback'](_0x1c3fa5=>{if('attribute'!=_0x1c3fa5['type'])return;const {data:_0x44891f}=_0x1c3fa5;if(_0x44891f&&'value'==_0x44891f['key']&&_0x1c3fa5['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x24ebd2=o(_0x582ace,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x582ace,'*Change\x20%0\x20content*',_0x24ebd2)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x20fecf=this['editor'],_0x16da99=_0x20fecf['locale'];_0x20fecf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1df521=>{if('formatBlock'!=_0x1df521['type'])return;const {data:_0x2d7f45}=_0x1df521;if(_0x2d7f45&&'htmlEmbed'==_0x2d7f45['commandName']){const _0xad07a2=o(_0x16da99,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x16da99,'*Change\x20%0\x20content*',_0xad07a2)};}});}}class et extends _0xe680e7{['afterInit'](){const _0x2fdfe8=this['editor'];if(!_0x2fdfe8['plugins']['has']('ImageEditing'))return;const _0x8db15b=_0x2fdfe8['plugins']['get']('TrackChangesEditing'),_0x53dbd3=_0x2fdfe8['plugins']['get']('ImageUtils'),_0xee9519=_0x2fdfe8['locale'];_0x8db15b['enableCommand']('insertImage'),_0x8db15b['descriptionFactory']['registerElementLabel']('imageBlock',_0x1c9004=>o(_0xee9519,'ELEMENT_IMAGE',_0x1c9004)),_0x8db15b['descriptionFactory']['registerElementLabel']('imageInline',_0x5a4e32=>o(_0xee9519,'ELEMENT_INLINE_IMAGE',_0x5a4e32)),_0x8db15b['descriptionFactory']['registerElementLabel']('caption',()=>o(_0xee9519,'ELEMENT_CAPTION')),_0x2fdfe8['plugins']['has']('ImageUploadEditing')&&_0x8db15b['enableCommand']('uploadImage'),_0x2fdfe8['plugins']['has']('ImageBlockEditing')&&_0x2fdfe8['plugins']['has']('ImageInlineEditing')&&(_0x8db15b['enableCommand']('imageTypeInline',(_0x48a39b,_0x5b5b5f)=>{const _0x24e145=_0x53dbd3['getClosestSelectedImageElement'](_0x2fdfe8['model']['document']['selection']);_0x2fdfe8['model']['change'](()=>{_0x8db15b['markBlockFormat'](_0x24e145,{'commandName':'imageTypeInline','commandParams':[_0x5b5b5f]},[],'convertBlockImageToInline');});}),_0x8db15b['enableCommand']('imageTypeBlock',(_0x36f730,_0x23cc54)=>{_0x2fdfe8['model']['change'](_0x59b1a5=>{let _0x2bbfe1=_0x53dbd3['getClosestSelectedImageElement'](_0x2fdfe8['model']['document']['selection']),_0x17dc2f=_0x59b1a5['createRangeOn'](_0x2bbfe1);const _0x163885=_0x5da3ae['fromPosition'](_0x17dc2f['start'],'toPrevious'),_0x6a2785=_0x5da3ae['fromPosition'](_0x17dc2f['end'],'toNext');_0x8db15b['forceDefaultExecution'](()=>_0x36f730(_0x23cc54)),_0x2bbfe1=_0x53dbd3['getClosestSelectedImageElement'](_0x2fdfe8['model']['document']['selection']),_0x17dc2f=_0x59b1a5['createRangeOn'](_0x2bbfe1);const _0x253f45=_0x59b1a5['createRange'](_0x163885,_0x6a2785);_0x163885['detach'](),_0x6a2785['detach'](),_0x8db15b['markBlockFormat'](_0x2bbfe1,{'commandName':'imageTypeInline','commandParams':[_0x23cc54]},[],'convertInlineImageToBlock'),_0x253f45['start']['isBefore'](_0x17dc2f['start'])&&_0x8db15b['markInsertion'](_0x59b1a5['createRange'](_0x253f45['start'],_0x17dc2f['start']),'convertInlineImageToBlock'),_0x17dc2f['end']['isBefore'](_0x253f45['end'])&&_0x8db15b['markInsertion'](_0x59b1a5['createRange'](_0x17dc2f['end'],_0x253f45['end']),'convertInlineImageToBlock');});}),_0x8db15b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x8db15b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x8db15b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x8db15b['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x8db15b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x8db15b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x30f518])=>{const _0x3feee2=_0x8db15b['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0xa97c4b=_0x30f518['start'],_0x1a399b=_0x30f518['end'];const _0x5b4894=_0x2fdfe8['model']['schema']['getNearestSelectionRange'](_0xa97c4b,'backward'),_0x48d554=_0x2fdfe8['model']['schema']['getNearestSelectionRange'](_0x1a399b,'forward');_0x5b4894['isCollapsed']&&(_0xa97c4b=_0x5b4894['start']),_0x48d554['isCollapsed']&&(_0x1a399b=_0x48d554['end']),_0x3feee2([_0x2fdfe8['model']['createRange'](_0xa97c4b,_0x1a399b)]);}),_0x8db15b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x460132),_0x8db15b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x460132)),_0x2fdfe8['plugins']['has']('ImageCaptionEditing')&&(_0x8db15b['enableCommand']('toggleImageCaption',(_0x183c40,_0xad0f1d)=>{const _0x4bc8cd=_0x2fdfe8['plugins']['get']('ImageCaptionUtils');let _0xcd2756=_0x53dbd3['getClosestSelectedImageElement'](_0x2fdfe8['model']['document']['selection']),_0x59987f=_0x4bc8cd['getCaptionFromImageModelElement'](_0xcd2756);_0x2fdfe8['model']['change'](()=>{if(_0x59987f)return void _0x8db15b['markDeletion'](_0x2fdfe8['model']['createRangeOn'](_0x59987f));const _0x3b91d5=_0x53dbd3['isBlockImage'](_0xcd2756);_0x183c40(_0xad0f1d),_0xcd2756=_0x53dbd3['getClosestSelectedImageElement'](_0x2fdfe8['model']['document']['selection']),_0x59987f=_0x4bc8cd['getCaptionFromImageModelElement'](_0xcd2756),_0x8db15b['markInsertion'](_0x2fdfe8['model']['createRangeOn'](_0x59987f),_0x3b91d5?null:'imageCaption');});}),_0x8db15b['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x460132));const _0x275260=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x512984(_0x46c642,_0xeca867){const _0xbd76f7=_0x275260['findIndex'](({type:_0x23de5e,subType:_0x5b75c1})=>_0x46c642['type']==_0x23de5e&&_0x46c642['subType']==_0x5b75c1),_0x421fa6=_0x275260['findIndex'](({type:_0x46aefa,subType:_0x242c63})=>_0xeca867['type']==_0x46aefa&&_0xeca867['subType']==_0x242c63);if(_0xbd76f7<0x0||_0x421fa6<0x0)return!0x1;const _0x49b30d=_0x46c642['getFirstRange'](),_0xcfac8e=_0xeca867['getFirstRange']();if((0x0==_0xbd76f7||0x1==_0xbd76f7)&&0x2==_0x421fa6&&_0x49b30d['isIntersecting'](_0xcfac8e))return!0x0;if(0x2==_0xbd76f7&&0x3==_0x421fa6){const _0x90149a=_0x8db15b['_findSuggestions'](_0x49b30d,'insertion')['filter'](({suggestion:_0x1f6669,meta:_0x59ae2d})=>_0x59ae2d['isOwn']&&'convertInlineImageToBlock'==_0x1f6669['subType']);if(_0x90149a['length']>0x1&&_0xcfac8e['end']['isEqual'](_0x49b30d['start']))return!0x0;if(0x1==_0x90149a['length']&&(_0x49b30d['start']['isEqual'](_0xcfac8e['end'])||_0x49b30d['end']['isEqual'](_0xcfac8e['start'])))return!0x0;}if(0x3==_0xbd76f7&&0x3==_0x421fa6&&_0x49b30d['start']['isBefore'](_0xcfac8e['start'])){const _0x31c225=_0x49b30d['end']['nodeAfter'],_0x4e220f=_0xcfac8e['start']['nodeBefore'];return _0x53dbd3['isBlockImage'](_0x31c225)&&_0x31c225===_0x4e220f;}return!0x1;}function _0x460132(_0x30e287,_0x4d1c96){return _0x512984(_0x30e287,_0x4d1c96)?[_0x30e287,_0x4d1c96]:_0x512984(_0x4d1c96,_0x30e287)?[_0x4d1c96,_0x30e287]:null;}_0x2fdfe8['plugins']['has']('ImageResize')&&(_0x8db15b['enableDefaultAttributesIntegration']('resizeImage'),_0x8db15b['registerBlockAttribute']('resizedWidth'),_0x8db15b['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0xee9519,'FORMAT_IMAGE_SIZE'))),_0x2fdfe8['plugins']['has']('ImageTextAlternativeEditing')&&(_0x8db15b['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x8db15b['registerBlockAttribute']('alt')),_0x2fdfe8['plugins']['has']('PictureEditing')&&(_0x8db15b['registerBlockAttribute']('sources'),_0x8db15b['descriptionFactory']['registerDescriptionCallback'](_0x2d9725=>{if('attribute'!=_0x2d9725['type'])return;const {data:_0x23dd2e}=_0x2d9725;return _0x23dd2e&&'sources'==_0x23dd2e['key']?{'type':'format','content':''}:void 0x0;})),_0x2fdfe8['plugins']['has']('ImageSizeAttributes')&&(_0x8db15b['registerBlockAttribute']('width'),_0x8db15b['registerBlockAttribute']('height'),_0x8db15b['descriptionFactory']['registerDescriptionCallback'](_0x44e600=>{if('attribute'!=_0x44e600['type'])return;const {data:_0x45bf24}=_0x44e600;return!_0x45bf24||'width'!=_0x45bf24['key']&&'height'!=_0x45bf24['key']?void 0x0:{'type':'format','content':''};})),_0x8db15b['descriptionFactory']['registerDescriptionCallback'](_0x474a05=>{if(!!_0x275260['find'](({type:_0x38fdff,subType:_0x192729})=>_0x474a05['type']==_0x38fdff&&_0x474a05['subType']==_0x192729))return _0x474a05['previous']?{}:void 0x0;}),_0x8db15b['descriptionFactory']['registerDescriptionCallback'](_0x5c48cc=>{if('insertion'==_0x5c48cc['type']||'deletion'==_0x5c48cc['type']){const _0x408980=_0x5c48cc['getContainedElement']();if(_0x408980&&_0x408980['is']('element','caption'))return{'type':'insertion'==_0x5c48cc['type']?'addObject':'removeObject','element':_0x408980,'quantity':0x1};}}),_0x8db15b['descriptionFactory']['registerDescriptionCallback'](_0x1d2a67=>'formatBlock'==_0x1d2a67['type']&&'convertInlineImageToBlock'==_0x1d2a67['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x1d2a67['type']&&'convertBlockImageToInline'==_0x1d2a67['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x8db15b['descriptionFactory']['registerDescriptionCallback'](_0x495dff=>{if('attribute'!=_0x495dff['type'])return;const {data:_0xe899fd}=_0x495dff;if(!_0xe899fd||'alt'!=_0xe899fd['key'])return;const _0x3ae8a5=_0xe899fd['newValue'];return _0x3ae8a5?{'type':'format','content':o(_0xee9519,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3ae8a5+'\x22')}:{'type':'format','content':o(_0xee9519,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x76a48=this['editor'],_0x104ba8=_0x76a48['locale'];_0x76a48['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xe208a5=>{if('formatBlock'!=_0xe208a5['type']&&'formatInline'!=_0xe208a5['type'])return;const {data:_0x35c208}=_0xe208a5;if(_0x35c208){if('imageTextAlternative'==_0x35c208['commandName']){const _0x1e13dc=_0x35c208['commandParams'][0x0]['newValue'];return _0x1e13dc?{'type':'format','content':o(_0x104ba8,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1e13dc+'\x22')}:{'type':'format','content':o(_0x104ba8,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x35c208['commandName']){const _0x1923be=_0x35c208['commandParams'][0x0]['width'];return _0x1923be?{'type':'format','content':o(_0x104ba8,'*Set\x20image\x20width:*\x20%0',_0x1923be)}:{'type':'format','content':o(_0x104ba8,'*Reset\x20image\x20width*')};}}});}}class st extends _0xe680e7{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x1067d0=this['editor']['locale'],_0x448329=this['editor']['plugins']['get']('TrackChangesEditing');_0x448329['enableDefaultAttributesIntegration']('replaceImageSource'),_0x448329['registerBlockAttribute']('src'),_0x448329['descriptionFactory']['registerDescriptionCallback'](_0x412165=>{if('attribute'!=_0x412165['type'])return;const {data:_0xefa9cd}=_0x412165;return _0xefa9cd&&'src'==_0xefa9cd['key']?_0xefa9cd['newValue']&&_0xefa9cd['oldValue']?{'type':'format','content':o(_0x1067d0,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2a2cb5=this['editor']['plugins']['get']('TrackChangesEditing');_0x2a2cb5['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x2a2cb5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2a2cb5['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x2a2cb5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2e345e=this['editor'],_0x5d479d=_0x2e345e['locale'];_0x2e345e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x16cd95=>{if('formatBlock'!=_0x16cd95['type']&&'formatInline'!=_0x16cd95['type'])return;const {data:_0x4c99c7}=_0x16cd95;if(!_0x4c99c7||'replaceImageSource'!=_0x4c99c7['commandName'])return;return{'type':'format','content':o(_0x5d479d,'*Format:*\x20replace\x20image\x20URL')};});}}class ot extends _0xe680e7{['afterInit'](){const _0x2dd1bb=this['editor'];if(!_0x2dd1bb['plugins']['has']('ImageStyleEditing'))return;const _0x6f4e78=_0x2dd1bb['plugins']['get']('TrackChangesEditing'),_0x1a4fc6=_0x2dd1bb['plugins']['get']('ImageUtils'),_0x4f3d4a={};_0x6f4e78['enableCommand']('imageStyle',(_0x2873fa,_0xd5113b)=>{const _0x26c84f=_0x2dd1bb['plugins']['get']('Users')['me'],_0x2b9d98=_0x2dd1bb['commands']['get']('imageStyle');let _0x4b5bc6=_0x1a4fc6['getClosestSelectedImageElement'](_0x2dd1bb['model']['document']['selection']),_0x4f76f4=_0x2dd1bb['model']['createRangeOn'](_0x4b5bc6),_0x933df2=_0x2b9d98['value'];if(_0x933df2==_0xd5113b['value'])return;const _0x405bd4={'commandName':'imageStyle','commandParams':[_0xd5113b],'formatGroupId':_0x29bcf7()};_0x2dd1bb['model']['change'](()=>{if(_0x6f4e78['getSuggestions']()['filter'](_0xd13d41=>_0xd13d41['isInContent']&&_0x26c84f==_0xd13d41['author']&&('formatBlock'==_0xd13d41['type']||'formatInline'==_0xd13d41['type'])&&('imageStylePreApply'==_0xd13d41['subType']||'imageStylePostApply'==_0xd13d41['subType'])&&_0xd13d41['getFirstRange']()['isEqual'](_0x4f76f4))['forEach'](_0x55a4a3=>_0x6f4e78['discardSuggestion'](_0x55a4a3['head'])),_0x4b5bc6=_0x1a4fc6['getClosestSelectedImageElement'](_0x2dd1bb['model']['document']['selection']),_0x4f76f4=_0x2dd1bb['model']['createRangeOn'](_0x4b5bc6),_0x2b9d98['refresh'](),_0x2dd1bb['commands']['get']('imageTypeInline')['refresh'](),_0x2dd1bb['commands']['get']('imageTypeBlock')['refresh'](),_0x933df2=_0x2b9d98['value'],_0x933df2!=_0xd5113b['value'])return _0x1a4fc6['isInlineImage'](_0x4b5bc6)&&_0x2b9d98['shouldConvertImageType'](_0xd5113b['value'],_0x4b5bc6)?(_0x2873fa({..._0xd5113b,'setImageSizes':!0x1}),_0x4b5bc6=_0x1a4fc6['getClosestSelectedImageElement'](_0x2dd1bb['model']['document']['selection']),void _0x6f4e78['markBlockFormat'](_0x4b5bc6,{..._0x405bd4,'commandReversedParams':[{'value':_0x933df2||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x1a4fc6['isBlockImage'](_0x4b5bc6)?_0x6f4e78['markBlockFormat'](_0x4b5bc6,_0x405bd4,[],'imageStylePostApply'):_0x6f4e78['markInlineFormat'](_0x4f76f4,_0x405bd4,'imageStylePostApply'));});});for(const _0x290923 of _0x2dd1bb['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x4f3d4a[_0x290923['name']]=_0x290923['title']['toLowerCase']();_0x6f4e78['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x6f4e78['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x6f4e78['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x6f4e78['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x565396])=>{_0x1a4fc6['setImageNaturalSizeAttributes'](_0x565396['getContainedElement']());}),_0x6f4e78['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x379345,_0x1ef092)=>{_0x6f4e78['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x379345,{'commandName':_0x1ef092['commandName'],'commandParams':_0x1ef092['commandReversedParams']});}),_0x6f4e78['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x24e12f,_0x15912a){if(_0x545be2(_0x24e12f,_0x15912a))return[_0x24e12f,_0x15912a];if(_0x545be2(_0x15912a,_0x24e12f))return[_0x15912a,_0x24e12f];return null;});const _0x3b32c1=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x545be2(_0x413cec,_0x832c9d){const _0x131a11=_0x3b32c1['findIndex'](({type:_0x2759e8,subType:_0xcc3ffa})=>_0x413cec['type']==_0x2759e8&&_0x413cec['subType']==_0xcc3ffa),_0x2042af=_0x3b32c1['findIndex'](({type:_0x4a2f59,subType:_0x12e473})=>_0x832c9d['type']==_0x4a2f59&&_0x832c9d['subType']==_0x12e473);if(_0x131a11<0x0||_0x2042af<0x0)return!0x1;const _0x7d6952=_0x413cec['getFirstRange'](),_0x306d1e=_0x832c9d['getFirstRange']();if((0x0==_0x131a11||0x1==_0x131a11)&&0x2==_0x2042af&&_0x7d6952['isIntersecting'](_0x306d1e))return!0x0;if(0x2==_0x131a11&&0x3==_0x2042af){const _0x3a894d=_0x6f4e78['_findSuggestions'](_0x7d6952,'insertion')['filter'](({suggestion:_0x52e81f,meta:_0x32f7cb})=>_0x32f7cb['isOwn']&&'convertInlineImageToBlock'==_0x52e81f['subType']);if(_0x3a894d['length']>0x1&&_0x306d1e['end']['isEqual'](_0x7d6952['start']))return!0x0;if(0x1==_0x3a894d['length']&&(_0x7d6952['start']['isEqual'](_0x306d1e['end'])||_0x7d6952['end']['isEqual'](_0x306d1e['start'])))return!0x0;}if(0x3==_0x131a11&&0x3==_0x2042af&&_0x7d6952['start']['isBefore'](_0x306d1e['start'])){const _0x42624c=_0x7d6952['end']['nodeAfter'],_0x15405b=_0x306d1e['start']['nodeBefore'];return _0x1a4fc6['isBlockImage'](_0x42624c)&&_0x42624c===_0x15405b;}return!0x1;}_0x2dd1bb['model']['document']['registerPostFixer'](()=>{let _0x2d24fd=!0x1;const _0x347369=Array['from'](_0x2dd1bb['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3c9a8f,data:_0x431ae8}of _0x347369){const {group:_0x539d10,type:_0x14a8d6,subType:_0x5ea82d,id:_0x4a3c4b}=_0x6f4e78['_splitMarkerName'](_0x3c9a8f);if('suggestion'==_0x539d10&&_0x6f4e78['hasSuggestion'](_0x4a3c4b)){if('formatBlock'==_0x14a8d6&&('imageStylePreApply'==_0x5ea82d||'imageStylePostApply'==_0x5ea82d)){const _0x19fa89=_0x6f4e78['getSuggestion'](_0x4a3c4b);if(_0x431ae8['newRange']){const _0x51b8b9=_0x19fa89['getFirstRange']()['getContainedElement']();if(_0x1a4fc6['isBlockImage'](_0x51b8b9))continue;_0x6f4e78['discardSuggestion'](_0x19fa89),_0x2d24fd=!0x0;}}if('insertion'==_0x14a8d6&&'imageCaption'==_0x5ea82d&&!_0x431ae8['newRange']){const _0x3dc4c0=_0x6f4e78['getSuggestion'](_0x4a3c4b);_0x3dc4c0['next']&&_0x3dc4c0['next']['isInContent']&&(_0x6f4e78['discardSuggestion'](_0x3dc4c0['next']),_0x2d24fd=!0x0);}}}return _0x2d24fd;}),this['_registerLegacyDescription'](_0x4f3d4a);}['_registerLegacyDescription'](_0x2512b8){const _0x221aee=this['editor'],_0x4547d1=_0x221aee['locale'];_0x221aee['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3a9e08=>{if('formatBlock'!=_0x3a9e08['type']&&'formatInline'!=_0x3a9e08['type'])return;const {data:_0x441aa9}=_0x3a9e08;if(!_0x441aa9||'imageStyle'!=_0x441aa9['commandName'])return;const _0x35b411=_0x441aa9['commandParams'][0x0]['value'];return _0x58a688('side'===_0x35b411?o(_0x4547d1,'FORMAT_SIDE_IMAGE'):_0x2512b8[_0x35b411]||_0x35b411);function _0x58a688(_0x43e522){return{'type':'format','content':o(_0x4547d1,'*Format:*\x20%0',_0x43e522)};}});}}class rt extends _0xe680e7{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x4a9144){super(_0x4a9144),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x547528=this['editor'],_0x522c8e=_0x547528['commands']['get']('importWord'),_0x54d413=_0x547528['commands']['get']('trackChanges');_0x522c8e&&(_0x522c8e['on']('execute',(_0x5503f4,[,_0x16d020])=>{this['_trackChangesValueDuringImport']=_0x54d413['value'],_0x16d020['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x522c8e,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x522c8e,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x54d413['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x547528['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x558f35,_0x2a8b83){const {suggestions:_0x148217}=_0x2a8b83,_0x5e8809=this['editor']['commands']['get']('trackChanges'),_0x3fae98=_0x5e8809['value'];this['_trackChangesValueDuringImport']!==_0x3fae98&&(_0x5e8809['execute'](),this['_trackChangesExecuted']=!0x0),_0x148217&&_0x148217['forEach'](({id:_0x23b8d1,type:_0x3317fb,author:_0x4679fd,created_at:_0x5a1fd6})=>{const _0x29081b={'id':_0x23b8d1,'type':_0x3317fb,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x4679fd,'createdAt':_0x5a1fd6?new Date(_0x5a1fd6):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x29081b);});}}class at extends _0xe680e7{['afterInit'](){const _0x46b43d=this['editor'],_0x5f3606=_0x46b43d['plugins']['get']('TrackChangesEditing');if(_0x46b43d['plugins']['has']('IndentEditing')&&(_0x5f3606['enableCommand']('indent'),_0x5f3606['enableCommand']('outdent')),_0x46b43d['plugins']['has']('IndentBlock')){for(const _0x1d9574 of['indentBlock','outdentBlock'])_0x5f3606['enableDefaultAttributesIntegration'](_0x1d9574);}const _0x583b11=_0x46b43d['locale'];_0x5f3606['registerBlockAttribute']('blockIndent'),_0x5f3606['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x583b11,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x23d993=this['editor'],_0x48c993=_0x23d993['locale'],_0x43a505=_0x23d993['plugins']['get']('TrackChangesEditing');_0x43a505['descriptionFactory']['registerDescriptionCallback'](_0x192e43=>{if('formatBlock'!=_0x192e43['type'])return;const {data:_0x3d5210}=_0x192e43;if(!_0x3d5210)return;if('indentBlock'!=_0x3d5210['commandName']&&'outdentBlock'!=_0x3d5210['commandName'])return;const _0x11279e=_0x192e43['getItems']()[0x0],_0x36709d=_0x43a505['descriptionFactory']['getItemLabel'](_0x11279e);return'indentBlock'==_0x3d5210['commandName']?{'type':'format','content':o(_0x48c993,'*Indent:*\x20%0',_0x36709d)}:'outdentBlock'==_0x3d5210['commandName']?{'type':'format','content':o(_0x48c993,'*Outdent:*\x20%0',_0x36709d)}:void 0x0;});}}class ct extends _0xe680e7{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ut extends _0xe680e7{['afterInit'](){const _0x347a25=this['editor'];if(!_0x347a25['plugins']['has']('LinkEditing'))return;const _0x5ef572=_0x347a25['plugins']['get']('TrackChangesEditing'),_0x4ecd84=_0x347a25['commands']['get']('link');_0x5ef572['enableDefaultAttributesIntegration']('link'),_0x5ef572['enableDefaultAttributesIntegration']('unlink'),_0x5ef572['registerInlineAttribute']('linkHref');for(const _0x403608 of _0x4ecd84['manualDecorators'])_0x5ef572['registerInlineAttribute'](_0x403608['id']),_0x5ef572['descriptionFactory']['registerAttributeLabel'](_0x403608['id'],'link\x20('+_0x403608['label']['toLowerCase']()+')');_0x5ef572['descriptionFactory']['registerDescriptionCallback'](_0x3243e1=>{if('attribute'!=_0x3243e1['type'])return;const {data:_0x92b88}=_0x3243e1;if(!_0x92b88||'linkHref'!=_0x92b88['key'])return;const _0x19e12e=_0x92b88['newValue'],_0x208adc=_0x347a25['locale'];return{'type':'format','content':null==_0x19e12e?o(_0x208adc,'*Remove\x20link*'):o(_0x208adc,'*Set\x20link:*\x20%0','\x22'+_0x19e12e+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1229eb=this['editor'],_0x2989eb=_0x1229eb['locale'];_0x1229eb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x445aa4=>{if('formatInline'!=_0x445aa4['type'])return;const {data:_0x4ac6e1}=_0x445aa4;if(_0x4ac6e1){if('link'==_0x4ac6e1['commandName']){const _0x1228dd=_0x4ac6e1['commandParams'][0x0];return{'type':'format','content':o(_0x2989eb,'*Set\x20link:*\x20%0','\x22'+_0x1228dd+'\x22')};}return'unlink'==_0x4ac6e1['commandName']?{'type':'format','content':o(_0x2989eb,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0xe680e7{['afterInit'](){const _0xf75163=this['editor'],_0x477db5=_0xf75163['locale'];if(!_0xf75163['plugins']['has']('LegacyListEditing'))return;const _0x50f1c8=_0xf75163['plugins']['get']('TrackChangesEditing'),_0x2bfb64=_0xf75163['plugins']['has']('LegacyTodoListEditing');function _0x35ddb2(_0x93571a){return()=>{const _0x4e5169=_0xf75163['model']['document']['selection'],_0x11d080=_0xf75163['commands']['get'](_0x93571a);if(_0x11d080['value'])return void _0xf75163['execute']('paragraph',{});const _0x3713da=_0x93571a['slice'](0x0,-0x4),_0x4c056c=function(_0x473fdb,_0x536875,_0x3ee5a7){let _0x2f11ad=Array['from'](_0x473fdb)['filter'](_0x5575e3=>function(_0x4e7f94,_0x5c6a8c){return _0x5c6a8c['checkChild'](_0x4e7f94['parent'],'listItem')&&!_0x5c6a8c['isObject'](_0x4e7f94);}(_0x5575e3,_0x3ee5a7));_0x2f11ad=_0x2f11ad['filter'](_0x1099b4=>!_0x1099b4['is']('element','listItem')||_0x1099b4['getAttribute']('listType')!=_0x536875);const _0x26b9d6=new Set();for(const _0x3499ff of _0x2f11ad)_0x3499ff['is']('element','listItem')?_0x26b9d6['add'](Le(_0x3499ff)):_0x26b9d6['add'](_0x3499ff);return Array['from'](_0x26b9d6);}(_0x4e5169['getSelectedBlocks'](),_0x3713da,_0xf75163['model']['schema']);_0xf75163['model']['change'](()=>{for(const _0x37bfa1 of _0x4c056c)_0x50f1c8['markBlockFormat'](_0x37bfa1,{'commandName':_0x93571a,'commandParams':[{'forceValue':!_0x11d080['value']}],'formatGroupId':'blockName'},Ee(_0x37bfa1));});};}function _0x4c1e32(_0x6394f7){return()=>{const _0x2a3f32=function(_0x9cac9f){let _0x24e02b=Array['from'](_0x9cac9f);const _0x442e6e=_0x24e02b['findIndex'](_0x226090=>'listItem'!=_0x226090['name']);return _0x442e6e>-0x1&&(_0x24e02b=_0x24e02b['slice'](0x0,_0x442e6e)),_0x24e02b;}(_0xf75163['model']['document']['selection']['getSelectedBlocks']()),_0x2ec122=_0xf75163['model']['createRange'](_0xf75163['model']['createPositionAt'](_0x2a3f32[0x0],'before'),_0xf75163['model']['createPositionAt'](_0x2a3f32[_0x2a3f32['length']-0x1],'end'));_0xf75163['model']['change'](()=>{_0x50f1c8['markBlockFormat'](_0x2ec122,{'commandName':_0x6394f7,'commandParams':[],'formatGroupId':'listIndent'},function(_0x481f4b){const _0x184ba7=new Set();for(const _0x4afd49 of _0x481f4b){let _0x707b93=_0x4afd49['nextSibling'];for(;_0x707b93&&_0x707b93['getAttribute']('listIndent')>_0x4afd49['getAttribute']('listIndent');)_0x184ba7['add'](_0x707b93),_0x707b93=_0x707b93['nextSibling'];}return Array['from'](_0x184ba7);}(_0x2a3f32));});};}_0x50f1c8['enableCommand']('numberedList',_0x35ddb2('numberedList')),_0x50f1c8['enableCommand']('bulletedList',_0x35ddb2('bulletedList')),_0x2bfb64&&_0x50f1c8['enableCommand']('todoList',_0x35ddb2('todoList')),_0x50f1c8['enableCommand']('indentList',_0x4c1e32('indentList')),_0x50f1c8['enableCommand']('outdentList',_0x4c1e32('outdentList')),_0x2bfb64&&_0x50f1c8['enableCommand']('checkTodoList',()=>{const _0x597f7f=_0xf75163['commands']['get']('checkTodoList'),_0x2249da=Array['from'](_0x597f7f['_selectedElements']);_0x2249da['filter'](_0x4fbd24=>_0x4fbd24['getAttribute']('todoListChecked')!=_0x597f7f['value']),_0xf75163['model']['change'](()=>{for(const _0x4365c8 of _0x2249da)_0x50f1c8['markBlockFormat'](_0x4365c8,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x597f7f['value']}]});});}),_0x50f1c8['descriptionFactory']['registerElementLabel']('listItem',_0x1170e3=>o(_0x477db5,'ELEMENT_LIST_ITEM',_0x1170e3)),_0x50f1c8['descriptionFactory']['registerDescriptionCallback'](_0x36863f=>{if('formatBlock'!=_0x36863f['type']&&'formatInline'!=_0x36863f['type'])return;const {data:_0x34c2b2}=_0x36863f;if(_0x34c2b2){if('numberedList'==_0x34c2b2['commandName']||'bulletedList'==_0x34c2b2['commandName']||'todoList'==_0x34c2b2['commandName'])switch(_0x34c2b2['commandName']['replace']('List','')){case'bulleted':return _0x820fd(o(_0x477db5,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x820fd(o(_0x477db5,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x820fd(o(_0x477db5,'ELEMENT_TODO_LIST'));}if('indentList'==_0x34c2b2['commandName'])return{'type':'format','content':o(_0x477db5,'*Indent:*\x20%0',o(_0x477db5,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x34c2b2['commandName'])return{'type':'format','content':o(_0x477db5,'*Outdent:*\x20%0',o(_0x477db5,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x34c2b2['commandName'])return _0x34c2b2['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x477db5,'*Check\x20item*')}:{'type':'format','content':o(_0x477db5,'*Uncheck\x20item*')};}function _0x820fd(_0x2a8acb){return{'type':'format','content':o(_0x477db5,'*Change\x20to:*\x20%0',_0x2a8acb)};}});}}function Le(_0x1601e9){const _0x5e10fa=_0x1601e9['getAttribute']('listIndent');if(0x0==_0x5e10fa)return _0x1601e9;let _0x10eac6=_0x1601e9;for(;_0x1601e9['previousSibling']&&_0x1601e9['previousSibling']['is']('element','listItem');){const _0x13245f=_0x1601e9['previousSibling']['getAttribute']('listIndent');if(_0x13245f==_0x5e10fa)_0x10eac6=_0x1601e9['previousSibling'];else{if(_0x13245f<_0x5e10fa)break;}_0x1601e9=_0x1601e9['previousSibling'];}return _0x10eac6;}function Ee(_0x3c303d){const _0x1eecfd=[];if(_0x3c303d['is']('element','listItem')&&_0x3c303d['getAttribute']('listIndent')>0x0){let _0x2fa097=_0x3c303d['nextSibling'];for(;_0x2fa097&&'listItem'==_0x2fa097['name']&&_0x2fa097['getAttribute']('listIndent')==_0x3c303d['getAttribute']('listIndent');)_0x1eecfd['push'](_0x2fa097),_0x2fa097=_0x2fa097['nextSibling'];}return _0x1eecfd;}class ht extends _0xe680e7{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0xa192c3=this['editor']['config']['get']('list.properties'),_0xaccae3=this['editor']['plugins']['get']('TrackChangesEditing');_0xa192c3['styles']&&_0xaccae3['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0xa192c3['reversed']&&_0xaccae3['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0xa192c3['startIndex']&&_0xaccae3['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0xaccae3['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x4e68ce,_0x5bf925={}){const _0x284586=this['editor']['plugins']['get']('TrackChangesEditing'),_0x122a89=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x284586['markMultiRangeBlockFormat'](_0x122a89,{'commandName':'listStyle','commandParams':[{'type':_0x5bf925['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x2f3b1e,_0x4f6397={}){const _0x5c228a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x16d76e=this['_getSuggestionBlocks'](_0xbffa0=>_0xbffa0['is']('element','listItem')&&'numbered'===_0xbffa0['getAttribute']('listType'));if(_0x16d76e['length']<0x1)return;const _0x4129ad=_0x16d76e['map'](_0x54ff9d=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x54ff9d,'before'),this['editor']['model']['createPositionAt'](_0x54ff9d,0x0)));this['editor']['model']['change'](()=>{_0x5c228a['markMultiRangeBlockFormat'](_0x4129ad,{'commandName':'listReversed','commandParams':[{'reversed':_0x4f6397['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x353e1c,_0x3fcfb7={}){const _0x15532=this['editor']['plugins']['get']('TrackChangesEditing'),_0x244d0b=this['_getSuggestionBlocks'](_0x584b1c=>_0x584b1c['is']('element','listItem')&&'numbered'===_0x584b1c['getAttribute']('listType'));if(_0x244d0b['length']<0x1)return;const _0x2c8aec=_0x244d0b['map'](_0x2436fc=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2436fc,'before'),this['editor']['model']['createPositionAt'](_0x2436fc,0x0)));this['editor']['model']['change'](()=>{_0x15532['markMultiRangeBlockFormat'](_0x2c8aec,{'commandName':'listStart','commandParams':[{'startIndex':_0x3fcfb7['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x288d61){if('formatBlock'!=_0x288d61['type']&&'formatInline'!=_0x288d61['type'])return;const _0x1cb7a9=this['editor']['locale'],{data:_0x385e3d}=_0x288d61;if(!_0x385e3d)return;let _0x4077ec,_0x2817eb;switch(_0x385e3d['commandName']){case'listStyle':_0x4077ec='*Change\x20to:*\x20%0',_0x2817eb={'type':'format','content':o(_0x1cb7a9,_0x4077ec,o(_0x1cb7a9,this['_getTranslationKeyForListStyle'](_0x385e3d['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4077ec=_0x385e3d['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2817eb={'type':'format','content':o(_0x1cb7a9,_0x4077ec)};break;case'listStart':_0x4077ec='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2817eb={'type':'format','content':o(_0x1cb7a9,_0x4077ec,_0x385e3d['commandParams'][0x0]['startIndex'])};}return _0x2817eb;}['_getSuggestionBlocksForListStyle'](){const _0x131932=this['editor']['plugins']['get']('LegacyListUtils');let _0x364c4f=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x364c4f[0x0]?.['is']('element','listItem')&&_0x364c4f['unshift'](..._0x131932['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x364c4f[_0x364c4f['length']-0x1]?.['is']('element','listItem')&&_0x364c4f['push'](..._0x131932['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x364c4f=[...new Set(_0x364c4f)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x364c4f=_0x364c4f['filter'](_0x5b69c0=>_0x5b69c0['is']('element','listItem'))),_0x364c4f;}['_getSuggestionBlocks'](_0x3d5ee2){const _0x5d442e=this['editor']['plugins']['get']('LegacyListUtils');let _0x5c5799=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x3d5ee2)['map'](_0x5534d6=>{const _0x19eca3=this['editor']['model']['createPositionAt'](_0x5534d6,0x0);return[..._0x5d442e['getSiblingNodes'](_0x19eca3,'backward'),..._0x5d442e['getSiblingNodes'](_0x19eca3,'forward')];})['flat']();return _0x5c5799=[...new Set(_0x5c5799)],_0x5c5799;}['_getTranslationKeyForListStyle'](_0x506312){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x506312)||'default')['toUpperCase']()+'_LIST_'+_0x506312['toUpperCase']()['replace'](/-/g,'_');}}class gt extends _0xe680e7{['afterInit'](){const _0x216d27=this['editor'];if(!_0x216d27['plugins']['has']('MediaEmbedEditing'))return;const _0x36de41=_0x216d27['plugins']['get']('TrackChangesEditing'),_0x58d52b=_0x216d27['locale'];_0x36de41['enableCommand']('mediaEmbed'),_0x36de41['descriptionFactory']['registerElementLabel']('media',_0x19f8ac=>o(_0x58d52b,'ELEMENT_MEDIA',_0x19f8ac)),_0x216d27['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x48cc7b,{writer:_0x29d8b1,options:_0x133062})=>{if(_0x133062['showSuggestionHighlights'])return _0x29d8b1['createEmptyElement']('div');},'converterPriority':'high'}),_0x216d27['data']['downcastDispatcher']['on']('attribute:url:media',(_0x9f968d,_0x36f174,_0x4c7914)=>{_0x4c7914['options']['showSuggestionHighlights']&&_0x9f968d['stop']();},{'priority':'high'});}}class lt extends _0xe680e7{['afterInit'](){const _0x111eb5=this['editor'];_0x111eb5['plugins']['has']('MentionEditing')&&_0x111eb5['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0xe680e7{['afterInit'](){const _0xe5946d=this['editor'];if(!_0xe5946d['plugins']['has']('MergeFieldsEditing'))return;const _0x2c0d04=_0xe5946d['plugins']['get']('TrackChangesEditing'),_0x17935e=_0xe5946d['locale'];_0x2c0d04['enableCommand']('insertMergeField'),_0x2c0d04['enableCommand']('insertMergeFieldBlock'),_0x2c0d04['enableCommand']('insertMergeFieldImage'),_0x2c0d04['descriptionFactory']['registerElementLabel']('mergeField',_0x12fafc=>o(_0x17935e,'ELEMENT_MERGE_FIELD',_0x12fafc)),_0x2c0d04['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x3050b3=>o(_0x17935e,'ELEMENT_MERGE_FIELD',_0x3050b3)),_0x2c0d04['descriptionFactory']['registerDescriptionCallback'](_0x281af2=>{if('insertion'!=_0x281af2['type']&&'deletion'!=_0x281af2['type'])return;const _0x26eb71=_0x281af2['getContainedElement']();if(null==_0x26eb71)return;const _0x2d529c=_0xe5946d['plugins']['get']('MergeFieldsEditing');let _0x473019;switch(_0x2d529c['getMergeFieldType'](_0x26eb71)){case null:return;case'image':{const _0x651c0a=_0x2d529c['unwrapAffixes'](_0x26eb71['getAttribute']('src'));_0x473019=_0x2d529c['getLabel'](_0x651c0a)||_0x651c0a;break;}default:{const _0x4eda8b=_0x26eb71['getAttribute']('id');_0x473019=_0x2d529c['getLabel'](_0x4eda8b)||_0x4eda8b;break;}}return'insertion'==_0x281af2['type']?{'type':'insertion','content':o(_0x17935e,'*Insert:*\x20%0','\x22'+_0x473019+'\x22\x20'+o(_0x17935e,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x17935e,'*Remove:*\x20%0','\x22'+_0x473019+'\x22\x20'+o(_0x17935e,'ELEMENT_MERGE_FIELD'))};});}}class mt extends _0xe680e7{['afterInit'](){const _0x2d2453=this['editor'],_0x391d8a=_0x2d2453['plugins']['get']('TrackChangesEditing');_0x2d2453['plugins']['has']('MultiLevelList')&&(_0x391d8a['enableDefaultAttributesIntegration']('multiLevelList'),_0x391d8a['registerBlockAttribute']('listMarkerStyle'),_0x391d8a['descriptionFactory']['registerDescriptionCallback'](_0x1999ee=>this['handleDescriptions'](_0x1999ee)));}['handleDescriptions'](_0x5d54dd){const _0x27baae=this['editor']['locale'],{data:_0x53c384}=_0x5d54dd,_0x2a415f={'type':'format','content':''};if(_0x53c384&&'listMarkerStyle'==_0x53c384['key']){if(!_0x53c384['oldValue'])return{'type':'format','content':o(_0x27baae,'*Set\x20format:*\x20%0',o(_0x27baae,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x53c384['newValue']+')'};if(!_0x53c384['newValue']){let _0x469406=_0x5d54dd['head'];for(;_0x469406;){if(_0x469406['data']&&'listType'==_0x469406['data']['key']&&_0x469406['data']['newValue'])return _0x2a415f;_0x469406=_0x469406['next'];}return{'type':'format','content':o(_0x27baae,'*Remove\x20format:*\x20%0',o(_0x27baae,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x53c384['oldValue']+')'};}}}}class pt extends _0xe680e7{['afterInit'](){const _0xaabd31=this['editor'];if(!_0xaabd31['plugins']['has']('PageBreakEditing'))return;_0xaabd31['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x2da6c5=_0xaabd31['plugins']['get']('TrackChangesEditing'),_0x349554=_0xaabd31['locale'];_0x2da6c5['descriptionFactory']['registerElementLabel']('pageBreak',_0x1e9b45=>o(_0x349554,'ELEMENT_PAGE_BREAK',_0x1e9b45));}}class kt extends _0xe680e7{['afterInit'](){const _0x3f6b54=this['editor'];if(!_0x3f6b54['plugins']['has']('Paragraph'))return;const _0x522f37=_0x3f6b54['locale'],_0xcc8c8f=_0x3f6b54['plugins']['get']('TrackChangesEditing');_0xcc8c8f['descriptionFactory']['registerElementLabel']('paragraph',_0x4b0914=>o(_0x522f37,'ELEMENT_PARAGRAPH',_0x4b0914)),_0xcc8c8f['enableDefaultAttributesIntegration']('paragraph'),_0xcc8c8f['enableCommand']('insertParagraph'),_0x3f6b54['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x3f6b54),{'priority':'highest'}),_0x3f6b54['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3ba54f,_0x322ad2,_0x1639f1)=>{_0x1639f1['options']['showSuggestionHighlights']&&nr(_0x3f6b54,{'showActiveMarker':!0x1})(_0x3ba54f,_0x322ad2,_0x1639f1);},{'priority':'highest'});const _0x2a397c=_0xcc8c8f['descriptionFactory'];_0x2a397c['registerDescriptionCallback'](_0x2e392b=>{if('insertion'!==_0x2e392b['type'])return;const {start:_0x54749d,end:_0x58dc12}=_0x2e392b['getFirstRange']();if(!_0x54749d['isTouching'](_0x58dc12)||!_0x54749d['nodeAfter'])return;const _0x868ad4=_0x3f6b54['model']['schema'],_0x3704d6=_0x54749d['nodeAfter'];return _0x868ad4['isBlock'](_0x3704d6)&&!_0x868ad4['isLimit'](_0x3704d6)&&_0x868ad4['checkChild'](_0x3704d6,'$text')?{'type':'insertion','content':o(_0x522f37,'*Insert:*\x20%0',_0x2a397c['getItemLabel'](_0x3704d6,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2bbe8f=this['editor'],_0x6e9906=_0x2bbe8f['locale'];_0x2bbe8f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1afc5d=>{if('formatBlock'!=_0x1afc5d['type'])return;const {data:_0x131c99}=_0x1afc5d;return _0x131c99&&'paragraph'==_0x131c99['commandName']?{'type':'format','content':o(_0x6e9906,'*Change\x20to:*\x20%0',o(_0x6e9906,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x1b9927,{showActiveMarker:_0x10ed9b=!0x0}={}){return(_0x29ff3d,_0x472091,_0x4533cc)=>{const _0x23d23e=_0x1b9927['plugins']['get']('TrackChangesEditing'),_0x57d0ca=_0x472091['markerRange']['start'],_0x5f196d=_0x472091['markerRange']['end'],_0x55abfd=_0x1b9927['model']['schema'];if(!_0x57d0ca['isTouching'](_0x5f196d)||!_0x57d0ca['nodeAfter'])return;const _0x4d6892=_0x57d0ca['nodeAfter'];if(_0x55abfd['isBlock'](_0x4d6892)&&!_0x55abfd['isLimit'](_0x4d6892)&&_0x55abfd['checkChild'](_0x4d6892,'$text')){if(!_0x4533cc['consumable']['consume'](_0x472091['markerRange'],_0x29ff3d['name']))return;const {id:_0xd6bf0b,authorId:_0x5601f0}=_0x23d23e['_splitMarkerName'](_0x472091['markerName']),_0xddffd7=_0x4533cc['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0xd6bf0b,'data-author-id':_0x5601f0}),_0x163c58=_0x4533cc['mapper']['toViewPosition'](_0x5f196d);_0x10ed9b&&_0x23d23e['activeMarkers']['includes'](_0x472091['markerName'])&&_0x4533cc['writer']['addClass']('ck-suggestion-marker--active',_0xddffd7),_0x4533cc['writer']['insert'](_0x163c58,_0xddffd7),_0x4533cc['mapper']['bindElementToMarker'](_0xddffd7,_0x472091['markerName']);}};}class wt extends _0xe680e7{['afterInit'](){const _0x25e78e=this['editor'];_0x25e78e['commands']['get']('replaceSource')&&_0x25e78e['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class bt extends _0xe680e7{['afterInit'](){const _0x381564=this['editor'];if(!_0x381564['plugins']['has']('RemoveFormatEditing'))return;_0x381564['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x116067=this['editor'];_0x116067['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1f42de=>{if('formatBlock'!=_0x1f42de['type']&&'formatInline'!=_0x1f42de['type'])return;const {data:_0x29eb88}=_0x1f42de;return _0x29eb88&&'removeFormat'==_0x29eb88['commandName']?{'type':'format','content':o(_0x116067['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0xe680e7{['afterInit'](){const _0x7009db=this['editor'];if(!_0x7009db['plugins']['has']('RestrictedEditingModeEditing'))return;const _0xffec8f=_0x7009db['plugins']['get']('TrackChangesEditing');_0xffec8f['enableCommand']('goToPreviousRestrictedEditingException'),_0xffec8f['enableCommand']('goToNextRestrictedEditingException');const _0x117245=_0x7009db['plugins']['get']('RestrictedEditingModeEditing');_0x117245['enableCommand']('trackChanges'),_0x117245['enableCommand']('acceptSuggestion'),_0x117245['enableCommand']('discardSuggestion'),_0x117245['enableCommand']('acceptAllSuggestions'),_0x117245['enableCommand']('discardAllSuggestions'),_0x117245['enableCommand']('acceptSelectedSuggestions'),_0x117245['enableCommand']('discardSelectedSuggestions');}}class jt extends _0xe680e7{['afterInit'](){const _0x1ce53a=this['editor'];if(!_0x1ce53a['plugins']['has']('ShiftEnter'))return;const _0x3ab11d=_0x1ce53a['plugins']['get']('TrackChangesEditing');_0x3ab11d['enableCommand']('shiftEnter'),_0x1ce53a['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x1ce53a),{'priority':'high'}),_0x1ce53a['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x1ce53a),{'priority':'high'}),_0x1ce53a['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x20e386,_0x494de9,_0x3a4cd4)=>{_0x3a4cd4['options']['showSuggestionHighlights']&&je(_0x1ce53a,{'showActiveMarker':!0x1})(_0x20e386,_0x494de9,_0x3a4cd4);}),_0x3ab11d['descriptionFactory']['registerElementLabel']('softBreak',_0x3c0a6f=>o(_0x1ce53a['locale'],'ELEMENT_LINE_BREAK',_0x3c0a6f));}}function je(_0xfcfa71,{showActiveMarker:_0x5e3171=!0x0}={}){return(_0x59e537,_0x7a601e,_0x28cb1a)=>{const _0x182313=_0xfcfa71['plugins']['get']('TrackChangesEditing');if(!_0x28cb1a['consumable']['test'](_0x7a601e['markerRange'],_0x59e537['name']))return;const _0x3c1dc4=_0xfcfa71['model'];for(const _0x30861b of _0x7a601e['markerRange']['getItems']()){if(!_0x30861b['is']('element','softBreak'))continue;const _0x26a16b='deletion'==_0x7a601e['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x55ef04,authorId:_0x186c2d}=_0x182313['_splitMarkerName'](_0x7a601e['markerName']),_0x422394=_0x28cb1a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x26a16b,'data-suggestion':_0x55ef04,'data-author-id':_0x186c2d}),_0x530a0b=_0x28cb1a['mapper']['toViewPosition'](_0x3c1dc4['createPositionBefore'](_0x30861b));_0x5e3171&&_0x182313['activeMarkers']['includes'](_0x7a601e['markerName'])&&_0x28cb1a['writer']['addClass']('ck-suggestion-marker--active',_0x422394),_0x28cb1a['writer']['insert'](_0x530a0b,_0x422394),_0x28cb1a['mapper']['bindElementToMarker'](_0x422394,_0x7a601e['markerName']);}};}class St extends _0xe680e7{['afterInit'](){const _0x553c42=this['editor'],_0x4e41c9=_0x553c42['model'],_0x546ad5=_0x553c42['locale'];if(!_0x553c42['plugins']['has']('StandardEditingModeEditing'))return;const _0x336b35=_0x553c42['plugins']['get']('TrackChangesEditing'),_0x44fc81='restrictedEditingException',_0x437658=_0x553c42['commands']['get'](_0x44fc81);_0x336b35['enableCommand'](_0x44fc81,(_0x49a1f6,_0x26ec3d={})=>{const _0x55e844=_0x4e41c9['document']['selection'];if(_0x55e844['isCollapsed'])return void _0x49a1f6(_0x26ec3d);const _0x1047fc=void 0x0!==_0x26ec3d['forceValue']?_0x26ec3d['forceValue']:!_0x437658['value'];_0x4e41c9['change'](()=>{const _0x15df2d=Array['from'](_0x55e844['getRanges']());for(const _0x5246c2 of _0x15df2d){const _0x230105=_0x1047fc?[_0x5246c2]:io(_0x44fc81,_0x5246c2,_0x4e41c9);for(const _0x311c64 of _0x230105)_0x336b35['markInlineFormat'](_0x311c64,{'commandName':_0x44fc81,'commandParams':[{'forceValue':_0x1047fc}]});}});}),_0x336b35['descriptionFactory']['registerDescriptionCallback'](_0x4c3926=>{if('formatBlock'!=_0x4c3926['type']&&'formatInline'!=_0x4c3926['type'])return;const {data:_0x5b65fa}=_0x4c3926;return _0x5b65fa&&_0x5b65fa['commandName']==_0x44fc81?_0x5b65fa['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x546ad5,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x546ad5,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0xe680e7{['afterInit'](){const _0x230d8c=this['editor'];if(!_0x230d8c['plugins']['has']('Style')||!_0x230d8c['plugins']['has']('DataSchema'))return;const _0x5ba07f=_0x230d8c['plugins']['get']('TrackChangesEditing'),_0x11de4b=_0x230d8c['locale'],_0x960a1b=_0x230d8c['config']['get']('style')||{},_0x2d3725=_0x230d8c['plugins']['get']('GeneralHtmlSupport'),_0x1fc214=_0x230d8c['plugins']['get']('StyleUtils')['normalizeConfig'](_0x230d8c['plugins']['get']('DataSchema'),_0x960a1b['definitions']);_0x5ba07f['enableDefaultAttributesIntegration']('style');const _0x4bfef1=new Set();for(const _0x3c6291 of _0x1fc214['block']){const _0x263795=_0x2d3725['getGhsAttributeNameForElement'](_0x3c6291['element']);_0x4bfef1['add'](_0x263795);}const _0x3fd45b=new Set();for(const _0x38be1a of _0x1fc214['inline']){const _0x28d301=_0x2d3725['getGhsAttributeNameForElement'](_0x38be1a['element']);_0x3fd45b['add'](_0x28d301);for(const _0x117c85 of _0x38be1a['ghsAttributes'])_0x3fd45b['add'](_0x117c85);}for(const _0x2e34ab of _0x4bfef1)_0x5ba07f['registerBlockAttribute'](_0x2e34ab),_0x5ba07f['descriptionFactory']['registerAttributeLabel'](_0x2e34ab,o(_0x11de4b,'FORMAT_STYLE'));for(const _0x1da6a5 of _0x3fd45b)_0x5ba07f['registerInlineAttribute'](_0x1da6a5),_0x5ba07f['descriptionFactory']['registerAttributeLabel'](_0x1da6a5,o(_0x11de4b,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x398c77=this['editor'],_0x22d220=_0x398c77['locale'];_0x398c77['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5550a1=>{if('formatBlock'!=_0x5550a1['type']&&'formatInline'!=_0x5550a1['type'])return;const {data:_0x5a208d}=_0x5550a1;return _0x5a208d&&'style'===_0x5a208d['commandName']?_0x5a208d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x22d220,'*Set\x20format:*\x20%0',_0x5a208d['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x22d220,'*Remove\x20format:*\x20%0',_0x5a208d['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class At extends _0xe680e7{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x4a8c40){super(_0x4a8c40),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x39847f=this['editor'],_0x22740a=_0x39847f['model']['document']['selection'];if(!_0x39847f['plugins']['has']('TableEditing'))return;const _0xc68a2f=_0x39847f['locale'],_0x4ef008=_0x39847f['plugins']['get']('TrackChangesEditing'),_0x4a99e5=_0x39847f['plugins']['get']('TableUtils');_0x4ef008['descriptionFactory']['registerElementLabel']('table',_0x49bc03=>o(_0xc68a2f,'ELEMENT_TABLE',_0x49bc03)),this['_setupColumnsRowsFixing'](),_0x4ef008['enableCommand']('insertTable'),_0x4ef008['enableCommand']('selectTableRow'),_0x4ef008['enableCommand']('selectTableColumn');for(const _0xc70671 of['insertTableRowAbove','insertTableRowBelow']){const _0x3cde53=_0x39847f['commands']['get'](_0xc70671);_0x4ef008['enableCommand'](_0xc70671,_0x12b569=>{_0x39847f['model']['change'](_0x33ea77=>{_0x12b569();const _0x45623b='above'===_0x3cde53['order'],_0x13b079=_0x4a99e5['getSelectionAffectedTableCells'](_0x22740a),_0x5a5d9b=_0x4a99e5['getRowIndexes'](_0x13b079),_0x439c44=_0x45623b?_0x5a5d9b['first']-0x1:_0x5a5d9b['last']+0x1,_0x642feb=_0x13b079[0x0]['findAncestor']('table'),_0x34b0e0=_0x4a99e5['createTableWalker'](_0x642feb,{'startRow':_0x439c44,'endRow':_0x439c44}),_0x135cc6=Array['from'](_0x34b0e0)['map'](_0x3c8065=>_0x33ea77['createRangeOn'](_0x3c8065['cell']));_0x4ef008['markMultiRangeInsertion'](_0x135cc6,'tableRow');});});}for(const _0x2a9166 of['insertTableColumnLeft','insertTableColumnRight']){const _0x569b1d=_0x39847f['commands']['get'](_0x2a9166);_0x4ef008['enableCommand'](_0x2a9166,_0x1b4251=>{_0x39847f['model']['change'](_0x49eaa8=>{_0x1b4251();const _0x58051c='left'===_0x569b1d['order'],_0x5314a8=_0x4a99e5['getSelectionAffectedTableCells'](_0x22740a),_0x10acda=_0x4a99e5['getColumnIndexes'](_0x5314a8),_0x405441=_0x58051c?_0x10acda['first']-0x1:_0x10acda['last']+0x1,_0x4b1295=_0x5314a8[0x0]['findAncestor']('table'),_0x2e542a=_0x4a99e5['createTableWalker'](_0x4b1295,{'startRow':0x0,'column':_0x405441,'includeAllSlots':!0x1}),_0x375da3=Array['from'](_0x2e542a)['map'](_0x2822df=>_0x49eaa8['createRangeOn'](_0x2822df['cell']));_0x4ef008['markMultiRangeInsertion'](_0x375da3,'tableColumn');});});}for(const _0x4cfa69 of['removeTableRow','removeTableColumn']){const _0x2021fb=_0x4cfa69['substr'](0xb),_0x1771b2=_0x2021fb['toLowerCase'](),_0x4edc17=_0x1771b2['substr'](0x0,0x3)+'span',_0x3fc5b1='table'+_0x2021fb,_0x160700='min'+_0x2021fb,_0x22a2a1='max'+_0x2021fb;_0x4ef008['enableCommand'](_0x4cfa69,()=>{_0x39847f['model']['change'](_0xc3f91c=>{const _0x51913b=_0x4a99e5['getSelectionAffectedTableCells'](_0x22740a),_0x46e07c=_0x51913b[0x0]['findAncestor']('table');let _0x2cd3dc;if('removeTableRow'==_0x4cfa69){const _0x3acad2=_0x4a99e5['getRowIndexes'](_0x51913b);_0x2cd3dc={'startRow':_0x3acad2['first'],'endRow':_0x3acad2['last'],'includeAllSlots':!0x0};}else{const _0x3a2f19=_0x4a99e5['getColumnIndexes'](_0x51913b);_0x2cd3dc={'startColumn':_0x3a2f19['first'],'endColumn':_0x3a2f19['last'],'includeAllSlots':!0x0};}const _0x1ec090=_0x4a99e5['createTableWalker'](_0x46e07c,_0x2cd3dc),_0x18bf5e=Array['from'](_0x1ec090)['map'](({cell:_0x21f61f})=>_0x21f61f),_0x1c3a9b=Ne(_0x18bf5e['filter'](_0x333732=>_0x333732['hasAttribute'](_0x4edc17))),_0x51f2b4=Ne(_0x18bf5e['filter'](_0x2ad1e9=>!_0x2ad1e9['hasAttribute'](_0x4edc17)))['map'](_0x29e2d3=>_0xc3f91c['createRangeOn'](_0x29e2d3)),_0x39a509=_0x4ef008['markMultiRangeDeletion'](_0x51f2b4,_0x3fc5b1);if(_0x39a509&&('tableRow'==_0x39a509['subType']||'tableColumn'==_0x39a509['subType'])){const _0x3d72e3=this['_getSuggestionCoords'](_0x39a509);for(const _0x3cbebf of _0x1c3a9b){const _0x153b14=_0xc3f91c['createRangeOn'](_0x3cbebf),_0x588f0a=_0x4a99e5['getCellLocation'](_0x3cbebf),_0x4c17c2=_0x3cbebf['getAttribute'](_0x4edc17)-0x1,_0xd50eed=_0x3d72e3[_0x160700],_0x37f9e5=_0x3d72e3[_0x22a2a1];_0xd50eed<=_0x588f0a[_0x1771b2]&&_0x588f0a[_0x1771b2]+_0x4c17c2<=_0x37f9e5&&_0x39a509['addRange'](_0x153b14);}}});});}function _0x2be704(_0x56c4be){const _0x52f1fc=Array['from'](_0x22740a['getRanges']())['map'](_0x58fa39=>_0x50a820['fromRange'](_0x58fa39));_0x39847f['model']['change'](_0x348919=>{const _0x5889eb=_0x348919['batch'];_0x56c4be=_0x56c4be['filter'](_0x1dd072=>'$graveyard'!=_0x1dd072['root']['rootName']),_0x348919['setSelection'](_0x56c4be),_0x39847f['commands']['get']('removeTableRow')['refresh'](),_0x39847f['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x39847f['model']['enqueueChange'](()=>{_0x39847f['model']['enqueueChange'](_0x5889eb,_0x21c146=>{const _0x11865c=_0x52f1fc['filter'](_0x302d4f=>'$graveyard'!=_0x302d4f['root']['rootName']);_0x11865c['length']>0x0&&_0x21c146['setSelection'](_0x11865c);for(const _0x26d658 of _0x52f1fc)_0x26d658['detach']();});});});}function _0xd5e549(_0x11e030){_0x39847f['model']['change'](_0x24604e=>{const _0x536f11=Array['from'](_0x22740a['getRanges']())['map'](_0x53ebc8=>_0x50a820['fromRange'](_0x53ebc8)),_0x27d021=[];for(const _0x1ad346 of _0x11e030)for(const _0xfa9b61 of _0x1ad346['getItems']({'shallow':!0x0}))_0x27d021['push'](_0xfa9b61);for(const _0x3fd2e2 of _0x27d021)'$graveyard'!=_0x3fd2e2['root']['rootName']&&(_0x24604e['setSelection'](_0x24604e['createPositionAt'](_0x3fd2e2,0x0)),_0x39847f['commands']['get']('removeTableColumn')['refresh'](),_0x39847f['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x552081=_0x536f11['filter'](_0x1adea0=>'$graveyard'!=_0x1adea0['root']['rootName']);_0x552081['length']>0x0&&_0x24604e['setSelection'](_0x552081);for(const _0x545550 of _0x536f11)_0x545550['detach']();});}function _0x4f1f0b(_0xa456d9,_0x334104){return _0x334104['every'](_0x1edce6=>_0xa456d9['some'](_0x136d72=>_0x136d72['end']['isEqual'](_0x1edce6['start'])||_0x1edce6['end']['isEqual'](_0x136d72['start'])));}function _0xb64456(_0x157e4e,_0x4b4251){return!_0x157e4e['some'](_0x563d78=>_0x4b4251['some'](_0x2030fd=>_0x563d78['isIntersecting'](_0x2030fd)))&&_0x157e4e['some'](_0x32f4d8=>_0x4b4251['some'](_0x357728=>_0x32f4d8['end']['isTouching'](_0x357728['start'])));}_0x39847f['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xc40828,_0x2471bc,_0xffc236)=>{if(!_0xffc236['options']['showSuggestionHighlights'])return;const _0x2e6c50=_0x2471bc['item'];if(!_0x2e6c50||!_0x2e6c50['is']('element','tableCell'))return;const _0x857239=_0xffc236['mapper']['toViewElement'](_0x2e6c50);if(_0x857239){const {id:_0x3ca090,authorId:_0x252ccf}=_0x4ef008['_splitMarkerName'](_0x2471bc['markerName']);_0x19f8a1(_0x857239,_0xffc236['writer'],(_0x3ac66d,_0x147499,_0x587904)=>{_0x587904['addClass'](_0x56ffe6(_0x147499['classes']),_0x3ac66d),_0x587904['setAttribute']('data-suggestion-id',_0x3ca090,_0x3ac66d),_0x587904['setAttribute']('data-author-id',_0x252ccf,_0x3ac66d);},(_0x119ded,_0x53b8ea,_0x4967d8)=>{_0x4967d8['removeClass'](_0x56ffe6(_0x53b8ea['classes']),_0x119ded),_0x4967d8['removeAttribute']('data-suggestion-id',_0x119ded),_0x4967d8['removeAttribute']('data-author-id',_0x119ded);});}},{'priority':'highest'}),_0x4ef008['descriptionFactory']['registerDescriptionCallback'](_0x241057=>{if('insertion'!=_0x241057['type']&&'deletion'!=_0x241057['type'])return;const _0x38155d=_0x241057['getContainedElement']();if(null!=_0x38155d&&_0x38155d['is']('element','table')){if('insertion'==_0x241057['type']){const _0x371924=_0x241057['getItems']()['filter'](_0xfb16aa=>_0xfb16aa['is']('$textProxy'))['map'](_0x2ee5de=>_0x2ee5de['data']);if(_0x371924['length'])return{'type':'insertion','content':o(_0xc68a2f,'*Insert:*\x20%0',o(_0xc68a2f,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x371924['join']('\x20')+'\x22'))};}if('deletion'==_0x241057['type']){const _0x1cce2d=_0x241057['getItems']()['filter'](_0x2ad953=>_0x2ad953['is']('$textProxy'))['map'](_0x3a6152=>_0x3a6152['data']);if(_0x1cce2d['length'])return{'type':'deletion','content':o(_0xc68a2f,'*Remove:*\x20%0',o(_0xc68a2f,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1cce2d['join']('\x20')+'\x22'))};}}}),_0x4ef008['descriptionFactory']['registerDescriptionCallback'](_0x9ea50f=>{if('tableRow'==_0x9ea50f['subType']){const _0x3494e9=_0x9ea50f['getItems']()['filter'](_0x39be80=>_0x39be80['is']('$textProxy'))['map'](_0x43505f=>_0x43505f['data']),_0x548efa=this['_getSuggestionCoords'](_0x9ea50f),_0x2f9fa6=_0x548efa['maxRow']-_0x548efa['minRow']+0x1;if('insertion'==_0x9ea50f['type'])return _0x3494e9['length']?{'type':'insertion','content':o(_0xc68a2f,'*Insert:*\x20%0',o(_0xc68a2f,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2f9fa6,'\x22'+_0x3494e9['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0xc68a2f,'*Insert:*\x20%0',o(_0xc68a2f,'ELEMENT_TABLE_ROW',_0x2f9fa6))};if('deletion'==_0x9ea50f['type'])return _0x3494e9['length']?{'type':'deletion','content':o(_0xc68a2f,'*Remove:*\x20%0',o(_0xc68a2f,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2f9fa6,'\x22'+_0x3494e9['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0xc68a2f,'*Remove:*\x20%0',o(_0xc68a2f,'ELEMENT_TABLE_ROW',_0x2f9fa6))};}if('tableColumn'==_0x9ea50f['subType']){const _0x25ff96=_0x9ea50f['getItems']()['filter'](_0x2b759c=>_0x2b759c['is']('$textProxy'))['map'](_0x4e8ec8=>_0x4e8ec8['data']),_0x2d2dd8=this['_getSuggestionCoords'](_0x9ea50f),_0x15f4c0=_0x2d2dd8['maxColumn']-_0x2d2dd8['minColumn']+0x1;if('insertion'==_0x9ea50f['type'])return _0x25ff96['length']?{'type':'insertion','content':o(_0xc68a2f,'*Insert:*\x20%0',o(_0xc68a2f,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x15f4c0,'\x22'+_0x25ff96['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0xc68a2f,'*Insert:*\x20%0',o(_0xc68a2f,'ELEMENT_TABLE_COLUMN',_0x15f4c0))};if('deletion'==_0x9ea50f['type'])return _0x25ff96['length']?{'type':'deletion','content':o(_0xc68a2f,'*Remove:*\x20%0',o(_0xc68a2f,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x15f4c0,'\x22'+_0x25ff96['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0xc68a2f,'*Remove:*\x20%0',o(_0xc68a2f,'ELEMENT_TABLE_COLUMN',_0x15f4c0))};}}),_0x4ef008['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2be704),_0x4ef008['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2be704),_0x4ef008['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0xd5e549),_0x4ef008['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0xd5e549),_0x4ef008['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x4f1f0b),_0x4ef008['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x4f1f0b),_0x4ef008['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0xb64456),_0x4ef008['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0xb64456);}['_acceptFormatSuggestionCallbackFactory'](){const _0x102469=this['editor'],_0x5ccb38=_0x102469['model']['document']['selection'];return(_0x59d89d,_0x9aacc6)=>{_0x102469['model']['change'](_0x4d9cf2=>{const {commandName:_0x25c449,commandParams:_0x471a5a}=_0x9aacc6;let _0x31f39c=_0x59d89d[0x0]['end']['nodeBefore'];_0x471a5a&&_0x471a5a[0x0]&&!0x1===_0x471a5a[0x0]['forceValue']&&(_0x31f39c=_0x59d89d[0x0]['start']['nodeAfter']);const _0x3b3bd7=_0x4d9cf2['createRangeIn'](_0x31f39c);if('$graveyard'==_0x3b3bd7['root']['rootName'])return;const _0x5ea11b=Array['from'](_0x5ccb38['getRanges']())['map'](_0x546375=>_0x50a820['fromRange'](_0x546375));_0x4d9cf2['setSelection'](_0x3b3bd7),_0x102469['commands']['get'](_0x25c449)['refresh'](),_0x471a5a['push']({'forceDefaultExecution':!0x0}),_0x102469['execute'](_0x25c449,..._0x471a5a);const _0x8e98c1=_0x5ea11b['filter'](_0x9f68af=>'$graveyard'!=_0x9f68af['root']['rootName']);_0x8e98c1['length']>0x0&&_0x4d9cf2['setSelection'](_0x8e98c1);for(const _0x30a23b of _0x5ea11b)_0x30a23b['detach']();});};}['_getCoordsForCells'](_0x3e0972){const _0x451a98=this['editor']['plugins']['get']('TableUtils');let _0x4d0fab=Number['MAX_SAFE_INTEGER'],_0x3c9cdb=Number['MIN_SAFE_INTEGER'],_0x3b4312=Number['MAX_SAFE_INTEGER'],_0x5367bb=Number['MIN_SAFE_INTEGER'];for(const _0x470f9d of _0x3e0972){if('$graveyard'==_0x470f9d['root']['rootName'])continue;const {row:_0x57bc64,column:_0x4df2c4}=_0x451a98['getCellLocation'](_0x470f9d),_0x417340=_0x470f9d['hasAttribute']('rowspan')?_0x470f9d['getAttribute']('rowspan')-0x1:0x0,_0x4a8051=_0x470f9d['hasAttribute']('colspan')?_0x470f9d['getAttribute']('colspan')-0x1:0x0;_0x4d0fab=_0x57bc64<_0x4d0fab?_0x57bc64:_0x4d0fab,_0x3c9cdb=_0x57bc64+_0x417340>_0x3c9cdb?_0x57bc64+_0x417340:_0x3c9cdb,_0x3b4312=_0x4df2c4<_0x3b4312?_0x4df2c4:_0x3b4312,_0x5367bb=_0x4df2c4+_0x4a8051>_0x5367bb?_0x4df2c4+_0x4a8051:_0x5367bb;}return{'minRow':_0x4d0fab,'maxRow':_0x3c9cdb,'minColumn':_0x3b4312,'maxColumn':_0x5367bb};}['_setupColumnsRowsFixing'](){const _0x36a664=this['editor'],_0x1ed90d=_0x36a664['plugins']['get']('TrackChangesEditing'),_0x1b31a3=_0x36a664['plugins']['get']('TableUtils');_0x36a664['model']['document']['on']('change:data',()=>{const _0x459756=Array['from'](_0x36a664['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x24630a,data:_0x24c5a6}of _0x459756){const {group:_0x594303,id:_0x508261,subType:_0x3f1e45}=_0x1ed90d['_splitMarkerName'](_0x24630a);if('suggestion'!=_0x594303)continue;if(null!=_0x24c5a6['oldRange'])continue;const _0x12348d=_0x1ed90d['getSuggestion'](_0x508261);this['_tablePostFixingSubtypes']['includes'](_0x3f1e45)&&this['_tableSuggestions']['add'](_0x12348d);}},{'priority':'low'});const _0x2d92a0=(_0x1aefa3,_0x1f0c6f)=>{let _0x19c4b0=!0x1;const _0x469686=_0x1f0c6f['createRangeOn'](_0x1aefa3),_0x117d8e=_0x1aefa3['findAncestor']('table'),_0x20322f=_0x1b31a3['getCellLocation'](_0x1aefa3);for(const _0x3df7aa of this['_tableSuggestions']){const _0x1ccb6c=_0x3df7aa['subType'],_0x50f73b=_0x1ccb6c['startsWith']('tablePaste'),_0x2ed4c0=_0x1ccb6c['substr'](_0x50f73b?0xa:0x5),_0x1c6e18=_0x2ed4c0['toLowerCase'](),_0x55b381=_0x1c6e18['substr'](0x0,0x3)+'span',_0x752dce='min'+_0x2ed4c0,_0x5a015d='max'+_0x2ed4c0;if(!_0x3df7aa['isInContent'])continue;if(_0x117d8e!=_0x3df7aa['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x3df7aa['isIntersectingWithRange'](_0x469686))continue;const _0x2bf96a=_0x1aefa3['hasAttribute'](_0x55b381)?_0x1aefa3['getAttribute'](_0x55b381)-0x1:0x0,_0x1c78e0=this['_getSuggestionCoords'](_0x3df7aa),_0x2916d4=_0x1c78e0[_0x752dce],_0x3de77d=_0x1c78e0[_0x5a015d];_0x2916d4<=_0x20322f[_0x1c6e18]&&_0x20322f[_0x1c6e18]+_0x2bf96a<=_0x3de77d&&(_0x3df7aa['addRange'](_0x469686),_0x19c4b0=!0x0);}return _0x19c4b0;};_0x36a664['model']['document']['registerPostFixer'](_0x24f96c=>{let _0x315128=!0x1;for(const _0x520990 of _0x36a664['model']['document']['differ']['getChanges']())if('insert'==_0x520990['type']){if('tableRow'==_0x520990['name']){for(const _0x3c6ed9 of _0x520990['position']['nodeAfter']['getChildren']())_0x315128=_0x315128||_0x2d92a0(_0x3c6ed9,_0x24f96c);}else'tableCell'==_0x520990['name']&&(_0x315128=_0x315128||_0x2d92a0(_0x520990['position']['nodeAfter'],_0x24f96c));}return _0x315128;});}['_getSuggestionCoords'](_0x4ac943){return this['_getCoordsForCells'](_0x4ac943['getRanges']()['map'](_0x181f51=>_0x181f51['start']['nodeAfter']));}}function Ne(_0x2935bb){return Array['from'](new Set(_0x2935bb)['values']());}class _t extends _0xe680e7{static get['requires'](){return[At];}['afterInit'](){const _0x4ab222=this['editor'],_0xff6a58=_0x4ab222['model']['document']['selection'],_0x563718=_0x4ab222['locale'];if(!_0x4ab222['plugins']['has']('TableEditing'))return;const _0x3a9ed2=_0x4ab222['plugins']['get']('TrackChangesEditing'),_0x4f8a25=_0x4ab222['plugins']['get']('TableUtils'),_0x12973e=_0x4ab222['plugins']['get'](At);_0x12973e['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x3a9ed2['enableCommand']('mergeTableCells',()=>{const _0x25ad1d=_0x4f8a25['getSelectionAffectedTableCells'](_0x4ab222['model']['document']['selection']);_0x4ab222['model']['change'](()=>{_0x3a9ed2['markMultiRangeBlockFormat'](_0x25ad1d,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x4ab222['commands']['get']('mergeTableCells')['on']('execute',(_0x521ae0,_0x1df27b)=>{_0x4ab222['commands']['get']('trackChanges')['value']&&(_0x1df27b['length']>0x0&&_0x1df27b[_0x1df27b['length']-0x1]&&_0x1df27b[_0x1df27b['length']-0x1]['forceDefaultExecution']||_0x3a9ed2['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x521ae0['stop']());},{'priority':'highest'});for(const _0x1e8d62 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x431d50=_0x4ab222['commands']['get'](_0x1e8d62);_0x3a9ed2['enableCommand'](_0x1e8d62,()=>{const _0x1916e8=_0x4ab222['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x5db6cf=>_0x5db6cf['is']('element','tableCell')),_0x11ed1c=_0x431d50['value'];_0x4ab222['model']['change'](()=>{_0x3a9ed2['markMultiRangeBlockFormat']([_0x1916e8,_0x11ed1c],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x46459a of['splitTableCellVertically','splitTableCellHorizontally']){const _0x9d5b66=_0x4ab222['commands']['get'](_0x46459a);_0x3a9ed2['enableCommand'](_0x46459a,()=>{const _0x5ab25c=_0x4f8a25['getSelectionAffectedTableCells'](_0x4ab222['model']['document']['selection'])[0x0],_0x440894=_0x5ab25c['findAncestor']('table'),{column:_0x4fadb1,row:_0x192248}=_0x4f8a25['getCellLocation'](_0x5ab25c);let _0x5b3d6d=[];if('horizontally'==_0x9d5b66['direction']){const _0x378f33=_0x4f8a25['createTableWalker'](_0x440894,{'startRow':_0x192248,'endRow':_0x192248,'includeAllSlots':!0x0});_0x5b3d6d=Array['from'](_0x378f33)['map'](_0x412045=>_0x412045['cell']);}else{const _0x37b3e0=_0x4f8a25['createTableWalker'](_0x440894,{'column':_0x4fadb1,'includeAllSlots':!0x0});_0x5b3d6d=Array['from'](_0x37b3e0)['map'](_0x19f695=>_0x19f695['cell']);}_0x4ab222['model']['change'](_0x3c7eb0=>{_0x3a9ed2['markBlockFormat'](_0x3c7eb0['createRangeOn'](_0x5ab25c),{'commandName':_0x46459a,'commandParams':[]},_0x5b3d6d,_0x46459a);});});}_0x3a9ed2['descriptionFactory']['registerDescriptionCallback'](_0x434655=>{if('formatBlock'!=_0x434655['type']&&'formatInline'!=_0x434655['type'])return;const {data:_0xde1f15}=_0x434655;return _0xde1f15&&'mergeTableCells'==_0xde1f15['commandName']?{'type':'format','content':o(_0x563718,'*Merge\x20cells*')}:void 0x0;}),_0x3a9ed2['descriptionFactory']['registerDescriptionCallback'](_0x3f35cd=>{if('formatBlock'!=_0x3f35cd['type']&&'formatInline'!=_0x3f35cd['type'])return;const {data:_0x4638be}=_0x3f35cd;return _0x4638be?'splitTableCellVertically'==_0x4638be['commandName']?{'type':'format','content':o(_0x563718,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x4638be['commandName']?{'type':'format','content':o(_0x563718,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x20e259=_0x12973e['_acceptFormatSuggestionCallbackFactory']();for(const _0x3c5fea of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x3a9ed2['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3c5fea,'accept',_0x20e259);for(const _0x4cb095 of['splitTableCellVertically','splitTableCellHorizontally'])_0x3a9ed2['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4cb095,'accept',_0x20e259);_0x3a9ed2['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x33e5c8=>{_0x4ab222['model']['change'](_0x4ecd47=>{const _0x2d12fd=Array['from'](_0xff6a58['getRanges']())['map'](_0x57c21e=>_0x50a820['fromRange'](_0x57c21e));_0x4ecd47['setSelection'](_0x33e5c8),_0x4ab222['commands']['get']('mergeTableCells')['refresh'](),_0x4ab222['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x5814b4=_0x2d12fd['filter'](_0x12df1f=>'$graveyard'!=_0x12df1f['root']['rootName']);_0x5814b4['length']>0x0&&_0x4ecd47['setSelection'](_0x5814b4);for(const _0x41605d of _0x2d12fd)_0x41605d['detach']();});});for(const _0x5ce7e6 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x259df4=_0x4ab222['commands']['get'](_0x5ce7e6);_0x259df4['on']('set:isEnabled',(_0x1a4cbf,_0x26017f,_0x2388b0)=>{if(_0x2388b0){const _0x25b1d7=_0x4ab222['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1f423a=>_0x1f423a['is']('element','tableCell'));this['_areMergableCells'](_0x259df4['value'],_0x25b1d7)||(_0x1a4cbf['return']=!0x1,_0x1a4cbf['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x32cc54=this['editor']['commands']['get']('mergeTableCells'),_0x1c4cd0=this['editor']['plugins']['get']('TableUtils');if(!_0x32cc54['isEnabled'])return!0x1;const _0x37e014=_0x1c4cd0['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x3ce2aa of _0x37e014)for(const _0x47606a of _0x37e014)if(_0x3ce2aa!=_0x47606a&&!this['_areMergableCells'](_0x3ce2aa,_0x47606a))return!0x1;return!0x0;}['_areMergableCells'](_0x15341d,_0xb281dd){const _0x1f8334=this['editor']['plugins']['get']('TrackChangesEditing'),_0x51caf8=this['editor']['model']['createRangeOn'](_0x15341d),_0x1586f9=this['editor']['model']['createRangeOn'](_0xb281dd),_0x2aa8df=new Set(),_0x2b0e1d=new Set();for(const _0x19a0fb of _0x1f8334['getSuggestions']())if(('insertion'==_0x19a0fb['type']||'deletion'==_0x19a0fb['type']||'mergeTableCells'==_0x19a0fb['subType'])&&_0x19a0fb['isInContent']){for(const _0x120e65 of _0x19a0fb['getRanges']())_0x120e65['containsRange'](_0x51caf8,!0x0)&&_0x2aa8df['add'](_0x19a0fb['type']+':'+_0x19a0fb['author']['id']),_0x120e65['containsRange'](_0x1586f9,!0x0)&&_0x2b0e1d['add'](_0x19a0fb['type']+':'+_0x19a0fb['author']['id']);}if(_0x2aa8df['size']!=_0x2b0e1d['size'])return!0x1;for(const _0x177310 of _0x2aa8df)if(!_0x2b0e1d['has'](_0x177310))return!0x1;return!0x0;}}class Ct extends _0xe680e7{static get['requires'](){return[At];}['afterInit'](){const _0x88f19e=this['editor'];if(!_0x88f19e['plugins']['has']('TableEditing'))return;const _0x23350e=_0x88f19e['locale'],_0x488ef3=_0x88f19e['plugins']['get']('TrackChangesEditing');_0x488ef3['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x488ef3['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x488ef3['registerBlockAttribute']('headingRows'),_0x488ef3['registerBlockAttribute']('headingColumns'),_0x488ef3['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x23350e,'FORMAT_HEADER_ROW')),_0x488ef3['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x23350e,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1b832e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3da940=this['editor']['plugins']['get']('TableUtils'),_0x5ec273=this['editor']['plugins']['get'](At)['_acceptFormatSuggestionCallbackFactory']();function _0x187568({showActiveMarker:_0x330f36=!0x0,setDataAttribute:_0x48c3ab=!0x0}={}){return(_0x21d1fc,_0x1e1216,_0x2eace6)=>{const {type:_0x4622f2,id:_0x407563}=_0x1b832e['_splitMarkerName'](_0x1e1216['markerName']),_0xaed262=_0x1b832e['getSuggestion'](_0x407563),_0x4b1f13=_0xaed262['data'];if('formatBlock'!=_0xaed262['type']||!_0x4b1f13||'setTableColumnHeader'!=_0x4b1f13['commandName'])return;if(_0x1e1216['item'])return void _0x21d1fc['stop']();if(!_0x2eace6['consumable']['consume'](_0x1e1216['markerRange'],_0x21d1fc['name']))return;const _0x9aabb7=_0x1e1216['markerRange']['start']['nodeAfter'],_0x5c4b03=_0x1e1216['markerRange']['end']['nodeBefore'],_0xe7847f=_0x9aabb7['parent']['parent'],{column:_0x5aee93}=_0x3da940['getCellLocation'](_0x9aabb7),{column:_0x8d20bc}=_0x3da940['getCellLocation'](_0x5c4b03);for(let _0x2306b3=_0x5aee93;_0x2306b3<=_0x8d20bc;_0x2306b3++){const _0x3db5b7=_0x3da940['createTableWalker'](_0xe7847f,{'column':_0x2306b3,'includeAllSlots':!0x1});for(const _0x159757 of _0x3db5b7){const _0x1d0fe7=_0x159757['cell'],_0x58c3e6=_0x2eace6['mapper']['toViewElement'](_0x1d0fe7);_0x2eace6['writer']['addClass']('ck-suggestion-marker-'+_0x4622f2,_0x58c3e6),_0x48c3ab&&_0x2eace6['writer']['setAttribute']('data-suggestion',_0x407563,_0x58c3e6),_0x2eace6['mapper']['bindElementToMarker'](_0x58c3e6,_0x1e1216['markerName']),_0x330f36&&(_0x1b832e['activeMarkers']['includes'](_0x1e1216['markerName'])?_0x2eace6['writer']['addClass']('ck-suggestion-marker--active',_0x58c3e6):_0x2eace6['writer']['removeClass']('ck-suggestion-marker--active',_0x58c3e6));}}};}_0x1b832e['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x5ec273),_0x1b832e['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x5ec273),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x187568(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1996fe,_0x193d38,_0x5d6a51)=>{_0x5d6a51['options']['showSuggestionHighlights']&&_0x187568({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x1996fe,_0x193d38,_0x5d6a51);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x3932b3,_0x3003ec,_0x24d9df)=>{const {type:_0x399e05,id:_0x1a60fe}=_0x1b832e['_splitMarkerName'](_0x3003ec['markerName']),_0x47240e=_0x1b832e['getSuggestion'](_0x1a60fe),_0x3cc856=_0x47240e['data'];if('formatBlock'!=_0x47240e['type']||!_0x3cc856||'setTableColumnHeader'!=_0x3cc856['commandName'])return;const _0x4132bd=_0x24d9df['mapper']['markerNameToElements'](_0x3003ec['markerName']);if(_0x4132bd){for(const _0x265f73 of _0x4132bd)_0x24d9df['writer']['removeClass']('ck-suggestion-marker-'+_0x399e05,_0x265f73),_0x24d9df['writer']['removeClass']('ck-suggestion-marker--active',_0x265f73),_0x24d9df['writer']['removeAttribute']('data-suggestion',_0x265f73),_0x24d9df['mapper']['unbindElementFromMarkerName'](_0x265f73,_0x3003ec['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x45877d=this['editor'],_0x2e26d9=_0x45877d['locale'];function _0x67d314(_0x5e4450){return{'type':'format','content':o(_0x2e26d9,'*Format:*\x20%0',_0x5e4450)};}_0x45877d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1862a4=>{if('formatBlock'!=_0x1862a4['type'])return;const {data:_0x2fa30d}=_0x1862a4;if(_0x2fa30d){if('setTableRowHeader'==_0x2fa30d['commandName']){const _0xa72275=_0x2fa30d['commandParams'][0x0]['forceValue'];return _0x67d314(o(_0x2e26d9,_0xa72275?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x2fa30d['commandName']){const _0x337de6=_0x2fa30d['commandParams'][0x0]['forceValue'];return _0x67d314(o(_0x2e26d9,_0x337de6?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class vt extends _0xe680e7{['afterInit'](){const _0xaf0e6d=this['editor'],_0x39b58c=_0xaf0e6d['locale'],_0x27dc21=_0xaf0e6d['plugins']['get']('TrackChangesEditing');function _0x3f9b01(_0x7c6c66){return{'type':'format','content':''+o(_0x39b58c,'*Set\x20table\x20type:*\x20%0',_0x7c6c66)};}_0xaf0e6d['plugins']['has']('TableLayout')&&(_0x27dc21['enableCommand']('insertTableLayout'),_0x27dc21['enableDefaultAttributesIntegration']('tableType'),_0x27dc21['registerBlockAttribute']('tableType'),_0x27dc21['descriptionFactory']['registerElementLabel'](_0x20ffd2=>_0x20ffd2['is']('element','table')&&'layout'===_0x20ffd2['getAttribute']('tableType'),_0x29b10c=>o(_0x39b58c,'ELEMENT_LAYOUT_TABLE',_0x29b10c)),_0x27dc21['descriptionFactory']['registerDescriptionCallback'](_0x2fed92=>{const {data:_0x7c91cf}=_0x2fed92;if(_0x7c91cf&&'tableType'==_0x7c91cf['key'])switch(_0x7c91cf['newValue']){case'layout':return _0x3f9b01(o(_0x39b58c,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x3f9b01(o(_0x39b58c,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=/* #__PURE__ -- @preserve */
|
|
25
|
-
Object['fromEntries'](Be['map'](_0x2cb7e4=>[_0x2cb7e4,null]));class Nt extends _0xe680e7{static get['requires'](){return[At];}['afterInit'](){const _0x399fd9=this['editor'];if(!_0x399fd9['plugins']['has']('TableClipboard'))return;const _0x381c65=_0x399fd9['plugins']['get']('TrackChangesEditing'),_0x16ac32=_0x399fd9['plugins']['get']('TableUtils'),_0x4e6ce0=_0x399fd9['plugins']['get'](At),_0x1ab2ca=_0x399fd9['plugins']['get']('TableClipboard'),_0x48d619=_0x399fd9['plugins']['get']('TableSelection'),_0x3a7051=_0x399fd9['plugins']['get'](_0x54ac1d);_0x4e6ce0['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x399fd9['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x399fd9['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0xde992d=null,_0x17e669=!0x1;_0x3a7051['on']('contentInsertion',(_0x17bc2e,_0x172288)=>{_0x17e669='paste'===_0x172288['method'];}),_0x399fd9['model']['on']('insertContent',(_0x140f64,_0x57d01d)=>{if(!_0x17e669&&null===_0x48d619['getSelectedTableCells']())return;const [_0x26ea58,_0x5c7312]=_0x57d01d,_0xd94e82=_0x57d01d[_0x57d01d['length']-0x1];_0xd94e82&&_0xd94e82['forceDefaultExecution']||_0x381c65['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x4efcc7,_0xeea8b5,_0x19ccf9,_0x2ea4fb,_0x275751){if(_0xeea8b5&&!_0xeea8b5['is']('documentSelection'))return!0x1;const _0xd6e1a0=_0x275751['getTableIfOnlyTableInContent'](_0x4efcc7,_0x19ccf9);if(!_0xd6e1a0||!Ue(_0xd6e1a0,void 0x0,_0x2ea4fb))return!0x1;const _0x21d8a5=_0x2ea4fb['getSelectionAffectedTableCells'](_0x19ccf9['document']['selection']);if(!_0x21d8a5['length'])return!0x1;const _0x4f8f4c=_0x21d8a5[0x0]['findAncestor']('table'),_0x13845d=_0x2ea4fb['getRowIndexes'](_0x21d8a5),_0x3f8acc=_0x2ea4fb['getColumnIndexes'](_0x21d8a5),_0x38b7d2={'startRow':_0x13845d['first'],'endRow':_0x13845d['last'],'startColumn':_0x3f8acc['first'],'endColumn':_0x3f8acc['last']};return 0x1==_0x21d8a5['length']&&(_0x38b7d2['endRow']+=_0x2ea4fb['getRows'](_0xd6e1a0)-0x1,_0x38b7d2['endColumn']+=_0x2ea4fb['getColumns'](_0xd6e1a0)-0x1),Ue(_0x4f8f4c,_0x38b7d2,_0x2ea4fb);}(_0x26ea58,_0x5c7312,_0x399fd9['model'],_0x16ac32,_0x1ab2ca)&&(_0x140f64['stop'](),_0xde992d={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x399fd9['model']['change'](()=>{_0x399fd9['model']['insertContent'](_0x57d01d[0x0],_0x57d01d[0x1],_0x57d01d[0x2],{'forceDefaultExecution':!0x0});const _0x369a9b=_0x29bcf7(),{rowInsertionRanges:_0x418380,columnInsertionRanges:_0x2f20c4,insertionRanges:_0x50ac4f,deletionRanges:_0x4e802c,cells:_0x2b2680}=_0xde992d;_0x418380['length']&&_0x381c65['markMultiRangeInsertion'](_0x418380,'tablePasteRow',{'tablePasteChainId':_0x369a9b}),_0x2f20c4['length']&&_0x381c65['markMultiRangeInsertion'](_0x2f20c4,'tablePasteColumn',{'tablePasteChainId':_0x369a9b}),_0x50ac4f['length']&&(_0x381c65['markMultiRangeInsertion'](_0x50ac4f,'tablePaste',{'tablePasteChainId':_0x369a9b,'skipNestingCheck':!0x0}),_0x50ac4f['forEach'](_0x549cdb=>_0x549cdb['detach']?.())),_0x4e802c['length']&&(_0x381c65['markMultiRangeDeletion'](_0x4e802c,'tablePaste',{'tablePasteChainId':_0x369a9b,'skipNestingCheck':!0x0}),_0x4e802c['forEach'](_0x522db6=>_0x522db6['detach']?.()));const _0x1d9ce8=_0x381c65['markMultiRangeBlockFormat'](_0x2b2680['map'](({element:_0x3ed0fa})=>_0x3ed0fa),{'formatGroupId':_0x29bcf7()},[],'tablePasteCell',{'tablePasteChainId':_0x369a9b});if(_0x1d9ce8){const _0xc7e26c=_0x1d9ce8['getMarkers'](),_0x4655f5=[];for(const {element:_0x36dddf,attributes:_0x17eb9e}of _0x2b2680){if(!_0x17eb9e)continue;const _0x5cf0c7=_0x399fd9['model']['createRangeOn'](_0x36dddf),_0x5ad757=_0xc7e26c['find'](_0x18304a=>_0x18304a['getRange']()['isEqual'](_0x5cf0c7));_0x5ad757&&_0x4655f5['push']([_0x5ad757['name'],_0x17eb9e]);}_0x4655f5['length']&&_0x1d9ce8['setAttribute']('markerAttributes',Object['fromEntries'](_0x4655f5));}_0xde992d=null;}));},{'priority':_0x3771e3['high']+0xa}),_0x3a7051['on']('contentInsertion',()=>{_0x17e669=!0x1;},{'priority':'lowest'}),_0x399fd9['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0xb37942,_0x498c2d)=>{const [_0x31095b,_0x3c51a0,,_0x5d9d21]=_0x498c2d;if(!_0xde992d)return;_0xb37942['stop']();const _0x236b19=_0x31095b['cell'],_0x576187=_0x3c51a0,_0x1d7297=Oe(_0x236b19),_0x3a6110=Oe(_0x576187);_0xb37942['return']=_0x236b19;let _0x11e64f=null,_0x1161c1=null;if(_0x3a6110||_0x1d7297){if(_0x1d7297&&!_0x3a6110){_0x5d9d21['remove'](_0x236b19['getChild'](0x0));for(const _0x3eda1b of Array['from'](_0x576187['getChildren']()))_0x5d9d21['insert'](_0x3eda1b,_0x236b19,'end');const _0xc1af1f=_0xde992d['rowInsertionIndexes']['includes'](_0x31095b['row']),_0x3baf11=_0xde992d['columnInsertionIndexes']['includes'](_0x31095b['column']);_0xc1af1f||_0x3baf11||(_0x11e64f=_0x50a820['fromRange'](_0x5d9d21['createRangeIn'](_0x236b19)));}else _0x3a6110&&!_0x1d7297&&(_0x1161c1=_0x5d9d21['createRangeIn'](_0x236b19));}else{const _0x4d563c=_0x5d9d21['createElement']('tableCellSuggestion'),_0x3983c0=_0x5d9d21['createElement']('tableCellSuggestion');_0x5d9d21['wrap'](_0x5d9d21['createRangeIn'](_0x236b19),_0x3983c0),_0x5d9d21['insert'](_0x4d563c,_0x236b19,0x0);for(const _0x479449 of Array['from'](_0x576187['getChildren']()))_0x5d9d21['insert'](_0x479449,_0x4d563c,'end');_0x11e64f=_0x50a820['fromRange'](_0x5d9d21['createRangeOn'](_0x4d563c)),_0x1161c1=_0x50a820['fromRange'](_0x5d9d21['createRangeOn'](_0x3983c0));}const _0x5b6632=Array['from'](_0x576187['getAttributes']())['filter'](([_0x315d26])=>Be['includes'](_0x315d26));_0xde992d['cells']['push']({'element':_0x236b19,'attributes':_0x5b6632['length']?Object['fromEntries'](_0x5b6632):null}),_0x11e64f&&_0xde992d['insertionRanges']['push'](_0x11e64f),_0x1161c1&&_0xde992d['deletionRanges']['push'](_0x1161c1);},{'priority':'high'}),_0x16ac32['on']('insertColumns',(_0x468b77,_0x29c423)=>{const [_0x23ce56,_0x55a94e={}]=_0x29c423;if(!_0xde992d)return;const _0x58838b=_0x55a94e['at']||0x0,_0x4726ff=_0x55a94e['columns']||0x1;_0xde992d['columnInsertionIndexes']=new Array(_0x4726ff)['fill'](_0x58838b)['map']((_0x288d5f,_0x2c9d4d)=>_0x288d5f+_0x2c9d4d);for(const {cell:_0x19795e}of _0x16ac32['createTableWalker'](_0x23ce56,{'startColumn':_0x58838b,'endColumn':_0x58838b+_0x4726ff-0x1}))_0xde992d['columnInsertionRanges']['push'](_0x399fd9['model']['createRangeOn'](_0x19795e));},{'priority':'low'}),_0x16ac32['on']('insertRows',(_0x599dd7,_0x509d39)=>{const [_0x52c8b3,_0x59d5f3={}]=_0x509d39;if(!_0xde992d)return;const _0x2536a4=_0x59d5f3['at']||0x0,_0x58ea1a=_0x59d5f3['rows']||0x1;_0xde992d['rowInsertionIndexes']=new Array(_0x58ea1a)['fill'](_0x2536a4)['map']((_0x474c7f,_0x29296f)=>_0x474c7f+_0x29296f);for(const {cell:_0x368319}of _0x16ac32['createTableWalker'](_0x52c8b3,{'startRow':_0x2536a4,'endRow':_0x2536a4+_0x58ea1a-0x1}))_0xde992d['rowInsertionRanges']['push'](_0x399fd9['model']['createRangeOn'](_0x368319));},{'priority':'low'}),_0x381c65['descriptionFactory']['registerDescriptionCallback'](_0x2f5aa0=>{if(_0x2f5aa0['subType']&&_0x2f5aa0['subType']['startsWith']('tablePaste'))return _0x2f5aa0['previous']?{}:{'type':'insertion','content':o(_0x399fd9['locale'],'*Replace\x20table\x20cells*')};});const _0x3e9dc1=()=>!0x1;for(const _0x56d67b of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x381c65['_suggestionFactory']['registerCustomCallback']('insertion',_0x56d67b,'join',_0x3e9dc1),_0x381c65['_suggestionFactory']['registerCustomCallback']('deletion',_0x56d67b,'join',_0x3e9dc1),_0x381c65['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x56d67b,'join',_0x3e9dc1);_0x381c65['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x3e9dc1),_0x381c65['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x29e29e,_0x13a0bb,_0x479a30)=>{const _0x41561f=_0x29e29e['map'](_0x258dbf=>_0x258dbf['getContainedElement']())['filter'](_0x51438c=>_0x51438c),_0x3eb426=new Map(_0x41561f['map'](_0x3b0ca6=>[_0x3b0ca6,null]));if(_0xde992d){for(const {element:_0x12354e,attributes:_0x48e084}of _0xde992d['cells'])_0x48e084&&_0x3eb426['set'](_0x12354e,_0x48e084);}else{if(_0x479a30&&_0x479a30['markerAttributes'])for(const [_0x37b468,_0xf4fcdc]of Object['entries'](_0x479a30['markerAttributes'])){const _0x1bc0db=_0x399fd9['model']['markers']['get'](_0x37b468),_0x3bfec2=_0x1bc0db?_0x1bc0db['getRange']()['getContainedElement']():null;_0x3bfec2&&_0x3eb426['set'](_0x3bfec2,_0xf4fcdc);}}_0x399fd9['model']['change'](_0x3e8055=>{for(const [_0x156029,_0x3ef01]of _0x3eb426)_0x3e8055['setAttributes']({...xe,..._0x3ef01},_0x156029);});});const _0x1410a8=(_0xdbf074,_0x1c16d2)=>{_0x381c65['_suggestionFactory']['registerCustomCallback'](_0xdbf074,'tablePaste',_0x1c16d2,(_0x1e7065,_0x2cada5,_0x41d9ac)=>{_0x399fd9['model']['change'](_0x2ad872=>{const _0x4283b5=[];for(const _0x2c53f7 of _0x1e7065){const _0x216465=_0x2c53f7['start']['nodeAfter'];_0x216465['is']('element','tableCellSuggestion')&&_0x4283b5['push'](_0x216465);}_0x381c65['_suggestionFactory']['getSuggestionCallback'](_0xdbf074,null,_0x1c16d2)(_0x1e7065,_0x2cada5,_0x41d9ac);for(const _0x2b825b of _0x4283b5)'$graveyard'!=_0x2b825b['root']['rootName']&&_0x2ad872['unwrap'](_0x2b825b);});});};_0x1410a8('insertion','accept'),_0x1410a8('insertion','discard'),_0x1410a8('deletion','accept'),_0x1410a8('deletion','discard'),_0x381c65['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x3d77f1=>{const _0x3c1ce7=_0x3d77f1['map'](_0x1adb7d=>_0x1adb7d['getContainedElement']()),_0x2681e0=_0x3c1ce7[0x0]['findAncestor']('table'),{minRow:_0x2ec15b,maxRow:_0x3f35b1}=_0x4e6ce0['_getCoordsForCells'](_0x3c1ce7);_0x16ac32['removeRows'](_0x2681e0,{'at':_0x2ec15b,'rows':_0x3f35b1-_0x2ec15b+0x1});}),_0x381c65['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x1b5eee=>{const _0x3583d1=_0x1b5eee['map'](_0x28111b=>_0x28111b['getContainedElement']()),_0x22555d=_0x3583d1[0x0]['findAncestor']('table'),{minColumn:_0x3286b7,maxColumn:_0x5d014b}=_0x4e6ce0['_getCoordsForCells'](_0x3583d1);_0x16ac32['removeColumns'](_0x22555d,{'at':_0x3286b7,'columns':_0x5d014b-_0x3286b7+0x1});});const _0x246a5f=(_0x11d857,_0x80627f)=>{if(!_0x80627f['subType']||!_0x80627f['subType']['startsWith']('tablePaste'))return;const _0x4096fe=_0x80627f['attributes']['tablePasteChainId'],_0x17de45=_0x381c65['getSuggestions']()['filter'](_0x391021=>_0x391021['isInContent']&&_0x391021['attributes']&&_0x391021['attributes']['tablePasteChainId']==_0x4096fe);_0x17de45['length']&&_0x80627f['getAllAdjacentSuggestions']()['length']!=_0x17de45['length']&&_0x17de45['reduce']((_0x16ce7a,_0x3b0f9c)=>(_0x16ce7a['next']=_0x3b0f9c,_0x3b0f9c['previous']=_0x16ce7a,_0x3b0f9c));};function _0x270748(_0x4da822,_0x47d841=!0x0){const {id:_0x37b0ed,authorId:_0x3724f0}=_0x381c65['_splitMarkerName'](_0x4da822['markerName']),_0x53d909=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x156711=_0x381c65['activeMarkers']['includes'](_0x4da822['markerName']);return _0x156711&&_0x53d909['push']('ck-suggestion-marker--active'),{'classes':_0x53d909,'attributes':{'data-suggestion':_0x37b0ed,'data-author-id':_0x3724f0},'priority':_0x156711&&_0x47d841?0xbc2:0xbb8};}_0x381c65['on']('suggestionLoaded',_0x246a5f,{'priority':'high'}),_0x381c65['on']('suggestionUnloaded',_0x246a5f,{'priority':'high'}),_0x399fd9['model']['document']['registerPostFixer'](()=>{let _0x3b9c09=!0x1;const _0x2d5201=Array['from'](_0x399fd9['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5b03e0,data:_0x57e600}of _0x2d5201){const {group:_0x1e8cd5,type:_0x144f82,id:_0x37b839}=_0x381c65['_splitMarkerName'](_0x5b03e0);if('suggestion'!=_0x1e8cd5||'deletion'!=_0x144f82||_0x57e600['oldRange'])continue;if(!_0x381c65['hasSuggestion'](_0x37b839))continue;const _0x1cb2ad=_0x381c65['getSuggestion'](_0x37b839)['getRanges'](),_0x4cbe23=_0x399fd9['plugins']['get']('Users')['me'];for(const _0x3812d5 of _0x381c65['getSuggestions']()){if(!_0x3812d5['isInContent']||_0x3812d5['author']!=_0x4cbe23)continue;if('formatBlock'!=_0x3812d5['type']||'tablePasteCell'!=_0x3812d5['subType'])continue;if(_0x3812d5['getRanges']()['every'](_0x39c3da=>_0x1cb2ad['some'](_0x2541d7=>_0x2541d7['containsRange'](_0x39c3da,!0x0)))){for(const _0x5c3a90 of _0x3812d5['getAllAdjacentSuggestions']())_0x5c3a90['isInContent']&&(_0x5c3a90['discard'](),_0x3b9c09=!0x0);}}}return _0x3b9c09;}),_0x399fd9['model']['document']['registerPostFixer'](_0x1a96a9=>{const _0x527b82=_0x399fd9['commands']['get']('redo');if(!_0x527b82||!_0x527b82['_createdBatches']['has'](_0x1a96a9['batch']))return!0x1;let _0x3aff9e=!0x1;const _0x5976f4=_0x399fd9['plugins']['get']('Users')['me'],_0x4c5d1f=_0x399fd9['model']['document']['differ']['getChanges'](),_0x3a318d=Array['from'](_0x399fd9['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x34cceb,data:_0x5832f0})=>{const {group:_0x5a084e,subType:_0x36ca11,authorId:_0xa0f8b6}=_0x381c65['_splitMarkerName'](_0x34cceb);return'suggestion'==_0x5a084e&&'tablePaste'==_0x36ca11&&_0xa0f8b6==_0x5976f4['id']&&!_0x5832f0['oldRange'];});for(const _0x189899 of _0x4c5d1f){if('insert'!=_0x189899['type']||'tableCellSuggestion'!=_0x189899['name']||0x1!=_0x189899['length'])continue;const _0x54fb49=_0x1a96a9['createRange'](_0x189899['position'],_0x189899['position']['getShiftedBy'](0x1));if(!_0x3a318d['find'](({data:_0x862f10})=>_0x862f10['newRange']['isEqual'](_0x54fb49))){for(const {name:_0x568307,data:_0x43e1d9}of _0x3a318d)if(_0x54fb49['containsRange'](_0x43e1d9['newRange'])){_0x1a96a9['updateMarker'](_0x568307,{'range':_0x54fb49}),_0x3aff9e=!0x0;break;}}}return _0x3aff9e;}),_0x399fd9['model']['document']['registerPostFixer'](_0x284574=>{let _0x293ec1=!0x1;const _0x261134=_0x399fd9['plugins']['get']('Users')['me'],_0x318c83=_0x381c65['getSuggestions']()['filter'](_0x128712=>_0x128712['isInContent']&&_0x128712['author']==_0x261134),_0x6d7301=new Set(),_0x25559f=new Set();for(const _0x3fd1be of _0x318c83)if('tablePaste'==_0x3fd1be['subType'])for(const _0xb973e3 of _0x3fd1be['getMarkers']()){const _0x357214=_0xb973e3['getRange']()['getContainedElement']();if(_0x357214){if(_0x357214['is']('element','tableCellSuggestion')&&Oe(_0x357214)){_0x3fd1be['removeMarker'](_0xb973e3['name']),_0x6d7301['add'](_0x357214),_0x293ec1=!0x0;const _0x5c0e08=_0x357214['nextSibling'],_0x8808e6=_0x357214['previousSibling'],_0x24d8e5=_0x5c0e08&&_0x5c0e08['is']('element','tableCellSuggestion'),_0x39b556=_0x8808e6&&_0x8808e6['is']('element','tableCellSuggestion');_0x24d8e5&&!_0x6d7301['has'](_0x5c0e08)&&_0x25559f['add'](_0x5c0e08),_0x39b556&&!_0x6d7301['has'](_0x8808e6)&&_0x25559f['add'](_0x8808e6);}else _0x357214['is']('element','paragraph')&&_0x357214['isEmpty']&&(_0x3fd1be['removeMarker'](_0xb973e3['name']),_0x293ec1=!0x0);}}else{if('tablePasteCell'==_0x3fd1be['subType']){if(!_0x3fd1be['attributes']||!_0x3fd1be['attributes']['tablePasteChainId'])continue;const _0x523dc9=_0x3fd1be['attributes']['markerAttributes'];if(_0x523dc9&&Object['keys'](_0x523dc9)['length'])continue;const _0x127271=_0x3fd1be['attributes']['tablePasteChainId'];let _0xba6f3c=!0x0,_0x55ce62=!0x0;for(const _0x1306e3 of _0x318c83)if(_0x1306e3['subType']&&_0x1306e3['subType']['startsWith']('tablePaste')){if(!_0x1306e3['attributes']['tablePasteChainId']){_0x55ce62=!0x1;break;}if(_0x1306e3['id']!=_0x3fd1be['id']&&_0x1306e3['attributes']['tablePasteChainId']==_0x127271){_0xba6f3c=!0x1;break;}}_0x55ce62&&_0xba6f3c&&(_0x3fd1be['removeMarkers'](),_0x293ec1=!0x0);}}for(const _0x2f839c of _0x6d7301)_0x284574['remove'](_0x2f839c);for(const _0x23215d of _0x25559f)_0x284574['unwrap'](_0x23215d);return _0x293ec1;}),_0x399fd9['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0xf0519e=>_0x270748(_0xf0519e),'converterPriority':'high'}),_0x399fd9['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x45e0d3,_0x48e73d)=>_0x48e73d['options']['showSuggestionHighlights']?_0x270748(_0x45e0d3,!0x1):null,'converterPriority':'high'});const _0x46138f=_0x399fd9['editing']['view'];this['listenTo'](_0x46138f['document'],'clipboardOutput',(_0x110938,_0x54538c)=>{const _0x1cc607=[];for(const _0xd0f235 of _0x46138f['createRangeIn'](_0x54538c['content'])['getItems']())_0xd0f235['is']('element','suggestion-td')&&_0x1cc607['push'](_0xd0f235);_0x46138f['change'](_0x5dc1b7=>{for(const _0x29e361 of _0x1cc607)_0x5dc1b7['move'](_0x5dc1b7['createRangeIn'](_0x29e361),_0x5dc1b7['createPositionBefore'](_0x29e361)),_0x5dc1b7['remove'](_0x29e361);});});}}function Oe(_0x4489cb){if(_0x4489cb['isEmpty'])return!0x0;const _0x5a9ddd=_0x4489cb['getChild'](0x0);return _0x5a9ddd['is']('element','paragraph')&&_0x5a9ddd['isEmpty'];}function Ue(_0x2d04c1,_0x5976f7={},_0x1a9b0b){for(const {isAnchor:_0xd6a472,cellHeight:_0x475554,cellWidth:_0x324871}of _0x1a9b0b['createTableWalker'](_0x2d04c1,{'includeAllSlots':!0x0,..._0x5976f7}))if(!_0xd6a472||0x1!=_0x475554||0x1!=_0x324871)return!0x1;return!0x0;}class Dt extends _0xe680e7{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x49df4a=this['editor']['plugins']['get']('TrackChangesEditing');_0x49df4a['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x49df4a['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x49df4a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x49df4a['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x49df4a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x49df4a['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x4ef497,_0x328612){const _0xf37426=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2f5873=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x11546f=_0x328612['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x2391a8=_0x2f5873['getColumnGroupElement'](_0x11546f);let _0x58f4d8=_0x2391a8?_0x2f5873['getTableColumnsWidths'](_0x2391a8):null,_0x4f1ea7=_0x11546f['getAttribute']('tableWidth')||null;const _0x5a3897=_0x328612['tableWidth']||_0x4f1ea7,_0xac0095=_0x328612['columnWidths']||_0x58f4d8,_0x17b1d3=this['editor']['plugins']['get']('Users')['me'];for(const _0x39f2d1 of _0xf37426['getSuggestions']()){const _0x5eb293=_0x39f2d1['getContainedElement']();if('resizeTable'===_0x39f2d1['subType']&&_0x5eb293===_0x11546f){_0x39f2d1['author']!==_0x17b1d3&&_0x39f2d1['discard']();const _0x88d312=_0x39f2d1['data']['commandParams'];_0x4f1ea7=_0x88d312[0x0]['tableWidth'],_0x58f4d8=_0x88d312[0x0]['columnWidths'];break;}}_0x4ef497({'table':_0x11546f,'tableWidth':_0x5a3897,'columnWidths':_0xac0095}),_0xf37426['markBlockFormat'](_0x11546f,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x4f1ea7,'columnWidths':_0x58f4d8}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x141db2){if('formatBlock'!=_0x141db2['type']&&'formatInline'!=_0x141db2['type'])return;const {data:_0x1a8833}=_0x141db2;if(_0x1a8833&&'resizeTable'===_0x1a8833['formatGroupId']){const _0x2819af='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x2819af)};}}}class $t extends _0xe680e7{['afterInit'](){const _0x1f1773=this['editor'];_0x1f1773['plugins']['has']('Template')&&_0x1f1773['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0xe680e7{['afterInit'](){const _0x261d2b=this['editor'];if(!_0x261d2b['commands']['get']('insertTableOfContents'))return;_0x261d2b['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x5f43c4=_0x261d2b['plugins']['get']('TrackChangesEditing'),_0x5a8256=_0x261d2b['locale'];_0x5f43c4['descriptionFactory']['registerElementLabel']('tableOfContents',_0x40a6de=>o(_0x5a8256,'ELEMENT_TABLE_OF_CONTENTS',_0x40a6de));}}class Bt extends _0xe680e7{['afterInit'](){const _0x409232=this['editor'];if(!_0x409232['plugins']['has']('Title'))return;const _0x53c8a4=_0x409232['plugins']['get']('TrackChangesEditing');_0x53c8a4['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x409232['locale'],'ELEMENT_TITLE')),_0x409232['model']['document']['registerPostFixer'](_0x247be4=>{let _0x2017f6=!0x1;const _0x6beff6=Array['from'](_0x409232['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5bc84f,data:_0x2649d7}of _0x6beff6){const {group:_0x3176e0}=_0x53c8a4['_splitMarkerName'](_0x5bc84f);if('suggestion'!==_0x3176e0||!_0x2649d7['newRange'])continue;const _0x3a2ed9=_0x2649d7['newRange'],_0x5ace1a=_0x3a2ed9['end']['nodeBefore'];if(!_0x5ace1a||!_0x5ace1a['is']('element','title-content'))continue;if(!_0x3a2ed9['start']['isTouching'](_0x3a2ed9['end']))continue;const _0x4d8023=_0x409232['model']['schema']['getNearestSelectionRange'](_0x3a2ed9['end'],'forward');if(_0x4d8023&&_0x4d8023['isCollapsed']){const _0x4bd66c=_0x247be4['createRange'](_0x3a2ed9['start'],_0x4d8023['start']);_0x4bd66c['isEqual'](_0x3a2ed9)||(_0x247be4['updateMarker'](_0x5bc84f,{'range':_0x4bd66c}),_0x2017f6=!0x0);}_0x2017f6||(_0x247be4['removeMarker'](_0x5bc84f),_0x2017f6=!0x0);}return _0x2017f6;});}}class Tt extends _0xe680e7{['afterInit'](){const _0x48f6d8=this['editor'],_0x53dbfc=_0x48f6d8['plugins']['get']('TrackChangesEditing');_0x48f6d8['plugins']['has']('Uploadcare')&&(_0x53dbfc['enableCommand']('uploadcare'),_0x48f6d8['plugins']['has']('UploadcareImageEdit')&&(_0x53dbfc['enableCommand']('uploadcareImageEdit'),_0x53dbfc['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x53dbfc['registerBlockAttribute']('uploadcareImageId'),_0x53dbfc['descriptionFactory']['registerDescriptionCallback'](_0x51bf6a=>{if('attribute'!=_0x51bf6a['type'])return;const {data:_0x139a25}=_0x51bf6a;return _0x139a25&&'uploadcareImageId'==_0x139a25['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0xe680e7{['afterInit'](){const _0x3b5bd2=this['editor'],_0x3b44e5=_0x3b5bd2['plugins']['get']('TrackChangesEditing');_0x3b5bd2['plugins']['has']('UndoEditing')&&(_0x3b44e5['enableCommand']('undo'),_0x3b44e5['enableCommand']('redo'));}}class Ot extends _0xe680e7{static get['requires'](){return[At];}['afterInit'](){const _0x1136e5=this['editor'];if(!_0x1136e5['plugins']['has']('TableCaptionEditing'))return;_0x1136e5['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Et extends _0xe680e7{['tableProperties'];['tableCellProperties'];constructor(_0x230a59){super(_0x230a59),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x4768b4=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x435a23 of this['tableProperties'])_0x4768b4['enableCommand'](_0x435a23,(_0x1bf8db,_0x4c5f99)=>{const _0x3e5060=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x435a23,[_0x3e5060],this['tableProperties'],'tableProperties',_0x1bf8db,_0x4c5f99);});_0x4768b4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x4768b4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4768b4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x2ef06d,_0x4e073a)=>this['handleDiscardAction'](this['tableProperties'],_0x2ef06d,_0x4e073a)),_0x4768b4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x541192 of this['tableCellProperties'])_0x4768b4['enableCommand'](_0x541192,(_0x630ebe,_0x2af5d6)=>{const _0x2a2140=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x541192,_0x2a2140,this['tableCellProperties'],'tableCellProperties',_0x630ebe,_0x2af5d6);});_0x4768b4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x4768b4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4768b4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x180555,_0x3b1afa)=>this['handleDiscardAction'](this['tableCellProperties'],_0x180555,_0x3b1afa)),_0x4768b4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x4768b4['descriptionFactory']['registerDescriptionCallback'](_0x125728=>this['handleSuggestionDescription'](_0x125728)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0xc93b67,_0x411457,_0x492e97,_0x3a4025,_0x21ba0b,_0x39681e){const _0x17a916=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x39681e['batch'],()=>{for(const _0x25f05c of _0x411457){if(this['_getSuggestion'](_0x25f05c,_0x3a4025))_0x21ba0b(_0x39681e);else{const _0x577601={};for(const _0x14ca05 of _0x492e97){const _0x2a072c=_0x25f05c['getAttribute'](_0x14ca05);void 0x0!==_0x2a072c&&(_0x577601[_0x14ca05]=_0x2a072c);}_0x21ba0b(_0x39681e),_0x17a916['markBlockFormat'](_0x25f05c,{'commandParams':[_0x577601]},[],_0x3a4025);}}});}['handleDiscardAction'](_0x5963e4,_0x15eebe,_0x52280e){const _0x30fd3d=_0x15eebe[0x0]['start']['nodeAfter'],_0x381bf5=_0x52280e['commandParams'][0x0];this['editor']['model']['change'](_0xbc51ce=>{for(const _0x5d7957 of _0x5963e4)void 0x0!==_0x381bf5[_0x5d7957]?_0xbc51ce['setAttribute'](_0x5d7957,_0x381bf5[_0x5d7957],_0x30fd3d):_0xbc51ce['removeAttribute'](_0x5d7957,_0x30fd3d);});}['handleSuggestionDescription'](_0x38bfb8){if(_0x38bfb8['data'])switch(_0x38bfb8['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'](_0x53a008,_0x3b1404){const _0x400e29=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x3fc975 of _0x400e29['getSuggestions']({'skipNotAttached':!0x0})){const _0x42302e=_0x3fc975['getContainedElement']();if(_0x3fc975['subType']===_0x3b1404&&_0x42302e===_0x53a008)return _0x3fc975;}return null;}['_registerTablePropertiesAttributes'](){const _0x36eb1c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5d72dd=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x4ab10c of _0x5d72dd){const _0x416519=_0x4ab10c['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x36eb1c['registerBlockAttribute'](_0x4ab10c),_0x36eb1c['descriptionFactory']['registerAttributeLabel'](_0x4ab10c,o(this['editor']['locale'],'FORMAT_'+_0x416519));}}}class Rt extends _0xe680e7{['afterInit'](){const _0x658812=this['editor'];if(!_0x658812['plugins']['has']('LineHeight'))return;const _0x56c953=_0x658812['plugins']['get']('TrackChangesEditing'),_0xf2eb2c=_0x658812['locale'];_0x56c953['enableDefaultAttributesIntegration']('lineHeight'),_0x56c953['registerBlockAttribute']('lineHeight'),_0x56c953['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0xf2eb2c,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0xe680e7{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x9e4cfc,_0x3db646,O,E,R,U,V,G,F,L,J,K,z,W,Q,X,Y,Z,tt,it,nt,et,ot,st,rt,at,ct,ft,ht,mt,ut,H,Rt,q,gt,lt,dt,pt,kt,wt,bt,yt,jt,St,It,At,_t,Ct,vt,Ot,Nt,Dt,Mt,Et,$t,Bt,Tt,xt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4cb177){super(_0x4cb177),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x27a2e9,_0x201d27,_0x2f77f0,_0x1b8a4c)=>{this['_model']['change'](()=>{for(const _0x5cd0ba of[..._0x1b8a4c,..._0x2f77f0])this['_model']['markers']['has'](_0x5cd0ba)&&_0x4cb177['editing']['reconvertMarker'](_0x5cd0ba);});}),this['descriptionFactory']=new x(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Vt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x4cb177['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x4cb177['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x4cb177['config']['get']('trackChanges.trackFormatChanges'),_0x4cb177['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x4cb177['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new N(_0x4cb177,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x1d3f09=this['editor'],_0xca381=(_0x7ceb4c,_0x1df4b0)=>{if('attribute'!=_0x7ceb4c)return'ck-suggestion-marker-'+_0x7ceb4c;const _0x10bc64=_0x1df4b0['split']('|')[0x0];return this['_isBlockAttribute'](_0x10bc64)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x1d3f09['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x55331c=>{const {id:_0x43e0ad,authorId:_0x54749a,type:_0x4634b9,subType:_0x67cb9}=this['_splitMarkerName'](_0x55331c['markerName']),_0x5d5cb8=['ck-suggestion-marker',_0xca381(_0x4634b9,_0x67cb9)];let _0x3c83dc=0xbb8;return this['activeMarkers']['includes'](_0x55331c['markerName'])&&(_0x5d5cb8['push']('ck-suggestion-marker--active'),_0x3c83dc=0xbc2),'deletion'==_0x4634b9&&(_0x3c83dc+=0x5),{'classes':_0x5d5cb8,'attributes':{'data-suggestion':_0x43e0ad,'data-author-id':_0x54749a},'priority':_0x3c83dc};}}),_0x1d3f09['conversion']['for']('dataDowncast')['add'](_0x2e9299=>{_0x2e9299['on']('addMarker:suggestion',(_0x11e014,_0x479385,_0x516721)=>{if(!_0x516721['options']['showSuggestionHighlights'])return;const _0x2d2982=_0x479385['item'];if(!_0x2d2982)return;const _0x647f25=_0x516721['mapper']['toViewElement'](_0x2d2982);_0x1d3f09['model']['schema']['isObject'](_0x2d2982)&&_0x647f25&&!_0x647f25['getCustomProperty']('widget')&&_0x647f25['is']('containerElement')&&_0x2a9ddb(_0x647f25,_0x516721['writer']);},{'priority':'high'});}),_0x1d3f09['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x34a7cd,_0x2c4f24)=>{if(!_0x2c4f24['options']['showSuggestionHighlights'])return null;const {id:_0x14d02b,authorId:_0x120cbf,type:_0x13de7e,subType:_0x496970}=this['_splitMarkerName'](_0x34a7cd['markerName']);return{'classes':['ck-suggestion-marker',_0xca381(_0x13de7e,_0x496970)],'priority':0xbb8,'attributes':{'data-suggestion':_0x14d02b,'data-author-id':_0x120cbf}};}});const _0x3036e6=({showActiveMarkers:_0x4f0a2d=!0x0,isAttributeSuggestion:_0x551746=!0x1}={})=>(_0x2d3df8,_0xf96be4,_0x48013c)=>{if(!_0xf96be4['item'])return;const {id:_0x193ad0,authorId:_0x3f4180}=this['_splitMarkerName'](_0xf96be4['markerName']);if(_0x551746){const _0x412e57=this['_suggestions']['get'](_0x193ad0),_0x1488d8=this['_getAttributeKey'](_0x412e57);if(!this['_isBlockAttribute'](_0x1488d8))return;}if(_0xf96be4['item']['is']('selection'))return void _0x48013c['consumable']['consume'](_0xf96be4['item'],_0x2d3df8['name']);const _0x13a923=_0x48013c['mapper']['toViewElement'](_0xf96be4['item']);if(_0xf96be4['item']['is']('element')&&_0x1d3f09['model']['schema']['isBlock'](_0xf96be4['item'])&&!_0x13a923['getCustomProperty']('addHighlight')){_0x48013c['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x13a923),_0x48013c['writer']['setAttribute']('data-suggestion',_0x193ad0,_0x13a923),_0x48013c['writer']['setAttribute']('data-author-id',_0x3f4180,_0x13a923),_0x48013c['mapper']['bindElementToMarker'](_0x13a923,_0xf96be4['markerName']),_0x4f0a2d&&(this['activeMarkers']['includes'](_0xf96be4['markerName'])?_0x48013c['writer']['addClass']('ck-suggestion-marker--active',_0x13a923):_0x48013c['writer']['removeClass']('ck-suggestion-marker--active',_0x13a923));for(const _0x3a9000 of _0x1d3f09['model']['createRangeIn'](_0xf96be4['item'])['getItems']())_0x48013c['consumable']['consume'](_0x3a9000,_0x2d3df8['name']);_0x48013c['consumable']['consume'](_0xf96be4['item'],_0x2d3df8['name']);}};_0x1d3f09['conversion']['for']('dataDowncast')['add'](_0x24bc1b=>{_0x24bc1b['on']('addMarker:suggestion:formatBlock',(_0x29fb82,_0x3745fa,_0x476e1d)=>{_0x476e1d['options']['showSuggestionHighlights']&&_0x3036e6({'showActiveMarkers':!0x1})(_0x29fb82,_0x3745fa,_0x476e1d);},{'priority':'highest'});}),_0x1d3f09['conversion']['for']('dataDowncast')['add'](_0x1f911c=>{_0x1f911c['on']('addMarker:suggestion:attribute',(_0x174f65,_0xd881ca,_0x51035b)=>{_0x51035b['options']['showSuggestionHighlights']&&_0x3036e6({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x174f65,_0xd881ca,_0x51035b);},{'priority':'highest'});}),_0x1d3f09['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x527c95,_0x22cc73)=>{if(_0x22cc73['options']['showSuggestionHighlights']){const {id:_0x370a80,authorId:_0x5b6e16}=this['_splitMarkerName'](_0x527c95);return _0x527c95['includes'](':split')||_0x527c95['includes'](':merge')?{'group':'suggestion','name':_0x527c95['substr'](0xb),'attributes':{'data-suggestion':_0x370a80,'data-author-id':_0x5b6e16}}:null;}return{'group':'suggestion','name':_0x527c95['substr'](0xb)};}}),_0x1d3f09['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x39240b,{writer:_0x417e21})=>{let _0x261f60='suggestion:'+_0x39240b['getAttribute']('suggestion-type')+':'+_0x39240b['getAttribute']('id');return _0x39240b['getAttribute']('marker-count')&&(_0x261f60+=':'+_0x39240b['getAttribute']('marker-count')),_0x417e21['createElement']('$marker',{'data-name':_0x261f60});}}),_0x1d3f09['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x1d3f09['conversion']['for']('editingDowncast')['add'](_0x52de8c=>{_0x52de8c['on']('addMarker:suggestion:formatBlock',_0x3036e6(),{'priority':'high'});}),_0x1d3f09['conversion']['for']('editingDowncast')['add'](_0x1293fb=>{_0x1293fb['on']('addMarker:suggestion:attribute',_0x3036e6({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x1d3f09['conversion']['for']('editingDowncast')['add'](_0x1cf354=>{_0x1cf354['on']('removeMarker:suggestion:formatBlock',(_0x2db3da,_0xd3d3a4,_0x2fa494)=>{const _0x39cdf5=_0x2fa494['mapper']['markerNameToElements'](_0xd3d3a4['markerName']);if(_0x39cdf5){for(const _0x264715 of _0x39cdf5)_0x264715['getCustomProperty']('addHighlight')||(_0x2fa494['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x264715),_0x2fa494['writer']['removeAttribute']('data-suggestion',_0x264715),_0x2fa494['writer']['removeAttribute']('data-author-id',_0x264715),_0x2fa494['mapper']['unbindElementFromMarkerName'](_0x264715,_0xd3d3a4['markerName']));}},{'priority':'high'});}),_0x1d3f09['conversion']['for']('editingDowncast')['add'](_0xa17a1f=>{_0xa17a1f['on']('removeMarker:suggestion:attribute',(_0x4b3598,_0x32b34c,_0x182eac)=>{const _0x59f09e=_0x182eac['mapper']['markerNameToElements'](_0x32b34c['markerName']);if(!_0x59f09e)return;const {id:_0xd30f53}=this['_splitMarkerName'](_0x32b34c['markerName']),_0x11bb59=this['_suggestions']['get'](_0xd30f53),_0x4ebab3=this['_getAttributeKey'](_0x11bb59);if(this['_isBlockAttribute'](_0x4ebab3)){for(const _0x13980a of _0x59f09e)_0x13980a['getCustomProperty']('addHighlight')||(_0x182eac['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x13980a),_0x182eac['writer']['removeAttribute']('data-suggestion',_0x13980a),_0x182eac['writer']['removeAttribute']('data-author-id',_0x13980a),_0x182eac['mapper']['unbindElementFromMarkerName'](_0x13980a,_0x32b34c['markerName']));}},{'priority':'high'});}),_0x1d3f09['model']['document']['registerPostFixer'](_0x30adbe=>{let _0x3f997e=!0x1;const _0x8e7396=Array['from'](_0x1d3f09['model']['document']['differ']['getChangedMarkers']()),_0x2419f4=new Set();for(const {name:_0x3c615e,data:_0x6211eb}of _0x8e7396){const {group:_0x430a06,type:_0x276380,subType:_0x18ac65,id:_0x5e876f}=this['_splitMarkerName'](_0x3c615e);if('suggestion'!==_0x430a06)continue;const _0x1735e2=_0x18ac65?'suggestion:'+_0x276380+':'+_0x18ac65+':'+_0x5e876f:'suggestion:'+_0x276380+':'+_0x5e876f,_0x4d1d64=_0x1d3f09['model']['markers']['getMarkersGroup'](_0x1735e2),_0x295984=_0x1d3f09['model']['markers']['get'](_0x3c615e),_0x170fd4=this['_suggestions']['get'](_0x5e876f);if(null!=_0x6211eb['newRange']){'formatInline'==_0x276380&&(_0x3f997e=_0x3f997e||Gt(_0x6211eb['newRange'],_0x3c615e,_0x30adbe,_0x1d3f09['model']['schema']));const _0x4be407='attribute'==_0x276380&&this['_isBlockAttribute'](_0x18ac65['split']('|')[0x0]),_0x53e1ce='attribute'==_0x276380&&this['_isInlineAttribute'](_0x18ac65['split']('|')[0x0]);if(_0x6211eb['newRange']['isCollapsed']||'$graveyard'==_0x6211eb['newRange']['root']['rootName']||'formatBlock'==_0x276380&&!Jt(_0x6211eb['newRange'])||_0x4be407&&!Jt(_0x6211eb['newRange'])||_0x53e1ce&&Kt(_0x6211eb['newRange'])||'deletion'==_0x276380&&Kt(_0x6211eb['newRange'])||_0x295984&&Ht(_0x295984,_0x4d1d64))_0x30adbe['removeMarker'](_0x3c615e),_0x3f997e=!0x0;else{if(!_0x170fd4||!_0x170fd4['isInContent'])continue;if(_0x6211eb['newRange']&&_0x6211eb['oldRange']&&_0x6211eb['newRange']['isEqual'](_0x6211eb['oldRange']))continue;_0x2419f4['add'](_0x170fd4);}}}return _0x2419f4['size']>0x0&&(_0x3f997e=!!this['_joinWithAdjacentSuggestions'](_0x2419f4)||_0x3f997e),_0x3f997e;}),_0x1d3f09['model']['document']['registerPostFixer'](_0x1d3712=>{let _0x599252=!0x1;for(const _0x42fb63 of _0x1d3f09['model']['document']['differ']['getChanges']())if('insert'==_0x42fb63['type'])for(const _0x1867ba of this['_suggestions']['values']()){if(_0x1867ba['isMultiRange']||!_0x1867ba['isInContent'])continue;const _0x1eb072='formatBlock'==_0x1867ba['type'],_0x52c514=this['_getAttributeKey'](_0x1867ba),_0x23e566=_0x52c514&&this['_isBlockAttribute'](_0x52c514);if(!_0x1eb072&&!_0x23e566)continue;const _0xfaf8f2=_0x1867ba['getFirstRange']();if(_0xfaf8f2['start']['parent']!=_0xfaf8f2['end']['parent']&&!_0xfaf8f2['end']['isAtEnd']){const _0x59e7c9=_0x1d3f09['model']['createPositionAt'](_0xfaf8f2['start']['nodeAfter'],'end'),_0x50eb4e=_0x1d3f09['model']['createRange'](_0xfaf8f2['start'],_0x59e7c9);_0x1d3712['updateMarker'](_0x1867ba['getFirstMarker'](),{'range':_0x50eb4e}),_0x599252=!0x0;}}return _0x599252;}),_0x1d3f09['model']['document']['registerPostFixer'](_0x10ff1c=>this['_processAttributeChanges'](_0x10ff1c)),_0x1d3f09['model']['document']['registerPostFixer'](_0x4d1bec=>!_0x4d1bec['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x4d1bec)),_0x1d3f09['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x1d3f09['model']['document']['on']('change:data',(_0x3cd369,_0x43b2a7)=>{if(!_0x43b2a7['isLocal']||_0x43b2a7['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x5ce650=_0x1d3f09['model']['document']['differ']['getChanges']();if(0x0==_0x5ce650['length'])return;const _0x471d33=[],_0x45254b=_0x5ce650['filter'](_0x44133b=>'attribute'==_0x44133b['type']),_0x17cfa8=_0x5ce650['filter'](_0x562d11=>'insert'==_0x562d11['type']&&'$text'!=_0x562d11['name']);for(const _0x28d26d of _0x45254b)this['_isRegisteredAttribute'](_0x28d26d['attributeKey'])&&_0x471d33['push']({'key':_0x28d26d['attributeKey'],'newValue':_0x28d26d['attributeNewValue'],'oldValue':_0x28d26d['attributeOldValue'],'range':qt(_0x28d26d['range'],_0x1d3f09['model'])});for(const _0x2ed81b of _0x17cfa8){if('rename'!=_0x2ed81b['action']&&'refresh'!=_0x2ed81b['action'])continue;const _0x2f6c87=zt(_0x2ed81b['position']['nodeAfter'],_0x1d3f09['model']),_0x5beb9f=_0x2ed81b['before'];'rename'==_0x2ed81b['action']&&_0x471d33['push']({'key':m,'newValue':_0x2ed81b['name'],'oldValue':_0x5beb9f['name'],'range':_0x2f6c87});for(const [_0x36d55c,_0x3764ea]of _0x5beb9f['attributes']){if(!this['_isRegisteredAttribute'](_0x36d55c))continue;const _0x3a5749=_0x2ed81b['attributes']['get'](_0x36d55c);_0x3764ea!==_0x3a5749&&_0x471d33['push']({'key':_0x36d55c,'newValue':_0x3a5749,'oldValue':_0x3764ea,'range':_0x2f6c87});}for(const [_0x3c874d,_0x5b1fa1]of _0x2ed81b['attributes'])this['_isRegisteredAttribute'](_0x3c874d)&&(_0x5beb9f['attributes']['has'](_0x3c874d)||_0x471d33['push']({'key':_0x3c874d,'newValue':_0x5b1fa1,'oldValue':null,'range':_0x2f6c87}));}0x0!=_0x471d33['length']&&_0x1d3f09['model']['enqueueChange'](_0x43b2a7,_0x5cae51=>{const _0x197a6f=_0x29bcf7();for(const {range:_0x2c5622,key:_0x887297,oldValue:_0x16b50c,newValue:_0x385f22}of _0x471d33)this['markAttributeChange'](_0x2c5622,_0x887297,_0x16b50c,_0x385f22,{'groupId':_0x197a6f});this['_reduceExistingSuggestions'](_0x5cae51,_0x471d33);});},{'priority':'lowest'}),_0x1d3f09['model']['markers']['on']('update:suggestion',(_0x11e297,_0x27c1e7,_0x174d8b)=>{if(null==_0x174d8b){const {id:_0x55095f}=this['_splitMarkerName'](_0x27c1e7['name']),_0x5d4f27=this['_suggestions']['get'](_0x55095f);_0x5d4f27&&_0x5d4f27['addMarkerName'](_0x27c1e7['name']);}}),_0x1d3f09['model']['document']['on']('change:data',()=>{const _0x350da3=Array['from'](_0x1d3f09['model']['document']['differ']['getChangedMarkers']())['filter'](_0x42e9aa=>'suggestion'===this['_splitMarkerName'](_0x42e9aa['name'])['group']);if(0x0===_0x350da3['length'])return;_0x350da3['sort']((_0x207815,_0x41d48a)=>{const _0x432133=_0x207815['data']['oldRange'],_0xde2ec3=_0x41d48a['data']['oldRange'];return null===_0x432133&&null===_0xde2ec3?0x0:null===_0x432133&&null!==_0xde2ec3?-0x1:null!==_0x432133&&null===_0xde2ec3?0x1:_0x432133['start']['isBefore'](_0xde2ec3['start'])?-0x1:0x1;});const _0x212e00=new Set(),_0x24060a=new Set();for(const {name:_0xa8f30e,data:_0x27f947}of _0x350da3){const {id:_0x52b0da}=this['_splitMarkerName'](_0xa8f30e);if(null===_0x27f947['oldRange']){const _0x9e3831=this['_handleNewSuggestionMarker'](_0xa8f30e);_0x24060a['add'](_0x9e3831);}else{const _0x126b97=this['_suggestions']['get'](_0x52b0da);null!==_0x27f947['newRange']||_0x126b97['isInContent']?(_0x212e00['add'](_0x126b97['head']),_0x24060a['add'](_0x126b97)):this['_removeSuggestion'](_0x126b97);}}_0x24060a['size']>0x0&&this['_refreshSuggestionsChain'](_0x24060a);for(const _0x549ebd of _0x212e00)this['fire']('suggestionChanged',_0x549ebd);}),_0x1d3f09['model']['on']('applyOperation',(_0x1e043e,_0x106889)=>{const _0x356802=_0x106889[0x0];if(!this['_suggestions']['size'])return;if(!_0x356802['isDocumentOperation'])return;if(_0x356802['batch']['isUndo']||!_0x356802['batch']['isLocal'])return;let _0x2b7ac9,_0x3e2513;switch(_0x356802['type']){case'insert':_0x2b7ac9=_0x1d3f09['model']['createPositionAt'](_0x356802['position']),_0x3e2513=_0x2b7ac9['getShiftedBy'](_0x356802['howMany']);break;case'split':_0x2b7ac9=_0x1d3f09['model']['createPositionAt'](_0x356802['splitPosition']),_0x3e2513=_0x1d3f09['model']['createPositionAt'](_0x356802['moveTargetPosition']);break;case'move':_0x2b7ac9=_0x1d3f09['model']['createPositionAt'](_0x356802['targetPosition']),_0x3e2513=_0x2b7ac9['getShiftedBy'](_0x356802['howMany']);break;default:return;}const _0x4df16d=_0x1d3f09['model']['createRange'](_0x2b7ac9,_0x3e2513);_0x1d3f09['model']['change'](()=>{for(const {suggestion:_0x2ce3d3,meta:_0x4e1f74}of this['_findSuggestions'](_0x4df16d)){if(_0x2ce3d3['isMultiRange'])continue;if('formatInline'==_0x2ce3d3['type'])continue;const _0x29d7e9=this['_getAttributeKey'](_0x2ce3d3);if(_0x29d7e9&&this['_isBlockAttribute'](_0x29d7e9)&&'split'!=_0x356802['type'])continue;const _0x47c302=_0x2ce3d3['data']&&_0x2ce3d3['data']['multipleBlocks'];('formatBlock'!=_0x2ce3d3['type']||'split'==_0x356802['type']&&!_0x47c302)&&(_0x4e1f74['containsRangeInObject']||'insertion'==_0x2ce3d3['type']&&_0x4e1f74['isOwn']||_0x2ce3d3['getFirstRange']()['containsRange'](_0x4df16d)&&this['_breakSuggestionMarker'](_0x2ce3d3,_0x2b7ac9,_0x3e2513));}});},{'priority':'lowest'}),_0x1d3f09['model']['on']('deleteContent',(_0x3c1acd,_0x443c2d)=>{const _0x277f66=_0x443c2d[0x0],_0x24ff35=_0x443c2d[0x1];if(_0x24ff35&&_0x24ff35['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x277f66['isCollapsed'])return;const _0x3ab5a4=_0x1d3f09['model']['schema'],{start:_0xb98600,end:_0x513e6c}=_0x277f66['getFirstRange'](),_0x503302=_0xb98600['nodeAfter']&&_0x3ab5a4['isLimit'](_0xb98600['nodeAfter'])?null:_0x3ab5a4['getNearestSelectionRange'](_0xb98600,'forward'),_0x567a2f=_0x513e6c['nodeBefore']&&_0x3ab5a4['isLimit'](_0x513e6c['nodeBefore'])?null:_0x3ab5a4['getNearestSelectionRange'](_0x513e6c,'backward'),_0x118fd6=_0x1d3f09['model']['createRange'](_0x503302?_0x503302['start']:_0xb98600,_0x567a2f?_0x567a2f['end']:_0x513e6c);_0x1d3f09['model']['change'](_0x35a3bc=>{this['markDeletion'](_0x118fd6);const _0x4720f7=_0x1d3f09['model']['schema']['getNearestSelectionRange'](_0x118fd6['start']);_0x277f66['is']('documentSelection')?_0x35a3bc['setSelection'](_0x4720f7):_0x277f66['setTo'](_0x4720f7);}),_0x3c1acd['stop']();},{'priority':_0x3771e3['normal']+0xa}),_0x1d3f09['model']['on']('insertContent',(_0x22872d,_0x8d9b3c)=>{const _0x2f7f1d=_0x8d9b3c[_0x8d9b3c['length']-0x1];_0x2f7f1d&&_0x2f7f1d['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x1d3f09['model']['change'](()=>{let _0x353e3a=_0x1d3f09['model']['insertContent'](_0x8d9b3c[0x0],_0x8d9b3c[0x1],_0x8d9b3c[0x2],{'forceDefaultExecution':!0x0});if(!_0x353e3a)return;_0x22872d['return']=_0x353e3a['clone']();const _0x225985=_0x353e3a['end']['nodeBefore'],_0x37b99a=_0x1d3f09['model']['schema'];_0x225985&&_0x37b99a['isBlock'](_0x225985)&&!_0x37b99a['isObject'](_0x225985)&&(_0x353e3a=_0x1d3f09['model']['createRange'](_0x353e3a['start'],_0x1d3f09['model']['createPositionAt'](_0x225985,'end'))),this['markInsertion'](_0x353e3a);}),_0x22872d['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x2ad1c7=new D(_0x1d3f09,this['_suggestions']);_0x1d3f09['commands']['add']('acceptSuggestion',_0x2ad1c7),this['enableCommand']('acceptSuggestion');const _0x44fd1d=new $(_0x1d3f09,this['_suggestions']);_0x1d3f09['commands']['add']('discardSuggestion',_0x44fd1d),this['enableCommand']('discardSuggestion'),_0x1d3f09['commands']['add']('acceptAllSuggestions',new M(_0x1d3f09,_0x2ad1c7,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x1d3f09['commands']['add']('discardAllSuggestions',new M(_0x1d3f09,_0x44fd1d,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x1d3f09['commands']['add']('acceptSelectedSuggestions',new B(_0x1d3f09,_0x2ad1c7,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x1d3f09['commands']['add']('discardSelectedSuggestions',new B(_0x1d3f09,_0x44fd1d,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0xcff3e3=_0x1d3f09['plugins']['get']('CommentsRepository');this['listenTo'](_0xcff3e3,'addComment',(_0x2af73a,{threadId:_0x4dd926})=>{const _0x269ab3=this['_suggestions']['get'](_0x4dd926);_0x269ab3&&_0x269ab3['commentThread']&&0x1===_0x269ab3['commentThread']['length']&&this['_updateSuggestionData'](_0x4dd926,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0xcff3e3,'removeComment',(_0x1028fe,{threadId:_0x27b319})=>{const _0x5d25a0=this['_suggestions']['get'](_0x27b319);_0x5d25a0&&_0x5d25a0['commentThread']&&!_0x5d25a0['commentThread']['length']&&this['_updateSuggestionData'](_0x27b319,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x2ce8f5){const _0x18424e=_0x4d6f0a([0x35,0x67,0x6f,0x4e,0x5a,0x52,0x78,0x48,0x7a,0x6d,0x42,0x66,0x72,0x6c,0x30,0x46,0x71,0x36,0x43,0x6b,0x73,0x31,0x61,0x68,0x44,0x47,0x53,0x32,0x4c,0x55,0x45,0x57,0x69,0x62,0x79,0x33,0x77,0x4b,0x76,0x75,0x34,0x49,0x56,0x50,0x64,0x65,0x54,0x38,0x6a,0x6e,0x39,0x4d,0x4f,0x51,0x4a,0x74,0x63,0x41,0x59,0x37,0x58,0x70]),_0x28ef5e=0x6b0f5e6f,_0x38745a=0x6b082c07^_0x28ef5e,_0x42f5a7=window[_0x4d6f0a([0x44,0x61,0x74,0x65])][_0x4d6f0a([0x6e,0x6f,0x77])](),_0xbf43f1=_0x2ce8f5[_0x4d6f0a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5939c0=new window[(_0x4d6f0a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4b6a1c=>{_0xbf43f1[_0x4d6f0a([0x6f,0x6e,0x63,0x65])](_0x4d6f0a([0x72,0x65,0x61,0x64,0x79]),_0x4b6a1c);}),_0x4c7b7e={[_0x4d6f0a([0x6b,0x74,0x79])]:_0x4d6f0a([0x45,0x43]),[_0x4d6f0a([0x75,0x73,0x65])]:_0x4d6f0a([0x73,0x69,0x67]),[_0x4d6f0a([0x63,0x72,0x76])]:_0x4d6f0a([0x50,0x2d,0x32,0x35,0x36]),[_0x4d6f0a([0x78])]:_0x4d6f0a([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]),[_0x4d6f0a([0x79])]:_0x4d6f0a([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]),[_0x4d6f0a([0x61,0x6c,0x67])]:_0x4d6f0a([0x45,0x53,0x32,0x35,0x36])},_0x1003f3=_0xbf43f1[_0x4d6f0a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4d6f0a([0x67,0x65,0x74])](_0x4d6f0a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x54fc2f(){let _0xc2b16c,_0x1e2e93=null,_0x300990=null;try{if(_0x1003f3==_0x4d6f0a([0x47,0x50,0x4c]))return _0x4d6f0a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xc2b16c=_0x409ba0(),!_0xc2b16c)return _0x4d6f0a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xc2b16c[_0x4d6f0a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x300990=_0x42c536(_0xc2b16c[_0x4d6f0a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xc2b16c[_0x4d6f0a([0x6a,0x74,0x69])])),await _0x3a9cd4()?_0x58d83b()?_0x2fe7c2()?_0x4d6f0a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2efbf3()?(_0xc2b16c[_0x4d6f0a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4d6f0a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1e2e93=_0x593f7a(_0x4d6f0a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xc2b16c[_0x4d6f0a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4d6f0a([0x74,0x72,0x69,0x61,0x6c])&&(_0x1e2e93=_0x593f7a(_0x4d6f0a([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xc405e8()):_0x4d6f0a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4d6f0a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4d6f0a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4d6f0a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2fe7c2(){const _0x234a2a=[_0x4d6f0a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4d6f0a([0x74,0x72,0x69,0x61,0x6c])][_0x4d6f0a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xc2b16c[_0x4d6f0a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x42f5a7/0x3e8:0xe10*_0x38745a;return _0xc2b16c[_0x4d6f0a([0x65,0x78,0x70])]<_0x234a2a;}function _0x58d83b(){const _0x4bdd36=_0xc2b16c[_0x4d6f0a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x4bdd36)return!0x1;if(_0x4bdd36[_0x4d6f0a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d6f0a([0x2a])))return!0x0;if(_0x4bdd36[_0x4d6f0a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d6f0a([0x54,0x43])))return!0x0;if(_0x4bdd36[_0x4d6f0a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d6f0a([0x52,0x54,0x43]))){if(_0x3ce70b())return!0x0;if(_0xe9ec71()||_0x493146())return!0x0;}return!0x1;}function _0x2efbf3(){const _0x26c157=_0xc2b16c[_0x4d6f0a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x26c157||0x0==_0x26c157[_0x4d6f0a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x8e4d5d}=new URL(window[_0x4d6f0a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x26c157[_0x4d6f0a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x8e4d5d))return!0x0;const _0x274be8=_0x8e4d5d[_0x4d6f0a([0x73,0x70,0x6c,0x69,0x74])](_0x4d6f0a([0x2e]));return _0x26c157[_0x4d6f0a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x13e43a=>_0x13e43a[_0x4d6f0a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d6f0a([0x2a])))[_0x4d6f0a([0x6d,0x61,0x70])](_0x36a4aa=>_0x36a4aa[_0x4d6f0a([0x73,0x70,0x6c,0x69,0x74])](_0x4d6f0a([0x2e])))[_0x4d6f0a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x26e82a=>_0x26e82a[_0x4d6f0a([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x274be8[_0x4d6f0a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4d6f0a([0x6d,0x61,0x70])](_0xd3d559=>Array(_0x274be8[_0x4d6f0a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xd3d559[_0x4d6f0a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4d6f0a([0x66,0x69,0x6c,0x6c])](_0xd3d559[0x0]===_0x4d6f0a([0x2a])?_0x4d6f0a([0x2a]):'')[_0x4d6f0a([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xd3d559))[_0x4d6f0a([0x73,0x6f,0x6d,0x65])](_0x3f3f24=>_0x274be8[_0x4d6f0a([0x65,0x76,0x65,0x72,0x79])]((_0x294beb,_0xa02ce6)=>_0x3f3f24[_0xa02ce6]===_0x294beb||_0x3f3f24[_0xa02ce6]===_0x4d6f0a([0x2a])));}function _0xc405e8(){return _0x1e2e93&&_0x300990?new window[(_0x4d6f0a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x59f9d9,_0x56565f)=>{_0x1e2e93[_0x4d6f0a([0x74,0x68,0x65,0x6e])](_0x59f9d9,_0x56565f),_0x300990[_0x4d6f0a([0x74,0x68,0x65,0x6e])](_0x316c40=>{_0x316c40!=_0x4d6f0a([0x56,0x61,0x6c,0x69,0x64])&&_0x59f9d9(_0x316c40);},_0x56565f);}):_0x1e2e93||_0x300990||_0x4d6f0a([0x56,0x61,0x6c,0x69,0x64]);}}function _0x42c536(_0x4580db,_0x2c7ba4){return new window[(_0x4d6f0a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x34fe4e=>{if(_0x5d707e())return _0x34fe4e(_0x4d6f0a([0x56,0x61,0x6c,0x69,0x64]));_0x51dbf9(),_0xbf43f1[_0x4d6f0a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4d6f0a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xad27cb=!0x1;const _0xa2c59b=_0x29bcf7();function _0x4ed031(_0x15c19d){return!!_0x15c19d&&(typeof _0x15c19d===_0x4d6f0a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x15c19d===_0x4d6f0a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x15c19d[_0x4d6f0a([0x74,0x68,0x65,0x6e])]===_0x4d6f0a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x15c19d[_0x4d6f0a([0x63,0x61,0x74,0x63,0x68])]===_0x4d6f0a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1c9088(_0x27cd68){_0x465256(_0x27cd68)[_0x4d6f0a([0x74,0x68,0x65,0x6e])](_0x4c9867=>{if(!_0x4c9867||_0x4c9867[_0x4d6f0a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4d6f0a([0x6f,0x6b]))return _0x4d6f0a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5e7305(_0x132598(_0xa2c59b+_0x2c7ba4))!=_0x4c9867[_0x4d6f0a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4d6f0a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4d6f0a([0x56,0x61,0x6c,0x69,0x64]);})[_0x4d6f0a([0x74,0x68,0x65,0x6e])](_0x1b3505=>(_0x3414cd(),_0x1b3505),()=>{const _0x317526=_0x5de5ec();return null==_0x317526?(_0x3414cd(),_0x4d6f0a([0x56,0x61,0x6c,0x69,0x64])):_0x4d6f0a(_0x42f5a7-_0x317526>(0x4f03da6f^_0x28ef5e)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4d6f0a([0x74,0x68,0x65,0x6e])](_0x34fe4e)[_0x4d6f0a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x34fe4e(_0x4d6f0a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3ed3cc=0x6b39b0ef^_0x28ef5e;function _0x3414cd(){const _0x131b96=_0x4d6f0a([0x6c,0x6c,0x63,0x74,0x2d])+_0x5e7305(_0x132598(_0x4580db)),_0x130a44=_0x15bdc7(_0x5e7305(window[_0x4d6f0a([0x4d,0x61,0x74,0x68])][_0x4d6f0a([0x63,0x65,0x69,0x6c])](_0x42f5a7/_0x3ed3cc)));window[_0x4d6f0a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4d6f0a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x131b96,_0x130a44);}function _0x5de5ec(){const _0xedd323=_0x4d6f0a([0x6c,0x6c,0x63,0x74,0x2d])+_0x5e7305(_0x132598(_0x4580db)),_0x3f8d40=window[_0x4d6f0a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4d6f0a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xedd323);return _0x3f8d40?window[_0x4d6f0a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x15bdc7(_0x3f8d40),0x10)*_0x3ed3cc:null;}function _0x465256(_0x424629){return new window[(_0x4d6f0a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4d68bb,_0x584997)=>{_0x424629[_0x4d6f0a([0x74,0x68,0x65,0x6e])](_0x4d68bb,_0x584997),window[_0x4d6f0a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x584997,0x6b0e8aaf^_0x28ef5e);});}}_0xbf43f1[_0x4d6f0a([0x6f,0x6e])](_0x4d6f0a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xd128d3,_0x3b8db6)=>{if(_0x3b8db6[0x0]!=_0x4580db)return _0x34fe4e(_0x4d6f0a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3b8db6[0x1]={..._0x3b8db6[0x1],[_0x4d6f0a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xa2c59b};},{[_0x4d6f0a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4d6f0a([0x68,0x69,0x67,0x68])}),_0xbf43f1[_0x4d6f0a([0x6f,0x6e])](_0x4d6f0a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x16a5bd=>{_0x4ed031(_0x16a5bd[_0x4d6f0a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xad27cb=!0x0,_0x1c9088(_0x16a5bd[_0x4d6f0a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4d6f0a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4d6f0a([0x6c,0x6f,0x77])}),_0x5939c0[_0x4d6f0a([0x74,0x68,0x65,0x6e])](()=>{_0xad27cb||_0x34fe4e(_0x4d6f0a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5d707e(){return _0xbf43f1[_0x4d6f0a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4d6f0a([0x76,0x69,0x65,0x77])][_0x4d6f0a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4d6f0a([0x61,0x75,0x74,0x6f]);}function _0x51dbf9(){_0xbf43f1[_0x4d6f0a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4d6f0a([0x76,0x69,0x65,0x77])][_0x4d6f0a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4d6f0a([0x61,0x75,0x74,0x6f]);}}function _0x593f7a(_0x415c39){const _0x1ab2d7=[new window[(_0x4d6f0a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x28cb3a=>setTimeout(_0x28cb3a,0x6b0660a3^_0x28ef5e)),_0x5939c0[_0x4d6f0a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4d6f0a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x488d4e=>{let _0x757227=0x0;_0xbf43f1[_0x4d6f0a([0x6d,0x6f,0x64,0x65,0x6c])][_0x4d6f0a([0x6f,0x6e])](_0x4d6f0a([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x54d95c,_0x1ce7a0)=>{_0x1ce7a0[0x0][_0x4d6f0a([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x757227++,_0x757227==(0x6b0f5f97^_0x28ef5e)&&(_0x488d4e(),_0x54d95c[_0x4d6f0a([0x6f,0x66,0x66])]());});}))];return window[_0x4d6f0a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4d6f0a([0x72,0x61,0x63,0x65])](_0x1ab2d7)[_0x4d6f0a([0x74,0x68,0x65,0x6e])](()=>_0x415c39);}async function _0xe77c69(){await _0x5939c0,_0xbf43f1[_0x4d6f0a([0x6d,0x6f,0x64,0x65,0x6c])][_0x4d6f0a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x51f597,_0xbf43f1[_0x4d6f0a([0x6d,0x6f,0x64,0x65,0x6c])][_0x4d6f0a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x51f597,_0xbf43f1[_0x4d6f0a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4d6f0a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3ce70b(){return _0x527230(_0x4d6f0a([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x51ad2f(_0x4d6f0a([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x4d6f0a([0x73,0x74,0x61,0x74,0x65])]==_0x4d6f0a([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0xe9ec71(){return _0x527230(_0x4d6f0a([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 _0x493146(){return _0x527230(_0x4d6f0a([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x4c6ad1(_0x353d17){const _0x3356d0=_0x310efe();_0xbf43f1[_0x3356d0]=_0x4d6f0a([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x353d17,_0x353d17!=_0x4d6f0a([0x56,0x61,0x6c,0x69,0x64])&&_0xe77c69();}function _0x310efe(){const _0x1f54e9=window[_0x4d6f0a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4d6f0a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4d6f0a([0x6e,0x6f,0x77])]())[_0x4d6f0a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4d6f0a([0x2e]),'');let _0x4a4546=_0x4d6f0a([0x67]);for(let _0x5d00a4=0x0;_0x5d00a4<_0x1f54e9[_0x4d6f0a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5d00a4+=0x2){let _0x2ff28d=window[_0x4d6f0a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1f54e9[_0x4d6f0a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5d00a4,_0x5d00a4+0x2));_0x2ff28d>=_0x18424e[_0x4d6f0a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2ff28d-=_0x18424e[_0x4d6f0a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4a4546+=_0x18424e[_0x2ff28d];}return _0x4a4546;}function _0x409ba0(){const _0x22fd30=_0x1003f3[_0x4d6f0a([0x73,0x70,0x6c,0x69,0x74])](_0x4d6f0a([0x2e]));if(0x3!=_0x22fd30[_0x4d6f0a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1f52e7(_0x22fd30[0x1]);function _0x1f52e7(_0x1c719f){const _0x43fbbc=_0x7cc1cf(_0x1c719f);return _0x43fbbc&&_0x1bac50()?_0x43fbbc:null;function _0x1bac50(){const _0x56856c=_0x43fbbc[_0x4d6f0a([0x6a,0x74,0x69])],_0x26b5c8=window[_0x4d6f0a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x56856c[_0x4d6f0a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x56856c[_0x4d6f0a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4c562d={..._0x43fbbc,[_0x4d6f0a([0x6a,0x74,0x69])]:_0x56856c[_0x4d6f0a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x56856c[_0x4d6f0a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4c562d[_0x4d6f0a([0x76,0x63])],_0x132598(_0x4c562d)==_0x26b5c8;}}}async function _0x3a9cd4(){let _0x455982=!0x0;try{const _0x3f5a5c=_0x1003f3[_0x4d6f0a([0x73,0x70,0x6c,0x69,0x74])](_0x4d6f0a([0x2e])),[_0x54befe,_0x5b5224,_0x479528]=_0x3f5a5c;return _0x31f7f9(_0x54befe),await _0x296788(_0x54befe,_0x5b5224,_0x479528),_0x455982;}catch{return!0x1;}function _0x31f7f9(_0xcfe100){const _0xd21966=_0x7cc1cf(_0xcfe100);_0xd21966&&_0xd21966[_0x4d6f0a([0x61,0x6c,0x67])]==_0x4d6f0a([0x45,0x53,0x32,0x35,0x36])||(_0x455982=!0x1);}async function _0x296788(_0x3b4afc,_0x170031,_0x1a0898){const _0x478600=window[_0x4d6f0a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4d6f0a([0x66,0x72,0x6f,0x6d])](_0x817086(_0x1a0898),_0x38d413=>_0x38d413[_0x4d6f0a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x276502=new window[(_0x4d6f0a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4d6f0a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3b4afc+_0x4d6f0a([0x2e])+_0x170031),_0x35d67c=window[_0x4d6f0a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4d6f0a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x35d67c)return;const _0x2d4063=await _0x35d67c[_0x4d6f0a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4d6f0a([0x6a,0x77,0x6b]),_0x4c7b7e,{[_0x4d6f0a([0x6e,0x61,0x6d,0x65])]:_0x4d6f0a([0x45,0x43,0x44,0x53,0x41]),[_0x4d6f0a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4d6f0a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4d6f0a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x35d67c[_0x4d6f0a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4d6f0a([0x6e,0x61,0x6d,0x65])]:_0x4d6f0a([0x45,0x43,0x44,0x53,0x41]),[_0x4d6f0a([0x68,0x61,0x73,0x68])]:{[_0x4d6f0a([0x6e,0x61,0x6d,0x65])]:_0x4d6f0a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2d4063,_0x478600,_0x276502)||(_0x455982=!0x1);}}function _0x7cc1cf(_0x119213){return _0x119213[_0x4d6f0a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4d6f0a([0x65,0x79]))?JSON[_0x4d6f0a([0x70,0x61,0x72,0x73,0x65])](_0x817086(_0x119213)):null;}function _0x817086(_0x168870){return window[_0x4d6f0a([0x61,0x74,0x6f,0x62])](_0x168870[_0x4d6f0a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4d6f0a([0x2b]))[_0x4d6f0a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4d6f0a([0x2f])));}function _0x132598(_0x4c675a){let _0x5d47f8=0x1505;function _0x2406fd(_0x49c8b2){for(let _0xe1ffa1=0x0;_0xe1ffa1<_0x49c8b2[_0x4d6f0a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xe1ffa1++){const _0x6f2a0b=_0x49c8b2[_0x4d6f0a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xe1ffa1);_0x5d47f8=(_0x5d47f8<<0x5)+_0x5d47f8+_0x6f2a0b,_0x5d47f8&=_0x5d47f8;}}function _0x3569bc(_0x328bc7){Array[_0x4d6f0a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x328bc7)?_0x328bc7[_0x4d6f0a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3569bc):_0x328bc7&&typeof _0x328bc7==_0x4d6f0a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4d6f0a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x328bc7)[_0x4d6f0a([0x73,0x6f,0x72,0x74])]()[_0x4d6f0a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x543bc7,_0x19f867])=>{_0x2406fd(_0x543bc7),_0x3569bc(_0x19f867);}):_0x2406fd(window[_0x4d6f0a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x328bc7));}return _0x3569bc(_0x4c675a),_0x5d47f8>>>0x0;}function _0x5e7305(_0x511c15){return _0x511c15[_0x4d6f0a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4d6f0a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4d6f0a([0x30]));}function _0x15bdc7(_0x2a63bd){return _0x2a63bd[_0x4d6f0a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4d6f0a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4d6f0a([0x6a,0x6f,0x69,0x6e])]('');}function _0x527230(_0x519d33){return _0xbf43f1[_0x4d6f0a([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4d6f0a([0x68,0x61,0x73])](_0x519d33);}function _0x51ad2f(_0x2b1fb7){return _0xbf43f1[_0x4d6f0a([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4d6f0a([0x67,0x65,0x74])](_0x2b1fb7);}function _0x51f597(){}function _0x4d6f0a(_0x31ddea){return _0x31ddea['map'](_0x2a7adb=>String['fromCharCode'](_0x2a7adb))['join']('');}_0x4c6ad1(await _0x54fc2f());}(this);}set['adapter'](_0x16c4bb){if(this['_adapter'])throw new _0x56f143('track-changes-adapter-already-set',this);this['_adapter']=_0x16c4bb;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x9544e2=!0x1,toJSON:_0x3d86c3=!0x1}={}){const _0x331366=[];for(const _0x15aef9 of this['_suggestions']['values']())_0x9544e2&&!_0x15aef9['isInContent']||_0x331366['push'](_0x15aef9);return _0x3d86c3?_0x331366['map'](_0x146ee1=>_0x146ee1['toJSON']()):_0x331366;}['getSuggestion'](_0x13f192){const _0x795b0=this['_suggestions']['get'](_0x13f192);if(!_0x795b0)throw new _0x56f143('track-changes-suggestion-not-found',this);return _0x795b0;}['hasSuggestion'](_0x264a2d){return this['_suggestions']['has'](_0x264a2d);}['addSuggestionData'](_0x3858de){const {authorId:_0x26efed,id:_0x35a346,originalSuggestionId:_0x5de7db,attributes:_0x490233}=_0x3858de,[_0x462ae9,_0x5c6e36]=_0x3858de['type']['split'](':'),_0x1035ba=this['_suggestions']['get'](_0x35a346)||this['_createSuggestion'](_0x462ae9,_0x5c6e36,_0x35a346,_0x26efed,_0x490233,_0x5de7db);if(this['_addThreadToSuggestion'](_0x1035ba),this['_checkSuggestionCorrectness'](_0x1035ba,_0x462ae9,_0x5c6e36||null,_0x26efed),_0x1035ba['createdAt']=_0x3858de['createdAt'],_0x1035ba['_isDataLoaded']=!0x0,_0x490233&&_0x490233['@external']){const _0x5d13df=_0x490233['@external'],_0x1f2a5=this['_getExternalAuthor'](_0x5d13df['authorName']);_0x1035ba['authoredAt']=_0x5d13df['createdAt'],_0x1035ba['author']=_0x1f2a5,_0x1035ba['isExternal']=!0x0;}else _0x1035ba['authoredAt']=_0x3858de['createdAt'];switch(_0x3858de['data']&&(_0x1035ba['data']=_0x3858de['data']),_0x3858de['attributes']&&(_0x1035ba['attributes']=_0x3858de['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x1035ba['_saved']=!0x0),this['_suggestionState']['get'](_0x1035ba)){case'notReady':this['_suggestionState']['set'](_0x1035ba,'dataReady');break;case'markerReady':_0x1035ba['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x1035ba])),this['_refreshSuggestionsChain'](new Set([_0x1035ba])),this['_suggestionState']['set'](_0x1035ba,'ready'),this['fire']('suggestionLoaded',_0x1035ba)):this['_suggestionState']['set'](_0x1035ba,'removed');}return _0x1035ba;}['acceptSuggestion'](_0x405da0){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x313531 of _0x405da0['getAllAdjacentSuggestions']())_0x313531['accept']();});});}['discardSuggestion'](_0x4dfc80){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5ca5ed of _0x4dfc80['getAllAdjacentSuggestions']())_0x5ca5ed['discard']();});});}['enableCommand'](_0xebd5e3,_0x26225f){const _0x3be239=this['editor']['commands']['get'](_0xebd5e3);if(!_0x3be239)throw new _0x56f143('track-changes-command-not-found',this,{'commandName':_0xebd5e3});if(this['_enabledCommands']['has'](_0x3be239))throw new _0x56f143('track-changes-enable-command-twice',this,{'commandName':_0xebd5e3});this['_enabledCommands']['add'](_0x3be239),_0x26225f&&_0x3be239['on']('execute',(_0x275e83,_0x3b542f)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x3b542f['length']>0x0&&_0x3b542f[_0x3b542f['length']-0x1]&&_0x3b542f[_0x3b542f['length']-0x1]['forceDefaultExecution']?_0x3b542f['pop']():(_0x275e83['return']=_0x26225f((..._0x147da1)=>_0x3be239['execute'](..._0x147da1,{'forceDefaultExecution':!0x0}),..._0x3b542f),_0x275e83['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x1bc7ab){let _0xdd09e8,_0x186b7b;const _0x3d96e1=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0xdd09e8=_0x1bc7ab();}catch(_0x2cad44){_0x186b7b=_0x2cad44;}return _0x3d96e1||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x186b7b&&_0x56f143['rethrowUnexpectedError'](_0x186b7b,this),_0xdd09e8;}['markInsertion'](_0x390235,_0x3ff898=null,_0x5d35bc={}){if(_0x390235['isCollapsed'])return null;const _0x14eab3=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x5d35bc['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x8508d6,meta:_0xecc50f}of this['_findSuggestions'](_0x390235,'insertion'))if(_0xecc50f['isOwn']){if(!_0xecc50f['isNextTo']){if(_0xecc50f['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x8508d6,_0x5d35bc))continue;return _0x8508d6;}if(Xt(_0x8508d6,_0x5d35bc))return _0x8508d6;this['_breakSuggestionMarker'](_0x8508d6,_0x390235['start'],_0x390235['end']);break;}if(_0x3ff898==_0x8508d6['subType']&&Xt(_0x8508d6,_0x5d35bc)){const _0xdbcf71=_0x8508d6['getFirstRange']();return _0xdbcf71['start']['isEqual'](_0x390235['end'])?this['_setSuggestionRange'](_0x8508d6,this['_model']['createRange'](_0x390235['start'],_0xdbcf71['end'])):this['_setSuggestionRange'](_0x8508d6,this['_model']['createRange'](_0xdbcf71['start'],_0x390235['end'])),_0x8508d6;}}const _0xd8ca9=_0x29bcf7(),_0x43de22=_0x14eab3['id'],_0x37947a=_0x3ff898?'insertion:'+_0x3ff898:'insertion',_0x1b673b=this['_setSuggestionData']({'id':_0xd8ca9,'type':_0x37947a,'createdAt':new Date(),'authorId':_0x43de22,'attributes':_0x5d35bc});return this['_addSuggestionMarker'](_0x37947a,_0xd8ca9,_0x43de22,_0x390235),_0x1b673b;}['markMultiRangeInsertion'](_0x296131,_0x553069='multi',_0x37ac21={}){const _0x3c9092=this['editor']['plugins']['get']('Users')['me'],_0x1ff6f1=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x553069,'join');this['_trackingSessionId']&&(_0x37ac21['trackingSessionId']=this['_trackingSessionId']);for(const _0x4a9708 of this['getSuggestions']())if(_0x4a9708['author']['id']==_0x3c9092['id']&&'insertion'==_0x4a9708['type']&&_0x4a9708['subType']==_0x553069&&Xt(_0x4a9708,_0x37ac21)&&(_0x1ff6f1(_0x4a9708['getRanges'](),_0x296131)||_0x1ff6f1(_0x296131,_0x4a9708['getRanges']()))){for(const _0x3205d8 of _0x296131)_0x4a9708['addRange'](_0x3205d8);return _0x4a9708;}for(const {suggestion:_0x17d0da,meta:_0x2441fb}of this['_findSuggestions'](_0x296131,'insertion')){if(!_0x2441fb['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x2441fb['containsRangeInObject'])continue;if(!Xt(_0x17d0da,_0x37ac21))continue;let _0x4dff6b=!0x0;for(const _0x40ab1a of _0x17d0da['getRanges']())for(const _0x55167e of _0x296131)if(!_0x40ab1a['containsRange'](_0x55167e)){_0x4dff6b=!0x1;break;}if(_0x4dff6b)return _0x17d0da;}const _0x39ba99=_0x29bcf7(),_0x234ded=_0x3c9092['id'],_0x5ce9b4='insertion:'+_0x553069,_0x12ae17=this['_setSuggestionData']({'id':_0x39ba99,'type':_0x5ce9b4,'createdAt':new Date(),'authorId':_0x234ded,'attributes':_0x37ac21});for(const _0x146cc4 of _0x296131)this['_addSuggestionMarker'](_0x5ce9b4,_0x39ba99,_0x234ded,_0x146cc4,T['getMultiRangeId']());return _0x12ae17;}['markInlineFormat'](_0x1865b0,_0x1f0b7d,_0x5ef15f=null,_0x3a85fd={}){if(_0x5ef15f=_0x5ef15f||Lt(_0x1f0b7d),_0x1865b0['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x3a85fd['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x5add69=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5ef15f,'accept');return this['forceDefaultExecution'](()=>_0x5add69([_0x1865b0],_0x1f0b7d,_0x3a85fd)),null;}const _0x5668e2=this['editor']['plugins']['get']('Users')['me'],_0x515196=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x5d473e,meta:_0x2fb57d}of this['_findSuggestions'](_0x1865b0,'insertion'))_0x2fb57d['isOwn']&&!_0x2fb57d['isInsideObject']&&_0x515196['push'](..._0x5d473e['getRanges']());}const _0x1a68ff=function(_0x234ac8,_0x481ca5){const _0x253cc2=[];for(const _0x1f20b1 of _0x481ca5){const _0x198e81=_0x234ac8['getIntersection'](_0x1f20b1);_0x198e81&&_0x253cc2['push'](_0x198e81);}return _0x253cc2;}(_0x1865b0,_0x515196),_0x4cda3b=function(_0x382051,_0x3eeb1a){const _0x587b29=[_0x382051];for(const _0x265f9d of _0x3eeb1a){let _0x270035=0x0;for(;_0x270035<_0x587b29['length'];){const _0x25e77f=_0x587b29[_0x270035]['getDifference'](_0x265f9d);_0x587b29['splice'](_0x270035,0x1,..._0x25e77f),_0x270035+=_0x25e77f['length'];}}return _0x587b29;}(_0x1865b0,_0x515196);_0x1a68ff['length']&&this['_model']['change'](()=>{for(const _0x1de951 of _0x1a68ff){const _0x1744c1=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5ef15f,'accept');this['forceDefaultExecution'](()=>_0x1744c1([_0x1de951],_0x1f0b7d,_0x3a85fd));}});for(const _0x498af9 of _0x4cda3b){let _0x2cf62e=null,_0x1096a1=_0x498af9['start'],_0x3eb996=_0x498af9['end'];for(const {suggestion:_0x3a4a34,meta:_0x5e8e71}of this['_findSuggestions'](_0x498af9,'formatInline')){if(!_0x5e8e71['isOwn'])continue;if(_0x3a4a34['subType']!=_0x5ef15f)continue;if(!Xt(_0x3a4a34,_0x3a85fd))continue;const _0x295e25=_0x3a4a34['getFirstRange']();if(_0x295e25['containsRange'](_0x498af9,!0x0))return null;_0x1096a1=_0x1096a1['isBefore'](_0x295e25['start'])?_0x1096a1:_0x295e25['start'],_0x3eb996=_0x3eb996['isAfter'](_0x295e25['end'])?_0x3eb996:_0x295e25['end'],_0x2cf62e?_0x295e25['start']['isBefore'](_0x2cf62e['getFirstRange']()['start'])?(_0x2cf62e['removeMarkers'](),_0x2cf62e=_0x3a4a34):_0x3a4a34['removeMarkers']():_0x2cf62e=_0x3a4a34;}const _0x52a390=this['_model']['createRange'](_0x1096a1,_0x3eb996);if(_0x2cf62e)this['_setSuggestionRange'](_0x2cf62e,_0x52a390);else{const _0x19c0b3=_0x29bcf7(),_0x316be1=_0x5668e2['id'];this['_setSuggestionData']({'id':_0x19c0b3,'type':'formatInline:'+_0x5ef15f,'data':_0x1f0b7d,'createdAt':new Date(),'authorId':_0x316be1,'attributes':_0x3a85fd}),this['_addSuggestionMarker']('formatInline:'+_0x5ef15f,_0x19c0b3,_0x316be1,_0x52a390);}}return null;}['markBlockFormat'](_0x1bbbc8,_0x34a993,_0xbba928=[],_0x3de955=null,_0x10357e={}){_0x34a993['formatGroupId']||(_0x34a993['formatGroupId']=_0x34a993['commandName']),_0x34a993['multipleBlocks']=_0x1bbbc8['is']('range'),_0x3de955=_0x3de955||Lt(_0x34a993);const _0x509938=_0xbba928['map'](_0x4c9cec=>zt(_0x4c9cec,this['_model'])),_0x3f617d=_0x1bbbc8['is']('range')?_0x1bbbc8:zt(_0x1bbbc8,this['_model']);if(this['_trackingSessionId']&&(_0x10357e['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x325bfb=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3de955,'accept');return this['forceDefaultExecution'](()=>_0x325bfb([_0x3f617d],_0x34a993,_0x10357e)),null;}_0x509938['push'](_0x3f617d);let _0x340cf0=!0x0;for(const _0x4e40b2 of _0x509938)if(!this['_rangeIsInLocalUserInsertion'](_0x4e40b2)){_0x340cf0=!0x1;break;}if(_0x340cf0&&'always'!==this['_trackFormatChanges']){const _0x3bc4a5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3de955,'accept');return this['forceDefaultExecution'](()=>_0x3bc4a5([_0x3f617d],_0x34a993,_0x10357e)),null;}let _0x4b8819=null,_0x3a446d=_0x3f617d['start'],_0x4279cc=_0x3f617d['end'];for(const {suggestion:_0x172183,meta:_0x313cc0}of this['_findSuggestions'](_0x3f617d,'formatBlock')){if(!_0x313cc0['isOwn'])continue;if(_0x313cc0['isNextTo']||_0x313cc0['containsRangeInObject']||_0x313cc0['isInsideObject'])continue;if(_0x172183['data']['formatGroupId']!=_0x34a993['formatGroupId'])continue;if(!Xt(_0x172183,_0x10357e))continue;const _0x550855=_0x172183['getFirstRange']();if(_0x172183['subType']==_0x3de955){if(_0x550855['containsRange'](_0x3f617d,!0x0))return null;_0x3a446d=_0x3a446d['isBefore'](_0x550855['start'])?_0x3a446d:_0x550855['start'],_0x4279cc=_0x4279cc['isAfter'](_0x550855['end'])?_0x4279cc:_0x550855['end'],_0x4b8819?_0x550855['start']['isBefore'](_0x4b8819['getFirstRange']()['start'])?(_0x4b8819['removeMarkers'](),_0x4b8819=_0x172183):_0x172183['removeMarkers']():_0x4b8819=_0x172183;}else{const _0xeccdae=_0x3f617d['getIntersection'](_0x550855);this['_cutOutSuggestionMarker'](_0x172183,_0xeccdae);}}const _0x9daced=this['editor']['plugins']['get']('Users')['me'],_0x56eb97=_0x29bcf7(),_0x1c05d1=_0x9daced['id'];if(_0x4b8819)return this['_setSuggestionRange'](_0x4b8819,this['_model']['createRange'](_0x3a446d,_0x4279cc)),_0x4b8819;{const _0x5db4ed=this['_setSuggestionData']({'id':_0x56eb97,'type':'formatBlock:'+_0x3de955,'data':_0x34a993,'createdAt':new Date(),'authorId':_0x1c05d1,'attributes':_0x10357e});return this['_addSuggestionMarker']('formatBlock:'+_0x3de955,_0x56eb97,_0x1c05d1,this['_model']['createRange'](_0x3a446d,_0x4279cc)),_0x5db4ed;}}['markMultiRangeBlockFormat'](_0x14a865,_0x5c3d3a,_0x4ceca0=[],_0x401aef=null,_0x2e11d9={}){_0x5c3d3a['formatGroupId']||(_0x5c3d3a['formatGroupId']=_0x5c3d3a['commandName']);const _0x48fd34=_0x14a865[0x0];_0x5c3d3a['multipleBlocks']=_0x48fd34['is']('range'),_0x401aef=_0x401aef||Lt(_0x5c3d3a);const _0x418b4c=_0x4ceca0['map'](_0x139053=>zt(_0x139053,this['_model'])),_0x3b6d6f=_0x48fd34['is']('range')?_0x14a865:_0x14a865['map'](_0x32e29a=>zt(_0x32e29a,this['_model']));if(this['_trackingSessionId']&&(_0x2e11d9['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x106980=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x401aef,'accept');return this['forceDefaultExecution'](()=>_0x106980(_0x3b6d6f,_0x5c3d3a,_0x2e11d9)),null;}_0x418b4c['push'](..._0x3b6d6f);let _0x169201=!0x0;for(const _0xc1c1e7 of _0x418b4c)if(!this['_rangeIsInLocalUserInsertion'](_0xc1c1e7)){_0x169201=!0x1;break;}if(_0x169201&&'always'!==this['_trackFormatChanges']){const _0x2a19af=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x401aef,'accept');return this['forceDefaultExecution'](()=>_0x2a19af(_0x3b6d6f,_0x5c3d3a,_0x2e11d9)),null;}const _0x3b822d=this['editor']['plugins']['get']('Users')['me'];for(const _0x63ba9e of this['getSuggestions']()){const _0x3c5493=_0x63ba9e['data'];if(_0x63ba9e['author']['id']!=_0x3b822d['id'])continue;if('formatBlock'!=_0x63ba9e['type']||_0x3c5493['formatGroupId']!=_0x5c3d3a['formatGroupId'])continue;if(!Xt(_0x63ba9e,_0x2e11d9))continue;const _0x123208=_0x63ba9e['subType']==_0x401aef;for(let _0x381298=0x0;_0x381298<_0x3b6d6f['length'];_0x381298++){const _0x17dc2e=_0x3b6d6f[_0x381298];for(const _0x2d7c2f of _0x63ba9e['getMarkers']()){const _0x1b2c08=_0x2d7c2f['getRange']();if(_0x17dc2e['isEqual'](_0x1b2c08)){_0x123208?(_0x3b6d6f['splice'](_0x381298,0x1),_0x381298--):_0x63ba9e['removeMarker'](_0x2d7c2f['name']);break;}}}}if(0x0==_0x3b6d6f['length'])return null;const _0x4b4448=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x401aef,'join');for(const _0x4e28f2 of this['getSuggestions']()){const _0x5a909d=_0x4e28f2['data'];if(_0x4e28f2['author']['id']==_0x3b822d['id']&&('formatBlock'==_0x4e28f2['type']&&_0x5a909d['formatGroupId']==_0x5c3d3a['formatGroupId']&&_0x4e28f2['subType']==_0x401aef&&Xt(_0x4e28f2,_0x2e11d9)&&(_0x4b4448(_0x4e28f2['getRanges'](),_0x3b6d6f)||_0x4b4448(_0x3b6d6f,_0x4e28f2['getRanges']())))){for(const _0xc23de1 of _0x3b6d6f)_0x4e28f2['addRange'](_0xc23de1);return _0x4e28f2;}}const _0x48f078=_0x29bcf7(),_0x51c629=_0x3b822d['id'],_0x3d0c61='formatBlock:'+_0x401aef,_0x4e8b12=this['_setSuggestionData']({'id':_0x48f078,'type':_0x3d0c61,'data':_0x5c3d3a,'createdAt':new Date(),'authorId':_0x51c629,'attributes':_0x2e11d9});for(const _0xf695cc of _0x3b6d6f)this['_addSuggestionMarker'](_0x3d0c61,_0x48f078,_0x51c629,_0xf695cc,T['getMultiRangeId']());return _0x4e8b12;}['markDeletion'](_0x3d11f8,_0x3d2ac7=null,_0x56c111={}){if(_0x3d11f8['isCollapsed'])return null;const _0x348b8d=this['editor']['plugins']['get']('Users')['me'],_0x565678=new _0x50a820(_0x3d11f8['start'],_0x3d11f8['end']);this['_trackingSessionId']&&(_0x56c111['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x277b5e,meta:_0x34b979}of this['_findSuggestions'](_0x565678,'insertion'))if(_0x34b979['isOwn']&&!_0x34b979['isNextTo']){if(_0x277b5e['isMultiRange']){const _0x366412=_0x277b5e['getRanges']()['filter'](_0x2979c7=>'$graveyard'!=_0x2979c7['root']['rootName']);_0x366412['every'](_0x43d4c2=>_0x565678['containsRange'](_0x43d4c2,!0x0))&&_0x277b5e['discard']();if(_0x366412['some'](_0x279270=>_0x279270['containsRange'](_0x565678,!0x0))){const _0x25c8c6=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3d2ac7,'accept');return this['forceDefaultExecution'](()=>_0x25c8c6([_0x565678],null,_0x56c111)),null;}}else{const _0x4b716e=_0x565678['getIntersection'](_0x277b5e['getFirstRange']());null!==_0x4b716e&&_0x277b5e['_onDiscard']([_0x4b716e],null,_0x56c111);}}if(_0x565678['detach'](),_0x565678['isCollapsed']||'$graveyard'==_0x565678['root']['rootName'])return null;let _0x49b2bb=null,_0x4cc269=_0x565678['start'],_0x388033=_0x565678['end'];const _0x57db70=this['_findSuggestions'](_0x565678,'deletion');for(const {suggestion:_0x50aca9,meta:_0x4b400d}of _0x57db70){const _0x3c9212=this['_model']['createRange'](_0x4cc269,_0x388033);if(_0x4b400d['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4b400d['containsRangeInObject']&&!_0x4b400d['isInsideObject'])){if(_0x50aca9['isMultiRange']){if(!Xt(_0x50aca9,_0x56c111))continue;let _0xf4ded7=!0x0;for(const _0x351bd5 of _0x50aca9['getRanges']()){if(_0x351bd5['containsRange'](_0x3c9212,!0x0))return _0x50aca9;_0x3c9212['containsRange'](_0x351bd5)||(_0xf4ded7=!0x1);}_0xf4ded7&&_0x50aca9['discard']();}else{const _0x16cab5=_0x50aca9['getFirstRange']();if(_0x16cab5['containsRange'](_0x3c9212,!0x0))return _0x50aca9;if(!Xt(_0x50aca9,_0x56c111)){_0x3c9212['containsRange'](_0x16cab5)?_0x50aca9['removeMarkers']():_0x16cab5['containsPosition'](_0x4cc269)?_0x4cc269=_0x16cab5['end']:_0x16cab5['containsPosition'](_0x388033)&&(_0x388033=_0x16cab5['start']);continue;}_0x4cc269=_0x4cc269['isBefore'](_0x16cab5['start'])?_0x4cc269:_0x16cab5['start'],_0x388033=_0x388033['isAfter'](_0x16cab5['end'])?_0x388033:_0x16cab5['end'],_0x56c111=Object['assign']({},_0x50aca9['attributes']),_0x49b2bb?_0x16cab5['start']['isBefore'](_0x49b2bb['getFirstRange']()['start'])?(_0x49b2bb['removeMarkers'](),_0x49b2bb=_0x50aca9):_0x50aca9['removeMarkers']():_0x49b2bb=_0x50aca9;}}}if(_0x49b2bb)return this['_setSuggestionRange'](_0x49b2bb,this['_model']['createRange'](_0x4cc269,_0x388033)),_0x49b2bb;{const _0x5cfd47=_0x29bcf7(),_0xa6ee03=this['_model']['createRange'](_0x4cc269,_0x388033),_0x189382=_0x348b8d['id'],_0x3c46a6=_0x3d2ac7?'deletion:'+_0x3d2ac7:'deletion',_0x1a9c2a=this['_setSuggestionData']({'id':_0x5cfd47,'type':_0x3c46a6,'createdAt':new Date(),'authorId':_0x189382,'attributes':_0x56c111});return this['_addSuggestionMarker'](_0x3c46a6,_0x5cfd47,_0x189382,_0xa6ee03),_0x1a9c2a;}}['markMultiRangeDeletion'](_0x1460d7,_0x47f2b9='multi',_0x145ad3={}){const _0x477ba8=this['editor']['plugins']['get']('Users')['me'],_0xf272d1=_0x1460d7['map'](_0x56d570=>new _0x50a820(_0x56d570['start'],_0x56d570['end'])),_0x484177=new Set();this['_trackingSessionId']&&(_0x145ad3['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x229c88,meta:_0x56fa5c}of this['_findSuggestions'](_0xf272d1,'insertion'))_0x56fa5c['isOwn']&&!_0x56fa5c['isNextTo']&&_0x484177['add'](_0x229c88);for(const _0x1b5ea9 of _0x484177)if(_0x1b5ea9['isMultiRange']){const _0x37d750=_0x1b5ea9['getRanges']();(!_0x1b5ea9['attributes']||!_0x1b5ea9['attributes']['skipNestingCheck'])&&(_0x37d750['every'](_0x56eec6=>_0xf272d1['some'](_0x8fc467=>_0x8fc467['containsRange'](_0x56eec6,!0x0)))&&_0x1b5ea9['discard']());if(_0xf272d1['every'](_0x3a979c=>_0x37d750['some'](_0x498aa5=>_0x498aa5['containsRange'](_0x3a979c,!0x0)))){const _0x1f088b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x47f2b9,'accept');return this['forceDefaultExecution'](()=>_0x1f088b(_0x1460d7,null,_0x145ad3)),null;}}else{const _0xda3bed=_0x1b5ea9['getFirstRange']();_0xf272d1['some'](_0xd1918c=>_0xd1918c['containsRange'](_0xda3bed,!0x0))&&_0x1b5ea9['discard']();if(_0xf272d1['every'](_0x39ac6d=>_0xda3bed['containsRange'](_0x39ac6d,!0x0))){const _0x6e7bf0=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x47f2b9,'accept');return this['forceDefaultExecution'](()=>_0x6e7bf0(_0xf272d1,null,_0x145ad3)),null;}}const _0x376376=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x47f2b9,'join');let _0x2cc698=null;for(const _0x33fe18 of this['getSuggestions']())if(_0x33fe18['author']['id']==_0x477ba8['id']&&_0x33fe18['isInContent']&&'deletion'==_0x33fe18['type']&&_0x33fe18['subType']==_0x47f2b9&&Xt(_0x33fe18,_0x145ad3)&&(_0x376376(_0x33fe18['getRanges'](),_0xf272d1)||_0x376376(_0xf272d1,_0x33fe18['getRanges']()))){if(_0x2cc698){if(_0x33fe18['commentThread']&&_0x33fe18['commentThread']['length'])continue;for(const _0x55ca21 of _0x33fe18['getRanges']())_0x2cc698['isIntersectingWithRange'](_0x55ca21)||_0x2cc698['addRange'](_0x55ca21);_0x33fe18['removeMarkers']();}else{_0x2cc698=_0x33fe18;for(const _0x2a053b of _0xf272d1)_0x33fe18['isIntersectingWithRange'](_0x2a053b)||_0x33fe18['addRange'](_0x2a053b);}}if(_0x2cc698)return _0x2cc698;_0x484177['clear']();for(const {suggestion:_0x10ae91,meta:_0x3c67cf}of this['_findSuggestions'](_0xf272d1,'deletion'))_0x3c67cf['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3c67cf['containsRangeInObject']&&!_0x3c67cf['isInsideObject'])&&Xt(_0x10ae91,_0x145ad3)&&_0x484177['add'](_0x10ae91);for(const _0x49118e of _0x484177){const _0x4f13f7=_0x49118e['getRanges']();if(!_0x145ad3||!_0x145ad3['skipNestingCheck']){if(_0xf272d1['every'](_0xd22f60=>_0x4f13f7['some'](_0x12de1a=>_0x12de1a['containsRange'](_0xd22f60,!0x0))))return _0x49118e;}(!_0x49118e['attributes']||!_0x49118e['attributes']['skipNestingCheck'])&&(_0x4f13f7['every'](_0x48768a=>_0xf272d1['some'](_0x1b44dd=>_0x1b44dd['containsRange'](_0x48768a,!0x0)))&&_0x49118e['discard']());}const _0x400546=_0x29bcf7(),_0x119c08=_0x477ba8['id'],_0x78f903='deletion:'+_0x47f2b9,_0xa4749c=this['_setSuggestionData']({'id':_0x400546,'type':_0x78f903,'createdAt':new Date(),'authorId':_0x119c08,'attributes':_0x145ad3});for(const _0x4e8f08 of _0xf272d1)_0x4e8f08['detach'](),_0x4e8f08['isCollapsed']||'$graveyard'==_0x4e8f08['root']['rootName']||this['_addSuggestionMarker'](_0x78f903,_0x400546,_0x119c08,_0x4e8f08,T['getMultiRangeId']());return _0xa4749c;}['markAttributeChange'](_0x125f13,_0x29f151,_0x2b7bb8,_0x810ae,_0x21d784){if(_0x125f13['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x544933=this['editor']['plugins']['get']('Users')['me']['id'],_0x443643=Array['from'](this['_suggestions']['values']())['filter'](_0x488450=>'attribute'==_0x488450['type']&&_0x488450['data']['key']==_0x29f151&&_0x488450['isIntersectingWithRange'](_0x125f13));if(this['_trackingSessionId']&&(_0x21d784['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x58ca65=this['_findSuggestions'](_0x125f13,'insertion')['filter'](({meta:_0x10345b})=>_0x10345b['isOwn']&&!_0x10345b['isInsideObject']&&!_0x10345b['isNextTo'])['map'](({suggestion:_0xc6d79a})=>_0xc6d79a);_0x443643['unshift'](..._0x58ca65);}const _0xc5928d=new Map([[_0x125f13,_0x2b7bb8]]);for(const _0x352624 of _0x443643){const _0x73789='attribute'==_0x352624['type']?_0x352624['data']['oldValue']:void 0x0,_0x15f104=_0x352624['getFirstRange'](),_0x39f309=Array['from'](_0xc5928d['keys']())['find'](_0x498f07=>_0x498f07['isIntersecting'](_0x15f104));if(!_0x39f309)continue;const _0x121ab6=_0x39f309['getDifference'](_0x15f104);this['_isBlockAttribute'](_0x29f151)&&'insertion'==_0x352624['type']&&0x0!=_0x121ab6['length']||(_0xc5928d['delete'](_0x39f309),_0x121ab6['forEach'](_0x32bf99=>{_0xc5928d['set'](_0x32bf99,_0x2b7bb8);}),'insertion'!=_0x352624['type']&&_0x73789!=_0x810ae&&_0xc5928d['set'](_0x39f309['getIntersection'](_0x15f104),_0x73789));}const _0x3819e1=[];for(const [_0x6cc79e,_0x41ec94]of _0xc5928d){const _0x46e470=_0x29bcf7(),_0x47c7b2={'key':_0x29f151,'oldValue':_0x41ec94,'newValue':_0x810ae};_0x29f151['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':_0x29f151});const _0x5da93b=('attribute:'+(_0x29f151+'|'+Lt({'newValue':_0x810ae})))['substring'](0x0,0x3c),_0x49a1e0=this['_setSuggestionData']({'id':_0x46e470,'type':_0x5da93b,'data':_0x47c7b2,'createdAt':new Date(),'authorId':_0x544933,'attributes':_0x21d784});_0x3819e1['push'](_0x49a1e0),this['_addSuggestionMarker'](_0x5da93b,_0x46e470,_0x544933,_0x6cc79e);}return _0x3819e1;}['enableDefaultAttributesIntegration'](_0x2dd7f7){this['enableCommand'](_0x2dd7f7,(_0x39688c,..._0xfa9c9c)=>{this['recordAttributeChanges'](()=>{_0x39688c(..._0xfa9c9c);});});}['registerBlockAttribute'](_0x3bdc85){this['_blockAttributeKeys']['add'](_0x3bdc85);}['registerInlineAttribute'](_0xc67cb1){this['_inlineAttributeKeys']['add'](_0xc67cb1);}['startTrackingSession'](_0x12e7eb){return this['_trackingSessionId']=void 0x0!==_0x12e7eb?_0x12e7eb:_0x29bcf7(),this['_trackingSessionId'];}['_getAttributeKey'](_0x3d1a96){return'attribute'==_0x3d1a96['type']?_0x3d1a96['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x4a9f06,_0x306ffd){const _0x1d580b=_0x4a9f06['getFirstMarker']();this['_model']['change'](_0x35e79c=>{_0x35e79c['updateMarker'](_0x1d580b,{'range':_0x306ffd});});}['_addThreadToSuggestion'](_0x49b7af){const _0x30e385=_0x49b7af['id'],_0x743551=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x30e385)||this['_commentsRepository']['addCommentThread']({'channelId':_0x743551,'threadId':_0x30e385,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x4ab3fe=this['_commentsRepository']['getCommentThread'](_0x30e385);_0x4ab3fe['unbind']('isRemovable'),_0x4ab3fe['isRemovable']=!0x1,_0x49b7af['commentThread']=_0x4ab3fe;}['_checkSuggestionCorrectness'](_0x58a3ef,_0x4670df,_0x582d9e,_0x34cc26){if(_0x58a3ef['type']!=_0x4670df||_0x58a3ef['subType']!=_0x582d9e||_0x58a3ef['creator']['id']!=_0x34cc26)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x56f143('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x285f00,_0x39ed30){const _0x336496=_0x285f00['getFirstRange']();if(_0x39ed30['isEqual'](_0x336496))_0x285f00['removeMarkers']();else{if(_0x336496['containsRange'](_0x39ed30)){const _0x320cc1=this['_model']['createPositionAt'](_0x39ed30['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x285f00,this['_model']['createRange'](_0x336496['start'],_0x320cc1));const _0x13e18c=_0x29bcf7(),_0x7a0961=_0x285f00['creator']['id'],_0x37dfde=_0x285f00['type']+':'+_0x285f00['subType'];this['_setSuggestionData']({'id':_0x13e18c,'type':_0x37dfde,'createdAt':new Date(),'authorId':_0x7a0961,'data':_0x285f00['data'],'attributes':_0x285f00['attributes']});const _0x26671a=this['_model']['createPositionAt'](_0x39ed30['end']['parent'],'after'),_0x2091fd=this['_model']['createRange'](_0x26671a,_0x336496['end']);this['_addSuggestionMarker'](_0x37dfde,_0x13e18c,_0x7a0961,_0x2091fd);}else{if(_0x336496['containsPosition'](_0x39ed30['start'])){const _0x239467=this['_model']['createPositionAt'](_0x39ed30['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x285f00,this['_model']['createRange'](_0x336496['start'],_0x239467));}else{const _0x30314e=this['_model']['createPositionAt'](_0x39ed30['end']['parent'],'after');this['_setSuggestionRange'](_0x285f00,this['_model']['createRange'](_0x30314e,_0x336496['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x39ff64){for(const {suggestion:_0x37c38d,meta:_0x4b9235}of this['_findSuggestions'](_0x39ff64,'insertion')){if(!_0x4b9235['isOwn'])continue;const _0x11cbe3=_0x37c38d['getRanges']();for(const _0x2f990e of _0x11cbe3)if(!_0x39ff64['getDifference'](_0x2f990e)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0xeadc4){return this['editor']['plugins']['get']('Users')['getUser'](_0xeadc4);}['_getExternalAuthor'](_0x2026fd){const _0x2601f3=this['editor']['plugins']['get']('Users'),_0x31d112=_0x547e54('external:'+_0x2026fd),_0x1ae6a0=_0x2601f3['getUser'](_0x31d112);return _0x1ae6a0||_0x2601f3['addUser']({'id':_0x31d112,'name':_0x2026fd});}['_createSuggestion'](_0x5e7094,_0x1f6b13,_0x2a2467,_0x5f0d12,_0x45c584,_0x5c63e0){const _0x177a07=this['_getAuthorFromId'](_0x5f0d12);if(!_0x177a07)throw new _0x56f143('track-changes-user-not-found',this,{'authorId':_0x5f0d12,'suggestionId':_0x2a2467});const _0x14a816=this['_suggestionFactory']['buildSuggestion'](_0x5e7094,_0x1f6b13,_0x2a2467,_0x177a07,_0x45c584,_0x1e4909=>{this['_updateSuggestionData'](_0x2a2467,{'attributes':_0x1e4909});const _0x2124d7=this['getSuggestion'](_0x2a2467);this['_joinWithAdjacentSuggestions'](new Set([_0x2124d7])),this['_refreshSuggestionsChain'](new Set([_0x2124d7]));},_0x5c63e0);return this['listenTo'](_0x14a816,'accept',()=>{this['_updateSuggestionData'](_0x2a2467,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x14a816,'discard',()=>{this['_updateSuggestionData'](_0x2a2467,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x2a2467,_0x14a816),this['_suggestionState']['set'](_0x14a816,'notReady'),_0x14a816;}['_splitMarkerName'](_0x54f2db){const _0x3dc672=_0x54f2db['split'](':');return{'group':_0x3dc672[0x0],'type':_0x3dc672[0x1],'subType':_0x3dc672['length']>=0x5?_0x3dc672[0x2]:null,'id':_0x3dc672['length']<0x5?_0x3dc672[0x2]:_0x3dc672[0x3],'authorId':_0x3dc672['length']<0x5?_0x3dc672[0x3]:_0x3dc672[0x4],'markerCount':0x6==_0x3dc672['length']?_0x3dc672[0x5]:null};}['_breakSuggestionMarker'](_0x38ed1d,_0x78b811,_0x27b28e){const _0x321642=_0x38ed1d['getFirstRange'](),_0x4722fb=_0x321642['start'],_0x298be5=_0x321642['end'];this['_setSuggestionRange'](_0x38ed1d,this['_model']['createRange'](_0x4722fb,_0x78b811));const _0xb0ba15=_0x29bcf7(),_0x395148=_0x38ed1d['creator']['id'],_0x2f6966=_0x38ed1d['type']+(_0x38ed1d['subType']?':'+_0x38ed1d['subType']:'');this['_setSuggestionData']({'id':_0xb0ba15,'type':_0x2f6966,'createdAt':new Date(),'authorId':_0x395148,'originalSuggestionId':_0x38ed1d['_originalSuggestionId']||_0x38ed1d['id'],'attributes':_0x38ed1d['attributes'],'data':_0x38ed1d['data']});const _0x11f2d1=this['_getAttributeKey'](_0x38ed1d);('formatBlock'==_0x38ed1d['type']||_0x11f2d1&&this['_isBlockAttribute'](_0x11f2d1))&&(_0x27b28e=this['_model']['createPositionBefore'](_0x27b28e['parent'])),this['_addSuggestionMarker'](_0x2f6966,_0xb0ba15,_0x395148,this['_model']['createRange'](_0x27b28e,_0x298be5));}['_findSuggestions'](_0x4d84c5,_0x2d0b65=null){const _0x2bb710=[],_0x156546=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x4d84c5)||(_0x4d84c5=[_0x4d84c5]);for(const _0x335fa6 of this['getSuggestions']()){if(!_0x335fa6['isInContent'])continue;if(_0x2d0b65&&_0x335fa6['type']!=_0x2d0b65)continue;let _0x3556a8=!0x1;for(const _0x2785fd of _0x335fa6['getRanges']()){for(const _0x5d031c of _0x4d84c5){const _0x46f740=_0x5d031c['start']['isEqual'](_0x2785fd['end'])||_0x5d031c['end']['isEqual'](_0x2785fd['start']);if(_0x46f740||_0x5d031c['getIntersection'](_0x2785fd)){const _0x1bc45b=_0x5d031c['containsRange'](_0x2785fd)&&Ft(this['_model']['schema'],_0x2785fd['start'],_0x5d031c),_0x1f4f3e=_0x2785fd['containsRange'](_0x5d031c)&&Ft(this['_model']['schema'],_0x5d031c['start'],_0x2785fd);_0x2bb710['push']({'suggestion':_0x335fa6,'meta':{'isOwn':_0x156546==_0x335fa6['author'],'isNextTo':_0x46f740,'isInsideObject':_0x1bc45b,'containsRangeInObject':_0x1f4f3e}}),_0x3556a8=!0x0;break;}}if(_0x3556a8)break;}}return _0x2bb710;}['_addSuggestionMarker'](_0x24ce51,_0x1b1c22,_0x28092b,_0x7ebd73,_0x1dd8f7){this['_model']['change'](_0x32db04=>{let _0x3afe50='suggestion:'+_0x24ce51+':'+_0x1b1c22+':'+_0x28092b;_0x1dd8f7&&(_0x3afe50=_0x3afe50+':'+_0x1dd8f7),_0x32db04['addMarker'](_0x3afe50,{'range':_0x7ebd73,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x30a62a){const _0x5d3b40=_0x30a62a['previous'],_0x4d079b=_0x30a62a['next'];_0x30a62a['previous']=null,_0x30a62a['next']=null,null!=_0x5d3b40&&_0x5d3b40['next']==_0x30a62a&&(_0x5d3b40['next']=_0x4d079b),null!=_0x4d079b&&_0x4d079b['previous']==_0x30a62a&&(_0x4d079b['previous']=_0x5d3b40),'ready'==this['_suggestionState']['get'](_0x30a62a)&&(this['_suggestionState']['set'](_0x30a62a,'removed'),this['fire']('suggestionUnloaded',_0x30a62a,_0x5d3b40,_0x4d079b));}['_setSuggestionData'](_0x1c3e42){const _0x597cfa=_0x1c3e42['id'],_0x2306e8=this['addSuggestionData'](_0x1c3e42);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x4e777e=this['editor']['plugins']['get']('PendingActions'),_0x1b2c27=_0x2306e8['hasComments'],_0x340d2e=_0x2306e8['subType']?_0x2306e8['type']+':'+_0x2306e8['subType']:_0x2306e8['type'],_0x5bf738=this['editor']['locale'],_0x2ef61b=_0x4e777e['add'](o(_0x5bf738,'PENDING_ACTION_SUGGESTION')),_0x39ee57={'id':_0x597cfa,'type':_0x340d2e,'hasComments':_0x1b2c27,'data':_0x1c3e42['data']||null,'originalSuggestionId':_0x1c3e42['originalSuggestionId']||null,'attributes':_0x2306e8['attributes']};this['_adapter']['addSuggestion'](_0x39ee57)['then'](_0x1e44d7=>{_0x2306e8['_saved']=!0x0,_0x4e777e['remove'](_0x2ef61b),_0x1e44d7&&_0x1e44d7['createdAt']&&(this['_suggestions']['get'](_0x597cfa)['createdAt']=_0x1e44d7['createdAt']);})['catch'](_0x4399f6=>{throw _0x3e241f('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x2306e8['discard']();}),_0x2306e8['stopListening'](),this['_suggestions']['delete'](_0x2306e8['id']),this['_suggestionState']['delete'](_0x2306e8),_0x4399f6;});}return _0x2306e8;}['_isBlockAttribute'](_0x1d9c9e){return this['_blockAttributeKeys']['has'](_0x1d9c9e);}['_isInlineAttribute'](_0x3ee743){return this['_inlineAttributeKeys']['has'](_0x3ee743);}['_updateSuggestionData'](_0x101081,_0x37ec3a){const _0x3f7694=this['editor']['plugins']['get']('PendingActions'),_0x4b2db4=this['getSuggestion'](_0x101081);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x4b2db4['_saved']){const _0x481994=_0x3f7694['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x101081,_0x37ec3a)['then'](()=>{_0x3f7694['remove'](_0x481994);});}else _0x4b2db4['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x101081,_0x37ec3a);});}}['_getSuggestionData'](_0x43098b){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x56f143('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x43098b);}['_handleNewSuggestionMarker'](_0x4cade0){const {id:_0x5a2663,type:_0x25065c,subType:_0x2b842f,authorId:_0x371d9f}=this['_splitMarkerName'](_0x4cade0),_0x40e199=this['_suggestions']['get'](_0x5a2663)||this['_createSuggestion'](_0x25065c,_0x2b842f,_0x5a2663,_0x371d9f,{});switch(this['_checkSuggestionCorrectness'](_0x40e199,_0x25065c,_0x2b842f,_0x371d9f),this['_suggestionState']['get'](_0x40e199)){case'notReady':this['_getSuggestionData'](_0x5a2663)['then'](_0x53046e=>{let _0x4f175a=Promise['resolve']();_0x53046e['hasComments']&&(_0x4f175a=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x5a2663})),_0x4f175a['then'](()=>{this['addSuggestionData'](_0x53046e)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x40e199,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x5a2663,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x40e199,'ready'),this['fire']('suggestionLoaded',_0x40e199);break;case'ready':this['fire']('suggestionChanged',_0x40e199);}return _0x40e199['addMarkerName'](_0x4cade0),_0x40e199;}['_refreshSuggestionsChain'](_0x289788){const _0x164816=Array['from'](_0x289788),_0x4eaff8=_0x164816['filter'](_0x33a070=>'attribute'==_0x33a070['type']);this['_refreshAttributeSuggestionsChain'](_0x4eaff8);const _0x32e76a=_0x164816['filter'](_0x5e9506=>!_0x5e9506['isMultiRange']&&'attribute'!=_0x5e9506['type']),_0x1da75e=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x516781=>!_0x516781['isMultiRange']&&'attribute'!=_0x516781['type']),_0x547200=_0x1da75e['filter'](_0x4e601a=>!_0x289788['has'](_0x4e601a)),_0x412f9b=new Map(_0x1da75e['map'](_0x568629=>[_0x568629,this['_suggestionFactory']['getSuggestionCallback'](_0x568629['type'],_0x568629['subType'],'chain')])),_0x7ebe82=new Map(_0x1da75e['map'](_0x19427d=>[_0x19427d,_0x19427d['getFirstRange']()])),_0x4efbad=new Set(),_0xa8aa67=new Set();for(let _0x344465=0x0;_0x344465<_0x32e76a['length'];_0x344465++)_0x339c38(_0x32e76a[_0x344465],_0x32e76a,_0x344465+0x1);for(let _0x1af0ea=0x0;_0x1af0ea<_0x32e76a['length'];_0x1af0ea++)_0x339c38(_0x32e76a[_0x1af0ea],_0x547200,0x0);const _0x582314=new Set();for(let _0x1cc7e2=0x0;_0x1cc7e2<_0x32e76a['length'];_0x1cc7e2++){const _0x251c18=_0x32e76a[_0x1cc7e2];!_0xa8aa67['has'](_0x251c18)&&_0x251c18['previous']&&(_0x582314['add'](_0x251c18['previous']),_0x251c18['previous']['next']===_0x251c18&&(_0x251c18['previous']['next']=null),_0x251c18['previous']=null),!_0x4efbad['has'](_0x251c18)&&_0x251c18['next']&&(_0x582314['add'](_0x251c18['next']),_0x251c18['next']['previous']===_0x251c18&&(_0x251c18['next']['previous']=null),_0x251c18['next']=null);}function _0x339c38(_0x4a1f0b,_0x4280a1,_0x4f3df4){for(let _0x54fb55=_0x4f3df4;_0x54fb55<_0x4280a1['length'];_0x54fb55++){const _0xe37400=_0x39c90c(_0x4a1f0b,_0x4280a1[_0x54fb55]);_0xe37400&&(_0xe37400[0x0]['next']=_0xe37400[0x1],_0xe37400[0x1]['previous']=_0xe37400[0x0],_0x4efbad['add'](_0xe37400[0x0]),_0xa8aa67['add'](_0xe37400[0x1]));}}function _0x39c90c(_0x1e64fc,_0x2135b1){if(_0x1e64fc['author']['id']!==_0x2135b1['author']['id'])return null;const _0x344f54=_0x412f9b['get'](_0x1e64fc)(_0x1e64fc,_0x2135b1,_0x7ebe82['get'](_0x1e64fc),_0x7ebe82['get'](_0x2135b1));if(!_0x344f54)return null;return _0x412f9b['get'](_0x2135b1)(_0x1e64fc,_0x2135b1,_0x7ebe82['get'](_0x1e64fc),_0x7ebe82['get'](_0x2135b1))?_0x344f54[0x1]['commentThread']&&_0x344f54[0x1]['commentThread']['length']?null:_0x344f54:null;}_0x582314['size']&&this['_refreshSuggestionsChain'](_0x582314);}['_refreshAttributeSuggestionsChain'](_0x3887a0){if(0x0==_0x3887a0['length'])return;const _0x3709f2=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x29a672=>'attribute'==_0x29a672['type']&&_0x29a672['_isDataLoaded']),_0x1b3f2a=[],_0x821b2a=new Map();for(const _0x1895ea of _0x3709f2){const _0x42ec34=_0x547e54(_0x1895ea['attributes']);_0x821b2a['has'](_0x42ec34)||(_0x821b2a['set'](_0x42ec34,_0x1b3f2a['length']),_0x1b3f2a['push']([]));const _0x526081=_0x821b2a['get'](_0x42ec34);_0x1b3f2a[_0x526081]['push'](_0x1895ea);}!(function(){_0x1b3f2a['sort']((_0xa48ad,_0x58c22c)=>{const _0xff2e68=_0xa48ad[0x0]['createdAt'],_0x46751d=_0x58c22c[0x0]['createdAt'];return _0xff2e68==_0x46751d?_0xa48ad[0x0]['attributes']['groupId']<_0x58c22c[0x0]['attributes']['groupId']?-0x1:0x1:_0xff2e68<_0x46751d?-0x1:0x1;});for(const _0x299028 of _0x1b3f2a)_0x299028['sort']((_0x3de71c,_0x1c84e6)=>_0x3de71c['id']<_0x1c84e6['id']?-0x1:0x1);}());for(let _0x5bb0c8=0x0;_0x5bb0c8<_0x1b3f2a['length'];_0x5bb0c8++){if(0x0==_0x1b3f2a[_0x5bb0c8]['length'])continue;const _0x1d82a7=[];for(let _0x221a25=_0x5bb0c8+0x1;_0x221a25<_0x1b3f2a['length'];_0x221a25++)0x0!=_0x1b3f2a[_0x221a25]['length']&&_0x4d4dc3(_0x1b3f2a[_0x5bb0c8],_0x1b3f2a[_0x221a25])&&_0x1d82a7['push'](_0x221a25);for(const _0x47444f of _0x1d82a7)_0x1b3f2a[_0x5bb0c8]=_0x1b3f2a[_0x5bb0c8]['concat'](_0x1b3f2a[_0x47444f]),_0x1b3f2a[_0x47444f]=[];}for(const _0x1b3b89 of _0x1b3f2a)for(let _0x122eb3=0x0;_0x122eb3<_0x1b3b89['length'];_0x122eb3++){const _0xeeff11=_0x1b3b89[_0x122eb3+0x1]||null;_0x1b3b89[_0x122eb3]['next']!==_0xeeff11&&(_0x1b3b89[_0x122eb3]['next']=_0xeeff11);}for(const _0x10b7af of _0x1b3f2a)for(let _0x9cf638=0x0;_0x9cf638<_0x10b7af['length'];_0x9cf638++){const _0x25f7f4=_0x10b7af[_0x9cf638-0x1]||null;_0x10b7af[_0x9cf638]['previous']!==_0x25f7f4&&(_0x10b7af[_0x9cf638]['previous']=_0x25f7f4);}function _0x4d4dc3(_0x2d4d20,_0x3d66cb){if(_0x2d4d20[0x0]['attributes']['groupId']!==_0x3d66cb[0x0]['attributes']['groupId']&&_0x2d4d20[0x0]['author']!==_0x3d66cb[0x0]['author'])return!0x1;if(!function(_0xc6fbbd,_0x2ea390){if(!_0xc6fbbd['hasComments']&&!_0x2ea390['hasComments'])return!0x0;if(_0xc6fbbd['hasComments']&&_0x2ea390['hasComments'])return!0x1;if(_0xc6fbbd['hasComments']&&_0x2ea390['createdAt']<_0xc6fbbd['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x2ea390['hasComments']&&_0xc6fbbd['createdAt']<_0x2ea390['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x2d4d20[0x0],_0x3d66cb[0x0]))return!0x1;const _0x10039a=Ut(_0x2d4d20[0x0]['attributes'],['groupId','trackingSessionId']),_0x537c77=Ut(_0x3d66cb[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x48888a(_0x10039a,_0x537c77))return!0x1;if(_0x2d4d20[0x0]['attributes']['groupId']==_0x3d66cb[0x0]['attributes']['groupId'])return!0x0;if(_0x2d4d20[0x0]['attributes']['trackingSessionId']!==_0x3d66cb[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x2d4d20['every'](_0x53d4dc=>_0x3d66cb['some'](_0x4f243f=>_0x53d4dc['getFirstRange']()['isEqual'](_0x4f243f['getFirstRange']())))&&_0x3d66cb['every'](_0x59deff=>_0x2d4d20['some'](_0x1903fe=>_0x59deff['getFirstRange']()['isEqual'](_0x1903fe['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x332f64){const _0x9e3819=Array['from'](_0x332f64),_0x502bb9=this['getSuggestions']({'skipNotAttached':!0x0}),_0x5f4fc=_0x502bb9['filter'](_0x3c41e7=>!_0x332f64['has'](_0x3c41e7)),_0x3878cc=new Map(_0x9e3819['map'](_0x1c416a=>[_0x1c416a,this['_suggestionFactory']['getSuggestionCallback'](_0x1c416a['type'],_0x1c416a['subType'],'join')])),_0x7de0b6=new Map(_0x502bb9['map'](_0x21b8d0=>[_0x21b8d0,_0x21b8d0['getRanges']()]));for(let _0x2f45f1=0x0;_0x2f45f1<_0x9e3819['length'];_0x2f45f1++){if(_0x4ad341(this,_0x9e3819[_0x2f45f1],_0x9e3819,_0x2f45f1+0x1))return!0x0;}for(let _0x2b7eb7=0x0;_0x2b7eb7<_0x9e3819['length'];_0x2b7eb7++){if(_0x4ad341(this,_0x9e3819[_0x2b7eb7],_0x5f4fc,0x0))return!0x0;}return!0x1;function _0x4ad341(_0x124170,_0x230890,_0x990a2d,_0x1cd846){for(let _0x4a47c3=_0x1cd846;_0x4a47c3<_0x990a2d['length'];_0x4a47c3++){const _0x130e54=_0x990a2d[_0x4a47c3];if(_0x130e54['type']!==_0x230890['type']||_0x130e54['author']['id']!==_0x230890['author']['id']||_0x130e54['subType']!==_0x230890['subType'])continue;if(!Qt(_0x230890,_0x130e54))continue;if('attribute'==_0x230890['type']&&_0x230890['data']['oldValue']!=_0x130e54['data']['oldValue'])continue;if('attribute'==_0x230890['type']&&_0x124170['_isBlockAttribute'](_0x230890['data']['key']))continue;if('formatBlock'==_0x230890['type']){const _0x53f6a8=_0x124170['editor']['model'],_0x3be528=_0x230890['getContainedElement']();if(_0x3be528&&(_0x53f6a8['schema']['isObject'](_0x3be528)||_0x53f6a8['schema']['isLimit'](_0x3be528)))continue;}const _0x1c64a6=_0x3878cc['get'](_0x230890),_0x371074=_0x7de0b6['get'](_0x230890),_0x5b4877=_0x7de0b6['get'](_0x130e54),_0x208458=_0x230890['commentThread']&&_0x230890['commentThread']['length'],_0x1b9586=_0x130e54['commentThread']&&_0x130e54['commentThread']['length'];if(!_0x208458&&_0x1c64a6(_0x5b4877,_0x371074))return _0x124170['_joinSuggestions'](_0x130e54,_0x230890),_0x7de0b6['delete'](_0x230890),!0x0;if(!_0x1b9586&&_0x1c64a6(_0x371074,_0x5b4877))return _0x124170['_joinSuggestions'](_0x230890,_0x130e54),_0x7de0b6['delete'](_0x130e54),!0x0;}return!0x1;}}['_joinSuggestions'](_0x47a4dc,_0x5f4c33){if(_0x47a4dc['isMultiRange']){for(const _0x3753db of _0x5f4c33['getRanges']())_0x47a4dc['addRange'](_0x3753db);}else{const _0x279db9=_0x5f4c33['getFirstRange']()['end'];this['_setSuggestionRange'](_0x47a4dc,this['_model']['createRange'](_0x47a4dc['getFirstRange']()['start'],_0x279db9));}_0x5f4c33['removeMarkers']();}['_getMarkerAnnouncementText'](_0x36ca4c,_0x2d6bc9,_0x504ddd){const _0x3a90a5=_0x36ca4c['startsWith']('format')||_0x36ca4c['startsWith']('attribute')?'FORMATTING':_0x36ca4c['toUpperCase']();return o(this['editor']['locale'],_0x2d6bc9+'_'+_0x3a90a5+'_SUGGESTION_ANNOUNCEMENT',_0x504ddd);}['_initAriaMarkerChangeAnnouncements'](){const _0x354081=this['editor'];if(!_0x354081['ui'])return;const {ariaLiveAnnouncer:_0x6dc1a9}=_0x354081['ui'];_0x1bb4cb(this['_model'],({left:_0x194ea8,entered:_0x3fe73b})=>{for(const _0x31ec63 of _0x194ea8){const {group:_0x3ef952,type:_0xb7be56}=this['_splitMarkerName'](_0x31ec63['name']);if('suggestion'===_0x3ef952){_0x6dc1a9['announce'](this['_getMarkerAnnouncementText'](_0xb7be56,'LEAVE'));break;}}for(const _0x4960b1 of _0x3fe73b){const {group:_0x2c0f05,type:_0x223ace}=this['_splitMarkerName'](_0x4960b1['name']);if('suggestion'===_0x2c0f05){_0x6dc1a9['announce'](this['_getMarkerAnnouncementText'](_0x223ace,'ENTER',_0x5e1f5f(_0x27f0cb)));break;}}});}['_processAttributeChanges'](_0x2c0c7a){if(this['_recordAttributeSuggestions'])return!0x1;const _0x40a05c=this['editor'],_0x1998e0=_0x40a05c['model']['document']['differ']['getChanges']();if(0x0==_0x1998e0['length'])return!0x1;const _0x3384a8=[],_0x2e28b3=_0x1998e0['filter'](_0x4f914f=>'attribute'==_0x4f914f['type']),_0x51f454=_0x1998e0['filter'](_0x213d39=>'insert'==_0x213d39['type']&&'$text'!=_0x213d39['name']),_0x44e3d4=_0x1998e0['filter'](_0x1d1bf5=>'remove'==_0x1d1bf5['type']&&'$text'!=_0x1d1bf5['name']);for(const _0x3f1efb of _0x2e28b3)_0x3384a8['push']({'key':_0x3f1efb['attributeKey'],'newValue':_0x3f1efb['attributeNewValue'],'oldValue':_0x3f1efb['attributeOldValue'],'range':qt(_0x3f1efb['range'],_0x40a05c['model'])});for(const _0x3a3666 of _0x51f454){const _0x4cc88c=_0x44e3d4['find'](_0x855308=>_0x855308['position']['isEqual'](_0x3a3666['position']));_0x4cc88c&&_0x3384a8['push']({'key':m,'newValue':_0x3a3666['name'],'oldValue':_0x4cc88c['name'],'range':_0x40a05c['model']['createRangeOn'](_0x3a3666['position']['nodeAfter'])});}return 0x0!=_0x3384a8['length']&&this['_reduceExistingSuggestions'](_0x2c0c7a,_0x3384a8);}['_processAttributeSuggestions'](_0x58a7ff){let _0x5485c0=!0x1;const _0x1e0a60=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0xa44502=>_0xa44502['data']['newRange']&&_0xa44502['name']['startsWith']('suggestion:attribute:'));for(const _0x553102 of _0x1e0a60){const {subType:_0x59070c,id:_0x559bb4}=this['_splitMarkerName'](_0x553102['name']),_0x5ad942=_0x59070c['split']('|')[0x0];for(const _0x35e99e of this['getSuggestions']({'skipNotAttached':!0x0}))_0x35e99e['id']!=_0x559bb4&&'attribute'==_0x35e99e['type']&&_0x35e99e['data']&&_0x35e99e['data']['key']==_0x5ad942&&_0x35e99e['getFirstRange']()['isIntersecting'](_0x553102['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x35e99e,_0x553102['data']['newRange'],_0x58a7ff),_0x5485c0=!0x0);}return _0x5485c0;}['recordAttributeChanges'](_0x3646de){this['_recordAttributeSuggestions']=!0x0,_0x3646de();}['_isRegisteredAttribute'](_0x48ba3c){const _0x276789=this['_isBlockAttribute'](_0x48ba3c),_0x11d9e0=this['_isInlineAttribute'](_0x48ba3c);return _0x276789||_0x11d9e0;}['_reduceExistingSuggestions'](_0x2a46e7,_0x27b267){if(0x0==_0x27b267['length'])return!0x1;let _0x3cb668=!0x1;for(const _0xbfaeef of _0x27b267){const _0x93c3ac=this['_findSuggestions'](_0xbfaeef['range'],'attribute')['filter'](_0x38f3a1=>!_0x38f3a1['meta']['isNextTo'])['map'](_0x239979=>_0x239979['suggestion']),_0x50ed7e=_0x547e54({'newValue':_0xbfaeef['newValue']});_0x93c3ac['filter'](_0x59f36e=>{const [_0xe75b67,_0x46cd90]=_0x59f36e['subType']['split']('|');return _0xe75b67==_0xbfaeef['key']&&_0x46cd90!=_0x50ed7e;})['forEach'](_0x865606=>{this['_reduceSuggestionAttributeRange'](_0x865606,_0xbfaeef['range'],_0x2a46e7),_0x3cb668=!0x0;});}return _0x3cb668;}['_reduceSuggestionAttributeRange'](_0x866431,_0x4ff801,_0x37ff04){const _0x561fc3=_0x866431['getFirstRange']()['getDifference'](_0x4ff801);0x0!==_0x561fc3['length']?0x1!==_0x561fc3['length']?this['_breakSuggestionMarker'](_0x866431,_0x4ff801['start'],_0x4ff801['end']):this['_setSuggestionRange'](_0x866431,_0x561fc3[0x0]):_0x37ff04['removeMarker'](_0x866431['getFirstMarker']());}}class Vt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0xcc8b9e){this['_editor']=_0xcc8b9e,this['_model']=_0xcc8b9e['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0xd198ef,_0x3ce79b,_0x9a8a58,_0x2871e3,_0x577180,_0x35321f,_0x4280b7){return new T(this['_model'],{'type':_0xd198ef,'subType':_0x3ce79b,'id':_0x9a8a58,'originalSuggestionId':_0x4280b7,'author':_0x2871e3,'creator':_0x2871e3,'attributes':_0x577180,'onAttributesChange':_0x35321f,'onAccept':(..._0xbd54ab)=>this['getSuggestionCallback'](_0xd198ef,_0x3ce79b,'accept')(..._0xbd54ab),'onDiscard':(..._0x39b8e3)=>this['getSuggestionCallback'](_0xd198ef,_0x3ce79b,'discard')(..._0x39b8e3)});}['registerCustomCallback'](_0x4b29cf,_0x2b3857,_0x3a5cd2,_0x8fec63){const _0x4a50ee=_0x4b29cf+':'+_0x2b3857+':'+_0x3a5cd2;this['_customCallbacks']['set'](_0x4a50ee,_0x8fec63);}['getSuggestionCallback'](_0x30245e,_0x2d0348,_0x2bebb0){const _0x27b461=_0x30245e+':'+_0x2d0348+':'+_0x2bebb0;return this['_customCallbacks']['get'](_0x27b461)||this['_defaultCallbacks']['get'](_0x30245e+':'+_0x2bebb0);}['_registerDefaultCallbacks'](){const _0x940294=()=>!0x1,_0x5cdd41=_0x4a8eaf=>{_0x4a8eaf['sort']((_0x25743a,_0x247aa3)=>_0x25743a['start']['isBefore'](_0x247aa3['start'])?0x1:-0x1),this['_model']['change'](_0x5ef20f=>{for(const _0x1501f3 of _0x4a8eaf){let _0x50f03b;_0x50f03b=_0x1501f3['end']['isAtEnd']&&_0x1501f3['end']['parent']==_0x1501f3['start']['nodeAfter']?_0x5ef20f['createSelection'](_0x1501f3['start']['nodeAfter'],'on'):_0x5ef20f['createSelection'](_0x1501f3),this['_model']['deleteContent'](_0x50f03b,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x295d68=(_0x2b038f,_0x6b6e8b)=>{_0x6b6e8b&&this['_model']['change'](_0x482eb0=>{const {commandName:_0x1d1db4,commandParams:_0x4221d4=[]}=_0x6b6e8b,_0x41d495=_0x2b038f['map'](_0x2b1ea3=>(Pt(_0x2b1ea3)&&(_0x2b1ea3=this['_model']['createRange'](_0x2b1ea3['end'])),_0x2b1ea3))['filter'](_0x2d8156=>'$graveyard'!==_0x2d8156['root']['rootName']);if(_0x41d495['length']<0x1)return;const _0x29d7de=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x48c49d=>_0x50a820['fromRange'](_0x48c49d));_0x482eb0['setSelection'](_0x41d495);for(const _0x19da16 of this['_editor']['commands']['commands']())_0x19da16['refresh']();_0x4221d4['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x1d1db4,..._0x4221d4);const _0x9a86b=_0x29d7de['filter'](_0x1fb40a=>'$graveyard'!=_0x1fb40a['root']['rootName']);_0x9a86b['length']>0x0&&_0x482eb0['setSelection'](_0x9a86b);for(const _0x2a8675 of _0x29d7de)_0x2a8675['detach']();});},_0x539659=(_0x513a6b,_0x37e8e0)=>0x1==_0x513a6b['length']&&0x1==_0x37e8e0['length']&&_0x513a6b[0x0]['end']['isEqual'](_0x37e8e0[0x0]['start']),_0x10c3d0=(_0x3e6450,_0x54d71c,_0x27b0fc,_0x97e59)=>Wt(_0x3e6450,_0x54d71c,_0x27b0fc,_0x97e59)?[_0x3e6450,_0x54d71c]:Wt(_0x54d71c,_0x3e6450,_0x97e59,_0x27b0fc)?[_0x54d71c,_0x3e6450]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x940294),this['_defaultCallbacks']['set']('insertion:discard',_0x5cdd41),this['_defaultCallbacks']['set']('insertion:join',_0x539659),this['_defaultCallbacks']['set']('insertion:chain',_0x10c3d0),this['_defaultCallbacks']['set']('deletion:accept',_0x5cdd41),this['_defaultCallbacks']['set']('deletion:discard',_0x940294),this['_defaultCallbacks']['set']('deletion:join',_0x539659),this['_defaultCallbacks']['set']('deletion:chain',_0x10c3d0),this['_defaultCallbacks']['set']('formatInline:accept',_0x295d68),this['_defaultCallbacks']['set']('formatInline:discard',_0x940294),this['_defaultCallbacks']['set']('formatInline:join',_0x539659),this['_defaultCallbacks']['set']('formatInline:chain',_0x940294),this['_defaultCallbacks']['set']('formatBlock:accept',_0x295d68),this['_defaultCallbacks']['set']('formatBlock:discard',_0x940294),this['_defaultCallbacks']['set']('formatBlock:join',_0x539659),this['_defaultCallbacks']['set']('formatBlock:chain',_0x940294),this['_defaultCallbacks']['set']('attribute:accept',_0x940294),this['_defaultCallbacks']['set']('attribute:discard',(_0x3ba524,_0x5cc32e)=>{if(!_0x5cc32e)return;const _0x15ba48=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x219f63=>{if(_0x5cc32e['key']==m)for(const _0xda7650 of _0x3ba524){const _0x338647=_0xda7650['start']['nodeAfter'],_0x469192=_0x5cc32e['oldValue'];_0x219f63['rename'](_0x338647,_0x469192);}else{if(_0x15ba48['_isBlockAttribute'](_0x5cc32e['key'])){for(const _0x30e90d of _0x3ba524)void 0x0!==_0x5cc32e['oldValue']?_0x219f63['setAttribute'](_0x5cc32e['key'],_0x5cc32e['oldValue'],_0x30e90d['start']['nodeAfter']):_0x219f63['removeAttribute'](_0x5cc32e['key'],_0x30e90d['start']['nodeAfter']);}else{for(const _0x7afd1d of _0x3ba524)_0x5cc32e['oldValue']?_0x219f63['setAttribute'](_0x5cc32e['key'],_0x5cc32e['oldValue'],_0x7afd1d):_0x219f63['removeAttribute'](_0x5cc32e['key'],_0x7afd1d);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x539659);}}function Ft(_0x5aaa9e,_0x37151a,_0x1fce8d){for(const _0x5e688e of _0x37151a['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x5e688e['root']==_0x5e688e)return!0x1;if(!_0x1fce8d['containsItem'](_0x5e688e))return!0x1;if(_0x5aaa9e['isObject'](_0x5e688e)||_0x5aaa9e['isLimit'](_0x5e688e))return!0x0;}return!0x1;}function Pt(_0x508cc2){return _0x508cc2['end']['parent']==_0x508cc2['start']['nodeAfter']&&_0x508cc2['end']['isAtStart'];}function Gt(_0x5822af,_0x4b4fbb,_0x43ff15,_0x15e9a1){const _0x4ba82d=_0x5846d3=>!_0x5846d3['item']['is']('$textProxy')&&!_0x15e9a1['isObject'](_0x5846d3['item']),_0x134065=_0x5822af['start']['getLastMatchingPosition'](_0x4ba82d),_0x3c0f9a=_0x5822af['end']['getLastMatchingPosition'](_0x4ba82d,{'direction':'backward'});return(!_0x5822af['start']['isEqual'](_0x134065)||!_0x5822af['end']['isEqual'](_0x3c0f9a))&&(_0x134065['isBefore'](_0x3c0f9a)?_0x43ff15['updateMarker'](_0x4b4fbb,{'range':_0x43ff15['createRange'](_0x134065,_0x3c0f9a)}):_0x43ff15['removeMarker'](_0x4b4fbb),!0x0);}function Lt(_0x11f03e){return _0x547e54(_0x11f03e);}function Jt(_0x548e63){const _0x5a326c=_0x548e63['start']['nodeAfter'];return _0x5a326c&&_0x5a326c['is']('element');}function Kt(_0x10d0f1){return Pt(_0x10d0f1)||function(_0x119e34){return _0x119e34['start']['parent']==_0x119e34['end']['nodeBefore']&&_0x119e34['start']['isAtEnd'];}(_0x10d0f1);}function Ht(_0x104981,_0x53f788){try{const _0x1b879b=_0x104981['getRange']();for(const _0x57f7d3 of _0x53f788)if(_0x104981!==_0x57f7d3&&_0x1b879b&&_0x1b879b['isIntersecting'](_0x57f7d3['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function qt(_0x330ab8,_0xfb9023){return null==_0x330ab8['end']['nodeBefore']&&_0x330ab8['end']['parent']==_0x330ab8['start']['nodeAfter']?zt(_0x330ab8['start']['nodeAfter'],_0xfb9023):_0x330ab8;}function zt(_0x22cb69,_0x5da3fb){const _0x11d4a5=_0x5da3fb['schema']['isObject'](_0x22cb69)||_0x5da3fb['schema']['isSelectable'](_0x22cb69);return _0x5da3fb['createRange'](_0x5da3fb['createPositionAt'](_0x22cb69,'before'),_0x11d4a5?_0x5da3fb['createPositionAfter'](_0x22cb69):_0x5da3fb['createPositionAt'](_0x22cb69,'end'));}function Wt(_0x4017fe,_0x3988f8,_0x127b31,_0x1c8ab9){return!!Qt(_0x4017fe,_0x3988f8)&&_0x127b31['end']['isEqual'](_0x1c8ab9['start']);}function Qt(_0x135c43,_0x3ed133){if(!_0x135c43['_isDataLoaded']||!_0x3ed133['_isDataLoaded'])return!0x1;const _0x17ffca=new Set(Object['keys'](_0x135c43['attributes'])),_0x1f6317=new Set(Object['keys'](_0x3ed133['attributes']));if(_0x17ffca['delete']('groupId'),_0x1f6317['delete']('groupId'),0x0==_0x17ffca['size']&&0x0==_0x1f6317['size'])return!0x0;if(_0x17ffca['size']!=_0x1f6317['size'])return!0x1;const _0x449e10={..._0x135c43['attributes']},_0x370f15={..._0x3ed133['attributes']};return delete _0x449e10['groupId'],delete _0x370f15['groupId'],JSON['stringify'](_0x449e10)==JSON['stringify'](_0x370f15);}function Xt(_0x2f3d8d,_0x4d3eeb){const _0x9f790f=Yt(_0x2f3d8d['attributes']),_0x589aa3=Yt(_0x4d3eeb);if(!_0x2f3d8d['_isDataLoaded'])return!0x1;for(const _0x9ac141 of Object['keys'](_0x589aa3))if(!_0x48888a(_0x9f790f[_0x9ac141],_0x589aa3[_0x9ac141]))return!0x1;return!0x0;}function Yt(_0x5e1cf5){const _0x3629fd=Object['assign']({},_0x5e1cf5);return delete _0x3629fd['skipNestingCheck'],delete _0x3629fd['tablePasteChainId'],_0x3629fd;}class pe extends/* #__PURE__ -- @preserve */
|
|
26
|
-
_0x290c21(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x312665,_0x4de43c,_0xaf22d7,_0x5f57bf){super(),this['model']=_0x4de43c,this['view']=_0xaf22d7,this['commentThreadController']=_0x5f57bf,this['_editor']=_0x312665,this['_acceptCommand']=_0x312665['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x312665['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x2b7cd2,_0x1cacd2)=>_0x2b7cd2||_0x1cacd2),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x124ee6=>_0x124ee6&&this['_editor']['model']['canEditAt'](_0x4de43c['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x102483=>_0x102483&&this['_editor']['model']['canEditAt'](_0x4de43c['getRanges']())),this['_pendingAction']=null,_0xaf22d7['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0xaf22d7,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0xaf22d7,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0xaf22d7,'change:isDirty',()=>{_0xaf22d7['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 _0x38c3d1=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x38c3d1);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x434eb5{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0xf15df7,_0x55f430,_0x43f145,_0xaa705){super(_0xf15df7),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x2d2058(_0xf15df7,o(_0xf15df7,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x55f430['authoredAt']),this['bind']('authoredAt')['to'](_0x55f430),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',_0x55f430,'authoredAt',this,'descriptionParts',(_0x37c0b8,_0x3a5ad7,_0x451e0d)=>{const _0x40a3e5=_0x451e0d['map'](_0x455492=>ls(_0x455492['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x37c0b8-0x1,_0x55f430['author']['name'],_0x3a5ad7?_0xaa705['formatDateTime'](_0x3a5ad7):'',new DOMParser()['parseFromString'](_0x40a3e5,'text/html')['body']['textContent']]);}),this['focusables']=new _0x3162c6(),this['focusTracker']=new _0x47b4e3(),this['keystrokes']=new _0x554820(),this['focusCycler']=new _0x3fedb7({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x341571=>_0x341571['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x55f430,this['_localUser']=_0x43f145,this['_config']=_0xaa705,_0xaa705['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0xa5c0ff(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x139e28}=this['_config'];this['commentsListView']=new _0x139e28(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',_0x3bd398=>_0x3bd398+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x2930fa,_0x253693)=>_0x2930fa||!!_0x253693);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x162c0b}=this['_config'],_0x246510=new _0x162c0b(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x575d05=_0x246510['commentInputView'];return _0x246510['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x575d05,'value',(_0x4b80fc,_0x55699b,_0x253404)=>!!_0x253404||_0x4b80fc&&!_0x55699b),_0x575d05['on']('submit',(_0x3c0b3d,_0x260d12)=>{this['fire']('addComment',_0x260d12),_0x575d05['editor']['setData']('');}),_0x575d05['on']('cancel',()=>this['focus']()),_0x575d05['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x246510;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x57c738,_0x4fa9af,_0x2f879b,_0x5b960d){super(_0x57c738,_0x4fa9af,_0x2f879b,_0x5b960d),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0xdf4c37=>_0xdf4c37&&_0xdf4c37[0x0]?_0xdf4c37[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x588c01,_0x370a57)=>{let _0x371f51='';for(const _0x49ce55 of _0x588c01)_0x371f51+='<p>'+ls(_0x49ce55['content'],_0x49ce55['color'])+'</p>';return _0x370a57?_0x371f51:_0x5488c(_0x371f51,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x5b960d['SuggestionView'](_0x57c738,_0x4fa9af,{'formatDateTime':_0x5b960d['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 _0x3b64d0=this['bindTemplate'],_0xf86ff3=[this['suggestionView']];return this['commentsListView']&&_0xf86ff3['push'](this['commentsListView']),this['commentThreadInputView']&&_0xf86ff3['push'](this['commentThreadInputView']),_0xf86ff3['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x3b64d0['if']('isActive','ck-suggestion-wrapper--active'),_0x3b64d0['to']('type',_0x4966ca=>'ck-suggestion-'+_0x4966ca),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':_0x3b64d0['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0xf86ff3};}['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 _0x434eb5{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x15e8e4,_0x5e5009,_0x13a939){super(_0x15e8e4),this['_model']=_0x5e5009,this['_config']=_0x13a939,this['set']('description',''),this['bind']('authoredAt')['to'](_0x5e5009),this['acceptButton']=this['_createButton'](o(_0x15e8e4,'Accept\x20suggestion'),_0x3cb433,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x15e8e4,'Discard\x20suggestion'),_0x2259c8,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x4f2257(_0x15e8e4,_0x5e5009['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x3162c6([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x47b4e3(),this['keystrokes']=new _0x554820(),this['focusCycler']=new _0x3fedb7({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x2f2a40=>_0x2f2a40['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x17bfc0=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x17bfc0['innerHTML']=this['description'],this['on']('change:description',(_0x579dd2,_0x2f1456,_0x432457)=>{_0x17bfc0['innerHTML']=_0x432457;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x112639=this['bindTemplate'],_0x33912a=[{'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':_0x112639['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x112639['to']('authoredAt',_0x5ea553=>this['_config']['formatDateTime'](_0x5ea553))}]}]},{'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']&&_0x33912a['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':_0x33912a}]};}['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'](_0x4d3b22,_0x9479ff,_0x20d837,_0x19358b,_0x251d88){const _0x598426=new _0x6543dc(this['locale']);return _0x598426['set']({'label':_0x4d3b22,'icon':_0x9479ff,'tooltip':!0x0,'tooltipPosition':_0x251d88}),_0x598426['extendTemplate']({'attributes':{'class':_0x20d837}}),_0x598426['on']('execute',()=>{this['fire'](_0x19358b,this['_model']['id']);}),_0x598426;}['_setupKeyboardNavigation'](){const _0x4b0877=this['element'];this['keystrokes']['listenTo'](_0x4b0877);for(const _0x3a26f8 of this['focusables'])this['focusTracker']['add'](_0x3a26f8['element']),this['keystrokes']['listenTo'](_0x3a26f8['element']);this['keystrokes']['set']('enter',(_0x28af1f,_0x32c5c2)=>{_0x4b0877===_0x28af1f['target']&&(this['focusCycler']['focusFirst'](),_0x32c5c2());}),this['keystrokes']['set']('esc',(_0x1b26a7,_0x111f0e)=>{_0x4b0877!==_0x1b26a7['target']&&(this['focus'](),_0x111f0e());});}}class u extends _0xe680e7{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x9e4cfc,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3e3f47){super(_0x3e3f47),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x16e6d6=this['editor']['config'];_0x16e6d6['define']('trackChanges.SuggestionThreadView',fe),_0x16e6d6['define']('trackChanges.SuggestionView',we),_0x16e6d6['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x16e6d6['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x12b4ae,_0x396357){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x556a04,_0x3675be]of this['_handleControllerBuffer']){const _0x290c90=this['_suggestionToController']['has'](_0x556a04);_0x290c90||_0x3675be?_0x290c90&&_0x3675be&&this['_destroyController'](_0x556a04):this['_initializeController'](_0x556a04);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x12b4ae,_0x396357);}['init'](){const _0x5e133c=this['editor'],_0x3ea40d=_0x5e133c['plugins']['get']('TrackChangesEditing'),_0x2b992b=_0x5e133c['plugins']['get']('Annotations'),_0x720999=_0x5e133c['plugins']['get']('EditorAnnotations'),_0x805988=_0x5e133c['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x720999['addSourceCollector'](()=>{const _0x50501f=[];for(const [_0x4ec537,_0x26095c]of Array['from'](this['_suggestionToController'])){const _0x595507=_0x4ec537['getAllAdjacentSuggestions'](),_0x4c61b1=[];for(const _0x5c01ec of _0x595507){if(!_0x5c01ec['isInContent'])continue;if(_0x5c01ec['isMultiRange']){_0x4c61b1['push'](..._0x5c01ec['getRanges']());continue;}const _0x5de067=_0x5c01ec['getFirstRange']();if(_0x4c61b1['length']>0x0){const _0x2edf20=_0x4c61b1[0x0]['getJoined'](_0x5de067);if(_0x2edf20){_0x4c61b1[0x0]=_0x2edf20;continue;}}_0x4c61b1['push'](_0x5de067);}_0x50501f['push']([_0x26095c['view'],_0x4c61b1]);}return _0x50501f;}),this['listenTo'](_0x3ea40d,'suggestionLoaded',(_0x1063c0,_0x4dd4b7)=>{this['listenTo'](_0x4dd4b7,'change:previous',(_0x3ae285,_0x4a7709,_0x52432d,_0x1bebc8)=>{_0x4dd4b7['isInContent']&&(null==_0x52432d?(this['_updateController'](_0x1bebc8['head']),this['_handleSuggestionControllerDelayed'](_0x4dd4b7,!0x1)):(this['_updateController'](_0x52432d['head']),null==_0x1bebc8&&this['_handleSuggestionControllerDelayed'](_0x4dd4b7,!0x0)));}),null!==_0x4dd4b7['previous']?this['_updateController'](_0x4dd4b7['head']):this['_handleSuggestionControllerDelayed'](_0x4dd4b7,!0x1);}),this['listenTo'](_0x3ea40d,'suggestionUnloaded',(_0xa26c6b,_0x8d5abe,_0x39f378)=>{this['stopListening'](_0x8d5abe,'change:previous'),this['_handleControllerBuffer']['delete'](_0x8d5abe),this['_suggestionToController']['has'](_0x8d5abe)&&this['_destroyController'](_0x8d5abe),_0x39f378&&this['_updateController'](_0x39f378['head']);}),this['listenTo'](_0x3ea40d,'suggestionChanged',(_0x5cebe1,_0x42b1c2)=>{this['_updateController'](_0x42b1c2);}),this['listenTo'](_0x2b992b,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x805988,'addComment',(_0x35231d,{threadId:_0xb4dd04,isFromAdapter:_0x55f9ca})=>{if(_0x55f9ca||!_0x3ea40d['hasSuggestion'](_0xb4dd04))return;const _0x5ee90=_0x3ea40d['getSuggestion'](_0xb4dd04);this['_suggestionToController']['get'](_0x5ee90)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x238846=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2c2ca8;for(const _0x3338da in _0x238846){const _0x17f280=_0x3338da,_0x284d08=_0x238846[_0x17f280];if('trackChangesLicenseKeyValid'==_0x284d08||'trackChangesLicenseKeyInvalid'==_0x284d08||'trackChangesLicenseKeyExpired'==_0x284d08||'trackChangesLicenseKeyDomainLimit'==_0x284d08||'trackChangesLicenseKeyNotAllowed'==_0x284d08||'trackChangesLicenseKeyEvaluationLimit'==_0x284d08||'trackChangesLicenseKeyTrialLimit'==_0x284d08||'trackChangesLicenseKeyUsageLimit'==_0x284d08){delete _0x238846[_0x17f280],_0x2c2ca8=_0x284d08,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x2c2ca8&&_0x238846['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x2c2ca8&&_0x238846['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x2c2ca8&&_0x238846['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x2c2ca8&&_0x238846['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x2c2ca8&&_0x238846['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x2c2ca8&&_0x238846['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x2c2ca8&&_0x238846['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x3c8901){const _0x5b4b6f=this['_suggestionToController']['get'](_0x3c8901);if(!_0x5b4b6f)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x5b4b6f['view'])||null;}['getSuggestionForAnnotation'](_0x42036c){const _0x1d2f87=this['_viewToController']['get'](_0x42036c['innerView']);return _0x1d2f87?_0x1d2f87['model']:null;}['_refreshActiveMarkers'](){const _0x4fd9b0=this['editor']['plugins']['get']('Annotations'),_0x18d581=this['editor']['plugins']['get']('TrackChangesEditing'),_0x91f129=Array['from'](_0x4fd9b0['activeAnnotations'],_0xe619ea=>_0xe619ea['innerView'])['filter'](_0x3c8dfa=>this['_viewToController']['has'](_0x3c8dfa)),_0x1cb92b=[];for(const _0x36bbca of _0x91f129){const _0x2538b9=this['_viewToController']['get'](_0x36bbca)['model']['getAllAdjacentSuggestions']();_0x1cb92b['push'](..._0x2538b9['reduce']((_0x2d0df7,_0x4ea960)=>[..._0x2d0df7,..._0x4ea960['getMarkerNames']()],[]));}_0x18d581['activeMarkers']=_0x1cb92b;}['_addUIComponentsToFactory'](){const _0x33253c=this['editor'],_0x27fea8=_0x33253c['locale'],_0x486a96=o(_0x27fea8,'Track\x20changes'),_0x12f5b7=new _0x4d97d4([{'type':'switchbutton','model':new _0x14eac5({'withText':!0x0,'isToggleable':!0x0,'label':_0x486a96,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x14eac5({'withText':!0x0,'label':o(_0x27fea8,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x14eac5({'withText':!0x0,'label':o(_0x27fea8,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x14eac5({'withText':!0x0,'label':o(_0x27fea8,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x14eac5({'withText':!0x0,'label':o(_0x27fea8,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x33253c['plugins']['has']('TrackChangesPreview')&&_0x12f5b7['addMany']([{'type':'separator'},{'type':'button','model':new _0x14eac5({'withText':!0x0,'label':o(_0x27fea8,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x236ab0 of _0x12f5b7)if(ke(_0x236ab0)){const _0x45731e=_0x33253c['commands']['get'](_0x236ab0['model']['commandName']);_0x236ab0['model']['bind']('isOn','isEnabled')['to'](_0x45731e,'value','isEnabled');}_0x33253c['ui']['componentFactory']['add']('trackChanges',_0x2a0a42=>this['_createToolbarButton'](_0x2a0a42,_0x12f5b7,_0x486a96)),_0x33253c['ui']['componentFactory']['add']('menuBar:trackChanges',_0x4d60b9=>this['_createMenuBarMenu'](_0x4d60b9,_0x12f5b7,_0x486a96));}['_createToolbarButton'](_0x3892cc,_0x26e93e,_0x404e4a){const _0x51202a=_0xf588af(_0x3892cc,_0x540529),_0x3d50d9=this['editor']['commands']['get']('trackChanges');_0x51202a['buttonView']['set']({'tooltip':_0x404e4a,'label':_0x404e4a,'icon':_0x2bbe84}),_0x51202a['buttonView']['bind']('isOn')['to'](_0x3d50d9,'value'),_0x51202a['buttonView']['on']('execute',()=>{_0x3d50d9['execute'](),this['editor']['editing']['view']['focus']();}),_0x3e7092(_0x51202a,_0x26e93e,{'role':'menu'});const _0x3508d7=[];for(const _0xccbecc of _0x26e93e)ke(_0xccbecc)&&_0x3508d7['push'](this['editor']['commands']['get'](_0xccbecc['model']['commandName']));const _0x5379ac=_0x51202a['buttonView'];return _0x5379ac['actionView']['unbind']('isEnabled'),_0x5379ac['arrowView']['unbind']('isEnabled'),_0x5379ac['actionView']['bind']('isEnabled')['to'](_0x3d50d9,'isEnabled'),_0x5379ac['arrowView']['bind']('isEnabled')['toMany'](_0x3508d7,'isEnabled',(..._0x45cf36)=>_0x45cf36['some'](_0x196aaf=>_0x196aaf)),_0x51202a['on']('execute',_0x2f3c6b=>{this['editor']['execute'](_0x2f3c6b['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x51202a;}['_createMenuBarMenu'](_0x9b02e9,_0x3c96af,_0x2e8358){const _0x16c4f7=new _0x402c46(_0x9b02e9),_0x67442b=this['editor']['commands']['get']('trackChanges');_0x16c4f7['buttonView']['set']({'label':_0x2e8358,'icon':_0x2bbe84});const _0x3bba13=new _0x5a92db(_0x9b02e9);for(const _0x15a9ba of _0x3c96af){if('separator'==_0x15a9ba['type']){_0x3bba13['items']['add'](new _0x2d45ef(_0x9b02e9));continue;}const _0x1b9398=new _0x591776(_0x9b02e9,_0x16c4f7),_0x2c6fc1=new _0x4e41e1(_0x9b02e9),_0x3c1183=_0x15a9ba['model'];_0x2c6fc1['bind'](...Object['keys'](_0x3c1183))['to'](_0x3c1183),_0x2c6fc1['delegate']('execute')['to'](_0x16c4f7),_0x2c6fc1['on']('execute',()=>{this['editor']['execute'](_0x3c1183['commandName']),this['editor']['editing']['view']['focus']();}),_0x1b9398['children']['add'](_0x2c6fc1),_0x3bba13['items']['add'](_0x1b9398);}return _0x16c4f7['bind']('isEnabled')['to'](_0x67442b,'isEnabled'),_0x16c4f7['panelView']['children']['add'](_0x3bba13),_0x16c4f7;}['_initializeController'](_0x213514){const _0x1f64eb=this['editor'],_0xf7e29a=_0x1f64eb['config'],_0x4059a1=_0x1f64eb['plugins']['get']('Annotations'),_0x59cf67=_0x1f64eb['plugins']['get']('CommentsRepository'),_0xfe0a38=_0x1f64eb['plugins']['get']('EditorAnnotations'),_0x46f8f4=_0x1f64eb['plugins']['get'](_0x9e4cfc)['me'],_0x907d3b=_0xf7e29a['get']('trackChanges')['SuggestionThreadView'],_0x1b48bf=_0xf7e29a['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x1107e8,CommentThreadInputView:_0x3f6dcd}=_0x1f64eb['plugins']['get']('CommentsUI');let _0x57288f,_0x39c661,_0x457680;this['_annotationViews']['has'](_0x213514['id'])?(_0x39c661=this['_annotationViews']['get'](_0x213514['id']),_0x57288f=_0x39c661['mainView']):(_0x57288f=new _0x907d3b(_0x1f64eb['locale'],_0x213514,_0x46f8f4,{'disableComments':this['_disableComments'],'editorConfig':{..._0xf7e29a['get']('comments.editorConfig'),'licenseKey':_0xf7e29a['get']('licenseKey')},'maxCommentsWhenCollapsed':_0xf7e29a['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0xf7e29a['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0xf7e29a['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x3bd3af(_0xf7e29a['get']('locale'),_0x1f64eb['locale']),'CommentView':_0xf7e29a['get']('comments')['CommentView'],'CommentsListView':_0x1107e8,'CommentThreadInputView':_0x3f6dcd,'SuggestionView':_0x1b48bf}),_0x57288f['suggestionView']['acceptButton']['on']('execute',()=>{_0x1f64eb['editing']['view']['focus']();}),_0x57288f['suggestionView']['discardButton']['on']('execute',()=>{_0x1f64eb['editing']['view']['focus']();}),_0x39c661=_0x4059a1['createAnnotationView'](this['editor']['locale'],_0x57288f),_0x39c661['bind']('isDirty')['to'](_0x57288f,'isDirty'),_0x39c661['bind']('length')['to'](_0x57288f),_0x39c661['bind']('type')['to'](_0x57288f,'type',_0x32db58=>'suggestion-'+_0x32db58),_0x57288f['on']('escape',()=>{_0x457680['fire']('escape');}),this['_annotationViews']['set'](_0x213514['id'],_0x39c661));const _0x1f33b6=_0x59cf67['createCommentThreadController'](_0x213514['commentThread'],_0x57288f),_0x4717f1=new pe(_0x1f64eb,_0x213514,_0x57288f,_0x1f33b6),_0x4051f1=_0x213514['getAllAdjacentSuggestions']()['filter'](_0x282d85=>_0x282d85['isInContent']);_0x57288f['descriptionParts']=_0x1f64eb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x4051f1),this['_suggestionToController']['set'](_0x213514,_0x4717f1),this['_viewToController']['set'](_0x57288f,_0x4717f1);const _0x319c85=()=>{const _0x15678c=[],_0x24b677=_0x213514['getAllAdjacentSuggestions']()['filter'](_0x435daf=>_0x435daf['isInContent']);for(const _0x27a2f4 of _0x24b677)_0x15678c['push'](..._0x27a2f4['getMarkers']());return _0x4fbd1e(_0x1f64eb['editing'],_0x15678c);};_0x457680=_0x4059a1['createAnnotation']({'view':_0x39c661,'target':_0x319c85,'type':()=>'suggestion-'+_0x4717f1['view']['type'],'isVisible':!!_0x319c85()}),_0x59cf67['_bindAnnotationToEditors'](_0x57288f,_0x457680),_0x4059a1['add'](_0x457680),_0xfe0a38['registerAnnotation'](_0x457680);}['_destroyController'](_0x160d69){const _0x5ccd28=this['editor']['plugins']['get']('CommentsRepository'),_0x50450c=this['editor']['plugins']['get']('Annotations'),_0x41a8fe=this['_suggestionToController']['get'](_0x160d69),_0x503405=_0x41a8fe['view'],_0x50b5c5=_0x50450c['getByInnerView'](_0x503405);_0x5ccd28['_unbindEditors'](_0x503405),_0x50b5c5&&_0x50450c['remove'](_0x50b5c5),this['_suggestionToController']['delete'](_0x160d69),this['_viewToController']['delete'](_0x503405),_0x41a8fe['destroy']();}['_updateController'](_0xb68bb9){if(!_0xb68bb9['isInContent']||!this['_suggestionToController']['has'](_0xb68bb9))return;const _0x409b2b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4d6f61=this['_suggestionToController']['get'](_0xb68bb9),_0x18d6ae=_0xb68bb9['getAllAdjacentSuggestions']();_0x4d6f61['view']['descriptionParts']=_0x409b2b['descriptionFactory']['getDescriptions'](_0x18d6ae);}['destroy'](){for(const _0x1e012b of this['_suggestionToController']['keys']())this['_destroyController'](_0x1e012b);for(const _0xa4aa10 of this['_annotationViews']['values']())_0xa4aa10['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x2d7fa5){return'model'in _0x2d7fa5;}class Fe extends _0xe680e7{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x307be8){this['editor']['plugins']['get'](d)['adapter']=_0x307be8;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x390413){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x390413);}['getSuggestions']({skipNotAttached:_0x62d6f6=!0x1,toJSON:_0x12e91d=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x62d6f6,'toJSON':_0x12e91d});}['getSuggestion'](_0x56d97f){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x56d97f);}}const p=['Pagination'];class re extends _0xe680e7{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x422b52=this['editor'];if(_0x422b52['config']['define']('trackChangesData.editorCreator',_0x22a591=>{const _0x2548ce=_0x422b52['model']['document']['getRootNames']()['reduce']((_0x354236,_0x5a4de6)=>(_0x354236[_0x5a4de6]='',_0x354236),{});return _0x422b52['constructor']['create'](_0x2548ce,_0x22a591);}),'function'!=typeof _0x422b52['config']['get']('trackChangesData')['editorCreator'])throw new _0x56f143('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x9b337c){return P(this['editor'],!0x0,_0x9b337c);}['getDataWithDiscardedSuggestions'](_0x569130){return P(this['editor'],!0x1,_0x569130);}}class Ge extends _0xe680e7{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x461ee8){function _0x407c72(_0x2790b6){return _0x2790b6['map'](_0x2629c5=>String['fromCharCode'](_0x2629c5))['join']('');}super(_0x461ee8),this['result']='end',_0x461ee8[_0x407c72([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x407c72([0x76,0x69,0x65,0x77])][_0x407c72([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x407c72([0x61,0x75,0x74,0x6f]),_0x461ee8[_0x407c72([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x407c72([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x407c72([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x407c72([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x407c72([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 He(_0x3f9709){return void 0x0!==_0x3f9709['getRootsAttributes'];}async function P(_0x33d10c,_0x3a2d9c,_0x20caeb){const _0x1b7434=_0x19ed98(_0x33d10c,p);_0x1b7434['plugins']['push'](d,Ge),_0x1b7434['rootsAttributes']=He(_0x33d10c)?_0x33d10c['getRootsAttributes']():void 0x0;const _0x4c0fd5=document['createDocumentFragment'](),_0x2ddf2c=_0x33d10c['config']['get']('trackChangesData')['editorCreator'],_0x15c846=await _0x2ddf2c(_0x1b7434,()=>function(_0x2dbf8a){const _0x307171=document['createElement']('div');return _0x2dbf8a['appendChild'](_0x307171),_0x307171;}(_0x4c0fd5));!function(_0xfbec61,_0x39e5a2){const _0x14476d=_0xfbec61['model']['document']['getRootNames']()['reduce']((_0x416782,_0x435a40)=>(_0x416782[_0x435a40]=_0xfbec61['data']['get']({'rootName':_0x435a40}),_0x416782),{}),_0x323f8e=_0xfbec61['plugins']['get']('Users')['users']['map'](_0x145b9c=>({'id':_0x145b9c['id'],'name':_0x145b9c['name']})),_0x5a6dc3=_0xfbec61['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x30c887=_0xfbec61['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x33c1d1=_0x39e5a2['plugins']['get']('Users'),_0x267f13=_0x39e5a2['plugins']['get']('TrackChangesEditing'),_0x315659=_0x39e5a2['plugins']['get']('CommentsRepository');for(const _0x2aed18 of _0x315659['getCommentThreads']())_0x2aed18['remove']();for(const _0xfd01d of _0x323f8e)_0x33c1d1['getUser'](_0xfd01d['id'])||_0x33c1d1['addUser'](_0xfd01d);_0x33c1d1['me']||_0x33c1d1['useAnonymousUser']();for(const _0x13a53f of _0x30c887)_0x315659['addCommentThread'](_0x13a53f);for(const _0x212e40 of _0x5a6dc3)_0x267f13['addSuggestionData'](_0x212e40);_0x39e5a2['data']['set'](_0x14476d);}(_0x33d10c,_0x15c846),_0x15c846['execute'](_0x3a2d9c?'acceptAllSuggestions':'discardAllSuggestions');const _0x520ce0=He(_0x15c846)?_0x15c846['getFullData'](_0x20caeb):_0x15c846['data']['get'](_0x20caeb);return await _0x15c846['destroy'](),_0x520ce0;}class Me extends _0x434eb5{['options'];constructor(_0x37f050,_0x55bb1a){super(_0x37f050),this['options']=_0x55bb1a,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'](_0x404239,_0x3512d0){if(!this['element'])return;const _0x455926=[];for(const [_0x359ea5,_0x3e73bc]of _0x404239){const _0x3c30f6=document['createElement']('div');_0x3c30f6['setAttribute']('data-ck-root-name',_0x359ea5),_0x3c30f6['className']=_0x3e73bc['classes']+'\x20ck-track-changes-preview__root-container',_0x3c30f6['innerHTML']=_0x3e73bc['content'],_0x455926['push'](_0x3c30f6);}_0x3512d0(this['element'],_0x455926),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x496482{constructor(_0x285384){super(_0x285384),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x5144c3=this['editor'],_0xa6cced=_0x5144c3['locale'],_0x50c7e6=_0x5144c3['plugins']['get']('Dialog');let _0x42775e;const _0x347eb2=function(_0x2ca6b2){const _0x24c8e5={};if('editables'in _0x2ca6b2['ui']['view']){for(const [_0xe858d,_0x5ddd12]of Object['entries'](_0x2ca6b2['ui']['view']['editables']))_0x24c8e5[_0xe858d]=_0x5ddd12['element'];}else _0x24c8e5[_0x2ca6b2['model']['document']['getRootNames']()[0x0]]=_0x2ca6b2['ui']['view']['editable']['element'];return _0x24c8e5;}(_0x5144c3),_0x59c639=function(_0x30170e){let _0x50759a=0x0;for(const _0x5c1bd7 of Object['values'](_0x30170e))_0x50759a=Math['max'](_0x50759a,_0x5c1bd7['getBoundingClientRect']()['width']);let _0x2f9ff1=0x0;for(const _0x178916 of Object['values'](_0x30170e))_0x2f9ff1+=_0x178916['getBoundingClientRect']()['height'];const _0x31affb=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x5a4ab6=Math['min'](_0x2f9ff1,_0x31affb);return{'width':_0x50759a,'height':_0x5a4ab6};}(_0x347eb2);_0x50c7e6['show']({'id':'finalContentPreview','title':o(_0xa6cced,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0xa6cced,{'dialogRects':_0x59c639}),'onHide':()=>{_0x42775e['detachFromDom']();},'onShow':()=>{_0x5144c3['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x2b3d67=>{const _0x43f9bf=this['_standarizeRootsData'](_0x2b3d67,_0x5144c3,_0x347eb2);_0x50c7e6['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x43f9bf,_0x5144c3['config']['get']('trackChanges.preview.renderFunction'));}),_0x42775e=new _0x1d3989(_0xa6cced,[_0x50c7e6['view']]),_0x42775e['attachToDom'](),_0x42775e['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x5144c3['once']('destroy',()=>{_0x42775e['detachFromDom']();});const _0x2b51b0=_0x50c7e6['view']['headerView']['class'];_0x50c7e6['view']['headerView']['class']=_0x2b51b0?_0x2b51b0+'\x20ck-reset_all':'ck-reset_all',_0x50c7e6['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x50c7e6['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0xcb2738=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x36fb4d=_0xcb2738['previewMode'],_0x3132bc={};if('$labels'===_0x36fb4d){for(const _0x2669a7 of _0xcb2738['getMergeFieldsIds']())_0x3132bc[_0x2669a7]=_0xcb2738['getLabel'](_0x2669a7)||_0x2669a7;}else{const _0x13a54f='$defaultValues'===_0x36fb4d?_0xcb2738['getDefaultValues']():_0xcb2738['getDataSetValues'](_0x36fb4d,!0x0);for(const _0x5ed135 of Object['entries'](_0x13a54f)){const [_0x28124b,_0x1f60ec]=_0x5ed135;_0x3132bc[_0x28124b]=null!==_0x1f60ec?_0x1f60ec:_0xcb2738['getLabel'](_0x28124b)||_0x28124b;}}return{'mergeFieldsData':_0x3132bc};}['_standarizeRootsData'](_0x4c62c0,_0x57537a,_0x4e5718){let _0x4fdc46;if('string'==typeof _0x4c62c0){const _0x54b2c5=_0x57537a['model']['document']['getRootNames']()[0x0];_0x4fdc46={[_0x54b2c5]:_0x4c62c0};}else _0x4fdc46=_0x4c62c0;const _0x4bf23b=this['_fixMediaEmbeds'](_0x4fdc46,_0x57537a),_0x1a60d8=function(_0x47111d,_0x16006d){for(const [_0x2a58c8,_0x30af0f]of _0x47111d)_0x30af0f['classes']=_0x16006d[_0x2a58c8]['classList']['value']['replace']('ck-focused','');return _0x47111d;}(this['_sortRoots'](_0x57537a)['reduce']((_0x54ca2a,_0x47d593)=>(_0x54ca2a['push']([_0x47d593,{'content':_0x4bf23b[_0x47d593],'classes':''}]),_0x54ca2a),[]),_0x4e5718);return _0x1a60d8;}['_fixMediaEmbeds'](_0x1018c4,_0x41e692){if(!_0x41e692['plugins']['has']('MediaEmbedEditing'))return _0x1018c4;const _0x279246=_0x41e692['plugins']['get']('MediaEmbedEditing');for(const [_0x405bf9,_0x443237]of Object['entries'](_0x1018c4)){const _0x51e263=document['createElement']('div');_0x51e263['innerHTML']=_0x443237,(_0x51e263['querySelectorAll']('figure.media')['forEach'](_0x1ab7fa=>{const _0x3812a7=_0x1ab7fa['querySelector']('oembed');if(_0x3812a7){const _0xa15434=_0x3812a7['getAttribute']('url');if(_0xa15434){const _0x42ac88=_0x279246['registry']['getMediaViewElement'](new _0xdc0055(_0x41e692['editing']['view']['document']),_0xa15434,{'elementName':'','renderForEditingView':!0x0}),_0x5b9365=document['createElement']('div');_0x5b9365['classList']['add']('ck-media__wrapper'),_0x42ac88['render'](_0x5b9365,_0x41e692['editing']['view']['domConverter']),_0x3812a7['replaceWith'](_0x5b9365);}}}),_0x1018c4[_0x405bf9]=_0x51e263['innerHTML']);}return _0x1018c4;}['_sortRoots'](_0x173bc3){if(!function(_0xc16843){return void 0x0!==_0xc16843['getRootsAttributes'];}(_0x173bc3))return _0x173bc3['model']['document']['getRootNames']();const _0x11f572=[],_0x1b53f9=new Map();for(const _0x3a5c99 of _0x173bc3['model']['document']['getRootNames']()){const _0x298580=_0x173bc3['editing']['view']['getDomRoot'](_0x3a5c99)['getClientRects']()['item'](0x0);_0x11f572['push'](_0x3a5c99),_0x1b53f9['set'](_0x3a5c99,_0x298580);}return _0x11f572['sort']((_0x4b2d4a,_0x49b542)=>{const _0xf8647d=_0x1b53f9['get'](_0x4b2d4a),_0x41580e=_0x1b53f9['get'](_0x49b542);return _0xf8647d['y']-_0x41580e['y']||_0xf8647d['x']-_0x41580e['x'];}),_0x11f572;}}class $e extends _0xe680e7{static get['requires'](){return[re,_0x3ec4d3];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4811be){super(_0x4811be),_0x4811be['commands']['add']('previewFinalContent',new te(this['editor'])),_0x4811be['config']['define']('trackChanges.preview.renderFunction',(_0x36d175,_0x5d760a)=>{for(const _0x56ffa9 of _0x5d760a)_0x36d175['appendChild'](_0x56ffa9);});}}export{D as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,$ as DiscardSuggestionCommand,M as ExecuteOnAllSuggestionsCommand,B as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,T as Suggestion,x as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Fe as TrackChanges,N as TrackChangesCommand,re as TrackChangesData,Ge as TrackChangesDataGetter,d as TrackChangesEditing,$e as TrackChangesPreview,u as TrackChangesUI};
|
|
23
|
+
import{Command as _0x3c0660,Plugin as _0x573845,PendingActions as _0x36c5c9}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x55c846,ObservableMixin as _0xad4ab3,uid as _0x334525,priorities as _0x4aac02,insertToPriorityArray as _0x45163b,toArray as _0x40c634,logWarning as _0x42dd4f,getEnvKeystrokeText as _0x49ca32,FocusTracker as _0x26cf0f,KeystrokeHandler as _0x463913,Collection as _0x1cf2e2}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x54ddab,IconCancel as _0x2590d6,IconTrackChanges as _0x34b412}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x53f79b,View as _0x51b4e6,ViewCollection as _0x4cfbc0,FocusCycler as _0x18e82b,UIModel as _0x506e9b,createDropdown as _0x5a72bb,SplitButtonView as _0x379a1e,addListToDropdown as _0x228178,MenuBarMenuView as _0x40e698,MenuBarMenuListView as _0x27bc01,ListSeparatorView as _0x1c278e,MenuBarMenuListItemView as _0x31cd3e,MenuBarMenuListItemButtonView as _0x5d6f0b,BodyCollection as _0x307f39,Dialog as _0x525d08}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x339440,hashObject as _0x504617,surroundingMarkersDetector as _0x34f048,FOCUS_ANNOTATION_KEYSTROKE as _0x3f83d3,AriaDescriptionView as _0x5ed401,setupThreadKeyboardNavigation as _0x7bd68c,trimHtml as _0x501172,UserView as _0x2d779c,LateFocusButtonView as _0x7fc134,getDateTimeFormatter as _0x2261fe,getAllMarkersDomElementsSorted as _0x499841,sanitizeEditorConfig as _0x2b319f}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x2c4c5e,ModelLiveRange as _0x1f4d12,ModelLivePosition as _0x30a3dd,ViewDowncastWriter as _0x29bf86}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x267ebd,toWidget as _0x48680d}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x1f353d,set as _0x25ce2e,isEqual as _0x40eb7f,unset as _0x3093b8,omit as Ut}from'es-toolkit/compat';import{Delete as _0x278058,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x47d1d3}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x3c134a}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class N extends _0x3c0660{['_enabledCommands'];constructor(_0x161658,_0x554f9f){super(_0x161658),this['_enabledCommands']=_0x554f9f,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 _0x1fc643 of this['editor']['commands']['commands']())_0x1fc643['affectsData']&&!this['_enabledCommands']['has'](_0x1fc643)&&_0x1fc643['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x4b2232 of this['editor']['commands']['commands']())_0x4b2232['affectsData']&&!this['_enabledCommands']['has'](_0x4b2232)&&_0x4b2232['clearForceDisabled']('TrackChangesCommand');}}class D extends _0x3c0660{['_suggestions'];constructor(_0x2e44b9,_0x2bd281){super(_0x2e44b9),this['_suggestions']=_0x2bd281,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x33feaa){const _0x594c2d=this['_suggestions']['get'](_0x33feaa);if(!_0x594c2d)throw new _0x55c846('track-changes-accept-suggestion-not-found',this);const _0x3d4077=_0x594c2d['getRanges']();this['editor']['model']['canEditAt'](_0x3d4077)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x594c2d);}}class $ extends _0x3c0660{['_suggestions'];constructor(_0x388ba1,_0x40b346){super(_0x388ba1),this['_suggestions']=_0x40b346,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x2477b8){const _0x3fa993=this['_suggestions']['get'](_0x2477b8);if(!_0x3fa993)throw new _0x55c846('track-changes-discard-suggestion-not-found',this);const _0x4cdd46=_0x3fa993['getRanges']();this['editor']['model']['canEditAt'](_0x4cdd46)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x3fa993);}}function ls(_0x44f86d,_0x148458){let _0x3c7daf='';return _0x3c7daf+=_0x44f86d['split']('*')['map']((_0x1c123f,_0x50bf72)=>_0x50bf72%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+Zt(_0x1c123f)+'</span>':Zt(_0x1c123f))['join'](''),_0x148458&&(_0x3c7daf+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x148458['value']+'\x22\x20title=\x22'+_0x148458['title']+'\x22></span>'),_0x3c7daf;}function Zt(_0x1a81f5){const _0x1e56e4=document['createElement']('span');return _0x1e56e4['innerText']=_0x1a81f5,_0x1e56e4['innerHTML'];}function ts(_0x48f54c){return _0x48f54c['sort']((_0xb42fa8,_0x505e66)=>'attribute'===_0xb42fa8['type']&&'attribute'!==_0x505e66['type']?-0x1:'attribute'!==_0xb42fa8['type']&&'attribute'===_0x505e66['type']?0x1:'deletion'==_0xb42fa8['type']&&'deletion'!=_0x505e66['type']?-0x1:'deletion'!=_0xb42fa8['type']&&'deletion'==_0x505e66['type']?0x1:0x0);}function to(_0x2fefa9,_0x1d1b1e){let _0xfc7577,_0x460f52=0x0;const _0x396906=[],_0x15902d=_0x1d1b1e['schema'];for(;_0x460f52<_0x2fefa9['length'];){const _0x16f735=_0x2fefa9[_0x460f52],_0x51e959=_0x2fefa9[_0x460f52+0x1];_0xfc7577||(_0xfc7577=_0x1d1b1e['createPositionBefore'](_0x16f735)),tn(_0x1d1b1e,_0x16f735,_0x51e959)||(_0x396906['push'](_0x1d1b1e['createRange'](_0xfc7577,_0x15902d['isObject'](_0x16f735)?_0x1d1b1e['createPositionAfter'](_0x16f735):_0x1d1b1e['createPositionAt'](_0x16f735,'end'))),_0xfc7577=null),_0x460f52++;}return _0x396906;}function tn(_0x43d49a,_0x369edd,_0x386298){if(!_0x386298)return!0x1;const _0xa65bf=_0x43d49a['createPositionAfter'](_0x369edd),_0x147548=_0x43d49a['createPositionBefore'](_0x386298);return _0xa65bf['isTouching'](_0x147548);}function rs(_0x5b5817,_0x544c4c,_0x75de1b){for(;_0x75de1b['length'];){const _0x32de48=_0x75de1b['splice'](0x0,0x64);_0x5b5817['change'](()=>{for(const _0x265fa7 of _0x32de48)_0x265fa7['isInContent']&&_0x544c4c['execute'](_0x265fa7['id']);});}}class M extends _0x3c0660{['_command'];['_suggestions'];constructor(_0x8af2b3,_0x1592eb,_0x224f3d){super(_0x8af2b3),this['_command']=_0x1592eb,this['_suggestions']=_0x224f3d,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x5e0897=Array['from'](this['_suggestions']['values']())['some'](_0x42ff34=>_0x42ff34['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x5e0897;}['execute'](){const _0x293cd7=ts(Array['from'](this['_suggestions']['values']()));for(const _0x37491b of _0x293cd7){const _0x328620=_0x37491b['getRanges']();if(!this['editor']['model']['canEditAt'](_0x328620))return;}rs(this['editor']['model'],this['_command'],_0x293cd7);}}class B extends _0x3c0660{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0xc3d70b,_0x1f6e56,_0x1743d8){super(_0xc3d70b),this['_command']=_0x1f6e56,this['_suggestions']=_0x1743d8,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x1a74ee=this['editor']['model']['document']['selection'],_0x557040=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x5cea34,_0x18ba8d){const _0x26188b=Array['from'](_0x5cea34['getRanges']()),_0x2f4620=new Set();for(const _0xc0884d of _0x18ba8d)if(_0xc0884d['isInContent']){for(const _0x3b4890 of _0x26188b)for(const _0x1d3e86 of _0xc0884d['getRanges']())(_0x3b4890['isIntersecting'](_0x1d3e86)||_0x5cea34['isCollapsed']&&!_0xc0884d['isMultiRange']&&_0xc0884d['next']&&_0x1d3e86['end']['isTouching'](_0x3b4890['start']))&&_0x2f4620['add'](_0xc0884d);}return _0x2f4620;}(_0x1a74ee,_0x557040),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x662cd2=ts(Array['from'](this['_selectedSuggestions']));for(const _0x484be8 of _0x662cd2){const _0x46caef=_0x484be8['getRanges']();if(!this['editor']['model']['canEditAt'](_0x46caef))return;}rs(this['editor']['model'],this['_command'],_0x662cd2);}}class T extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0xad4ab3(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x1f16ee,_0x1a97f3){super(),this['id']=_0x1a97f3['id'],this['type']=_0x1a97f3['type'],this['subType']=_0x1a97f3['subType']||null,this['author']=_0x1a97f3['author'],this['creator']=_0x1a97f3['creator']||_0x1a97f3['author'],this['isExternal']=Boolean(_0x1a97f3['attributes']&&_0x1a97f3['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x1a97f3['originalSuggestionId']||null,this['_model']=_0x1f16ee,this['_onAccept']=_0x1a97f3['onAccept'],this['_onDiscard']=_0x1a97f3['onDiscard'],this['_onAttributesChange']=_0x1a97f3['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x1a97f3['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 _0x48556c=this;for(;_0x48556c['previous'];)_0x48556c=_0x48556c['previous'];return _0x48556c;}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'](_0x206fcc){this['_markerNames']['add'](_0x206fcc);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x4439e2=>this['_model']['markers']['get'](_0x4439e2))['filter'](_0x1ab98a=>_0x1ab98a);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x5ebcb1=>{for(const _0x185741 of this['getMarkers']())_0x5ebcb1['removeMarker'](_0x185741);}),this['_markerNames']['clear']();}['removeMarker'](_0x415ad8){this['_model']['change'](_0x54ed24=>{_0x54ed24['removeMarker'](_0x415ad8);}),this['_markerNames']['delete'](_0x415ad8);}['addRange'](_0x10cabb){const _0x371354='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x371354),this['_model']['change'](_0x58db25=>{_0x58db25['addMarker'](_0x371354,{'range':_0x10cabb,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x19e388){for(const _0xef0e78 of this['getRanges']())if(_0xef0e78['isIntersecting'](_0x19e388))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x40be59=>_0x40be59['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x1fc019,_0x89e2b9)=>[..._0x1fc019,..._0x89e2b9['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x9d069d=this['getRanges']();if(0x1!=_0x9d069d['length'])return null;const _0x474433=_0x9d069d[0x0],_0x349366=_0x474433['start']['nodeAfter'],_0x25874f=_0x474433['end']['nodeBefore'];return _0x349366 instanceof _0x2c4c5e?_0x349366!=_0x25874f?null:_0x349366: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 _0x28ec16=[];let _0xa15432=this['head'];for(;_0xa15432;)_0x28ec16['push'](_0xa15432),_0xa15432=_0xa15432['next'];return _0x28ec16;}['setAttribute'](_0x4fbcb8,_0x15c751){const _0x4c66d9=_0x1f353d(this['attributes']);_0x25ce2e(_0x4c66d9,_0x4fbcb8,_0x15c751),_0x40eb7f(_0x4c66d9,this['attributes'])||(this['attributes']=_0x4c66d9,this['_onAttributesChange'](_0x4c66d9));}['removeAttribute'](_0x2928a9){const _0x31b57a=_0x1f353d(this['attributes']);_0x3093b8(_0x31b57a,_0x2928a9),_0x40eb7f(_0x31b57a,this['attributes'])||(this['attributes']=_0x31b57a,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 _0x334525()['substr'](0x1,0x5);}}function o(_0x2b3388,_0x3f0c86,_0xb4ef37){const _0x43c9b1=_0x2b3388['t'],t=_0x2b3388['t'];switch(_0x3f0c86){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',_0xb4ef37);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0xb4ef37);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0xb4ef37);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0xb4ef37);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0xb4ef37);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',_0xb4ef37);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0xb4ef37);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',_0xb4ef37);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0xb4ef37);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0xb4ef37);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0xb4ef37);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0xb4ef37);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0xb4ef37);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0xb4ef37);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0xb4ef37);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0xb4ef37);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0xb4ef37);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0xb4ef37);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0xb4ef37);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0xb4ef37);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0xb4ef37);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0xb4ef37);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0xb4ef37);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0xb4ef37);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0xb4ef37);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'},_0xb4ef37);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0xb4ef37);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0xb4ef37);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0xb4ef37);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0xb4ef37);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0xb4ef37);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0xb4ef37);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0xb4ef37);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'},_0xb4ef37);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0xb4ef37);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0xb4ef37);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0xb4ef37);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0xb4ef37);case'ELEMENT_DEFAULT_LIST_DEFAULT':return t({'string':'default\x20list\x20style','id':'ELEMENT_DEFAULT_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_DEFAULT':return t({'string':'bulleted\x20list\x20(default)','id':'ELEMENT_BULLETED_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST_DEFAULT':return t({'string':'numbered\x20list\x20(default)','id':'ELEMENT_NUMBERED_LIST_DEFAULT'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'ELEMENT_MULTI_LEVEL_LIST':return t({'string':'multi-level\x20list','id':'ELEMENT_MULTI_LEVEL_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0xb4ef37);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0xb4ef37);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'},_0xb4ef37);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'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'},_0xb4ef37);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0xb4ef37);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'},_0xb4ef37);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0xb4ef37);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'},_0xb4ef37);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0xb4ef37);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0xb4ef37);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'},_0xb4ef37);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0xb4ef37);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 _0x43c9b1({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0xb4ef37);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x43c9b1({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0xb4ef37);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0xb4ef37);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'},_0xb4ef37);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'},_0xb4ef37);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'},_0xb4ef37);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x3f0c86;}}class x{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x34a7a9,_0x25e28b){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x34a7a9,this['_locale']=_0x25e28b;}['getDescriptions'](_0x3f3f44){const _0x30bf0e=[],_0x395ac1=new Set(),_0x1c1653=new Set();for(let _0x40ec00=0x0;_0x40ec00<_0x3f3f44['length'];_0x40ec00++){const _0x5b6b3a=_0x3f3f44[_0x40ec00];if(!_0x5b6b3a['isInContent'])continue;const _0x5354a8=this['_handleCustomCallbackDescription'](_0x5b6b3a);if(_0x5354a8){if(null!=_0x5b6b3a['subType']){if(_0x395ac1['has'](_0x5b6b3a['subType']))continue;_0x395ac1['add'](_0x5b6b3a['subType']);}_0x30bf0e['push'](_0x5354a8);}else{if('attribute'==_0x5b6b3a['type']){const _0x530ace=_0x5b6b3a['data']['key'];if(_0x1c1653['has'](_0x530ace))continue;_0x1c1653['add'](_0x5b6b3a['data']['key']),_0x530ace==m?this['_handleRenameSuggestionDescription'](_0x30bf0e,_0x5b6b3a):this['_handleAttributeSuggestionDescription'](_0x30bf0e,_0x5b6b3a);continue;}'insertion'!=_0x5b6b3a['type']&&'deletion'!=_0x5b6b3a['type']||this['_handleInsertRemoveSuggestionDescription'](_0x30bf0e,_0x5b6b3a,_0x3f3f44[_0x40ec00+0x1]);}}return this['_resolveDescriptionItems'](_0x30bf0e);}['registerDescriptionCallback'](_0x14ae78){this['_customCallbacks']['push'](_0x14ae78);}['registerElementLabel'](_0x159a1c,_0x4ac7ce,_0x3afb31=_0x4aac02['normal']){'function'==typeof _0x159a1c?_0x45163b(this['_itemLabelsCallbacks'],{'matchingCallback':_0x159a1c,'label':_0x4ac7ce,'priority':_0x3afb31}):this['_itemLabels']['set'](_0x159a1c,_0x4ac7ce);}['registerAttributeLabel'](_0x2a72de,_0x407688){this['_attributeLabels']['set'](_0x2a72de,_0x407688);}['getItemLabel'](_0x1a4d65,_0x2dc64c=0x1){let _0x4594ff;for(const _0x2cf708 of this['_itemLabelsCallbacks'])if(_0x2cf708['matchingCallback'](_0x1a4d65)){_0x4594ff=_0x2cf708['label'];break;}return _0x4594ff||(_0x4594ff=this['_itemLabels']['get'](_0x1a4d65['name'])),_0x4594ff?_0x4594ff(_0x2dc64c):0x1!==_0x2dc64c?_0x2dc64c+'\x20'+_0x1a4d65['name']+'s':''+_0x1a4d65['name'];}['_addDescriptionItems'](_0x25ae10,_0x40f882){const _0x532141=_0x40f882['getFirstRange']()['getWalker'](),_0x58ab60='insertion'==_0x40f882['type']?'add':'remove';for(const _0x3851c0 of _0x532141){const _0x15a5ba=_0x3851c0['item'],_0x1bf67b=_0x25ae10[_0x25ae10['length']-0x1];if(_0x15a5ba['is']('$textProxy'))_0x1bf67b&&_0x1bf67b['type']['indexOf']('Container')>-0x1&&_0x25ae10['pop'](),_0x1bf67b&&'text'==_0x1bf67b['type']?_0x1bf67b[_0x58ab60]+=_0x15a5ba['data']:_0x25ae10['push']({'type':'text','add':'add'==_0x58ab60?_0x15a5ba['data']:'','remove':'remove'==_0x58ab60?_0x15a5ba['data']:''});else{if(this['_schema']['isObject'](_0x15a5ba)){const _0x588a36=_0x15a5ba;if(_0x1bf67b&&_0x1bf67b['type']['indexOf']('Container')>-0x1&&_0x25ae10['pop'](),'elementEnd'==_0x3851c0['type'])continue;_0x1bf67b&&_0x1bf67b['type']==_0x58ab60+'Object'&&_0x1bf67b['element']['name']==_0x588a36['name']?_0x1bf67b['quantity']++:_0x25ae10['push']({'type':_0x58ab60+'Object','element':_0x588a36,'quantity':0x1}),_0x532141['skip'](_0x2e0e9c=>!('elementEnd'==_0x2e0e9c['type']&&_0x2e0e9c['item']==_0x15a5ba));}else{if(this['_schema']['checkChild'](_0x15a5ba,'$text')||_0x15a5ba['is']('element','softBreak')){const _0x11ef0a=_0x15a5ba;if('add'==_0x58ab60&&'elementStart'==_0x3851c0['type']||'remove'==_0x58ab60&&'elementEnd'==_0x3851c0['type'])continue;if(_0x1bf67b&&-0x1==_0x1bf67b['type']['indexOf']('Container')){'text'==_0x1bf67b['type']&&(_0x1bf67b[_0x58ab60]+='\x0a');continue;}let _0x202851;if(_0x202851='add'==_0x58ab60?_0x11ef0a['nextSibling']&&!this['_schema']['isObject'](_0x11ef0a['nextSibling'])?_0x11ef0a['nextSibling']:null:_0x11ef0a['previousSibling']&&!this['_schema']['isObject'](_0x11ef0a['previousSibling'])?_0x11ef0a['previousSibling']:null,_0x11ef0a['isEmpty']||_0x202851&&_0x202851['isEmpty']){const _0x13b211=_0x202851&&_0x202851['isEmpty']?_0x202851:_0x11ef0a;_0x1bf67b&&_0x1bf67b['type']==_0x58ab60+'EmptyContainer'&&_0x1bf67b['element']['name']==_0x13b211['name']?_0x1bf67b['quantity']++:_0x25ae10['push']({'type':_0x58ab60+'EmptyContainer','element':_0x13b211,'quantity':0x1});}else _0x25ae10['push']({'type':_0x58ab60+'Container','element':_0x11ef0a});}}}}}['_resolveDescriptionItems'](_0x3f99ed){const _0x1fea58=this['_locale'],_0x57b24b=[],_0x38db9f=[],_0x28b2a2=[];for(const _0x3d9db2 of _0x3f99ed)switch(_0x3d9db2['type']){case'text':if(_0x3d9db2['add']=_0x3d9db2['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x3d9db2['remove']=_0x3d9db2['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x3d9db2['add']&&''!=_0x3d9db2['remove']){_0x57b24b['push']({'type':'replace','content':o(_0x1fea58,'REPLACE_TEXT',['\x22'+_0x3d9db2['remove']+'\x22','\x22'+_0x3d9db2['add']+'\x22'])});continue;}if(null!=_0x3d9db2['add']['match'](/^ +$/)){_0x57b24b['push']({'type':'insertion','content':o(_0x1fea58,'*Insert:*\x20%0',o(_0x1fea58,'ELEMENT_SPACE',_0x3d9db2['add']['length']))});continue;}if(null!=_0x3d9db2['remove']['match'](/^ +$/)){_0x57b24b['push']({'type':'deletion','content':o(_0x1fea58,'*Remove:*\x20%0',o(_0x1fea58,'ELEMENT_SPACE',_0x3d9db2['remove']['length']))});continue;}if(''!=_0x3d9db2['add']){_0x57b24b['push']({'type':'insertion','content':o(_0x1fea58,'*Insert:*\x20%0','\x22'+_0x3d9db2['add']+'\x22')});continue;}_0x57b24b['push']({'type':'deletion','content':o(_0x1fea58,'*Remove:*\x20%0','\x22'+_0x3d9db2['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x57b24b['push']({'type':'insertion','content':o(_0x1fea58,'*Insert:*\x20%0',this['getItemLabel'](_0x3d9db2['element'],_0x3d9db2['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x57b24b['push']({'type':'deletion','content':o(_0x1fea58,'*Remove:*\x20%0',this['getItemLabel'](_0x3d9db2['element'],_0x3d9db2['quantity']))});continue;case'addContainer':_0x57b24b['push']({'type':'insertion','content':o(_0x1fea58,'*Split:*\x20%0',this['getItemLabel'](_0x3d9db2['element'],_0x3d9db2['quantity']))});continue;case'removeContainer':_0x57b24b['push']({'type':'deletion','content':o(_0x1fea58,'*Merge:*\x20%0',this['getItemLabel'](_0x3d9db2['element'],_0x3d9db2['quantity']))});continue;case'addFormat':_0x38db9f['push'](_0x3d9db2['key']);continue;case'removeFormat':_0x28b2a2['push'](_0x3d9db2['key']);continue;default:_0x57b24b['push'](_0x3d9db2);}if(_0x38db9f['length']){const _0x385f0e=_0x38db9f['map'](_0x577458=>this['_attributeLabels']['has'](_0x577458)?this['_attributeLabels']['get'](_0x577458):_0x577458)['join'](',\x20');_0x57b24b['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x385f0e)});}if(_0x28b2a2['length']){const _0x3aad25=_0x28b2a2['map'](_0x509dcc=>this['_attributeLabels']['has'](_0x509dcc)?this['_attributeLabels']['get'](_0x509dcc):_0x509dcc)['join'](',\x20');_0x57b24b['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x3aad25)});}return _0x57b24b;}['_handleCustomCallbackDescription'](_0x4030b5){for(const _0x1d845b of this['_customCallbacks']){const _0x1a6615=_0x1d845b(_0x4030b5);if(_0x1a6615&&'type'in _0x1a6615)return _0x1a6615;}}['_handleAttributeSuggestionDescription'](_0x490250,_0x2b69a6){const _0x5a49d0=_0x2b69a6['data'],_0x4b441d=void 0x0===_0x5a49d0['newValue']?'removeFormat':'addFormat';_0x490250['push']({'type':_0x4b441d,'key':_0x5a49d0['key']});}['_handleRenameSuggestionDescription'](_0x109d47,_0x35f0cf){_0x109d47['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x35f0cf['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x4f838a,_0x544f7c,_0x4c0a56){if(this['_addDescriptionItems'](_0x4f838a,_0x544f7c),_0x4c0a56&&_0x4c0a56['getFirstRange']()&&!_0x544f7c['getFirstRange']()['end']['isEqual'](_0x4c0a56['getFirstRange']()['start'])){const _0x40eb2b=_0x4f838a[_0x4f838a['length']-0x1],_0x50dde1='insertion'==_0x544f7c['type']?'add':'remove';_0x40eb2b&&'text'==_0x40eb2b['type']&&(_0x40eb2b[_0x50dde1]+='\x0a');}}}class O extends _0x573845{['afterInit'](){const _0x360756=this['editor'],_0x303075=_0x360756['plugins']['get']('TrackChangesEditing');_0x360756['commands']['get']('showAIAssistant')&&_0x303075['enableCommand']('showAIAssistant');}}class E extends _0x573845{['afterInit'](){const _0x3970fc=this['editor'],_0x28edf2=_0x3970fc['locale'];if(!_0x3970fc['plugins']['has']('AlignmentEditing'))return;const _0x4887f9=_0x3970fc['plugins']['get']('TrackChangesEditing');_0x4887f9['enableDefaultAttributesIntegration']('alignment'),_0x4887f9['registerBlockAttribute']('alignment'),_0x4887f9['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x28edf2,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4ba4a0=this['editor'],_0x39701c=_0x4ba4a0['locale'];_0x4ba4a0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x14fa78=>{if('formatBlock'!=_0x14fa78['type'])return;const {data:_0x1e0c99}=_0x14fa78;if(_0x1e0c99&&'alignment'==_0x1e0c99['commandName']){const _0x4463b8=_0x1e0c99['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x39701c,'*Format:*\x20%0',function(_0x771e4c){switch(_0x771e4c){case'left':return o(_0x39701c,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x39701c,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x39701c,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x39701c,'FORMAT_JUSTIFY_TEXT');}}(_0x4463b8))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class R extends _0x573845{['afterInit'](){const _0x30705a=this['editor'],_0x2fcad9=_0x30705a['plugins']['get']('TrackChangesEditing'),_0x3d755c=_0x30705a['locale'];for(const _0x4a00e3 of ti){if(!_0x30705a['plugins']['has'](_0x4a00e3))continue;const _0x3b8560=_0x4a00e3['slice'](0x0,-0x7)['toLowerCase'](),_0x462978='FORMAT_'+_0x3b8560['toUpperCase']();_0x2fcad9['enableDefaultAttributesIntegration'](_0x3b8560),_0x2fcad9['registerInlineAttribute'](_0x3b8560),_0x2fcad9['descriptionFactory']['registerAttributeLabel'](_0x3b8560,o(_0x3d755c,_0x462978));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x348bfd=this['editor'],_0x5560e4=_0x348bfd['locale'],_0x133f0f=_0x348bfd['plugins']['get']('TrackChangesEditing');function _0x3085b9(_0x25b7a6,_0x4c1394){_0x133f0f['descriptionFactory']['registerDescriptionCallback'](_0x1cff0c=>{if('formatInline'!=_0x1cff0c['type'])return;const {data:_0xc33418}=_0x1cff0c;return _0xc33418&&_0xc33418['commandName']===_0x25b7a6?_0xc33418['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5560e4,'*Format:*\x20%0',_0x4c1394)}:{'type':'format','content':o(_0x5560e4,'*Remove\x20format:*\x20%0',_0x4c1394)}:void 0x0;});}_0x3085b9('bold',o(_0x5560e4,'FORMAT_BOLD')),_0x3085b9('italic',o(_0x5560e4,'FORMAT_ITALIC')),_0x3085b9('underline',o(_0x5560e4,'FORMAT_UNDERLINE')),_0x3085b9('code',o(_0x5560e4,'FORMAT_CODE')),_0x3085b9('strikethrough',o(_0x5560e4,'FORMAT_STRIKETHROUGH')),_0x3085b9('subscript',o(_0x5560e4,'FORMAT_SUBSCRIPT')),_0x3085b9('superscript',o(_0x5560e4,'FORMAT_SUPERSCRIPT'));}}class U extends _0x573845{['afterInit'](){const _0x8f3eea=this['editor'],_0x1d0f11=_0x8f3eea['locale'];if(!_0x8f3eea['plugins']['has']('BlockQuoteEditing'))return;const _0x8f1322=_0x8f3eea['plugins']['get']('TrackChangesEditing'),_0x2c8fa0=this['editor']['commands']['get']('blockQuote');_0x8f1322['enableCommand']('blockQuote',(_0x58f0af,_0x37548e={})=>{const _0x10a773=this['editor']['model']['document']['selection'],_0x54f43f=_0x37548e&&void 0x0!==_0x37548e['forceValue']?_0x37548e['forceValue']:!_0x2c8fa0['value'];let _0x553d6b=[];if(_0x54f43f){const _0x3ba625=Array['from'](_0x10a773['getSelectedBlocks']())['filter'](_0x5bc690=>oo(_0x5bc690)||function(_0x25750d,_0x16b2e9){const _0x22562c=_0x16b2e9['checkChild'](_0x25750d['parent'],'blockQuote'),_0x31f365=_0x16b2e9['checkChild'](['$root','blockQuote'],_0x25750d);return _0x22562c&&_0x31f365;}(_0x5bc690,this['editor']['model']['schema']));_0x553d6b=to(_0x3ba625,_0x8f3eea['model']);}else{const _0x25c76f=Array['from'](_0x10a773['getSelectedBlocks']())['filter'](_0x3dfbaa=>oo(_0x3dfbaa));_0x553d6b=to(_0x25c76f,_0x8f3eea['model']);}_0x8f3eea['model']['change'](()=>{for(const _0x3cd5d4 of _0x553d6b)_0x8f1322['markBlockFormat'](_0x3cd5d4,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x54f43f}]});});}),_0x8f1322['descriptionFactory']['registerDescriptionCallback'](_0x190e19=>{const {data:_0x1feb93}=_0x190e19;if(_0x1feb93&&'blockQuote'==_0x1feb93['commandName']){const _0x11596d=o(_0x1d0f11,'ELEMENT_BLOCK_QUOTE');return _0x1feb93['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1d0f11,'*Set\x20format:*\x20%0',_0x11596d)}:{'type':'format','content':o(_0x1d0f11,'*Remove\x20format:*\x20%0',_0x11596d)};}});}}function oo(_0x2ca5de){return'blockQuote'==_0x2ca5de['parent']['name'];}class V extends _0x573845{['afterInit'](){const _0x185526=this['editor'],_0x3f5591=_0x185526['locale'],_0x17500c=_0x185526['plugins']['get']('TrackChangesEditing');_0x185526['plugins']['has']('BookmarkEditing')&&(_0x17500c['enableCommand']('insertBookmark'),_0x17500c['enableDefaultAttributesIntegration']('updateBookmark'),_0x17500c['registerBlockAttribute']('bookmarkId'),_0x17500c['descriptionFactory']['registerDescriptionCallback'](_0x4b5f0e=>{if('insertion'!=_0x4b5f0e['type']&&'deletion'!=_0x4b5f0e['type']&&'attribute'!=_0x4b5f0e['type'])return;const _0x1d272b=_0x4b5f0e['getContainedElement']();if(null==_0x1d272b)return;if(!_0x1d272b['is']('element','bookmark'))return;const _0x18154f=_0x1d272b['getAttribute']('bookmarkId');if('insertion'==_0x4b5f0e['type'])return{'type':'insertion','content':o(_0x3f5591,'*Insert:*\x20%0','\x22'+_0x18154f+'\x22\x20'+o(_0x3f5591,'ELEMENT_BOOKMARK'))};if('deletion'==_0x4b5f0e['type'])return{'type':'deletion','content':o(_0x3f5591,'*Remove:*\x20%0','\x22'+_0x18154f+'\x22\x20'+o(_0x3f5591,'ELEMENT_BOOKMARK'))};const {data:_0x455bed}=_0x4b5f0e;if(!_0x455bed||'bookmarkId'!=_0x455bed['key'])return;return{'type':'format','content':o(_0x3f5591,'*Set\x20bookmark:*\x20%0','\x22'+_0x455bed['newValue']+'\x22')};}));}}class F extends _0x573845{['afterInit'](){const _0x3fdaaa=this['editor'];_0x3fdaaa['plugins']['has']('CaseChange')&&(_0x3fdaaa['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x3fdaaa['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x3fdaaa['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0x573845{['afterInit'](){const _0x35ceb0=this['editor'];_0x35ceb0['commands']['get']('ckbox')&&_0x35ceb0['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x573845{['afterInit'](){const _0x4bf640=this['editor'];if(!_0x4bf640['plugins']['has']('CodeBlock'))return;const _0x183ff1=_0x4bf640['plugins']['get']('TrackChangesEditing'),_0x30318f=_0x4bf640['locale'],_0x304112=_0x4bf640['config']['get']('codeBlock')['languages'],_0x452941=_0x4bf640['commands']['get']('codeBlock');_0x183ff1['enableCommand']('indentCodeBlock'),_0x183ff1['enableCommand']('outdentCodeBlock'),_0x183ff1['enableCommand']('codeBlock',(_0x28e1dc,_0x2fdd81={})=>{const _0x905b05=_0x4bf640['model'],_0x28ae96=_0x4bf640['model']['document']['selection'],_0x1c46a6=_0x2fdd81&&void 0x0!==_0x2fdd81['forceValue']?_0x2fdd81['forceValue']:!_0x452941['value'];let _0x5f4fab;_0x2fdd81['language']||(_0x2fdd81['language']=_0x304112[0x0]['language']),_0x5f4fab=_0x1c46a6?Array['from'](_0x28ae96['getSelectedBlocks']())['filter'](_0x1e55a0=>co(_0x1e55a0)||function(_0x47fa37,_0x263665){if(_0x47fa37['is']('rootElement')||_0x263665['isLimit'](_0x47fa37))return!0x1;return _0x263665['checkChild'](_0x47fa37['parent'],'codeBlock');}(_0x1e55a0,_0x905b05['schema'])):Array['from'](_0x28ae96['getSelectedBlocks']())['filter'](_0x29c325=>co(_0x29c325));const _0x453977=to(_0x5f4fab,_0x905b05);_0x905b05['change'](()=>{for(const _0x29b94a of _0x453977)_0x183ff1['markBlockFormat'](_0x29b94a,{'commandName':'codeBlock','commandParams':[{..._0x2fdd81,'forceValue':_0x1c46a6}],'formatGroupId':'blockName'});});}),(_0x183ff1['descriptionFactory']['registerElementLabel']('codeBlock',_0x12269f=>o(_0x30318f,'ELEMENT_CODE_BLOCK',_0x12269f)),_0x183ff1['descriptionFactory']['registerDescriptionCallback'](_0x4d0b1d=>{if('formatBlock'!=_0x4d0b1d['type'])return;const _0x542829=_0x30318f['t'],{data:_0x12ae97}=_0x4d0b1d;if(!_0x12ae97||'codeBlock'!=_0x12ae97['commandName'])return;const _0x8ad539=_0x12ae97['commandParams'][0x0]['language'],_0x262d74=_0x542829(_0x304112['find'](_0x9c5f8c=>_0x9c5f8c['language']===_0x8ad539)['label'])['toLowerCase']();return _0x12ae97['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x30318f,'*Set\x20format:*\x20%0',o(_0x30318f,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x262d74+')')}:{'type':'format','content':o(_0x30318f,'*Remove\x20format:*\x20%0',o(_0x30318f,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x307ba1){return'codeBlock'==_0x307ba1['name'];}class J extends _0x573845{['afterInit'](){const _0x3d0d36=this['editor'];if(!_0x3d0d36['plugins']['has']('CommentsEditing'))return;_0x3d0d36['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x3febd3,_0x406c41,_0x33d46b){const _0x16b0ed=[];for(const _0x592b74 of _0x406c41['getItems']())_0x592b74['hasAttribute'](_0x3febd3)&&_0x16b0ed['push'](_0x33d46b['createRangeOn'](_0x592b74));return _0x16b0ed;}function De(_0x1c31e7,_0x4080bc,{showActiveMarker:_0x4277ff=!0x0}={}){const _0x209b87=_0x1c31e7['plugins']['get']('TrackChangesEditing');return(_0x3b5e4e,_0xfb8648,_0x168e70)=>{if(!_0x168e70['consumable']['test'](_0xfb8648['markerRange'],_0x3b5e4e['name']))return;const _0x586cc9=_0xfb8648['markerRange']['getWalker'](),_0x13d449=_0xfb8648['markerRange']['start'],_0x30fec8=_0x1c31e7['model']['schema'];let _0x5ad4b0=null,_0x405009=null,_0x59a252=!0x1,_0x8d54b8=!0x1;for(const _0x2a019d of _0x586cc9){const _0x3f7599=_0x2a019d['item'];_0x59a252=_0x59a252||_0x30fec8['isContent'](_0x3f7599);const _0xd3ac81=_0x168e70['mapper']['toViewElement'](_0x3f7599);if(_0xd3ac81&&_0xd3ac81['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2a019d['type']&&(_0x30fec8['isBlock'](_0x3f7599)&&!_0x30fec8['isLimit'](_0x3f7599)&&(_0x3f7599['nextSibling']||_0x13d449['isAtEnd']?_0x5ad4b0&&_0x5ad4b0['parent']==_0x3f7599||(_0x5ad4b0=_0x3f7599,_0x146e09(_0x2a019d['previousPosition']),_0x8d54b8=!0x0):_0x405009=_0x405009||_0x2a019d['previousPosition']));}function _0x146e09(_0x123a45){const {id:_0x51e6fe,authorId:_0x2fe6e2}=_0x209b87['_splitMarkerName'](_0xfb8648['markerName']),_0x1054fd=_0x168e70['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4080bc,'data-suggestion':_0x51e6fe,'data-author-id':_0x2fe6e2}),_0x30d60a=_0x168e70['mapper']['toViewPosition'](_0x123a45);_0x4277ff&&_0x209b87['activeMarkers']['includes'](_0xfb8648['markerName'])&&_0x168e70['writer']['addClass']('ck-suggestion-marker--active',_0x1054fd),_0x168e70['writer']['insert'](_0x30d60a,_0x1054fd),_0x168e70['mapper']['bindElementToMarker'](_0x1054fd,_0xfb8648['markerName']);}_0x59a252||_0x8d54b8||!_0x405009||_0x146e09(_0x405009);};}class K extends _0x573845{static get['requires'](){return[_0x278058];}['init'](){const _0x474ffb=this['editor'],_0x230ba3=_0x474ffb['plugins']['get']('TrackChangesEditing');_0x230ba3['enableCommand']('delete');const _0x3305b9=_0x474ffb['commands']['get']('deleteForward');_0x230ba3['enableCommand']('deleteForward',(_0x1ce8fa,_0x1c24b8={})=>{const _0x3d4a0a=_0x474ffb['model']['createSelection'](_0x474ffb['model']['document']['selection']);_0x3d4a0a['isCollapsed']&&_0x474ffb['model']['modifySelection'](_0x3d4a0a,{'direction':'forward','unit':_0x1c24b8['unit']});const _0x4197a0=_0x3d4a0a['getFirstRange'](),_0x4bb388=_0x1f4d12['fromRange'](_0x4197a0);let _0x594ca9;_0x1ce8fa(_0x1c24b8),_0x594ca9='$graveyard'==_0x4bb388['root']['rootName']?_0x474ffb['model']['createRange'](_0x4197a0['start']):_0x474ffb['model']['createRange'](_0x4bb388['start'],_0x4bb388['end']),_0x4bb388['detach'](),_0x474ffb['model']['enqueueChange'](_0x3305b9['buffer']['batch'],_0x4178f2=>{_0x3305b9['buffer']['lock'](),_0x4178f2['setSelection'](_0x4178f2['createRange'](_0x594ca9['end'])),_0x3305b9['buffer']['unlock']();});}),_0x474ffb['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x474ffb,'merge'),{'priority':'high'}),_0x474ffb['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x4ccf65,_0x46c500,_0x20719b)=>{_0x20719b['options']['showSuggestionHighlights']&&De(_0x474ffb,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x4ccf65,_0x46c500,_0x20719b);},{'priority':'high'}),_0x474ffb['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x3e0b3e,_0x5983a1,_0x433fbb)=>{const _0x3cb5d5=_0x433fbb['mapper']['markerNameToElements'](_0x5983a1['markerName']);if(_0x3cb5d5){for(const _0x256890 of _0x3cb5d5)_0x256890['is']('uiElement')&&(_0x433fbb['mapper']['unbindElementFromMarkerName'](_0x256890,_0x5983a1['markerName']),_0x433fbb['writer']['remove'](_0x256890));}},{'priority':'high'});}}class H extends _0x573845{['afterInit'](){const _0x2bab33=this['editor'];if(!_0x2bab33['plugins']['has']('ListEditing'))return;const _0x339500=_0x2bab33['locale'],_0x54e828=_0x2bab33['plugins']['get']('TrackChangesEditing'),_0x140a33=_0x2bab33['plugins']['has']('TodoListEditing'),_0x5b1711=!!_0x2bab33['config']['get']('list.multiBlock');function _0x39a5c0(_0x555198){return{'type':'format','content':''+o(_0x339500,'*Set\x20format:*\x20%0',_0x555198)};}function _0x1fd32b(_0x1438e2){return{'type':'format','content':''+o(_0x339500,'*Remove\x20format:*\x20%0',_0x1438e2)};}_0x54e828['enableDefaultAttributesIntegration']('numberedList'),_0x54e828['enableDefaultAttributesIntegration']('bulletedList'),_0x54e828['enableDefaultAttributesIntegration']('customNumberedList'),_0x54e828['enableDefaultAttributesIntegration']('customBulletedList'),_0x54e828['enableDefaultAttributesIntegration']('indentList'),_0x54e828['enableDefaultAttributesIntegration']('outdentList'),_0x54e828['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x54e828['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x54e828['registerBlockAttribute']('listItemId'),_0x54e828['registerBlockAttribute']('listType'),_0x54e828['registerBlockAttribute']('listIndent'),_0x5b1711&&(_0x54e828['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x54e828['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x140a33&&(_0x54e828['enableDefaultAttributesIntegration']('todoList'),_0x54e828['enableDefaultAttributesIntegration']('checkTodoList'),_0x54e828['registerBlockAttribute']('todoListChecked'),_0x54e828['descriptionFactory']['registerDescriptionCallback'](_0x13e1d3=>{const {data:_0x178901}=_0x13e1d3;if(_0x178901&&'todoListChecked'==_0x178901['key'])return{'type':'format','content':_0x178901['newValue']?o(_0x339500,'*Check\x20item*'):o(_0x339500,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x1f8c22=>{if(_0x1f8c22['batch']['isUndo'])return!0x1;let _0x4ac052=!0x1;const _0x20d110=_0x54e828['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xb63157=>'todoListChecked'===_0x54e828['_getAttributeKey'](_0xb63157));for(const _0x142c79 of _0x20d110){'todo'!=_0x142c79['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x54e828['_findSuggestions'](_0x142c79['getFirstRange'](),'attribute')['find'](_0x58f8f3=>'listType'===_0x54e828['_getAttributeKey'](_0x58f8f3['suggestion']))||(_0x1f8c22['removeMarker'](_0x142c79['getFirstMarker']()),_0x4ac052=!0x0));}return _0x4ac052;})),_0x54e828['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x339500,'FORMAT_INDENT'));const _0x5b8bd7={'type':'format','content':''};_0x54e828['descriptionFactory']['registerDescriptionCallback'](_0x537b32=>{const {data:_0x37fc14}=_0x537b32;if(!_0x37fc14||'listType'!=_0x37fc14['key'])return;let _0x4545cc=_0x537b32['head'];for(;_0x4545cc;){if(_0x4545cc['data']&&(('listStyle'==_0x4545cc['data']['key']||'listMarkerStyle'==_0x4545cc['data']['key'])&&(_0x4545cc['data']['newValue']&&'default'!=_0x4545cc['data']['newValue']||'default'!=_0x4545cc['data']['oldValue']&&!_0x37fc14['newValue'])||!_0x5b1711&&_0x4545cc['data']['key']==m))return _0x5b8bd7;_0x4545cc=_0x4545cc['next'];}if(null==_0x37fc14['newValue'])switch(_0x37fc14['oldValue']){case'bulleted':return _0x1fd32b(o(_0x339500,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1fd32b(o(_0x339500,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1fd32b(o(_0x339500,'ELEMENT_TODO_LIST'));}switch(_0x37fc14['newValue']){case'bulleted':return _0x39a5c0(o(_0x339500,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x39a5c0(o(_0x339500,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x39a5c0(o(_0x339500,'ELEMENT_TODO_LIST'));}}),_0x54e828['descriptionFactory']['registerDescriptionCallback'](_0x56b703=>{const {data:_0x2ab869}=_0x56b703;if(_0x2ab869&&'listIndent'==_0x2ab869['key'])return null==_0x2ab869['newValue']||null==_0x2ab869['oldValue']&&0x0==_0x2ab869['newValue']?_0x5b8bd7:void 0x0;}),_0x54e828['descriptionFactory']['registerDescriptionCallback'](_0x130713=>{if('attribute'!=_0x130713['type'])return;const {data:_0xdd7255}=_0x130713;if(!_0xdd7255||'listItemId'!=_0xdd7255['key'])return;const _0x36c498=Te(_0x130713);return'newValue'==_0x36c498?{'type':'format','content':o(_0x339500,'*Merge:*\x20list\x20item')}:'oldValue'==_0x36c498?{'type':'format','content':o(_0x339500,'*Split:*\x20list\x20item')}:_0x5b8bd7;}),_0x2bab33['model']['document']['registerPostFixer'](_0x2fd90f=>this['listItemIdFixer'](_0x2fd90f)),_0x2bab33['model']['document']['registerPostFixer'](_0x23e2fc=>this['noTrackChangesFixer'](_0x23e2fc)),_0x2bab33['model']['document']['on']('change:data',(_0x3a77bf,_0x5c2163)=>{if(_0x5c2163['isUndo']||!_0x5c2163['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x420ad7){if(_0x420ad7['batch']['isUndo']||!_0x420ad7['batch']['isLocal'])return!0x1;let _0x17aa6b=!0x1;const _0xa1b4b4=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x38d183=>_0x38d183['data']&&'listItemId'==_0x38d183['data']['key'])['filter'](_0x2084d=>_0x2084d['data']['newValue']&&_0x2084d['data']['oldValue']);for(const _0x2fbbd0 of _0xa1b4b4)Te(_0x2fbbd0)||(_0x420ad7['removeMarker'](_0x2fbbd0['getFirstMarker']()),_0x17aa6b=!0x0);return _0x17aa6b;}['noTrackChangesFixer'](_0x2766d3){if(_0x2766d3['batch']['isUndo']||!_0x2766d3['batch']['isLocal'])return!0x1;const _0x3e3f5f=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x3e3f5f['trackChangesCommand']['value'])return!0x1;let _0x27ce8f=!0x1;const _0x47184d=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x468028=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x2e9684=>'attribute'==_0x2e9684['type'])['filter'](_0x4328e0=>_0x47184d['includes'](_0x4328e0['attributeKey']));if(0x0==_0x468028['length'])return _0x27ce8f;for(const _0x432fef of _0x468028){const _0x59b040=_0x3e3f5f['_findSuggestions'](_0x432fef['range'],'attribute')['filter'](_0x4c973a=>!_0x4c973a['meta']['isNextTo'])['map'](_0x2e09d0=>_0x2e09d0['suggestion'])['filter'](_0x1a376f=>{const _0x5dae33=_0x3e3f5f['_getAttributeKey'](_0x1a376f);return _0x47184d['includes'](_0x5dae33);});if(_0x59b040['length']){for(const _0x361471 of _0x59b040)_0x2766d3['removeMarker'](_0x361471['getFirstMarker']());_0x27ce8f=!0x0;}}return _0x27ce8f;}['assureChains'](){const _0x2d54f3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x10594d=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x29f2da;const _0xc36d21=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x56da0f=>{if(_0x56da0f['data']['oldRange']||!_0x56da0f['data']['newRange'])return null;if(!_0x56da0f['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x55f562}=_0x2d54f3['_splitMarkerName'](_0x56da0f['name']);if(!_0x2d54f3['hasSuggestion'](_0x55f562))return null;const _0x6a52cf=_0x2d54f3['getSuggestion'](_0x55f562);return _0x10594d['includes'](_0x6a52cf['data']['key']);})['map'](_0x542cde=>{const {id:_0xe406bb}=_0x2d54f3['_splitMarkerName'](_0x542cde['name']),_0x41e8c9=_0x2d54f3['getSuggestion'](_0xe406bb);return _0x29f2da=_0x41e8c9['attributes']['groupId'],_0x41e8c9['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0xc36d21['size'])return;const _0x2d04ca=_0x2d54f3['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x57a884=>'attribute'==_0x57a884['type']&&_0x57a884['data']&&_0x10594d['includes'](_0x57a884['data']['key'])&&_0x57a884['attributes']['groupId']!=_0x29f2da)['map'](_0x9a62cb=>({'listItem':_0x9a62cb['getFirstRange']()['start']['nodeAfter'],'groupId':_0x9a62cb['attributes']['groupId']})),_0x4c4951=new Set();for(const {groupId:_0x53afa1,listItem:_0x43ea87}of _0x2d04ca)_0xc36d21['has'](_0x43ea87)&&_0x4c4951['add'](_0x53afa1);for(const _0x258316 of _0x2d54f3['getSuggestions']())_0x4c4951['has'](_0x258316['attributes']['groupId'])&&_0x258316['setAttribute']('groupId',_0x29f2da);}['_supportLegacySuggestions'](){const _0x1a9732=this['editor'],_0x4c625a=_0x1a9732['locale'],_0x410dc1=_0x1a9732['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x410dc1['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0xb785c3,_0x41ca1a){const _0x5680db=[];for(let _0x151733 of _0xb785c3)_0x151733['start']['nodeAfter']===_0x151733['end']['parent']&&(_0x151733=_0x1a9732['model']['createRange'](_0x1a9732['model']['createPositionAt'](_0x151733['start']['nodeAfter'],0x0))),_0x5680db['push'](_0x151733);_0x1a9732['model']['change'](_0x2dc24b=>{const _0x2bdf83=_0x1a9732['model']['document']['selection'],_0x235f8a=Array['from'](_0x2bdf83['getRanges']())['map'](_0x15cbcc=>_0x1f4d12['fromRange'](_0x15cbcc));_0x2dc24b['setSelection'](_0x5680db),_0x1a9732['commands']['get'](_0x41ca1a['commandName'])['refresh'](),_0x41ca1a['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x1a9732['execute'](_0x41ca1a['commandName'],..._0x41ca1a['commandParams']),_0x2dc24b['setSelection'](_0x235f8a);for(const _0x2845cb of _0x235f8a)_0x2845cb['detach']();});}),_0x410dc1['descriptionFactory']['registerElementLabel'](function(_0x42eb3c){const _0x299c59=!_0x1a9732['model']['schema']['isObject'](_0x42eb3c),_0x31349b=_0x42eb3c['previousSibling'],_0x3ad795=_0x42eb3c['nextSibling'],_0xfb3974=_0x42eb3c['getAttribute']('listItemId'),_0x3edda6=!_0x31349b||_0x31349b['getAttribute']('listItemId')!==_0xfb3974,_0x188d8f=!_0x3ad795||_0x3ad795['getAttribute']('listItemId')!==_0xfb3974;return _0x299c59&&Boolean(_0xfb3974)&&_0x3edda6&&_0x188d8f;},_0x152627=>o(_0x4c625a,'ELEMENT_LIST_ITEM',_0x152627));}['_registerLegacyDescription'](){const _0x26f39f=this['editor'],_0x3756c8=_0x26f39f['locale'];function _0x45be92(_0x1ea210){const _0x4f09c6=_0x26f39f['commands']['get']('bulletedList')['value'],_0x5b5ceb=_0x26f39f['commands']['get']('numberedList')['value'];return'numberedList'===_0x1ea210?_0x4f09c6:_0x5b5ceb;}_0x26f39f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x306371){if('formatBlock'!=_0x306371['type'])return;const {data:_0x28936f}=_0x306371;if(!_0x28936f)return;let _0x2f06df,_0xc1fa93,_0x357a4a,_0x4a137c;switch(_0x28936f['commandName']){case'bulletedList':_0x357a4a=_0x28936f['commandParams'][0x0]['forceValue'],_0x4a137c=_0x45be92(_0x28936f['commandName']),_0x2f06df=_0x357a4a?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4a137c&&_0x26f39f['config']['get']('list.multiBlock')||(_0x2f06df='*Change\x20to:*\x20%0'),_0xc1fa93={'type':'format','content':o(_0x3756c8,_0x2f06df,o(_0x3756c8,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x357a4a=_0x28936f['commandParams'][0x0]['forceValue'],_0x4a137c=_0x45be92(_0x28936f['commandName']),_0x2f06df=_0x357a4a?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4a137c&&_0x26f39f['config']['get']('list.multiBlock')||(_0x2f06df='*Change\x20to:*\x20%0'),_0xc1fa93={'type':'format','content':o(_0x3756c8,_0x2f06df,o(_0x3756c8,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x2f06df='*Indent:*\x20%0',_0xc1fa93={'type':'format','content':o(_0x3756c8,_0x2f06df,o(_0x3756c8,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x2f06df=function(_0x1e4934){const _0x5a950a=_0x1e4934['getFirstRange']();let _0xeefac8=_0x5a950a['start']['nodeAfter'];for(;_0xeefac8&&_0x5a950a['containsItem'](_0xeefac8);){if(_0xeefac8['getAttribute']('listIndent')>0x0)return!0x1;_0xeefac8=_0xeefac8['nextSibling'];}return!0x0;}(_0x306371)?o(_0x3756c8,'*Format:*\x20remove\x20from\x20%0',o(_0x3756c8,function(_0x5a84d7){return'ELEMENT_'+_0x5a84d7['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x306371))):o(_0x3756c8,'*Outdent:*\x20%0',o(_0x3756c8,'ELEMENT_LIST_ITEM')),_0xc1fa93={'type':'format','content':_0x2f06df};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x28936f['multipleBlocks']&&(_0x2f06df='*Merge:*\x20%0',_0xc1fa93={'type':'deletion','content':o(_0x3756c8,_0x2f06df,o(_0x3756c8,'ELEMENT_LIST_ITEM'))});}return _0xc1fa93;});}}function Te(_0x1965e8){let _0x2aed51=_0x1965e8['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x2aed51;){const _0x20325c=_0x2aed51['getAttribute']('listItemId');if(!_0x20325c)return!0x1;if(_0x20325c==_0x1965e8['data']['newValue'])return'newValue';if(_0x20325c==_0x1965e8['data']['oldValue'])return'oldValue';_0x2aed51=_0x2aed51['previousSibling'];}return!0x1;}class q extends _0x573845{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x3992e3=this['editor']['config']['get']('list.properties'),_0x28fcce=this['editor']['plugins']['get']('TrackChangesEditing');_0x3992e3['styles']&&(_0x28fcce['enableDefaultAttributesIntegration']('listStyle'),_0x28fcce['registerBlockAttribute']('listStyle')),_0x3992e3['reversed']&&(_0x28fcce['enableDefaultAttributesIntegration']('listReversed'),_0x28fcce['registerBlockAttribute']('listReversed')),_0x3992e3['startIndex']&&(_0x28fcce['enableDefaultAttributesIntegration']('listStart'),_0x28fcce['registerBlockAttribute']('listStart'));const _0x1e2d2d={'type':'format','content':''};_0x28fcce['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x51d32a=this['editor']['locale'];_0x28fcce['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x51d32a,'FORMAT_LIST_REVERSED')),_0x28fcce['descriptionFactory']['registerDescriptionCallback'](_0x43f57b=>{const {data:_0x57f6e4}=_0x43f57b;if(_0x57f6e4&&'listReversed'==_0x57f6e4['key'])return null==_0x57f6e4['newValue']||0x0==_0x57f6e4['newValue']&&null==_0x57f6e4['oldValue']?_0x1e2d2d:void 0x0;}),_0x28fcce['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x51d32a,'FORMAT_LIST_START')),_0x28fcce['descriptionFactory']['registerDescriptionCallback'](_0x35e288=>{const {data:_0x40b1cd}=_0x35e288;if(_0x40b1cd&&'listStart'==_0x40b1cd['key'])return null==_0x40b1cd['newValue']||0x1==_0x40b1cd['newValue']&&null==_0x40b1cd['oldValue']?_0x1e2d2d:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x17dc43=>{if(_0x17dc43['batch']['isUndo'])return!0x1;let _0x52cf24=!0x1;const _0x3ee67d=_0x28fcce['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4a3ab6=>{const _0x2f7dad=_0x28fcce['_getAttributeKey'](_0x4a3ab6);return'listStart'==_0x2f7dad||'listReversed'==_0x2f7dad;});for(const _0x5707f5 of _0x3ee67d){const _0x23fc8f=_0x5707f5['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x23fc8f||'customNumbered'==_0x23fc8f)continue;_0x28fcce['_findSuggestions'](_0x5707f5['getFirstRange'](),'attribute')['find'](_0x29d59c=>'listType'==_0x28fcce['_getAttributeKey'](_0x29d59c['suggestion']))||(_0x17dc43['removeMarker'](_0x5707f5['getFirstMarker']()),_0x52cf24=!0x0);}return _0x52cf24;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x44e3e7){const _0x162b0b=this['editor']['locale'],{data:_0x2fab0a}=_0x44e3e7,_0x4291d0={'type':'format','content':''};if(!_0x2fab0a||'listStyle'!=_0x2fab0a['key'])return;if(!_0x2fab0a['oldValue'])return'default'==_0x2fab0a['newValue']?_0x4291d0:{'type':'format','content':''+o(_0x162b0b,'*Set\x20format:*\x20%0',o(_0x162b0b,this['_getTranslationKeyForListStyle'](_0x2fab0a['newValue'])))};if(!_0x2fab0a['newValue']){if('default'==_0x2fab0a['oldValue'])return _0x4291d0;let _0x54f95c=_0x44e3e7['head'];for(;_0x54f95c;){if(_0x54f95c['data']&&'listType'==_0x54f95c['data']['key']&&_0x54f95c['data']['newValue'])return _0x4291d0;_0x54f95c=_0x54f95c['next'];}return{'type':'format','content':''+o(_0x162b0b,'*Remove\x20format:*\x20%0',o(_0x162b0b,this['_getTranslationKeyForListStyle'](_0x2fab0a['oldValue'])))};}if('default'!=_0x2fab0a['newValue'])return{'type':'format','content':''+o(_0x162b0b,'*Set\x20format:*\x20%0',o(_0x162b0b,this['_getTranslationKeyForListStyle'](_0x2fab0a['newValue'])))};let _0x13949d=_0x44e3e7['head'];for(;_0x13949d;){if(_0x13949d['data']&&'listType'==_0x13949d['data']['key']&&_0x13949d['data']['newValue']&&_0x13949d['data']['oldValue'])return _0x4291d0;_0x13949d=_0x13949d['next'];}return{'type':'format','content':o(_0x162b0b,'*Set\x20format:*\x20%0',o(_0x162b0b,'ELEMENT_'+_0x44e3e7['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x257ebf=this['editor'],_0xd83290=_0x257ebf['locale'];_0x257ebf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3a6cc3=>{if('formatBlock'!=_0x3a6cc3['type'])return;const {data:_0x21493f}=_0x3a6cc3;if(!_0x21493f)return;let _0x4c1e22,_0x51765a;switch(_0x21493f['commandName']){case'listStyle':_0x4c1e22='*Change\x20to:*\x20%0',_0x51765a={'type':'format','content':o(_0xd83290,_0x4c1e22,o(_0xd83290,this['_getTranslationKeyForListStyle'](_0x21493f['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4c1e22=_0x21493f['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x51765a={'type':'format','content':o(_0xd83290,_0x4c1e22)};break;case'listStart':_0x4c1e22='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x51765a={'type':'format','content':o(_0xd83290,_0x4c1e22,_0x21493f['commandParams'][0x0]['startIndex'])};}return _0x51765a;});}['_getTranslationKeyForListStyle'](_0x28111f){return'ELEMENT_'+function(_0x812b56){if(Se['includes'](_0x812b56))return'bulleted';if(_e['includes'](_0x812b56))return'numbered';return null;}(_0x28111f)['toUpperCase']()+'_LIST_'+_0x28111f['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class z extends _0x573845{['afterInit'](){const _0x61d5fc=this['editor'];_0x61d5fc['commands']['get']('emoji')&&_0x61d5fc['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class W extends _0x573845{static get['requires'](){return[_0x47d1d3];}['init'](){const _0x380ff3=this['editor'],_0x3c130b=_0x380ff3['plugins']['get']('TrackChangesEditing'),_0x245774=_0x380ff3['commands']['get']('enter');_0x3c130b['enableCommand']('enter',()=>{_0x380ff3['model']['change'](_0x5b0df1=>{const _0x3be7c0=_0x380ff3['model']['document']['selection'],_0x5c3356=_0x3be7c0['getFirstPosition'](),_0x2ecf35=_0x1f4d12['fromRange'](_0x3be7c0['getFirstRange']());if(_0x245774['enterBlock'](_0x5b0df1)){const _0x293275=_0x380ff3['model']['createPositionAt'](_0x5c3356['parent']['nextSibling'],0x0),_0x2dfcbf=_0x5b0df1['createRange'](_0x5c3356,_0x293275);_0x3c130b['markInsertion'](_0x2dfcbf);}else _0x5b0df1['setSelection'](_0x5b0df1['createRange'](_0x2ecf35['end']));_0x2ecf35['detach'](),_0x245774['fire']('afterExecute',{'writer':_0x5b0df1});});}),_0x380ff3['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x380ff3,'split'),{'priority':'high'}),_0x380ff3['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x4afa70,_0x4380ff,_0x188928)=>{const _0x27af75=_0x188928['mapper']['markerNameToElements'](_0x4380ff['markerName']);if(_0x27af75){for(const _0x288905 of _0x27af75)_0x288905['hasClass']('ck-suggestion-marker-split')&&(_0x188928['mapper']['unbindElementFromMarkerName'](_0x288905,_0x4380ff['markerName']),_0x188928['writer']['remove'](_0x288905));}},{'priority':'high'}),_0x380ff3['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xd6b6ba,_0x2a2986,_0x25bec2)=>{_0x25bec2['options']['showSuggestionHighlights']&&De(_0x380ff3,'split',{'showActiveMarker':!0x1})['bind'](this)(_0xd6b6ba,_0x2a2986,_0x25bec2);},{'priority':'high'});}}class Q extends _0x573845{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x416ee3=this['editor']['plugins']['get']('TrackChangesEditing');_0x416ee3['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x416ee3['enableCommand']('findNext'),_0x416ee3['enableCommand']('findPrevious'),_0x416ee3['enableCommand']('replace'),_0x416ee3['enableCommand']('replaceAll');}['handleFindCommand'](_0x16c874,_0x51bb67,_0x3c4c36={}){const _0x4414cd=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x16c874(_0x393197=>{let _0xaf2c0d=('string'==typeof _0x51bb67?_0x4414cd['findByTextCallback'](_0x51bb67,_0x3c4c36):_0x51bb67)(_0x393197);Array['isArray'](_0xaf2c0d)&&(_0xaf2c0d={'results':_0xaf2c0d,'searchText':'string'==typeof _0x51bb67?_0x51bb67:''});const _0x35d986=_0xaf2c0d['results']['filter'](_0x442a20=>!0x1===this['_isInDeletionRange'](_0x442a20,_0x393197['item']));return{..._0xaf2c0d,'results':_0x35d986};},_0x3c4c36);}['_isInDeletionRange'](_0x4c73e4,_0x33796e){const _0x8a8a2f=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x33796e,_0x4c73e4['start']),this['editor']['model']['createPositionAt'](_0x33796e,_0x4c73e4['end']));for(const _0x54accb of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x8a8a2f['getIntersection'](_0x54accb['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class X extends _0x573845{['afterInit'](){const _0x1b27cd=this['editor']['locale'],_0x3b0071=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x3ef396,commandName:_0x1e4f8c}of eo)this['editor']['plugins']['has'](_0x3ef396)&&(_0x3b0071['enableDefaultAttributesIntegration'](_0x1e4f8c),_0x3b0071['registerInlineAttribute'](_0x1e4f8c));_0x3b0071['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x1b27cd,'FORMAT_FONT_SIZE')),_0x3b0071['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x1b27cd,'FORMAT_FONT_FAMILY')),_0x3b0071['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x1b27cd,'FORMAT_FONT_COLOR')),_0x3b0071['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x1b27cd,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5b6b4b=this['editor'],_0x333cd1=_0x5b6b4b['locale'];_0x5b6b4b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x360ee0=>{const _0x1a0c98=_0x333cd1['t'];if('formatInline'!=_0x360ee0['type'])return;const {data:_0x5ca7ad}=_0x360ee0;if(null!=_0x5ca7ad){if('fontSize'==_0x5ca7ad['commandName']){const _0x3e0f56=_0x5ca7ad['commandParams'][0x0]['value'];if(_0x3e0f56){const _0x51f453=_0x1a0c98(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x4d7a08=>_0x4d7a08['model']==_0x3e0f56)['title'])['toLowerCase']();return{'type':'format','content':o(_0x333cd1,'*Set\x20font\x20size:*\x20%0',_0x51f453)};}return{'type':'format','content':o(_0x333cd1,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x5ca7ad['commandName']){const _0x29db23=_0x5ca7ad['commandParams'][0x0]['value'];return _0x29db23?{'type':'format','content':o(_0x333cd1,'*Set\x20font\x20family:*\x20%0',_0x29db23)}:{'type':'format','content':o(_0x333cd1,'*Reset\x20font\x20family*')};}if('fontColor'==_0x5ca7ad['commandName']){const _0x45b819=_0x5ca7ad['commandParams'][0x0]['value'];if(_0x45b819){const _0x563793=_0x53f79b(this['editor']['config']['get']('fontColor.colors'))['find'](_0x5b9d95=>_0x5b9d95['model']==_0x45b819);let _0x368cfe=_0x45b819,_0x4532b5='';return _0x563793&&(_0x368cfe=_0x563793['label'],_0x4532b5=_0x1a0c98(_0x368cfe)['toLowerCase']()),{'type':'format','content':o(_0x333cd1,'*Set\x20font\x20color:*\x20%0',_0x4532b5)['trim'](),'color':{'value':_0x45b819,'title':_0x4532b5||_0x368cfe}};}return{'type':'format','content':o(_0x333cd1,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x5ca7ad['commandName']){const _0x5d5853=_0x5ca7ad['commandParams'][0x0]['value'];if(_0x5d5853){const _0x1f6a28=_0x53f79b(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x2390bc=>_0x2390bc['model']==_0x5d5853);let _0xa86bda=_0x5d5853,_0x50580d='';return _0x1f6a28&&(_0xa86bda=_0x1f6a28['label'],_0x50580d=_0x1a0c98(_0xa86bda)['toLowerCase']()),{'type':'format','content':o(_0x333cd1,'*Set\x20font\x20background\x20color:*\x20%0',_0x50580d)['trim'](),'color':{'value':_0x5d5853,'title':_0x50580d||_0xa86bda}};}return{'type':'format','content':o(_0x333cd1,'*Reset\x20font\x20background\x20color*')};}}});}}class Y extends _0x573845{['afterInit'](){const _0x5c9dd6=this['editor'],_0x6d2854=_0x5c9dd6['plugins']['get']('TrackChangesEditing'),_0xecef4b=_0x5c9dd6['commands']['get']('copyFormat'),_0x40b7b9=_0x5c9dd6['commands']['get']('pasteFormat');_0xecef4b&&_0x40b7b9&&(_0x6d2854['enableDefaultAttributesIntegration']('pasteFormat'),_0x6d2854['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x256b03=this['editor'],_0x3a2952=_0x256b03['locale'];_0x256b03['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x455ad8=>{if('formatBlock'!=_0x455ad8['type']&&'formatInline'!=_0x455ad8['type'])return;const {data:_0x183fbd}=_0x455ad8;if(_0x183fbd&&'pasteFormat'===_0x183fbd['commandName']){const _0x2e8d8c=[],_0x4810c3=_0x183fbd['commandParams'][0x0];for(const [_0x44ba29,_0x4fb490]of Object['entries'](_0x4810c3))_0x2e8d8c['push'](ro(_0x256b03,_0x44ba29,_0x4fb490));return _0x2e8d8c['length']?{'type':'format','content':o(_0x3a2952,'*Set\x20format\x20to:*\x20%0',_0x2e8d8c['join'](',\x20'))}:{'type':'format','content':o(_0x3a2952,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x5a994e,_0x4758af,_0x51c872){const _0x2121e8=_0x5a994e['locale']['t'],_0x4fdb3b=_0x4758af['split'](/(?=[A-Z])/)['join']('\x20'),_0x4e9e1e=_0x2121e8(_0x4fdb3b['charAt'](0x0)['toUpperCase']()+_0x4fdb3b['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x51c872)return _0x4e9e1e;if('fontColor'===_0x4758af||'fontBackgroundColor'===_0x4758af){const _0x21cfb4=_0x53f79b(_0x5a994e['config']['get']('fontColor.colors'))['find'](_0x3bd10b=>_0x3bd10b['model']==_0x51c872);return _0x4e9e1e+'\x20('+(_0x21cfb4?_0x2121e8(_0x21cfb4['label'])['toLowerCase']():_0x51c872)+')';}if('fontSize'===_0x4758af&&isNaN(parseFloat(_0x51c872))){const _0x3bf55e=_0x5a994e['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x5a994e['config']['get']('fontSize.options'))['find'](_0x1cd209=>_0x1cd209['model']==_0x51c872);return _0x4e9e1e+'\x20('+(_0x3bf55e?_0x2121e8(_0x3bf55e['title'])['toLowerCase']():_0x51c872)+')';}return _0x4e9e1e+'\x20('+_0x51c872+')';}class Z extends _0x573845{['_headingOptions'];['afterInit'](){const _0x5d4355=this['editor'];if(!_0x5d4355['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x5d4355['config']['get']('heading.options');const _0x501589=_0x5d4355['locale'],_0x45b58c=_0x5d4355['plugins']['get']('TrackChangesEditing');_0x45b58c['enableDefaultAttributesIntegration']('heading');for(const _0x58b008 of this['_headingOptions'])'paragraph'!=_0x58b008['model']&&_0x45b58c['descriptionFactory']['registerElementLabel'](_0x58b008['model'],_0x238aa4=>{const _0x16f6d0=this['_getHeadingLevel'](_0x58b008['model']);return null!==_0x16f6d0?_0x39ebf7(_0x238aa4,_0x16f6d0):_0x1aea01(_0x238aa4,_0x58b008['title']);});function _0x39ebf7(_0x895dce,_0x45eb26){return o(_0x501589,'ELEMENT_HEADING',[_0x895dce,_0x45eb26]);}function _0x1aea01(_0x157e8e,_0xa01f04){return o(_0x501589,'ELEMENT_HEADING_CUSTOM',[_0x157e8e,_0xa01f04]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x574f5a=this['editor'],_0x47f512=_0x574f5a['locale'];function _0x50cea5(_0x5bddc2,_0xb465c2){return o(_0x47f512,'ELEMENT_HEADING_CUSTOM',[_0x5bddc2,_0xb465c2]);}_0x574f5a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3ba672=>{if('formatBlock'!=_0x3ba672['type'])return;const {data:_0x59c1e3}=_0x3ba672;if(_0x59c1e3&&'heading'==_0x59c1e3['commandName']){const _0x20303a=_0x59c1e3['commandParams'][0x0]['value'],_0x4149d9=this['_getHeadingLevel'](_0x20303a);if(null!==_0x4149d9)return{'type':'format','content':o(_0x47f512,'*Change\x20to:*\x20%0',(_0x4b6011=0x1,_0x97c748=_0x4149d9,o(_0x47f512,'ELEMENT_HEADING',[_0x4b6011,_0x97c748])))};const _0xd99c59=this['_headingOptions']['find'](_0x5ab80d=>_0x5ab80d['model']===_0x20303a)['title'];return{'type':'format','content':o(_0x47f512,'*Change\x20to:*\x20%0',_0x50cea5(0x1,_0xd99c59))};}var _0x4b6011,_0x97c748;});}['_getHeadingLevel'](_0x3ff738){const _0x385fb0=_0x3ff738['match'](/^heading(\d+)/);if(_0x385fb0)return _0x385fb0[0x1];const _0x45eb4e=this['_headingOptions']?.['find'](_0xff93e8=>_0xff93e8['model']==_0x3ff738);if(_0x45eb4e&&_0x45eb4e['view']){const _0xc48853=_0x45eb4e['view'],_0x18e4c9=(_0xc48853['name']??_0xc48853)['match'](/^h(\d+)/);if(_0x18e4c9)return _0x18e4c9[0x1];}return null;}}class tt extends _0x573845{['afterInit'](){const _0x5879b7=this['editor'];if(!_0x5879b7['plugins']['has']('HighlightEditing'))return;const _0xb31066=_0x5879b7['plugins']['get']('TrackChangesEditing'),_0x1b0959=_0x5879b7['locale'];_0xb31066['enableDefaultAttributesIntegration']('highlight'),_0xb31066['registerInlineAttribute']('highlight'),_0xb31066['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x1b0959,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2888a0=this['editor'],_0x271d6a=_0x2888a0['locale'];_0x2888a0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x441f04=>{if('formatInline'!=_0x441f04['type'])return;const {data:_0x1afffe}=_0x441f04;if(_0x1afffe&&'highlight'==_0x1afffe['commandName']){const _0x1fa5ce=_0x271d6a['t'],_0x164f89=_0x1afffe['commandParams'][0x0]['value'];if(_0x164f89){const _0x3d01be=_0x2888a0['config']['get']('highlight.options')['find'](_0x10f931=>_0x10f931['model']==_0x164f89),_0x28733a=_0x1fa5ce(_0x3d01be['title'])['toLowerCase']();return{'type':'format','content':o(_0x271d6a,'*Set\x20highlight:*\x20%0',_0x28733a),'color':{'value':_0x3d01be['color'],'title':_0x3d01be['title']}};}return{'type':'format','content':o(_0x271d6a,'*Remove\x20highlight*',o(_0x271d6a,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x573845{['afterInit'](){const _0x176ff0=this['editor'];if(!_0x176ff0['plugins']['has']('HorizontalLineEditing'))return;_0x176ff0['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x5387af=_0x176ff0['plugins']['get']('TrackChangesEditing'),_0x970e7e=_0x176ff0['locale'];_0x5387af['descriptionFactory']['registerElementLabel']('horizontalLine',_0x1bd4b3=>o(_0x970e7e,'ELEMENT_HORIZONTAL_LINE',_0x1bd4b3)),_0x176ff0['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x4239bc,{writer:_0x21f4fa,options:_0xfd849c})=>{if(!_0xfd849c['showSuggestionHighlights'])return null;const _0x20aff0=_0x21f4fa['createContainerElement']('div'),_0x2b52db=_0x21f4fa['createEmptyElement']('hr');return _0x21f4fa['addClass']('ck-horizontal-line',_0x20aff0),_0x21f4fa['insert'](_0x21f4fa['createPositionAt'](_0x20aff0,0x0),_0x2b52db),_0x20aff0;},'converterPriority':'high'});}}class nt extends _0x573845{['afterInit'](){const _0x11ac09=this['editor'];if(!_0x11ac09['plugins']['has']('HtmlEmbed'))return;const _0x36f142=_0x11ac09['plugins']['get']('TrackChangesEditing'),_0x37fc9b=_0x11ac09['locale'];_0x36f142['descriptionFactory']['registerElementLabel']('rawHtml',_0x288150=>o(_0x37fc9b,'ELEMENT_HTML_EMBED',_0x288150)),_0x36f142['enableDefaultAttributesIntegration']('htmlEmbed'),_0x36f142['registerBlockAttribute']('value'),_0x36f142['descriptionFactory']['registerDescriptionCallback'](_0x32a750=>{if('attribute'!=_0x32a750['type'])return;const {data:_0x473e22}=_0x32a750;if(_0x473e22&&'value'==_0x473e22['key']&&_0x32a750['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x42a5f8=o(_0x37fc9b,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x37fc9b,'*Change\x20%0\x20content*',_0x42a5f8)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xce1614=this['editor'],_0xa4aff5=_0xce1614['locale'];_0xce1614['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3fc539=>{if('formatBlock'!=_0x3fc539['type'])return;const {data:_0x326372}=_0x3fc539;if(_0x326372&&'htmlEmbed'==_0x326372['commandName']){const _0x2be5f1=o(_0xa4aff5,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0xa4aff5,'*Change\x20%0\x20content*',_0x2be5f1)};}});}}class et extends _0x573845{['afterInit'](){const _0x4e2900=this['editor'];if(!_0x4e2900['plugins']['has']('ImageEditing'))return;const _0x4b9781=_0x4e2900['plugins']['get']('TrackChangesEditing'),_0x58b066=_0x4e2900['plugins']['get']('ImageUtils'),_0x7e9700=_0x4e2900['locale'];_0x4b9781['enableCommand']('insertImage'),_0x4b9781['descriptionFactory']['registerElementLabel']('imageBlock',_0x50c05a=>o(_0x7e9700,'ELEMENT_IMAGE',_0x50c05a)),_0x4b9781['descriptionFactory']['registerElementLabel']('imageInline',_0x5e751e=>o(_0x7e9700,'ELEMENT_INLINE_IMAGE',_0x5e751e)),_0x4b9781['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x7e9700,'ELEMENT_CAPTION')),_0x4e2900['plugins']['has']('ImageUploadEditing')&&_0x4b9781['enableCommand']('uploadImage'),_0x4e2900['plugins']['has']('ImageBlockEditing')&&_0x4e2900['plugins']['has']('ImageInlineEditing')&&(_0x4b9781['enableCommand']('imageTypeInline',(_0x49c802,_0x1cf0f0)=>{const _0x11d8df=_0x58b066['getClosestSelectedImageElement'](_0x4e2900['model']['document']['selection']);_0x4e2900['model']['change'](()=>{_0x4b9781['markBlockFormat'](_0x11d8df,{'commandName':'imageTypeInline','commandParams':[_0x1cf0f0]},[],'convertBlockImageToInline');});}),_0x4b9781['enableCommand']('imageTypeBlock',(_0x2522c3,_0x15652a)=>{_0x4e2900['model']['change'](_0x172f81=>{let _0xb19650=_0x58b066['getClosestSelectedImageElement'](_0x4e2900['model']['document']['selection']),_0x3d4ab6=_0x172f81['createRangeOn'](_0xb19650);const _0x4fdbe0=_0x30a3dd['fromPosition'](_0x3d4ab6['start'],'toPrevious'),_0x499e12=_0x30a3dd['fromPosition'](_0x3d4ab6['end'],'toNext');_0x4b9781['forceDefaultExecution'](()=>_0x2522c3(_0x15652a)),_0xb19650=_0x58b066['getClosestSelectedImageElement'](_0x4e2900['model']['document']['selection']),_0x3d4ab6=_0x172f81['createRangeOn'](_0xb19650);const _0x248f27=_0x172f81['createRange'](_0x4fdbe0,_0x499e12);_0x4fdbe0['detach'](),_0x499e12['detach'](),_0x4b9781['markBlockFormat'](_0xb19650,{'commandName':'imageTypeInline','commandParams':[_0x15652a]},[],'convertInlineImageToBlock'),_0x248f27['start']['isBefore'](_0x3d4ab6['start'])&&_0x4b9781['markInsertion'](_0x172f81['createRange'](_0x248f27['start'],_0x3d4ab6['start']),'convertInlineImageToBlock'),_0x3d4ab6['end']['isBefore'](_0x248f27['end'])&&_0x4b9781['markInsertion'](_0x172f81['createRange'](_0x3d4ab6['end'],_0x248f27['end']),'convertInlineImageToBlock');});}),_0x4b9781['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x4b9781['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x4b9781['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x4b9781['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x4b9781['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x4b9781['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x4025f6])=>{const _0x180d1e=_0x4b9781['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0xde317b=_0x4025f6['start'],_0xc40ec3=_0x4025f6['end'];const _0x3db0c6=_0x4e2900['model']['schema']['getNearestSelectionRange'](_0xde317b,'backward'),_0x26e015=_0x4e2900['model']['schema']['getNearestSelectionRange'](_0xc40ec3,'forward');_0x3db0c6['isCollapsed']&&(_0xde317b=_0x3db0c6['start']),_0x26e015['isCollapsed']&&(_0xc40ec3=_0x26e015['end']),_0x180d1e([_0x4e2900['model']['createRange'](_0xde317b,_0xc40ec3)]);}),_0x4b9781['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x40d1bc),_0x4b9781['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x40d1bc)),_0x4e2900['plugins']['has']('ImageCaptionEditing')&&(_0x4b9781['enableCommand']('toggleImageCaption',(_0x22a9b1,_0x548bbe)=>{const _0x3395cf=_0x4e2900['plugins']['get']('ImageCaptionUtils');let _0x252cb5=_0x58b066['getClosestSelectedImageElement'](_0x4e2900['model']['document']['selection']),_0x5e6161=_0x3395cf['getCaptionFromImageModelElement'](_0x252cb5);_0x4e2900['model']['change'](()=>{if(_0x5e6161)return void _0x4b9781['markDeletion'](_0x4e2900['model']['createRangeOn'](_0x5e6161));const _0x20cd13=_0x58b066['isBlockImage'](_0x252cb5);_0x22a9b1(_0x548bbe),_0x252cb5=_0x58b066['getClosestSelectedImageElement'](_0x4e2900['model']['document']['selection']),_0x5e6161=_0x3395cf['getCaptionFromImageModelElement'](_0x252cb5),_0x4b9781['markInsertion'](_0x4e2900['model']['createRangeOn'](_0x5e6161),_0x20cd13?null:'imageCaption');});}),_0x4b9781['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x40d1bc));const _0x415b38=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x45dfd0(_0x5ee27f,_0x582358){const _0x40ad01=_0x415b38['findIndex'](({type:_0x2f7192,subType:_0x550de7})=>_0x5ee27f['type']==_0x2f7192&&_0x5ee27f['subType']==_0x550de7),_0x3e58f9=_0x415b38['findIndex'](({type:_0x4f6e53,subType:_0x2b7e3d})=>_0x582358['type']==_0x4f6e53&&_0x582358['subType']==_0x2b7e3d);if(_0x40ad01<0x0||_0x3e58f9<0x0)return!0x1;const _0x105e10=_0x5ee27f['getFirstRange'](),_0x29733f=_0x582358['getFirstRange']();if((0x0==_0x40ad01||0x1==_0x40ad01)&&0x2==_0x3e58f9&&_0x105e10['isIntersecting'](_0x29733f))return!0x0;if(0x2==_0x40ad01&&0x3==_0x3e58f9){const _0x2178b7=_0x4b9781['_findSuggestions'](_0x105e10,'insertion')['filter'](({suggestion:_0x355e01,meta:_0x1e091f})=>_0x1e091f['isOwn']&&'convertInlineImageToBlock'==_0x355e01['subType']);if(_0x2178b7['length']>0x1&&_0x29733f['end']['isEqual'](_0x105e10['start']))return!0x0;if(0x1==_0x2178b7['length']&&(_0x105e10['start']['isEqual'](_0x29733f['end'])||_0x105e10['end']['isEqual'](_0x29733f['start'])))return!0x0;}if(0x3==_0x40ad01&&0x3==_0x3e58f9&&_0x105e10['start']['isBefore'](_0x29733f['start'])){const _0x4ac5c3=_0x105e10['end']['nodeAfter'],_0x29fcd6=_0x29733f['start']['nodeBefore'];return _0x58b066['isBlockImage'](_0x4ac5c3)&&_0x4ac5c3===_0x29fcd6;}return!0x1;}function _0x40d1bc(_0x4b3356,_0x335fa7){return _0x45dfd0(_0x4b3356,_0x335fa7)?[_0x4b3356,_0x335fa7]:_0x45dfd0(_0x335fa7,_0x4b3356)?[_0x335fa7,_0x4b3356]:null;}_0x4e2900['plugins']['has']('ImageResize')&&(_0x4b9781['enableDefaultAttributesIntegration']('resizeImage'),_0x4b9781['registerBlockAttribute']('resizedWidth'),_0x4b9781['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x7e9700,'FORMAT_IMAGE_SIZE'))),_0x4e2900['plugins']['has']('ImageTextAlternativeEditing')&&(_0x4b9781['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x4b9781['registerBlockAttribute']('alt')),_0x4e2900['plugins']['has']('PictureEditing')&&(_0x4b9781['registerBlockAttribute']('sources'),_0x4b9781['descriptionFactory']['registerDescriptionCallback'](_0xfd7b3b=>{if('attribute'!=_0xfd7b3b['type'])return;const {data:_0x5c5a2e}=_0xfd7b3b;return _0x5c5a2e&&'sources'==_0x5c5a2e['key']?{'type':'format','content':''}:void 0x0;})),_0x4e2900['plugins']['has']('ImageSizeAttributes')&&(_0x4b9781['registerBlockAttribute']('width'),_0x4b9781['registerBlockAttribute']('height'),_0x4b9781['descriptionFactory']['registerDescriptionCallback'](_0x268d8d=>{if('attribute'!=_0x268d8d['type'])return;const {data:_0x490676}=_0x268d8d;return!_0x490676||'width'!=_0x490676['key']&&'height'!=_0x490676['key']?void 0x0:{'type':'format','content':''};})),_0x4b9781['descriptionFactory']['registerDescriptionCallback'](_0x543804=>{if(!!_0x415b38['find'](({type:_0x189a03,subType:_0x4bb974})=>_0x543804['type']==_0x189a03&&_0x543804['subType']==_0x4bb974))return _0x543804['previous']?{}:void 0x0;}),_0x4b9781['descriptionFactory']['registerDescriptionCallback'](_0x46161b=>{if('insertion'==_0x46161b['type']||'deletion'==_0x46161b['type']){const _0x30583b=_0x46161b['getContainedElement']();if(_0x30583b&&_0x30583b['is']('element','caption'))return{'type':'insertion'==_0x46161b['type']?'addObject':'removeObject','element':_0x30583b,'quantity':0x1};}}),_0x4b9781['descriptionFactory']['registerDescriptionCallback'](_0x482593=>'formatBlock'==_0x482593['type']&&'convertInlineImageToBlock'==_0x482593['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x482593['type']&&'convertBlockImageToInline'==_0x482593['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x4b9781['descriptionFactory']['registerDescriptionCallback'](_0x3be4d4=>{if('attribute'!=_0x3be4d4['type'])return;const {data:_0x41536c}=_0x3be4d4;if(!_0x41536c||'alt'!=_0x41536c['key'])return;const _0x4d60a1=_0x41536c['newValue'];return _0x4d60a1?{'type':'format','content':o(_0x7e9700,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4d60a1+'\x22')}:{'type':'format','content':o(_0x7e9700,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4bd203=this['editor'],_0x158acf=_0x4bd203['locale'];_0x4bd203['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x10e89c=>{if('formatBlock'!=_0x10e89c['type']&&'formatInline'!=_0x10e89c['type'])return;const {data:_0x3f1636}=_0x10e89c;if(_0x3f1636){if('imageTextAlternative'==_0x3f1636['commandName']){const _0x1daccf=_0x3f1636['commandParams'][0x0]['newValue'];return _0x1daccf?{'type':'format','content':o(_0x158acf,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1daccf+'\x22')}:{'type':'format','content':o(_0x158acf,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x3f1636['commandName']){const _0x30a140=_0x3f1636['commandParams'][0x0]['width'];return _0x30a140?{'type':'format','content':o(_0x158acf,'*Set\x20image\x20width:*\x20%0',_0x30a140)}:{'type':'format','content':o(_0x158acf,'*Reset\x20image\x20width*')};}}});}}class st extends _0x573845{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0xbe09e5=this['editor']['locale'],_0x110095=this['editor']['plugins']['get']('TrackChangesEditing');_0x110095['enableDefaultAttributesIntegration']('replaceImageSource'),_0x110095['registerBlockAttribute']('src'),_0x110095['descriptionFactory']['registerDescriptionCallback'](_0x564ec7=>{if('attribute'!=_0x564ec7['type'])return;const {data:_0x45764c}=_0x564ec7;return _0x45764c&&'src'==_0x45764c['key']?_0x45764c['newValue']&&_0x45764c['oldValue']?{'type':'format','content':o(_0xbe09e5,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x8e45fd=this['editor']['plugins']['get']('TrackChangesEditing');_0x8e45fd['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x8e45fd['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x8e45fd['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x8e45fd['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x197674=this['editor'],_0x542c6a=_0x197674['locale'];_0x197674['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x217daf=>{if('formatBlock'!=_0x217daf['type']&&'formatInline'!=_0x217daf['type'])return;const {data:_0x1a5767}=_0x217daf;if(!_0x1a5767||'replaceImageSource'!=_0x1a5767['commandName'])return;return{'type':'format','content':o(_0x542c6a,'*Format:*\x20replace\x20image\x20URL')};});}}class ot extends _0x573845{['afterInit'](){const _0x4318a9=this['editor'];if(!_0x4318a9['plugins']['has']('ImageStyleEditing'))return;const _0x1e00e9=_0x4318a9['plugins']['get']('TrackChangesEditing'),_0x19aafb=_0x4318a9['plugins']['get']('ImageUtils'),_0x10bea3={};_0x1e00e9['enableCommand']('imageStyle',(_0x11578d,_0x10fdde)=>{const _0x3722b8=_0x4318a9['plugins']['get']('Users')['me'],_0x3820ae=_0x4318a9['commands']['get']('imageStyle');let _0x535e10=_0x19aafb['getClosestSelectedImageElement'](_0x4318a9['model']['document']['selection']),_0x645b89=_0x4318a9['model']['createRangeOn'](_0x535e10),_0x4c862b=_0x3820ae['value'];if(_0x4c862b==_0x10fdde['value'])return;const _0x5da38e={'commandName':'imageStyle','commandParams':[_0x10fdde],'formatGroupId':_0x334525()};_0x4318a9['model']['change'](()=>{if(_0x1e00e9['getSuggestions']()['filter'](_0xbde9bf=>_0xbde9bf['isInContent']&&_0x3722b8==_0xbde9bf['author']&&('formatBlock'==_0xbde9bf['type']||'formatInline'==_0xbde9bf['type'])&&('imageStylePreApply'==_0xbde9bf['subType']||'imageStylePostApply'==_0xbde9bf['subType'])&&_0xbde9bf['getFirstRange']()['isEqual'](_0x645b89))['forEach'](_0x2db9c9=>_0x1e00e9['discardSuggestion'](_0x2db9c9['head'])),_0x535e10=_0x19aafb['getClosestSelectedImageElement'](_0x4318a9['model']['document']['selection']),_0x645b89=_0x4318a9['model']['createRangeOn'](_0x535e10),_0x3820ae['refresh'](),_0x4318a9['commands']['get']('imageTypeInline')['refresh'](),_0x4318a9['commands']['get']('imageTypeBlock')['refresh'](),_0x4c862b=_0x3820ae['value'],_0x4c862b!=_0x10fdde['value'])return _0x19aafb['isInlineImage'](_0x535e10)&&_0x3820ae['shouldConvertImageType'](_0x10fdde['value'],_0x535e10)?(_0x11578d({..._0x10fdde,'setImageSizes':!0x1}),_0x535e10=_0x19aafb['getClosestSelectedImageElement'](_0x4318a9['model']['document']['selection']),void _0x1e00e9['markBlockFormat'](_0x535e10,{..._0x5da38e,'commandReversedParams':[{'value':_0x4c862b||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x19aafb['isBlockImage'](_0x535e10)?_0x1e00e9['markBlockFormat'](_0x535e10,_0x5da38e,[],'imageStylePostApply'):_0x1e00e9['markInlineFormat'](_0x645b89,_0x5da38e,'imageStylePostApply'));});});for(const _0x2c7cf9 of _0x4318a9['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x10bea3[_0x2c7cf9['name']]=_0x2c7cf9['title']['toLowerCase']();_0x1e00e9['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x1e00e9['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x1e00e9['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x1e00e9['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x1f12df])=>{_0x19aafb['setImageNaturalSizeAttributes'](_0x1f12df['getContainedElement']());}),_0x1e00e9['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x1ee37f,_0x408602)=>{_0x1e00e9['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x1ee37f,{'commandName':_0x408602['commandName'],'commandParams':_0x408602['commandReversedParams']});}),_0x1e00e9['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0xe8452a,_0x21f69d){if(_0x4322cf(_0xe8452a,_0x21f69d))return[_0xe8452a,_0x21f69d];if(_0x4322cf(_0x21f69d,_0xe8452a))return[_0x21f69d,_0xe8452a];return null;});const _0x561f19=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4322cf(_0x24a266,_0x1328c5){const _0x5d6740=_0x561f19['findIndex'](({type:_0x5ae55a,subType:_0x1d1fa0})=>_0x24a266['type']==_0x5ae55a&&_0x24a266['subType']==_0x1d1fa0),_0x4f7480=_0x561f19['findIndex'](({type:_0xacdb4e,subType:_0x2a421b})=>_0x1328c5['type']==_0xacdb4e&&_0x1328c5['subType']==_0x2a421b);if(_0x5d6740<0x0||_0x4f7480<0x0)return!0x1;const _0x59b409=_0x24a266['getFirstRange'](),_0x5e646f=_0x1328c5['getFirstRange']();if((0x0==_0x5d6740||0x1==_0x5d6740)&&0x2==_0x4f7480&&_0x59b409['isIntersecting'](_0x5e646f))return!0x0;if(0x2==_0x5d6740&&0x3==_0x4f7480){const _0x3fe236=_0x1e00e9['_findSuggestions'](_0x59b409,'insertion')['filter'](({suggestion:_0x55be77,meta:_0x1bdef6})=>_0x1bdef6['isOwn']&&'convertInlineImageToBlock'==_0x55be77['subType']);if(_0x3fe236['length']>0x1&&_0x5e646f['end']['isEqual'](_0x59b409['start']))return!0x0;if(0x1==_0x3fe236['length']&&(_0x59b409['start']['isEqual'](_0x5e646f['end'])||_0x59b409['end']['isEqual'](_0x5e646f['start'])))return!0x0;}if(0x3==_0x5d6740&&0x3==_0x4f7480&&_0x59b409['start']['isBefore'](_0x5e646f['start'])){const _0x1340d8=_0x59b409['end']['nodeAfter'],_0x46ac12=_0x5e646f['start']['nodeBefore'];return _0x19aafb['isBlockImage'](_0x1340d8)&&_0x1340d8===_0x46ac12;}return!0x1;}_0x4318a9['model']['document']['registerPostFixer'](()=>{let _0x5b9fd7=!0x1;const _0x298929=Array['from'](_0x4318a9['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3bcb39,data:_0x173d85}of _0x298929){const {group:_0xbfe6e4,type:_0x5dc4c9,subType:_0x31978f,id:_0x3679db}=_0x1e00e9['_splitMarkerName'](_0x3bcb39);if('suggestion'==_0xbfe6e4&&_0x1e00e9['hasSuggestion'](_0x3679db)){if('formatBlock'==_0x5dc4c9&&('imageStylePreApply'==_0x31978f||'imageStylePostApply'==_0x31978f)){const _0x5d2792=_0x1e00e9['getSuggestion'](_0x3679db);if(_0x173d85['newRange']){const _0xd9c820=_0x5d2792['getFirstRange']()['getContainedElement']();if(_0x19aafb['isBlockImage'](_0xd9c820))continue;_0x1e00e9['discardSuggestion'](_0x5d2792),_0x5b9fd7=!0x0;}}if('insertion'==_0x5dc4c9&&'imageCaption'==_0x31978f&&!_0x173d85['newRange']){const _0x48ffbf=_0x1e00e9['getSuggestion'](_0x3679db);_0x48ffbf['next']&&_0x48ffbf['next']['isInContent']&&(_0x1e00e9['discardSuggestion'](_0x48ffbf['next']),_0x5b9fd7=!0x0);}}}return _0x5b9fd7;}),this['_registerLegacyDescription'](_0x10bea3);}['_registerLegacyDescription'](_0x38e2b0){const _0x4078b0=this['editor'],_0xe2d81e=_0x4078b0['locale'];_0x4078b0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x134671=>{if('formatBlock'!=_0x134671['type']&&'formatInline'!=_0x134671['type'])return;const {data:_0x4f7493}=_0x134671;if(!_0x4f7493||'imageStyle'!=_0x4f7493['commandName'])return;const _0x85bda4=_0x4f7493['commandParams'][0x0]['value'];return _0x1bab1a('side'===_0x85bda4?o(_0xe2d81e,'FORMAT_SIDE_IMAGE'):_0x38e2b0[_0x85bda4]||_0x85bda4);function _0x1bab1a(_0x1a5ce2){return{'type':'format','content':o(_0xe2d81e,'*Format:*\x20%0',_0x1a5ce2)};}});}}class rt extends _0x573845{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x3f3697){super(_0x3f3697),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x5f4ae3=this['editor'],_0x40bdbd=_0x5f4ae3['commands']['get']('importWord'),_0x1d5350=_0x5f4ae3['commands']['get']('trackChanges');_0x40bdbd&&(_0x40bdbd['on']('execute',(_0x1e4ed3,[,_0x5d1e36])=>{this['_trackChangesValueDuringImport']=_0x1d5350['value'],_0x5d1e36['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x40bdbd,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x40bdbd,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x1d5350['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x5f4ae3['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x12488a,_0x1e3c5f){const {suggestions:_0x507211}=_0x1e3c5f,_0x3bb4ca=this['editor']['commands']['get']('trackChanges'),_0x6d9a45=_0x3bb4ca['value'];this['_trackChangesValueDuringImport']!==_0x6d9a45&&(_0x3bb4ca['execute'](),this['_trackChangesExecuted']=!0x0),_0x507211&&_0x507211['forEach'](({id:_0x1797bf,type:_0x537d8a,author:_0x8c9c90,created_at:_0x438de6})=>{const _0x3ba62e={'id':_0x1797bf,'type':_0x537d8a,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x8c9c90,'createdAt':_0x438de6?new Date(_0x438de6):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x3ba62e);});}}class at extends _0x573845{['afterInit'](){const _0x69576d=this['editor'],_0xce5388=_0x69576d['plugins']['get']('TrackChangesEditing');if(_0x69576d['plugins']['has']('IndentEditing')&&(_0xce5388['enableCommand']('indent'),_0xce5388['enableCommand']('outdent')),_0x69576d['plugins']['has']('IndentBlock')){for(const _0x13544b of['indentBlock','outdentBlock'])_0xce5388['enableDefaultAttributesIntegration'](_0x13544b);}const _0x5434a4=_0x69576d['locale'];_0xce5388['registerBlockAttribute']('blockIndent'),_0xce5388['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x5434a4,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3e73d3=this['editor'],_0x61e56c=_0x3e73d3['locale'],_0x2c5cfb=_0x3e73d3['plugins']['get']('TrackChangesEditing');_0x2c5cfb['descriptionFactory']['registerDescriptionCallback'](_0x42eb41=>{if('formatBlock'!=_0x42eb41['type'])return;const {data:_0x525874}=_0x42eb41;if(!_0x525874)return;if('indentBlock'!=_0x525874['commandName']&&'outdentBlock'!=_0x525874['commandName'])return;const _0x21cd32=_0x42eb41['getItems']()[0x0],_0x5df48b=_0x2c5cfb['descriptionFactory']['getItemLabel'](_0x21cd32);return'indentBlock'==_0x525874['commandName']?{'type':'format','content':o(_0x61e56c,'*Indent:*\x20%0',_0x5df48b)}:'outdentBlock'==_0x525874['commandName']?{'type':'format','content':o(_0x61e56c,'*Outdent:*\x20%0',_0x5df48b)}:void 0x0;});}}class ct extends _0x573845{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ut extends _0x573845{['afterInit'](){const _0x18fee1=this['editor'];if(!_0x18fee1['plugins']['has']('LinkEditing'))return;const _0x389863=_0x18fee1['plugins']['get']('TrackChangesEditing'),_0x3740cd=_0x18fee1['commands']['get']('link');_0x389863['enableDefaultAttributesIntegration']('link'),_0x389863['enableDefaultAttributesIntegration']('unlink'),_0x389863['registerInlineAttribute']('linkHref');for(const _0x269a13 of _0x3740cd['manualDecorators'])_0x389863['registerInlineAttribute'](_0x269a13['id']),_0x389863['descriptionFactory']['registerAttributeLabel'](_0x269a13['id'],'link\x20('+_0x269a13['label']['toLowerCase']()+')');_0x389863['descriptionFactory']['registerDescriptionCallback'](_0x45a87a=>{if('attribute'!=_0x45a87a['type'])return;const {data:_0x20e387}=_0x45a87a;if(!_0x20e387||'linkHref'!=_0x20e387['key'])return;const _0xe9649a=_0x20e387['newValue'],_0x2ff8ba=_0x18fee1['locale'];return{'type':'format','content':null==_0xe9649a?o(_0x2ff8ba,'*Remove\x20link*'):o(_0x2ff8ba,'*Set\x20link:*\x20%0','\x22'+_0xe9649a+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x18852b=this['editor'],_0x1b79ab=_0x18852b['locale'];_0x18852b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x23e06c=>{if('formatInline'!=_0x23e06c['type'])return;const {data:_0x2ab472}=_0x23e06c;if(_0x2ab472){if('link'==_0x2ab472['commandName']){const _0x37bbe9=_0x2ab472['commandParams'][0x0];return{'type':'format','content':o(_0x1b79ab,'*Set\x20link:*\x20%0','\x22'+_0x37bbe9+'\x22')};}return'unlink'==_0x2ab472['commandName']?{'type':'format','content':o(_0x1b79ab,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x573845{['afterInit'](){const _0x51851b=this['editor'],_0x4788ac=_0x51851b['locale'];if(!_0x51851b['plugins']['has']('LegacyListEditing'))return;const _0x3548fe=_0x51851b['plugins']['get']('TrackChangesEditing'),_0x481da8=_0x51851b['plugins']['has']('LegacyTodoListEditing');function _0x275c26(_0x5ac981){return()=>{const _0x32a0b0=_0x51851b['model']['document']['selection'],_0x51cc3e=_0x51851b['commands']['get'](_0x5ac981);if(_0x51cc3e['value'])return void _0x51851b['execute']('paragraph',{});const _0x1bb6d3=_0x5ac981['slice'](0x0,-0x4),_0x326196=function(_0x523e55,_0x4eddb3,_0x1139a0){let _0x3cc733=Array['from'](_0x523e55)['filter'](_0x5925eb=>function(_0x2d9201,_0x1851c8){return _0x1851c8['checkChild'](_0x2d9201['parent'],'listItem')&&!_0x1851c8['isObject'](_0x2d9201);}(_0x5925eb,_0x1139a0));_0x3cc733=_0x3cc733['filter'](_0x11ee13=>!_0x11ee13['is']('element','listItem')||_0x11ee13['getAttribute']('listType')!=_0x4eddb3);const _0x20e13e=new Set();for(const _0x510af4 of _0x3cc733)_0x510af4['is']('element','listItem')?_0x20e13e['add'](Le(_0x510af4)):_0x20e13e['add'](_0x510af4);return Array['from'](_0x20e13e);}(_0x32a0b0['getSelectedBlocks'](),_0x1bb6d3,_0x51851b['model']['schema']);_0x51851b['model']['change'](()=>{for(const _0x3f3353 of _0x326196)_0x3548fe['markBlockFormat'](_0x3f3353,{'commandName':_0x5ac981,'commandParams':[{'forceValue':!_0x51cc3e['value']}],'formatGroupId':'blockName'},Ee(_0x3f3353));});};}function _0x2e4ef9(_0x4a0eae){return()=>{const _0x13d127=function(_0xe4b7d1){let _0x310fab=Array['from'](_0xe4b7d1);const _0x2b0dc2=_0x310fab['findIndex'](_0x1705ea=>'listItem'!=_0x1705ea['name']);return _0x2b0dc2>-0x1&&(_0x310fab=_0x310fab['slice'](0x0,_0x2b0dc2)),_0x310fab;}(_0x51851b['model']['document']['selection']['getSelectedBlocks']()),_0x246adf=_0x51851b['model']['createRange'](_0x51851b['model']['createPositionAt'](_0x13d127[0x0],'before'),_0x51851b['model']['createPositionAt'](_0x13d127[_0x13d127['length']-0x1],'end'));_0x51851b['model']['change'](()=>{_0x3548fe['markBlockFormat'](_0x246adf,{'commandName':_0x4a0eae,'commandParams':[],'formatGroupId':'listIndent'},function(_0x23403b){const _0x194dbe=new Set();for(const _0x1c5d56 of _0x23403b){let _0x580ad9=_0x1c5d56['nextSibling'];for(;_0x580ad9&&_0x580ad9['getAttribute']('listIndent')>_0x1c5d56['getAttribute']('listIndent');)_0x194dbe['add'](_0x580ad9),_0x580ad9=_0x580ad9['nextSibling'];}return Array['from'](_0x194dbe);}(_0x13d127));});};}_0x3548fe['enableCommand']('numberedList',_0x275c26('numberedList')),_0x3548fe['enableCommand']('bulletedList',_0x275c26('bulletedList')),_0x481da8&&_0x3548fe['enableCommand']('todoList',_0x275c26('todoList')),_0x3548fe['enableCommand']('indentList',_0x2e4ef9('indentList')),_0x3548fe['enableCommand']('outdentList',_0x2e4ef9('outdentList')),_0x481da8&&_0x3548fe['enableCommand']('checkTodoList',()=>{const _0x5726f7=_0x51851b['commands']['get']('checkTodoList'),_0xd01b30=Array['from'](_0x5726f7['_selectedElements']);_0xd01b30['filter'](_0x4ee5ec=>_0x4ee5ec['getAttribute']('todoListChecked')!=_0x5726f7['value']),_0x51851b['model']['change'](()=>{for(const _0x515f06 of _0xd01b30)_0x3548fe['markBlockFormat'](_0x515f06,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x5726f7['value']}]});});}),_0x3548fe['descriptionFactory']['registerElementLabel']('listItem',_0x22972c=>o(_0x4788ac,'ELEMENT_LIST_ITEM',_0x22972c)),_0x3548fe['descriptionFactory']['registerDescriptionCallback'](_0x1c4663=>{if('formatBlock'!=_0x1c4663['type']&&'formatInline'!=_0x1c4663['type'])return;const {data:_0x5d22a5}=_0x1c4663;if(_0x5d22a5){if('numberedList'==_0x5d22a5['commandName']||'bulletedList'==_0x5d22a5['commandName']||'todoList'==_0x5d22a5['commandName'])switch(_0x5d22a5['commandName']['replace']('List','')){case'bulleted':return _0x10f0f4(o(_0x4788ac,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x10f0f4(o(_0x4788ac,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x10f0f4(o(_0x4788ac,'ELEMENT_TODO_LIST'));}if('indentList'==_0x5d22a5['commandName'])return{'type':'format','content':o(_0x4788ac,'*Indent:*\x20%0',o(_0x4788ac,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x5d22a5['commandName'])return{'type':'format','content':o(_0x4788ac,'*Outdent:*\x20%0',o(_0x4788ac,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x5d22a5['commandName'])return _0x5d22a5['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4788ac,'*Check\x20item*')}:{'type':'format','content':o(_0x4788ac,'*Uncheck\x20item*')};}function _0x10f0f4(_0x30a504){return{'type':'format','content':o(_0x4788ac,'*Change\x20to:*\x20%0',_0x30a504)};}});}}function Le(_0x29198e){const _0x322924=_0x29198e['getAttribute']('listIndent');if(0x0==_0x322924)return _0x29198e;let _0x4eb374=_0x29198e;for(;_0x29198e['previousSibling']&&_0x29198e['previousSibling']['is']('element','listItem');){const _0xc0d7e8=_0x29198e['previousSibling']['getAttribute']('listIndent');if(_0xc0d7e8==_0x322924)_0x4eb374=_0x29198e['previousSibling'];else{if(_0xc0d7e8<_0x322924)break;}_0x29198e=_0x29198e['previousSibling'];}return _0x4eb374;}function Ee(_0xd16785){const _0x4f6ec0=[];if(_0xd16785['is']('element','listItem')&&_0xd16785['getAttribute']('listIndent')>0x0){let _0x318767=_0xd16785['nextSibling'];for(;_0x318767&&'listItem'==_0x318767['name']&&_0x318767['getAttribute']('listIndent')==_0xd16785['getAttribute']('listIndent');)_0x4f6ec0['push'](_0x318767),_0x318767=_0x318767['nextSibling'];}return _0x4f6ec0;}class ht extends _0x573845{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x195b01=this['editor']['config']['get']('list.properties'),_0x27c36d=this['editor']['plugins']['get']('TrackChangesEditing');_0x195b01['styles']&&_0x27c36d['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x195b01['reversed']&&_0x27c36d['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x195b01['startIndex']&&_0x27c36d['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x27c36d['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0xdc984b,_0x506883={}){const _0x56d98b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x18fc6a=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x56d98b['markMultiRangeBlockFormat'](_0x18fc6a,{'commandName':'listStyle','commandParams':[{'type':_0x506883['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x44b92e,_0x1bf322={}){const _0x42e3d6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x217cf0=this['_getSuggestionBlocks'](_0x370b27=>_0x370b27['is']('element','listItem')&&'numbered'===_0x370b27['getAttribute']('listType'));if(_0x217cf0['length']<0x1)return;const _0x4ddade=_0x217cf0['map'](_0x1fb15e=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1fb15e,'before'),this['editor']['model']['createPositionAt'](_0x1fb15e,0x0)));this['editor']['model']['change'](()=>{_0x42e3d6['markMultiRangeBlockFormat'](_0x4ddade,{'commandName':'listReversed','commandParams':[{'reversed':_0x1bf322['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x3e0f62,_0x17c83c={}){const _0x202d83=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3f90df=this['_getSuggestionBlocks'](_0x15e03c=>_0x15e03c['is']('element','listItem')&&'numbered'===_0x15e03c['getAttribute']('listType'));if(_0x3f90df['length']<0x1)return;const _0x588705=_0x3f90df['map'](_0x30e197=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x30e197,'before'),this['editor']['model']['createPositionAt'](_0x30e197,0x0)));this['editor']['model']['change'](()=>{_0x202d83['markMultiRangeBlockFormat'](_0x588705,{'commandName':'listStart','commandParams':[{'startIndex':_0x17c83c['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x23dddd){if('formatBlock'!=_0x23dddd['type']&&'formatInline'!=_0x23dddd['type'])return;const _0x49d19d=this['editor']['locale'],{data:_0x4f04d1}=_0x23dddd;if(!_0x4f04d1)return;let _0x17c5ea,_0xb46f26;switch(_0x4f04d1['commandName']){case'listStyle':_0x17c5ea='*Change\x20to:*\x20%0',_0xb46f26={'type':'format','content':o(_0x49d19d,_0x17c5ea,o(_0x49d19d,this['_getTranslationKeyForListStyle'](_0x4f04d1['commandParams'][0x0]['type'])))};break;case'listReversed':_0x17c5ea=_0x4f04d1['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xb46f26={'type':'format','content':o(_0x49d19d,_0x17c5ea)};break;case'listStart':_0x17c5ea='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xb46f26={'type':'format','content':o(_0x49d19d,_0x17c5ea,_0x4f04d1['commandParams'][0x0]['startIndex'])};}return _0xb46f26;}['_getSuggestionBlocksForListStyle'](){const _0x429488=this['editor']['plugins']['get']('LegacyListUtils');let _0x5ec2f0=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x5ec2f0[0x0]?.['is']('element','listItem')&&_0x5ec2f0['unshift'](..._0x429488['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x5ec2f0[_0x5ec2f0['length']-0x1]?.['is']('element','listItem')&&_0x5ec2f0['push'](..._0x429488['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x5ec2f0=[...new Set(_0x5ec2f0)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x5ec2f0=_0x5ec2f0['filter'](_0x593990=>_0x593990['is']('element','listItem'))),_0x5ec2f0;}['_getSuggestionBlocks'](_0x3bec71){const _0x376ed0=this['editor']['plugins']['get']('LegacyListUtils');let _0x43ab80=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x3bec71)['map'](_0x24ecc3=>{const _0x52be0a=this['editor']['model']['createPositionAt'](_0x24ecc3,0x0);return[..._0x376ed0['getSiblingNodes'](_0x52be0a,'backward'),..._0x376ed0['getSiblingNodes'](_0x52be0a,'forward')];})['flat']();return _0x43ab80=[...new Set(_0x43ab80)],_0x43ab80;}['_getTranslationKeyForListStyle'](_0xe7a505){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0xe7a505)||'default')['toUpperCase']()+'_LIST_'+_0xe7a505['toUpperCase']()['replace'](/-/g,'_');}}class gt extends _0x573845{['afterInit'](){const _0x501bbf=this['editor'];if(!_0x501bbf['plugins']['has']('MediaEmbedEditing'))return;const _0x39126a=_0x501bbf['plugins']['get']('TrackChangesEditing'),_0x1a1289=_0x501bbf['locale'];_0x39126a['enableCommand']('mediaEmbed'),_0x39126a['descriptionFactory']['registerElementLabel']('media',_0x205c22=>o(_0x1a1289,'ELEMENT_MEDIA',_0x205c22)),_0x501bbf['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x2fef80,{writer:_0x474a66,options:_0x1f308b})=>{if(_0x1f308b['showSuggestionHighlights'])return _0x474a66['createEmptyElement']('div');},'converterPriority':'high'}),_0x501bbf['data']['downcastDispatcher']['on']('attribute:url:media',(_0x2bd276,_0x485ae7,_0x249080)=>{_0x249080['options']['showSuggestionHighlights']&&_0x2bd276['stop']();},{'priority':'high'});}}class lt extends _0x573845{['afterInit'](){const _0x32893e=this['editor'];_0x32893e['plugins']['has']('MentionEditing')&&_0x32893e['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x573845{['afterInit'](){const _0x5e2813=this['editor'];if(!_0x5e2813['plugins']['has']('MergeFieldsEditing'))return;const _0xbc00c9=_0x5e2813['plugins']['get']('TrackChangesEditing'),_0x540c47=_0x5e2813['locale'];_0xbc00c9['enableCommand']('insertMergeField'),_0xbc00c9['enableCommand']('insertMergeFieldBlock'),_0xbc00c9['enableCommand']('insertMergeFieldImage'),_0xbc00c9['descriptionFactory']['registerElementLabel']('mergeField',_0x3f08b0=>o(_0x540c47,'ELEMENT_MERGE_FIELD',_0x3f08b0)),_0xbc00c9['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x523e84=>o(_0x540c47,'ELEMENT_MERGE_FIELD',_0x523e84)),_0xbc00c9['descriptionFactory']['registerDescriptionCallback'](_0x24a194=>{if('insertion'!=_0x24a194['type']&&'deletion'!=_0x24a194['type'])return;const _0x2a4bd1=_0x24a194['getContainedElement']();if(null==_0x2a4bd1)return;const _0x506976=_0x5e2813['plugins']['get']('MergeFieldsEditing');let _0x2c968a;switch(_0x506976['getMergeFieldType'](_0x2a4bd1)){case null:return;case'image':{const _0x38b04a=_0x506976['unwrapAffixes'](_0x2a4bd1['getAttribute']('src'));_0x2c968a=_0x506976['getLabel'](_0x38b04a)||_0x38b04a;break;}default:{const _0x3fe37e=_0x2a4bd1['getAttribute']('id');_0x2c968a=_0x506976['getLabel'](_0x3fe37e)||_0x3fe37e;break;}}return'insertion'==_0x24a194['type']?{'type':'insertion','content':o(_0x540c47,'*Insert:*\x20%0','\x22'+_0x2c968a+'\x22\x20'+o(_0x540c47,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x540c47,'*Remove:*\x20%0','\x22'+_0x2c968a+'\x22\x20'+o(_0x540c47,'ELEMENT_MERGE_FIELD'))};});}}class mt extends _0x573845{['afterInit'](){const _0x16ab58=this['editor'],_0x52533f=_0x16ab58['plugins']['get']('TrackChangesEditing');_0x16ab58['plugins']['has']('MultiLevelList')&&(_0x52533f['enableDefaultAttributesIntegration']('multiLevelList'),_0x52533f['registerBlockAttribute']('listMarkerStyle'),_0x52533f['descriptionFactory']['registerDescriptionCallback'](_0x45f1ec=>this['handleDescriptions'](_0x45f1ec)));}['handleDescriptions'](_0x157c97){const _0x3abf38=this['editor']['locale'],{data:_0x448666}=_0x157c97,_0x5f0e85={'type':'format','content':''};if(_0x448666&&'listMarkerStyle'==_0x448666['key']){if(!_0x448666['oldValue'])return{'type':'format','content':o(_0x3abf38,'*Set\x20format:*\x20%0',o(_0x3abf38,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x448666['newValue']+')'};if(!_0x448666['newValue']){let _0x2c3382=_0x157c97['head'];for(;_0x2c3382;){if(_0x2c3382['data']&&'listType'==_0x2c3382['data']['key']&&_0x2c3382['data']['newValue'])return _0x5f0e85;_0x2c3382=_0x2c3382['next'];}return{'type':'format','content':o(_0x3abf38,'*Remove\x20format:*\x20%0',o(_0x3abf38,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x448666['oldValue']+')'};}}}}class pt extends _0x573845{['afterInit'](){const _0x1b617b=this['editor'];if(!_0x1b617b['plugins']['has']('PageBreakEditing'))return;_0x1b617b['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x4601ab=_0x1b617b['plugins']['get']('TrackChangesEditing'),_0x4bb2bc=_0x1b617b['locale'];_0x4601ab['descriptionFactory']['registerElementLabel']('pageBreak',_0x3d2332=>o(_0x4bb2bc,'ELEMENT_PAGE_BREAK',_0x3d2332));}}class kt extends _0x573845{['afterInit'](){const _0x1cb7b6=this['editor'];if(!_0x1cb7b6['plugins']['has']('Paragraph'))return;const _0x45cdf1=_0x1cb7b6['locale'],_0x4de980=_0x1cb7b6['plugins']['get']('TrackChangesEditing');_0x4de980['descriptionFactory']['registerElementLabel']('paragraph',_0x3961ac=>o(_0x45cdf1,'ELEMENT_PARAGRAPH',_0x3961ac)),_0x4de980['enableDefaultAttributesIntegration']('paragraph'),_0x4de980['enableCommand']('insertParagraph'),_0x1cb7b6['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x1cb7b6),{'priority':'highest'}),_0x1cb7b6['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x15957a,_0x4cc092,_0x511dbe)=>{_0x511dbe['options']['showSuggestionHighlights']&&nr(_0x1cb7b6,{'showActiveMarker':!0x1})(_0x15957a,_0x4cc092,_0x511dbe);},{'priority':'highest'});const _0x1a70fa=_0x4de980['descriptionFactory'];_0x1a70fa['registerDescriptionCallback'](_0x4961e7=>{if('insertion'!==_0x4961e7['type'])return;const {start:_0x14ed98,end:_0x5360a3}=_0x4961e7['getFirstRange']();if(!_0x14ed98['isTouching'](_0x5360a3)||!_0x14ed98['nodeAfter'])return;const _0x3563f2=_0x1cb7b6['model']['schema'],_0x10a745=_0x14ed98['nodeAfter'];return _0x3563f2['isBlock'](_0x10a745)&&!_0x3563f2['isLimit'](_0x10a745)&&_0x3563f2['checkChild'](_0x10a745,'$text')?{'type':'insertion','content':o(_0x45cdf1,'*Insert:*\x20%0',_0x1a70fa['getItemLabel'](_0x10a745,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x510e27=this['editor'],_0x283c23=_0x510e27['locale'];_0x510e27['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1ae0e0=>{if('formatBlock'!=_0x1ae0e0['type'])return;const {data:_0x162ab6}=_0x1ae0e0;return _0x162ab6&&'paragraph'==_0x162ab6['commandName']?{'type':'format','content':o(_0x283c23,'*Change\x20to:*\x20%0',o(_0x283c23,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x1ea869,{showActiveMarker:_0x161e31=!0x0}={}){return(_0x2cd718,_0x19e7be,_0x169f8e)=>{const _0x291921=_0x1ea869['plugins']['get']('TrackChangesEditing'),_0x4ba489=_0x19e7be['markerRange']['start'],_0x2bb1c9=_0x19e7be['markerRange']['end'],_0x1eaa0f=_0x1ea869['model']['schema'];if(!_0x4ba489['isTouching'](_0x2bb1c9)||!_0x4ba489['nodeAfter'])return;const _0x275e0d=_0x4ba489['nodeAfter'];if(_0x1eaa0f['isBlock'](_0x275e0d)&&!_0x1eaa0f['isLimit'](_0x275e0d)&&_0x1eaa0f['checkChild'](_0x275e0d,'$text')){if(!_0x169f8e['consumable']['consume'](_0x19e7be['markerRange'],_0x2cd718['name']))return;const {id:_0x977fd4,authorId:_0xe56156}=_0x291921['_splitMarkerName'](_0x19e7be['markerName']),_0x594453=_0x169f8e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x977fd4,'data-author-id':_0xe56156}),_0x119656=_0x169f8e['mapper']['toViewPosition'](_0x2bb1c9);_0x161e31&&_0x291921['activeMarkers']['includes'](_0x19e7be['markerName'])&&_0x169f8e['writer']['addClass']('ck-suggestion-marker--active',_0x594453),_0x169f8e['writer']['insert'](_0x119656,_0x594453),_0x169f8e['mapper']['bindElementToMarker'](_0x594453,_0x19e7be['markerName']);}};}class wt extends _0x573845{['afterInit'](){const _0x113357=this['editor'];_0x113357['commands']['get']('replaceSource')&&_0x113357['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class bt extends _0x573845{['afterInit'](){const _0x26d5b2=this['editor'];if(!_0x26d5b2['plugins']['has']('RemoveFormatEditing'))return;_0x26d5b2['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2c8582=this['editor'];_0x2c8582['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2d9f80=>{if('formatBlock'!=_0x2d9f80['type']&&'formatInline'!=_0x2d9f80['type'])return;const {data:_0x43b495}=_0x2d9f80;return _0x43b495&&'removeFormat'==_0x43b495['commandName']?{'type':'format','content':o(_0x2c8582['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x573845{['afterInit'](){const _0x6c3b72=this['editor'];if(!_0x6c3b72['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x34ceda=_0x6c3b72['plugins']['get']('TrackChangesEditing');_0x34ceda['enableCommand']('goToPreviousRestrictedEditingException'),_0x34ceda['enableCommand']('goToNextRestrictedEditingException');const _0x3f4772=_0x6c3b72['plugins']['get']('RestrictedEditingModeEditing');_0x3f4772['enableCommand']('trackChanges'),_0x3f4772['enableCommand']('acceptSuggestion'),_0x3f4772['enableCommand']('discardSuggestion'),_0x3f4772['enableCommand']('acceptAllSuggestions'),_0x3f4772['enableCommand']('discardAllSuggestions'),_0x3f4772['enableCommand']('acceptSelectedSuggestions'),_0x3f4772['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x573845{['afterInit'](){const _0x175407=this['editor'];if(!_0x175407['plugins']['has']('ShiftEnter'))return;const _0x323913=_0x175407['plugins']['get']('TrackChangesEditing');_0x323913['enableCommand']('shiftEnter'),_0x175407['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x175407),{'priority':'high'}),_0x175407['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x175407),{'priority':'high'}),_0x175407['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x150ab9,_0x41cb11,_0x528539)=>{_0x528539['options']['showSuggestionHighlights']&&je(_0x175407,{'showActiveMarker':!0x1})(_0x150ab9,_0x41cb11,_0x528539);}),_0x323913['descriptionFactory']['registerElementLabel']('softBreak',_0x469db1=>o(_0x175407['locale'],'ELEMENT_LINE_BREAK',_0x469db1));}}function je(_0x5a4967,{showActiveMarker:_0x332893=!0x0}={}){return(_0x3f6d8c,_0x3046be,_0x182266)=>{const _0x341644=_0x5a4967['plugins']['get']('TrackChangesEditing');if(!_0x182266['consumable']['test'](_0x3046be['markerRange'],_0x3f6d8c['name']))return;const _0x16dd33=_0x5a4967['model'];for(const _0xb3d9f9 of _0x3046be['markerRange']['getItems']()){if(!_0xb3d9f9['is']('element','softBreak'))continue;const _0x32b77c='deletion'==_0x3046be['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x5a45c9,authorId:_0xab5682}=_0x341644['_splitMarkerName'](_0x3046be['markerName']),_0x1db797=_0x182266['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x32b77c,'data-suggestion':_0x5a45c9,'data-author-id':_0xab5682}),_0x2ab50f=_0x182266['mapper']['toViewPosition'](_0x16dd33['createPositionBefore'](_0xb3d9f9));_0x332893&&_0x341644['activeMarkers']['includes'](_0x3046be['markerName'])&&_0x182266['writer']['addClass']('ck-suggestion-marker--active',_0x1db797),_0x182266['writer']['insert'](_0x2ab50f,_0x1db797),_0x182266['mapper']['bindElementToMarker'](_0x1db797,_0x3046be['markerName']);}};}class St extends _0x573845{['afterInit'](){const _0xac5d0e=this['editor'],_0x2339c7=_0xac5d0e['model'],_0x25ac94=_0xac5d0e['locale'];if(!_0xac5d0e['plugins']['has']('StandardEditingModeEditing'))return;const _0x15d1c1=_0xac5d0e['plugins']['get']('TrackChangesEditing'),_0x43223d='restrictedEditingException',_0x1b71fa=_0xac5d0e['commands']['get'](_0x43223d);_0x15d1c1['enableCommand'](_0x43223d,(_0x429c12,_0x35c869={})=>{const _0x209eeb=_0x2339c7['document']['selection'];if(_0x209eeb['isCollapsed'])return void _0x429c12(_0x35c869);const _0x1dba93=void 0x0!==_0x35c869['forceValue']?_0x35c869['forceValue']:!_0x1b71fa['value'];_0x2339c7['change'](()=>{const _0x2dd003=Array['from'](_0x209eeb['getRanges']());for(const _0x2df6c4 of _0x2dd003){const _0x152ad7=_0x1dba93?[_0x2df6c4]:io(_0x43223d,_0x2df6c4,_0x2339c7);for(const _0x39b8d6 of _0x152ad7)_0x15d1c1['markInlineFormat'](_0x39b8d6,{'commandName':_0x43223d,'commandParams':[{'forceValue':_0x1dba93}]});}});}),_0x15d1c1['descriptionFactory']['registerDescriptionCallback'](_0x552286=>{if('formatBlock'!=_0x552286['type']&&'formatInline'!=_0x552286['type'])return;const {data:_0xdcea21}=_0x552286;return _0xdcea21&&_0xdcea21['commandName']==_0x43223d?_0xdcea21['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x25ac94,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x25ac94,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x573845{['afterInit'](){const _0x484f1e=this['editor'];if(!_0x484f1e['plugins']['has']('Style')||!_0x484f1e['plugins']['has']('DataSchema'))return;const _0x5b44e4=_0x484f1e['plugins']['get']('TrackChangesEditing'),_0x85ad76=_0x484f1e['locale'],_0x4fd814=_0x484f1e['config']['get']('style')||{},_0x479ca4=_0x484f1e['plugins']['get']('GeneralHtmlSupport'),_0x2f23fa=_0x484f1e['plugins']['get']('StyleUtils')['normalizeConfig'](_0x484f1e['plugins']['get']('DataSchema'),_0x4fd814['definitions']);_0x5b44e4['enableDefaultAttributesIntegration']('style');const _0x25b858=new Set();for(const _0x31f1a5 of _0x2f23fa['block']){const _0xdb320e=_0x479ca4['getGhsAttributeNameForElement'](_0x31f1a5['element']);_0x25b858['add'](_0xdb320e);}const _0x19b4b5=new Set();for(const _0x330130 of _0x2f23fa['inline']){const _0x563f09=_0x479ca4['getGhsAttributeNameForElement'](_0x330130['element']);_0x19b4b5['add'](_0x563f09);for(const _0xc5f9f1 of _0x330130['ghsAttributes'])_0x19b4b5['add'](_0xc5f9f1);}for(const _0x90eb8d of _0x25b858)_0x5b44e4['registerBlockAttribute'](_0x90eb8d),_0x5b44e4['descriptionFactory']['registerAttributeLabel'](_0x90eb8d,o(_0x85ad76,'FORMAT_STYLE'));for(const _0x394532 of _0x19b4b5)_0x5b44e4['registerInlineAttribute'](_0x394532),_0x5b44e4['descriptionFactory']['registerAttributeLabel'](_0x394532,o(_0x85ad76,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3d173a=this['editor'],_0x84968a=_0x3d173a['locale'];_0x3d173a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x695f6c=>{if('formatBlock'!=_0x695f6c['type']&&'formatInline'!=_0x695f6c['type'])return;const {data:_0x45bb53}=_0x695f6c;return _0x45bb53&&'style'===_0x45bb53['commandName']?_0x45bb53['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x84968a,'*Set\x20format:*\x20%0',_0x45bb53['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x84968a,'*Remove\x20format:*\x20%0',_0x45bb53['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class At extends _0x573845{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x2d0f12){super(_0x2d0f12),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x9f668b=this['editor'],_0x27229c=_0x9f668b['model']['document']['selection'];if(!_0x9f668b['plugins']['has']('TableEditing'))return;const _0x58f2ba=_0x9f668b['locale'],_0x1083b5=_0x9f668b['plugins']['get']('TrackChangesEditing'),_0x5009ef=_0x9f668b['plugins']['get']('TableUtils');_0x1083b5['descriptionFactory']['registerElementLabel']('table',_0x436ae2=>o(_0x58f2ba,'ELEMENT_TABLE',_0x436ae2)),this['_setupColumnsRowsFixing'](),_0x1083b5['enableCommand']('insertTable'),_0x1083b5['enableCommand']('selectTableRow'),_0x1083b5['enableCommand']('selectTableColumn');for(const _0x32045b of['insertTableRowAbove','insertTableRowBelow']){const _0x454e30=_0x9f668b['commands']['get'](_0x32045b);_0x1083b5['enableCommand'](_0x32045b,_0x15d498=>{_0x9f668b['model']['change'](_0x4832f5=>{_0x15d498();const _0x29f7f9='above'===_0x454e30['order'],_0x42649e=_0x5009ef['getSelectionAffectedTableCells'](_0x27229c),_0x4b7eba=_0x5009ef['getRowIndexes'](_0x42649e),_0x1aaaa3=_0x29f7f9?_0x4b7eba['first']-0x1:_0x4b7eba['last']+0x1,_0x3f3a41=_0x42649e[0x0]['findAncestor']('table'),_0x3fded4=_0x5009ef['createTableWalker'](_0x3f3a41,{'startRow':_0x1aaaa3,'endRow':_0x1aaaa3}),_0x8255e2=Array['from'](_0x3fded4)['map'](_0x5be293=>_0x4832f5['createRangeOn'](_0x5be293['cell']));_0x1083b5['markMultiRangeInsertion'](_0x8255e2,'tableRow');});});}for(const _0x504f62 of['insertTableColumnLeft','insertTableColumnRight']){const _0x581c3a=_0x9f668b['commands']['get'](_0x504f62);_0x1083b5['enableCommand'](_0x504f62,_0x5f168c=>{_0x9f668b['model']['change'](_0x23a749=>{_0x5f168c();const _0x3f9b95='left'===_0x581c3a['order'],_0x152c68=_0x5009ef['getSelectionAffectedTableCells'](_0x27229c),_0x20caca=_0x5009ef['getColumnIndexes'](_0x152c68),_0x55746e=_0x3f9b95?_0x20caca['first']-0x1:_0x20caca['last']+0x1,_0x35a3d1=_0x152c68[0x0]['findAncestor']('table'),_0x625202=_0x5009ef['createTableWalker'](_0x35a3d1,{'startRow':0x0,'column':_0x55746e,'includeAllSlots':!0x1}),_0x456e2f=Array['from'](_0x625202)['map'](_0x37ba1c=>_0x23a749['createRangeOn'](_0x37ba1c['cell']));_0x1083b5['markMultiRangeInsertion'](_0x456e2f,'tableColumn');});});}for(const _0x2bdbab of['removeTableRow','removeTableColumn']){const _0x3753f5=_0x2bdbab['substr'](0xb),_0x3ac598=_0x3753f5['toLowerCase'](),_0x51c531=_0x3ac598['substr'](0x0,0x3)+'span',_0x1b6d1d='table'+_0x3753f5,_0x32b6f8='min'+_0x3753f5,_0x3ac46c='max'+_0x3753f5;_0x1083b5['enableCommand'](_0x2bdbab,()=>{_0x9f668b['model']['change'](_0x5a3f28=>{const _0x1afbde=_0x5009ef['getSelectionAffectedTableCells'](_0x27229c),_0x2b7541=_0x1afbde[0x0]['findAncestor']('table');let _0x2230f8;if('removeTableRow'==_0x2bdbab){const _0x5e492d=_0x5009ef['getRowIndexes'](_0x1afbde);_0x2230f8={'startRow':_0x5e492d['first'],'endRow':_0x5e492d['last'],'includeAllSlots':!0x0};}else{const _0x75f1fb=_0x5009ef['getColumnIndexes'](_0x1afbde);_0x2230f8={'startColumn':_0x75f1fb['first'],'endColumn':_0x75f1fb['last'],'includeAllSlots':!0x0};}const _0xbdd89d=_0x5009ef['createTableWalker'](_0x2b7541,_0x2230f8),_0x2ea58f=Array['from'](_0xbdd89d)['map'](({cell:_0xfb934a})=>_0xfb934a),_0x1b4b9b=Ne(_0x2ea58f['filter'](_0x34067a=>_0x34067a['hasAttribute'](_0x51c531))),_0x55ac18=Ne(_0x2ea58f['filter'](_0x10b52b=>!_0x10b52b['hasAttribute'](_0x51c531)))['map'](_0x1900c2=>_0x5a3f28['createRangeOn'](_0x1900c2)),_0x34cb3a=_0x1083b5['markMultiRangeDeletion'](_0x55ac18,_0x1b6d1d);if(_0x34cb3a&&('tableRow'==_0x34cb3a['subType']||'tableColumn'==_0x34cb3a['subType'])){const _0x1410f1=this['_getSuggestionCoords'](_0x34cb3a);for(const _0x43cf05 of _0x1b4b9b){const _0x43a9a6=_0x5a3f28['createRangeOn'](_0x43cf05),_0x5a6f26=_0x5009ef['getCellLocation'](_0x43cf05),_0xd60471=_0x43cf05['getAttribute'](_0x51c531)-0x1,_0x2ee0ce=_0x1410f1[_0x32b6f8],_0x1c1602=_0x1410f1[_0x3ac46c];_0x2ee0ce<=_0x5a6f26[_0x3ac598]&&_0x5a6f26[_0x3ac598]+_0xd60471<=_0x1c1602&&_0x34cb3a['addRange'](_0x43a9a6);}}});});}function _0xef4736(_0x3dd1c6){const _0x3d8704=Array['from'](_0x27229c['getRanges']())['map'](_0x100eb4=>_0x1f4d12['fromRange'](_0x100eb4));_0x9f668b['model']['change'](_0x3ccde2=>{const _0x17db79=_0x3ccde2['batch'];_0x3dd1c6=_0x3dd1c6['filter'](_0x484559=>'$graveyard'!=_0x484559['root']['rootName']),_0x3ccde2['setSelection'](_0x3dd1c6),_0x9f668b['commands']['get']('removeTableRow')['refresh'](),_0x9f668b['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x9f668b['model']['enqueueChange'](()=>{_0x9f668b['model']['enqueueChange'](_0x17db79,_0x3ee247=>{const _0x2d1616=_0x3d8704['filter'](_0x52d325=>'$graveyard'!=_0x52d325['root']['rootName']);_0x2d1616['length']>0x0&&_0x3ee247['setSelection'](_0x2d1616);for(const _0x2422ac of _0x3d8704)_0x2422ac['detach']();});});});}function _0x906a73(_0x143785){_0x9f668b['model']['change'](_0x5ab3e2=>{const _0x2670d8=Array['from'](_0x27229c['getRanges']())['map'](_0x812a08=>_0x1f4d12['fromRange'](_0x812a08)),_0x323d9c=[];for(const _0x5e8070 of _0x143785)for(const _0x1521f3 of _0x5e8070['getItems']({'shallow':!0x0}))_0x323d9c['push'](_0x1521f3);for(const _0x5dc8bf of _0x323d9c)'$graveyard'!=_0x5dc8bf['root']['rootName']&&(_0x5ab3e2['setSelection'](_0x5ab3e2['createPositionAt'](_0x5dc8bf,0x0)),_0x9f668b['commands']['get']('removeTableColumn')['refresh'](),_0x9f668b['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x596561=_0x2670d8['filter'](_0x2a03f5=>'$graveyard'!=_0x2a03f5['root']['rootName']);_0x596561['length']>0x0&&_0x5ab3e2['setSelection'](_0x596561);for(const _0x44ca4d of _0x2670d8)_0x44ca4d['detach']();});}function _0x5bd401(_0x3b7983,_0x1f770b){return _0x1f770b['every'](_0x456d3a=>_0x3b7983['some'](_0x1fd0d5=>_0x1fd0d5['end']['isEqual'](_0x456d3a['start'])||_0x456d3a['end']['isEqual'](_0x1fd0d5['start'])));}function _0x438269(_0x6440c7,_0x3fe6c9){return!_0x6440c7['some'](_0x367194=>_0x3fe6c9['some'](_0x308c16=>_0x367194['isIntersecting'](_0x308c16)))&&_0x6440c7['some'](_0x4efdf5=>_0x3fe6c9['some'](_0x95aed6=>_0x4efdf5['end']['isTouching'](_0x95aed6['start'])));}_0x9f668b['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x22fd27,_0x5689c7,_0x4ad7d7)=>{if(!_0x4ad7d7['options']['showSuggestionHighlights'])return;const _0xaefead=_0x5689c7['item'];if(!_0xaefead||!_0xaefead['is']('element','tableCell'))return;const _0x528b2e=_0x4ad7d7['mapper']['toViewElement'](_0xaefead);if(_0x528b2e){const {id:_0x4a052b,authorId:_0x2a81a6}=_0x1083b5['_splitMarkerName'](_0x5689c7['markerName']);_0x267ebd(_0x528b2e,_0x4ad7d7['writer'],(_0x1b7cc7,_0x21e09c,_0x5b9512)=>{_0x5b9512['addClass'](_0x40c634(_0x21e09c['classes']),_0x1b7cc7),_0x5b9512['setAttribute']('data-suggestion-id',_0x4a052b,_0x1b7cc7),_0x5b9512['setAttribute']('data-author-id',_0x2a81a6,_0x1b7cc7);},(_0x36f3cd,_0x507c36,_0x3606a3)=>{_0x3606a3['removeClass'](_0x40c634(_0x507c36['classes']),_0x36f3cd),_0x3606a3['removeAttribute']('data-suggestion-id',_0x36f3cd),_0x3606a3['removeAttribute']('data-author-id',_0x36f3cd);});}},{'priority':'highest'}),_0x1083b5['descriptionFactory']['registerDescriptionCallback'](_0x85bba9=>{if('insertion'!=_0x85bba9['type']&&'deletion'!=_0x85bba9['type'])return;const _0x4f0a28=_0x85bba9['getContainedElement']();if(null!=_0x4f0a28&&_0x4f0a28['is']('element','table')){if('insertion'==_0x85bba9['type']){const _0x2bb049=_0x85bba9['getItems']()['filter'](_0x59c5cc=>_0x59c5cc['is']('$textProxy'))['map'](_0x2b65a4=>_0x2b65a4['data']);if(_0x2bb049['length'])return{'type':'insertion','content':o(_0x58f2ba,'*Insert:*\x20%0',o(_0x58f2ba,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2bb049['join']('\x20')+'\x22'))};}if('deletion'==_0x85bba9['type']){const _0x519096=_0x85bba9['getItems']()['filter'](_0x220517=>_0x220517['is']('$textProxy'))['map'](_0x408e38=>_0x408e38['data']);if(_0x519096['length'])return{'type':'deletion','content':o(_0x58f2ba,'*Remove:*\x20%0',o(_0x58f2ba,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x519096['join']('\x20')+'\x22'))};}}}),_0x1083b5['descriptionFactory']['registerDescriptionCallback'](_0x36dbd3=>{if('tableRow'==_0x36dbd3['subType']){const _0x357801=_0x36dbd3['getItems']()['filter'](_0x8d1a64=>_0x8d1a64['is']('$textProxy'))['map'](_0x1ae905=>_0x1ae905['data']),_0x4c0216=this['_getSuggestionCoords'](_0x36dbd3),_0x14420a=_0x4c0216['maxRow']-_0x4c0216['minRow']+0x1;if('insertion'==_0x36dbd3['type'])return _0x357801['length']?{'type':'insertion','content':o(_0x58f2ba,'*Insert:*\x20%0',o(_0x58f2ba,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x14420a,'\x22'+_0x357801['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x58f2ba,'*Insert:*\x20%0',o(_0x58f2ba,'ELEMENT_TABLE_ROW',_0x14420a))};if('deletion'==_0x36dbd3['type'])return _0x357801['length']?{'type':'deletion','content':o(_0x58f2ba,'*Remove:*\x20%0',o(_0x58f2ba,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x14420a,'\x22'+_0x357801['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x58f2ba,'*Remove:*\x20%0',o(_0x58f2ba,'ELEMENT_TABLE_ROW',_0x14420a))};}if('tableColumn'==_0x36dbd3['subType']){const _0x203836=_0x36dbd3['getItems']()['filter'](_0x9d468e=>_0x9d468e['is']('$textProxy'))['map'](_0x5d9fc4=>_0x5d9fc4['data']),_0x2a7c68=this['_getSuggestionCoords'](_0x36dbd3),_0x3ae391=_0x2a7c68['maxColumn']-_0x2a7c68['minColumn']+0x1;if('insertion'==_0x36dbd3['type'])return _0x203836['length']?{'type':'insertion','content':o(_0x58f2ba,'*Insert:*\x20%0',o(_0x58f2ba,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3ae391,'\x22'+_0x203836['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x58f2ba,'*Insert:*\x20%0',o(_0x58f2ba,'ELEMENT_TABLE_COLUMN',_0x3ae391))};if('deletion'==_0x36dbd3['type'])return _0x203836['length']?{'type':'deletion','content':o(_0x58f2ba,'*Remove:*\x20%0',o(_0x58f2ba,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3ae391,'\x22'+_0x203836['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x58f2ba,'*Remove:*\x20%0',o(_0x58f2ba,'ELEMENT_TABLE_COLUMN',_0x3ae391))};}}),_0x1083b5['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0xef4736),_0x1083b5['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0xef4736),_0x1083b5['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x906a73),_0x1083b5['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x906a73),_0x1083b5['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x5bd401),_0x1083b5['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x5bd401),_0x1083b5['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x438269),_0x1083b5['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x438269);}['_acceptFormatSuggestionCallbackFactory'](){const _0x3a054b=this['editor'],_0x2e07a7=_0x3a054b['model']['document']['selection'];return(_0x305942,_0x591f4a)=>{_0x3a054b['model']['change'](_0xa37d7a=>{const {commandName:_0x54d6a2,commandParams:_0x5006e9}=_0x591f4a;let _0xa0899b=_0x305942[0x0]['end']['nodeBefore'];_0x5006e9&&_0x5006e9[0x0]&&!0x1===_0x5006e9[0x0]['forceValue']&&(_0xa0899b=_0x305942[0x0]['start']['nodeAfter']);const _0x1a47cf=_0xa37d7a['createRangeIn'](_0xa0899b);if('$graveyard'==_0x1a47cf['root']['rootName'])return;const _0x318922=Array['from'](_0x2e07a7['getRanges']())['map'](_0x4e6868=>_0x1f4d12['fromRange'](_0x4e6868));_0xa37d7a['setSelection'](_0x1a47cf),_0x3a054b['commands']['get'](_0x54d6a2)['refresh'](),_0x5006e9['push']({'forceDefaultExecution':!0x0}),_0x3a054b['execute'](_0x54d6a2,..._0x5006e9);const _0xee06bb=_0x318922['filter'](_0x468af5=>'$graveyard'!=_0x468af5['root']['rootName']);_0xee06bb['length']>0x0&&_0xa37d7a['setSelection'](_0xee06bb);for(const _0x2048ee of _0x318922)_0x2048ee['detach']();});};}['_getCoordsForCells'](_0x5a80cc){const _0x183ef5=this['editor']['plugins']['get']('TableUtils');let _0x4c91f4=Number['MAX_SAFE_INTEGER'],_0x2b8239=Number['MIN_SAFE_INTEGER'],_0x5e8fe3=Number['MAX_SAFE_INTEGER'],_0x2ca23a=Number['MIN_SAFE_INTEGER'];for(const _0x1eef07 of _0x5a80cc){if('$graveyard'==_0x1eef07['root']['rootName'])continue;const {row:_0x4914e8,column:_0xd3279e}=_0x183ef5['getCellLocation'](_0x1eef07),_0x137634=_0x1eef07['hasAttribute']('rowspan')?_0x1eef07['getAttribute']('rowspan')-0x1:0x0,_0x4bce67=_0x1eef07['hasAttribute']('colspan')?_0x1eef07['getAttribute']('colspan')-0x1:0x0;_0x4c91f4=_0x4914e8<_0x4c91f4?_0x4914e8:_0x4c91f4,_0x2b8239=_0x4914e8+_0x137634>_0x2b8239?_0x4914e8+_0x137634:_0x2b8239,_0x5e8fe3=_0xd3279e<_0x5e8fe3?_0xd3279e:_0x5e8fe3,_0x2ca23a=_0xd3279e+_0x4bce67>_0x2ca23a?_0xd3279e+_0x4bce67:_0x2ca23a;}return{'minRow':_0x4c91f4,'maxRow':_0x2b8239,'minColumn':_0x5e8fe3,'maxColumn':_0x2ca23a};}['_setupColumnsRowsFixing'](){const _0x3d02b4=this['editor'],_0x217332=_0x3d02b4['plugins']['get']('TrackChangesEditing'),_0x289059=_0x3d02b4['plugins']['get']('TableUtils');_0x3d02b4['model']['document']['on']('change:data',()=>{const _0x5ece9a=Array['from'](_0x3d02b4['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x32b189,data:_0x424ce9}of _0x5ece9a){const {group:_0x231f2e,id:_0x3592d4,subType:_0x329122}=_0x217332['_splitMarkerName'](_0x32b189);if('suggestion'!=_0x231f2e)continue;if(null!=_0x424ce9['oldRange'])continue;const _0x2e7dec=_0x217332['getSuggestion'](_0x3592d4);this['_tablePostFixingSubtypes']['includes'](_0x329122)&&this['_tableSuggestions']['add'](_0x2e7dec);}},{'priority':'low'});const _0x5da6be=(_0x5a9a46,_0x13593b)=>{let _0x52fd30=!0x1;const _0x5a59f8=_0x13593b['createRangeOn'](_0x5a9a46),_0x5d88a7=_0x5a9a46['findAncestor']('table'),_0x150835=_0x289059['getCellLocation'](_0x5a9a46);for(const _0x3ad460 of this['_tableSuggestions']){const _0x2add1a=_0x3ad460['subType'],_0x10888d=_0x2add1a['startsWith']('tablePaste'),_0x10348e=_0x2add1a['substr'](_0x10888d?0xa:0x5),_0x37b2f9=_0x10348e['toLowerCase'](),_0x54e0af=_0x37b2f9['substr'](0x0,0x3)+'span',_0x36123e='min'+_0x10348e,_0xc5d7b0='max'+_0x10348e;if(!_0x3ad460['isInContent'])continue;if(_0x5d88a7!=_0x3ad460['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x3ad460['isIntersectingWithRange'](_0x5a59f8))continue;const _0x1dcb3f=_0x5a9a46['hasAttribute'](_0x54e0af)?_0x5a9a46['getAttribute'](_0x54e0af)-0x1:0x0,_0x51192a=this['_getSuggestionCoords'](_0x3ad460),_0x20cd6f=_0x51192a[_0x36123e],_0x497e92=_0x51192a[_0xc5d7b0];_0x20cd6f<=_0x150835[_0x37b2f9]&&_0x150835[_0x37b2f9]+_0x1dcb3f<=_0x497e92&&(_0x3ad460['addRange'](_0x5a59f8),_0x52fd30=!0x0);}return _0x52fd30;};_0x3d02b4['model']['document']['registerPostFixer'](_0x1093f6=>{let _0x26d1b7=!0x1;for(const _0x909dad of _0x3d02b4['model']['document']['differ']['getChanges']())if('insert'==_0x909dad['type']){if('tableRow'==_0x909dad['name']){for(const _0x5d1771 of _0x909dad['position']['nodeAfter']['getChildren']())_0x26d1b7=_0x26d1b7||_0x5da6be(_0x5d1771,_0x1093f6);}else'tableCell'==_0x909dad['name']&&(_0x26d1b7=_0x26d1b7||_0x5da6be(_0x909dad['position']['nodeAfter'],_0x1093f6));}return _0x26d1b7;});}['_getSuggestionCoords'](_0x48802e){return this['_getCoordsForCells'](_0x48802e['getRanges']()['map'](_0x254796=>_0x254796['start']['nodeAfter']));}}function Ne(_0x1229ff){return Array['from'](new Set(_0x1229ff)['values']());}class _t extends _0x573845{static get['requires'](){return[At];}['afterInit'](){const _0x365257=this['editor'],_0x291ffd=_0x365257['model']['document']['selection'],_0x7e29b0=_0x365257['locale'];if(!_0x365257['plugins']['has']('TableEditing'))return;const _0x1c53de=_0x365257['plugins']['get']('TrackChangesEditing'),_0x413598=_0x365257['plugins']['get']('TableUtils'),_0x3ca5ff=_0x365257['plugins']['get'](At);_0x3ca5ff['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x1c53de['enableCommand']('mergeTableCells',()=>{const _0xea5ab2=_0x413598['getSelectionAffectedTableCells'](_0x365257['model']['document']['selection']);_0x365257['model']['change'](()=>{_0x1c53de['markMultiRangeBlockFormat'](_0xea5ab2,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x365257['commands']['get']('mergeTableCells')['on']('execute',(_0xa905ef,_0x423c4c)=>{_0x365257['commands']['get']('trackChanges')['value']&&(_0x423c4c['length']>0x0&&_0x423c4c[_0x423c4c['length']-0x1]&&_0x423c4c[_0x423c4c['length']-0x1]['forceDefaultExecution']||_0x1c53de['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0xa905ef['stop']());},{'priority':'highest'});for(const _0x2abbfb of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x563204=_0x365257['commands']['get'](_0x2abbfb);_0x1c53de['enableCommand'](_0x2abbfb,()=>{const _0x4d5139=_0x365257['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1dad84=>_0x1dad84['is']('element','tableCell')),_0x5a32c1=_0x563204['value'];_0x365257['model']['change'](()=>{_0x1c53de['markMultiRangeBlockFormat']([_0x4d5139,_0x5a32c1],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x3a61bb of['splitTableCellVertically','splitTableCellHorizontally']){const _0x23eddb=_0x365257['commands']['get'](_0x3a61bb);_0x1c53de['enableCommand'](_0x3a61bb,()=>{const _0x32ce2d=_0x413598['getSelectionAffectedTableCells'](_0x365257['model']['document']['selection'])[0x0],_0x4aac10=_0x32ce2d['findAncestor']('table'),{column:_0x2d0092,row:_0x43a2db}=_0x413598['getCellLocation'](_0x32ce2d);let _0x228a4d=[];if('horizontally'==_0x23eddb['direction']){const _0x559d5f=_0x413598['createTableWalker'](_0x4aac10,{'startRow':_0x43a2db,'endRow':_0x43a2db,'includeAllSlots':!0x0});_0x228a4d=Array['from'](_0x559d5f)['map'](_0x247959=>_0x247959['cell']);}else{const _0x248c88=_0x413598['createTableWalker'](_0x4aac10,{'column':_0x2d0092,'includeAllSlots':!0x0});_0x228a4d=Array['from'](_0x248c88)['map'](_0x51473=>_0x51473['cell']);}_0x365257['model']['change'](_0x28d133=>{_0x1c53de['markBlockFormat'](_0x28d133['createRangeOn'](_0x32ce2d),{'commandName':_0x3a61bb,'commandParams':[]},_0x228a4d,_0x3a61bb);});});}_0x1c53de['descriptionFactory']['registerDescriptionCallback'](_0x2f4856=>{if('formatBlock'!=_0x2f4856['type']&&'formatInline'!=_0x2f4856['type'])return;const {data:_0x27829a}=_0x2f4856;return _0x27829a&&'mergeTableCells'==_0x27829a['commandName']?{'type':'format','content':o(_0x7e29b0,'*Merge\x20cells*')}:void 0x0;}),_0x1c53de['descriptionFactory']['registerDescriptionCallback'](_0x407662=>{if('formatBlock'!=_0x407662['type']&&'formatInline'!=_0x407662['type'])return;const {data:_0x551088}=_0x407662;return _0x551088?'splitTableCellVertically'==_0x551088['commandName']?{'type':'format','content':o(_0x7e29b0,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x551088['commandName']?{'type':'format','content':o(_0x7e29b0,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x179f90=_0x3ca5ff['_acceptFormatSuggestionCallbackFactory']();for(const _0x3d7690 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x1c53de['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3d7690,'accept',_0x179f90);for(const _0x40a0fd of['splitTableCellVertically','splitTableCellHorizontally'])_0x1c53de['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x40a0fd,'accept',_0x179f90);_0x1c53de['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x45fa02=>{_0x365257['model']['change'](_0x2255c2=>{const _0xc15fab=Array['from'](_0x291ffd['getRanges']())['map'](_0x4b684f=>_0x1f4d12['fromRange'](_0x4b684f));_0x2255c2['setSelection'](_0x45fa02),_0x365257['commands']['get']('mergeTableCells')['refresh'](),_0x365257['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x5ef972=_0xc15fab['filter'](_0x58cc30=>'$graveyard'!=_0x58cc30['root']['rootName']);_0x5ef972['length']>0x0&&_0x2255c2['setSelection'](_0x5ef972);for(const _0x4cc79c of _0xc15fab)_0x4cc79c['detach']();});});for(const _0x39768a of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x1d4cd3=_0x365257['commands']['get'](_0x39768a);_0x1d4cd3['on']('set:isEnabled',(_0x57e56f,_0x584f33,_0x34001e)=>{if(_0x34001e){const _0x296bcb=_0x365257['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x34b3e6=>_0x34b3e6['is']('element','tableCell'));this['_areMergableCells'](_0x1d4cd3['value'],_0x296bcb)||(_0x57e56f['return']=!0x1,_0x57e56f['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x51a7b6=this['editor']['commands']['get']('mergeTableCells'),_0x34b674=this['editor']['plugins']['get']('TableUtils');if(!_0x51a7b6['isEnabled'])return!0x1;const _0x1e7da8=_0x34b674['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x2f3107 of _0x1e7da8)for(const _0x3ceef2 of _0x1e7da8)if(_0x2f3107!=_0x3ceef2&&!this['_areMergableCells'](_0x2f3107,_0x3ceef2))return!0x1;return!0x0;}['_areMergableCells'](_0x58ffa6,_0x34b417){const _0x4a12c3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x160aef=this['editor']['model']['createRangeOn'](_0x58ffa6),_0x5d0c50=this['editor']['model']['createRangeOn'](_0x34b417),_0x59e28b=new Set(),_0xb8f20a=new Set();for(const _0x2e045a of _0x4a12c3['getSuggestions']())if(('insertion'==_0x2e045a['type']||'deletion'==_0x2e045a['type']||'mergeTableCells'==_0x2e045a['subType'])&&_0x2e045a['isInContent']){for(const _0x136ff4 of _0x2e045a['getRanges']())_0x136ff4['containsRange'](_0x160aef,!0x0)&&_0x59e28b['add'](_0x2e045a['type']+':'+_0x2e045a['author']['id']),_0x136ff4['containsRange'](_0x5d0c50,!0x0)&&_0xb8f20a['add'](_0x2e045a['type']+':'+_0x2e045a['author']['id']);}if(_0x59e28b['size']!=_0xb8f20a['size'])return!0x1;for(const _0x26b575 of _0x59e28b)if(!_0xb8f20a['has'](_0x26b575))return!0x1;return!0x0;}}class Ct extends _0x573845{static get['requires'](){return[At];}['afterInit'](){const _0x139ae2=this['editor'];if(!_0x139ae2['plugins']['has']('TableEditing'))return;const _0x2ccc40=_0x139ae2['locale'],_0x1f2ac7=_0x139ae2['plugins']['get']('TrackChangesEditing');_0x1f2ac7['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x1f2ac7['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x1f2ac7['registerBlockAttribute']('headingRows'),_0x1f2ac7['registerBlockAttribute']('headingColumns'),_0x1f2ac7['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x2ccc40,'FORMAT_HEADER_ROW')),_0x1f2ac7['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x2ccc40,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x9c1c5f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5dc021=this['editor']['plugins']['get']('TableUtils'),_0x50254c=this['editor']['plugins']['get'](At)['_acceptFormatSuggestionCallbackFactory']();function _0x31a596({showActiveMarker:_0x4ba112=!0x0,setDataAttribute:_0x37e204=!0x0}={}){return(_0x31f78f,_0x41b79b,_0x8fcf82)=>{const {type:_0x1f9df3,id:_0x1551c6}=_0x9c1c5f['_splitMarkerName'](_0x41b79b['markerName']),_0x31c2e1=_0x9c1c5f['getSuggestion'](_0x1551c6),_0x5123c0=_0x31c2e1['data'];if('formatBlock'!=_0x31c2e1['type']||!_0x5123c0||'setTableColumnHeader'!=_0x5123c0['commandName'])return;if(_0x41b79b['item'])return void _0x31f78f['stop']();if(!_0x8fcf82['consumable']['consume'](_0x41b79b['markerRange'],_0x31f78f['name']))return;const _0x1908b8=_0x41b79b['markerRange']['start']['nodeAfter'],_0x313d3a=_0x41b79b['markerRange']['end']['nodeBefore'],_0x36f2b0=_0x1908b8['parent']['parent'],{column:_0x2fa56d}=_0x5dc021['getCellLocation'](_0x1908b8),{column:_0x4c1a0e}=_0x5dc021['getCellLocation'](_0x313d3a);for(let _0x2596b5=_0x2fa56d;_0x2596b5<=_0x4c1a0e;_0x2596b5++){const _0x441c83=_0x5dc021['createTableWalker'](_0x36f2b0,{'column':_0x2596b5,'includeAllSlots':!0x1});for(const _0x575cc4 of _0x441c83){const _0x49b61f=_0x575cc4['cell'],_0x114bfd=_0x8fcf82['mapper']['toViewElement'](_0x49b61f);_0x8fcf82['writer']['addClass']('ck-suggestion-marker-'+_0x1f9df3,_0x114bfd),_0x37e204&&_0x8fcf82['writer']['setAttribute']('data-suggestion',_0x1551c6,_0x114bfd),_0x8fcf82['mapper']['bindElementToMarker'](_0x114bfd,_0x41b79b['markerName']),_0x4ba112&&(_0x9c1c5f['activeMarkers']['includes'](_0x41b79b['markerName'])?_0x8fcf82['writer']['addClass']('ck-suggestion-marker--active',_0x114bfd):_0x8fcf82['writer']['removeClass']('ck-suggestion-marker--active',_0x114bfd));}}};}_0x9c1c5f['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x50254c),_0x9c1c5f['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x50254c),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x31a596(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x36b915,_0x857e94,_0x258ecb)=>{_0x258ecb['options']['showSuggestionHighlights']&&_0x31a596({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x36b915,_0x857e94,_0x258ecb);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x40d888,_0x4a9d40,_0xe2aeea)=>{const {type:_0x4ada59,id:_0x5f292b}=_0x9c1c5f['_splitMarkerName'](_0x4a9d40['markerName']),_0x247209=_0x9c1c5f['getSuggestion'](_0x5f292b),_0x5407f0=_0x247209['data'];if('formatBlock'!=_0x247209['type']||!_0x5407f0||'setTableColumnHeader'!=_0x5407f0['commandName'])return;const _0x29ce2f=_0xe2aeea['mapper']['markerNameToElements'](_0x4a9d40['markerName']);if(_0x29ce2f){for(const _0x566029 of _0x29ce2f)_0xe2aeea['writer']['removeClass']('ck-suggestion-marker-'+_0x4ada59,_0x566029),_0xe2aeea['writer']['removeClass']('ck-suggestion-marker--active',_0x566029),_0xe2aeea['writer']['removeAttribute']('data-suggestion',_0x566029),_0xe2aeea['mapper']['unbindElementFromMarkerName'](_0x566029,_0x4a9d40['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4d0306=this['editor'],_0x919e2b=_0x4d0306['locale'];function _0x592cc5(_0x3fe0be){return{'type':'format','content':o(_0x919e2b,'*Format:*\x20%0',_0x3fe0be)};}_0x4d0306['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5c6cec=>{if('formatBlock'!=_0x5c6cec['type'])return;const {data:_0x21ef71}=_0x5c6cec;if(_0x21ef71){if('setTableRowHeader'==_0x21ef71['commandName']){const _0x547bb4=_0x21ef71['commandParams'][0x0]['forceValue'];return _0x592cc5(o(_0x919e2b,_0x547bb4?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x21ef71['commandName']){const _0x29939c=_0x21ef71['commandParams'][0x0]['forceValue'];return _0x592cc5(o(_0x919e2b,_0x29939c?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class vt extends _0x573845{['afterInit'](){const _0x3bbfd2=this['editor'],_0x4660e6=_0x3bbfd2['locale'],_0x40aaa0=_0x3bbfd2['plugins']['get']('TrackChangesEditing');function _0x56fe6e(_0x2051bf){return{'type':'format','content':''+o(_0x4660e6,'*Set\x20table\x20type:*\x20%0',_0x2051bf)};}_0x3bbfd2['plugins']['has']('TableLayout')&&(_0x40aaa0['enableCommand']('insertTableLayout'),_0x40aaa0['enableDefaultAttributesIntegration']('tableType'),_0x40aaa0['registerBlockAttribute']('tableType'),_0x40aaa0['descriptionFactory']['registerElementLabel'](_0xd9044e=>_0xd9044e['is']('element','table')&&'layout'===_0xd9044e['getAttribute']('tableType'),_0x21d8ec=>o(_0x4660e6,'ELEMENT_LAYOUT_TABLE',_0x21d8ec)),_0x40aaa0['descriptionFactory']['registerDescriptionCallback'](_0xa8a549=>{const {data:_0xf53396}=_0xa8a549;if(_0xf53396&&'tableType'==_0xf53396['key'])switch(_0xf53396['newValue']){case'layout':return _0x56fe6e(o(_0x4660e6,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x56fe6e(o(_0x4660e6,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=/* #__PURE__ -- @preserve */
|
|
25
|
+
Object['fromEntries'](Be['map'](_0x3b7030=>[_0x3b7030,null]));class Nt extends _0x573845{static get['requires'](){return[At];}['afterInit'](){const _0x46de51=this['editor'];if(!_0x46de51['plugins']['has']('TableClipboard'))return;const _0x4c0795=_0x46de51['plugins']['get']('TrackChangesEditing'),_0x596ed3=_0x46de51['plugins']['get']('TableUtils'),_0x15bac3=_0x46de51['plugins']['get'](At),_0x216afb=_0x46de51['plugins']['get']('TableClipboard'),_0x4e856d=_0x46de51['plugins']['get']('TableSelection'),_0x3fa896=_0x46de51['plugins']['get'](_0x3c134a);_0x15bac3['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x46de51['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x46de51['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x2bb9c2=null,_0x52227e=!0x1;_0x3fa896['on']('contentInsertion',(_0x5a9fce,_0x1168b3)=>{_0x52227e='paste'===_0x1168b3['method'];}),_0x46de51['model']['on']('insertContent',(_0x26723d,_0x2cd66b)=>{if(!_0x52227e&&null===_0x4e856d['getSelectedTableCells']())return;const [_0x4992af,_0x3f8d79]=_0x2cd66b,_0x56a0b1=_0x2cd66b[_0x2cd66b['length']-0x1];_0x56a0b1&&_0x56a0b1['forceDefaultExecution']||_0x4c0795['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x11505b,_0x1fad52,_0x255b28,_0xc61656,_0x54ead1){if(_0x1fad52&&!_0x1fad52['is']('documentSelection'))return!0x1;const _0x339691=_0x54ead1['getTableIfOnlyTableInContent'](_0x11505b,_0x255b28);if(!_0x339691||!Ue(_0x339691,void 0x0,_0xc61656))return!0x1;const _0x251180=_0xc61656['getSelectionAffectedTableCells'](_0x255b28['document']['selection']);if(!_0x251180['length'])return!0x1;const _0x1a54a8=_0x251180[0x0]['findAncestor']('table'),_0x1aff20=_0xc61656['getRowIndexes'](_0x251180),_0x303522=_0xc61656['getColumnIndexes'](_0x251180),_0x5bf73b={'startRow':_0x1aff20['first'],'endRow':_0x1aff20['last'],'startColumn':_0x303522['first'],'endColumn':_0x303522['last']};return 0x1==_0x251180['length']&&(_0x5bf73b['endRow']+=_0xc61656['getRows'](_0x339691)-0x1,_0x5bf73b['endColumn']+=_0xc61656['getColumns'](_0x339691)-0x1),Ue(_0x1a54a8,_0x5bf73b,_0xc61656);}(_0x4992af,_0x3f8d79,_0x46de51['model'],_0x596ed3,_0x216afb)&&(_0x26723d['stop'](),_0x2bb9c2={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x46de51['model']['change'](()=>{_0x46de51['model']['insertContent'](_0x2cd66b[0x0],_0x2cd66b[0x1],_0x2cd66b[0x2],{'forceDefaultExecution':!0x0});const _0x492cc1=_0x334525(),{rowInsertionRanges:_0x597a46,columnInsertionRanges:_0x55047b,insertionRanges:_0x39b61d,deletionRanges:_0x2ddde3,cells:_0x1f1309}=_0x2bb9c2;_0x597a46['length']&&_0x4c0795['markMultiRangeInsertion'](_0x597a46,'tablePasteRow',{'tablePasteChainId':_0x492cc1}),_0x55047b['length']&&_0x4c0795['markMultiRangeInsertion'](_0x55047b,'tablePasteColumn',{'tablePasteChainId':_0x492cc1}),_0x39b61d['length']&&(_0x4c0795['markMultiRangeInsertion'](_0x39b61d,'tablePaste',{'tablePasteChainId':_0x492cc1,'skipNestingCheck':!0x0}),_0x39b61d['forEach'](_0x4b6729=>_0x4b6729['detach']?.())),_0x2ddde3['length']&&(_0x4c0795['markMultiRangeDeletion'](_0x2ddde3,'tablePaste',{'tablePasteChainId':_0x492cc1,'skipNestingCheck':!0x0}),_0x2ddde3['forEach'](_0x52378d=>_0x52378d['detach']?.()));const _0x27f0b0=_0x4c0795['markMultiRangeBlockFormat'](_0x1f1309['map'](({element:_0x4d9d04})=>_0x4d9d04),{'formatGroupId':_0x334525()},[],'tablePasteCell',{'tablePasteChainId':_0x492cc1});if(_0x27f0b0){const _0x5e74b4=_0x27f0b0['getMarkers'](),_0x57f236=[];for(const {element:_0x5b683e,attributes:_0xd55651}of _0x1f1309){if(!_0xd55651)continue;const _0x1f3559=_0x46de51['model']['createRangeOn'](_0x5b683e),_0x249dad=_0x5e74b4['find'](_0x76fcfc=>_0x76fcfc['getRange']()['isEqual'](_0x1f3559));_0x249dad&&_0x57f236['push']([_0x249dad['name'],_0xd55651]);}_0x57f236['length']&&_0x27f0b0['setAttribute']('markerAttributes',Object['fromEntries'](_0x57f236));}_0x2bb9c2=null;}));},{'priority':_0x4aac02['high']+0xa}),_0x3fa896['on']('contentInsertion',()=>{_0x52227e=!0x1;},{'priority':'lowest'}),_0x46de51['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x1cbb24,_0x3f5223)=>{const [_0x56054e,_0x13d345,,_0x214d96]=_0x3f5223;if(!_0x2bb9c2)return;_0x1cbb24['stop']();const _0x18ca9b=_0x56054e['cell'],_0x196725=_0x13d345,_0x1b6429=Oe(_0x18ca9b),_0x377e1e=Oe(_0x196725);_0x1cbb24['return']=_0x18ca9b;let _0x3df428=null,_0x36583c=null;if(_0x377e1e||_0x1b6429){if(_0x1b6429&&!_0x377e1e){_0x214d96['remove'](_0x18ca9b['getChild'](0x0));for(const _0x22472f of Array['from'](_0x196725['getChildren']()))_0x214d96['insert'](_0x22472f,_0x18ca9b,'end');const _0x55e48b=_0x2bb9c2['rowInsertionIndexes']['includes'](_0x56054e['row']),_0x4d17b5=_0x2bb9c2['columnInsertionIndexes']['includes'](_0x56054e['column']);_0x55e48b||_0x4d17b5||(_0x3df428=_0x1f4d12['fromRange'](_0x214d96['createRangeIn'](_0x18ca9b)));}else _0x377e1e&&!_0x1b6429&&(_0x36583c=_0x214d96['createRangeIn'](_0x18ca9b));}else{const _0x5a991c=_0x214d96['createElement']('tableCellSuggestion'),_0x5d5277=_0x214d96['createElement']('tableCellSuggestion');_0x214d96['wrap'](_0x214d96['createRangeIn'](_0x18ca9b),_0x5d5277),_0x214d96['insert'](_0x5a991c,_0x18ca9b,0x0);for(const _0x5b7305 of Array['from'](_0x196725['getChildren']()))_0x214d96['insert'](_0x5b7305,_0x5a991c,'end');_0x3df428=_0x1f4d12['fromRange'](_0x214d96['createRangeOn'](_0x5a991c)),_0x36583c=_0x1f4d12['fromRange'](_0x214d96['createRangeOn'](_0x5d5277));}const _0x3f0584=Array['from'](_0x196725['getAttributes']())['filter'](([_0x1ed112])=>Be['includes'](_0x1ed112));_0x2bb9c2['cells']['push']({'element':_0x18ca9b,'attributes':_0x3f0584['length']?Object['fromEntries'](_0x3f0584):null}),_0x3df428&&_0x2bb9c2['insertionRanges']['push'](_0x3df428),_0x36583c&&_0x2bb9c2['deletionRanges']['push'](_0x36583c);},{'priority':'high'}),_0x596ed3['on']('insertColumns',(_0x5d6b75,_0x555c8b)=>{const [_0x1994d5,_0x19115d={}]=_0x555c8b;if(!_0x2bb9c2)return;const _0x3f4280=_0x19115d['at']||0x0,_0x95ec70=_0x19115d['columns']||0x1;_0x2bb9c2['columnInsertionIndexes']=new Array(_0x95ec70)['fill'](_0x3f4280)['map']((_0x183738,_0x5436c6)=>_0x183738+_0x5436c6);for(const {cell:_0x3fff23}of _0x596ed3['createTableWalker'](_0x1994d5,{'startColumn':_0x3f4280,'endColumn':_0x3f4280+_0x95ec70-0x1}))_0x2bb9c2['columnInsertionRanges']['push'](_0x46de51['model']['createRangeOn'](_0x3fff23));},{'priority':'low'}),_0x596ed3['on']('insertRows',(_0x4ef561,_0x48b5e7)=>{const [_0x384c12,_0x20c97a={}]=_0x48b5e7;if(!_0x2bb9c2)return;const _0x5be653=_0x20c97a['at']||0x0,_0x2cd0d3=_0x20c97a['rows']||0x1;_0x2bb9c2['rowInsertionIndexes']=new Array(_0x2cd0d3)['fill'](_0x5be653)['map']((_0x40c461,_0x30142c)=>_0x40c461+_0x30142c);for(const {cell:_0x46b0af}of _0x596ed3['createTableWalker'](_0x384c12,{'startRow':_0x5be653,'endRow':_0x5be653+_0x2cd0d3-0x1}))_0x2bb9c2['rowInsertionRanges']['push'](_0x46de51['model']['createRangeOn'](_0x46b0af));},{'priority':'low'}),_0x4c0795['descriptionFactory']['registerDescriptionCallback'](_0x593f76=>{if(_0x593f76['subType']&&_0x593f76['subType']['startsWith']('tablePaste'))return _0x593f76['previous']?{}:{'type':'insertion','content':o(_0x46de51['locale'],'*Replace\x20table\x20cells*')};});const _0x2d149c=()=>!0x1;for(const _0x2209fd of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x4c0795['_suggestionFactory']['registerCustomCallback']('insertion',_0x2209fd,'join',_0x2d149c),_0x4c0795['_suggestionFactory']['registerCustomCallback']('deletion',_0x2209fd,'join',_0x2d149c),_0x4c0795['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2209fd,'join',_0x2d149c);_0x4c0795['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x2d149c),_0x4c0795['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x49fb70,_0x1f00a4,_0x4c786e)=>{const _0x9fbd8a=_0x49fb70['map'](_0xe13eff=>_0xe13eff['getContainedElement']())['filter'](_0x5f3af8=>_0x5f3af8),_0x4a78a6=new Map(_0x9fbd8a['map'](_0x1100c1=>[_0x1100c1,null]));if(_0x2bb9c2){for(const {element:_0xfb6a32,attributes:_0x55387c}of _0x2bb9c2['cells'])_0x55387c&&_0x4a78a6['set'](_0xfb6a32,_0x55387c);}else{if(_0x4c786e&&_0x4c786e['markerAttributes'])for(const [_0x25df77,_0xde2c45]of Object['entries'](_0x4c786e['markerAttributes'])){const _0x59ab5c=_0x46de51['model']['markers']['get'](_0x25df77),_0x2f8be9=_0x59ab5c?_0x59ab5c['getRange']()['getContainedElement']():null;_0x2f8be9&&_0x4a78a6['set'](_0x2f8be9,_0xde2c45);}}_0x46de51['model']['change'](_0xa12ef9=>{for(const [_0x5aac49,_0x38c894]of _0x4a78a6)_0xa12ef9['setAttributes']({...xe,..._0x38c894},_0x5aac49);});});const _0x2da80d=(_0x43aa50,_0x4ad01c)=>{_0x4c0795['_suggestionFactory']['registerCustomCallback'](_0x43aa50,'tablePaste',_0x4ad01c,(_0x358233,_0x210f94,_0x2eaa8f)=>{_0x46de51['model']['change'](_0x536246=>{const _0x2213b4=[];for(const _0x15f353 of _0x358233){const _0x48049a=_0x15f353['start']['nodeAfter'];_0x48049a['is']('element','tableCellSuggestion')&&_0x2213b4['push'](_0x48049a);}_0x4c0795['_suggestionFactory']['getSuggestionCallback'](_0x43aa50,null,_0x4ad01c)(_0x358233,_0x210f94,_0x2eaa8f);for(const _0x5c14ea of _0x2213b4)'$graveyard'!=_0x5c14ea['root']['rootName']&&_0x536246['unwrap'](_0x5c14ea);});});};_0x2da80d('insertion','accept'),_0x2da80d('insertion','discard'),_0x2da80d('deletion','accept'),_0x2da80d('deletion','discard'),_0x4c0795['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x1ffdeb=>{const _0x3feabb=_0x1ffdeb['map'](_0x48e478=>_0x48e478['getContainedElement']()),_0x336754=_0x3feabb[0x0]['findAncestor']('table'),{minRow:_0xa9811,maxRow:_0x2e7926}=_0x15bac3['_getCoordsForCells'](_0x3feabb);_0x596ed3['removeRows'](_0x336754,{'at':_0xa9811,'rows':_0x2e7926-_0xa9811+0x1});}),_0x4c0795['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x4c72da=>{const _0x2b8be5=_0x4c72da['map'](_0x313c36=>_0x313c36['getContainedElement']()),_0x142153=_0x2b8be5[0x0]['findAncestor']('table'),{minColumn:_0x23d86d,maxColumn:_0x2db0d2}=_0x15bac3['_getCoordsForCells'](_0x2b8be5);_0x596ed3['removeColumns'](_0x142153,{'at':_0x23d86d,'columns':_0x2db0d2-_0x23d86d+0x1});});const _0x54fb76=(_0x4145f0,_0x740bac)=>{if(!_0x740bac['subType']||!_0x740bac['subType']['startsWith']('tablePaste'))return;const _0x33aea7=_0x740bac['attributes']['tablePasteChainId'],_0x591a4c=_0x4c0795['getSuggestions']()['filter'](_0x4f2c5d=>_0x4f2c5d['isInContent']&&_0x4f2c5d['attributes']&&_0x4f2c5d['attributes']['tablePasteChainId']==_0x33aea7);_0x591a4c['length']&&_0x740bac['getAllAdjacentSuggestions']()['length']!=_0x591a4c['length']&&_0x591a4c['reduce']((_0x96b91d,_0x36c7b2)=>(_0x96b91d['next']=_0x36c7b2,_0x36c7b2['previous']=_0x96b91d,_0x36c7b2));};function _0x3b0e6b(_0x3103d9,_0x3c9c07=!0x0){const {id:_0x32b51c,authorId:_0x2149ec}=_0x4c0795['_splitMarkerName'](_0x3103d9['markerName']),_0x28ee20=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x1a835d=_0x4c0795['activeMarkers']['includes'](_0x3103d9['markerName']);return _0x1a835d&&_0x28ee20['push']('ck-suggestion-marker--active'),{'classes':_0x28ee20,'attributes':{'data-suggestion':_0x32b51c,'data-author-id':_0x2149ec},'priority':_0x1a835d&&_0x3c9c07?0xbc2:0xbb8};}_0x4c0795['on']('suggestionLoaded',_0x54fb76,{'priority':'high'}),_0x4c0795['on']('suggestionUnloaded',_0x54fb76,{'priority':'high'}),_0x46de51['model']['document']['registerPostFixer'](()=>{let _0xea288d=!0x1;const _0x523344=Array['from'](_0x46de51['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x502f3b,data:_0x363ec8}of _0x523344){const {group:_0x54c11b,type:_0x29e9ff,id:_0x1bd0d0}=_0x4c0795['_splitMarkerName'](_0x502f3b);if('suggestion'!=_0x54c11b||'deletion'!=_0x29e9ff||_0x363ec8['oldRange'])continue;if(!_0x4c0795['hasSuggestion'](_0x1bd0d0))continue;const _0x447278=_0x4c0795['getSuggestion'](_0x1bd0d0)['getRanges'](),_0x7fba5e=_0x46de51['plugins']['get']('Users')['me'];for(const _0x4808ff of _0x4c0795['getSuggestions']()){if(!_0x4808ff['isInContent']||_0x4808ff['author']!=_0x7fba5e)continue;if('formatBlock'!=_0x4808ff['type']||'tablePasteCell'!=_0x4808ff['subType'])continue;if(_0x4808ff['getRanges']()['every'](_0x3e715b=>_0x447278['some'](_0x38ff89=>_0x38ff89['containsRange'](_0x3e715b,!0x0)))){for(const _0x59c728 of _0x4808ff['getAllAdjacentSuggestions']())_0x59c728['isInContent']&&(_0x59c728['discard'](),_0xea288d=!0x0);}}}return _0xea288d;}),_0x46de51['model']['document']['registerPostFixer'](_0x1bdb1b=>{const _0x1c4495=_0x46de51['commands']['get']('redo');if(!_0x1c4495||!_0x1c4495['_createdBatches']['has'](_0x1bdb1b['batch']))return!0x1;let _0x38a759=!0x1;const _0x28a2cd=_0x46de51['plugins']['get']('Users')['me'],_0x20131d=_0x46de51['model']['document']['differ']['getChanges'](),_0x4b1216=Array['from'](_0x46de51['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x565b6e,data:_0xa807bc})=>{const {group:_0xdc2015,subType:_0x3dac5b,authorId:_0x2897c3}=_0x4c0795['_splitMarkerName'](_0x565b6e);return'suggestion'==_0xdc2015&&'tablePaste'==_0x3dac5b&&_0x2897c3==_0x28a2cd['id']&&!_0xa807bc['oldRange'];});for(const _0x6f92e1 of _0x20131d){if('insert'!=_0x6f92e1['type']||'tableCellSuggestion'!=_0x6f92e1['name']||0x1!=_0x6f92e1['length'])continue;const _0x223b6c=_0x1bdb1b['createRange'](_0x6f92e1['position'],_0x6f92e1['position']['getShiftedBy'](0x1));if(!_0x4b1216['find'](({data:_0x35b5c1})=>_0x35b5c1['newRange']['isEqual'](_0x223b6c))){for(const {name:_0x205f21,data:_0x1a7517}of _0x4b1216)if(_0x223b6c['containsRange'](_0x1a7517['newRange'])){_0x1bdb1b['updateMarker'](_0x205f21,{'range':_0x223b6c}),_0x38a759=!0x0;break;}}}return _0x38a759;}),_0x46de51['model']['document']['registerPostFixer'](_0x2cf92f=>{let _0x589974=!0x1;const _0x52fb8c=_0x46de51['plugins']['get']('Users')['me'],_0x362990=_0x4c0795['getSuggestions']()['filter'](_0x5b6e12=>_0x5b6e12['isInContent']&&_0x5b6e12['author']==_0x52fb8c),_0x18f1b9=new Set(),_0x24823f=new Set();for(const _0x5524fb of _0x362990)if('tablePaste'==_0x5524fb['subType'])for(const _0x4778a1 of _0x5524fb['getMarkers']()){const _0x148cc3=_0x4778a1['getRange']()['getContainedElement']();if(_0x148cc3){if(_0x148cc3['is']('element','tableCellSuggestion')&&Oe(_0x148cc3)){_0x5524fb['removeMarker'](_0x4778a1['name']),_0x18f1b9['add'](_0x148cc3),_0x589974=!0x0;const _0x5a8a9d=_0x148cc3['nextSibling'],_0x171c1d=_0x148cc3['previousSibling'],_0x1cfc95=_0x5a8a9d&&_0x5a8a9d['is']('element','tableCellSuggestion'),_0x1d52f7=_0x171c1d&&_0x171c1d['is']('element','tableCellSuggestion');_0x1cfc95&&!_0x18f1b9['has'](_0x5a8a9d)&&_0x24823f['add'](_0x5a8a9d),_0x1d52f7&&!_0x18f1b9['has'](_0x171c1d)&&_0x24823f['add'](_0x171c1d);}else _0x148cc3['is']('element','paragraph')&&_0x148cc3['isEmpty']&&(_0x5524fb['removeMarker'](_0x4778a1['name']),_0x589974=!0x0);}}else{if('tablePasteCell'==_0x5524fb['subType']){if(!_0x5524fb['attributes']||!_0x5524fb['attributes']['tablePasteChainId'])continue;const _0x4a1cfe=_0x5524fb['attributes']['markerAttributes'];if(_0x4a1cfe&&Object['keys'](_0x4a1cfe)['length'])continue;const _0x28afac=_0x5524fb['attributes']['tablePasteChainId'];let _0xe0a91e=!0x0,_0x28d1e3=!0x0;for(const _0x56f4b3 of _0x362990)if(_0x56f4b3['subType']&&_0x56f4b3['subType']['startsWith']('tablePaste')){if(!_0x56f4b3['attributes']['tablePasteChainId']){_0x28d1e3=!0x1;break;}if(_0x56f4b3['id']!=_0x5524fb['id']&&_0x56f4b3['attributes']['tablePasteChainId']==_0x28afac){_0xe0a91e=!0x1;break;}}_0x28d1e3&&_0xe0a91e&&(_0x5524fb['removeMarkers'](),_0x589974=!0x0);}}for(const _0x52dc26 of _0x18f1b9)_0x2cf92f['remove'](_0x52dc26);for(const _0x3864a0 of _0x24823f)_0x2cf92f['unwrap'](_0x3864a0);return _0x589974;}),_0x46de51['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x1e72be=>_0x3b0e6b(_0x1e72be),'converterPriority':'high'}),_0x46de51['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x519aeb,_0xe9951f)=>_0xe9951f['options']['showSuggestionHighlights']?_0x3b0e6b(_0x519aeb,!0x1):null,'converterPriority':'high'});const _0x5504bd=_0x46de51['editing']['view'];this['listenTo'](_0x5504bd['document'],'clipboardOutput',(_0x5e6e06,_0x141b7f)=>{const _0xba708b=[];for(const _0x33fb04 of _0x5504bd['createRangeIn'](_0x141b7f['content'])['getItems']())_0x33fb04['is']('element','suggestion-td')&&_0xba708b['push'](_0x33fb04);_0x5504bd['change'](_0x2c906e=>{for(const _0x80e0fb of _0xba708b)_0x2c906e['move'](_0x2c906e['createRangeIn'](_0x80e0fb),_0x2c906e['createPositionBefore'](_0x80e0fb)),_0x2c906e['remove'](_0x80e0fb);});});}}function Oe(_0x33fcbe){if(_0x33fcbe['isEmpty'])return!0x0;const _0x81f6e6=_0x33fcbe['getChild'](0x0);return _0x81f6e6['is']('element','paragraph')&&_0x81f6e6['isEmpty'];}function Ue(_0x54364e,_0x31035a={},_0x2610b9){for(const {isAnchor:_0x33bd58,cellHeight:_0x3224d0,cellWidth:_0x1df04a}of _0x2610b9['createTableWalker'](_0x54364e,{'includeAllSlots':!0x0,..._0x31035a}))if(!_0x33bd58||0x1!=_0x3224d0||0x1!=_0x1df04a)return!0x1;return!0x0;}class Dt extends _0x573845{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x34df0f=this['editor']['plugins']['get']('TrackChangesEditing');_0x34df0f['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x34df0f['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x34df0f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x34df0f['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x34df0f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x34df0f['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x428ff1,_0x49bc7c){const _0x10d8c0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x169e90=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x54f05b=_0x49bc7c['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x40b411=_0x169e90['getColumnGroupElement'](_0x54f05b);let _0x466d97=_0x40b411?_0x169e90['getTableColumnsWidths'](_0x40b411):null,_0x2b0289=_0x54f05b['getAttribute']('tableWidth')||null;const _0x5c3506=_0x49bc7c['tableWidth']||_0x2b0289,_0x4327f9=_0x49bc7c['columnWidths']||_0x466d97,_0x440f9c=this['editor']['plugins']['get']('Users')['me'];for(const _0x31aa6d of _0x10d8c0['getSuggestions']()){const _0x1a9672=_0x31aa6d['getContainedElement']();if('resizeTable'===_0x31aa6d['subType']&&_0x1a9672===_0x54f05b){_0x31aa6d['author']!==_0x440f9c&&_0x31aa6d['discard']();const _0x5072fb=_0x31aa6d['data']['commandParams'];_0x2b0289=_0x5072fb[0x0]['tableWidth'],_0x466d97=_0x5072fb[0x0]['columnWidths'];break;}}_0x428ff1({'table':_0x54f05b,'tableWidth':_0x5c3506,'columnWidths':_0x4327f9}),_0x10d8c0['markBlockFormat'](_0x54f05b,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x2b0289,'columnWidths':_0x466d97}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x34d242){if('formatBlock'!=_0x34d242['type']&&'formatInline'!=_0x34d242['type'])return;const {data:_0x45dca2}=_0x34d242;if(_0x45dca2&&'resizeTable'===_0x45dca2['formatGroupId']){const _0x2e35f5='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x2e35f5)};}}}class $t extends _0x573845{['afterInit'](){const _0x499026=this['editor'];_0x499026['plugins']['has']('Template')&&_0x499026['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x573845{['afterInit'](){const _0x46cc54=this['editor'];if(!_0x46cc54['commands']['get']('insertTableOfContents'))return;_0x46cc54['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x4e34d6=_0x46cc54['plugins']['get']('TrackChangesEditing'),_0x52aa67=_0x46cc54['locale'];_0x4e34d6['descriptionFactory']['registerElementLabel']('tableOfContents',_0x4dd6bb=>o(_0x52aa67,'ELEMENT_TABLE_OF_CONTENTS',_0x4dd6bb));}}class Bt extends _0x573845{['afterInit'](){const _0x34df23=this['editor'];if(!_0x34df23['plugins']['has']('Title'))return;const _0x536ba3=_0x34df23['plugins']['get']('TrackChangesEditing');_0x536ba3['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x34df23['locale'],'ELEMENT_TITLE')),_0x34df23['model']['document']['registerPostFixer'](_0x352d09=>{let _0x37c487=!0x1;const _0x4ff3e=Array['from'](_0x34df23['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x19f00b,data:_0x1a71f1}of _0x4ff3e){const {group:_0x3e5312}=_0x536ba3['_splitMarkerName'](_0x19f00b);if('suggestion'!==_0x3e5312||!_0x1a71f1['newRange'])continue;const _0x10d46b=_0x1a71f1['newRange'],_0x11cc60=_0x10d46b['end']['nodeBefore'];if(!_0x11cc60||!_0x11cc60['is']('element','title-content'))continue;if(!_0x10d46b['start']['isTouching'](_0x10d46b['end']))continue;const _0x8b9bd4=_0x34df23['model']['schema']['getNearestSelectionRange'](_0x10d46b['end'],'forward');if(_0x8b9bd4&&_0x8b9bd4['isCollapsed']){const _0x2bb959=_0x352d09['createRange'](_0x10d46b['start'],_0x8b9bd4['start']);_0x2bb959['isEqual'](_0x10d46b)||(_0x352d09['updateMarker'](_0x19f00b,{'range':_0x2bb959}),_0x37c487=!0x0);}_0x37c487||(_0x352d09['removeMarker'](_0x19f00b),_0x37c487=!0x0);}return _0x37c487;});}}class Tt extends _0x573845{['afterInit'](){const _0x6a755d=this['editor'],_0x4805b1=_0x6a755d['plugins']['get']('TrackChangesEditing');_0x6a755d['plugins']['has']('Uploadcare')&&(_0x4805b1['enableCommand']('uploadcare'),_0x6a755d['plugins']['has']('UploadcareImageEdit')&&(_0x4805b1['enableCommand']('uploadcareImageEdit'),_0x4805b1['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x4805b1['registerBlockAttribute']('uploadcareImageId'),_0x4805b1['descriptionFactory']['registerDescriptionCallback'](_0x25814e=>{if('attribute'!=_0x25814e['type'])return;const {data:_0x29adfd}=_0x25814e;return _0x29adfd&&'uploadcareImageId'==_0x29adfd['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0x573845{['afterInit'](){const _0x2985ec=this['editor'],_0x15f178=_0x2985ec['plugins']['get']('TrackChangesEditing');_0x2985ec['plugins']['has']('UndoEditing')&&(_0x15f178['enableCommand']('undo'),_0x15f178['enableCommand']('redo'));}}class Ot extends _0x573845{static get['requires'](){return[At];}['afterInit'](){const _0x44a2c6=this['editor'];if(!_0x44a2c6['plugins']['has']('TableCaptionEditing'))return;_0x44a2c6['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Et extends _0x573845{['tableProperties'];['tableCellProperties'];constructor(_0x20959d){super(_0x20959d),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x28b3ee=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x2500ab of this['tableProperties'])_0x28b3ee['enableCommand'](_0x2500ab,(_0x4b5fda,_0x5ec255)=>{const _0x510d92=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x2500ab,[_0x510d92],this['tableProperties'],'tableProperties',_0x4b5fda,_0x5ec255);});_0x28b3ee['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x28b3ee['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x28b3ee['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x4ead93,_0x148769)=>this['handleDiscardAction'](this['tableProperties'],_0x4ead93,_0x148769)),_0x28b3ee['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x581bf0 of this['tableCellProperties'])_0x28b3ee['enableCommand'](_0x581bf0,(_0x220df9,_0x8ee12b)=>{const _0x203959=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x581bf0,_0x203959,this['tableCellProperties'],'tableCellProperties',_0x220df9,_0x8ee12b);});_0x28b3ee['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x28b3ee['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x28b3ee['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x354c0d,_0x2d496a)=>this['handleDiscardAction'](this['tableCellProperties'],_0x354c0d,_0x2d496a)),_0x28b3ee['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x28b3ee['descriptionFactory']['registerDescriptionCallback'](_0x2dde60=>this['handleSuggestionDescription'](_0x2dde60)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x12b43b,_0x2c6263,_0x1d2be7,_0x449c5d,_0x3e895d,_0x2cd4d8){const _0x55056e=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x2cd4d8['batch'],()=>{for(const _0x66e83e of _0x2c6263){if(this['_getSuggestion'](_0x66e83e,_0x449c5d))_0x3e895d(_0x2cd4d8);else{const _0x44b0dd={};for(const _0x1fdbc3 of _0x1d2be7){const _0x4210c7=_0x66e83e['getAttribute'](_0x1fdbc3);void 0x0!==_0x4210c7&&(_0x44b0dd[_0x1fdbc3]=_0x4210c7);}_0x3e895d(_0x2cd4d8),_0x55056e['markBlockFormat'](_0x66e83e,{'commandParams':[_0x44b0dd]},[],_0x449c5d);}}});}['handleDiscardAction'](_0xac384c,_0x292804,_0x15622b){const _0x5a3813=_0x292804[0x0]['start']['nodeAfter'],_0x478b5a=_0x15622b['commandParams'][0x0];this['editor']['model']['change'](_0x2075f0=>{for(const _0x2f348f of _0xac384c)void 0x0!==_0x478b5a[_0x2f348f]?_0x2075f0['setAttribute'](_0x2f348f,_0x478b5a[_0x2f348f],_0x5a3813):_0x2075f0['removeAttribute'](_0x2f348f,_0x5a3813);});}['handleSuggestionDescription'](_0x16bba7){if(_0x16bba7['data'])switch(_0x16bba7['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'](_0x2e4346,_0x1f3967){const _0x468177=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x49ed06 of _0x468177['getSuggestions']({'skipNotAttached':!0x0})){const _0x48fcfe=_0x49ed06['getContainedElement']();if(_0x49ed06['subType']===_0x1f3967&&_0x48fcfe===_0x2e4346)return _0x49ed06;}return null;}['_registerTablePropertiesAttributes'](){const _0xff3806=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5d2878=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x4af561 of _0x5d2878){const _0x1ae2a7=_0x4af561['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0xff3806['registerBlockAttribute'](_0x4af561),_0xff3806['descriptionFactory']['registerAttributeLabel'](_0x4af561,o(this['editor']['locale'],'FORMAT_'+_0x1ae2a7));}}}class Rt extends _0x573845{['afterInit'](){const _0x46aa93=this['editor'];if(!_0x46aa93['plugins']['has']('LineHeight'))return;const _0x331fde=_0x46aa93['plugins']['get']('TrackChangesEditing'),_0x964628=_0x46aa93['locale'];_0x331fde['enableDefaultAttributesIntegration']('lineHeight'),_0x331fde['registerBlockAttribute']('lineHeight'),_0x331fde['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x964628,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x573845{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x339440,_0x36c5c9,O,E,R,U,V,G,F,L,J,K,z,W,Q,X,Y,Z,tt,it,nt,et,ot,st,rt,at,ct,ft,ht,mt,ut,H,Rt,q,gt,lt,dt,pt,kt,wt,bt,yt,jt,St,It,At,_t,Ct,vt,Ot,Nt,Dt,Mt,Et,$t,Bt,Tt,xt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2f7e2e){super(_0x2f7e2e),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0xe66019,_0x1c51cc,_0x577376,_0x347e68)=>{this['_model']['change'](()=>{for(const _0x3c600f of[..._0x347e68,..._0x577376])this['_model']['markers']['has'](_0x3c600f)&&_0x2f7e2e['editing']['reconvertMarker'](_0x3c600f);});}),this['descriptionFactory']=new x(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Vt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x2f7e2e['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x2f7e2e['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x2f7e2e['config']['get']('trackChanges.trackFormatChanges'),_0x2f7e2e['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x2f7e2e['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new N(_0x2f7e2e,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x37f20f=this['editor'],_0x210b0f=(_0x3ef72f,_0x40d008)=>{if('attribute'!=_0x3ef72f)return'ck-suggestion-marker-'+_0x3ef72f;const _0x38cee4=_0x40d008['split']('|')[0x0];return this['_isBlockAttribute'](_0x38cee4)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x37f20f['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x43961a=>{const {id:_0x1e9f96,authorId:_0xa0a219,type:_0x3bbf48,subType:_0x34081e}=this['_splitMarkerName'](_0x43961a['markerName']),_0x4bbe43=['ck-suggestion-marker',_0x210b0f(_0x3bbf48,_0x34081e)];let _0x5debfa=0xbb8;return this['activeMarkers']['includes'](_0x43961a['markerName'])&&(_0x4bbe43['push']('ck-suggestion-marker--active'),_0x5debfa=0xbc2),'deletion'==_0x3bbf48&&(_0x5debfa+=0x5),{'classes':_0x4bbe43,'attributes':{'data-suggestion':_0x1e9f96,'data-author-id':_0xa0a219},'priority':_0x5debfa};}}),_0x37f20f['conversion']['for']('dataDowncast')['add'](_0x812989=>{_0x812989['on']('addMarker:suggestion',(_0x344dec,_0x366e2a,_0xc284a9)=>{if(!_0xc284a9['options']['showSuggestionHighlights'])return;const _0x1871f4=_0x366e2a['item'];if(!_0x1871f4)return;const _0x5116fa=_0xc284a9['mapper']['toViewElement'](_0x1871f4);_0x37f20f['model']['schema']['isObject'](_0x1871f4)&&_0x5116fa&&!_0x5116fa['getCustomProperty']('widget')&&_0x5116fa['is']('containerElement')&&_0x48680d(_0x5116fa,_0xc284a9['writer']);},{'priority':'high'});}),_0x37f20f['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x146aaf,_0x5d3ddc)=>{if(!_0x5d3ddc['options']['showSuggestionHighlights'])return null;const {id:_0x487e99,authorId:_0x7ce6e3,type:_0x158546,subType:_0x155c51}=this['_splitMarkerName'](_0x146aaf['markerName']);return{'classes':['ck-suggestion-marker',_0x210b0f(_0x158546,_0x155c51)],'priority':0xbb8,'attributes':{'data-suggestion':_0x487e99,'data-author-id':_0x7ce6e3}};}});const _0x3fd509=({showActiveMarkers:_0x43e616=!0x0,isAttributeSuggestion:_0x5d13eb=!0x1}={})=>(_0x1c8708,_0x30acdc,_0x19feea)=>{if(!_0x30acdc['item'])return;const {id:_0x3a99d4,authorId:_0x30ffe9}=this['_splitMarkerName'](_0x30acdc['markerName']);if(_0x5d13eb){const _0x4d6e6b=this['_suggestions']['get'](_0x3a99d4),_0x11d8e9=this['_getAttributeKey'](_0x4d6e6b);if(!this['_isBlockAttribute'](_0x11d8e9))return;}if(_0x30acdc['item']['is']('selection'))return void _0x19feea['consumable']['consume'](_0x30acdc['item'],_0x1c8708['name']);const _0x458d77=_0x19feea['mapper']['toViewElement'](_0x30acdc['item']);if(_0x30acdc['item']['is']('element')&&_0x37f20f['model']['schema']['isBlock'](_0x30acdc['item'])&&!_0x458d77['getCustomProperty']('addHighlight')){_0x19feea['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x458d77),_0x19feea['writer']['setAttribute']('data-suggestion',_0x3a99d4,_0x458d77),_0x19feea['writer']['setAttribute']('data-author-id',_0x30ffe9,_0x458d77),_0x19feea['mapper']['bindElementToMarker'](_0x458d77,_0x30acdc['markerName']),_0x43e616&&(this['activeMarkers']['includes'](_0x30acdc['markerName'])?_0x19feea['writer']['addClass']('ck-suggestion-marker--active',_0x458d77):_0x19feea['writer']['removeClass']('ck-suggestion-marker--active',_0x458d77));for(const _0x5708a6 of _0x37f20f['model']['createRangeIn'](_0x30acdc['item'])['getItems']())_0x19feea['consumable']['consume'](_0x5708a6,_0x1c8708['name']);_0x19feea['consumable']['consume'](_0x30acdc['item'],_0x1c8708['name']);}};_0x37f20f['conversion']['for']('dataDowncast')['add'](_0xb4127b=>{_0xb4127b['on']('addMarker:suggestion:formatBlock',(_0x6246ba,_0x597974,_0x633b3f)=>{_0x633b3f['options']['showSuggestionHighlights']&&_0x3fd509({'showActiveMarkers':!0x1})(_0x6246ba,_0x597974,_0x633b3f);},{'priority':'highest'});}),_0x37f20f['conversion']['for']('dataDowncast')['add'](_0x324f01=>{_0x324f01['on']('addMarker:suggestion:attribute',(_0x5159d6,_0x5b10f2,_0x547f97)=>{_0x547f97['options']['showSuggestionHighlights']&&_0x3fd509({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x5159d6,_0x5b10f2,_0x547f97);},{'priority':'highest'});}),_0x37f20f['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x22f164,_0xc6a275)=>{if(_0xc6a275['options']['showSuggestionHighlights']){const {id:_0xb3a60,authorId:_0x4c549c}=this['_splitMarkerName'](_0x22f164);return _0x22f164['includes'](':split')||_0x22f164['includes'](':merge')?{'group':'suggestion','name':_0x22f164['substr'](0xb),'attributes':{'data-suggestion':_0xb3a60,'data-author-id':_0x4c549c}}:null;}return{'group':'suggestion','name':_0x22f164['substr'](0xb)};}}),_0x37f20f['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4dfe38,{writer:_0x101fee})=>{let _0x2feef1='suggestion:'+_0x4dfe38['getAttribute']('suggestion-type')+':'+_0x4dfe38['getAttribute']('id');return _0x4dfe38['getAttribute']('marker-count')&&(_0x2feef1+=':'+_0x4dfe38['getAttribute']('marker-count')),_0x101fee['createElement']('$marker',{'data-name':_0x2feef1});}}),_0x37f20f['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x37f20f['conversion']['for']('editingDowncast')['add'](_0x49303a=>{_0x49303a['on']('addMarker:suggestion:formatBlock',_0x3fd509(),{'priority':'high'});}),_0x37f20f['conversion']['for']('editingDowncast')['add'](_0x11a4a7=>{_0x11a4a7['on']('addMarker:suggestion:attribute',_0x3fd509({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x37f20f['conversion']['for']('editingDowncast')['add'](_0x348ca8=>{_0x348ca8['on']('removeMarker:suggestion:formatBlock',(_0x38df0d,_0x3c0a72,_0x596b7c)=>{const _0x5842ab=_0x596b7c['mapper']['markerNameToElements'](_0x3c0a72['markerName']);if(_0x5842ab){for(const _0x47397b of _0x5842ab)_0x47397b['getCustomProperty']('addHighlight')||(_0x596b7c['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x47397b),_0x596b7c['writer']['removeAttribute']('data-suggestion',_0x47397b),_0x596b7c['writer']['removeAttribute']('data-author-id',_0x47397b),_0x596b7c['mapper']['unbindElementFromMarkerName'](_0x47397b,_0x3c0a72['markerName']));}},{'priority':'high'});}),_0x37f20f['conversion']['for']('editingDowncast')['add'](_0xe8c89=>{_0xe8c89['on']('removeMarker:suggestion:attribute',(_0x459218,_0x4e3713,_0x5b519d)=>{const _0x168238=_0x5b519d['mapper']['markerNameToElements'](_0x4e3713['markerName']);if(!_0x168238)return;const {id:_0x1b8113}=this['_splitMarkerName'](_0x4e3713['markerName']),_0x44eed1=this['_suggestions']['get'](_0x1b8113),_0xc3b054=this['_getAttributeKey'](_0x44eed1);if(this['_isBlockAttribute'](_0xc3b054)){for(const _0x211c1c of _0x168238)_0x211c1c['getCustomProperty']('addHighlight')||(_0x5b519d['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x211c1c),_0x5b519d['writer']['removeAttribute']('data-suggestion',_0x211c1c),_0x5b519d['writer']['removeAttribute']('data-author-id',_0x211c1c),_0x5b519d['mapper']['unbindElementFromMarkerName'](_0x211c1c,_0x4e3713['markerName']));}},{'priority':'high'});}),_0x37f20f['model']['document']['registerPostFixer'](_0x3665bb=>{let _0x34c043=!0x1;const _0x1282a9=Array['from'](_0x37f20f['model']['document']['differ']['getChangedMarkers']()),_0x3e19ab=new Set();for(const {name:_0x6bc3fb,data:_0x387b7e}of _0x1282a9){const {group:_0x306a85,type:_0xb118c8,subType:_0xe5b60d,id:_0x441e5d}=this['_splitMarkerName'](_0x6bc3fb);if('suggestion'!==_0x306a85)continue;const _0x5cd2a2=_0xe5b60d?'suggestion:'+_0xb118c8+':'+_0xe5b60d+':'+_0x441e5d:'suggestion:'+_0xb118c8+':'+_0x441e5d,_0x3affc0=_0x37f20f['model']['markers']['getMarkersGroup'](_0x5cd2a2),_0x4394d4=_0x37f20f['model']['markers']['get'](_0x6bc3fb),_0x4a6a1f=this['_suggestions']['get'](_0x441e5d);if(null!=_0x387b7e['newRange']){'formatInline'==_0xb118c8&&(_0x34c043=_0x34c043||Gt(_0x387b7e['newRange'],_0x6bc3fb,_0x3665bb,_0x37f20f['model']['schema']));const _0x577b79='attribute'==_0xb118c8&&this['_isBlockAttribute'](_0xe5b60d['split']('|')[0x0]),_0x24dbdf='attribute'==_0xb118c8&&this['_isInlineAttribute'](_0xe5b60d['split']('|')[0x0]);if(_0x387b7e['newRange']['isCollapsed']||'$graveyard'==_0x387b7e['newRange']['root']['rootName']||'formatBlock'==_0xb118c8&&!Jt(_0x387b7e['newRange'])||_0x577b79&&!Jt(_0x387b7e['newRange'])||_0x24dbdf&&Kt(_0x387b7e['newRange'])||'deletion'==_0xb118c8&&Kt(_0x387b7e['newRange'])||_0x4394d4&&Ht(_0x4394d4,_0x3affc0))_0x3665bb['removeMarker'](_0x6bc3fb),_0x34c043=!0x0;else{if(!_0x4a6a1f||!_0x4a6a1f['isInContent'])continue;if(_0x387b7e['newRange']&&_0x387b7e['oldRange']&&_0x387b7e['newRange']['isEqual'](_0x387b7e['oldRange']))continue;_0x3e19ab['add'](_0x4a6a1f);}}}return _0x3e19ab['size']>0x0&&(_0x34c043=!!this['_joinWithAdjacentSuggestions'](_0x3e19ab)||_0x34c043),_0x34c043;}),_0x37f20f['model']['document']['registerPostFixer'](_0x1959b2=>{let _0x5a9838=!0x1;for(const _0x305cf3 of _0x37f20f['model']['document']['differ']['getChanges']())if('insert'==_0x305cf3['type'])for(const _0x5a449d of this['_suggestions']['values']()){if(_0x5a449d['isMultiRange']||!_0x5a449d['isInContent'])continue;const _0x2af51d='formatBlock'==_0x5a449d['type'],_0x1c1519=this['_getAttributeKey'](_0x5a449d),_0x3d5d23=_0x1c1519&&this['_isBlockAttribute'](_0x1c1519);if(!_0x2af51d&&!_0x3d5d23)continue;const _0x3f6245=_0x5a449d['getFirstRange']();if(_0x3f6245['start']['parent']!=_0x3f6245['end']['parent']&&!_0x3f6245['end']['isAtEnd']){const _0x545d35=_0x37f20f['model']['createPositionAt'](_0x3f6245['start']['nodeAfter'],'end'),_0x4ededa=_0x37f20f['model']['createRange'](_0x3f6245['start'],_0x545d35);_0x1959b2['updateMarker'](_0x5a449d['getFirstMarker'](),{'range':_0x4ededa}),_0x5a9838=!0x0;}}return _0x5a9838;}),_0x37f20f['model']['document']['registerPostFixer'](_0x34b248=>this['_processAttributeChanges'](_0x34b248)),_0x37f20f['model']['document']['registerPostFixer'](_0x2453ab=>!_0x2453ab['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x2453ab)),_0x37f20f['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x37f20f['model']['document']['on']('change:data',(_0xd58c77,_0xa33d33)=>{if(!_0xa33d33['isLocal']||_0xa33d33['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x4592e4=_0x37f20f['model']['document']['differ']['getChanges']();if(0x0==_0x4592e4['length'])return;const _0x195364=[],_0x519bd3=_0x4592e4['filter'](_0x55fb90=>'attribute'==_0x55fb90['type']),_0x3d0a1a=_0x4592e4['filter'](_0x5313e2=>'insert'==_0x5313e2['type']&&'$text'!=_0x5313e2['name']);for(const _0x5f5625 of _0x519bd3)this['_isRegisteredAttribute'](_0x5f5625['attributeKey'])&&_0x195364['push']({'key':_0x5f5625['attributeKey'],'newValue':_0x5f5625['attributeNewValue'],'oldValue':_0x5f5625['attributeOldValue'],'range':qt(_0x5f5625['range'],_0x37f20f['model'])});for(const _0xef36a5 of _0x3d0a1a){if('rename'!=_0xef36a5['action']&&'refresh'!=_0xef36a5['action'])continue;const _0x3d86d6=zt(_0xef36a5['position']['nodeAfter'],_0x37f20f['model']),_0x120336=_0xef36a5['before'];'rename'==_0xef36a5['action']&&_0x195364['push']({'key':m,'newValue':_0xef36a5['name'],'oldValue':_0x120336['name'],'range':_0x3d86d6});for(const [_0x368836,_0x119791]of _0x120336['attributes']){if(!this['_isRegisteredAttribute'](_0x368836))continue;const _0x5ed376=_0xef36a5['attributes']['get'](_0x368836);_0x119791!==_0x5ed376&&_0x195364['push']({'key':_0x368836,'newValue':_0x5ed376,'oldValue':_0x119791,'range':_0x3d86d6});}for(const [_0x19d956,_0x42ba89]of _0xef36a5['attributes'])this['_isRegisteredAttribute'](_0x19d956)&&(_0x120336['attributes']['has'](_0x19d956)||_0x195364['push']({'key':_0x19d956,'newValue':_0x42ba89,'oldValue':null,'range':_0x3d86d6}));}0x0!=_0x195364['length']&&_0x37f20f['model']['enqueueChange'](_0xa33d33,_0x4a4446=>{const _0x296b97=_0x334525();for(const {range:_0x413176,key:_0x387a52,oldValue:_0x5626bc,newValue:_0x34dd93}of _0x195364)this['markAttributeChange'](_0x413176,_0x387a52,_0x5626bc,_0x34dd93,{'groupId':_0x296b97});this['_reduceExistingSuggestions'](_0x4a4446,_0x195364);});},{'priority':'lowest'}),_0x37f20f['model']['markers']['on']('update:suggestion',(_0x123ee6,_0x216170,_0x5cc5eb)=>{if(null==_0x5cc5eb){const {id:_0x2e18e0}=this['_splitMarkerName'](_0x216170['name']),_0x465bc7=this['_suggestions']['get'](_0x2e18e0);_0x465bc7&&_0x465bc7['addMarkerName'](_0x216170['name']);}}),_0x37f20f['model']['document']['on']('change:data',()=>{const _0x2f9faf=Array['from'](_0x37f20f['model']['document']['differ']['getChangedMarkers']())['filter'](_0x5add14=>'suggestion'===this['_splitMarkerName'](_0x5add14['name'])['group']);if(0x0===_0x2f9faf['length'])return;_0x2f9faf['sort']((_0x529634,_0x51c2aa)=>{const _0x918a13=_0x529634['data']['oldRange'],_0x2d1a21=_0x51c2aa['data']['oldRange'];return null===_0x918a13&&null===_0x2d1a21?0x0:null===_0x918a13&&null!==_0x2d1a21?-0x1:null!==_0x918a13&&null===_0x2d1a21?0x1:_0x918a13['start']['isBefore'](_0x2d1a21['start'])?-0x1:0x1;});const _0x157feb=new Set(),_0x121191=new Set();for(const {name:_0x5bf73c,data:_0x14501f}of _0x2f9faf){const {id:_0xeea279}=this['_splitMarkerName'](_0x5bf73c);if(null===_0x14501f['oldRange']){const _0x1c14af=this['_handleNewSuggestionMarker'](_0x5bf73c);_0x121191['add'](_0x1c14af);}else{const _0x27266b=this['_suggestions']['get'](_0xeea279);null!==_0x14501f['newRange']||_0x27266b['isInContent']?(_0x157feb['add'](_0x27266b['head']),_0x121191['add'](_0x27266b)):this['_removeSuggestion'](_0x27266b);}}_0x121191['size']>0x0&&this['_refreshSuggestionsChain'](_0x121191);for(const _0x40da3b of _0x157feb)this['fire']('suggestionChanged',_0x40da3b);}),_0x37f20f['model']['on']('applyOperation',(_0x45375b,_0xec5123)=>{const _0xdbc62d=_0xec5123[0x0];if(!this['_suggestions']['size'])return;if(!_0xdbc62d['isDocumentOperation'])return;if(_0xdbc62d['batch']['isUndo']||!_0xdbc62d['batch']['isLocal'])return;let _0x91f320,_0x7ccc59;switch(_0xdbc62d['type']){case'insert':_0x91f320=_0x37f20f['model']['createPositionAt'](_0xdbc62d['position']),_0x7ccc59=_0x91f320['getShiftedBy'](_0xdbc62d['howMany']);break;case'split':_0x91f320=_0x37f20f['model']['createPositionAt'](_0xdbc62d['splitPosition']),_0x7ccc59=_0x37f20f['model']['createPositionAt'](_0xdbc62d['moveTargetPosition']);break;case'move':_0x91f320=_0x37f20f['model']['createPositionAt'](_0xdbc62d['targetPosition']),_0x7ccc59=_0x91f320['getShiftedBy'](_0xdbc62d['howMany']);break;default:return;}const _0x10a1a9=_0x37f20f['model']['createRange'](_0x91f320,_0x7ccc59);_0x37f20f['model']['change'](()=>{for(const {suggestion:_0x431e0e,meta:_0x23e65c}of this['_findSuggestions'](_0x10a1a9)){if(_0x431e0e['isMultiRange'])continue;if('formatInline'==_0x431e0e['type'])continue;const _0x5ba381=this['_getAttributeKey'](_0x431e0e);if(_0x5ba381&&this['_isBlockAttribute'](_0x5ba381)&&'split'!=_0xdbc62d['type'])continue;const _0xdbbb9d=_0x431e0e['data']&&_0x431e0e['data']['multipleBlocks'];('formatBlock'!=_0x431e0e['type']||'split'==_0xdbc62d['type']&&!_0xdbbb9d)&&(_0x23e65c['containsRangeInObject']||'insertion'==_0x431e0e['type']&&_0x23e65c['isOwn']||_0x431e0e['getFirstRange']()['containsRange'](_0x10a1a9)&&this['_breakSuggestionMarker'](_0x431e0e,_0x91f320,_0x7ccc59));}});},{'priority':'lowest'}),_0x37f20f['model']['on']('deleteContent',(_0x5cad64,_0x182f47)=>{const _0x47e75f=_0x182f47[0x0],_0x30c4c7=_0x182f47[0x1];if(_0x30c4c7&&_0x30c4c7['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x47e75f['isCollapsed'])return;const _0xba44c7=_0x37f20f['model']['schema'],{start:_0x4173a5,end:_0x1f4dda}=_0x47e75f['getFirstRange'](),_0x2dcaa9=_0x4173a5['nodeAfter']&&_0xba44c7['isLimit'](_0x4173a5['nodeAfter'])?null:_0xba44c7['getNearestSelectionRange'](_0x4173a5,'forward'),_0x269d0e=_0x1f4dda['nodeBefore']&&_0xba44c7['isLimit'](_0x1f4dda['nodeBefore'])?null:_0xba44c7['getNearestSelectionRange'](_0x1f4dda,'backward'),_0x43186f=_0x37f20f['model']['createRange'](_0x2dcaa9?_0x2dcaa9['start']:_0x4173a5,_0x269d0e?_0x269d0e['end']:_0x1f4dda);_0x37f20f['model']['change'](_0x6b0159=>{this['markDeletion'](_0x43186f);const _0x444e51=_0x37f20f['model']['schema']['getNearestSelectionRange'](_0x43186f['start']);_0x47e75f['is']('documentSelection')?_0x6b0159['setSelection'](_0x444e51):_0x47e75f['setTo'](_0x444e51);}),_0x5cad64['stop']();},{'priority':_0x4aac02['normal']+0xa}),_0x37f20f['model']['on']('insertContent',(_0x409598,_0x3e447f)=>{const _0x1c7b14=_0x3e447f[_0x3e447f['length']-0x1];_0x1c7b14&&_0x1c7b14['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x37f20f['model']['change'](()=>{let _0x3cadde=_0x37f20f['model']['insertContent'](_0x3e447f[0x0],_0x3e447f[0x1],_0x3e447f[0x2],{'forceDefaultExecution':!0x0});if(!_0x3cadde)return;_0x409598['return']=_0x3cadde['clone']();const _0x2ab82e=_0x3cadde['end']['nodeBefore'],_0x135d69=_0x37f20f['model']['schema'];_0x2ab82e&&_0x135d69['isBlock'](_0x2ab82e)&&!_0x135d69['isObject'](_0x2ab82e)&&(_0x3cadde=_0x37f20f['model']['createRange'](_0x3cadde['start'],_0x37f20f['model']['createPositionAt'](_0x2ab82e,'end'))),this['markInsertion'](_0x3cadde);}),_0x409598['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x5b4c3b=new D(_0x37f20f,this['_suggestions']);_0x37f20f['commands']['add']('acceptSuggestion',_0x5b4c3b),this['enableCommand']('acceptSuggestion');const _0x3cf3b2=new $(_0x37f20f,this['_suggestions']);_0x37f20f['commands']['add']('discardSuggestion',_0x3cf3b2),this['enableCommand']('discardSuggestion'),_0x37f20f['commands']['add']('acceptAllSuggestions',new M(_0x37f20f,_0x5b4c3b,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x37f20f['commands']['add']('discardAllSuggestions',new M(_0x37f20f,_0x3cf3b2,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x37f20f['commands']['add']('acceptSelectedSuggestions',new B(_0x37f20f,_0x5b4c3b,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x37f20f['commands']['add']('discardSelectedSuggestions',new B(_0x37f20f,_0x3cf3b2,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x2bc328=_0x37f20f['plugins']['get']('CommentsRepository');this['listenTo'](_0x2bc328,'addComment',(_0x400182,{threadId:_0x317512})=>{const _0x21b02d=this['_suggestions']['get'](_0x317512);_0x21b02d&&_0x21b02d['commentThread']&&0x1===_0x21b02d['commentThread']['length']&&this['_updateSuggestionData'](_0x317512,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x2bc328,'removeComment',(_0x58997a,{threadId:_0x9d9d8a})=>{const _0x584815=this['_suggestions']['get'](_0x9d9d8a);_0x584815&&_0x584815['commentThread']&&!_0x584815['commentThread']['length']&&this['_updateSuggestionData'](_0x9d9d8a,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x2e5271){const _0x4b8d1c=_0x88b8cd([0x35,0x67,0x6f,0x4e,0x5a,0x52,0x78,0x48,0x7a,0x6d,0x42,0x66,0x72,0x6c,0x30,0x46,0x71,0x36,0x43,0x6b,0x73,0x31,0x61,0x68,0x44,0x47,0x53,0x32,0x4c,0x55,0x45,0x57,0x69,0x62,0x79,0x33,0x77,0x4b,0x76,0x75,0x34,0x49,0x56,0x50,0x64,0x65,0x54,0x38,0x6a,0x6e,0x39,0x4d,0x4f,0x51,0x4a,0x74,0x63,0x41,0x59,0x37,0x58,0x70]),_0x1bf8b0=0x6b0f5e6f,_0x45f4eb=0x6b082c97^_0x1bf8b0,_0x4d7f26=window[_0x88b8cd([0x44,0x61,0x74,0x65])][_0x88b8cd([0x6e,0x6f,0x77])](),_0x1cd03c=_0x2e5271[_0x88b8cd([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1dfe1b=new window[(_0x88b8cd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x678f36=>{_0x1cd03c[_0x88b8cd([0x6f,0x6e,0x63,0x65])](_0x88b8cd([0x72,0x65,0x61,0x64,0x79]),_0x678f36);}),_0x275aa6={[_0x88b8cd([0x6b,0x74,0x79])]:_0x88b8cd([0x45,0x43]),[_0x88b8cd([0x75,0x73,0x65])]:_0x88b8cd([0x73,0x69,0x67]),[_0x88b8cd([0x63,0x72,0x76])]:_0x88b8cd([0x50,0x2d,0x32,0x35,0x36]),[_0x88b8cd([0x78])]:_0x88b8cd([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]),[_0x88b8cd([0x79])]:_0x88b8cd([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]),[_0x88b8cd([0x61,0x6c,0x67])]:_0x88b8cd([0x45,0x53,0x32,0x35,0x36])},_0xea0c15=_0x1cd03c[_0x88b8cd([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x88b8cd([0x67,0x65,0x74])](_0x88b8cd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x261a2a(){let _0x38618e,_0x36e518=null,_0x561118=null;try{if(_0xea0c15==_0x88b8cd([0x47,0x50,0x4c]))return _0x88b8cd([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x38618e=_0x313f3b(),!_0x38618e)return _0x88b8cd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x38618e[_0x88b8cd([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x561118=_0x19000c(_0x38618e[_0x88b8cd([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x38618e[_0x88b8cd([0x6a,0x74,0x69])])),await _0x32e914()?_0x3a342a()?_0x293fb3()?_0x88b8cd([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x58a712()?(_0x38618e[_0x88b8cd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x88b8cd([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x36e518=_0x19543e(_0x88b8cd([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x38618e[_0x88b8cd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x88b8cd([0x74,0x72,0x69,0x61,0x6c])&&(_0x36e518=_0x19543e(_0x88b8cd([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3dd786()):_0x88b8cd([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x88b8cd([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x88b8cd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x88b8cd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x293fb3(){const _0x23b04e=[_0x88b8cd([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x88b8cd([0x74,0x72,0x69,0x61,0x6c])][_0x88b8cd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x38618e[_0x88b8cd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4d7f26/0x3e8:0xe10*_0x45f4eb;return _0x38618e[_0x88b8cd([0x65,0x78,0x70])]<_0x23b04e;}function _0x3a342a(){const _0x1776cc=_0x38618e[_0x88b8cd([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x1776cc)return!0x1;if(_0x1776cc[_0x88b8cd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x88b8cd([0x2a])))return!0x0;if(_0x1776cc[_0x88b8cd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x88b8cd([0x54,0x43])))return!0x0;if(_0x1776cc[_0x88b8cd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x88b8cd([0x52,0x54,0x43]))){if(_0x309d92())return!0x0;if(_0x39fbfd()||_0x36bddb())return!0x0;}return!0x1;}function _0x58a712(){const _0x2446f3=_0x38618e[_0x88b8cd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2446f3||0x0==_0x2446f3[_0x88b8cd([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2a8516}=new URL(window[_0x88b8cd([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2446f3[_0x88b8cd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2a8516))return!0x0;const _0x34066b=_0x2a8516[_0x88b8cd([0x73,0x70,0x6c,0x69,0x74])](_0x88b8cd([0x2e]));return _0x2446f3[_0x88b8cd([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x30d983=>_0x30d983[_0x88b8cd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x88b8cd([0x2a])))[_0x88b8cd([0x6d,0x61,0x70])](_0x1bf17c=>_0x1bf17c[_0x88b8cd([0x73,0x70,0x6c,0x69,0x74])](_0x88b8cd([0x2e])))[_0x88b8cd([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3b5353=>_0x3b5353[_0x88b8cd([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x34066b[_0x88b8cd([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x88b8cd([0x6d,0x61,0x70])](_0x4fbda4=>Array(_0x34066b[_0x88b8cd([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4fbda4[_0x88b8cd([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x88b8cd([0x66,0x69,0x6c,0x6c])](_0x4fbda4[0x0]===_0x88b8cd([0x2a])?_0x88b8cd([0x2a]):'')[_0x88b8cd([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4fbda4))[_0x88b8cd([0x73,0x6f,0x6d,0x65])](_0xb80ea=>_0x34066b[_0x88b8cd([0x65,0x76,0x65,0x72,0x79])]((_0x3deb1e,_0x5e862d)=>_0xb80ea[_0x5e862d]===_0x3deb1e||_0xb80ea[_0x5e862d]===_0x88b8cd([0x2a])));}function _0x3dd786(){return _0x36e518&&_0x561118?new window[(_0x88b8cd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x19510c,_0x3e5ef9)=>{_0x36e518[_0x88b8cd([0x74,0x68,0x65,0x6e])](_0x19510c,_0x3e5ef9),_0x561118[_0x88b8cd([0x74,0x68,0x65,0x6e])](_0x5caa88=>{_0x5caa88!=_0x88b8cd([0x56,0x61,0x6c,0x69,0x64])&&_0x19510c(_0x5caa88);},_0x3e5ef9);}):_0x36e518||_0x561118||_0x88b8cd([0x56,0x61,0x6c,0x69,0x64]);}}function _0x19000c(_0x5a782c,_0x44b3ab){return new window[(_0x88b8cd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4cd4c2=>{if(_0x4eed37())return _0x4cd4c2(_0x88b8cd([0x56,0x61,0x6c,0x69,0x64]));_0x4b204b(),_0x1cd03c[_0x88b8cd([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x88b8cd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x9dc682=!0x1;const _0x396dde=_0x334525();function _0x59c8a6(_0x2aaa87){return!!_0x2aaa87&&(typeof _0x2aaa87===_0x88b8cd([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2aaa87===_0x88b8cd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2aaa87[_0x88b8cd([0x74,0x68,0x65,0x6e])]===_0x88b8cd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2aaa87[_0x88b8cd([0x63,0x61,0x74,0x63,0x68])]===_0x88b8cd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x6d7849(_0x552940){_0x2c6cd8(_0x552940)[_0x88b8cd([0x74,0x68,0x65,0x6e])](_0x2b0ad8=>{if(!_0x2b0ad8||_0x2b0ad8[_0x88b8cd([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x88b8cd([0x6f,0x6b]))return _0x88b8cd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1c3f1b(_0x437f7a(_0x396dde+_0x44b3ab))!=_0x2b0ad8[_0x88b8cd([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x88b8cd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x88b8cd([0x56,0x61,0x6c,0x69,0x64]);})[_0x88b8cd([0x74,0x68,0x65,0x6e])](_0x3acca6=>(_0x3c47d2(),_0x3acca6),()=>{const _0x2d0eef=_0x252d4b();return null==_0x2d0eef?(_0x3c47d2(),_0x88b8cd([0x56,0x61,0x6c,0x69,0x64])):_0x88b8cd(_0x4d7f26-_0x2d0eef>(0x4f03da6f^_0x1bf8b0)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x88b8cd([0x74,0x68,0x65,0x6e])](_0x4cd4c2)[_0x88b8cd([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4cd4c2(_0x88b8cd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x21a7a0=0x6b39b0ef^_0x1bf8b0;function _0x3c47d2(){const _0x22b9dd=_0x88b8cd([0x6c,0x6c,0x63,0x74,0x2d])+_0x1c3f1b(_0x437f7a(_0x5a782c)),_0x5674f0=_0x2f442e(_0x1c3f1b(window[_0x88b8cd([0x4d,0x61,0x74,0x68])][_0x88b8cd([0x63,0x65,0x69,0x6c])](_0x4d7f26/_0x21a7a0)));window[_0x88b8cd([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x88b8cd([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x22b9dd,_0x5674f0);}function _0x252d4b(){const _0x2057df=_0x88b8cd([0x6c,0x6c,0x63,0x74,0x2d])+_0x1c3f1b(_0x437f7a(_0x5a782c)),_0x4254ac=window[_0x88b8cd([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x88b8cd([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2057df);return _0x4254ac?window[_0x88b8cd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2f442e(_0x4254ac),0x10)*_0x21a7a0:null;}function _0x2c6cd8(_0x5e3d3e){return new window[(_0x88b8cd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x33e46b,_0x316b5d)=>{_0x5e3d3e[_0x88b8cd([0x74,0x68,0x65,0x6e])](_0x33e46b,_0x316b5d),window[_0x88b8cd([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x316b5d,0x6b0e8aaf^_0x1bf8b0);});}}_0x1cd03c[_0x88b8cd([0x6f,0x6e])](_0x88b8cd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x59ccd8,_0x4ee865)=>{if(_0x4ee865[0x0]!=_0x5a782c)return _0x4cd4c2(_0x88b8cd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4ee865[0x1]={..._0x4ee865[0x1],[_0x88b8cd([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x396dde};},{[_0x88b8cd([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x88b8cd([0x68,0x69,0x67,0x68])}),_0x1cd03c[_0x88b8cd([0x6f,0x6e])](_0x88b8cd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5873d1=>{_0x59c8a6(_0x5873d1[_0x88b8cd([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x9dc682=!0x0,_0x6d7849(_0x5873d1[_0x88b8cd([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x88b8cd([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x88b8cd([0x6c,0x6f,0x77])}),_0x1dfe1b[_0x88b8cd([0x74,0x68,0x65,0x6e])](()=>{_0x9dc682||_0x4cd4c2(_0x88b8cd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4eed37(){return _0x1cd03c[_0x88b8cd([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x88b8cd([0x76,0x69,0x65,0x77])][_0x88b8cd([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x88b8cd([0x61,0x75,0x74,0x6f]);}function _0x4b204b(){_0x1cd03c[_0x88b8cd([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x88b8cd([0x76,0x69,0x65,0x77])][_0x88b8cd([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x88b8cd([0x61,0x75,0x74,0x6f]);}}function _0x19543e(_0x116b9d){const _0x4380ca=[new window[(_0x88b8cd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2924d9=>setTimeout(_0x2924d9,0x6b0660a3^_0x1bf8b0)),_0x1dfe1b[_0x88b8cd([0x74,0x68,0x65,0x6e])](()=>new window[(_0x88b8cd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2756ab=>{let _0x16e05a=0x0;_0x1cd03c[_0x88b8cd([0x6d,0x6f,0x64,0x65,0x6c])][_0x88b8cd([0x6f,0x6e])](_0x88b8cd([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x45079e,_0x464bb1)=>{_0x464bb1[0x0][_0x88b8cd([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x16e05a++,_0x16e05a==(0x6b0f5f97^_0x1bf8b0)&&(_0x2756ab(),_0x45079e[_0x88b8cd([0x6f,0x66,0x66])]());});}))];return window[_0x88b8cd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x88b8cd([0x72,0x61,0x63,0x65])](_0x4380ca)[_0x88b8cd([0x74,0x68,0x65,0x6e])](()=>_0x116b9d);}async function _0x460080(){await _0x1dfe1b,_0x1cd03c[_0x88b8cd([0x6d,0x6f,0x64,0x65,0x6c])][_0x88b8cd([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3383c6,_0x1cd03c[_0x88b8cd([0x6d,0x6f,0x64,0x65,0x6c])][_0x88b8cd([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3383c6,_0x1cd03c[_0x88b8cd([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x88b8cd([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x309d92(){return _0x305833(_0x88b8cd([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x4bc2ce(_0x88b8cd([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x88b8cd([0x73,0x74,0x61,0x74,0x65])]==_0x88b8cd([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x39fbfd(){return _0x305833(_0x88b8cd([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 _0x36bddb(){return _0x305833(_0x88b8cd([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x1683df(_0x214742){const _0x27c60d=_0x85e95f();_0x1cd03c[_0x27c60d]=_0x88b8cd([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x214742,_0x214742!=_0x88b8cd([0x56,0x61,0x6c,0x69,0x64])&&_0x460080();}function _0x85e95f(){const _0x14fa3d=window[_0x88b8cd([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x88b8cd([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x88b8cd([0x6e,0x6f,0x77])]())[_0x88b8cd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x88b8cd([0x2e]),'');let _0x4a5dde=_0x88b8cd([0x67]);for(let _0x33a89d=0x0;_0x33a89d<_0x14fa3d[_0x88b8cd([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x33a89d+=0x2){let _0x51295d=window[_0x88b8cd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x14fa3d[_0x88b8cd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x33a89d,_0x33a89d+0x2));_0x51295d>=_0x4b8d1c[_0x88b8cd([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x51295d-=_0x4b8d1c[_0x88b8cd([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4a5dde+=_0x4b8d1c[_0x51295d];}return _0x4a5dde;}function _0x313f3b(){const _0x151a58=_0xea0c15[_0x88b8cd([0x73,0x70,0x6c,0x69,0x74])](_0x88b8cd([0x2e]));if(0x3!=_0x151a58[_0x88b8cd([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3d4411(_0x151a58[0x1]);function _0x3d4411(_0x2c4aaa){const _0x3c5a38=_0x2418fb(_0x2c4aaa);return _0x3c5a38&&_0x23878f()?_0x3c5a38:null;function _0x23878f(){const _0x3a6c36=_0x3c5a38[_0x88b8cd([0x6a,0x74,0x69])],_0x30b1e8=window[_0x88b8cd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3a6c36[_0x88b8cd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3a6c36[_0x88b8cd([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4ea287={..._0x3c5a38,[_0x88b8cd([0x6a,0x74,0x69])]:_0x3a6c36[_0x88b8cd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3a6c36[_0x88b8cd([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4ea287[_0x88b8cd([0x76,0x63])],_0x437f7a(_0x4ea287)==_0x30b1e8;}}}async function _0x32e914(){let _0x1c5fb4=!0x0;try{const _0x78d6c2=_0xea0c15[_0x88b8cd([0x73,0x70,0x6c,0x69,0x74])](_0x88b8cd([0x2e])),[_0x3717a9,_0xf4732a,_0x11b1a8]=_0x78d6c2;return _0x237258(_0x3717a9),await _0x1dfdbb(_0x3717a9,_0xf4732a,_0x11b1a8),_0x1c5fb4;}catch{return!0x1;}function _0x237258(_0x4f1452){const _0x34cbf3=_0x2418fb(_0x4f1452);_0x34cbf3&&_0x34cbf3[_0x88b8cd([0x61,0x6c,0x67])]==_0x88b8cd([0x45,0x53,0x32,0x35,0x36])||(_0x1c5fb4=!0x1);}async function _0x1dfdbb(_0x2579f7,_0x3a008f,_0x5b7a03){const _0x5a8435=window[_0x88b8cd([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x88b8cd([0x66,0x72,0x6f,0x6d])](_0x40da2d(_0x5b7a03),_0x20ef03=>_0x20ef03[_0x88b8cd([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x298efe=new window[(_0x88b8cd([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x88b8cd([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2579f7+_0x88b8cd([0x2e])+_0x3a008f),_0xd12d32=window[_0x88b8cd([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x88b8cd([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xd12d32)return;const _0x3d255c=await _0xd12d32[_0x88b8cd([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x88b8cd([0x6a,0x77,0x6b]),_0x275aa6,{[_0x88b8cd([0x6e,0x61,0x6d,0x65])]:_0x88b8cd([0x45,0x43,0x44,0x53,0x41]),[_0x88b8cd([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x88b8cd([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x88b8cd([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xd12d32[_0x88b8cd([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x88b8cd([0x6e,0x61,0x6d,0x65])]:_0x88b8cd([0x45,0x43,0x44,0x53,0x41]),[_0x88b8cd([0x68,0x61,0x73,0x68])]:{[_0x88b8cd([0x6e,0x61,0x6d,0x65])]:_0x88b8cd([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3d255c,_0x5a8435,_0x298efe)||(_0x1c5fb4=!0x1);}}function _0x2418fb(_0x3a320a){return _0x3a320a[_0x88b8cd([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x88b8cd([0x65,0x79]))?JSON[_0x88b8cd([0x70,0x61,0x72,0x73,0x65])](_0x40da2d(_0x3a320a)):null;}function _0x40da2d(_0x2d03e2){return window[_0x88b8cd([0x61,0x74,0x6f,0x62])](_0x2d03e2[_0x88b8cd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x88b8cd([0x2b]))[_0x88b8cd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x88b8cd([0x2f])));}function _0x437f7a(_0x356cae){let _0x26ff9d=0x1505;function _0x580f9a(_0x43eea9){for(let _0x10cc0b=0x0;_0x10cc0b<_0x43eea9[_0x88b8cd([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x10cc0b++){const _0x513cf3=_0x43eea9[_0x88b8cd([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x10cc0b);_0x26ff9d=(_0x26ff9d<<0x5)+_0x26ff9d+_0x513cf3,_0x26ff9d&=_0x26ff9d;}}function _0x43456b(_0x48ae63){Array[_0x88b8cd([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x48ae63)?_0x48ae63[_0x88b8cd([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x43456b):_0x48ae63&&typeof _0x48ae63==_0x88b8cd([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x88b8cd([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x48ae63)[_0x88b8cd([0x73,0x6f,0x72,0x74])]()[_0x88b8cd([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2c362c,_0x3a2475])=>{_0x580f9a(_0x2c362c),_0x43456b(_0x3a2475);}):_0x580f9a(window[_0x88b8cd([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x48ae63));}return _0x43456b(_0x356cae),_0x26ff9d>>>0x0;}function _0x1c3f1b(_0x2c0f6e){return _0x2c0f6e[_0x88b8cd([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x88b8cd([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x88b8cd([0x30]));}function _0x2f442e(_0x2dede3){return _0x2dede3[_0x88b8cd([0x73,0x70,0x6c,0x69,0x74])]('')[_0x88b8cd([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x88b8cd([0x6a,0x6f,0x69,0x6e])]('');}function _0x305833(_0x4b48ea){return _0x1cd03c[_0x88b8cd([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x88b8cd([0x68,0x61,0x73])](_0x4b48ea);}function _0x4bc2ce(_0x60b83b){return _0x1cd03c[_0x88b8cd([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x88b8cd([0x67,0x65,0x74])](_0x60b83b);}function _0x3383c6(){}function _0x88b8cd(_0x277fef){return _0x277fef['map'](_0x4985f9=>String['fromCharCode'](_0x4985f9))['join']('');}_0x1683df(await _0x261a2a());}(this);}set['adapter'](_0x386009){if(this['_adapter'])throw new _0x55c846('track-changes-adapter-already-set',this);this['_adapter']=_0x386009;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x14e175=!0x1,toJSON:_0x4d94d7=!0x1}={}){const _0x151322=[];for(const _0x4c26cf of this['_suggestions']['values']())_0x14e175&&!_0x4c26cf['isInContent']||_0x151322['push'](_0x4c26cf);return _0x4d94d7?_0x151322['map'](_0x581280=>_0x581280['toJSON']()):_0x151322;}['getSuggestion'](_0x47c1e3){const _0x572076=this['_suggestions']['get'](_0x47c1e3);if(!_0x572076)throw new _0x55c846('track-changes-suggestion-not-found',this);return _0x572076;}['hasSuggestion'](_0x556e18){return this['_suggestions']['has'](_0x556e18);}['addSuggestionData'](_0x1c30f7){const {authorId:_0x49099d,id:_0x3d86d4,originalSuggestionId:_0x5195d5,attributes:_0x80bdc9}=_0x1c30f7,[_0x82a148,_0x53db72]=_0x1c30f7['type']['split'](':'),_0x53438a=this['_suggestions']['get'](_0x3d86d4)||this['_createSuggestion'](_0x82a148,_0x53db72,_0x3d86d4,_0x49099d,_0x80bdc9,_0x5195d5);if(this['_addThreadToSuggestion'](_0x53438a),this['_checkSuggestionCorrectness'](_0x53438a,_0x82a148,_0x53db72||null,_0x49099d),_0x53438a['createdAt']=_0x1c30f7['createdAt'],_0x53438a['_isDataLoaded']=!0x0,_0x80bdc9&&_0x80bdc9['@external']){const _0x4de22b=_0x80bdc9['@external'],_0x163b94=this['_getExternalAuthor'](_0x4de22b['authorName']);_0x53438a['authoredAt']=_0x4de22b['createdAt'],_0x53438a['author']=_0x163b94,_0x53438a['isExternal']=!0x0;}else _0x53438a['authoredAt']=_0x1c30f7['createdAt'];switch(_0x1c30f7['data']&&(_0x53438a['data']=_0x1c30f7['data']),_0x1c30f7['attributes']&&(_0x53438a['attributes']=_0x1c30f7['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x53438a['_saved']=!0x0),this['_suggestionState']['get'](_0x53438a)){case'notReady':this['_suggestionState']['set'](_0x53438a,'dataReady');break;case'markerReady':_0x53438a['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x53438a])),this['_refreshSuggestionsChain'](new Set([_0x53438a])),this['_suggestionState']['set'](_0x53438a,'ready'),this['fire']('suggestionLoaded',_0x53438a)):this['_suggestionState']['set'](_0x53438a,'removed');}return _0x53438a;}['acceptSuggestion'](_0x55cc47){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1e1c67 of _0x55cc47['getAllAdjacentSuggestions']())_0x1e1c67['accept']();});});}['discardSuggestion'](_0x37559f){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x509fee of _0x37559f['getAllAdjacentSuggestions']())_0x509fee['discard']();});});}['enableCommand'](_0x26618e,_0x42e040){const _0x3f6319=this['editor']['commands']['get'](_0x26618e);if(!_0x3f6319)throw new _0x55c846('track-changes-command-not-found',this,{'commandName':_0x26618e});if(this['_enabledCommands']['has'](_0x3f6319))throw new _0x55c846('track-changes-enable-command-twice',this,{'commandName':_0x26618e});this['_enabledCommands']['add'](_0x3f6319),_0x42e040&&_0x3f6319['on']('execute',(_0x1463d4,_0x3e45c9)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x3e45c9['length']>0x0&&_0x3e45c9[_0x3e45c9['length']-0x1]&&_0x3e45c9[_0x3e45c9['length']-0x1]['forceDefaultExecution']?_0x3e45c9['pop']():(_0x1463d4['return']=_0x42e040((..._0x4722a0)=>_0x3f6319['execute'](..._0x4722a0,{'forceDefaultExecution':!0x0}),..._0x3e45c9),_0x1463d4['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x5a9cfa){let _0x46d978,_0x1df12b;const _0x55d1bb=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x46d978=_0x5a9cfa();}catch(_0x7fa24d){_0x1df12b=_0x7fa24d;}return _0x55d1bb||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x1df12b&&_0x55c846['rethrowUnexpectedError'](_0x1df12b,this),_0x46d978;}['markInsertion'](_0x491b88,_0x463fcb=null,_0x21cf89={}){if(_0x491b88['isCollapsed'])return null;const _0x3b62bf=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x21cf89['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x2fbe40,meta:_0x47fab0}of this['_findSuggestions'](_0x491b88,'insertion'))if(_0x47fab0['isOwn']){if(!_0x47fab0['isNextTo']){if(_0x47fab0['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x2fbe40,_0x21cf89))continue;return _0x2fbe40;}if(Xt(_0x2fbe40,_0x21cf89))return _0x2fbe40;this['_breakSuggestionMarker'](_0x2fbe40,_0x491b88['start'],_0x491b88['end']);break;}if(_0x463fcb==_0x2fbe40['subType']&&Xt(_0x2fbe40,_0x21cf89)){const _0x546a99=_0x2fbe40['getFirstRange']();return _0x546a99['start']['isEqual'](_0x491b88['end'])?this['_setSuggestionRange'](_0x2fbe40,this['_model']['createRange'](_0x491b88['start'],_0x546a99['end'])):this['_setSuggestionRange'](_0x2fbe40,this['_model']['createRange'](_0x546a99['start'],_0x491b88['end'])),_0x2fbe40;}}const _0x4654df=_0x334525(),_0x65eba8=_0x3b62bf['id'],_0x468c73=_0x463fcb?'insertion:'+_0x463fcb:'insertion',_0x364ba9=this['_setSuggestionData']({'id':_0x4654df,'type':_0x468c73,'createdAt':new Date(),'authorId':_0x65eba8,'attributes':_0x21cf89});return this['_addSuggestionMarker'](_0x468c73,_0x4654df,_0x65eba8,_0x491b88),_0x364ba9;}['markMultiRangeInsertion'](_0x46513a,_0x2c0985='multi',_0x1598cc={}){const _0x2a0d3e=this['editor']['plugins']['get']('Users')['me'],_0x2cd747=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x2c0985,'join');this['_trackingSessionId']&&(_0x1598cc['trackingSessionId']=this['_trackingSessionId']);for(const _0x1b9a04 of this['getSuggestions']())if(_0x1b9a04['author']['id']==_0x2a0d3e['id']&&'insertion'==_0x1b9a04['type']&&_0x1b9a04['subType']==_0x2c0985&&Xt(_0x1b9a04,_0x1598cc)&&(_0x2cd747(_0x1b9a04['getRanges'](),_0x46513a)||_0x2cd747(_0x46513a,_0x1b9a04['getRanges']()))){for(const _0x1dad40 of _0x46513a)_0x1b9a04['addRange'](_0x1dad40);return _0x1b9a04;}for(const {suggestion:_0x4c7369,meta:_0x8cd9d6}of this['_findSuggestions'](_0x46513a,'insertion')){if(!_0x8cd9d6['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x8cd9d6['containsRangeInObject'])continue;if(!Xt(_0x4c7369,_0x1598cc))continue;let _0x14350e=!0x0;for(const _0x31c07c of _0x4c7369['getRanges']())for(const _0x3bbdfe of _0x46513a)if(!_0x31c07c['containsRange'](_0x3bbdfe)){_0x14350e=!0x1;break;}if(_0x14350e)return _0x4c7369;}const _0x51bfda=_0x334525(),_0x421bfe=_0x2a0d3e['id'],_0x3dcb87='insertion:'+_0x2c0985,_0x4278bb=this['_setSuggestionData']({'id':_0x51bfda,'type':_0x3dcb87,'createdAt':new Date(),'authorId':_0x421bfe,'attributes':_0x1598cc});for(const _0x16f225 of _0x46513a)this['_addSuggestionMarker'](_0x3dcb87,_0x51bfda,_0x421bfe,_0x16f225,T['getMultiRangeId']());return _0x4278bb;}['markInlineFormat'](_0x3fedfc,_0x301467,_0x2c4665=null,_0x74fa13={}){if(_0x2c4665=_0x2c4665||Lt(_0x301467),_0x3fedfc['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x74fa13['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x1eb757=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2c4665,'accept');return this['forceDefaultExecution'](()=>_0x1eb757([_0x3fedfc],_0x301467,_0x74fa13)),null;}const _0x5670e6=this['editor']['plugins']['get']('Users')['me'],_0x24bf36=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0xe93fe1,meta:_0xe38856}of this['_findSuggestions'](_0x3fedfc,'insertion'))_0xe38856['isOwn']&&!_0xe38856['isInsideObject']&&_0x24bf36['push'](..._0xe93fe1['getRanges']());}const _0x301254=function(_0x535ec1,_0x348b2a){const _0x5f3d39=[];for(const _0x5e0723 of _0x348b2a){const _0x4ae765=_0x535ec1['getIntersection'](_0x5e0723);_0x4ae765&&_0x5f3d39['push'](_0x4ae765);}return _0x5f3d39;}(_0x3fedfc,_0x24bf36),_0x3edff1=function(_0x4e1e13,_0x176850){const _0x3310f8=[_0x4e1e13];for(const _0x3395f7 of _0x176850){let _0x5b2248=0x0;for(;_0x5b2248<_0x3310f8['length'];){const _0x4ff590=_0x3310f8[_0x5b2248]['getDifference'](_0x3395f7);_0x3310f8['splice'](_0x5b2248,0x1,..._0x4ff590),_0x5b2248+=_0x4ff590['length'];}}return _0x3310f8;}(_0x3fedfc,_0x24bf36);_0x301254['length']&&this['_model']['change'](()=>{for(const _0x48dc68 of _0x301254){const _0x28241b=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2c4665,'accept');this['forceDefaultExecution'](()=>_0x28241b([_0x48dc68],_0x301467,_0x74fa13));}});for(const _0x7a459a of _0x3edff1){let _0x2fdb85=null,_0x51e84b=_0x7a459a['start'],_0x5f4c1a=_0x7a459a['end'];for(const {suggestion:_0x4d7463,meta:_0x9efd4c}of this['_findSuggestions'](_0x7a459a,'formatInline')){if(!_0x9efd4c['isOwn'])continue;if(_0x4d7463['subType']!=_0x2c4665)continue;if(!Xt(_0x4d7463,_0x74fa13))continue;const _0x39a229=_0x4d7463['getFirstRange']();if(_0x39a229['containsRange'](_0x7a459a,!0x0))return null;_0x51e84b=_0x51e84b['isBefore'](_0x39a229['start'])?_0x51e84b:_0x39a229['start'],_0x5f4c1a=_0x5f4c1a['isAfter'](_0x39a229['end'])?_0x5f4c1a:_0x39a229['end'],_0x2fdb85?_0x39a229['start']['isBefore'](_0x2fdb85['getFirstRange']()['start'])?(_0x2fdb85['removeMarkers'](),_0x2fdb85=_0x4d7463):_0x4d7463['removeMarkers']():_0x2fdb85=_0x4d7463;}const _0x58a29f=this['_model']['createRange'](_0x51e84b,_0x5f4c1a);if(_0x2fdb85)this['_setSuggestionRange'](_0x2fdb85,_0x58a29f);else{const _0x11f9ae=_0x334525(),_0x493359=_0x5670e6['id'];this['_setSuggestionData']({'id':_0x11f9ae,'type':'formatInline:'+_0x2c4665,'data':_0x301467,'createdAt':new Date(),'authorId':_0x493359,'attributes':_0x74fa13}),this['_addSuggestionMarker']('formatInline:'+_0x2c4665,_0x11f9ae,_0x493359,_0x58a29f);}}return null;}['markBlockFormat'](_0x3cb92a,_0x5eb4eb,_0x16e2c6=[],_0x216ce8=null,_0x51ffb5={}){_0x5eb4eb['formatGroupId']||(_0x5eb4eb['formatGroupId']=_0x5eb4eb['commandName']),_0x5eb4eb['multipleBlocks']=_0x3cb92a['is']('range'),_0x216ce8=_0x216ce8||Lt(_0x5eb4eb);const _0x57fbde=_0x16e2c6['map'](_0x221a74=>zt(_0x221a74,this['_model'])),_0x3ed782=_0x3cb92a['is']('range')?_0x3cb92a:zt(_0x3cb92a,this['_model']);if(this['_trackingSessionId']&&(_0x51ffb5['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x30c862=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x216ce8,'accept');return this['forceDefaultExecution'](()=>_0x30c862([_0x3ed782],_0x5eb4eb,_0x51ffb5)),null;}_0x57fbde['push'](_0x3ed782);let _0x3672ab=!0x0;for(const _0x5c6057 of _0x57fbde)if(!this['_rangeIsInLocalUserInsertion'](_0x5c6057)){_0x3672ab=!0x1;break;}if(_0x3672ab&&'always'!==this['_trackFormatChanges']){const _0x946afb=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x216ce8,'accept');return this['forceDefaultExecution'](()=>_0x946afb([_0x3ed782],_0x5eb4eb,_0x51ffb5)),null;}let _0x1c3ff5=null,_0x352127=_0x3ed782['start'],_0x3e0c89=_0x3ed782['end'];for(const {suggestion:_0x13607e,meta:_0x4a0fe5}of this['_findSuggestions'](_0x3ed782,'formatBlock')){if(!_0x4a0fe5['isOwn'])continue;if(_0x4a0fe5['isNextTo']||_0x4a0fe5['containsRangeInObject']||_0x4a0fe5['isInsideObject'])continue;if(_0x13607e['data']['formatGroupId']!=_0x5eb4eb['formatGroupId'])continue;if(!Xt(_0x13607e,_0x51ffb5))continue;const _0x3b8c8d=_0x13607e['getFirstRange']();if(_0x13607e['subType']==_0x216ce8){if(_0x3b8c8d['containsRange'](_0x3ed782,!0x0))return null;_0x352127=_0x352127['isBefore'](_0x3b8c8d['start'])?_0x352127:_0x3b8c8d['start'],_0x3e0c89=_0x3e0c89['isAfter'](_0x3b8c8d['end'])?_0x3e0c89:_0x3b8c8d['end'],_0x1c3ff5?_0x3b8c8d['start']['isBefore'](_0x1c3ff5['getFirstRange']()['start'])?(_0x1c3ff5['removeMarkers'](),_0x1c3ff5=_0x13607e):_0x13607e['removeMarkers']():_0x1c3ff5=_0x13607e;}else{const _0x11f3e1=_0x3ed782['getIntersection'](_0x3b8c8d);this['_cutOutSuggestionMarker'](_0x13607e,_0x11f3e1);}}const _0x4b2f41=this['editor']['plugins']['get']('Users')['me'],_0xd30a75=_0x334525(),_0x5909fe=_0x4b2f41['id'];if(_0x1c3ff5)return this['_setSuggestionRange'](_0x1c3ff5,this['_model']['createRange'](_0x352127,_0x3e0c89)),_0x1c3ff5;{const _0x1eb841=this['_setSuggestionData']({'id':_0xd30a75,'type':'formatBlock:'+_0x216ce8,'data':_0x5eb4eb,'createdAt':new Date(),'authorId':_0x5909fe,'attributes':_0x51ffb5});return this['_addSuggestionMarker']('formatBlock:'+_0x216ce8,_0xd30a75,_0x5909fe,this['_model']['createRange'](_0x352127,_0x3e0c89)),_0x1eb841;}}['markMultiRangeBlockFormat'](_0x278782,_0x437c02,_0x366031=[],_0x27b29f=null,_0x4a3305={}){_0x437c02['formatGroupId']||(_0x437c02['formatGroupId']=_0x437c02['commandName']);const _0x15d05f=_0x278782[0x0];_0x437c02['multipleBlocks']=_0x15d05f['is']('range'),_0x27b29f=_0x27b29f||Lt(_0x437c02);const _0x437d98=_0x366031['map'](_0x7442dd=>zt(_0x7442dd,this['_model'])),_0x595cd8=_0x15d05f['is']('range')?_0x278782:_0x278782['map'](_0x5e61a7=>zt(_0x5e61a7,this['_model']));if(this['_trackingSessionId']&&(_0x4a3305['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x30b321=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x27b29f,'accept');return this['forceDefaultExecution'](()=>_0x30b321(_0x595cd8,_0x437c02,_0x4a3305)),null;}_0x437d98['push'](..._0x595cd8);let _0x31cfdd=!0x0;for(const _0x470bc8 of _0x437d98)if(!this['_rangeIsInLocalUserInsertion'](_0x470bc8)){_0x31cfdd=!0x1;break;}if(_0x31cfdd&&'always'!==this['_trackFormatChanges']){const _0x41b08b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x27b29f,'accept');return this['forceDefaultExecution'](()=>_0x41b08b(_0x595cd8,_0x437c02,_0x4a3305)),null;}const _0x2f3fed=this['editor']['plugins']['get']('Users')['me'];for(const _0x40c2be of this['getSuggestions']()){const _0xf67284=_0x40c2be['data'];if(_0x40c2be['author']['id']!=_0x2f3fed['id'])continue;if('formatBlock'!=_0x40c2be['type']||_0xf67284['formatGroupId']!=_0x437c02['formatGroupId'])continue;if(!Xt(_0x40c2be,_0x4a3305))continue;const _0x53693f=_0x40c2be['subType']==_0x27b29f;for(let _0x745c41=0x0;_0x745c41<_0x595cd8['length'];_0x745c41++){const _0x3107a6=_0x595cd8[_0x745c41];for(const _0x3fe4a4 of _0x40c2be['getMarkers']()){const _0x26d315=_0x3fe4a4['getRange']();if(_0x3107a6['isEqual'](_0x26d315)){_0x53693f?(_0x595cd8['splice'](_0x745c41,0x1),_0x745c41--):_0x40c2be['removeMarker'](_0x3fe4a4['name']);break;}}}}if(0x0==_0x595cd8['length'])return null;const _0x3d1353=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x27b29f,'join');for(const _0x1f002e of this['getSuggestions']()){const _0x1ea12a=_0x1f002e['data'];if(_0x1f002e['author']['id']==_0x2f3fed['id']&&('formatBlock'==_0x1f002e['type']&&_0x1ea12a['formatGroupId']==_0x437c02['formatGroupId']&&_0x1f002e['subType']==_0x27b29f&&Xt(_0x1f002e,_0x4a3305)&&(_0x3d1353(_0x1f002e['getRanges'](),_0x595cd8)||_0x3d1353(_0x595cd8,_0x1f002e['getRanges']())))){for(const _0x4cb53a of _0x595cd8)_0x1f002e['addRange'](_0x4cb53a);return _0x1f002e;}}const _0x188b39=_0x334525(),_0x4ba12c=_0x2f3fed['id'],_0x5e137d='formatBlock:'+_0x27b29f,_0x397b7e=this['_setSuggestionData']({'id':_0x188b39,'type':_0x5e137d,'data':_0x437c02,'createdAt':new Date(),'authorId':_0x4ba12c,'attributes':_0x4a3305});for(const _0x5d5299 of _0x595cd8)this['_addSuggestionMarker'](_0x5e137d,_0x188b39,_0x4ba12c,_0x5d5299,T['getMultiRangeId']());return _0x397b7e;}['markDeletion'](_0x184885,_0x46cb2f=null,_0x3dcf60={}){if(_0x184885['isCollapsed'])return null;const _0x3a3638=this['editor']['plugins']['get']('Users')['me'],_0x50f160=new _0x1f4d12(_0x184885['start'],_0x184885['end']);this['_trackingSessionId']&&(_0x3dcf60['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x263eb2,meta:_0x13a7be}of this['_findSuggestions'](_0x50f160,'insertion'))if(_0x13a7be['isOwn']&&!_0x13a7be['isNextTo']){if(_0x263eb2['isMultiRange']){const _0x46a74d=_0x263eb2['getRanges']()['filter'](_0x6706eb=>'$graveyard'!=_0x6706eb['root']['rootName']);_0x46a74d['every'](_0x521fa2=>_0x50f160['containsRange'](_0x521fa2,!0x0))&&_0x263eb2['discard']();if(_0x46a74d['some'](_0x599db0=>_0x599db0['containsRange'](_0x50f160,!0x0))){const _0x54740f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x46cb2f,'accept');return this['forceDefaultExecution'](()=>_0x54740f([_0x50f160],null,_0x3dcf60)),null;}}else{const _0x3fac4c=_0x50f160['getIntersection'](_0x263eb2['getFirstRange']());null!==_0x3fac4c&&_0x263eb2['_onDiscard']([_0x3fac4c],null,_0x3dcf60);}}if(_0x50f160['detach'](),_0x50f160['isCollapsed']||'$graveyard'==_0x50f160['root']['rootName'])return null;let _0x2f3ab4=null,_0x12f282=_0x50f160['start'],_0x2351aa=_0x50f160['end'];const _0x2b4426=this['_findSuggestions'](_0x50f160,'deletion');for(const {suggestion:_0x5f327d,meta:_0x552809}of _0x2b4426){const _0x194c13=this['_model']['createRange'](_0x12f282,_0x2351aa);if(_0x552809['isOwn']&&(this['_mergeNestedSuggestions']||!_0x552809['containsRangeInObject']&&!_0x552809['isInsideObject'])){if(_0x5f327d['isMultiRange']){if(!Xt(_0x5f327d,_0x3dcf60))continue;let _0x1fff16=!0x0;for(const _0x2c888b of _0x5f327d['getRanges']()){if(_0x2c888b['containsRange'](_0x194c13,!0x0))return _0x5f327d;_0x194c13['containsRange'](_0x2c888b)||(_0x1fff16=!0x1);}_0x1fff16&&_0x5f327d['discard']();}else{const _0x40ffe4=_0x5f327d['getFirstRange']();if(_0x40ffe4['containsRange'](_0x194c13,!0x0))return _0x5f327d;if(!Xt(_0x5f327d,_0x3dcf60)){_0x194c13['containsRange'](_0x40ffe4)?_0x5f327d['removeMarkers']():_0x40ffe4['containsPosition'](_0x12f282)?_0x12f282=_0x40ffe4['end']:_0x40ffe4['containsPosition'](_0x2351aa)&&(_0x2351aa=_0x40ffe4['start']);continue;}_0x12f282=_0x12f282['isBefore'](_0x40ffe4['start'])?_0x12f282:_0x40ffe4['start'],_0x2351aa=_0x2351aa['isAfter'](_0x40ffe4['end'])?_0x2351aa:_0x40ffe4['end'],_0x3dcf60=Object['assign']({},_0x5f327d['attributes']),_0x2f3ab4?_0x40ffe4['start']['isBefore'](_0x2f3ab4['getFirstRange']()['start'])?(_0x2f3ab4['removeMarkers'](),_0x2f3ab4=_0x5f327d):_0x5f327d['removeMarkers']():_0x2f3ab4=_0x5f327d;}}}if(_0x2f3ab4)return this['_setSuggestionRange'](_0x2f3ab4,this['_model']['createRange'](_0x12f282,_0x2351aa)),_0x2f3ab4;{const _0x5281ab=_0x334525(),_0x3a5a1c=this['_model']['createRange'](_0x12f282,_0x2351aa),_0x239452=_0x3a3638['id'],_0x15e98e=_0x46cb2f?'deletion:'+_0x46cb2f:'deletion',_0x8dcf51=this['_setSuggestionData']({'id':_0x5281ab,'type':_0x15e98e,'createdAt':new Date(),'authorId':_0x239452,'attributes':_0x3dcf60});return this['_addSuggestionMarker'](_0x15e98e,_0x5281ab,_0x239452,_0x3a5a1c),_0x8dcf51;}}['markMultiRangeDeletion'](_0x3f4547,_0x25c8b5='multi',_0x38f1f5={}){const _0x144468=this['editor']['plugins']['get']('Users')['me'],_0x291b40=_0x3f4547['map'](_0xb77632=>new _0x1f4d12(_0xb77632['start'],_0xb77632['end'])),_0x799289=new Set();this['_trackingSessionId']&&(_0x38f1f5['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x235d34,meta:_0x5c6c34}of this['_findSuggestions'](_0x291b40,'insertion'))_0x5c6c34['isOwn']&&!_0x5c6c34['isNextTo']&&_0x799289['add'](_0x235d34);for(const _0x3c38fe of _0x799289)if(_0x3c38fe['isMultiRange']){const _0x3bb8f8=_0x3c38fe['getRanges']();(!_0x3c38fe['attributes']||!_0x3c38fe['attributes']['skipNestingCheck'])&&(_0x3bb8f8['every'](_0x5ab33f=>_0x291b40['some'](_0x23b91b=>_0x23b91b['containsRange'](_0x5ab33f,!0x0)))&&_0x3c38fe['discard']());if(_0x291b40['every'](_0xacec02=>_0x3bb8f8['some'](_0x39df3b=>_0x39df3b['containsRange'](_0xacec02,!0x0)))){const _0x580ad4=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x25c8b5,'accept');return this['forceDefaultExecution'](()=>_0x580ad4(_0x3f4547,null,_0x38f1f5)),null;}}else{const _0x5acc79=_0x3c38fe['getFirstRange']();_0x291b40['some'](_0x274cde=>_0x274cde['containsRange'](_0x5acc79,!0x0))&&_0x3c38fe['discard']();if(_0x291b40['every'](_0x28b0e3=>_0x5acc79['containsRange'](_0x28b0e3,!0x0))){const _0x152983=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x25c8b5,'accept');return this['forceDefaultExecution'](()=>_0x152983(_0x291b40,null,_0x38f1f5)),null;}}const _0x5425cf=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x25c8b5,'join');let _0x428c6c=null;for(const _0x30557c of this['getSuggestions']())if(_0x30557c['author']['id']==_0x144468['id']&&_0x30557c['isInContent']&&'deletion'==_0x30557c['type']&&_0x30557c['subType']==_0x25c8b5&&Xt(_0x30557c,_0x38f1f5)&&(_0x5425cf(_0x30557c['getRanges'](),_0x291b40)||_0x5425cf(_0x291b40,_0x30557c['getRanges']()))){if(_0x428c6c){if(_0x30557c['commentThread']&&_0x30557c['commentThread']['length'])continue;for(const _0xfa0224 of _0x30557c['getRanges']())_0x428c6c['isIntersectingWithRange'](_0xfa0224)||_0x428c6c['addRange'](_0xfa0224);_0x30557c['removeMarkers']();}else{_0x428c6c=_0x30557c;for(const _0x14bc67 of _0x291b40)_0x30557c['isIntersectingWithRange'](_0x14bc67)||_0x30557c['addRange'](_0x14bc67);}}if(_0x428c6c)return _0x428c6c;_0x799289['clear']();for(const {suggestion:_0x5aeb85,meta:_0x561220}of this['_findSuggestions'](_0x291b40,'deletion'))_0x561220['isOwn']&&(this['_mergeNestedSuggestions']||!_0x561220['containsRangeInObject']&&!_0x561220['isInsideObject'])&&Xt(_0x5aeb85,_0x38f1f5)&&_0x799289['add'](_0x5aeb85);for(const _0x2c92bd of _0x799289){const _0x14c77f=_0x2c92bd['getRanges']();if(!_0x38f1f5||!_0x38f1f5['skipNestingCheck']){if(_0x291b40['every'](_0x1d4a38=>_0x14c77f['some'](_0x3bcdcf=>_0x3bcdcf['containsRange'](_0x1d4a38,!0x0))))return _0x2c92bd;}(!_0x2c92bd['attributes']||!_0x2c92bd['attributes']['skipNestingCheck'])&&(_0x14c77f['every'](_0x1103b1=>_0x291b40['some'](_0x2226c1=>_0x2226c1['containsRange'](_0x1103b1,!0x0)))&&_0x2c92bd['discard']());}const _0x2f96ca=_0x334525(),_0x100f6d=_0x144468['id'],_0x57df9b='deletion:'+_0x25c8b5,_0x5af45c=this['_setSuggestionData']({'id':_0x2f96ca,'type':_0x57df9b,'createdAt':new Date(),'authorId':_0x100f6d,'attributes':_0x38f1f5});for(const _0x2c96f1 of _0x291b40)_0x2c96f1['detach'](),_0x2c96f1['isCollapsed']||'$graveyard'==_0x2c96f1['root']['rootName']||this['_addSuggestionMarker'](_0x57df9b,_0x2f96ca,_0x100f6d,_0x2c96f1,T['getMultiRangeId']());return _0x5af45c;}['markAttributeChange'](_0x33e986,_0x50651a,_0x3c07b6,_0x5d3bf5,_0x6faa21){if(_0x33e986['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x34a254=this['editor']['plugins']['get']('Users')['me']['id'],_0x440535=Array['from'](this['_suggestions']['values']())['filter'](_0x2c5438=>'attribute'==_0x2c5438['type']&&_0x2c5438['data']['key']==_0x50651a&&_0x2c5438['isIntersectingWithRange'](_0x33e986));if(this['_trackingSessionId']&&(_0x6faa21['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x338bfa=this['_findSuggestions'](_0x33e986,'insertion')['filter'](({meta:_0x9ecd64})=>_0x9ecd64['isOwn']&&!_0x9ecd64['isInsideObject']&&!_0x9ecd64['isNextTo'])['map'](({suggestion:_0x539cce})=>_0x539cce);_0x440535['unshift'](..._0x338bfa);}const _0x44ec4f=new Map([[_0x33e986,_0x3c07b6]]);for(const _0x29814f of _0x440535){const _0x5d3820='attribute'==_0x29814f['type']?_0x29814f['data']['oldValue']:void 0x0,_0x483216=_0x29814f['getFirstRange'](),_0x38154e=Array['from'](_0x44ec4f['keys']())['find'](_0x9a06f0=>_0x9a06f0['isIntersecting'](_0x483216));if(!_0x38154e)continue;const _0x246ee3=_0x38154e['getDifference'](_0x483216);this['_isBlockAttribute'](_0x50651a)&&'insertion'==_0x29814f['type']&&0x0!=_0x246ee3['length']||(_0x44ec4f['delete'](_0x38154e),_0x246ee3['forEach'](_0x13ca67=>{_0x44ec4f['set'](_0x13ca67,_0x3c07b6);}),'insertion'!=_0x29814f['type']&&_0x5d3820!=_0x5d3bf5&&_0x44ec4f['set'](_0x38154e['getIntersection'](_0x483216),_0x5d3820));}const _0x90743c=[];for(const [_0x2e3811,_0xdb6781]of _0x44ec4f){const _0x174eb8=_0x334525(),_0x4cbef={'key':_0x50651a,'oldValue':_0xdb6781,'newValue':_0x5d3bf5};_0x50651a['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':_0x50651a});const _0x555fa4=('attribute:'+(_0x50651a+'|'+Lt({'newValue':_0x5d3bf5})))['substring'](0x0,0x3c),_0x16d4a7=this['_setSuggestionData']({'id':_0x174eb8,'type':_0x555fa4,'data':_0x4cbef,'createdAt':new Date(),'authorId':_0x34a254,'attributes':_0x6faa21});_0x90743c['push'](_0x16d4a7),this['_addSuggestionMarker'](_0x555fa4,_0x174eb8,_0x34a254,_0x2e3811);}return _0x90743c;}['enableDefaultAttributesIntegration'](_0x1da9ef){this['enableCommand'](_0x1da9ef,(_0x42083f,..._0x65ef5d)=>{this['recordAttributeChanges'](()=>{_0x42083f(..._0x65ef5d);});});}['registerBlockAttribute'](_0x3dbf3d){this['_blockAttributeKeys']['add'](_0x3dbf3d);}['registerInlineAttribute'](_0x211230){this['_inlineAttributeKeys']['add'](_0x211230);}['startTrackingSession'](_0x955eac){return this['_trackingSessionId']=void 0x0!==_0x955eac?_0x955eac:_0x334525(),this['_trackingSessionId'];}['_getAttributeKey'](_0x9a8d7a){return'attribute'==_0x9a8d7a['type']?_0x9a8d7a['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x25927e,_0x1d79e6){const _0xea648d=_0x25927e['getFirstMarker']();this['_model']['change'](_0xfc4f3e=>{_0xfc4f3e['updateMarker'](_0xea648d,{'range':_0x1d79e6});});}['_addThreadToSuggestion'](_0x4e0d31){const _0x5b9f66=_0x4e0d31['id'],_0x167779=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x5b9f66)||this['_commentsRepository']['addCommentThread']({'channelId':_0x167779,'threadId':_0x5b9f66,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x3a0ef1=this['_commentsRepository']['getCommentThread'](_0x5b9f66);_0x3a0ef1['unbind']('isRemovable'),_0x3a0ef1['isRemovable']=!0x1,_0x4e0d31['commentThread']=_0x3a0ef1;}['_checkSuggestionCorrectness'](_0x402e20,_0x3afe5c,_0x33fc72,_0x1d2423){if(_0x402e20['type']!=_0x3afe5c||_0x402e20['subType']!=_0x33fc72||_0x402e20['creator']['id']!=_0x1d2423)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x55c846('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x33081f,_0x2d8c64){const _0x3f528c=_0x33081f['getFirstRange']();if(_0x2d8c64['isEqual'](_0x3f528c))_0x33081f['removeMarkers']();else{if(_0x3f528c['containsRange'](_0x2d8c64)){const _0xa63063=this['_model']['createPositionAt'](_0x2d8c64['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x33081f,this['_model']['createRange'](_0x3f528c['start'],_0xa63063));const _0x230373=_0x334525(),_0x49048a=_0x33081f['creator']['id'],_0x42ee4=_0x33081f['type']+':'+_0x33081f['subType'];this['_setSuggestionData']({'id':_0x230373,'type':_0x42ee4,'createdAt':new Date(),'authorId':_0x49048a,'data':_0x33081f['data'],'attributes':_0x33081f['attributes']});const _0x25409b=this['_model']['createPositionAt'](_0x2d8c64['end']['parent'],'after'),_0x46efd1=this['_model']['createRange'](_0x25409b,_0x3f528c['end']);this['_addSuggestionMarker'](_0x42ee4,_0x230373,_0x49048a,_0x46efd1);}else{if(_0x3f528c['containsPosition'](_0x2d8c64['start'])){const _0x2463c8=this['_model']['createPositionAt'](_0x2d8c64['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x33081f,this['_model']['createRange'](_0x3f528c['start'],_0x2463c8));}else{const _0x4010d5=this['_model']['createPositionAt'](_0x2d8c64['end']['parent'],'after');this['_setSuggestionRange'](_0x33081f,this['_model']['createRange'](_0x4010d5,_0x3f528c['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x1cafdf){for(const {suggestion:_0x5ebcc1,meta:_0x197424}of this['_findSuggestions'](_0x1cafdf,'insertion')){if(!_0x197424['isOwn'])continue;const _0x2f399b=_0x5ebcc1['getRanges']();for(const _0x2cd584 of _0x2f399b)if(!_0x1cafdf['getDifference'](_0x2cd584)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x2237f9){return this['editor']['plugins']['get']('Users')['getUser'](_0x2237f9);}['_getExternalAuthor'](_0x543d85){const _0x1b58f1=this['editor']['plugins']['get']('Users'),_0x4acd95=_0x504617('external:'+_0x543d85),_0x2ec3ef=_0x1b58f1['getUser'](_0x4acd95);return _0x2ec3ef||_0x1b58f1['addUser']({'id':_0x4acd95,'name':_0x543d85});}['_createSuggestion'](_0x43d9a3,_0x4bf1a,_0xb9b5aa,_0x90ed95,_0x4b9305,_0x361d42){const _0x163159=this['_getAuthorFromId'](_0x90ed95);if(!_0x163159)throw new _0x55c846('track-changes-user-not-found',this,{'authorId':_0x90ed95,'suggestionId':_0xb9b5aa});const _0xd92221=this['_suggestionFactory']['buildSuggestion'](_0x43d9a3,_0x4bf1a,_0xb9b5aa,_0x163159,_0x4b9305,_0x34268d=>{this['_updateSuggestionData'](_0xb9b5aa,{'attributes':_0x34268d});const _0x3c7756=this['getSuggestion'](_0xb9b5aa);this['_joinWithAdjacentSuggestions'](new Set([_0x3c7756])),this['_refreshSuggestionsChain'](new Set([_0x3c7756]));},_0x361d42);return this['listenTo'](_0xd92221,'accept',()=>{this['_updateSuggestionData'](_0xb9b5aa,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0xd92221,'discard',()=>{this['_updateSuggestionData'](_0xb9b5aa,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0xb9b5aa,_0xd92221),this['_suggestionState']['set'](_0xd92221,'notReady'),_0xd92221;}['_splitMarkerName'](_0x2f3b65){const _0x430b0f=_0x2f3b65['split'](':');return{'group':_0x430b0f[0x0],'type':_0x430b0f[0x1],'subType':_0x430b0f['length']>=0x5?_0x430b0f[0x2]:null,'id':_0x430b0f['length']<0x5?_0x430b0f[0x2]:_0x430b0f[0x3],'authorId':_0x430b0f['length']<0x5?_0x430b0f[0x3]:_0x430b0f[0x4],'markerCount':0x6==_0x430b0f['length']?_0x430b0f[0x5]:null};}['_breakSuggestionMarker'](_0x370ce4,_0x499358,_0x40a817){const _0x1c6568=_0x370ce4['getFirstRange'](),_0x4bae57=_0x1c6568['start'],_0x3d65c8=_0x1c6568['end'];this['_setSuggestionRange'](_0x370ce4,this['_model']['createRange'](_0x4bae57,_0x499358));const _0x3a6fad=_0x334525(),_0x44f13c=_0x370ce4['creator']['id'],_0x1da898=_0x370ce4['type']+(_0x370ce4['subType']?':'+_0x370ce4['subType']:'');this['_setSuggestionData']({'id':_0x3a6fad,'type':_0x1da898,'createdAt':new Date(),'authorId':_0x44f13c,'originalSuggestionId':_0x370ce4['_originalSuggestionId']||_0x370ce4['id'],'attributes':_0x370ce4['attributes'],'data':_0x370ce4['data']});const _0x1025e9=this['_getAttributeKey'](_0x370ce4);('formatBlock'==_0x370ce4['type']||_0x1025e9&&this['_isBlockAttribute'](_0x1025e9))&&(_0x40a817=this['_model']['createPositionBefore'](_0x40a817['parent'])),this['_addSuggestionMarker'](_0x1da898,_0x3a6fad,_0x44f13c,this['_model']['createRange'](_0x40a817,_0x3d65c8));}['_findSuggestions'](_0x3cdc08,_0x3fd1da=null){const _0x146508=[],_0x117a2f=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x3cdc08)||(_0x3cdc08=[_0x3cdc08]);for(const _0x542d8c of this['getSuggestions']()){if(!_0x542d8c['isInContent'])continue;if(_0x3fd1da&&_0x542d8c['type']!=_0x3fd1da)continue;let _0x1d1cce=!0x1;for(const _0xb7453b of _0x542d8c['getRanges']()){for(const _0x342169 of _0x3cdc08){const _0x1a4028=_0x342169['start']['isEqual'](_0xb7453b['end'])||_0x342169['end']['isEqual'](_0xb7453b['start']);if(_0x1a4028||_0x342169['getIntersection'](_0xb7453b)){const _0x1b0c82=_0x342169['containsRange'](_0xb7453b)&&Ft(this['_model']['schema'],_0xb7453b['start'],_0x342169),_0x2c400f=_0xb7453b['containsRange'](_0x342169)&&Ft(this['_model']['schema'],_0x342169['start'],_0xb7453b);_0x146508['push']({'suggestion':_0x542d8c,'meta':{'isOwn':_0x117a2f==_0x542d8c['author'],'isNextTo':_0x1a4028,'isInsideObject':_0x1b0c82,'containsRangeInObject':_0x2c400f}}),_0x1d1cce=!0x0;break;}}if(_0x1d1cce)break;}}return _0x146508;}['_addSuggestionMarker'](_0x426039,_0x6be08b,_0x17281c,_0x4716da,_0x42b1c5){this['_model']['change'](_0x34dd54=>{let _0x15a216='suggestion:'+_0x426039+':'+_0x6be08b+':'+_0x17281c;_0x42b1c5&&(_0x15a216=_0x15a216+':'+_0x42b1c5),_0x34dd54['addMarker'](_0x15a216,{'range':_0x4716da,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x142cf3){const _0x20a6ad=_0x142cf3['previous'],_0x4ffde2=_0x142cf3['next'];_0x142cf3['previous']=null,_0x142cf3['next']=null,null!=_0x20a6ad&&_0x20a6ad['next']==_0x142cf3&&(_0x20a6ad['next']=_0x4ffde2),null!=_0x4ffde2&&_0x4ffde2['previous']==_0x142cf3&&(_0x4ffde2['previous']=_0x20a6ad),'ready'==this['_suggestionState']['get'](_0x142cf3)&&(this['_suggestionState']['set'](_0x142cf3,'removed'),this['fire']('suggestionUnloaded',_0x142cf3,_0x20a6ad,_0x4ffde2));}['_setSuggestionData'](_0x123d1c){const _0x2ce42a=_0x123d1c['id'],_0x230870=this['addSuggestionData'](_0x123d1c);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x4f0d40=this['editor']['plugins']['get']('PendingActions'),_0x3270b7=_0x230870['hasComments'],_0x5d7dc9=_0x230870['subType']?_0x230870['type']+':'+_0x230870['subType']:_0x230870['type'],_0x519428=this['editor']['locale'],_0x654abb=_0x4f0d40['add'](o(_0x519428,'PENDING_ACTION_SUGGESTION')),_0x35fb87={'id':_0x2ce42a,'type':_0x5d7dc9,'hasComments':_0x3270b7,'data':_0x123d1c['data']||null,'originalSuggestionId':_0x123d1c['originalSuggestionId']||null,'attributes':_0x230870['attributes']};this['_adapter']['addSuggestion'](_0x35fb87)['then'](_0x1fb34b=>{_0x230870['_saved']=!0x0,_0x4f0d40['remove'](_0x654abb),_0x1fb34b&&_0x1fb34b['createdAt']&&(this['_suggestions']['get'](_0x2ce42a)['createdAt']=_0x1fb34b['createdAt']);})['catch'](_0x1f3a8d=>{throw _0x42dd4f('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x230870['discard']();}),_0x230870['stopListening'](),this['_suggestions']['delete'](_0x230870['id']),this['_suggestionState']['delete'](_0x230870),_0x1f3a8d;});}return _0x230870;}['_isBlockAttribute'](_0x93ea12){return this['_blockAttributeKeys']['has'](_0x93ea12);}['_isInlineAttribute'](_0x260d08){return this['_inlineAttributeKeys']['has'](_0x260d08);}['_updateSuggestionData'](_0x1de080,_0x203aa2){const _0x1c9df1=this['editor']['plugins']['get']('PendingActions'),_0xf6de6b=this['getSuggestion'](_0x1de080);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0xf6de6b['_saved']){const _0x35847d=_0x1c9df1['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x1de080,_0x203aa2)['then'](()=>{_0x1c9df1['remove'](_0x35847d);});}else _0xf6de6b['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x1de080,_0x203aa2);});}}['_getSuggestionData'](_0x3e8a90){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x55c846('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x3e8a90);}['_handleNewSuggestionMarker'](_0x3a3fdd){const {id:_0x49f744,type:_0x713a22,subType:_0x5011ea,authorId:_0x30e5c1}=this['_splitMarkerName'](_0x3a3fdd),_0x2ecbde=this['_suggestions']['get'](_0x49f744)||this['_createSuggestion'](_0x713a22,_0x5011ea,_0x49f744,_0x30e5c1,{});switch(this['_checkSuggestionCorrectness'](_0x2ecbde,_0x713a22,_0x5011ea,_0x30e5c1),this['_suggestionState']['get'](_0x2ecbde)){case'notReady':this['_getSuggestionData'](_0x49f744)['then'](_0x2b5fb4=>{let _0x51add2=Promise['resolve']();_0x2b5fb4['hasComments']&&(_0x51add2=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x49f744})),_0x51add2['then'](()=>{this['addSuggestionData'](_0x2b5fb4)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x2ecbde,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x49f744,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x2ecbde,'ready'),this['fire']('suggestionLoaded',_0x2ecbde);break;case'ready':this['fire']('suggestionChanged',_0x2ecbde);}return _0x2ecbde['addMarkerName'](_0x3a3fdd),_0x2ecbde;}['_refreshSuggestionsChain'](_0x4dfd25){const _0x5d8ba4=Array['from'](_0x4dfd25),_0x44c717=_0x5d8ba4['filter'](_0xf9cb2a=>'attribute'==_0xf9cb2a['type']);this['_refreshAttributeSuggestionsChain'](_0x44c717);const _0x5e9b46=_0x5d8ba4['filter'](_0x22e998=>!_0x22e998['isMultiRange']&&'attribute'!=_0x22e998['type']),_0x197f6f=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x521257=>!_0x521257['isMultiRange']&&'attribute'!=_0x521257['type']),_0x870e50=_0x197f6f['filter'](_0xb0b1c3=>!_0x4dfd25['has'](_0xb0b1c3)),_0x363eb2=new Map(_0x197f6f['map'](_0x593aac=>[_0x593aac,this['_suggestionFactory']['getSuggestionCallback'](_0x593aac['type'],_0x593aac['subType'],'chain')])),_0x4e2491=new Map(_0x197f6f['map'](_0x1a962b=>[_0x1a962b,_0x1a962b['getFirstRange']()])),_0x2358c2=new Set(),_0x2e8ea3=new Set();for(let _0x49f6ff=0x0;_0x49f6ff<_0x5e9b46['length'];_0x49f6ff++)_0x5e9276(_0x5e9b46[_0x49f6ff],_0x5e9b46,_0x49f6ff+0x1);for(let _0x32a57d=0x0;_0x32a57d<_0x5e9b46['length'];_0x32a57d++)_0x5e9276(_0x5e9b46[_0x32a57d],_0x870e50,0x0);const _0x15265f=new Set();for(let _0x3d1890=0x0;_0x3d1890<_0x5e9b46['length'];_0x3d1890++){const _0x5ed22c=_0x5e9b46[_0x3d1890];!_0x2e8ea3['has'](_0x5ed22c)&&_0x5ed22c['previous']&&(_0x15265f['add'](_0x5ed22c['previous']),_0x5ed22c['previous']['next']===_0x5ed22c&&(_0x5ed22c['previous']['next']=null),_0x5ed22c['previous']=null),!_0x2358c2['has'](_0x5ed22c)&&_0x5ed22c['next']&&(_0x15265f['add'](_0x5ed22c['next']),_0x5ed22c['next']['previous']===_0x5ed22c&&(_0x5ed22c['next']['previous']=null),_0x5ed22c['next']=null);}function _0x5e9276(_0x46bb27,_0x564b9e,_0x46f533){for(let _0x5a2c15=_0x46f533;_0x5a2c15<_0x564b9e['length'];_0x5a2c15++){const _0x22aea3=_0x5a060c(_0x46bb27,_0x564b9e[_0x5a2c15]);_0x22aea3&&(_0x22aea3[0x0]['next']=_0x22aea3[0x1],_0x22aea3[0x1]['previous']=_0x22aea3[0x0],_0x2358c2['add'](_0x22aea3[0x0]),_0x2e8ea3['add'](_0x22aea3[0x1]));}}function _0x5a060c(_0x2ea890,_0x3bcb4a){if(_0x2ea890['author']['id']!==_0x3bcb4a['author']['id'])return null;const _0x40503c=_0x363eb2['get'](_0x2ea890)(_0x2ea890,_0x3bcb4a,_0x4e2491['get'](_0x2ea890),_0x4e2491['get'](_0x3bcb4a));if(!_0x40503c)return null;return _0x363eb2['get'](_0x3bcb4a)(_0x2ea890,_0x3bcb4a,_0x4e2491['get'](_0x2ea890),_0x4e2491['get'](_0x3bcb4a))?_0x40503c[0x1]['commentThread']&&_0x40503c[0x1]['commentThread']['length']?null:_0x40503c:null;}_0x15265f['size']&&this['_refreshSuggestionsChain'](_0x15265f);}['_refreshAttributeSuggestionsChain'](_0x40ad15){if(0x0==_0x40ad15['length'])return;const _0x3d2845=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x539e38=>'attribute'==_0x539e38['type']&&_0x539e38['_isDataLoaded']),_0xc4c6cb=[],_0x4053e6=new Map();for(const _0x23b04c of _0x3d2845){const _0x2ee2e2=_0x504617(_0x23b04c['attributes']);_0x4053e6['has'](_0x2ee2e2)||(_0x4053e6['set'](_0x2ee2e2,_0xc4c6cb['length']),_0xc4c6cb['push']([]));const _0x521aba=_0x4053e6['get'](_0x2ee2e2);_0xc4c6cb[_0x521aba]['push'](_0x23b04c);}!(function(){_0xc4c6cb['sort']((_0x40bb60,_0x222b85)=>{const _0x167480=_0x40bb60[0x0]['createdAt'],_0x47ab12=_0x222b85[0x0]['createdAt'];return _0x167480==_0x47ab12?_0x40bb60[0x0]['attributes']['groupId']<_0x222b85[0x0]['attributes']['groupId']?-0x1:0x1:_0x167480<_0x47ab12?-0x1:0x1;});for(const _0x231b1f of _0xc4c6cb)_0x231b1f['sort']((_0x3feda3,_0x3260d3)=>_0x3feda3['id']<_0x3260d3['id']?-0x1:0x1);}());for(let _0x156ef0=0x0;_0x156ef0<_0xc4c6cb['length'];_0x156ef0++){if(0x0==_0xc4c6cb[_0x156ef0]['length'])continue;const _0x4b7799=[];for(let _0x30b218=_0x156ef0+0x1;_0x30b218<_0xc4c6cb['length'];_0x30b218++)0x0!=_0xc4c6cb[_0x30b218]['length']&&_0x466225(_0xc4c6cb[_0x156ef0],_0xc4c6cb[_0x30b218])&&_0x4b7799['push'](_0x30b218);for(const _0x2db5dd of _0x4b7799)_0xc4c6cb[_0x156ef0]=_0xc4c6cb[_0x156ef0]['concat'](_0xc4c6cb[_0x2db5dd]),_0xc4c6cb[_0x2db5dd]=[];}for(const _0x275a6d of _0xc4c6cb)for(let _0x30d112=0x0;_0x30d112<_0x275a6d['length'];_0x30d112++){const _0x3ca061=_0x275a6d[_0x30d112+0x1]||null;_0x275a6d[_0x30d112]['next']!==_0x3ca061&&(_0x275a6d[_0x30d112]['next']=_0x3ca061);}for(const _0x69d210 of _0xc4c6cb)for(let _0x9a6b8d=0x0;_0x9a6b8d<_0x69d210['length'];_0x9a6b8d++){const _0x1bded2=_0x69d210[_0x9a6b8d-0x1]||null;_0x69d210[_0x9a6b8d]['previous']!==_0x1bded2&&(_0x69d210[_0x9a6b8d]['previous']=_0x1bded2);}function _0x466225(_0x4389d5,_0x3d76e){if(_0x4389d5[0x0]['attributes']['groupId']!==_0x3d76e[0x0]['attributes']['groupId']&&_0x4389d5[0x0]['author']!==_0x3d76e[0x0]['author'])return!0x1;if(!function(_0x23566d,_0x527f7d){if(!_0x23566d['hasComments']&&!_0x527f7d['hasComments'])return!0x0;if(_0x23566d['hasComments']&&_0x527f7d['hasComments'])return!0x1;if(_0x23566d['hasComments']&&_0x527f7d['createdAt']<_0x23566d['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x527f7d['hasComments']&&_0x23566d['createdAt']<_0x527f7d['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x4389d5[0x0],_0x3d76e[0x0]))return!0x1;const _0x1b12f6=Ut(_0x4389d5[0x0]['attributes'],['groupId','trackingSessionId']),_0x30515b=Ut(_0x3d76e[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x40eb7f(_0x1b12f6,_0x30515b))return!0x1;if(_0x4389d5[0x0]['attributes']['groupId']==_0x3d76e[0x0]['attributes']['groupId'])return!0x0;if(_0x4389d5[0x0]['attributes']['trackingSessionId']!==_0x3d76e[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x4389d5['every'](_0x325cc9=>_0x3d76e['some'](_0x435860=>_0x325cc9['getFirstRange']()['isEqual'](_0x435860['getFirstRange']())))&&_0x3d76e['every'](_0x2bc9c9=>_0x4389d5['some'](_0x1db8ab=>_0x2bc9c9['getFirstRange']()['isEqual'](_0x1db8ab['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x1edd6d){const _0x3f5b26=Array['from'](_0x1edd6d),_0x39a715=this['getSuggestions']({'skipNotAttached':!0x0}),_0x5a95ee=_0x39a715['filter'](_0x54c43d=>!_0x1edd6d['has'](_0x54c43d)),_0xa3372b=new Map(_0x3f5b26['map'](_0x3c5f57=>[_0x3c5f57,this['_suggestionFactory']['getSuggestionCallback'](_0x3c5f57['type'],_0x3c5f57['subType'],'join')])),_0x5b0b72=new Map(_0x39a715['map'](_0x395f04=>[_0x395f04,_0x395f04['getRanges']()]));for(let _0x256986=0x0;_0x256986<_0x3f5b26['length'];_0x256986++){if(_0x3d021c(this,_0x3f5b26[_0x256986],_0x3f5b26,_0x256986+0x1))return!0x0;}for(let _0x111829=0x0;_0x111829<_0x3f5b26['length'];_0x111829++){if(_0x3d021c(this,_0x3f5b26[_0x111829],_0x5a95ee,0x0))return!0x0;}return!0x1;function _0x3d021c(_0x29d485,_0x30455e,_0x3b10aa,_0x35d9d5){for(let _0xe04f12=_0x35d9d5;_0xe04f12<_0x3b10aa['length'];_0xe04f12++){const _0x2b8ef0=_0x3b10aa[_0xe04f12];if(_0x2b8ef0['type']!==_0x30455e['type']||_0x2b8ef0['author']['id']!==_0x30455e['author']['id']||_0x2b8ef0['subType']!==_0x30455e['subType'])continue;if(!Qt(_0x30455e,_0x2b8ef0))continue;if('attribute'==_0x30455e['type']&&_0x30455e['data']['oldValue']!=_0x2b8ef0['data']['oldValue'])continue;if('attribute'==_0x30455e['type']&&_0x29d485['_isBlockAttribute'](_0x30455e['data']['key']))continue;if('formatBlock'==_0x30455e['type']){const _0x4392d2=_0x29d485['editor']['model'],_0x4f08ef=_0x30455e['getContainedElement']();if(_0x4f08ef&&(_0x4392d2['schema']['isObject'](_0x4f08ef)||_0x4392d2['schema']['isLimit'](_0x4f08ef)))continue;}const _0x4d08ef=_0xa3372b['get'](_0x30455e),_0x8742a5=_0x5b0b72['get'](_0x30455e),_0x498aa6=_0x5b0b72['get'](_0x2b8ef0),_0x4f00b1=_0x30455e['commentThread']&&_0x30455e['commentThread']['length'],_0x500a67=_0x2b8ef0['commentThread']&&_0x2b8ef0['commentThread']['length'];if(!_0x4f00b1&&_0x4d08ef(_0x498aa6,_0x8742a5))return _0x29d485['_joinSuggestions'](_0x2b8ef0,_0x30455e),_0x5b0b72['delete'](_0x30455e),!0x0;if(!_0x500a67&&_0x4d08ef(_0x8742a5,_0x498aa6))return _0x29d485['_joinSuggestions'](_0x30455e,_0x2b8ef0),_0x5b0b72['delete'](_0x2b8ef0),!0x0;}return!0x1;}}['_joinSuggestions'](_0x340e7e,_0x37df40){if(_0x340e7e['isMultiRange']){for(const _0x58f543 of _0x37df40['getRanges']())_0x340e7e['addRange'](_0x58f543);}else{const _0x634396=_0x37df40['getFirstRange']()['end'];this['_setSuggestionRange'](_0x340e7e,this['_model']['createRange'](_0x340e7e['getFirstRange']()['start'],_0x634396));}_0x37df40['removeMarkers']();}['_getMarkerAnnouncementText'](_0x5a58f2,_0x482a16,_0x8b442b){const _0x3ee2a6=_0x5a58f2['startsWith']('format')||_0x5a58f2['startsWith']('attribute')?'FORMATTING':_0x5a58f2['toUpperCase']();return o(this['editor']['locale'],_0x482a16+'_'+_0x3ee2a6+'_SUGGESTION_ANNOUNCEMENT',_0x8b442b);}['_initAriaMarkerChangeAnnouncements'](){const _0x4a04f6=this['editor'];if(!_0x4a04f6['ui'])return;const {ariaLiveAnnouncer:_0x3d65d3}=_0x4a04f6['ui'];_0x34f048(this['_model'],({left:_0x43f7a8,entered:_0x482ee5})=>{for(const _0x3d4bdd of _0x43f7a8){const {group:_0x33bd31,type:_0x45b518}=this['_splitMarkerName'](_0x3d4bdd['name']);if('suggestion'===_0x33bd31){_0x3d65d3['announce'](this['_getMarkerAnnouncementText'](_0x45b518,'LEAVE'));break;}}for(const _0xcd34ad of _0x482ee5){const {group:_0x126396,type:_0x30e528}=this['_splitMarkerName'](_0xcd34ad['name']);if('suggestion'===_0x126396){_0x3d65d3['announce'](this['_getMarkerAnnouncementText'](_0x30e528,'ENTER',_0x49ca32(_0x3f83d3)));break;}}});}['_processAttributeChanges'](_0x30609b){if(this['_recordAttributeSuggestions'])return!0x1;const _0x37dcba=this['editor'],_0x11597d=_0x37dcba['model']['document']['differ']['getChanges']();if(0x0==_0x11597d['length'])return!0x1;const _0x3da8cc=[],_0x1366aa=_0x11597d['filter'](_0x4a40ca=>'attribute'==_0x4a40ca['type']),_0x3d6000=_0x11597d['filter'](_0x91ef77=>'insert'==_0x91ef77['type']&&'$text'!=_0x91ef77['name']),_0xe6024d=_0x11597d['filter'](_0x15e67e=>'remove'==_0x15e67e['type']&&'$text'!=_0x15e67e['name']);for(const _0xc0770c of _0x1366aa)_0x3da8cc['push']({'key':_0xc0770c['attributeKey'],'newValue':_0xc0770c['attributeNewValue'],'oldValue':_0xc0770c['attributeOldValue'],'range':qt(_0xc0770c['range'],_0x37dcba['model'])});for(const _0x50685b of _0x3d6000){const _0xb7e558=_0xe6024d['find'](_0x4f8b94=>_0x4f8b94['position']['isEqual'](_0x50685b['position']));_0xb7e558&&_0x3da8cc['push']({'key':m,'newValue':_0x50685b['name'],'oldValue':_0xb7e558['name'],'range':_0x37dcba['model']['createRangeOn'](_0x50685b['position']['nodeAfter'])});}return 0x0!=_0x3da8cc['length']&&this['_reduceExistingSuggestions'](_0x30609b,_0x3da8cc);}['_processAttributeSuggestions'](_0x4fbdac){let _0x5b950b=!0x1;const _0x1a6258=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1f0933=>_0x1f0933['data']['newRange']&&_0x1f0933['name']['startsWith']('suggestion:attribute:'));for(const _0x4c8ef9 of _0x1a6258){const {subType:_0x19a74e,id:_0x2fdc29}=this['_splitMarkerName'](_0x4c8ef9['name']),_0x4a6fd1=_0x19a74e['split']('|')[0x0];for(const _0x4436e6 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x4436e6['id']!=_0x2fdc29&&'attribute'==_0x4436e6['type']&&_0x4436e6['data']&&_0x4436e6['data']['key']==_0x4a6fd1&&_0x4436e6['getFirstRange']()['isIntersecting'](_0x4c8ef9['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x4436e6,_0x4c8ef9['data']['newRange'],_0x4fbdac),_0x5b950b=!0x0);}return _0x5b950b;}['recordAttributeChanges'](_0x165658){this['_recordAttributeSuggestions']=!0x0,_0x165658();}['_isRegisteredAttribute'](_0x81b752){const _0x48be97=this['_isBlockAttribute'](_0x81b752),_0x43fb37=this['_isInlineAttribute'](_0x81b752);return _0x48be97||_0x43fb37;}['_reduceExistingSuggestions'](_0x73f3e4,_0x66a70b){if(0x0==_0x66a70b['length'])return!0x1;let _0x28b381=!0x1;for(const _0x5d9ad1 of _0x66a70b){const _0x354058=this['_findSuggestions'](_0x5d9ad1['range'],'attribute')['filter'](_0x1ccee1=>!_0x1ccee1['meta']['isNextTo'])['map'](_0x4ff885=>_0x4ff885['suggestion']),_0x45f577=_0x504617({'newValue':_0x5d9ad1['newValue']});_0x354058['filter'](_0x3fd2b7=>{const [_0xf97ccf,_0x54005f]=_0x3fd2b7['subType']['split']('|');return _0xf97ccf==_0x5d9ad1['key']&&_0x54005f!=_0x45f577;})['forEach'](_0x7f3eb8=>{this['_reduceSuggestionAttributeRange'](_0x7f3eb8,_0x5d9ad1['range'],_0x73f3e4),_0x28b381=!0x0;});}return _0x28b381;}['_reduceSuggestionAttributeRange'](_0xa5c296,_0x20d60f,_0x352ae3){const _0xefec10=_0xa5c296['getFirstRange']()['getDifference'](_0x20d60f);0x0!==_0xefec10['length']?0x1!==_0xefec10['length']?this['_breakSuggestionMarker'](_0xa5c296,_0x20d60f['start'],_0x20d60f['end']):this['_setSuggestionRange'](_0xa5c296,_0xefec10[0x0]):_0x352ae3['removeMarker'](_0xa5c296['getFirstMarker']());}}class Vt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x324e52){this['_editor']=_0x324e52,this['_model']=_0x324e52['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x2a1869,_0x538942,_0x108a00,_0x50aeb9,_0x443276,_0x87c1d,_0x5e1e2d){return new T(this['_model'],{'type':_0x2a1869,'subType':_0x538942,'id':_0x108a00,'originalSuggestionId':_0x5e1e2d,'author':_0x50aeb9,'creator':_0x50aeb9,'attributes':_0x443276,'onAttributesChange':_0x87c1d,'onAccept':(..._0xbaaa12)=>this['getSuggestionCallback'](_0x2a1869,_0x538942,'accept')(..._0xbaaa12),'onDiscard':(..._0x599dc2)=>this['getSuggestionCallback'](_0x2a1869,_0x538942,'discard')(..._0x599dc2)});}['registerCustomCallback'](_0x57c624,_0x46cd12,_0x3b7302,_0x5595ba){const _0x40b5eb=_0x57c624+':'+_0x46cd12+':'+_0x3b7302;this['_customCallbacks']['set'](_0x40b5eb,_0x5595ba);}['getSuggestionCallback'](_0x2ae6a5,_0x229df7,_0x2b3307){const _0x7afdaa=_0x2ae6a5+':'+_0x229df7+':'+_0x2b3307;return this['_customCallbacks']['get'](_0x7afdaa)||this['_defaultCallbacks']['get'](_0x2ae6a5+':'+_0x2b3307);}['_registerDefaultCallbacks'](){const _0x2e1c3d=()=>!0x1,_0x39e9cc=_0xf281fa=>{_0xf281fa['sort']((_0x7e8260,_0x1c48cc)=>_0x7e8260['start']['isBefore'](_0x1c48cc['start'])?0x1:-0x1),this['_model']['change'](_0x172604=>{for(const _0x56d480 of _0xf281fa){let _0xf99ebb;_0xf99ebb=_0x56d480['end']['isAtEnd']&&_0x56d480['end']['parent']==_0x56d480['start']['nodeAfter']?_0x172604['createSelection'](_0x56d480['start']['nodeAfter'],'on'):_0x172604['createSelection'](_0x56d480),this['_model']['deleteContent'](_0xf99ebb,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x3d387b=(_0x24ae2c,_0x32e31e)=>{_0x32e31e&&this['_model']['change'](_0x35ab77=>{const {commandName:_0x1ecbf7,commandParams:_0x195413=[]}=_0x32e31e,_0x190d73=_0x24ae2c['map'](_0x431f5e=>(Pt(_0x431f5e)&&(_0x431f5e=this['_model']['createRange'](_0x431f5e['end'])),_0x431f5e))['filter'](_0x10a24c=>'$graveyard'!==_0x10a24c['root']['rootName']);if(_0x190d73['length']<0x1)return;const _0x8ebee0=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x69f25e=>_0x1f4d12['fromRange'](_0x69f25e));_0x35ab77['setSelection'](_0x190d73);for(const _0x1c7fed of this['_editor']['commands']['commands']())_0x1c7fed['refresh']();_0x195413['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x1ecbf7,..._0x195413);const _0x3a7e00=_0x8ebee0['filter'](_0x2bc835=>'$graveyard'!=_0x2bc835['root']['rootName']);_0x3a7e00['length']>0x0&&_0x35ab77['setSelection'](_0x3a7e00);for(const _0x14233f of _0x8ebee0)_0x14233f['detach']();});},_0x11023e=(_0x2036a7,_0x4a4aa9)=>0x1==_0x2036a7['length']&&0x1==_0x4a4aa9['length']&&_0x2036a7[0x0]['end']['isEqual'](_0x4a4aa9[0x0]['start']),_0x225139=(_0x54731c,_0x361763,_0x51b01a,_0x3bf42c)=>Wt(_0x54731c,_0x361763,_0x51b01a,_0x3bf42c)?[_0x54731c,_0x361763]:Wt(_0x361763,_0x54731c,_0x3bf42c,_0x51b01a)?[_0x361763,_0x54731c]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x2e1c3d),this['_defaultCallbacks']['set']('insertion:discard',_0x39e9cc),this['_defaultCallbacks']['set']('insertion:join',_0x11023e),this['_defaultCallbacks']['set']('insertion:chain',_0x225139),this['_defaultCallbacks']['set']('deletion:accept',_0x39e9cc),this['_defaultCallbacks']['set']('deletion:discard',_0x2e1c3d),this['_defaultCallbacks']['set']('deletion:join',_0x11023e),this['_defaultCallbacks']['set']('deletion:chain',_0x225139),this['_defaultCallbacks']['set']('formatInline:accept',_0x3d387b),this['_defaultCallbacks']['set']('formatInline:discard',_0x2e1c3d),this['_defaultCallbacks']['set']('formatInline:join',_0x11023e),this['_defaultCallbacks']['set']('formatInline:chain',_0x2e1c3d),this['_defaultCallbacks']['set']('formatBlock:accept',_0x3d387b),this['_defaultCallbacks']['set']('formatBlock:discard',_0x2e1c3d),this['_defaultCallbacks']['set']('formatBlock:join',_0x11023e),this['_defaultCallbacks']['set']('formatBlock:chain',_0x2e1c3d),this['_defaultCallbacks']['set']('attribute:accept',_0x2e1c3d),this['_defaultCallbacks']['set']('attribute:discard',(_0x56fcc5,_0x2145c3)=>{if(!_0x2145c3)return;const _0x369b7c=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x7a0877=>{if(_0x2145c3['key']==m)for(const _0x2967d8 of _0x56fcc5){const _0x5a0a4a=_0x2967d8['start']['nodeAfter'],_0x137da1=_0x2145c3['oldValue'];_0x7a0877['rename'](_0x5a0a4a,_0x137da1);}else{if(_0x369b7c['_isBlockAttribute'](_0x2145c3['key'])){for(const _0xed3693 of _0x56fcc5)void 0x0!==_0x2145c3['oldValue']?_0x7a0877['setAttribute'](_0x2145c3['key'],_0x2145c3['oldValue'],_0xed3693['start']['nodeAfter']):_0x7a0877['removeAttribute'](_0x2145c3['key'],_0xed3693['start']['nodeAfter']);}else{for(const _0xec4073 of _0x56fcc5)_0x2145c3['oldValue']?_0x7a0877['setAttribute'](_0x2145c3['key'],_0x2145c3['oldValue'],_0xec4073):_0x7a0877['removeAttribute'](_0x2145c3['key'],_0xec4073);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x11023e);}}function Ft(_0x3ad61c,_0x50656f,_0x2f8a48){for(const _0x461f9c of _0x50656f['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x461f9c['root']==_0x461f9c)return!0x1;if(!_0x2f8a48['containsItem'](_0x461f9c))return!0x1;if(_0x3ad61c['isObject'](_0x461f9c)||_0x3ad61c['isLimit'](_0x461f9c))return!0x0;}return!0x1;}function Pt(_0x3a81d6){return _0x3a81d6['end']['parent']==_0x3a81d6['start']['nodeAfter']&&_0x3a81d6['end']['isAtStart'];}function Gt(_0x37cd30,_0xceebfa,_0x3686e4,_0x431c3b){const _0x31cd36=_0x3a9c18=>!_0x3a9c18['item']['is']('$textProxy')&&!_0x431c3b['isObject'](_0x3a9c18['item']),_0x3b40ba=_0x37cd30['start']['getLastMatchingPosition'](_0x31cd36),_0x591c4d=_0x37cd30['end']['getLastMatchingPosition'](_0x31cd36,{'direction':'backward'});return(!_0x37cd30['start']['isEqual'](_0x3b40ba)||!_0x37cd30['end']['isEqual'](_0x591c4d))&&(_0x3b40ba['isBefore'](_0x591c4d)?_0x3686e4['updateMarker'](_0xceebfa,{'range':_0x3686e4['createRange'](_0x3b40ba,_0x591c4d)}):_0x3686e4['removeMarker'](_0xceebfa),!0x0);}function Lt(_0x597ef3){return _0x504617(_0x597ef3);}function Jt(_0x306fba){const _0x5d1547=_0x306fba['start']['nodeAfter'];return _0x5d1547&&_0x5d1547['is']('element');}function Kt(_0x5561ec){return Pt(_0x5561ec)||function(_0x115ae6){return _0x115ae6['start']['parent']==_0x115ae6['end']['nodeBefore']&&_0x115ae6['start']['isAtEnd'];}(_0x5561ec);}function Ht(_0xc73bba,_0x2122aa){try{const _0x16ef92=_0xc73bba['getRange']();for(const _0x4f6f35 of _0x2122aa)if(_0xc73bba!==_0x4f6f35&&_0x16ef92&&_0x16ef92['isIntersecting'](_0x4f6f35['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function qt(_0x138d9a,_0x39e52c){return null==_0x138d9a['end']['nodeBefore']&&_0x138d9a['end']['parent']==_0x138d9a['start']['nodeAfter']?zt(_0x138d9a['start']['nodeAfter'],_0x39e52c):_0x138d9a;}function zt(_0x1a9f61,_0x3ee8d1){const _0x2a36a1=_0x3ee8d1['schema']['isObject'](_0x1a9f61)||_0x3ee8d1['schema']['isSelectable'](_0x1a9f61);return _0x3ee8d1['createRange'](_0x3ee8d1['createPositionAt'](_0x1a9f61,'before'),_0x2a36a1?_0x3ee8d1['createPositionAfter'](_0x1a9f61):_0x3ee8d1['createPositionAt'](_0x1a9f61,'end'));}function Wt(_0x3cb204,_0x66d441,_0x28732c,_0x5f04d1){return!!Qt(_0x3cb204,_0x66d441)&&_0x28732c['end']['isEqual'](_0x5f04d1['start']);}function Qt(_0x2c4780,_0x27fb5c){if(!_0x2c4780['_isDataLoaded']||!_0x27fb5c['_isDataLoaded'])return!0x1;const _0x36fbb2=new Set(Object['keys'](_0x2c4780['attributes'])),_0x425fac=new Set(Object['keys'](_0x27fb5c['attributes']));if(_0x36fbb2['delete']('groupId'),_0x425fac['delete']('groupId'),0x0==_0x36fbb2['size']&&0x0==_0x425fac['size'])return!0x0;if(_0x36fbb2['size']!=_0x425fac['size'])return!0x1;const _0x3ed26a={..._0x2c4780['attributes']},_0x12ca91={..._0x27fb5c['attributes']};return delete _0x3ed26a['groupId'],delete _0x12ca91['groupId'],JSON['stringify'](_0x3ed26a)==JSON['stringify'](_0x12ca91);}function Xt(_0x3164c2,_0x47137c){const _0x1a63cb=Yt(_0x3164c2['attributes']),_0xc8cc48=Yt(_0x47137c);if(!_0x3164c2['_isDataLoaded'])return!0x1;for(const _0xffa069 of Object['keys'](_0xc8cc48))if(!_0x40eb7f(_0x1a63cb[_0xffa069],_0xc8cc48[_0xffa069]))return!0x1;return!0x0;}function Yt(_0x1eb5ea){const _0x9401c1=Object['assign']({},_0x1eb5ea);return delete _0x9401c1['skipNestingCheck'],delete _0x9401c1['tablePasteChainId'],_0x9401c1;}class pe extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0xad4ab3(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x2ca1d2,_0x17e12a,_0x239c44,_0x35655d){super(),this['model']=_0x17e12a,this['view']=_0x239c44,this['commentThreadController']=_0x35655d,this['_editor']=_0x2ca1d2,this['_acceptCommand']=_0x2ca1d2['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x2ca1d2['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x89c431,_0x4e4f5b)=>_0x89c431||_0x4e4f5b),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x498c9b=>_0x498c9b&&this['_editor']['model']['canEditAt'](_0x17e12a['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x1c3bc7=>_0x1c3bc7&&this['_editor']['model']['canEditAt'](_0x17e12a['getRanges']())),this['_pendingAction']=null,_0x239c44['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x239c44,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x239c44,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x239c44,'change:isDirty',()=>{_0x239c44['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 _0x4bf00a=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x4bf00a);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x51b4e6{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x1e723c,_0x852cf5,_0x5311a4,_0x307a1b){super(_0x1e723c),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x5ed401(_0x1e723c,o(_0x1e723c,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x852cf5['authoredAt']),this['bind']('authoredAt')['to'](_0x852cf5),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',_0x852cf5,'authoredAt',this,'descriptionParts',(_0x244092,_0x1530e6,_0x33aaf6)=>{const _0x813964=_0x33aaf6['map'](_0x446545=>ls(_0x446545['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x244092-0x1,_0x852cf5['author']['name'],_0x1530e6?_0x307a1b['formatDateTime'](_0x1530e6):'',new DOMParser()['parseFromString'](_0x813964,'text/html')['body']['textContent']]);}),this['focusables']=new _0x4cfbc0(),this['focusTracker']=new _0x26cf0f(),this['keystrokes']=new _0x463913(),this['focusCycler']=new _0x18e82b({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x31729a=>_0x31729a['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x852cf5,this['_localUser']=_0x5311a4,this['_config']=_0x307a1b,_0x307a1b['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x7bd68c(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x364d87}=this['_config'];this['commentsListView']=new _0x364d87(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',_0x564096=>_0x564096+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x97735d,_0x2661ef)=>_0x97735d||!!_0x2661ef);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x22f170}=this['_config'],_0x5772a0=new _0x22f170(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x3618ef=_0x5772a0['commentInputView'];return _0x5772a0['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x3618ef,'value',(_0x55821b,_0xca7e45,_0x5ab58d)=>!!_0x5ab58d||_0x55821b&&!_0xca7e45),_0x3618ef['on']('submit',(_0x59c32c,_0x136e0c)=>{this['fire']('addComment',_0x136e0c),_0x3618ef['editor']['setData']('');}),_0x3618ef['on']('cancel',()=>this['focus']()),_0x3618ef['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x5772a0;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x15db3f,_0xdb0c35,_0x150bfa,_0x104d4b){super(_0x15db3f,_0xdb0c35,_0x150bfa,_0x104d4b),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x5c27eb=>_0x5c27eb&&_0x5c27eb[0x0]?_0x5c27eb[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x2a93c0,_0x2502f2)=>{let _0x5d0c0e='';for(const _0x2a987e of _0x2a93c0)_0x5d0c0e+='<p>'+ls(_0x2a987e['content'],_0x2a987e['color'])+'</p>';return _0x2502f2?_0x5d0c0e:_0x501172(_0x5d0c0e,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x104d4b['SuggestionView'](_0x15db3f,_0xdb0c35,{'formatDateTime':_0x104d4b['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 _0x272db9=this['bindTemplate'],_0x62cb94=[this['suggestionView']];return this['commentsListView']&&_0x62cb94['push'](this['commentsListView']),this['commentThreadInputView']&&_0x62cb94['push'](this['commentThreadInputView']),_0x62cb94['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x272db9['if']('isActive','ck-suggestion-wrapper--active'),_0x272db9['to']('type',_0x3306c6=>'ck-suggestion-'+_0x3306c6),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':_0x272db9['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x62cb94};}['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 _0x51b4e6{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x57e32,_0x3ed2c7,_0x42b7b8){super(_0x57e32),this['_model']=_0x3ed2c7,this['_config']=_0x42b7b8,this['set']('description',''),this['bind']('authoredAt')['to'](_0x3ed2c7),this['acceptButton']=this['_createButton'](o(_0x57e32,'Accept\x20suggestion'),_0x54ddab,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x57e32,'Discard\x20suggestion'),_0x2590d6,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x2d779c(_0x57e32,_0x3ed2c7['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x4cfbc0([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x26cf0f(),this['keystrokes']=new _0x463913(),this['focusCycler']=new _0x18e82b({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x365740=>_0x365740['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x302c21=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x302c21['innerHTML']=this['description'],this['on']('change:description',(_0x3a015c,_0x271e12,_0x416c3b)=>{_0x302c21['innerHTML']=_0x416c3b;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x58355d=this['bindTemplate'],_0x521bcf=[{'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':_0x58355d['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x58355d['to']('authoredAt',_0x3ff905=>this['_config']['formatDateTime'](_0x3ff905))}]}]},{'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']&&_0x521bcf['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':_0x521bcf}]};}['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'](_0xdb4ff,_0x46de96,_0x42aeb6,_0x4d1b1f,_0x96faf1){const _0x151622=new _0x7fc134(this['locale']);return _0x151622['set']({'label':_0xdb4ff,'icon':_0x46de96,'tooltip':!0x0,'tooltipPosition':_0x96faf1}),_0x151622['extendTemplate']({'attributes':{'class':_0x42aeb6}}),_0x151622['on']('execute',()=>{this['fire'](_0x4d1b1f,this['_model']['id']);}),_0x151622;}['_setupKeyboardNavigation'](){const _0x3ab04b=this['element'];this['keystrokes']['listenTo'](_0x3ab04b);for(const _0x7117dd of this['focusables'])this['focusTracker']['add'](_0x7117dd['element']),this['keystrokes']['listenTo'](_0x7117dd['element']);this['keystrokes']['set']('enter',(_0x201816,_0x418b93)=>{_0x3ab04b===_0x201816['target']&&(this['focusCycler']['focusFirst'](),_0x418b93());}),this['keystrokes']['set']('esc',(_0x8b9aca,_0x260c95)=>{_0x3ab04b!==_0x8b9aca['target']&&(this['focus'](),_0x260c95());});}}class u extends _0x573845{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x339440,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xe273a4){super(_0xe273a4),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x3da119=this['editor']['config'];_0x3da119['define']('trackChanges.SuggestionThreadView',fe),_0x3da119['define']('trackChanges.SuggestionView',we),_0x3da119['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x3da119['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x11e2cd,_0x142f98){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x1a951a,_0x5812ef]of this['_handleControllerBuffer']){const _0x18b804=this['_suggestionToController']['has'](_0x1a951a);_0x18b804||_0x5812ef?_0x18b804&&_0x5812ef&&this['_destroyController'](_0x1a951a):this['_initializeController'](_0x1a951a);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x11e2cd,_0x142f98);}['init'](){const _0x491ead=this['editor'],_0x138159=_0x491ead['plugins']['get']('TrackChangesEditing'),_0x349308=_0x491ead['plugins']['get']('Annotations'),_0x5156d5=_0x491ead['plugins']['get']('EditorAnnotations'),_0x10c59a=_0x491ead['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x5156d5['addSourceCollector'](()=>{const _0x509363=[];for(const [_0x310d0b,_0x32c483]of Array['from'](this['_suggestionToController'])){const _0x5777fe=_0x310d0b['getAllAdjacentSuggestions'](),_0x449965=[];for(const _0x279958 of _0x5777fe){if(!_0x279958['isInContent'])continue;if(_0x279958['isMultiRange']){_0x449965['push'](..._0x279958['getRanges']());continue;}const _0x372062=_0x279958['getFirstRange']();if(_0x449965['length']>0x0){const _0x269aaa=_0x449965[0x0]['getJoined'](_0x372062);if(_0x269aaa){_0x449965[0x0]=_0x269aaa;continue;}}_0x449965['push'](_0x372062);}_0x509363['push']([_0x32c483['view'],_0x449965]);}return _0x509363;}),this['listenTo'](_0x138159,'suggestionLoaded',(_0x48f75d,_0xf2ee0e)=>{this['listenTo'](_0xf2ee0e,'change:previous',(_0x2b2fb1,_0x2efd6e,_0x1a3d91,_0x1fb5dc)=>{_0xf2ee0e['isInContent']&&(null==_0x1a3d91?(this['_updateController'](_0x1fb5dc['head']),this['_handleSuggestionControllerDelayed'](_0xf2ee0e,!0x1)):(this['_updateController'](_0x1a3d91['head']),null==_0x1fb5dc&&this['_handleSuggestionControllerDelayed'](_0xf2ee0e,!0x0)));}),null!==_0xf2ee0e['previous']?this['_updateController'](_0xf2ee0e['head']):this['_handleSuggestionControllerDelayed'](_0xf2ee0e,!0x1);}),this['listenTo'](_0x138159,'suggestionUnloaded',(_0x33e9ce,_0x23356d,_0x59dab0)=>{this['stopListening'](_0x23356d,'change:previous'),this['_handleControllerBuffer']['delete'](_0x23356d),this['_suggestionToController']['has'](_0x23356d)&&this['_destroyController'](_0x23356d),_0x59dab0&&this['_updateController'](_0x59dab0['head']);}),this['listenTo'](_0x138159,'suggestionChanged',(_0x56cbc2,_0x1f849d)=>{this['_updateController'](_0x1f849d);}),this['listenTo'](_0x349308,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x10c59a,'addComment',(_0x83f7a5,{threadId:_0x47c307,isFromAdapter:_0x5e00d0})=>{if(_0x5e00d0||!_0x138159['hasSuggestion'](_0x47c307))return;const _0x155278=_0x138159['getSuggestion'](_0x47c307);this['_suggestionToController']['get'](_0x155278)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2538bf=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1bcdcf;for(const _0x5e601d in _0x2538bf){const _0x39d267=_0x5e601d,_0x9b1f7f=_0x2538bf[_0x39d267];if('trackChangesLicenseKeyValid'==_0x9b1f7f||'trackChangesLicenseKeyInvalid'==_0x9b1f7f||'trackChangesLicenseKeyExpired'==_0x9b1f7f||'trackChangesLicenseKeyDomainLimit'==_0x9b1f7f||'trackChangesLicenseKeyNotAllowed'==_0x9b1f7f||'trackChangesLicenseKeyEvaluationLimit'==_0x9b1f7f||'trackChangesLicenseKeyTrialLimit'==_0x9b1f7f||'trackChangesLicenseKeyUsageLimit'==_0x9b1f7f){delete _0x2538bf[_0x39d267],_0x1bcdcf=_0x9b1f7f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x1bcdcf&&_0x2538bf['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x1bcdcf&&_0x2538bf['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x1bcdcf&&_0x2538bf['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x1bcdcf&&_0x2538bf['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x1bcdcf&&_0x2538bf['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x1bcdcf&&_0x2538bf['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x1bcdcf&&_0x2538bf['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x5d3f5a){const _0x3853c6=this['_suggestionToController']['get'](_0x5d3f5a);if(!_0x3853c6)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x3853c6['view'])||null;}['getSuggestionForAnnotation'](_0x1b2229){const _0x19afe9=this['_viewToController']['get'](_0x1b2229['innerView']);return _0x19afe9?_0x19afe9['model']:null;}['_refreshActiveMarkers'](){const _0x5e08f7=this['editor']['plugins']['get']('Annotations'),_0x42fdf3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3f3ee0=Array['from'](_0x5e08f7['activeAnnotations'],_0x57e1e0=>_0x57e1e0['innerView'])['filter'](_0x53d094=>this['_viewToController']['has'](_0x53d094)),_0x2bd676=[];for(const _0x328806 of _0x3f3ee0){const _0x42f852=this['_viewToController']['get'](_0x328806)['model']['getAllAdjacentSuggestions']();_0x2bd676['push'](..._0x42f852['reduce']((_0x421d8e,_0x4b6bca)=>[..._0x421d8e,..._0x4b6bca['getMarkerNames']()],[]));}_0x42fdf3['activeMarkers']=_0x2bd676;}['_addUIComponentsToFactory'](){const _0x46d8d6=this['editor'],_0x4e048e=_0x46d8d6['locale'],_0x250822=o(_0x4e048e,'Track\x20changes'),_0x12a7f7=new _0x1cf2e2([{'type':'switchbutton','model':new _0x506e9b({'withText':!0x0,'isToggleable':!0x0,'label':_0x250822,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x506e9b({'withText':!0x0,'label':o(_0x4e048e,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x506e9b({'withText':!0x0,'label':o(_0x4e048e,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x506e9b({'withText':!0x0,'label':o(_0x4e048e,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x506e9b({'withText':!0x0,'label':o(_0x4e048e,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x46d8d6['plugins']['has']('TrackChangesPreview')&&_0x12a7f7['addMany']([{'type':'separator'},{'type':'button','model':new _0x506e9b({'withText':!0x0,'label':o(_0x4e048e,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0xb5f05b of _0x12a7f7)if(ke(_0xb5f05b)){const _0x15eaba=_0x46d8d6['commands']['get'](_0xb5f05b['model']['commandName']);_0xb5f05b['model']['bind']('isOn','isEnabled')['to'](_0x15eaba,'value','isEnabled');}_0x46d8d6['ui']['componentFactory']['add']('trackChanges',_0x18ea87=>this['_createToolbarButton'](_0x18ea87,_0x12a7f7,_0x250822)),_0x46d8d6['ui']['componentFactory']['add']('menuBar:trackChanges',_0x1d2a4b=>this['_createMenuBarMenu'](_0x1d2a4b,_0x12a7f7,_0x250822));}['_createToolbarButton'](_0x738abf,_0x274d13,_0x249bcc){const _0x57c87e=_0x5a72bb(_0x738abf,_0x379a1e),_0x2500ca=this['editor']['commands']['get']('trackChanges');_0x57c87e['buttonView']['set']({'tooltip':_0x249bcc,'label':_0x249bcc,'icon':_0x34b412}),_0x57c87e['buttonView']['bind']('isOn')['to'](_0x2500ca,'value'),_0x57c87e['buttonView']['on']('execute',()=>{_0x2500ca['execute'](),this['editor']['editing']['view']['focus']();}),_0x228178(_0x57c87e,_0x274d13,{'role':'menu'});const _0x674b89=[];for(const _0x1a4a4a of _0x274d13)ke(_0x1a4a4a)&&_0x674b89['push'](this['editor']['commands']['get'](_0x1a4a4a['model']['commandName']));const _0x35bf82=_0x57c87e['buttonView'];return _0x35bf82['actionView']['unbind']('isEnabled'),_0x35bf82['arrowView']['unbind']('isEnabled'),_0x35bf82['actionView']['bind']('isEnabled')['to'](_0x2500ca,'isEnabled'),_0x35bf82['arrowView']['bind']('isEnabled')['toMany'](_0x674b89,'isEnabled',(..._0x2e607c)=>_0x2e607c['some'](_0x209525=>_0x209525)),_0x57c87e['on']('execute',_0x3eafbf=>{this['editor']['execute'](_0x3eafbf['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x57c87e;}['_createMenuBarMenu'](_0x47dc69,_0x2f8013,_0x2c941b){const _0xd39d78=new _0x40e698(_0x47dc69),_0x5efe2c=this['editor']['commands']['get']('trackChanges');_0xd39d78['buttonView']['set']({'label':_0x2c941b,'icon':_0x34b412});const _0x377918=new _0x27bc01(_0x47dc69);for(const _0x393631 of _0x2f8013){if('separator'==_0x393631['type']){_0x377918['items']['add'](new _0x1c278e(_0x47dc69));continue;}const _0x3dfdd1=new _0x31cd3e(_0x47dc69,_0xd39d78),_0x416975=new _0x5d6f0b(_0x47dc69),_0x46c3ba=_0x393631['model'];_0x416975['bind'](...Object['keys'](_0x46c3ba))['to'](_0x46c3ba),_0x416975['delegate']('execute')['to'](_0xd39d78),_0x416975['on']('execute',()=>{this['editor']['execute'](_0x46c3ba['commandName']),this['editor']['editing']['view']['focus']();}),_0x3dfdd1['children']['add'](_0x416975),_0x377918['items']['add'](_0x3dfdd1);}return _0xd39d78['bind']('isEnabled')['to'](_0x5efe2c,'isEnabled'),_0xd39d78['panelView']['children']['add'](_0x377918),_0xd39d78;}['_initializeController'](_0x26e625){const _0x53f317=this['editor'],_0xa988bd=_0x53f317['config'],_0x5dc46a=_0x53f317['plugins']['get']('Annotations'),_0x199b32=_0x53f317['plugins']['get']('CommentsRepository'),_0x218e8f=_0x53f317['plugins']['get']('EditorAnnotations'),_0x35e6c1=_0x53f317['plugins']['get'](_0x339440)['me'],_0x21c13d=_0xa988bd['get']('trackChanges')['SuggestionThreadView'],_0x281ccc=_0xa988bd['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x45ea48,CommentThreadInputView:_0x360a1e}=_0x53f317['plugins']['get']('CommentsUI');let _0x2f39ba,_0x59e4dd,_0x2a083b;this['_annotationViews']['has'](_0x26e625['id'])?(_0x59e4dd=this['_annotationViews']['get'](_0x26e625['id']),_0x2f39ba=_0x59e4dd['mainView']):(_0x2f39ba=new _0x21c13d(_0x53f317['locale'],_0x26e625,_0x35e6c1,{'disableComments':this['_disableComments'],'editorConfig':{..._0xa988bd['get']('comments.editorConfig'),'licenseKey':_0xa988bd['get']('licenseKey')},'maxCommentsWhenCollapsed':_0xa988bd['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0xa988bd['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0xa988bd['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x2261fe(_0xa988bd['get']('locale'),_0x53f317['locale']),'CommentView':_0xa988bd['get']('comments')['CommentView'],'CommentsListView':_0x45ea48,'CommentThreadInputView':_0x360a1e,'SuggestionView':_0x281ccc}),_0x2f39ba['suggestionView']['acceptButton']['on']('execute',()=>{_0x53f317['editing']['view']['focus']();}),_0x2f39ba['suggestionView']['discardButton']['on']('execute',()=>{_0x53f317['editing']['view']['focus']();}),_0x59e4dd=_0x5dc46a['createAnnotationView'](this['editor']['locale'],_0x2f39ba),_0x59e4dd['bind']('isDirty')['to'](_0x2f39ba,'isDirty'),_0x59e4dd['bind']('length')['to'](_0x2f39ba),_0x59e4dd['bind']('type')['to'](_0x2f39ba,'type',_0x5d858c=>'suggestion-'+_0x5d858c),_0x2f39ba['on']('escape',()=>{_0x2a083b['fire']('escape');}),this['_annotationViews']['set'](_0x26e625['id'],_0x59e4dd));const _0x209c04=_0x199b32['createCommentThreadController'](_0x26e625['commentThread'],_0x2f39ba),_0x1d4652=new pe(_0x53f317,_0x26e625,_0x2f39ba,_0x209c04),_0x24a4d9=_0x26e625['getAllAdjacentSuggestions']()['filter'](_0x319ce6=>_0x319ce6['isInContent']);_0x2f39ba['descriptionParts']=_0x53f317['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x24a4d9),this['_suggestionToController']['set'](_0x26e625,_0x1d4652),this['_viewToController']['set'](_0x2f39ba,_0x1d4652);const _0x11261a=()=>{const _0x3c182d=[],_0x1cf38f=_0x26e625['getAllAdjacentSuggestions']()['filter'](_0x4cf44b=>_0x4cf44b['isInContent']);for(const _0x5ab575 of _0x1cf38f)_0x3c182d['push'](..._0x5ab575['getMarkers']());return _0x499841(_0x53f317['editing'],_0x3c182d);};_0x2a083b=_0x5dc46a['createAnnotation']({'view':_0x59e4dd,'target':_0x11261a,'type':()=>'suggestion-'+_0x1d4652['view']['type'],'isVisible':!!_0x11261a()}),_0x199b32['_bindAnnotationToEditors'](_0x2f39ba,_0x2a083b),_0x5dc46a['add'](_0x2a083b),_0x218e8f['registerAnnotation'](_0x2a083b);}['_destroyController'](_0x241ecf){const _0x4a68d6=this['editor']['plugins']['get']('CommentsRepository'),_0x1ee080=this['editor']['plugins']['get']('Annotations'),_0xa0d9af=this['_suggestionToController']['get'](_0x241ecf),_0x211449=_0xa0d9af['view'],_0x96c700=_0x1ee080['getByInnerView'](_0x211449);_0x4a68d6['_unbindEditors'](_0x211449),_0x96c700&&_0x1ee080['remove'](_0x96c700),this['_suggestionToController']['delete'](_0x241ecf),this['_viewToController']['delete'](_0x211449),_0xa0d9af['destroy']();}['_updateController'](_0x3bd430){if(!_0x3bd430['isInContent']||!this['_suggestionToController']['has'](_0x3bd430))return;const _0x129e6b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x169bb6=this['_suggestionToController']['get'](_0x3bd430),_0x521de9=_0x3bd430['getAllAdjacentSuggestions']();_0x169bb6['view']['descriptionParts']=_0x129e6b['descriptionFactory']['getDescriptions'](_0x521de9);}['destroy'](){for(const _0x55ed02 of this['_suggestionToController']['keys']())this['_destroyController'](_0x55ed02);for(const _0x4a7266 of this['_annotationViews']['values']())_0x4a7266['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x5691c0){return'model'in _0x5691c0;}class Fe extends _0x573845{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x174605){this['editor']['plugins']['get'](d)['adapter']=_0x174605;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x1d8314){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x1d8314);}['getSuggestions']({skipNotAttached:_0x5073a6=!0x1,toJSON:_0x324934=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x5073a6,'toJSON':_0x324934});}['getSuggestion'](_0x446904){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x446904);}}const p=['Pagination'];class re extends _0x573845{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x489209=this['editor'];if(_0x489209['config']['define']('trackChangesData.editorCreator',_0x9c0b52=>{const _0x39bc73=_0x489209['model']['document']['getRootNames']()['reduce']((_0x2ca9e1,_0x4ffef4)=>(_0x2ca9e1[_0x4ffef4]='',_0x2ca9e1),{});return _0x489209['constructor']['create'](_0x39bc73,_0x9c0b52);}),'function'!=typeof _0x489209['config']['get']('trackChangesData')['editorCreator'])throw new _0x55c846('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x11ff41){return P(this['editor'],!0x0,_0x11ff41);}['getDataWithDiscardedSuggestions'](_0x5c95bb){return P(this['editor'],!0x1,_0x5c95bb);}}class Ge extends _0x573845{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x59ffa7){function _0x2870f9(_0x5688ef){return _0x5688ef['map'](_0x102c6c=>String['fromCharCode'](_0x102c6c))['join']('');}super(_0x59ffa7),this['result']='end',_0x59ffa7[_0x2870f9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2870f9([0x76,0x69,0x65,0x77])][_0x2870f9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2870f9([0x61,0x75,0x74,0x6f]),_0x59ffa7[_0x2870f9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x2870f9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2870f9([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x2870f9([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x2870f9([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 He(_0x2ab04a){return void 0x0!==_0x2ab04a['getRootsAttributes'];}async function P(_0x39dbd6,_0x362cb7,_0x3b03c4){const _0x4c7f4c=_0x2b319f(_0x39dbd6,p);_0x4c7f4c['plugins']['push'](d,Ge),_0x4c7f4c['rootsAttributes']=He(_0x39dbd6)?_0x39dbd6['getRootsAttributes']():void 0x0;const _0x40db54=document['createDocumentFragment'](),_0x26e923=_0x39dbd6['config']['get']('trackChangesData')['editorCreator'],_0x59d631=await _0x26e923(_0x4c7f4c,()=>function(_0x8c5507){const _0x489948=document['createElement']('div');return _0x8c5507['appendChild'](_0x489948),_0x489948;}(_0x40db54));!function(_0xebfafe,_0x419012){const _0x4301cf=_0xebfafe['model']['document']['getRootNames']()['reduce']((_0x55f05e,_0x1c92e1)=>(_0x55f05e[_0x1c92e1]=_0xebfafe['data']['get']({'rootName':_0x1c92e1}),_0x55f05e),{}),_0x357bc7=_0xebfafe['plugins']['get']('Users')['users']['map'](_0x15d376=>({'id':_0x15d376['id'],'name':_0x15d376['name']})),_0x25da0e=_0xebfafe['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x143005=_0xebfafe['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x256898=_0x419012['plugins']['get']('Users'),_0x5202e6=_0x419012['plugins']['get']('TrackChangesEditing'),_0xc20088=_0x419012['plugins']['get']('CommentsRepository');for(const _0x41dd9a of _0xc20088['getCommentThreads']())_0x41dd9a['remove']();for(const _0x2c8396 of _0x357bc7)_0x256898['getUser'](_0x2c8396['id'])||_0x256898['addUser'](_0x2c8396);_0x256898['me']||_0x256898['useAnonymousUser']();for(const _0x26508f of _0x143005)_0xc20088['addCommentThread'](_0x26508f);for(const _0xd336c8 of _0x25da0e)_0x5202e6['addSuggestionData'](_0xd336c8);_0x419012['data']['set'](_0x4301cf);}(_0x39dbd6,_0x59d631),_0x59d631['execute'](_0x362cb7?'acceptAllSuggestions':'discardAllSuggestions');const _0x52b8c6=He(_0x59d631)?_0x59d631['getFullData'](_0x3b03c4):_0x59d631['data']['get'](_0x3b03c4);return await _0x59d631['destroy'](),_0x52b8c6;}class Me extends _0x51b4e6{['options'];constructor(_0x417557,_0x3d5527){super(_0x417557),this['options']=_0x3d5527,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'](_0x345d0d,_0x2900b4){if(!this['element'])return;const _0x28d4ea=[];for(const [_0x10453a,_0x4b0db2]of _0x345d0d){const _0xf92e65=document['createElement']('div');_0xf92e65['setAttribute']('data-ck-root-name',_0x10453a),_0xf92e65['className']=_0x4b0db2['classes']+'\x20ck-track-changes-preview__root-container',_0xf92e65['innerHTML']=_0x4b0db2['content'],_0x28d4ea['push'](_0xf92e65);}_0x2900b4(this['element'],_0x28d4ea),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x3c0660{constructor(_0x269211){super(_0x269211),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x2790a8=this['editor'],_0x553585=_0x2790a8['locale'],_0x2d4002=_0x2790a8['plugins']['get']('Dialog');let _0x8a69f1;const _0x4a823e=function(_0x3dfada){const _0x3e048a={};if('editables'in _0x3dfada['ui']['view']){for(const [_0x187625,_0x6b707]of Object['entries'](_0x3dfada['ui']['view']['editables']))_0x3e048a[_0x187625]=_0x6b707['element'];}else _0x3e048a[_0x3dfada['model']['document']['getRootNames']()[0x0]]=_0x3dfada['ui']['view']['editable']['element'];return _0x3e048a;}(_0x2790a8),_0x5645d7=function(_0x381b69){let _0xc6bd96=0x0;for(const _0x280702 of Object['values'](_0x381b69))_0xc6bd96=Math['max'](_0xc6bd96,_0x280702['getBoundingClientRect']()['width']);let _0x307cdd=0x0;for(const _0x1b728f of Object['values'](_0x381b69))_0x307cdd+=_0x1b728f['getBoundingClientRect']()['height'];const _0x43a247=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x3f4bce=Math['min'](_0x307cdd,_0x43a247);return{'width':_0xc6bd96,'height':_0x3f4bce};}(_0x4a823e);_0x2d4002['show']({'id':'finalContentPreview','title':o(_0x553585,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x553585,{'dialogRects':_0x5645d7}),'onHide':()=>{_0x8a69f1['detachFromDom']();},'onShow':()=>{_0x2790a8['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x619f65=>{const _0x126b37=this['_standarizeRootsData'](_0x619f65,_0x2790a8,_0x4a823e);_0x2d4002['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x126b37,_0x2790a8['config']['get']('trackChanges.preview.renderFunction'));}),_0x8a69f1=new _0x307f39(_0x553585,[_0x2d4002['view']]),_0x8a69f1['attachToDom'](),_0x8a69f1['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x2790a8['once']('destroy',()=>{_0x8a69f1['detachFromDom']();});const _0x42996a=_0x2d4002['view']['headerView']['class'];_0x2d4002['view']['headerView']['class']=_0x42996a?_0x42996a+'\x20ck-reset_all':'ck-reset_all',_0x2d4002['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x2d4002['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x473619=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x132706=_0x473619['previewMode'],_0x1b9b91={};if('$labels'===_0x132706){for(const _0x4cc508 of _0x473619['getMergeFieldsIds']())_0x1b9b91[_0x4cc508]=_0x473619['getLabel'](_0x4cc508)||_0x4cc508;}else{const _0x33ccc6='$defaultValues'===_0x132706?_0x473619['getDefaultValues']():_0x473619['getDataSetValues'](_0x132706,!0x0);for(const _0x4e08ed of Object['entries'](_0x33ccc6)){const [_0x3fc93e,_0x21f8b8]=_0x4e08ed;_0x1b9b91[_0x3fc93e]=null!==_0x21f8b8?_0x21f8b8:_0x473619['getLabel'](_0x3fc93e)||_0x3fc93e;}}return{'mergeFieldsData':_0x1b9b91};}['_standarizeRootsData'](_0x1272ae,_0x175aab,_0x4c350d){let _0x10a412;if('string'==typeof _0x1272ae){const _0x19e4a2=_0x175aab['model']['document']['getRootNames']()[0x0];_0x10a412={[_0x19e4a2]:_0x1272ae};}else _0x10a412=_0x1272ae;const _0x35104a=this['_fixMediaEmbeds'](_0x10a412,_0x175aab),_0x117675=function(_0x3905e1,_0x510f26){for(const [_0x5c4b48,_0x5c0f07]of _0x3905e1)_0x5c0f07['classes']=_0x510f26[_0x5c4b48]['classList']['value']['replace']('ck-focused','');return _0x3905e1;}(this['_sortRoots'](_0x175aab)['reduce']((_0x5c7889,_0x1bb934)=>(_0x5c7889['push']([_0x1bb934,{'content':_0x35104a[_0x1bb934],'classes':''}]),_0x5c7889),[]),_0x4c350d);return _0x117675;}['_fixMediaEmbeds'](_0x135377,_0x3c6a46){if(!_0x3c6a46['plugins']['has']('MediaEmbedEditing'))return _0x135377;const _0x1f34bb=_0x3c6a46['plugins']['get']('MediaEmbedEditing');for(const [_0x281a3a,_0xf955b9]of Object['entries'](_0x135377)){const _0x85bbbd=document['createElement']('div');_0x85bbbd['innerHTML']=_0xf955b9,(_0x85bbbd['querySelectorAll']('figure.media')['forEach'](_0x279f86=>{const _0xb192bf=_0x279f86['querySelector']('oembed');if(_0xb192bf){const _0x5ad111=_0xb192bf['getAttribute']('url');if(_0x5ad111){const _0x163be1=_0x1f34bb['registry']['getMediaViewElement'](new _0x29bf86(_0x3c6a46['editing']['view']['document']),_0x5ad111,{'elementName':'','renderForEditingView':!0x0}),_0x569f61=document['createElement']('div');_0x569f61['classList']['add']('ck-media__wrapper'),_0x163be1['render'](_0x569f61,_0x3c6a46['editing']['view']['domConverter']),_0xb192bf['replaceWith'](_0x569f61);}}}),_0x135377[_0x281a3a]=_0x85bbbd['innerHTML']);}return _0x135377;}['_sortRoots'](_0x444457){if(!function(_0x231476){return void 0x0!==_0x231476['getRootsAttributes'];}(_0x444457))return _0x444457['model']['document']['getRootNames']();const _0x384949=[],_0x234a07=new Map();for(const _0x37eb4f of _0x444457['model']['document']['getRootNames']()){const _0x446a93=_0x444457['editing']['view']['getDomRoot'](_0x37eb4f)['getClientRects']()['item'](0x0);_0x384949['push'](_0x37eb4f),_0x234a07['set'](_0x37eb4f,_0x446a93);}return _0x384949['sort']((_0x32843d,_0x5c107a)=>{const _0xaf3c5b=_0x234a07['get'](_0x32843d),_0x2dcaf2=_0x234a07['get'](_0x5c107a);return _0xaf3c5b['y']-_0x2dcaf2['y']||_0xaf3c5b['x']-_0x2dcaf2['x'];}),_0x384949;}}class $e extends _0x573845{static get['requires'](){return[re,_0x525d08];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4ffc8d){super(_0x4ffc8d),_0x4ffc8d['commands']['add']('previewFinalContent',new te(this['editor'])),_0x4ffc8d['config']['define']('trackChanges.preview.renderFunction',(_0x14c309,_0x5c24a9)=>{for(const _0x22b870 of _0x5c24a9)_0x14c309['appendChild'](_0x22b870);});}}export{D as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,$ as DiscardSuggestionCommand,M as ExecuteOnAllSuggestionsCommand,B as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,T as Suggestion,x as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Fe as TrackChanges,N as TrackChangesCommand,re as TrackChangesData,Ge as TrackChangesDataGetter,d as TrackChangesEditing,$e as TrackChangesPreview,u as TrackChangesUI};
|