@ckeditor/ckeditor5-track-changes 46.1.0 → 46.1.1-alpha.1
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
|
-
_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};
|
|
23
|
+
import{Command as _0x9cc05d,Plugin as _0x518a62,PendingActions as _0x4019e4}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x5d7906,ObservableMixin as _0x14aa84,uid as _0x12db8f,priorities as _0xf34a83,insertToPriorityArray as _0x1537e2,toArray as _0x26db84,logWarning as _0x5774a3,getEnvKeystrokeText as _0x2d09aa,FocusTracker as _0x2a2c19,KeystrokeHandler as _0x47beb0,Collection as _0x50bcb7}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x54dbde,IconCancel as _0x187b01,IconTrackChanges as _0x10634d}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x65a788,View as _0x62fb,ViewCollection as _0x5aff31,FocusCycler as _0x4501f4,UIModel as _0x1d3d23,createDropdown as _0x202277,SplitButtonView as _0x134207,addListToDropdown as _0x555af9,MenuBarMenuView as _0x4281c7,MenuBarMenuListView as _0xd9896b,ListSeparatorView as _0x574bf3,MenuBarMenuListItemView as _0x3bf19b,MenuBarMenuListItemButtonView as _0x37c90c,BodyCollection as _0x5966c9,Dialog as _0x1faa36}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x4e2ba2,hashObject as _0x864524,surroundingMarkersDetector as _0x1988d5,FOCUS_ANNOTATION_KEYSTROKE as _0x744245,AriaDescriptionView as _0x5d66e1,setupThreadKeyboardNavigation as _0xea169a,trimHtml as _0x4a5cc2,UserView as _0x356495,LateFocusButtonView as _0x2495fa,getDateTimeFormatter as _0x121810,getAllMarkersDomElementsSorted as _0x4ed3db,sanitizeEditorConfig as _0x3faa03}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x218d31,ModelLiveRange as _0x5d0c54,ModelLivePosition as _0x56c99f,ViewDowncastWriter as _0x478d34}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x3d5196,toWidget as _0x2e198a}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x466f28,set as _0x1270a3,isEqual as _0x3a5521,unset as _0x2f5512,omit as Ut}from'es-toolkit/compat';import{Delete as _0x5819bb,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x22b852}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x5d2866}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class N extends _0x9cc05d{['_enabledCommands'];constructor(_0x552885,_0x94d0c3){super(_0x552885),this['_enabledCommands']=_0x94d0c3,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 _0x40ede2 of this['editor']['commands']['commands']())_0x40ede2['affectsData']&&!this['_enabledCommands']['has'](_0x40ede2)&&_0x40ede2['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x58d2bc of this['editor']['commands']['commands']())_0x58d2bc['affectsData']&&!this['_enabledCommands']['has'](_0x58d2bc)&&_0x58d2bc['clearForceDisabled']('TrackChangesCommand');}}class D extends _0x9cc05d{['_suggestions'];constructor(_0x3639a1,_0xd64285){super(_0x3639a1),this['_suggestions']=_0xd64285,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x264024){const _0x260ed=this['_suggestions']['get'](_0x264024);if(!_0x260ed)throw new _0x5d7906('track-changes-accept-suggestion-not-found',this);const _0x5dbfd7=_0x260ed['getRanges']();this['editor']['model']['canEditAt'](_0x5dbfd7)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x260ed);}}class $ extends _0x9cc05d{['_suggestions'];constructor(_0x5e7c30,_0x5bbb54){super(_0x5e7c30),this['_suggestions']=_0x5bbb54,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4626c2){const _0x9cb922=this['_suggestions']['get'](_0x4626c2);if(!_0x9cb922)throw new _0x5d7906('track-changes-discard-suggestion-not-found',this);const _0x20107a=_0x9cb922['getRanges']();this['editor']['model']['canEditAt'](_0x20107a)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x9cb922);}}function ls(_0x5baa87,_0x5d056f){let _0x3c06a2='';return _0x3c06a2+=_0x5baa87['split']('*')['map']((_0x32003b,_0x3d6d5b)=>_0x3d6d5b%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+Zt(_0x32003b)+'</span>':Zt(_0x32003b))['join'](''),_0x5d056f&&(_0x3c06a2+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x5d056f['value']+'\x22\x20title=\x22'+_0x5d056f['title']+'\x22></span>'),_0x3c06a2;}function Zt(_0x58447f){const _0x1729dc=document['createElement']('span');return _0x1729dc['innerText']=_0x58447f,_0x1729dc['innerHTML'];}function ts(_0x262f5f){return _0x262f5f['sort']((_0xea2a5b,_0x5ad87d)=>'attribute'===_0xea2a5b['type']&&'attribute'!==_0x5ad87d['type']?-0x1:'attribute'!==_0xea2a5b['type']&&'attribute'===_0x5ad87d['type']?0x1:'deletion'==_0xea2a5b['type']&&'deletion'!=_0x5ad87d['type']?-0x1:'deletion'!=_0xea2a5b['type']&&'deletion'==_0x5ad87d['type']?0x1:0x0);}function to(_0x462b4e,_0xcc590e){let _0x53a10f,_0x1a5493=0x0;const _0x1e864a=[],_0x5622d5=_0xcc590e['schema'];for(;_0x1a5493<_0x462b4e['length'];){const _0x36ea09=_0x462b4e[_0x1a5493],_0xff3c28=_0x462b4e[_0x1a5493+0x1];_0x53a10f||(_0x53a10f=_0xcc590e['createPositionBefore'](_0x36ea09)),tn(_0xcc590e,_0x36ea09,_0xff3c28)||(_0x1e864a['push'](_0xcc590e['createRange'](_0x53a10f,_0x5622d5['isObject'](_0x36ea09)?_0xcc590e['createPositionAfter'](_0x36ea09):_0xcc590e['createPositionAt'](_0x36ea09,'end'))),_0x53a10f=null),_0x1a5493++;}return _0x1e864a;}function tn(_0x5f4ed2,_0x45172d,_0x1d981f){if(!_0x1d981f)return!0x1;const _0x446094=_0x5f4ed2['createPositionAfter'](_0x45172d),_0xa5b639=_0x5f4ed2['createPositionBefore'](_0x1d981f);return _0x446094['isTouching'](_0xa5b639);}function rs(_0x5c30f4,_0xf010cb,_0x4b2886){for(;_0x4b2886['length'];){const _0x8594ba=_0x4b2886['splice'](0x0,0x64);_0x5c30f4['change'](()=>{for(const _0x27b5a1 of _0x8594ba)_0x27b5a1['isInContent']&&_0xf010cb['execute'](_0x27b5a1['id']);});}}class M extends _0x9cc05d{['_command'];['_suggestions'];constructor(_0x538b34,_0x399187,_0x2fe267){super(_0x538b34),this['_command']=_0x399187,this['_suggestions']=_0x2fe267,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x2eaaf1=Array['from'](this['_suggestions']['values']())['some'](_0x3c31d4=>_0x3c31d4['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x2eaaf1;}['execute'](){const _0x197adc=ts(Array['from'](this['_suggestions']['values']()));for(const _0x4f1483 of _0x197adc){const _0x17eb02=_0x4f1483['getRanges']();if(!this['editor']['model']['canEditAt'](_0x17eb02))return;}rs(this['editor']['model'],this['_command'],_0x197adc);}}class B extends _0x9cc05d{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x1c5786,_0x32b258,_0x4b160a){super(_0x1c5786),this['_command']=_0x32b258,this['_suggestions']=_0x4b160a,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x4d5f31=this['editor']['model']['document']['selection'],_0x1782e5=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x33e088,_0x16c66e){const _0x4e08d5=Array['from'](_0x33e088['getRanges']()),_0x496213=new Set();for(const _0x4594e4 of _0x16c66e)if(_0x4594e4['isInContent']){for(const _0x498866 of _0x4e08d5)for(const _0x614555 of _0x4594e4['getRanges']())(_0x498866['isIntersecting'](_0x614555)||_0x33e088['isCollapsed']&&!_0x4594e4['isMultiRange']&&_0x4594e4['next']&&_0x614555['end']['isTouching'](_0x498866['start']))&&_0x496213['add'](_0x4594e4);}return _0x496213;}(_0x4d5f31,_0x1782e5),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x175505=ts(Array['from'](this['_selectedSuggestions']));for(const _0x5903dd of _0x175505){const _0x184740=_0x5903dd['getRanges']();if(!this['editor']['model']['canEditAt'](_0x184740))return;}rs(this['editor']['model'],this['_command'],_0x175505);}}class T extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x14aa84(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x331d8a,_0x498765){super(),this['id']=_0x498765['id'],this['type']=_0x498765['type'],this['subType']=_0x498765['subType']||null,this['author']=_0x498765['author'],this['creator']=_0x498765['creator']||_0x498765['author'],this['isExternal']=Boolean(_0x498765['attributes']&&_0x498765['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x498765['originalSuggestionId']||null,this['_model']=_0x331d8a,this['_onAccept']=_0x498765['onAccept'],this['_onDiscard']=_0x498765['onDiscard'],this['_onAttributesChange']=_0x498765['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x498765['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 _0x45766f=this;for(;_0x45766f['previous'];)_0x45766f=_0x45766f['previous'];return _0x45766f;}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'](_0x3f6299){this['_markerNames']['add'](_0x3f6299);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x55a41a=>this['_model']['markers']['get'](_0x55a41a))['filter'](_0x31d1c7=>_0x31d1c7);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0xd588d2=>{for(const _0x87120f of this['getMarkers']())_0xd588d2['removeMarker'](_0x87120f);}),this['_markerNames']['clear']();}['removeMarker'](_0x4ebd16){this['_model']['change'](_0x80dfa0=>{_0x80dfa0['removeMarker'](_0x4ebd16);}),this['_markerNames']['delete'](_0x4ebd16);}['addRange'](_0x10c415){const _0x4f7a89='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x4f7a89),this['_model']['change'](_0x51e8d3=>{_0x51e8d3['addMarker'](_0x4f7a89,{'range':_0x10c415,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x3fecc2){for(const _0x31045f of this['getRanges']())if(_0x31045f['isIntersecting'](_0x3fecc2))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x473546=>_0x473546['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x2338c3,_0x469989)=>[..._0x2338c3,..._0x469989['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x40fe98=this['getRanges']();if(0x1!=_0x40fe98['length'])return null;const _0x296ac7=_0x40fe98[0x0],_0x1f6d7c=_0x296ac7['start']['nodeAfter'],_0x256b52=_0x296ac7['end']['nodeBefore'];return _0x1f6d7c instanceof _0x218d31?_0x1f6d7c!=_0x256b52?null:_0x1f6d7c: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 _0x4e5df0=[];let _0x13c8b7=this['head'];for(;_0x13c8b7;)_0x4e5df0['push'](_0x13c8b7),_0x13c8b7=_0x13c8b7['next'];return _0x4e5df0;}['setAttribute'](_0x324657,_0x2c2a68){const _0x24935e=_0x466f28(this['attributes']);_0x1270a3(_0x24935e,_0x324657,_0x2c2a68),_0x3a5521(_0x24935e,this['attributes'])||(this['attributes']=_0x24935e,this['_onAttributesChange'](_0x24935e));}['removeAttribute'](_0x5546b2){const _0x2de209=_0x466f28(this['attributes']);_0x2f5512(_0x2de209,_0x5546b2),_0x3a5521(_0x2de209,this['attributes'])||(this['attributes']=_0x2de209,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 _0x12db8f()['substr'](0x1,0x5);}}function o(_0x18bb01,_0x5dd38d,_0x4def42){const _0xabb367=_0x18bb01['t'],t=_0x18bb01['t'];switch(_0x5dd38d){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',_0x4def42);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x4def42);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x4def42);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x4def42);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x4def42);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',_0x4def42);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x4def42);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',_0x4def42);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x4def42);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x4def42);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x4def42);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x4def42);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x4def42);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x4def42);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x4def42);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x4def42);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x4def42);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x4def42);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x4def42);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x4def42);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x4def42);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x4def42);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x4def42);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x4def42);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x4def42);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'},_0x4def42);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x4def42);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x4def42);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x4def42);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x4def42);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x4def42);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x4def42);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x4def42);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'},_0x4def42);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x4def42);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x4def42);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x4def42);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x4def42);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'},_0x4def42);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x4def42);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'},_0x4def42);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'},_0x4def42);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x4def42);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'},_0x4def42);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x4def42);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'},_0x4def42);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x4def42);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x4def42);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'},_0x4def42);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x4def42);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 _0xabb367({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x4def42);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0xabb367({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x4def42);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x4def42);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'},_0x4def42);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'},_0x4def42);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'},_0x4def42);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x5dd38d;}}class x{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x2cef86,_0x5ac0c4){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x2cef86,this['_locale']=_0x5ac0c4;}['getDescriptions'](_0x18abd5){const _0x2b6769=[],_0x417d08=new Set(),_0x4f60d5=new Set();for(let _0x21f2aa=0x0;_0x21f2aa<_0x18abd5['length'];_0x21f2aa++){const _0x51b341=_0x18abd5[_0x21f2aa];if(!_0x51b341['isInContent'])continue;const _0x47cad6=this['_handleCustomCallbackDescription'](_0x51b341);if(_0x47cad6){if(null!=_0x51b341['subType']){if(_0x417d08['has'](_0x51b341['subType']))continue;_0x417d08['add'](_0x51b341['subType']);}_0x2b6769['push'](_0x47cad6);}else{if('attribute'==_0x51b341['type']){const _0x470f5d=_0x51b341['data']['key'];if(_0x4f60d5['has'](_0x470f5d))continue;_0x4f60d5['add'](_0x51b341['data']['key']),_0x470f5d==m?this['_handleRenameSuggestionDescription'](_0x2b6769,_0x51b341):this['_handleAttributeSuggestionDescription'](_0x2b6769,_0x51b341);continue;}'insertion'!=_0x51b341['type']&&'deletion'!=_0x51b341['type']||this['_handleInsertRemoveSuggestionDescription'](_0x2b6769,_0x51b341,_0x18abd5[_0x21f2aa+0x1]);}}return this['_resolveDescriptionItems'](_0x2b6769);}['registerDescriptionCallback'](_0x10e2db){this['_customCallbacks']['push'](_0x10e2db);}['registerElementLabel'](_0x8e0d6e,_0x51e257,_0x14d926=_0xf34a83['normal']){'function'==typeof _0x8e0d6e?_0x1537e2(this['_itemLabelsCallbacks'],{'matchingCallback':_0x8e0d6e,'label':_0x51e257,'priority':_0x14d926}):this['_itemLabels']['set'](_0x8e0d6e,_0x51e257);}['registerAttributeLabel'](_0x219025,_0x408940){this['_attributeLabels']['set'](_0x219025,_0x408940);}['getItemLabel'](_0x2c3c1c,_0x325986=0x1){let _0x5fe880;for(const _0x1be3af of this['_itemLabelsCallbacks'])if(_0x1be3af['matchingCallback'](_0x2c3c1c)){_0x5fe880=_0x1be3af['label'];break;}return _0x5fe880||(_0x5fe880=this['_itemLabels']['get'](_0x2c3c1c['name'])),_0x5fe880?_0x5fe880(_0x325986):0x1!==_0x325986?_0x325986+'\x20'+_0x2c3c1c['name']+'s':''+_0x2c3c1c['name'];}['_addDescriptionItems'](_0xcf9923,_0x662984){const _0x3e742b=_0x662984['getFirstRange']()['getWalker'](),_0x19bc86='insertion'==_0x662984['type']?'add':'remove';for(const _0x29b17b of _0x3e742b){const _0x4539f8=_0x29b17b['item'],_0x4e088b=_0xcf9923[_0xcf9923['length']-0x1];if(_0x4539f8['is']('$textProxy'))_0x4e088b&&_0x4e088b['type']['indexOf']('Container')>-0x1&&_0xcf9923['pop'](),_0x4e088b&&'text'==_0x4e088b['type']?_0x4e088b[_0x19bc86]+=_0x4539f8['data']:_0xcf9923['push']({'type':'text','add':'add'==_0x19bc86?_0x4539f8['data']:'','remove':'remove'==_0x19bc86?_0x4539f8['data']:''});else{if(this['_schema']['isObject'](_0x4539f8)){const _0x357f78=_0x4539f8;if(_0x4e088b&&_0x4e088b['type']['indexOf']('Container')>-0x1&&_0xcf9923['pop'](),'elementEnd'==_0x29b17b['type'])continue;_0x4e088b&&_0x4e088b['type']==_0x19bc86+'Object'&&_0x4e088b['element']['name']==_0x357f78['name']?_0x4e088b['quantity']++:_0xcf9923['push']({'type':_0x19bc86+'Object','element':_0x357f78,'quantity':0x1}),_0x3e742b['skip'](_0x1921c6=>!('elementEnd'==_0x1921c6['type']&&_0x1921c6['item']==_0x4539f8));}else{if(this['_schema']['checkChild'](_0x4539f8,'$text')||_0x4539f8['is']('element','softBreak')){const _0x1fd2e3=_0x4539f8;if('add'==_0x19bc86&&'elementStart'==_0x29b17b['type']||'remove'==_0x19bc86&&'elementEnd'==_0x29b17b['type'])continue;if(_0x4e088b&&-0x1==_0x4e088b['type']['indexOf']('Container')){'text'==_0x4e088b['type']&&(_0x4e088b[_0x19bc86]+='\x0a');continue;}let _0x286604;if(_0x286604='add'==_0x19bc86?_0x1fd2e3['nextSibling']&&!this['_schema']['isObject'](_0x1fd2e3['nextSibling'])?_0x1fd2e3['nextSibling']:null:_0x1fd2e3['previousSibling']&&!this['_schema']['isObject'](_0x1fd2e3['previousSibling'])?_0x1fd2e3['previousSibling']:null,_0x1fd2e3['isEmpty']||_0x286604&&_0x286604['isEmpty']){const _0x4665a4=_0x286604&&_0x286604['isEmpty']?_0x286604:_0x1fd2e3;_0x4e088b&&_0x4e088b['type']==_0x19bc86+'EmptyContainer'&&_0x4e088b['element']['name']==_0x4665a4['name']?_0x4e088b['quantity']++:_0xcf9923['push']({'type':_0x19bc86+'EmptyContainer','element':_0x4665a4,'quantity':0x1});}else _0xcf9923['push']({'type':_0x19bc86+'Container','element':_0x1fd2e3});}}}}}['_resolveDescriptionItems'](_0x337096){const _0x6041c7=this['_locale'],_0x5bdeaf=[],_0x3bee16=[],_0x5393b5=[];for(const _0x20fa4a of _0x337096)switch(_0x20fa4a['type']){case'text':if(_0x20fa4a['add']=_0x20fa4a['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x20fa4a['remove']=_0x20fa4a['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x20fa4a['add']&&''!=_0x20fa4a['remove']){_0x5bdeaf['push']({'type':'replace','content':o(_0x6041c7,'REPLACE_TEXT',['\x22'+_0x20fa4a['remove']+'\x22','\x22'+_0x20fa4a['add']+'\x22'])});continue;}if(null!=_0x20fa4a['add']['match'](/^ +$/)){_0x5bdeaf['push']({'type':'insertion','content':o(_0x6041c7,'*Insert:*\x20%0',o(_0x6041c7,'ELEMENT_SPACE',_0x20fa4a['add']['length']))});continue;}if(null!=_0x20fa4a['remove']['match'](/^ +$/)){_0x5bdeaf['push']({'type':'deletion','content':o(_0x6041c7,'*Remove:*\x20%0',o(_0x6041c7,'ELEMENT_SPACE',_0x20fa4a['remove']['length']))});continue;}if(''!=_0x20fa4a['add']){_0x5bdeaf['push']({'type':'insertion','content':o(_0x6041c7,'*Insert:*\x20%0','\x22'+_0x20fa4a['add']+'\x22')});continue;}_0x5bdeaf['push']({'type':'deletion','content':o(_0x6041c7,'*Remove:*\x20%0','\x22'+_0x20fa4a['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x5bdeaf['push']({'type':'insertion','content':o(_0x6041c7,'*Insert:*\x20%0',this['getItemLabel'](_0x20fa4a['element'],_0x20fa4a['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x5bdeaf['push']({'type':'deletion','content':o(_0x6041c7,'*Remove:*\x20%0',this['getItemLabel'](_0x20fa4a['element'],_0x20fa4a['quantity']))});continue;case'addContainer':_0x5bdeaf['push']({'type':'insertion','content':o(_0x6041c7,'*Split:*\x20%0',this['getItemLabel'](_0x20fa4a['element'],_0x20fa4a['quantity']))});continue;case'removeContainer':_0x5bdeaf['push']({'type':'deletion','content':o(_0x6041c7,'*Merge:*\x20%0',this['getItemLabel'](_0x20fa4a['element'],_0x20fa4a['quantity']))});continue;case'addFormat':_0x3bee16['push'](_0x20fa4a['key']);continue;case'removeFormat':_0x5393b5['push'](_0x20fa4a['key']);continue;default:_0x5bdeaf['push'](_0x20fa4a);}if(_0x3bee16['length']){const _0x1d8458=_0x3bee16['map'](_0x3bd751=>this['_attributeLabels']['has'](_0x3bd751)?this['_attributeLabels']['get'](_0x3bd751):_0x3bd751)['join'](',\x20');_0x5bdeaf['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x1d8458)});}if(_0x5393b5['length']){const _0x186b5a=_0x5393b5['map'](_0x1a7547=>this['_attributeLabels']['has'](_0x1a7547)?this['_attributeLabels']['get'](_0x1a7547):_0x1a7547)['join'](',\x20');_0x5bdeaf['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x186b5a)});}return _0x5bdeaf;}['_handleCustomCallbackDescription'](_0x5ea600){for(const _0x4f9f9e of this['_customCallbacks']){const _0x1f5c80=_0x4f9f9e(_0x5ea600);if(_0x1f5c80&&'type'in _0x1f5c80)return _0x1f5c80;}}['_handleAttributeSuggestionDescription'](_0x58427b,_0x17f95a){const _0x1c831e=_0x17f95a['data'],_0x57589e=void 0x0===_0x1c831e['newValue']?'removeFormat':'addFormat';_0x58427b['push']({'type':_0x57589e,'key':_0x1c831e['key']});}['_handleRenameSuggestionDescription'](_0xd5af6f,_0x65a4a5){_0xd5af6f['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x65a4a5['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x2b169b,_0x2ecd4a,_0x40f94f){if(this['_addDescriptionItems'](_0x2b169b,_0x2ecd4a),_0x40f94f&&_0x40f94f['getFirstRange']()&&!_0x2ecd4a['getFirstRange']()['end']['isEqual'](_0x40f94f['getFirstRange']()['start'])){const _0x3b3f5a=_0x2b169b[_0x2b169b['length']-0x1],_0x459f06='insertion'==_0x2ecd4a['type']?'add':'remove';_0x3b3f5a&&'text'==_0x3b3f5a['type']&&(_0x3b3f5a[_0x459f06]+='\x0a');}}}class O extends _0x518a62{['afterInit'](){const _0xc01529=this['editor'],_0x507aeb=_0xc01529['plugins']['get']('TrackChangesEditing');_0xc01529['commands']['get']('showAIAssistant')&&_0x507aeb['enableCommand']('showAIAssistant');}}class E extends _0x518a62{['afterInit'](){const _0x4b3daa=this['editor'],_0x4f1e86=_0x4b3daa['locale'];if(!_0x4b3daa['plugins']['has']('AlignmentEditing'))return;const _0x41d691=_0x4b3daa['plugins']['get']('TrackChangesEditing');_0x41d691['enableDefaultAttributesIntegration']('alignment'),_0x41d691['registerBlockAttribute']('alignment'),_0x41d691['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x4f1e86,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xb6dc08=this['editor'],_0x1d0c04=_0xb6dc08['locale'];_0xb6dc08['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1d8e42=>{if('formatBlock'!=_0x1d8e42['type'])return;const {data:_0x195870}=_0x1d8e42;if(_0x195870&&'alignment'==_0x195870['commandName']){const _0x169815=_0x195870['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x1d0c04,'*Format:*\x20%0',function(_0x49dc4d){switch(_0x49dc4d){case'left':return o(_0x1d0c04,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x1d0c04,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x1d0c04,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x1d0c04,'FORMAT_JUSTIFY_TEXT');}}(_0x169815))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class R extends _0x518a62{['afterInit'](){const _0x303289=this['editor'],_0x17a0ac=_0x303289['plugins']['get']('TrackChangesEditing'),_0x284296=_0x303289['locale'];for(const _0x387d64 of ti){if(!_0x303289['plugins']['has'](_0x387d64))continue;const _0x215a0c=_0x387d64['slice'](0x0,-0x7)['toLowerCase'](),_0x2fdc12='FORMAT_'+_0x215a0c['toUpperCase']();_0x17a0ac['enableDefaultAttributesIntegration'](_0x215a0c),_0x17a0ac['registerInlineAttribute'](_0x215a0c),_0x17a0ac['descriptionFactory']['registerAttributeLabel'](_0x215a0c,o(_0x284296,_0x2fdc12));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x490616=this['editor'],_0x37eb7d=_0x490616['locale'],_0x4b4189=_0x490616['plugins']['get']('TrackChangesEditing');function _0x472d74(_0x20c3c0,_0x45d779){_0x4b4189['descriptionFactory']['registerDescriptionCallback'](_0x26b6c6=>{if('formatInline'!=_0x26b6c6['type'])return;const {data:_0x163a15}=_0x26b6c6;return _0x163a15&&_0x163a15['commandName']===_0x20c3c0?_0x163a15['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x37eb7d,'*Format:*\x20%0',_0x45d779)}:{'type':'format','content':o(_0x37eb7d,'*Remove\x20format:*\x20%0',_0x45d779)}:void 0x0;});}_0x472d74('bold',o(_0x37eb7d,'FORMAT_BOLD')),_0x472d74('italic',o(_0x37eb7d,'FORMAT_ITALIC')),_0x472d74('underline',o(_0x37eb7d,'FORMAT_UNDERLINE')),_0x472d74('code',o(_0x37eb7d,'FORMAT_CODE')),_0x472d74('strikethrough',o(_0x37eb7d,'FORMAT_STRIKETHROUGH')),_0x472d74('subscript',o(_0x37eb7d,'FORMAT_SUBSCRIPT')),_0x472d74('superscript',o(_0x37eb7d,'FORMAT_SUPERSCRIPT'));}}class U extends _0x518a62{['afterInit'](){const _0x20ec8c=this['editor'],_0x285ea3=_0x20ec8c['locale'];if(!_0x20ec8c['plugins']['has']('BlockQuoteEditing'))return;const _0x57ebc1=_0x20ec8c['plugins']['get']('TrackChangesEditing'),_0x35c21e=this['editor']['commands']['get']('blockQuote');_0x57ebc1['enableCommand']('blockQuote',(_0x58ef08,_0x1181e8={})=>{const _0x4f6e25=this['editor']['model']['document']['selection'],_0x1a6cbb=_0x1181e8&&void 0x0!==_0x1181e8['forceValue']?_0x1181e8['forceValue']:!_0x35c21e['value'];let _0x4ef932=[];if(_0x1a6cbb){const _0xa1b000=Array['from'](_0x4f6e25['getSelectedBlocks']())['filter'](_0x29689f=>oo(_0x29689f)||function(_0x4193fd,_0x292944){const _0x1b9f87=_0x292944['checkChild'](_0x4193fd['parent'],'blockQuote'),_0x184402=_0x292944['checkChild'](['$root','blockQuote'],_0x4193fd);return _0x1b9f87&&_0x184402;}(_0x29689f,this['editor']['model']['schema']));_0x4ef932=to(_0xa1b000,_0x20ec8c['model']);}else{const _0x91c163=Array['from'](_0x4f6e25['getSelectedBlocks']())['filter'](_0x44ee7c=>oo(_0x44ee7c));_0x4ef932=to(_0x91c163,_0x20ec8c['model']);}_0x20ec8c['model']['change'](()=>{for(const _0x430c22 of _0x4ef932)_0x57ebc1['markBlockFormat'](_0x430c22,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x1a6cbb}]});});}),_0x57ebc1['descriptionFactory']['registerDescriptionCallback'](_0x5b0271=>{const {data:_0x3971c9}=_0x5b0271;if(_0x3971c9&&'blockQuote'==_0x3971c9['commandName']){const _0x31ed51=o(_0x285ea3,'ELEMENT_BLOCK_QUOTE');return _0x3971c9['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x285ea3,'*Set\x20format:*\x20%0',_0x31ed51)}:{'type':'format','content':o(_0x285ea3,'*Remove\x20format:*\x20%0',_0x31ed51)};}});}}function oo(_0x50a79a){return'blockQuote'==_0x50a79a['parent']['name'];}class V extends _0x518a62{['afterInit'](){const _0x48c500=this['editor'],_0x1cadbc=_0x48c500['locale'],_0x3494a3=_0x48c500['plugins']['get']('TrackChangesEditing');_0x48c500['plugins']['has']('BookmarkEditing')&&(_0x3494a3['enableCommand']('insertBookmark'),_0x3494a3['enableDefaultAttributesIntegration']('updateBookmark'),_0x3494a3['registerBlockAttribute']('bookmarkId'),_0x3494a3['descriptionFactory']['registerDescriptionCallback'](_0x21a52a=>{if('insertion'!=_0x21a52a['type']&&'deletion'!=_0x21a52a['type']&&'attribute'!=_0x21a52a['type'])return;const _0x148fa4=_0x21a52a['getContainedElement']();if(null==_0x148fa4)return;if(!_0x148fa4['is']('element','bookmark'))return;const _0x580832=_0x148fa4['getAttribute']('bookmarkId');if('insertion'==_0x21a52a['type'])return{'type':'insertion','content':o(_0x1cadbc,'*Insert:*\x20%0','\x22'+_0x580832+'\x22\x20'+o(_0x1cadbc,'ELEMENT_BOOKMARK'))};if('deletion'==_0x21a52a['type'])return{'type':'deletion','content':o(_0x1cadbc,'*Remove:*\x20%0','\x22'+_0x580832+'\x22\x20'+o(_0x1cadbc,'ELEMENT_BOOKMARK'))};const {data:_0x7116f1}=_0x21a52a;if(!_0x7116f1||'bookmarkId'!=_0x7116f1['key'])return;return{'type':'format','content':o(_0x1cadbc,'*Set\x20bookmark:*\x20%0','\x22'+_0x7116f1['newValue']+'\x22')};}));}}class F extends _0x518a62{['afterInit'](){const _0x1d6d82=this['editor'];_0x1d6d82['plugins']['has']('CaseChange')&&(_0x1d6d82['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x1d6d82['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x1d6d82['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0x518a62{['afterInit'](){const _0x4b87e8=this['editor'];_0x4b87e8['commands']['get']('ckbox')&&_0x4b87e8['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x518a62{['afterInit'](){const _0x564dc8=this['editor'];if(!_0x564dc8['plugins']['has']('CodeBlock'))return;const _0x9220d8=_0x564dc8['plugins']['get']('TrackChangesEditing'),_0x48e376=_0x564dc8['locale'],_0x1a98f8=_0x564dc8['config']['get']('codeBlock')['languages'],_0x465196=_0x564dc8['commands']['get']('codeBlock');_0x9220d8['enableCommand']('indentCodeBlock'),_0x9220d8['enableCommand']('outdentCodeBlock'),_0x9220d8['enableCommand']('codeBlock',(_0x5d1764,_0x784282={})=>{const _0x4e4188=_0x564dc8['model'],_0x460f20=_0x564dc8['model']['document']['selection'],_0x287168=_0x784282&&void 0x0!==_0x784282['forceValue']?_0x784282['forceValue']:!_0x465196['value'];let _0x5593d9;_0x784282['language']||(_0x784282['language']=_0x1a98f8[0x0]['language']),_0x5593d9=_0x287168?Array['from'](_0x460f20['getSelectedBlocks']())['filter'](_0x371ade=>co(_0x371ade)||function(_0xfac63b,_0x4023a5){if(_0xfac63b['is']('rootElement')||_0x4023a5['isLimit'](_0xfac63b))return!0x1;return _0x4023a5['checkChild'](_0xfac63b['parent'],'codeBlock');}(_0x371ade,_0x4e4188['schema'])):Array['from'](_0x460f20['getSelectedBlocks']())['filter'](_0x1c4829=>co(_0x1c4829));const _0x5bf25d=to(_0x5593d9,_0x4e4188);_0x4e4188['change'](()=>{for(const _0xd1c6a4 of _0x5bf25d)_0x9220d8['markBlockFormat'](_0xd1c6a4,{'commandName':'codeBlock','commandParams':[{..._0x784282,'forceValue':_0x287168}],'formatGroupId':'blockName'});});}),(_0x9220d8['descriptionFactory']['registerElementLabel']('codeBlock',_0x370de1=>o(_0x48e376,'ELEMENT_CODE_BLOCK',_0x370de1)),_0x9220d8['descriptionFactory']['registerDescriptionCallback'](_0x288473=>{if('formatBlock'!=_0x288473['type'])return;const _0x10a4e2=_0x48e376['t'],{data:_0x38ba71}=_0x288473;if(!_0x38ba71||'codeBlock'!=_0x38ba71['commandName'])return;const _0x281050=_0x38ba71['commandParams'][0x0]['language'],_0x3d7e1d=_0x10a4e2(_0x1a98f8['find'](_0x30c448=>_0x30c448['language']===_0x281050)['label'])['toLowerCase']();return _0x38ba71['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x48e376,'*Set\x20format:*\x20%0',o(_0x48e376,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x3d7e1d+')')}:{'type':'format','content':o(_0x48e376,'*Remove\x20format:*\x20%0',o(_0x48e376,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x31c5a1){return'codeBlock'==_0x31c5a1['name'];}class J extends _0x518a62{['afterInit'](){const _0x49f7a4=this['editor'];if(!_0x49f7a4['plugins']['has']('CommentsEditing'))return;_0x49f7a4['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x2b2932,_0x59f66f,_0xb61d93){const _0x540551=[];for(const _0x1c55de of _0x59f66f['getItems']())_0x1c55de['hasAttribute'](_0x2b2932)&&_0x540551['push'](_0xb61d93['createRangeOn'](_0x1c55de));return _0x540551;}function De(_0xe901bb,_0x47b9a6,{showActiveMarker:_0x38ce67=!0x0}={}){const _0x2d6178=_0xe901bb['plugins']['get']('TrackChangesEditing');return(_0x1f0a78,_0x2d3d5d,_0x5df26b)=>{if(!_0x5df26b['consumable']['test'](_0x2d3d5d['markerRange'],_0x1f0a78['name']))return;const _0x14ba8c=_0x2d3d5d['markerRange']['getWalker'](),_0x1d601f=_0x2d3d5d['markerRange']['start'],_0x11bcea=_0xe901bb['model']['schema'];let _0x84d661=null,_0x147f22=null,_0x402a8c=!0x1,_0x3b04c6=!0x1;for(const _0x41c51d of _0x14ba8c){const _0x3ca88b=_0x41c51d['item'];_0x402a8c=_0x402a8c||_0x11bcea['isContent'](_0x3ca88b);const _0x4c8df7=_0x5df26b['mapper']['toViewElement'](_0x3ca88b);if(_0x4c8df7&&_0x4c8df7['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x41c51d['type']&&(_0x11bcea['isBlock'](_0x3ca88b)&&!_0x11bcea['isLimit'](_0x3ca88b)&&(_0x3ca88b['nextSibling']||_0x1d601f['isAtEnd']?_0x84d661&&_0x84d661['parent']==_0x3ca88b||(_0x84d661=_0x3ca88b,_0x446222(_0x41c51d['previousPosition']),_0x3b04c6=!0x0):_0x147f22=_0x147f22||_0x41c51d['previousPosition']));}function _0x446222(_0x5a9ad0){const {id:_0x15abdd,authorId:_0x3b2097}=_0x2d6178['_splitMarkerName'](_0x2d3d5d['markerName']),_0x432b80=_0x5df26b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x47b9a6,'data-suggestion':_0x15abdd,'data-author-id':_0x3b2097}),_0x14c0b8=_0x5df26b['mapper']['toViewPosition'](_0x5a9ad0);_0x38ce67&&_0x2d6178['activeMarkers']['includes'](_0x2d3d5d['markerName'])&&_0x5df26b['writer']['addClass']('ck-suggestion-marker--active',_0x432b80),_0x5df26b['writer']['insert'](_0x14c0b8,_0x432b80),_0x5df26b['mapper']['bindElementToMarker'](_0x432b80,_0x2d3d5d['markerName']);}_0x402a8c||_0x3b04c6||!_0x147f22||_0x446222(_0x147f22);};}class K extends _0x518a62{static get['requires'](){return[_0x5819bb];}['init'](){const _0x5c3215=this['editor'],_0x3220c1=_0x5c3215['plugins']['get']('TrackChangesEditing');_0x3220c1['enableCommand']('delete');const _0x25f637=_0x5c3215['commands']['get']('deleteForward');_0x3220c1['enableCommand']('deleteForward',(_0x322d4d,_0x5a2525={})=>{const _0x2bf36b=_0x5c3215['model']['createSelection'](_0x5c3215['model']['document']['selection']);_0x2bf36b['isCollapsed']&&_0x5c3215['model']['modifySelection'](_0x2bf36b,{'direction':'forward','unit':_0x5a2525['unit']});const _0x26e26f=_0x2bf36b['getFirstRange'](),_0x55888a=_0x5d0c54['fromRange'](_0x26e26f);let _0x2d879d;_0x322d4d(_0x5a2525),_0x2d879d='$graveyard'==_0x55888a['root']['rootName']?_0x5c3215['model']['createRange'](_0x26e26f['start']):_0x5c3215['model']['createRange'](_0x55888a['start'],_0x55888a['end']),_0x55888a['detach'](),_0x5c3215['model']['enqueueChange'](_0x25f637['buffer']['batch'],_0x98a238=>{_0x25f637['buffer']['lock'](),_0x98a238['setSelection'](_0x98a238['createRange'](_0x2d879d['end'])),_0x25f637['buffer']['unlock']();});}),_0x5c3215['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x5c3215,'merge'),{'priority':'high'}),_0x5c3215['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x1c8874,_0x41f151,_0x1a5735)=>{_0x1a5735['options']['showSuggestionHighlights']&&De(_0x5c3215,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x1c8874,_0x41f151,_0x1a5735);},{'priority':'high'}),_0x5c3215['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x54b6b2,_0x222bde,_0x560cb3)=>{const _0x2878a3=_0x560cb3['mapper']['markerNameToElements'](_0x222bde['markerName']);if(_0x2878a3){for(const _0x2a3edc of _0x2878a3)_0x2a3edc['is']('uiElement')&&(_0x560cb3['mapper']['unbindElementFromMarkerName'](_0x2a3edc,_0x222bde['markerName']),_0x560cb3['writer']['remove'](_0x2a3edc));}},{'priority':'high'});}}class H extends _0x518a62{['afterInit'](){const _0x2d36d3=this['editor'];if(!_0x2d36d3['plugins']['has']('ListEditing'))return;const _0x379e7f=_0x2d36d3['locale'],_0x8c3fb0=_0x2d36d3['plugins']['get']('TrackChangesEditing'),_0x277982=_0x2d36d3['plugins']['has']('TodoListEditing'),_0x1a55c3=!!_0x2d36d3['config']['get']('list.multiBlock');function _0x5641c0(_0x4f3051){return{'type':'format','content':''+o(_0x379e7f,'*Set\x20format:*\x20%0',_0x4f3051)};}function _0x15a708(_0x5b1e16){return{'type':'format','content':''+o(_0x379e7f,'*Remove\x20format:*\x20%0',_0x5b1e16)};}_0x8c3fb0['enableDefaultAttributesIntegration']('numberedList'),_0x8c3fb0['enableDefaultAttributesIntegration']('bulletedList'),_0x8c3fb0['enableDefaultAttributesIntegration']('customNumberedList'),_0x8c3fb0['enableDefaultAttributesIntegration']('customBulletedList'),_0x8c3fb0['enableDefaultAttributesIntegration']('indentList'),_0x8c3fb0['enableDefaultAttributesIntegration']('outdentList'),_0x8c3fb0['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x8c3fb0['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x8c3fb0['registerBlockAttribute']('listItemId'),_0x8c3fb0['registerBlockAttribute']('listType'),_0x8c3fb0['registerBlockAttribute']('listIndent'),_0x1a55c3&&(_0x8c3fb0['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x8c3fb0['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x277982&&(_0x8c3fb0['enableDefaultAttributesIntegration']('todoList'),_0x8c3fb0['enableDefaultAttributesIntegration']('checkTodoList'),_0x8c3fb0['registerBlockAttribute']('todoListChecked'),_0x8c3fb0['descriptionFactory']['registerDescriptionCallback'](_0x46c6dc=>{const {data:_0x1d25cc}=_0x46c6dc;if(_0x1d25cc&&'todoListChecked'==_0x1d25cc['key'])return{'type':'format','content':_0x1d25cc['newValue']?o(_0x379e7f,'*Check\x20item*'):o(_0x379e7f,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x4c1184=>{if(_0x4c1184['batch']['isUndo'])return!0x1;let _0x7ebda6=!0x1;const _0x1d7054=_0x8c3fb0['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1c98a4=>'todoListChecked'===_0x8c3fb0['_getAttributeKey'](_0x1c98a4));for(const _0x3897e3 of _0x1d7054){'todo'!=_0x3897e3['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x8c3fb0['_findSuggestions'](_0x3897e3['getFirstRange'](),'attribute')['find'](_0x578e1c=>'listType'===_0x8c3fb0['_getAttributeKey'](_0x578e1c['suggestion']))||(_0x4c1184['removeMarker'](_0x3897e3['getFirstMarker']()),_0x7ebda6=!0x0));}return _0x7ebda6;})),_0x8c3fb0['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x379e7f,'FORMAT_INDENT'));const _0x1e1337={'type':'format','content':''};_0x8c3fb0['descriptionFactory']['registerDescriptionCallback'](_0x2244c4=>{const {data:_0x4caad8}=_0x2244c4;if(!_0x4caad8||'listType'!=_0x4caad8['key'])return;let _0x49e9b8=_0x2244c4['head'];for(;_0x49e9b8;){if(_0x49e9b8['data']&&(('listStyle'==_0x49e9b8['data']['key']||'listMarkerStyle'==_0x49e9b8['data']['key'])&&(_0x49e9b8['data']['newValue']&&'default'!=_0x49e9b8['data']['newValue']||'default'!=_0x49e9b8['data']['oldValue']&&!_0x4caad8['newValue'])||!_0x1a55c3&&_0x49e9b8['data']['key']==m))return _0x1e1337;_0x49e9b8=_0x49e9b8['next'];}if(null==_0x4caad8['newValue'])switch(_0x4caad8['oldValue']){case'bulleted':return _0x15a708(o(_0x379e7f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x15a708(o(_0x379e7f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x15a708(o(_0x379e7f,'ELEMENT_TODO_LIST'));}switch(_0x4caad8['newValue']){case'bulleted':return _0x5641c0(o(_0x379e7f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5641c0(o(_0x379e7f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5641c0(o(_0x379e7f,'ELEMENT_TODO_LIST'));}}),_0x8c3fb0['descriptionFactory']['registerDescriptionCallback'](_0x29c3f3=>{const {data:_0x4c4f39}=_0x29c3f3;if(_0x4c4f39&&'listIndent'==_0x4c4f39['key'])return null==_0x4c4f39['newValue']||null==_0x4c4f39['oldValue']&&0x0==_0x4c4f39['newValue']?_0x1e1337:void 0x0;}),_0x8c3fb0['descriptionFactory']['registerDescriptionCallback'](_0x31811c=>{if('attribute'!=_0x31811c['type'])return;const {data:_0x217063}=_0x31811c;if(!_0x217063||'listItemId'!=_0x217063['key'])return;const _0x1111d4=Te(_0x31811c);return'newValue'==_0x1111d4?{'type':'format','content':o(_0x379e7f,'*Merge:*\x20list\x20item')}:'oldValue'==_0x1111d4?{'type':'format','content':o(_0x379e7f,'*Split:*\x20list\x20item')}:_0x1e1337;}),_0x2d36d3['model']['document']['registerPostFixer'](_0x377005=>this['listItemIdFixer'](_0x377005)),_0x2d36d3['model']['document']['registerPostFixer'](_0x7c332d=>this['noTrackChangesFixer'](_0x7c332d)),_0x2d36d3['model']['document']['on']('change:data',(_0x27bee5,_0x5a81a7)=>{if(_0x5a81a7['isUndo']||!_0x5a81a7['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x27d216){if(_0x27d216['batch']['isUndo']||!_0x27d216['batch']['isLocal'])return!0x1;let _0x42a4b1=!0x1;const _0x151a3d=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5d9ecd=>_0x5d9ecd['data']&&'listItemId'==_0x5d9ecd['data']['key'])['filter'](_0x10371e=>_0x10371e['data']['newValue']&&_0x10371e['data']['oldValue']);for(const _0x515999 of _0x151a3d)Te(_0x515999)||(_0x27d216['removeMarker'](_0x515999['getFirstMarker']()),_0x42a4b1=!0x0);return _0x42a4b1;}['noTrackChangesFixer'](_0x503ded){if(_0x503ded['batch']['isUndo']||!_0x503ded['batch']['isLocal'])return!0x1;const _0x103ba4=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x103ba4['trackChangesCommand']['value'])return!0x1;let _0x4b0b51=!0x1;const _0x27510d=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x4824c0=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x438128=>'attribute'==_0x438128['type'])['filter'](_0x3b13eb=>_0x27510d['includes'](_0x3b13eb['attributeKey']));if(0x0==_0x4824c0['length'])return _0x4b0b51;for(const _0x11fc95 of _0x4824c0){const _0x4b0a4f=_0x103ba4['_findSuggestions'](_0x11fc95['range'],'attribute')['filter'](_0x3e6d43=>!_0x3e6d43['meta']['isNextTo'])['map'](_0xcc1643=>_0xcc1643['suggestion'])['filter'](_0x23f551=>{const _0x49474c=_0x103ba4['_getAttributeKey'](_0x23f551);return _0x27510d['includes'](_0x49474c);});if(_0x4b0a4f['length']){for(const _0x4a7913 of _0x4b0a4f)_0x503ded['removeMarker'](_0x4a7913['getFirstMarker']());_0x4b0b51=!0x0;}}return _0x4b0b51;}['assureChains'](){const _0x5b74ce=this['editor']['plugins']['get']('TrackChangesEditing'),_0x84d792=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x253388;const _0x6927c2=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x470195=>{if(_0x470195['data']['oldRange']||!_0x470195['data']['newRange'])return null;if(!_0x470195['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x456ccb}=_0x5b74ce['_splitMarkerName'](_0x470195['name']);if(!_0x5b74ce['hasSuggestion'](_0x456ccb))return null;const _0x456347=_0x5b74ce['getSuggestion'](_0x456ccb);return _0x84d792['includes'](_0x456347['data']['key']);})['map'](_0x4d4297=>{const {id:_0x1c9ee5}=_0x5b74ce['_splitMarkerName'](_0x4d4297['name']),_0x1764d4=_0x5b74ce['getSuggestion'](_0x1c9ee5);return _0x253388=_0x1764d4['attributes']['groupId'],_0x1764d4['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x6927c2['size'])return;const _0x28ef6a=_0x5b74ce['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1306d3=>'attribute'==_0x1306d3['type']&&_0x1306d3['data']&&_0x84d792['includes'](_0x1306d3['data']['key'])&&_0x1306d3['attributes']['groupId']!=_0x253388)['map'](_0x215f0a=>({'listItem':_0x215f0a['getFirstRange']()['start']['nodeAfter'],'groupId':_0x215f0a['attributes']['groupId']})),_0x3e8f63=new Set();for(const {groupId:_0x3c7227,listItem:_0x3f41a0}of _0x28ef6a)_0x6927c2['has'](_0x3f41a0)&&_0x3e8f63['add'](_0x3c7227);for(const _0x1abcd2 of _0x5b74ce['getSuggestions']())_0x3e8f63['has'](_0x1abcd2['attributes']['groupId'])&&_0x1abcd2['setAttribute']('groupId',_0x253388);}['_supportLegacySuggestions'](){const _0x47aa1f=this['editor'],_0x4b2d14=_0x47aa1f['locale'],_0x2ea4c0=_0x47aa1f['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x2ea4c0['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0xe192b3,_0x12e65f){const _0x17a6d2=[];for(let _0x4be209 of _0xe192b3)_0x4be209['start']['nodeAfter']===_0x4be209['end']['parent']&&(_0x4be209=_0x47aa1f['model']['createRange'](_0x47aa1f['model']['createPositionAt'](_0x4be209['start']['nodeAfter'],0x0))),_0x17a6d2['push'](_0x4be209);_0x47aa1f['model']['change'](_0x943496=>{const _0x2fea77=_0x47aa1f['model']['document']['selection'],_0x45cfaa=Array['from'](_0x2fea77['getRanges']())['map'](_0x29a376=>_0x5d0c54['fromRange'](_0x29a376));_0x943496['setSelection'](_0x17a6d2),_0x47aa1f['commands']['get'](_0x12e65f['commandName'])['refresh'](),_0x12e65f['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x47aa1f['execute'](_0x12e65f['commandName'],..._0x12e65f['commandParams']),_0x943496['setSelection'](_0x45cfaa);for(const _0x3878d6 of _0x45cfaa)_0x3878d6['detach']();});}),_0x2ea4c0['descriptionFactory']['registerElementLabel'](function(_0x16459b){const _0x3ce78d=!_0x47aa1f['model']['schema']['isObject'](_0x16459b),_0x52a492=_0x16459b['previousSibling'],_0x33cc9b=_0x16459b['nextSibling'],_0x2ecad1=_0x16459b['getAttribute']('listItemId'),_0x417a1c=!_0x52a492||_0x52a492['getAttribute']('listItemId')!==_0x2ecad1,_0x114528=!_0x33cc9b||_0x33cc9b['getAttribute']('listItemId')!==_0x2ecad1;return _0x3ce78d&&Boolean(_0x2ecad1)&&_0x417a1c&&_0x114528;},_0x398067=>o(_0x4b2d14,'ELEMENT_LIST_ITEM',_0x398067));}['_registerLegacyDescription'](){const _0xa40d8b=this['editor'],_0x276213=_0xa40d8b['locale'];function _0x2a8e34(_0x1916bb){const _0x3b0d51=_0xa40d8b['commands']['get']('bulletedList')['value'],_0x3440d9=_0xa40d8b['commands']['get']('numberedList')['value'];return'numberedList'===_0x1916bb?_0x3b0d51:_0x3440d9;}_0xa40d8b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x131530){if('formatBlock'!=_0x131530['type'])return;const {data:_0x13bd4f}=_0x131530;if(!_0x13bd4f)return;let _0x5829e5,_0x51d3e0,_0x58fc64,_0xdd3a16;switch(_0x13bd4f['commandName']){case'bulletedList':_0x58fc64=_0x13bd4f['commandParams'][0x0]['forceValue'],_0xdd3a16=_0x2a8e34(_0x13bd4f['commandName']),_0x5829e5=_0x58fc64?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xdd3a16&&_0xa40d8b['config']['get']('list.multiBlock')||(_0x5829e5='*Change\x20to:*\x20%0'),_0x51d3e0={'type':'format','content':o(_0x276213,_0x5829e5,o(_0x276213,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x58fc64=_0x13bd4f['commandParams'][0x0]['forceValue'],_0xdd3a16=_0x2a8e34(_0x13bd4f['commandName']),_0x5829e5=_0x58fc64?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xdd3a16&&_0xa40d8b['config']['get']('list.multiBlock')||(_0x5829e5='*Change\x20to:*\x20%0'),_0x51d3e0={'type':'format','content':o(_0x276213,_0x5829e5,o(_0x276213,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x5829e5='*Indent:*\x20%0',_0x51d3e0={'type':'format','content':o(_0x276213,_0x5829e5,o(_0x276213,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x5829e5=function(_0x43115e){const _0x428392=_0x43115e['getFirstRange']();let _0x1fe9fb=_0x428392['start']['nodeAfter'];for(;_0x1fe9fb&&_0x428392['containsItem'](_0x1fe9fb);){if(_0x1fe9fb['getAttribute']('listIndent')>0x0)return!0x1;_0x1fe9fb=_0x1fe9fb['nextSibling'];}return!0x0;}(_0x131530)?o(_0x276213,'*Format:*\x20remove\x20from\x20%0',o(_0x276213,function(_0xcd7a5c){return'ELEMENT_'+_0xcd7a5c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x131530))):o(_0x276213,'*Outdent:*\x20%0',o(_0x276213,'ELEMENT_LIST_ITEM')),_0x51d3e0={'type':'format','content':_0x5829e5};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x13bd4f['multipleBlocks']&&(_0x5829e5='*Merge:*\x20%0',_0x51d3e0={'type':'deletion','content':o(_0x276213,_0x5829e5,o(_0x276213,'ELEMENT_LIST_ITEM'))});}return _0x51d3e0;});}}function Te(_0x5d49ca){let _0x1ff881=_0x5d49ca['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x1ff881;){const _0x3e44d4=_0x1ff881['getAttribute']('listItemId');if(!_0x3e44d4)return!0x1;if(_0x3e44d4==_0x5d49ca['data']['newValue'])return'newValue';if(_0x3e44d4==_0x5d49ca['data']['oldValue'])return'oldValue';_0x1ff881=_0x1ff881['previousSibling'];}return!0x1;}class q extends _0x518a62{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x46ce4d=this['editor']['config']['get']('list.properties'),_0xdde57c=this['editor']['plugins']['get']('TrackChangesEditing');_0x46ce4d['styles']&&(_0xdde57c['enableDefaultAttributesIntegration']('listStyle'),_0xdde57c['registerBlockAttribute']('listStyle')),_0x46ce4d['reversed']&&(_0xdde57c['enableDefaultAttributesIntegration']('listReversed'),_0xdde57c['registerBlockAttribute']('listReversed')),_0x46ce4d['startIndex']&&(_0xdde57c['enableDefaultAttributesIntegration']('listStart'),_0xdde57c['registerBlockAttribute']('listStart'));const _0x1f99c8={'type':'format','content':''};_0xdde57c['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x4ba42c=this['editor']['locale'];_0xdde57c['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x4ba42c,'FORMAT_LIST_REVERSED')),_0xdde57c['descriptionFactory']['registerDescriptionCallback'](_0x5cf567=>{const {data:_0x3a3045}=_0x5cf567;if(_0x3a3045&&'listReversed'==_0x3a3045['key'])return null==_0x3a3045['newValue']||0x0==_0x3a3045['newValue']&&null==_0x3a3045['oldValue']?_0x1f99c8:void 0x0;}),_0xdde57c['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x4ba42c,'FORMAT_LIST_START')),_0xdde57c['descriptionFactory']['registerDescriptionCallback'](_0xa7fc32=>{const {data:_0x417e29}=_0xa7fc32;if(_0x417e29&&'listStart'==_0x417e29['key'])return null==_0x417e29['newValue']||0x1==_0x417e29['newValue']&&null==_0x417e29['oldValue']?_0x1f99c8:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x3a8a09=>{if(_0x3a8a09['batch']['isUndo'])return!0x1;let _0x4c8473=!0x1;const _0x5e5895=_0xdde57c['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5b19fe=>{const _0x4bd51d=_0xdde57c['_getAttributeKey'](_0x5b19fe);return'listStart'==_0x4bd51d||'listReversed'==_0x4bd51d;});for(const _0x4d543b of _0x5e5895){const _0x4b688f=_0x4d543b['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x4b688f||'customNumbered'==_0x4b688f)continue;_0xdde57c['_findSuggestions'](_0x4d543b['getFirstRange'](),'attribute')['find'](_0x194438=>'listType'==_0xdde57c['_getAttributeKey'](_0x194438['suggestion']))||(_0x3a8a09['removeMarker'](_0x4d543b['getFirstMarker']()),_0x4c8473=!0x0);}return _0x4c8473;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x3bb827){const _0x3a50a1=this['editor']['locale'],{data:_0x3622b4}=_0x3bb827,_0x36a0fe={'type':'format','content':''};if(!_0x3622b4||'listStyle'!=_0x3622b4['key'])return;if(!_0x3622b4['oldValue'])return'default'==_0x3622b4['newValue']?_0x36a0fe:{'type':'format','content':''+o(_0x3a50a1,'*Set\x20format:*\x20%0',o(_0x3a50a1,this['_getTranslationKeyForListStyle'](_0x3622b4['newValue'])))};if(!_0x3622b4['newValue']){if('default'==_0x3622b4['oldValue'])return _0x36a0fe;let _0x2a600b=_0x3bb827['head'];for(;_0x2a600b;){if(_0x2a600b['data']&&'listType'==_0x2a600b['data']['key']&&_0x2a600b['data']['newValue'])return _0x36a0fe;_0x2a600b=_0x2a600b['next'];}return{'type':'format','content':''+o(_0x3a50a1,'*Remove\x20format:*\x20%0',o(_0x3a50a1,this['_getTranslationKeyForListStyle'](_0x3622b4['oldValue'])))};}if('default'!=_0x3622b4['newValue'])return{'type':'format','content':''+o(_0x3a50a1,'*Set\x20format:*\x20%0',o(_0x3a50a1,this['_getTranslationKeyForListStyle'](_0x3622b4['newValue'])))};let _0xbd624e=_0x3bb827['head'];for(;_0xbd624e;){if(_0xbd624e['data']&&'listType'==_0xbd624e['data']['key']&&_0xbd624e['data']['newValue']&&_0xbd624e['data']['oldValue'])return _0x36a0fe;_0xbd624e=_0xbd624e['next'];}return{'type':'format','content':o(_0x3a50a1,'*Set\x20format:*\x20%0',o(_0x3a50a1,'ELEMENT_'+_0x3bb827['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0xcd4242=this['editor'],_0x4a40af=_0xcd4242['locale'];_0xcd4242['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x175851=>{if('formatBlock'!=_0x175851['type'])return;const {data:_0x5e23c7}=_0x175851;if(!_0x5e23c7)return;let _0x3d46a2,_0x30aa63;switch(_0x5e23c7['commandName']){case'listStyle':_0x3d46a2='*Change\x20to:*\x20%0',_0x30aa63={'type':'format','content':o(_0x4a40af,_0x3d46a2,o(_0x4a40af,this['_getTranslationKeyForListStyle'](_0x5e23c7['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3d46a2=_0x5e23c7['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x30aa63={'type':'format','content':o(_0x4a40af,_0x3d46a2)};break;case'listStart':_0x3d46a2='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x30aa63={'type':'format','content':o(_0x4a40af,_0x3d46a2,_0x5e23c7['commandParams'][0x0]['startIndex'])};}return _0x30aa63;});}['_getTranslationKeyForListStyle'](_0x3e6849){return'ELEMENT_'+function(_0x2df0de){if(Se['includes'](_0x2df0de))return'bulleted';if(_e['includes'](_0x2df0de))return'numbered';return null;}(_0x3e6849)['toUpperCase']()+'_LIST_'+_0x3e6849['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class z extends _0x518a62{['afterInit'](){const _0x1ba8ed=this['editor'];_0x1ba8ed['commands']['get']('emoji')&&_0x1ba8ed['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class W extends _0x518a62{static get['requires'](){return[_0x22b852];}['init'](){const _0x389dce=this['editor'],_0xff27bf=_0x389dce['plugins']['get']('TrackChangesEditing'),_0x37cecb=_0x389dce['commands']['get']('enter');_0xff27bf['enableCommand']('enter',()=>{_0x389dce['model']['change'](_0x14a771=>{const _0x5ac019=_0x389dce['model']['document']['selection'],_0xdaff0f=_0x5ac019['getFirstPosition'](),_0x4de7f3=_0x5d0c54['fromRange'](_0x5ac019['getFirstRange']());if(_0x37cecb['enterBlock'](_0x14a771)){const _0x1dc86b=_0x389dce['model']['createPositionAt'](_0xdaff0f['parent']['nextSibling'],0x0),_0x53c7d8=_0x14a771['createRange'](_0xdaff0f,_0x1dc86b);_0xff27bf['markInsertion'](_0x53c7d8);}else _0x14a771['setSelection'](_0x14a771['createRange'](_0x4de7f3['end']));_0x4de7f3['detach'](),_0x37cecb['fire']('afterExecute',{'writer':_0x14a771});});}),_0x389dce['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x389dce,'split'),{'priority':'high'}),_0x389dce['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x16b013,_0x2fd4ed,_0x3bda00)=>{const _0x4a29af=_0x3bda00['mapper']['markerNameToElements'](_0x2fd4ed['markerName']);if(_0x4a29af){for(const _0x2d13f9 of _0x4a29af)_0x2d13f9['hasClass']('ck-suggestion-marker-split')&&(_0x3bda00['mapper']['unbindElementFromMarkerName'](_0x2d13f9,_0x2fd4ed['markerName']),_0x3bda00['writer']['remove'](_0x2d13f9));}},{'priority':'high'}),_0x389dce['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2528f5,_0x27bb28,_0x3ad889)=>{_0x3ad889['options']['showSuggestionHighlights']&&De(_0x389dce,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x2528f5,_0x27bb28,_0x3ad889);},{'priority':'high'});}}class Q extends _0x518a62{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x4b471d=this['editor']['plugins']['get']('TrackChangesEditing');_0x4b471d['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x4b471d['enableCommand']('findNext'),_0x4b471d['enableCommand']('findPrevious'),_0x4b471d['enableCommand']('replace'),_0x4b471d['enableCommand']('replaceAll');}['handleFindCommand'](_0x37817f,_0x5a8adc,_0x3db09f={}){const _0x2c2725=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x37817f(_0x121be7=>{let _0x245c71=('string'==typeof _0x5a8adc?_0x2c2725['findByTextCallback'](_0x5a8adc,_0x3db09f):_0x5a8adc)(_0x121be7);Array['isArray'](_0x245c71)&&(_0x245c71={'results':_0x245c71,'searchText':'string'==typeof _0x5a8adc?_0x5a8adc:''});const _0x2ab173=_0x245c71['results']['filter'](_0x46d13a=>!0x1===this['_isInDeletionRange'](_0x46d13a,_0x121be7['item']));return{..._0x245c71,'results':_0x2ab173};},_0x3db09f);}['_isInDeletionRange'](_0x389902,_0x195523){const _0xca9812=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x195523,_0x389902['start']),this['editor']['model']['createPositionAt'](_0x195523,_0x389902['end']));for(const _0x153ed6 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0xca9812['getIntersection'](_0x153ed6['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 _0x518a62{['afterInit'](){const _0x32d80a=this['editor']['locale'],_0x3b4d0d=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x2d4275,commandName:_0x514ce2}of eo)this['editor']['plugins']['has'](_0x2d4275)&&(_0x3b4d0d['enableDefaultAttributesIntegration'](_0x514ce2),_0x3b4d0d['registerInlineAttribute'](_0x514ce2));_0x3b4d0d['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x32d80a,'FORMAT_FONT_SIZE')),_0x3b4d0d['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x32d80a,'FORMAT_FONT_FAMILY')),_0x3b4d0d['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x32d80a,'FORMAT_FONT_COLOR')),_0x3b4d0d['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x32d80a,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x246ac1=this['editor'],_0x4bcbc3=_0x246ac1['locale'];_0x246ac1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x334e14=>{const _0x16b316=_0x4bcbc3['t'];if('formatInline'!=_0x334e14['type'])return;const {data:_0x5bec6a}=_0x334e14;if(null!=_0x5bec6a){if('fontSize'==_0x5bec6a['commandName']){const _0x3c97d2=_0x5bec6a['commandParams'][0x0]['value'];if(_0x3c97d2){const _0x3eb1cb=_0x16b316(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x38591d=>_0x38591d['model']==_0x3c97d2)['title'])['toLowerCase']();return{'type':'format','content':o(_0x4bcbc3,'*Set\x20font\x20size:*\x20%0',_0x3eb1cb)};}return{'type':'format','content':o(_0x4bcbc3,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x5bec6a['commandName']){const _0x325608=_0x5bec6a['commandParams'][0x0]['value'];return _0x325608?{'type':'format','content':o(_0x4bcbc3,'*Set\x20font\x20family:*\x20%0',_0x325608)}:{'type':'format','content':o(_0x4bcbc3,'*Reset\x20font\x20family*')};}if('fontColor'==_0x5bec6a['commandName']){const _0x132e23=_0x5bec6a['commandParams'][0x0]['value'];if(_0x132e23){const _0x348aed=_0x65a788(this['editor']['config']['get']('fontColor.colors'))['find'](_0x45dfd2=>_0x45dfd2['model']==_0x132e23);let _0x3d098f=_0x132e23,_0x2dd1d4='';return _0x348aed&&(_0x3d098f=_0x348aed['label'],_0x2dd1d4=_0x16b316(_0x3d098f)['toLowerCase']()),{'type':'format','content':o(_0x4bcbc3,'*Set\x20font\x20color:*\x20%0',_0x2dd1d4)['trim'](),'color':{'value':_0x132e23,'title':_0x2dd1d4||_0x3d098f}};}return{'type':'format','content':o(_0x4bcbc3,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x5bec6a['commandName']){const _0x3396af=_0x5bec6a['commandParams'][0x0]['value'];if(_0x3396af){const _0x5f04de=_0x65a788(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x46dc94=>_0x46dc94['model']==_0x3396af);let _0x419f41=_0x3396af,_0x18c97c='';return _0x5f04de&&(_0x419f41=_0x5f04de['label'],_0x18c97c=_0x16b316(_0x419f41)['toLowerCase']()),{'type':'format','content':o(_0x4bcbc3,'*Set\x20font\x20background\x20color:*\x20%0',_0x18c97c)['trim'](),'color':{'value':_0x3396af,'title':_0x18c97c||_0x419f41}};}return{'type':'format','content':o(_0x4bcbc3,'*Reset\x20font\x20background\x20color*')};}}});}}class Y extends _0x518a62{['afterInit'](){const _0x4e0710=this['editor'],_0x87c073=_0x4e0710['plugins']['get']('TrackChangesEditing'),_0x1fca7d=_0x4e0710['commands']['get']('copyFormat'),_0x726fcb=_0x4e0710['commands']['get']('pasteFormat');_0x1fca7d&&_0x726fcb&&(_0x87c073['enableDefaultAttributesIntegration']('pasteFormat'),_0x87c073['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x235f38=this['editor'],_0x8a4c23=_0x235f38['locale'];_0x235f38['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2d276e=>{if('formatBlock'!=_0x2d276e['type']&&'formatInline'!=_0x2d276e['type'])return;const {data:_0x4fe062}=_0x2d276e;if(_0x4fe062&&'pasteFormat'===_0x4fe062['commandName']){const _0x410a6b=[],_0x12b69f=_0x4fe062['commandParams'][0x0];for(const [_0x30b6d4,_0x384bb8]of Object['entries'](_0x12b69f))_0x410a6b['push'](ro(_0x235f38,_0x30b6d4,_0x384bb8));return _0x410a6b['length']?{'type':'format','content':o(_0x8a4c23,'*Set\x20format\x20to:*\x20%0',_0x410a6b['join'](',\x20'))}:{'type':'format','content':o(_0x8a4c23,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x35eff3,_0x3d7cec,_0x359564){const _0x572fc5=_0x35eff3['locale']['t'],_0x397fe8=_0x3d7cec['split'](/(?=[A-Z])/)['join']('\x20'),_0x1ddf80=_0x572fc5(_0x397fe8['charAt'](0x0)['toUpperCase']()+_0x397fe8['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x359564)return _0x1ddf80;if('fontColor'===_0x3d7cec||'fontBackgroundColor'===_0x3d7cec){const _0x3fbdd9=_0x65a788(_0x35eff3['config']['get']('fontColor.colors'))['find'](_0x6fe72e=>_0x6fe72e['model']==_0x359564);return _0x1ddf80+'\x20('+(_0x3fbdd9?_0x572fc5(_0x3fbdd9['label'])['toLowerCase']():_0x359564)+')';}if('fontSize'===_0x3d7cec&&isNaN(parseFloat(_0x359564))){const _0x7404a6=_0x35eff3['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x35eff3['config']['get']('fontSize.options'))['find'](_0x78c50d=>_0x78c50d['model']==_0x359564);return _0x1ddf80+'\x20('+(_0x7404a6?_0x572fc5(_0x7404a6['title'])['toLowerCase']():_0x359564)+')';}return _0x1ddf80+'\x20('+_0x359564+')';}class Z extends _0x518a62{['_headingOptions'];['afterInit'](){const _0x29969a=this['editor'];if(!_0x29969a['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x29969a['config']['get']('heading.options');const _0x5b48ca=_0x29969a['locale'],_0x36a48a=_0x29969a['plugins']['get']('TrackChangesEditing');_0x36a48a['enableDefaultAttributesIntegration']('heading');for(const _0x38261d of this['_headingOptions'])'paragraph'!=_0x38261d['model']&&_0x36a48a['descriptionFactory']['registerElementLabel'](_0x38261d['model'],_0x1237fd=>{const _0x9aa654=this['_getHeadingLevel'](_0x38261d['model']);return null!==_0x9aa654?_0x552519(_0x1237fd,_0x9aa654):_0x53f8a4(_0x1237fd,_0x38261d['title']);});function _0x552519(_0x127e88,_0x4ea3d7){return o(_0x5b48ca,'ELEMENT_HEADING',[_0x127e88,_0x4ea3d7]);}function _0x53f8a4(_0x5e66b3,_0x1b5607){return o(_0x5b48ca,'ELEMENT_HEADING_CUSTOM',[_0x5e66b3,_0x1b5607]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5ea0c0=this['editor'],_0x532264=_0x5ea0c0['locale'];function _0xf2cce4(_0x56c32b,_0x87ef46){return o(_0x532264,'ELEMENT_HEADING_CUSTOM',[_0x56c32b,_0x87ef46]);}_0x5ea0c0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1e755d=>{if('formatBlock'!=_0x1e755d['type'])return;const {data:_0x3f43c1}=_0x1e755d;if(_0x3f43c1&&'heading'==_0x3f43c1['commandName']){const _0x2200eb=_0x3f43c1['commandParams'][0x0]['value'],_0xa3e643=this['_getHeadingLevel'](_0x2200eb);if(null!==_0xa3e643)return{'type':'format','content':o(_0x532264,'*Change\x20to:*\x20%0',(_0x47f156=0x1,_0x2d8de4=_0xa3e643,o(_0x532264,'ELEMENT_HEADING',[_0x47f156,_0x2d8de4])))};const _0x1073d9=this['_headingOptions']['find'](_0xfeb379=>_0xfeb379['model']===_0x2200eb)['title'];return{'type':'format','content':o(_0x532264,'*Change\x20to:*\x20%0',_0xf2cce4(0x1,_0x1073d9))};}var _0x47f156,_0x2d8de4;});}['_getHeadingLevel'](_0x40520a){const _0xc1b7c6=_0x40520a['match'](/^heading(\d+)/);if(_0xc1b7c6)return _0xc1b7c6[0x1];const _0x108763=this['_headingOptions']?.['find'](_0x4d3cdc=>_0x4d3cdc['model']==_0x40520a);if(_0x108763&&_0x108763['view']){const _0x1ae385=_0x108763['view'],_0x56bfed=(_0x1ae385['name']??_0x1ae385)['match'](/^h(\d+)/);if(_0x56bfed)return _0x56bfed[0x1];}return null;}}class tt extends _0x518a62{['afterInit'](){const _0x2a6b56=this['editor'];if(!_0x2a6b56['plugins']['has']('HighlightEditing'))return;const _0x1f4e3e=_0x2a6b56['plugins']['get']('TrackChangesEditing'),_0x88654d=_0x2a6b56['locale'];_0x1f4e3e['enableDefaultAttributesIntegration']('highlight'),_0x1f4e3e['registerInlineAttribute']('highlight'),_0x1f4e3e['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x88654d,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x241921=this['editor'],_0x13317d=_0x241921['locale'];_0x241921['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x41d0c4=>{if('formatInline'!=_0x41d0c4['type'])return;const {data:_0x4a9b91}=_0x41d0c4;if(_0x4a9b91&&'highlight'==_0x4a9b91['commandName']){const _0x311c5a=_0x13317d['t'],_0x263821=_0x4a9b91['commandParams'][0x0]['value'];if(_0x263821){const _0x30a511=_0x241921['config']['get']('highlight.options')['find'](_0x4e0d9d=>_0x4e0d9d['model']==_0x263821),_0x38202e=_0x311c5a(_0x30a511['title'])['toLowerCase']();return{'type':'format','content':o(_0x13317d,'*Set\x20highlight:*\x20%0',_0x38202e),'color':{'value':_0x30a511['color'],'title':_0x30a511['title']}};}return{'type':'format','content':o(_0x13317d,'*Remove\x20highlight*',o(_0x13317d,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x518a62{['afterInit'](){const _0x1ad409=this['editor'];if(!_0x1ad409['plugins']['has']('HorizontalLineEditing'))return;_0x1ad409['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x43190c=_0x1ad409['plugins']['get']('TrackChangesEditing'),_0x288a20=_0x1ad409['locale'];_0x43190c['descriptionFactory']['registerElementLabel']('horizontalLine',_0x5b09f0=>o(_0x288a20,'ELEMENT_HORIZONTAL_LINE',_0x5b09f0)),_0x1ad409['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x43abf0,{writer:_0x2f3b03,options:_0x430c32})=>{if(!_0x430c32['showSuggestionHighlights'])return null;const _0x2a20a7=_0x2f3b03['createContainerElement']('div'),_0x16e670=_0x2f3b03['createEmptyElement']('hr');return _0x2f3b03['addClass']('ck-horizontal-line',_0x2a20a7),_0x2f3b03['insert'](_0x2f3b03['createPositionAt'](_0x2a20a7,0x0),_0x16e670),_0x2a20a7;},'converterPriority':'high'});}}class nt extends _0x518a62{['afterInit'](){const _0x589272=this['editor'];if(!_0x589272['plugins']['has']('HtmlEmbed'))return;const _0x371d31=_0x589272['plugins']['get']('TrackChangesEditing'),_0x53fc4b=_0x589272['locale'];_0x371d31['descriptionFactory']['registerElementLabel']('rawHtml',_0x2276a4=>o(_0x53fc4b,'ELEMENT_HTML_EMBED',_0x2276a4)),_0x371d31['enableDefaultAttributesIntegration']('htmlEmbed'),_0x371d31['registerBlockAttribute']('value'),_0x371d31['descriptionFactory']['registerDescriptionCallback'](_0x1961f6=>{if('attribute'!=_0x1961f6['type'])return;const {data:_0x466731}=_0x1961f6;if(_0x466731&&'value'==_0x466731['key']&&_0x1961f6['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x3437eb=o(_0x53fc4b,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x53fc4b,'*Change\x20%0\x20content*',_0x3437eb)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2f1c5c=this['editor'],_0x3ed39c=_0x2f1c5c['locale'];_0x2f1c5c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3bc365=>{if('formatBlock'!=_0x3bc365['type'])return;const {data:_0x5072bd}=_0x3bc365;if(_0x5072bd&&'htmlEmbed'==_0x5072bd['commandName']){const _0x516e99=o(_0x3ed39c,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x3ed39c,'*Change\x20%0\x20content*',_0x516e99)};}});}}class et extends _0x518a62{['afterInit'](){const _0x18dc83=this['editor'];if(!_0x18dc83['plugins']['has']('ImageEditing'))return;const _0x24a2fa=_0x18dc83['plugins']['get']('TrackChangesEditing'),_0x517af2=_0x18dc83['plugins']['get']('ImageUtils'),_0x1e1cf4=_0x18dc83['locale'];_0x24a2fa['enableCommand']('insertImage'),_0x24a2fa['descriptionFactory']['registerElementLabel']('imageBlock',_0x2e9fc8=>o(_0x1e1cf4,'ELEMENT_IMAGE',_0x2e9fc8)),_0x24a2fa['descriptionFactory']['registerElementLabel']('imageInline',_0x276e68=>o(_0x1e1cf4,'ELEMENT_INLINE_IMAGE',_0x276e68)),_0x24a2fa['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x1e1cf4,'ELEMENT_CAPTION')),_0x18dc83['plugins']['has']('ImageUploadEditing')&&_0x24a2fa['enableCommand']('uploadImage'),_0x18dc83['plugins']['has']('ImageBlockEditing')&&_0x18dc83['plugins']['has']('ImageInlineEditing')&&(_0x24a2fa['enableCommand']('imageTypeInline',(_0x1bce8b,_0x56a0dd)=>{const _0x128183=_0x517af2['getClosestSelectedImageElement'](_0x18dc83['model']['document']['selection']);_0x18dc83['model']['change'](()=>{_0x24a2fa['markBlockFormat'](_0x128183,{'commandName':'imageTypeInline','commandParams':[_0x56a0dd]},[],'convertBlockImageToInline');});}),_0x24a2fa['enableCommand']('imageTypeBlock',(_0x436ca2,_0x255547)=>{_0x18dc83['model']['change'](_0x55cb04=>{let _0x2a1959=_0x517af2['getClosestSelectedImageElement'](_0x18dc83['model']['document']['selection']),_0x224836=_0x55cb04['createRangeOn'](_0x2a1959);const _0x30ae9f=_0x56c99f['fromPosition'](_0x224836['start'],'toPrevious'),_0x58b252=_0x56c99f['fromPosition'](_0x224836['end'],'toNext');_0x24a2fa['forceDefaultExecution'](()=>_0x436ca2(_0x255547)),_0x2a1959=_0x517af2['getClosestSelectedImageElement'](_0x18dc83['model']['document']['selection']),_0x224836=_0x55cb04['createRangeOn'](_0x2a1959);const _0x22a1c2=_0x55cb04['createRange'](_0x30ae9f,_0x58b252);_0x30ae9f['detach'](),_0x58b252['detach'](),_0x24a2fa['markBlockFormat'](_0x2a1959,{'commandName':'imageTypeInline','commandParams':[_0x255547]},[],'convertInlineImageToBlock'),_0x22a1c2['start']['isBefore'](_0x224836['start'])&&_0x24a2fa['markInsertion'](_0x55cb04['createRange'](_0x22a1c2['start'],_0x224836['start']),'convertInlineImageToBlock'),_0x224836['end']['isBefore'](_0x22a1c2['end'])&&_0x24a2fa['markInsertion'](_0x55cb04['createRange'](_0x224836['end'],_0x22a1c2['end']),'convertInlineImageToBlock');});}),_0x24a2fa['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x24a2fa['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x24a2fa['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x24a2fa['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x24a2fa['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x24a2fa['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x4339c9])=>{const _0x37ec00=_0x24a2fa['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x251242=_0x4339c9['start'],_0x4624aa=_0x4339c9['end'];const _0x92e29f=_0x18dc83['model']['schema']['getNearestSelectionRange'](_0x251242,'backward'),_0x2fcd5c=_0x18dc83['model']['schema']['getNearestSelectionRange'](_0x4624aa,'forward');_0x92e29f['isCollapsed']&&(_0x251242=_0x92e29f['start']),_0x2fcd5c['isCollapsed']&&(_0x4624aa=_0x2fcd5c['end']),_0x37ec00([_0x18dc83['model']['createRange'](_0x251242,_0x4624aa)]);}),_0x24a2fa['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x33f57d),_0x24a2fa['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x33f57d)),_0x18dc83['plugins']['has']('ImageCaptionEditing')&&(_0x24a2fa['enableCommand']('toggleImageCaption',(_0x5d49d1,_0x1a7de1)=>{const _0x1dac4e=_0x18dc83['plugins']['get']('ImageCaptionUtils');let _0x56c53b=_0x517af2['getClosestSelectedImageElement'](_0x18dc83['model']['document']['selection']),_0x35dd73=_0x1dac4e['getCaptionFromImageModelElement'](_0x56c53b);_0x18dc83['model']['change'](()=>{if(_0x35dd73)return void _0x24a2fa['markDeletion'](_0x18dc83['model']['createRangeOn'](_0x35dd73));const _0x2c0b8b=_0x517af2['isBlockImage'](_0x56c53b);_0x5d49d1(_0x1a7de1),_0x56c53b=_0x517af2['getClosestSelectedImageElement'](_0x18dc83['model']['document']['selection']),_0x35dd73=_0x1dac4e['getCaptionFromImageModelElement'](_0x56c53b),_0x24a2fa['markInsertion'](_0x18dc83['model']['createRangeOn'](_0x35dd73),_0x2c0b8b?null:'imageCaption');});}),_0x24a2fa['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x33f57d));const _0xcbc4ee=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x357b0d(_0x4e99e3,_0x2868bf){const _0x35b545=_0xcbc4ee['findIndex'](({type:_0x4cac83,subType:_0x3c1c0f})=>_0x4e99e3['type']==_0x4cac83&&_0x4e99e3['subType']==_0x3c1c0f),_0x30f956=_0xcbc4ee['findIndex'](({type:_0xac7fb2,subType:_0x1785fc})=>_0x2868bf['type']==_0xac7fb2&&_0x2868bf['subType']==_0x1785fc);if(_0x35b545<0x0||_0x30f956<0x0)return!0x1;const _0x377d04=_0x4e99e3['getFirstRange'](),_0xc040f8=_0x2868bf['getFirstRange']();if((0x0==_0x35b545||0x1==_0x35b545)&&0x2==_0x30f956&&_0x377d04['isIntersecting'](_0xc040f8))return!0x0;if(0x2==_0x35b545&&0x3==_0x30f956){const _0x559db1=_0x24a2fa['_findSuggestions'](_0x377d04,'insertion')['filter'](({suggestion:_0x199cdb,meta:_0x94cee3})=>_0x94cee3['isOwn']&&'convertInlineImageToBlock'==_0x199cdb['subType']);if(_0x559db1['length']>0x1&&_0xc040f8['end']['isEqual'](_0x377d04['start']))return!0x0;if(0x1==_0x559db1['length']&&(_0x377d04['start']['isEqual'](_0xc040f8['end'])||_0x377d04['end']['isEqual'](_0xc040f8['start'])))return!0x0;}if(0x3==_0x35b545&&0x3==_0x30f956&&_0x377d04['start']['isBefore'](_0xc040f8['start'])){const _0x54f4c7=_0x377d04['end']['nodeAfter'],_0x2f99cc=_0xc040f8['start']['nodeBefore'];return _0x517af2['isBlockImage'](_0x54f4c7)&&_0x54f4c7===_0x2f99cc;}return!0x1;}function _0x33f57d(_0x46c9d8,_0x4ceda7){return _0x357b0d(_0x46c9d8,_0x4ceda7)?[_0x46c9d8,_0x4ceda7]:_0x357b0d(_0x4ceda7,_0x46c9d8)?[_0x4ceda7,_0x46c9d8]:null;}_0x18dc83['plugins']['has']('ImageResize')&&(_0x24a2fa['enableDefaultAttributesIntegration']('resizeImage'),_0x24a2fa['registerBlockAttribute']('resizedWidth'),_0x24a2fa['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x1e1cf4,'FORMAT_IMAGE_SIZE'))),_0x18dc83['plugins']['has']('ImageTextAlternativeEditing')&&(_0x24a2fa['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x24a2fa['registerBlockAttribute']('alt')),_0x18dc83['plugins']['has']('PictureEditing')&&(_0x24a2fa['registerBlockAttribute']('sources'),_0x24a2fa['descriptionFactory']['registerDescriptionCallback'](_0x471db2=>{if('attribute'!=_0x471db2['type'])return;const {data:_0x3b2e7f}=_0x471db2;return _0x3b2e7f&&'sources'==_0x3b2e7f['key']?{'type':'format','content':''}:void 0x0;})),_0x18dc83['plugins']['has']('ImageSizeAttributes')&&(_0x24a2fa['registerBlockAttribute']('width'),_0x24a2fa['registerBlockAttribute']('height'),_0x24a2fa['descriptionFactory']['registerDescriptionCallback'](_0x47c054=>{if('attribute'!=_0x47c054['type'])return;const {data:_0x55bee7}=_0x47c054;return!_0x55bee7||'width'!=_0x55bee7['key']&&'height'!=_0x55bee7['key']?void 0x0:{'type':'format','content':''};})),_0x24a2fa['descriptionFactory']['registerDescriptionCallback'](_0x4afde7=>{if(!!_0xcbc4ee['find'](({type:_0x186ad5,subType:_0x35c276})=>_0x4afde7['type']==_0x186ad5&&_0x4afde7['subType']==_0x35c276))return _0x4afde7['previous']?{}:void 0x0;}),_0x24a2fa['descriptionFactory']['registerDescriptionCallback'](_0x489d6e=>{if('insertion'==_0x489d6e['type']||'deletion'==_0x489d6e['type']){const _0x42bc58=_0x489d6e['getContainedElement']();if(_0x42bc58&&_0x42bc58['is']('element','caption'))return{'type':'insertion'==_0x489d6e['type']?'addObject':'removeObject','element':_0x42bc58,'quantity':0x1};}}),_0x24a2fa['descriptionFactory']['registerDescriptionCallback'](_0x5602dc=>'formatBlock'==_0x5602dc['type']&&'convertInlineImageToBlock'==_0x5602dc['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x5602dc['type']&&'convertBlockImageToInline'==_0x5602dc['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x24a2fa['descriptionFactory']['registerDescriptionCallback'](_0x3b159b=>{if('attribute'!=_0x3b159b['type'])return;const {data:_0x1c5842}=_0x3b159b;if(!_0x1c5842||'alt'!=_0x1c5842['key'])return;const _0x4a597c=_0x1c5842['newValue'];return _0x4a597c?{'type':'format','content':o(_0x1e1cf4,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4a597c+'\x22')}:{'type':'format','content':o(_0x1e1cf4,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x454fd6=this['editor'],_0x3925bc=_0x454fd6['locale'];_0x454fd6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e6e94=>{if('formatBlock'!=_0x3e6e94['type']&&'formatInline'!=_0x3e6e94['type'])return;const {data:_0x4ce396}=_0x3e6e94;if(_0x4ce396){if('imageTextAlternative'==_0x4ce396['commandName']){const _0x34cc97=_0x4ce396['commandParams'][0x0]['newValue'];return _0x34cc97?{'type':'format','content':o(_0x3925bc,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x34cc97+'\x22')}:{'type':'format','content':o(_0x3925bc,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x4ce396['commandName']){const _0x7a8d20=_0x4ce396['commandParams'][0x0]['width'];return _0x7a8d20?{'type':'format','content':o(_0x3925bc,'*Set\x20image\x20width:*\x20%0',_0x7a8d20)}:{'type':'format','content':o(_0x3925bc,'*Reset\x20image\x20width*')};}}});}}class st extends _0x518a62{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0xef4d9d=this['editor']['locale'],_0x27a81d=this['editor']['plugins']['get']('TrackChangesEditing');_0x27a81d['enableDefaultAttributesIntegration']('replaceImageSource'),_0x27a81d['registerBlockAttribute']('src'),_0x27a81d['descriptionFactory']['registerDescriptionCallback'](_0x41fcb1=>{if('attribute'!=_0x41fcb1['type'])return;const {data:_0x5299bd}=_0x41fcb1;return _0x5299bd&&'src'==_0x5299bd['key']?_0x5299bd['newValue']&&_0x5299bd['oldValue']?{'type':'format','content':o(_0xef4d9d,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1039e0=this['editor']['plugins']['get']('TrackChangesEditing');_0x1039e0['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x1039e0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1039e0['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x1039e0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x214404=this['editor'],_0x34581b=_0x214404['locale'];_0x214404['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x19b24c=>{if('formatBlock'!=_0x19b24c['type']&&'formatInline'!=_0x19b24c['type'])return;const {data:_0x16e666}=_0x19b24c;if(!_0x16e666||'replaceImageSource'!=_0x16e666['commandName'])return;return{'type':'format','content':o(_0x34581b,'*Format:*\x20replace\x20image\x20URL')};});}}class ot extends _0x518a62{['afterInit'](){const _0x4877fb=this['editor'];if(!_0x4877fb['plugins']['has']('ImageStyleEditing'))return;const _0x5d3257=_0x4877fb['plugins']['get']('TrackChangesEditing'),_0x22f2ec=_0x4877fb['plugins']['get']('ImageUtils'),_0x62bca7={};_0x5d3257['enableCommand']('imageStyle',(_0x472597,_0x5b8402)=>{const _0x31f821=_0x4877fb['plugins']['get']('Users')['me'],_0x194843=_0x4877fb['commands']['get']('imageStyle');let _0xa00db2=_0x22f2ec['getClosestSelectedImageElement'](_0x4877fb['model']['document']['selection']),_0x28e1d7=_0x4877fb['model']['createRangeOn'](_0xa00db2),_0x44e71d=_0x194843['value'];if(_0x44e71d==_0x5b8402['value'])return;const _0x58e4dc={'commandName':'imageStyle','commandParams':[_0x5b8402],'formatGroupId':_0x12db8f()};_0x4877fb['model']['change'](()=>{if(_0x5d3257['getSuggestions']()['filter'](_0x490aa7=>_0x490aa7['isInContent']&&_0x31f821==_0x490aa7['author']&&('formatBlock'==_0x490aa7['type']||'formatInline'==_0x490aa7['type'])&&('imageStylePreApply'==_0x490aa7['subType']||'imageStylePostApply'==_0x490aa7['subType'])&&_0x490aa7['getFirstRange']()['isEqual'](_0x28e1d7))['forEach'](_0x425477=>_0x5d3257['discardSuggestion'](_0x425477['head'])),_0xa00db2=_0x22f2ec['getClosestSelectedImageElement'](_0x4877fb['model']['document']['selection']),_0x28e1d7=_0x4877fb['model']['createRangeOn'](_0xa00db2),_0x194843['refresh'](),_0x4877fb['commands']['get']('imageTypeInline')['refresh'](),_0x4877fb['commands']['get']('imageTypeBlock')['refresh'](),_0x44e71d=_0x194843['value'],_0x44e71d!=_0x5b8402['value'])return _0x22f2ec['isInlineImage'](_0xa00db2)&&_0x194843['shouldConvertImageType'](_0x5b8402['value'],_0xa00db2)?(_0x472597({..._0x5b8402,'setImageSizes':!0x1}),_0xa00db2=_0x22f2ec['getClosestSelectedImageElement'](_0x4877fb['model']['document']['selection']),void _0x5d3257['markBlockFormat'](_0xa00db2,{..._0x58e4dc,'commandReversedParams':[{'value':_0x44e71d||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x22f2ec['isBlockImage'](_0xa00db2)?_0x5d3257['markBlockFormat'](_0xa00db2,_0x58e4dc,[],'imageStylePostApply'):_0x5d3257['markInlineFormat'](_0x28e1d7,_0x58e4dc,'imageStylePostApply'));});});for(const _0xb5f35 of _0x4877fb['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x62bca7[_0xb5f35['name']]=_0xb5f35['title']['toLowerCase']();_0x5d3257['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x5d3257['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x5d3257['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x5d3257['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x472181])=>{_0x22f2ec['setImageNaturalSizeAttributes'](_0x472181['getContainedElement']());}),_0x5d3257['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x56f375,_0x45aa72)=>{_0x5d3257['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x56f375,{'commandName':_0x45aa72['commandName'],'commandParams':_0x45aa72['commandReversedParams']});}),_0x5d3257['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x3df58e,_0x144026){if(_0x5973a4(_0x3df58e,_0x144026))return[_0x3df58e,_0x144026];if(_0x5973a4(_0x144026,_0x3df58e))return[_0x144026,_0x3df58e];return null;});const _0x495f9b=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5973a4(_0x1bf676,_0x55f00b){const _0x31cc13=_0x495f9b['findIndex'](({type:_0xa42ec7,subType:_0x232520})=>_0x1bf676['type']==_0xa42ec7&&_0x1bf676['subType']==_0x232520),_0x10b71b=_0x495f9b['findIndex'](({type:_0xef8dc8,subType:_0x39a8ba})=>_0x55f00b['type']==_0xef8dc8&&_0x55f00b['subType']==_0x39a8ba);if(_0x31cc13<0x0||_0x10b71b<0x0)return!0x1;const _0x598458=_0x1bf676['getFirstRange'](),_0xc138c9=_0x55f00b['getFirstRange']();if((0x0==_0x31cc13||0x1==_0x31cc13)&&0x2==_0x10b71b&&_0x598458['isIntersecting'](_0xc138c9))return!0x0;if(0x2==_0x31cc13&&0x3==_0x10b71b){const _0x2e7b67=_0x5d3257['_findSuggestions'](_0x598458,'insertion')['filter'](({suggestion:_0x5a1a8c,meta:_0x35648b})=>_0x35648b['isOwn']&&'convertInlineImageToBlock'==_0x5a1a8c['subType']);if(_0x2e7b67['length']>0x1&&_0xc138c9['end']['isEqual'](_0x598458['start']))return!0x0;if(0x1==_0x2e7b67['length']&&(_0x598458['start']['isEqual'](_0xc138c9['end'])||_0x598458['end']['isEqual'](_0xc138c9['start'])))return!0x0;}if(0x3==_0x31cc13&&0x3==_0x10b71b&&_0x598458['start']['isBefore'](_0xc138c9['start'])){const _0x5b5956=_0x598458['end']['nodeAfter'],_0x150199=_0xc138c9['start']['nodeBefore'];return _0x22f2ec['isBlockImage'](_0x5b5956)&&_0x5b5956===_0x150199;}return!0x1;}_0x4877fb['model']['document']['registerPostFixer'](()=>{let _0x21cdd5=!0x1;const _0x36e77e=Array['from'](_0x4877fb['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x41c80d,data:_0x296fa4}of _0x36e77e){const {group:_0x3af6dd,type:_0x5ea639,subType:_0x36271f,id:_0x4eb22e}=_0x5d3257['_splitMarkerName'](_0x41c80d);if('suggestion'==_0x3af6dd&&_0x5d3257['hasSuggestion'](_0x4eb22e)){if('formatBlock'==_0x5ea639&&('imageStylePreApply'==_0x36271f||'imageStylePostApply'==_0x36271f)){const _0x9f496e=_0x5d3257['getSuggestion'](_0x4eb22e);if(_0x296fa4['newRange']){const _0x1088bd=_0x9f496e['getFirstRange']()['getContainedElement']();if(_0x22f2ec['isBlockImage'](_0x1088bd))continue;_0x5d3257['discardSuggestion'](_0x9f496e),_0x21cdd5=!0x0;}}if('insertion'==_0x5ea639&&'imageCaption'==_0x36271f&&!_0x296fa4['newRange']){const _0x5c60c4=_0x5d3257['getSuggestion'](_0x4eb22e);_0x5c60c4['next']&&_0x5c60c4['next']['isInContent']&&(_0x5d3257['discardSuggestion'](_0x5c60c4['next']),_0x21cdd5=!0x0);}}}return _0x21cdd5;}),this['_registerLegacyDescription'](_0x62bca7);}['_registerLegacyDescription'](_0x533c98){const _0x475c77=this['editor'],_0x5a8a35=_0x475c77['locale'];_0x475c77['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1a9bdd=>{if('formatBlock'!=_0x1a9bdd['type']&&'formatInline'!=_0x1a9bdd['type'])return;const {data:_0x53946f}=_0x1a9bdd;if(!_0x53946f||'imageStyle'!=_0x53946f['commandName'])return;const _0x2bae25=_0x53946f['commandParams'][0x0]['value'];return _0x1025f0('side'===_0x2bae25?o(_0x5a8a35,'FORMAT_SIDE_IMAGE'):_0x533c98[_0x2bae25]||_0x2bae25);function _0x1025f0(_0x483d3d){return{'type':'format','content':o(_0x5a8a35,'*Format:*\x20%0',_0x483d3d)};}});}}class rt extends _0x518a62{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x5c28b3){super(_0x5c28b3),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x55dce8=this['editor'],_0x56abcd=_0x55dce8['commands']['get']('importWord'),_0x43446f=_0x55dce8['commands']['get']('trackChanges');_0x56abcd&&(_0x56abcd['on']('execute',(_0x138339,[,_0x37e33e])=>{this['_trackChangesValueDuringImport']=_0x43446f['value'],_0x37e33e['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x56abcd,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x56abcd,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x43446f['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x55dce8['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x3487f0,_0x40a649){const {suggestions:_0x1a42fc}=_0x40a649,_0x52e78e=this['editor']['commands']['get']('trackChanges'),_0xbca7d8=_0x52e78e['value'];this['_trackChangesValueDuringImport']!==_0xbca7d8&&(_0x52e78e['execute'](),this['_trackChangesExecuted']=!0x0),_0x1a42fc&&_0x1a42fc['forEach'](({id:_0x4a495c,type:_0x14423a,author:_0x32cd3a,created_at:_0x2567e0})=>{const _0x3e0e13={'id':_0x4a495c,'type':_0x14423a,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x32cd3a,'createdAt':_0x2567e0?new Date(_0x2567e0):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x3e0e13);});}}class at extends _0x518a62{['afterInit'](){const _0x4168a9=this['editor'],_0x951e01=_0x4168a9['plugins']['get']('TrackChangesEditing');if(_0x4168a9['plugins']['has']('IndentEditing')&&(_0x951e01['enableCommand']('indent'),_0x951e01['enableCommand']('outdent')),_0x4168a9['plugins']['has']('IndentBlock')){for(const _0x17ddb1 of['indentBlock','outdentBlock'])_0x951e01['enableDefaultAttributesIntegration'](_0x17ddb1);}const _0x563061=_0x4168a9['locale'];_0x951e01['registerBlockAttribute']('blockIndent'),_0x951e01['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x563061,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x398b8b=this['editor'],_0x3d50ec=_0x398b8b['locale'],_0x5a0f0a=_0x398b8b['plugins']['get']('TrackChangesEditing');_0x5a0f0a['descriptionFactory']['registerDescriptionCallback'](_0x40a138=>{if('formatBlock'!=_0x40a138['type'])return;const {data:_0xb935b7}=_0x40a138;if(!_0xb935b7)return;if('indentBlock'!=_0xb935b7['commandName']&&'outdentBlock'!=_0xb935b7['commandName'])return;const _0x6b0500=_0x40a138['getItems']()[0x0],_0x2ee37d=_0x5a0f0a['descriptionFactory']['getItemLabel'](_0x6b0500);return'indentBlock'==_0xb935b7['commandName']?{'type':'format','content':o(_0x3d50ec,'*Indent:*\x20%0',_0x2ee37d)}:'outdentBlock'==_0xb935b7['commandName']?{'type':'format','content':o(_0x3d50ec,'*Outdent:*\x20%0',_0x2ee37d)}:void 0x0;});}}class ct extends _0x518a62{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ut extends _0x518a62{['afterInit'](){const _0x233e3b=this['editor'];if(!_0x233e3b['plugins']['has']('LinkEditing'))return;const _0x326abf=_0x233e3b['plugins']['get']('TrackChangesEditing'),_0x49dafe=_0x233e3b['commands']['get']('link');_0x326abf['enableDefaultAttributesIntegration']('link'),_0x326abf['enableDefaultAttributesIntegration']('unlink'),_0x326abf['registerInlineAttribute']('linkHref');for(const _0x1185dd of _0x49dafe['manualDecorators'])_0x326abf['registerInlineAttribute'](_0x1185dd['id']),_0x326abf['descriptionFactory']['registerAttributeLabel'](_0x1185dd['id'],'link\x20('+_0x1185dd['label']['toLowerCase']()+')');_0x326abf['descriptionFactory']['registerDescriptionCallback'](_0x211277=>{if('attribute'!=_0x211277['type'])return;const {data:_0x23618b}=_0x211277;if(!_0x23618b||'linkHref'!=_0x23618b['key'])return;const _0x41a035=_0x23618b['newValue'],_0x212419=_0x233e3b['locale'];return{'type':'format','content':null==_0x41a035?o(_0x212419,'*Remove\x20link*'):o(_0x212419,'*Set\x20link:*\x20%0','\x22'+_0x41a035+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x311661=this['editor'],_0x2aa400=_0x311661['locale'];_0x311661['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x309a3c=>{if('formatInline'!=_0x309a3c['type'])return;const {data:_0x234519}=_0x309a3c;if(_0x234519){if('link'==_0x234519['commandName']){const _0x1000c0=_0x234519['commandParams'][0x0];return{'type':'format','content':o(_0x2aa400,'*Set\x20link:*\x20%0','\x22'+_0x1000c0+'\x22')};}return'unlink'==_0x234519['commandName']?{'type':'format','content':o(_0x2aa400,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x518a62{['afterInit'](){const _0x5abaf9=this['editor'],_0x3f53b7=_0x5abaf9['locale'];if(!_0x5abaf9['plugins']['has']('LegacyListEditing'))return;const _0x6fcad5=_0x5abaf9['plugins']['get']('TrackChangesEditing'),_0x423712=_0x5abaf9['plugins']['has']('LegacyTodoListEditing');function _0x1f99d3(_0x4ed95a){return()=>{const _0x3256a4=_0x5abaf9['model']['document']['selection'],_0x5aecc2=_0x5abaf9['commands']['get'](_0x4ed95a);if(_0x5aecc2['value'])return void _0x5abaf9['execute']('paragraph',{});const _0x412b4b=_0x4ed95a['slice'](0x0,-0x4),_0x45e0e4=function(_0x25142c,_0x2fd1e0,_0x24e445){let _0x4196c2=Array['from'](_0x25142c)['filter'](_0xff4dc3=>function(_0x3a6697,_0x4150ca){return _0x4150ca['checkChild'](_0x3a6697['parent'],'listItem')&&!_0x4150ca['isObject'](_0x3a6697);}(_0xff4dc3,_0x24e445));_0x4196c2=_0x4196c2['filter'](_0x1cb9d0=>!_0x1cb9d0['is']('element','listItem')||_0x1cb9d0['getAttribute']('listType')!=_0x2fd1e0);const _0x326ac7=new Set();for(const _0x1a18dd of _0x4196c2)_0x1a18dd['is']('element','listItem')?_0x326ac7['add'](Le(_0x1a18dd)):_0x326ac7['add'](_0x1a18dd);return Array['from'](_0x326ac7);}(_0x3256a4['getSelectedBlocks'](),_0x412b4b,_0x5abaf9['model']['schema']);_0x5abaf9['model']['change'](()=>{for(const _0x1cbc5d of _0x45e0e4)_0x6fcad5['markBlockFormat'](_0x1cbc5d,{'commandName':_0x4ed95a,'commandParams':[{'forceValue':!_0x5aecc2['value']}],'formatGroupId':'blockName'},Ee(_0x1cbc5d));});};}function _0x5920ca(_0x594a06){return()=>{const _0x205623=function(_0x4e467e){let _0x56c328=Array['from'](_0x4e467e);const _0x2764a1=_0x56c328['findIndex'](_0x61b0a=>'listItem'!=_0x61b0a['name']);return _0x2764a1>-0x1&&(_0x56c328=_0x56c328['slice'](0x0,_0x2764a1)),_0x56c328;}(_0x5abaf9['model']['document']['selection']['getSelectedBlocks']()),_0x5cc688=_0x5abaf9['model']['createRange'](_0x5abaf9['model']['createPositionAt'](_0x205623[0x0],'before'),_0x5abaf9['model']['createPositionAt'](_0x205623[_0x205623['length']-0x1],'end'));_0x5abaf9['model']['change'](()=>{_0x6fcad5['markBlockFormat'](_0x5cc688,{'commandName':_0x594a06,'commandParams':[],'formatGroupId':'listIndent'},function(_0x4b3551){const _0x892649=new Set();for(const _0x178b8e of _0x4b3551){let _0x23049a=_0x178b8e['nextSibling'];for(;_0x23049a&&_0x23049a['getAttribute']('listIndent')>_0x178b8e['getAttribute']('listIndent');)_0x892649['add'](_0x23049a),_0x23049a=_0x23049a['nextSibling'];}return Array['from'](_0x892649);}(_0x205623));});};}_0x6fcad5['enableCommand']('numberedList',_0x1f99d3('numberedList')),_0x6fcad5['enableCommand']('bulletedList',_0x1f99d3('bulletedList')),_0x423712&&_0x6fcad5['enableCommand']('todoList',_0x1f99d3('todoList')),_0x6fcad5['enableCommand']('indentList',_0x5920ca('indentList')),_0x6fcad5['enableCommand']('outdentList',_0x5920ca('outdentList')),_0x423712&&_0x6fcad5['enableCommand']('checkTodoList',()=>{const _0x2f0591=_0x5abaf9['commands']['get']('checkTodoList'),_0x407e1b=Array['from'](_0x2f0591['_selectedElements']);_0x407e1b['filter'](_0x11adb0=>_0x11adb0['getAttribute']('todoListChecked')!=_0x2f0591['value']),_0x5abaf9['model']['change'](()=>{for(const _0x23cafc of _0x407e1b)_0x6fcad5['markBlockFormat'](_0x23cafc,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x2f0591['value']}]});});}),_0x6fcad5['descriptionFactory']['registerElementLabel']('listItem',_0x1139c7=>o(_0x3f53b7,'ELEMENT_LIST_ITEM',_0x1139c7)),_0x6fcad5['descriptionFactory']['registerDescriptionCallback'](_0x534fbc=>{if('formatBlock'!=_0x534fbc['type']&&'formatInline'!=_0x534fbc['type'])return;const {data:_0x55e726}=_0x534fbc;if(_0x55e726){if('numberedList'==_0x55e726['commandName']||'bulletedList'==_0x55e726['commandName']||'todoList'==_0x55e726['commandName'])switch(_0x55e726['commandName']['replace']('List','')){case'bulleted':return _0x1f83c5(o(_0x3f53b7,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1f83c5(o(_0x3f53b7,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1f83c5(o(_0x3f53b7,'ELEMENT_TODO_LIST'));}if('indentList'==_0x55e726['commandName'])return{'type':'format','content':o(_0x3f53b7,'*Indent:*\x20%0',o(_0x3f53b7,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x55e726['commandName'])return{'type':'format','content':o(_0x3f53b7,'*Outdent:*\x20%0',o(_0x3f53b7,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x55e726['commandName'])return _0x55e726['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3f53b7,'*Check\x20item*')}:{'type':'format','content':o(_0x3f53b7,'*Uncheck\x20item*')};}function _0x1f83c5(_0x1e57c1){return{'type':'format','content':o(_0x3f53b7,'*Change\x20to:*\x20%0',_0x1e57c1)};}});}}function Le(_0xab2999){const _0x3d88b0=_0xab2999['getAttribute']('listIndent');if(0x0==_0x3d88b0)return _0xab2999;let _0x374e57=_0xab2999;for(;_0xab2999['previousSibling']&&_0xab2999['previousSibling']['is']('element','listItem');){const _0x562e4f=_0xab2999['previousSibling']['getAttribute']('listIndent');if(_0x562e4f==_0x3d88b0)_0x374e57=_0xab2999['previousSibling'];else{if(_0x562e4f<_0x3d88b0)break;}_0xab2999=_0xab2999['previousSibling'];}return _0x374e57;}function Ee(_0x2b1845){const _0x21c411=[];if(_0x2b1845['is']('element','listItem')&&_0x2b1845['getAttribute']('listIndent')>0x0){let _0x3c405e=_0x2b1845['nextSibling'];for(;_0x3c405e&&'listItem'==_0x3c405e['name']&&_0x3c405e['getAttribute']('listIndent')==_0x2b1845['getAttribute']('listIndent');)_0x21c411['push'](_0x3c405e),_0x3c405e=_0x3c405e['nextSibling'];}return _0x21c411;}class ht extends _0x518a62{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x311384=this['editor']['config']['get']('list.properties'),_0x47cb1d=this['editor']['plugins']['get']('TrackChangesEditing');_0x311384['styles']&&_0x47cb1d['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x311384['reversed']&&_0x47cb1d['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x311384['startIndex']&&_0x47cb1d['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x47cb1d['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x20ba5a,_0x3f530e={}){const _0x101eb0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x171205=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x101eb0['markMultiRangeBlockFormat'](_0x171205,{'commandName':'listStyle','commandParams':[{'type':_0x3f530e['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x4fe18a,_0x3c1d73={}){const _0x5e1fb0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x21c20a=this['_getSuggestionBlocks'](_0x319ef7=>_0x319ef7['is']('element','listItem')&&'numbered'===_0x319ef7['getAttribute']('listType'));if(_0x21c20a['length']<0x1)return;const _0x4e9fb9=_0x21c20a['map'](_0xbf5fa4=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xbf5fa4,'before'),this['editor']['model']['createPositionAt'](_0xbf5fa4,0x0)));this['editor']['model']['change'](()=>{_0x5e1fb0['markMultiRangeBlockFormat'](_0x4e9fb9,{'commandName':'listReversed','commandParams':[{'reversed':_0x3c1d73['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x5dab16,_0x23750b={}){const _0x70ec50=this['editor']['plugins']['get']('TrackChangesEditing'),_0x89d9e4=this['_getSuggestionBlocks'](_0x2660a7=>_0x2660a7['is']('element','listItem')&&'numbered'===_0x2660a7['getAttribute']('listType'));if(_0x89d9e4['length']<0x1)return;const _0x1ffb53=_0x89d9e4['map'](_0x53f0d8=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x53f0d8,'before'),this['editor']['model']['createPositionAt'](_0x53f0d8,0x0)));this['editor']['model']['change'](()=>{_0x70ec50['markMultiRangeBlockFormat'](_0x1ffb53,{'commandName':'listStart','commandParams':[{'startIndex':_0x23750b['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x4961fa){if('formatBlock'!=_0x4961fa['type']&&'formatInline'!=_0x4961fa['type'])return;const _0x1fb496=this['editor']['locale'],{data:_0x1c3670}=_0x4961fa;if(!_0x1c3670)return;let _0x11f02b,_0x552f08;switch(_0x1c3670['commandName']){case'listStyle':_0x11f02b='*Change\x20to:*\x20%0',_0x552f08={'type':'format','content':o(_0x1fb496,_0x11f02b,o(_0x1fb496,this['_getTranslationKeyForListStyle'](_0x1c3670['commandParams'][0x0]['type'])))};break;case'listReversed':_0x11f02b=_0x1c3670['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x552f08={'type':'format','content':o(_0x1fb496,_0x11f02b)};break;case'listStart':_0x11f02b='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x552f08={'type':'format','content':o(_0x1fb496,_0x11f02b,_0x1c3670['commandParams'][0x0]['startIndex'])};}return _0x552f08;}['_getSuggestionBlocksForListStyle'](){const _0x5ab5da=this['editor']['plugins']['get']('LegacyListUtils');let _0x35478c=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x35478c[0x0]?.['is']('element','listItem')&&_0x35478c['unshift'](..._0x5ab5da['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x35478c[_0x35478c['length']-0x1]?.['is']('element','listItem')&&_0x35478c['push'](..._0x5ab5da['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x35478c=[...new Set(_0x35478c)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x35478c=_0x35478c['filter'](_0x4820a8=>_0x4820a8['is']('element','listItem'))),_0x35478c;}['_getSuggestionBlocks'](_0x251341){const _0x22ed45=this['editor']['plugins']['get']('LegacyListUtils');let _0x157ff1=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x251341)['map'](_0x11e5f9=>{const _0x1bac8c=this['editor']['model']['createPositionAt'](_0x11e5f9,0x0);return[..._0x22ed45['getSiblingNodes'](_0x1bac8c,'backward'),..._0x22ed45['getSiblingNodes'](_0x1bac8c,'forward')];})['flat']();return _0x157ff1=[...new Set(_0x157ff1)],_0x157ff1;}['_getTranslationKeyForListStyle'](_0x92b0f2){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x92b0f2)||'default')['toUpperCase']()+'_LIST_'+_0x92b0f2['toUpperCase']()['replace'](/-/g,'_');}}class gt extends _0x518a62{['afterInit'](){const _0x58281f=this['editor'];if(!_0x58281f['plugins']['has']('MediaEmbedEditing'))return;const _0x1b14bb=_0x58281f['plugins']['get']('TrackChangesEditing'),_0x9f44d6=_0x58281f['locale'];_0x1b14bb['enableCommand']('mediaEmbed'),_0x1b14bb['descriptionFactory']['registerElementLabel']('media',_0x254c09=>o(_0x9f44d6,'ELEMENT_MEDIA',_0x254c09)),_0x58281f['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x5eb741,{writer:_0x272f4c,options:_0x25636a})=>{if(_0x25636a['showSuggestionHighlights'])return _0x272f4c['createEmptyElement']('div');},'converterPriority':'high'}),_0x58281f['data']['downcastDispatcher']['on']('attribute:url:media',(_0x123d9b,_0x55fa35,_0x291c9b)=>{_0x291c9b['options']['showSuggestionHighlights']&&_0x123d9b['stop']();},{'priority':'high'});}}class lt extends _0x518a62{['afterInit'](){const _0x35b639=this['editor'];_0x35b639['plugins']['has']('MentionEditing')&&_0x35b639['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x518a62{['afterInit'](){const _0x5966c3=this['editor'];if(!_0x5966c3['plugins']['has']('MergeFieldsEditing'))return;const _0x2b2886=_0x5966c3['plugins']['get']('TrackChangesEditing'),_0x5a09ae=_0x5966c3['locale'];_0x2b2886['enableCommand']('insertMergeField'),_0x2b2886['enableCommand']('insertMergeFieldBlock'),_0x2b2886['enableCommand']('insertMergeFieldImage'),_0x2b2886['descriptionFactory']['registerElementLabel']('mergeField',_0x2449f1=>o(_0x5a09ae,'ELEMENT_MERGE_FIELD',_0x2449f1)),_0x2b2886['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x4f7035=>o(_0x5a09ae,'ELEMENT_MERGE_FIELD',_0x4f7035)),_0x2b2886['descriptionFactory']['registerDescriptionCallback'](_0x371c74=>{if('insertion'!=_0x371c74['type']&&'deletion'!=_0x371c74['type'])return;const _0x48efbe=_0x371c74['getContainedElement']();if(null==_0x48efbe)return;const _0x545317=_0x5966c3['plugins']['get']('MergeFieldsEditing');let _0x10bbd3;switch(_0x545317['getMergeFieldType'](_0x48efbe)){case null:return;case'image':{const _0x193d26=_0x545317['unwrapAffixes'](_0x48efbe['getAttribute']('src'));_0x10bbd3=_0x545317['getLabel'](_0x193d26)||_0x193d26;break;}default:{const _0x4dec87=_0x48efbe['getAttribute']('id');_0x10bbd3=_0x545317['getLabel'](_0x4dec87)||_0x4dec87;break;}}return'insertion'==_0x371c74['type']?{'type':'insertion','content':o(_0x5a09ae,'*Insert:*\x20%0','\x22'+_0x10bbd3+'\x22\x20'+o(_0x5a09ae,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x5a09ae,'*Remove:*\x20%0','\x22'+_0x10bbd3+'\x22\x20'+o(_0x5a09ae,'ELEMENT_MERGE_FIELD'))};});}}class mt extends _0x518a62{['afterInit'](){const _0x48bd9e=this['editor'],_0x2ae5b1=_0x48bd9e['plugins']['get']('TrackChangesEditing');_0x48bd9e['plugins']['has']('MultiLevelList')&&(_0x2ae5b1['enableDefaultAttributesIntegration']('multiLevelList'),_0x2ae5b1['registerBlockAttribute']('listMarkerStyle'),_0x2ae5b1['descriptionFactory']['registerDescriptionCallback'](_0x20ef8e=>this['handleDescriptions'](_0x20ef8e)));}['handleDescriptions'](_0x1c95b4){const _0x4d3323=this['editor']['locale'],{data:_0x3db283}=_0x1c95b4,_0x5096a7={'type':'format','content':''};if(_0x3db283&&'listMarkerStyle'==_0x3db283['key']){if(!_0x3db283['oldValue'])return{'type':'format','content':o(_0x4d3323,'*Set\x20format:*\x20%0',o(_0x4d3323,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3db283['newValue']+')'};if(!_0x3db283['newValue']){let _0x4f6579=_0x1c95b4['head'];for(;_0x4f6579;){if(_0x4f6579['data']&&'listType'==_0x4f6579['data']['key']&&_0x4f6579['data']['newValue'])return _0x5096a7;_0x4f6579=_0x4f6579['next'];}return{'type':'format','content':o(_0x4d3323,'*Remove\x20format:*\x20%0',o(_0x4d3323,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3db283['oldValue']+')'};}}}}class pt extends _0x518a62{['afterInit'](){const _0x453302=this['editor'];if(!_0x453302['plugins']['has']('PageBreakEditing'))return;_0x453302['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x3a6a3e=_0x453302['plugins']['get']('TrackChangesEditing'),_0x580466=_0x453302['locale'];_0x3a6a3e['descriptionFactory']['registerElementLabel']('pageBreak',_0x22fd06=>o(_0x580466,'ELEMENT_PAGE_BREAK',_0x22fd06));}}class kt extends _0x518a62{['afterInit'](){const _0x1d8374=this['editor'];if(!_0x1d8374['plugins']['has']('Paragraph'))return;const _0x1df211=_0x1d8374['locale'],_0x265024=_0x1d8374['plugins']['get']('TrackChangesEditing');_0x265024['descriptionFactory']['registerElementLabel']('paragraph',_0x4db506=>o(_0x1df211,'ELEMENT_PARAGRAPH',_0x4db506)),_0x265024['enableDefaultAttributesIntegration']('paragraph'),_0x265024['enableCommand']('insertParagraph'),_0x1d8374['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x1d8374),{'priority':'highest'}),_0x1d8374['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3d1c24,_0x923385,_0x1d0683)=>{_0x1d0683['options']['showSuggestionHighlights']&&nr(_0x1d8374,{'showActiveMarker':!0x1})(_0x3d1c24,_0x923385,_0x1d0683);},{'priority':'highest'});const _0x287561=_0x265024['descriptionFactory'];_0x287561['registerDescriptionCallback'](_0x4f3a81=>{if('insertion'!==_0x4f3a81['type'])return;const {start:_0x19e7e1,end:_0x451e17}=_0x4f3a81['getFirstRange']();if(!_0x19e7e1['isTouching'](_0x451e17)||!_0x19e7e1['nodeAfter'])return;const _0x528cc1=_0x1d8374['model']['schema'],_0x5b45e1=_0x19e7e1['nodeAfter'];return _0x528cc1['isBlock'](_0x5b45e1)&&!_0x528cc1['isLimit'](_0x5b45e1)&&_0x528cc1['checkChild'](_0x5b45e1,'$text')?{'type':'insertion','content':o(_0x1df211,'*Insert:*\x20%0',_0x287561['getItemLabel'](_0x5b45e1,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4634ea=this['editor'],_0x5b291b=_0x4634ea['locale'];_0x4634ea['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x504a81=>{if('formatBlock'!=_0x504a81['type'])return;const {data:_0x374443}=_0x504a81;return _0x374443&&'paragraph'==_0x374443['commandName']?{'type':'format','content':o(_0x5b291b,'*Change\x20to:*\x20%0',o(_0x5b291b,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x2318f8,{showActiveMarker:_0xfe87ee=!0x0}={}){return(_0x228aae,_0x3fd2ae,_0x2e4cee)=>{const _0xa2208e=_0x2318f8['plugins']['get']('TrackChangesEditing'),_0x5a7c90=_0x3fd2ae['markerRange']['start'],_0x32347f=_0x3fd2ae['markerRange']['end'],_0x1a550c=_0x2318f8['model']['schema'];if(!_0x5a7c90['isTouching'](_0x32347f)||!_0x5a7c90['nodeAfter'])return;const _0x244f26=_0x5a7c90['nodeAfter'];if(_0x1a550c['isBlock'](_0x244f26)&&!_0x1a550c['isLimit'](_0x244f26)&&_0x1a550c['checkChild'](_0x244f26,'$text')){if(!_0x2e4cee['consumable']['consume'](_0x3fd2ae['markerRange'],_0x228aae['name']))return;const {id:_0x2e232f,authorId:_0x74801c}=_0xa2208e['_splitMarkerName'](_0x3fd2ae['markerName']),_0x2ba955=_0x2e4cee['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x2e232f,'data-author-id':_0x74801c}),_0x31bcee=_0x2e4cee['mapper']['toViewPosition'](_0x32347f);_0xfe87ee&&_0xa2208e['activeMarkers']['includes'](_0x3fd2ae['markerName'])&&_0x2e4cee['writer']['addClass']('ck-suggestion-marker--active',_0x2ba955),_0x2e4cee['writer']['insert'](_0x31bcee,_0x2ba955),_0x2e4cee['mapper']['bindElementToMarker'](_0x2ba955,_0x3fd2ae['markerName']);}};}class wt extends _0x518a62{['afterInit'](){const _0x129c4e=this['editor'];_0x129c4e['commands']['get']('replaceSource')&&_0x129c4e['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class bt extends _0x518a62{['afterInit'](){const _0x115105=this['editor'];if(!_0x115105['plugins']['has']('RemoveFormatEditing'))return;_0x115105['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x92a28a=this['editor'];_0x92a28a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3603f5=>{if('formatBlock'!=_0x3603f5['type']&&'formatInline'!=_0x3603f5['type'])return;const {data:_0x4c095a}=_0x3603f5;return _0x4c095a&&'removeFormat'==_0x4c095a['commandName']?{'type':'format','content':o(_0x92a28a['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x518a62{['afterInit'](){const _0x2c1441=this['editor'];if(!_0x2c1441['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x36ab9c=_0x2c1441['plugins']['get']('TrackChangesEditing');_0x36ab9c['enableCommand']('goToPreviousRestrictedEditingException'),_0x36ab9c['enableCommand']('goToNextRestrictedEditingException');const _0x17e250=_0x2c1441['plugins']['get']('RestrictedEditingModeEditing');_0x17e250['enableCommand']('trackChanges'),_0x17e250['enableCommand']('acceptSuggestion'),_0x17e250['enableCommand']('discardSuggestion'),_0x17e250['enableCommand']('acceptAllSuggestions'),_0x17e250['enableCommand']('discardAllSuggestions'),_0x17e250['enableCommand']('acceptSelectedSuggestions'),_0x17e250['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x518a62{['afterInit'](){const _0x265c73=this['editor'];if(!_0x265c73['plugins']['has']('ShiftEnter'))return;const _0x363327=_0x265c73['plugins']['get']('TrackChangesEditing');_0x363327['enableCommand']('shiftEnter'),_0x265c73['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x265c73),{'priority':'high'}),_0x265c73['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x265c73),{'priority':'high'}),_0x265c73['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4ba70f,_0x22496f,_0x482b0a)=>{_0x482b0a['options']['showSuggestionHighlights']&&je(_0x265c73,{'showActiveMarker':!0x1})(_0x4ba70f,_0x22496f,_0x482b0a);}),_0x363327['descriptionFactory']['registerElementLabel']('softBreak',_0x23e9f6=>o(_0x265c73['locale'],'ELEMENT_LINE_BREAK',_0x23e9f6));}}function je(_0x3c1486,{showActiveMarker:_0x9f3989=!0x0}={}){return(_0x2d02f5,_0x528951,_0x255131)=>{const _0x61ee86=_0x3c1486['plugins']['get']('TrackChangesEditing');if(!_0x255131['consumable']['test'](_0x528951['markerRange'],_0x2d02f5['name']))return;const _0x28352b=_0x3c1486['model'];for(const _0x21da25 of _0x528951['markerRange']['getItems']()){if(!_0x21da25['is']('element','softBreak'))continue;const _0x2c31dc='deletion'==_0x528951['markerName']['split'](':')[0x1]?'merge':'split',{id:_0xa5bb38,authorId:_0x4e1f3d}=_0x61ee86['_splitMarkerName'](_0x528951['markerName']),_0xa6ebbd=_0x255131['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2c31dc,'data-suggestion':_0xa5bb38,'data-author-id':_0x4e1f3d}),_0x2e9abe=_0x255131['mapper']['toViewPosition'](_0x28352b['createPositionBefore'](_0x21da25));_0x9f3989&&_0x61ee86['activeMarkers']['includes'](_0x528951['markerName'])&&_0x255131['writer']['addClass']('ck-suggestion-marker--active',_0xa6ebbd),_0x255131['writer']['insert'](_0x2e9abe,_0xa6ebbd),_0x255131['mapper']['bindElementToMarker'](_0xa6ebbd,_0x528951['markerName']);}};}class St extends _0x518a62{['afterInit'](){const _0x4ef68e=this['editor'],_0x538589=_0x4ef68e['model'],_0x30a0e8=_0x4ef68e['locale'];if(!_0x4ef68e['plugins']['has']('StandardEditingModeEditing'))return;const _0x35d0ad=_0x4ef68e['plugins']['get']('TrackChangesEditing'),_0x3a0760='restrictedEditingException',_0x46489c=_0x4ef68e['commands']['get'](_0x3a0760);_0x35d0ad['enableCommand'](_0x3a0760,(_0x14675d,_0x477fdb={})=>{const _0x3cd3ac=_0x538589['document']['selection'];if(_0x3cd3ac['isCollapsed'])return void _0x14675d(_0x477fdb);const _0xd24f7a=void 0x0!==_0x477fdb['forceValue']?_0x477fdb['forceValue']:!_0x46489c['value'];_0x538589['change'](()=>{const _0x559bf5=Array['from'](_0x3cd3ac['getRanges']());for(const _0xb881cb of _0x559bf5){const _0xb55c0a=_0xd24f7a?[_0xb881cb]:io(_0x3a0760,_0xb881cb,_0x538589);for(const _0x420f44 of _0xb55c0a)_0x35d0ad['markInlineFormat'](_0x420f44,{'commandName':_0x3a0760,'commandParams':[{'forceValue':_0xd24f7a}]});}});}),_0x35d0ad['descriptionFactory']['registerDescriptionCallback'](_0x112a97=>{if('formatBlock'!=_0x112a97['type']&&'formatInline'!=_0x112a97['type'])return;const {data:_0x45e480}=_0x112a97;return _0x45e480&&_0x45e480['commandName']==_0x3a0760?_0x45e480['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x30a0e8,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x30a0e8,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x518a62{['afterInit'](){const _0x23d3a3=this['editor'];if(!_0x23d3a3['plugins']['has']('Style')||!_0x23d3a3['plugins']['has']('DataSchema'))return;const _0x21969c=_0x23d3a3['plugins']['get']('TrackChangesEditing'),_0x16b7f5=_0x23d3a3['locale'],_0x93dc1b=_0x23d3a3['config']['get']('style')||{},_0x155825=_0x23d3a3['plugins']['get']('GeneralHtmlSupport'),_0x1d800d=_0x23d3a3['plugins']['get']('StyleUtils')['normalizeConfig'](_0x23d3a3['plugins']['get']('DataSchema'),_0x93dc1b['definitions']);_0x21969c['enableDefaultAttributesIntegration']('style');const _0x18931b=new Set();for(const _0x294ecd of _0x1d800d['block']){const _0x38c1cc=_0x155825['getGhsAttributeNameForElement'](_0x294ecd['element']);_0x18931b['add'](_0x38c1cc);}const _0x50e39f=new Set();for(const _0x4030c2 of _0x1d800d['inline']){const _0x317132=_0x155825['getGhsAttributeNameForElement'](_0x4030c2['element']);_0x50e39f['add'](_0x317132);for(const _0x7d1195 of _0x4030c2['ghsAttributes'])_0x50e39f['add'](_0x7d1195);}for(const _0x5e3e0c of _0x18931b)_0x21969c['registerBlockAttribute'](_0x5e3e0c),_0x21969c['descriptionFactory']['registerAttributeLabel'](_0x5e3e0c,o(_0x16b7f5,'FORMAT_STYLE'));for(const _0x5b24b1 of _0x50e39f)_0x21969c['registerInlineAttribute'](_0x5b24b1),_0x21969c['descriptionFactory']['registerAttributeLabel'](_0x5b24b1,o(_0x16b7f5,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1c48c0=this['editor'],_0x54ae5b=_0x1c48c0['locale'];_0x1c48c0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xc8c73e=>{if('formatBlock'!=_0xc8c73e['type']&&'formatInline'!=_0xc8c73e['type'])return;const {data:_0x2171b0}=_0xc8c73e;return _0x2171b0&&'style'===_0x2171b0['commandName']?_0x2171b0['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x54ae5b,'*Set\x20format:*\x20%0',_0x2171b0['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x54ae5b,'*Remove\x20format:*\x20%0',_0x2171b0['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class At extends _0x518a62{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x1624ad){super(_0x1624ad),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x410137=this['editor'],_0x426d3e=_0x410137['model']['document']['selection'];if(!_0x410137['plugins']['has']('TableEditing'))return;const _0x49ab46=_0x410137['locale'],_0x1a8f97=_0x410137['plugins']['get']('TrackChangesEditing'),_0x25b7a6=_0x410137['plugins']['get']('TableUtils');_0x1a8f97['descriptionFactory']['registerElementLabel']('table',_0xfe51a1=>o(_0x49ab46,'ELEMENT_TABLE',_0xfe51a1)),this['_setupColumnsRowsFixing'](),_0x1a8f97['enableCommand']('insertTable'),_0x1a8f97['enableCommand']('selectTableRow'),_0x1a8f97['enableCommand']('selectTableColumn');for(const _0x45229f of['insertTableRowAbove','insertTableRowBelow']){const _0x5cd4cd=_0x410137['commands']['get'](_0x45229f);_0x1a8f97['enableCommand'](_0x45229f,_0x19392f=>{_0x410137['model']['change'](_0x5b5f10=>{_0x19392f();const _0x2d1620='above'===_0x5cd4cd['order'],_0x14a0dc=_0x25b7a6['getSelectionAffectedTableCells'](_0x426d3e),_0x4230e4=_0x25b7a6['getRowIndexes'](_0x14a0dc),_0x1b38db=_0x2d1620?_0x4230e4['first']-0x1:_0x4230e4['last']+0x1,_0x19f3c5=_0x14a0dc[0x0]['findAncestor']('table'),_0x105342=_0x25b7a6['createTableWalker'](_0x19f3c5,{'startRow':_0x1b38db,'endRow':_0x1b38db}),_0x2a3795=Array['from'](_0x105342)['map'](_0x58b2bb=>_0x5b5f10['createRangeOn'](_0x58b2bb['cell']));_0x1a8f97['markMultiRangeInsertion'](_0x2a3795,'tableRow');});});}for(const _0x132632 of['insertTableColumnLeft','insertTableColumnRight']){const _0x5361d7=_0x410137['commands']['get'](_0x132632);_0x1a8f97['enableCommand'](_0x132632,_0x40c1b7=>{_0x410137['model']['change'](_0x47e408=>{_0x40c1b7();const _0x39509a='left'===_0x5361d7['order'],_0x413723=_0x25b7a6['getSelectionAffectedTableCells'](_0x426d3e),_0x3779ed=_0x25b7a6['getColumnIndexes'](_0x413723),_0xcfb4af=_0x39509a?_0x3779ed['first']-0x1:_0x3779ed['last']+0x1,_0x182863=_0x413723[0x0]['findAncestor']('table'),_0x4bab18=_0x25b7a6['createTableWalker'](_0x182863,{'startRow':0x0,'column':_0xcfb4af,'includeAllSlots':!0x1}),_0x90bb07=Array['from'](_0x4bab18)['map'](_0x5f49a8=>_0x47e408['createRangeOn'](_0x5f49a8['cell']));_0x1a8f97['markMultiRangeInsertion'](_0x90bb07,'tableColumn');});});}for(const _0x341960 of['removeTableRow','removeTableColumn']){const _0x344cbd=_0x341960['substr'](0xb),_0x145e38=_0x344cbd['toLowerCase'](),_0x3819b6=_0x145e38['substr'](0x0,0x3)+'span',_0x40479b='table'+_0x344cbd,_0x28f73f='min'+_0x344cbd,_0x38d5c4='max'+_0x344cbd;_0x1a8f97['enableCommand'](_0x341960,()=>{_0x410137['model']['change'](_0x35704d=>{const _0x25a78e=_0x25b7a6['getSelectionAffectedTableCells'](_0x426d3e),_0x186f08=_0x25a78e[0x0]['findAncestor']('table');let _0x279b37;if('removeTableRow'==_0x341960){const _0x543ed4=_0x25b7a6['getRowIndexes'](_0x25a78e);_0x279b37={'startRow':_0x543ed4['first'],'endRow':_0x543ed4['last'],'includeAllSlots':!0x0};}else{const _0x15de25=_0x25b7a6['getColumnIndexes'](_0x25a78e);_0x279b37={'startColumn':_0x15de25['first'],'endColumn':_0x15de25['last'],'includeAllSlots':!0x0};}const _0x40ff47=_0x25b7a6['createTableWalker'](_0x186f08,_0x279b37),_0x50152b=Array['from'](_0x40ff47)['map'](({cell:_0x1185a9})=>_0x1185a9),_0x31a441=Ne(_0x50152b['filter'](_0x46a3b9=>_0x46a3b9['hasAttribute'](_0x3819b6))),_0x9eb7a7=Ne(_0x50152b['filter'](_0x5bdc47=>!_0x5bdc47['hasAttribute'](_0x3819b6)))['map'](_0x28158d=>_0x35704d['createRangeOn'](_0x28158d)),_0x2a4faf=_0x1a8f97['markMultiRangeDeletion'](_0x9eb7a7,_0x40479b);if(_0x2a4faf&&('tableRow'==_0x2a4faf['subType']||'tableColumn'==_0x2a4faf['subType'])){const _0x25d2a2=this['_getSuggestionCoords'](_0x2a4faf);for(const _0xbe3780 of _0x31a441){const _0x9822a1=_0x35704d['createRangeOn'](_0xbe3780),_0x3d851a=_0x25b7a6['getCellLocation'](_0xbe3780),_0x4e6a6f=_0xbe3780['getAttribute'](_0x3819b6)-0x1,_0x5ed284=_0x25d2a2[_0x28f73f],_0x1f131e=_0x25d2a2[_0x38d5c4];_0x5ed284<=_0x3d851a[_0x145e38]&&_0x3d851a[_0x145e38]+_0x4e6a6f<=_0x1f131e&&_0x2a4faf['addRange'](_0x9822a1);}}});});}function _0xb25e39(_0x3dc3eb){const _0x2be535=Array['from'](_0x426d3e['getRanges']())['map'](_0x3d514f=>_0x5d0c54['fromRange'](_0x3d514f));_0x410137['model']['change'](_0xa2577c=>{const _0x50200d=_0xa2577c['batch'];_0x3dc3eb=_0x3dc3eb['filter'](_0x5b1482=>'$graveyard'!=_0x5b1482['root']['rootName']),_0xa2577c['setSelection'](_0x3dc3eb),_0x410137['commands']['get']('removeTableRow')['refresh'](),_0x410137['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x410137['model']['enqueueChange'](()=>{_0x410137['model']['enqueueChange'](_0x50200d,_0x1e6b5d=>{const _0x1c4101=_0x2be535['filter'](_0x58c4c9=>'$graveyard'!=_0x58c4c9['root']['rootName']);_0x1c4101['length']>0x0&&_0x1e6b5d['setSelection'](_0x1c4101);for(const _0x26028c of _0x2be535)_0x26028c['detach']();});});});}function _0x51de55(_0x39525a){_0x410137['model']['change'](_0xf985e0=>{const _0x958849=Array['from'](_0x426d3e['getRanges']())['map'](_0x4fb241=>_0x5d0c54['fromRange'](_0x4fb241)),_0x555a4b=[];for(const _0xf10f4c of _0x39525a)for(const _0x341b21 of _0xf10f4c['getItems']({'shallow':!0x0}))_0x555a4b['push'](_0x341b21);for(const _0x352d71 of _0x555a4b)'$graveyard'!=_0x352d71['root']['rootName']&&(_0xf985e0['setSelection'](_0xf985e0['createPositionAt'](_0x352d71,0x0)),_0x410137['commands']['get']('removeTableColumn')['refresh'](),_0x410137['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x41138e=_0x958849['filter'](_0x144b98=>'$graveyard'!=_0x144b98['root']['rootName']);_0x41138e['length']>0x0&&_0xf985e0['setSelection'](_0x41138e);for(const _0x954564 of _0x958849)_0x954564['detach']();});}function _0x45ca1f(_0x822fc0,_0x11770e){return _0x11770e['every'](_0x46b724=>_0x822fc0['some'](_0x1a1088=>_0x1a1088['end']['isEqual'](_0x46b724['start'])||_0x46b724['end']['isEqual'](_0x1a1088['start'])));}function _0x51db4f(_0x3a4eeb,_0x30b6d6){return!_0x3a4eeb['some'](_0x3908b0=>_0x30b6d6['some'](_0x2833d9=>_0x3908b0['isIntersecting'](_0x2833d9)))&&_0x3a4eeb['some'](_0x4b6b93=>_0x30b6d6['some'](_0x46d087=>_0x4b6b93['end']['isTouching'](_0x46d087['start'])));}_0x410137['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x480cc0,_0x59bdfd,_0x4af2d7)=>{if(!_0x4af2d7['options']['showSuggestionHighlights'])return;const _0x2c4c56=_0x59bdfd['item'];if(!_0x2c4c56||!_0x2c4c56['is']('element','tableCell'))return;const _0x2168b8=_0x4af2d7['mapper']['toViewElement'](_0x2c4c56);if(_0x2168b8){const {id:_0x448903,authorId:_0x30c439}=_0x1a8f97['_splitMarkerName'](_0x59bdfd['markerName']);_0x3d5196(_0x2168b8,_0x4af2d7['writer'],(_0x94dbc,_0x33b81e,_0x3d49ef)=>{_0x3d49ef['addClass'](_0x26db84(_0x33b81e['classes']),_0x94dbc),_0x3d49ef['setAttribute']('data-suggestion-id',_0x448903,_0x94dbc),_0x3d49ef['setAttribute']('data-author-id',_0x30c439,_0x94dbc);},(_0x31e2db,_0x311c85,_0x2e4200)=>{_0x2e4200['removeClass'](_0x26db84(_0x311c85['classes']),_0x31e2db),_0x2e4200['removeAttribute']('data-suggestion-id',_0x31e2db),_0x2e4200['removeAttribute']('data-author-id',_0x31e2db);});}},{'priority':'highest'}),_0x1a8f97['descriptionFactory']['registerDescriptionCallback'](_0x1a9de8=>{if('insertion'!=_0x1a9de8['type']&&'deletion'!=_0x1a9de8['type'])return;const _0x58af5d=_0x1a9de8['getContainedElement']();if(null!=_0x58af5d&&_0x58af5d['is']('element','table')){if('insertion'==_0x1a9de8['type']){const _0x192a0f=_0x1a9de8['getItems']()['filter'](_0x3e2dfe=>_0x3e2dfe['is']('$textProxy'))['map'](_0x101f14=>_0x101f14['data']);if(_0x192a0f['length'])return{'type':'insertion','content':o(_0x49ab46,'*Insert:*\x20%0',o(_0x49ab46,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x192a0f['join']('\x20')+'\x22'))};}if('deletion'==_0x1a9de8['type']){const _0x4509a6=_0x1a9de8['getItems']()['filter'](_0x2fb8ad=>_0x2fb8ad['is']('$textProxy'))['map'](_0x5be871=>_0x5be871['data']);if(_0x4509a6['length'])return{'type':'deletion','content':o(_0x49ab46,'*Remove:*\x20%0',o(_0x49ab46,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4509a6['join']('\x20')+'\x22'))};}}}),_0x1a8f97['descriptionFactory']['registerDescriptionCallback'](_0x569782=>{if('tableRow'==_0x569782['subType']){const _0x2906c1=_0x569782['getItems']()['filter'](_0xf76072=>_0xf76072['is']('$textProxy'))['map'](_0x3d7d33=>_0x3d7d33['data']),_0x2ede1e=this['_getSuggestionCoords'](_0x569782),_0x184828=_0x2ede1e['maxRow']-_0x2ede1e['minRow']+0x1;if('insertion'==_0x569782['type'])return _0x2906c1['length']?{'type':'insertion','content':o(_0x49ab46,'*Insert:*\x20%0',o(_0x49ab46,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x184828,'\x22'+_0x2906c1['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x49ab46,'*Insert:*\x20%0',o(_0x49ab46,'ELEMENT_TABLE_ROW',_0x184828))};if('deletion'==_0x569782['type'])return _0x2906c1['length']?{'type':'deletion','content':o(_0x49ab46,'*Remove:*\x20%0',o(_0x49ab46,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x184828,'\x22'+_0x2906c1['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x49ab46,'*Remove:*\x20%0',o(_0x49ab46,'ELEMENT_TABLE_ROW',_0x184828))};}if('tableColumn'==_0x569782['subType']){const _0x3c6120=_0x569782['getItems']()['filter'](_0x1a37a9=>_0x1a37a9['is']('$textProxy'))['map'](_0x1f372e=>_0x1f372e['data']),_0x188e01=this['_getSuggestionCoords'](_0x569782),_0x3fdc65=_0x188e01['maxColumn']-_0x188e01['minColumn']+0x1;if('insertion'==_0x569782['type'])return _0x3c6120['length']?{'type':'insertion','content':o(_0x49ab46,'*Insert:*\x20%0',o(_0x49ab46,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3fdc65,'\x22'+_0x3c6120['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x49ab46,'*Insert:*\x20%0',o(_0x49ab46,'ELEMENT_TABLE_COLUMN',_0x3fdc65))};if('deletion'==_0x569782['type'])return _0x3c6120['length']?{'type':'deletion','content':o(_0x49ab46,'*Remove:*\x20%0',o(_0x49ab46,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3fdc65,'\x22'+_0x3c6120['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x49ab46,'*Remove:*\x20%0',o(_0x49ab46,'ELEMENT_TABLE_COLUMN',_0x3fdc65))};}}),_0x1a8f97['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0xb25e39),_0x1a8f97['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0xb25e39),_0x1a8f97['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x51de55),_0x1a8f97['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x51de55),_0x1a8f97['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x45ca1f),_0x1a8f97['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x45ca1f),_0x1a8f97['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x51db4f),_0x1a8f97['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x51db4f);}['_acceptFormatSuggestionCallbackFactory'](){const _0x5e6957=this['editor'],_0x13f99e=_0x5e6957['model']['document']['selection'];return(_0x26d49c,_0x3afcb2)=>{_0x5e6957['model']['change'](_0x595ba4=>{const {commandName:_0x29dcad,commandParams:_0x15f1ac}=_0x3afcb2;let _0x431043=_0x26d49c[0x0]['end']['nodeBefore'];_0x15f1ac&&_0x15f1ac[0x0]&&!0x1===_0x15f1ac[0x0]['forceValue']&&(_0x431043=_0x26d49c[0x0]['start']['nodeAfter']);const _0x11798c=_0x595ba4['createRangeIn'](_0x431043);if('$graveyard'==_0x11798c['root']['rootName'])return;const _0x13d145=Array['from'](_0x13f99e['getRanges']())['map'](_0x297655=>_0x5d0c54['fromRange'](_0x297655));_0x595ba4['setSelection'](_0x11798c),_0x5e6957['commands']['get'](_0x29dcad)['refresh'](),_0x15f1ac['push']({'forceDefaultExecution':!0x0}),_0x5e6957['execute'](_0x29dcad,..._0x15f1ac);const _0x16d3c4=_0x13d145['filter'](_0x42928c=>'$graveyard'!=_0x42928c['root']['rootName']);_0x16d3c4['length']>0x0&&_0x595ba4['setSelection'](_0x16d3c4);for(const _0x3c48b0 of _0x13d145)_0x3c48b0['detach']();});};}['_getCoordsForCells'](_0x5a4f7d){const _0x156ed6=this['editor']['plugins']['get']('TableUtils');let _0x38e885=Number['MAX_SAFE_INTEGER'],_0x34a1ae=Number['MIN_SAFE_INTEGER'],_0x778ebd=Number['MAX_SAFE_INTEGER'],_0x1dcd90=Number['MIN_SAFE_INTEGER'];for(const _0x4725ab of _0x5a4f7d){if('$graveyard'==_0x4725ab['root']['rootName'])continue;const {row:_0x379ba1,column:_0x45acb3}=_0x156ed6['getCellLocation'](_0x4725ab),_0x4bf9eb=_0x4725ab['hasAttribute']('rowspan')?_0x4725ab['getAttribute']('rowspan')-0x1:0x0,_0x1bf7c6=_0x4725ab['hasAttribute']('colspan')?_0x4725ab['getAttribute']('colspan')-0x1:0x0;_0x38e885=_0x379ba1<_0x38e885?_0x379ba1:_0x38e885,_0x34a1ae=_0x379ba1+_0x4bf9eb>_0x34a1ae?_0x379ba1+_0x4bf9eb:_0x34a1ae,_0x778ebd=_0x45acb3<_0x778ebd?_0x45acb3:_0x778ebd,_0x1dcd90=_0x45acb3+_0x1bf7c6>_0x1dcd90?_0x45acb3+_0x1bf7c6:_0x1dcd90;}return{'minRow':_0x38e885,'maxRow':_0x34a1ae,'minColumn':_0x778ebd,'maxColumn':_0x1dcd90};}['_setupColumnsRowsFixing'](){const _0x577f7a=this['editor'],_0x13be55=_0x577f7a['plugins']['get']('TrackChangesEditing'),_0xca4da8=_0x577f7a['plugins']['get']('TableUtils');_0x577f7a['model']['document']['on']('change:data',()=>{const _0xe47432=Array['from'](_0x577f7a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2661b8,data:_0x21b24d}of _0xe47432){const {group:_0x101e4c,id:_0x10a677,subType:_0x617f56}=_0x13be55['_splitMarkerName'](_0x2661b8);if('suggestion'!=_0x101e4c)continue;if(null!=_0x21b24d['oldRange'])continue;const _0x556770=_0x13be55['getSuggestion'](_0x10a677);this['_tablePostFixingSubtypes']['includes'](_0x617f56)&&this['_tableSuggestions']['add'](_0x556770);}},{'priority':'low'});const _0x3c7d8c=(_0x6ab5d8,_0x2c53fb)=>{let _0x437d0a=!0x1;const _0x5a29e1=_0x2c53fb['createRangeOn'](_0x6ab5d8),_0x224fc2=_0x6ab5d8['findAncestor']('table'),_0x105cb8=_0xca4da8['getCellLocation'](_0x6ab5d8);for(const _0x1d8eb7 of this['_tableSuggestions']){const _0x429fec=_0x1d8eb7['subType'],_0x2015d6=_0x429fec['startsWith']('tablePaste'),_0x426ee1=_0x429fec['substr'](_0x2015d6?0xa:0x5),_0x5b9f93=_0x426ee1['toLowerCase'](),_0x278d7e=_0x5b9f93['substr'](0x0,0x3)+'span',_0x5e0561='min'+_0x426ee1,_0x179789='max'+_0x426ee1;if(!_0x1d8eb7['isInContent'])continue;if(_0x224fc2!=_0x1d8eb7['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x1d8eb7['isIntersectingWithRange'](_0x5a29e1))continue;const _0x4b9e8c=_0x6ab5d8['hasAttribute'](_0x278d7e)?_0x6ab5d8['getAttribute'](_0x278d7e)-0x1:0x0,_0x38f9e4=this['_getSuggestionCoords'](_0x1d8eb7),_0x223efc=_0x38f9e4[_0x5e0561],_0x43a365=_0x38f9e4[_0x179789];_0x223efc<=_0x105cb8[_0x5b9f93]&&_0x105cb8[_0x5b9f93]+_0x4b9e8c<=_0x43a365&&(_0x1d8eb7['addRange'](_0x5a29e1),_0x437d0a=!0x0);}return _0x437d0a;};_0x577f7a['model']['document']['registerPostFixer'](_0xa7d971=>{let _0x210b33=!0x1;for(const _0x2f8f1b of _0x577f7a['model']['document']['differ']['getChanges']())if('insert'==_0x2f8f1b['type']){if('tableRow'==_0x2f8f1b['name']){for(const _0x4a8fca of _0x2f8f1b['position']['nodeAfter']['getChildren']())_0x210b33=_0x210b33||_0x3c7d8c(_0x4a8fca,_0xa7d971);}else'tableCell'==_0x2f8f1b['name']&&(_0x210b33=_0x210b33||_0x3c7d8c(_0x2f8f1b['position']['nodeAfter'],_0xa7d971));}return _0x210b33;});}['_getSuggestionCoords'](_0xd6fff9){return this['_getCoordsForCells'](_0xd6fff9['getRanges']()['map'](_0x20c117=>_0x20c117['start']['nodeAfter']));}}function Ne(_0x4fa36e){return Array['from'](new Set(_0x4fa36e)['values']());}class _t extends _0x518a62{static get['requires'](){return[At];}['afterInit'](){const _0x3fb727=this['editor'],_0x5b2468=_0x3fb727['model']['document']['selection'],_0x112685=_0x3fb727['locale'];if(!_0x3fb727['plugins']['has']('TableEditing'))return;const _0x3fef42=_0x3fb727['plugins']['get']('TrackChangesEditing'),_0x2fc1cf=_0x3fb727['plugins']['get']('TableUtils'),_0x38c8a1=_0x3fb727['plugins']['get'](At);_0x38c8a1['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x3fef42['enableCommand']('mergeTableCells',()=>{const _0x40a8a6=_0x2fc1cf['getSelectionAffectedTableCells'](_0x3fb727['model']['document']['selection']);_0x3fb727['model']['change'](()=>{_0x3fef42['markMultiRangeBlockFormat'](_0x40a8a6,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x3fb727['commands']['get']('mergeTableCells')['on']('execute',(_0x2b963a,_0x8177df)=>{_0x3fb727['commands']['get']('trackChanges')['value']&&(_0x8177df['length']>0x0&&_0x8177df[_0x8177df['length']-0x1]&&_0x8177df[_0x8177df['length']-0x1]['forceDefaultExecution']||_0x3fef42['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x2b963a['stop']());},{'priority':'highest'});for(const _0x4b3591 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x41ed84=_0x3fb727['commands']['get'](_0x4b3591);_0x3fef42['enableCommand'](_0x4b3591,()=>{const _0x29be60=_0x3fb727['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4ba132=>_0x4ba132['is']('element','tableCell')),_0x58bfe8=_0x41ed84['value'];_0x3fb727['model']['change'](()=>{_0x3fef42['markMultiRangeBlockFormat']([_0x29be60,_0x58bfe8],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x422565 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x1ecfb0=_0x3fb727['commands']['get'](_0x422565);_0x3fef42['enableCommand'](_0x422565,()=>{const _0x34bfb0=_0x2fc1cf['getSelectionAffectedTableCells'](_0x3fb727['model']['document']['selection'])[0x0],_0x31855a=_0x34bfb0['findAncestor']('table'),{column:_0x5d4b1b,row:_0x492975}=_0x2fc1cf['getCellLocation'](_0x34bfb0);let _0xa5cabd=[];if('horizontally'==_0x1ecfb0['direction']){const _0x3cb548=_0x2fc1cf['createTableWalker'](_0x31855a,{'startRow':_0x492975,'endRow':_0x492975,'includeAllSlots':!0x0});_0xa5cabd=Array['from'](_0x3cb548)['map'](_0x15a3e0=>_0x15a3e0['cell']);}else{const _0x4fb0c1=_0x2fc1cf['createTableWalker'](_0x31855a,{'column':_0x5d4b1b,'includeAllSlots':!0x0});_0xa5cabd=Array['from'](_0x4fb0c1)['map'](_0x4ca4a1=>_0x4ca4a1['cell']);}_0x3fb727['model']['change'](_0x3eae96=>{_0x3fef42['markBlockFormat'](_0x3eae96['createRangeOn'](_0x34bfb0),{'commandName':_0x422565,'commandParams':[]},_0xa5cabd,_0x422565);});});}_0x3fef42['descriptionFactory']['registerDescriptionCallback'](_0x16638f=>{if('formatBlock'!=_0x16638f['type']&&'formatInline'!=_0x16638f['type'])return;const {data:_0x11e625}=_0x16638f;return _0x11e625&&'mergeTableCells'==_0x11e625['commandName']?{'type':'format','content':o(_0x112685,'*Merge\x20cells*')}:void 0x0;}),_0x3fef42['descriptionFactory']['registerDescriptionCallback'](_0x27cd11=>{if('formatBlock'!=_0x27cd11['type']&&'formatInline'!=_0x27cd11['type'])return;const {data:_0x54eeef}=_0x27cd11;return _0x54eeef?'splitTableCellVertically'==_0x54eeef['commandName']?{'type':'format','content':o(_0x112685,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x54eeef['commandName']?{'type':'format','content':o(_0x112685,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x4a712e=_0x38c8a1['_acceptFormatSuggestionCallbackFactory']();for(const _0x3c1faf of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x3fef42['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3c1faf,'accept',_0x4a712e);for(const _0x35ceaa of['splitTableCellVertically','splitTableCellHorizontally'])_0x3fef42['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x35ceaa,'accept',_0x4a712e);_0x3fef42['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x2928d9=>{_0x3fb727['model']['change'](_0x4df5d8=>{const _0x317a8c=Array['from'](_0x5b2468['getRanges']())['map'](_0x306b53=>_0x5d0c54['fromRange'](_0x306b53));_0x4df5d8['setSelection'](_0x2928d9),_0x3fb727['commands']['get']('mergeTableCells')['refresh'](),_0x3fb727['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x543b83=_0x317a8c['filter'](_0x1f61b3=>'$graveyard'!=_0x1f61b3['root']['rootName']);_0x543b83['length']>0x0&&_0x4df5d8['setSelection'](_0x543b83);for(const _0x1bdb74 of _0x317a8c)_0x1bdb74['detach']();});});for(const _0x24bb2e of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x521d5c=_0x3fb727['commands']['get'](_0x24bb2e);_0x521d5c['on']('set:isEnabled',(_0x4485fb,_0xddb13a,_0x32a708)=>{if(_0x32a708){const _0x5099cd=_0x3fb727['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x235ecc=>_0x235ecc['is']('element','tableCell'));this['_areMergableCells'](_0x521d5c['value'],_0x5099cd)||(_0x4485fb['return']=!0x1,_0x4485fb['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x519226=this['editor']['commands']['get']('mergeTableCells'),_0xaf324=this['editor']['plugins']['get']('TableUtils');if(!_0x519226['isEnabled'])return!0x1;const _0x694376=_0xaf324['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x41edb4 of _0x694376)for(const _0x475382 of _0x694376)if(_0x41edb4!=_0x475382&&!this['_areMergableCells'](_0x41edb4,_0x475382))return!0x1;return!0x0;}['_areMergableCells'](_0x11152b,_0x1b45b6){const _0x2787e3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x141bd8=this['editor']['model']['createRangeOn'](_0x11152b),_0xaafbe1=this['editor']['model']['createRangeOn'](_0x1b45b6),_0x1ceb9e=new Set(),_0x387b87=new Set();for(const _0x39f422 of _0x2787e3['getSuggestions']())if(('insertion'==_0x39f422['type']||'deletion'==_0x39f422['type']||'mergeTableCells'==_0x39f422['subType'])&&_0x39f422['isInContent']){for(const _0x59bca3 of _0x39f422['getRanges']())_0x59bca3['containsRange'](_0x141bd8,!0x0)&&_0x1ceb9e['add'](_0x39f422['type']+':'+_0x39f422['author']['id']),_0x59bca3['containsRange'](_0xaafbe1,!0x0)&&_0x387b87['add'](_0x39f422['type']+':'+_0x39f422['author']['id']);}if(_0x1ceb9e['size']!=_0x387b87['size'])return!0x1;for(const _0x35a4d2 of _0x1ceb9e)if(!_0x387b87['has'](_0x35a4d2))return!0x1;return!0x0;}}class Ct extends _0x518a62{static get['requires'](){return[At];}['afterInit'](){const _0x273b72=this['editor'];if(!_0x273b72['plugins']['has']('TableEditing'))return;const _0x33c3b6=_0x273b72['locale'],_0x229566=_0x273b72['plugins']['get']('TrackChangesEditing');_0x229566['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x229566['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x229566['registerBlockAttribute']('headingRows'),_0x229566['registerBlockAttribute']('headingColumns'),_0x229566['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x33c3b6,'FORMAT_HEADER_ROW')),_0x229566['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x33c3b6,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x47dbfc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x8606e1=this['editor']['plugins']['get']('TableUtils'),_0x49fc5e=this['editor']['plugins']['get'](At)['_acceptFormatSuggestionCallbackFactory']();function _0x16c5ce({showActiveMarker:_0x302fb7=!0x0,setDataAttribute:_0x4cfeb4=!0x0}={}){return(_0x5c293e,_0x50cdae,_0xf648d1)=>{const {type:_0x117de6,id:_0x2e307f}=_0x47dbfc['_splitMarkerName'](_0x50cdae['markerName']),_0x1a2b52=_0x47dbfc['getSuggestion'](_0x2e307f),_0xe96548=_0x1a2b52['data'];if('formatBlock'!=_0x1a2b52['type']||!_0xe96548||'setTableColumnHeader'!=_0xe96548['commandName'])return;if(_0x50cdae['item'])return void _0x5c293e['stop']();if(!_0xf648d1['consumable']['consume'](_0x50cdae['markerRange'],_0x5c293e['name']))return;const _0x3863c1=_0x50cdae['markerRange']['start']['nodeAfter'],_0x38bd77=_0x50cdae['markerRange']['end']['nodeBefore'],_0x1de96a=_0x3863c1['parent']['parent'],{column:_0x414c06}=_0x8606e1['getCellLocation'](_0x3863c1),{column:_0x39d0b6}=_0x8606e1['getCellLocation'](_0x38bd77);for(let _0x25c6d8=_0x414c06;_0x25c6d8<=_0x39d0b6;_0x25c6d8++){const _0x73a24d=_0x8606e1['createTableWalker'](_0x1de96a,{'column':_0x25c6d8,'includeAllSlots':!0x1});for(const _0x5f5deb of _0x73a24d){const _0xefe6b6=_0x5f5deb['cell'],_0x534a22=_0xf648d1['mapper']['toViewElement'](_0xefe6b6);_0xf648d1['writer']['addClass']('ck-suggestion-marker-'+_0x117de6,_0x534a22),_0x4cfeb4&&_0xf648d1['writer']['setAttribute']('data-suggestion',_0x2e307f,_0x534a22),_0xf648d1['mapper']['bindElementToMarker'](_0x534a22,_0x50cdae['markerName']),_0x302fb7&&(_0x47dbfc['activeMarkers']['includes'](_0x50cdae['markerName'])?_0xf648d1['writer']['addClass']('ck-suggestion-marker--active',_0x534a22):_0xf648d1['writer']['removeClass']('ck-suggestion-marker--active',_0x534a22));}}};}_0x47dbfc['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x49fc5e),_0x47dbfc['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x49fc5e),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x16c5ce(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x518ef8,_0x939365,_0x1cd9d4)=>{_0x1cd9d4['options']['showSuggestionHighlights']&&_0x16c5ce({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x518ef8,_0x939365,_0x1cd9d4);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x315a24,_0x4a11e3,_0xb453f3)=>{const {type:_0x440ec0,id:_0xab074b}=_0x47dbfc['_splitMarkerName'](_0x4a11e3['markerName']),_0x12eb5d=_0x47dbfc['getSuggestion'](_0xab074b),_0x2a1472=_0x12eb5d['data'];if('formatBlock'!=_0x12eb5d['type']||!_0x2a1472||'setTableColumnHeader'!=_0x2a1472['commandName'])return;const _0x4717ff=_0xb453f3['mapper']['markerNameToElements'](_0x4a11e3['markerName']);if(_0x4717ff){for(const _0x4a3a43 of _0x4717ff)_0xb453f3['writer']['removeClass']('ck-suggestion-marker-'+_0x440ec0,_0x4a3a43),_0xb453f3['writer']['removeClass']('ck-suggestion-marker--active',_0x4a3a43),_0xb453f3['writer']['removeAttribute']('data-suggestion',_0x4a3a43),_0xb453f3['mapper']['unbindElementFromMarkerName'](_0x4a3a43,_0x4a11e3['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x29060f=this['editor'],_0x53fb87=_0x29060f['locale'];function _0x5aa0a2(_0x2fdc02){return{'type':'format','content':o(_0x53fb87,'*Format:*\x20%0',_0x2fdc02)};}_0x29060f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e6312=>{if('formatBlock'!=_0x3e6312['type'])return;const {data:_0xd9be62}=_0x3e6312;if(_0xd9be62){if('setTableRowHeader'==_0xd9be62['commandName']){const _0x2fae27=_0xd9be62['commandParams'][0x0]['forceValue'];return _0x5aa0a2(o(_0x53fb87,_0x2fae27?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0xd9be62['commandName']){const _0x54a296=_0xd9be62['commandParams'][0x0]['forceValue'];return _0x5aa0a2(o(_0x53fb87,_0x54a296?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class vt extends _0x518a62{['afterInit'](){const _0x2e8bad=this['editor'],_0x516544=_0x2e8bad['locale'],_0x421673=_0x2e8bad['plugins']['get']('TrackChangesEditing');function _0x232bea(_0x17e288){return{'type':'format','content':''+o(_0x516544,'*Set\x20table\x20type:*\x20%0',_0x17e288)};}_0x2e8bad['plugins']['has']('TableLayout')&&(_0x421673['enableCommand']('insertTableLayout'),_0x421673['enableDefaultAttributesIntegration']('tableType'),_0x421673['registerBlockAttribute']('tableType'),_0x421673['descriptionFactory']['registerElementLabel'](_0x543302=>_0x543302['is']('element','table')&&'layout'===_0x543302['getAttribute']('tableType'),_0x4c46ba=>o(_0x516544,'ELEMENT_LAYOUT_TABLE',_0x4c46ba)),_0x421673['descriptionFactory']['registerDescriptionCallback'](_0x35d6cf=>{const {data:_0xf5a6a6}=_0x35d6cf;if(_0xf5a6a6&&'tableType'==_0xf5a6a6['key'])switch(_0xf5a6a6['newValue']){case'layout':return _0x232bea(o(_0x516544,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x232bea(o(_0x516544,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=/* #__PURE__ -- @preserve */
|
|
25
|
+
Object['fromEntries'](Be['map'](_0x32d759=>[_0x32d759,null]));class Nt extends _0x518a62{static get['requires'](){return[At];}['afterInit'](){const _0x1a221c=this['editor'];if(!_0x1a221c['plugins']['has']('TableClipboard'))return;const _0x44768f=_0x1a221c['plugins']['get']('TrackChangesEditing'),_0x33e6a5=_0x1a221c['plugins']['get']('TableUtils'),_0x1a0822=_0x1a221c['plugins']['get'](At),_0x2df647=_0x1a221c['plugins']['get']('TableClipboard'),_0x36f2b2=_0x1a221c['plugins']['get']('TableSelection'),_0x6c95b=_0x1a221c['plugins']['get'](_0x5d2866);_0x1a0822['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x1a221c['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x1a221c['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x5011b0=null,_0x3bf336=!0x1;_0x6c95b['on']('contentInsertion',(_0x57ba5e,_0xe34d0d)=>{_0x3bf336='paste'===_0xe34d0d['method'];}),_0x1a221c['model']['on']('insertContent',(_0x92a85b,_0x47beaa)=>{if(!_0x3bf336&&null===_0x36f2b2['getSelectedTableCells']())return;const [_0x42ac89,_0x3e5f89]=_0x47beaa,_0x33e14c=_0x47beaa[_0x47beaa['length']-0x1];_0x33e14c&&_0x33e14c['forceDefaultExecution']||_0x44768f['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x4702ff,_0x304d46,_0x4b5286,_0x4c7d4c,_0x58c7b3){if(_0x304d46&&!_0x304d46['is']('documentSelection'))return!0x1;const _0x3f3f0b=_0x58c7b3['getTableIfOnlyTableInContent'](_0x4702ff,_0x4b5286);if(!_0x3f3f0b||!Ue(_0x3f3f0b,void 0x0,_0x4c7d4c))return!0x1;const _0x326f26=_0x4c7d4c['getSelectionAffectedTableCells'](_0x4b5286['document']['selection']);if(!_0x326f26['length'])return!0x1;const _0x59fd0e=_0x326f26[0x0]['findAncestor']('table'),_0x1d62b2=_0x4c7d4c['getRowIndexes'](_0x326f26),_0x33925a=_0x4c7d4c['getColumnIndexes'](_0x326f26),_0x1f9b60={'startRow':_0x1d62b2['first'],'endRow':_0x1d62b2['last'],'startColumn':_0x33925a['first'],'endColumn':_0x33925a['last']};return 0x1==_0x326f26['length']&&(_0x1f9b60['endRow']+=_0x4c7d4c['getRows'](_0x3f3f0b)-0x1,_0x1f9b60['endColumn']+=_0x4c7d4c['getColumns'](_0x3f3f0b)-0x1),Ue(_0x59fd0e,_0x1f9b60,_0x4c7d4c);}(_0x42ac89,_0x3e5f89,_0x1a221c['model'],_0x33e6a5,_0x2df647)&&(_0x92a85b['stop'](),_0x5011b0={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x1a221c['model']['change'](()=>{_0x1a221c['model']['insertContent'](_0x47beaa[0x0],_0x47beaa[0x1],_0x47beaa[0x2],{'forceDefaultExecution':!0x0});const _0x10c8f6=_0x12db8f(),{rowInsertionRanges:_0x5bdaae,columnInsertionRanges:_0x18d416,insertionRanges:_0x5c6eb1,deletionRanges:_0x55c8a3,cells:_0x230933}=_0x5011b0;_0x5bdaae['length']&&_0x44768f['markMultiRangeInsertion'](_0x5bdaae,'tablePasteRow',{'tablePasteChainId':_0x10c8f6}),_0x18d416['length']&&_0x44768f['markMultiRangeInsertion'](_0x18d416,'tablePasteColumn',{'tablePasteChainId':_0x10c8f6}),_0x5c6eb1['length']&&(_0x44768f['markMultiRangeInsertion'](_0x5c6eb1,'tablePaste',{'tablePasteChainId':_0x10c8f6,'skipNestingCheck':!0x0}),_0x5c6eb1['forEach'](_0x11dd53=>_0x11dd53['detach']?.())),_0x55c8a3['length']&&(_0x44768f['markMultiRangeDeletion'](_0x55c8a3,'tablePaste',{'tablePasteChainId':_0x10c8f6,'skipNestingCheck':!0x0}),_0x55c8a3['forEach'](_0x753981=>_0x753981['detach']?.()));const _0x2a95e7=_0x44768f['markMultiRangeBlockFormat'](_0x230933['map'](({element:_0x13023e})=>_0x13023e),{'formatGroupId':_0x12db8f()},[],'tablePasteCell',{'tablePasteChainId':_0x10c8f6});if(_0x2a95e7){const _0x5e82c0=_0x2a95e7['getMarkers'](),_0x3b6b50=[];for(const {element:_0xccc82,attributes:_0x3e8137}of _0x230933){if(!_0x3e8137)continue;const _0x5c33f3=_0x1a221c['model']['createRangeOn'](_0xccc82),_0x515727=_0x5e82c0['find'](_0x4361ee=>_0x4361ee['getRange']()['isEqual'](_0x5c33f3));_0x515727&&_0x3b6b50['push']([_0x515727['name'],_0x3e8137]);}_0x3b6b50['length']&&_0x2a95e7['setAttribute']('markerAttributes',Object['fromEntries'](_0x3b6b50));}_0x5011b0=null;}));},{'priority':_0xf34a83['high']+0xa}),_0x6c95b['on']('contentInsertion',()=>{_0x3bf336=!0x1;},{'priority':'lowest'}),_0x1a221c['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x4e27fd,_0x406bb5)=>{const [_0x37d1f4,_0x13b43f,,_0x5eda25]=_0x406bb5;if(!_0x5011b0)return;_0x4e27fd['stop']();const _0xcb5ee8=_0x37d1f4['cell'],_0x36535d=_0x13b43f,_0x45ba42=Oe(_0xcb5ee8),_0x3d2e00=Oe(_0x36535d);_0x4e27fd['return']=_0xcb5ee8;let _0x133c31=null,_0x234ecd=null;if(_0x3d2e00||_0x45ba42){if(_0x45ba42&&!_0x3d2e00){_0x5eda25['remove'](_0xcb5ee8['getChild'](0x0));for(const _0x14b35c of Array['from'](_0x36535d['getChildren']()))_0x5eda25['insert'](_0x14b35c,_0xcb5ee8,'end');const _0x1879a9=_0x5011b0['rowInsertionIndexes']['includes'](_0x37d1f4['row']),_0x51fb35=_0x5011b0['columnInsertionIndexes']['includes'](_0x37d1f4['column']);_0x1879a9||_0x51fb35||(_0x133c31=_0x5d0c54['fromRange'](_0x5eda25['createRangeIn'](_0xcb5ee8)));}else _0x3d2e00&&!_0x45ba42&&(_0x234ecd=_0x5eda25['createRangeIn'](_0xcb5ee8));}else{const _0xcf7367=_0x5eda25['createElement']('tableCellSuggestion'),_0x4c19dc=_0x5eda25['createElement']('tableCellSuggestion');_0x5eda25['wrap'](_0x5eda25['createRangeIn'](_0xcb5ee8),_0x4c19dc),_0x5eda25['insert'](_0xcf7367,_0xcb5ee8,0x0);for(const _0x28a06d of Array['from'](_0x36535d['getChildren']()))_0x5eda25['insert'](_0x28a06d,_0xcf7367,'end');_0x133c31=_0x5d0c54['fromRange'](_0x5eda25['createRangeOn'](_0xcf7367)),_0x234ecd=_0x5d0c54['fromRange'](_0x5eda25['createRangeOn'](_0x4c19dc));}const _0xf2ee6a=Array['from'](_0x36535d['getAttributes']())['filter'](([_0x63e7ec])=>Be['includes'](_0x63e7ec));_0x5011b0['cells']['push']({'element':_0xcb5ee8,'attributes':_0xf2ee6a['length']?Object['fromEntries'](_0xf2ee6a):null}),_0x133c31&&_0x5011b0['insertionRanges']['push'](_0x133c31),_0x234ecd&&_0x5011b0['deletionRanges']['push'](_0x234ecd);},{'priority':'high'}),_0x33e6a5['on']('insertColumns',(_0x378bf7,_0x25c975)=>{const [_0x579add,_0x11b4b0={}]=_0x25c975;if(!_0x5011b0)return;const _0x307e7c=_0x11b4b0['at']||0x0,_0x32a553=_0x11b4b0['columns']||0x1;_0x5011b0['columnInsertionIndexes']=new Array(_0x32a553)['fill'](_0x307e7c)['map']((_0x3cc553,_0x325bd2)=>_0x3cc553+_0x325bd2);for(const {cell:_0x127ce1}of _0x33e6a5['createTableWalker'](_0x579add,{'startColumn':_0x307e7c,'endColumn':_0x307e7c+_0x32a553-0x1}))_0x5011b0['columnInsertionRanges']['push'](_0x1a221c['model']['createRangeOn'](_0x127ce1));},{'priority':'low'}),_0x33e6a5['on']('insertRows',(_0x16c3ef,_0x11825d)=>{const [_0x8640cd,_0x3e4824={}]=_0x11825d;if(!_0x5011b0)return;const _0x19fedc=_0x3e4824['at']||0x0,_0x38bcfa=_0x3e4824['rows']||0x1;_0x5011b0['rowInsertionIndexes']=new Array(_0x38bcfa)['fill'](_0x19fedc)['map']((_0x28fe07,_0x4e2357)=>_0x28fe07+_0x4e2357);for(const {cell:_0x267e5a}of _0x33e6a5['createTableWalker'](_0x8640cd,{'startRow':_0x19fedc,'endRow':_0x19fedc+_0x38bcfa-0x1}))_0x5011b0['rowInsertionRanges']['push'](_0x1a221c['model']['createRangeOn'](_0x267e5a));},{'priority':'low'}),_0x44768f['descriptionFactory']['registerDescriptionCallback'](_0x3669ed=>{if(_0x3669ed['subType']&&_0x3669ed['subType']['startsWith']('tablePaste'))return _0x3669ed['previous']?{}:{'type':'insertion','content':o(_0x1a221c['locale'],'*Replace\x20table\x20cells*')};});const _0x268e15=()=>!0x1;for(const _0x961122 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x44768f['_suggestionFactory']['registerCustomCallback']('insertion',_0x961122,'join',_0x268e15),_0x44768f['_suggestionFactory']['registerCustomCallback']('deletion',_0x961122,'join',_0x268e15),_0x44768f['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x961122,'join',_0x268e15);_0x44768f['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x268e15),_0x44768f['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x2f276c,_0x5e8d8a,_0x535426)=>{const _0x1c9ef6=_0x2f276c['map'](_0x4917c9=>_0x4917c9['getContainedElement']())['filter'](_0x1c6300=>_0x1c6300),_0x3ef143=new Map(_0x1c9ef6['map'](_0x481354=>[_0x481354,null]));if(_0x5011b0){for(const {element:_0xca17de,attributes:_0x297bdf}of _0x5011b0['cells'])_0x297bdf&&_0x3ef143['set'](_0xca17de,_0x297bdf);}else{if(_0x535426&&_0x535426['markerAttributes'])for(const [_0x401d2b,_0x3aac41]of Object['entries'](_0x535426['markerAttributes'])){const _0x35423b=_0x1a221c['model']['markers']['get'](_0x401d2b),_0x41627d=_0x35423b?_0x35423b['getRange']()['getContainedElement']():null;_0x41627d&&_0x3ef143['set'](_0x41627d,_0x3aac41);}}_0x1a221c['model']['change'](_0x441682=>{for(const [_0x380587,_0x5a224a]of _0x3ef143)_0x441682['setAttributes']({...xe,..._0x5a224a},_0x380587);});});const _0x485cec=(_0x4a4a8d,_0x365b62)=>{_0x44768f['_suggestionFactory']['registerCustomCallback'](_0x4a4a8d,'tablePaste',_0x365b62,(_0x3f898e,_0x140358,_0x599e69)=>{_0x1a221c['model']['change'](_0x83b25=>{const _0x450107=[];for(const _0x1a7f5d of _0x3f898e){const _0x1f8a6f=_0x1a7f5d['start']['nodeAfter'];_0x1f8a6f['is']('element','tableCellSuggestion')&&_0x450107['push'](_0x1f8a6f);}_0x44768f['_suggestionFactory']['getSuggestionCallback'](_0x4a4a8d,null,_0x365b62)(_0x3f898e,_0x140358,_0x599e69);for(const _0x5b8962 of _0x450107)'$graveyard'!=_0x5b8962['root']['rootName']&&_0x83b25['unwrap'](_0x5b8962);});});};_0x485cec('insertion','accept'),_0x485cec('insertion','discard'),_0x485cec('deletion','accept'),_0x485cec('deletion','discard'),_0x44768f['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x1ba701=>{const _0x5b9643=_0x1ba701['map'](_0x4844bb=>_0x4844bb['getContainedElement']()),_0x476d22=_0x5b9643[0x0]['findAncestor']('table'),{minRow:_0x2718ba,maxRow:_0x23b025}=_0x1a0822['_getCoordsForCells'](_0x5b9643);_0x33e6a5['removeRows'](_0x476d22,{'at':_0x2718ba,'rows':_0x23b025-_0x2718ba+0x1});}),_0x44768f['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x40b6e2=>{const _0x383336=_0x40b6e2['map'](_0x576a46=>_0x576a46['getContainedElement']()),_0x38ce28=_0x383336[0x0]['findAncestor']('table'),{minColumn:_0x3e01f2,maxColumn:_0x236a16}=_0x1a0822['_getCoordsForCells'](_0x383336);_0x33e6a5['removeColumns'](_0x38ce28,{'at':_0x3e01f2,'columns':_0x236a16-_0x3e01f2+0x1});});const _0xeb989b=(_0x2d2a86,_0x593df6)=>{if(!_0x593df6['subType']||!_0x593df6['subType']['startsWith']('tablePaste'))return;const _0x655cde=_0x593df6['attributes']['tablePasteChainId'],_0x24816d=_0x44768f['getSuggestions']()['filter'](_0x554ae3=>_0x554ae3['isInContent']&&_0x554ae3['attributes']&&_0x554ae3['attributes']['tablePasteChainId']==_0x655cde);_0x24816d['length']&&_0x593df6['getAllAdjacentSuggestions']()['length']!=_0x24816d['length']&&_0x24816d['reduce']((_0xe35fa5,_0x37d998)=>(_0xe35fa5['next']=_0x37d998,_0x37d998['previous']=_0xe35fa5,_0x37d998));};function _0x3f1110(_0x567db6,_0xf8636b=!0x0){const {id:_0xacda44,authorId:_0x4f8115}=_0x44768f['_splitMarkerName'](_0x567db6['markerName']),_0x308c0e=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x4bf11d=_0x44768f['activeMarkers']['includes'](_0x567db6['markerName']);return _0x4bf11d&&_0x308c0e['push']('ck-suggestion-marker--active'),{'classes':_0x308c0e,'attributes':{'data-suggestion':_0xacda44,'data-author-id':_0x4f8115},'priority':_0x4bf11d&&_0xf8636b?0xbc2:0xbb8};}_0x44768f['on']('suggestionLoaded',_0xeb989b,{'priority':'high'}),_0x44768f['on']('suggestionUnloaded',_0xeb989b,{'priority':'high'}),_0x1a221c['model']['document']['registerPostFixer'](()=>{let _0x591131=!0x1;const _0x561453=Array['from'](_0x1a221c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x41cbd4,data:_0x50d757}of _0x561453){const {group:_0x12580e,type:_0x249aa0,id:_0x3223aa}=_0x44768f['_splitMarkerName'](_0x41cbd4);if('suggestion'!=_0x12580e||'deletion'!=_0x249aa0||_0x50d757['oldRange'])continue;if(!_0x44768f['hasSuggestion'](_0x3223aa))continue;const _0x241621=_0x44768f['getSuggestion'](_0x3223aa)['getRanges'](),_0x1b26c5=_0x1a221c['plugins']['get']('Users')['me'];for(const _0x1459b8 of _0x44768f['getSuggestions']()){if(!_0x1459b8['isInContent']||_0x1459b8['author']!=_0x1b26c5)continue;if('formatBlock'!=_0x1459b8['type']||'tablePasteCell'!=_0x1459b8['subType'])continue;if(_0x1459b8['getRanges']()['every'](_0x134479=>_0x241621['some'](_0x56601c=>_0x56601c['containsRange'](_0x134479,!0x0)))){for(const _0x454146 of _0x1459b8['getAllAdjacentSuggestions']())_0x454146['isInContent']&&(_0x454146['discard'](),_0x591131=!0x0);}}}return _0x591131;}),_0x1a221c['model']['document']['registerPostFixer'](_0x3a26a7=>{const _0x25b8be=_0x1a221c['commands']['get']('redo');if(!_0x25b8be||!_0x25b8be['_createdBatches']['has'](_0x3a26a7['batch']))return!0x1;let _0x10428f=!0x1;const _0x455fb8=_0x1a221c['plugins']['get']('Users')['me'],_0x5895aa=_0x1a221c['model']['document']['differ']['getChanges'](),_0x38a43e=Array['from'](_0x1a221c['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x40de17,data:_0x253968})=>{const {group:_0x4ef7df,subType:_0x4b6a4a,authorId:_0x518a30}=_0x44768f['_splitMarkerName'](_0x40de17);return'suggestion'==_0x4ef7df&&'tablePaste'==_0x4b6a4a&&_0x518a30==_0x455fb8['id']&&!_0x253968['oldRange'];});for(const _0x4dfe42 of _0x5895aa){if('insert'!=_0x4dfe42['type']||'tableCellSuggestion'!=_0x4dfe42['name']||0x1!=_0x4dfe42['length'])continue;const _0x412891=_0x3a26a7['createRange'](_0x4dfe42['position'],_0x4dfe42['position']['getShiftedBy'](0x1));if(!_0x38a43e['find'](({data:_0x178d65})=>_0x178d65['newRange']['isEqual'](_0x412891))){for(const {name:_0x2675bb,data:_0x14d249}of _0x38a43e)if(_0x412891['containsRange'](_0x14d249['newRange'])){_0x3a26a7['updateMarker'](_0x2675bb,{'range':_0x412891}),_0x10428f=!0x0;break;}}}return _0x10428f;}),_0x1a221c['model']['document']['registerPostFixer'](_0x425da0=>{let _0x536f3a=!0x1;const _0x95c3f6=_0x1a221c['plugins']['get']('Users')['me'],_0x286959=_0x44768f['getSuggestions']()['filter'](_0xb8891e=>_0xb8891e['isInContent']&&_0xb8891e['author']==_0x95c3f6),_0xcbc1=new Set(),_0x33a636=new Set();for(const _0x178377 of _0x286959)if('tablePaste'==_0x178377['subType'])for(const _0xca7766 of _0x178377['getMarkers']()){const _0x232f18=_0xca7766['getRange']()['getContainedElement']();if(_0x232f18){if(_0x232f18['is']('element','tableCellSuggestion')&&Oe(_0x232f18)){_0x178377['removeMarker'](_0xca7766['name']),_0xcbc1['add'](_0x232f18),_0x536f3a=!0x0;const _0x1e541c=_0x232f18['nextSibling'],_0x1827bb=_0x232f18['previousSibling'],_0x1faa7e=_0x1e541c&&_0x1e541c['is']('element','tableCellSuggestion'),_0x8af3e0=_0x1827bb&&_0x1827bb['is']('element','tableCellSuggestion');_0x1faa7e&&!_0xcbc1['has'](_0x1e541c)&&_0x33a636['add'](_0x1e541c),_0x8af3e0&&!_0xcbc1['has'](_0x1827bb)&&_0x33a636['add'](_0x1827bb);}else _0x232f18['is']('element','paragraph')&&_0x232f18['isEmpty']&&(_0x178377['removeMarker'](_0xca7766['name']),_0x536f3a=!0x0);}}else{if('tablePasteCell'==_0x178377['subType']){if(!_0x178377['attributes']||!_0x178377['attributes']['tablePasteChainId'])continue;const _0x30e32c=_0x178377['attributes']['markerAttributes'];if(_0x30e32c&&Object['keys'](_0x30e32c)['length'])continue;const _0xed9144=_0x178377['attributes']['tablePasteChainId'];let _0x42ea9c=!0x0,_0x24c6a7=!0x0;for(const _0x18a071 of _0x286959)if(_0x18a071['subType']&&_0x18a071['subType']['startsWith']('tablePaste')){if(!_0x18a071['attributes']['tablePasteChainId']){_0x24c6a7=!0x1;break;}if(_0x18a071['id']!=_0x178377['id']&&_0x18a071['attributes']['tablePasteChainId']==_0xed9144){_0x42ea9c=!0x1;break;}}_0x24c6a7&&_0x42ea9c&&(_0x178377['removeMarkers'](),_0x536f3a=!0x0);}}for(const _0x2c60b0 of _0xcbc1)_0x425da0['remove'](_0x2c60b0);for(const _0x5b4548 of _0x33a636)_0x425da0['unwrap'](_0x5b4548);return _0x536f3a;}),_0x1a221c['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x4284d6=>_0x3f1110(_0x4284d6),'converterPriority':'high'}),_0x1a221c['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0xc790f,_0x320eff)=>_0x320eff['options']['showSuggestionHighlights']?_0x3f1110(_0xc790f,!0x1):null,'converterPriority':'high'});const _0x5c33c6=_0x1a221c['editing']['view'];this['listenTo'](_0x5c33c6['document'],'clipboardOutput',(_0x39ffc3,_0x4a21c6)=>{const _0x1c04d8=[];for(const _0x1cc405 of _0x5c33c6['createRangeIn'](_0x4a21c6['content'])['getItems']())_0x1cc405['is']('element','suggestion-td')&&_0x1c04d8['push'](_0x1cc405);_0x5c33c6['change'](_0xf12b04=>{for(const _0x49e1f2 of _0x1c04d8)_0xf12b04['move'](_0xf12b04['createRangeIn'](_0x49e1f2),_0xf12b04['createPositionBefore'](_0x49e1f2)),_0xf12b04['remove'](_0x49e1f2);});});}}function Oe(_0x3c2af4){if(_0x3c2af4['isEmpty'])return!0x0;const _0x4cbfbc=_0x3c2af4['getChild'](0x0);return _0x4cbfbc['is']('element','paragraph')&&_0x4cbfbc['isEmpty'];}function Ue(_0x29e669,_0x170de1={},_0x397c82){for(const {isAnchor:_0x34c53a,cellHeight:_0x85e0f2,cellWidth:_0x11b76e}of _0x397c82['createTableWalker'](_0x29e669,{'includeAllSlots':!0x0,..._0x170de1}))if(!_0x34c53a||0x1!=_0x85e0f2||0x1!=_0x11b76e)return!0x1;return!0x0;}class Dt extends _0x518a62{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x8f1ef3=this['editor']['plugins']['get']('TrackChangesEditing');_0x8f1ef3['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x8f1ef3['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x8f1ef3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x8f1ef3['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x8f1ef3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x8f1ef3['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x199b72,_0x2a3d13){const _0x315b21=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3d927c=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x5ac30a=_0x2a3d13['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x4d6557=_0x3d927c['getColumnGroupElement'](_0x5ac30a);let _0x3763d5=_0x4d6557?_0x3d927c['getTableColumnsWidths'](_0x4d6557):null,_0x5081d4=_0x5ac30a['getAttribute']('tableWidth')||null;const _0x357a49=_0x2a3d13['tableWidth']||_0x5081d4,_0x5a7217=_0x2a3d13['columnWidths']||_0x3763d5,_0x3c2ec9=this['editor']['plugins']['get']('Users')['me'];for(const _0x3047f8 of _0x315b21['getSuggestions']()){const _0x43fe9d=_0x3047f8['getContainedElement']();if('resizeTable'===_0x3047f8['subType']&&_0x43fe9d===_0x5ac30a){_0x3047f8['author']!==_0x3c2ec9&&_0x3047f8['discard']();const _0x3aa163=_0x3047f8['data']['commandParams'];_0x5081d4=_0x3aa163[0x0]['tableWidth'],_0x3763d5=_0x3aa163[0x0]['columnWidths'];break;}}_0x199b72({'table':_0x5ac30a,'tableWidth':_0x357a49,'columnWidths':_0x5a7217}),_0x315b21['markBlockFormat'](_0x5ac30a,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x5081d4,'columnWidths':_0x3763d5}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x2c8fe8){if('formatBlock'!=_0x2c8fe8['type']&&'formatInline'!=_0x2c8fe8['type'])return;const {data:_0x16392d}=_0x2c8fe8;if(_0x16392d&&'resizeTable'===_0x16392d['formatGroupId']){const _0x28eeb8='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x28eeb8)};}}}class $t extends _0x518a62{['afterInit'](){const _0x50666a=this['editor'];_0x50666a['plugins']['has']('Template')&&_0x50666a['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x518a62{['afterInit'](){const _0x28660a=this['editor'];if(!_0x28660a['commands']['get']('insertTableOfContents'))return;_0x28660a['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x2cf52d=_0x28660a['plugins']['get']('TrackChangesEditing'),_0x3874a2=_0x28660a['locale'];_0x2cf52d['descriptionFactory']['registerElementLabel']('tableOfContents',_0x3b2160=>o(_0x3874a2,'ELEMENT_TABLE_OF_CONTENTS',_0x3b2160));}}class Bt extends _0x518a62{['afterInit'](){const _0x199dd1=this['editor'];if(!_0x199dd1['plugins']['has']('Title'))return;const _0xeffa39=_0x199dd1['plugins']['get']('TrackChangesEditing');_0xeffa39['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x199dd1['locale'],'ELEMENT_TITLE')),_0x199dd1['model']['document']['registerPostFixer'](_0x5bc48f=>{let _0x416e19=!0x1;const _0x3536de=Array['from'](_0x199dd1['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x556338,data:_0x42fc9d}of _0x3536de){const {group:_0x5b2891}=_0xeffa39['_splitMarkerName'](_0x556338);if('suggestion'!==_0x5b2891||!_0x42fc9d['newRange'])continue;const _0x4e1200=_0x42fc9d['newRange'],_0x453109=_0x4e1200['end']['nodeBefore'];if(!_0x453109||!_0x453109['is']('element','title-content'))continue;if(!_0x4e1200['start']['isTouching'](_0x4e1200['end']))continue;const _0x4637a0=_0x199dd1['model']['schema']['getNearestSelectionRange'](_0x4e1200['end'],'forward');if(_0x4637a0&&_0x4637a0['isCollapsed']){const _0x2073bb=_0x5bc48f['createRange'](_0x4e1200['start'],_0x4637a0['start']);_0x2073bb['isEqual'](_0x4e1200)||(_0x5bc48f['updateMarker'](_0x556338,{'range':_0x2073bb}),_0x416e19=!0x0);}_0x416e19||(_0x5bc48f['removeMarker'](_0x556338),_0x416e19=!0x0);}return _0x416e19;});}}class Tt extends _0x518a62{['afterInit'](){const _0x53e2cd=this['editor'],_0x175a34=_0x53e2cd['plugins']['get']('TrackChangesEditing');_0x53e2cd['plugins']['has']('Uploadcare')&&(_0x175a34['enableCommand']('uploadcare'),_0x53e2cd['plugins']['has']('UploadcareImageEdit')&&(_0x175a34['enableCommand']('uploadcareImageEdit'),_0x175a34['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x175a34['registerBlockAttribute']('uploadcareImageId'),_0x175a34['descriptionFactory']['registerDescriptionCallback'](_0x354f4b=>{if('attribute'!=_0x354f4b['type'])return;const {data:_0x1200cc}=_0x354f4b;return _0x1200cc&&'uploadcareImageId'==_0x1200cc['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0x518a62{['afterInit'](){const _0x22a09c=this['editor'],_0x2e81c8=_0x22a09c['plugins']['get']('TrackChangesEditing');_0x22a09c['plugins']['has']('UndoEditing')&&(_0x2e81c8['enableCommand']('undo'),_0x2e81c8['enableCommand']('redo'));}}class Ot extends _0x518a62{static get['requires'](){return[At];}['afterInit'](){const _0x4081af=this['editor'];if(!_0x4081af['plugins']['has']('TableCaptionEditing'))return;_0x4081af['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Et extends _0x518a62{['tableProperties'];['tableCellProperties'];constructor(_0xc34c3e){super(_0xc34c3e),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 _0x3b204d=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x3601aa of this['tableProperties'])_0x3b204d['enableCommand'](_0x3601aa,(_0x5dc8dc,_0x15f0ef)=>{const _0x5f619b=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x3601aa,[_0x5f619b],this['tableProperties'],'tableProperties',_0x5dc8dc,_0x15f0ef);});_0x3b204d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x3b204d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3b204d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x13051a,_0x178727)=>this['handleDiscardAction'](this['tableProperties'],_0x13051a,_0x178727)),_0x3b204d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x5a6f74 of this['tableCellProperties'])_0x3b204d['enableCommand'](_0x5a6f74,(_0x3104f7,_0x589f9b)=>{const _0x253019=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x5a6f74,_0x253019,this['tableCellProperties'],'tableCellProperties',_0x3104f7,_0x589f9b);});_0x3b204d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x3b204d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3b204d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x391168,_0xf5e561)=>this['handleDiscardAction'](this['tableCellProperties'],_0x391168,_0xf5e561)),_0x3b204d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x3b204d['descriptionFactory']['registerDescriptionCallback'](_0x47dec6=>this['handleSuggestionDescription'](_0x47dec6)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x5e3c87,_0x3bc47f,_0x5870e8,_0x23bb84,_0x4ae569,_0x2a8ffa){const _0x3f773c=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x2a8ffa['batch'],()=>{for(const _0x32f472 of _0x3bc47f){if(this['_getSuggestion'](_0x32f472,_0x23bb84))_0x4ae569(_0x2a8ffa);else{const _0x3a7619={};for(const _0x4ebd26 of _0x5870e8){const _0x6c1423=_0x32f472['getAttribute'](_0x4ebd26);void 0x0!==_0x6c1423&&(_0x3a7619[_0x4ebd26]=_0x6c1423);}_0x4ae569(_0x2a8ffa),_0x3f773c['markBlockFormat'](_0x32f472,{'commandParams':[_0x3a7619]},[],_0x23bb84);}}});}['handleDiscardAction'](_0x346b04,_0x26d193,_0x54e8e1){const _0x4ec96c=_0x26d193[0x0]['start']['nodeAfter'],_0x226dca=_0x54e8e1['commandParams'][0x0];this['editor']['model']['change'](_0x27a9ee=>{for(const _0x289db4 of _0x346b04)void 0x0!==_0x226dca[_0x289db4]?_0x27a9ee['setAttribute'](_0x289db4,_0x226dca[_0x289db4],_0x4ec96c):_0x27a9ee['removeAttribute'](_0x289db4,_0x4ec96c);});}['handleSuggestionDescription'](_0x53a3d0){if(_0x53a3d0['data'])switch(_0x53a3d0['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'](_0x4c7a2e,_0x6a5e6c){const _0x6697b7=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0xa2ed65 of _0x6697b7['getSuggestions']({'skipNotAttached':!0x0})){const _0x18bc8f=_0xa2ed65['getContainedElement']();if(_0xa2ed65['subType']===_0x6a5e6c&&_0x18bc8f===_0x4c7a2e)return _0xa2ed65;}return null;}['_registerTablePropertiesAttributes'](){const _0x29a49d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3016f1=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x430734 of _0x3016f1){const _0x369f5e=_0x430734['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x29a49d['registerBlockAttribute'](_0x430734),_0x29a49d['descriptionFactory']['registerAttributeLabel'](_0x430734,o(this['editor']['locale'],'FORMAT_'+_0x369f5e));}}}class Rt extends _0x518a62{['afterInit'](){const _0x1828dc=this['editor'];if(!_0x1828dc['plugins']['has']('LineHeight'))return;const _0x3d3233=_0x1828dc['plugins']['get']('TrackChangesEditing'),_0x383981=_0x1828dc['locale'];_0x3d3233['enableDefaultAttributesIntegration']('lineHeight'),_0x3d3233['registerBlockAttribute']('lineHeight'),_0x3d3233['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x383981,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x518a62{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x4e2ba2,_0x4019e4,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(_0xd1995a){super(_0xd1995a),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x35948b,_0x201534,_0x4ce4ab,_0x17f7ac)=>{this['_model']['change'](()=>{for(const _0x39eb8d of[..._0x17f7ac,..._0x4ce4ab])this['_model']['markers']['has'](_0x39eb8d)&&_0xd1995a['editing']['reconvertMarker'](_0x39eb8d);});}),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']=_0xd1995a['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(),_0xd1995a['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0xd1995a['config']['get']('trackChanges.trackFormatChanges'),_0xd1995a['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0xd1995a['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new N(_0xd1995a,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x438c82=this['editor'],_0x2af676=(_0x57f8b3,_0x4c63b6)=>{if('attribute'!=_0x57f8b3)return'ck-suggestion-marker-'+_0x57f8b3;const _0x43ead0=_0x4c63b6['split']('|')[0x0];return this['_isBlockAttribute'](_0x43ead0)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x438c82['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x581f3f=>{const {id:_0x3a3787,authorId:_0x36d255,type:_0x7348d9,subType:_0x49ab32}=this['_splitMarkerName'](_0x581f3f['markerName']),_0xae7bf7=['ck-suggestion-marker',_0x2af676(_0x7348d9,_0x49ab32)];let _0x3231dd=0xbb8;return this['activeMarkers']['includes'](_0x581f3f['markerName'])&&(_0xae7bf7['push']('ck-suggestion-marker--active'),_0x3231dd=0xbc2),'deletion'==_0x7348d9&&(_0x3231dd+=0x5),{'classes':_0xae7bf7,'attributes':{'data-suggestion':_0x3a3787,'data-author-id':_0x36d255},'priority':_0x3231dd};}}),_0x438c82['conversion']['for']('dataDowncast')['add'](_0x22893a=>{_0x22893a['on']('addMarker:suggestion',(_0x526c23,_0x5689e6,_0x59edb1)=>{if(!_0x59edb1['options']['showSuggestionHighlights'])return;const _0x42126e=_0x5689e6['item'];if(!_0x42126e)return;const _0x3d93a2=_0x59edb1['mapper']['toViewElement'](_0x42126e);_0x438c82['model']['schema']['isObject'](_0x42126e)&&_0x3d93a2&&!_0x3d93a2['getCustomProperty']('widget')&&_0x3d93a2['is']('containerElement')&&_0x2e198a(_0x3d93a2,_0x59edb1['writer']);},{'priority':'high'});}),_0x438c82['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x386d3b,_0x5e0342)=>{if(!_0x5e0342['options']['showSuggestionHighlights'])return null;const {id:_0x2ff971,authorId:_0x32b329,type:_0x5ad1a1,subType:_0x1f1ced}=this['_splitMarkerName'](_0x386d3b['markerName']);return{'classes':['ck-suggestion-marker',_0x2af676(_0x5ad1a1,_0x1f1ced)],'priority':0xbb8,'attributes':{'data-suggestion':_0x2ff971,'data-author-id':_0x32b329}};}});const _0x51ca8e=({showActiveMarkers:_0x277422=!0x0,isAttributeSuggestion:_0x2a7368=!0x1}={})=>(_0x1b9d4e,_0x2c9d51,_0x29300c)=>{if(!_0x2c9d51['item'])return;const {id:_0x20266c,authorId:_0x55d960}=this['_splitMarkerName'](_0x2c9d51['markerName']);if(_0x2a7368){const _0x52dceb=this['_suggestions']['get'](_0x20266c),_0x5ce758=this['_getAttributeKey'](_0x52dceb);if(!this['_isBlockAttribute'](_0x5ce758))return;}if(_0x2c9d51['item']['is']('selection'))return void _0x29300c['consumable']['consume'](_0x2c9d51['item'],_0x1b9d4e['name']);const _0x32293b=_0x29300c['mapper']['toViewElement'](_0x2c9d51['item']);if(_0x2c9d51['item']['is']('element')&&_0x438c82['model']['schema']['isBlock'](_0x2c9d51['item'])&&!_0x32293b['getCustomProperty']('addHighlight')){_0x29300c['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x32293b),_0x29300c['writer']['setAttribute']('data-suggestion',_0x20266c,_0x32293b),_0x29300c['writer']['setAttribute']('data-author-id',_0x55d960,_0x32293b),_0x29300c['mapper']['bindElementToMarker'](_0x32293b,_0x2c9d51['markerName']),_0x277422&&(this['activeMarkers']['includes'](_0x2c9d51['markerName'])?_0x29300c['writer']['addClass']('ck-suggestion-marker--active',_0x32293b):_0x29300c['writer']['removeClass']('ck-suggestion-marker--active',_0x32293b));for(const _0x2c22b7 of _0x438c82['model']['createRangeIn'](_0x2c9d51['item'])['getItems']())_0x29300c['consumable']['consume'](_0x2c22b7,_0x1b9d4e['name']);_0x29300c['consumable']['consume'](_0x2c9d51['item'],_0x1b9d4e['name']);}};_0x438c82['conversion']['for']('dataDowncast')['add'](_0x2697fa=>{_0x2697fa['on']('addMarker:suggestion:formatBlock',(_0x3fe452,_0x22657f,_0xadcd3)=>{_0xadcd3['options']['showSuggestionHighlights']&&_0x51ca8e({'showActiveMarkers':!0x1})(_0x3fe452,_0x22657f,_0xadcd3);},{'priority':'highest'});}),_0x438c82['conversion']['for']('dataDowncast')['add'](_0x532ffd=>{_0x532ffd['on']('addMarker:suggestion:attribute',(_0x30b7a6,_0x5740cb,_0xbc3b5d)=>{_0xbc3b5d['options']['showSuggestionHighlights']&&_0x51ca8e({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x30b7a6,_0x5740cb,_0xbc3b5d);},{'priority':'highest'});}),_0x438c82['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x666ca4,_0x49dca5)=>{if(_0x49dca5['options']['showSuggestionHighlights']){const {id:_0x1e6f22,authorId:_0x44907d}=this['_splitMarkerName'](_0x666ca4);return _0x666ca4['includes'](':split')||_0x666ca4['includes'](':merge')?{'group':'suggestion','name':_0x666ca4['substr'](0xb),'attributes':{'data-suggestion':_0x1e6f22,'data-author-id':_0x44907d}}:null;}return{'group':'suggestion','name':_0x666ca4['substr'](0xb)};}}),_0x438c82['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x3c536e,{writer:_0x55d166})=>{let _0x4ee5d7='suggestion:'+_0x3c536e['getAttribute']('suggestion-type')+':'+_0x3c536e['getAttribute']('id');return _0x3c536e['getAttribute']('marker-count')&&(_0x4ee5d7+=':'+_0x3c536e['getAttribute']('marker-count')),_0x55d166['createElement']('$marker',{'data-name':_0x4ee5d7});}}),_0x438c82['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x438c82['conversion']['for']('editingDowncast')['add'](_0x63c4bc=>{_0x63c4bc['on']('addMarker:suggestion:formatBlock',_0x51ca8e(),{'priority':'high'});}),_0x438c82['conversion']['for']('editingDowncast')['add'](_0x2dc241=>{_0x2dc241['on']('addMarker:suggestion:attribute',_0x51ca8e({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x438c82['conversion']['for']('editingDowncast')['add'](_0x46ab5c=>{_0x46ab5c['on']('removeMarker:suggestion:formatBlock',(_0x2e3c0a,_0x28ca32,_0xe60500)=>{const _0x50a7ea=_0xe60500['mapper']['markerNameToElements'](_0x28ca32['markerName']);if(_0x50a7ea){for(const _0x398b6d of _0x50a7ea)_0x398b6d['getCustomProperty']('addHighlight')||(_0xe60500['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x398b6d),_0xe60500['writer']['removeAttribute']('data-suggestion',_0x398b6d),_0xe60500['writer']['removeAttribute']('data-author-id',_0x398b6d),_0xe60500['mapper']['unbindElementFromMarkerName'](_0x398b6d,_0x28ca32['markerName']));}},{'priority':'high'});}),_0x438c82['conversion']['for']('editingDowncast')['add'](_0x376e75=>{_0x376e75['on']('removeMarker:suggestion:attribute',(_0x22776c,_0x33f179,_0x418d04)=>{const _0x158302=_0x418d04['mapper']['markerNameToElements'](_0x33f179['markerName']);if(!_0x158302)return;const {id:_0x2fb0e5}=this['_splitMarkerName'](_0x33f179['markerName']),_0x2ad7a2=this['_suggestions']['get'](_0x2fb0e5),_0x172bcb=this['_getAttributeKey'](_0x2ad7a2);if(this['_isBlockAttribute'](_0x172bcb)){for(const _0x4249d3 of _0x158302)_0x4249d3['getCustomProperty']('addHighlight')||(_0x418d04['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x4249d3),_0x418d04['writer']['removeAttribute']('data-suggestion',_0x4249d3),_0x418d04['writer']['removeAttribute']('data-author-id',_0x4249d3),_0x418d04['mapper']['unbindElementFromMarkerName'](_0x4249d3,_0x33f179['markerName']));}},{'priority':'high'});}),_0x438c82['model']['document']['registerPostFixer'](_0x27d58d=>{let _0x226046=!0x1;const _0x39c548=Array['from'](_0x438c82['model']['document']['differ']['getChangedMarkers']()),_0x34a831=new Set();for(const {name:_0x1388c9,data:_0x4dfb1c}of _0x39c548){const {group:_0x46f1d1,type:_0x5b28dd,subType:_0x24e5ca,id:_0x2f8ffa}=this['_splitMarkerName'](_0x1388c9);if('suggestion'!==_0x46f1d1)continue;const _0x49c01d=_0x24e5ca?'suggestion:'+_0x5b28dd+':'+_0x24e5ca+':'+_0x2f8ffa:'suggestion:'+_0x5b28dd+':'+_0x2f8ffa,_0x532467=_0x438c82['model']['markers']['getMarkersGroup'](_0x49c01d),_0x2918b8=_0x438c82['model']['markers']['get'](_0x1388c9),_0x194195=this['_suggestions']['get'](_0x2f8ffa);if(null!=_0x4dfb1c['newRange']){'formatInline'==_0x5b28dd&&(_0x226046=_0x226046||Gt(_0x4dfb1c['newRange'],_0x1388c9,_0x27d58d,_0x438c82['model']['schema']));const _0x24870c='attribute'==_0x5b28dd&&this['_isBlockAttribute'](_0x24e5ca['split']('|')[0x0]),_0x2a5bbd='attribute'==_0x5b28dd&&this['_isInlineAttribute'](_0x24e5ca['split']('|')[0x0]);if(_0x4dfb1c['newRange']['isCollapsed']||'$graveyard'==_0x4dfb1c['newRange']['root']['rootName']||'formatBlock'==_0x5b28dd&&!Jt(_0x4dfb1c['newRange'])||_0x24870c&&!Jt(_0x4dfb1c['newRange'])||_0x2a5bbd&&Kt(_0x4dfb1c['newRange'])||'deletion'==_0x5b28dd&&Kt(_0x4dfb1c['newRange'])||_0x2918b8&&Ht(_0x2918b8,_0x532467))_0x27d58d['removeMarker'](_0x1388c9),_0x226046=!0x0;else{if(!_0x194195||!_0x194195['isInContent'])continue;if(_0x4dfb1c['newRange']&&_0x4dfb1c['oldRange']&&_0x4dfb1c['newRange']['isEqual'](_0x4dfb1c['oldRange']))continue;_0x34a831['add'](_0x194195);}}}return _0x34a831['size']>0x0&&(_0x226046=!!this['_joinWithAdjacentSuggestions'](_0x34a831)||_0x226046),_0x226046;}),_0x438c82['model']['document']['registerPostFixer'](_0xf42279=>{let _0x37339d=!0x1;for(const _0x4bcb50 of _0x438c82['model']['document']['differ']['getChanges']())if('insert'==_0x4bcb50['type'])for(const _0x53332d of this['_suggestions']['values']()){if(_0x53332d['isMultiRange']||!_0x53332d['isInContent'])continue;const _0x2c489a='formatBlock'==_0x53332d['type'],_0x78411c=this['_getAttributeKey'](_0x53332d),_0x1199d7=_0x78411c&&this['_isBlockAttribute'](_0x78411c);if(!_0x2c489a&&!_0x1199d7)continue;const _0x373906=_0x53332d['getFirstRange']();if(_0x373906['start']['parent']!=_0x373906['end']['parent']&&!_0x373906['end']['isAtEnd']){const _0x5098fe=_0x438c82['model']['createPositionAt'](_0x373906['start']['nodeAfter'],'end'),_0x573d78=_0x438c82['model']['createRange'](_0x373906['start'],_0x5098fe);_0xf42279['updateMarker'](_0x53332d['getFirstMarker'](),{'range':_0x573d78}),_0x37339d=!0x0;}}return _0x37339d;}),_0x438c82['model']['document']['registerPostFixer'](_0x33bbaf=>this['_processAttributeChanges'](_0x33bbaf)),_0x438c82['model']['document']['registerPostFixer'](_0x316aca=>!_0x316aca['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x316aca)),_0x438c82['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x438c82['model']['document']['on']('change:data',(_0x467e00,_0x52f758)=>{if(!_0x52f758['isLocal']||_0x52f758['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0xedade3=_0x438c82['model']['document']['differ']['getChanges']();if(0x0==_0xedade3['length'])return;const _0x4b9125=[],_0x45efd0=_0xedade3['filter'](_0x1f9adc=>'attribute'==_0x1f9adc['type']),_0x25d8b1=_0xedade3['filter'](_0x4ab077=>'insert'==_0x4ab077['type']&&'$text'!=_0x4ab077['name']);for(const _0x282d32 of _0x45efd0)this['_isRegisteredAttribute'](_0x282d32['attributeKey'])&&_0x4b9125['push']({'key':_0x282d32['attributeKey'],'newValue':_0x282d32['attributeNewValue'],'oldValue':_0x282d32['attributeOldValue'],'range':qt(_0x282d32['range'],_0x438c82['model'])});for(const _0x1af4ff of _0x25d8b1){if('rename'!=_0x1af4ff['action']&&'refresh'!=_0x1af4ff['action'])continue;const _0xe4b7ff=zt(_0x1af4ff['position']['nodeAfter'],_0x438c82['model']),_0x28c2b9=_0x1af4ff['before'];'rename'==_0x1af4ff['action']&&_0x4b9125['push']({'key':m,'newValue':_0x1af4ff['name'],'oldValue':_0x28c2b9['name'],'range':_0xe4b7ff});for(const [_0x4395f8,_0xe3e9c8]of _0x28c2b9['attributes']){if(!this['_isRegisteredAttribute'](_0x4395f8))continue;const _0x6e3287=_0x1af4ff['attributes']['get'](_0x4395f8);_0xe3e9c8!==_0x6e3287&&_0x4b9125['push']({'key':_0x4395f8,'newValue':_0x6e3287,'oldValue':_0xe3e9c8,'range':_0xe4b7ff});}for(const [_0x1fd374,_0x35286e]of _0x1af4ff['attributes'])this['_isRegisteredAttribute'](_0x1fd374)&&(_0x28c2b9['attributes']['has'](_0x1fd374)||_0x4b9125['push']({'key':_0x1fd374,'newValue':_0x35286e,'oldValue':null,'range':_0xe4b7ff}));}0x0!=_0x4b9125['length']&&_0x438c82['model']['enqueueChange'](_0x52f758,_0x2feafc=>{const _0x576b6b=_0x12db8f();for(const {range:_0x11bbce,key:_0x36cffe,oldValue:_0x4b36e1,newValue:_0x4cc3bb}of _0x4b9125)this['markAttributeChange'](_0x11bbce,_0x36cffe,_0x4b36e1,_0x4cc3bb,{'groupId':_0x576b6b});this['_reduceExistingSuggestions'](_0x2feafc,_0x4b9125);});},{'priority':'lowest'}),_0x438c82['model']['markers']['on']('update:suggestion',(_0x51c74d,_0x57204e,_0x54acb7)=>{if(null==_0x54acb7){const {id:_0x52c4b1}=this['_splitMarkerName'](_0x57204e['name']),_0xf07a3f=this['_suggestions']['get'](_0x52c4b1);_0xf07a3f&&_0xf07a3f['addMarkerName'](_0x57204e['name']);}}),_0x438c82['model']['document']['on']('change:data',()=>{const _0x3ce66e=Array['from'](_0x438c82['model']['document']['differ']['getChangedMarkers']())['filter'](_0x5f2c02=>'suggestion'===this['_splitMarkerName'](_0x5f2c02['name'])['group']);if(0x0===_0x3ce66e['length'])return;_0x3ce66e['sort']((_0x208683,_0x21fb3e)=>{const _0x2f149e=_0x208683['data']['oldRange'],_0x5ca29d=_0x21fb3e['data']['oldRange'];return null===_0x2f149e&&null===_0x5ca29d?0x0:null===_0x2f149e&&null!==_0x5ca29d?-0x1:null!==_0x2f149e&&null===_0x5ca29d?0x1:_0x2f149e['start']['isBefore'](_0x5ca29d['start'])?-0x1:0x1;});const _0x2eba93=new Set(),_0x706972=new Set();for(const {name:_0xc8084c,data:_0x5feb2a}of _0x3ce66e){const {id:_0x36e60d}=this['_splitMarkerName'](_0xc8084c);if(null===_0x5feb2a['oldRange']){const _0x395010=this['_handleNewSuggestionMarker'](_0xc8084c);_0x706972['add'](_0x395010);}else{const _0x404dbd=this['_suggestions']['get'](_0x36e60d);null!==_0x5feb2a['newRange']||_0x404dbd['isInContent']?(_0x2eba93['add'](_0x404dbd['head']),_0x706972['add'](_0x404dbd)):this['_removeSuggestion'](_0x404dbd);}}_0x706972['size']>0x0&&this['_refreshSuggestionsChain'](_0x706972);for(const _0x593ad4 of _0x2eba93)this['fire']('suggestionChanged',_0x593ad4);}),_0x438c82['model']['on']('applyOperation',(_0x13a650,_0x3daa06)=>{const _0xc1a4a4=_0x3daa06[0x0];if(!this['_suggestions']['size'])return;if(!_0xc1a4a4['isDocumentOperation'])return;if(_0xc1a4a4['batch']['isUndo']||!_0xc1a4a4['batch']['isLocal'])return;let _0x29b769,_0x3f6d7b;switch(_0xc1a4a4['type']){case'insert':_0x29b769=_0x438c82['model']['createPositionAt'](_0xc1a4a4['position']),_0x3f6d7b=_0x29b769['getShiftedBy'](_0xc1a4a4['howMany']);break;case'split':_0x29b769=_0x438c82['model']['createPositionAt'](_0xc1a4a4['splitPosition']),_0x3f6d7b=_0x438c82['model']['createPositionAt'](_0xc1a4a4['moveTargetPosition']);break;case'move':_0x29b769=_0x438c82['model']['createPositionAt'](_0xc1a4a4['targetPosition']),_0x3f6d7b=_0x29b769['getShiftedBy'](_0xc1a4a4['howMany']);break;default:return;}const _0x15d2e7=_0x438c82['model']['createRange'](_0x29b769,_0x3f6d7b);_0x438c82['model']['change'](()=>{for(const {suggestion:_0x204fe2,meta:_0xf83166}of this['_findSuggestions'](_0x15d2e7)){if(_0x204fe2['isMultiRange'])continue;if('formatInline'==_0x204fe2['type'])continue;const _0x4a92ab=this['_getAttributeKey'](_0x204fe2);if(_0x4a92ab&&this['_isBlockAttribute'](_0x4a92ab)&&'split'!=_0xc1a4a4['type'])continue;const _0x1ca2cc=_0x204fe2['data']&&_0x204fe2['data']['multipleBlocks'];('formatBlock'!=_0x204fe2['type']||'split'==_0xc1a4a4['type']&&!_0x1ca2cc)&&(_0xf83166['containsRangeInObject']||'insertion'==_0x204fe2['type']&&_0xf83166['isOwn']||_0x204fe2['getFirstRange']()['containsRange'](_0x15d2e7)&&this['_breakSuggestionMarker'](_0x204fe2,_0x29b769,_0x3f6d7b));}});},{'priority':'lowest'}),_0x438c82['model']['on']('deleteContent',(_0x3721b3,_0x1748bb)=>{const _0x1c20d5=_0x1748bb[0x0],_0x36f6b0=_0x1748bb[0x1];if(_0x36f6b0&&_0x36f6b0['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x1c20d5['isCollapsed'])return;const _0x4f22bd=_0x438c82['model']['schema'],{start:_0x4f5cec,end:_0x22289e}=_0x1c20d5['getFirstRange'](),_0x20679d=_0x4f5cec['nodeAfter']&&_0x4f22bd['isLimit'](_0x4f5cec['nodeAfter'])?null:_0x4f22bd['getNearestSelectionRange'](_0x4f5cec,'forward'),_0x2fc751=_0x22289e['nodeBefore']&&_0x4f22bd['isLimit'](_0x22289e['nodeBefore'])?null:_0x4f22bd['getNearestSelectionRange'](_0x22289e,'backward'),_0x2cc233=_0x438c82['model']['createRange'](_0x20679d?_0x20679d['start']:_0x4f5cec,_0x2fc751?_0x2fc751['end']:_0x22289e);_0x438c82['model']['change'](_0x54ccea=>{this['markDeletion'](_0x2cc233);const _0x283cf7=_0x438c82['model']['schema']['getNearestSelectionRange'](_0x2cc233['start']);_0x1c20d5['is']('documentSelection')?_0x54ccea['setSelection'](_0x283cf7):_0x1c20d5['setTo'](_0x283cf7);}),_0x3721b3['stop']();},{'priority':_0xf34a83['normal']+0xa}),_0x438c82['model']['on']('insertContent',(_0x250015,_0x4ec606)=>{const _0x715efa=_0x4ec606[_0x4ec606['length']-0x1];_0x715efa&&_0x715efa['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x438c82['model']['change'](()=>{let _0x43564c=_0x438c82['model']['insertContent'](_0x4ec606[0x0],_0x4ec606[0x1],_0x4ec606[0x2],{'forceDefaultExecution':!0x0});if(!_0x43564c)return;_0x250015['return']=_0x43564c['clone']();const _0x3f148f=_0x43564c['end']['nodeBefore'],_0x18b958=_0x438c82['model']['schema'];_0x3f148f&&_0x18b958['isBlock'](_0x3f148f)&&!_0x18b958['isObject'](_0x3f148f)&&(_0x43564c=_0x438c82['model']['createRange'](_0x43564c['start'],_0x438c82['model']['createPositionAt'](_0x3f148f,'end'))),this['markInsertion'](_0x43564c);}),_0x250015['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x544de7=new D(_0x438c82,this['_suggestions']);_0x438c82['commands']['add']('acceptSuggestion',_0x544de7),this['enableCommand']('acceptSuggestion');const _0x1590e3=new $(_0x438c82,this['_suggestions']);_0x438c82['commands']['add']('discardSuggestion',_0x1590e3),this['enableCommand']('discardSuggestion'),_0x438c82['commands']['add']('acceptAllSuggestions',new M(_0x438c82,_0x544de7,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x438c82['commands']['add']('discardAllSuggestions',new M(_0x438c82,_0x1590e3,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x438c82['commands']['add']('acceptSelectedSuggestions',new B(_0x438c82,_0x544de7,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x438c82['commands']['add']('discardSelectedSuggestions',new B(_0x438c82,_0x1590e3,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x189a5e=_0x438c82['plugins']['get']('CommentsRepository');this['listenTo'](_0x189a5e,'addComment',(_0x11faf5,{threadId:_0x5445ae})=>{const _0x51df46=this['_suggestions']['get'](_0x5445ae);_0x51df46&&_0x51df46['commentThread']&&0x1===_0x51df46['commentThread']['length']&&this['_updateSuggestionData'](_0x5445ae,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x189a5e,'removeComment',(_0x5e0ec3,{threadId:_0x39c215})=>{const _0x17a4f7=this['_suggestions']['get'](_0x39c215);_0x17a4f7&&_0x17a4f7['commentThread']&&!_0x17a4f7['commentThread']['length']&&this['_updateSuggestionData'](_0x39c215,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0xa1befd){const _0x4c9637=_0x379998([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]),_0x2ba4d4=0x6b0f5e6f,_0x12297d=0x6b082d2f^_0x2ba4d4,_0x387dc6=window[_0x379998([0x44,0x61,0x74,0x65])][_0x379998([0x6e,0x6f,0x77])](),_0x276a7c=_0xa1befd[_0x379998([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4a7974=new window[(_0x379998([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1270fc=>{_0x276a7c[_0x379998([0x6f,0x6e,0x63,0x65])](_0x379998([0x72,0x65,0x61,0x64,0x79]),_0x1270fc);}),_0x18e7d9={[_0x379998([0x6b,0x74,0x79])]:_0x379998([0x45,0x43]),[_0x379998([0x75,0x73,0x65])]:_0x379998([0x73,0x69,0x67]),[_0x379998([0x63,0x72,0x76])]:_0x379998([0x50,0x2d,0x32,0x35,0x36]),[_0x379998([0x78])]:_0x379998([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]),[_0x379998([0x79])]:_0x379998([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]),[_0x379998([0x61,0x6c,0x67])]:_0x379998([0x45,0x53,0x32,0x35,0x36])},_0x4152a2=_0x276a7c[_0x379998([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x379998([0x67,0x65,0x74])](_0x379998([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4d2e0b(){let _0x432f4b,_0x96e8dd=null,_0x464221=null;try{if(_0x4152a2==_0x379998([0x47,0x50,0x4c]))return _0x379998([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x432f4b=_0x583fa4(),!_0x432f4b)return _0x379998([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x432f4b[_0x379998([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x464221=_0x3d359b(_0x432f4b[_0x379998([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x432f4b[_0x379998([0x6a,0x74,0x69])])),await _0x4ea6e6()?_0x265069()?_0x1787e8()?_0x379998([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x37cd6a()?(_0x432f4b[_0x379998([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x379998([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x96e8dd=_0x352f1b(_0x379998([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x432f4b[_0x379998([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x379998([0x74,0x72,0x69,0x61,0x6c])&&(_0x96e8dd=_0x352f1b(_0x379998([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x368c91()):_0x379998([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x379998([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x379998([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x379998([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1787e8(){const _0x51dc26=[_0x379998([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x379998([0x74,0x72,0x69,0x61,0x6c])][_0x379998([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x432f4b[_0x379998([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x387dc6/0x3e8:0xe10*_0x12297d;return _0x432f4b[_0x379998([0x65,0x78,0x70])]<_0x51dc26;}function _0x265069(){const _0x3242da=_0x432f4b[_0x379998([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x3242da)return!0x1;if(_0x3242da[_0x379998([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x379998([0x2a])))return!0x0;if(_0x3242da[_0x379998([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x379998([0x54,0x43])))return!0x0;if(_0x3242da[_0x379998([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x379998([0x52,0x54,0x43]))){if(_0x1f1983())return!0x0;if(_0x5a2c9d()||_0x499189())return!0x0;}return!0x1;}function _0x37cd6a(){const _0x4f4fb2=_0x432f4b[_0x379998([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4f4fb2||0x0==_0x4f4fb2[_0x379998([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4d3774}=new URL(window[_0x379998([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4f4fb2[_0x379998([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d3774))return!0x0;const _0x32c37f=_0x4d3774[_0x379998([0x73,0x70,0x6c,0x69,0x74])](_0x379998([0x2e]));return _0x4f4fb2[_0x379998([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x16dff1=>_0x16dff1[_0x379998([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x379998([0x2a])))[_0x379998([0x6d,0x61,0x70])](_0x4ff4ce=>_0x4ff4ce[_0x379998([0x73,0x70,0x6c,0x69,0x74])](_0x379998([0x2e])))[_0x379998([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x155fe7=>_0x155fe7[_0x379998([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x32c37f[_0x379998([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x379998([0x6d,0x61,0x70])](_0x29c4b4=>Array(_0x32c37f[_0x379998([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x29c4b4[_0x379998([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x379998([0x66,0x69,0x6c,0x6c])](_0x29c4b4[0x0]===_0x379998([0x2a])?_0x379998([0x2a]):'')[_0x379998([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x29c4b4))[_0x379998([0x73,0x6f,0x6d,0x65])](_0x385579=>_0x32c37f[_0x379998([0x65,0x76,0x65,0x72,0x79])]((_0x32fd27,_0x1386b8)=>_0x385579[_0x1386b8]===_0x32fd27||_0x385579[_0x1386b8]===_0x379998([0x2a])));}function _0x368c91(){return _0x96e8dd&&_0x464221?new window[(_0x379998([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3a8f6f,_0x1f3542)=>{_0x96e8dd[_0x379998([0x74,0x68,0x65,0x6e])](_0x3a8f6f,_0x1f3542),_0x464221[_0x379998([0x74,0x68,0x65,0x6e])](_0x1207ac=>{_0x1207ac!=_0x379998([0x56,0x61,0x6c,0x69,0x64])&&_0x3a8f6f(_0x1207ac);},_0x1f3542);}):_0x96e8dd||_0x464221||_0x379998([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3d359b(_0x1fdcd5,_0x1acfaf){return new window[(_0x379998([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x26c437=>{if(_0x17ba0e())return _0x26c437(_0x379998([0x56,0x61,0x6c,0x69,0x64]));_0x722743(),_0x276a7c[_0x379998([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x379998([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x139309=!0x1;const _0x2b179d=_0x12db8f();function _0x554f7c(_0x2f37a6){return!!_0x2f37a6&&(typeof _0x2f37a6===_0x379998([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2f37a6===_0x379998([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2f37a6[_0x379998([0x74,0x68,0x65,0x6e])]===_0x379998([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2f37a6[_0x379998([0x63,0x61,0x74,0x63,0x68])]===_0x379998([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x522ec2(_0x5209ac){_0x546b6f(_0x5209ac)[_0x379998([0x74,0x68,0x65,0x6e])](_0x3fc37b=>{if(!_0x3fc37b||_0x3fc37b[_0x379998([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x379998([0x6f,0x6b]))return _0x379998([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3b1581(_0x27fb30(_0x2b179d+_0x1acfaf))!=_0x3fc37b[_0x379998([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x379998([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x379998([0x56,0x61,0x6c,0x69,0x64]);})[_0x379998([0x74,0x68,0x65,0x6e])](_0x24942b=>(_0x282721(),_0x24942b),()=>{const _0x4517e3=_0x192a83();return null==_0x4517e3?(_0x282721(),_0x379998([0x56,0x61,0x6c,0x69,0x64])):_0x379998(_0x387dc6-_0x4517e3>(0x4f03da6f^_0x2ba4d4)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x379998([0x74,0x68,0x65,0x6e])](_0x26c437)[_0x379998([0x63,0x61,0x74,0x63,0x68])](()=>{_0x26c437(_0x379998([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x6456d9=0x6b39b0ef^_0x2ba4d4;function _0x282721(){const _0x3b0075=_0x379998([0x6c,0x6c,0x63,0x74,0x2d])+_0x3b1581(_0x27fb30(_0x1fdcd5)),_0x2c11b7=_0x3c31f2(_0x3b1581(window[_0x379998([0x4d,0x61,0x74,0x68])][_0x379998([0x63,0x65,0x69,0x6c])](_0x387dc6/_0x6456d9)));window[_0x379998([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x379998([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3b0075,_0x2c11b7);}function _0x192a83(){const _0x3e04dc=_0x379998([0x6c,0x6c,0x63,0x74,0x2d])+_0x3b1581(_0x27fb30(_0x1fdcd5)),_0x147ad4=window[_0x379998([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x379998([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3e04dc);return _0x147ad4?window[_0x379998([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3c31f2(_0x147ad4),0x10)*_0x6456d9:null;}function _0x546b6f(_0x4030d9){return new window[(_0x379998([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x47ddf2,_0x45f29d)=>{_0x4030d9[_0x379998([0x74,0x68,0x65,0x6e])](_0x47ddf2,_0x45f29d),window[_0x379998([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x45f29d,0x6b0e8aaf^_0x2ba4d4);});}}_0x276a7c[_0x379998([0x6f,0x6e])](_0x379998([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x151a89,_0x478d95)=>{if(_0x478d95[0x0]!=_0x1fdcd5)return _0x26c437(_0x379998([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x478d95[0x1]={..._0x478d95[0x1],[_0x379998([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2b179d};},{[_0x379998([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x379998([0x68,0x69,0x67,0x68])}),_0x276a7c[_0x379998([0x6f,0x6e])](_0x379998([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1b4cc5=>{_0x554f7c(_0x1b4cc5[_0x379998([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x139309=!0x0,_0x522ec2(_0x1b4cc5[_0x379998([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x379998([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x379998([0x6c,0x6f,0x77])}),_0x4a7974[_0x379998([0x74,0x68,0x65,0x6e])](()=>{_0x139309||_0x26c437(_0x379998([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x17ba0e(){return _0x276a7c[_0x379998([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x379998([0x76,0x69,0x65,0x77])][_0x379998([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x379998([0x61,0x75,0x74,0x6f]);}function _0x722743(){_0x276a7c[_0x379998([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x379998([0x76,0x69,0x65,0x77])][_0x379998([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x379998([0x61,0x75,0x74,0x6f]);}}function _0x352f1b(_0x4bd62a){const _0x299013=[new window[(_0x379998([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x24c488=>setTimeout(_0x24c488,0x6b0660a3^_0x2ba4d4)),_0x4a7974[_0x379998([0x74,0x68,0x65,0x6e])](()=>new window[(_0x379998([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f6ed3=>{let _0x29b7ef=0x0;_0x276a7c[_0x379998([0x6d,0x6f,0x64,0x65,0x6c])][_0x379998([0x6f,0x6e])](_0x379998([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3c81b9,_0x540bf2)=>{_0x540bf2[0x0][_0x379998([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x29b7ef++,_0x29b7ef==(0x6b0f5f97^_0x2ba4d4)&&(_0x2f6ed3(),_0x3c81b9[_0x379998([0x6f,0x66,0x66])]());});}))];return window[_0x379998([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x379998([0x72,0x61,0x63,0x65])](_0x299013)[_0x379998([0x74,0x68,0x65,0x6e])](()=>_0x4bd62a);}async function _0xc82de3(){await _0x4a7974,_0x276a7c[_0x379998([0x6d,0x6f,0x64,0x65,0x6c])][_0x379998([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xfda3fe,_0x276a7c[_0x379998([0x6d,0x6f,0x64,0x65,0x6c])][_0x379998([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xfda3fe,_0x276a7c[_0x379998([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x379998([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1f1983(){return _0x2cb835(_0x379998([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x387ba7(_0x379998([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x379998([0x73,0x74,0x61,0x74,0x65])]==_0x379998([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x5a2c9d(){return _0x2cb835(_0x379998([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 _0x499189(){return _0x2cb835(_0x379998([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x13b82a(_0x2669c9){const _0x12ed17=_0x580260();_0x276a7c[_0x12ed17]=_0x379998([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2669c9,_0x2669c9!=_0x379998([0x56,0x61,0x6c,0x69,0x64])&&_0xc82de3();}function _0x580260(){const _0xf1a218=window[_0x379998([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x379998([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x379998([0x6e,0x6f,0x77])]())[_0x379998([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x379998([0x2e]),'');let _0x5232a4=_0x379998([0x67]);for(let _0x1f3a4=0x0;_0x1f3a4<_0xf1a218[_0x379998([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1f3a4+=0x2){let _0x57cb22=window[_0x379998([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xf1a218[_0x379998([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1f3a4,_0x1f3a4+0x2));_0x57cb22>=_0x4c9637[_0x379998([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x57cb22-=_0x4c9637[_0x379998([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5232a4+=_0x4c9637[_0x57cb22];}return _0x5232a4;}function _0x583fa4(){const _0x56881a=_0x4152a2[_0x379998([0x73,0x70,0x6c,0x69,0x74])](_0x379998([0x2e]));if(0x3!=_0x56881a[_0x379998([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4ad27a(_0x56881a[0x1]);function _0x4ad27a(_0x1713b5){const _0x476754=_0x24a2f0(_0x1713b5);return _0x476754&&_0x3b86ef()?_0x476754:null;function _0x3b86ef(){const _0x56503c=_0x476754[_0x379998([0x6a,0x74,0x69])],_0x211e02=window[_0x379998([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x56503c[_0x379998([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x56503c[_0x379998([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x370aed={..._0x476754,[_0x379998([0x6a,0x74,0x69])]:_0x56503c[_0x379998([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x56503c[_0x379998([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x370aed[_0x379998([0x76,0x63])],_0x27fb30(_0x370aed)==_0x211e02;}}}async function _0x4ea6e6(){let _0x2d91d8=!0x0;try{const _0x21bfb0=_0x4152a2[_0x379998([0x73,0x70,0x6c,0x69,0x74])](_0x379998([0x2e])),[_0x3d7ae7,_0x6c21b0,_0x432abe]=_0x21bfb0;return _0x163397(_0x3d7ae7),await _0xf2aa94(_0x3d7ae7,_0x6c21b0,_0x432abe),_0x2d91d8;}catch{return!0x1;}function _0x163397(_0x472093){const _0x31a2ae=_0x24a2f0(_0x472093);_0x31a2ae&&_0x31a2ae[_0x379998([0x61,0x6c,0x67])]==_0x379998([0x45,0x53,0x32,0x35,0x36])||(_0x2d91d8=!0x1);}async function _0xf2aa94(_0x28d9f9,_0x59bbe8,_0x382c02){const _0x2586ae=window[_0x379998([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x379998([0x66,0x72,0x6f,0x6d])](_0x72a635(_0x382c02),_0x7569a6=>_0x7569a6[_0x379998([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3d0fa8=new window[(_0x379998([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x379998([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x28d9f9+_0x379998([0x2e])+_0x59bbe8),_0x2a2b31=window[_0x379998([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x379998([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2a2b31)return;const _0x16e9bc=await _0x2a2b31[_0x379998([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x379998([0x6a,0x77,0x6b]),_0x18e7d9,{[_0x379998([0x6e,0x61,0x6d,0x65])]:_0x379998([0x45,0x43,0x44,0x53,0x41]),[_0x379998([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x379998([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x379998([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2a2b31[_0x379998([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x379998([0x6e,0x61,0x6d,0x65])]:_0x379998([0x45,0x43,0x44,0x53,0x41]),[_0x379998([0x68,0x61,0x73,0x68])]:{[_0x379998([0x6e,0x61,0x6d,0x65])]:_0x379998([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x16e9bc,_0x2586ae,_0x3d0fa8)||(_0x2d91d8=!0x1);}}function _0x24a2f0(_0x4333ce){return _0x4333ce[_0x379998([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x379998([0x65,0x79]))?JSON[_0x379998([0x70,0x61,0x72,0x73,0x65])](_0x72a635(_0x4333ce)):null;}function _0x72a635(_0x11f9f7){return window[_0x379998([0x61,0x74,0x6f,0x62])](_0x11f9f7[_0x379998([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x379998([0x2b]))[_0x379998([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x379998([0x2f])));}function _0x27fb30(_0x3973b8){let _0x2eaeb8=0x1505;function _0x3cd1e5(_0x2081ef){for(let _0x578c78=0x0;_0x578c78<_0x2081ef[_0x379998([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x578c78++){const _0x20a61d=_0x2081ef[_0x379998([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x578c78);_0x2eaeb8=(_0x2eaeb8<<0x5)+_0x2eaeb8+_0x20a61d,_0x2eaeb8&=_0x2eaeb8;}}function _0x2d30d3(_0x195c69){Array[_0x379998([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x195c69)?_0x195c69[_0x379998([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2d30d3):_0x195c69&&typeof _0x195c69==_0x379998([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x379998([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x195c69)[_0x379998([0x73,0x6f,0x72,0x74])]()[_0x379998([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3c0891,_0x5b42c9])=>{_0x3cd1e5(_0x3c0891),_0x2d30d3(_0x5b42c9);}):_0x3cd1e5(window[_0x379998([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x195c69));}return _0x2d30d3(_0x3973b8),_0x2eaeb8>>>0x0;}function _0x3b1581(_0x48ed16){return _0x48ed16[_0x379998([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x379998([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x379998([0x30]));}function _0x3c31f2(_0x945155){return _0x945155[_0x379998([0x73,0x70,0x6c,0x69,0x74])]('')[_0x379998([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x379998([0x6a,0x6f,0x69,0x6e])]('');}function _0x2cb835(_0x5d69c1){return _0x276a7c[_0x379998([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x379998([0x68,0x61,0x73])](_0x5d69c1);}function _0x387ba7(_0x57fde0){return _0x276a7c[_0x379998([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x379998([0x67,0x65,0x74])](_0x57fde0);}function _0xfda3fe(){}function _0x379998(_0x78e5fe){return _0x78e5fe['map'](_0x2ff2f3=>String['fromCharCode'](_0x2ff2f3))['join']('');}_0x13b82a(await _0x4d2e0b());}(this);}set['adapter'](_0x2cb9eb){if(this['_adapter'])throw new _0x5d7906('track-changes-adapter-already-set',this);this['_adapter']=_0x2cb9eb;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x53fa7a=!0x1,toJSON:_0xba1036=!0x1}={}){const _0xca34bd=[];for(const _0x452a27 of this['_suggestions']['values']())_0x53fa7a&&!_0x452a27['isInContent']||_0xca34bd['push'](_0x452a27);return _0xba1036?_0xca34bd['map'](_0x107f47=>_0x107f47['toJSON']()):_0xca34bd;}['getSuggestion'](_0x3a2351){const _0x556c7e=this['_suggestions']['get'](_0x3a2351);if(!_0x556c7e)throw new _0x5d7906('track-changes-suggestion-not-found',this);return _0x556c7e;}['hasSuggestion'](_0x497508){return this['_suggestions']['has'](_0x497508);}['addSuggestionData'](_0x58196b){const {authorId:_0x556118,id:_0x565793,originalSuggestionId:_0x3747a9,attributes:_0x1c267c}=_0x58196b,[_0x2c15a0,_0x478548]=_0x58196b['type']['split'](':'),_0x4596cb=this['_suggestions']['get'](_0x565793)||this['_createSuggestion'](_0x2c15a0,_0x478548,_0x565793,_0x556118,_0x1c267c,_0x3747a9);if(this['_addThreadToSuggestion'](_0x4596cb),this['_checkSuggestionCorrectness'](_0x4596cb,_0x2c15a0,_0x478548||null,_0x556118),_0x4596cb['createdAt']=_0x58196b['createdAt'],_0x4596cb['_isDataLoaded']=!0x0,_0x1c267c&&_0x1c267c['@external']){const _0x3005f7=_0x1c267c['@external'],_0xa4a7aa=this['_getExternalAuthor'](_0x3005f7['authorName']);_0x4596cb['authoredAt']=_0x3005f7['createdAt'],_0x4596cb['author']=_0xa4a7aa,_0x4596cb['isExternal']=!0x0;}else _0x4596cb['authoredAt']=_0x58196b['createdAt'];switch(_0x58196b['data']&&(_0x4596cb['data']=_0x58196b['data']),_0x58196b['attributes']&&(_0x4596cb['attributes']=_0x58196b['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x4596cb['_saved']=!0x0),this['_suggestionState']['get'](_0x4596cb)){case'notReady':this['_suggestionState']['set'](_0x4596cb,'dataReady');break;case'markerReady':_0x4596cb['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x4596cb])),this['_refreshSuggestionsChain'](new Set([_0x4596cb])),this['_suggestionState']['set'](_0x4596cb,'ready'),this['fire']('suggestionLoaded',_0x4596cb)):this['_suggestionState']['set'](_0x4596cb,'removed');}return _0x4596cb;}['acceptSuggestion'](_0x3b4217){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x13ee64 of _0x3b4217['getAllAdjacentSuggestions']())_0x13ee64['accept']();});});}['discardSuggestion'](_0xea8554){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x878e4d of _0xea8554['getAllAdjacentSuggestions']())_0x878e4d['discard']();});});}['enableCommand'](_0x3f83e6,_0x2972fd){const _0x4bb055=this['editor']['commands']['get'](_0x3f83e6);if(!_0x4bb055)throw new _0x5d7906('track-changes-command-not-found',this,{'commandName':_0x3f83e6});if(this['_enabledCommands']['has'](_0x4bb055))throw new _0x5d7906('track-changes-enable-command-twice',this,{'commandName':_0x3f83e6});this['_enabledCommands']['add'](_0x4bb055),_0x2972fd&&_0x4bb055['on']('execute',(_0x43473c,_0x2fe47b)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x2fe47b['length']>0x0&&_0x2fe47b[_0x2fe47b['length']-0x1]&&_0x2fe47b[_0x2fe47b['length']-0x1]['forceDefaultExecution']?_0x2fe47b['pop']():(_0x43473c['return']=_0x2972fd((..._0x343df8)=>_0x4bb055['execute'](..._0x343df8,{'forceDefaultExecution':!0x0}),..._0x2fe47b),_0x43473c['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x415d21){let _0x356c92,_0x1207ad;const _0x2b4962=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x356c92=_0x415d21();}catch(_0xcc8fd5){_0x1207ad=_0xcc8fd5;}return _0x2b4962||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x1207ad&&_0x5d7906['rethrowUnexpectedError'](_0x1207ad,this),_0x356c92;}['markInsertion'](_0x4bc24a,_0x59c457=null,_0x41f9d4={}){if(_0x4bc24a['isCollapsed'])return null;const _0x1ae407=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x41f9d4['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x4d60f5,meta:_0x1153d5}of this['_findSuggestions'](_0x4bc24a,'insertion'))if(_0x1153d5['isOwn']){if(!_0x1153d5['isNextTo']){if(_0x1153d5['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x4d60f5,_0x41f9d4))continue;return _0x4d60f5;}if(Xt(_0x4d60f5,_0x41f9d4))return _0x4d60f5;this['_breakSuggestionMarker'](_0x4d60f5,_0x4bc24a['start'],_0x4bc24a['end']);break;}if(_0x59c457==_0x4d60f5['subType']&&Xt(_0x4d60f5,_0x41f9d4)){const _0x33749f=_0x4d60f5['getFirstRange']();return _0x33749f['start']['isEqual'](_0x4bc24a['end'])?this['_setSuggestionRange'](_0x4d60f5,this['_model']['createRange'](_0x4bc24a['start'],_0x33749f['end'])):this['_setSuggestionRange'](_0x4d60f5,this['_model']['createRange'](_0x33749f['start'],_0x4bc24a['end'])),_0x4d60f5;}}const _0x5161fc=_0x12db8f(),_0x21f925=_0x1ae407['id'],_0x4e881c=_0x59c457?'insertion:'+_0x59c457:'insertion',_0x14a298=this['_setSuggestionData']({'id':_0x5161fc,'type':_0x4e881c,'createdAt':new Date(),'authorId':_0x21f925,'attributes':_0x41f9d4});return this['_addSuggestionMarker'](_0x4e881c,_0x5161fc,_0x21f925,_0x4bc24a),_0x14a298;}['markMultiRangeInsertion'](_0x490a0b,_0x170719='multi',_0x87434d={}){const _0x52f6fe=this['editor']['plugins']['get']('Users')['me'],_0xc4f830=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x170719,'join');this['_trackingSessionId']&&(_0x87434d['trackingSessionId']=this['_trackingSessionId']);for(const _0x326dfd of this['getSuggestions']())if(_0x326dfd['author']['id']==_0x52f6fe['id']&&'insertion'==_0x326dfd['type']&&_0x326dfd['subType']==_0x170719&&Xt(_0x326dfd,_0x87434d)&&(_0xc4f830(_0x326dfd['getRanges'](),_0x490a0b)||_0xc4f830(_0x490a0b,_0x326dfd['getRanges']()))){for(const _0x1e5b79 of _0x490a0b)_0x326dfd['addRange'](_0x1e5b79);return _0x326dfd;}for(const {suggestion:_0x5e3ce4,meta:_0x1f0cfb}of this['_findSuggestions'](_0x490a0b,'insertion')){if(!_0x1f0cfb['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x1f0cfb['containsRangeInObject'])continue;if(!Xt(_0x5e3ce4,_0x87434d))continue;let _0x2578e5=!0x0;for(const _0x33a25e of _0x5e3ce4['getRanges']())for(const _0x43e9d5 of _0x490a0b)if(!_0x33a25e['containsRange'](_0x43e9d5)){_0x2578e5=!0x1;break;}if(_0x2578e5)return _0x5e3ce4;}const _0x49e98a=_0x12db8f(),_0x4de4ff=_0x52f6fe['id'],_0x134b40='insertion:'+_0x170719,_0x1ddef7=this['_setSuggestionData']({'id':_0x49e98a,'type':_0x134b40,'createdAt':new Date(),'authorId':_0x4de4ff,'attributes':_0x87434d});for(const _0x3959b0 of _0x490a0b)this['_addSuggestionMarker'](_0x134b40,_0x49e98a,_0x4de4ff,_0x3959b0,T['getMultiRangeId']());return _0x1ddef7;}['markInlineFormat'](_0x527ce2,_0x15cb34,_0x3db7c0=null,_0x3c9dd2={}){if(_0x3db7c0=_0x3db7c0||Lt(_0x15cb34),_0x527ce2['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x3c9dd2['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x442ef2=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3db7c0,'accept');return this['forceDefaultExecution'](()=>_0x442ef2([_0x527ce2],_0x15cb34,_0x3c9dd2)),null;}const _0x2b3bb2=this['editor']['plugins']['get']('Users')['me'],_0x561aaf=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x471d8e,meta:_0x79c4b2}of this['_findSuggestions'](_0x527ce2,'insertion'))_0x79c4b2['isOwn']&&!_0x79c4b2['isInsideObject']&&_0x561aaf['push'](..._0x471d8e['getRanges']());}const _0xb1698c=function(_0x4e54d2,_0xfbd357){const _0x19fdc6=[];for(const _0x15f5a7 of _0xfbd357){const _0x398729=_0x4e54d2['getIntersection'](_0x15f5a7);_0x398729&&_0x19fdc6['push'](_0x398729);}return _0x19fdc6;}(_0x527ce2,_0x561aaf),_0x39203a=function(_0x45110c,_0x3b9eea){const _0x5f4584=[_0x45110c];for(const _0x3d4378 of _0x3b9eea){let _0x2e4180=0x0;for(;_0x2e4180<_0x5f4584['length'];){const _0x154429=_0x5f4584[_0x2e4180]['getDifference'](_0x3d4378);_0x5f4584['splice'](_0x2e4180,0x1,..._0x154429),_0x2e4180+=_0x154429['length'];}}return _0x5f4584;}(_0x527ce2,_0x561aaf);_0xb1698c['length']&&this['_model']['change'](()=>{for(const _0x37b29b of _0xb1698c){const _0x12441c=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3db7c0,'accept');this['forceDefaultExecution'](()=>_0x12441c([_0x37b29b],_0x15cb34,_0x3c9dd2));}});for(const _0x4a5777 of _0x39203a){let _0x66b58=null,_0x2d0b6c=_0x4a5777['start'],_0x194355=_0x4a5777['end'];for(const {suggestion:_0x272049,meta:_0x1f6a85}of this['_findSuggestions'](_0x4a5777,'formatInline')){if(!_0x1f6a85['isOwn'])continue;if(_0x272049['subType']!=_0x3db7c0)continue;if(!Xt(_0x272049,_0x3c9dd2))continue;const _0x85a17d=_0x272049['getFirstRange']();if(_0x85a17d['containsRange'](_0x4a5777,!0x0))return null;_0x2d0b6c=_0x2d0b6c['isBefore'](_0x85a17d['start'])?_0x2d0b6c:_0x85a17d['start'],_0x194355=_0x194355['isAfter'](_0x85a17d['end'])?_0x194355:_0x85a17d['end'],_0x66b58?_0x85a17d['start']['isBefore'](_0x66b58['getFirstRange']()['start'])?(_0x66b58['removeMarkers'](),_0x66b58=_0x272049):_0x272049['removeMarkers']():_0x66b58=_0x272049;}const _0x50a70f=this['_model']['createRange'](_0x2d0b6c,_0x194355);if(_0x66b58)this['_setSuggestionRange'](_0x66b58,_0x50a70f);else{const _0x3b67d6=_0x12db8f(),_0x2f726d=_0x2b3bb2['id'];this['_setSuggestionData']({'id':_0x3b67d6,'type':'formatInline:'+_0x3db7c0,'data':_0x15cb34,'createdAt':new Date(),'authorId':_0x2f726d,'attributes':_0x3c9dd2}),this['_addSuggestionMarker']('formatInline:'+_0x3db7c0,_0x3b67d6,_0x2f726d,_0x50a70f);}}return null;}['markBlockFormat'](_0x246617,_0x5e9a95,_0x2b0e5b=[],_0x35d557=null,_0x3718a0={}){_0x5e9a95['formatGroupId']||(_0x5e9a95['formatGroupId']=_0x5e9a95['commandName']),_0x5e9a95['multipleBlocks']=_0x246617['is']('range'),_0x35d557=_0x35d557||Lt(_0x5e9a95);const _0x24a045=_0x2b0e5b['map'](_0x128545=>zt(_0x128545,this['_model'])),_0x49fc9a=_0x246617['is']('range')?_0x246617:zt(_0x246617,this['_model']);if(this['_trackingSessionId']&&(_0x3718a0['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x10e73c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x35d557,'accept');return this['forceDefaultExecution'](()=>_0x10e73c([_0x49fc9a],_0x5e9a95,_0x3718a0)),null;}_0x24a045['push'](_0x49fc9a);let _0xc93f50=!0x0;for(const _0x4f095f of _0x24a045)if(!this['_rangeIsInLocalUserInsertion'](_0x4f095f)){_0xc93f50=!0x1;break;}if(_0xc93f50&&'always'!==this['_trackFormatChanges']){const _0x2efd99=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x35d557,'accept');return this['forceDefaultExecution'](()=>_0x2efd99([_0x49fc9a],_0x5e9a95,_0x3718a0)),null;}let _0x5c39c9=null,_0xe75a6e=_0x49fc9a['start'],_0x296e1a=_0x49fc9a['end'];for(const {suggestion:_0x2e5358,meta:_0x116f14}of this['_findSuggestions'](_0x49fc9a,'formatBlock')){if(!_0x116f14['isOwn'])continue;if(_0x116f14['isNextTo']||_0x116f14['containsRangeInObject']||_0x116f14['isInsideObject'])continue;if(_0x2e5358['data']['formatGroupId']!=_0x5e9a95['formatGroupId'])continue;if(!Xt(_0x2e5358,_0x3718a0))continue;const _0x477b94=_0x2e5358['getFirstRange']();if(_0x2e5358['subType']==_0x35d557){if(_0x477b94['containsRange'](_0x49fc9a,!0x0))return null;_0xe75a6e=_0xe75a6e['isBefore'](_0x477b94['start'])?_0xe75a6e:_0x477b94['start'],_0x296e1a=_0x296e1a['isAfter'](_0x477b94['end'])?_0x296e1a:_0x477b94['end'],_0x5c39c9?_0x477b94['start']['isBefore'](_0x5c39c9['getFirstRange']()['start'])?(_0x5c39c9['removeMarkers'](),_0x5c39c9=_0x2e5358):_0x2e5358['removeMarkers']():_0x5c39c9=_0x2e5358;}else{const _0x2b2b9e=_0x49fc9a['getIntersection'](_0x477b94);this['_cutOutSuggestionMarker'](_0x2e5358,_0x2b2b9e);}}const _0x7b0ae4=this['editor']['plugins']['get']('Users')['me'],_0x33fbd6=_0x12db8f(),_0x1b3749=_0x7b0ae4['id'];if(_0x5c39c9)return this['_setSuggestionRange'](_0x5c39c9,this['_model']['createRange'](_0xe75a6e,_0x296e1a)),_0x5c39c9;{const _0x50cd1b=this['_setSuggestionData']({'id':_0x33fbd6,'type':'formatBlock:'+_0x35d557,'data':_0x5e9a95,'createdAt':new Date(),'authorId':_0x1b3749,'attributes':_0x3718a0});return this['_addSuggestionMarker']('formatBlock:'+_0x35d557,_0x33fbd6,_0x1b3749,this['_model']['createRange'](_0xe75a6e,_0x296e1a)),_0x50cd1b;}}['markMultiRangeBlockFormat'](_0xdee63c,_0x319fc2,_0xd352a0=[],_0x475f11=null,_0x286682={}){_0x319fc2['formatGroupId']||(_0x319fc2['formatGroupId']=_0x319fc2['commandName']);const _0x5a4ce9=_0xdee63c[0x0];_0x319fc2['multipleBlocks']=_0x5a4ce9['is']('range'),_0x475f11=_0x475f11||Lt(_0x319fc2);const _0xb7b181=_0xd352a0['map'](_0x23a084=>zt(_0x23a084,this['_model'])),_0x4be3d8=_0x5a4ce9['is']('range')?_0xdee63c:_0xdee63c['map'](_0x599ac9=>zt(_0x599ac9,this['_model']));if(this['_trackingSessionId']&&(_0x286682['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0xe3f89b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x475f11,'accept');return this['forceDefaultExecution'](()=>_0xe3f89b(_0x4be3d8,_0x319fc2,_0x286682)),null;}_0xb7b181['push'](..._0x4be3d8);let _0x26d64d=!0x0;for(const _0x1c68fd of _0xb7b181)if(!this['_rangeIsInLocalUserInsertion'](_0x1c68fd)){_0x26d64d=!0x1;break;}if(_0x26d64d&&'always'!==this['_trackFormatChanges']){const _0x1d82a9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x475f11,'accept');return this['forceDefaultExecution'](()=>_0x1d82a9(_0x4be3d8,_0x319fc2,_0x286682)),null;}const _0x153bee=this['editor']['plugins']['get']('Users')['me'];for(const _0x1c780e of this['getSuggestions']()){const _0x2e5e97=_0x1c780e['data'];if(_0x1c780e['author']['id']!=_0x153bee['id'])continue;if('formatBlock'!=_0x1c780e['type']||_0x2e5e97['formatGroupId']!=_0x319fc2['formatGroupId'])continue;if(!Xt(_0x1c780e,_0x286682))continue;const _0x595dba=_0x1c780e['subType']==_0x475f11;for(let _0x40163b=0x0;_0x40163b<_0x4be3d8['length'];_0x40163b++){const _0x316608=_0x4be3d8[_0x40163b];for(const _0xd577aa of _0x1c780e['getMarkers']()){const _0x398cf4=_0xd577aa['getRange']();if(_0x316608['isEqual'](_0x398cf4)){_0x595dba?(_0x4be3d8['splice'](_0x40163b,0x1),_0x40163b--):_0x1c780e['removeMarker'](_0xd577aa['name']);break;}}}}if(0x0==_0x4be3d8['length'])return null;const _0xa58c58=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x475f11,'join');for(const _0x1f60f of this['getSuggestions']()){const _0x14223f=_0x1f60f['data'];if(_0x1f60f['author']['id']==_0x153bee['id']&&('formatBlock'==_0x1f60f['type']&&_0x14223f['formatGroupId']==_0x319fc2['formatGroupId']&&_0x1f60f['subType']==_0x475f11&&Xt(_0x1f60f,_0x286682)&&(_0xa58c58(_0x1f60f['getRanges'](),_0x4be3d8)||_0xa58c58(_0x4be3d8,_0x1f60f['getRanges']())))){for(const _0x7f18c3 of _0x4be3d8)_0x1f60f['addRange'](_0x7f18c3);return _0x1f60f;}}const _0x27c99d=_0x12db8f(),_0xddadda=_0x153bee['id'],_0x3498d5='formatBlock:'+_0x475f11,_0x194983=this['_setSuggestionData']({'id':_0x27c99d,'type':_0x3498d5,'data':_0x319fc2,'createdAt':new Date(),'authorId':_0xddadda,'attributes':_0x286682});for(const _0x45b827 of _0x4be3d8)this['_addSuggestionMarker'](_0x3498d5,_0x27c99d,_0xddadda,_0x45b827,T['getMultiRangeId']());return _0x194983;}['markDeletion'](_0x7a323d,_0x3e7eaa=null,_0x3ff90b={}){if(_0x7a323d['isCollapsed'])return null;const _0x296e7f=this['editor']['plugins']['get']('Users')['me'],_0x399468=new _0x5d0c54(_0x7a323d['start'],_0x7a323d['end']);this['_trackingSessionId']&&(_0x3ff90b['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x1750ea,meta:_0x4e1865}of this['_findSuggestions'](_0x399468,'insertion'))if(_0x4e1865['isOwn']&&!_0x4e1865['isNextTo']){if(_0x1750ea['isMultiRange']){const _0x409bed=_0x1750ea['getRanges']()['filter'](_0x35a83b=>'$graveyard'!=_0x35a83b['root']['rootName']);_0x409bed['every'](_0x2a0f2a=>_0x399468['containsRange'](_0x2a0f2a,!0x0))&&_0x1750ea['discard']();if(_0x409bed['some'](_0x5600f9=>_0x5600f9['containsRange'](_0x399468,!0x0))){const _0x8da0c7=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3e7eaa,'accept');return this['forceDefaultExecution'](()=>_0x8da0c7([_0x399468],null,_0x3ff90b)),null;}}else{const _0x1b0932=_0x399468['getIntersection'](_0x1750ea['getFirstRange']());null!==_0x1b0932&&_0x1750ea['_onDiscard']([_0x1b0932],null,_0x3ff90b);}}if(_0x399468['detach'](),_0x399468['isCollapsed']||'$graveyard'==_0x399468['root']['rootName'])return null;let _0x4277bf=null,_0x7971b=_0x399468['start'],_0x46f428=_0x399468['end'];const _0x5e4201=this['_findSuggestions'](_0x399468,'deletion');for(const {suggestion:_0x5371cc,meta:_0x31bd1b}of _0x5e4201){const _0x52450d=this['_model']['createRange'](_0x7971b,_0x46f428);if(_0x31bd1b['isOwn']&&(this['_mergeNestedSuggestions']||!_0x31bd1b['containsRangeInObject']&&!_0x31bd1b['isInsideObject'])){if(_0x5371cc['isMultiRange']){if(!Xt(_0x5371cc,_0x3ff90b))continue;let _0x403d6b=!0x0;for(const _0x38ce68 of _0x5371cc['getRanges']()){if(_0x38ce68['containsRange'](_0x52450d,!0x0))return _0x5371cc;_0x52450d['containsRange'](_0x38ce68)||(_0x403d6b=!0x1);}_0x403d6b&&_0x5371cc['discard']();}else{const _0x517b6b=_0x5371cc['getFirstRange']();if(_0x517b6b['containsRange'](_0x52450d,!0x0))return _0x5371cc;if(!Xt(_0x5371cc,_0x3ff90b)){_0x52450d['containsRange'](_0x517b6b)?_0x5371cc['removeMarkers']():_0x517b6b['containsPosition'](_0x7971b)?_0x7971b=_0x517b6b['end']:_0x517b6b['containsPosition'](_0x46f428)&&(_0x46f428=_0x517b6b['start']);continue;}_0x7971b=_0x7971b['isBefore'](_0x517b6b['start'])?_0x7971b:_0x517b6b['start'],_0x46f428=_0x46f428['isAfter'](_0x517b6b['end'])?_0x46f428:_0x517b6b['end'],_0x3ff90b=Object['assign']({},_0x5371cc['attributes']),_0x4277bf?_0x517b6b['start']['isBefore'](_0x4277bf['getFirstRange']()['start'])?(_0x4277bf['removeMarkers'](),_0x4277bf=_0x5371cc):_0x5371cc['removeMarkers']():_0x4277bf=_0x5371cc;}}}if(_0x4277bf)return this['_setSuggestionRange'](_0x4277bf,this['_model']['createRange'](_0x7971b,_0x46f428)),_0x4277bf;{const _0x3b9608=_0x12db8f(),_0x37f13=this['_model']['createRange'](_0x7971b,_0x46f428),_0x525d22=_0x296e7f['id'],_0x90509f=_0x3e7eaa?'deletion:'+_0x3e7eaa:'deletion',_0xb272a2=this['_setSuggestionData']({'id':_0x3b9608,'type':_0x90509f,'createdAt':new Date(),'authorId':_0x525d22,'attributes':_0x3ff90b});return this['_addSuggestionMarker'](_0x90509f,_0x3b9608,_0x525d22,_0x37f13),_0xb272a2;}}['markMultiRangeDeletion'](_0x9739fb,_0x909006='multi',_0x599d16={}){const _0x5233d4=this['editor']['plugins']['get']('Users')['me'],_0x4f9c51=_0x9739fb['map'](_0x68fb2b=>new _0x5d0c54(_0x68fb2b['start'],_0x68fb2b['end'])),_0x13761f=new Set();this['_trackingSessionId']&&(_0x599d16['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x57173f,meta:_0x53d1a0}of this['_findSuggestions'](_0x4f9c51,'insertion'))_0x53d1a0['isOwn']&&!_0x53d1a0['isNextTo']&&_0x13761f['add'](_0x57173f);for(const _0x33c108 of _0x13761f)if(_0x33c108['isMultiRange']){const _0x44df6a=_0x33c108['getRanges']();(!_0x33c108['attributes']||!_0x33c108['attributes']['skipNestingCheck'])&&(_0x44df6a['every'](_0x51ab1c=>_0x4f9c51['some'](_0x209446=>_0x209446['containsRange'](_0x51ab1c,!0x0)))&&_0x33c108['discard']());if(_0x4f9c51['every'](_0x73a29b=>_0x44df6a['some'](_0x90d1fa=>_0x90d1fa['containsRange'](_0x73a29b,!0x0)))){const _0x5a96a0=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x909006,'accept');return this['forceDefaultExecution'](()=>_0x5a96a0(_0x9739fb,null,_0x599d16)),null;}}else{const _0x42e356=_0x33c108['getFirstRange']();_0x4f9c51['some'](_0x5c8ca3=>_0x5c8ca3['containsRange'](_0x42e356,!0x0))&&_0x33c108['discard']();if(_0x4f9c51['every'](_0x5e1c87=>_0x42e356['containsRange'](_0x5e1c87,!0x0))){const _0x178b6c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x909006,'accept');return this['forceDefaultExecution'](()=>_0x178b6c(_0x4f9c51,null,_0x599d16)),null;}}const _0x4ded1a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x909006,'join');let _0x19b4ea=null;for(const _0x55b47b of this['getSuggestions']())if(_0x55b47b['author']['id']==_0x5233d4['id']&&_0x55b47b['isInContent']&&'deletion'==_0x55b47b['type']&&_0x55b47b['subType']==_0x909006&&Xt(_0x55b47b,_0x599d16)&&(_0x4ded1a(_0x55b47b['getRanges'](),_0x4f9c51)||_0x4ded1a(_0x4f9c51,_0x55b47b['getRanges']()))){if(_0x19b4ea){if(_0x55b47b['commentThread']&&_0x55b47b['commentThread']['length'])continue;for(const _0x4f7ad1 of _0x55b47b['getRanges']())_0x19b4ea['isIntersectingWithRange'](_0x4f7ad1)||_0x19b4ea['addRange'](_0x4f7ad1);_0x55b47b['removeMarkers']();}else{_0x19b4ea=_0x55b47b;for(const _0x556047 of _0x4f9c51)_0x55b47b['isIntersectingWithRange'](_0x556047)||_0x55b47b['addRange'](_0x556047);}}if(_0x19b4ea)return _0x19b4ea;_0x13761f['clear']();for(const {suggestion:_0x1acc3c,meta:_0x1e93d1}of this['_findSuggestions'](_0x4f9c51,'deletion'))_0x1e93d1['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1e93d1['containsRangeInObject']&&!_0x1e93d1['isInsideObject'])&&Xt(_0x1acc3c,_0x599d16)&&_0x13761f['add'](_0x1acc3c);for(const _0x577b36 of _0x13761f){const _0x5f0b72=_0x577b36['getRanges']();if(!_0x599d16||!_0x599d16['skipNestingCheck']){if(_0x4f9c51['every'](_0x254a13=>_0x5f0b72['some'](_0x3a0bef=>_0x3a0bef['containsRange'](_0x254a13,!0x0))))return _0x577b36;}(!_0x577b36['attributes']||!_0x577b36['attributes']['skipNestingCheck'])&&(_0x5f0b72['every'](_0xd72b43=>_0x4f9c51['some'](_0x880cf5=>_0x880cf5['containsRange'](_0xd72b43,!0x0)))&&_0x577b36['discard']());}const _0x2f2a8a=_0x12db8f(),_0x116012=_0x5233d4['id'],_0x1e2415='deletion:'+_0x909006,_0x2f6d88=this['_setSuggestionData']({'id':_0x2f2a8a,'type':_0x1e2415,'createdAt':new Date(),'authorId':_0x116012,'attributes':_0x599d16});for(const _0x25ba33 of _0x4f9c51)_0x25ba33['detach'](),_0x25ba33['isCollapsed']||'$graveyard'==_0x25ba33['root']['rootName']||this['_addSuggestionMarker'](_0x1e2415,_0x2f2a8a,_0x116012,_0x25ba33,T['getMultiRangeId']());return _0x2f6d88;}['markAttributeChange'](_0x23ddef,_0x1b332d,_0x588151,_0x241d36,_0x3a63cc){if(_0x23ddef['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x1c92f2=this['editor']['plugins']['get']('Users')['me']['id'],_0x3b15ff=Array['from'](this['_suggestions']['values']())['filter'](_0x513b9f=>'attribute'==_0x513b9f['type']&&_0x513b9f['data']['key']==_0x1b332d&&_0x513b9f['isIntersectingWithRange'](_0x23ddef));if(this['_trackingSessionId']&&(_0x3a63cc['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x25b4d1=this['_findSuggestions'](_0x23ddef,'insertion')['filter'](({meta:_0x127829})=>_0x127829['isOwn']&&!_0x127829['isInsideObject']&&!_0x127829['isNextTo'])['map'](({suggestion:_0x4433b0})=>_0x4433b0);_0x3b15ff['unshift'](..._0x25b4d1);}const _0x1dd988=new Map([[_0x23ddef,_0x588151]]);for(const _0x5751a5 of _0x3b15ff){const _0x46cd3f='attribute'==_0x5751a5['type']?_0x5751a5['data']['oldValue']:void 0x0,_0x261555=_0x5751a5['getFirstRange'](),_0x116b50=Array['from'](_0x1dd988['keys']())['find'](_0x383337=>_0x383337['isIntersecting'](_0x261555));if(!_0x116b50)continue;const _0x17ba44=_0x116b50['getDifference'](_0x261555);this['_isBlockAttribute'](_0x1b332d)&&'insertion'==_0x5751a5['type']&&0x0!=_0x17ba44['length']||(_0x1dd988['delete'](_0x116b50),_0x17ba44['forEach'](_0x1460d2=>{_0x1dd988['set'](_0x1460d2,_0x588151);}),'insertion'!=_0x5751a5['type']&&_0x46cd3f!=_0x241d36&&_0x1dd988['set'](_0x116b50['getIntersection'](_0x261555),_0x46cd3f));}const _0x36f830=[];for(const [_0xc96a9b,_0x450ec0]of _0x1dd988){const _0x2a6c5b=_0x12db8f(),_0x555afc={'key':_0x1b332d,'oldValue':_0x450ec0,'newValue':_0x241d36};_0x1b332d['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':_0x1b332d});const _0x5d3be2=('attribute:'+(_0x1b332d+'|'+Lt({'newValue':_0x241d36})))['substring'](0x0,0x3c),_0xbff45a=this['_setSuggestionData']({'id':_0x2a6c5b,'type':_0x5d3be2,'data':_0x555afc,'createdAt':new Date(),'authorId':_0x1c92f2,'attributes':_0x3a63cc});_0x36f830['push'](_0xbff45a),this['_addSuggestionMarker'](_0x5d3be2,_0x2a6c5b,_0x1c92f2,_0xc96a9b);}return _0x36f830;}['enableDefaultAttributesIntegration'](_0x587017){this['enableCommand'](_0x587017,(_0x499122,..._0x3780ee)=>{this['recordAttributeChanges'](()=>{_0x499122(..._0x3780ee);});});}['registerBlockAttribute'](_0x3a3760){this['_blockAttributeKeys']['add'](_0x3a3760);}['registerInlineAttribute'](_0x961f7){this['_inlineAttributeKeys']['add'](_0x961f7);}['startTrackingSession'](_0x5af0cf){return this['_trackingSessionId']=void 0x0!==_0x5af0cf?_0x5af0cf:_0x12db8f(),this['_trackingSessionId'];}['_getAttributeKey'](_0x373d87){return'attribute'==_0x373d87['type']?_0x373d87['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x45aa65,_0x1afe4b){const _0x3460e1=_0x45aa65['getFirstMarker']();this['_model']['change'](_0x3d3ac8=>{_0x3d3ac8['updateMarker'](_0x3460e1,{'range':_0x1afe4b});});}['_addThreadToSuggestion'](_0x106e92){const _0x179cb1=_0x106e92['id'],_0x56c979=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x179cb1)||this['_commentsRepository']['addCommentThread']({'channelId':_0x56c979,'threadId':_0x179cb1,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x13a989=this['_commentsRepository']['getCommentThread'](_0x179cb1);_0x13a989['unbind']('isRemovable'),_0x13a989['isRemovable']=!0x1,_0x106e92['commentThread']=_0x13a989;}['_checkSuggestionCorrectness'](_0x262a10,_0x41b7be,_0x423fe2,_0x47c1bb){if(_0x262a10['type']!=_0x41b7be||_0x262a10['subType']!=_0x423fe2||_0x262a10['creator']['id']!=_0x47c1bb)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x5d7906('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x11b826,_0x12b7ee){const _0xc62b31=_0x11b826['getFirstRange']();if(_0x12b7ee['isEqual'](_0xc62b31))_0x11b826['removeMarkers']();else{if(_0xc62b31['containsRange'](_0x12b7ee)){const _0x2c5650=this['_model']['createPositionAt'](_0x12b7ee['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x11b826,this['_model']['createRange'](_0xc62b31['start'],_0x2c5650));const _0x2e12cf=_0x12db8f(),_0x2ea9c3=_0x11b826['creator']['id'],_0x133051=_0x11b826['type']+':'+_0x11b826['subType'];this['_setSuggestionData']({'id':_0x2e12cf,'type':_0x133051,'createdAt':new Date(),'authorId':_0x2ea9c3,'data':_0x11b826['data'],'attributes':_0x11b826['attributes']});const _0xa9d610=this['_model']['createPositionAt'](_0x12b7ee['end']['parent'],'after'),_0x222e91=this['_model']['createRange'](_0xa9d610,_0xc62b31['end']);this['_addSuggestionMarker'](_0x133051,_0x2e12cf,_0x2ea9c3,_0x222e91);}else{if(_0xc62b31['containsPosition'](_0x12b7ee['start'])){const _0x380095=this['_model']['createPositionAt'](_0x12b7ee['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x11b826,this['_model']['createRange'](_0xc62b31['start'],_0x380095));}else{const _0x404e0e=this['_model']['createPositionAt'](_0x12b7ee['end']['parent'],'after');this['_setSuggestionRange'](_0x11b826,this['_model']['createRange'](_0x404e0e,_0xc62b31['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x494a4a){for(const {suggestion:_0x80928d,meta:_0x518677}of this['_findSuggestions'](_0x494a4a,'insertion')){if(!_0x518677['isOwn'])continue;const _0x31e174=_0x80928d['getRanges']();for(const _0x20702c of _0x31e174)if(!_0x494a4a['getDifference'](_0x20702c)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x5c7e84){return this['editor']['plugins']['get']('Users')['getUser'](_0x5c7e84);}['_getExternalAuthor'](_0x119985){const _0x1181e7=this['editor']['plugins']['get']('Users'),_0xb3849c=_0x864524('external:'+_0x119985),_0x284705=_0x1181e7['getUser'](_0xb3849c);return _0x284705||_0x1181e7['addUser']({'id':_0xb3849c,'name':_0x119985});}['_createSuggestion'](_0x15ea73,_0x4289da,_0x345b4e,_0x499571,_0x5ec29e,_0x54f049){const _0x212fb1=this['_getAuthorFromId'](_0x499571);if(!_0x212fb1)throw new _0x5d7906('track-changes-user-not-found',this,{'authorId':_0x499571,'suggestionId':_0x345b4e});const _0x4d640a=this['_suggestionFactory']['buildSuggestion'](_0x15ea73,_0x4289da,_0x345b4e,_0x212fb1,_0x5ec29e,_0x656763=>{this['_updateSuggestionData'](_0x345b4e,{'attributes':_0x656763});const _0x52bd48=this['getSuggestion'](_0x345b4e);this['_joinWithAdjacentSuggestions'](new Set([_0x52bd48])),this['_refreshSuggestionsChain'](new Set([_0x52bd48]));},_0x54f049);return this['listenTo'](_0x4d640a,'accept',()=>{this['_updateSuggestionData'](_0x345b4e,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x4d640a,'discard',()=>{this['_updateSuggestionData'](_0x345b4e,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x345b4e,_0x4d640a),this['_suggestionState']['set'](_0x4d640a,'notReady'),_0x4d640a;}['_splitMarkerName'](_0x540467){const _0x267b39=_0x540467['split'](':');return{'group':_0x267b39[0x0],'type':_0x267b39[0x1],'subType':_0x267b39['length']>=0x5?_0x267b39[0x2]:null,'id':_0x267b39['length']<0x5?_0x267b39[0x2]:_0x267b39[0x3],'authorId':_0x267b39['length']<0x5?_0x267b39[0x3]:_0x267b39[0x4],'markerCount':0x6==_0x267b39['length']?_0x267b39[0x5]:null};}['_breakSuggestionMarker'](_0x331fa0,_0x2c1bde,_0x5a58d9){const _0x500cf1=_0x331fa0['getFirstRange'](),_0x34c8f4=_0x500cf1['start'],_0x1e1cf5=_0x500cf1['end'];this['_setSuggestionRange'](_0x331fa0,this['_model']['createRange'](_0x34c8f4,_0x2c1bde));const _0x27e59c=_0x12db8f(),_0x2f7088=_0x331fa0['creator']['id'],_0x251fe1=_0x331fa0['type']+(_0x331fa0['subType']?':'+_0x331fa0['subType']:'');this['_setSuggestionData']({'id':_0x27e59c,'type':_0x251fe1,'createdAt':new Date(),'authorId':_0x2f7088,'originalSuggestionId':_0x331fa0['_originalSuggestionId']||_0x331fa0['id'],'attributes':_0x331fa0['attributes'],'data':_0x331fa0['data']});const _0x3a5442=this['_getAttributeKey'](_0x331fa0);('formatBlock'==_0x331fa0['type']||_0x3a5442&&this['_isBlockAttribute'](_0x3a5442))&&(_0x5a58d9=this['_model']['createPositionBefore'](_0x5a58d9['parent'])),this['_addSuggestionMarker'](_0x251fe1,_0x27e59c,_0x2f7088,this['_model']['createRange'](_0x5a58d9,_0x1e1cf5));}['_findSuggestions'](_0x491549,_0x302be3=null){const _0x546813=[],_0x1248b2=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x491549)||(_0x491549=[_0x491549]);for(const _0x16e9e3 of this['getSuggestions']()){if(!_0x16e9e3['isInContent'])continue;if(_0x302be3&&_0x16e9e3['type']!=_0x302be3)continue;let _0x45b94b=!0x1;for(const _0x3d4bdb of _0x16e9e3['getRanges']()){for(const _0x5171f5 of _0x491549){const _0x537cb7=_0x5171f5['start']['isEqual'](_0x3d4bdb['end'])||_0x5171f5['end']['isEqual'](_0x3d4bdb['start']);if(_0x537cb7||_0x5171f5['getIntersection'](_0x3d4bdb)){const _0x346075=_0x5171f5['containsRange'](_0x3d4bdb)&&Ft(this['_model']['schema'],_0x3d4bdb['start'],_0x5171f5),_0x411431=_0x3d4bdb['containsRange'](_0x5171f5)&&Ft(this['_model']['schema'],_0x5171f5['start'],_0x3d4bdb);_0x546813['push']({'suggestion':_0x16e9e3,'meta':{'isOwn':_0x1248b2==_0x16e9e3['author'],'isNextTo':_0x537cb7,'isInsideObject':_0x346075,'containsRangeInObject':_0x411431}}),_0x45b94b=!0x0;break;}}if(_0x45b94b)break;}}return _0x546813;}['_addSuggestionMarker'](_0x4cac8c,_0x3091a9,_0x1adfda,_0xbeec09,_0x287bb9){this['_model']['change'](_0x5a9ffd=>{let _0x1c4823='suggestion:'+_0x4cac8c+':'+_0x3091a9+':'+_0x1adfda;_0x287bb9&&(_0x1c4823=_0x1c4823+':'+_0x287bb9),_0x5a9ffd['addMarker'](_0x1c4823,{'range':_0xbeec09,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x15c1cf){const _0x267563=_0x15c1cf['previous'],_0xa0e4bc=_0x15c1cf['next'];_0x15c1cf['previous']=null,_0x15c1cf['next']=null,null!=_0x267563&&_0x267563['next']==_0x15c1cf&&(_0x267563['next']=_0xa0e4bc),null!=_0xa0e4bc&&_0xa0e4bc['previous']==_0x15c1cf&&(_0xa0e4bc['previous']=_0x267563),'ready'==this['_suggestionState']['get'](_0x15c1cf)&&(this['_suggestionState']['set'](_0x15c1cf,'removed'),this['fire']('suggestionUnloaded',_0x15c1cf,_0x267563,_0xa0e4bc));}['_setSuggestionData'](_0x17d0a2){const _0x2fc4f8=_0x17d0a2['id'],_0x4931b3=this['addSuggestionData'](_0x17d0a2);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x43e1bb=this['editor']['plugins']['get']('PendingActions'),_0x3c76b6=_0x4931b3['hasComments'],_0x2231c0=_0x4931b3['subType']?_0x4931b3['type']+':'+_0x4931b3['subType']:_0x4931b3['type'],_0x58d18d=this['editor']['locale'],_0x4aa1d7=_0x43e1bb['add'](o(_0x58d18d,'PENDING_ACTION_SUGGESTION')),_0x40aa59={'id':_0x2fc4f8,'type':_0x2231c0,'hasComments':_0x3c76b6,'data':_0x17d0a2['data']||null,'originalSuggestionId':_0x17d0a2['originalSuggestionId']||null,'attributes':_0x4931b3['attributes']};this['_adapter']['addSuggestion'](_0x40aa59)['then'](_0x249cf6=>{_0x4931b3['_saved']=!0x0,_0x43e1bb['remove'](_0x4aa1d7),_0x249cf6&&_0x249cf6['createdAt']&&(this['_suggestions']['get'](_0x2fc4f8)['createdAt']=_0x249cf6['createdAt']);})['catch'](_0x55bb48=>{throw _0x5774a3('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x4931b3['discard']();}),_0x4931b3['stopListening'](),this['_suggestions']['delete'](_0x4931b3['id']),this['_suggestionState']['delete'](_0x4931b3),_0x55bb48;});}return _0x4931b3;}['_isBlockAttribute'](_0x3fc89e){return this['_blockAttributeKeys']['has'](_0x3fc89e);}['_isInlineAttribute'](_0x2e0049){return this['_inlineAttributeKeys']['has'](_0x2e0049);}['_updateSuggestionData'](_0xe09913,_0x45ca23){const _0x4666e2=this['editor']['plugins']['get']('PendingActions'),_0xf8b9b4=this['getSuggestion'](_0xe09913);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0xf8b9b4['_saved']){const _0x214f46=_0x4666e2['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0xe09913,_0x45ca23)['then'](()=>{_0x4666e2['remove'](_0x214f46);});}else _0xf8b9b4['on']('change:_saved',()=>{this['_updateSuggestionData'](_0xe09913,_0x45ca23);});}}['_getSuggestionData'](_0x4bcadb){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x5d7906('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x4bcadb);}['_handleNewSuggestionMarker'](_0xb1336e){const {id:_0x166481,type:_0xa75171,subType:_0x7936cd,authorId:_0x5a705d}=this['_splitMarkerName'](_0xb1336e),_0x3478a8=this['_suggestions']['get'](_0x166481)||this['_createSuggestion'](_0xa75171,_0x7936cd,_0x166481,_0x5a705d,{});switch(this['_checkSuggestionCorrectness'](_0x3478a8,_0xa75171,_0x7936cd,_0x5a705d),this['_suggestionState']['get'](_0x3478a8)){case'notReady':this['_getSuggestionData'](_0x166481)['then'](_0x345a29=>{let _0x2671c9=Promise['resolve']();_0x345a29['hasComments']&&(_0x2671c9=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x166481})),_0x2671c9['then'](()=>{this['addSuggestionData'](_0x345a29)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x3478a8,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x166481,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x3478a8,'ready'),this['fire']('suggestionLoaded',_0x3478a8);break;case'ready':this['fire']('suggestionChanged',_0x3478a8);}return _0x3478a8['addMarkerName'](_0xb1336e),_0x3478a8;}['_refreshSuggestionsChain'](_0x2621f6){const _0x542e96=Array['from'](_0x2621f6),_0x300a41=_0x542e96['filter'](_0x1bef52=>'attribute'==_0x1bef52['type']);this['_refreshAttributeSuggestionsChain'](_0x300a41);const _0x6e7fbc=_0x542e96['filter'](_0x55682e=>!_0x55682e['isMultiRange']&&'attribute'!=_0x55682e['type']),_0x22e3f0=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x586110=>!_0x586110['isMultiRange']&&'attribute'!=_0x586110['type']),_0x570fc5=_0x22e3f0['filter'](_0xf3c877=>!_0x2621f6['has'](_0xf3c877)),_0x1118de=new Map(_0x22e3f0['map'](_0x7d7ca2=>[_0x7d7ca2,this['_suggestionFactory']['getSuggestionCallback'](_0x7d7ca2['type'],_0x7d7ca2['subType'],'chain')])),_0x19fd49=new Map(_0x22e3f0['map'](_0x4217c5=>[_0x4217c5,_0x4217c5['getFirstRange']()])),_0x20ebf4=new Set(),_0x4f660a=new Set();for(let _0x39a2a9=0x0;_0x39a2a9<_0x6e7fbc['length'];_0x39a2a9++)_0x14621a(_0x6e7fbc[_0x39a2a9],_0x6e7fbc,_0x39a2a9+0x1);for(let _0x4b0528=0x0;_0x4b0528<_0x6e7fbc['length'];_0x4b0528++)_0x14621a(_0x6e7fbc[_0x4b0528],_0x570fc5,0x0);const _0xbcfc5c=new Set();for(let _0x736765=0x0;_0x736765<_0x6e7fbc['length'];_0x736765++){const _0x2f7c80=_0x6e7fbc[_0x736765];!_0x4f660a['has'](_0x2f7c80)&&_0x2f7c80['previous']&&(_0xbcfc5c['add'](_0x2f7c80['previous']),_0x2f7c80['previous']['next']===_0x2f7c80&&(_0x2f7c80['previous']['next']=null),_0x2f7c80['previous']=null),!_0x20ebf4['has'](_0x2f7c80)&&_0x2f7c80['next']&&(_0xbcfc5c['add'](_0x2f7c80['next']),_0x2f7c80['next']['previous']===_0x2f7c80&&(_0x2f7c80['next']['previous']=null),_0x2f7c80['next']=null);}function _0x14621a(_0x13fd7f,_0x3cdf9d,_0xde4439){for(let _0x5ac5a3=_0xde4439;_0x5ac5a3<_0x3cdf9d['length'];_0x5ac5a3++){const _0x38f7a5=_0x265af0(_0x13fd7f,_0x3cdf9d[_0x5ac5a3]);_0x38f7a5&&(_0x38f7a5[0x0]['next']=_0x38f7a5[0x1],_0x38f7a5[0x1]['previous']=_0x38f7a5[0x0],_0x20ebf4['add'](_0x38f7a5[0x0]),_0x4f660a['add'](_0x38f7a5[0x1]));}}function _0x265af0(_0x27c8bb,_0x5ed1ae){if(_0x27c8bb['author']['id']!==_0x5ed1ae['author']['id'])return null;const _0x56bb1c=_0x1118de['get'](_0x27c8bb)(_0x27c8bb,_0x5ed1ae,_0x19fd49['get'](_0x27c8bb),_0x19fd49['get'](_0x5ed1ae));if(!_0x56bb1c)return null;return _0x1118de['get'](_0x5ed1ae)(_0x27c8bb,_0x5ed1ae,_0x19fd49['get'](_0x27c8bb),_0x19fd49['get'](_0x5ed1ae))?_0x56bb1c[0x1]['commentThread']&&_0x56bb1c[0x1]['commentThread']['length']?null:_0x56bb1c:null;}_0xbcfc5c['size']&&this['_refreshSuggestionsChain'](_0xbcfc5c);}['_refreshAttributeSuggestionsChain'](_0x5a0efb){if(0x0==_0x5a0efb['length'])return;const _0xead86c=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2af7e3=>'attribute'==_0x2af7e3['type']&&_0x2af7e3['_isDataLoaded']),_0x12532b=[],_0x357fd5=new Map();for(const _0x1da7db of _0xead86c){const _0x49c3dd=_0x864524(_0x1da7db['attributes']);_0x357fd5['has'](_0x49c3dd)||(_0x357fd5['set'](_0x49c3dd,_0x12532b['length']),_0x12532b['push']([]));const _0x35f814=_0x357fd5['get'](_0x49c3dd);_0x12532b[_0x35f814]['push'](_0x1da7db);}!(function(){_0x12532b['sort']((_0x127b33,_0xb57cea)=>{const _0x38aaf1=_0x127b33[0x0]['createdAt'],_0x140302=_0xb57cea[0x0]['createdAt'];return _0x38aaf1==_0x140302?_0x127b33[0x0]['attributes']['groupId']<_0xb57cea[0x0]['attributes']['groupId']?-0x1:0x1:_0x38aaf1<_0x140302?-0x1:0x1;});for(const _0x183831 of _0x12532b)_0x183831['sort']((_0x5c6ea7,_0x392eae)=>_0x5c6ea7['id']<_0x392eae['id']?-0x1:0x1);}());for(let _0x4d0a52=0x0;_0x4d0a52<_0x12532b['length'];_0x4d0a52++){if(0x0==_0x12532b[_0x4d0a52]['length'])continue;const _0x41352f=[];for(let _0x392451=_0x4d0a52+0x1;_0x392451<_0x12532b['length'];_0x392451++)0x0!=_0x12532b[_0x392451]['length']&&_0x1a8cc2(_0x12532b[_0x4d0a52],_0x12532b[_0x392451])&&_0x41352f['push'](_0x392451);for(const _0x36c64c of _0x41352f)_0x12532b[_0x4d0a52]=_0x12532b[_0x4d0a52]['concat'](_0x12532b[_0x36c64c]),_0x12532b[_0x36c64c]=[];}for(const _0x28f0e9 of _0x12532b)for(let _0x1895a6=0x0;_0x1895a6<_0x28f0e9['length'];_0x1895a6++){const _0x4edce1=_0x28f0e9[_0x1895a6+0x1]||null;_0x28f0e9[_0x1895a6]['next']!==_0x4edce1&&(_0x28f0e9[_0x1895a6]['next']=_0x4edce1);}for(const _0x593e7a of _0x12532b)for(let _0x2753b8=0x0;_0x2753b8<_0x593e7a['length'];_0x2753b8++){const _0x4739bb=_0x593e7a[_0x2753b8-0x1]||null;_0x593e7a[_0x2753b8]['previous']!==_0x4739bb&&(_0x593e7a[_0x2753b8]['previous']=_0x4739bb);}function _0x1a8cc2(_0x4aba1b,_0x22206a){if(_0x4aba1b[0x0]['attributes']['groupId']!==_0x22206a[0x0]['attributes']['groupId']&&_0x4aba1b[0x0]['author']!==_0x22206a[0x0]['author'])return!0x1;if(!function(_0x5e891a,_0x449135){if(!_0x5e891a['hasComments']&&!_0x449135['hasComments'])return!0x0;if(_0x5e891a['hasComments']&&_0x449135['hasComments'])return!0x1;if(_0x5e891a['hasComments']&&_0x449135['createdAt']<_0x5e891a['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x449135['hasComments']&&_0x5e891a['createdAt']<_0x449135['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x4aba1b[0x0],_0x22206a[0x0]))return!0x1;const _0x560eb4=Ut(_0x4aba1b[0x0]['attributes'],['groupId','trackingSessionId']),_0x55a811=Ut(_0x22206a[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x3a5521(_0x560eb4,_0x55a811))return!0x1;if(_0x4aba1b[0x0]['attributes']['groupId']==_0x22206a[0x0]['attributes']['groupId'])return!0x0;if(_0x4aba1b[0x0]['attributes']['trackingSessionId']!==_0x22206a[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x4aba1b['every'](_0x4d824e=>_0x22206a['some'](_0x19be01=>_0x4d824e['getFirstRange']()['isEqual'](_0x19be01['getFirstRange']())))&&_0x22206a['every'](_0x5ed467=>_0x4aba1b['some'](_0x5e157d=>_0x5ed467['getFirstRange']()['isEqual'](_0x5e157d['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x5ef462){const _0x422a96=Array['from'](_0x5ef462),_0x214025=this['getSuggestions']({'skipNotAttached':!0x0}),_0x1f1c8b=_0x214025['filter'](_0x262ed6=>!_0x5ef462['has'](_0x262ed6)),_0x3efc35=new Map(_0x422a96['map'](_0x161493=>[_0x161493,this['_suggestionFactory']['getSuggestionCallback'](_0x161493['type'],_0x161493['subType'],'join')])),_0x38cabe=new Map(_0x214025['map'](_0x20ea9b=>[_0x20ea9b,_0x20ea9b['getRanges']()]));for(let _0x5677fb=0x0;_0x5677fb<_0x422a96['length'];_0x5677fb++){if(_0x5a4c92(this,_0x422a96[_0x5677fb],_0x422a96,_0x5677fb+0x1))return!0x0;}for(let _0x36eda0=0x0;_0x36eda0<_0x422a96['length'];_0x36eda0++){if(_0x5a4c92(this,_0x422a96[_0x36eda0],_0x1f1c8b,0x0))return!0x0;}return!0x1;function _0x5a4c92(_0x44b72a,_0x40f773,_0x28a617,_0x236518){for(let _0x7dd7c5=_0x236518;_0x7dd7c5<_0x28a617['length'];_0x7dd7c5++){const _0x21b4b6=_0x28a617[_0x7dd7c5];if(_0x21b4b6['type']!==_0x40f773['type']||_0x21b4b6['author']['id']!==_0x40f773['author']['id']||_0x21b4b6['subType']!==_0x40f773['subType'])continue;if(!Qt(_0x40f773,_0x21b4b6))continue;if('attribute'==_0x40f773['type']&&_0x40f773['data']['oldValue']!=_0x21b4b6['data']['oldValue'])continue;if('attribute'==_0x40f773['type']&&_0x44b72a['_isBlockAttribute'](_0x40f773['data']['key']))continue;if('formatBlock'==_0x40f773['type']){const _0x44a8a8=_0x44b72a['editor']['model'],_0x57f461=_0x40f773['getContainedElement']();if(_0x57f461&&(_0x44a8a8['schema']['isObject'](_0x57f461)||_0x44a8a8['schema']['isLimit'](_0x57f461)))continue;}const _0x512448=_0x3efc35['get'](_0x40f773),_0x5101cc=_0x38cabe['get'](_0x40f773),_0x4d96c8=_0x38cabe['get'](_0x21b4b6),_0x20de9f=_0x40f773['commentThread']&&_0x40f773['commentThread']['length'],_0x1b3f1f=_0x21b4b6['commentThread']&&_0x21b4b6['commentThread']['length'];if(!_0x20de9f&&_0x512448(_0x4d96c8,_0x5101cc))return _0x44b72a['_joinSuggestions'](_0x21b4b6,_0x40f773),_0x38cabe['delete'](_0x40f773),!0x0;if(!_0x1b3f1f&&_0x512448(_0x5101cc,_0x4d96c8))return _0x44b72a['_joinSuggestions'](_0x40f773,_0x21b4b6),_0x38cabe['delete'](_0x21b4b6),!0x0;}return!0x1;}}['_joinSuggestions'](_0x355096,_0x15f1d2){if(_0x355096['isMultiRange']){for(const _0x5afc2d of _0x15f1d2['getRanges']())_0x355096['addRange'](_0x5afc2d);}else{const _0x33c155=_0x15f1d2['getFirstRange']()['end'];this['_setSuggestionRange'](_0x355096,this['_model']['createRange'](_0x355096['getFirstRange']()['start'],_0x33c155));}_0x15f1d2['removeMarkers']();}['_getMarkerAnnouncementText'](_0x2e8aa3,_0x3f06ce,_0x140dd5){const _0x3fd3ee=_0x2e8aa3['startsWith']('format')||_0x2e8aa3['startsWith']('attribute')?'FORMATTING':_0x2e8aa3['toUpperCase']();return o(this['editor']['locale'],_0x3f06ce+'_'+_0x3fd3ee+'_SUGGESTION_ANNOUNCEMENT',_0x140dd5);}['_initAriaMarkerChangeAnnouncements'](){const _0xa662e6=this['editor'];if(!_0xa662e6['ui'])return;const {ariaLiveAnnouncer:_0x50a8c8}=_0xa662e6['ui'];_0x1988d5(this['_model'],({left:_0x49c319,entered:_0x1783b2})=>{for(const _0x538604 of _0x49c319){const {group:_0x207de9,type:_0x4a16a9}=this['_splitMarkerName'](_0x538604['name']);if('suggestion'===_0x207de9){_0x50a8c8['announce'](this['_getMarkerAnnouncementText'](_0x4a16a9,'LEAVE'));break;}}for(const _0x1657a1 of _0x1783b2){const {group:_0x2ffb77,type:_0x4acf63}=this['_splitMarkerName'](_0x1657a1['name']);if('suggestion'===_0x2ffb77){_0x50a8c8['announce'](this['_getMarkerAnnouncementText'](_0x4acf63,'ENTER',_0x2d09aa(_0x744245)));break;}}});}['_processAttributeChanges'](_0x1c1951){if(this['_recordAttributeSuggestions'])return!0x1;const _0x3ed799=this['editor'],_0x1cc527=_0x3ed799['model']['document']['differ']['getChanges']();if(0x0==_0x1cc527['length'])return!0x1;const _0x161a22=[],_0x1cb2b4=_0x1cc527['filter'](_0x4cf5cc=>'attribute'==_0x4cf5cc['type']),_0x5b6eae=_0x1cc527['filter'](_0x37926a=>'insert'==_0x37926a['type']&&'$text'!=_0x37926a['name']),_0x163eb2=_0x1cc527['filter'](_0x40d28b=>'remove'==_0x40d28b['type']&&'$text'!=_0x40d28b['name']);for(const _0x5db8ee of _0x1cb2b4)_0x161a22['push']({'key':_0x5db8ee['attributeKey'],'newValue':_0x5db8ee['attributeNewValue'],'oldValue':_0x5db8ee['attributeOldValue'],'range':qt(_0x5db8ee['range'],_0x3ed799['model'])});for(const _0x5788f0 of _0x5b6eae){const _0x2ba1e0=_0x163eb2['find'](_0x4ff912=>_0x4ff912['position']['isEqual'](_0x5788f0['position']));_0x2ba1e0&&_0x161a22['push']({'key':m,'newValue':_0x5788f0['name'],'oldValue':_0x2ba1e0['name'],'range':_0x3ed799['model']['createRangeOn'](_0x5788f0['position']['nodeAfter'])});}return 0x0!=_0x161a22['length']&&this['_reduceExistingSuggestions'](_0x1c1951,_0x161a22);}['_processAttributeSuggestions'](_0x3f36bd){let _0x1410b8=!0x1;const _0x3be39f=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x48bdf1=>_0x48bdf1['data']['newRange']&&_0x48bdf1['name']['startsWith']('suggestion:attribute:'));for(const _0x1a467f of _0x3be39f){const {subType:_0x39e9f2,id:_0x89c83f}=this['_splitMarkerName'](_0x1a467f['name']),_0x4d8342=_0x39e9f2['split']('|')[0x0];for(const _0x288c75 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x288c75['id']!=_0x89c83f&&'attribute'==_0x288c75['type']&&_0x288c75['data']&&_0x288c75['data']['key']==_0x4d8342&&_0x288c75['getFirstRange']()['isIntersecting'](_0x1a467f['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x288c75,_0x1a467f['data']['newRange'],_0x3f36bd),_0x1410b8=!0x0);}return _0x1410b8;}['recordAttributeChanges'](_0x4771c3){this['_recordAttributeSuggestions']=!0x0,_0x4771c3();}['_isRegisteredAttribute'](_0x52e219){const _0x2c02be=this['_isBlockAttribute'](_0x52e219),_0x31ebed=this['_isInlineAttribute'](_0x52e219);return _0x2c02be||_0x31ebed;}['_reduceExistingSuggestions'](_0x2065ae,_0x14f0aa){if(0x0==_0x14f0aa['length'])return!0x1;let _0x5046e5=!0x1;for(const _0x616477 of _0x14f0aa){const _0x2d1446=this['_findSuggestions'](_0x616477['range'],'attribute')['filter'](_0x1e42f1=>!_0x1e42f1['meta']['isNextTo'])['map'](_0x408f6f=>_0x408f6f['suggestion']),_0xeb568e=_0x864524({'newValue':_0x616477['newValue']});_0x2d1446['filter'](_0x8e97c9=>{const [_0x5cfec5,_0x4c5153]=_0x8e97c9['subType']['split']('|');return _0x5cfec5==_0x616477['key']&&_0x4c5153!=_0xeb568e;})['forEach'](_0x4b9c51=>{this['_reduceSuggestionAttributeRange'](_0x4b9c51,_0x616477['range'],_0x2065ae),_0x5046e5=!0x0;});}return _0x5046e5;}['_reduceSuggestionAttributeRange'](_0x151371,_0x204dde,_0x2b85e2){const _0x569d6b=_0x151371['getFirstRange']()['getDifference'](_0x204dde);0x0!==_0x569d6b['length']?0x1!==_0x569d6b['length']?this['_breakSuggestionMarker'](_0x151371,_0x204dde['start'],_0x204dde['end']):this['_setSuggestionRange'](_0x151371,_0x569d6b[0x0]):_0x2b85e2['removeMarker'](_0x151371['getFirstMarker']());}}class Vt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x22db10){this['_editor']=_0x22db10,this['_model']=_0x22db10['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x6d0d59,_0x1604eb,_0x5e061c,_0x22858e,_0x5003de,_0x2018f6,_0x34aaab){return new T(this['_model'],{'type':_0x6d0d59,'subType':_0x1604eb,'id':_0x5e061c,'originalSuggestionId':_0x34aaab,'author':_0x22858e,'creator':_0x22858e,'attributes':_0x5003de,'onAttributesChange':_0x2018f6,'onAccept':(..._0x1cb178)=>this['getSuggestionCallback'](_0x6d0d59,_0x1604eb,'accept')(..._0x1cb178),'onDiscard':(..._0x4f2bf5)=>this['getSuggestionCallback'](_0x6d0d59,_0x1604eb,'discard')(..._0x4f2bf5)});}['registerCustomCallback'](_0x143879,_0x314717,_0x24149d,_0x506ad7){const _0x233df8=_0x143879+':'+_0x314717+':'+_0x24149d;this['_customCallbacks']['set'](_0x233df8,_0x506ad7);}['getSuggestionCallback'](_0x5a66b1,_0x71b1d3,_0x6de164){const _0x2d448f=_0x5a66b1+':'+_0x71b1d3+':'+_0x6de164;return this['_customCallbacks']['get'](_0x2d448f)||this['_defaultCallbacks']['get'](_0x5a66b1+':'+_0x6de164);}['_registerDefaultCallbacks'](){const _0x423583=()=>!0x1,_0x58c49a=_0xf27b03=>{_0xf27b03['sort']((_0x4b2e60,_0x1d62ab)=>_0x4b2e60['start']['isBefore'](_0x1d62ab['start'])?0x1:-0x1),this['_model']['change'](_0x472a51=>{for(const _0xf5ca74 of _0xf27b03){let _0x5ae51;_0x5ae51=_0xf5ca74['end']['isAtEnd']&&_0xf5ca74['end']['parent']==_0xf5ca74['start']['nodeAfter']?_0x472a51['createSelection'](_0xf5ca74['start']['nodeAfter'],'on'):_0x472a51['createSelection'](_0xf5ca74),this['_model']['deleteContent'](_0x5ae51,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x3b9cda=(_0x19630f,_0x68e517)=>{_0x68e517&&this['_model']['change'](_0x555f4b=>{const {commandName:_0x32d377,commandParams:_0x25db82=[]}=_0x68e517,_0x512eff=_0x19630f['map'](_0x56014e=>(Pt(_0x56014e)&&(_0x56014e=this['_model']['createRange'](_0x56014e['end'])),_0x56014e))['filter'](_0x44a493=>'$graveyard'!==_0x44a493['root']['rootName']);if(_0x512eff['length']<0x1)return;const _0x14b070=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x1d3031=>_0x5d0c54['fromRange'](_0x1d3031));_0x555f4b['setSelection'](_0x512eff);for(const _0x35eeda of this['_editor']['commands']['commands']())_0x35eeda['refresh']();_0x25db82['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x32d377,..._0x25db82);const _0x37cbe4=_0x14b070['filter'](_0x185692=>'$graveyard'!=_0x185692['root']['rootName']);_0x37cbe4['length']>0x0&&_0x555f4b['setSelection'](_0x37cbe4);for(const _0x32f900 of _0x14b070)_0x32f900['detach']();});},_0x142852=(_0x4e65b4,_0x11b8d7)=>0x1==_0x4e65b4['length']&&0x1==_0x11b8d7['length']&&_0x4e65b4[0x0]['end']['isEqual'](_0x11b8d7[0x0]['start']),_0x31d118=(_0x3dfcb2,_0xa48d68,_0x2122a2,_0x4298c1)=>Wt(_0x3dfcb2,_0xa48d68,_0x2122a2,_0x4298c1)?[_0x3dfcb2,_0xa48d68]:Wt(_0xa48d68,_0x3dfcb2,_0x4298c1,_0x2122a2)?[_0xa48d68,_0x3dfcb2]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x423583),this['_defaultCallbacks']['set']('insertion:discard',_0x58c49a),this['_defaultCallbacks']['set']('insertion:join',_0x142852),this['_defaultCallbacks']['set']('insertion:chain',_0x31d118),this['_defaultCallbacks']['set']('deletion:accept',_0x58c49a),this['_defaultCallbacks']['set']('deletion:discard',_0x423583),this['_defaultCallbacks']['set']('deletion:join',_0x142852),this['_defaultCallbacks']['set']('deletion:chain',_0x31d118),this['_defaultCallbacks']['set']('formatInline:accept',_0x3b9cda),this['_defaultCallbacks']['set']('formatInline:discard',_0x423583),this['_defaultCallbacks']['set']('formatInline:join',_0x142852),this['_defaultCallbacks']['set']('formatInline:chain',_0x423583),this['_defaultCallbacks']['set']('formatBlock:accept',_0x3b9cda),this['_defaultCallbacks']['set']('formatBlock:discard',_0x423583),this['_defaultCallbacks']['set']('formatBlock:join',_0x142852),this['_defaultCallbacks']['set']('formatBlock:chain',_0x423583),this['_defaultCallbacks']['set']('attribute:accept',_0x423583),this['_defaultCallbacks']['set']('attribute:discard',(_0x528227,_0x202785)=>{if(!_0x202785)return;const _0x5f168e=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x5e010e=>{if(_0x202785['key']==m)for(const _0x3818cd of _0x528227){const _0x280954=_0x3818cd['start']['nodeAfter'],_0x26a794=_0x202785['oldValue'];_0x5e010e['rename'](_0x280954,_0x26a794);}else{if(_0x5f168e['_isBlockAttribute'](_0x202785['key'])){for(const _0x1aa67f of _0x528227)void 0x0!==_0x202785['oldValue']?_0x5e010e['setAttribute'](_0x202785['key'],_0x202785['oldValue'],_0x1aa67f['start']['nodeAfter']):_0x5e010e['removeAttribute'](_0x202785['key'],_0x1aa67f['start']['nodeAfter']);}else{for(const _0x465f87 of _0x528227)_0x202785['oldValue']?_0x5e010e['setAttribute'](_0x202785['key'],_0x202785['oldValue'],_0x465f87):_0x5e010e['removeAttribute'](_0x202785['key'],_0x465f87);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x142852);}}function Ft(_0x5211bc,_0x3b483c,_0x1de4e9){for(const _0x316be9 of _0x3b483c['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x316be9['root']==_0x316be9)return!0x1;if(!_0x1de4e9['containsItem'](_0x316be9))return!0x1;if(_0x5211bc['isObject'](_0x316be9)||_0x5211bc['isLimit'](_0x316be9))return!0x0;}return!0x1;}function Pt(_0x3d5a5){return _0x3d5a5['end']['parent']==_0x3d5a5['start']['nodeAfter']&&_0x3d5a5['end']['isAtStart'];}function Gt(_0x2a392f,_0x39f978,_0x105a3b,_0x116db2){const _0x22fe03=_0x43174f=>!_0x43174f['item']['is']('$textProxy')&&!_0x116db2['isObject'](_0x43174f['item']),_0x326b8c=_0x2a392f['start']['getLastMatchingPosition'](_0x22fe03),_0x558d70=_0x2a392f['end']['getLastMatchingPosition'](_0x22fe03,{'direction':'backward'});return(!_0x2a392f['start']['isEqual'](_0x326b8c)||!_0x2a392f['end']['isEqual'](_0x558d70))&&(_0x326b8c['isBefore'](_0x558d70)?_0x105a3b['updateMarker'](_0x39f978,{'range':_0x105a3b['createRange'](_0x326b8c,_0x558d70)}):_0x105a3b['removeMarker'](_0x39f978),!0x0);}function Lt(_0x377f69){return _0x864524(_0x377f69);}function Jt(_0x570b04){const _0xe17f9=_0x570b04['start']['nodeAfter'];return _0xe17f9&&_0xe17f9['is']('element');}function Kt(_0x33f594){return Pt(_0x33f594)||function(_0x2a49d4){return _0x2a49d4['start']['parent']==_0x2a49d4['end']['nodeBefore']&&_0x2a49d4['start']['isAtEnd'];}(_0x33f594);}function Ht(_0x156022,_0x59ceb9){try{const _0x3b9b16=_0x156022['getRange']();for(const _0x52ef69 of _0x59ceb9)if(_0x156022!==_0x52ef69&&_0x3b9b16&&_0x3b9b16['isIntersecting'](_0x52ef69['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function qt(_0x7f4a10,_0x520c16){return null==_0x7f4a10['end']['nodeBefore']&&_0x7f4a10['end']['parent']==_0x7f4a10['start']['nodeAfter']?zt(_0x7f4a10['start']['nodeAfter'],_0x520c16):_0x7f4a10;}function zt(_0x1b75c2,_0x54ba8b){const _0x11a2b7=_0x54ba8b['schema']['isObject'](_0x1b75c2)||_0x54ba8b['schema']['isSelectable'](_0x1b75c2);return _0x54ba8b['createRange'](_0x54ba8b['createPositionAt'](_0x1b75c2,'before'),_0x11a2b7?_0x54ba8b['createPositionAfter'](_0x1b75c2):_0x54ba8b['createPositionAt'](_0x1b75c2,'end'));}function Wt(_0x16b3a4,_0x3d70c6,_0x184a55,_0x5192e3){return!!Qt(_0x16b3a4,_0x3d70c6)&&_0x184a55['end']['isEqual'](_0x5192e3['start']);}function Qt(_0x57ca01,_0x165e1d){if(!_0x57ca01['_isDataLoaded']||!_0x165e1d['_isDataLoaded'])return!0x1;const _0x1c98ce=new Set(Object['keys'](_0x57ca01['attributes'])),_0x2a0fdb=new Set(Object['keys'](_0x165e1d['attributes']));if(_0x1c98ce['delete']('groupId'),_0x2a0fdb['delete']('groupId'),0x0==_0x1c98ce['size']&&0x0==_0x2a0fdb['size'])return!0x0;if(_0x1c98ce['size']!=_0x2a0fdb['size'])return!0x1;const _0x5ca7eb={..._0x57ca01['attributes']},_0x6df86={..._0x165e1d['attributes']};return delete _0x5ca7eb['groupId'],delete _0x6df86['groupId'],JSON['stringify'](_0x5ca7eb)==JSON['stringify'](_0x6df86);}function Xt(_0x1fe214,_0x184c95){const _0x3984d5=Yt(_0x1fe214['attributes']),_0x1e8815=Yt(_0x184c95);if(!_0x1fe214['_isDataLoaded'])return!0x1;for(const _0x2cb6f3 of Object['keys'](_0x1e8815))if(!_0x3a5521(_0x3984d5[_0x2cb6f3],_0x1e8815[_0x2cb6f3]))return!0x1;return!0x0;}function Yt(_0x31170e){const _0x4b3e99=Object['assign']({},_0x31170e);return delete _0x4b3e99['skipNestingCheck'],delete _0x4b3e99['tablePasteChainId'],_0x4b3e99;}class pe extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x14aa84(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x587ba6,_0x47e99f,_0x34963e,_0x3f5455){super(),this['model']=_0x47e99f,this['view']=_0x34963e,this['commentThreadController']=_0x3f5455,this['_editor']=_0x587ba6,this['_acceptCommand']=_0x587ba6['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x587ba6['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x33eb3a,_0xfceede)=>_0x33eb3a||_0xfceede),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x28e975=>_0x28e975&&this['_editor']['model']['canEditAt'](_0x47e99f['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x412738=>_0x412738&&this['_editor']['model']['canEditAt'](_0x47e99f['getRanges']())),this['_pendingAction']=null,_0x34963e['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x34963e,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x34963e,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x34963e,'change:isDirty',()=>{_0x34963e['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 _0x9a10a=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x9a10a);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x62fb{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0xfc9ae,_0xff90e7,_0x4a7416,_0x67d02a){super(_0xfc9ae),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x5d66e1(_0xfc9ae,o(_0xfc9ae,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0xff90e7['authoredAt']),this['bind']('authoredAt')['to'](_0xff90e7),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',_0xff90e7,'authoredAt',this,'descriptionParts',(_0x1793f0,_0x1f76ac,_0x55fdf8)=>{const _0x40855d=_0x55fdf8['map'](_0x2f8c39=>ls(_0x2f8c39['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x1793f0-0x1,_0xff90e7['author']['name'],_0x1f76ac?_0x67d02a['formatDateTime'](_0x1f76ac):'',new DOMParser()['parseFromString'](_0x40855d,'text/html')['body']['textContent']]);}),this['focusables']=new _0x5aff31(),this['focusTracker']=new _0x2a2c19(),this['keystrokes']=new _0x47beb0(),this['focusCycler']=new _0x4501f4({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x49ccd2=>_0x49ccd2['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0xff90e7,this['_localUser']=_0x4a7416,this['_config']=_0x67d02a,_0x67d02a['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0xea169a(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x2af637}=this['_config'];this['commentsListView']=new _0x2af637(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',_0x30b6a6=>_0x30b6a6+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x8a81be,_0x4cb165)=>_0x8a81be||!!_0x4cb165);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x22e651}=this['_config'],_0x232e78=new _0x22e651(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x30de0c=_0x232e78['commentInputView'];return _0x232e78['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x30de0c,'value',(_0x2ab8f0,_0x30a15c,_0x5051e6)=>!!_0x5051e6||_0x2ab8f0&&!_0x30a15c),_0x30de0c['on']('submit',(_0x51c888,_0x321b31)=>{this['fire']('addComment',_0x321b31),_0x30de0c['editor']['setData']('');}),_0x30de0c['on']('cancel',()=>this['focus']()),_0x30de0c['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x232e78;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x13a548,_0x1041fc,_0x3257dc,_0x1c8d72){super(_0x13a548,_0x1041fc,_0x3257dc,_0x1c8d72),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x4175a4=>_0x4175a4&&_0x4175a4[0x0]?_0x4175a4[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x2a1504,_0x12783d)=>{let _0x5f15f6='';for(const _0x1a616b of _0x2a1504)_0x5f15f6+='<p>'+ls(_0x1a616b['content'],_0x1a616b['color'])+'</p>';return _0x12783d?_0x5f15f6:_0x4a5cc2(_0x5f15f6,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x1c8d72['SuggestionView'](_0x13a548,_0x1041fc,{'formatDateTime':_0x1c8d72['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 _0x45b9ef=this['bindTemplate'],_0x4e3812=[this['suggestionView']];return this['commentsListView']&&_0x4e3812['push'](this['commentsListView']),this['commentThreadInputView']&&_0x4e3812['push'](this['commentThreadInputView']),_0x4e3812['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x45b9ef['if']('isActive','ck-suggestion-wrapper--active'),_0x45b9ef['to']('type',_0xd61d86=>'ck-suggestion-'+_0xd61d86),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':_0x45b9ef['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x4e3812};}['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 _0x62fb{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x7c9d46,_0x2aacf8,_0x1de2cd){super(_0x7c9d46),this['_model']=_0x2aacf8,this['_config']=_0x1de2cd,this['set']('description',''),this['bind']('authoredAt')['to'](_0x2aacf8),this['acceptButton']=this['_createButton'](o(_0x7c9d46,'Accept\x20suggestion'),_0x54dbde,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x7c9d46,'Discard\x20suggestion'),_0x187b01,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x356495(_0x7c9d46,_0x2aacf8['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x5aff31([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x2a2c19(),this['keystrokes']=new _0x47beb0(),this['focusCycler']=new _0x4501f4({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x521f06=>_0x521f06['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x404ed7=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x404ed7['innerHTML']=this['description'],this['on']('change:description',(_0x55ac48,_0x5b7f25,_0x5759c7)=>{_0x404ed7['innerHTML']=_0x5759c7;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x2c8acb=this['bindTemplate'],_0x25ec75=[{'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':_0x2c8acb['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x2c8acb['to']('authoredAt',_0x16c367=>this['_config']['formatDateTime'](_0x16c367))}]}]},{'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']&&_0x25ec75['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':_0x25ec75}]};}['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'](_0x1deb9e,_0x2e122d,_0x25918c,_0x1eaee8,_0x51abea){const _0x95cd33=new _0x2495fa(this['locale']);return _0x95cd33['set']({'label':_0x1deb9e,'icon':_0x2e122d,'tooltip':!0x0,'tooltipPosition':_0x51abea}),_0x95cd33['extendTemplate']({'attributes':{'class':_0x25918c}}),_0x95cd33['on']('execute',()=>{this['fire'](_0x1eaee8,this['_model']['id']);}),_0x95cd33;}['_setupKeyboardNavigation'](){const _0x10a95b=this['element'];this['keystrokes']['listenTo'](_0x10a95b);for(const _0x153693 of this['focusables'])this['focusTracker']['add'](_0x153693['element']),this['keystrokes']['listenTo'](_0x153693['element']);this['keystrokes']['set']('enter',(_0x295c56,_0x2daade)=>{_0x10a95b===_0x295c56['target']&&(this['focusCycler']['focusFirst'](),_0x2daade());}),this['keystrokes']['set']('esc',(_0x4a0a3a,_0x27d8f7)=>{_0x10a95b!==_0x4a0a3a['target']&&(this['focus'](),_0x27d8f7());});}}class u extends _0x518a62{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x4e2ba2,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1fd2fd){super(_0x1fd2fd),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x4bac3f=this['editor']['config'];_0x4bac3f['define']('trackChanges.SuggestionThreadView',fe),_0x4bac3f['define']('trackChanges.SuggestionView',we),_0x4bac3f['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x4bac3f['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x2f833a,_0xf38e11){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x34e534,_0x188f19]of this['_handleControllerBuffer']){const _0x321606=this['_suggestionToController']['has'](_0x34e534);_0x321606||_0x188f19?_0x321606&&_0x188f19&&this['_destroyController'](_0x34e534):this['_initializeController'](_0x34e534);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x2f833a,_0xf38e11);}['init'](){const _0x13cd2e=this['editor'],_0x18cf6f=_0x13cd2e['plugins']['get']('TrackChangesEditing'),_0x31fdb0=_0x13cd2e['plugins']['get']('Annotations'),_0x103abe=_0x13cd2e['plugins']['get']('EditorAnnotations'),_0x21d04c=_0x13cd2e['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x103abe['addSourceCollector'](()=>{const _0xb21b03=[];for(const [_0x372431,_0x43e2d3]of Array['from'](this['_suggestionToController'])){const _0x284df6=_0x372431['getAllAdjacentSuggestions'](),_0x4031d3=[];for(const _0x224a3a of _0x284df6){if(!_0x224a3a['isInContent'])continue;if(_0x224a3a['isMultiRange']){_0x4031d3['push'](..._0x224a3a['getRanges']());continue;}const _0x1ee71f=_0x224a3a['getFirstRange']();if(_0x4031d3['length']>0x0){const _0x1a55d4=_0x4031d3[0x0]['getJoined'](_0x1ee71f);if(_0x1a55d4){_0x4031d3[0x0]=_0x1a55d4;continue;}}_0x4031d3['push'](_0x1ee71f);}_0xb21b03['push']([_0x43e2d3['view'],_0x4031d3]);}return _0xb21b03;}),this['listenTo'](_0x18cf6f,'suggestionLoaded',(_0x42a5d4,_0x46cd99)=>{this['listenTo'](_0x46cd99,'change:previous',(_0x2763b2,_0x225658,_0x50521e,_0x574fed)=>{_0x46cd99['isInContent']&&(null==_0x50521e?(this['_updateController'](_0x574fed['head']),this['_handleSuggestionControllerDelayed'](_0x46cd99,!0x1)):(this['_updateController'](_0x50521e['head']),null==_0x574fed&&this['_handleSuggestionControllerDelayed'](_0x46cd99,!0x0)));}),null!==_0x46cd99['previous']?this['_updateController'](_0x46cd99['head']):this['_handleSuggestionControllerDelayed'](_0x46cd99,!0x1);}),this['listenTo'](_0x18cf6f,'suggestionUnloaded',(_0x2f5c32,_0x3da7c5,_0x5d4719)=>{this['stopListening'](_0x3da7c5,'change:previous'),this['_handleControllerBuffer']['delete'](_0x3da7c5),this['_suggestionToController']['has'](_0x3da7c5)&&this['_destroyController'](_0x3da7c5),_0x5d4719&&this['_updateController'](_0x5d4719['head']);}),this['listenTo'](_0x18cf6f,'suggestionChanged',(_0x50fbd9,_0x3e65a2)=>{this['_updateController'](_0x3e65a2);}),this['listenTo'](_0x31fdb0,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x21d04c,'addComment',(_0x71460,{threadId:_0x2cb7a5,isFromAdapter:_0x3bf427})=>{if(_0x3bf427||!_0x18cf6f['hasSuggestion'](_0x2cb7a5))return;const _0x221cba=_0x18cf6f['getSuggestion'](_0x2cb7a5);this['_suggestionToController']['get'](_0x221cba)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xf3993a=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x22a6a5;for(const _0x62e4a9 in _0xf3993a){const _0x42101e=_0x62e4a9,_0x56eb1a=_0xf3993a[_0x42101e];if('trackChangesLicenseKeyValid'==_0x56eb1a||'trackChangesLicenseKeyInvalid'==_0x56eb1a||'trackChangesLicenseKeyExpired'==_0x56eb1a||'trackChangesLicenseKeyDomainLimit'==_0x56eb1a||'trackChangesLicenseKeyNotAllowed'==_0x56eb1a||'trackChangesLicenseKeyEvaluationLimit'==_0x56eb1a||'trackChangesLicenseKeyTrialLimit'==_0x56eb1a||'trackChangesLicenseKeyUsageLimit'==_0x56eb1a){delete _0xf3993a[_0x42101e],_0x22a6a5=_0x56eb1a,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x22a6a5&&_0xf3993a['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x22a6a5&&_0xf3993a['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x22a6a5&&_0xf3993a['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x22a6a5&&_0xf3993a['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x22a6a5&&_0xf3993a['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x22a6a5&&_0xf3993a['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x22a6a5&&_0xf3993a['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x1d93da){const _0x2b0287=this['_suggestionToController']['get'](_0x1d93da);if(!_0x2b0287)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x2b0287['view'])||null;}['getSuggestionForAnnotation'](_0x13199b){const _0x54c52c=this['_viewToController']['get'](_0x13199b['innerView']);return _0x54c52c?_0x54c52c['model']:null;}['_refreshActiveMarkers'](){const _0x351e09=this['editor']['plugins']['get']('Annotations'),_0x376b4f=this['editor']['plugins']['get']('TrackChangesEditing'),_0xe839ef=Array['from'](_0x351e09['activeAnnotations'],_0x2b4321=>_0x2b4321['innerView'])['filter'](_0xb7c8b2=>this['_viewToController']['has'](_0xb7c8b2)),_0x541fbc=[];for(const _0x32cee4 of _0xe839ef){const _0xbff2f3=this['_viewToController']['get'](_0x32cee4)['model']['getAllAdjacentSuggestions']();_0x541fbc['push'](..._0xbff2f3['reduce']((_0x572b1f,_0x247c59)=>[..._0x572b1f,..._0x247c59['getMarkerNames']()],[]));}_0x376b4f['activeMarkers']=_0x541fbc;}['_addUIComponentsToFactory'](){const _0x3c9b12=this['editor'],_0x32afa7=_0x3c9b12['locale'],_0xf16c70=o(_0x32afa7,'Track\x20changes'),_0x38c9c2=new _0x50bcb7([{'type':'switchbutton','model':new _0x1d3d23({'withText':!0x0,'isToggleable':!0x0,'label':_0xf16c70,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x1d3d23({'withText':!0x0,'label':o(_0x32afa7,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1d3d23({'withText':!0x0,'label':o(_0x32afa7,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1d3d23({'withText':!0x0,'label':o(_0x32afa7,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1d3d23({'withText':!0x0,'label':o(_0x32afa7,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x3c9b12['plugins']['has']('TrackChangesPreview')&&_0x38c9c2['addMany']([{'type':'separator'},{'type':'button','model':new _0x1d3d23({'withText':!0x0,'label':o(_0x32afa7,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x23ee06 of _0x38c9c2)if(ke(_0x23ee06)){const _0x4db9d0=_0x3c9b12['commands']['get'](_0x23ee06['model']['commandName']);_0x23ee06['model']['bind']('isOn','isEnabled')['to'](_0x4db9d0,'value','isEnabled');}_0x3c9b12['ui']['componentFactory']['add']('trackChanges',_0xc3e77a=>this['_createToolbarButton'](_0xc3e77a,_0x38c9c2,_0xf16c70)),_0x3c9b12['ui']['componentFactory']['add']('menuBar:trackChanges',_0x508060=>this['_createMenuBarMenu'](_0x508060,_0x38c9c2,_0xf16c70));}['_createToolbarButton'](_0x552726,_0x75fcc1,_0xcaf2ae){const _0x459207=_0x202277(_0x552726,_0x134207),_0xe0132=this['editor']['commands']['get']('trackChanges');_0x459207['buttonView']['set']({'tooltip':_0xcaf2ae,'label':_0xcaf2ae,'icon':_0x10634d}),_0x459207['buttonView']['bind']('isOn')['to'](_0xe0132,'value'),_0x459207['buttonView']['on']('execute',()=>{_0xe0132['execute'](),this['editor']['editing']['view']['focus']();}),_0x555af9(_0x459207,_0x75fcc1,{'role':'menu'});const _0x16845a=[];for(const _0xe1b9b6 of _0x75fcc1)ke(_0xe1b9b6)&&_0x16845a['push'](this['editor']['commands']['get'](_0xe1b9b6['model']['commandName']));const _0x238d02=_0x459207['buttonView'];return _0x238d02['actionView']['unbind']('isEnabled'),_0x238d02['arrowView']['unbind']('isEnabled'),_0x238d02['actionView']['bind']('isEnabled')['to'](_0xe0132,'isEnabled'),_0x238d02['arrowView']['bind']('isEnabled')['toMany'](_0x16845a,'isEnabled',(..._0x30a790)=>_0x30a790['some'](_0x362a8c=>_0x362a8c)),_0x459207['on']('execute',_0x4629ba=>{this['editor']['execute'](_0x4629ba['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x459207;}['_createMenuBarMenu'](_0x2541be,_0x12f7fe,_0x1e4d96){const _0x2fa730=new _0x4281c7(_0x2541be),_0x599a0b=this['editor']['commands']['get']('trackChanges');_0x2fa730['buttonView']['set']({'label':_0x1e4d96,'icon':_0x10634d});const _0x585a1f=new _0xd9896b(_0x2541be);for(const _0x1f1197 of _0x12f7fe){if('separator'==_0x1f1197['type']){_0x585a1f['items']['add'](new _0x574bf3(_0x2541be));continue;}const _0x242c1e=new _0x3bf19b(_0x2541be,_0x2fa730),_0x2fb61f=new _0x37c90c(_0x2541be),_0x6c5179=_0x1f1197['model'];_0x2fb61f['bind'](...Object['keys'](_0x6c5179))['to'](_0x6c5179),_0x2fb61f['delegate']('execute')['to'](_0x2fa730),_0x2fb61f['on']('execute',()=>{this['editor']['execute'](_0x6c5179['commandName']),this['editor']['editing']['view']['focus']();}),_0x242c1e['children']['add'](_0x2fb61f),_0x585a1f['items']['add'](_0x242c1e);}return _0x2fa730['bind']('isEnabled')['to'](_0x599a0b,'isEnabled'),_0x2fa730['panelView']['children']['add'](_0x585a1f),_0x2fa730;}['_initializeController'](_0x3d20b3){const _0x3c088d=this['editor'],_0x200799=_0x3c088d['config'],_0x42dafd=_0x3c088d['plugins']['get']('Annotations'),_0x407588=_0x3c088d['plugins']['get']('CommentsRepository'),_0xeea6ae=_0x3c088d['plugins']['get']('EditorAnnotations'),_0x563c5c=_0x3c088d['plugins']['get'](_0x4e2ba2)['me'],_0xc4771c=_0x200799['get']('trackChanges')['SuggestionThreadView'],_0x109f4c=_0x200799['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x1f8bd1,CommentThreadInputView:_0x49c5de}=_0x3c088d['plugins']['get']('CommentsUI');let _0x2e8b10,_0x11a949,_0x4a86ad;this['_annotationViews']['has'](_0x3d20b3['id'])?(_0x11a949=this['_annotationViews']['get'](_0x3d20b3['id']),_0x2e8b10=_0x11a949['mainView']):(_0x2e8b10=new _0xc4771c(_0x3c088d['locale'],_0x3d20b3,_0x563c5c,{'disableComments':this['_disableComments'],'editorConfig':{..._0x200799['get']('comments.editorConfig'),'licenseKey':_0x200799['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x200799['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x200799['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x200799['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x121810(_0x200799['get']('locale'),_0x3c088d['locale']),'CommentView':_0x200799['get']('comments')['CommentView'],'CommentsListView':_0x1f8bd1,'CommentThreadInputView':_0x49c5de,'SuggestionView':_0x109f4c}),_0x2e8b10['suggestionView']['acceptButton']['on']('execute',()=>{_0x3c088d['editing']['view']['focus']();}),_0x2e8b10['suggestionView']['discardButton']['on']('execute',()=>{_0x3c088d['editing']['view']['focus']();}),_0x11a949=_0x42dafd['createAnnotationView'](this['editor']['locale'],_0x2e8b10),_0x11a949['bind']('isDirty')['to'](_0x2e8b10,'isDirty'),_0x11a949['bind']('length')['to'](_0x2e8b10),_0x11a949['bind']('type')['to'](_0x2e8b10,'type',_0xe8e72=>'suggestion-'+_0xe8e72),_0x2e8b10['on']('escape',()=>{_0x4a86ad['fire']('escape');}),this['_annotationViews']['set'](_0x3d20b3['id'],_0x11a949));const _0x516c70=_0x407588['createCommentThreadController'](_0x3d20b3['commentThread'],_0x2e8b10),_0x445c3b=new pe(_0x3c088d,_0x3d20b3,_0x2e8b10,_0x516c70),_0x2c4cbd=_0x3d20b3['getAllAdjacentSuggestions']()['filter'](_0x4eba4a=>_0x4eba4a['isInContent']);_0x2e8b10['descriptionParts']=_0x3c088d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x2c4cbd),this['_suggestionToController']['set'](_0x3d20b3,_0x445c3b),this['_viewToController']['set'](_0x2e8b10,_0x445c3b);const _0x4c509c=()=>{const _0x52db75=[],_0x48ecd3=_0x3d20b3['getAllAdjacentSuggestions']()['filter'](_0x29c165=>_0x29c165['isInContent']);for(const _0x3a8590 of _0x48ecd3)_0x52db75['push'](..._0x3a8590['getMarkers']());return _0x4ed3db(_0x3c088d['editing'],_0x52db75);};_0x4a86ad=_0x42dafd['createAnnotation']({'view':_0x11a949,'target':_0x4c509c,'type':()=>'suggestion-'+_0x445c3b['view']['type'],'isVisible':!!_0x4c509c()}),_0x407588['_bindAnnotationToEditors'](_0x2e8b10,_0x4a86ad),_0x42dafd['add'](_0x4a86ad),_0xeea6ae['registerAnnotation'](_0x4a86ad);}['_destroyController'](_0x18b731){const _0x4233f4=this['editor']['plugins']['get']('CommentsRepository'),_0x1718f3=this['editor']['plugins']['get']('Annotations'),_0x5b7a74=this['_suggestionToController']['get'](_0x18b731),_0x2b66fe=_0x5b7a74['view'],_0x5a29af=_0x1718f3['getByInnerView'](_0x2b66fe);_0x4233f4['_unbindEditors'](_0x2b66fe),_0x5a29af&&_0x1718f3['remove'](_0x5a29af),this['_suggestionToController']['delete'](_0x18b731),this['_viewToController']['delete'](_0x2b66fe),_0x5b7a74['destroy']();}['_updateController'](_0x3af798){if(!_0x3af798['isInContent']||!this['_suggestionToController']['has'](_0x3af798))return;const _0xafde7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x201db8=this['_suggestionToController']['get'](_0x3af798),_0x54987b=_0x3af798['getAllAdjacentSuggestions']();_0x201db8['view']['descriptionParts']=_0xafde7['descriptionFactory']['getDescriptions'](_0x54987b);}['destroy'](){for(const _0x4eb7b7 of this['_suggestionToController']['keys']())this['_destroyController'](_0x4eb7b7);for(const _0x4632ac of this['_annotationViews']['values']())_0x4632ac['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x5047b4){return'model'in _0x5047b4;}class Fe extends _0x518a62{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0xf5fa59){this['editor']['plugins']['get'](d)['adapter']=_0xf5fa59;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x22f022){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x22f022);}['getSuggestions']({skipNotAttached:_0x3997c5=!0x1,toJSON:_0x40c556=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x3997c5,'toJSON':_0x40c556});}['getSuggestion'](_0x30eefb){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x30eefb);}}const p=['Pagination'];class re extends _0x518a62{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x54cfac=this['editor'];if(_0x54cfac['config']['define']('trackChangesData.editorCreator',_0x169ed8=>{const _0x1907a=_0x54cfac['model']['document']['getRootNames']()['reduce']((_0x3165de,_0x3ae05f)=>(_0x3165de[_0x3ae05f]='',_0x3165de),{});return _0x54cfac['constructor']['create'](_0x1907a,_0x169ed8);}),'function'!=typeof _0x54cfac['config']['get']('trackChangesData')['editorCreator'])throw new _0x5d7906('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0xba437b){return P(this['editor'],!0x0,_0xba437b);}['getDataWithDiscardedSuggestions'](_0x4cbc00){return P(this['editor'],!0x1,_0x4cbc00);}}class Ge extends _0x518a62{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2c54cc){function _0x7f5176(_0x2ea6ea){return _0x2ea6ea['map'](_0x11ca53=>String['fromCharCode'](_0x11ca53))['join']('');}super(_0x2c54cc),this['result']='end',_0x2c54cc[_0x7f5176([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x7f5176([0x76,0x69,0x65,0x77])][_0x7f5176([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x7f5176([0x61,0x75,0x74,0x6f]),_0x2c54cc[_0x7f5176([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x7f5176([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x7f5176([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x7f5176([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x7f5176([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(_0x9cb435){return void 0x0!==_0x9cb435['getRootsAttributes'];}async function P(_0x24bf29,_0x544344,_0x3b3c6a){const _0x482511=_0x3faa03(_0x24bf29,p);_0x482511['plugins']['push'](d,Ge),_0x482511['rootsAttributes']=He(_0x24bf29)?_0x24bf29['getRootsAttributes']():void 0x0;const _0x4735df=document['createDocumentFragment'](),_0x19c1f5=_0x24bf29['config']['get']('trackChangesData')['editorCreator'],_0x384ee8=await _0x19c1f5(_0x482511,()=>function(_0x406060){const _0x3edda3=document['createElement']('div');return _0x406060['appendChild'](_0x3edda3),_0x3edda3;}(_0x4735df));!function(_0x164dc2,_0x478e51){const _0x48a4a1=_0x164dc2['model']['document']['getRootNames']()['reduce']((_0x3802af,_0xc89119)=>(_0x3802af[_0xc89119]=_0x164dc2['data']['get']({'rootName':_0xc89119}),_0x3802af),{}),_0x3ddd53=_0x164dc2['plugins']['get']('Users')['users']['map'](_0x3993c2=>({'id':_0x3993c2['id'],'name':_0x3993c2['name']})),_0x1fecde=_0x164dc2['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x30b348=_0x164dc2['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x486a99=_0x478e51['plugins']['get']('Users'),_0x4a6007=_0x478e51['plugins']['get']('TrackChangesEditing'),_0x44f45a=_0x478e51['plugins']['get']('CommentsRepository');for(const _0x65fb95 of _0x44f45a['getCommentThreads']())_0x65fb95['remove']();for(const _0x440f0f of _0x3ddd53)_0x486a99['getUser'](_0x440f0f['id'])||_0x486a99['addUser'](_0x440f0f);_0x486a99['me']||_0x486a99['useAnonymousUser']();for(const _0x320fcc of _0x30b348)_0x44f45a['addCommentThread'](_0x320fcc);for(const _0x5b59cf of _0x1fecde)_0x4a6007['addSuggestionData'](_0x5b59cf);_0x478e51['data']['set'](_0x48a4a1);}(_0x24bf29,_0x384ee8),_0x384ee8['execute'](_0x544344?'acceptAllSuggestions':'discardAllSuggestions');const _0x5b0b1f=He(_0x384ee8)?_0x384ee8['getFullData'](_0x3b3c6a):_0x384ee8['data']['get'](_0x3b3c6a);return await _0x384ee8['destroy'](),_0x5b0b1f;}class Me extends _0x62fb{['options'];constructor(_0x17bdd0,_0x2869f5){super(_0x17bdd0),this['options']=_0x2869f5,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'](_0x21a640,_0x219b46){if(!this['element'])return;const _0xe6c08a=[];for(const [_0x115830,_0x155f10]of _0x21a640){const _0x1237aa=document['createElement']('div');_0x1237aa['setAttribute']('data-ck-root-name',_0x115830),_0x1237aa['className']=_0x155f10['classes']+'\x20ck-track-changes-preview__root-container',_0x1237aa['innerHTML']=_0x155f10['content'],_0xe6c08a['push'](_0x1237aa);}_0x219b46(this['element'],_0xe6c08a),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x9cc05d{constructor(_0xfd2517){super(_0xfd2517),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x232f3c=this['editor'],_0x20023a=_0x232f3c['locale'],_0xd72b08=_0x232f3c['plugins']['get']('Dialog');let _0x313760;const _0xf2510a=function(_0x47c22d){const _0x4fc696={};if('editables'in _0x47c22d['ui']['view']){for(const [_0x168dbc,_0x31c6f9]of Object['entries'](_0x47c22d['ui']['view']['editables']))_0x4fc696[_0x168dbc]=_0x31c6f9['element'];}else _0x4fc696[_0x47c22d['model']['document']['getRootNames']()[0x0]]=_0x47c22d['ui']['view']['editable']['element'];return _0x4fc696;}(_0x232f3c),_0x42dd4a=function(_0x1385c2){let _0x4fa14f=0x0;for(const _0x249f92 of Object['values'](_0x1385c2))_0x4fa14f=Math['max'](_0x4fa14f,_0x249f92['getBoundingClientRect']()['width']);let _0x1b1380=0x0;for(const _0x34258e of Object['values'](_0x1385c2))_0x1b1380+=_0x34258e['getBoundingClientRect']()['height'];const _0x51f999=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x263d75=Math['min'](_0x1b1380,_0x51f999);return{'width':_0x4fa14f,'height':_0x263d75};}(_0xf2510a);_0xd72b08['show']({'id':'finalContentPreview','title':o(_0x20023a,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x20023a,{'dialogRects':_0x42dd4a}),'onHide':()=>{_0x313760['detachFromDom']();},'onShow':()=>{_0x232f3c['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x26f0a2=>{const _0x52dbdc=this['_standarizeRootsData'](_0x26f0a2,_0x232f3c,_0xf2510a);_0xd72b08['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x52dbdc,_0x232f3c['config']['get']('trackChanges.preview.renderFunction'));}),_0x313760=new _0x5966c9(_0x20023a,[_0xd72b08['view']]),_0x313760['attachToDom'](),_0x313760['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x232f3c['once']('destroy',()=>{_0x313760['detachFromDom']();});const _0x403ca5=_0xd72b08['view']['headerView']['class'];_0xd72b08['view']['headerView']['class']=_0x403ca5?_0x403ca5+'\x20ck-reset_all':'ck-reset_all',_0xd72b08['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0xd72b08['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x359822=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x179602=_0x359822['previewMode'],_0x24d95a={};if('$labels'===_0x179602){for(const _0x5bfd04 of _0x359822['getMergeFieldsIds']())_0x24d95a[_0x5bfd04]=_0x359822['getLabel'](_0x5bfd04)||_0x5bfd04;}else{const _0x5185de='$defaultValues'===_0x179602?_0x359822['getDefaultValues']():_0x359822['getDataSetValues'](_0x179602,!0x0);for(const _0x6e0cbb of Object['entries'](_0x5185de)){const [_0x1182ac,_0x3b772e]=_0x6e0cbb;_0x24d95a[_0x1182ac]=null!==_0x3b772e?_0x3b772e:_0x359822['getLabel'](_0x1182ac)||_0x1182ac;}}return{'mergeFieldsData':_0x24d95a};}['_standarizeRootsData'](_0x5cca21,_0x55437c,_0x13b3fa){let _0x38ffba;if('string'==typeof _0x5cca21){const _0x42195d=_0x55437c['model']['document']['getRootNames']()[0x0];_0x38ffba={[_0x42195d]:_0x5cca21};}else _0x38ffba=_0x5cca21;const _0x10d4a6=this['_fixMediaEmbeds'](_0x38ffba,_0x55437c),_0x32506b=function(_0x354733,_0x2f906a){for(const [_0x241916,_0x560834]of _0x354733)_0x560834['classes']=_0x2f906a[_0x241916]['classList']['value']['replace']('ck-focused','');return _0x354733;}(this['_sortRoots'](_0x55437c)['reduce']((_0x3837a8,_0x469727)=>(_0x3837a8['push']([_0x469727,{'content':_0x10d4a6[_0x469727],'classes':''}]),_0x3837a8),[]),_0x13b3fa);return _0x32506b;}['_fixMediaEmbeds'](_0x57ceae,_0x38a9e8){if(!_0x38a9e8['plugins']['has']('MediaEmbedEditing'))return _0x57ceae;const _0x98fe21=_0x38a9e8['plugins']['get']('MediaEmbedEditing');for(const [_0x28805f,_0x148381]of Object['entries'](_0x57ceae)){const _0x49cd38=document['createElement']('div');_0x49cd38['innerHTML']=_0x148381,(_0x49cd38['querySelectorAll']('figure.media')['forEach'](_0x33fda0=>{const _0x1b69b0=_0x33fda0['querySelector']('oembed');if(_0x1b69b0){const _0x49e0bd=_0x1b69b0['getAttribute']('url');if(_0x49e0bd){const _0x2dd026=_0x98fe21['registry']['getMediaViewElement'](new _0x478d34(_0x38a9e8['editing']['view']['document']),_0x49e0bd,{'elementName':'','renderForEditingView':!0x0}),_0x3048c2=document['createElement']('div');_0x3048c2['classList']['add']('ck-media__wrapper'),_0x2dd026['render'](_0x3048c2,_0x38a9e8['editing']['view']['domConverter']),_0x1b69b0['replaceWith'](_0x3048c2);}}}),_0x57ceae[_0x28805f]=_0x49cd38['innerHTML']);}return _0x57ceae;}['_sortRoots'](_0x121e02){if(!function(_0x5925e3){return void 0x0!==_0x5925e3['getRootsAttributes'];}(_0x121e02))return _0x121e02['model']['document']['getRootNames']();const _0x17da88=[],_0x5173b5=new Map();for(const _0x1bd9c4 of _0x121e02['model']['document']['getRootNames']()){const _0x3c95e8=_0x121e02['editing']['view']['getDomRoot'](_0x1bd9c4)['getClientRects']()['item'](0x0);_0x17da88['push'](_0x1bd9c4),_0x5173b5['set'](_0x1bd9c4,_0x3c95e8);}return _0x17da88['sort']((_0x4fedb6,_0x34663e)=>{const _0x20144d=_0x5173b5['get'](_0x4fedb6),_0xc55814=_0x5173b5['get'](_0x34663e);return _0x20144d['y']-_0xc55814['y']||_0x20144d['x']-_0xc55814['x'];}),_0x17da88;}}class $e extends _0x518a62{static get['requires'](){return[re,_0x1faa36];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2ff8fa){super(_0x2ff8fa),_0x2ff8fa['commands']['add']('previewFinalContent',new te(this['editor'])),_0x2ff8fa['config']['define']('trackChanges.preview.renderFunction',(_0x202675,_0x45623e)=>{for(const _0x1aa17c of _0x45623e)_0x202675['appendChild'](_0x1aa17c);});}}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};
|